/* ==========================================================================
   Bitácora de Obra — sistema de diseño
   ========================================================================== */
:root {
  --navy-950: #07131f;
  --navy-900: #0b1b2b;
  --navy-800: #10283d;
  --navy-700: #173a55;
  --amber: #f5b41a;
  --amber-600: #d99a00;
  --amber-soft: #fff5d6;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e6e8ec;
  --line-2: #eef0f3;
  --green: #0e9f6e;
  --green-soft: #e3f8ef;
  --red: #d92d20;
  --red-soft: #fee4e2;
  --blue: #175cd3;
  --blue-soft: #e8f1fd;
  --purple: #7a5af8;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -24px rgba(11, 27, 43, .35);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 264px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: var(--amber); color: var(--navy-900); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- estructura */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; }

.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 40;
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px 16px;
  color: #c4d0dc;
  background:
    radial-gradient(900px 380px at 15% -10%, rgba(245, 180, 26, .13), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border-right: 1px solid rgba(255, 255, 255, .04);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.sidebar > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 6px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(145deg, #ffd05a, var(--amber));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(245, 180, 26, .65);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { min-width: 0; }
.brand-name {
  display: block; color: #fff; font-size: 14.5px; font-weight: 700;
  letter-spacing: .06em; line-height: 1.15;
}
.brand-sub {
  display: block; color: #8fa3b6; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; margin-top: 3px; white-space: nowrap;
}

.project-switch { padding: 0 4px; }
.project-switch label {
  display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .14em;
  color: #7f95a9; margin: 0 6px 6px; font-weight: 600;
}
.project-picker {
  width: 100%; appearance: none;
  background: rgba(255, 255, 255, .055) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #e6edf4; border-radius: 9px; padding: 9px 30px 9px 11px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.project-picker:hover { background-color: rgba(255, 255, 255, .09); }
.project-picker option { color: var(--text); background: #fff; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 14px; }
.nav-label {
  padding: 0 12px 6px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #6f879c; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  color: #b9c7d5; font-size: 13px; font-weight: 500;
  border: 1px solid transparent; text-decoration: none;
  transition: background .14s, color .14s;
}
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; text-decoration: none; }
.nav-item.active {
  background: rgba(245, 180, 26, .12);
  border-color: rgba(245, 180, 26, .18);
  color: #fff; font-weight: 600;
  box-shadow: inset 3px 0 0 var(--amber);
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
.nav-item.active svg { color: var(--amber); opacity: 1; }
.nav-count {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 20px;
  background: var(--amber); color: var(--navy-900); font-size: 10.5px; font-weight: 800;
}

.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.sidebar-card {
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04);
  border-radius: 11px; padding: 11px 12px;
}
.sidebar-card .sc-label {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #7f95a9; font-weight: 700;
}
.sidebar-card .sc-value { color: #eaf0f6; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.sidebar-card .sc-value span { color: var(--amber); }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 8px 6px;
  border-radius: 10px; background: transparent; border: 1px solid transparent; width: 100%;
  text-align: left;
}
.user-chip:hover { background: rgba(255, 255, 255, .05); }
.user-chip .avatar { width: 32px; height: 32px; font-size: 11px; }
.user-chip-name { color: #eef3f8; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.user-chip-role { color: #8fa3b6; font-size: 10.5px; }
.user-chip .icon-btn { margin-left: auto; color: #8fa3b6; }
.user-chip .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 68px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.crumbs .crumb-project {
  max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-2); font-weight: 600;
}
.crumbs .sep { color: #cfd4dc; }
.crumbs .current { color: var(--text); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-date {
  display: flex; align-items: center; gap: 7px; padding: 7px 11px;
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.topbar-date svg { width: 14px; height: 14px; color: var(--muted-2); }

.bell {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--text-2);
}
.bell:hover { background: #f8f9fb; border-color: #d8dde5; }
.bell svg { width: 18px; height: 18px; }
.bell-dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 20px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.bell-dot[hidden] { display: none; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: linear-gradient(145deg, #dfe7ef, #c8d5e2); color: var(--navy-800);
  border: 1px solid rgba(11, 27, 43, .06); text-transform: uppercase;
}
.avatar.amber { background: linear-gradient(145deg, #ffe09a, var(--amber)); color: var(--navy-900); }
.avatar.blue { background: linear-gradient(145deg, #cfe0fb, #9fc0f5); color: #123a78; }
.avatar.green { background: linear-gradient(145deg, #c9f0e0, #8fdcc0); color: #075e45; }
.avatar.purple { background: linear-gradient(145deg, #e3dcff, #c5b8fb); color: #3b2a91; }
.avatar.red { background: linear-gradient(145deg, #ffd9d6, #f7b4ae); color: #8f1d14; }
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.avatar.sm { width: 26px; height: 26px; font-size: 9.5px; }

.user-menu { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
}
.user-menu-btn:hover { background: #f5f6f8; border-color: var(--line); }
.user-menu-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: left; }
.user-menu-role { font-size: 10.5px; color: var(--muted); text-align: left; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.dropdown[hidden] { display: none; }
.dropdown-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px;
  border: 0; background: transparent; border-radius: 7px; font-size: 12.5px; text-align: left;
  color: var(--text-2); text-decoration: none;
}
.dropdown-item:hover { background: #f5f6f8; text-decoration: none; color: var(--text); }
.dropdown-item.danger { color: var(--red); }
.dropdown-sep { height: 1px; background: var(--line-2); margin: 5px 4px; }
.dropdown-item svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------------- page */
.page { padding: 26px 28px 44px; max-width: 1460px; width: 100%; margin: 0 auto; flex: 1; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.page-eyebrow {
  font-size: 10px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 5px;
}
.page-title { font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.page-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid transparent; background: transparent;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  white-space: nowrap; text-decoration: none;
  transition: background .14s, border-color .14s, transform .05s, box-shadow .14s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy-900); color: #fff; border-color: var(--navy-900); box-shadow: 0 2px 4px rgba(11,27,43,.18); }
.btn-primary:hover:not(:disabled) { background: var(--navy-800); }
.btn-amber { background: var(--amber); color: var(--navy-900); border-color: var(--amber); box-shadow: 0 3px 8px -3px rgba(245,180,26,.6); }
.btn-amber:hover:not(:disabled) { background: #ffc63c; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover:not(:disabled) { background: #f8f9fb; border-color: #d5dae2; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: #eef0f3; color: var(--text); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover:not(:disabled) { background: #b42318; }
.btn-danger-soft { background: var(--red-soft); color: #912018; border-color: #fecdca; }
.btn-sm { height: 31px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn .spinner { width: 15px; height: 15px; border-width: 2px; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--muted); display: inline-grid; place-items: center;
}
.icon-btn:hover { background: #eef0f3; color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn.danger:hover { background: var(--red-soft); color: var(--red); }
.icon-btn.amber:hover { background: var(--amber-soft); color: var(--amber-600); }

.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner.dark { border-color: rgba(11, 27, 43, .18); border-top-color: var(--navy-900); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ tarjetas */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2);
}
.card-title { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.card-body { padding: 18px; }
.card-actions { display: flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px; box-shadow: var(--shadow-sm);
}
.kpi-icon {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; background: #f2f4f7; color: var(--text-2);
}
.kpi-icon svg { width: 17px; height: 17px; }
.kpi-icon.amber { background: var(--amber-soft); color: var(--amber-600); }
.kpi-icon.green { background: var(--green-soft); color: #067647; }
.kpi-icon.blue { background: var(--blue-soft); color: var(--blue); }
.kpi-icon.red { background: var(--red-soft); color: var(--red); }
.kpi-value { font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 11px; color: var(--muted); margin-top: 3px; }
.kpi-delta { font-size: 10.5px; font-weight: 700; margin-top: 5px; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-delta span { color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------ cierre del día */
.dash-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr); gap: 16px; margin-bottom: 16px; }
.closure-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px 24px;
  color: #fff; border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(780px 320px at 88% 8%, rgba(245, 180, 26, .18), transparent 60%),
    linear-gradient(135deg, #0b1b2b 0%, #12304a 100%);
  box-shadow: var(--shadow-md); min-height: 252px;
  display: flex; flex-direction: column;
}
.closure-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.closure-card > * { position: relative; z-index: 1; }
.closure-card.is-closed {
  background:
    radial-gradient(780px 320px at 88% 8%, rgba(110, 231, 183, .16), transparent 60%),
    linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}
.closure-card.is-empty {
  background:
    radial-gradient(780px 320px at 88% 8%, rgba(245, 180, 26, .14), transparent 60%),
    linear-gradient(135deg, #1f2937 0%, #334155 100%);
}
.closure-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.closure-eyebrow {
  display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: #ffd166;
}
.closure-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 180, 26, .16); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.closure-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 7px; }
.closure-meta { color: #a9bacb; font-size: 11.5px; margin-top: 4px; }
.closure-status {
  padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; white-space: nowrap;
}
.closure-status.open { background: rgba(245, 180, 26, .16); border-color: rgba(245, 180, 26, .35); color: #ffd166; }
.closure-status.closed { background: rgba(110, 231, 183, .14); border-color: rgba(110, 231, 183, .3); color: #a7f3d0; }
.closure-status.empty { background: rgba(255, 255, 255, .1); color: #e5e7eb; }

.closure-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-top: 18px; }
.countdown {
  font-size: clamp(38px, 4.3vw, 56px); font-weight: 700; letter-spacing: -.045em;
  line-height: 1; font-variant-numeric: tabular-nums; color: #fff;
}
.countdown small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: #a9bacb; margin-left: 6px; }
.countdown-label { color: #a9bacb; font-size: 11.5px; margin-top: 8px; }
.countdown-label b { color: #fff; font-weight: 600; }
.time-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: 14px; overflow: hidden; }
.time-track span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffd166, var(--amber)); transition: width .4s; }
.closure-side { text-align: right; }
.ring { position: relative; width: 104px; height: 104px; margin-left: auto; }
.ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: rgba(255, 255, 255, .13); }
.ring .value { stroke: var(--amber); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-label b { font-size: 20px; font-weight: 700; line-height: 1; }
.ring-label span { display: block; font-size: 8.5px; color: #a9bacb; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }

.closure-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap;
}
.people { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.people-label { font-size: 10px; color: #8fa3b6; letter-spacing: .06em; text-transform: uppercase; }
.people-stack { display: flex; }
.people-stack .avatar {
  width: 27px; height: 27px; font-size: 9px; margin-left: -6px;
  border: 2px solid #12304a; box-shadow: 0 0 0 1px rgba(255,255,255,.05);
}
.people-stack .avatar:first-child { margin-left: 0; }
.people-stack .avatar.notified::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; border: 1.5px solid #12304a; transform: translate(12px, 9px);
}
.people-stack .avatar { position: relative; }
.closure-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-on-dark { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.btn-on-dark:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------ progreso obra */
.progress-card { display: flex; flex-direction: column; }
.progress-ring-wrap { display: flex; align-items: center; gap: 16px; }
.progress-ring { position: relative; width: 112px; height: 112px; flex: 0 0 auto; }
.progress-ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 9; }
.progress-ring .track { stroke: #eef0f3; }
.progress-ring .value { stroke: var(--amber); stroke-linecap: round; }
.progress-ring .planned { stroke: var(--navy-700); stroke-width: 2; stroke-dasharray: 2 4; opacity: .45; }
.progress-ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.progress-ring-label b { font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.progress-ring-label span { font-size: 8.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }
.progress-legend { display: grid; gap: 9px; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.legend-row b { margin-left: auto; color: var(--text); font-size: 12px; }
.progress-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.progress-meta div { font-size: 10.5px; color: var(--muted); }
.progress-meta b { display: block; font-size: 14px; color: var(--text); margin-top: 2px; }

/* ------------------------------------------------------------------ tablas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; padding: 9px 14px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; background: #fafbfc; border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--text-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfd; }
.table tr.clickable { cursor: pointer; }
.table .num { font-variant-numeric: tabular-nums; }
.table .strong { color: var(--text); font-weight: 600; }
.table .muted { color: var(--muted); }
.table-actions { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
.table-cell-stack { display: flex; flex-direction: column; gap: 1px; }
.table-cell-stack small { color: var(--muted); font-size: 10.5px; }
.table-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 11px;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
  border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .03em;
  white-space: nowrap; background: #f2f4f7; color: var(--text-2); border: 1px solid transparent;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-open { background: var(--amber-soft); color: #8a5a00; border-color: #ffe6a3; }
.badge-closed { background: var(--green-soft); color: #067647; border-color: #b7ebd3; }
.badge-red { background: var(--red-soft); color: #912018; border-color: #fecdca; }
.badge-blue { background: var(--blue-soft); color: var(--blue); border-color: #c7dcfb; }
.badge-muted { background: #f2f4f7; color: var(--muted); }
.badge-amber { background: var(--amber-soft); color: #8a5a00; border-color: #ffe6a3; }

.progress-mini { display: flex; align-items: center; gap: 7px; min-width: 92px; }
.progress-mini .bar { flex: 1; height: 5px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.progress-mini .bar span { display: block; height: 100%; border-radius: 4px; background: var(--amber); }
.progress-mini b { font-size: 10.5px; color: var(--muted); font-weight: 600; min-width: 30px; text-align: right; }

/* ---------------------------------------------------------------- dashboard */
.dash-bottom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr); gap: 16px; }
.chart-card .card-body { padding: 16px 18px 12px; }
.bar-chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding-top: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar-col .bar {
  width: 100%; max-width: 28px; border-radius: 4px 4px 2px 2px; background: #e4e9ef;
  min-height: 5px; transition: height .3s, background .15s; position: relative;
}
.bar-col .bar:hover { background: var(--amber); }
.bar-col .bar.closed { background: #b9ddcf; }
.bar-col .bar.closed:hover { background: var(--green); }
.bar-col .bar.open { background: var(--amber); opacity: .85; }
.bar-col .bar-label { font-size: 8.5px; color: var(--muted-2); white-space: nowrap; }
.bar-legend { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.bar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bar-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

.timeline { display: grid; gap: 0; }
.timeline-item { display: flex; gap: 11px; padding: 9px 0; position: relative; }
.timeline-item:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: -4px; width: 1px; background: var(--line);
}
.timeline-dot {
  width: 27px; height: 27px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: #f2f4f7; color: var(--muted); z-index: 1;
}
.timeline-dot svg { width: 13px; height: 13px; }
.timeline-dot.green { background: var(--green-soft); color: #067647; }
.timeline-dot.amber { background: var(--amber-soft); color: var(--amber-600); }
.timeline-dot.blue { background: var(--blue-soft); color: var(--blue); }
.timeline-dot.red { background: var(--red-soft); color: var(--red); }
.timeline-body { min-width: 0; padding-top: 1px; }
.timeline-title { font-size: 11.5px; color: var(--text-2); line-height: 1.35; }
.timeline-title b { color: var(--text); font-weight: 600; }
.timeline-meta { font-size: 10px; color: var(--muted-2); margin-top: 2px; }

/* ------------------------------------------------------------------ filtros */
.filters {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
}
.filter-label { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.select, .input, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 11px; font-size: 12.5px; color: var(--text); outline: none;
  transition: border-color .14s, box-shadow .14s; min-height: 37px;
}
.select { appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.select:focus, .input:focus, .textarea:focus { border-color: #8fb6e8; box-shadow: 0 0 0 3px rgba(23, 92, 211, .1); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.input-sm { min-height: 31px; padding: 5px 9px; font-size: 11.5px; }
.select-sm { min-height: 31px; padding: 5px 26px 5px 9px; font-size: 11.5px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.input-icon .input { padding-left: 34px; }

.field { display: grid; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 10.5px; font-weight: 650; color: var(--text-2); letter-spacing: .01em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hint { font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.required { color: var(--red); }

.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--navy-900); }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 36px; height: 20px; border-radius: 20px; background: #d0d5dd; position: relative;
  transition: background .16s; flex: 0 0 auto;
}
.switch .track::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  top: 2px; left: 2px; transition: transform .16s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(23, 92, 211, .2); }

/* ------------------------------------------------------------------ editor */
.editor-bar {
  position: sticky; top: 68px; z-index: 20; margin: -26px -28px 18px; padding: 13px 28px;
  background: rgba(244, 245, 247, .93); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.editor-bar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.back-link {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--muted); flex: 0 0 auto;
}
.back-link:hover { color: var(--text); background: #f8f9fb; }
.editor-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.editor-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.editor-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.save-state { font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.save-state .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.save-state.dirty .dot { background: var(--amber); }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 16px; align-items: start; }
.editor-main { display: grid; gap: 14px; min-width: 0; }
.editor-aside { position: sticky; top: 148px; display: grid; gap: 12px; }

.section-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.section-head { display: flex; align-items: flex-start; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.section-num {
  width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--navy-900); color: var(--amber);
  font-size: 10.5px; font-weight: 800; margin-top: 1px;
}
.section-title { font-size: 13.5px; font-weight: 700; }
.section-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.section-head .btn { margin-left: auto; }
.section-body { padding: 16px 18px 18px; }

.grid-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.grid-table th {
  text-align: left; padding: 0 6px 6px; font-size: 9px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); font-weight: 700; white-space: nowrap;
}
.grid-table td { padding: 2px; vertical-align: middle; }
.grid-table .cell-input, .grid-table .cell-select {
  width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px;
  padding: 6px 7px; font-size: 11.5px; min-height: 30px; outline: none; color: var(--text);
}
.grid-table .cell-input:hover, .grid-table .cell-select:hover { background: #f8f9fb; border-color: #eef0f3; }
.grid-table .cell-input:focus, .grid-table .cell-select:focus { background: #fff; border-color: #8fb6e8; box-shadow: 0 0 0 2px rgba(23,92,211,.08); }
.grid-table .cell-select { appearance: none; }
.grid-table .cell-input.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid-table td.row-actions { width: 30px; }
.grid-table .row-index { color: var(--muted-2); font-size: 10px; text-align: center; width: 22px; }
.grid-table tfoot td { padding-top: 8px; border-top: 1px dashed var(--line); }
.add-row { color: var(--blue); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.add-row svg { width: 14px; height: 14px; }
.add-row:hover { text-decoration: underline; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mini-table th { background: transparent; padding-bottom: 3px; }
.mini-table td { border-bottom: 1px solid var(--line-2); }

.aside-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; box-shadow: var(--shadow-sm); }
.aside-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.aside-stat { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 11.5px; color: var(--muted); }
.aside-stat:last-child { border-bottom: 0; }
.aside-stat b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.aside-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aside-progress .progress-ring { width: 76px; height: 76px; }
.aside-progress .progress-ring svg { width: 76px; height: 76px; }
.aside-progress .progress-ring circle { stroke-width: 7; }
.aside-progress .progress-ring-label b { font-size: 17px; }
.aside-progress .progress-ring-label span { font-size: 7px; }
.aside-progress-text { font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.aside-progress-text b { display: block; color: var(--text); font-size: 12px; }

.check-list { display: grid; gap: 7px; }
.check-item { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--text-2); }
.check-item .ck {
  width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: #f2f4f7; color: var(--muted-2); font-size: 9px; font-weight: 800; margin-top: 1px;
}
.check-item.done .ck { background: var(--green-soft); color: #067647; }
.check-item.pending .ck { background: var(--amber-soft); color: #b54708; }
.check-item small { display: block; color: var(--muted-2); font-size: 9.5px; }
.aside-note {
  background: var(--amber-soft); border: 1px solid #ffe6a3; border-radius: 9px; padding: 11px;
  font-size: 10.5px; color: #7a4d00; line-height: 1.5;
}
.aside-note b { color: #5c3a00; }

/* -------------------------------------------------------------------- fotos */
.dropzone {
  border: 1.5px dashed #ccd4de; border-radius: 10px; background: #fafbfc;
  padding: 18px; text-align: center; color: var(--muted); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--amber); background: var(--amber-soft); }
.dropzone svg { width: 26px; height: 26px; margin: 0 auto 7px; color: var(--muted-2); }
.dropzone b { color: var(--text-2); font-size: 12px; }
.dropzone p { font-size: 10.5px; margin-top: 3px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-card { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; position: relative; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef0f3; }
.photo-card .photo-body { padding: 7px 8px; }
.photo-card .photo-caption {
  width: 100%; border: 1px solid transparent; border-radius: 5px; padding: 4px 5px;
  font-size: 10.5px; color: var(--text-2); background: transparent;
}
.photo-card .photo-caption:hover { border-color: var(--line); }
.photo-card .photo-caption:focus { border-color: #8fb6e8; outline: none; background: #fff; }
.photo-card .photo-meta { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--muted-2); padding: 0 4px; }
.photo-card .icon-btn { width: 22px; height: 22px; position: absolute; top: 5px; right: 5px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.photo-card .icon-btn svg { width: 13px; height: 13px; }
.upload-status { margin-top: 10px; font-size: 11px; color: var(--muted); display: none; }
.upload-status.show { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ firmas */
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.signature { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfcfd; }
.sig-role { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.sig-line { height: 38px; border-bottom: 1px solid #b9c2cd; margin: 10px 0 6px; }
.signature .cell-input { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 5px; padding: 4px 5px; font-size: 11px; }
.signature .cell-input:hover { background: #fff; border-color: var(--line); }
.signature .cell-input:focus { background: #fff; border-color: #8fb6e8; outline: none; }
.signature .sig-date { font-size: 10px; color: var(--muted-2); margin-top: 4px; }

/* --------------------------------------------------------------- empty state */
.empty { padding: 42px 24px; text-align: center; color: var(--muted); }
.empty-icon {
  width: 52px; height: 52px; border-radius: 15px; background: #f2f4f7; color: var(--muted-2);
  display: grid; place-items: center; margin: 0 auto 12px;
}
.empty-icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.empty p { font-size: 11.5px; max-width: 340px; margin: 0 auto 14px; }

/* --------------------------------------------------------------- notificaciones */
.notif-list { display: grid; }
.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: #fffdf5; }
.notif-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.notif-icon.cierre { background: var(--green-soft); color: #067647; }
.notif-icon.pre_cierre, .notif-icon.recordatorio { background: var(--amber-soft); color: var(--amber-600); }
.notif-icon svg { width: 16px; height: 16px; }
.notif-body { min-width: 0; flex: 1; }
.notif-title { font-size: 12.5px; font-weight: 650; color: var(--text); }
.notif-text { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.notif-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 10px; color: var(--muted-2); flex-wrap: wrap; }
.notif-meta .badge { font-size: 9px; padding: 2px 6px; }
.notif-actions { display: flex; align-items: flex-start; gap: 4px; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-top: 7px; flex: 0 0 auto; }

/* -------------------------------------------------------------------- tabs */
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.tab {
  padding: 11px 13px; border: 0; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--navy-900); border-bottom-color: var(--amber); }

/* ------------------------------------------------------------------ ajustes */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.settings-card + .settings-card { margin-top: 14px; }
.settings-body { padding: 18px; display: grid; gap: 14px; }
.settings-side { display: grid; gap: 12px; }
.info-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfcfd; font-size: 11px; color: var(--muted); line-height: 1.55; }
.info-box b { color: var(--text-2); }
.info-box.warn { border-color: #f5d78e; background: #fffbf0; color: #7a4d00; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------------ mi perfil */
.profile-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-card { text-align: center; padding: 24px 18px; }
.profile-card .avatar { width: 68px; height: 68px; font-size: 22px; margin: 0 auto 12px; }
.profile-card h2 { font-size: 16px; font-weight: 700; }
.profile-card p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* -------------------------------------------------------------------- modal */
.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(7, 19, 31, .55);
  backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 18px 18px; overflow-y: auto; animation: fade .14s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(540px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.4); animation: pop .16s ease-out; overflow: hidden;
}
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; }
.modal-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.modal-head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.modal-close { margin-left: auto; }
.modal-body { padding: 4px 20px 18px; display: grid; gap: 14px; max-height: 66vh; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: #fafbfc; border-top: 1px solid var(--line-2); }
.modal-foot .btn-danger { margin-right: auto; }
.modal-note { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* -------------------------------------------------------------------- toast */
.toast-root {
  position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; width: min(370px, calc(100vw - 36px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-lg);
  animation: slide .18s ease-out; position: relative; overflow: hidden;
}
@keyframes slide { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; background: var(--green-soft); color: #067647; }
.toast-icon svg { width: 14px; height: 14px; }
.toast.error .toast-icon { background: var(--red-soft); color: var(--red); }
.toast.info .toast-icon { background: var(--blue-soft); color: var(--blue); }
.toast-body { min-width: 0; }
.toast-title { font-size: 11.5px; font-weight: 700; }
.toast-text { font-size: 11px; color: var(--muted); margin-top: 1px; line-height: 1.4; }
.toast-close { margin-left: auto; color: var(--muted-2); background: transparent; border: 0; padding: 0 2px; font-size: 16px; line-height: 1; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--green); animation: toastbar 4s linear forwards; }
.toast.error::after { background: var(--red); }
.toast.info::after { background: var(--blue); }
@keyframes toastbar { from { width: 100%; } to { width: 0; } }

/* -------------------------------------------------------------------- login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.04fr .96fr; }
.auth-visual {
  position: relative; overflow: hidden; color: #fff; padding: 48px 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, .82) 0%, rgba(7, 19, 31, .55) 45%, rgba(7, 19, 31, .92) 100%),
    url("/assets/demo/obra-01.jpg") center / cover no-repeat;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 60%, #000, transparent 75%);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-name { font-size: 16px; }
.auth-hero { max-width: 480px; margin: 40px 0; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 30px;
  background: rgba(245, 180, 26, .14); border: 1px solid rgba(245, 180, 26, .32);
  color: #ffd166; font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.auth-title { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; margin-top: 16px; }
.auth-title em { color: var(--amber); font-style: normal; }
.auth-desc { color: #c4d0dc; font-size: 13.5px; line-height: 1.65; margin-top: 16px; max-width: 420px; }
.auth-features { display: grid; gap: 10px; margin-top: 24px; }
.auth-feature { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #dbe4ec; }
.auth-feature .fi {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: var(--amber);
}
.auth-feature svg { width: 14px; height: 14px; }
.auth-caption { font-size: 10px; color: #8fa3b6; letter-spacing: .1em; text-transform: uppercase; }

.auth-panel { display: grid; place-items: center; padding: 42px 40px; background: #f7f8fa; }
.auth-card { width: min(402px, 100%); }
.auth-card .brand { display: none; padding: 0 0 24px; }
/* Pantalla de una sola columna (cambio obligatorio de contraseña). */
.auth.auth-single { grid-template-columns: 1fr; }
.auth-single .auth-card .brand { display: flex; }
/* El logo dentro de la tarjeta va sobre fondo claro (también en la vista móvil del ingreso). */
.auth-card .brand .brand-name { color: var(--text); }
.auth-card h1 { font-size: 25px; letter-spacing: -.03em; font-weight: 700; }
.auth-card .sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 24px; }
.auth-form { display: grid; gap: 14px; }
.auth-form .field > label { font-size: 11px; }
.auth-form .input { height: 43px; background: #fff; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 40px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 31px; height: 31px; border: 0; background: transparent; color: var(--muted); border-radius: 7px;
  display: grid; place-items: center;
}
.password-toggle:hover { background: #f2f4f7; color: var(--text); }
.password-toggle svg { width: 16px; height: 16px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.auth-error {
  display: none; background: var(--red-soft); border: 1px solid #fecdca; color: #912018;
  border-radius: 8px; padding: 9px 11px; font-size: 11.5px; line-height: 1.45;
}
.auth-error.show { display: block; }
.auth-submit { height: 44px; font-size: 13px; }
.auth-sep { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0; }
.auth-sep::before, .auth-sep::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demo-box { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.demo-box-head { padding: 8px 11px; border-bottom: 1px solid var(--line-2); background: #fafbfc; font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; }
.demo-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 11px;
  border: 0; background: transparent; border-bottom: 1px solid var(--line-2); text-align: left;
}
.demo-item:last-child { border-bottom: 0; }
.demo-item:hover { background: #f8f9fb; }
.demo-item .avatar { width: 26px; height: 26px; font-size: 9px; }
.demo-item .di-name { font-size: 11px; font-weight: 600; color: var(--text-2); }
.demo-item .di-mail { font-size: 9.5px; color: var(--muted); }
.demo-item .di-pass { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--muted-2); background: #f2f4f7; padding: 2px 5px; border-radius: 4px; }
.auth-foot { margin-top: 22px; font-size: 10px; color: var(--muted-2); text-align: center; line-height: 1.6; }

/* ---------------------------------------------------------------- imprimible */
.print-wrap { background: #e9ecf1; min-height: 100vh; padding: 22px 16px 40px; }
.print-toolbar {
  position: sticky; top: 0; z-index: 20; width: min(210mm, 100%); margin: 0 auto 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md);
}
.print-toolbar .pt-title { font-size: 12px; font-weight: 700; }
.print-toolbar .pt-sub { font-size: 10px; color: var(--muted); }
.print-toolbar .actions { margin-left: auto; display: flex; gap: 7px; }
.sheet {
  width: 210mm; min-height: 297mm; margin: 0 auto 16px; background: #fff; color: #111827;
  padding: 13mm 14mm 11mm; box-shadow: 0 12px 40px -18px rgba(11, 27, 43, .45);
  position: relative; display: flex; flex-direction: column;
  font-size: 9.4pt; line-height: 1.42;
}
.sheet-head { display: flex; align-items: flex-start; gap: 10mm; border-bottom: 2.2pt solid var(--navy-900); padding-bottom: 3.5mm; }
.sheet-logo { width: 13mm; height: 13mm; border-radius: 2.4mm; background: var(--navy-900); display: grid; place-items: center; flex: 0 0 auto; }
.sheet-logo svg { width: 8mm; height: 8mm; }
.sheet-brand-name { font-size: 11.5pt; font-weight: 800; letter-spacing: .12em; color: var(--navy-900); line-height: 1.1; }
.sheet-brand-sub { font-size: 6.6pt; letter-spacing: .18em; color: #6b7280; text-transform: uppercase; margin-top: 1.2mm; }
.sheet-org { font-size: 7.4pt; color: #4b5563; margin-top: 1mm; }
.sheet-head-right { margin-left: auto; text-align: right; }
.sheet-report-no { font-size: 7pt; letter-spacing: .14em; color: #6b7280; text-transform: uppercase; }
.sheet-report-no b { display: block; font-size: 16pt; letter-spacing: -.02em; color: var(--navy-900); margin-top: .8mm; }
.sheet-status { display: inline-block; margin-top: 1.6mm; padding: 1mm 2.4mm; border-radius: 4mm; font-size: 6.4pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: .4pt solid #d1d5db; color: #4b5563; }
.sheet-status.closed { background: #ecfdf3; border-color: #a7f3d0; color: #067647; }
.sheet-title { margin-top: 4mm; }
.sheet-title h1 { font-size: 13pt; letter-spacing: -.01em; color: var(--navy-900); }
.sheet-title p { font-size: 8.2pt; color: #4b5563; margin-top: 1mm; }
.sheet-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: .4pt solid #d1d5db; margin-top: 3.4mm; }
.sheet-meta div { padding: 2mm 2.6mm; border-right: .4pt solid #e5e7eb; border-bottom: .4pt solid #e5e7eb; }
.sheet-meta div:nth-child(4n) { border-right: 0; }
.sheet-meta div:nth-last-child(-n+4) { border-bottom: 0; }
.sheet-meta span { display: block; font-size: 5.9pt; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.sheet-meta b { display: block; font-size: 7.8pt; color: #111827; font-weight: 600; margin-top: .6mm; }
.sheet-weather { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.4mm; background: #f9fafb; border: .4pt solid #e5e7eb; }
.sheet-weather div { padding: 1.8mm 2.6mm; border-right: .4pt solid #e5e7eb; }
.sheet-weather div:last-child { border-right: 0; }
.sheet-weather span { font-size: 5.9pt; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; display: block; }
.sheet-weather b { font-size: 7.8pt; font-weight: 600; }

.sheet-section { margin-top: 3.6mm; }
.sheet-section-title { display: flex; align-items: center; gap: 2mm; border-bottom: .6pt solid #d1d5db; padding-bottom: 1.2mm; margin-bottom: 1.8mm; }
.sheet-section-title .n { width: 4.4mm; height: 4.4mm; border-radius: 1mm; background: var(--navy-900); color: var(--amber); font-size: 6.2pt; font-weight: 800; display: grid; place-items: center; }
.sheet-section-title h2 { font-size: 8.2pt; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--navy-900); }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 7.6pt; }
.sheet-table th { background: var(--navy-900); color: #fff; text-align: left; padding: 1.5mm 2mm; font-size: 6.2pt; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.sheet-table td { padding: 1.4mm 2mm; border-bottom: .4pt solid #e5e7eb; vertical-align: top; }
.sheet-table tr:nth-child(even) td { background: #fafafa; }
.sheet-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-table .muted { color: #6b7280; }
.sheet-table .center { text-align: center; }
.sheet-two { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.sheet-observations { font-size: 7.9pt; color: #374151; line-height: 1.55; white-space: pre-wrap; min-height: 12mm; }
.sheet-empty { color: #9ca3af; font-style: italic; font-size: 7.6pt; }

.sheet-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7mm; margin-top: 8mm; }
.sheet-sign { text-align: center; }
.sheet-sign .line { border-bottom: .6pt solid #6b7280; height: 13mm; margin-bottom: 1.4mm; }
.sheet-sign b { display: block; font-size: 7.8pt; }
.sheet-sign span { display: block; font-size: 6.8pt; color: #6b7280; }
.sheet-sign small { display: block; font-size: 6.2pt; color: #9ca3af; margin-top: .6mm; }
.sheet-signs.unsigned .line { border-bottom-style: dashed; }

.sheet-stamp {
  position: absolute; right: 16mm; bottom: 30mm; width: 34mm; height: 34mm;
  border: 1.4pt solid rgba(6, 118, 71, .55); border-radius: 50%; color: rgba(6, 118, 71, .8);
  display: grid; place-items: center; text-align: center; transform: rotate(-11deg);
  font-size: 6.4pt; letter-spacing: .12em; line-height: 1.5;
}
.sheet-stamp b { display: block; font-size: 8.4pt; letter-spacing: .18em; }
.sheet-stamp small { display: block; font-size: 5.6pt; letter-spacing: .04em; color: rgba(6, 118, 71, .65); }
.sheet-fingerprint { margin-top: 4mm; font-family: var(--mono); font-size: 6.2pt; color: #9ca3af; letter-spacing: .04em; }

.sheet-foot {
  margin-top: auto; padding-top: 3mm; border-top: .4pt solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between; gap: 4mm;
  font-size: 6.2pt; color: #9ca3af;
}
.sheet-foot b { color: #6b7280; font-weight: 600; }

.annex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; margin-top: 3mm; }
.annex-photo { border: .4pt solid #d1d5db; background: #fff; }
.annex-photo .img { width: 100%; height: 74mm; background: #f3f4f6; overflow: hidden; }
.annex-photo .img img { width: 100%; height: 100%; object-fit: cover; }
.annex-photo .cap { padding: 1.8mm 2.2mm; }
.annex-photo .cap b { display: block; font-size: 7.2pt; font-weight: 600; color: #111827; }
.annex-photo .cap span { display: block; font-size: 6.2pt; color: #6b7280; margin-top: .6mm; }
.annex-photo .cap em { display: block; font-style: normal; font-size: 5.9pt; color: #9ca3af; margin-top: .6mm; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1250px) {
  :root { --sidebar: 238px; }
  .page { padding: 22px 22px 40px; }
  .editor-bar { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 286px; }
  .closure-body { grid-template-columns: minmax(0, 1fr); }
  .closure-side { display: none; }
}
@media (max-width: 1080px) {
  .dash-top, .dash-bottom { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-side { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 274px; transform: translateX(-102%);
    transition: transform .2s ease; box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(7, 19, 31, .45); z-index: 35;
  }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; height: 62px; }
  .topbar-date { display: none; }
  .page { padding: 18px 16px 36px; }
  .editor-bar { top: 62px; margin: -18px -16px 14px; padding: 11px 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 28px 18px; }
  .auth-card .brand { display: flex; }
  .signatures { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .field-row-3 { grid-template-columns: 1fr; }
  .print-toolbar { width: 100%; }
  .sheet { width: 100%; min-height: auto; padding: 9mm; }
  .annex-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi { padding: 11px 12px; gap: 9px; }
  .kpi-value { font-size: 19px; }
  .kpi-icon { width: 29px; height: 29px; }
  .page-title { font-size: 21px; }
  .page-head { margin-bottom: 14px; }
  .closure-card { padding: 18px; min-height: 0; }
  .closure-title { font-size: 18px; }
  .countdown { font-size: 40px; }
  .closure-foot { align-items: flex-start; flex-direction: column; }
  .editor-bar-actions { width: 100%; }
  .editor-bar-actions .btn { flex: 1; }
  .editor-aside { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 2vh 10px 10px; }
  .modal-body { max-height: 72vh; }
  .field-row { grid-template-columns: 1fr; }
  .topbar-actions .user-menu-name, .topbar-actions .user-menu-role { display: none; }
  .settings-side { grid-template-columns: 1fr; }
  .notif-item { padding: 12px 14px; }
  .notif-actions { display: none; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .editor-title { font-size: 15px; }
}

/* ------------------------------------------------------------------ impresión */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body { font-size: 10pt; }
  .print-wrap { background: #fff; padding: 0; }
  .print-toolbar { display: none !important; }
  .sheet {
    width: 210mm; min-height: 297mm; margin: 0; box-shadow: none; page-break-after: always;
    padding: 13mm 14mm 11mm;
  }
  .sheet:last-child { page-break-after: auto; }
  .sheet-table tr:nth-child(even) td { background: #fafafa !important; }
  .sheet-status.closed { background: #ecfdf3 !important; }
  .sheet-stamp { display: grid !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------------------- ajustes de interfaz */
.topbar .menu-btn { display: none; }
@media (max-width: 900px) { .topbar .menu-btn { display: inline-grid; } }
.demo-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.demo-item .di-name, .demo-item .di-mail {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.demo-item .di-pass { flex: 0 0 auto; font-size: 8.5px; }
.progress-ring-label b { display: block; font-size: 20px; line-height: 1.05; }
.progress-ring-label span { display: block; font-size: 7.5px; letter-spacing: .06em; margin-top: 2px; }
.ring-label b { display: block; }
.section-head > .badge { margin-left: auto; }
.section-head > .section-num + div { min-width: 0; }
.grid-table .cell-textarea {
  min-height: 48px; resize: vertical; line-height: 1.35; padding: 6px 7px;
  font-size: 11.5px; display: block;
}
.grid-table td:has(> .cell-textarea) { vertical-align: top; padding-top: 3px; }
.user-menu-btn > span { white-space: nowrap; }
.user-menu-name, .user-menu-role { white-space: nowrap; }

@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar-left { flex: 1; min-width: 0; gap: 6px; }
  .topbar-actions { gap: 6px; flex: 0 0 auto; }
  .crumbs { min-width: 0; }
  .crumbs .crumb-project, .crumbs .sep { display: none; }
  .crumbs .current {
    display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px;
  }
  .user-menu-btn { padding: 2px; gap: 4px; }
  .user-menu-btn > span:not(.avatar), .user-menu-btn > svg { display: none; }
  .editor-bar .save-state { display: none; }
  .editor-bar { gap: 9px; }
  .editor-bar-left { width: 100%; }
  .editor-bar-actions { gap: 6px; }
  .editor-bar-actions .btn { flex: 1 1 auto; }
}

.project-add {
  width: 100%; margin-top: 7px; padding: 7px 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(245, 180, 26, .08); border: 1px dashed rgba(245, 180, 26, .35);
  border-radius: 8px; color: #ffd166; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: background .14s, border-color .14s;
}
.project-add:hover { background: rgba(245, 180, 26, .16); border-color: rgba(245, 180, 26, .6); }
.project-add svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------- financiero */
.financial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fin-card { padding: 15px 16px; border-left: 3px solid transparent; }
.fin-card.highlight { border-left-color: var(--amber); background: linear-gradient(135deg, #fffdf5, #ffffff 60%); }
.fin-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fin-value { font-size: 21px; font-weight: 700; letter-spacing: -.03em; margin-top: 7px; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-card.highlight .fin-value { color: var(--navy-900); }
.fin-hint { font-size: 10px; color: var(--muted-2); margin-top: 4px; }
.financial-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.financial-side { display: grid; gap: 12px; }
.source-link {
  font-size: 10.5px; color: var(--text-2); background: #f8f9fb; border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 10px; word-break: break-all; font-family: var(--mono); line-height: 1.45;
}
@media (max-width: 1080px) {
  .financial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-layout { grid-template-columns: 1fr; }
  .financial-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .financial-grid { grid-template-columns: 1fr; }
  .financial-side { grid-template-columns: 1fr; }
}

/* Avance financiero dentro del informe */
.fin-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fin-report-item {
  padding: 9px 11px; border: 1px solid var(--line); border-left: 3px solid transparent;
  border-radius: 7px; background: #fbfcfd;
}
.fin-report-item.highlight { border-left-color: var(--amber); background: #fffdf5; }
.fin-report-item span { display: block; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fin-report-item b { display: block; margin-top: 4px; font-size: 15px; color: var(--navy-900); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fin-report-item small { display: block; margin-top: 1px; font-size: 9px; color: var(--muted-2); }
.fin-report-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px;
  padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted);
}
.fin-report-meta b { color: var(--text-2); }
.fin-report-meta .btn { margin-left: auto; }
.fin-report-empty {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 8px; background: #fbfcfd;
}
.fin-report-empty b { display: block; font-size: 12px; color: var(--navy-900); }
.fin-report-empty span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) {
  .fin-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-report-empty { align-items: flex-start; flex-direction: column; }
}

/* Personal administrativo cargado por día */
.add-row + .add-row { margin-left: 8px; }
.daily-personnel-row td { background: #fffaf0; }
.daily-personnel-row td:first-child { box-shadow: inset 2px 0 0 var(--amber); }

/* Responsable de firma */
.signer-select { min-width: 175px; font-size: 10px; padding: 5px 7px; }
.sig-name { font-size: 12px; font-weight: 700; color: var(--navy-900); padding: 4px 0 1px; min-height: 22px; }
.sig-missing { color: var(--muted); font-style: italic; font-weight: 400; font-size: 10px; }
.sig-position { font-size: 10px; color: var(--muted); }


