/* =====================================================================
   REDES DE AYUDA · Sistema visual "Liquid Glass"
   Tokens semánticos (los componentes y el JS sólo usan roles, nunca valores).
   Temas: claro = cristal escarchado luminoso · oscuro = cristal obsidiana.
   Roles: data-role="donor" (esmeralda/ámbar) · data-role="volunteer" (cian/índigo).
   ===================================================================== */

:root {
  /* ---------- Base y materiales (claro) ---------- */
  --background: #F4F5F8;
  --glass-subtle-bg: rgba(255, 255, 255, 0.46);
  --glass-regular-bg: rgba(255, 255, 255, 0.62);
  --glass-prominent-bg: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-hairline: rgba(15, 23, 42, 0.07);
  --rim: inset 0 1px 0 0 rgba(255, 255, 255, 0.45), inset 1px 0 0 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 0 rgba(255, 255, 255, 0.08);
  --rim-hover: inset 0 1px 0 0 rgba(255, 255, 255, 0.9), inset 1px 0 0 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 0 rgba(255, 255, 255, 0.18);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 38%);

  --surface: rgba(255, 255, 255, 0.55);
  --surface-elevated: rgba(255, 255, 255, 0.82);
  --surface-sunken: rgba(15, 23, 42, 0.045);
  --surface-solid: #FFFFFF;

  /* ---------- Texto ---------- */
  --text-primary: #0E1525;
  --text-secondary: #2B3546;
  --text-muted: #465064;
  --text-subtle: #566074;

  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.20);

  /* ---------- Acción (sin rol = grafito, estilo sistema) ---------- */
  --accent: #121A2B;
  --accent-hover: #000000;
  --accent-contrast: #FFFFFF;
  --accent-soft: rgba(18, 26, 43, 0.08);
  --accent-soft-text: #121A2B;
  --accent-glow: rgba(18, 26, 43, 0.18);

  /* ---------- Estados (siempre acompañados de icono o texto) ---------- */
  --ok: #17734B;   --ok-soft: rgba(23, 115, 75, 0.12);
  --warn: #8A5000; --warn-soft: rgba(214, 140, 20, 0.17);
  --crit: #B02518; --crit-soft: rgba(220, 60, 40, 0.12);
  --mon: #0A6890;  --mon-soft: rgba(11, 110, 153, 0.12);

  --focus-ring: #2563EB;
  --scrim: rgba(15, 23, 42, 0.14);
  --selection: rgba(37, 99, 235, 0.22);

  /* ---------- Gráficas ---------- */
  --chart-1: #0D7A63; --chart-2: #C47705; --chart-3: #0A6890; --chart-4: #3D52D5; --chart-5: #C2412D;
  --chart-muted: rgba(15, 23, 42, 0.16);
  --chart-grid: rgba(15, 23, 42, 0.07);

  /* ---------- Profundidad (sombras de color ambiental) ---------- */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -14px rgba(15, 23, 42, 0.10);
  --shadow-2: 0 2px 6px -2px rgba(15, 23, 42, 0.06), 0 20px 50px -12px rgba(15, 23, 42, 0.08);
  --shadow-3: 0 4px 12px -4px rgba(15, 23, 42, 0.08), 0 32px 80px -20px rgba(15, 23, 42, 0.22);

  /* ---------- Aurora ambiental ---------- */
  --orb-1: rgba(110, 231, 183, 0.55);  /* esmeralda suave */
  --orb-2: rgba(125, 211, 252, 0.55);  /* azul cielo */
  --orb-3: rgba(253, 214, 138, 0.55);  /* ámbar cálido */
  --orb-4: rgba(253, 164, 175, 0.42);  /* coral */

  /* ---------- WhatsApp (simulador) ---------- */
  --wa-bg: #EFEAE2; --wa-dots: rgba(23, 28, 33, 0.05); --wa-head: rgba(240, 242, 245, 0.92); --wa-head-text: #111B21; --wa-sub: #5E6E78;
  --wa-in: #FFFFFF; --wa-out: #D9FDD3; --wa-text: #111B21; --wa-meta: #5E6E78; --wa-sys: #FFF5C4; --wa-sys-text: #4D5C66;
  --wa-input: #FFFFFF; --wa-send: #00A884; --wa-quick: rgba(240, 242, 245, 0.92);

  /* ---------- Tipografía fluida ---------- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --fs-display: clamp(2.35rem, 1.5rem + 3.4vw, 4.4rem);
  --fs-h1: clamp(1.9rem, 1.35rem + 2.2vw, 3.1rem);
  --fs-h2: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  --fs-h3: clamp(1.02rem, 0.97rem + 0.25vw, 1.15rem);
  --fs-body: 0.95rem;
  --fs-small: 0.84rem;
  --fs-micro: 0.7rem;

  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 22px; --radius-xl: 28px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

:root[data-theme="dark"] {
  --background: #07090E;
  --glass-subtle-bg: rgba(18, 22, 34, 0.42);
  --glass-regular-bg: rgba(18, 22, 34, 0.58);
  --glass-prominent-bg: rgba(20, 25, 38, 0.72);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-hairline: rgba(255, 255, 255, 0.06);
  --rim: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), inset 1px 0 0 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 0 rgba(255, 255, 255, 0.04);
  --rim-hover: inset 0 1px 0 0 rgba(255, 255, 255, 0.26), inset 1px 0 0 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 0 rgba(255, 255, 255, 0.07);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 32%);

  --surface: rgba(24, 29, 44, 0.55);
  --surface-elevated: rgba(36, 42, 60, 0.72);
  --surface-sunken: rgba(0, 0, 0, 0.28);
  --surface-solid: #121722;

  --text-primary: #F1F4F9;
  --text-secondary: #CED4DF;
  --text-muted: #A9B2C2;
  --text-subtle: #929CAE;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent: #F1F4F9;
  --accent-hover: #FFFFFF;
  --accent-contrast: #0B0E14;
  --accent-soft: rgba(241, 244, 249, 0.10);
  --accent-soft-text: #F1F4F9;
  --accent-glow: rgba(241, 244, 249, 0.16);

  --ok: #62D597;   --ok-soft: rgba(98, 213, 151, 0.13);
  --warn: #F1B857; --warn-soft: rgba(241, 184, 87, 0.13);
  --crit: #FF8B7B; --crit-soft: rgba(255, 139, 123, 0.13);
  --mon: #63C6F0;  --mon-soft: rgba(99, 198, 240, 0.13);

  --focus-ring: #7DB3FF;
  --scrim: rgba(2, 4, 8, 0.42);
  --selection: rgba(125, 179, 255, 0.3);

  --chart-1: #4FD1B0; --chart-2: #F1B857; --chart-3: #63C6F0; --chart-4: #93A4FF; --chart-5: #FF8B7B;
  --chart-muted: rgba(255, 255, 255, 0.14);
  --chart-grid: rgba(255, 255, 255, 0.06);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -14px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 6px -2px rgba(0, 0, 0, 0.5), 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-3: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 32px 80px -20px rgba(0, 0, 0, 0.75);

  --orb-1: rgba(16, 122, 99, 0.42);
  --orb-2: rgba(29, 78, 156, 0.40);
  --orb-3: rgba(120, 78, 18, 0.32);
  --orb-4: rgba(122, 32, 66, 0.30);

  --wa-bg: #0B141A; --wa-dots: rgba(255, 255, 255, 0.035); --wa-head: rgba(32, 44, 51, 0.92); --wa-head-text: #E9EDEF; --wa-sub: #8E9EA8;
  --wa-in: #202C33; --wa-out: #005C4B; --wa-text: #E9EDEF; --wa-meta: rgba(233, 237, 239, 0.66); --wa-sys: #182229; --wa-sys-text: #8E9EA8;
  --wa-input: #2A3942; --wa-send: #00A884; --wa-quick: rgba(17, 27, 33, 0.92);
}

/* ---------- Matiz por rol ---------- */
:root[data-role="donor"] {
  --accent: #0C7560; --accent-hover: #09604F; --accent-contrast: #FFFFFF;
  --accent-soft: rgba(12, 117, 96, 0.12); --accent-soft-text: #07533F; --accent-glow: rgba(12, 117, 96, 0.28);
  --focus-ring: #0C7560;
  --orb-1: rgba(110, 231, 183, 0.62); --orb-3: rgba(253, 214, 138, 0.62);
}
:root[data-role="volunteer"] {
  --accent: #3A4FD0; --accent-hover: #2E40B3; --accent-contrast: #FFFFFF;
  --accent-soft: rgba(58, 79, 208, 0.11); --accent-soft-text: #2A399E; --accent-glow: rgba(58, 79, 208, 0.26);
  --focus-ring: #3A4FD0;
  --orb-2: rgba(125, 211, 252, 0.66); --orb-4: rgba(165, 180, 252, 0.5);
}
:root[data-theme="dark"][data-role="donor"] {
  --accent: #4FD1B0; --accent-hover: #74DEC3; --accent-contrast: #032219;
  --accent-soft: rgba(79, 209, 176, 0.14); --accent-soft-text: #8BE6CE; --accent-glow: rgba(79, 209, 176, 0.3);
  --focus-ring: #4FD1B0;
  --orb-1: rgba(16, 122, 99, 0.5); --orb-3: rgba(130, 86, 20, 0.38);
}
:root[data-theme="dark"][data-role="volunteer"] {
  --accent: #97A7FF; --accent-hover: #B4C0FF; --accent-contrast: #0A1040;
  --accent-soft: rgba(151, 167, 255, 0.14); --accent-soft-text: #C1CAFF; --accent-glow: rgba(151, 167, 255, 0.3);
  --focus-ring: #97A7FF;
  --orb-2: rgba(29, 92, 170, 0.5); --orb-4: rgba(70, 60, 160, 0.42);
}

