:root { color-scheme:light; --bg:#f5f5f7; --surface:#fff; --glass:rgba(255,255,255,.88); --ink:#171719; --muted:#696b73; --line:#e5e5e9; --gold:#bf9000; --gold-text:#806000; --gold-soft:#faf5e7; --shadow:0 4px 24px rgba(20,20,30,.035); --track:#ececf0; --focus:#806000; font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',sans-serif; font-size:15px; }
html[data-theme="dark"] { color-scheme:dark; --bg:#111113; --surface:#1c1c1f; --glass:rgba(28,28,31,.9); --ink:#f5f5f7; --muted:#b1b1ba; --line:#333338; --gold-text:#e2bb49; --gold-soft:#30291a; --shadow:0 4px 24px rgba(0,0,0,.12); --track:#303035; --focus:#e2bb49; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); line-height:1.55; }
button,input,select { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
button:disabled { cursor:not-allowed; opacity:.55; }
.skip { position:absolute; top:-100px; left:16px; z-index:8; background:var(--surface); padding:12px; }
.skip:focus { top:12px; }
.app-header { height:88px; display:flex; align-items:center; justify-content:space-between; padding:0 32px; border-bottom:1px solid var(--line); background:var(--glass); backdrop-filter:blur(18px); position:sticky; top:0; z-index:3; }
.brand-group,.header-actions { display:flex; align-items:center; gap:18px; }
.brand { display:block; width:168px; height:80px; }
.brand img { width:100%; height:100%; object-fit:contain; }
.brand-dark { display:none; }
html[data-theme="dark"] .brand-light { display:none; }
html[data-theme="dark"] .brand-dark { display:block; }
.preview-label { color:var(--muted); font-size:11px; letter-spacing:1.1px; }
.theme-toggle,.btn-secondary { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:9px 13px; }
.team-badge { color:var(--muted); border-left:1px solid var(--line); padding-left:18px; font-size:13px; }
.sidebar { position:fixed; left:0; top:88px; bottom:0; width:236px; display:flex; flex-direction:column; justify-content:space-between; gap:20px; padding:24px 18px; border-right:1px solid var(--line); background:var(--glass); overflow-y:auto; }
.sidebar nav { display:grid; gap:5px; }
.sidebar a { display:flex; gap:14px; align-items:center; text-decoration:none; padding:12px 14px; color:var(--muted); border-radius:9px; font-size:14px; border-left:2px solid transparent; }
.sidebar a:hover { background:var(--track); color:var(--ink); }
.sidebar a[aria-current="page"] { color:var(--gold-text); background:var(--gold-soft); border-left-color:var(--gold); font-weight:600; }
.nav-icon { width:20px; font-size:22px; text-align:center; line-height:1; font-weight:400; }
.side-bottom { padding-top:20px; border-top:1px solid var(--line); }
.side-bottom p { font-size:12px; color:var(--muted); padding:10px 16px 0; margin:0; }
main { margin-left:236px; padding:34px 34px 22px; max-width:1800px; }
.page-header { display:flex; gap:20px; align-items:center; justify-content:space-between; margin-bottom:25px; }
h1 { font-size:34px; line-height:1.15; letter-spacing:-1.1px; font-weight:650; margin:0 0 8px; }
h2 { font-size:19px; line-height:1.35; margin:0 0 7px; letter-spacing:-.4px; font-weight:600; }
h3 { font-size:16px; margin:0 0 8px; font-weight:600; }
p { margin:0; }
.subtitle { color:var(--muted); font-size:15px; }
.eyebrow { color:var(--muted); font-size:11px; letter-spacing:.9px; text-transform:uppercase; display:block; margin-bottom:6px; }
.badge { display:inline-flex; align-items:center; gap:7px; background:var(--gold-soft); color:var(--gold-text); padding:5px 10px; border-radius:20px; font-size:12px; white-space:normal; }
.badge::before { content:''; width:6px; height:6px; background:var(--gold); border-radius:50%; flex:none; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; border:0; border-radius:9px; background:var(--ink); color:var(--surface); padding:11px 16px; text-decoration:none; font-weight:500; font-size:14px; }
.btn .plus { color:var(--gold); font-size:20px; line-height:1; }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; margin-bottom:20px; }
.stat { background:var(--surface); box-shadow:var(--shadow); border:1px solid var(--line); border-radius:15px; padding:22px; display:flex; gap:17px; align-items:center; }
.stat-icon { width:48px; height:48px; flex:none; border-radius:50%; background:var(--gold-soft); display:grid; place-items:center; color:var(--gold); font-size:25px; }
.stat-label { color:var(--muted); font-size:13px; }
.stat-value { display:block; font-size:32px; font-weight:600; letter-spacing:-.9px; line-height:1.4; font-variant-numeric:tabular-nums; }
.stat-value.text-value { font-size:19px; letter-spacing:-.3px; margin:7px 0; }
.stat-note { font-size:11px; color:var(--muted); }
.grid-main { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:20px; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:15px; box-shadow:var(--shadow); padding:24px; min-width:0; }
.panel-header { display:flex; justify-content:space-between; gap:15px; align-items:start; margin-bottom:20px; }
.panel-header p { font-size:13px; color:var(--muted); }
.dim-list { display:grid; gap:2px; }
.dim-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13px; }
.dim-row:last-child { border:0; }
.dim-count { font-size:12px; color:var(--muted); white-space:nowrap; }
.dim-code { color:var(--gold-text); font-size:11px; margin-right:9px; }
.stage-list { list-style:none; padding:0; margin:6px 0 20px; }
.stage-list li { position:relative; padding:0 0 17px 23px; color:var(--muted); font-size:14px; }
.stage-list li::before { position:absolute; left:0; top:5px; content:''; width:9px; height:9px; border-radius:50%; background:var(--track); }
.stage-list li.current { color:var(--ink); font-weight:500; }
.stage-list li.current::before { background:var(--gold); }
.stage-list li small { display:block; font-size:12px; color:var(--muted); font-weight:400; margin-top:3px; }
.stage-list li:not(:last-child)::after { position:absolute; left:4px; top:17px; bottom:2px; width:1px; content:''; background:var(--line); }
.section-gap { margin-top:20px; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; text-align:left; font-size:13px; }
th { color:var(--muted); font-weight:400; font-size:12px; }
th,td { border-bottom:1px solid var(--line); padding:13px 9px; }
tr:last-child td { border-bottom:0; }
td:first-child,th:first-child { padding-left:0; }
.table-link { text-decoration:none; font-weight:500; }
.table-link:hover { color:var(--gold-text); }
.muted { color:var(--muted); }
.small { font-size:12px; }
.row-link { border:0; background:transparent; color:var(--gold-text); font-size:13px; padding:6px; text-decoration:none; }
.notice { border-left:3px solid var(--gold); padding:10px 15px; background:var(--gold-soft); color:var(--ink); font-size:13px; margin-bottom:20px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 25px; }
.field dt { color:var(--muted); font-size:12px; margin-bottom:4px; }
.field dd { margin:0; font-size:14px; }
dl { margin:0; }
.tabs { display:flex; gap:7px; flex-wrap:wrap; margin:20px 0; }
.tab { border:1px solid var(--line); background:var(--surface); color:var(--muted); border-radius:8px; padding:9px 12px; min-width:45px; }
.tab[aria-pressed="true"] { color:var(--gold-text); background:var(--gold-soft); border-color:var(--gold); }
.criteria { display:grid; gap:10px; }
.criterion { display:flex; justify-content:space-between; align-items:center; gap:20px; border:1px solid var(--line); border-radius:10px; padding:18px; background:var(--surface); }
.criterion h3 { font-size:15px; margin-bottom:4px; }
.criterion p { font-size:13px; color:var(--muted); max-width:850px; }
.criterion button { flex:none; }
.empty { padding:30px 0; max-width:680px; }
.empty h2 { margin-bottom:12px; }
.empty p { color:var(--muted); margin-bottom:16px; }
.simple-list { padding-left:20px; color:var(--muted); }
.simple-list li { padding:5px 0; }
.blueprint-list { list-style:none; counter-reset:chapters; padding:0; margin:0; }
.blueprint-list li { display:flex; gap:15px; padding:14px 0; border-bottom:1px solid var(--line); font-size:14px; }
.blueprint-list li::before { counter-increment:chapters; content:counter(chapters,decimal-leading-zero); color:var(--gold-text); font-size:12px; padding-top:3px; }
.blueprint-list li:last-child { border:0; }
.journey-buttons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:20px; }
.journey-buttons button { border:1px solid var(--line); background:var(--surface); color:var(--muted); text-align:left; padding:16px; border-radius:10px; }
.journey-buttons button span { display:block; font-size:11px; margin-bottom:5px; }
.journey-buttons button[aria-pressed="true"] { background:var(--gold-soft); color:var(--gold-text); border-color:var(--gold); }
.gate { border-top:1px solid var(--line); margin-top:23px; padding-top:18px; font-size:14px; }
.gate span { display:block; color:var(--muted); font-size:12px; margin-bottom:5px; }
footer { color:var(--muted); font-size:11px; border-top:1px solid var(--line); margin-top:26px; padding-top:16px; }
dialog { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:16px; padding:32px; max-width:720px; width:calc(100% - 32px); max-height:85vh; overflow:auto; }
dialog::backdrop { background:rgba(0,0,0,.42); backdrop-filter:blur(4px); }
.close-dialog { position:absolute; right:13px; top:8px; border:0; background:transparent; color:var(--muted); font-size:28px; width:36px; height:36px; }
.scale { list-style:none; margin:18px 0; padding:0; }
.scale li { display:flex; gap:15px; border-top:1px solid var(--line); padding:12px 0; font-size:13px; }
.scale strong { color:var(--gold-text); font-size:15px; }
.mobile-menu { display:none; }
.icon-button { background:transparent; color:var(--ink); border:1px solid var(--line); border-radius:8px; width:40px; height:40px; }
.loading { margin:30px; color:var(--muted); }
.auth-main { margin:0; max-width:none; display:grid; justify-items:center; padding:65px 20px; }
.auth-main #app { width:100%; max-width:440px; }
.auth-card { padding:34px; }
.auth-card h1 { font-size:27px; }
.auth-card form { display:grid; gap:18px; margin-top:26px; }
.auth-card label { display:grid; gap:7px; font-size:13px; }
.auth-card input,.assessment-picker { padding:12px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--bg); min-width:0; max-width:100%; }
.auth-card .btn { width:100%; }
.form-error { color:var(--ink); padding:12px; background:var(--gold-soft); border-radius:7px; font-size:13px; }
.edit-form { display:grid; gap:18px; margin-top:22px; }
.edit-form label { display:grid; gap:7px; font-size:13px; min-width:0; }
.edit-form input,.edit-form select,.edit-form textarea { box-sizing:border-box; padding:12px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--bg); width:100%; min-width:0; font:inherit; }
.edit-form textarea { resize:vertical; line-height:1.5; }
.edit-form select { text-overflow:ellipsis; }
.form-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.upload-label { cursor:pointer; display:inline-flex; align-items:center; }
button:disabled { opacity:.6; cursor:wait; }
summary { cursor:pointer; font-weight:500; }
.context-bar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 24px; }
.context-bar label { color:var(--muted); font-size:12px; }
.context-bar select { max-width:100%; width:330px; }
.record-list { display:grid; gap:14px; }
.record-list article { padding:16px 0; border-bottom:1px solid var(--line); }
.record-list article:last-child { border:0; }
.record-list p { font-size:14px; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.status-caption { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; }
.read-value { margin:18px 0; padding:14px 0; border-top:1px solid var(--line); white-space:pre-wrap; overflow-wrap:anywhere; }
@media(min-width:1800px) { main { padding-right:70px; padding-left:55px; } }
@media(max-width:1100px) { .sidebar { width:202px; padding:22px 10px; } main { margin-left:202px; padding:28px 22px; } .stat { padding:18px 14px; gap:10px; } .stat-icon { width:38px; height:38px; font-size:21px; } .grid-main { grid-template-columns:1fr; } .stage-list { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; } .stage-list li::after { display:none; } }
@media(max-width:760px) { .app-header { height:76px; padding:0 16px; } .brand { width:130px; height:70px; } .brand-group,.header-actions { gap:10px; } .team-badge,.preview-label { display:none; } .theme-toggle { font-size:12px; padding:8px 10px; } .mobile-menu { display:block; } .sidebar { display:none; top:76px; width:236px; z-index:4; background:var(--surface); box-shadow:10px 0 30px rgba(0,0,0,.1); } body.menu-open .sidebar { display:flex; } main { margin-left:0; padding:25px 18px; } h1 { font-size:29px; } .page-header { align-items:start; } .stats { gap:10px; } .stat { display:block; padding:15px 12px; } .stat-icon { display:none; } .stat-label { font-size:12px; } .stat-value { font-size:26px; } .stat-value.text-value { font-size:16px; } .stat-note { display:none; } .panel { padding:20px; } .journey-buttons { grid-template-columns:repeat(2,1fr); } .form-grid { grid-template-columns:1fr; } }
@media(max-width:430px) { .page-header { flex-direction:column; gap:13px; } .criterion { flex-direction:column; align-items:start; gap:12px; } .panel { padding:18px; } .stage-list { grid-template-columns:1fr; } .stats { grid-template-columns:1fr; } .stat { display:flex; align-items:center; padding:14px 17px; } .stat-icon { display:grid; } .stat-value { font-size:26px; } .stat-note { display:block; } dialog { padding:28px 22px; } }
@media(prefers-reduced-motion:no-preference) { button,a { transition:background-color .15s,color .15s; } }
@media(pointer:coarse) { button,.tab,.row-link { min-height:44px; } }

.upload-label .file-picker { display:block; max-width:100%; width:260px; margin-top:8px; font:inherit; color:var(--muted); }
