/* Sora Mente — sistema visual basado en el DESIGN.md original (jade, cielo, coral). Tipografía: Bricolage Grotesque + Geist, con Instrument Serif como acento */
:root {
  --bg: #f3fbf9; --bg-2: #edf5f3; --card: #ffffff; --raised: #ffffff; --field: #ffffff; --hover: #f5fbf8;
  --glass: rgba(255, 255, 255, .82); --chip: rgba(255, 255, 255, .8); --card-edge: rgba(255, 255, 255, .9);
  --ink: #151d1c; --ink-2: #3d4a43; --muted: #66756d; --faint: #93a39b;
  --line: #e3ece9; --line-2: #cfdcd6;
  --jade: #2bb88a; --jade-d: #006c4e; --jade-dd: #00422e; --mint: #e3f6ee; --mint-2: #d2f3e5;
  --sky: #84d8e2; --sky-d: #006971; --sky-soft: #e6f5f8;
  --coral: #ffa69e; --coral-d: #904a45; --coral-soft: #fdeeec;
  --amber: #a86a00; --amber-soft: #fbf1dc;
  --red: #ba1a1a; --red-soft: #ffe4e0; --danger: #ba1a1a;
  --lav: #ece8f8; --lav-d: #5b4a9a;
  --pine: #1a2221; --on-pine: #ffffff; --pine-accent: #9ff0cf; --pine-muted: #a9c2b9;
  --toast: #1a2221; --toast-ink: #ffffff; --toast-ic: #79fac7;
  --tint-a: #ffffff; --tint-b: #effaf5; --hero-a: #ffffff; --hero-b: #eaf8f3; --hero-c: #e5f5f9;
  --warm-a: #ffffff; --warm-b: #fff6f4; --warm-line: #fbdcd6; --risk-bg: #fff5f3;
  --phone: #f7faf9; --sheet-foot: #fbfdfc; --wa-bg: #e9e2d6;
  --hatch-a: #f6f8f7; --hatch-b: #f1f4f3;
  --ev-conf: #d9f4e8; --ev-conf-ink: #00422e; --ev-pend: #fcf0d9; --ev-pend-ink: #6b4600; --ev-asis: #e3f3f6; --ev-asis-ink: #004f56; --ev-falto: #fde3df; --ev-falto-ink: #7a1c14;
  --band0: #e3f6ee; --band1: #eef6e0; --band2: #fbf1dc; --band3: #fde6dc; --band4: #fbd9d6;
  --glow1: #dff6ec; --glow2: #e3f4f8; --glow3: #fbeeea;
  --av-s: 60%; --av-l1: 86%; --av-l2: 76%; --av-ink: #0e3b2e; --av-edge: rgba(255, 255, 255, .7);
  --sh1: 0 12px 36px -6px rgba(32, 78, 64, .08), 0 4px 12px -2px rgba(32, 78, 64, .04);
  --sh2: 0 20px 48px -8px rgba(22, 64, 52, .14), 0 6px 16px -3px rgba(22, 64, 52, .07);
  --r-sm: .6rem; --r: 1rem; --r-md: 1.4rem; --r-lg: 1.9rem;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --serif: var(--display);
  --accent: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.22, .9, .3, 1);
  color-scheme: light;
}
/* modo oscuro: sigue al sistema salvo que el usuario elija claro u oscuro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0b1210; --bg-2: #16201c; --card: #111a17; --raised: #17221e; --field: #0e1613; --hover: #15211d;
  --glass: rgba(17, 26, 23, .78); --chip: rgba(255, 255, 255, .04); --card-edge: rgba(255, 255, 255, .06);
  --ink: #e6efeb; --ink-2: #b6c5be; --muted: #8b9c94; --faint: #66776f;
  --line: #22302b; --line-2: #33443d;
  --jade: #34c796; --jade-d: #6fdcb0; --jade-dd: #aef0d4; --mint: #12332a; --mint-2: #1a4a3c;
  --sky: #5fc4d1; --sky-d: #8fdde8; --sky-soft: #0f2a30;
  --coral: #ff9f95; --coral-d: #f6aaa2; --coral-soft: #33201e;
  --amber: #f2c25e; --amber-soft: #31270f;
  --red: #ff8576; --red-soft: #3a1a17; --danger: #d64434;
  --lav: #231f3a; --lav-d: #c7bbff;
  --pine: #def5ec; --on-pine: #0b1210; --pine-accent: #0d7b5a; --pine-muted: #4d635a;
  --toast: #e6efeb; --toast-ink: #0b1210; --toast-ic: #0d7b5a;
  --tint-a: #121c19; --tint-b: #10251e; --hero-a: #13201c; --hero-b: #10271f; --hero-c: #0f2429;
  --warm-a: #141b19; --warm-b: #241816; --warm-line: #3d2622; --risk-bg: #2a1614;
  --phone: #0c1311; --sheet-foot: #141e1a; --wa-bg: #1b2420;
  --hatch-a: #121a17; --hatch-b: #0f1614;
  --ev-conf: #12382b; --ev-conf-ink: #b2f2d8; --ev-pend: #382b10; --ev-pend-ink: #f6d48e; --ev-asis: #0f2f35; --ev-asis-ink: #a3e4ec; --ev-falto: #3d1b18; --ev-falto-ink: #ffb6ac;
  --band0: #10302a; --band1: #1b2f1d; --band2: #332e17; --band3: #3a2519; --band4: #3e1d1b;
  --glow1: #0f2a20; --glow2: #0b2128; --glow3: #23161a;
  --av-s: 34%; --av-l1: 34%; --av-l2: 26%; --av-ink: #e7f6ef; --av-edge: rgba(255, 255, 255, .08);
  --sh1: 0 12px 32px -10px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
  --sh2: 0 24px 56px -12px rgba(0, 0, 0, .7), 0 6px 16px -4px rgba(0, 0, 0, .4);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1210; --bg-2: #16201c; --card: #111a17; --raised: #17221e; --field: #0e1613; --hover: #15211d;
  --glass: rgba(17, 26, 23, .78); --chip: rgba(255, 255, 255, .04); --card-edge: rgba(255, 255, 255, .06);
  --ink: #e6efeb; --ink-2: #b6c5be; --muted: #8b9c94; --faint: #66776f;
  --line: #22302b; --line-2: #33443d;
  --jade: #34c796; --jade-d: #6fdcb0; --jade-dd: #aef0d4; --mint: #12332a; --mint-2: #1a4a3c;
  --sky: #5fc4d1; --sky-d: #8fdde8; --sky-soft: #0f2a30;
  --coral: #ff9f95; --coral-d: #f6aaa2; --coral-soft: #33201e;
  --amber: #f2c25e; --amber-soft: #31270f;
  --red: #ff8576; --red-soft: #3a1a17; --danger: #d64434;
  --lav: #231f3a; --lav-d: #c7bbff;
  --pine: #def5ec; --on-pine: #0b1210; --pine-accent: #0d7b5a; --pine-muted: #4d635a;
  --toast: #e6efeb; --toast-ink: #0b1210; --toast-ic: #0d7b5a;
  --tint-a: #121c19; --tint-b: #10251e; --hero-a: #13201c; --hero-b: #10271f; --hero-c: #0f2429;
  --warm-a: #141b19; --warm-b: #241816; --warm-line: #3d2622; --risk-bg: #2a1614;
  --phone: #0c1311; --sheet-foot: #141e1a; --wa-bg: #1b2420;
  --hatch-a: #121a17; --hatch-b: #0f1614;
  --ev-conf: #12382b; --ev-conf-ink: #b2f2d8; --ev-pend: #382b10; --ev-pend-ink: #f6d48e; --ev-asis: #0f2f35; --ev-asis-ink: #a3e4ec; --ev-falto: #3d1b18; --ev-falto-ink: #ffb6ac;
  --band0: #10302a; --band1: #1b2f1d; --band2: #332e17; --band3: #3a2519; --band4: #3e1d1b;
  --glow1: #0f2a20; --glow2: #0b2128; --glow3: #23161a;
  --av-s: 34%; --av-l1: 34%; --av-l2: 26%; --av-ink: #e7f6ef; --av-edge: rgba(255, 255, 255, .08);
  --sh1: 0 12px 32px -10px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
  --sh2: 0 24px 56px -12px rgba(0, 0, 0, .7), 0 6px 16px -4px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 14px/1.55 var(--sans); color: var(--ink); background: var(--bg); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vw 50vh at 8% 0%, var(--glow1) 0%, transparent 60%), radial-gradient(50vw 50vh at 100% 10%, var(--glow2) 0%, transparent 60%), radial-gradient(40vw 40vh at 30% 100%, var(--glow3) 0%, transparent 60%), var(--bg);
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; font-family: var(--display); }
p { margin: 0; }
a { color: var(--jade-d); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--jade); outline-offset: 2px; border-radius: 8px; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; vertical-align: middle; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; flex: none; }
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.serif { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; font-optical-sizing: auto; }
.accent { font-family: var(--accent); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: .6rem; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: .75rem; }
.stack-sm > * + * { margin-top: .4rem; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up { color: var(--red); } .down { color: var(--jade-d); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 999px; padding: .62rem 1.1rem; font-weight: 600; font-size: 13.5px; line-height: 1.2; background: var(--pine); color: var(--on-pine); transition: transform .15s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { box-shadow: 0 8px 20px -6px rgba(0, 66, 46, .35); }
.btn:active { transform: scale(.97); }
.btn .ms { font-size: 18px; }
.btn.jade { background: linear-gradient(135deg, #2bb88a, #1f9c74); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--jade), 0 6px 16px -8px rgba(0, 66, 46, .3); }
.btn.soft { background: rgba(43, 184, 138, .12); color: var(--jade-d); }
.btn.soft:hover { background: rgba(43, 184, 138, .2); box-shadow: none; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.coral { background: var(--coral-soft); color: var(--coral-d); }
.btn.sm { padding: .42rem .8rem; font-size: 12.5px; }
.btn.sm .ms { font-size: 16px; }
.btn.lg { padding: .9rem 1.6rem; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: inline-grid; place-items: center; position: relative; color: var(--ink-2); transition: background .15s, transform .15s; flex: none; }
.icon-btn:hover { background: var(--mint); color: var(--jade-d); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 32px; height: 32px; } .icon-btn.sm .ms { font-size: 18px; }
.icon-btn.plain { box-shadow: none; background: transparent; }
.icon-btn.on { background: var(--pine); color: var(--on-pine); }
.icon-btn.off { background: var(--red-soft); color: var(--red); }
.dot-badge { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral-d); box-shadow: 0 0 0 2px var(--card); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--coral); color: #5a1e1a; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--jade-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 108, 78, .3); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .62rem; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; line-height: 1.4; }
.pill .ms { font-size: 14px; }
.pill.jade { background: var(--mint); color: var(--jade-d); }
.pill.sky { background: var(--sky-soft); color: var(--sky-d); }
.pill.coral { background: var(--coral-soft); color: var(--coral-d); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.lav { background: var(--lav); color: var(--lav-d); }
.pill.dark { background: var(--pine); color: var(--on-pine); }
.pill.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.st-activo { background: var(--mint); color: var(--jade-d); } .st-riesgo { background: var(--red-soft); color: var(--red); } .st-nuevo { background: var(--sky-soft); color: var(--sky-d); } .st-alta { background: var(--lav); color: var(--lav-d); } .st-abandono { background: var(--bg-2); color: var(--muted); }
.ap-pendiente { background: var(--amber-soft); color: var(--amber); } .ap-confirmada { background: var(--mint); color: var(--jade-d); } .ap-asistio { background: var(--sky-soft); color: var(--sky-d); } .ap-falto { background: var(--red-soft); color: var(--red); } .ap-cancelada { background: var(--bg-2); color: var(--muted); text-decoration: line-through; }
.tg-urgente { background: var(--red-soft); color: var(--red); } .tg-reprogramar { background: var(--amber-soft); color: var(--amber); } .tg-consulta { background: var(--sky-soft); color: var(--sky-d); } .tg-asesoria { background: var(--lav); color: var(--lav-d); }

/* ---------- tarjetas ---------- */
.card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh1); padding: 1.25rem; position: relative; border: 1px solid var(--card-edge); min-width: 0; }
.card.pad-lg { padding: 1.6rem; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tint { background: linear-gradient(140deg, var(--tint-a) 0%, var(--tint-b) 100%); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card-h h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.card-h h3 .ms { color: var(--jade); }
.eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.empty { display: grid; place-items: center; gap: .4rem; text-align: center; color: var(--muted); padding: 2rem 1rem; }
.empty .ms { font-size: 30px; color: var(--line-2); }
.empty.small { padding: 1.2rem; font-size: 12.5px; }
.divider { height: 1px; background: var(--line); margin: 1rem 0; border: 0; }

/* ---------- layout del panel ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; min-height: 100vh; }
.sidebar { position: sticky; top: 1.25rem; height: calc(100vh - 2.5rem); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--r-lg); box-shadow: var(--sh1); padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: .3rem; overflow-y: auto; border: 1px solid var(--card-edge); z-index: 40; }
.brand { display: flex; align-items: center; gap: .7rem; padding: .2rem .5rem 1.1rem; text-decoration: none; color: inherit; }
.logo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #b9f3dc, #2bb88a 75%); box-shadow: 0 8px 20px -8px rgba(43, 184, 138, .7); flex: none; }
.logo svg { width: 24px; height: 24px; }
.brand b { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.04em; display: block; line-height: 1.1; }
.brand small { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; color: var(--jade-d); text-transform: uppercase; display: flex; align-items: center; gap: .3rem; }
.brand small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.nav a { display: flex; align-items: center; gap: .75rem; padding: .66rem .8rem; border-radius: 14px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(43, 184, 138, .08); color: var(--ink); }
.nav a.on { background: var(--card); color: var(--jade-dd); font-weight: 700; box-shadow: var(--sh1); }
.nav a.on .ms { color: var(--jade); font-variation-settings: 'FILL' 1; }
.nav a .count { margin-left: auto; }
.nav a .live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 0 rgba(43, 184, 138, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(43, 184, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 184, 138, 0); } }
.nav-sep { margin: .9rem .8rem .3rem; }
.side-foot { margin-top: auto; display: grid; gap: .6rem; padding-top: 1rem; }
.law { display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border-radius: 16px; background: linear-gradient(135deg, var(--mint), var(--sky-soft)); font-size: 11.5px; line-height: 1.35; color: var(--ink-2); }
.law b { color: var(--ink); display: block; font-size: 12px; }
.law .ms { color: var(--jade-d); }
.main { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.topbar { position: sticky; top: 1.25rem; z-index: 30; display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem .6rem .9rem; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--r-lg); box-shadow: var(--sh1); border: 1px solid var(--card-edge); }
.search { position: relative; flex: 1; max-width: 460px; }
.search .ms { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 19px; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 0; background: var(--bg-2); padding: 0 1rem 0 2.6rem; outline: none; transition: box-shadow .2s, background .2s; }
.search input:focus { background: var(--field); box-shadow: inset 0 0 0 1.5px var(--jade); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--raised); border: 1px solid var(--card-edge); border-radius: var(--r); box-shadow: var(--sh2); padding: .4rem; z-index: 50; max-height: 380px; overflow: auto; }
.dropdown.right { left: auto; right: 0; width: 360px; }
.dd-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 12px; cursor: pointer; text-decoration: none; color: inherit; width: 100%; background: none; border: 0; text-align: left; }
.dd-item:hover, .dd-item.on { background: var(--bg-2); }
.me-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .4rem .25rem .25rem; border-radius: 999px; background: none; border: 0; text-align: left; }
.me-chip:hover { background: var(--bg-2); }
.me-chip b { font-size: 13px; display: block; line-height: 1.2; }
.me-chip small { font-size: 11px; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--jade); }
.status-dot.consulta { background: var(--coral-d); } .status-dot.ausente { background: var(--faint); }
.menu-btn { display: none; }
.view { min-width: 0; }
.view.enter { animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .3rem .2rem 1.2rem; }
.page-h h1 { font-family: var(--display); font-weight: 650; font-size: 36px; line-height: 1.05; letter-spacing: -.045em; }
.page-h p { color: var(--muted); margin-top: .3rem; max-width: 640px; }
.demo-flag { font-size: 11px; color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; }
.g-side-l { grid-template-columns: 340px minmax(0, 1fr); }
.span2 { grid-column: span 2; }

/* KPIs */
.kpi { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
a.kpi:hover, button.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
button.kpi { text-align: left; border: 1px solid var(--card-edge); font: inherit; color: inherit; }
.kpi .k-top { display: flex; justify-content: space-between; align-items: center; }
.kpi .k-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--jade-d); }
.kpi .k-ic.sky { background: var(--sky-soft); color: var(--sky-d); } .kpi .k-ic.coral { background: var(--coral-soft); color: var(--coral-d); } .kpi .k-ic.lav { background: var(--lav); color: var(--lav-d); } .kpi .k-ic.amber { background: var(--amber-soft); color: var(--amber); }
.kpi .k-v { font-family: var(--display); font-size: 32px; font-weight: 650; letter-spacing: -.05em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .k-v small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi .k-l { font-size: 12.5px; color: var(--muted); }
.kpi .k-d { font-size: 12px; font-weight: 600; }

/* semáforo clínico */
.alert-card { border-radius: var(--r-md); padding: 1.1rem 1.25rem; background: linear-gradient(120deg, var(--warm-a) 0%, var(--warm-b) 100%); box-shadow: var(--sh1); border: 1px solid var(--warm-line); }
.alert-row { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem 0; border-top: 1px dashed var(--line); }
.alert-row:first-of-type { border-top: 0; }
.light { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.light.rojo { background: var(--red); box-shadow: 0 0 0 4px rgba(186, 26, 26, .14); animation: pulseR 2s infinite; }
.light.ambar { background: #e2a33a; box-shadow: 0 0 0 4px rgba(226, 163, 58, .18); }
.light.verde { background: var(--jade); box-shadow: 0 0 0 4px rgba(43, 184, 138, .16); }
@keyframes pulseR { 50% { box-shadow: 0 0 0 7px rgba(186, 26, 26, .05); } }

/* listas */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: .8rem; padding: .7rem .5rem; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s; min-width: 0; }
.li + .li { border-top: 1px solid var(--line); }
.li:hover { background: var(--bg-2); }
.li b { font-weight: 600; }
.li .meta { font-size: 12px; color: var(--muted); }
.timeline { position: relative; }
.tl-item { display: grid; grid-template-columns: 58px 1fr; gap: .8rem; padding: .6rem 0; }
.tl-time { font-family: var(--mono); font-weight: 500; font-size: 12.5px; text-align: right; padding-top: .55rem; font-variant-numeric: tabular-nums; }
.tl-time small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.tl-card { background: var(--bg-2); border-radius: 16px; padding: .75rem .9rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--jade); min-width: 0; }
.tl-card.now { background: linear-gradient(120deg, var(--mint), var(--card)); box-shadow: var(--sh1); }
.tl-card.past { opacity: .75; }
.tl-card.st-pendiente { border-left-color: #e2a33a; } .tl-card.st-falto { border-left-color: var(--red); } .tl-card.st-asistio { border-left-color: var(--sky); }

/* avatar */
.avatar { width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 700; font-size: calc(var(--s) * .36); color: var(--av-ink); background: linear-gradient(140deg, hsl(var(--h1) var(--av-s) var(--av-l1)), hsl(var(--h2) var(--av-s) var(--av-l2))); box-shadow: inset 0 0 0 2px var(--av-edge); letter-spacing: .02em; position: relative; }
.avatar.ring-risk { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--red); }
.avatar.online::after { content: ''; position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 2px var(--card); }

/* tabs segmentadas */
.tabs { display: inline-flex; gap: .25rem; padding: .3rem; background: var(--bg-2); border-radius: 999px; flex-wrap: wrap; }
.tabs button, .tabs a { border: 0; background: transparent; padding: .46rem .95rem; border-radius: 999px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: .35rem; align-items: center; text-decoration: none; white-space: nowrap; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs .on { background: var(--raised); color: var(--jade-dd); box-shadow: 0 4px 12px -4px rgba(22, 64, 52, .18); }
.tabs .count { height: 18px; min-width: 18px; font-size: 10px; }
.tabs-line { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.tabs-line button { border: 0; background: none; padding: .7rem 0; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tabs-line button.on { color: var(--jade-dd); border-color: var(--jade); }

/* tablas */
.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 820px; }
.t th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: .2rem; }
.t td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tbody tr { cursor: pointer; transition: background .15s; }
.t tbody tr:hover { background: var(--hover); }
.t tr:last-child td { border-bottom: 0; }
.t .cell-p { display: flex; gap: .7rem; align-items: center; min-width: 210px; }
.t .cell-p b { display: block; font-weight: 600; }
.bar { height: 7px; border-radius: 9px; background: var(--line); overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--jade), #5fd3a9); }
.bar.warn i { background: linear-gradient(90deg, #e2a33a, #f0c46c); } .bar.bad i { background: linear-gradient(90deg, var(--red), #e86b5d); }

/* formularios */
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > span, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line-2); background: var(--field); border-radius: 14px; padding: .65rem .85rem; outline: none; transition: border .15s, box-shadow .15s; min-height: 42px;
}
.field textarea, textarea.input { resize: vertical; min-height: 88px; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(43, 184, 138, .14); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; cursor: pointer; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.switch input:checked { background: var(--jade); }
.switch input:checked::after { transform: translateX(18px); }
.switch b { font-weight: 600; display: block; font-size: 13.5px; }
.switch small { color: var(--muted); font-size: 12px; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--chip); border-radius: 999px; padding: .42rem .85rem; font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: .35rem; transition: all .18s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--jade); color: var(--jade-d); }
.chip.on { background: var(--mint-2); border-color: var(--jade); color: var(--jade-dd); transform: scale(1.03); box-shadow: inset 0 0 0 1px var(--jade); }
.chip .ms { font-size: 16px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--jade-d); margin-top: 1px; flex: none; }

/* overlay / modal */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(21, 40, 34, .32); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; opacity: 0; transition: opacity .2s; }
.overlay.in { opacity: 1; }
.sheet { background: var(--raised); border: 1px solid var(--card-edge); border-radius: var(--r-lg); box-shadow: var(--sh2); width: min(560px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); overflow: hidden; }
.sheet.wide { width: min(880px, 100%); }
.overlay.in .sheet { transform: none; }
.overlay.side { place-items: stretch end; padding: .75rem; }
.overlay.side .sheet { height: 100%; max-height: none; width: min(480px, 100%); transform: translateX(30px); }
.overlay.side.in .sheet { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.4rem .9rem; }
.sheet-head h2 { font-family: var(--display); font-weight: 650; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }
.sheet-head p { font-size: 13px; margin-top: .25rem; }
.sheet-body { padding: .3rem 1.4rem 1.2rem; overflow-y: auto; flex: 1; }
.sheet-foot { padding: .9rem 1.4rem 1.2rem; display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); background: var(--sheet-foot); }