/* =====================================================================
   Base
   ===================================================================== */
html { background: var(--background); -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--background); color: var(--text-secondary); font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.55; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--selection); color: var(--text-primary); }
input, select, textarea { caret-color: var(--accent); font-family: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.font-display { font-family: var(--font-display); font-optical-sizing: auto; font-variation-settings: "SOFT" 60; }
.eyebrow-caps { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
button { -webkit-tap-highlight-color: transparent; font-family: inherit; }
.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; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 200; padding: .6rem 1rem; border-radius: 9999px; background: var(--surface-solid); color: var(--text-primary); font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--spring); box-shadow: var(--shadow-2); }
.skip-link:focus { transform: none; }

/* ---------- Aurora ambiental (se refracta a través del cristal) ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora .orb { position: absolute; border-radius: 50%; width: 52vmax; height: 52vmax; filter: blur(48px); opacity: 1; will-change: transform; }
.aurora .o1 { background: radial-gradient(circle at 50% 50%, var(--orb-1), transparent 62%); top: -18vmax; left: -12vmax; }
.aurora .o2 { background: radial-gradient(circle at 50% 50%, var(--orb-2), transparent 62%); top: -10vmax; right: -16vmax; }
.aurora .o3 { background: radial-gradient(circle at 50% 50%, var(--orb-3), transparent 62%); bottom: -22vmax; left: 18vw; }
.aurora .o4 { background: radial-gradient(circle at 50% 50%, var(--orb-4), transparent 62%); bottom: -16vmax; right: -8vmax; width: 40vmax; height: 40vmax; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: multiply; opacity: .5; }
:root[data-theme="dark"] .aurora::after { background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px); mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) {
  .aurora .o1 { animation: drift1 38s ease-in-out infinite alternate; }
  .aurora .o2 { animation: drift2 46s ease-in-out infinite alternate; }
  .aurora .o3 { animation: drift3 52s ease-in-out infinite alternate; }
  .aurora .o4 { animation: drift1 60s ease-in-out infinite alternate-reverse; }
  @keyframes drift1 { to { transform: translate3d(14vw, 10vh, 0) scale(1.12); } }
  @keyframes drift2 { to { transform: translate3d(-16vw, 18vh, 0) scale(0.92); } }
  @keyframes drift3 { to { transform: translate3d(10vw, -14vh, 0) scale(1.08); } }
}
.app-layer { position: relative; z-index: 1; }

/* =====================================================================
   Materiales Liquid Glass (3 niveles) + borde especular
   ===================================================================== */
