/* ════════════════════════════════════════════════════════
   UdeC UX/UI Institutional Theme
   Mejora visual, accesibilidad y experiencia responsive
   Basado en Manual de Imagen Institucional ECOM 002 V.13
   ════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --udec-primary: #00482B;
  --udec-secondary: #007B3E;
  --udec-lime: #79C000;
  --udec-yellow: #FBE122;
  --udec-gold: #DAAA00;
  --udec-teal: #00A99D;
  --surface-page: #F6F8F5;
  --surface-card: #FFFFFF;
  --text-strong: #0D241A;
  --focus-ring: 0 0 0 4px rgba(121, 192, 0, .22);
  --radius-2xl: 24px;
  --shadow-soft: 0 18px 50px rgba(0, 72, 43, .12);
  --shadow-card: 0 14px 34px rgba(0, 72, 43, .10), 0 1px 0 rgba(0,0,0,.04);
}

html { background: var(--surface-page); }
body {
  background:
    radial-gradient(circle at top left, rgba(121,192,0,.14), transparent 28rem),
    linear-gradient(180deg, #fbfdf9 0%, var(--surface-page) 36%, #f5f7f4 100%);
  color: var(--text-strong);
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  transform: translateY(-180%);
  background: #fff;
  color: var(--udec-primary);
  border: 2px solid var(--udec-lime);
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base);
}
.skip-link:focus { transform: translateY(0); outline: none; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring) !important;
}

/* Identidad institucional */
.logo-img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 5px 7px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.auth-logo.official-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  color: #fff;
}
.auth-logo.official-brand .logo-img {
  height: 52px;
  max-width: 190px;
  border-radius: 16px;
  padding: 7px 10px;
}
.auth-logo-title { font-weight: 900; letter-spacing: -.025em; }
.auth-logo-sub { color: var(--udec-yellow) !important; opacity: .94; }
.sidebar-logo.official-brand .logo-img {
  height: 39px;
  max-width: 124px;
  border-radius: 12px;
  padding: 5px 6px;
}
.sidebar-logo.official-brand {
  align-items: center;
  gap: .75rem;
}
.topbar-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: max-content;
}
.topbar-brand-link .logo-img {
  height: 38px;
  max-width: 150px;
  border: 1px solid rgba(0, 72, 43, .08);
}

/* Login institucional con fondo claro y alto contraste */
.auth-screen {
  background:
    radial-gradient(circle at 82% 14%, rgba(121,192,0,.22), transparent 24rem),
    linear-gradient(135deg, #002f1d 0%, #00482B 42%, #006b39 100%);
}
.auth-screen::before {
  opacity: .18;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.05) 25%, transparent 25%);
  background-size: 34px 34px;
}
.auth-container {
  max-width: 468px;
  padding: 2rem 1.25rem;
}
.auth-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  padding: 1.45rem;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.auth-card-header { margin-bottom: 1.3rem; }
.auth-card-header h1 {
  color: var(--udec-primary);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
}
.auth-card-header p { color: #53635b; font-weight: 600; }
.auth-tabs {
  background: #eef5ee;
  border: 1px solid rgba(0,72,43,.08);
  border-radius: 18px;
  padding: .35rem;
  margin-bottom: 1.5rem;
}
.auth-tab {
  color: #456256;
  border-radius: 14px;
  border-bottom: 0;
  justify-content: center;
  font-weight: 800;
}
.auth-tab.active {
  background: #fff;
  color: var(--udec-primary);
  box-shadow: 0 8px 22px rgba(0,72,43,.10);
}
.auth-form .form-group label,
.form-label-row label {
  color: var(--udec-primary) !important;
  font-weight: 800;
}
.auth-form .form-input {
  background: #fff;
  border: 1.5px solid #d9e5dc;
  color: #21362b;
  min-height: 48px;
}
.auth-form .form-input::placeholder { color: #8b9c92; }
.auth-form .form-input:focus {
  border-color: var(--udec-secondary);
  box-shadow: var(--focus-ring);
}
.forgot-link { color: var(--udec-secondary); font-weight: 800; }
.forgot-link:hover { color: var(--udec-primary); }
.btn-auth,
.btn-primary {
  background: linear-gradient(135deg, var(--udec-primary), var(--udec-secondary));
  color: #fff;
  border-radius: 16px;
  min-height: 45px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 72, 43, .22);
}
.btn-auth:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #00351f, #006c39);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 72, 43, .30);
}
.btn-secondary {
  background: #fff;
  border-color: #dbe6df;
  color: var(--udec-primary);
  border-radius: 14px;
  font-weight: 800;
}
.btn-secondary:hover {
  background: #eef7ee;
  border-color: rgba(0,123,62,.35);
  color: var(--udec-primary);
}
.auth-footer { color: rgba(255,255,255,.78); text-align: center; }

