:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #fbfbfd;
    --fill: #f2f2f7;
    --fill-2: #e8e8ed;
    --fill-3: #d2d2d7;
    --ink: #1d1d1f;
    --ink-2: #424245;
    --muted: #6e6e73;
    --faint: #86868b;
    --line: rgba(0, 0, 0, .08);
    --line-2: rgba(0, 0, 0, .05);

    --accent: #5856d6;
    --accent-600: #4a48c4;
    --accent-soft: rgba(88, 86, 214, .1);
    --accent-softer: rgba(88, 86, 214, .06);
    --blue: #007aff;
    --green: #34c759;
    --green-ink: #1f8a3d;
    --green-soft: rgba(52, 199, 89, .14);
    --orange: #ff9500;
    --orange-ink: #b25e00;
    --orange-soft: rgba(255, 149, 0, .14);
    --red: #ff3b30;
    --red-ink: #d0271d;
    --red-soft: rgba(255, 59, 48, .12);
    --yellow: #ffcc00;
    --teal: #30b0c7;
    --pink: #ff2d55;
    --purple: #af52de;
    --mint-apple: #00c7be;

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-pill: 980px;

    --sh-1: 0 1px 2px rgba(0, 0, 0, .04);
    --sh-2: 0 1px 2px rgba(0, 0, 0, .03), 0 6px 20px rgba(0, 0, 0, .05);
    --sh-3: 0 2px 6px rgba(0, 0, 0, .04), 0 24px 56px rgba(0, 0, 0, .14);

    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    --side-w: 252px;
    --top-h: 60px;
    --ease: cubic-bezier(.25, .1, .25, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --indigo: var(--accent);
    --indigo-600: var(--accent-600);
    --violet: var(--accent);
    --violet-soft: #8e8cf0;
    --mint: var(--green);
    --amber: var(--orange);
    --coral: var(--red);
    --steel: var(--ink);
    --ink-900: #000;
    --ink-800: var(--ink);
    --ink-700: #2c2c2e;
    --lav-50: var(--accent-softer);
    --lav-100: var(--accent-soft);
    --lav-200: rgba(88, 86, 214, .22);
    --paper: var(--surface);
    --paper-alt: var(--fill);
    --text: var(--ink);
    --muted-soft: var(--faint);
    --radius-sm: var(--r-sm);
    --radius: var(--r);
    --radius-lg: var(--r-lg);
    --radius-pill: var(--r-pill);
    --shadow-sm: var(--sh-1);
    --shadow: var(--sh-2);
    --shadow-lg: var(--sh-3);
    --grad-brand: var(--accent);
    --grad-ink: #1d1d1f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -.011em;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; color: var(--ink); }
h1 { font-size: 34px; letter-spacing: -.028em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; letter-spacing: -.018em; }
h4 { font-size: 15px; letter-spacing: -.012em; }
p { margin: 0; }
small { font-size: 12px; }
::selection { background: rgba(88, 86, 214, .2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.app { min-height: 100vh; min-height: 100dvh; display: flex; background: var(--bg); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: var(--side-w); }

.side {
    position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 50;
    display: flex; flex-direction: column;
    background: rgba(251, 251, 253, .8);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-right: 1px solid var(--line);
    padding: 18px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, #7d7aff 0%, #5856d6 55%, #3634a3 100%);
    box-shadow: 0 4px 12px rgba(88, 86, 214, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-name small { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-label { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .02em; padding: 16px 10px 6px; text-transform: uppercase; }
.side-label:first-child { padding-top: 4px; }
.side-link {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 10px; border-radius: 10px;
    font-size: 14.5px; font-weight: 500; color: var(--ink-2);
    transition: background .15s var(--ease), color .15s var(--ease);
}
.side-link svg { width: 18px; height: 18px; color: var(--muted); stroke-width: 1.9; transition: color .15s var(--ease); }
.side-link:hover { background: rgba(0, 0, 0, .045); }
.side-link.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(88, 86, 214, .3); }
.side-link.active svg { color: #fff; }
.side-link .side-count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; }
.side-foot { padding-top: 12px; }
.side-level {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: var(--r); background: var(--surface);
    border: 1px solid var(--line-2); box-shadow: var(--sh-1);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.side-level:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.side-level-ring { position: relative; width: 42px; height: 42px; flex: 0 0 42px; }
.side-level-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.side-level-body { min-width: 0; flex: 1; }
.side-level-body b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-level-body span { font-size: 11.5px; color: var(--muted); }

.top {
    position: sticky; top: 0; z-index: 40; height: var(--top-h);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 28px;
    background: rgba(245, 245, 247, .78);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease);
}
.top.is-stuck { border-bottom-color: var(--line); }
.top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top-brand { display: none; }
.top-title { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.top.is-stuck .top-title { opacity: 1; transform: none; }
.top-right { display: flex; align-items: center; gap: 8px; }
.top-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1);
    font-size: 13px; font-weight: 600; color: var(--ink);
    transition: transform .15s var(--ease);
}
.top-chip:hover { transform: translateY(-1px); }
.top-chip svg { width: 15px; height: 15px; }
.top-chip.is-streak svg { color: var(--orange); fill: var(--orange); stroke: var(--orange); }
.top-chip.is-streak.is-zero { color: var(--faint); }
.top-chip.is-streak.is-zero svg { color: var(--fill-3); fill: var(--fill-3); stroke: var(--fill-3); }
.top-chip.is-xp svg { color: var(--accent); fill: var(--accent); }
.org-switch { margin: 0; }
.org-switch-select {
    height: 34px; padding: 0 30px 0 12px; border-radius: var(--r-pill);
    border: 1px solid var(--line-2); background-color: var(--surface); box-shadow: var(--sh-1);
    font-size: 13px; font-weight: 600; color: var(--ink); max-width: 180px;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 13px;
}
.menu { position: relative; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
    display: grid; place-items: center; border: 0; cursor: pointer; padding: 0;
    background: linear-gradient(145deg, #8e8cf0, #5856d6); color: #fff;
    font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
}
.avatar-lg { width: 52px; height: 52px; flex: 0 0 52px; font-size: 17px; }
.avatar-xl { width: 76px; height: 76px; flex: 0 0 76px; font-size: 26px; }
.avatar.is-soft { background: var(--accent-soft); color: var(--accent); }
.avatar.is-gray { background: var(--fill-2); color: var(--ink-2); }
.menu-pop {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3);
    padding: 6px; transform-origin: top right; animation: pop .16s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-head { padding: 10px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu-head b { display: block; font-size: 14px; }
.menu-head span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink); }
.menu-item svg { width: 16px; height: 16px; color: var(--muted); }
.menu-item:hover { background: var(--fill); }
.menu-item.is-danger { color: var(--red-ink); }
.menu-item.is-danger svg { color: var(--red-ink); }

.page { flex: 1; padding: 20px 28px 72px; overflow-x: clip; }
.wrap, .shell { width: 100%; max-width: 1180px; margin: 0 auto; }
.shell-wide, .wrap-wide { max-width: 1400px; }
.footer { padding: 22px 28px 28px; color: var(--faint); font-size: 12px; text-align: center; }
.footer a:hover { color: var(--ink); }
.footer-links { display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-bottom { margin-top: 6px; }

.tabbar { display: none; }

.page-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin: 8px 0 28px; }
.page-head > div:first-child { min-width: 0; max-width: 760px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 16px; line-height: 1.45; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; letter-spacing: -.005em; }
.eyebrow-light { color: rgba(255, 255, 255, .6); }
.back-link { display: flex; width: max-content; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { text-decoration: underline; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.section-head h2 { font-size: 22px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.link-inline, .link { color: var(--accent); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.link-inline:hover, .link:hover { text-decoration: underline; }
.link-inline svg, .link svg { width: 14px; height: 14px; }
.muted { color: var(--muted); font-size: 14px; }
.faint { color: var(--faint); }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.label-opt { font-weight: 400; color: var(--faint); }
.aside-note { margin-top: 14px; font-size: 13px; text-align: center; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid > *, .grid-main > *, .chat-layout > *, .sim-grid > * { min-width: 0; }
.grid-2, .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4, .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; }
.grid-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; }
.stack-sm { display: grid; gap: 10px; }
.row-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-all { grid-column: 1 / -1; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 0; cursor: pointer; white-space: nowrap;
    font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
    padding: 12px 20px; border-radius: var(--r-pill);
    background: var(--fill-2); color: var(--ink);
    transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), opacity .15s var(--ease);
}
.btn:hover { background: var(--fill-3); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-coral, .btn-danger { background: var(--red); color: #fff; }
.btn-coral:hover, .btn-danger:hover { background: #e0352b; }
.btn-success { background: var(--green); color: #fff; }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); border: 1px solid var(--line-2); }
.btn-light:hover { background: var(--surface-2); }
.btn-outline, .btn-ghost-dark { background: var(--accent-soft); color: var(--accent); }
.btn-outline:hover, .btn-ghost-dark:hover { background: rgba(88, 86, 214, .17); }
.btn-ghost-dark { background: var(--fill-2); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--fill-3); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-plain { background: transparent; color: var(--accent); padding-left: 8px; padding-right: 8px; }
.btn-plain:hover { background: var(--accent-softer); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-link-danger { background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--red-ink); padding: 6px 0; }
.btn-link-danger:hover { text-decoration: underline; }
.btn-google { background: var(--surface); border: 1px solid var(--line); gap: 10px; }
.btn-google svg { width: 18px; height: 18px; }
.icon-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; flex: 0 0 34px;
    display: grid; place-items: center; background: var(--fill-2); color: var(--ink-2);
    transition: background .15s var(--ease);
}
.icon-btn:hover { background: var(--fill-3); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn-dark { background: var(--fill-2); color: var(--ink-2); }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: var(--r-pill);
    font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
    background: var(--fill-2); color: var(--ink-2);
}
.badge svg { width: 12px; height: 12px; }
.badge-ok { background: var(--green-soft); color: var(--green-ink); }
.badge-warn { background: var(--orange-soft); color: var(--orange-ink); }
.badge-alert { background: var(--red-soft); color: var(--red-ink); }
.badge-neutral { background: var(--accent-soft); color: var(--accent); }
.badge-muted { background: var(--fill-2); color: var(--muted); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--r-pill);
    background: var(--fill); color: var(--ink-2); font-size: 13px; font-weight: 500;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.chip small { color: var(--faint); font-weight: 500; }
a.chip:hover { background: var(--fill-2); }
.chip.is-active, a.chip.is-active { background: var(--ink); color: #fff; }
.chip.is-active small { color: rgba(255, 255, 255, .6); }
.score-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; padding: 5px 10px; border-radius: var(--r-pill);
    font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.score-pill.is-verde, .is-verde > .score-pill { background: var(--green-soft); color: var(--green-ink); }
.score-pill.is-amarillo { background: var(--orange-soft); color: var(--orange-ink); }
.score-pill.is-rojo { background: var(--red-soft); color: var(--red-ink); }
.score-pill.is-vacio { background: var(--fill); color: var(--faint); font-size: 12px; font-weight: 500; }
.semaforo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 6px; background: var(--fill-3); }
.semaforo-dot.verde { background: var(--green); }
.semaforo-dot.amarillo { background: var(--orange); }
.semaforo-dot.rojo { background: var(--red); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trend svg { width: 14px; height: 14px; }
.trend.is-up { color: var(--green-ink); }
.trend.is-down { color: var(--red-ink); }
.trend.is-flat { color: var(--faint); }
.pips { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pips i { width: 5px; height: 12px; border-radius: 3px; background: var(--fill-2); }
.pips i.on { background: var(--ink); }
.pips span { margin-left: 5px; }
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; color: var(--fill-3); }
.stars i { font-style: normal; }
.stars i.on { color: var(--orange); }
.stars span { margin-left: 5px; font-size: 12px; color: var(--faint); }
.code-box { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--r-xs); background: var(--fill); font-family: var(--mono); font-weight: 600; letter-spacing: .1em; font-size: 14px; color: var(--ink); }

.alert { border-radius: var(--r); padding: 13px 16px; font-size: 14px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; background: var(--fill); color: var(--ink-2); }
.alert svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.alert-error { background: var(--red-soft); color: var(--red-ink); }
.alert-success { background: var(--green-soft); color: var(--green-ink); }
.alert-info { background: var(--accent-soft); color: var(--accent-600); }
.alert-warn { background: var(--orange-soft); color: var(--orange-ink); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.usage-banner { margin: 0 28px; }
.usage-banner-inner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; border-radius: var(--r); max-width: 1180px; margin: 12px auto 0; }
.usage-banner.is-warn .usage-banner-inner { background: var(--orange-soft); color: var(--orange-ink); }
.usage-banner.is-blocked .usage-banner-inner { background: var(--red-soft); color: var(--red-ink); }
.usage-banner-icon { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px; display: grid; place-items: center; background: rgba(255, 255, 255, .6); }
.usage-banner-icon svg { width: 16px; height: 16px; }
.usage-banner-body { flex: 1; min-width: 220px; }
.usage-banner-body b { display: block; font-size: 14px; }
.usage-banner-body span { font-size: 13px; opacity: .9; }
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px; z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: rgba(29, 29, 31, .92); color: #fff; padding: 11px 18px; border-radius: 18px; font-size: 14px; font-weight: 500; line-height: 1.35; box-shadow: var(--sh-3); backdrop-filter: blur(12px); animation: toast-in .25s var(--spring); width: max-content; max-width: min(92vw, 480px); text-align: center; }
.toast.is-error { background: rgba(208, 39, 29, .95); }
.toast.is-success { background: rgba(31, 138, 61, .95); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .32); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-box { background: var(--surface); border-radius: var(--r-xl); padding: 28px; max-width: 440px; width: 100%; box-shadow: var(--sh-3); animation: pop .2s var(--spring); text-align: center; }
.modal-box h3 { font-size: 20px; margin-bottom: 8px; }
.modal-box p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.modal-actions { display: grid; gap: 8px; }
.modal-actions .btn { width: 100%; padding: 14px; }

.tip {
    position: fixed; z-index: 400; pointer-events: none;
    background: rgba(29, 29, 31, .94); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.35;
    padding: 7px 10px; border-radius: 9px; max-width: 240px; box-shadow: var(--sh-3);
    transform: translate(-50%, calc(-100% - 10px)); white-space: pre-line; text-align: center;
}
.tip b { font-weight: 700; }

@media (max-width: 1100px) {
    :root { --side-w: 76px; }
    .side { padding: 14px 10px; align-items: center; }
    .brand { padding: 4px 0 14px; }
    .side .brand-name, .side-label, .side-link span, .side-level-body { display: none; }
    .side-nav { align-items: center; gap: 4px; width: 100%; }
    .side-link { width: 46px; height: 42px; padding: 0; justify-content: center; position: relative; }
    .side-link svg { width: 20px; height: 20px; }
    .side-link .side-count { position: absolute; top: 2px; right: 2px; padding: 0 5px; font-size: 10px; }
    .side-level { padding: 6px; border-radius: 50%; }
    .side-sep { width: 28px; height: 1px; background: var(--line); margin: 8px 0; }
    .grid-main, .grid-side { grid-template-columns: minmax(0, 1fr); }
    .grid-4, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) { .side-sep { display: none; } }
@media (max-width: 760px) {
    :root { --side-w: 0px; --top-h: 54px; }
    body { font-size: 15px; }
    h1 { font-size: 28px; }
    h2 { font-size: 21px; }
    .side { display: none; }
    .main { margin-left: 0; }
    .top { padding: 0 16px; }
    .top-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
    .top-brand .brand-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
    .top-brand .brand-mark svg { width: 16px; height: 16px; }
    .top-title { display: none; }
    .top-chip.is-xp, .org-switch { display: none; }
    .page { padding: 12px 16px 110px; }
    .page-head { margin: 4px 0 20px; }
    .page-head p { font-size: 15px; }
    .page-head-actions { width: 100%; }
    .usage-banner { margin: 0 16px; }
    .grid, .stack { gap: 14px; }
    .grid-2, .grid-3, .grid-4, .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
    .cols-2-m { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-2, .span-3 { grid-column: auto; }
    .footer { padding-bottom: 110px; }
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-template-columns: repeat(5, 1fr);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: rgba(251, 251, 253, .86);
        backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid var(--line);
    }
    .tabbar-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; border: 0; background: none; cursor: pointer; font-size: 10.5px; font-weight: 500; color: var(--faint); border-radius: 12px; }
    .tabbar-item svg { width: 23px; height: 23px; stroke-width: 1.8; }
    .tabbar-item.active { color: var(--accent); }
    .tabbar-item.is-cta svg { width: 44px; height: 44px; padding: 11px; margin-top: -18px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(88, 86, 214, .45); stroke-width: 2.2; }
    .tabbar-item.is-cta { color: var(--accent); font-weight: 600; }
    .sheet { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .3); backdrop-filter: blur(6px); display: flex; align-items: flex-end; }
    .sheet-box { width: 100%; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); animation: sheet-in .28s var(--ease); max-height: 82vh; overflow-y: auto; }
    @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
    .sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--fill-3); margin: 0 auto 12px; }
    .sheet-box .side-label { display: block; padding: 12px 10px 6px; }
    .sheet-box .side-link { padding: 12px 10px; font-size: 16px; }
    .sheet-box .side-link span { display: inline; }
    .toast-stack { bottom: 96px; }
    .page .btn { white-space: normal; line-height: 1.2; }
}
@media (min-width: 761px) { .sheet { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print {
    .side, .top, .tabbar, .footer, .page-head-actions, .toast-stack, .usage-banner { display: none !important; }
    .main { margin: 0; } .page { padding: 0; } body, .app { background: #fff; }
    .card { box-shadow: none !important; border: 1px solid #ddd; break-inside: avoid; }
}
.card {
    background: var(--surface); border-radius: var(--r-lg); padding: 24px;
    box-shadow: var(--sh-2); border: 1px solid var(--line-2);
    min-width: 0;
}
.card-flat { box-shadow: none; background: var(--fill); border-color: transparent; }
.card-pad-lg { padding: 32px; }
.card-pad-0 { padding: 0; overflow: hidden; }
.card-hero, .card-dark { background: #1d1d1f; color: #fff; border-color: transparent; position: relative; overflow: hidden; }
.card-hero h2, .card-hero h3, .card-dark h2, .card-dark h3 { color: #fff; }
.card-hero p, .card-dark p { color: rgba(255, 255, 255, .72); }
.card-accent { background: linear-gradient(150deg, #6e6cf0 0%, #5856d6 50%, #3f3db8 100%); color: #fff; border-color: transparent; }
.card-accent h2, .card-accent h3 { color: #fff; }
.card-accent p { color: rgba(255, 255, 255, .82); }
.card-tint { background: var(--accent-softer); border-color: transparent; box-shadow: none; }
.card-link { display: block; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head > div { min-width: 0; }
.card-head h3 { font-size: 18px; }
.card-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.card-dark .card-head p, .card-hero .card-head p, .card-accent .card-head p { color: rgba(255, 255, 255, .6); }
.card-title-sm { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.promo-card { background: linear-gradient(150deg, #6e6cf0 0%, #5856d6 50%, #3f3db8 100%); color: #fff; border-color: transparent; }
.promo-card h3 { color: #fff; margin-bottom: 6px; }
.promo-card p { color: rgba(255, 255, 255, .82); font-size: 14px; margin-bottom: 16px; }
.promo-card .btn-primary { background: #fff; color: var(--accent); }
.promo-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); margin-bottom: 14px; }

.kpi-grid, .stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi, .stat-strip .card, .tile {
    background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px;
    box-shadow: var(--sh-2); border: 1px solid var(--line-2);
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.kpi-label, .stat-label, .tile-label { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; display: flex; align-items: center; gap: 6px; }
.kpi-label svg, .tile-label svg { width: 15px; height: 15px; }
.kpi-value, .stat-value, .tile-value { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi-value small, .tile-value small { font-size: 15px; font-weight: 600; color: var(--faint); letter-spacing: 0; margin-left: 2px; }
.kpi-foot, .stat-foot, .tile-foot { font-size: 12.5px; color: var(--faint); }
.kpi-value.is-verde, .tile-value.is-verde { color: var(--green-ink); }
.kpi-value.is-amarillo, .tile-value.is-amarillo { color: var(--orange-ink); }
.kpi-value.is-rojo, .tile-value.is-rojo { color: var(--red-ink); }
.tile-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.tile-icon svg { width: 17px; height: 17px; }
.tile-icon.is-green { background: var(--green-soft); color: var(--green-ink); }
.tile-icon.is-orange { background: var(--orange-soft); color: var(--orange-ink); }
.tile-icon.is-red { background: var(--red-soft); color: var(--red-ink); }
.tile-icon.is-dark { background: var(--ink); color: #fff; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.hero-tile { background: rgba(255, 255, 255, .08); border-radius: var(--r); padding: 14px 16px; }
.hero-tile b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hero-tile span { font-size: 12px; color: rgba(255, 255, 255, .6); }

.rows, .session-list, .mini-list, .org-list, .quick-links, .version-list { display: grid; gap: 0; }
.rowi, .session, .mini-item, .org-item, .quick-links a, .version-item {
    display: flex; align-items: center; gap: 14px; padding: 13px 4px;
    border-bottom: 1px solid var(--line-2); min-width: 0;
    transition: background .15s var(--ease);
}
.rowi:last-child, .session:last-child, .mini-item:last-child, .org-item:last-child, .quick-links a:last-child, .version-item:last-child { border-bottom: 0; }
a.rowi:hover, a.session:hover, a.mini-item:hover, a.org-item:hover, .quick-links a:hover { background: var(--fill); border-radius: var(--r-sm); margin: 0 -10px; padding-left: 14px; padding-right: 14px; border-bottom-color: transparent; }
.rowi-body, .session-body, .org-item-body { flex: 1; min-width: 0; }
.rowi-body b, .session-body b, .org-item-body b, .mini-item b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi-body span, .session-body span, .org-item-body span, .mini-item small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi-side, .session-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rowi-icon { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); }
.rowi-icon svg { width: 18px; height: 18px; }
.rowi > svg:last-child, .org-item > svg:last-child { width: 16px; height: 16px; color: var(--fill-3); }
.session-score { flex: 0 0 52px; }
.mini-item span { min-width: 0; flex: 1; }
.quick-links a { font-size: 15px; font-weight: 500; }
.quick-links svg { width: 18px; height: 18px; color: var(--accent); }
.version-item { font-size: 14px; }
.version-item b { flex: 1; }
.version-item.is-active { background: var(--green-soft); border-radius: var(--r-sm); padding-left: 12px; padding-right: 12px; border-bottom-color: transparent; }
.org-item.is-current { background: var(--accent-softer); border-radius: var(--r-sm); padding-left: 12px; padding-right: 12px; }
.dl { display: grid; margin: 0; }
.dl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.dl-row:last-child { border-bottom: 0; }
.dl-row dt { font-size: 14px; color: var(--muted); margin: 0; flex-shrink: 0; }
.dl-row dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.dl-stack { flex-direction: column; align-items: flex-start; gap: 3px; }
.dl-stack dd { text-align: left; font-weight: 400; }
.dl-compact .dl-row { padding: 8px 0; }
.plain-list, .tip-list, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list li, .tip-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.plain-list svg, .tip-list svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.plain-list.is-good svg, .tip-list svg { color: var(--green); }
.plain-list.is-bad svg { color: var(--red); }
.tip-list li { color: var(--muted); font-size: 13.5px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check-mark { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; display: grid; place-items: center; background: var(--fill-2); color: transparent; margin-top: 1px; }
.check-mark svg { width: 12px; height: 12px; stroke-width: 3; }
.check-list li.done .check-mark { background: var(--green); color: #fff; }
.check-body { flex: 1; min-width: 0; }
.check-body b { display: block; font-size: 14.5px; font-weight: 600; }
.check-body span { display: block; font-size: 13px; color: var(--muted); }
.gpt-steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.gpt-steps li { position: relative; padding-left: 40px; display: grid; gap: 2px; }
.gpt-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.gpt-steps b { font-size: 14.5px; }
.gpt-steps span { font-size: 13.5px; color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty > svg { width: 30px; height: 30px; padding: 15px; box-sizing: content-box; border-radius: 50%; background: var(--fill); color: var(--faint); display: block; margin: 0 auto 14px; }
.empty b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.empty p { font-size: 14.5px; max-width: 380px; margin: 0 auto; }
.empty-action { margin-top: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--muted); }

.field { margin-bottom: 16px; min-width: 0; }
.field label, fieldset.field legend { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); padding: 0; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), .field select, .field textarea,
.filters select, .filters input[type="date"], .generate-form textarea, .mentor-form textarea, .mentor-general textarea, .rate-form textarea {
    width: 100%; font-size: 15px; padding: 11px 14px;
    border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
    appearance: none; -webkit-appearance: none;
}
.field textarea, .generate-form textarea { resize: vertical; line-height: 1.5; min-height: 44px; }
.field select, .filters select {
    padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center; background-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .filters input:focus, .generate-form textarea:focus, .mentor-form textarea:focus, .mentor-general textarea:focus, .rate-form textarea:focus {
    outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(88, 86, 214, .14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[type="file"] { width: 100%; font-size: 14px; padding: 12px; border-radius: var(--r-sm); border: 1.5px dashed var(--fill-3); background: var(--fill); }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; padding: 0; }
.field-hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-inline { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 10px; margin-bottom: 8px; }
.field-inline label { margin: 0; font-weight: 500; font-size: 13.5px; }
.field-inline input { padding: 8px 10px !important; font-size: 14px !important; text-align: right; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
.form-section { font-size: 13px; font-weight: 600; color: var(--faint); margin: 26px 0 12px; text-transform: none; letter-spacing: 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13.5px; }
.form-row a { color: var(--accent); font-weight: 500; }
.input-code { text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-family: var(--mono); }
.input-code::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--font); }
.char-count { font-size: 12px; color: var(--faint); text-align: right; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin: 12px 0; cursor: pointer; }
.check input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); padding: 0; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--faint); padding: 6px; border-radius: 8px; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 18px; height: 18px; display: block; }
.pw-rules { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); }
.pw-rules li i { width: 14px; height: 14px; border-radius: 50%; background: var(--fill-2); flex: 0 0 14px; transition: background .2s var(--ease); }
.pw-rules li.ok { color: var(--green-ink); }
.pw-rules li.ok i { background: var(--green); }
.segmented { display: flex; border-radius: 11px; padding: 3px; background: var(--fill-2); gap: 2px; }
.segmented label { flex: 1; cursor: pointer; position: relative; margin: 0 !important; }
.segmented label.is-disabled { opacity: .4; cursor: not-allowed; }
.segmented input, .rate-stars input, .toggle input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; margin: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .18s var(--ease); white-space: nowrap; }
.segmented span svg { width: 15px; height: 15px; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 500; position: relative; }
.toggle i { width: 46px; height: 28px; border-radius: 14px; background: var(--fill-3); position: relative; transition: background .2s var(--ease); flex: 0 0 46px; }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { transform: translateX(18px); }
.lang-switch { display: inline-flex; gap: 2px; font-size: 12.5px; font-weight: 600; }
.lang-switch a { padding: 4px 8px; border-radius: 7px; color: var(--ink-2); text-decoration: none; }
.lang-switch a.active { background: var(--fill-2); color: var(--ink); }
.lang-switch a:not(.active):hover { color: var(--ink); }
.dropzone { border: 1.5px dashed var(--fill-3); border-radius: var(--r); padding: 28px; text-align: center; background: var(--fill); transition: all .18s var(--ease); cursor: pointer; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-softer); }
.dropzone svg { width: 26px; height: 26px; color: var(--accent); margin: 0 auto 10px; display: block; }
.dropzone b { display: block; font-size: 14.5px; }
.dropzone span { font-size: 12.5px; color: var(--muted); }
.dropzone input { display: none; }
.dropzone-file { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; align-items: center; }
.filters-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-sm); background: var(--fill-2); height: 38px; }
.filters-search svg { width: 15px; height: 15px; color: var(--faint); }
.filters-search input { flex: 1; border: 0; background: none; font-size: 14.5px; padding: 0; outline: 0; min-width: 0; color: var(--ink); }
.filters select, .filters input[type="date"] { width: auto; max-width: 100%; height: 38px; padding-top: 0; padding-bottom: 0; font-size: 14px; background-color: var(--surface); }
.filters label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

.table-wrap { overflow-x: auto; max-width: 100%; margin: 0 -4px; }
.table .inline-form { display: inline-flex; align-items: center; gap: 6px; }
.table .inline-form select,
.table .inline-form input:not([type="checkbox"]):not([type="radio"]) {
    font-size: 13.5px; padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); appearance: none; -webkit-appearance: none;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.table .inline-form select { min-width: 126px; padding-right: 30px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 13px;
}
.table .inline-form input[type="text"] { width: 128px; }
.table .inline-form select:focus, .table .inline-form input:focus {
    outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88, 86, 214, .14);
}
.table .inline-form .btn { flex: 0 0 auto; }
.table td.actions-cell { text-align: right; white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); padding: 8px 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: 0; text-transform: none; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover td { background: var(--surface-2); }
.table small { color: var(--faint); }
.table .rank { font-weight: 700; color: var(--faint); width: 36px; font-variant-numeric: tabular-nums; }
.table tr.rank-1 td.rank, .table td.rank.rank-1 { color: var(--orange); }
.table-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table-person .avatar { width: 32px; height: 32px; flex: 0 0 32px; font-size: 11.5px; background: var(--fill-2); color: var(--ink-2); }
.table-person b { display: block; font-size: 14px; font-weight: 600; }
.table-person span { font-size: 12px; color: var(--faint); }

.subtabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--fill-2); margin-bottom: 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a, .subtabs button { padding: 7px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); border: 0; background: none; border-radius: 9px; white-space: nowrap; cursor: pointer; transition: all .18s var(--ease); }
.subtabs a:hover, .subtabs button:hover { color: var(--ink); }
.subtabs a.active, .subtabs button.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }

.track { height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .9s var(--ease); }
.track.is-lg { height: 12px; border-radius: 6px; }
.track.is-lg > i { border-radius: 6px; }
.track > i.is-verde, .crit-track i.is-verde { background: var(--green); }
.track > i.is-amarillo, .crit-track i.is-amarillo { background: var(--orange); }
.track > i.is-rojo, .crit-track i.is-rojo { background: var(--red); }
.card-dark .track, .card-hero .track, .card-accent .track { background: rgba(255, 255, 255, .16); }
.card-dark .track > i, .card-hero .track > i, .card-accent .track > i { background: #fff; }
.crit-list { display: grid; gap: 14px; }
.crit-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; gap: 10px; }
.crit-top b { font-variant-numeric: tabular-nums; font-weight: 600; }
.crit-track { height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.crit-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .9s var(--ease); }
.usage-meter { margin-top: 14px; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }

.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis text, .chart text { font-family: var(--font); font-size: 11px; fill: var(--faint); }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
.chart .goal-line { stroke: var(--fill-3); stroke-width: 1.5; stroke-dasharray: 3 5; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 1.4s var(--ease); }
.chart.is-in .line { stroke-dashoffset: 0; }
.chart .area { opacity: 0; transition: opacity 1s var(--ease) .4s; }
.chart.is-in .area { opacity: 1; }
.chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.4; opacity: 0; transition: opacity .4s var(--ease) 1s, r .15s var(--ease); cursor: pointer; }
.chart.is-in .dot { opacity: 1; }
.chart .dot:hover { r: 6; }
.chart .dot.is-last { fill: var(--accent); }
.chart .bar { transform-origin: bottom; transform-box: fill-box; transform: scaleY(0); transition: transform .8s var(--ease); cursor: pointer; }
.chart.is-in .bar { transform: scaleY(1); }
.chart .bar:hover { opacity: .8; }
.chart .hbar { transform-origin: left; transform-box: fill-box; transform: scaleX(0); transition: transform .9s var(--ease); }
.chart.is-in .hbar { transform: scaleX(1); }
.chart .radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.chart .radar-spoke { stroke: var(--line-2); stroke-width: 1; }
.chart .radar-area { fill: rgba(88, 86, 214, .18); stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; transform-origin: center; transform-box: fill-box; transform: scale(.2); opacity: 0; transition: transform .9s var(--spring), opacity .5s var(--ease); }
.chart .radar-area.is-compare { fill: rgba(0, 0, 0, .04); stroke: var(--fill-3); stroke-width: 1.6; stroke-dasharray: 4 4; }
.chart.is-in .radar-area { transform: scale(1); opacity: 1; }
.chart .radar-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.chart .radar-label { font-size: 11.5px; fill: var(--ink-2); font-weight: 500; }
.chart .radar-value { font-size: 11px; fill: var(--faint); font-weight: 600; }
.chart .ring-track { fill: none; stroke: var(--fill-2); }
.chart .ring-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.card-dark .chart .ring-track, .card-hero .chart .ring-track { stroke: rgba(255, 255, 255, .12); }
.chart .heat { rx: 3; fill: var(--fill-2); }
.chart .heat.l1 { fill: rgba(88, 86, 214, .3); }
.chart .heat.l2 { fill: rgba(88, 86, 214, .55); }
.chart .heat.l3 { fill: rgba(88, 86, 214, .8); }
.chart .heat.l4 { fill: var(--accent); }
.chart .heat.is-today { stroke: var(--ink); stroke-width: 1.5; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.chart-empty { display: grid; place-items: center; min-height: 140px; color: var(--faint); font-size: 14px; text-align: center; background: var(--fill); border-radius: var(--r); padding: 20px; }
.ring-box { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; }
.ring-box > svg { display: block; transform: rotate(-90deg); width: auto; height: auto; }
.ring-box .ring-label { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; line-height: 1.05; }
.ring-box .ring-label b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-box .ring-label span { font-size: 11px; color: var(--faint); font-weight: 500; }
.ring-box.is-sm .ring-label b { font-size: 14px; }
.ring-box.is-xl .ring-label b { font-size: 48px; }
.ring-box.is-xl .ring-label span { font-size: 13px; }
.card-dark .ring-box .ring-label span, .card-hero .ring-box .ring-label span { color: rgba(255, 255, 255, .55); }
.ring-box .ring-track { fill: none; stroke: var(--fill-2); }
.ring-box .ring-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.card-dark .ring-box .ring-track, .card-hero .ring-box .ring-track, .card-accent .ring-box .ring-track { stroke: rgba(255, 255, 255, .14); }
.rring { transform: rotate(-90deg); }
.rring-track { fill: none; stroke: var(--fill-2); stroke-width: 7; }
.rring-fill { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray 1.2s var(--ease); }
.ring-light .rring-track { stroke: rgba(255, 255, 255, .14); }
.ring-light .rring-fill { stroke: #fff; }
.sparkline { width: 120px; height: 34px; flex: 0 0 120px; }
.sparkline polyline { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-dark .sparkline polyline, .card-hero .sparkline polyline { stroke: #fff; }
.spark-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.hbar-list { display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.hbar-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hbar-row > b { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 34px; text-align: right; }
.hbar-row .track { height: 10px; border-radius: 5px; }
.hbar-row .track > i { border-radius: 5px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bar-chart i { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; opacity: .9; }
.bar-chart i:hover { opacity: 1; }
.bar-legend, .bar-chart-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; }

.rings-card { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rings-legend { display: grid; gap: 14px; flex: 1; min-width: 200px; }
.rings-legend-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: baseline; }
.rings-legend-item i { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.rings-legend-item b { font-size: 14.5px; font-weight: 600; display: block; }
.rings-legend-item span { font-size: 12.5px; color: var(--muted); display: block; }
.rings-legend-item strong { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rings-legend-item strong small { font-size: 13px; color: var(--faint); font-weight: 500; }
.card-dark .rings-legend-item span { color: rgba(255, 255, 255, .55); }
.card-dark .rings-legend-item strong small { color: rgba(255, 255, 255, .45); }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-dot { display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--faint); }
.week-dot i { width: 30px; height: 30px; border-radius: 50%; background: var(--fill-2); display: grid; place-items: center; color: transparent; transition: transform .3s var(--spring); }
.week-dot i svg { width: 14px; height: 14px; stroke-width: 3; }
.week-dot.is-done i { background: var(--orange); color: #fff; }
.week-dot.is-today i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.week-dot.is-today { color: var(--ink); font-weight: 700; }
.card-dark .week-dot i { background: rgba(255, 255, 255, .12); }
.card-dark .week-dot.is-today i { box-shadow: 0 0 0 2px #1d1d1f, 0 0 0 4px #fff; }
.card-dark .week-dot.is-today { color: #fff; }
.streak-big { display: flex; align-items: center; gap: 14px; }
.streak-flame { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #ffb340, #ff6b00); color: #fff; box-shadow: 0 8px 20px rgba(255, 149, 0, .35); flex: 0 0 54px; }
.streak-flame svg { width: 28px; height: 28px; fill: #fff; stroke: #fff; }
.streak-flame.is-zero { background: var(--fill-2); box-shadow: none; }
.streak-flame.is-zero svg { fill: var(--fill-3); stroke: var(--fill-3); }
.streak-big b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; display: block; }
.streak-big span { font-size: 13px; color: var(--muted); }
.level-bar { display: grid; gap: 8px; }
.level-bar-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.level-bar-top b { color: var(--ink); font-size: 15px; }
.card-dark .level-bar-top { color: rgba(255, 255, 255, .6); }
.card-dark .level-bar-top b { color: #fff; }
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 18px 10px; }
.medal { display: grid; justify-items: center; gap: 8px; text-align: center; cursor: default; }
.medal-disc {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative;
    background: linear-gradient(150deg, var(--m1, #8e8cf0), var(--m2, #5856d6));
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .12);
    transition: transform .3s var(--spring);
}
.medal-disc svg { width: 28px; height: 28px; stroke-width: 2; }
.medal:hover .medal-disc { transform: scale(1.08) rotate(-4deg); }
.medal b { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.medal span { font-size: 11px; color: var(--faint); line-height: 1.25; }
.medal.is-locked .medal-disc { background: var(--fill-2); color: var(--fill-3); box-shadow: none; }
.medal.is-locked b { color: var(--faint); }
.medal.is-new .medal-disc { animation: medal-pop .9s var(--spring); }
.medal.is-new .medal-disc::after { content: 'Nuevo'; position: absolute; top: -6px; right: -14px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; }
@keyframes medal-pop { 0% { transform: scale(.3) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.medal .track { width: 54px; height: 4px; }
.medal-gold { --m1: #ffd60a; --m2: #ff9500; }
.medal-green { --m1: #63e6a0; --m2: #30b158; }
.medal-blue { --m1: #64b5ff; --m2: #007aff; }
.medal-pink { --m1: #ff7a9c; --m2: #ff2d55; }
.medal-purple { --m1: #d38bf5; --m2: #af52de; }
.medal-teal { --m1: #6fdcec; --m2: #30b0c7; }
.medal-indigo { --m1: #8e8cf0; --m2: #5856d6; }
.medal-dark { --m1: #636366; --m2: #1d1d1f; }
.medal-orange { --m1: #ffb340; --m2: #ff6b00; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin: 8px 0 4px; }
.podium-spot { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.podium-spot .avatar { width: 52px; height: 52px; font-size: 17px; flex-basis: 52px; }
.podium-spot.is-1 .avatar { width: 68px; height: 68px; font-size: 22px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--yellow); }
.podium-spot.is-2 .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #c7c7cc; }
.podium-spot.is-3 .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #d9a066; }
.podium-spot b { font-size: 14px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-spot span { font-size: 12.5px; color: var(--muted); }
.podium-base { width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--ink-2); background: var(--fill); }
.podium-spot.is-1 .podium-base { height: 96px; background: linear-gradient(180deg, rgba(255, 204, 0, .28), rgba(255, 204, 0, .08)); color: #a37a00; }
.podium-spot.is-2 .podium-base { height: 68px; }
.podium-spot.is-3 .podium-base { height: 48px; }
.mission { display: flex; align-items: center; gap: 16px; }
.mission-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 48px; }
.mission-icon svg { width: 24px; height: 24px; }
.mission.is-done .mission-icon { background: var(--green-soft); color: var(--green-ink); }
.mission-body { flex: 1; min-width: 0; }
.mission-body span { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.mission-body b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.mission-body p { font-size: 14px; color: var(--muted); }
.xp-gain { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill); }
.xp-gain svg { width: 13px; height: 13px; fill: currentColor; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 500; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translate3d(var(--dx, 0), 105vh, 0) rotate(var(--rot, 720deg)); opacity: .9; } }
.challenge-list { display: grid; gap: 16px; }
.challenge-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; gap: 10px; }
.challenge-top b { font-weight: 600; }
.challenge-top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.challenge-foot { font-size: 12.5px; color: var(--faint); display: block; margin-top: 5px; }

@media (max-width: 760px) {
    .chart svg text { font-size: 17px; }
    .chart .radar-label { font-size: 15px; }
    .chart .radar-value { font-size: 14px; }
    .card { padding: 18px; border-radius: var(--r-lg); }
    .kpi-grid, .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .kpi-value, .stat-value, .tile-value { font-size: 26px; }
    .hero-tiles { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr; }
    .check-list-row { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(3, 1fr); }
    .table-wrap .table { min-width: 560px; }
    .rings-card { gap: 18px; justify-content: center; }
    .hbar-row { grid-template-columns: minmax(80px, 40%) 1fr auto; }
    .medals { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
    .medal-disc { width: 56px; height: 56px; }
    .pw-rules { grid-template-columns: 1fr; }
}
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--surface); }
.auth-aside { position: relative; background: #000; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-aside::before { content: ''; position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(88, 86, 214, .55), transparent 62%); top: -260px; right: -240px; }
.auth-aside::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 85, .22), transparent 62%); bottom: -240px; left: -180px; }
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside .brand { padding: 0; color: #fff; }
.auth-aside .brand-name small { color: rgba(255, 255, 255, .5); }
.auth-aside h2 { font-size: 46px; line-height: 1.05; letter-spacing: -.035em; color: #fff; margin-bottom: 18px; max-width: 480px; }
.auth-aside h2 em { font-style: normal; background: linear-gradient(90deg, #a5a3ff, #ff7eb3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-aside p { color: rgba(255, 255, 255, .66); font-size: 18px; max-width: 440px; line-height: 1.45; }
.auth-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: rgba(255, 255, 255, .86); }
.auth-points svg { width: 20px; height: 20px; flex: 0 0 20px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; stroke-width: 2.6; }
.auth-foot { font-size: 12.5px; color: rgba(255, 255, 255, .4); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 30px; margin-bottom: 8px; }
.auth-box > p.sub { color: var(--muted); margin-bottom: 26px; font-size: 16px; }
.auth-box .field input { padding: 13px 14px; font-size: 16px; }
.auth-box .btn-block { padding: 14px; font-size: 16px; }
.auth-mobile-logo { display: none; margin-bottom: 28px; }
.auth-alt { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--accent); font-weight: 500; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.onboard { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.onboard-head { position: sticky; top: 0; z-index: 10; background: rgba(245, 245, 247, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.onboard-head-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1020px; margin: 0 auto; padding: 0 24px; }
.onboard-user { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 500; }
.onboard-main { flex: 1; padding: 28px 24px 72px; }
.onboard-shell { max-width: 972px; margin: 0 auto; }
.steps-bar { list-style: none; margin: 0 auto 40px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.steps-bar li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--faint); }
.steps-bar li:not(:last-child)::after { content: ''; width: 36px; height: 2px; border-radius: 1px; background: var(--fill-2); margin-left: 4px; }
.steps-bar li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: var(--fill-2); color: var(--faint); flex: 0 0 26px; }
.steps-bar li.done { color: var(--ink); }
.steps-bar li.done i { background: var(--green); color: #fff; }
.steps-bar li.done:not(.current)::after { background: var(--green); }
.steps-bar li.current i { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.onboard-intro { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.onboard-intro h1 { font-size: 40px; margin: 6px 0 12px; }
.onboard-intro p { color: var(--muted); font-size: 18px; line-height: 1.4; }
.onboard-card { margin-bottom: 18px; }
.onboard-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.onboard-grid { align-items: start; }
.onboard-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }

.errorpage { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.errorpage-box { text-align: center; max-width: 440px; }
.errorpage-logo { display: none; }
.errorpage-code { font-size: 120px; font-weight: 700; letter-spacing: -.06em; line-height: 1; display: block; background: linear-gradient(180deg, #1d1d1f, #86868b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.errorpage h1 { font-size: 28px; margin: 10px 0 8px; }
.errorpage p { color: var(--muted); margin-bottom: 24px; font-size: 17px; }
.errorpage-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.errorpage .btn-ghost { background: var(--fill-2); color: var(--ink); }

.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.scenario-grid-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.scenario-card {
    display: flex; flex-direction: column; gap: 8px; padding: 20px; min-width: 0;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.scenario-stage { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0; text-transform: none; }
.scenario-card > b { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.018em; }
.scenario-grid-compact .scenario-card > b { font-size: 15px; }
.scenario-card > p { font-size: 14px; color: var(--muted); flex: 1; line-height: 1.4; }
.scenario-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.scenario-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.scenario-meta svg { width: 14px; height: 14px; }
.scenario-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.scenario-stats { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--faint); }
.scenario-face { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(150deg, var(--m1, #8e8cf0), var(--m2, #5856d6)); flex: 0 0 44px; }
.generate-card { margin-bottom: 18px; }
.generate-form { display: flex; gap: 10px; align-items: stretch; }
.generate-form textarea { flex: 1; resize: none; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; background: var(--orange-soft); border-color: transparent; box-shadow: none; }
.resume-body { display: grid; gap: 3px; min-width: 0; }
.resume-body b { font-size: 16px; }
.resume-body span { font-size: 13.5px; color: var(--ink-2); }
.resume-actions { display: flex; gap: 8px; align-items: center; }
.suggest { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.suggest-body { flex: 1; min-width: 220px; display: grid; gap: 5px; justify-items: start; }
.suggest-body b { font-size: 17px; font-weight: 600; }
.suggest-body p { font-size: 14px; color: var(--muted); }
.suggest-list { display: grid; gap: 14px; }
.suggest-item { display: flex; gap: 12px; align-items: flex-start; }
.suggest-item i { width: 24px; height: 24px; border-radius: 50%; background: var(--fill-2); color: var(--ink-2); font-style: normal; font-weight: 700; font-size: 12px; display: grid; place-items: center; flex: 0 0 24px; }
.suggest-item.done i { background: var(--green); color: #fff; }
.suggest-item b { display: block; font-size: 14.5px; font-weight: 600; }
.suggest-item span { display: block; font-size: 12.5px; color: var(--muted); }
.brief { display: grid; gap: 16px; }
.brief-person { display: flex; align-items: center; gap: 14px; }
.brief-person b { display: block; font-size: 18px; font-weight: 600; }
.brief-person span { font-size: 14px; color: var(--muted); }
.brief-hidden { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--fill); color: var(--muted); font-size: 13.5px; }
.brief-hidden svg { width: 16px; height: 16px; flex: 0 0 16px; }
.start-card { position: sticky; top: calc(var(--top-h) + 16px); }
.setup-card { margin-bottom: 18px; }

.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sim-head h1 { font-size: 24px; margin-bottom: 2px; }
.sim-head p { color: var(--muted); font-size: 14px; }
.sim-head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.turns { font-size: 13px; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.turns b { color: var(--ink); font-size: 14px; }
.turns.is-warn { background: var(--orange-soft); color: var(--orange-ink); border-color: transparent; }
.turns.is-warn b { color: var(--orange-ink); }
.sim-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sim-chat, .coach-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; min-height: 520px; height: calc(100dvh - var(--top-h) - 170px); max-height: 860px; }
.sim-messages, .coach-messages { flex: 1; overflow-y: auto; padding: 22px 22px 12px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.sim-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 16px 22px; }
.sim-intro b { display: block; font-size: 17px; font-weight: 600; }
.sim-intro span { font-size: 13px; color: var(--muted); display: block; }
.sim-intro p { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 420px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--fill); }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 76%; animation: msg-in .28s var(--spring); margin-top: 6px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.msg-me { align-self: flex-end; flex-direction: row-reverse; }
.msg-them, .msg-coach { align-self: flex-start; }
.msg-bubble { padding: 10px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-me .msg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg-them .msg-bubble, .msg-coach .msg-bubble { background: var(--fill-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg-them.is-streaming .msg-bubble::after { content: ''; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--faint); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.msg-help { align-self: center; max-width: 88%; background: var(--orange-soft); border-radius: var(--r); padding: 10px 14px; gap: 10px; align-items: flex-start; margin: 10px 0; }
.msg-help .msg-bubble { padding: 0; background: none; font-size: 13.5px; color: var(--orange-ink); border-radius: 0; }
.msg-help-icon { color: var(--orange-ink); flex: 0 0 17px; margin-top: 1px; }
.msg-help-icon svg { width: 17px; height: 17px; }
.msg-system { align-self: center; font-size: 12px; color: var(--faint); max-width: 100%; }
.msg-typing .msg-bubble { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: typing 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg-speak { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--fill-3); display: grid; place-items: center; cursor: pointer; flex: 0 0 26px; transition: all .15s var(--ease); }
.msg-speak svg { width: 14px; height: 14px; }
.msg-speak:hover, .msg-speak.is-playing { color: var(--accent); background: var(--accent-soft); }
.msg-error { align-self: center; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--red-ink); background: var(--red-soft); padding: 10px 14px; border-radius: var(--r); margin: 8px 0; flex-wrap: wrap; justify-content: center; }
.msg-bubble.md p { margin-bottom: 8px; white-space: normal; }
.msg-bubble.md p:last-child { margin-bottom: 0; }
.msg-bubble.md ul { margin: 4px 0 8px; padding-left: 18px; white-space: normal; }
.msg-bubble.md li { margin-bottom: 4px; }
.msg-bubble.md h4 { font-size: 14.5px; margin: 8px 0 4px; }
.sim-status { padding: 8px 22px; font-size: 12.5px; color: var(--muted); text-align: center; }
.sim-status.is-warn { color: var(--orange-ink); background: var(--orange-soft); }
.sim-composer { padding: 10px 14px 12px; background: var(--surface); border-top: 1px solid var(--line-2); }
.sim-composer-row { display: flex; align-items: flex-end; gap: 8px; }
.sim-composer textarea { flex: 1; font-size: 16px; line-height: 1.4; padding: 10px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); resize: none; max-height: 150px; min-height: 42px; color: var(--ink); }
.sim-composer textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(88, 86, 214, .14); }
.sim-composer textarea:disabled { background: var(--fill); }
.mic-btn, .send-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: 0 0 42px; transition: all .18s var(--ease); }
.mic-btn svg, .send-btn svg { width: 19px; height: 19px; }
.send-btn { background: var(--accent); color: #fff; }
.send-btn:hover { background: var(--accent-600); transform: scale(1.05); }
.send-btn:disabled { background: var(--fill-3); transform: none; cursor: not-allowed; }
.mic-btn { --lvl: 0; background: var(--fill-2); color: var(--ink-2); position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.mic-btn:hover { background: var(--fill-3); }
.mic-btn.is-on { background: var(--red); color: #fff; box-shadow: 0 0 0 calc(3px + var(--lvl) * 14px) rgba(255, 59, 48, .22); transition: box-shadow .09s linear, background .18s var(--ease); }
.mic-btn.is-on::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 59, 48, .45); animation: mic-ring 1.4s ease-out infinite; pointer-events: none; }
@keyframes mic-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.mic-btn.is-paused { background: var(--orange-soft); color: var(--orange-ink); }
.mic-btn.is-paused::after { content: ''; position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid var(--surface); animation: blink 1.2s steps(2) infinite; }
.mic-btn.is-processing { background: var(--accent-soft); color: var(--accent); cursor: wait; }
.mic-btn.is-processing svg { animation: mic-think 1s ease-in-out infinite; }
@keyframes mic-think { 50% { opacity: .35; transform: scale(.92); } }
.mic-btn.is-denied { background: var(--red-soft); color: var(--red-ink); }
.mic-btn:disabled { opacity: .35; cursor: not-allowed; }
.sim-voice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px 8px; margin: -2px 0 8px; border-radius: 12px; background: var(--fill); font-size: 13px; color: var(--muted); overflow: hidden; }
.sim-voice.is-on { background: var(--red-soft); color: var(--red-ink); }
.sim-voice.is-paused { background: var(--orange-soft); color: var(--orange-ink); }
.sim-voice.is-processing { background: var(--accent-soft); color: var(--accent); }
.sim-voice.is-denied { background: var(--red-soft); color: var(--red-ink); }
.voice-text { flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; }
.voice-pulse { display: inline-flex; align-items: center; gap: 3px; height: 20px; flex: 0 0 auto; }
.voice-pulse i { display: block; width: 4px; height: 18px; border-radius: 2px; background: currentColor; transform: scaleY(.18); transform-origin: center; transition: transform .07s linear; opacity: .85; }
.voice-pulse.is-fake i { animation: voice-fake 1.1s ease-in-out infinite; }
.voice-pulse.is-fake i:nth-child(2), .voice-pulse.is-fake i:nth-child(4) { animation-delay: .18s; }
.voice-pulse.is-fake i:nth-child(3) { animation-delay: .36s; }
.voice-pulse.is-speaking i { animation: voice-fake .9s ease-in-out infinite; }
.voice-pulse.is-speaking i:nth-child(2), .voice-pulse.is-speaking i:nth-child(4) { animation-delay: .15s; }
.voice-pulse.is-speaking i:nth-child(3) { animation-delay: .3s; }
@keyframes voice-fake { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.voice-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .08)); }
.voice-action svg { width: 14px; height: 14px; }
.voice-action:hover { background: var(--fill-2); }
.voice-count { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: currentColor; opacity: 0; border-radius: 0 2px 2px 0; }
.voice-count.is-on { opacity: .55; }
.sim-unlock { padding: 8px 14px 0; text-align: center; }
.sim-unlock .btn { gap: 6px; }
.tool-hint { font-size: 12px; color: var(--faint); margin-left: auto; }
.voice-card .card-head h3 svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.voice-try { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.voice-default { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.voice-default .field { margin-bottom: 14px; }
.voice-default .btn { margin-bottom: 14px; }
[data-voice-preview] svg { width: 15px; height: 15px; }
[data-voice-preview].is-loading { opacity: .7; cursor: wait; }
[data-voice-preview].is-playing { background: var(--accent); color: #fff; }
[data-voice-preview].is-playing svg { animation: mic-think 1s ease-in-out infinite; }
.sim-composer-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding-left: 4px; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--orange-ink); padding: 4px 0; }
.tool-btn svg { width: 15px; height: 15px; }
.tool-btn:hover { text-decoration: underline; }
.tool-btn:disabled { opacity: .5; cursor: wait; }
.tool-btn small { font-weight: 500; color: var(--faint); }
.tool-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tool-toggle svg { width: 14px; height: 14px; }
.tool-toggle input { accent-color: var(--accent); }
.tool-note { font-size: 12.5px; color: var(--red-ink); font-weight: 500; }
.sim-side { display: grid; gap: 14px; }
.sim-side .card { padding: 18px; }
.sim-objective { font-size: 15px; font-weight: 500; margin-bottom: 10px; line-height: 1.4; }
.sim-help-panel { background: var(--orange-soft); border-color: transparent; box-shadow: none; }
.sim-help-panel .card-head { margin-bottom: 8px; }
.sim-help-panel b.help-focus { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-ink); margin-bottom: 6px; }
.sim-help-panel p { font-size: 14.5px; margin-bottom: 10px; }
.sim-help-panel .help-line { font-size: 14px; padding: 10px 12px; background: var(--surface); border-radius: var(--r-sm); font-style: italic; }
.sim-abandon { text-align: center; }
.evaluating { position: fixed; inset: 0; z-index: 260; background: rgba(245, 245, 247, .86); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); display: grid; place-items: center; text-align: center; padding: 24px; }
.evaluating-box b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.025em; margin: 22px 0 8px; }
.evaluating-box span { color: var(--muted); font-size: 16px; }
.evaluating-spinner { width: 64px; height: 64px; border: 5px solid var(--fill-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto; }
.evaluating-inline { display: flex; align-items: center; gap: 16px; }
.evaluating-inline .evaluating-spinner { width: 32px; height: 32px; border-width: 3px; margin: 0; }
.evaluating-inline b { display: block; }
.evaluating-inline span { font-size: 13.5px; color: var(--muted); }

.eval-hero { padding: 28px; }
.eval-hero-score { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.eval-hero h2 { font-size: 28px; margin: 6px 0 8px; }
.eval-hero p { font-size: 15.5px; max-width: 620px; }
.score-big { flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; align-content: center; border: 8px solid var(--fill-3); }
.score-big b { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.score-big span { font-size: 11px; color: var(--faint); font-weight: 500; }
.card-dark .score-big span, .card-hero .score-big span { color: rgba(255, 255, 255, .55); }
.score-big.is-verde { border-color: var(--green); }
.score-big.is-amarillo { border-color: var(--orange); }
.score-big.is-rojo { border-color: var(--red); }
.eval-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.card-dark .badge, .card-hero .badge { background: rgba(255, 255, 255, .14); color: #fff; }
.card-dark .badge-ok, .card-hero .badge-ok { background: rgba(52, 199, 89, .24); color: #7ce79b; }
.card-dark .badge-alert, .card-hero .badge-alert { background: rgba(255, 59, 48, .26); color: #ff9c95; }
.card-dark .badge-warn, .card-hero .badge-warn { background: rgba(255, 149, 0, .26); color: #ffc470; }
.eval-note { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; }
.eval-note svg { width: 15px; height: 15px; }
.next-action { display: flex; gap: 14px; align-items: center; background: var(--accent-softer); border-color: transparent; box-shadow: none; }
.next-action-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: 0 0 44px; }
.next-action p { font-size: 17px; font-weight: 600; margin-top: 2px; letter-spacing: -.015em; line-height: 1.3; }
.crit-detail-list { display: grid; gap: 0; }
.crit-detail { border-bottom: 1px solid var(--line-2); }
.crit-detail:last-child { border-bottom: 0; }
.crit-detail summary { display: flex; align-items: center; gap: 14px; padding: 13px 2px; cursor: pointer; list-style: none; }
.crit-detail summary::-webkit-details-marker { display: none; }
.crit-detail-score { flex: 0 0 46px; text-align: center; font-size: 16px; font-weight: 700; border-radius: 11px; padding: 7px 0; font-variant-numeric: tabular-nums; background: var(--fill); color: var(--faint); }
.crit-detail.is-verde .crit-detail-score { background: var(--green-soft); color: var(--green-ink); }
.crit-detail.is-amarillo .crit-detail-score { background: var(--orange-soft); color: var(--orange-ink); }
.crit-detail.is-rojo .crit-detail-score { background: var(--red-soft); color: var(--red-ink); }
.crit-detail.is-nodata .crit-detail-score { font-size: 12px; }
.crit-detail-name { flex: 1; min-width: 0; }
.crit-detail-name b { display: block; font-size: 15px; font-weight: 600; }
.crit-detail-name small { font-size: 12.5px; color: var(--faint); }
.crit-detail-bar { flex: 0 0 130px; height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.crit-detail-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.crit-detail.is-verde .crit-detail-bar i { background: var(--green); }
.crit-detail.is-amarillo .crit-detail-bar i { background: var(--orange); }
.crit-detail.is-rojo .crit-detail-bar i { background: var(--red); }
.crit-detail-chev { width: 16px; height: 16px; color: var(--fill-3); transition: transform .2s var(--ease); }
.crit-detail[open] .crit-detail-chev { transform: rotate(180deg); }
.crit-detail-body { padding: 0 2px 16px 62px; font-size: 14.5px; display: grid; gap: 10px; color: var(--ink-2); }
.crit-action { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--accent); }
.crit-action svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; }
.evidence { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--fill); display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; font-size: 14.5px; border-left: 3px solid var(--accent); }
.evidence svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 15px; margin-top: 3px; }
.evidence span { flex: 1; font-style: italic; min-width: 180px; }
.evidence-link { font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.evidence small { width: 100%; font-size: 11.5px; color: var(--faint); font-style: normal; }
.evidence.is-unverified { border-left-color: var(--orange); }
.transcript { display: grid; gap: 4px; }
.tr-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); scroll-margin-top: 90px; }
.tr-row:target { background: var(--orange-soft); }
.tr-me { background: var(--accent-softer); }
.tr-turn { flex: 0 0 30px; font-size: 11px; font-weight: 600; color: var(--faint); padding-top: 3px; font-variant-numeric: tabular-nums; }
.tr-body { flex: 1; min-width: 0; }
.tr-body b { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.tr-me .tr-body b { color: var(--accent); }
.tr-body p { font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-help { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--orange-ink); background: var(--orange-soft); padding: 8px 12px; border-radius: var(--r-sm); }
.tr-help svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.mentor-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 9px 11px; border-radius: var(--r-xs); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.mentor-note svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 14px; margin-top: 2px; }
.mentor-list { display: grid; gap: 8px; margin-bottom: 14px; }
.mentor-form { margin-top: 6px; font-size: 12.5px; }
.mentor-form summary { cursor: pointer; color: var(--accent); font-weight: 500; list-style: none; }
.mentor-form textarea, .mentor-general textarea, .rate-form textarea { margin: 8px 0; font-size: 14px; }
.mentor-general { display: grid; gap: 8px; justify-items: start; }
.adjust-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 12px; }
.adjust-note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.adj-criteria { margin-bottom: 14px; font-size: 13.5px; }
.adj-criteria summary { cursor: pointer; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.ref-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.rate-form { display: grid; gap: 10px; }
.rate-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate-stars label { cursor: pointer; font-size: 30px; line-height: 1; color: var(--fill-3); position: relative; transition: transform .15s var(--spring); }
.rate-stars label:hover { transform: scale(1.15); }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars label:has(input:checked), .rate-stars label:has(input:checked) ~ label { color: var(--orange); }

.chat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.thread-list { display: grid; gap: 2px; }
.thread-item { display: block; padding: 10px 12px; border-radius: var(--r-sm); transition: background .15s var(--ease); min-width: 0; }
.thread-item:hover { background: var(--fill); }
.thread-item.is-active { background: var(--accent); color: #fff; }
.thread-item b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item span { font-size: 12px; color: var(--faint); }
.thread-item.is-active span { color: rgba(255, 255, 255, .7); }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.prompt-chip { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .15s var(--ease); }
.prompt-chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.script-text { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; padding: 18px; border-radius: var(--r); background: var(--fill); max-height: 520px; overflow: auto; }
.diff-list { display: grid; gap: 12px; }
.diff { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.diff-row { padding: 10px 14px; font-size: 14.5px; }
.diff-row.is-old { background: var(--red-soft); color: var(--red-ink); text-decoration: line-through; text-decoration-color: rgba(208, 39, 29, .35); }
.diff-row.is-new { background: var(--green-soft); color: #14602b; }
.diff-why { padding: 9px 14px; font-size: 13px; color: var(--muted); background: var(--surface); }
.crit-editor { display: grid; gap: 12px; }
.crit-row { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--surface); display: grid; gap: 10px; }
.crit-row-head { display: flex; gap: 10px; align-items: center; }
.crit-row-head .field { flex: 1; margin: 0; }
.crit-row-head .field-w { flex: 0 0 90px; }
.crit-row-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.crit-row-grid .field, .crit-row .field { margin: 0; }
.crit-row textarea { font-size: 13.5px !important; padding: 9px 11px !important; }
.crit-row .field label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.crit-remove { background: none; border: 0; cursor: pointer; color: var(--faint); padding: 6px; border-radius: 8px; }
.crit-remove:hover { color: var(--red-ink); background: var(--red-soft); }
.timeline-audit { display: grid; font-size: 14px; }
.timeline-audit .row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.timeline-audit .row:last-child { border-bottom: 0; }
.timeline-audit time { color: var(--faint); font-size: 12.5px; }
.pii-list { display: flex; flex-wrap: wrap; gap: 6px; }

.landing { background: #fff; color: var(--ink); }
.lnav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-2); }
.lnav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lnav .brand { padding: 0; }
.lnav .brand-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
.lnav .brand-mark svg { width: 16px; height: 16px; }
.lnav-links { display: flex; gap: 28px; font-size: 13.5px; color: var(--ink-2); }
.lnav-links a:hover { color: var(--accent); }
.lnav-actions { display: flex; gap: 8px; align-items: center; }
.lsec { padding: 110px 24px; }
.lsec-inner { max-width: 1120px; margin: 0 auto; }
.lsec.is-gray { background: var(--bg); }
.lsec.is-dark { background: #000; color: #fff; }
.lsec.is-dark h2, .lsec.is-dark h3 { color: #fff; }
.lhero { padding: 96px 24px 0; text-align: center; overflow: hidden; }
.lhero .lkicker, .lkicker { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 14px; display: block; }
.lhero h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; max-width: 980px; margin: 0 auto 22px; }
.lhero h1 em, .lh2 em { font-style: normal; background: linear-gradient(92deg, #5856d6 10%, #af52de 50%, #ff2d55 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lhero p.lead { font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); max-width: 720px; margin: 0 auto 32px; line-height: 1.35; letter-spacing: -.015em; }
.lhero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lhero-note { font-size: 13px; color: var(--faint); margin-top: 16px; }
.lh2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.04em; max-width: 860px; margin-bottom: 18px; }
.lsub { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 680px; line-height: 1.4; letter-spacing: -.012em; }
.lsec.is-dark .lsub { color: rgba(255, 255, 255, .62); }
.lcenter { text-align: center; }
.lcenter .lh2, .lcenter .lsub { margin-left: auto; margin-right: auto; }
.lmock { max-width: 1040px; margin: 64px auto 0; border-radius: 28px 28px 0 0; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -10px 80px rgba(88, 86, 214, .18), 0 40px 80px rgba(0, 0, 0, .08); padding: 18px 18px 0; text-align: left; }
.lmock-bar { display: flex; gap: 6px; padding: 0 6px 14px; }
.lmock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lmock-bar i:nth-child(2) { background: #febc2e; }
.lmock-bar i:nth-child(3) { background: #28c840; }
.lmock-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.lmock .card { box-shadow: var(--sh-1); }
.lmock-chat { display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 330px; }
.lmock-chat .msg { animation: none; max-width: 84%; }
.lmock-side { display: grid; gap: 14px; align-content: start; }
.lbento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 56px; }
.ltile { border-radius: 28px; background: var(--bg); padding: 34px; min-height: 300px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.ltile.is-white { background: #fff; border: 1px solid var(--line); }
.ltile.is-dark { background: #1d1d1f; color: #fff; }
.ltile.is-dark h3 { color: #fff; }
.ltile.is-dark p { color: rgba(255, 255, 255, .64); }
.ltile.is-accent { background: linear-gradient(150deg, #7d7aff, #5856d6 55%, #3634a3); color: #fff; }
.ltile.is-accent h3 { color: #fff; }
.ltile.is-accent p { color: rgba(255, 255, 255, .8); }
.ltile.w3 { grid-column: span 3; }
.ltile.w2 { grid-column: span 2; }
.ltile.w4 { grid-column: span 4; }
.ltile.w6 { grid-column: span 6; }
.ltile .lkicker { font-size: 14px; margin-bottom: 8px; }
.ltile.is-dark .lkicker, .ltile.is-accent .lkicker { color: rgba(255, 255, 255, .7); }
.ltile h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 10px; max-width: 420px; }
.ltile p { font-size: 16px; color: var(--muted); max-width: 440px; line-height: 1.4; }
.ltile-art { margin-top: auto; padding-top: 26px; }
.lsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.lstep b { display: block; font-size: 56px; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--fill-3); margin-bottom: 14px; }
.lstep h4 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.lstep p { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.lstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; text-align: center; }
.lstats b { display: block; font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lstats span { display: block; font-size: 16px; color: rgba(255, 255, 255, .6); margin-top: 10px; max-width: 260px; margin-left: auto; margin-right: auto; }
.lroles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.lrole { background: #fff; border-radius: 28px; padding: 32px; border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
.lrole .tile-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; }
.lrole .tile-icon svg { width: 22px; height: 22px; }
.lrole h4 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 8px; }
.lrole p { font-size: 15.5px; color: var(--muted); margin-bottom: 16px; }
.lrole ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lrole li { display: flex; gap: 9px; font-size: 14.5px; align-items: flex-start; }
.lrole li svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 16px; margin-top: 3px; stroke-width: 3; }
.lcta { text-align: center; padding: 120px 24px; background: linear-gradient(180deg, #fff, var(--bg)); }
.lfoot { padding: 32px 24px 40px; background: var(--bg); font-size: 12.5px; color: var(--faint); }
.lfoot-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.lfoot a:hover { color: var(--ink); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
    .sim-grid, .chat-layout { grid-template-columns: minmax(0, 1fr); }
    .sim-side { grid-template-columns: 1fr 1fr; }
    .start-card { position: static; }
    .lbento { grid-template-columns: repeat(2, 1fr); }
    .ltile.w2, .ltile.w3, .ltile.w4 { grid-column: span 1; }
    .ltile.w6 { grid-column: span 2; }
    .lsteps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-mobile-logo { display: flex; }
    .lnav-links { display: none; }
    .lmock-grid { grid-template-columns: 1fr; }
    .lmock-side { display: none; }
    .lroles, .lstats { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .steps-bar li span { display: none; }
    .steps-bar li.current span { display: inline; }
    .onboard-intro h1 { font-size: 30px; }
    .onboard-intro p { font-size: 16px; }
    .onboard-grid { grid-template-columns: 1fr; }
    .sim-side { grid-template-columns: 1fr; }
    .coach-chat { height: calc(100dvh - var(--top-h) - 200px); min-height: 430px; border-radius: var(--r-lg); }
    .sim-chat { height: calc(100dvh - var(--top-h) - 230px); min-height: 360px; border-radius: var(--r-lg); }
    .sim-head { margin: 0 0 10px; gap: 8px; }
    .sim-head-main { min-width: 0; width: 100%; }
    .sim-head .back-link { margin-bottom: 0; font-size: 13px; }
    .sim-head h1 { font-size: 17px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .sim-head p { font-size: 12.5px; }
    .sim-head-side { width: 100%; justify-content: space-between; }
    .sim-head-side .btn { padding: 8px 12px; font-size: 13px; }
    .sim-messages { padding: 14px 14px 8px; }
    .sim-composer { padding: 8px 10px calc(10px + env(safe-area-inset-bottom) / 2); }
    .sim-composer-tools { gap: 10px; }
    .tool-hint { display: none; }
    .sim-voice { margin-bottom: 6px; }
    .msg { max-width: 88%; }
    .eval-hero-score { flex-direction: column; align-items: flex-start; }
    .crit-detail-bar { display: none; }
    .crit-detail-body { padding-left: 2px; }
    .generate-form { flex-direction: column; }
    .crit-row-grid { grid-template-columns: 1fr; }
    .timeline-audit .row { grid-template-columns: 1fr; gap: 2px; }
    .lsec { padding: 72px 20px; }
    .lhero { padding-top: 64px; }
    .lbento { grid-template-columns: 1fr; }
    .ltile.w6 { grid-column: span 1; }
    .ltile { padding: 26px; min-height: 0; border-radius: 22px; }
    .ltile h3 { font-size: 24px; }
    .lsteps { grid-template-columns: 1fr; gap: 32px; }
    .lcta { padding: 80px 20px; }
    .lmock { border-radius: 20px 20px 0 0; padding: 12px 12px 0; margin-top: 44px; }
}

.version-list { display: grid; gap: 0; }
.version-row { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line-2); min-width: 0; flex-wrap: wrap; }
.version-row:last-child { border-bottom: 0; }
.version-row.is-active .version-num { background: var(--green-soft); color: var(--green-ink); }
.version-num { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--fill); color: var(--muted); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.version-body { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.version-body b { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.version-body span { font-size: 13px; color: var(--muted); }
.version-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.version-actions form { margin: 0; }

.crit-num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: var(--fill); color: var(--muted); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.crit-row-head { flex-wrap: wrap; }
.crit-row-head .field-key { flex: 0 0 160px; }
.crit-row-actions { display: flex; gap: 2px; align-items: center; margin-top: 18px; }
.crit-move { background: none; border: 0; cursor: pointer; color: var(--faint); padding: 6px; border-radius: 8px; display: inline-flex; }
.crit-move:hover { color: var(--ink); background: var(--fill); }
.crit-editor-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.semaforo-inputs { display: flex; align-items: center; gap: 8px; }
.semaforo-inputs input { flex: 1; min-width: 0; }

.crit-view { align-items: flex-start; }
.crit-view .rowi-body > b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crit-view .rowi-body > span { white-space: normal; overflow: visible; }
.crit-view .rowi-body > span .faint { display: inline; font-size: 12px; }
.crit-view .rowi-body > span .faint::before { content: '· '; }
.crit-view .anchors { margin-top: 10px; }
.crit-view .anchors .dl-row { justify-content: flex-start; padding: 7px 0; }
.crit-view .anchors dt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: 0 0 48px; font-weight: 600; }
.crit-view .anchors dd { text-align: left; font-weight: 400; color: var(--ink); }

.card-dark .check-list li b { color: #fff; }
.card-dark .check-list li span, .card-dark .check-list .check-body > span { color: rgba(255, 255, 255, .62); }
.card-dark .check-list .check-mark { background: rgba(255, 255, 255, .14); color: transparent; }
.card-dark .check-list li.done .check-mark { background: var(--green); color: #fff; }
.card-dark .check-list .link { color: #fff; }

@media (max-width: 720px) {
    .crit-row-head > .field:not(.field-key):not(.field-w) { flex: 1 1 calc(100% - 42px); }
    .crit-row-head .field-key { flex: 1 1 55%; }
    .crit-row-head .field-w { flex: 1 1 30%; }
    .crit-row-actions { width: 100%; justify-content: flex-end; margin-top: 0; }
    .version-actions { width: 100%; }
}

.rowi-body b .badge, .rowi-body b .code-box { display: inline-flex; width: auto; vertical-align: middle; margin-left: 6px; }
.rowi-body b .code-box { margin-left: 0; margin-right: 6px; }
.rowi-side .faint { font-size: 12px; }
.admin-rows .rowi-body span { white-space: normal; }
@media (max-width: 640px) {
    .admin-rows .rowi { flex-wrap: wrap; }
    .admin-rows .rowi-side { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; padding-left: 50px; }
}
.card-dark .kpi-value { color: #fff; }

.person-head { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.person-head h1 { margin: 2px 0 4px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back-link svg { width: 14px; height: 14px; }
.rowi .rank { width: 22px; flex: 0 0 22px; text-align: center; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.rowi.is-muted { opacity: .6; }
.rank-side { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.podium-spot { text-decoration: none; color: inherit; }
.kpi-value-text { font-size: 20px; line-height: 1.3; }
.plan-section-head { margin: 32px 0 14px; }
.plan-section-head h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; }
.plan-section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.reto-card .card-head form { flex-shrink: 0; }
.hero-tile b svg { width: 18px; height: 18px; vertical-align: -2px; margin-right: 2px; }
@media (max-width: 640px) {
    .rank-side { flex-direction: column; align-items: flex-end; gap: 4px; }
    .person-head { align-items: flex-start; }
}
.card-link > .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.card-link > .card-head > svg { width: 18px; height: 18px; color: var(--faint); flex-shrink: 0; }

/* ── Módulo: biblioteca de escenarios ── */
.lib-tags { margin: 0 0 14px; }
.lib-toolbar { margin: 0 0 14px; font-size: 14px; }
.scenario-top { display: flex; align-items: center; gap: 12px; }
.scenario-who { flex: 1; min-width: 0; display: grid; }
.scenario-who b { font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scenario-who span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scenario-card .scenario-stage { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scenario-stage .badge { flex: 0 0 auto; font-weight: 500; }
.scenario-stage .badge svg { width: 12px; height: 12px; }
.scenario-meta .score-pill { font-size: 12px; }
.scn-hero { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 18px; }
.scn-hero-face { width: 84px; height: 84px; flex: 0 0 84px; font-size: 28px; }
.scn-hero-body { flex: 1; min-width: 0; display: grid; gap: 12px; }
.scn-hero-body h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.scn-hero-body > p { color: var(--muted); font-size: 15px; margin: -6px 0 0; }
.scn-hero .chip svg { width: 14px; height: 14px; margin-right: 5px; }
.scn-objective { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--fill); font-size: 15px; line-height: 1.5; }
.scn-objective b { font-size: 12px; font-weight: 600; color: var(--muted); }
.scn-hidden { border: 1px solid var(--orange-soft); }
.scn-hidden .badge svg { width: 12px; height: 12px; }
.rowi.is-viewing b { color: var(--accent); }
.scn-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--fill); }
.scn-preview > div { display: grid; min-width: 0; }
.scn-preview b { font-size: 16px; font-weight: 600; }
.scn-preview span { font-size: 13px; color: var(--muted); }
.scn-form .toggle { margin-top: 6px; }
.scn-actions { justify-content: flex-end; align-items: center; margin-top: 18px; }
.scn-actions .muted { flex: 1; font-size: 13px; }
@media (max-width: 640px) {
    .scn-hero { flex-direction: column; gap: 14px; }
    .scn-hero-face { width: 64px; height: 64px; flex-basis: 64px; font-size: 22px; }
    .scn-actions { flex-direction: column-reverse; align-items: stretch; }
    .scn-actions .btn { width: 100%; }
}

.page-head .back-link { display: flex; width: fit-content; }
.call-side { flex-direction: column; align-items: flex-end; gap: 3px; }
.call-side small { font-size: 12px; color: var(--faint); white-space: nowrap; }
.call-consent { align-items: flex-start; padding: 14px; border-radius: var(--r-sm); background: var(--accent-softer); }
.call-consent input[type="checkbox"] { margin-top: 2px; }
.call-chip-count { color: var(--faint); font-weight: 600; }
.call-actions { flex-wrap: wrap; gap: 8px; }
.call-actions form { margin: 0; }
.call-hero { gap: 24px; align-items: center; }
.call-hero-body { flex: 1; min-width: 0; }
.call-hero-body h2 { font-size: 24px; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -.01em; }
.call-hero-body p { color: rgba(255, 255, 255, .72); margin-bottom: 14px; }
.call-radar { margin-bottom: 18px; }
.rowi.is-active { background: var(--accent-softer); }
@media (max-width: 640px) {
    .call-side small { display: none; }
    .call-hero { flex-direction: column; align-items: flex-start; }
    .call-hero-body h2 { font-size: 21px; }
    .call-radar { display: none; }
}

.face-prospeccion { --m1: #64b5ff; --m2: #007aff; }
.face-descubrimiento { --m1: #5ad8d8; --m2: #30b0c7; }
.face-presentacion { --m1: #a5a3ff; --m2: #5856d6; }
.face-objeciones { --m1: #ffb340; --m2: #ff9500; }
.face-negociacion { --m1: #ff7a9c; --m2: #ff2d55; }
.face-cierre { --m1: #63e6a0; --m2: #30b158; }
.face-seguimiento { --m1: #d38bf5; --m2: #af52de; }
.face-retencion { --m1: #8e8e93; --m2: #48484a; }
.scenario-card .scenario-top { display: flex; align-items: center; gap: 12px; }
.scenario-card .scenario-top .scenario-stage { display: block; margin-bottom: 2px; }
.scenario-card .scenario-top span:last-child { font-size: 13px; color: var(--muted); min-width: 0; }
.scenario-face.is-lg { width: 64px; height: 64px; font-size: 22px; flex-basis: 64px; }
.scenario-face.is-sm { width: 36px; height: 36px; font-size: 13px; flex-basis: 36px; }
.family-avg { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--fill); }
.family-avg b { display: block; font-size: 15px; }
.family-avg span { font-size: 13px; color: var(--muted); }
.eval-hero-score .xp-gain { margin-top: 12px; }
.eval-radar { display: flex; justify-content: center; margin-bottom: 8px; }
.history-filters { margin-bottom: 18px; }
@media (max-width: 760px) { .sim-head-side { width: 100%; justify-content: space-between; } }
.rowi-icon.is-green { background: var(--green-soft); color: var(--green-ink); }
.resume-body .badge { justify-self: start; }

/* ── Módulos: revisor de scripts y coach ── */
.script-hero { display: flex; align-items: center; gap: 26px; }
.script-hero > div { flex: 1; min-width: 0; }
.script-hero h2 { font-size: 24px; letter-spacing: -.02em; margin: 6px 0 8px; }
.script-hero p { font-size: 15px; line-height: 1.5; margin: 0; }
.script-hero .eyebrow { color: rgba(255, 255, 255, .6); }
.script-check li.is-good svg { color: var(--green); }
.script-check li.is-bad svg { color: var(--red); }
.script-compare { align-items: start; }
.script-improved .script-text { background: var(--green-soft); }
.script-delete { margin-top: 22px; text-align: center; }
.coach-threads .card-head { margin-bottom: 10px; }
.coach-chat { display: flex; flex-direction: column; overflow: hidden; min-height: 560px; }
.coach-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.coach-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coach-head-main b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-head-main span { font-size: 12px; color: var(--muted); }
.coach-avatar { background: var(--ink); color: #fff; }
.coach-avatar svg { width: 18px; height: 18px; }
.coach-head-actions { display: flex; align-items: center; gap: 6px; }
.coach-rename { position: relative; }
.coach-rename summary { list-style: none; cursor: pointer; display: inline-flex; }
.coach-rename summary::-webkit-details-marker { display: none; }
.coach-rename-form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: flex; gap: 8px; padding: 10px; min-width: 300px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.coach-rename-form input[type="text"] { flex: 1; min-width: 0; }
.coach-messages { flex: 1; }
.coach-intro { display: grid; gap: 8px; justify-items: start; max-width: 520px; padding: 22px; border-radius: var(--r); background: var(--fill); }
.coach-intro-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.coach-intro-icon svg { width: 22px; height: 22px; }
.coach-intro b { font-size: 16px; }
.coach-intro p { font-size: 14px; color: var(--muted); margin: 0; }
.coach-intro ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.coach-intro li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.coach-intro li svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; color: var(--green); }
.coach-chat .prompt-chips { border-top: 1px solid var(--line-2); }
.coach-chat .msg-bubble.md { white-space: normal; }
@media (max-width: 1024px) {
    .coach-threads { order: 2; }
    .coach-chat { order: 1; }
    .thread-list { max-height: 260px; overflow-y: auto; }
}
@media (max-width: 760px) {
    .script-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
    .coach-chat { min-height: 0; height: calc(100vh - 230px); }
    .coach-head-main b { max-width: 180px; }
    .coach-rename-form { right: auto; left: 0; min-width: 260px; }
    .coach-chat .prompt-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .prompt-chip { white-space: nowrap; }
}