/* toasts */
#toasts { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast { background: var(--toast); color: var(--toast-ink); padding: .75rem 1.1rem; border-radius: 999px; display: flex; gap: .6rem; align-items: center; font-weight: 500; font-size: 13.5px; box-shadow: var(--sh2); opacity: 0; transform: translateY(12px); transition: all .3s var(--ease); }
.toast .ms { color: var(--toast-ic); }
.toast.warn .ms { color: var(--coral); }
.toast.in { opacity: 1; transform: none; }

/* gráficos */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { font-size: 10.5px; fill: var(--faint); font-family: var(--mono); }
.chart .band-l { font-size: 9.5px; fill: var(--muted); font-weight: 500; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.chart .pt:hover circle:nth-child(2) { r: 6; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: .5rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: .35rem; vertical-align: -1px; }
.donut { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; flex: 1; min-width: 150px; }
.donut li { display: flex; align-items: center; gap: .5rem; font-size: 13px; }
.donut li span { flex: 1; }
.donut li i { width: 10px; height: 10px; border-radius: 3px; }
.donut-n { font-size: 28px; font-weight: 650; fill: var(--ink); font-family: var(--display); letter-spacing: -.04em; }
.donut-s { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.ring text { font-size: 14px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.spark { display: block; }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 5px; background: var(--line); display: block; }
.heat i.on { background: var(--jade); }
.heat i.today { box-shadow: inset 0 0 0 2px var(--pine); }

/* chat */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 1.25rem; height: calc(100vh - 210px); min-height: 560px; }
.inbox > .card { display: flex; flex-direction: column; min-height: 0; padding: 1rem; }
.threads { overflow-y: auto; flex: 1; margin: 0 -.4rem; padding: 0 .4rem; }
.th { display: flex; gap: .7rem; padding: .7rem; border-radius: 16px; cursor: pointer; border: 1px solid transparent; transition: background .15s; text-decoration: none; color: inherit; position: relative; }
.th:hover { background: var(--bg-2); }
.th.on { background: linear-gradient(120deg, var(--mint), var(--card)); border-color: var(--mint-2); }
.th .th-b { flex: 1; min-width: 0; }
.th .th-n { display: flex; justify-content: space-between; gap: .4rem; }
.th .th-n b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th .th-n time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.th .th-p { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .15rem 0 .35rem; }
.th.unread .th-p { color: var(--ink); font-weight: 500; }
.th.unread::after { content: ''; position: absolute; right: 10px; bottom: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); }
.chat-head { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; padding: 1rem .3rem; display: flex; flex-direction: column; gap: .55rem; }
.day-sep { align-self: center; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-2); padding: .2rem .7rem; border-radius: 99px; margin: .4rem 0; }
.bubble { max-width: min(78%, 520px); padding: .7rem .95rem; border-radius: 20px; font-size: 13.5px; line-height: 1.5; position: relative; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; font-size: 10.5px; opacity: .6; margin-top: .25rem; text-align: right; }
.bubble.them { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #1f9c74, #0d7b5a); color: #fff; border-bottom-right-radius: 6px; }
.bubble.sys { align-self: center; background: transparent; color: var(--muted); font-size: 12px; text-align: center; padding: .3rem .6rem; max-width: 90%; }
.bubble.sys .ms { font-size: 15px; color: var(--jade); }
.bubble.risk { box-shadow: 0 0 0 2px var(--red); background: var(--risk-bg); }
.bubble .risk-tag { display: flex; gap: .3rem; align-items: center; font-size: 11px; font-weight: 700; color: var(--red); margin-bottom: .3rem; }
.bubble .attach { display: flex; gap: .6rem; align-items: center; background: rgba(255, 255, 255, .18); border-radius: 14px; padding: .55rem .7rem; margin-top: .4rem; }
.bubble.them .attach { background: var(--raised); }
.bubble .slot-opts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.composer { display: flex; gap: .5rem; align-items: flex-end; padding-top: .8rem; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 20px; padding: .65rem 1rem; min-height: 44px; max-height: 140px; outline: none; line-height: 1.45; }
.composer textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(43, 184, 138, .12); }
.quick { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0 .1rem; scrollbar-width: thin; }
.quick .chip { font-size: 12px; padding: .35rem .75rem; }
.crisis-strip { display: flex; gap: .9rem; align-items: center; padding: .9rem 1.2rem; border-radius: var(--r-md); background: linear-gradient(120deg, var(--warm-a), var(--warm-b)); border: 1px solid var(--warm-line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.crisis-strip .ms { color: var(--coral-d); font-size: 24px; }
.crisis-strip p { flex: 1; min-width: 240px; font-size: 13px; color: var(--ink-2); }

/* agenda */
.cal { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(110px, 1fr)); position: relative; min-width: 760px; }
.cal-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.cal-h { position: sticky; top: 0; background: var(--card); z-index: 3; padding: .5rem .4rem .7rem; text-align: center; border-bottom: 1px solid var(--line); }
.cal-h b { display: block; font-family: var(--display); font-size: 21px; font-weight: 650; letter-spacing: -.04em; line-height: 1.1; }
.cal-h small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.cal-h.today b { color: #fff; background: var(--jade); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin: 2px auto 0; font-size: 16px; }
.cal-t { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: right; padding-right: 8px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.cal-c { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 56px; position: relative; cursor: pointer; transition: background .15s; }
.cal-c:hover { background: var(--hover); }
.cal-c.off { background: repeating-linear-gradient(135deg, var(--hatch-a), var(--hatch-a) 6px, var(--hatch-b) 6px, var(--hatch-b) 12px); cursor: not-allowed; }
.cal-c.off:hover { background: repeating-linear-gradient(135deg, var(--hatch-a), var(--hatch-a) 6px, var(--hatch-b) 6px, var(--hatch-b) 12px); }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 12px; padding: .35rem .5rem; font-size: 11.5px; line-height: 1.3; overflow: hidden; cursor: pointer; z-index: 2; border: 0; text-align: left; display: block; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .2); transition: transform .15s; }
.ev:hover { transform: scale(1.02); z-index: 4; }
.ev b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.st-confirmada { background: var(--ev-conf); color: var(--ev-conf-ink); border-left: 4px solid var(--jade); }
.ev.st-pendiente { background: var(--ev-pend); color: var(--ev-pend-ink); border-left: 4px solid #e2a33a; }
.ev.st-asistio { background: var(--ev-asis); color: var(--ev-asis-ink); border-left: 4px solid var(--sky); }
.ev.st-falto { background: var(--ev-falto); color: var(--ev-falto-ink); border-left: 4px solid var(--red); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--coral-d); z-index: 3; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral-d); }

