:root {
    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --bg-subtle: #F6F8FB;
    --border-color: #E2E8F0;
    --input-border: #CBD5E1;
    --text-heading: #0F172A;
    --text-body: #1E293B;
    --text-label: #334155;
    --text-muted: #64748B;
    --text-on-primary: #FFFFFF;
    --text-on-danger: #FFFFFF;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-shadow: rgba(37, 99, 235, 0.15);
    --primary-tint: rgba(37, 99, 235, 0.10);
    --page-wash: rgba(37, 99, 235, 0.055);
    --brand-shadow: rgba(37, 99, 235, 0.18);
    --modal-scrim: rgba(15, 23, 42, 0.38);
    --accent: #0F766E;
    --accent-tint: rgba(15, 118, 110, 0.10);
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #F59E0B;
    --warning-bg: #FFEDD5;
    --warning-text: #9A3412;
    --shadow-card: 0 10px 15px rgba(15, 23, 42, 0.05), 0 4px 6px rgba(15, 23, 42, 0.03);
    --shadow-focus: 0 0 0 3px var(--primary-shadow);
    --sidebar-width: 260px;
    --navbar-height: 64px;
}

:root[data-theme="dark"] {
    --bg-page: #0B1120;
    --bg-surface: #111827;
    --bg-elevated: #1F2937;
    --bg-subtle: #111827;
    --border-color: #334155;
    --input-border: #475569;
    --text-heading: #F8FAFC;
    --text-body: #E2E8F0;
    --text-label: #CBD5E1;
    --text-muted: #94A3B8;
    --text-on-primary: #0B1120;
    --text-on-danger: #111827;
    --primary: #60A5FA;
    --primary-hover: #93C5FD;
    --primary-shadow: rgba(96, 165, 250, 0.18);
    --primary-tint: rgba(96, 165, 250, 0.14);
    --page-wash: rgba(96, 165, 250, 0.075);
    --brand-shadow: rgba(96, 165, 250, 0.22);
    --modal-scrim: rgba(2, 6, 23, 0.62);
    --accent: #5EEAD4;
    --accent-tint: rgba(94, 234, 212, 0.12);
    --success: #22C55E;
    --danger: #F87171;
    --warning: #FBBF24;
    --warning-bg: rgba(251, 191, 36, 0.14);
    --warning-text: #FDE68A;
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, var(--page-wash), transparent 240px),
        var(--bg-page);
    color: var(--text-body);
    font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 0; box-shadow: var(--shadow-focus); }