.glass-subtle, .glass-regular, .glass-prominent, .panel, .panel-sunken {
  position: relative; isolation: isolate;
  border: 1px solid var(--glass-border);
  box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline), var(--shadow-1);
}
.glass-subtle, .panel-sunken { background: var(--glass-subtle-bg); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-radius: var(--radius-md); }
.glass-regular, .panel { background: var(--glass-regular-bg); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%); border-radius: var(--radius-lg); box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline), var(--shadow-2); }
.glass-prominent { background: var(--glass-prominent-bg); -webkit-backdrop-filter: blur(44px) saturate(210%); backdrop-filter: blur(44px) saturate(210%); border-radius: var(--radius-xl); box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline), var(--shadow-3); }
/* brillo especular superior */
.glass-regular::before, .glass-prominent::before, .panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--sheen); pointer-events: none; z-index: -1;
}
.glass-interactive { transition-property: box-shadow, transform, background-color, border-color; transition-duration: .25s; transition-timing-function: var(--spring); }
@media (hover: hover) {
  .glass-interactive:hover { box-shadow: var(--rim-hover), 0 0 0 1px var(--glass-hairline), var(--shadow-2); border-color: color-mix(in srgb, var(--glass-border) 70%, #fff); }
}

.panel-title { font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; color: var(--text-primary); display: flex; align-items: center; gap: .55rem; }
.panel-title svg { color: var(--accent); }
.panel-desc { font-size: var(--fs-small); color: var(--text-muted); max-width: 72ch; }

/* =====================================================================
   Barra superior flotante (cápsula)
   ===================================================================== */
#topbar { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 40; height: 60px; border-radius: 9999px; display: flex; align-items: center; gap: .6rem; padding: 0 .55rem 0 .5rem; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; color: var(--text-primary); background: transparent; border: 1px solid transparent; transition-property: background-color, transform, border-color; transition-duration: .2s; transition-timing-function: var(--spring); flex-shrink: 0; }
@media (hover: hover) { .icon-btn:hover { background: var(--surface-sunken); } }
.icon-btn:active { transform: scale(.96); }
.trigger-lines { position: relative; width: 18px; height: 12px; }
.trigger-lines span { position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--spring), width .45s var(--spring), opacity .2s ease-out; }
.trigger-lines span:nth-child(1) { top: 0; width: 18px; } .trigger-lines span:nth-child(2) { top: 5px; width: 12px; } .trigger-lines span:nth-child(3) { top: 10px; width: 15px; }
@media (hover: hover) { #drawer-trigger:hover .trigger-lines span { width: 18px; } }
#drawer-trigger[aria-expanded="true"] .trigger-lines span:nth-child(1) { transform: translateY(5px) rotate(45deg); width: 18px; }
#drawer-trigger[aria-expanded="true"] .trigger-lines span:nth-child(2) { opacity: 0; }
#drawer-trigger[aria-expanded="true"] .trigger-lines span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 18px; }
.brand-mark { width: 2.2rem; height: 2.2rem; border-radius: 11px; background: #07090E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 4px 10px -4px rgba(7, 9, 14, .55); }
.brand-mark svg { width: 78%; height: 78%; display: block; }
.brand-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.brand-name { font-family: var(--font-display); font-variation-settings: "SOFT" 80, "WONK" 0; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1; }
.crumb { font-size: var(--fs-small); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: var(--text-primary); font-weight: 650; }
kbd { font-family: var(--font-mono); font-size: .68rem; padding: .1rem .4rem; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); color: var(--accent-contrast); font-weight: 750; font-size: .82rem; letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px -4px var(--accent-glow); flex-shrink: 0; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.25rem; }
button.avatar { border: 0; transition: transform .2s var(--spring); }
button.avatar:active { transform: scale(.96); }

/* Indicador realtime */
.rt-badge { display: none; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: 9999px; font-size: .75rem; font-weight: 650; background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 26%, transparent); }
.rt-badge.is-offline { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 34%, transparent); }
@media (min-width: 1100px) { .rt-badge { display: inline-flex; } }
.live-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulseLive 1.9s var(--ease-out) infinite; }
  @keyframes pulseLive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
}

/* ---------- Conmutador de tema (Claro / Oscuro / Sistema) ---------- */
.theme-capsule { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 9999px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border); flex-shrink: 0; }
.theme-capsule .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 9999px; background: var(--surface-elevated); box-shadow: var(--rim), 0 2px 8px -2px rgba(15, 23, 42, .18); transition: transform .45s var(--spring); pointer-events: none; }
.theme-capsule[data-value="dark"] .thumb { transform: translateX(100%); }
.theme-capsule[data-value="system"] .thumb { transform: translateX(200%); }
.theme-capsule button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 36px; height: 34px; padding: 0 .55rem; border: 0; background: transparent; border-radius: 9999px; color: var(--text-muted); font-size: .76rem; font-weight: 650; transition: color .2s ease-out; }
.theme-capsule button[aria-checked="true"] { color: var(--text-primary); }
.theme-capsule button svg { width: 15px; height: 15px; }
.theme-capsule .t-label { display: none; }
.theme-capsule.labeled { display: grid; width: 100%; }
.theme-capsule.labeled .t-label { display: inline; }

/* =====================================================================
   Drawer flotante (oculto por defecto)
   ===================================================================== */
#drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .35s var(--spring), visibility 0s linear .35s; }
#drawer-backdrop.show { opacity: 1; visibility: visible; transition: opacity .35s var(--spring), visibility 0s; }
#sidebar { position: fixed; z-index: 70; top: 16px; bottom: 16px; left: 16px; width: min(340px, calc(100vw - 32px)); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(-100% - 32px)); visibility: hidden; transition: transform .6s var(--spring), visibility 0s linear .6s; overscroll-behavior: contain; }
#sidebar.open { transform: translateX(0); visibility: visible; transition: transform .6s var(--spring), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  #sidebar { transform: none; opacity: 0; transition: opacity .2s ease-out, visibility 0s linear .2s; }
  #sidebar.open { opacity: 1; transition: opacity .2s ease-out, visibility 0s; }
}
.drawer-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .25rem .75rem .75rem; }
.nav-section { padding: 1rem .6rem .45rem; color: var(--text-subtle); }
.nav-item { position: relative; display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: .65rem; width: 100%; min-height: 48px; padding: .4rem .55rem; border-radius: 14px; color: var(--text-secondary); font-weight: 600; font-size: .9rem; text-align: left; background: transparent; border: 1px solid transparent; transition-property: background-color, color, box-shadow, transform; transition-duration: .2s; transition-timing-function: var(--spring); }
.nav-item .nav-ico { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 11px; background: var(--surface-sunken); color: var(--text-muted); transition: background-color .2s, color .2s; }
.nav-item .nav-ico svg { width: 17px; height: 17px; }
.nav-item small { display: block; font-size: .72rem; font-weight: 500; color: var(--text-subtle); margin-top: 1px; }
@media (hover: hover) { .nav-item:hover { background: var(--surface); color: var(--text-primary); } }
.nav-item:active { transform: scale(.98); }
.nav-item.active { background: var(--surface-elevated); color: var(--text-primary); box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline), 0 6px 16px -10px rgba(15,23,42,.25); }
.nav-item.active .nav-ico { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 4px 12px -4px var(--accent-glow); }
.notif-dot { width: .55rem; height: .55rem; border-radius: 9999px; background: var(--crit); }
@media (prefers-reduced-motion: no-preference) {
  .notif-dot { animation: pulseCrit 1.8s var(--ease-out) infinite; }
  @keyframes pulseCrit { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--crit) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
}
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .82rem; color: var(--text-muted); }
.stat-row:last-child { border-bottom: 0; }
.stat-row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .92rem; font-weight: 600; }
.profile-card { margin: .75rem; padding: 1rem; border-radius: 20px; }
.role-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 9999px; background: var(--accent-soft); color: var(--accent-soft-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), var(--rim); font-size: var(--fs-micro); font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.role-badge svg { width: 12px; height: 12px; }