/* Layout principal */
.app { background: transparent; }
.sidebar {
  background:
    linear-gradient(180deg, rgba(0,72,43,.98) 0%, #002f1d 58%, #07120d 100%);
  border-right: 1px solid rgba(255,255,255,.10);
}
.sidebar::after {
  content: '';
  position: absolute;
  inset: auto -60px -90px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(121,192,0,.16);
  filter: blur(4px);
}
.sidebar-header { padding: 1rem .9rem; border-bottom-color: rgba(255,255,255,.12); }
.nav-section-label { color: rgba(255,255,255,.46); }
.nav-item {
  border-radius: 16px;
  color: rgba(255,255,255,.74);
  min-height: 44px;
  position: relative;
}
.nav-item:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(251,225,34,.22), rgba(121,192,0,.17));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--udec-yellow), 0 10px 24px rgba(0,0,0,.14);
}
.nav-item.active svg { color: var(--udec-yellow); }
.nav-badge {
  background: var(--udec-yellow);
  color: var(--udec-primary);
  font-weight: 900;
}
.sidebar-user {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}
.sidebar-user:hover { background: rgba(255,255,255,.12); }
.sidebar-user-name { color: #fff; }
.sidebar-user-role { color: rgba(255,255,255,.64); }
.sidebar-avatar,
.topbar-avatar,
.avatar-menu-avatar {
  background: linear-gradient(135deg, var(--udec-lime), var(--udec-secondary)) !important;
  color: #082616 !important;
  font-weight: 900;
}
.sidebar-logout { color: rgba(255,255,255,.70); border-radius: 14px; }
.sidebar-logout:hover { background: rgba(198,40,40,.20); color: #fff; }

.main-wrapper { background: transparent; }
.topbar {
  height: 72px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(0,72,43,.10);
  box-shadow: 0 8px 30px rgba(0,72,43,.07);
  backdrop-filter: blur(16px);
}
.topbar-search {
  max-width: 360px;
  border-radius: 999px;
  background: #f6faf6;
  border-color: #dce8df;
  position: relative;
}
.topbar-search:focus-within { border-color: var(--udec-secondary); box-shadow: var(--focus-ring); }
.topbar-tab {
  border-radius: 999px;
  color: #566a60;
  font-weight: 800;
}
.topbar-tab.active {
  color: var(--udec-primary);
  background: #e9f5e8;
}
.topbar-notif,
.topbar-avatar { border-radius: 14px; }
.notif-dot { background: var(--udec-yellow); }
.main-content { padding: clamp(1rem, 2vw, 2rem); }

.institutional-footer {
  margin: 0 auto;
  width: min(100%, 1400px);
  padding: 0 2rem 1.5rem;
  color: #63736a;
  font-size: .82rem;
}
.institutional-footer-inner {
  border-top: 1px solid rgba(0,72,43,.10);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.institutional-footer strong { color: var(--udec-primary); }

/* Hero y encabezados */
.page-header {
  background:
    linear-gradient(135deg, rgba(0,72,43,.98), rgba(0,123,62,.92) 62%, rgba(121,192,0,.82)),
    radial-gradient(circle at right, rgba(251,225,34,.30), transparent 18rem);
  color: #fff;
  border-radius: 28px;
  padding: clamp(1.15rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}
.page-header::after {
  content: 'UCundinamarca';
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  color: rgba(255,255,255,.075);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -.08em;
  pointer-events: none;
}
.page-header.flex-between { display: flex; align-items: center; justify-content: space-between; }
.page-eyebrow {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
  color: var(--udec-yellow);
  backdrop-filter: blur(10px);
}
.page-title {
  color: #fff;
  font-weight: 900;
  letter-spacing: -.05em;
}
.page-title span { color: var(--udec-yellow); }
.page-subtitle { color: rgba(255,255,255,.84); font-weight: 500; }
.page-header .btn-secondary {
  background: rgba(255,255,255,.96);
  color: var(--udec-primary);
}
.page-header .btn-primary {
  background: var(--udec-yellow);
  color: var(--udec-primary);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.page-header .btn-primary:hover { background: #fff06a; }

/* Cards, tablas y filtros */
.card,
.stat-card,
.config-section {
  border: 1px solid rgba(0,72,43,.08);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.card:hover,
.stat-card:hover { box-shadow: 0 18px 44px rgba(0,72,43,.14); }
.card-header {
  background: linear-gradient(180deg, #fff, #fbfdfb);
  border-bottom-color: rgba(0,72,43,.08);
  border-radius: 24px 24px 0 0;
}
.card-title { color: var(--udec-primary); font-weight: 900; }
.card-subtitle { color: #66766e; }
.stat-card {
  min-height: 132px;
  align-items: center;
}
.stat-card::before { height: 5px; }
.stat-icon {
  border-radius: 18px;
  width: 52px;
  height: 52px;
}
.stat-value { color: var(--udec-primary); font-weight: 900; }
.stat-label { color: #5b6f64; font-weight: 800; }
.table-wrapper { border-radius: 20px; }
.data-table thead tr { background: #edf6ed; }
.data-table th { color: var(--udec-primary); font-weight: 900; }
.data-table tbody tr:hover { background: #f6fbf5; }
.badge-green { background: #e7f6e7; color: var(--udec-primary); border-color: rgba(0,123,62,.20); }
.badge-gray { background: #f2f5f1; color: #506257; border-color: rgba(0,72,43,.10); }
.tag {
  background: #eaf6e9;
  color: var(--udec-primary);
  border-color: rgba(0,123,62,.18);
  font-weight: 900;
}
.filter-row {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,72,43,.08);
  border-radius: 22px;
  padding: .75rem;
  box-shadow: 0 8px 26px rgba(0,72,43,.06);
}
.filter-input {
  border-radius: 16px;
  background: #fff;
  border-color: #dce8df;
}
.filter-input:focus-within { border-color: var(--udec-secondary); box-shadow: var(--focus-ring); }
.form-input,
textarea.form-input,
select.form-input {
  border-radius: 16px !important;
  border-color: #dce8df !important;
}
.form-input:focus,
textarea.form-input:focus,
select.form-input:focus {
  border-color: var(--udec-secondary) !important;
  box-shadow: var(--focus-ring) !important;
}

/* Wizard de evaluación */
.wizard-progress {
  background: #fff;
  border: 1px solid rgba(0,72,43,.08);
  border-radius: 999px;
  padding: .65rem;
  box-shadow: var(--shadow-sm);
}
.wizard-step-dot.active { background: var(--udec-secondary); box-shadow: 0 0 0 5px rgba(121,192,0,.20); }
.wizard-step-dot.done { background: var(--udec-yellow); color: var(--udec-primary); }
.wizard-step-line.done { background: linear-gradient(90deg, var(--udec-lime), var(--udec-yellow)); }
.star-btn {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.08));
}
.camera-container,
.camera-preview,
.upload-zone {
  border-radius: 24px !important;
  border-color: rgba(0,123,62,.18) !important;
}
.upload-zone { background: linear-gradient(180deg, #fff, #f7fbf6); }
.upload-zone:hover { box-shadow: var(--focus-ring); }

/* Buscador global */
.global-search-panel {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  z-index: 80;
  background: #fff;
  border: 1px solid rgba(0,72,43,.10);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0,72,43,.16);
  padding: .45rem;
  max-height: 320px;
  overflow: auto;
}
.global-search-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  text-align: left;
  padding: .75rem .85rem;
  border-radius: 14px;
  color: var(--text-strong);
}
.global-search-item:hover { background: #eff8ee; }
.global-search-item strong { display:block; font-size:.86rem; color:var(--udec-primary); }
.global-search-item small { color:#6a7a70; }
.global-search-empty { padding: .9rem; color: #6a7a70; font-size: .88rem; }

/* Modales y notificaciones */
.modal {
  border-radius: 28px;
  border: 1px solid rgba(0,72,43,.10);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.modal-header {
  background: linear-gradient(135deg, var(--udec-primary), var(--udec-secondary));
  color: #fff;
  border-radius: 28px 28px 0 0;
}
.modal-header h3 { color: #fff; font-weight: 900; }
.modal-close { color: #fff; }
.modal-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.toast { border-left: 5px solid var(--udec-secondary); }
.toast-success { border-left-color: var(--udec-lime); }
.toast-warning { border-left-color: var(--udec-gold); }
.toast-error { border-left-color: #C62828; }

/* Accesibilidad de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Responsive mejorado */
@media (max-width: 1100px) {
  .topbar-brand-link { display: none; }
}
@media (max-width: 900px) {
  .topbar { height: 66px; padding: 0 1rem; }
  .topbar-search { max-width: none; }
  .institutional-footer { padding: 0 1.25rem 1.25rem; }
}
@media (max-width: 640px) {
  .auth-logo.official-brand { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 1.1rem; border-radius: 24px; }
  .sidebar { width: min(86vw, 320px); }
  .main-content { padding: .9rem; }
  .topbar-right { gap: .35rem; }
  .topbar-search input { min-width: 0; }
  .page-header { border-radius: 22px; }
  .page-header.flex-between { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn-primary,
  .page-actions .btn-secondary { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .filter-row { border-radius: 18px; }
  .institutional-footer-inner { flex-direction: column; }
  .global-search-panel { position: fixed; top: 66px; left: .75rem; right: .75rem; }
}

/* Nota de acceso del administrador inicial: reemplaza antiguos accesos de prueba */
.auth-admin-note {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(0, 123, 62, .18);
  border-radius: 14px;
  background: rgba(0, 123, 62, .07);
  color: var(--udec-verde-oscuro, #00482B);
  font-size: .82rem;
  line-height: 1.45;
}


/* Configuración institucional mejorada */
.field-help {
  display: block;
  margin-top: .45rem;
  color: #66766e;
  font-size: .76rem;
  line-height: 1.35;
}

.config-hero {
  align-items: center;
  overflow: hidden;
}
.config-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--udec-secondary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.config-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,72,43,.10);
  border-radius: 20px;
  padding: .85rem 1rem;
  color: var(--udec-primary);
  box-shadow: var(--shadow-sm);
}
.config-hero-badge span { font-weight: 900; }
.config-hero-badge small { color: #66766e; font-weight: 800; }

.config-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.config-status-card {
  display: flex;
  gap: .9rem;
  background: #fff;
  border: 1px solid rgba(0,72,43,.08);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.config-status-card.success { border-color: rgba(46,125,50,.22); }
.config-status-card.warning { border-color: rgba(245,127,23,.26); }
.config-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--udec-primary);
  background: #eef7ee;
  flex: 0 0 auto;
}
.config-status-card.warning .config-status-icon { background: var(--warning-light); color: var(--warning); }
.config-status-card span {
  display: block;
  color: #66766e;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.config-status-card strong {
  display: block;
  color: var(--udec-primary);
  font-size: 1rem;
  margin: .1rem 0 .2rem;
}
.config-status-card p {
  color: #65746d;
  font-size: .82rem;
  margin: 0;
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 1.25rem;
  align-items: stretch;
}
.config-card-main,
.config-policy-card { height: 100%; }
.config-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.config-section-head h3 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
.config-section-sub {
  color: #66766e;
  font-size: .86rem;
  margin-top: .35rem;
}
.config-color-row {
  display: flex;
  gap: .65rem;
  align-items: center;
}
.config-color-picker {
  width: 54px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 3px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #dce8df;
  cursor: pointer;
}

.config-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}
.config-policy-card {
  background:
    radial-gradient(circle at top right, rgba(251,225,34,.24), transparent 12rem),
    linear-gradient(180deg, #ffffff, #f7fbf6);
}
.domain-pill {
  display: inline-flex;
  align-items: center;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: var(--udec-primary);
  color: #fff;
  font-size: .86rem;
  font-weight: 900;
  margin: .3rem 0 .85rem;
}
.config-policy-card p {
  color: #53635b;
  font-size: .9rem;
  line-height: 1.55;
}
.config-check-list {
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}
.config-check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: #2d4638;
  font-size: .84rem;
  font-weight: 700;
}
.config-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -.05rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e7f6e7;
  color: var(--udec-primary);
  font-weight: 900;
  font-size: .7rem;
}
.config-grid-mail {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.config-state-badge {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 999px;
  padding: .45rem .7rem;
  font-size: .75rem;
  font-weight: 900;
}
.config-state-badge.is-ok { background: var(--success-light); color: var(--success); }
.config-state-badge.is-warn { background: var(--warning-light); color: var(--warning); }

.smtp-test-panel {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: end;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(0,72,43,.10);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f9fcf8);
}
.smtp-test-panel h4 {
  color: var(--udec-primary);
  margin: 0 0 .25rem;
  font-size: .98rem;
}
.smtp-test-panel p {
  color: #66766e;
  font-size: .84rem;
  margin: 0;
}
.smtp-test-controls {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.smtp-test-controls .form-input { min-width: 230px; flex: 1; }
.smtp-test-result {
  grid-column: 1 / -1;
  border-radius: 16px;
  padding: .75rem .9rem;
  font-size: .86rem;
  font-weight: 800;
}
.smtp-test-result.is-loading { background: var(--info-light); color: var(--info); }
.smtp-test-result.is-ok { background: var(--success-light); color: var(--success); }
.smtp-test-result.is-error { background: var(--danger-light); color: var(--danger); }

.config-guide {
  background:
    radial-gradient(circle at 100% 0%, rgba(251,225,34,.28), transparent 11rem),
    linear-gradient(135deg, #fffef0, #ffffff);
  border-color: rgba(218,170,0,.28) !important;
}
.config-guide ol {
  color: #415247;
  line-height: 1.85;
  padding-left: 1.25rem;
  font-size: .9rem;
}
.config-guide code {
  background: rgba(0,72,43,.08);
  color: var(--udec-primary);
  border-radius: .45rem;
  padding: .12rem .35rem;
  font-weight: 900;
}
.config-guide p {
  color: #66766e;
  font-size: .86rem;
  margin-top: .75rem;
}

@media (max-width: 980px) {
  .config-status-grid,
  .config-layout,
  .smtp-test-panel {
    grid-template-columns: 1fr;
  }
  .config-hero-badge {
    align-items: flex-start;
  }
}

/* ════════════════════════════════════════
   Mejoras: notificaciones, perfil, notas finales y responsive
════════════════════════════════════════ */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.main-wrapper,
.app-shell,
.main-content {
  min-width: 0;
}

.notif-wrapper { position: relative; }
.notif-panel {
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  width: min(420px, 92vw);
  max-height: min(74vh, 680px);
  overflow: hidden;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,72,43,.14);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,48,30,.20);
  z-index: 120;
  backdrop-filter: blur(16px);
}
.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid rgba(0,72,43,.10);
  background: linear-gradient(135deg, rgba(0,72,43,.06), rgba(121,192,0,.10));
}
.notif-panel-title {
  font-weight: 950;
  color: var(--udec-primary);
  letter-spacing: -.02em;
}
.notif-mark-all {
  border: 0;
  background: rgba(0,123,62,.10);
  color: var(--udec-secondary);
  font-weight: 900;
  font-size: .78rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  cursor: pointer;
}
.notif-mark-all:hover { background: rgba(0,123,62,.16); }
.notif-list {
  padding: .85rem;
  overflow: auto;
  max-height: calc(min(74vh, 680px) - 68px);
}
.notif-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .95rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(251,225,34,.28), transparent 7.5rem),
    linear-gradient(135deg, #f6fbf7, #ffffff);
  border: 1px solid rgba(0,123,62,.14);
  margin-bottom: .8rem;
}
.notif-summary-kicker {
  display: block;
  color: #6a7a70;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .15rem;
}
.notif-summary-card strong { color: var(--udec-primary); font-size: 1rem; }
.notif-summary-badge {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--udec-primary), var(--udec-secondary));
  box-shadow: 0 12px 26px rgba(0,72,43,.22);
}
.notif-group { margin-top: .85rem; }
.notif-group-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #53645b;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .1rem .2rem .45rem;
}
.notif-item.enhanced {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .78rem;
  align-items: start;
  text-align: left;
  border: 1px solid rgba(0,72,43,.10);
  background: #fff;
  border-radius: 18px;
  padding: .85rem;
  margin-bottom: .55rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.notif-item.enhanced:hover {
  transform: translateY(-2px);
  border-color: rgba(0,123,62,.24);
  box-shadow: 0 14px 32px rgba(0,72,43,.12);
}
.notif-item.enhanced.unread {
  background: linear-gradient(135deg, rgba(121,192,0,.10), rgba(255,255,255,1));
  border-color: rgba(0,123,62,.26);
}
.notif-icon,
.notif-item-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--udec-primary);
  background: rgba(0,123,62,.10);
  flex-shrink: 0;
}
.notif-icon-info, .notif-item-icon.notif-icon-info { color: var(--udec-primary); background: rgba(0,123,62,.10); }
.notif-icon-pendiente, .notif-item-icon.notif-icon-pendiente { color: #8a5b00; background: rgba(218,170,0,.18); }
.notif-icon-success, .notif-item-icon.notif-icon-success { color: #116b3a; background: rgba(22,163,74,.13); }
.notif-icon-warning, .notif-item-icon.notif-icon-warning { color: #8a5b00; background: rgba(218,170,0,.18); }
.notif-icon-tip, .notif-item-icon.notif-icon-tip { color: #005b4f; background: rgba(0,169,157,.13); }
.notif-body { min-width: 0; }
.notif-title-row {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: flex-start;
}
.notif-title-row strong {
  color: var(--text-strong);
  font-size: .9rem;
  line-height: 1.25;
}
.notif-badge {
  color: var(--udec-secondary);
  background: rgba(0,123,62,.10);
  border-radius: 999px;
  padding: .15rem .42rem;
  font-size: .65rem;
  font-weight: 950;
  white-space: nowrap;
}
.notif-body p {
  margin: .25rem 0 .4rem;
  color: #5f7067;
  font-size: .82rem;
  line-height: 1.45;
}
.notif-time {
  color: #839188;
  font-size: .72rem;
  font-weight: 800;
}
.notif-action {
  color: #97a59d;
  margin-top: .35rem;
}
.notif-empty.enhanced {
  display: grid;
  place-items: center;
  gap: .65rem;
  text-align: center;
  color: #6b7b72;
  padding: 2.2rem 1rem;
}
.notif-empty.enhanced h4 { color: var(--udec-primary); margin: 0; }
.notif-empty.enhanced p { margin: 0; max-width: 28ch; }

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(251,225,34,.26), transparent 13rem),
    linear-gradient(135deg, var(--udec-primary), var(--udec-secondary));
  color: #fff;
  box-shadow: 0 22px 50px rgba(0,72,43,.22);
  margin-bottom: 1.15rem;
}
.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.profile-avatar-xl {
  width: 78px;
  height: 78px;
  display: inline-grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
  flex-shrink: 0;
}
.profile-hero h2 {
  margin: 0 0 .25rem;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -.035em;
}
.profile-hero p {
  margin: 0;
  color: rgba(255,255,255,.82);
  word-break: break-word;
}
.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .7rem;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .36rem .65rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  font-size: .74rem;
  font-weight: 900;
}
.profile-hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.profile-hero-actions .btn-secondary {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.24);
}
.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.profile-sidebar-card.enhanced,
.profile-main-card.enhanced,
.profile-edit-card,
.final-report-card,
.grading-config-card {
  border: 1px solid rgba(0,72,43,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 32px rgba(0,72,43,.08);
}
.profile-sidebar-card.enhanced { padding: 1rem; }
.profile-sidebar-top {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(0,72,43,.08);
}
.profile-mini-avatar {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--udec-primary), var(--udec-secondary));
}
.profile-sidebar-top strong { color: var(--udec-primary); }
.profile-sidebar-top p { margin: .15rem 0 0; color: #6b7b72; font-size: .83rem; }
.profile-stats-mini.enhanced {
  display: grid;
  gap: .65rem;
  margin-top: .85rem;
}
.profile-stats-mini.enhanced .mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: 16px;
  background: #f7fbf8;
  border: 1px solid rgba(0,72,43,.07);
}
.profile-stats-mini.enhanced .mini-stat span { color: #65756c; font-size: .82rem; font-weight: 800; }
.profile-stats-mini.enhanced .mini-stat strong { color: var(--udec-primary); font-size: 1rem; }
.profile-main-card.enhanced { padding: 1.1rem; }
.profile-edit-card { padding: 1rem; margin-top: 1rem; }
.profile-section-title h3,
.profile-edit-card h3 {
  color: var(--udec-primary);
  margin-bottom: .2rem;
}
.profile-section-title p,
.profile-edit-card p { color: #6b7b72; margin-top: 0; }
.profile-info-grid,
.session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.profile-info-item,
.session-info-item.enhanced {
  padding: .85rem;
  border-radius: 16px;
  background: #f7fbf8;
  border: 1px solid rgba(0,72,43,.08);
  min-width: 0;
}
.profile-info-item label,
.session-info-item.enhanced label {
  display: block;
  color: #728179;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}
.profile-info-item strong,
.session-info-item.enhanced strong {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}

.grading-config-card { padding: 1.1rem; margin-top: 1rem; }
.weights-grid,
.grade-form-grid,
.final-grade-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.weight-input-card {
  padding: .9rem;
  border: 1px solid rgba(0,72,43,.10);
  border-radius: 18px;
  background: #f7fbf8;
}
.weight-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}
.weight-card-top strong { color: var(--udec-primary); }
.weight-card-top small { color: #6b7b72; }
.weight-input-row {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.weight-input-row input {
  width: 100%;
  min-width: 0;
  font-weight: 950;
  text-align: center;
}
.weight-input-row span { color: #728179; font-weight: 950; }
.grading-formula-preview,
.final-grade-preview-card {
  margin-top: .9rem;
  padding: .9rem 1rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(251,225,34,.22), transparent 8rem),
    linear-gradient(135deg, #ffffff, #f5fbf6);
  border: 1px solid rgba(0,123,62,.14);
  color: #4e5f56;
  line-height: 1.55;
}
.grading-formula-preview strong,
.final-grade-preview-card strong { color: var(--udec-primary); }

.final-grade-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: .42rem .65rem;
  border-radius: 999px;
  font-weight: 950;
  font-size: .78rem;
  background: #eef4f0;
  color: #607169;
  border: 1px solid rgba(0,72,43,.08);
  white-space: nowrap;
}
.final-grade-mini.high { background: rgba(22,163,74,.12); color: #116b3a; border-color: rgba(22,163,74,.22); }
.final-grade-mini.mid { background: rgba(251,225,34,.18); color: #765600; border-color: rgba(218,170,0,.24); }
.final-grade-mini.low { background: rgba(220,38,38,.10); color: #a61b1b; border-color: rgba(220,38,38,.20); }
.final-grade-mini.pending { background: rgba(100,116,139,.10); color: #64748b; border-color: rgba(100,116,139,.16); }
.final-grade-detail-card {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,72,43,.05), rgba(121,192,0,.08));
  border: 1px solid rgba(0,72,43,.11);
  margin: 1rem 0;
}
.final-grade-detail-head,
.grade-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.final-grade-detail-head h4,
.grade-modal-head h3 { color: var(--udec-primary); margin: 0; }
.final-grade-detail-head p,
.grade-modal-head p { color: #6b7b72; margin: .15rem 0 0; }
.final-grade-breakdown > div {
  padding: .75rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,72,43,.08);
}
.final-grade-breakdown span {
  display: block;
  color: #738179;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.final-grade-breakdown strong { color: var(--text-strong); }
.final-grade-observation {
  margin-top: .85rem;
  padding: .85rem;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: #52635a;
  border: 1px dashed rgba(0,72,43,.18);
}
.grade-form-grid { margin-top: .95rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade-form-grid .form-group.full { grid-column: 1 / -1; }
.final-report-card { padding: 1rem; margin-top: 1rem; }
.final-report-card .table-wrapper { margin-top: .75rem; }

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table { min-width: 760px; }
.table-wrapper::-webkit-scrollbar { height: 9px; }
.table-wrapper::-webkit-scrollbar-thumb { background: rgba(0,72,43,.18); border-radius: 999px; }

@media (max-width: 1180px) {
  .profile-dashboard-grid { grid-template-columns: 1fr; }
  .profile-sidebar-card.enhanced { order: 2; }
}

@media (max-width: 900px) {
  .topbar {
    gap: .75rem;
  }
  .topbar-left {
    flex: 1;
    min-width: 0;
  }
  .topbar-search {
    flex: 1;
    min-width: 0;
  }
  .topbar-nav-tabs { display: none; }
  .weights-grid,
  .final-grade-breakdown {
    grid-template-columns: 1fr;
  }
  .config-section-head,
  .final-grade-detail-head,
  .grade-modal-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .notif-panel {
    position: fixed;
    top: 74px;
    right: .75rem;
    left: .75rem;
    width: auto;
    max-height: calc(100vh - 92px);
  }
  .notif-list { max-height: calc(100vh - 160px); }
  .notif-item.enhanced { grid-template-columns: auto 1fr; }
  .notif-action { display: none; }
  .profile-hero,
  .profile-hero-left {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-hero-actions {
    justify-content: stretch;
    width: 100%;
  }
  .profile-hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .profile-info-grid,
  .session-grid,
  .grade-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-form-actions .btn-primary,
  .profile-form-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .modal {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    margin: .75rem;
  }
  .modal-body { max-height: calc(100vh - 170px); overflow: auto; }
}

@media (max-width: 560px) {
  .topbar {
    height: auto;
    min-height: 66px;
    padding: .65rem .8rem;
  }
  .topbar-search {
    order: 3;
    flex-basis: 100%;
    margin-top: .45rem;
  }
  .topbar-right { flex-shrink: 0; }
  .main-content { padding: .75rem; }
  .page-header,
  .profile-hero,
  .profile-main-card.enhanced,
  .profile-edit-card,
  .final-report-card,
  .grading-config-card {
    border-radius: 20px;
  }
  .profile-avatar-xl { width: 64px; height: 64px; border-radius: 20px; }
  .notif-summary-card { flex-direction: column; align-items: flex-start; }
  .notif-summary-badge { width: 100%; }
  .weight-input-card { padding: .75rem; }
  .data-table { min-width: 680px; }
}

/* ───────────────────────────────────────────────
   Mejoras ciclos/equipos/retroalimentación PGC
─────────────────────────────────────────────── */
.cycle-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:0 0 1rem}.cycle-summary-card{background:#fff;border:1px solid rgba(0,72,43,.12);border-radius:16px;padding:1rem;box-shadow:0 10px 24px rgba(0,72,43,.06)}.cycle-summary-card span{display:block;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--udec-verde-oscuro,#00482B)}.cycle-summary-card strong{display:block;font-size:2rem;line-height:1;margin:.35rem 0;color:var(--udec-verde,#007B3E)}.cycle-summary-card small{color:var(--gray-500);font-size:.76rem}.cycle-badge{display:inline-flex;align-items:center;gap:.25rem;border-radius:999px;padding:.22rem .55rem;font-size:.72rem;font-weight:800;line-height:1;border:1px solid transparent;white-space:nowrap}.cycle-1{background:rgba(121,192,0,.14);color:#3d6500;border-color:rgba(121,192,0,.35)}.cycle-2{background:rgba(0,123,62,.12);color:#006233;border-color:rgba(0,123,62,.28)}.cycle-3{background:rgba(0,72,43,.12);color:#00482B;border-color:rgba(0,72,43,.25)}.cycle-none{background:var(--gray-100);color:var(--gray-500);border-color:var(--gray-200)}.project-cell-main{display:flex;flex-direction:column;gap:3px}.project-cell-main strong{font-size:.88rem;line-height:1.25}.project-cycle-stack{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem}.team-mini-block{display:flex;flex-direction:column;gap:.35rem;min-width:170px}.team-mini-name{font-size:.78rem;font-weight:800;color:var(--udec-verde-oscuro,#00482B)}.team-mini-members{display:flex;flex-wrap:wrap;gap:.25rem;max-width:220px}.team-mini-members.big{max-width:100%;gap:.35rem}.feedback-mini{border:1px solid rgba(0,123,62,.15);background:rgba(0,123,62,.06);border-radius:12px;padding:.45rem .6rem;display:flex;gap:.45rem;align-items:center;color:var(--udec-verde-oscuro,#00482B);cursor:pointer}.feedback-mini strong{font-size:1rem}.feedback-mini span{font-size:.76rem;color:var(--gray-600)}.row-actions{display:flex;gap:.25rem;flex-wrap:wrap}.pgc-form-section{border:1px solid rgba(0,72,43,.12);border-radius:16px;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,#fff,rgba(248,251,249,.75))}.section-title-sm{font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--udec-verde-oscuro,#00482B);margin-bottom:.75rem}.cycle-preview-box{min-height:42px;border:1px dashed rgba(0,72,43,.25);border-radius:12px;padding:.55rem .75rem;display:flex;align-items:center;gap:.5rem;background:rgba(0,72,43,.03);color:var(--gray-500);font-size:.84rem}.cycle-preview-box small{color:var(--gray-500);font-weight:700}.creator-picker-row{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:center}.creator-selected-list{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem;min-height:38px}.creator-chip{display:inline-grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:.1rem .5rem;align-items:center;border-radius:14px;background:rgba(0,123,62,.08);border:1px solid rgba(0,123,62,.18);padding:.48rem .55rem .48rem .7rem}.creator-chip strong{font-size:.78rem;color:var(--udec-verde-oscuro,#00482B)}.creator-chip small{font-size:.68rem;color:var(--gray-500)}.creator-chip button{grid-row:1/3;grid-column:2;border:0;background:#fff;color:var(--danger);border-radius:999px;width:22px;height:22px;font-size:1rem;line-height:1;cursor:pointer}.empty-inline{display:inline-flex;align-items:center;color:var(--gray-400);font-size:.82rem;padding:.45rem .2rem}.project-detail-hero{background:linear-gradient(135deg,var(--green-700),var(--green-500));border-radius:var(--radius-lg);padding:1.25rem;color:white;margin-bottom:1rem}.project-detail-hero>div{display:flex;gap:.5rem;align-items:center;margin-bottom:.6rem}.project-detail-hero .cycle-badge{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.3);color:#fff}.project-detail-hero h3{font-family:var(--font-display);font-size:1.25rem;letter-spacing:-.02em;margin-bottom:.75rem}.project-detail-hero p{font-size:.86rem;opacity:.9}.project-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}.detail-info-card{background:var(--gray-50);border-radius:var(--radius-md);padding:.875rem;border:1px solid var(--gray-150)}.detail-info-card span{display:block;font-size:.7rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--gray-500);margin-bottom:.35rem}.detail-info-card strong{display:block;font-size:.92rem;color:var(--gray-800)}.detail-info-card small{display:block;margin-top:.2rem;color:var(--gray-500);font-size:.72rem}.detail-section{margin-top:1rem}.team-assigned-card{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;border:1px solid rgba(0,123,62,.15);background:rgba(0,123,62,.04);border-radius:14px;padding:1rem}.team-assigned-card strong{display:block;color:var(--udec-verde-oscuro,#00482B)}.team-assigned-card small{display:block;color:var(--gray-500);margin-top:.15rem}.feedback-list{display:flex;flex-direction:column;gap:.8rem;max-height:360px;overflow:auto;padding-right:.25rem}.feedback-card{border:1px solid rgba(0,72,43,.12);border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(0,72,43,.05);padding:1rem}.feedback-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.7rem}.feedback-card-head strong{display:block;color:var(--gray-800)}.feedback-card-head small{display:block;color:var(--gray-500);font-size:.72rem;margin-top:.15rem}.feedback-score{min-width:58px;text-align:center;border-radius:12px;background:rgba(251,225,34,.18);border:1px solid rgba(218,170,0,.25);padding:.35rem .4rem;font-weight:900;color:#7c5b00}.feedback-score span{font-size:.68rem;color:#856b00;margin-left:1px}.criteria-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem;margin-bottom:.65rem}.criteria-mini-grid span{background:var(--gray-50);border-radius:10px;padding:.35rem .45rem;font-size:.72rem;color:var(--gray-600);font-weight:700;text-align:center}.feedback-comment-block{border-left:3px solid var(--udec-verde,#007B3E);background:rgba(0,123,62,.04);border-radius:0 10px 10px 0;padding:.55rem .65rem;margin:.45rem 0}.feedback-comment-block span{display:block;font-size:.69rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--udec-verde-oscuro,#00482B);margin-bottom:.2rem}.feedback-comment-block p{font-size:.82rem;color:var(--gray-700);line-height:1.4}.empty-feedback{border:1px dashed rgba(0,72,43,.25);border-radius:14px;background:rgba(0,72,43,.03);padding:1rem;display:flex;flex-direction:column;gap:.25rem;color:var(--gray-500)}.empty-feedback strong{color:var(--udec-verde-oscuro,#00482B)}.team-detail-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1rem}.team-detail-head h3{color:var(--udec-verde-oscuro,#00482B);font-size:1.1rem}.team-detail-head p{color:var(--gray-500);font-size:.85rem;margin-top:.25rem}.team-detail-list{list-style:none;display:flex;flex-direction:column;gap:.625rem}.team-detail-list li{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.55rem;background:var(--gray-50);border-radius:10px}.team-edit-members{list-style:none;display:flex;flex-direction:column;gap:.45rem;margin-top:.65rem;max-height:190px;overflow:auto}.team-edit-members li:not(.empty-inline){display:flex;align-items:center;justify-content:space-between;padding:.55rem .7rem;background:var(--green-50);border:1px solid var(--green-100);border-radius:10px;font-size:.85rem}.team-edit-members strong{display:block;color:var(--udec-verde-oscuro,#00482B)}.team-edit-members small{display:block;color:var(--gray-500);font-size:.7rem;margin-top:.1rem}.team-member-item small{margin-left:auto;color:rgba(255,255,255,.85);font-size:.68rem}
@media (max-width: 980px){.cycle-summary-grid,.project-detail-grid{grid-template-columns:1fr 1fr}.team-assigned-card{flex-direction:column}.criteria-mini-grid{grid-template-columns:1fr 1fr}}@media (max-width: 720px){.cycle-summary-grid,.project-detail-grid{grid-template-columns:1fr}.creator-picker-row{grid-template-columns:1fr}.projects-table thead{display:none}.projects-table,.projects-table tbody,.projects-table tr,.projects-table td{display:block;width:100%}.projects-table tr{border-bottom:1px solid var(--gray-150);padding:.85rem}.projects-table td{border:0!important;padding:.4rem 0!important}.projects-table td::before{content:attr(data-label);display:block;font-size:.68rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--gray-400);margin-bottom:.2rem}.feedback-card-head{flex-direction:column}.criteria-mini-grid{grid-template-columns:1fr}.team-detail-list li{grid-template-columns:auto 1fr}.team-detail-list .cycle-badge{grid-column:2}}