/* sala de teleconsulta */
.tele { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 1.25rem; }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 480px; height: min(62vh, 620px); background: radial-gradient(circle at 30% 30%, #2d4b43, #14211e 70%); box-shadow: var(--sh2); }
.stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.remote { position: absolute; inset: 0 0 84px; display: grid; place-items: center; text-align: center; color: #d6efe6; padding: 3rem 1rem 0; }
.remote .avatar { --s: 120px !important; font-size: 40px; }
.remote .pulse-ring { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 2px solid rgba(121, 250, 199, .35); animation: ripple 2.4s infinite; }
@keyframes ripple { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.self { position: absolute; right: 16px; top: 56px; width: 24%; min-width: 130px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #22332f; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .6); display: grid; place-items: center; color: #cfe; font-size: 12px; text-align: center; }
.self video { position: absolute; inset: 0; }
.stage-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: .5rem; flex-wrap: wrap; z-index: 2; }
.glass-pill { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: .4rem .8rem; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; color: var(--ink); }
.controls { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: .5rem; padding: .5rem; border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 2; box-shadow: var(--sh2); }
.controls .icon-btn { width: 46px; height: 46px; }
.controls .btn.danger { padding: .6rem 1rem; }
.soap-sec { border-radius: 18px; padding: .9rem 1rem; background: var(--bg-2); }
.soap-sec + .soap-sec { margin-top: .7rem; }
.soap-sec header { display: flex; gap: .6rem; align-items: center; margin-bottom: .45rem; }
.soap-letter { width: 28px; height: 28px; border-radius: 9px; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.soap-sec textarea { width: 100%; border: 0; background: var(--field); border-radius: 12px; padding: .6rem .75rem; min-height: 74px; resize: vertical; outline: none; line-height: 1.5; font-size: 13.5px; }
.soap-sec textarea:focus { box-shadow: 0 0 0 2px var(--jade); }
.soap-sec textarea[readonly] { background: transparent; padding-left: 0; resize: none; }
.lock-panel { text-align: center; padding: 2rem 1rem; display: grid; gap: .8rem; justify-items: center; }
.lock-panel .lock-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint), var(--sky-soft)); color: var(--jade-d); }
.lock-panel .lock-ic .ms { font-size: 30px; }
.pin { letter-spacing: .5em; text-align: center; font-size: 20px !important; font-weight: 700; max-width: 200px; }
.cipher { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted); word-break: break-all; background: var(--bg-2); padding: .5rem .7rem; border-radius: 10px; }