/* =====================================================================
   Contenido
   ===================================================================== */
main#main { padding: 100px clamp(16px, 4vw, 48px) 64px; }
.page { max-width: 1320px; margin: 0 auto; }
.mod-head { display: grid; gap: .7rem; margin-bottom: 1.75rem; max-width: 980px; }
.mod-tag { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); flex-wrap: wrap; }
.mod-num { display: inline-flex; align-items: center; justify-content: center; height: 1.6rem; min-width: 1.6rem; padding: 0 .45rem; border-radius: 8px; background: var(--accent); color: var(--accent-contrast); font-family: var(--font-mono); font-weight: 700; font-size: .74rem; letter-spacing: 0; }
.mod-title { font-family: var(--font-display); font-optical-sizing: auto; font-variation-settings: "SOFT" 60; font-weight: 560; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; color: var(--text-primary); text-wrap: balance; margin: 0; }
.mod-lede { font-size: 1rem; color: var(--text-muted); max-width: 66ch; text-wrap: pretty; margin: 0; }
.mod-lede b { color: var(--text-primary); font-weight: 650; }

.module { display: none; }
.module.active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .module.active { animation: viewIn .55s var(--spring) both; }
  @keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.995); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .module.active { animation: fadeOnly .2s ease-out both; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
}

/* Encabezado de bienvenida por rol */
.welcome { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.welcome h1 { font-family: var(--font-display); font-optical-sizing: auto; font-variation-settings: "SOFT" 70; font-weight: 520; font-size: var(--fs-display); line-height: .98; letter-spacing: -0.035em; color: var(--text-primary); margin: .35rem 0 .45rem; text-wrap: balance; }
.welcome p { margin: 0; color: var(--text-muted); max-width: 62ch; font-size: 1rem; }
.welcome p b { color: var(--text-primary); font-family: var(--font-mono); font-weight: 600; font-size: .95em; }
@media (max-width: 640px) { .welcome { grid-template-columns: 1fr; } }

/* =====================================================================
   Botones, píldoras y controles
   ===================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.15rem; border-radius: 9999px; font-weight: 680; font-size: .875rem; line-height: 1.2; border: 1px solid transparent; transition-property: transform, background-color, border-color, box-shadow, color; transition-duration: .25s; transition-timing-function: var(--spring); user-select: none; white-space: nowrap; }
.btn:not(:disabled):active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px -8px var(--accent-glow); }
.btn-ghost { background: var(--surface); color: var(--text-primary); border-color: var(--glass-border); box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
.btn-quiet { background: transparent; color: var(--text-secondary); }
.btn-danger { background: transparent; color: var(--crit); }
@media (hover: hover) {
  .btn-primary:not(:disabled):hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 26px -8px var(--accent-glow); }
  .btn-ghost:not(:disabled):hover { box-shadow: var(--rim-hover), 0 0 0 1px var(--glass-hairline), var(--shadow-1); background: var(--surface-elevated); }
  .btn-quiet:not(:disabled):hover, .btn-danger:not(:disabled):hover { background: var(--surface-sunken); }
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-icon { padding: .5rem; min-width: 44px; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: .95rem; }

.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.05rem; border-radius: 9999px; border: 1px solid var(--glass-border); background: var(--glass-subtle-bg); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline); color: var(--text-secondary); font-weight: 650; font-size: .88rem; transition-property: transform, background-color, box-shadow, color; transition-duration: .25s; transition-timing-function: var(--spring); }
.chip:active { transform: scale(.98); }
@media (hover: hover) { .chip:hover { box-shadow: var(--rim-hover), 0 0 0 1px var(--glass-hairline), var(--shadow-1); color: var(--text-primary); } }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -8px var(--accent-glow); }
.chip.mono { font-family: var(--font-mono); }

/* Interruptor */
.switch { position: relative; width: 2.6rem; height: 1.5rem; flex-shrink: 0; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.slider { position: absolute; inset: 0; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border-strong); border-radius: 9999px; transition: background-color .25s var(--spring); pointer-events: none; }
.slider:before { content: ""; position: absolute; height: 1.1rem; width: 1.1rem; left: .2rem; top: .2rem; background: #fff; border-radius: 9999px; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .4s var(--spring); }
.switch input:checked + .slider { background: var(--warn); box-shadow: none; }
.switch.accent input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(1.1rem); }
.switch input:focus-visible + .slider { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Formularios ---------- */
.field { width: 100%; min-height: 44px; background: var(--glass-subtle-bg); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border: 1px solid var(--border-strong); border-radius: 14px; padding: .65rem .9rem; color: var(--text-primary); font-size: 1rem; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04); transition-property: border-color, box-shadow, background-color; transition-duration: .2s; transition-timing-function: ease-out; }
.field::placeholder { color: var(--text-subtle); opacity: 1; }
@media (hover: hover) { .field:hover { border-color: var(--text-subtle); } }
.field:focus { outline: none; background: var(--surface-elevated); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.invalid, .field[aria-invalid="true"] { border-color: var(--crit); box-shadow: 0 0 0 4px var(--crit-soft); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23808a9c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 12px; }
select.field option { background: var(--surface-solid); color: var(--text-primary); }
textarea.field { min-height: 6.5rem; resize: vertical; }
input[type="date"].field::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
:root[data-theme="dark"] input[type="date"].field::-webkit-calendar-picker-indicator { filter: invert(1); }
.label { display: block; font-size: .82rem; font-weight: 650; color: var(--text-secondary); margin-bottom: .4rem; }
.hint { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }
.field-error { display: flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--crit); margin-top: .35rem; min-height: 1.1rem; }
.field-error:empty { display: none; }
.step { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text-primary); font-size: .95rem; margin-bottom: .8rem; }
.step .step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.55rem; height: 1.55rem; border-radius: 9999px; background: var(--accent-soft); color: var(--accent-soft-text); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }

