:root{--ink:#182a42;--muted:#6b778a;--blue:#184d71;--navy:#102c43;--teal:#15786b;--line:#e2e8ee;--bg:#f4f7fa;--white:#fff;--red:#a72f40}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;border:1px solid #ccd7e1;border-radius:8px;background:#fff;padding:10px 12px;color:var(--ink);margin-top:6px;min-width:0}textarea{resize:vertical;min-height:80px;line-height:1.6}label{display:block;font-weight:600;font-size:13px;margin-bottom:16px}label small{font-weight:400;color:var(--muted)}input:focus,textarea:focus,select:focus{border-color:#287b97;box-shadow:0 0 0 3px #287b971a}input:disabled,textarea:disabled,select:disabled{background:#f6f8fa;color:#4b5e73;opacity:1}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.22;letter-spacing:-.8px;font-weight:650;max-width:1100px;margin-bottom:12px}h2{font-size:18px;letter-spacing:-.2px;margin-bottom:8px}h3{font-size:15px}small{font-size:11px}.muted,.caption{color:var(--muted)}.caption{font-size:12px;margin-top:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:264px;background:var(--navy);color:#e7f0f8;padding:30px 21px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:white;font-size:14px;font-weight:650}.brand small{display:block;color:#9bb3c7;font-size:8px;letter-spacing:1.5px;margin-top:5px}.seal{display:inline-flex;align-items:center;justify-content:center;width:43px;height:48px;border:1px solid #7895ac;border-radius:6px 6px 18px 18px;color:#fff;font-family:Georgia,serif;font-size:20px;flex-shrink:0}.nav-label{margin:46px 12px 12px;font-size:9px;letter-spacing:1.8px;color:#8aa4b9}.sidebar nav a{display:block;color:#c8d8e5;padding:13px 14px;margin:4px 0;border-radius:7px;font-size:13px}.sidebar nav a:hover{background:#ffffff0d;text-decoration:none;color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff17;padding-top:20px;display:flex;gap:11px;align-items:center}.sidebar-bottom strong{font-size:12px}.sidebar-bottom small{display:block;color:#99b0c5;font-weight:400;max-width:130px}.sidebar-bottom form{margin-left:auto}.sidebar-bottom .link{color:#c8d8e5}.avatar{background:#31516c;border-radius:50%;padding:8px 13px}.workspace{margin-left:264px;min-height:100vh}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--line);padding:0 36px;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.5px}.topbar .muted{margin-left:12px}.pill{font-size:10px;border:1px solid var(--line);padding:6px 12px;border-radius:30px;letter-spacing:0}.content{padding:34px 36px 60px;max-width:1900px;margin:auto}.heading{margin-bottom:28px}.heading p{color:var(--muted);max-width:1000px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--teal);margin-bottom:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.stat{padding:22px 24px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 4px #102c4303}.stat small{font-size:9px;color:var(--muted);font-weight:650;letter-spacing:.8px}.stat strong{display:block;font-size:36px;line-height:1.4;font-weight:600;letter-spacing:-1px}.stat em{font-style:normal;font-size:20px;color:var(--muted);margin-left:3px}.stat span{font-size:11px;color:var(--muted)}.stat span.green{color:var(--teal)}.card{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:22px;box-shadow:0 2px 5px #102c4303}.card.narrow{max-width:600px;margin:40px auto}.filters{display:flex;align-items:end;gap:12px;margin-bottom:23px;flex-wrap:wrap}.filters label{flex:1;min-width:135px;margin:0;font-size:11px;color:var(--muted)}.filters select{height:43px;font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:7px;padding:11px 18px;font-weight:600;font-size:12px;line-height:1.6;text-decoration:none;white-space:nowrap}.button:hover{background:#123c5b;text-decoration:none}.button.secondary{background:white;color:var(--blue);border-color:#cfdae4}.button.secondary:hover{background:#f5f8fb}.button.wide{width:100%}.link{border:0;background:none;padding:3px;color:var(--blue);font-size:12px}.section-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.section-header p{font-size:12px;margin-bottom:0}.table-scroll{overflow:auto;max-width:100%}.listing{border-collapse:collapse;width:100%;font-size:12px}.listing th{text-align:left;font-size:10px;color:#5e7185;font-weight:650;background:#f8fafc;letter-spacing:.2px}.listing td,.listing th{padding:15px 13px;border-bottom:1px solid #edf1f5;vertical-align:top}.listing td:first-child{min-width:220px;max-width:440px}.listing td strong{font-size:12px;font-weight:550}.listing td small{display:block;color:var(--muted);margin-top:5px}.listing tbody tr:hover{background:#fcfdfe}.table-no{display:inline-flex;width:27px;height:27px;align-items:center;justify-content:center;background:#eff4f8;color:#52728a;border-radius:5px;margin-right:9px;font-size:11px;font-weight:650}.badge{display:inline-block;font-size:10px;white-space:nowrap;padding:5px 9px;border-radius:5px;background:#f0f3f7;color:#6d7989;font-weight:600}.badge.submitted{background:#e8f6f0;color:#218263}.badge.draft{background:#eaf2fb;color:#3475b0}.badge.returned{background:#fff1db;color:#96631c}.row-link{white-space:nowrap;font-size:11px;font-weight:600}progress{width:82px;height:5px;border:0;border-radius:4px;background:#e8edf3}progress::-webkit-progress-bar{background:#e8edf3;border-radius:4px}progress::-webkit-progress-value{background:#368b83;border-radius:4px}progress::-moz-progress-bar{background:#368b83;border-radius:4px}.empty{text-align:center;padding:32px!important;color:var(--muted);font-size:13px}.export-menu{position:relative}.export-menu summary{list-style:none}.export-options{position:absolute;right:0;top:45px;width:250px;z-index:20;background:white;box-shadow:0 8px 28px #102c4325;border:1px solid var(--line);padding:12px;border-radius:8px}.export-options a{display:block;padding:9px}.export-options small{display:block;color:var(--muted);padding:9px}summary{cursor:pointer;font-weight:600;color:var(--ink)}details[open]>summary{margin-bottom:18px}.notice{padding:16px 20px;border:1px solid #ecd9b1;background:#fff9ed;color:#76541e;border-radius:9px;margin-bottom:20px;white-space:pre-line}.notice.success{background:#eef9f4;border-color:#c5e6d8;color:#23684d}.notice.error{background:#fff1f2;border-color:#edc8cf;color:#93283a}.hidden{display:none!important}.form-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;font-size:12px;margin-bottom:20px}.toolbar-right{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}#save-state{font-size:11px;color:var(--muted)}.editor-section{padding:22px 0 0}.editor-section .section-header{padding:0 22px}.editor-section h2{font-size:16px}.editor-table{border-collapse:separate;border-spacing:0;font-size:12px;min-width:100%}.editor-table th,.editor-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:top;padding:8px;min-width:190px;max-width:320px}.editor-table thead th{position:sticky;top:0;background:#edf3f8;z-index:2;text-align:left;padding:13px;min-width:190px}.editor-table thead small{display:block;font-size:9px;color:#658097;font-weight:400;margin-top:8px}.editor-table summary{font-size:11px;line-height:1.5;list-style:none;cursor:zoom-in}.editor-table details p{font-size:11px;font-weight:400;margin:8px 0}.editor-table .fixed-label{position:sticky;left:0;background:#f7fafc;min-width:220px;z-index:1;text-align:left;font-size:11px;font-weight:500}.editor-table .row-index{min-width:45px;max-width:45px;text-align:center;color:var(--muted)}.editor-table td textarea,.editor-table td input{margin:0;padding:8px;border:1px solid transparent;border-radius:4px;background:transparent;font-size:12px;min-height:42px;width:100%}.editor-table td textarea{min-height:70px}.editor-table td textarea:focus,.editor-table td input:focus{background:#fff;border-color:#2d8c99}.auto-cell{display:block;padding:9px;color:#617b91;font-size:11px}.editor-actions{position:sticky;bottom:12px;background:#102c43;box-shadow:0 7px 28px #102c4320;color:white;border-radius:10px;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 20px;margin-bottom:25px;z-index:5}.editor-actions #progress-label{margin-right:auto;font-size:12px}.editor-actions .button{background:#23827a;border-color:#23827a}.editor-actions .secondary{background:#fff;color:var(--navy);border-color:#fff}.editor-actions #save-state{color:#b9d0df}.icon-button{border:0;background:#f0f3f7;color:#a54b59;border-radius:5px;padding:7px 11px;font-size:18px}.check{display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:500}.check input{width:16px;height:16px;margin:2px 0 0;flex-shrink:0}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:end}.form-grid .button{margin-bottom:16px}.unit-list{padding-left:18px;font-size:12px;line-height:2}.period-row{border-bottom:1px solid var(--line);padding:12px 0 22px;margin-bottom:12px}.scroll-options{max-height:350px;overflow:auto}fieldset{border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:18px}legend{font-size:12px;font-weight:600}.builder-row{display:grid;grid-template-columns:3fr 1fr 1fr 40px;gap:8px;margin-bottom:10px}.field-edit{padding:10px 0;border-bottom:1px solid var(--line)}.contribution{border-top:1px solid var(--line);padding:20px 0}.secret{display:block;padding:16px;background:#edf3f8;word-break:break-all;letter-spacing:2px;border-radius:8px}footer{padding:18px 36px;border-top:1px solid var(--line);color:#8390a0;font-size:10px}footer span{float:right}.guest-workspace .content{max-width:1600px}.login-layout{display:grid;grid-template-columns:1.1fr 1fr;max-width:1060px;margin:55px auto;gap:80px;align-items:center}.login-story{background:#102c43;padding:48px 42px;border-radius:18px;color:white;min-height:510px}.login-story .large{width:56px;height:64px;font-size:27px;margin-bottom:46px}.login-story .eyebrow{color:#8fbdb9;font-size:9px}.login-story h1{font-family:Georgia,serif;font-weight:400;font-size:36px;line-height:1.25;letter-spacing:-.5px}.login-story p{color:#afc4d5;font-size:13px;margin:24px 0 44px}.story-line{font-size:9px;color:#84a6be;border-top:1px solid #ffffff20;padding-top:22px}.login-card{padding:35px;margin-bottom:0}.login-card h2{font-size:24px;margin:10px 0}.data-table td{white-space:pre-wrap;overflow-wrap:anywhere;min-width:110px}.data-table th{min-width:140px}.print-report{background:#fff;padding:28px;margin-bottom:24px}.print-report h1{font-size:22px}@media(max-width:1200px){.sidebar{width:220px;padding:25px 14px}.workspace{margin-left:220px}.content{padding:25px}.stats{gap:10px}.stat{padding:16px}.stat small{font-size:8px}.two-columns{gap:16px}}@media(max-width:900px){.sidebar{position:relative;width:auto;padding:16px}.sidebar nav{display:flex;overflow:auto}.sidebar nav a{white-space:nowrap}.nav-label,.sidebar-bottom{display:none}.workspace{margin-left:0}.stats{grid-template-columns:repeat(2,1fr)}.topbar{padding:0 20px}.content{padding:24px 16px}.two-columns{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.login-layout{gap:25px;margin:20px auto}.login-story{padding:30px}.editor-actions{flex-wrap:wrap}.toolbar-right{margin-left:0}.builder-row{grid-template-columns:1fr 1fr}.card{padding:18px}.editor-section{padding:18px 0 0}}@media(max-width:600px){.login-layout{grid-template-columns:1fr}.login-story{min-height:0}.login-story .large,.story-line{display:none}.login-story h1{font-size:28px}.login-story p{margin:12px 0}.topbar .pill{display:none}.stats{gap:10px}.stat strong{font-size:30px}.section-header{align-items:flex-start}.heading h1{font-size:25px}.editor-actions .button{padding:9px 12px}.editor-actions #progress-label{flex-basis:100%}}@media print{@page{size:A4 landscape;margin:12mm}.sidebar,.topbar,footer,.no-print{display:none!important}.workspace{margin:0}.content{padding:0}.print-report{padding:0;break-before:page}.print-report:first-of-type{break-before:auto}.table-scroll{overflow:visible}.listing{font-size:8px;table-layout:fixed;width:100%}.listing td,.listing th{padding:4px!important;min-width:0!important;max-width:none!important;font-size:8px;overflow-wrap:anywhere}.listing th{background:#eee!important}.print-report h1{font-size:16px}.print-report h2{font-size:12px}body{background:white}.data-table th{min-width:0}thead{display:table-header-group}tr{break-inside:avoid}}

/* SVG icons */
.icon{flex:none;vertical-align:-3px}
.sidebar nav a{display:flex;align-items:center;gap:12px}
.sidebar nav a .icon{opacity:.75;transition:opacity .15s}
.sidebar nav a:hover .icon,.sidebar nav a.active .icon{opacity:1}
.sidebar nav a.active{background:#ffffff14;color:#fff;box-shadow:inset 3px 0 0 #3fb6a8}
.button .icon,summary .icon{width:16px;height:16px}
a .icon{margin-left:2px}
.back-link{display:inline-flex;align-items:center;gap:6px}
.link.logout{display:inline-flex;align-items:center;gap:6px}
.link.logout .icon{width:16px;height:16px}

/* ===== v1.1 · readability + premium dashboard ===== */
:root{--teal-2:#23827a;--amber:#c48a2c;--slate:#cbd5e1;--shadow:0 1px 2px #102c430a,0 8px 24px -12px #102c4326}
body{font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
small{font-size:12.5px}
label{font-size:14px}
input,select,textarea{font-size:14.5px;padding:11px 13px}
h1{font-size:34px;letter-spacing:-1px}
h2{font-size:20px}
.heading p{font-size:16px}
.eyebrow{font-size:11.5px}
.topbar{font-size:12px}
.pill{font-size:12px}
.sidebar nav a{font-size:14.5px;padding:12px 14px}
.nav-label{font-size:10.5px}
.brand{font-size:15px}
.brand small{font-size:9px}
.sidebar-bottom strong{font-size:13.5px}
.sidebar-bottom small{font-size:12px}
.button{font-size:13.5px;padding:11px 18px}
.link{font-size:14px}
.card{border-radius:14px;padding:28px;box-shadow:var(--shadow)}
.listing{font-size:14px}
.listing th{font-size:11.5px;text-transform:uppercase;letter-spacing:.5px;color:#5b6f84}
.listing td,.listing th{padding:14px 14px;vertical-align:middle}
.listing td strong{font-size:14.5px;font-weight:600}
.listing td small{font-size:12.5px}
.listing td:first-child{min-width:0}
.listing .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.listing .num small{display:inline;margin-left:6px}
.listing .strong{font-weight:700}
.table-no{width:32px;height:32px;font-size:12.5px;flex:none}
.badge{font-size:12px;padding:5px 10px;border-radius:20px}
.badge.not_started{background:#f1f4f8;color:#68778a}
.row-link{font-size:13.5px;display:inline-flex;align-items:center;gap:4px}
.filters label{font-size:12.5px}
.filters select{font-size:14px;height:46px}
.notice{font-size:14.5px}
.caption{font-size:13px}
.check{font-size:14px}
.unit-list{font-size:14px}
summary{font-size:16px}
footer{font-size:12px}
.export-options{width:320px}
.export-options a{font-size:14px;border-radius:7px}
.export-options a:hover{background:#f3f7fa;text-decoration:none}
.editor-table{font-size:14px}
.editor-table thead th{font-size:13px}
.editor-table thead small{font-size:11px}
.editor-table summary{font-size:13px}
.editor-table .fixed-label{font-size:13px}
.editor-table td textarea,.editor-table td input{font-size:14px;line-height:1.5}
.editor-table td textarea{field-sizing:content;min-height:72px;max-height:420px;overflow:auto}
.auto-cell{font-size:13px}
.editor-actions #progress-label{font-size:14px}
.data-table td{font-size:13.5px}

/* table rows with a number chip + title */
.listing td:has(>.table-no){min-width:340px}
.listing td>.table-no{float:left;margin:1px 0 0}
.listing td:has(>.table-no)>strong,.listing td:has(>.table-no)>small{display:block;margin-left:46px}

/* KPI cards */
.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin:4px 0 22px}
.kpi{position:relative;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 20px 18px;box-shadow:var(--shadow);overflow:hidden}
.kpi::after{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:#dbe4ec}
.kpi.good::after{background:var(--teal-2)}.kpi.info::after{background:#3475b0}.kpi.warn::after{background:var(--amber)}
.kpi-icon{display:inline-flex;width:38px;height:38px;border-radius:10px;align-items:center;justify-content:center;background:#eef3f7;color:var(--blue);margin-bottom:12px}
.kpi.good .kpi-icon{background:#e5f5ef;color:#1d7a5c}.kpi.info .kpi-icon{background:#e8f1fb;color:#2f6aa3}.kpi.warn .kpi-icon{background:#fdf2e0;color:#9a6418}
.kpi small{display:block;font-size:12px;color:var(--muted);font-weight:650;letter-spacing:.6px;text-transform:uppercase}
.kpi strong{display:block;font-size:34px;line-height:1.25;font-weight:700;letter-spacing:-1px;margin:4px 0 2px;font-variant-numeric:tabular-nums}
.kpi strong em{font-style:normal;font-size:18px;color:var(--muted);font-weight:600;letter-spacing:0}
.kpi>span:last-child{font-size:13px;color:var(--muted)}

/* overview: donut + ranking */
.overview-grid{display:grid;grid-template-columns:minmax(300px,1fr) 2fr;gap:22px;align-items:start}
.overview-grid>.card{margin-bottom:22px}
.chart-card h2{margin-bottom:6px}
.donut-wrap{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin-top:10px}
.donut{width:180px;height:180px;flex:none}
.donut-track{fill:none;stroke:#eef2f6;stroke-width:5}
.donut-seg{fill:none;stroke-width:5;transform:rotate(0deg)}
.donut-value{font-size:8px;font-weight:700;fill:var(--ink);text-anchor:middle;dominant-baseline:middle}
.donut-caption{font-size:3.2px;fill:var(--muted);text-anchor:middle;letter-spacing:.2px}
.legend{list-style:none;margin:0;padding:0;flex:1;min-width:180px}
.legend li{display:grid;grid-template-columns:14px 1fr auto 46px;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #eef2f6;font-size:14px}
.legend li:last-child{border:0}
.legend strong{font-variant-numeric:tabular-nums}
.legend span{color:var(--muted);text-align:right;font-size:13px}
.dot{display:inline-block;width:12px;height:12px;border-radius:4px}
.fill-submitted{fill:#23927a;background:#23927a}.fill-returned{fill:#d99a36;background:#d99a36}.fill-draft{fill:#4a8ccc;background:#4a8ccc}.fill-not_started{fill:#d5dde6;background:#d5dde6}
.stroke-submitted{stroke:#23927a}.stroke-returned{stroke:#d99a36}.stroke-draft{stroke:#4a8ccc}.stroke-not_started{stroke:#d5dde6}
.stack{display:block;width:100%;height:10px;border-radius:6px;overflow:hidden;background:#eef2f6}
.meter{display:block;width:100%;max-width:140px;height:6px;margin-top:6px;margin-left:auto}
.meter-track{fill:#e8edf3}.meter-fill{fill:#3b8fc4}.meter-fill.done{fill:#23927a}
.rank-list{list-style:none;margin:0;padding:0}
.rank-list a{display:flex;gap:14px;align-items:center;padding:12px 10px;border-radius:10px;color:var(--ink)}
.rank-list a:hover{background:#f5f8fb;text-decoration:none}
.rank{display:inline-flex;width:30px;height:30px;border-radius:50%;background:#eef3f7;color:#4d6a82;font-weight:700;font-size:13px;align-items:center;justify-content:center;flex:none}
.rank-list li:first-child .rank{background:#e5f5ef;color:#1d7a5c}
.rank-body{flex:1;min-width:0}
.rank-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:14.5px}
.rank-title strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-title span{color:var(--muted);white-space:nowrap;font-size:13.5px}
.rank-title b{color:var(--ink)}
.todo-list{list-style:none;margin:0;padding:0}
.todo-list a{display:flex;align-items:center;gap:14px;padding:12px 8px;border-bottom:1px solid #eef2f6;color:var(--ink)}
.todo-list a:hover{background:#f7fafc;text-decoration:none}
.todo-body{flex:1;min-width:0}
.todo-body strong{display:block;font-weight:600;font-size:14.5px}
.todo-body .meter{margin-left:0;max-width:none}
.returned-note{display:block;color:#96631c;margin-top:2px}
.form-stats .bar-cell{min-width:170px;width:22%}
.actions{white-space:nowrap;text-align:right}
.icon-link{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:8px;font-size:13.5px;font-weight:600;margin-left:4px}
.icon-link:hover{background:#eef4f8;text-decoration:none}
.indicator-group{border-top:1px solid var(--line);padding:16px 0}
.indicator-group summary{font-size:15.5px}
.indicators td:first-child{min-width:280px;max-width:520px}
.tag{display:inline-block;background:#eef3f7;color:#52728a;border-radius:20px;padding:1px 8px;font-size:11px;margin-left:4px}
.section-header{flex-wrap:wrap}

/* matrix heatmap */
.matrix td{text-align:center;padding:8px}
.matrix th:first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:240px}
.heat{display:inline-block;min-width:54px;padding:6px 8px;border-radius:8px;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.heat.submitted{background:#dff3ea;color:#1b6e55}.heat.returned{background:#fcefd9;color:#8c5a12}.heat.draft{background:#e3eef9;color:#2c5f92}.heat.not_started{background:#f2f5f8;color:#8a97a6}

@media(max-width:1400px){.kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1100px){.overview-grid{grid-template-columns:1fr}}
@media(max-width:900px){.kpis{grid-template-columns:repeat(2,1fr)}.sidebar nav a{font-size:13.5px}}
@media(max-width:600px){h1,.heading h1{font-size:26px}.kpis{grid-template-columns:1fr 1fr;gap:10px}.kpi{padding:14px}.kpi strong{font-size:26px}.donut{width:150px;height:150px}.card{padding:18px}.icon-link span{display:none}}
@media print{.kpis,.overview-grid{display:none}}

.stats-grid{grid-template-columns:minmax(300px,380px) 1fr}
.unit-cell{min-width:240px}
.segmented{display:inline-flex;background:#eef3f7;border-radius:10px;padding:4px;gap:2px}
.segmented a{padding:8px 14px;border-radius:8px;font-size:13.5px;font-weight:600;color:#4d6a82}
.segmented a:hover{text-decoration:none;color:var(--ink)}
.segmented a.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px #102c4320}
@media(max-width:1100px){.stats-grid{grid-template-columns:1fr}}

/* admin tabs + row editing */
.tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:-4px 0 24px}
.tabs a{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;color:#4d6a82;font-weight:600;font-size:14.5px;border-bottom:3px solid transparent;margin-bottom:-1px}
.tabs a:hover{color:var(--ink);text-decoration:none}
.tabs a.on{color:var(--ink);border-bottom-color:var(--teal-2)}
.tabs b{background:#eef3f7;color:#4d6a82;border-radius:20px;padding:1px 9px;font-size:12px}
.tabs a.on b{background:#e5f5ef;color:#1d7a5c}
.settings-grid{display:grid;grid-template-columns:minmax(300px,400px) 1fr;gap:22px;align-items:start}
.inline-form{display:flex;gap:10px;align-items:center;min-width:min(100%,460px)}
.inline-form input{margin:0;flex:1}
.inline-form .button{margin:0}
form.inline{display:inline}
.actions details.row-edit{display:inline-block;text-align:left}
.row-edit>summary{list-style:none}
.row-edit>summary::-webkit-details-marker{display:none}
.row-edit[open]>summary{margin:0;background:#eef4f8}
.edit-panel{position:absolute;right:28px;z-index:30;width:min(420px,calc(100vw - 48px));background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 48px #102c4333;padding:20px;margin-top:8px;white-space:normal}
.listing td.actions{position:relative}
.subpanel{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}
.icon-link{border:0;background:none;color:var(--blue);cursor:pointer;font-family:inherit}
.danger-link{color:#a72f40}
.danger-link:hover{background:#fdeef0}
.icon-link.disabled{color:#a9b5c2;cursor:not-allowed}
.icon-link.disabled:hover{background:none}
.danger-outline{color:#a72f40;border-color:#efc9cf}
.danger-outline:hover{background:#fdeef0}
.button.danger{background:#b3263b;border-color:#b3263b}
.button.danger:hover{background:#951f31}
.badge.admin{background:#ede9fb;color:#5b3fb0}
tr.inactive td{opacity:.6}
legend .link{margin-left:10px;font-weight:600}
.scroll-options .check span{line-height:1.45}
.form-grid.two{grid-template-columns:1fr 1fr}
[hidden]{display:none!important}

/* confirmation dialog */
.confirm-dialog{border:0;border-radius:16px;padding:30px 30px 24px;width:min(440px,calc(100vw - 32px));box-shadow:0 30px 80px #102c4355;color:var(--ink);text-align:center}
.confirm-dialog::backdrop{background:#102c4366;backdrop-filter:blur(2px)}
.confirm-dialog h2{font-size:21px;margin:14px 0 8px}
.confirm-dialog p{color:#4b5e73;font-size:15px;margin-bottom:24px}
.confirm-icon{display:inline-flex;width:52px;height:52px;border-radius:50%;align-items:center;justify-content:center;background:#e8f1fb;color:#2f6aa3;font-size:24px;font-weight:800}
.is-danger .confirm-icon{background:#fdeef0;color:#b3263b}
.confirm-actions{display:flex;gap:10px;justify-content:center}
.confirm-actions .button{margin:0;min-width:130px}

/* login 2FA */
.otp-input{font-size:26px;letter-spacing:10px;text-align:center;font-variant-numeric:tabular-nums}
.login-card .caption a{font-weight:600}

@media(max-width:1100px){.settings-grid{grid-template-columns:1fr}}
@media(max-width:600px){.inline-form{flex-wrap:wrap}.tabs a span{display:none}.edit-panel{right:0}}
.edit-panel{position:fixed;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);max-height:88vh;overflow:auto;margin:0;z-index:41;width:min(460px,calc(100vw - 32px));padding:26px}
.row-edit[open]::before{content:"";position:fixed;inset:0;background:#102c4359;backdrop-filter:blur(2px);z-index:40;cursor:default}
.panel-close{position:absolute;top:12px;right:12px;border:0;background:#f1f4f8;border-radius:8px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;color:#4d6a82;cursor:pointer}
.panel-title{font-size:18px;margin:0 40px 16px 0}
.nowrap{white-space:nowrap}
.forms-list td:has(>.table-no){min-width:420px}
.editor-section h2{font-size:18px}
.editor-table td:has(>.auto-cell),.editor-table th:has(+th){}
.editor-table td:has(>.auto-cell){min-width:70px;max-width:110px}
.editor-table textarea:disabled{resize:none}
.error-card{text-align:center}
.error-card h2{margin:14px 0 8px}
.error-card .button{margin:6px 4px 0}
.login-card .notice{margin:12px 0 4px;white-space:normal}
.restore-notice{display:flex;flex-wrap:wrap;align-items:center;gap:6px 4px}
.restore-actions{flex-basis:100%;display:flex;gap:8px;margin-top:8px}
.restore-actions .button{margin:0}
@media(max-width:900px){.sidebar .sidebar-bottom{display:flex!important;margin-top:12px;padding-top:12px}.sidebar-bottom .avatar{display:none}.sidebar-bottom small{max-width:none}}
.period-pick label{margin:0}.period-pick select{margin:0;height:40px;font-size:14px;min-width:240px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.section-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search-box{position:relative;margin:0;min-width:320px}.search-box svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#7a8a9c;pointer-events:none}.search-box input{margin:0;height:48px;padding:10px 14px 10px 42px;font-size:15px;border-radius:10px}#search-count{color:var(--teal);font-weight:600}@media(max-width:600px){.section-tools,.search-box{width:100%;min-width:0}}
.edit-panel.wide-panel{width:min(760px,calc(100vw - 32px))}.edit-panel .subpanel{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.picks-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.picks-head h3{margin:0;font-size:16px}.pick-tools{display:flex;gap:14px;margin:6px 0 10px}.form-picks{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;max-height:46vh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:16px}.form-picks .check{margin:0;padding:7px 4px;font-size:13.5px;font-weight:500;border-bottom:1px solid #f0f3f6}.form-picks .check b{color:#52728a;margin-right:4px}.form-picks .check.locked{color:#4b5e73}.form-picks .check.locked input{opacity:.6}
.qr-box{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin:8px 0 20px}.qr-box canvas{width:200px;height:200px;border:1px solid var(--line);border-radius:12px;background:#fff;flex-shrink:0}.qr-box>div{flex:1;min-width:220px}.qr-box .secret{font-size:15px}.steps-2fa{padding-left:20px;margin:0 0 6px;line-height:1.7;font-size:14.5px}@media(max-width:700px){.form-picks{grid-template-columns:1fr}}
.qr-box .secret{letter-spacing:1.5px;word-break:normal;overflow-wrap:normal;line-height:1.8}
.settings-grid .listing td:first-child{min-width:230px}.settings-grid .listing td:nth-child(2){white-space:nowrap}
.button.primary-export{background:#15786b;border-color:#15786b;color:#fff}.button.primary-export:hover{background:#106257}
.upload-card{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;border:1.5px dashed #9fc3bd;background:#f6fbfa}.upload-card h2{display:flex;align-items:center;gap:10px}.upload-card h2 svg{width:22px;height:22px;color:var(--teal)}.upload-card>div:first-child{flex:1;min-width:280px}.upload-card p{margin:0}.upload-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.upload-row input[type=file]{margin:0;width:auto;max-width:320px;background:#fff}
.sheet-preview{border:1px solid var(--line);border-radius:10px;max-height:460px}.sheet-preview table{border-collapse:collapse;font-size:12.5px;min-width:100%}.sheet-preview th,.sheet-preview td{border:1px solid #e6ebf0;padding:6px 8px;vertical-align:top;max-width:220px;min-width:60px}.sheet-preview thead th{position:sticky;top:0;background:#eef3f7;color:#5e7185;font-size:11px;text-align:center;z-index:1}.sheet-preview tbody th{background:#f6f8fa;color:#7a8a9c;font-size:11px;text-align:center;min-width:36px;position:sticky;left:0}.sheet-preview tr.is-header td{background:#e5f0fb;font-weight:600}.sheet-preview tr.is-start td{background:#e8f6f0;outline:1px dashed #6fb59c}
.legend-chip{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin:0 4px 0 10px}.legend-chip.is-header{background:#cfe2f6}.legend-chip.is-start{background:#c9eadb}.import-rows{margin:6px 0 18px}.import-rows label{max-width:260px}
.import-meta{grid-template-columns:260px 1fr 1fr}.import-meta .span-2{grid-column:span 2}.import-cols td{vertical-align:middle}.import-cols td input:not([type=checkbox]),.import-cols td select{margin:0}.import-cols td:nth-child(2){min-width:320px}.import-cols .check{margin:0}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.version-section{margin:18px 0}.version-section .field-edit{display:grid;grid-template-columns:34px 1fr auto auto;gap:14px;align-items:center}.version-section .field-edit label{margin:0}.version-section .new-field{background:#f7fafc;border-radius:8px;padding:10px}.col-key{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;background:#eff4f8;color:#52728a;font-size:12px}.danger-text{color:var(--red)}.older-note{color:#96631c!important}.forms-list form.inline .link{font-weight:600;padding:4px 0;display:inline-flex;gap:6px;align-items:center}
@media(max-width:900px){.import-meta{grid-template-columns:1fr}.import-meta .span-2{grid-column:auto}.version-section .field-edit{grid-template-columns:30px 1fr}}
.contributions>summary{font-size:16px}.contrib-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0 20px}.contrib-kpis div{border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:#fbfcfd}.contrib-kpis b{display:block;font-size:26px;line-height:1.2}.contrib-kpis span{font-size:12.5px;color:var(--muted)}.link-form{grid-template-columns:2fr 2fr 1.2fr auto;margin-bottom:8px}
.links-table td{vertical-align:top}.links-table td:first-child{min-width:240px}.activity{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--muted)}.activity svg{width:15px;height:15px}.activity.on{color:var(--teal)}.contrib-line{margin-bottom:8px;font-size:13.5px}.contrib-line .badge{margin-left:6px}.contrib-title{margin:24px 0 8px}.contribution>summary{font-weight:500;font-size:14px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.review-actions{margin-top:14px;display:flex;gap:10px}
.copy-row{display:flex;gap:10px;align-items:flex-end}.copy-row label{flex:1;margin-bottom:10px}.copy-row .button{margin-bottom:10px}.new-link{white-space:normal}
@media(max-width:900px){.contrib-kpis{grid-template-columns:1fr 1fr}.link-form{grid-template-columns:1fr}}
.unit-chip{display:inline-flex;align-items:center;gap:12px;padding:8px 16px 8px 12px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,#fff,#f6f9fb);letter-spacing:0}.unit-chip svg{width:22px;height:22px;color:var(--teal);flex-shrink:0}.unit-chip small{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.unit-chip b{display:block;font-size:17px;line-height:1.25;color:var(--navy);font-weight:650;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-bar{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:0 2px 6px #102c4306;gap:14px}.filter-bar label{flex:1 1 180px;color:var(--ink)}.filter-bar label.wide{flex:2 1 280px}.filter-label{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:650;letter-spacing:.6px;text-transform:uppercase;color:#5e7185}.filter-label svg{width:15px;height:15px;color:var(--teal)}
.filter-bar select{appearance:none;-webkit-appearance:none;height:48px;border-radius:10px;border-color:#d5dfe8;background:#f9fbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2315786b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;padding:10px 40px 10px 14px;font-size:14.5px;font-weight:500;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s,background-color .15s}.filter-bar select:hover{border-color:#9fc3bd;background-color:#fff}.filter-bar select:focus{background-color:#fff}
.filter-actions{display:flex;gap:10px;align-items:flex-end}.filter-actions .button{height:48px;border-radius:10px}.filter-actions:empty{display:none}
@media(max-width:900px){.unit-chip b{font-size:14px;max-width:52vw}.unit-chip small{display:none}.topbar .unit-chip{padding:6px 10px}}
.import-head .section-header{align-items:flex-start}.add-table{display:flex;gap:10px;align-items:center}.add-table label{margin:0}.add-table select{margin:0;height:44px;min-width:180px}.import-section .eyebrow{display:block;margin-bottom:6px}.import-section h2{margin:0}.sticky-actions{position:sticky;bottom:12px;background:#ffffffee;border:1px solid var(--line);border-radius:12px;padding:12px 16px;box-shadow:0 8px 24px #102c4318;z-index:6}.danger-link{color:var(--red)}
.contributor-card{display:flex;align-items:center;gap:18px}.contributor-card small{display:block;text-transform:uppercase;letter-spacing:1px;font-size:11px;color:var(--muted)}.contributor-card b{display:block;font-size:22px;color:var(--navy);margin:2px 0 4px}.contributor-card .muted{font-size:13px}.avatar-lg{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:14px;background:#e8f4f2;color:var(--teal);flex-shrink:0}.avatar-lg svg{width:26px;height:26px}
/* Every dropdown in the app shares the filter-bar look. */
select{appearance:none;-webkit-appearance:none;border-radius:10px;border-color:#d5dfe8;background:#f9fbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2315786b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:38px;font-weight:500;cursor:pointer;min-height:44px;transition:border-color .15s,background-color .15s}select:hover{border-color:#9fc3bd;background-color:#fff}select:focus{background-color:#fff}select:disabled{cursor:not-allowed}
.period-pick select{height:48px;font-size:15px;min-width:260px}.editor-table td select{min-height:42px;background-color:transparent;border-color:transparent}.editor-table td select:hover,.editor-table td select:focus{border-color:#2d8c99;background-color:#fff}
.upgrade-choice{border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin:18px 0}.upgrade-choice legend{padding:0 6px;font-size:13px;color:var(--ink)}.upgrade-choice .choice{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:10px;margin:4px 0;cursor:pointer;font-weight:400}.upgrade-choice .choice:hover{background:#f6f9fb}.upgrade-choice .choice input{width:18px;height:18px;margin:3px 0 0;flex-shrink:0;accent-color:var(--teal)}.upgrade-choice .choice b{display:block;font-size:14.5px}.upgrade-choice .choice small{display:block;font-size:13px;color:var(--muted);margin-top:3px;line-height:1.5}.upgrade-choice .choice:has(input:checked){background:#eef7f5;outline:1px solid #b9ddd5}
.version-help{background:#f4f9fb;border:1px solid #d9e8ef;border-radius:12px;padding:16px 20px;margin-bottom:20px;font-size:14px}.version-help ol{margin:8px 0 0;padding-left:20px;line-height:1.7}.warn-link{color:#96631c!important}
.older-box{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:8px;padding:8px 12px;background:#fff8ec;border:1px solid #f0dfbf;border-radius:10px}.older-box .older-note{margin:0}.small-button{padding:6px 12px;font-size:12.5px}
.backup-rules{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 18px}.backup-rules div{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fbfcfd}.backup-rules b{display:flex;align-items:center;gap:8px;font-size:14.5px}.backup-rules b svg{color:var(--teal)}.backup-rules span{display:block;color:var(--muted);font-size:13px;margin-top:4px}.backup-title{margin:22px 0 8px}@media(max-width:700px){.backup-rules{grid-template-columns:1fr}}
.status-chips{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 18px}.chip{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:13.5px;font-weight:550;text-decoration:none!important;transition:background .15s,border-color .15s}.chip:hover{border-color:#9fc3bd;background:#f6faf9}.chip b{font-weight:700;color:var(--muted);background:#f0f3f7;border-radius:999px;padding:1px 8px;font-size:12px}.chip .dot{width:8px;height:8px;border-radius:50%;background:#c9d3dd}.chip.draft .dot{background:#5b8fd0}.chip.submitted .dot{background:#2f9271}.chip.returned .dot{background:#d39a3c}.chip.not_started .dot{background:#b8c2cc}.chip.all .dot{background:var(--navy)}.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}.chip.on b{background:#ffffff26;color:#fff}.chip.on .dot{box-shadow:0 0 0 2px #fff}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 4px 0}.pager-info{color:var(--muted);font-size:13.5px}.page-btns{display:flex;gap:6px;align-items:center}.page-btn{min-width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:600;font-size:14px;padding:0 10px}.page-btn:hover:not(:disabled){border-color:#9fc3bd;background:#f6faf9}.page-btn.on{background:var(--navy);border-color:var(--navy);color:#fff}.page-btn:disabled{opacity:.4}.page-btn.on:disabled{opacity:1}.page-gap{color:var(--muted);padding:0 2px}
.link-form{align-items:start}.link-form>label,.link-form>.button{margin-top:0}.link-form>.button{align-self:end}.section-picks{border:1px solid #ccd7e1;border-radius:8px;padding:8px 12px 4px;margin:0 0 16px;max-height:190px;overflow:auto;background:#fff}.section-picks legend{font-size:13px;font-weight:600;padding:0 4px}.section-picks legend small{font-weight:400;color:var(--muted);font-size:12px}.section-picks .check{margin:0;padding:7px 0;font-size:13.5px;border-bottom:1px solid #f0f3f6}.section-picks .check:last-child{border-bottom:0}.contrib-section{font-size:13px;margin:16px 0 8px;color:#52728a}
.version-section .section-title-edit{margin:4px 0 14px}.version-sub{font-size:13px;margin:18px 0 4px;color:#52728a;letter-spacing:.2px}.version-section .field-edit{grid-template-columns:34px 1fr auto auto auto}.version-section .field-edit select{margin:0;width:auto;min-width:150px}.version-section .row-edit{grid-template-columns:34px 1fr auto auto}.version-section .row-edit select{max-width:340px}.tag-new{font-size:11px;font-weight:600;color:#218263;background:#e8f6f0;border-radius:5px;padding:4px 8px}@media(max-width:900px){.version-section .field-edit,.version-section .row-edit{grid-template-columns:30px 1fr}}
.designer{margin:6px 0 4px}.d-info{font-size:13px;margin:0 0 10px}.d-scroll{border:1px solid var(--line);border-radius:10px;max-height:70vh}.designer-table{width:100%}.designer-table thead th{vertical-align:top;min-width:220px;background:#edf3f8}.designer-table thead th.row-index{min-width:45px}.designer-table thead th.fixed-label{min-width:260px;font-size:12px}.designer-table thead textarea{margin:0;min-height:44px;resize:none;overflow:hidden;font-weight:600;font-size:12.5px;line-height:1.45;background:#fff;border:1px solid #cfdae4;padding:8px}.d-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:8px}.d-tools .col-key{width:24px;height:24px;font-size:11px}.d-tools select{margin:0;width:auto;padding:5px 8px;font-size:12px}.d-req{margin:0!important;font-size:12px!important}.d-x,.d-plus{border:1px solid #e3e9ef;background:#fff;color:#a54b59;border-radius:6px;width:30px;height:30px;font-size:17px;line-height:1;padding:0}.d-plus{color:var(--teal)}.d-x:hover{background:#fff1f2}.d-plus:hover{background:#eef9f4}.d-tools .d-x{margin-left:auto}.d-note{font-size:11.5px;color:var(--muted)}.d-addcol{min-width:150px!important;vertical-align:middle!important;text-align:center;background:#f7fafc!important}.designer-table th.fixed-label input{margin:0;font-weight:500;font-size:12.5px;background:#fff;border:1px solid #dbe3ea;padding:8px}.designer-table td{background:#fff}.d-cell{display:block;height:30px;border-radius:4px;background:repeating-linear-gradient(135deg,#f7f9fb 0 6px,#fff 6px 12px)}.d-actions{white-space:nowrap;min-width:80px!important;width:80px}.d-actions button+button{margin-left:6px}.designer-table .is-removed{opacity:.45}.designer-table th.is-removed textarea,.designer-table tr.is-removed input{text-decoration:line-through}.designer-table tr.is-removed,.designer-table tr.is-removed td{background:#fff7f8}.designer-table th.is-new{background:#e8f6f0}.designer-table tr.is-new th.fixed-label{background:#eef9f4}.d-foot{display:flex;align-items:center;gap:14px;margin-top:12px}.d-sample td{height:46px}
.version-section{min-width:0}.d-tools .d-req{order:5;flex-basis:100%}.d-tools .d-x{order:4}.d-tools .d-note{order:3}
.segmented button{border:0;background:none;padding:8px 14px;border-radius:8px;font-size:13.5px;font-weight:600;color:#4d6a82}.segmented button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px #102c4320}.d-mode{margin:0 0 12px}.mode-pick{margin:4px 0 16px}.mode-pick .choice{margin-bottom:8px}
.designer-table th.fixed-label .d-rowhead{margin:0 0 6px;font-weight:600;font-size:12.5px;background:#fff;border:1px solid #cfdae4;padding:8px}
.form-help{display:grid;grid-template-columns:1fr auto auto;gap:10px 12px;align-items:start;padding:14px 18px}.form-help .help-part summary{display:flex;align-items:center;gap:8px;font-size:14px;padding:9px 0;margin:0}.form-help .help-part summary svg{width:17px;height:17px;color:var(--teal)}.form-help details[open]>summary{margin-bottom:6px}.form-help .help-text p{margin:0 0 6px;font-size:13px}.form-help .button{padding:9px 14px}.no-data-reason{grid-column:1/-1}.no-data-reason:empty{display:none}.no-data-label{margin:0;font-size:12.5px;font-weight:600;color:#76541e}.no-data-label textarea{min-height:56px;margin-top:6px}.button.no-data-on{background:#fff9ed;color:#76541e;border-color:#ecd9b1}.button.no-data-on:hover{background:#fff3dc}@media(max-width:700px){.form-help{grid-template-columns:1fr}}
.form-help .help-title{display:flex;align-items:center;gap:8px;font-size:14px;margin:9px 0 8px}.form-help .help-title svg{width:17px;height:17px;color:var(--teal)}
#assign-table .row-actions{white-space:nowrap;text-align:right}#assign-table .row-actions .icon-link{margin-right:14px}
#assign-table td{vertical-align:middle}#assign-table .row-actions{width:1%;white-space:nowrap}#assign-table .row-actions .icon-link{margin-right:0}#assign-table .row-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;border:1px solid #dbe3ea;border-radius:8px;padding:0 12px;background:#fff;font-size:12.5px;font-weight:600;vertical-align:middle;text-decoration:none}#assign-table .row-actions a:hover{background:#f5f8fb}#assign-table .row-actions .act-stats{width:118px;margin-right:8px}#assign-table .row-actions .act-open{width:92px;background:var(--blue);border-color:var(--blue);color:#fff}#assign-table .row-actions .act-open:hover{background:#123c5b}#assign-table .row-actions .act-open svg,#assign-table .row-actions .act-stats svg{width:15px;height:15px}.contrib-cell{white-space:nowrap}.contrib-cell .contrib-people{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ink)}.contrib-cell .contrib-people svg{width:15px;height:15px;color:var(--teal)}.contrib-cell .badge,.contrib-cell small{display:block;width:max-content;margin-top:5px}
#assign-table .row-actions a{padding:0 10px}#assign-table .row-actions .act-stats{width:104px;margin-right:6px}#assign-table .row-actions .act-open{width:80px}#assign-table th,#assign-table td{padding-left:11px;padding-right:11px}
.sort-box{margin:0}.sort-box select{margin:0;height:46px;width:auto;min-width:230px;font-size:13px;font-weight:500}.th-sort{border:0;background:none;padding:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:5px}.th-sort:hover{color:var(--ink)}.th-sort::after{content:'↕';opacity:.35;font-size:11px}.th-sort.on{color:var(--teal)}.th-sort.on[data-dir=up]::after{content:'↑';opacity:1}.th-sort.on[data-dir=down]::after{content:'↓';opacity:1}.th-sort.on[data-dir='']::after{content:'↕'}
.audit-filters .date-f{flex:0 0 165px;min-width:150px}.audit-filters input[type=date],.audit-filters input[type=search]{height:43px;margin-top:6px;font-size:12.5px}.audit-filters .filter-actions{display:flex;gap:8px;align-items:end}.audit-filters .filter-actions .button{height:43px}
.audit-card{padding:8px 8px 14px}.audit-table td{vertical-align:middle}.audit-table td small{display:block}.audit-table td:first-child{min-width:70px;max-width:none}.audit-table td b{font-size:13px}.audit-table .day-row th{background:#f4f7fa;color:var(--ink);font-size:12px;letter-spacing:.3px;padding:10px 13px;position:sticky;top:0;z-index:1;text-transform:none}.audit-detail{max-width:340px;color:#3c4f63;overflow-wrap:anywhere}.audit-table .nowrap{white-space:nowrap}
.audit-badge{display:inline-flex;align-items:center;gap:7px;font-weight:600;font-size:12.5px;color:var(--ink)}.audit-badge i{width:9px;height:9px;border-radius:50%;flex-shrink:0;background:#9aa8b6}.g-security i{background:#3475b0}.g-filling i{background:#218263}.g-contrib i{background:#c48a2c}.g-forms i{background:#7a5bb5}.g-admin i{background:#52728a}.g-data i{background:#a72f40}
.audit-pager{display:flex;justify-content:space-between;align-items:center;padding:14px 10px 0}.audit-pager a.page-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

/* who filled a row accepted from a lecturer */
.editor-table th.row-index:has(.row-by){min-width:160px}.editor-table th.row-index .row-by{margin-left:auto;margin-right:auto;text-align:left}.row-by{display:flex;flex-direction:column;gap:3px;margin-top:7px;padding:5px 8px;border-radius:8px;background:#e7f4f1;border:1px solid #bfe2da;color:#0f5f54;font-size:12px;font-weight:600;line-height:1.3;white-space:normal;max-width:200px}.row-by::before{content:"Plotësuar nga";font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#4d8a80}.row-by.edited{background:#fdf6e7;border-color:#efd9a6;color:#7a5410}.row-by.edited::before{color:#a07a2c}.row-by-note{font-size:11px;font-weight:500;color:#8a6a2a}.row-by-note::before{content:"· "}
/* Lecturer access: one shared page, a personal code, a list of tables */
.guest-code{text-align:center}.guest-code .avatar-lg{margin:0 auto 14px}.guest-code input{font-size:22px;letter-spacing:3px;text-align:center;text-transform:uppercase;font-family:ui-monospace,Menlo,monospace}
.contributor-card .guest-exit{margin-left:auto}
.guest-tables{display:grid;gap:12px}.guest-table{display:flex;align-items:center;gap:18px;text-decoration:none;color:var(--ink);transition:border-color .15s,box-shadow .15s}.guest-table:hover{border-color:var(--teal);box-shadow:var(--shadow)}
.guest-num{flex-shrink:0;width:56px;height:56px;border-radius:14px;background:#e8f4f2;color:var(--teal);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:17px}
.guest-main{flex:1;min-width:0}.guest-main b{display:block;font-size:17px;color:var(--navy);margin-bottom:4px}.guest-main small{display:block;color:var(--muted);font-size:13px}
.guest-state{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:130px}.guest-state small{color:var(--muted);font-size:12px}
.guest-entry{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);color:var(--teal);font-size:14px;text-decoration:none}.guest-entry svg{width:17px;height:17px}
.code-input{font-family:ui-monospace,Menlo,monospace;font-size:20px;letter-spacing:2px}
.links-table small.also{color:var(--teal);font-weight:600}
.link-tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;margin:12px 0 20px}
.link-table{border:1px solid var(--line);border-radius:10px;padding:10px 14px 6px;margin:0;background:#fff}.link-table.on{border-color:var(--teal);background:#f4faf9}.link-table legend{font-size:14px;padding:0 6px;color:var(--navy)}.link-table[disabled]{opacity:.55}
.link-edit-actions{display:flex;gap:10px}
@media (max-width:700px){.guest-table{flex-wrap:wrap}.guest-state{align-items:flex-start}}
.guest-code input::placeholder{text-transform:none;letter-spacing:1px;font-size:16px}