/* ---------- app del paciente ---------- */
.p-stage { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 1.5rem; }
.p-aside { max-width: 330px; justify-self: end; }
.p-aside.r { justify-self: start; }
.phone { width: 400px; height: min(860px, calc(100vh - 3rem)); border-radius: 48px; background: var(--phone); box-shadow: 0 0 0 7px #121a18, 0 0 0 8px #3a4744, 0 40px 90px -20px rgba(20, 60, 50, .45); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #0d1312; z-index: 60; }
.p-status { height: 46px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0; font-size: 13px; font-weight: 700; }
.p-status span:last-child { display: flex; gap: 4px; }
.p-status .ms { font-size: 16px; }
.p-scroll { flex: 1; overflow-y: auto; padding: .4rem 1.1rem 110px; scrollbar-width: none; }
.p-scroll::-webkit-scrollbar { display: none; }
.p-head { display: flex; align-items: center; gap: .75rem; padding: .5rem 0 1rem; }
.p-head h1 { font-family: var(--display); font-size: 23px; font-weight: 650; letter-spacing: -.045em; }
.p-head p { font-size: 13px; color: var(--muted); }
.p-card { background: var(--card); border-radius: 28px; padding: 1.15rem; box-shadow: 0 10px 30px -8px rgba(30, 41, 59, .07); margin-bottom: .9rem; position: relative; }
.p-card.hero { background: linear-gradient(150deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%); }
.p-card h2 { font-family: var(--display); font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.p-title { font-family: var(--display); font-weight: 650; font-size: 27px; letter-spacing: -.045em; line-height: 1.1; margin: .2rem 0 1rem; }
.moods { display: flex; justify-content: space-between; gap: .3rem; }
.mood { flex: 1; border: 0; background: var(--bg-2); border-radius: 18px; padding: .6rem .2rem; display: grid; justify-items: center; gap: .25rem; font-size: 10.5px; font-weight: 600; color: var(--ink-2); transition: all .2s var(--ease); }
.mood .ms { font-size: 28px; }
.mood:hover { transform: translateY(-2px); }
.mood.on { background: var(--mc); color: #10302a; transform: scale(1.06); box-shadow: 0 8px 18px -8px var(--mc); }
.p-nav { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 50; display: flex; justify-content: space-around; padding: .45rem; border-radius: 26px; background: var(--glass); border: 1px solid var(--card-edge); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--sh2); }
.p-nav button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: .35rem .55rem; border-radius: 16px; position: relative; min-width: 56px; }
.p-nav button .ms { font-size: 23px; }
.p-nav button.on { color: var(--jade-d); }
.p-nav button.on .ms { font-variation-settings: 'FILL' 1; background: var(--mint); border-radius: 12px; padding: 3px 14px; }
.p-nav .dot-badge { top: 4px; right: 14px; }
.p-sheet { position: absolute; inset: 0; z-index: 80; background: rgba(15, 30, 26, .3); display: flex; align-items: flex-end; animation: fade .2s; }
.p-sheet > div { background: var(--raised); width: 100%; border-radius: 30px 30px 0 0; max-height: 92%; overflow-y: auto; padding: 1.2rem 1.2rem 2rem; animation: slideUp .35s var(--ease); }
@keyframes slideUp { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.grabber { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: -.3rem auto 1rem; }
.p-chat { display: flex; flex-direction: column; height: 100%; }
.p-chat .msgs { padding: .5rem 0; }
.p-composer { position: absolute; left: 0; right: 0; bottom: 92px; padding: .5rem 1rem; background: linear-gradient(transparent, var(--phone) 30%); z-index: 40; display: flex; gap: .5rem; align-items: flex-end; }
.p-composer textarea { flex: 1; border: 1px solid var(--line-2); border-radius: 22px; padding: .65rem 1rem; resize: none; min-height: 44px; max-height: 110px; outline: none; background: var(--field); }
.task { display: flex; gap: .8rem; align-items: center; padding: .85rem; border-radius: 20px; background: var(--bg-2); }
.task + .task { margin-top: .55rem; }
.task .t-ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--lav), var(--sky-soft)); color: var(--lav-d); flex: none; }
.task.done { background: var(--mint); }
.task.done .t-ic { background: var(--jade); color: #fff; }
.tick { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--field); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.tick.on { background: var(--jade); border-color: var(--jade); color: #fff; }
.wave { display: flex; gap: 4px; align-items: center; height: 40px; }
.wave i { width: 4px; border-radius: 4px; background: var(--jade); height: 12px; opacity: .7; }
.wave.play i { animation: wv 1.4s ease-in-out infinite; }
.wave i:nth-child(3n) { background: var(--sky); } .wave i:nth-child(4n) { background: var(--jade-d); }
.wave.play i:nth-child(2) { animation-delay: .15s } .wave.play i:nth-child(3) { animation-delay: .3s } .wave.play i:nth-child(4) { animation-delay: .45s } .wave.play i:nth-child(5) { animation-delay: .2s } .wave.play i:nth-child(6) { animation-delay: .35s } .wave.play i:nth-child(7) { animation-delay: .5s } .wave.play i:nth-child(8) { animation-delay: .1s } .wave.play i:nth-child(9) { animation-delay: .25s } .wave.play i:nth-child(10) { animation-delay: .4s }
@keyframes wv { 50% { height: 34px; } }
.orb-wrap { display: grid; place-items: center; padding: 1.4rem 0; position: relative; }
.orb { width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6fff5 0%, #9de8cb 35%, #2bb88a 70%, #1f8f6d 100%); box-shadow: 0 30px 60px -20px rgba(43, 184, 138, .6), inset 0 -12px 30px rgba(0, 66, 46, .25); transform: scale(.62); transition: transform 4s cubic-bezier(.45, 0, .55, 1); display: grid; place-items: center; }
.orb-halo { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(132, 216, 226, .35), transparent 65%); }
.orb-label { position: absolute; text-align: center; color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 2px 10px rgba(0, 66, 46, .4); }
.orb-label small { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mood-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mood-strip div { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--muted); background: var(--bg-2); }
.mood-strip div .ms { font-size: 20px; color: #123; }
.sos { display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; border-radius: 20px; background: var(--coral-soft); color: var(--coral-d); font-size: 12.5px; line-height: 1.4; }
.sos .ms { font-size: 22px; }
.sos a { color: var(--coral-d); font-weight: 800; }
.q-opt { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--field); border-radius: 16px; padding: .75rem .9rem; font-weight: 600; font-size: 13.5px; transition: all .15s; }
.q-opt + .q-opt { margin-top: .45rem; }
.q-opt:hover { border-color: var(--jade); }
.q-opt.on { border-color: var(--jade); background: var(--mint); color: var(--jade-dd); }
.progress { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--jade); transition: width .3s var(--ease); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.slot { border: 1.5px solid var(--line-2); background: var(--field); border-radius: 14px; padding: .55rem .3rem; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; transition: all .15s; }
.slot:hover { border-color: var(--jade); color: var(--jade-d); }
.slot.on { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.days-row { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.day-b { flex: none; width: 58px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--field); padding: .5rem 0; display: grid; justify-items: center; gap: 1px; transition: all .15s; }
.day-b small { font-size: 10.5px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.day-b b { font-size: 18px; }
.day-b em { font-style: normal; font-size: 10px; color: var(--jade-d); font-weight: 700; }
.day-b.on { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.day-b.on small, .day-b.on em { color: var(--pine-accent); }
.day-b[disabled] { opacity: .4; }
.aside-card { background: var(--glass); backdrop-filter: blur(16px); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: var(--sh1); }
.aside-card h3 { font-family: var(--display); font-weight: 650; font-size: 25px; line-height: 1.1; letter-spacing: -.045em; margin-bottom: .5rem; }

/* ---------- landing y perfil público ---------- */
.site-nav { position: sticky; top: 1rem; z-index: 30; margin: 1rem auto 0; width: min(1180px, calc(100% - 2rem)); display: flex; align-items: center; gap: 1rem; padding: .6rem .7rem .6rem 1rem; border-radius: 999px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--sh1); }
.site-nav nav { display: flex; gap: .3rem; margin-left: auto; }
.site-nav nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 13.5px; padding: .5rem .8rem; border-radius: 99px; }
.site-nav nav a:hover { background: var(--bg-2); }
.site-wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 4.5rem 0 3.5rem; }
.site-hero h1 { font-family: var(--display); font-weight: 650; font-size: clamp(44px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; }
.site-hero h1 em { font-family: var(--accent); font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--jade-d); }
.site-hero .lead { font-size: 18px; color: var(--ink-2); margin: 1.3rem 0 1.8rem; max-width: 540px; line-height: 1.6; }
.hero-visual { position: relative; height: 520px; }
.hv { position: absolute; background: var(--card); border: 1px solid var(--card-edge); border-radius: 26px; box-shadow: var(--sh2); padding: 1rem 1.1rem; }
.hv-1 { left: 0; top: 30px; width: 74%; animation: float 7s ease-in-out infinite; }
.hv-2 { right: 0; top: 230px; width: 56%; transform: rotate(2deg); animation: float 8s ease-in-out infinite reverse; }
.hv-3 { left: 6%; bottom: 0; width: 52%; transform: rotate(-2deg); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.section { padding: 4.5rem 0; }
.section h2.big { font-family: var(--display); font-weight: 650; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.05em; max-width: 760px; }
.section .sub { color: var(--muted); font-size: 16px; max-width: 640px; margin-top: .8rem; }
.pillar { padding: 1.6rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--sh1); }
.pillar .p-ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--mint); color: var(--jade-d); }
.pillar .p-ic .ms { font-size: 26px; }
.pillar h3 { font-size: 19px; font-weight: 700; margin-bottom: .45rem; letter-spacing: -.02em; }
.pillar p { color: var(--ink-2); }
.pillar ul { padding-left: 1.1rem; margin: .8rem 0 0; color: var(--ink-2); }
.pillar li + li { margin-top: .3rem; }
.feat { display: flex; gap: .9rem; padding: 1.1rem; border-radius: 22px; background: var(--chip); border: 1px solid var(--line); }
.feat .ms { color: var(--jade-d); font-size: 24px; margin-top: 2px; }
.feat b { display: block; margin-bottom: .2rem; font-size: 14.5px; }
.feat p { color: var(--ink-2); font-size: 13.5px; }
.plan { padding: 1.8rem; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh1); display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--line); }
.plan.hl { background: var(--pine); color: var(--on-pine); box-shadow: var(--sh2); border-color: var(--pine); }
.plan.hl .muted { color: var(--pine-muted); }
.plan .price { font-family: var(--display); font-size: 46px; font-weight: 650; letter-spacing: -.06em; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; flex: 1; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; font-size: 13.5px; }
.plan li .ms { font-size: 18px; color: var(--jade); }
.trust { border-radius: var(--r-lg); padding: 2.4rem; background: linear-gradient(130deg, #10302a, #0b4a3a 60%, #126b55); color: #e8f7f1; border: 1px solid var(--card-edge); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; }
.trust h2 { font-family: var(--display); font-weight: 650; font-size: 40px; line-height: 1.04; letter-spacing: -.05em; }
.trust .feat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.trust .feat p { color: #b9d6cc; }
.trust .feat .ms { color: #79fac7; }
.foot { padding: 2.5rem 0 3rem; color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 2rem; }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1.5rem; padding: 2rem 0 3rem; align-items: start; }
.profile-hero .avatar { --s: 112px !important; font-size: 38px; }
.book { position: sticky; top: 6rem; }
.steps { display: flex; gap: .4rem; margin-bottom: 1rem; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--jade); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .inbox { grid-template-columns: 300px minmax(0, 1fr); }
  .inbox .ctx { display: none; }
  .g-side { grid-template-columns: minmax(0, 1fr) 320px; }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .p-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .p-aside, .p-aside.r { justify-self: center; max-width: 400px; width: 100%; }
  .p-aside { order: 2; } .p-aside.r { order: 3; }
  .tele { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g-side-l { grid-template-columns: minmax(0, 1fr); }
  .site-hero { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; }
  .hero-visual { height: 460px; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .profile-hero { grid-template-columns: minmax(0, 1fr); }
  .book { position: static; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: .75rem; gap: .9rem; }
  .sidebar { position: fixed; left: .75rem; top: .75rem; bottom: .75rem; height: auto; width: 270px; transform: translateX(-120%); transition: transform .3s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--sh2); }
  .menu-btn { display: inline-grid; }
  .topbar { top: .75rem; }
  .topbar .hide-m { display: none; }
  .me-chip .me-t { display: none; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; }
  .inbox.has-thread .list-col { display: none; }
  .inbox:not(.has-thread) .chat-col { display: none; }
  .inbox .chat-col { height: calc(100vh - 150px); }
  .page-h h1 { font-size: 28px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .site-nav nav { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 30, 26, .25); z-index: 35; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 1rem; border-radius: 1.2rem; }
  .table-wrap, .cal-wrap { margin: 0 -1rem; padding: 0 1rem; }
  .kpi .k-v { font-size: 24px; }
  .phone { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
  .phone::before { display: none; }
  .p-status { display: none; }
  .p-stage { padding: 0; gap: 1rem; }
  .p-aside, .p-aside.r { padding: 0 1rem 1rem; }
  .hero-visual { height: 420px; }
  .hv-1 { width: 92%; } .hv-2 { width: 78%; top: 210px; } .hv-3 { width: 70%; }
  .trust { padding: 1.5rem; }
  .sheet { border-radius: 1.4rem; }
  .overlay { padding: .5rem; }
  .stage { height: 70vh; min-height: 460px; }
  .self { width: 34%; }
  .controls { gap: .3rem; }
  .controls .icon-btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .orb { transition: transform .01ms !important; }
}
@media print {
  body::before, .sidebar, .topbar, .no-print { display: none !important; }
  .shell { display: block; padding: 0; }
  .overlay { position: static; background: none; backdrop-filter: none; }
  .sheet { box-shadow: none; max-height: none; }
}

/* añadidos */
.stack.lg > * + * { margin-top: 1.25rem; }
@keyframes breathe { 0%, 100% { transform: scale(.62); } 21% { transform: scale(1); } 58% { transform: scale(1); } }
.menu-back { display: none; }
@media (max-width: 900px) { .inbox .chat-col .menu-back { display: inline-grid !important; } }

@media (max-width: 700px) {
  .alert-row { flex-wrap: wrap; }
  .alert-row > .grow { flex-basis: calc(100% - 30px); }
  .alert-row > .row { margin-left: 26px; justify-content: flex-start !important; }
  .tl-item { grid-template-columns: 46px minmax(0, 1fr); gap: .5rem; }
  .page-h .demo-flag { display: none; }
}

/* selector de tema */
.theme-btn .ms { transition: transform .4s var(--ease); }
.theme-btn:hover .ms { transform: rotate(-25deg); }
.theme-seg { display: inline-flex; gap: .25rem; padding: .3rem; background: var(--bg-2); border-radius: 999px; }
.theme-seg button { border: 0; background: transparent; padding: .45rem .85rem; border-radius: 999px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: .35rem; align-items: center; }
.theme-seg button.on { background: var(--raised); color: var(--jade-dd); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .2); }
.theme-seg button .ms { font-size: 17px; }
.num, .tl-time small { font-variant-numeric: tabular-nums; }
html { transition: background-color .3s; }

/* ---------- acceso, sincronización y owner ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-content: center; padding: 1.5rem 1rem; }
.auth-card { width: min(420px, calc(100vw - 2rem)); background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r-lg); box-shadow: var(--sh2); padding: 2rem; }
.auth-card.wide { width: min(520px, calc(100vw - 2rem)); }
.auth-h { font-size: 30px; line-height: 1.08; margin-bottom: .4rem; }
.splash { display: grid; justify-items: center; gap: .8rem; }
.splash .logo { animation: breathe 2.4s ease-in-out infinite; }
.form-err { color: var(--red); font-size: 13px; font-weight: 500; min-height: 0; }
.form-err:empty { display: none; }
.pass-wrap { display: flex; gap: .4rem; align-items: center; }
.pass-wrap input { flex: 1; min-width: 0; }
.mono, code.mono { font-family: var(--mono); font-size: 12.5px; background: var(--bg-2); padding: .15rem .45rem; border-radius: 7px; }
.sync { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; font-weight: 500; color: var(--muted); padding: .35rem .6rem; border-radius: 999px; white-space: nowrap; }
.sync .ms { font-size: 18px; color: var(--jade); }
.sync.pending .ms, .sync.saving .ms { color: var(--faint); animation: spin 1.6s linear infinite; }
.sync.offline, .sync.full { background: var(--amber-soft); color: var(--amber); }
.sync.offline .ms, .sync.full .ms { color: var(--amber); }
@keyframes spin { to { transform: rotate(-360deg); } }
.step { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; text-align: left; padding: .9rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; font: inherit; transition: transform .2s var(--ease), border-color .2s; }
.step:hover { transform: translateY(-2px); border-color: var(--jade); }
.step .k-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mint); color: var(--jade-d); margin-bottom: .2rem; }
.step.ok { opacity: .6; }
.step.ok .k-ic { background: var(--jade); color: #fff; }
.step.ok b { text-decoration: line-through; }
.access { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; padding: 2rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--sh1); }
.access .p-ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--mint); color: var(--jade-d); }
.access .p-ic .ms { font-size: 26px; }
.access h3 { font-size: 24px; font-weight: 650; letter-spacing: -.04em; margin-bottom: .4rem; }
.access p { color: var(--ink-2); max-width: 420px; }
.access .btn { margin-top: auto; }
.access.dark { background: linear-gradient(130deg, #10302a, #0b4a3a 60%, #126b55); color: #e8f7f1; border-color: rgba(255, 255, 255, .08); }
.access.dark p { color: #b9d6cc; }
.access.dark .p-ic { background: rgba(255, 255, 255, .1); color: #79fac7; }
.access.dark .btn { background: #def5ec; color: #0b1210; }
.topbar .search { flex: 1 1 220px; min-width: 150px; margin-right: auto; }
.topbar > .grow { display: none; }
@media (max-width: 1180px) { .topbar .sync .hide-m { display: none; } }
@media (max-width: 900px) { .topbar .search { min-width: 0; } .access { padding: 1.4rem; } .auth-card { padding: 1.5rem; } }