.cat-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .7rem; padding: .85rem; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--glass-subtle-bg); box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline); color: var(--text-secondary); font-size: .8rem; font-weight: 650; text-align: left; line-height: 1.2; min-height: 5.6rem; transition-property: transform, background-color, box-shadow, color; transition-duration: .25s; transition-timing-function: var(--spring); }
.cat-btn svg { width: 1.3rem; height: 1.3rem; color: var(--text-muted); }
@media (hover: hover) { .cat-btn:hover { box-shadow: var(--rim-hover), 0 0 0 1px var(--glass-hairline), var(--shadow-1); color: var(--text-primary); } }
.cat-btn:active { transform: scale(.98); }
.cat-btn.selected { background: var(--accent-soft); color: var(--accent-soft-text); box-shadow: 0 0 0 1.5px var(--accent) inset, var(--rim); }
.cat-btn.selected svg { color: var(--accent); }

/* ---------- Tablas ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.tbl th { text-align: left; font-size: var(--fs-micro); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding: .7rem .75rem; background: var(--surface-sunken); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th:first-child { border-top-left-radius: 14px; } .tbl th:last-child { border-top-right-radius: 14px; }
.tbl td { padding: .75rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .15s ease-out; }
@media (hover: hover) { .tbl tbody tr:hover td { background: var(--surface); } }
.tbl td.mono { white-space: nowrap; font-size: .8rem; }
.table-wrap { border: 1px solid var(--border); border-radius: 16px; background: var(--glass-subtle-bg); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
#fefo-table td:nth-child(3), #recent-table td:nth-child(2), #zone-table td:nth-child(2), #history-table td:nth-child(3) { min-width: 14rem; }

/* ---------- Etiquetas de estado ---------- */
.pill { display: inline-flex; align-items: center; gap: .32rem; padding: .2rem .62rem; border-radius: 9999px; font-size: .72rem; font-weight: 700; white-space: nowrap; border: 0; line-height: 1.35; }
button.pill { cursor: pointer; min-height: 30px; transition-property: transform, box-shadow; transition-duration: .2s; transition-timing-function: var(--spring); }
button.pill:active { transform: scale(.98); }
.pill-ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 24%, transparent); }
.pill-mon { background: var(--mon-soft); color: var(--mon); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mon) 24%, transparent); }
.pill-warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent); }
.pill-crit { background: var(--crit-soft); color: var(--crit); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crit) 28%, transparent); }
.pill-na { background: var(--surface); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border); }
.pill-accent { background: var(--accent-soft); color: var(--accent-soft-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.pill-sync { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); outline: 1px dashed color-mix(in srgb, var(--warn) 50%, transparent); outline-offset: -1px; }
@media (hover: hover) { button.pill:hover { box-shadow: inset 0 0 0 1.5px currentColor; } }
.sem { display: inline-block; width: .55rem; height: .55rem; border-radius: 9999px; background: currentColor; }

/* ---------- Métricas y tarjetas ---------- */
.sum-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.25rem; }
.sum-ico { width: 2.7rem; height: 2.7rem; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sum-n { font-family: var(--font-display); font-variation-settings: "SOFT" 60; font-weight: 560; font-size: 2.3rem; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.sum-card.is-crit { box-shadow: var(--rim), 0 0 0 1.5px color-mix(in srgb, var(--crit) 40%, transparent), var(--shadow-2); }
.sum-card.is-crit .sum-n { color: var(--crit); }
.tone-crit { background: var(--crit-soft); color: var(--crit); } .tone-warn { background: var(--warn-soft); color: var(--warn); } .tone-ok { background: var(--ok-soft); color: var(--ok); } .tone-accent { background: var(--accent-soft); color: var(--accent-soft-text); } .tone-mon { background: var(--mon-soft); color: var(--mon); }
.anom { border-radius: 16px; padding: .9rem 1rem; background: var(--glass-subtle-bg); box-shadow: var(--rim), inset 0 0 0 1px var(--border); }
.anom-warn { box-shadow: var(--rim), inset 0 0 0 1px color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn-soft) 70%, transparent); }
.anom-crit { box-shadow: var(--rim), inset 0 0 0 1px color-mix(in srgb, var(--crit) 40%, transparent); background: color-mix(in srgb, var(--crit-soft) 70%, transparent); }
.meter { width: 4.5rem; height: .45rem; border-radius: 9999px; background: var(--surface-sunken); overflow: hidden; }
.meter > div { height: 100%; border-radius: inherit; background: var(--accent); }

/* Barra de progreso de cristal brillante */
.progress { position: relative; height: .7rem; border-radius: 9999px; background: var(--surface-sunken); box-shadow: inset 0 1px 2px rgba(15,23,42,.08), inset 0 0 0 1px var(--border); overflow: hidden; }
.progress > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 12px var(--accent-glow); transition: width .9s var(--spring); }
.progress > span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 70%); background-size: 220% 100%; }
@media (prefers-reduced-motion: no-preference) { .progress > span::after { animation: shimmer 3.2s ease-in-out infinite; } @keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } } }
.progress.tone-warn-bar > span { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 70%, #fff), var(--warn)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }

.kpi-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.3rem; transition: opacity .25s ease-out; }
.kpi-card.dim { opacity: .35; }
.kpi-k { font-size: var(--fs-micro); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.kpi-v { font-family: var(--font-display); font-optical-sizing: auto; font-variation-settings: "SOFT" 60; font-weight: 560; font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-v .unit { font-family: var(--font-ui); font-size: .42em; font-weight: 650; letter-spacing: 0; color: var(--text-muted); margin-left: .25rem; }
.kpi-card.kpi-lead { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff 0%), color-mix(in srgb, var(--accent) 72%, #000)); border-color: transparent; }
.kpi-card.kpi-lead::before { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%); }
.kpi-card.kpi-lead .kpi-k, .kpi-card.kpi-lead .kpi-s, .kpi-card.kpi-lead .kpi-k svg, .kpi-card.kpi-lead .kpi-v .unit { color: color-mix(in srgb, var(--accent-contrast) 82%, transparent) !important; }
.kpi-card.kpi-lead .kpi-v { color: var(--accent-contrast); font-size: clamp(2.6rem, 1.7rem + 2.6vw, 4.1rem); }
.kpi-s { font-size: .8rem; }
.ods-badge { cursor: pointer; user-select: none; color: #fff; padding: .4rem .8rem; font-size: .74rem; min-height: 34px; }
.ods-badge.on { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--text-primary); }
.seg { display: inline-flex; padding: 3px; border-radius: 9999px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border); gap: 2px; }
.seg .pill { box-shadow: none; }
.seg .pill-mon { background: var(--surface-elevated); color: var(--text-primary); box-shadow: var(--rim), 0 2px 6px -2px rgba(15,23,42,.18); }
.seg .pill-na { background: transparent; color: var(--text-muted); }
.seg .btn { min-height: 38px; padding: .45rem .95rem; }
.seg .btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-muted); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Tarjetas de causa y misión */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.cause-card, .mission-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem; }
.cause-card h3, .mission-card h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 60; font-weight: 560; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; }
.meta-list { display: grid; gap: .4rem; font-size: .84rem; color: var(--text-muted); }
.meta-list > div { display: flex; align-items: center; gap: .5rem; }
.meta-list svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-subtle); }
.skill-tag { display: inline-flex; padding: .2rem .55rem; border-radius: 8px; font-size: .74rem; font-weight: 600; background: var(--surface-sunken); color: var(--text-secondary); }
.figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-primary); }

