:root{color-scheme:light;color:var(--ink);background:var(--canvas);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #18212f;--heading: #151d2a;--text-strong: #303847;--text: #444d5b;--muted: #6b7484;--faint: #98a1af;--placeholder: #a0a7b2;--line: #e5e8ed;--line-subtle: #edf0f3;--control-border: #dfe3e9;--control-border-hover: #cfd4dc;--surface: #ffffff;--canvas: #f5f6f8;--surface-subtle: #fafbfc;--surface-muted: #f8f9fb;--surface-hover: #f0f1f4;--surface-inset: #eceef2;--sidebar-surface: rgba(251, 251, 252, .96);--mobile-header-surface: rgba(250, 251, 252, .9);--floating-surface: rgba(255, 255, 255, .94);--toast-surface: rgba(255, 255, 255, .97);--overlay: rgba(18, 24, 35, .36);--drawer-edge: rgba(255, 255, 255, .6);--on-action: #ffffff;--brand: #5c55e7;--brand-action: #5c55e7;--brand-dark: #4942cc;--brand-soft: #efefff;--brand-selected: #eeedff;--brand-selected-text: #4841c8;--brand-border: #9675e7;--focus-ring: rgba(92, 85, 231, .35);--focus-shadow: rgba(92, 85, 231, .1);--brand-shadow: rgba(92, 85, 231, .2);--green: #16855b;--green-action: #16855b;--green-soft: #e9f7f0;--green-surface: #f3fbf7;--green-border: #a9dfc8;--green-muted: #65917e;--red: #cc4457;--red-action: #cc4457;--red-action-hover: #b83b4d;--red-soft: #fff0f2;--red-surface: #fff8f9;--red-border: #f1c9cf;--red-muted: #a85461;--red-focus: rgba(204, 68, 87, .12);--orange: #c16d1b;--orange-soft: #fff4e8;--blue: #3378bf;--blue-soft: #edf6ff;--metric-blue: #4b70c6;--metric-blue-soft: #eef3ff;--neutral-soft: #f0f2f5;--progress-track: #e8ebef;--switch-track: #cbd1d9;--live-dot: #2aae78;--live-ring: #e3f8ef;--code-surface: #171b25;--code-text: #d8ddeb;--code-muted: #8f98aa;--code-action: #aeb6c5;--code-placeholder: #8f98aa;--code-line: rgba(255, 255, 255, .08);--code-caret: #b0abff;--select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7484' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--ease-out: cubic-bezier(.23, 1, .32, 1);--shadow-sm: 0 1px 2px rgba(19, 28, 43, .04), 0 4px 14px rgba(19, 28, 43, .035);--shadow-lg: 0 24px 70px rgba(17, 24, 39, .16), 0 5px 18px rgba(17, 24, 39, .08);--shadow-toast: 0 12px 35px rgba(25, 32, 45, .16)}:root[data-theme=dark]{color-scheme:dark;--ink: #e8ecf4;--heading: #f5f6fb;--text-strong: #e0e5ef;--text: #c3cbd9;--muted: #a4aec0;--faint: #919db2;--placeholder: #8592a8;--line: #323c4e;--line-subtle: #2a3445;--control-border: #435068;--control-border-hover: #64748e;--surface: #1a2230;--canvas: #11151d;--surface-subtle: #1e2838;--surface-muted: #222d3f;--surface-hover: #2a3549;--surface-inset: #2c374c;--sidebar-surface: rgba(21, 29, 42, .97);--mobile-header-surface: rgba(21, 29, 42, .94);--floating-surface: rgba(26, 34, 48, .96);--toast-surface: rgba(35, 45, 63, .98);--overlay: rgba(3, 7, 15, .65);--drawer-edge: #3a4559;--brand: #b4aeff;--brand-action: #675ee5;--brand-dark: #5b51d3;--brand-soft: #302d51;--brand-selected: #353057;--brand-selected-text: #c6c1ff;--brand-border: #8f83e8;--focus-ring: #a99dff;--focus-shadow: rgba(169, 157, 255, .2);--brand-shadow: rgba(0, 0, 0, .2);--green: #6ed8aa;--green-action: #16855b;--green-soft: #183c32;--green-surface: #1a302b;--green-border: #3b7963;--green-muted: #9ec9b8;--red: #ff95a4;--red-action: #c34459;--red-action-hover: #b43a50;--red-soft: #422832;--red-surface: #34252e;--red-border: #824b5c;--red-muted: #e8a7b3;--red-focus: rgba(255, 149, 164, .18);--orange: #f3b774;--orange-soft: #403324;--blue: #8cc6ff;--blue-soft: #24394f;--metric-blue: #a0bcff;--metric-blue-soft: #293751;--neutral-soft: #2c374a;--progress-track: #354155;--switch-track: #52617a;--live-dot: #6ed8aa;--live-ring: #193f33;--code-surface: #111823;--code-text: #dce3f1;--code-muted: #9caac0;--code-action: #c1cbdc;--code-placeholder: #93a1b7;--code-line: #2b374a;--select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a4aec0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--shadow-sm: 0 1px 2px rgba(0, 0, 0, .14), 0 4px 14px rgba(0, 0, 0, .08);--shadow-lg: 0 24px 70px rgba(0, 0, 0, .45), 0 5px 18px rgba(0, 0, 0, .25);--shadow-toast: 0 12px 35px rgba(0, 0, 0, .35)}*{box-sizing:border-box}html{min-width:320px;background:var(--canvas)}body{margin:0;min-width:320px;min-height:100vh;background:var(--canvas);color:var(--ink)}body.no-scroll{overflow:hidden}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button,input,textarea,select{color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}code{font-family:SFMono-Regular,Consolas,monospace;font-size:.82em}.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}.muted{color:var(--muted)}.boot-screen{display:grid;min-height:100vh;place-items:center;padding:24px}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:0 16px;border:1px solid transparent;border-radius:10px;font-weight:670;font-size:14px;cursor:pointer;transition:transform .14s var(--ease-out),background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.button:active:not(:disabled){transform:scale(.97)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.button:disabled{cursor:not-allowed;opacity:.48}.button--primary{color:var(--on-action);background:var(--brand-action);box-shadow:0 4px 12px var(--brand-shadow)}.button--primary:hover:not(:disabled){background:var(--brand-dark)}.button--secondary{color:var(--text-strong);background:var(--surface);border-color:var(--control-border);box-shadow:0 1px 2px #131c2b08}.button--secondary:hover:not(:disabled){background:var(--surface-muted);border-color:var(--control-border-hover)}.button--danger{color:var(--on-action);background:var(--red-action)}.button--danger:hover:not(:disabled){background:var(--red-action-hover)}.button--ghost{min-height:36px;background:transparent;color:var(--muted);padding:0 9px}.button--ghost:hover:not(:disabled){background:var(--surface-hover);color:var(--ink)}.button--sm{min-height:34px;border-radius:8px;padding:0 11px;font-size:13px}.icon-button{display:inline-grid;width:36px;height:36px;flex:0 0 auto;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface);cursor:pointer;transition:transform .14s var(--ease-out),background-color .16s ease,border-color .16s ease}.icon-button:hover{background:var(--surface-muted);border-color:var(--control-border-hover)}.icon-button:active{transform:scale(.95)}.icon-button--ghost{width:28px;height:28px;border:0;background:transparent}.spinner{display:inline-flex;align-items:center;justify-content:center}.spinner svg{width:17px;height:17px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.field{display:flex;min-width:0;flex-direction:column;gap:7px;color:var(--text);font-size:13px}.field__label{font-weight:650}.field__hint{color:var(--faint);font-size:12px}.field__error,.standalone-error{color:var(--red);font-size:12px}.standalone-error{display:block;margin-top:7px}.input,.select,.textarea{width:100%;min-height:42px;border:1px solid var(--control-border);border-radius:9px;background:var(--surface);color:var(--ink);padding:0 12px;transition:border-color .16s ease,box-shadow .16s ease}.textarea{display:block;min-height:88px;resize:vertical;padding:11px 12px;line-height:1.5}.input:hover,.select:hover,.textarea:hover{border-color:var(--control-border-hover)}.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--focus-shadow)}.input[aria-invalid=true]{border-color:var(--red);box-shadow:0 0 0 3px var(--red-focus)}.input::placeholder,.textarea::placeholder,.search-input input::placeholder{color:var(--placeholder);opacity:1}.select{appearance:none;padding-right:34px;background-image:var(--select-arrow);background-position:right 11px center;background-repeat:no-repeat}.theme-control{position:relative;display:block;width:100%}.theme-control>svg{position:absolute;z-index:1;top:50%;left:11px;width:16px;height:16px;color:var(--muted);transform:translateY(-50%);pointer-events:none}.theme-select{display:block;width:100%;min-height:38px;appearance:none;border:1px solid var(--control-border);border-radius:9px;background-color:var(--surface);background-image:var(--select-arrow);background-position:right 11px center;background-repeat:no-repeat;color:var(--text-strong);padding:0 34px 0 37px;font-size:12px;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}.theme-select:hover{border-color:var(--control-border-hover);background-color:var(--surface-muted)}.theme-select option{color:var(--ink);background:var(--surface)}.sidebar__theme{margin:14px 4px 0}.login-theme{position:absolute;top:24px;right:24px;width:min(220px,calc(100% - 44px))}.search-input{display:flex;height:42px;min-width:260px;flex:1;align-items:center;gap:8px;border:1px solid var(--control-border);border-radius:9px;background:var(--surface);padding:0 11px;transition:border-color .16s ease,box-shadow .16s ease}.search-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--focus-shadow)}.search-input>svg{color:var(--faint);flex:0 0 auto}.search-input input{width:100%;border:0;outline:0;background:transparent}.search-input button{display:grid;width:24px;height:24px;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;display:flex;width:246px;flex-direction:column;border-right:1px solid var(--line);background:var(--sidebar-surface);padding:25px 15px 16px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:10px;padding:0 7px 28px}.brand__mark{position:relative;display:grid;width:35px;height:35px;flex:0 0 auto;place-items:center;overflow:hidden;border-radius:11px;color:var(--on-action);background:linear-gradient(145deg,#716bf2,#4a42ca);box-shadow:inset 0 1px #ffffff4d,0 5px 12px #4c44ce38}.brand__mark:after{content:"";position:absolute;width:24px;height:24px;border:1px solid rgba(255,255,255,.15);border-radius:50%;transform:translate(12px,-12px)}.brand__mark span{font-weight:800;font-size:17px}.brand>div:nth-child(2){display:flex;flex-direction:column}.brand strong{font-size:16px;letter-spacing:-.02em}.brand span{color:var(--muted);font-size:11px}.brand .brand__mark span{color:var(--on-action)}.sidebar__close{display:none;margin-left:auto}.sidebar__nav{display:flex;flex:1;flex-direction:column;gap:4px}.nav-section-label{padding:0 11px 9px;color:var(--faint);font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.nav-item{display:flex;height:43px;align-items:center;gap:11px;border-radius:9px;padding:0 11px;color:var(--muted);font-size:14px;font-weight:570;transition:background-color .16s ease,color .16s ease}.nav-item:hover{color:var(--text-strong);background:var(--surface-hover)}.nav-item.is-active{color:var(--brand-selected-text);background:var(--brand-selected);font-weight:680}.nav-item svg{flex:0 0 auto}.nav-item__arrow{margin-left:auto;opacity:0;transform:translate(-3px);transition:opacity .16s ease,transform .16s var(--ease-out)}.nav-item.is-active .nav-item__arrow{opacity:.65;transform:translate(0)}.sidebar__status{display:flex;align-items:center;gap:9px;margin:10px 4px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:10px;box-shadow:var(--shadow-sm)}.sidebar__status>svg{color:var(--brand)}.sidebar__status>div{display:flex;min-width:0;flex:1;flex-direction:column}.sidebar__status strong{font-size:11px}.sidebar__status span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.sidebar__status i,.live-label i{width:7px;height:7px;border-radius:50%;background:var(--live-dot);box-shadow:0 0 0 3px var(--live-ring)}.sidebar__account{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:15px 3px 0}.avatar{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:10px;background:var(--surface-inset);color:var(--muted)}.account-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.account-copy strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.account-copy span{display:flex;align-items:center;gap:3px;color:var(--muted);font-size:10px}.logout-button{padding:0 7px}.app-main{width:calc(100% - 246px);min-width:0;margin-left:246px}.content{width:min(100%,1480px);margin:0 auto;padding:42px 42px 70px}.mobile-header,.sidebar-scrim{display:none}.page-stack{display:flex;flex-direction:column;gap:24px}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:3px}.page-header>div:first-child{min-width:0}.eyebrow{display:block;margin-bottom:7px;color:var(--brand);font-size:11px;font-weight:770;letter-spacing:.09em;text-transform:uppercase}.page-header h1{color:var(--heading);font-size:clamp(27px,3vw,34px);font-weight:730;letter-spacing:-.035em;line-height:1.12}.page-header p{margin-top:8px;color:var(--muted);font-size:14px;line-height:1.55}.page-header__actions{display:flex;flex:0 0 auto;align-items:center;gap:10px}.panel,.table-panel,.filter-bar{border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:var(--shadow-sm)}.filter-bar{display:flex;min-height:62px;align-items:center;gap:10px;padding:9px}.filter-bar .select{width:auto;min-width:160px}.filter-bar>.input{width:145px}.filter-summary{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:0 8px;color:var(--muted);font-size:12px;white-space:nowrap}.filter-bar--users .search-input{min-width:220px}.compact-date{display:flex;height:42px;align-items:center;gap:6px;border:1px solid var(--control-border);border-radius:9px;background:var(--surface);padding-left:10px;color:var(--muted);font-size:11px}.compact-date .input{min-height:38px;border:0;padding-left:3px}.compact-date .input:focus{box-shadow:none}.filter-bar--audit>.input{width:min(280px,28vw)}.status-input{max-width:110px}.badge{display:inline-flex;width:max-content;min-height:24px;align-items:center;gap:5px;border-radius:999px;padding:3px 9px;background:var(--neutral-soft);color:var(--muted);font-size:11px;font-weight:690;white-space:nowrap}.badge--success{background:var(--green-soft);color:var(--green)}.badge--danger{background:var(--red-soft);color:var(--red)}.badge--warning{background:var(--orange-soft);color:var(--orange)}.badge--info{background:var(--blue-soft);color:var(--blue)}.badge--purple{background:var(--brand-soft);color:var(--brand)}.table-panel{min-width:0;overflow:hidden}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{height:43px;padding:0 15px;border-bottom:1px solid var(--line);background:var(--surface-subtle);color:var(--muted);font-size:10px;font-weight:730;letter-spacing:.055em;text-align:left;text-transform:uppercase;white-space:nowrap}td{min-height:62px;padding:13px 15px;border-bottom:1px solid var(--line-subtle);color:var(--text);vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr{transition:background-color .13s ease}tbody tr:hover{background:var(--surface-subtle)}.clickable-row{cursor:pointer}td small{display:block;margin-top:4px;color:var(--faint);font-size:10px}.primary-cell{display:flex;align-items:center;gap:10px}.primary-cell>div{display:flex;flex-direction:column;gap:3px}.primary-cell strong{color:var(--text-strong);font-size:12px}.primary-cell code{color:var(--faint);font-size:9px}.row-avatar{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--brand-soft);color:var(--brand)}.number-cell{display:inline-flex;align-items:center;gap:6px;font-weight:620}.number-cell svg{color:var(--faint)}.accuracy-cell{display:flex;min-width:86px;flex-direction:column;gap:5px}.accuracy-cell strong{font-size:12px}.mini-progress{display:block;width:70px;height:3px;overflow:hidden;border-radius:2px;background:var(--progress-track)}.mini-progress i{display:block;height:100%;border-radius:inherit;background:var(--green)}.pagination{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:10px 14px;color:var(--muted);font-size:12px}.pagination>div{display:flex;gap:7px}.pagination--single{justify-content:flex-start}.state-card{display:flex;min-height:250px;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--muted);text-align:center;box-shadow:var(--shadow-sm)}.state-card>.spinner svg{width:24px;height:24px;color:var(--brand)}.state-card>strong{color:var(--text-strong);font-size:14px}.state-card>span{max-width:400px;font-size:12px}.state-card--error>svg{color:var(--red)}.state-card--empty{min-height:280px}.state-card__icon{display:grid;width:50px;height:50px;place-items:center;border-radius:15px;background:var(--brand-soft);color:var(--brand)}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric-card{display:flex;min-height:150px;flex-direction:column;justify-content:flex-end;border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:17px;box-shadow:var(--shadow-sm)}.metric-card__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:auto}.metric-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--metric-blue-soft);color:var(--metric-blue)}.metric-icon svg{width:17px}.metric-icon--purple{background:var(--brand-soft);color:var(--brand)}.metric-icon--green{background:var(--green-soft);color:var(--green)}.metric-icon--orange{background:var(--orange-soft);color:var(--orange)}.metric-delta,.metric-caption,.live-label{color:var(--muted);font-size:10px}.metric-delta{display:inline-flex;align-items:center;gap:3px;color:var(--green)}.live-label{display:inline-flex;align-items:center;gap:6px}.metric-card>strong{color:var(--heading);font-size:27px;letter-spacing:-.035em}.metric-card>span{margin-top:3px;color:var(--muted);font-size:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:14px}.panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.panel__header h2,.section-heading h2{font-size:16px;font-weight:710;letter-spacing:-.015em}.panel__header p,.section-heading p{margin-top:4px;color:var(--muted);font-size:11px}.health-panel{display:flex;flex-direction:column;gap:23px;padding:19px}.healthy-badge{display:inline-flex;align-items:center;gap:5px;color:var(--green);font-size:10px;font-weight:660}.health-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(100px,1.5fr) 46px;align-items:center;gap:15px}.health-row__label{display:flex;flex-direction:column;gap:3px}.health-row__label span{color:var(--muted);font-size:11px}.health-row__label strong{font-size:12px}.progress{height:6px;overflow:hidden;border-radius:4px;background:var(--progress-track)}.progress i{display:block;height:100%;border-radius:inherit;background:var(--green)}.progress--purple i{background:var(--brand)}.health-row__value{color:var(--muted);font-size:11px;font-weight:680;text-align:right}.health-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding-top:4px}.health-summary>div{display:flex;align-items:center;gap:8px;border-radius:9px;background:var(--surface-muted);padding:10px}.health-summary svg{width:15px;color:var(--brand)}.health-summary span{display:flex;flex-direction:column;color:var(--muted);font-size:9px}.health-summary strong{color:var(--text-strong);font-size:12px}.quick-panel{padding:19px}.quick-links{display:flex;flex-direction:column;gap:4px;margin-top:13px}.quick-links>a{display:flex;align-items:center;gap:10px;border-radius:10px;padding:10px;transition:background-color .15s ease}.quick-links>a:hover{background:var(--surface-muted)}.quick-links>a:active{transform:scale(.99)}.quick-link__icon{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:9px;background:var(--green-soft);color:var(--green)}.quick-link__icon svg{width:16px}.quick-link__icon--red{background:var(--red-soft);color:var(--red)}.quick-link__icon--purple{background:var(--brand-soft);color:var(--brand)}.quick-links div{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.quick-links strong{font-size:11px}.quick-links span{color:var(--muted);font-size:9px}.quick-links>a>svg{width:15px;color:var(--placeholder)}.question-table th:first-child{width:39%}.question-cell{display:flex;min-width:250px;max-width:540px;flex-direction:column;gap:4px}.question-cell strong{color:var(--text-strong);font-size:12px;line-height:1.4}.question-cell span{overflow:hidden;color:var(--faint);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.correct-answer{display:inline-flex;max-width:260px;align-items:flex-start;gap:5px;color:var(--green);font-size:11px;line-height:1.4}.correct-answer svg{flex:0 0 auto;margin-top:1px}.position-cell{display:block;font-size:12px;font-weight:670}.question-actions{display:flex;justify-content:flex-end;gap:6px}.question-actions .icon-button{width:32px;height:32px}.question-form{display:flex;min-height:calc(100vh - 105px);flex-direction:column}.form-section{padding:22px 25px;border-bottom:1px solid var(--line)}.form-section__heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:18px}.form-section__heading>span{display:grid;width:25px;height:25px;flex:0 0 auto;place-items:center;border-radius:8px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:760}.form-section__heading h3{font-size:14px}.form-section__heading p{margin-top:3px;color:var(--muted);font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:13px}.char-count{align-self:flex-end;margin-top:-25px;margin-right:8px;padding:2px 4px;border-radius:4px;background:var(--floating-surface);color:var(--faint);font-size:9px;pointer-events:none}.answers-list{display:flex;flex-direction:column;gap:8px}.answer-row{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle);padding:6px 7px;transition:border-color .15s ease,background-color .15s ease}.answer-row.is-correct{border-color:var(--green-border);background:var(--green-surface)}.answer-row>input[type=radio]{position:absolute;opacity:0}.answer-radio{display:grid;width:20px;height:20px;flex:0 0 auto;place-items:center;border:1px solid var(--control-border);border-radius:50%;background:var(--surface);color:transparent;cursor:pointer}.answer-row.is-correct .answer-radio{border-color:var(--green-action);background:var(--green-action);color:var(--on-action)}.answer-letter{color:var(--faint);font-size:10px;font-weight:740}.answer-row .input{min-height:36px;border:0;background:transparent;padding-left:3px}.answer-row .input:focus{box-shadow:none}.status-toggle{display:flex;align-items:center;gap:11px;margin-top:14px;border:1px solid var(--line);border-radius:10px;padding:12px;cursor:pointer}.status-toggle input{position:absolute;opacity:0}.switch{position:relative;width:37px;height:21px;flex:0 0 auto;border-radius:20px;background:var(--switch-track);transition:background-color .16s ease}.switch i{position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:var(--on-action);box-shadow:0 1px 3px #0003;transition:transform .18s var(--ease-out)}.status-toggle.is-active .switch{background:var(--green-action)}.status-toggle.is-active .switch i{transform:translate(16px)}.status-toggle>span:last-child{display:grid;flex:1;grid-template-columns:auto 1fr;align-items:center;gap:2px 6px}.status-toggle>span:last-child svg{grid-row:1 / 3;color:var(--muted)}.status-toggle strong{font-size:11px}.status-toggle small{color:var(--muted);font-size:9px}.danger-confirm{display:flex;gap:9px;margin-top:10px;border:1px solid var(--red-border);border-radius:10px;background:var(--red-soft);padding:11px;cursor:pointer}.danger-confirm>input{margin:3px 0 0;accent-color:var(--red)}.danger-confirm>span{display:grid;grid-template-columns:auto 1fr;gap:2px 7px;color:var(--red)}.danger-confirm svg{grid-row:1 / 3}.danger-confirm strong{font-size:11px}.danger-confirm small{color:var(--red-muted);font-size:9px;line-height:1.5}.drawer-form-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:auto;border-top:1px solid var(--line);background:var(--floating-surface);padding:14px 25px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.drawer-form-footer>span{color:var(--muted);font-size:9px}.drawer-form-footer>div{display:flex;gap:8px}.json-import-form{display:flex;min-height:calc(100vh - 85px);flex-direction:column}.json-import-intro{display:flex;align-items:flex-start;gap:12px;padding:22px 25px 17px}.json-import-intro>span{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:11px;background:var(--brand-soft);color:var(--brand)}.json-import-intro>span svg{width:18px}.json-import-intro h3{font-size:14px}.json-import-intro p{max-width:520px;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.55}.json-editor-wrap{margin:0 25px 16px;overflow:hidden;border:1px solid var(--control-border);border-radius:11px;background:var(--code-surface);transition:border-color .16s ease,box-shadow .16s ease}.json-editor-wrap:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--focus-shadow)}.json-editor-toolbar{display:flex;height:38px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--code-line);padding:0 11px 0 14px;color:var(--code-muted)}.json-editor-toolbar>span{font-family:SFMono-Regular,Consolas,monospace;font-size:9px;font-weight:750;letter-spacing:.1em}.json-editor-toolbar>div{display:flex;gap:4px}.json-editor-toolbar button{display:inline-flex;height:27px;align-items:center;gap:5px;border:0;border-radius:6px;background:transparent;color:var(--code-action);padding:0 7px;font-size:9px;cursor:pointer;transition:background-color .15s ease,color .15s ease,transform .14s var(--ease-out)}.json-editor-toolbar button:hover{background:var(--code-line);color:var(--on-action)}.json-editor-toolbar button:active{transform:scale(.97)}.json-editor{display:block;width:100%;min-height:300px;resize:vertical;border:0;outline:0;background:var(--code-surface);color:var(--code-text);padding:16px;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.65;tab-size:2;caret-color:var(--code-caret)}.json-editor::placeholder{color:var(--code-placeholder)}.json-result,.json-format-hint{display:flex;align-items:flex-start;gap:10px;margin:0 25px 14px;border:1px solid var(--line);border-radius:10px;padding:11px 12px}.json-result>svg,.json-format-hint>svg{width:17px;flex:0 0 auto}.json-result>div,.json-format-hint>div{display:flex;min-width:0;flex-direction:column;gap:3px}.json-result strong,.json-format-hint strong{font-size:11px}.json-result span,.json-format-hint code{color:var(--muted);font-size:9px;line-height:1.55;overflow-wrap:anywhere}.json-result--error{border-color:var(--red-border);background:var(--red-soft);color:var(--red)}.json-result--error span{color:var(--red-muted)}.json-format-hint{background:var(--surface-muted);color:var(--brand)}.json-format-hint code{color:var(--muted)}.json-issues{margin:0 25px 14px;overflow:hidden;border:1px solid var(--red-border);border-radius:10px;background:var(--red-surface)}.json-issues header{display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--red-border);padding:10px 12px;color:var(--red)}.json-issues header strong{font-size:11px}.json-issues>div{display:grid;grid-template-columns:78px 1fr;gap:9px;border-bottom:1px solid var(--red-border);padding:9px 12px}.json-issues>div span{color:var(--red);font-size:9px;font-weight:700}.json-issues>div p{color:var(--red-muted);font-size:9px;line-height:1.45}.json-issues>small{display:block;padding:9px 12px;color:var(--muted);font-size:9px}.json-preview{margin:0 25px 14px;overflow:hidden;border:1px solid var(--green-border);border-radius:10px;background:var(--green-surface)}.json-preview>header{display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--green-border);padding:11px 12px;color:var(--green)}.json-preview>header svg{width:17px}.json-preview>header>div{display:flex;flex-direction:column;gap:2px}.json-preview>header strong{font-size:11px}.json-preview>header span{color:var(--green-muted);font-size:9px}.json-preview-list{display:flex;flex-direction:column}.json-preview-list>div{display:flex;align-items:flex-start;gap:9px;border-bottom:1px solid var(--green-border);padding:9px 12px}.json-preview-list>div:last-child{border-bottom:0}.json-preview-list>div>span{display:grid;width:20px;height:20px;flex:0 0 auto;place-items:center;border-radius:6px;background:var(--green-soft);color:var(--green);font-size:9px;font-weight:750}.json-preview-list>div>div{display:flex;min-width:0;flex-direction:column;gap:3px}.json-preview-list strong{overflow:hidden;color:var(--text-strong);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.json-preview-list small{color:var(--green-muted);font-size:8px}.json-preview-list>p{padding:9px 12px;color:var(--muted);font-size:9px}.json-import-footer{margin-top:auto}.error-status-cell,.audit-action{display:flex;align-items:center;gap:9px}.error-status-cell>div,.audit-action>div{display:flex;flex-direction:column;gap:3px}.error-status-cell strong,.audit-action strong{color:var(--text-strong);font-size:11px}.error-status-cell code,.audit-action code{color:var(--faint);font-size:9px}.status-code{display:inline-grid;min-width:40px;height:28px;place-items:center;border-radius:7px;background:var(--orange-soft);color:var(--orange);font-size:11px;font-weight:760}.status-code--5{background:var(--red-soft);color:var(--red)}.method-label{color:var(--brand);font-size:9px}.path-code{margin-left:4px;color:var(--text)}.truncate-cell{display:block;overflow:hidden;max-width:270px;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.audit-action>span{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:var(--brand-soft);color:var(--brand)}.block-code{display:block;margin-top:5px;color:var(--faint);font-size:9px}.detail-stack{display:flex;flex-direction:column;gap:20px;padding:22px}.detail-hero{display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);padding-bottom:19px}.detail-hero .status-code{width:52px;height:40px;font-size:14px}.detail-hero>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.detail-hero strong{font-size:13px}.detail-hero span{color:var(--muted);font-size:10px}.detail-section h3{margin-bottom:8px;font-size:11px}.message-box,.json-box{border:1px solid var(--line);border-radius:9px;background:var(--surface-muted);padding:12px;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.json-box{overflow:auto;color:var(--text);white-space:pre-wrap}.detail-list{display:flex;margin:0;flex-direction:column}.detail-list>div{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;border-bottom:1px solid var(--line-subtle);padding:11px 0}.detail-list dt{color:var(--muted);font-size:10px}.detail-list dd{display:flex;min-width:0;align-items:center;gap:6px;margin:0;color:var(--text-strong);font-size:11px;overflow-wrap:anywhere}.copy-button{display:inline-flex;align-items:center;gap:4px;margin-left:auto;border:0;background:transparent;color:var(--brand);font-size:9px;cursor:pointer}.drawer-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px}.permission-note{display:flex;align-items:center;gap:7px;border-radius:9px;background:var(--neutral-soft);padding:11px;color:var(--muted);font-size:10px}.audit-detail-title{display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);padding-bottom:18px}.audit-detail-title>span{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:var(--brand-soft);color:var(--brand)}.audit-detail-title>div{display:flex;flex-direction:column;gap:4px}.audit-detail-title strong{font-size:13px}.audit-detail-title code{color:var(--muted);font-size:9px}.deploy-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,.7fr);gap:14px}.deploy-form{padding:22px;transition:border-color .18s ease}.deploy-form--production{border-color:var(--red-border)}.deploy-form__header{display:flex;align-items:center;gap:12px;margin-bottom:21px}.deploy-form__header h2{font-size:16px}.deploy-form__header p{margin-top:3px;color:var(--muted);font-size:11px}.deploy-icon{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;background:var(--brand-soft);color:var(--brand)}.deploy-icon svg{width:19px}.danger-banner{display:flex;gap:9px;margin:-6px 0 16px;border:1px solid var(--red-border);border-radius:9px;background:var(--red-soft);padding:10px;color:var(--red)}.danger-banner>div{display:flex;flex-direction:column;gap:2px}.danger-banner strong{font-size:11px}.danger-banner span{color:var(--red-muted);font-size:9px}.input-with-icon{position:relative}.input-with-icon>svg{position:absolute;z-index:1;top:13px;left:11px;color:var(--faint)}.input-with-icon .input{padding-left:34px}.deploy-form__footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.deploy-form__footer>div{display:flex;max-width:360px;align-items:center;gap:6px;color:var(--muted);font-size:9px;line-height:1.45}.deploy-safety{padding:22px}.deploy-safety h3{font-size:13px}.deploy-safety ul{display:flex;margin:17px 0;flex-direction:column;gap:11px;padding:0;list-style:none}.deploy-safety li{display:flex;align-items:center;gap:7px;color:var(--text);font-size:10px}.deploy-safety li svg{width:14px;color:var(--green)}.deploy-safety p{border-top:1px solid var(--line);padding-top:13px;color:var(--muted);font-size:9px;line-height:1.55}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-heading>svg{color:var(--faint)}.failure-reason{overflow:hidden;max-width:190px;color:var(--red);text-overflow:ellipsis;white-space:nowrap}.pulse-dot{width:6px;height:6px;border-radius:50%;background:currentColor;animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.3}}.drawer-layer{position:fixed;z-index:100;inset:0;display:flex;justify-content:flex-end}.drawer-backdrop{position:absolute;inset:0;border:0;background:var(--overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.drawer{position:relative;display:flex;width:min(510px,calc(100vw - 20px));height:100%;flex-direction:column;overflow:hidden;border-left:1px solid var(--drawer-edge);background:var(--surface);box-shadow:var(--shadow-lg);animation:drawer-in .24s var(--ease-out)}.drawer--wide{width:min(660px,calc(100vw - 20px))}@keyframes drawer-in{0%{transform:translate(100%)}to{transform:translate(0)}}.drawer__header{display:flex;min-height:84px;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:17px 22px}.drawer__header h2{font-size:17px;letter-spacing:-.015em}.drawer__header p{overflow:hidden;max-width:520px;margin-top:4px;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.drawer__body{flex:1;overflow-y:auto;overscroll-behavior:contain}.toast-viewport{position:fixed;z-index:200;right:18px;bottom:18px;display:flex;width:min(380px,calc(100vw - 36px));flex-direction:column;gap:8px;pointer-events:none}.toast{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:11px;background:var(--toast-surface);padding:12px;box-shadow:var(--shadow-toast);pointer-events:auto;transition:transform .18s var(--ease-out),opacity .15s ease}.toast>svg{flex:0 0 auto;color:var(--brand)}.toast--success>svg{color:var(--green)}.toast--error>svg{color:var(--red)}.toast__content{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.toast__content strong{font-size:12px}.toast__content span{color:var(--muted);font-size:10px;line-height:1.45}.login-page{position:relative;display:grid;min-height:100vh;min-height:100dvh;place-items:center;padding:88px 22px;background:var(--surface)}.login-form{display:flex;width:min(100%,320px);min-width:0;flex-direction:column;gap:17px}.password-input{position:relative;display:flex;align-items:center}.password-input>svg{position:absolute;z-index:1;left:12px;color:var(--faint)}.password-input .input{padding:0 42px 0 38px}.password-input>button{position:absolute;right:6px;display:grid;width:31px;height:31px;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}.login-error{border:1px solid var(--red-border);border-radius:9px;background:var(--red-soft);padding:10px 12px;color:var(--red);font-size:10px;line-height:1.55}.login-submit{align-self:flex-end;width:42px;padding:0;margin-top:3px}.not-found{display:flex;min-height:calc(100vh - 120px);align-items:center;justify-content:center;flex-direction:column;color:var(--muted);text-align:center}.not-found>svg{margin-bottom:20px;color:var(--brand)}.not-found h1{color:var(--ink);font-size:27px}.not-found p{margin:8px 0 22px;font-size:12px}.not-found .button{padding:0}.not-found .button a{display:inline-flex;height:40px;align-items:center;gap:7px;padding:0 15px}@media(max-width:1100px){.content{padding:35px 28px 60px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.quick-links{display:grid;grid-template-columns:repeat(3,1fr)}.quick-links>a{align-items:flex-start}.quick-links>a>svg{display:none}.filter-bar{flex-wrap:wrap}.filter-bar .search-input{min-width:100%;flex-basis:100%}.filter-summary{margin-left:0}}@media(max-width:800px){.sidebar{width:min(288px,calc(100vw - 38px));transform:translate(-102%);box-shadow:var(--shadow-lg);transition:transform .24s var(--ease-out)}.sidebar.is-open{transform:translate(0)}.sidebar__close{display:grid}.sidebar-scrim{position:fixed;z-index:29;inset:0;display:block;border:0;background:var(--overlay);opacity:0;pointer-events:none;transition:opacity .18s ease}.sidebar-scrim.is-visible{opacity:1;pointer-events:auto}.app-main{width:100%;margin-left:0}.mobile-header{position:sticky;z-index:20;top:0;display:flex;height:58px;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:var(--mobile-header-surface);padding:0 17px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.mobile-brand{flex:1;font-size:14px;font-weight:730}.mobile-brand i{color:var(--muted);font-size:10px;font-style:normal;font-weight:520}.role-dot{width:8px;height:8px;border-radius:50%;background:var(--green)}.role-dot--viewer{background:var(--blue)}.role-dot--editor{background:var(--brand)}.content{padding:27px 17px 50px}.page-header{align-items:flex-start;flex-direction:column}.page-header__actions,.page-header__actions .button{width:100%}.page-header__actions{display:grid;grid-template-columns:1fr 1fr}.deploy-grid{grid-template-columns:1fr}.deploy-safety{display:none}}@media(max-width:580px){.page-stack{gap:18px}.metric-grid{grid-template-columns:1fr 1fr;gap:9px}.metric-card{min-height:128px;padding:13px}.metric-card>strong{font-size:23px}.metric-delta{display:none}.health-row{grid-template-columns:1fr 45px}.health-row .progress{grid-column:1 / 3;grid-row:2}.health-summary{grid-template-columns:1fr}.quick-links{display:flex}.filter-bar{align-items:stretch}.filter-bar .select,.filter-bar>.input,.compact-date{width:100%;min-width:0;max-width:none}.compact-date{justify-content:space-between}.filter-summary{padding:5px 8px}.pagination{align-items:stretch;flex-direction:column}.pagination>div{display:grid;grid-template-columns:1fr 1fr}.drawer,.drawer--wide{width:100vw}.form-section{padding:19px 16px}.form-grid{grid-template-columns:1fr}.drawer-form-footer{align-items:stretch;flex-direction:column;padding:12px 16px}.drawer-form-footer>div{display:grid;grid-template-columns:1fr 1fr}.json-import-intro{padding:18px 16px 14px}.json-editor-wrap,.json-result,.json-format-hint,.json-issues,.json-preview{margin-right:16px;margin-left:16px}.json-editor{min-height:270px;font-size:10px}.detail-list>div{grid-template-columns:1fr;gap:5px}.deploy-form{padding:17px}.deploy-form__footer{align-items:stretch;flex-direction:column}.deploy-form__footer .button{width:100%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.question-fields{border:0;padding:0;margin:0;min-width:0;display:grid;gap:20px}.question-group{border-bottom:1px solid var(--line)}.question-group>summary{display:flex;align-items:center;gap:20px;padding:22px 24px;cursor:pointer;list-style:none}.question-group>summary:before{content:"›";font-size:24px;color:var(--muted)}.question-group[open]>summary:before{transform:rotate(90deg)}.question-group>summary:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}.question-group>summary .question-cell{flex:1;min-width:0}.question-languages{display:flex;flex-wrap:wrap;gap:5px;max-width:230px}.question-group__body{padding:0 24px 24px;display:grid;gap:16px}.question-group__toolbar,.question-group__toolbar>div,.translation-card header,.translation-card footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.question-group__toolbar{justify-content:space-between}.translation-card{border:1px solid var(--line);border-radius:12px;padding:18px}.translation-card header>span{color:var(--muted);font-size:12px}.translation-card p{margin:14px 0;line-height:1.6;overflow-wrap:anywhere}.translation-card ul{padding-left:24px;line-height:1.9}.translation-card li strong{color:var(--green)}.translation-tabs{display:flex;flex-wrap:wrap;gap:8px}.translation-tabs button{border:1px solid var(--control-border);border-radius:8px;padding:10px 14px;background:var(--surface);cursor:pointer}.translation-tabs button[aria-selected=true]{background:var(--brand-selected);border-color:var(--brand-border);color:var(--brand-selected-text)}.answer-row>input[type=radio]{cursor:pointer}@media(max-width:700px){.question-group>summary{align-items:flex-start;gap:10px;padding:16px}.question-languages{max-width:110px}.question-group__body{padding:0 16px 16px}}.answer-row>input[type=radio]{position:static;opacity:1;width:18px;height:18px;flex:0 0 auto;accent-color:var(--green)}.answer-row .answer-radio{display:none}.question-form>.question-fields{padding:24px}.question-languages small{white-space:nowrap;color:var(--muted)}@media(max-width:580px){.question-form>.question-fields{padding:20px 16px}}