.skip-link { position:absolute; left:1rem; top:.75rem; z-index:300; transform:translateY(-180%); background:var(--text-heading); color:var(--bg-surface); border-radius:8px; padding:.55rem .85rem; font-weight:650; transition:transform .15s ease; }
.skip-link:focus { transform:translateY(0); }
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: 100vh; }
.app-sidebar { background: color-mix(in srgb, var(--bg-surface) 97%, var(--bg-subtle)); border-right: 1px solid var(--border-color); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y:auto; }
.sidebar-overlay { display:none; }
.brand { display: flex; align-items: center; gap: .7rem; padding: .35rem .35rem 1rem; color: var(--text-heading); font-weight: 700; font-size: 1.05rem; }
.brand-mark, .brand-logo { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--text-on-primary); display:grid; place-items:center; font-weight:700; font-size:.78rem; box-shadow:0 12px 24px var(--brand-shadow); flex:0 0 auto; }
.brand-logo { background:var(--bg-surface); overflow:hidden; border:1px solid var(--border-color); }
.brand-logo img { width:100%; height:100%; object-fit:contain; padding:.18rem; }
.sidebar-search { position:relative; margin:.25rem 0 1rem; }
.sidebar-search .bx { position:absolute; left:.85rem; top:50%; transform:translateY(-50%); color:var(--text-muted); }
.sidebar-search input { width:100%; min-height:40px; border:1px solid var(--border-color); background:var(--bg-surface); color:var(--text-body); border-radius:8px; padding:.58rem .75rem .58rem 2.25rem; outline:0; }
.sidebar-search input:focus { border-color:var(--primary); box-shadow:var(--shadow-focus); }
.nav-menu { display:grid; gap:.18rem; }
.nav-group { border-radius:8px; }
.nav-group[hidden], .nav-link[hidden] { display:none; }
.nav-group-toggle { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:.65rem; min-height:42px; padding:.58rem .6rem; border-radius:8px; color:var(--text-muted); font-size:.77rem; font-weight:650; text-transform:uppercase; letter-spacing:.04em; }
.nav-group-toggle::-webkit-details-marker { display:none; }
.nav-group-toggle:hover { color:var(--text-heading); background:var(--bg-elevated); }
.nav-group-label { display:flex; align-items:center; gap:.62rem; min-width:0; }
.nav-group-label span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav-group-chevron { transition:transform .15s ease; }
.nav-group[open] > .nav-group-toggle { color:var(--text-heading); }
.nav-group[open] > .nav-group-toggle .nav-group-chevron { transform:rotate(180deg); }
.nav-group-items { display:grid; gap:.18rem; margin:.18rem 0 .55rem 1.02rem; padding-left:1rem; border-left:1px solid color-mix(in srgb, var(--primary) 34%, var(--border-color)); }
.nav-link { display:flex; align-items:center; gap:.72rem; min-height:38px; padding:.54rem .65rem; border-radius: 8px; color: var(--text-muted); font-weight:500; border:1px solid transparent; }
.nav-link span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav-link .bx { color: color-mix(in srgb, var(--text-muted) 82%, var(--primary)); }
.nav-link:hover, .nav-link.active { background: var(--primary-tint); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 16%, transparent); }
.nav-link.active { font-weight:650; }
.nav-link.active .bx, .nav-link:hover .bx { color:var(--primary); }
.nav-empty { margin:.75rem .6rem; color:var(--text-muted); font-weight:500; }
.app-main { min-width: 0; }
.topbar { min-height: var(--navbar-height); display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: .55rem 1.5rem; background: color-mix(in srgb, var(--bg-surface) 88%, transparent); border-bottom:1px solid var(--border-color); position: sticky; top:0; z-index:10; backdrop-filter: blur(10px); }
.topbar strong { color:var(--text-heading); font-size:.95rem; }
.topbar-current { display:flex; align-items:center; gap:1rem; min-width:0; }
.topbar-user { display:flex; align-items:center; gap:.65rem; min-width:260px; max-width:min(520px, 48vw); padding:.28rem .65rem .28rem .35rem; border:1px solid var(--border-color); border-radius:8px; background:color-mix(in srgb, var(--bg-surface) 82%, transparent); }
.topbar-avatar { width:32px; height:32px; border-radius:8px; display:grid; place-items:center; flex:0 0 auto; overflow:hidden; background:linear-gradient(135deg, var(--primary), var(--accent)); color:var(--text-on-primary); font-size:.72rem; font-weight:700; }
.topbar-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.topbar-user-lines { display:grid; min-width:0; line-height:1.15; }
.topbar-user-lines span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-user-lines span:first-child { color:var(--text-heading); font-weight:650; font-size:.82rem; }
.topbar-user-lines span:last-child { color:var(--text-muted); font-size:.72rem; }
.topbar-actions { display:flex; align-items:center; gap:.6rem; }
.sidebar-toggle { display:none; }
.page { padding: 1.5rem; max-width: 1440px; margin: 0 auto; }
.page-header { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1.25rem; padding-bottom:1rem; border-bottom:1px solid var(--border-color); }
.page-title { margin:0; color:var(--text-heading); font-size:1.5rem; font-weight:700; }
.page-subtitle { margin:.25rem 0 0; color:var(--text-muted); }
.card { background: color-mix(in srgb, var(--bg-surface) 97%, var(--bg-subtle)); border:1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow-card); padding:1rem; }
.card:hover { border-color: color-mix(in srgb, var(--primary) 18%, var(--border-color)); }
.grid { display:grid; gap:1rem; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-card { display:flex; align-items:center; gap:.9rem; min-height:104px; }
.kpi-icon, .dashboard-action-icon { width:2.45rem; height:2.45rem; border-radius:8px; display:grid; place-items:center; background:var(--primary-tint); color:var(--primary); flex:0 0 auto; }
.kpi-icon.bx::before, .kpi-icon.bx::after, .dashboard-action-icon.bx::before, .dashboard-action-icon.bx::after { transform-origin:center; }
.kpi-value { font-size: 1.8rem; font-weight: 700; color: var(--text-heading); line-height:1.05; }
.kpi-label { color: var(--text-muted); text-transform: uppercase; font-size:.72rem; font-weight:600; }
.cell-main { display:block; color:var(--text-heading); font-weight:600; line-height:1.25; }
.cell-detail { display:block; margin-top:.16rem; color:var(--text-muted); font-size:.72rem; line-height:1.25; max-width:38rem; }
.cell-clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mass-assign-panel { margin-bottom:1.25rem; }
.mass-assign-filters { margin:.8rem 0 1rem; }
.mass-actions { display:flex; align-items:center; justify-content:space-between; gap:.85rem; margin:1rem 0 .9rem; padding-top:.95rem; border-top:1px solid var(--border-color); }
.mass-actions-left { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; }
.mass-results { border:1px solid var(--border-color); border-radius:8px; min-height:72px; padding:.75rem; background:var(--bg-subtle); }
.mass-list { display:grid; gap:.45rem; max-height:420px; overflow:auto; padding-right:.2rem; }
.mass-row { display:flex; align-items:flex-start; gap:.65rem; padding:.7rem; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-surface); cursor:pointer; }
.mass-row:hover, .mass-row:has(input:checked) { border-color:color-mix(in srgb, var(--primary) 32%, var(--border-color)); background:var(--primary-tint); }
.mass-row input { margin-top:.15rem; flex:0 0 auto; }
.help-layout { display:grid; grid-template-columns:240px minmax(0, 1fr); gap:1rem; align-items:start; }
.help-index { position:sticky; top:calc(var(--navbar-height) + 1rem); display:grid; gap:.45rem; box-shadow:none; }
.help-index strong { color:var(--text-heading); margin-bottom:.25rem; }
.help-index a { color:var(--text-muted); padding:.42rem .5rem; border-radius:7px; font-weight:600; }
.help-index a:hover { color:var(--primary); background:var(--primary-tint); }
.help-content { gap:1rem; }
.help-section { scroll-margin-top:calc(var(--navbar-height) + 1rem); }
.help-section h2 { margin:0 0 .65rem; color:var(--text-heading); font-size:1.12rem; }
.help-section h3 { margin:0 0 .35rem; color:var(--text-heading); font-size:.95rem; }
.help-section p { margin:.35rem 0 .85rem; color:var(--text-body); }
.help-steps, .help-list { display:grid; gap:.55rem; margin:.75rem 0 0; padding-left:1.25rem; }
.help-steps li, .help-list li { color:var(--text-body); }
.help-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; margin-top:.75rem; }
.help-grid article { border:1px solid var(--border-color); border-radius:8px; padding:.85rem; background:var(--bg-subtle); }
.help-grid article p { margin:0; color:var(--text-muted); }
.help-example, .help-note { margin-top:1rem; border:1px solid color-mix(in srgb, var(--primary) 24%, var(--border-color)); border-radius:8px; padding:.85rem; background:var(--primary-tint); color:var(--text-body); }
.help-example span { display:inline-flex; padding:.1rem .38rem; border-radius:999px; background:var(--bg-surface); border:1px solid var(--border-color); color:var(--primary); font-weight:700; }
.help-table { width:100%; border-collapse:collapse; margin-top:.85rem; font-size:.82rem; }
.help-table th { color:var(--text-muted); text-align:left; text-transform:uppercase; font-size:.68rem; letter-spacing:.04em; border-bottom:1px solid var(--border-color); padding:.55rem .45rem; }
.help-table td { vertical-align:top; border-bottom:1px solid var(--border-color); padding:.62rem .45rem; color:var(--text-body); }
.help-table td:first-child { color:var(--text-heading); font-weight:700; }
.toolbar { display:flex; gap:.75rem; align-items:end; justify-content:space-between; margin-bottom:1rem; flex-wrap:wrap; }
.field { display:grid; gap:.35rem; }
.label { color: var(--text-label); font-size:.85rem; font-weight:600; }
.input, .select-input { width:100%; border:1px solid var(--input-border); background:var(--bg-elevated); color:var(--text-body); border-radius:8px; padding:.58rem .72rem; outline:none; min-height:40px; }
.input:focus, .select-input:focus { border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-shadow); background: var(--bg-surface); }
.search-select.is-invalid .select-input { border-color:var(--danger); box-shadow:0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.btn { border:1px solid var(--border-color); background:transparent; color:var(--text-body); border-radius:8px; padding:.58rem .9rem; font-weight:600; cursor:pointer; display:inline-flex; gap:.4rem; align-items:center; justify-content:center; }
.btn:hover { border-color: color-mix(in srgb, var(--primary) 28%, var(--border-color)); color:var(--primary); background:var(--primary-tint); }
.btn:disabled, .input:disabled, .select-input:disabled { opacity:.62; cursor:not-allowed; }
.btn-compact { min-height:36px; padding:.45rem .75rem; }
.btn-icon { width:36px; height:36px; min-width:36px; min-height:36px; padding:0; gap:0; }
.row-actions { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; min-width:0; }
.row-actions .btn-danger { color:var(--danger); background:transparent; border-color:color-mix(in srgb, var(--danger) 34%, var(--border-color)); }
.row-actions .btn-danger:hover { background:color-mix(in srgb, var(--danger) 14%, transparent); border-color:var(--danger); color:var(--danger); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0; }
.btn-primary { background:var(--primary); border-color:var(--primary); color:var(--text-on-primary); }
.btn-primary:hover { background:var(--primary-hover); border-color:var(--primary-hover); color:var(--text-on-primary); }
.btn-danger { background:var(--danger); border-color:var(--danger); color:var(--text-on-danger); }
.bx { position:relative; width:1rem; height:1rem; display:inline-block; flex:0 0 auto; }
.bx-menu::before { content:""; position:absolute; inset:.18rem 0; background:linear-gradient(currentColor, currentColor) top/100% 2px no-repeat, linear-gradient(currentColor, currentColor) center/100% 2px no-repeat, linear-gradient(currentColor, currentColor) bottom/100% 2px no-repeat; border-radius:2px; }
.bx-moon::before { content:""; position:absolute; inset:.08rem .14rem .12rem .1rem; border-radius:999px; border:2px solid currentColor; border-right-color:transparent; transform:rotate(-20deg); }
.bx-sun::before { content:""; position:absolute; inset:.28rem; border:2px solid currentColor; border-radius:50%; }
.bx-sun::after { content:""; position:absolute; left:.46rem; top:.02rem; width:2px; height:.18rem; background:currentColor; box-shadow:0 .78rem 0 currentColor, .39rem .39rem 0 currentColor, -.39rem .39rem 0 currentColor, .28rem .12rem 0 currentColor, -.28rem .12rem 0 currentColor, .28rem .66rem 0 currentColor, -.28rem .66rem 0 currentColor; border-radius:2px; }
.bx-log-out::before { content:""; position:absolute; left:.05rem; top:.16rem; width:.55rem; height:.68rem; border:2px solid currentColor; border-right:0; border-radius:2px 0 0 2px; }
.bx-log-out::after { content:""; position:absolute; right:.05rem; top:.43rem; width:.58rem; height:2px; background:currentColor; box-shadow:.22rem -.18rem 0 -1px currentColor, .22rem .18rem 0 -1px currentColor; }
.bx-edit::before { content:""; position:absolute; left:.14rem; top:.58rem; width:.62rem; height:.18rem; border:2px solid currentColor; border-top:0; transform:skew(-18deg); }
.bx-edit::after { content:""; position:absolute; left:.48rem; top:.12rem; width:.18rem; height:.62rem; background:currentColor; transform:rotate(45deg); border-radius:2px; }
.bx-trash::before { content:""; position:absolute; left:.2rem; top:.35rem; width:.6rem; height:.55rem; border:2px solid currentColor; border-top:0; border-radius:0 0 3px 3px; }
.bx-trash::after { content:""; position:absolute; left:.14rem; top:.18rem; width:.72rem; height:2px; background:currentColor; box-shadow:.2rem -.12rem 0 -1px currentColor; }
.bx-user-check::before, .bx-group::before { content:""; position:absolute; left:.08rem; top:.1rem; width:.36rem; height:.36rem; border:2px solid currentColor; border-radius:50%; }
.bx-user-check::after { content:""; position:absolute; left:.02rem; bottom:.12rem; width:.58rem; height:.28rem; border:2px solid currentColor; border-radius:.5rem .5rem .12rem .12rem; border-bottom-width:1px; box-shadow:.62rem -.16rem 0 -2px currentColor, .78rem -.3rem 0 -2px currentColor; }
.bx-group::after { content:""; position:absolute; left:.02rem; bottom:.12rem; width:.58rem; height:.28rem; border:2px solid currentColor; border-radius:.5rem .5rem .12rem .12rem; border-bottom-width:1px; box-shadow:.55rem -.38rem 0 -1px currentColor, .66rem .02rem 0 -1px currentColor; }
.bx-shield-quarter::before { content:""; position:absolute; left:.18rem; top:.06rem; width:.64rem; height:.78rem; border:2px solid currentColor; border-radius:.45rem .45rem .55rem .55rem; clip-path:polygon(50% 0,100% 20%,90% 78%,50% 100%,10% 78%,0 20%); }
.bx-slider::before { content:""; position:absolute; left:.08rem; right:.08rem; top:.25rem; height:2px; background:currentColor; box-shadow:0 .46rem 0 currentColor; }
.bx-slider::after { content:""; position:absolute; left:.22rem; top:.16rem; width:.18rem; height:.18rem; border:2px solid currentColor; border-radius:50%; box-shadow:.42rem .46rem 0 -1px var(--bg-surface), .42rem .46rem 0 1px currentColor; }
.bx-check-circle::before { content:""; position:absolute; inset:.1rem; border:2px solid currentColor; border-radius:50%; }
.bx-check-circle::after { content:""; position:absolute; left:.34rem; top:.42rem; width:.34rem; height:.18rem; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); }
.bx-play::before, .bx-send::before { content:""; position:absolute; left:.22rem; top:.14rem; width:.62rem; height:.72rem; background:currentColor; clip-path:polygon(0 0,100% 50%,0 100%); }
.bx-send::before { transform:rotate(-12deg); }
.bx-message-check::before { content:""; position:absolute; left:.08rem; top:.14rem; width:.78rem; height:.56rem; border:2px solid currentColor; border-radius:4px; }
.bx-message-check::after { content:""; position:absolute; left:.33rem; top:.4rem; width:.26rem; height:.13rem; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); }
.bx-refresh::before { content:""; position:absolute; inset:.14rem; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; }
.bx-refresh::after { content:""; position:absolute; right:.02rem; top:.14rem; width:.28rem; height:.28rem; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:rotate(32deg); }
.bx-calculator::before { content:""; position:absolute; inset:.1rem .18rem; border:2px solid currentColor; border-radius:4px; }
.bx-calculator::after { content:""; position:absolute; left:.32rem; top:.3rem; width:.36rem; height:2px; background:currentColor; box-shadow:0 .2rem 0 currentColor, 0 .4rem 0 currentColor; }
.bx-lock::before { content:""; position:absolute; left:.22rem; bottom:.12rem; width:.56rem; height:.44rem; border:2px solid currentColor; border-radius:3px; }
.bx-lock::after { content:""; position:absolute; left:.32rem; top:.08rem; width:.36rem; height:.44rem; border:2px solid currentColor; border-bottom:0; border-radius:.4rem .4rem 0 0; }
.bx-block::before { content:""; position:absolute; inset:.12rem; border:2px solid currentColor; border-radius:50%; }
.bx-block::after { content:""; position:absolute; left:.24rem; right:.24rem; top:.47rem; height:2px; background:currentColor; transform:rotate(-35deg); }
.bx-dots-horizontal::before { content:""; position:absolute; left:.15rem; top:.42rem; width:.16rem; height:.16rem; background:currentColor; border-radius:50%; box-shadow:.28rem 0 0 currentColor, .56rem 0 0 currentColor; }
.bx-plus::before, .bx-plus::after { content:""; position:absolute; left:.18rem; right:.18rem; top:.46rem; height:2px; background:currentColor; border-radius:2px; }
.bx-plus::after { transform:rotate(90deg); }
.bx-search::before { content:""; position:absolute; left:.12rem; top:.1rem; width:.48rem; height:.48rem; border:2px solid currentColor; border-radius:50%; }
.bx-search::after { content:""; position:absolute; right:.12rem; bottom:.14rem; width:.34rem; height:2px; background:currentColor; transform:rotate(45deg); transform-origin:right center; border-radius:2px; }
.bx-chevron-left::before, .bx-chevron-right::before { content:""; position:absolute; top:.25rem; width:.44rem; height:.44rem; border-left:2px solid currentColor; border-bottom:2px solid currentColor; }
.bx-chevron-left::before { left:.35rem; transform:rotate(45deg); }
.bx-chevron-right::before { right:.35rem; transform:rotate(-135deg); }
.bx-x::before, .bx-x::after { content:""; position:absolute; left:.18rem; right:.18rem; top:.47rem; height:2px; background:currentColor; border-radius:2px; transform:rotate(45deg); }
.bx-x::after { transform:rotate(-45deg); }
.bx-save::before { content:""; position:absolute; inset:.12rem; border:2px solid currentColor; border-radius:3px; }
.bx-save::after { content:""; position:absolute; left:.3rem; right:.3rem; bottom:.18rem; height:.28rem; border:2px solid currentColor; border-bottom:0; border-radius:2px 2px 0 0; box-shadow:.04rem -.45rem 0 -1px currentColor; }
.bx-check::before { content:""; position:absolute; left:.24rem; top:.43rem; width:.42rem; height:.22rem; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); }
.bx-log-in::before { content:""; position:absolute; right:.08rem; top:.16rem; width:.54rem; height:.68rem; border:2px solid currentColor; border-left:0; border-radius:0 2px 2px 0; }
.bx-log-in::after { content:""; position:absolute; left:.08rem; top:.43rem; width:.58rem; height:2px; background:currentColor; box-shadow:.2rem -.18rem 0 -1px currentColor, .2rem .18rem 0 -1px currentColor; }
.bx-file-export::before, .bx-file-doc::before, .bx-table::before { content:""; position:absolute; inset:.08rem .18rem; border:2px solid currentColor; border-radius:3px; }
.bx-file-export::after { content:""; position:absolute; left:.34rem; top:.42rem; width:.48rem; height:2px; background:currentColor; box-shadow:.22rem -.16rem 0 -1px currentColor, .22rem .16rem 0 -1px currentColor; }
.bx-file-doc::after { content:""; position:absolute; left:.32rem; right:.32rem; top:.34rem; height:2px; background:currentColor; box-shadow:0 .18rem 0 currentColor, 0 .36rem 0 currentColor; }
.bx-table::after { content:""; position:absolute; left:.24rem; right:.24rem; top:.34rem; height:2px; background:currentColor; box-shadow:0 .18rem 0 currentColor, 0 .36rem 0 currentColor, .22rem .18rem 0 currentColor; }
.bx-chevron-down::before { content:""; position:absolute; left:.3rem; top:.34rem; width:.4rem; height:.4rem; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); }
.bx-grid::before, .bx-grid-alt::before, .bx-layout::before { content:""; position:absolute; left:.16rem; top:.16rem; width:.22rem; height:.22rem; border:2px solid currentColor; border-radius:2px; box-shadow:.44rem 0 0 -1px currentColor, 0 .44rem 0 -1px currentColor, .44rem .44rem 0 -1px currentColor; }
.bx-home::before { content:""; position:absolute; left:.16rem; top:.36rem; width:.68rem; height:.5rem; border:2px solid currentColor; border-top:0; border-radius:2px; }
.bx-home::after { content:""; position:absolute; left:.25rem; top:.14rem; width:.5rem; height:.5rem; border-left:2px solid currentColor; border-top:2px solid currentColor; transform:rotate(45deg); }
.bx-bell::before { content:""; position:absolute; left:.22rem; top:.16rem; width:.56rem; height:.56rem; border:2px solid currentColor; border-radius:.45rem .45rem .16rem .16rem; }
.bx-bell::after { content:""; position:absolute; left:.38rem; bottom:.1rem; width:.24rem; height:.12rem; border-bottom:2px solid currentColor; border-radius:0 0 .3rem .3rem; }
.bx-user::before, .bx-user-pin::before, .bx-user-plus::before, .bx-user-voice::before { content:""; position:absolute; left:.32rem; top:.12rem; width:.32rem; height:.32rem; border:2px solid currentColor; border-radius:50%; }
.bx-user::after, .bx-user-pin::after, .bx-user-plus::after, .bx-user-voice::after { content:""; position:absolute; left:.18rem; bottom:.12rem; width:.64rem; height:.3rem; border:2px solid currentColor; border-radius:.6rem .6rem .12rem .12rem; border-bottom-width:1px; }
.bx-sitemap::before, .bx-network::before { content:""; position:absolute; left:.42rem; top:.1rem; width:.16rem; height:.16rem; border:2px solid currentColor; border-radius:3px; box-shadow:-.28rem .58rem 0 -1px currentColor, .28rem .58rem 0 -1px currentColor; }
.bx-sitemap::after, .bx-network::after { content:""; position:absolute; left:.5rem; top:.34rem; width:2px; height:.28rem; background:currentColor; box-shadow:-.28rem .28rem 0 currentColor, .28rem .28rem 0 currentColor; }
.bx-eye::before { content:""; position:absolute; left:.1rem; right:.1rem; top:.28rem; height:.42rem; border:2px solid currentColor; border-radius:50%; }
.bx-eye::after { content:""; position:absolute; left:.4rem; top:.4rem; width:.18rem; height:.18rem; border:2px solid currentColor; border-radius:50%; }
.bx-clipboard::before, .bx-list-check::before { content:""; position:absolute; inset:.12rem .2rem; border:2px solid currentColor; border-radius:4px; }
.bx-clipboard::after, .bx-list-check::after { content:""; position:absolute; left:.34rem; right:.28rem; top:.34rem; height:2px; background:currentColor; box-shadow:0 .2rem 0 currentColor, 0 .4rem 0 currentColor; }
.bx-calendar::before { content:""; position:absolute; inset:.16rem .12rem .12rem; border:2px solid currentColor; border-radius:4px; }
.bx-calendar::after { content:""; position:absolute; left:.2rem; right:.2rem; top:.36rem; height:2px; background:currentColor; box-shadow:.12rem -.18rem 0 currentColor, .46rem -.18rem 0 currentColor; }
.bx-bar-chart::before, .bx-chart::before, .bx-line-chart::before, .bx-trending-up::before { content:""; position:absolute; left:.16rem; bottom:.16rem; width:.14rem; height:.36rem; background:currentColor; box-shadow:.26rem -.14rem 0 currentColor, .52rem -.3rem 0 currentColor; border-radius:2px; }
.bx-briefcase::before { content:""; position:absolute; left:.12rem; right:.12rem; top:.3rem; bottom:.14rem; border:2px solid currentColor; border-radius:4px; }
.bx-briefcase::after { content:""; position:absolute; left:.36rem; top:.14rem; width:.28rem; height:.2rem; border:2px solid currentColor; border-bottom:0; border-radius:4px 4px 0 0; }
.bx-compass::before, .bx-target-lock::before { content:""; position:absolute; inset:.12rem; border:2px solid currentColor; border-radius:50%; }
.bx-compass::after, .bx-target-lock::after { content:""; position:absolute; left:.42rem; top:.22rem; width:.16rem; height:.52rem; background:currentColor; transform:rotate(35deg); border-radius:2px; }
.bx-ruler::before { content:""; position:absolute; left:.14rem; top:.34rem; width:.72rem; height:.28rem; border:2px solid currentColor; border-radius:3px; transform:rotate(-18deg); }
.bx-message-question::before { content:""; position:absolute; left:.1rem; top:.16rem; width:.76rem; height:.56rem; border:2px solid currentColor; border-radius:4px; }
.bx-message-question::after { content:"?"; position:absolute; left:.4rem; top:.18rem; font-size:.65rem; line-height:1; font-weight:900; }
.bx-sparkles::before, .bx-diamond::before { content:""; position:absolute; left:.36rem; top:.08rem; width:.28rem; height:.28rem; border:2px solid currentColor; transform:rotate(45deg); }
.bx-sparkles::after, .bx-diamond::after { content:""; position:absolute; left:.14rem; bottom:.18rem; width:.2rem; height:.2rem; border:2px solid currentColor; transform:rotate(45deg); box-shadow:.5rem -.08rem 0 -1px currentColor; }
.bx-flag::before { content:""; position:absolute; left:.22rem; top:.12rem; width:2px; height:.76rem; background:currentColor; }
.bx-flag::after { content:""; position:absolute; left:.28rem; top:.14rem; width:.5rem; height:.36rem; border:2px solid currentColor; border-left:0; border-radius:0 3px 3px 0; }
.bx-building::before, .bx-store::before, .bx-server::before { content:""; position:absolute; left:.18rem; right:.18rem; top:.16rem; bottom:.14rem; border:2px solid currentColor; border-radius:4px; }
.bx-building::after, .bx-store::after, .bx-server::after { content:""; position:absolute; left:.32rem; top:.32rem; width:.12rem; height:.12rem; background:currentColor; box-shadow:.24rem 0 0 currentColor, 0 .22rem 0 currentColor, .24rem .22rem 0 currentColor; }
.bx-layer::before { content:""; position:absolute; left:.14rem; top:.18rem; width:.72rem; height:.34rem; border:2px solid currentColor; transform:skew(-18deg); border-radius:3px; }
.bx-layer::after { content:""; position:absolute; left:.18rem; top:.54rem; width:.64rem; height:2px; background:currentColor; box-shadow:0 .16rem 0 currentColor; }
.bx-tag::before, .bx-label::before { content:""; position:absolute; left:.14rem; top:.26rem; width:.68rem; height:.42rem; border:2px solid currentColor; border-radius:4px; transform:rotate(-18deg); }
.bx-tag::after, .bx-label::after { content:""; position:absolute; left:.3rem; top:.34rem; width:.12rem; height:.12rem; background:currentColor; border-radius:50%; }
.bx-globe::before { content:""; position:absolute; inset:.12rem; border:2px solid currentColor; border-radius:50%; }
.bx-globe::after { content:""; position:absolute; left:.2rem; right:.2rem; top:.47rem; height:2px; background:currentColor; box-shadow:.3rem -.32rem 0 -1px currentColor, .3rem .32rem 0 -1px currentColor; }
.bx-plug::before { content:""; position:absolute; left:.34rem; top:.3rem; width:.32rem; height:.42rem; border:2px solid currentColor; border-top:0; border-radius:0 0 .25rem .25rem; }
.bx-plug::after { content:""; position:absolute; left:.36rem; top:.08rem; width:2px; height:.22rem; background:currentColor; box-shadow:.26rem 0 0 currentColor, .12rem .62rem 0 currentColor; }
.bx-file-search::before { content:""; position:absolute; inset:.08rem .22rem; border:2px solid currentColor; border-radius:3px; }
.bx-file-search::after { content:""; position:absolute; right:.08rem; bottom:.1rem; width:.28rem; height:.28rem; border:2px solid currentColor; border-radius:50%; box-shadow:.2rem .2rem 0 -1px currentColor; }
.bx-palette::before { content:""; position:absolute; inset:.12rem; border:2px solid currentColor; border-radius:50% 45% 55% 45%; }
.bx-palette::after { content:""; position:absolute; left:.28rem; top:.32rem; width:.12rem; height:.12rem; background:currentColor; border-radius:50%; box-shadow:.24rem -.08rem 0 currentColor, .42rem .12rem 0 currentColor, .18rem .32rem 0 currentColor; }
.bx-circle::before { content:""; position:absolute; inset:.25rem; border:2px solid currentColor; border-radius:50%; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.8125rem; }
th { text-align:left; color:var(--text-muted); text-transform:uppercase; font-size:.6875rem; letter-spacing:.04em; border-bottom:2px solid var(--border-color); padding:.65rem .75rem; white-space:nowrap; }
td { border-bottom:1px solid var(--border-color); padding:.65rem .75rem; vertical-align:top; }
tr:hover td { background:var(--primary-tint); }
.badge { border-radius:999px; padding:.2rem .5rem; background:var(--primary-tint); color:var(--primary); font-size:.7rem; font-weight:600; }
.badge-warning { background:var(--warning-bg); color:var(--warning-text); }
.modal-backdrop { position:fixed; inset:0; background:var(--modal-scrim); display:none; align-items:center; justify-content:center; padding:1rem; z-index:100; }
.modal-backdrop.is-open { display:flex; }
.modal { width:min(720px, 100%); max-height:90vh; overflow:auto; background:var(--bg-surface); border-radius:8px; border:1px solid var(--border-color); box-shadow:var(--shadow-card); }
.modal-confirm { max-width:420px; }
.modal-body-single { grid-template-columns:1fr; }
.modal-text-reset { margin:0; }
.modal-head, .modal-foot { padding:1rem; border-bottom:1px solid var(--border-color); display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.modal-foot { border-top:1px solid var(--border-color); border-bottom:0; justify-content:flex-end; }
.modal-body { padding:1rem; display:grid; gap:.85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toast { position:fixed; right:1rem; bottom:1rem; background:var(--text-heading); color:var(--bg-surface); padding:.75rem 1rem; border-radius:8px; display:none; z-index:200; }
.toast.is-open { display:block; }
.search-select { position:relative; }
.search-select.is-soft-disabled { opacity:.72; }
.search-options { position:absolute; inset:auto 0 auto 0; top:calc(100% + 4px); background:var(--bg-surface); border:1px solid var(--border-color); border-radius:8px; box-shadow:var(--shadow-card); max-height:230px; overflow:auto; display:none; z-index:20; }
.search-options.is-open { display:block; }
.search-option { padding:.55rem .7rem; cursor:pointer; border-bottom:1px solid var(--border-color); }
.search-option:last-child { border-bottom:0; }
.search-option:hover, .search-option.is-active, .search-option[aria-selected="true"] { background:var(--primary-tint); color:var(--primary); }
.search-option.is-active { outline:1px solid color-mix(in srgb, var(--primary) 24%, transparent); outline-offset:-1px; }
.empty { color:var(--text-muted); padding:1rem; text-align:center; }
.empty strong { display:block; color:var(--text-heading); margin-bottom:.25rem; }
.toolbar-compact { margin-bottom:0; }
.section-spaced { margin-bottom:1rem; }
.field-inline { display:flex; align-items:center; gap:.65rem; }
.split-row { display:flex; justify-content:space-between; gap:1rem; }
.dashboard-metrics-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:1rem; }
.dashboard-actions-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.card-link { text-decoration:none; display:grid; gap:.7rem; min-height:128px; align-content:start; }
.dashboard-action-head { display:flex; align-items:center; gap:.75rem; min-width:0; }
.title-compact { font-size:1rem; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:1rem; background:
    linear-gradient(135deg, var(--page-wash), transparent 48%),
    var(--bg-page); }
.login-card { width:min(420px,100%); padding:1.35rem; }
.brand-login { padding:0 0 1rem; }
.login-title { font-size:1.35rem; }
.btn-microsoft { width:100%; margin:.45rem 0 1rem; background:var(--surface); border-color:var(--border-color-strong); color:var(--text-main); }
.btn-microsoft:hover { background:var(--surface-muted); color:var(--text-main); border-color:var(--primary); }
.btn-microsoft i { font-size:1.08rem; color:#2563eb; }
.login-separator { display:flex; align-items:center; gap:.65rem; margin:.1rem 0 .95rem; color:var(--text-muted); font-size:.78rem; }
.login-separator::before,
.login-separator::after { content:""; flex:1; height:1px; background:var(--border-color); }
.form-spaced { margin-top:1rem; }
.field-error { color:var(--danger); font-size:.75rem; }
.input-filter-sm { max-width:240px; }
.grid-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid-plan { grid-template-columns:2fr 2fr 1fr; }
.grid-filters { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); margin-bottom:1rem; }
.chip-list { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.5rem; }
.actions-end { display:flex; gap:.5rem; justify-content:flex-end; }
.actions-wrap { display:flex; gap:.5rem; flex-wrap:wrap; }
.pagination-actions { display:flex; gap:.5rem; }
.warning-card { box-shadow:none; border-color:var(--warning); background:var(--warning-bg); color:var(--warning-text); }
.card-flat { box-shadow:none; }
.card-elevated { box-shadow:none; background:var(--bg-elevated); }
.option-card { padding:.7rem; box-shadow:none; cursor:pointer; }
.section-top { margin-top:1rem; }
.toolbar-flush { margin-bottom:0; }
.heading-sm { font-size:1.05rem; }
.table-top { margin-top:1rem; }
.question-meta { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.question-text { margin:.35rem 0 0; }
.question-options { grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:.85rem; }
.question-comment { margin-top:.85rem; }
.eval-flow { gap:1rem; }
.eval-status-row { display:grid; grid-template-columns:minmax(180px, .8fr) minmax(220px, 1fr) auto; gap:1rem; align-items:center; }
.eval-status-row .page-subtitle { display:block; margin-top:.2rem; }
.eval-status-badges { display:flex; justify-content:flex-end; gap:.5rem; flex-wrap:wrap; }
.eval-progress-wrap { display:grid; grid-template-columns:minmax(0, 1fr) 44px; gap:.75rem; align-items:center; }
.eval-progress-track { height:12px; border-radius:999px; background:var(--bg-elevated); border:1px solid var(--border-color); overflow:hidden; }
.eval-progress-track span { display:block; width:0; height:100%; border-radius:999px; background:var(--primary); transition:width .18s ease; }
.eval-progress-wrap strong { color:var(--primary); font-size:.8rem; text-align:right; }
.eval-intro-card, .eval-question-step { border:1px solid var(--border-color); border-radius:8px; background:var(--bg-surface); box-shadow:var(--shadow-card); padding:1.35rem; }
.eval-intro-card h2 { margin:0 0 1rem; color:var(--text-heading); font-size:1.1rem; }
.eval-intro-list { display:grid; gap:.85rem; margin:0; padding:0; list-style:none; }
.eval-intro-list li { position:relative; padding-left:2rem; color:var(--text-body); }
.eval-intro-list li::before { content:""; position:absolute; left:.2rem; top:.28rem; width:.72rem; height:.72rem; border-radius:50%; background:var(--primary); }
.eval-intro-rich { color:var(--text-body); line-height:1.65; }
.eval-intro-rich p { margin:0 0 .75rem; }
.eval-intro-rich ul, .eval-intro-rich ol { display:grid; gap:.65rem; margin:0; padding-left:1.25rem; }
.eval-intro-rich li { padding-left:.25rem; }
.eval-intro-rich li::marker { color:var(--primary); font-size:1.1em; }
.eval-tab-row { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:.55rem; }
.eval-tab { display:flex; justify-content:space-between; align-items:center; gap:.5rem; min-height:46px; padding:.65rem .8rem; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-surface); color:var(--text-body); cursor:pointer; font-weight:700; text-align:left; }
.eval-tab span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.eval-tab small { color:var(--text-muted); font-weight:700; }
.eval-tab.is-active { background:var(--primary-tint); color:var(--primary); border-color:var(--primary); }
.eval-question-path { display:flex; align-items:center; gap:.45rem; color:var(--text-muted); font-size:.82rem; }
.eval-question-path strong { color:var(--primary); }
.eval-question-count { display:inline-flex; margin:.75rem 0 .6rem; border-radius:7px; background:var(--text-heading); color:var(--bg-surface); padding:.4rem .7rem; font-size:.72rem; font-weight:800; }
.eval-question-card { position:relative; padding:1.55rem 2rem; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-surface); box-shadow:var(--shadow-card); }
.eval-question-card .badge { position:absolute; top:1rem; right:1rem; }
.eval-question-card p { margin:0; color:var(--text-heading); font-size:1.05rem; line-height:1.45; padding-right:7rem; }
.eval-scale-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:.75rem; margin-top:.85rem; }
.eval-option-card { position:relative; display:grid; justify-items:center; gap:.35rem; min-height:130px; padding:1rem .85rem; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-surface); box-shadow:var(--shadow-card); color:var(--text-body); cursor:pointer; text-align:center; }
.eval-option-card input { position:absolute; opacity:0; pointer-events:none; }
.eval-option-dot { width:22px; height:22px; border-radius:50%; border:2px solid var(--text-muted); display:grid; place-items:center; }
.eval-option-card strong { color:var(--text-muted); font-size:1.7rem; line-height:1; }
.eval-option-card span:not(.eval-option-dot) { color:var(--text-heading); font-weight:800; }
.eval-option-card small { color:var(--text-muted); font-size:.72rem; line-height:1.25; }
.eval-option-card:has(input:checked) { border-color:var(--primary); background:var(--primary-tint); }
.eval-option-card:has(input:checked) .eval-option-dot { border-color:var(--primary); box-shadow:inset 0 0 0 5px var(--bg-surface); background:var(--primary); }
.eval-option-card:has(input:checked) strong, .eval-option-card:has(input:checked) span:not(.eval-option-dot) { color:var(--primary); }
.eval-comment-field { margin-top:.85rem; }
.eval-navigation { display:flex; justify-content:space-between; align-items:center; gap:1rem; color:var(--text-muted); font-size:.78rem; }
.eval-final-card { display:grid; gap:1rem; }
.eval-final-card .btn { justify-self:end; }
.form-status-row { display:flex; justify-content:space-between; gap:1rem; align-items:center; flex-wrap:wrap; }
.submit-row { display:flex; justify-content:flex-end; gap:.75rem; }
.search-field-wide { min-width:min(360px,100%); }
.field-wide { grid-column:1/-1; }
.assignment-option { box-shadow:none; display:flex; align-items:center; gap:.75rem; }
.matrix-label { display:flex; align-items:center; gap:.5rem; min-width:0; }
.matrix-swatch { width:.8rem; height:.8rem; border-radius:3px; border:1px solid var(--border-color); background:var(--bg-elevated); flex:0 0 auto; }
.appearance-layout { align-items:start; }
.form-section-title { display:grid; gap:.25rem; margin-bottom:1rem; }
.color-input-row { display:grid; grid-template-columns:52px minmax(0, 1fr); gap:.65rem; }
.input-color { padding:.18rem; min-height:40px; cursor:pointer; }
.form-error-list { margin:.5rem 0 0; padding-left:1.2rem; }
.rich-field { gap:.45rem; }
.rich-toolbar { display:flex; gap:.35rem; flex-wrap:wrap; padding:.45rem; border:1px solid var(--border-color); border-bottom:0; border-radius:8px 8px 0 0; background:var(--bg-elevated); }
.rich-toolbar .btn-icon { width:34px; height:34px; min-height:34px; }
.rich-select { width:auto; min-height:34px; padding:.35rem .6rem; font-size:.78rem; }
.rich-command { color:var(--text-heading); font-size:.92rem; font-weight:800; line-height:1; }
.rich-command span, .rich-command strong, .rich-command em, .rich-command u { display:block; min-width:1rem; text-align:center; }
.rich-editor { min-height:160px; border-radius:0 0 8px 8px; overflow:auto; }
.rich-editor:focus { outline:0; box-shadow:var(--shadow-focus); }
.rich-editor p { margin:.25rem 0 .65rem; }
.rich-editor ul, .rich-editor ol { margin:.35rem 0 .65rem; padding-left:1.35rem; }
.appearance-preview { display:grid; gap:1rem; align-content:start; padding:1rem; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-elevated); }
.appearance-preview-brand { display:flex; align-items:center; gap:.7rem; color:var(--text-heading); }
.appearance-preview-brand img { width:40px; height:40px; object-fit:contain; border-radius:8px; background:var(--bg-surface); border:1px solid var(--border-color); padding:.2rem; }
.print-actions { display:flex; justify-content:flex-end; gap:.6rem; margin-bottom:1rem; }
.print-report {
    width:min(820px, 100%);
    margin:0 auto;
    background:#fff;
    color:#071023;
    border:1px solid #cdd5df;
    box-shadow:0 18px 50px rgba(9, 18, 35, .18);
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    line-height:1.35;
}
.print-report:empty { min-height:360px; }
.print-sample-headbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    min-height:56px;
    padding:0 54px;
    background:#17172b;
    color:#fff;
    border-left:8px solid #ff6b1a;
}
.print-sample-headbar strong { font-size:13px; letter-spacing:.04em; }
.print-sample-headbar span { color:#dde5f4; font-size:10px; }
.print-sample-body { padding:54px 64px 0; }
.print-sample-head { padding-bottom:18px; border-bottom:1px solid #cfd7e6; }
.print-sample-head h1 { margin:0 0 6px; color:#071023; font-size:26px; line-height:1.08; font-weight:800; }
.print-sample-head p { margin:0 0 9px; color:#59617c; font-size:12px; }
.print-score-grid {
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    margin:12px 10px 8px;
    border:1px solid #ff8a45;
}
.print-score-grid div {
    min-height:78px;
    padding:10px 8px 8px;
    text-align:center;
    background:#fff0e8;
    border-right:1px solid #ffcab0;
}
.print-score-grid div:nth-child(3) { background:#eaf7ef; }
.print-score-grid div:last-child { border-right:0; }
.print-score-grid span {
    display:block;
    margin-bottom:3px;
    color:#5f6683;
    font-size:10px;
}
.print-score-grid strong {
    display:block;
    color:#071023;
    font-size:27px;
    line-height:1;
    font-weight:800;
}
.print-score-grid small {
    display:block;
    margin-top:1px;
    color:#5f6683;
    font-size:10px;
    font-weight:700;
}
.print-score-grid .official {
    margin:-1px;
    min-height:80px;
    background:#17172b;
    border:2px solid #ff6b1a;
}
.print-score-grid .official span { color:#9aa3bf; text-transform:uppercase; }
.print-score-grid .official strong { color:#ff6b1a; }
.print-score-grid .official small { color:#dde5f4; }
.print-formula {
    margin:10px 0 20px;
    text-align:center;
    color:#59617c;
    font-size:10px;
}
.print-gap-row {
    display:grid;
    grid-template-columns:1.1fr repeat(3, minmax(0, 1fr));
    margin:0 0 24px;
    border:1px solid #d5dae7;
    color:#4c5572;
    font-size:10px;
    text-align:center;
}
.print-gap-row div { padding:13px 10px; border-right:1px solid #d5dae7; background:#f5f6fa; }
.print-gap-row div:last-child { border-right:0; }
.print-gap-row div:first-child { text-align:left; color:#071023; }
.gap-positive { color:#009443 !important; font-weight:800; }
.gap-negative { color:#d93025 !important; font-weight:800; }
.gap-neutral { color:#59617c !important; font-weight:800; }
.print-section { margin-top:22px; padding-top:20px; border-top:1px solid #d5dae7; }
.print-section h2, .print-comments-body h2 { margin:0 0 16px; color:#071023; font-size:15px; line-height:1.2; font-weight:800; }
.print-table { width:100%; border-collapse:collapse; font-size:10px; table-layout:fixed; }
.print-table th {
    padding:10px 6px 8px;
    background:#17172b;
    color:#fff;
    border-bottom:3px solid #ff6b1a;
    font-size:9px;
    font-weight:800;
    line-height:1.12;
}
.print-table th:first-child { width:auto; }
.print-table th:not(:first-child), .print-table td:not(:first-child) { width:74px; text-align:center; }
.print-table td {
    padding:8px 8px;
    color:#071023;
    border-bottom:1px solid #d9deea;
    vertical-align:top;
    font-weight:600;
}
.print-table tbody tr:not(.print-block-row):not(.print-value-row):nth-child(even) td { background:#f6f7fb; }
.print-table td:first-child { text-align:left; font-weight:700; }
.print-block-row td {
    background:#242447 !important;
    color:#fff;
    border-bottom:2px solid #ff6b1a;
    font-weight:800;
}
.print-value-row td {
    background:#ececf8 !important;
    color:#071023;
    font-weight:800;
}
.score-good { color:#00843d !important; font-weight:800 !important; }
.score-mid { color:#ff6b1a !important; font-weight:800 !important; }
.score-low { color:#d93025 !important; font-weight:800 !important; }
.print-comments-page { margin-top:58px; page-break-before:always; }
.print-comments-body { padding-top:60px; padding-bottom:34px; }
.print-comment-divider { height:1px; background:#d5dae7; margin:-4px 0 18px; }
.print-manager-comment, .print-peer-comment { margin-bottom:18px; border:1px solid #d5dae7; }
.print-manager-comment header, .print-peer-comment header {
    display:flex;
    justify-content:space-between;
    gap:1rem;
    padding:10px 14px;
    background:#17172b;
    color:#fff;
    font-size:10px;
    font-weight:800;
}
.print-manager-comment header span { color:#dde5f4; font-weight:500; }
.print-manager-comment p, .print-peer-comment p {
    margin:0;
    padding:14px;
    color:#071023;
    font-size:11px;
    font-weight:600;
    line-height:1.55;
}
.print-manager-comment p { background:#fff0e8; border-top:1px solid #ffcab0; }
.print-peer-comment header { background:#464665; }
.print-peer-comment p { background:#f0f1f6; }
.print-comment-intro {
    margin:-8px 0 20px;
    color:#59617c;
    font-size:10px;
    line-height:1.35;
}
.print-footer-note {
    margin:36px auto 0;
    padding-top:12px;
    max-width:620px;
    border-top:1px solid #d5dae7;
    color:#6d748d;
    font-size:9px;
    line-height:1.35;
    text-align:center;
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar { position:fixed; inset:0 auto 0 0; width:min(var(--sidebar-width), calc(100vw - 3.5rem)); height:100vh; z-index:80; transform:translateX(-100%); transition:transform .18s ease; box-shadow:var(--shadow-card); }
    .app-sidebar.is-open { transform:translateX(0); }
    .sidebar-overlay.is-active { display:block; position:fixed; inset:0; background:var(--modal-scrim); z-index:70; }
    .sidebar-toggle { display:inline-flex; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-three, .grid-plan, .grid-filters, .question-options, .eval-status-row, .eval-tab-row, .eval-scale-grid { grid-template-columns: 1fr; }
    .eval-status-badges, .eval-navigation { justify-content:stretch; }
    .eval-navigation { display:grid; }
    .eval-navigation .btn { width:100%; }
    .eval-question-card p { padding-right:0; }
    .eval-question-card .badge { position:static; margin-bottom:.75rem; }
    .topbar { flex-wrap:wrap; }
    .topbar-current { flex:1 1 auto; justify-content:space-between; }
    .topbar-user { min-width:220px; max-width:100%; }
    .help-layout { grid-template-columns:1fr; }
    .help-index { position:static; }
}

@media (max-width: 560px) {
    .topbar, .page { padding-left:1rem; padding-right:1rem; }
    .page-header, .toolbar { display:grid; }
    .mass-actions { display:grid; gap:.65rem; }
    .mass-actions-left { display:grid; gap:.55rem; }
    .kpi-grid, .modal-body { grid-template-columns: 1fr; }
    .btn { width:100%; }
    .topbar { height:auto; min-height:var(--navbar-height); align-items:flex-start; gap:.75rem; padding-top:.75rem; padding-bottom:.75rem; }
    .topbar-current { display:grid; width:100%; gap:.55rem; }
    .topbar-user { width:100%; }
    .topbar-actions { width:100%; flex-wrap:wrap; justify-content:flex-end; }
    .topbar .btn, .modal-head .btn, .table-wrap .btn, .pagination-actions .btn, .actions-wrap .btn, .actions-end .btn { width:auto; }
    .topbar form { margin:0; }
    .eval-intro-card, .eval-question-step { padding:1rem; }
    .eval-question-card { padding:1rem; }
    .eval-option-card { min-height:112px; }
    .eval-final-card .btn { justify-self:stretch; width:100%; }
    .help-grid { grid-template-columns:1fr; }
    .help-table { font-size:.78rem; }
}

@media print {
    @page { size:A4; margin:0; }
    html, body { background:#fff; color:#071023; font-size:11px; }
    .app-sidebar, .topbar, .print-actions, .sidebar-overlay, .toast, .modal-backdrop, #resultadoPrintEstado { display:none !important; }
    .app-shell { display:block; min-height:auto; }
    .page { max-width:none; padding:0; }
    .print-report { width:100%; border:0; box-shadow:none; }
    .print-sample-headbar { min-height:49px; padding-left:52px; padding-right:52px; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
    .print-sample-body { padding:48px 56px 0; }
    .print-score-grid, .print-gap-row, .print-manager-comment, .print-peer-comment, .print-sample-head { break-inside:avoid; }
    .print-section { break-inside:auto; }
    .print-table tr { break-inside:avoid; }
    .print-table th, .print-block-row td, .print-value-row td, .print-score-grid div, .print-gap-row div, .print-manager-comment header, .print-peer-comment header, .print-manager-comment p, .print-peer-comment p { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
    .print-comments-page { margin-top:0; page-break-before:always; }
    a { text-decoration:none; }
}