/* Medidor circular de horas */
.hours-ring { position: relative; width: 190px; height: 190px; flex-shrink: 0; }
.hours-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hours-ring .track { stroke: var(--surface-sunken); }
.hours-ring .value { stroke: var(--accent); stroke-linecap: round; filter: drop-shadow(0 0 8px var(--accent-glow)); transition: stroke-dashoffset 1.1s var(--spring); }
.hours-ring .ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hours-ring .ring-label b { font-family: var(--font-display); font-variation-settings: "SOFT" 60; font-weight: 560; font-size: 2.8rem; line-height: 1; color: var(--text-primary); letter-spacing: -0.03em; }
.badge-tile { display: flex; gap: .8rem; align-items: center; padding: .85rem; border-radius: 16px; }
.badge-tile .b-ico { width: 2.6rem; height: 2.6rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge-tile.locked { opacity: .55; }
.badge-tile.locked .b-ico { background: var(--surface-sunken); color: var(--text-subtle); }

/* Agenda */
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.2rem; padding: .5rem 0; border-radius: 16px; background: var(--accent-soft); color: var(--accent-soft-text); flex-shrink: 0; }
.date-block b { font-family: var(--font-display); font-weight: 560; font-size: 1.85rem; line-height: 1; letter-spacing: -0.03em; }
.date-block span { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Rejilla de disponibilidad */
.avail-grid { display: grid; grid-template-columns: 5.2rem repeat(7, minmax(2.6rem, 1fr)); gap: .4rem; align-items: center; }
.avail-grid .day { text-align: center; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.avail-grid .slot-l { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.slot { min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass-subtle-bg); transition-property: background-color, transform, box-shadow; transition-duration: .2s; transition-timing-function: var(--spring); display: flex; align-items: center; justify-content: center; color: transparent; }
.slot svg { width: 16px; height: 16px; }
.slot:active { transform: scale(.96); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-contrast); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px -6px var(--accent-glow); }
@media (hover: hover) { .slot:hover { box-shadow: var(--rim-hover), 0 0 0 1px var(--border-strong); } }

/* Éxito de donación */
.success-check { width: 84px; height: 84px; }
.success-check circle { stroke: var(--accent); stroke-width: 3; fill: var(--accent-soft); }
.success-check path { stroke: var(--accent); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .success-check circle { stroke-dasharray: 240; animation: drawRing .7s var(--spring) both; }
  .success-check path { animation: drawTick .5s var(--spring) .35s both; }
  @keyframes drawRing { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
  @keyframes drawTick { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
}

/* =====================================================================
   Onboarding en 2 pasos
   ===================================================================== */
#onboarding { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px) 16px; gap: 1.5rem; }
:root[data-auth="user"] #onboarding { display: none; }
:root[data-auth="guest"] #app { display: none; }
.ob-brand { display: flex; align-items: center; gap: .7rem; }
.ob-card { width: 100%; max-width: 540px; padding: clamp(1.5rem, 4vw, 2.5rem); overflow: hidden; transition: max-width .6s var(--spring); }
.ob-card.wide { max-width: 940px; }
.ob-progress { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.ob-progress .bar { flex: 1; height: 4px; border-radius: 9999px; background: var(--surface-sunken); overflow: hidden; }
.ob-progress .bar span { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--text-primary); transition: width .6s var(--spring); }
.ob-card.wide .ob-progress .bar span { width: 100%; }
.ob-title { font-family: var(--font-display); font-optical-sizing: auto; font-variation-settings: "SOFT" 80; font-weight: 520; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--text-primary); margin: 0 0 .6rem; text-wrap: balance; }
.ob-sub { color: var(--text-muted); margin: 0 0 1.6rem; max-width: 52ch; }
.ob-step { display: none; }
.ob-step.active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ob-step.active.from-right { animation: slideInR .6s var(--spring) both; }
  .ob-step.active.from-left { animation: slideInL .6s var(--spring) both; }
  @keyframes slideInR { from { opacity: 0; transform: translateX(40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes slideInL { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
}
.btn-google { width: 100%; min-height: 52px; gap: .75rem; background: var(--surface-elevated); color: var(--text-primary); border: 1px solid var(--glass-border); box-shadow: var(--rim), 0 0 0 1px var(--glass-hairline), var(--shadow-1); font-size: .95rem; }
.btn-google svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .btn-google:hover { box-shadow: var(--rim-hover), 0 0 0 1px var(--glass-hairline), 0 0 0 5px rgba(66, 133, 244, 0.14), 0 10px 30px -10px rgba(66, 133, 244, 0.45); }
}
.or-sep { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0; color: var(--text-subtle); }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 9999px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border); margin-bottom: 1.2rem; width: 100%; }
.tabs button { min-height: 40px; border: 0; border-radius: 9999px; background: transparent; font-weight: 650; font-size: .86rem; color: var(--text-muted); transition: background-color .25s var(--spring), color .2s; }
.tabs button[aria-selected="true"] { background: var(--surface-elevated); color: var(--text-primary); box-shadow: var(--rim), 0 2px 8px -2px rgba(15,23,42,.18); }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 3rem; }
.pw-wrap .icon-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; color: var(--text-muted); }
.pw-wrap .icon-btn:active { transform: translateY(-50%) scale(.96); }

/* Selector de perfil */
.role-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .role-grid { grid-template-columns: 1fr 1fr; } }
.role-option { position: relative; display: block; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 24px; overflow: hidden; transition-property: transform, box-shadow; transition-duration: .45s; transition-timing-function: var(--spring); }
.role-card::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 20%, var(--glow), transparent 55%); opacity: 0; transition: opacity .45s var(--spring); pointer-events: none; z-index: -1; }
.role-option[data-role="donor"] .role-card { --glow: rgba(52, 211, 153, 0.38); --tint: #0C7560; --tint-soft: rgba(12, 117, 96, 0.13); }
.role-option[data-role="volunteer"] .role-card { --glow: rgba(56, 189, 248, 0.38); --tint: #3A4FD0; --tint-soft: rgba(58, 79, 208, 0.12); }
:root[data-theme="dark"] .role-option[data-role="donor"] .role-card { --glow: rgba(52, 211, 153, 0.24); --tint: #4FD1B0; --tint-soft: rgba(79, 209, 176, 0.14); }
:root[data-theme="dark"] .role-option[data-role="volunteer"] .role-card { --glow: rgba(99, 140, 255, 0.28); --tint: #97A7FF; --tint-soft: rgba(151, 167, 255, 0.14); }
@media (hover: hover) { .role-option:hover .role-card { transform: translateY(-3px); box-shadow: var(--rim-hover), 0 0 0 1px var(--glass-hairline), var(--shadow-3); } .role-option:hover .role-card::after { opacity: 1; } }
.role-option input:checked + .role-card { box-shadow: var(--rim-hover), 0 0 0 2px var(--tint), var(--shadow-3); }
.role-option input:checked + .role-card::after { opacity: 1; }
.role-option input:focus-visible + .role-card { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.role-ico { width: 3.4rem; height: 3.4rem; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--tint-soft); color: var(--tint); }
.role-ico svg { width: 26px; height: 26px; }
.role-card h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 70; font-weight: 540; font-size: 1.65rem; line-height: 1.08; letter-spacing: -0.025em; color: var(--text-primary); margin: 0; }
.role-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .88rem; color: var(--text-secondary); }
.role-card li { display: flex; gap: .55rem; align-items: flex-start; }
.role-card li svg { width: 16px; height: 16px; color: var(--tint); flex-shrink: 0; margin-top: 2px; }
.role-check { position: absolute; top: 1.2rem; right: 1.2rem; width: 1.6rem; height: 1.6rem; border-radius: 9999px; box-shadow: inset 0 0 0 1.5px var(--border-strong); display: flex; align-items: center; justify-content: center; color: transparent; transition: background-color .3s var(--spring); }
.role-option input:checked + .role-card .role-check { background: var(--tint); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .role-option input:checked + .role-card .role-check { color: #0B0E14; }

/* =====================================================================
   WhatsApp (simulador)
   ===================================================================== */
.wa-shell { background: var(--wa-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); display: flex; flex-direction: column; box-shadow: var(--rim), var(--shadow-2); }
.wa-head { background: var(--wa-head); color: var(--wa-head-text); border-bottom: 1px solid color-mix(in srgb, var(--wa-sub) 18%, transparent); }
.wa-head .wa-sub { color: var(--wa-sub); }
.wa-body { background-color: var(--wa-bg); background-image: radial-gradient(var(--wa-dots) 1px, transparent 1px); background-size: 18px 18px; height: 460px; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .45rem; }
.bubble { max-width: 82%; padding: .45rem .65rem .3rem; border-radius: .7rem; font-size: .88rem; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.12); color: var(--wa-text); }
.bubble .t { display: block; text-align: right; font-size: .66rem; color: var(--wa-meta); margin-top: .15rem; }
.b-out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: .15rem; }
.b-in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: .15rem; }
.b-sys { align-self: center; background: var(--wa-sys); color: var(--wa-sys-text); font-size: .74rem; border-radius: .5rem; max-width: 90%; text-align: center; }
.wa-photo { border-radius: .4rem; background: color-mix(in srgb, var(--wa-bg) 70%, transparent); padding: .5rem; font-size: .75rem; }
.wa-quick { background: var(--wa-quick); }
.wa-foot { background: var(--wa-head); }
.wa-input { background: var(--wa-input); color: var(--wa-text); }
.wa-input::placeholder { color: var(--wa-sub); }
.wa-send { background: var(--wa-send); color: #fff; transition: transform .2s var(--spring); }
.wa-send:active { transform: scale(.96); }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; background: var(--wa-sub); border-radius: 50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.wave { display: inline-flex; gap: 2px; align-items: center; height: 18px; }
.wave i { display: block; width: 3px; background: currentColor; opacity: .55; border-radius: 2px; }
pre.json { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; font-family: var(--font-mono); font-size: .76rem; line-height: 1.6; color: var(--text-secondary); max-height: 440px; overflow: auto; overscroll-behavior: contain; white-space: pre-wrap; word-break: break-word; }
.j-key { color: var(--chart-4); } .j-str { color: var(--ok); } .j-num { color: var(--warn); } .j-bool { color: var(--mon); }
:root[data-role="volunteer"] .wa-role-seg, :root[data-role="donor"] .wa-role-seg { display: none; }

/* ---------- Etiqueta térmica QR ---------- */
.tag { position: relative; background: #FFFFFF; color: #171C21; border-radius: 16px 16px 12px 12px; padding: 1.4rem 1.1rem 1rem; text-align: center; box-shadow: 0 0 0 1px rgba(23,28,33,.08), 0 2px 4px -2px rgba(23,28,33,.18), 0 18px 36px -14px rgba(23,28,33,.32); }
.tag::before { content: ""; position: absolute; top: .6rem; left: 50%; width: 1.1rem; height: 1.1rem; margin-left: -.55rem; border-radius: 9999px; background: var(--background); box-shadow: inset 0 1px 2px rgba(0,0,0,.3); }
.tag::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 3.6rem; border-top: 2px dashed #D9D5CC; }
.tag-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .62rem; color: #4F5862; margin: .55rem 0 .7rem; }
.tag-id { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: #171C21; margin-top: .6rem; }
.tag-meta { font-size: .72rem; color: #4F5862; margin-top: .9rem; line-height: 1.45; min-height: 2.2rem; }
#qr-output canvas, #qr-output img { margin: 0 auto; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .tag.printed { animation: tagOut .6s var(--spring) both; }
  @keyframes tagOut { from { clip-path: inset(0 0 100% 0); transform: translateY(-6px); } to { clip-path: inset(0 0 0 0); transform: none; } }
}
.scan-box { position: relative; overflow: hidden; border-radius: 16px; border: 1px dashed var(--border-strong); background: var(--glass-subtle-bg); min-height: 7rem; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 12px var(--accent); top: 0; opacity: 0; }
.scan-box.scanning .scan-line { opacity: 1; animation: scan 0.9s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { .scan-box.scanning .scan-line { animation: none; top: 50%; } }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } }

/* ---------- Línea de tiempo ---------- */
.tl { position: relative; padding-left: 2.7rem; }
.tl:before { content: ""; position: absolute; left: 1.02rem; top: .5rem; bottom: .5rem; width: 2px; background: repeating-linear-gradient(to bottom, var(--border-strong) 0 6px, transparent 6px 11px); }
.tl-item { position: relative; padding-bottom: 1.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -2.7rem; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: var(--glass-subtle-bg); box-shadow: var(--rim), inset 0 0 0 1px var(--border-strong); color: var(--text-subtle); }
.tl-item.done .tl-dot { background: var(--ok-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.tl-item.current .tl-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--accent-contrast); }

/* ---------- Diálogos (comprobantes y certificados) ---------- */
dialog.sheet { border: 0; padding: 0; max-width: min(560px, calc(100vw - 32px)); width: 100%; background: transparent; color: inherit; overflow: visible; }
dialog.sheet::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sheet .sheet-body { padding: clamp(1.4rem, 4vw, 2.2rem); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: no-preference) { dialog.sheet[open] .sheet-body { animation: sheetIn .5s var(--spring) both; } @keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } } }
.cert { border-radius: 20px; padding: 1.4rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.cert dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; font-size: .86rem; }
.cert dt { color: var(--text-muted); }
.cert dd { margin: 0; color: var(--text-primary); text-align: right; font-weight: 600; }

/* ---------- Toasts y overlay ---------- */
#toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2rem); }
.toast { position: relative; background: var(--glass-prominent-bg); -webkit-backdrop-filter: blur(44px) saturate(210%); backdrop-filter: blur(44px) saturate(210%); border: 1px solid var(--glass-border); color: var(--text-primary); padding: .8rem 1.05rem .8rem 2.15rem; border-radius: 18px; font-size: .86rem; font-weight: 550; box-shadow: var(--rim), var(--shadow-3); max-width: 380px; }
.toast::before { content: ""; position: absolute; left: .95rem; top: 1.12rem; width: .5rem; height: .5rem; border-radius: 9999px; background: var(--ok); }
.toast.warn::before { background: var(--warn); } .toast.err::before { background: var(--crit); } .toast.info::before { background: var(--mon); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toastIn .5s var(--spring) both; } @keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } } }
#sync-overlay { position: fixed; inset: 0; z-index: 130; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; }
#sync-overlay.show { display: flex; }
.spinner { width: 2.75rem; height: 2.75rem; border-radius: 9999px; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.print-only { display: none; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding: 2.5rem 1rem; color: var(--text-muted); }
.empty .e-ico { width: 3.2rem; height: 3.2rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-soft-text); }

/* Visibilidad por rol */
:root:not([data-role="donor"]) .donor-only { display: none !important; }
:root:not([data-role="volunteer"]) .vol-only { display: none !important; }

/* Transición suave de tema (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Sin soporte de backdrop-filter: superficies casi opacas para mantener contraste */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-subtle-bg: rgba(255,255,255,.9); --glass-regular-bg: rgba(255,255,255,.94); --glass-prominent-bg: #fff; }
  :root[data-theme="dark"] { --glass-subtle-bg: rgba(18,22,34,.92); --glass-regular-bg: rgba(18,22,34,.95); --glass-prominent-bg: #141926; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-subtle-bg: rgba(255,255,255,.92); --glass-regular-bg: rgba(255,255,255,.95); --glass-prominent-bg: #fff; }
  :root[data-theme="dark"] { --glass-subtle-bg: rgba(18,22,34,.94); --glass-regular-bg: rgba(18,22,34,.96); --glass-prominent-bg: #141926; }
}
@media (forced-colors: active) { .glass-subtle, .glass-regular, .glass-prominent, .panel, .btn, .chip, .field { border: 1px solid CanvasText; } }

/* ============ @media print — Exportación PDF Rúbrica UAO ============ */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #ffffff !important; background-image: none !important; }
  body, p, span, td, th, div, pre, h1, h2, h3, h4, li, label, strong, small, code, button, b, dt, dd, sub, input, select, option, textarea, body * { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }
  input, select, textarea { background: #ffffff !important; }
  .aurora, #topbar, #sidebar, #drawer-backdrop, #toasts, #sync-overlay, #onboarding, .no-print, .wa-foot, .wa-quick, .skip-link { display: none !important; }
  :root[data-auth] #app { display: block !important; }
  main#main { margin: 0 !important; padding: 0 !important; }
  .module { display: none !important; }
  .module.active, body.print-all .module.printable { display: block !important; animation: none !important; }
  body.print-all .module.printable { page-break-before: always; break-before: page; }
  .glass-subtle, .glass-regular, .glass-prominent, .panel, .panel-sunken, .kpi-card, .sum-card, .anom, .wa-shell, .wa-head, .wa-body, pre.json, .cat-btn, .field, .scan-box, .toast, .tl-dot, .tag, .table-wrap, .tbl th, .chip, .cause-card, .mission-card, .cert { background: #ffffff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid #cbd5e1 !important; box-shadow: none !important; }
  .glass-regular::before, .glass-prominent::before, .panel::before, .role-card::after { display: none !important; }
  .mod-num, .kpi-card.kpi-lead, .progress > span, .avatar, .date-block { background: #ffffff !important; border: 1px solid #0f172a !important; box-shadow: none !important; }
  .wa-body, pre.json, .scroll-x, [class*="max-h-"], [class*="overflow-"] { max-height: none !important; height: auto !important; overflow: visible !important; }
  .bubble { background: #f1f5f9 !important; border: 1px solid #cbd5e1 !important; max-width: 100% !important; }
  .pill { background: #ffffff !important; border: 1px solid #64748b !important; box-shadow: none !important; }
  .tbl th, .tbl td { border-color: #cbd5e1 !important; }
  .panel, .tbl tr, .bubble, .tl-item, .kpi-card, .cause-card, .mission-card { page-break-inside: avoid; break-inside: avoid; }
  canvas { max-width: 100% !important; }
  .print-only { display: block !important; }
  a { text-decoration: none !important; }
  /* Impresión de un comprobante o certificado aislado */
  body.print-sheet #app, body.print-sheet .aurora { display: none !important; }
  body.print-sheet dialog.sheet[open] { position: static !important; display: block !important; max-width: none !important; }
  body.print-sheet dialog.sheet .sheet-body { max-height: none !important; }
  body.print-sheet dialog.sheet .no-print { display: none !important; }
}
