:root{--fta:#087f8c;--ink:#102a3a;--ink-2:#24445a;--sub:#475d6e;--line:#dbe4eb;--canvas:#f4f7fa;--surface:#ffffff;--surface-2:#f4f8fb;--fta-text:#055f69;--fs-add:4px;color-scheme:light}html{font-size:calc(16px + var(--fs-add))}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:calc(14px + var(--fs-add));line-height:1.6;-webkit-font-smoothing:antialiased}a{color:var(--fta);text-decoration:none}svg{width:19px;height:19px;flex-shrink:0}a:focus-visible,button:focus-visible{outline:3px solid #69c9cf;outline-offset:4px}.app-shell{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:100vh}.app-sidebar{background:var(--surface);border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;gap:32px;min-height:100vh;position:sticky;top:0;align-self:start}.brand{display:flex;gap:12px;align-items:center;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--fta);color:white;font-weight:750;letter-spacing:-1px;border-radius:13px;box-shadow:0 7px 18px #087f8c20}.brand-copy strong{display:block;font-size:calc(15px + var(--fs-add));letter-spacing:-.4px}.brand-copy span{font-size:calc(11px + var(--fs-add));color:var(--sub)}.nav-section-label{font-size:calc(11px + var(--fs-add));letter-spacing:1.6px;color:var(--sub);font-weight:650;margin:0 12px 15px}.app-nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;color:var(--sub);font-size:calc(12px + var(--fs-add));font-weight:550}.nav-item:hover{color:var(--ink);background:var(--surface-2)}.nav-item.active{color:var(--fta-text);background:#e5f4f3;font-weight:650}.sidebar-footer{margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}.sidebar-footer button{background:transparent;border:0;color:var(--sub);box-shadow:none;font-size:calc(12px + var(--fs-add));padding:10px 13px}.sidebar-meta{font-size:calc(11px + var(--fs-add));color:var(--sub);padding:10px 13px}.app-workspace{min-width:0}.topbar{background:var(--surface);border-bottom:1px solid var(--line);min-height:86px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 34px}.topbar-eyebrow{color:var(--sub);font-size:calc(11px + var(--fs-add))}.topbar-title{font-weight:650;font-size:calc(13px + var(--fs-add))}.account-chip{display:flex;align-items:center;gap:10px;color:var(--ink);max-width:100%}.avatar{width:38px;height:38px;border-radius:50%;background:var(--surface-2);color:var(--ink-2);display:grid;place-items:center;font-size:calc(12px + var(--fs-add));font-weight:650;flex-shrink:0}.account-name{font-size:calc(12px + var(--fs-add));font-weight:650}.account-role{font-size:calc(11px + var(--fs-add));color:var(--sub)}.content{padding:34px;max-width:1450px;margin:auto;min-width:0}.content>h1,.dashboard-intro h1{font-size:calc(29px + var(--fs-add));font-weight:750;letter-spacing:-1px;margin:0 0 8px;line-height:1.3}.content>p,.dashboard-intro p{color:var(--sub);margin-bottom:26px;font-size:calc(13px + var(--fs-add))}.dashboard-intro{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.month-chip{background:var(--surface);border:1px solid var(--line);padding:9px 14px;border-radius:9px;display:flex;align-items:center;gap:8px;font-size:calc(11px + var(--fs-add));color:var(--sub);white-space:nowrap}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 16px #18394b03;margin-bottom:22px;overflow:hidden}.card-header{background:transparent;font-weight:650;font-size:calc(13px + var(--fs-add));border-bottom:1px solid var(--line);padding:18px 22px}.card-body{padding:22px}.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}.summary .card{margin:0;padding:22px;position:relative;min-height:132px}.summary .card>span:first-child{font-size:calc(11px + var(--fs-add));color:var(--sub);font-weight:550}.big{font-size:calc(36px + var(--fs-add));font-weight:750;letter-spacing:-1.3px;margin-top:7px;line-height:1.3}.summary .card::after{content:"";height:5px;width:33px;background:#b6e3df;border-radius:3px;position:absolute;right:22px;bottom:25px}.summary .card:nth-child(2)::after{background:#f4dca5}.summary .card:nth-child(3)::after{background:#bddcf8}.dashboard-panels{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}.report-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}.report-row:last-child{border:0}.report-row strong{display:block;font-size:calc(12px + var(--fs-add))}.report-row small{color:var(--sub);font-size:calc(11px + var(--fs-add))}.row-end{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.empty-state{color:var(--sub);font-size:calc(12px + var(--fs-add));padding:24px 0}.forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.forms .wide{grid-column:1/-1}label{display:block;font-size:calc(12px + var(--fs-add));font-weight:600;color:var(--sub)}.form-control,.form-select{margin-top:7px;border-color:var(--line);border-radius:9px;padding:11px 13px;min-height:45px;font-size:calc(14px + var(--fs-add));color:var(--ink)}.form-control:focus,.form-select:focus{border-color:#52b9c1;box-shadow:0 0 0 3px #087f8c15}.form-control[readonly]{background:var(--surface-2);color:var(--sub)}textarea.form-control{min-height:105px}.btn{font-size:calc(12px + var(--fs-add));font-weight:650;padding:10px 16px;border-radius:9px;min-height:40px;white-space:normal}.btn-primary{background:var(--fta);border-color:var(--fta);box-shadow:0 3px 9px #087f8c12}.btn-primary:hover,.btn-primary:focus{background:#075e68;border-color:#075e68}.btn-outline-secondary{color:var(--sub);border-color:var(--line);background:var(--surface)}.btn-outline-secondary:hover{color:var(--ink);background:var(--surface-2);border-color:var(--line)}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.actions .btn{font-size:calc(11px + var(--fs-add));padding:8px 12px}.status{display:inline-flex;gap:5px;align-items:center;background:var(--surface-2);color:var(--sub);font-weight:650;font-size:calc(11px + var(--fs-add));padding:5px 8px;border-radius:6px;letter-spacing:.2px;white-space:normal;max-width:100%}.status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.status[data-status=APPROVED],.status[data-status=PAID],.status[data-status=REVIEWED],.status[data-status=ACTIVE]{background:#e6f5eb;color:#25734f}.status[data-status=PENDING],.status[data-status=PENDING_CLIENT_APPROVAL],.status[data-status=ON_HOLD]{background:#fff5dd;color:#7a5608}.status[data-status=OVERDUE],.status[data-status=CORRECTION_REQUESTED],.status[data-status=STOPPED],.status[data-status=CANCELLED]{background:#fce9e9;color:#9b3535}.status[data-status=ISSUED],.status[data-status=SUBMITTED]{background:#eaf1fc;color:#34559a}.table-responsive{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow-x:auto;margin:20px 0}.table{font-size:calc(12px + var(--fs-add));margin:0;--bs-table-bg:transparent}.table thead th{background:var(--surface-2);color:var(--sub);font-size:calc(11px + var(--fs-add));font-weight:650;text-transform:uppercase;letter-spacing:.5px;padding:14px 16px;border-color:var(--line)}.table td{padding:16px;color:var(--ink-2);border-color:var(--line);vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:var(--surface-2)}h2{font-size:calc(15px + var(--fs-add));font-weight:650;margin:18px 0 8px}.alert{border:0;border-radius:10px;font-size:calc(13px + var(--fs-add))}.alert-success{background:#e6f5eb;color:#25734f}.alert-danger{background:#fce9e9;color:#9b3535}pre{font-size:calc(12px + var(--fs-add));white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);padding:14px;border-radius:9px;color:var(--sub)}.content>form{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:16px;max-width:880px;margin:20px 0}.muted{color:var(--sub)}.mobile-brand{display:none}
.auth-page{background:var(--surface)}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.auth-story{background:#102f3e;color:white;padding:45px 9%;display:flex;flex-direction:column;justify-content:space-between;gap:40px}.auth-story .brand{color:white}.auth-story .brand-copy span{color:#9cbecb}.auth-story .brand-mark{background:#2fadb2}.auth-kicker{font-size:calc(11px + var(--fs-add));text-transform:uppercase;letter-spacing:2px;color:#7ccec5;font-weight:650;margin-bottom:18px}.auth-story h1{font-size:clamp(32px,3.8vw,51px);font-weight:750;letter-spacing:-1.8px;line-height:1.17;max-width:480px}.auth-story h1 span{color:#78d9cc}.auth-description{max-width:380px;font-size:calc(13px + var(--fs-add));line-height:1.9;color:#a0c2ce;margin-top:24px}.auth-workflow{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}.auth-workflow span{font-size:calc(11px + var(--fs-add));padding:7px 10px;border:1px solid #315566;border-radius:8px;color:#b7d8e1}.auth-preview{max-width:400px;background:#1c3f4d;border:1px solid #315766;border-radius:17px;padding:20px;margin-top:35px;box-shadow:0 25px 50px #001c3040;transform:rotate(-2deg)}.auth-preview-top{color:#bfdce5;font-size:calc(11px + var(--fs-add));margin-bottom:15px;display:flex;justify-content:space-between}.auth-preview-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #315566}.auth-preview-row:last-child{border:0}.auth-preview-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:#2b5b65;color:#8ed9cf}.auth-preview-row strong{font-size:calc(12px + var(--fs-add));font-weight:600}.auth-preview-row small{display:block;color:#8db3c0;font-size:calc(11px + var(--fs-add))}.auth-preview-check{margin-left:auto;color:#8ed9cf}.auth-story-footer{font-size:calc(11px + var(--fs-add));color:#82a8b6}.auth-content{display:flex;align-items:center;justify-content:center;padding:48px 9%;min-width:0}.auth-form{width:100%;max-width:375px}.auth-form .auth-kicker{color:var(--fta);margin-bottom:12px}.auth-form h1{font-size:calc(29px + var(--fs-add));font-weight:750;letter-spacing:-.8px;margin-bottom:10px}.auth-form>p{color:var(--sub);font-size:calc(13px + var(--fs-add));margin-bottom:30px}.auth-form .form-control{min-height:49px;background:var(--surface-2)}.auth-form .btn{width:100%;min-height:47px;margin-top:5px}.auth-footnote{color:var(--sub);font-size:calc(11px + var(--fs-add));text-align:center;margin-top:25px}.auth-version{font-size:calc(11px + var(--fs-add));color:var(--sub);text-align:center;margin-top:35px}
@media(max-width:1050px){.app-shell{grid-template-columns:260px minmax(0,1fr)}.app-sidebar{padding-inline:13px}.nav-item{padding:10px;font-size:calc(11px + var(--fs-add))}.content,.topbar{padding:25px}.dashboard-panels{grid-template-columns:1fr}.auth-story,.auth-content{padding:35px 7%}}@media(max-width:760px){.app-shell{display:flex;flex-direction:column}.app-sidebar{order:1;position:static;min-height:0;padding:14px 16px;gap:12px;border:0;border-bottom:1px solid var(--line)}.app-sidebar>.brand,.nav-section-label{display:none}.app-nav{display:flex;gap:5px;flex-wrap:wrap}.nav-item{font-size:calc(11px + var(--fs-add));padding:8px 10px;gap:7px}.nav-item svg{width:15px;height:15px}.sidebar-footer{margin:0;padding:0;border:0;display:flex;align-items:center;justify-content:space-between}.sidebar-footer button{font-size:calc(11px + var(--fs-add));padding:6px 10px}.sidebar-meta{padding:0}.app-workspace{display:contents}.topbar{order:0;padding:16px;min-height:75px}.content{order:2;padding:24px 16px;width:100%}.topbar-context{display:none}.mobile-brand{display:flex}.mobile-brand .brand-mark{width:35px;height:35px;font-size:calc(12px + var(--fs-add))}.mobile-brand .brand-copy strong{font-size:calc(12px + var(--fs-add))}.mobile-brand .brand-copy span{font-size:calc(11px + var(--fs-add))}.avatar{width:32px;height:32px;font-size:calc(11px + var(--fs-add))}.account-name{max-width:110px;overflow-wrap:anywhere;font-size:calc(11px + var(--fs-add))}.account-role{font-size:calc(11px + var(--fs-add))}.dashboard-intro{flex-wrap:wrap}.dashboard-intro h1,.content>h1{font-size:calc(25px + var(--fs-add))}.summary{gap:9px;margin:23px 0}.summary .card{padding:14px;border-radius:12px;min-height:110px}.summary .card>span:first-child{font-size:calc(11px + var(--fs-add));line-height:1.4}.summary .big{font-size:calc(27px + var(--fs-add))}.summary .card::after{display:none}.forms{grid-template-columns:1fr;gap:8px}.forms .wide{grid-column:auto}.card{border-radius:12px}.card-header,.card-body{padding:17px}.report-row{flex-wrap:wrap;align-items:flex-start}.form-control,.form-select{font-size:calc(16px + var(--fs-add))}.auth-shell{grid-template-columns:1fr}.auth-story{padding:25px;gap:22px}.auth-story h1{font-size:calc(31px + var(--fs-add));letter-spacing:-1px}.auth-description,.auth-preview,.auth-story-footer{display:none}.auth-workflow{margin-top:18px;gap:5px}.auth-workflow span{font-size:calc(11px + var(--fs-add));padding:5px 8px}.auth-content{padding:35px 25px}.auth-form{max-width:440px}.auth-form h1{font-size:calc(25px + var(--fs-add))}}@media(max-width:390px){.summary{grid-template-columns:1fr}.summary .card{display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:84px}.summary .big{margin:0}.summary .card>span:first-child{font-size:calc(12px + var(--fs-add))}.account-name{max-width:80px}}
@media(prefers-reduced-motion:reduce){.auth-preview{transform:none}}@media print{.app-sidebar,.topbar,.actions{display:none}.app-shell{display:block}.content{padding:0}.card{box-shadow:none}body{background:var(--surface)}}

/* v1.1 monthly workflow */
details{border:1px solid var(--line);border-radius:12px;padding:14px;margin:14px 0}summary{cursor:pointer;font-weight:650;color:#145e59}details[open]>summary{margin-bottom:18px}input[type=checkbox]{width:18px;height:18px;accent-color:#148479;vertical-align:middle}fieldset legend{font-size:calc(14px + var(--fs-add));font-weight:650}.summary strong{display:block}.forms select{min-width:150px}.card-body>form{margin-block:12px}
/* v1.2 searchable suggestions and list tables */
.suggestion{position:relative}.suggestions{position:absolute;left:0;right:0;top:100%;z-index:50;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 25px #173d5520;max-height:260px;overflow:auto}.suggestions[hidden]{display:none}.suggestions button{display:block;width:100%;text-align:left;padding:12px 14px;border:0;background:var(--surface);color:var(--ink-2)}.suggestions button:hover,.suggestions button.highlight{background:var(--surface-2)}.forms fieldset{grid-column:1/-1}.data-grid{padding:20px}.grid-bulk{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:24px}.grid-bulk label{min-width:180px;margin:0!important}.grid-bulk button{margin-bottom:2px}.grid-tools,.grid-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:12px 0}.grid-tools label{display:flex;align-items:center;gap:7px;white-space:nowrap}.grid-tools select{width:auto}.grid-table{min-width:950px;margin:0}.grid-table thead th{background:var(--surface);border:1px solid var(--line);padding:15px 12px}.grid-table thead button{border:0;background:transparent;color:var(--sub);font:inherit;text-align:left;white-space:nowrap}.grid-table thead button span{color:var(--sub);margin-left:8px}.grid-table tbody tr:nth-child(odd){background:var(--surface-2)}.grid-table td{border:1px solid var(--line);padding:16px 12px;vertical-align:top;max-width:350px}.grid-table details{min-width:200px;background:var(--surface)}.grid-table [hidden]{display:none!important}.grid-table tr[hidden]{display:none!important}.grid-footer{font-size:calc(13px + var(--fs-add))}.grid-bulk [data-grid-selected]{font-size:calc(13px + var(--fs-add))}.table-check{accent-color:#298ace!important}.grid-bulk .btn-primary{background:#1f6fb0;border-color:#1f6fb0}.grid-table input[type=checkbox]{width:16px;height:16px}.grid-table .btn{white-space:nowrap;margin-bottom:6px}.grid-table .status[data-status=PAID]{background:#dff4d9;color:#236c27}@media(max-width:650px){.data-grid{padding:12px}.grid-tools{align-items:stretch;flex-direction:column}.grid-tools input{min-width:0}.grid-bulk{flex-direction:column;align-items:stretch}.grid-footer{align-items:start;flex-direction:column}}
.grid-tools select{width:80px;min-width:80px}
.grid-integrated-filters{display:flex;flex-wrap:wrap;gap:16px;padding:16px 0 22px;border-bottom:1px solid var(--line);margin-bottom:20px}.grid-integrated-filters label{min-width:180px}.data-grid>form.forms{box-shadow:none;margin:0 0 20px;border:0;padding:4px 0 20px;max-width:none}.subject-enrolments{grid-column:1/-1}.enrolment-row{display:grid;grid-template-columns:1fr 2fr;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.enrolment-row>label:first-child{font-weight:600}@media(max-width:600px){.grid-integrated-filters{display:grid;grid-template-columns:1fr}.enrolment-row{grid-template-columns:1fr}}

/* ===== v1.6 refinement: calmer, tidier, consistent ===== */
:root{--fta-soft:#e6f4f5;--radius:14px;--shadow:0 1px 2px rgba(25,52,69,.05),0 6px 20px rgba(25,52,69,.04)}
body{font-feature-settings:"tnum" 1;-webkit-font-smoothing:antialiased}
.content{max-width:1240px}
.content>h1{margin:6px 0 4px;font-size:1.7rem;letter-spacing:-.02em}
.content>h1+p{color:var(--sub);margin:0 0 22px;max-width:70ch}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:6px 0 22px}
.page-head h1{margin:0 0 4px;font-size:1.7rem;letter-spacing:-.02em}.page-head p{margin:0;color:var(--sub);max-width:70ch}
.card{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:18px}
.card-header{font-weight:650;background:transparent;border-bottom:1px solid var(--line);padding:14px 22px}
.card-body{padding:20px 22px}
label{font-weight:550;color:var(--ink);font-size:.86rem}
.form-control,.form-select,textarea{border-radius:10px;border-color:var(--line);min-height:42px;transition:border-color .15s,box-shadow .15s}
.form-control:focus,.form-select:focus,textarea:focus{border-color:var(--fta);box-shadow:0 0 0 3px rgba(8,127,140,.14);outline:0}
textarea.form-control{min-height:92px}
.btn{border-radius:10px;font-weight:600;padding:.55rem 1rem;transition:background .15s,transform .05s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--fta);border-color:var(--fta)}.btn-primary:hover{background:#066c77;border-color:#066c77}
.btn-outline-secondary{border-color:var(--line);color:var(--ink);background:var(--surface)}.btn-outline-secondary:hover{background:var(--fta-soft);border-color:var(--fta);color:var(--fta-text)}
form.card.forms{align-items:end}form.card.forms .btn{width:auto;justify-self:start}
.forms>label,.forms>.suggestion{margin-bottom:0}
.grid-bulk{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px 20px;background:var(--fta-soft);border-bottom:1px solid var(--line)}
.grid-bulk label{margin:0}.grid-bulk .btn{white-space:nowrap}
.grid-tools{display:flex;justify-content:space-between;gap:12px;padding:14px 20px}
.grid-table thead th{background:var(--surface-2);font-size:.74rem;text-transform:uppercase;letter-spacing:.04em;color:var(--sub);white-space:nowrap}
.grid-table td{vertical-align:top;font-size:.9rem}.grid-table tbody tr:hover{background:var(--surface-2)}
.table-responsive{border-radius:0 0 var(--radius) var(--radius)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86rem;letter-spacing:.02em;color:var(--ink);white-space:nowrap}
.muted{color:var(--sub);font-size:.85rem}
.status{border-radius:999px;padding:3px 10px;font-size:.72rem;font-weight:650;letter-spacing:.01em;white-space:nowrap}
.status[data-status=MISSING]{background:#fdeceb;color:#a3342d}.status[data-status=DRAFT]{background:var(--surface-2);color:var(--sub)}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:18px;margin-bottom:18px;align-items:start}
.settings-grid .forms{grid-template-columns:1fr;gap:6px}
.plan-slot{display:grid;grid-template-columns:200px 1fr;gap:14px;align-items:start;border-top:1px dashed var(--line);padding-top:14px}.plan-slot[hidden]{display:none}
.plan-slot label{margin-bottom:10px}
.alert{border-radius:12px;border:0}.alert-success{background:#e4f6ee;color:#116149}.alert-danger{background:#fdeceb;color:#8f2b25}
.report-row{border-bottom:1px solid var(--line);padding:12px 0}.report-row:last-child{border-bottom:0}
.nav-item{border-radius:10px}.nav-item.active{background:var(--fta-soft);color:var(--fta-text)}
details>summary{cursor:pointer;color:var(--fta-text);font-weight:600}
@media(max-width:720px){.plan-slot{grid-template-columns:1fr}.content>h1{font-size:1.45rem}.card-body{padding:16px}}

/* ===== v1.7 ===== */
.topbar-tools{display:flex;align-items:center;gap:12px;margin-left:auto;margin-right:14px}
.lang-switch{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:var(--surface)}
.lang-switch a{padding:5px 11px;font-size:.78rem;font-weight:650;color:var(--sub);text-decoration:none}
.lang-switch a.active{background:var(--fta);color:#fff}
.task-bell{position:relative}.task-bell>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;background:#fff7e6;border:1px solid #f1d9a6;color:#8a5a00;font-weight:700}
.task-bell>summary::-webkit-details-marker{display:none}
.bell-icon{font-size:1.05rem;animation:bellpulse 2s ease-in-out infinite}.bell-count{min-width:20px;text-align:center;background:#e0a100;color:#fff;border-radius:999px;font-size:.72rem;padding:1px 6px}.bell-count.overdue{background:#c0392b}
@keyframes bellpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}
.task-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(380px,86vw);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(25,52,69,.18);padding:14px 16px;z-index:50}
.task-panel ul,.task-dialog ul{list-style:none;margin:10px 0 0;padding:0;max-height:320px;overflow:auto}
.task-panel li,.task-dialog li{padding:9px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
.task-panel li a,.task-dialog li a{color:var(--ink);font-weight:600;text-decoration:none}.task-panel li a:hover,.task-dialog li a:hover{color:var(--fta)}
.task-panel small,.task-dialog small{color:var(--sub)}.task-panel li.overdue small,.task-dialog li.overdue small{color:#c0392b;font-weight:700}
.task-dialog{border:0;border-radius:18px;padding:26px 28px;width:min(560px,92vw);box-shadow:0 24px 70px rgba(15,35,50,.35)}.task-dialog::backdrop{background:rgba(15,35,50,.5)}
.task-dialog h2{font-size:1.3rem;margin:0 0 6px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.filter-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.pill{padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:.84rem;font-weight:600;text-decoration:none}.pill:hover{border-color:var(--fta);color:var(--fta-text)}.pill.active{background:var(--fta);border-color:var(--fta);color:#fff}
.star-input{display:inline-flex;flex-direction:row-reverse;gap:2px;border:0;padding:0;margin:0 0 14px}.star-input legend{float:none;font-size:.86rem;font-weight:550;margin-bottom:4px;width:auto}
.star-input input{position:absolute;opacity:0;width:1px;height:1px}.star-input label{font-size:2rem;line-height:1;color:#d3dbe2;cursor:pointer;transition:color .1s;margin:0}
.star-input label:hover,.star-input label:hover~label,.star-input input:checked~label{color:#f2b01e}.star-input input:focus-visible+label{outline:2px solid var(--fta);border-radius:4px}
.stars{color:#f2b01e;letter-spacing:2px;font-size:1.05rem}
.info-list{display:grid;grid-template-columns:200px 1fr;gap:10px 18px;margin:0}.info-list dt{color:var(--sub);font-weight:550}.info-list dd{margin:0}
.invoice-edit-row{display:grid;grid-template-columns:1fr 160px;gap:14px}.manual-invoice{padding:14px 20px;margin-bottom:16px}.manual-invoice>summary{font-weight:650;color:var(--fta-text)}
@media(max-width:720px){.info-list{grid-template-columns:1fr}.invoice-edit-row{grid-template-columns:1fr}.topbar-tools{margin-right:6px}}
details.task-bell{border:0;background:none;padding:0;box-shadow:none;margin:0}
.task-dialog li a,.task-panel li a{border:0;box-shadow:none;background:none;padding:0;display:inline}
.task-dialog li,.task-panel li{border-left:0;border-right:0;border-bottom:0;background:none;box-shadow:none}
.task-dialog ul,.task-panel ul{border:0}

/* ===== v1.7 theme: dark mode ===== */
[data-theme=dark]{--canvas:#0e1a23;--surface:#16242e;--surface-2:#1b2d39;--ink:#eaf2f7;--ink-2:#cddbe5;--sub:#a8bccb;--line:#2d4352;--fta-text:#63d3dd;--fta-soft:#12373d;color-scheme:dark;--shadow:0 1px 2px rgba(0,0,0,.4),0 6px 20px rgba(0,0,0,.3)}
[data-theme=dark] body{background:var(--canvas);color:var(--ink)}
[data-theme=dark] a{color:var(--fta-text)}
[data-theme=dark] .btn-primary,[data-theme=dark] .btn-primary:hover{color:#fff}
[data-theme=dark] .btn-outline-secondary{background:var(--surface);color:var(--ink);border-color:#3a5366}
[data-theme=dark] .btn-outline-secondary:hover{background:var(--fta-soft);color:var(--fta-text);border-color:var(--fta)}
[data-theme=dark] .form-control,[data-theme=dark] .form-select,[data-theme=dark] textarea,[data-theme=dark] input,[data-theme=dark] select{background-color:var(--surface-2);color:var(--ink);border-color:#3a5366}
[data-theme=dark] .form-control::placeholder,[data-theme=dark] textarea::placeholder{color:#8ea6b8}
[data-theme=dark] .form-control:disabled,[data-theme=dark] .form-control[readonly],[data-theme=dark] input:disabled,[data-theme=dark] select:disabled{background-color:#14212a;color:#9db2c2}
[data-theme=dark] .form-select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cddbe5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}
[data-theme=dark] .table{--bs-table-bg:transparent;--bs-table-color:var(--ink);--bs-table-border-color:var(--line);color:var(--ink)}
[data-theme=dark] .grid-table thead th,[data-theme=dark] thead th{background:var(--surface-2);color:var(--sub)}
[data-theme=dark] .grid-table tbody tr:hover,[data-theme=dark] tbody tr:hover{background:#1d3340}
[data-theme=dark] .card,[data-theme=dark] .card-header,[data-theme=dark] aside,[data-theme=dark] .app-sidebar,[data-theme=dark] .topbar{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .nav-item{color:var(--sub)}[data-theme=dark] .nav-item:hover{background:var(--surface-2);color:var(--ink)}
[data-theme=dark] .nav-item.active{background:var(--fta-soft);color:var(--fta-text)}
[data-theme=dark] .pill{background:var(--surface);color:var(--ink);border-color:#3a5366}[data-theme=dark] .pill.active{background:var(--fta);color:#fff;border-color:var(--fta)}
[data-theme=dark] .grid-bulk{background:var(--fta-soft)}
[data-theme=dark] .lang-switch{background:var(--surface);border-color:#3a5366}[data-theme=dark] .lang-switch a{color:var(--sub)}[data-theme=dark] .lang-switch a.active{background:var(--fta);color:#fff}
[data-theme=dark] .task-bell>summary{background:#3a2e10;border-color:#6b5517;color:#ffd77a}
[data-theme=dark] .task-panel,[data-theme=dark] .task-dialog{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .status{background:#243645;color:#dbe7ef}
[data-theme=dark] .status[data-status=APPROVED],[data-theme=dark] .status[data-status=PAID],[data-theme=dark] .status[data-status=REVIEWED],[data-theme=dark] .status[data-status=ACTIVE]{background:#14392c;color:#8fe3b6}
[data-theme=dark] .status[data-status=PENDING],[data-theme=dark] .status[data-status=PENDING_CLIENT_APPROVAL],[data-theme=dark] .status[data-status=ON_HOLD]{background:#43360f;color:#ffd77a}
[data-theme=dark] .status[data-status=OVERDUE],[data-theme=dark] .status[data-status=CORRECTION_REQUESTED],[data-theme=dark] .status[data-status=STOPPED],[data-theme=dark] .status[data-status=CANCELLED],[data-theme=dark] .status[data-status=MISSING]{background:#4a1f1d;color:#ffb3ad}
[data-theme=dark] .status[data-status=ISSUED],[data-theme=dark] .status[data-status=SUBMITTED]{background:#1b3358;color:#a9c8ff}
[data-theme=dark] .alert-success{background:#14392c;color:#8fe3b6}[data-theme=dark] .alert-danger{background:#4a1f1d;color:#ffb3ad}
[data-theme=dark] details,[data-theme=dark] .manual-invoice{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] summary{color:var(--fta-text)}
[data-theme=dark] hr{border-color:var(--line)}
[data-theme=dark] .muted,[data-theme=dark] small{color:var(--sub)}
[data-theme=dark] .star-input label{color:#456073}[data-theme=dark] .star-input label:hover,[data-theme=dark] .star-input label:hover~label,[data-theme=dark] .star-input input:checked~label{color:#f2b01e}
[data-theme=dark] img.logo-mark{filter:none}
/* theme toggle */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;font-size:calc(18px + var(--fs-add)*0.25);line-height:1}
.theme-toggle:hover{border-color:var(--fta);color:var(--fta-text)}.theme-toggle:focus-visible{outline:3px solid var(--fta);outline-offset:2px}
.theme-toggle .moon{display:inline}.theme-toggle .sun{display:none}[data-theme=dark] .theme-toggle .moon{display:none}[data-theme=dark] .theme-toggle .sun{display:inline}
.theme-toggle.floating{position:fixed;top:14px;right:14px;z-index:60}
[data-theme=dark] .task-panel li.overdue small,[data-theme=dark] .task-dialog li.overdue small{color:#ff9d93}
[data-theme=dark] .btn-primary[class*=blue],[data-theme=dark] .bg-blue{background:#2a7fc4}
.brand-mark{flex:0 0 auto;min-width:43px}.brand-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-item{line-height:1.3}

/* ===== v1.7.2 uniform text colour: black (light) / white (dark) everywhere ===== */
:root{--text:#000000;--btn:#7fd3db;--btn-hover:#5fc4ce;--btn-line:#066c77;--btn2:#a9d6f6;--btn2-line:#1f6fb0;--field-line:#5d6f7d;--accent-soft:#dcf1f3;--badge-warn:#ffd166;--badge-late:#ff9d93;--star-on:#965500;--star-off:#7b8791}
[data-theme=dark]{--text:#ffffff;--btn:#087f8c;--btn-hover:#066c77;--btn-line:#63d3dd;--btn2:#1f6fb0;--btn2-line:#8fc4f0;--field-line:#8ea3b3;--accent-soft:#12373d;--badge-warn:#8a5a00;--badge-late:#b23a2e;--star-on:#ffc233;--star-off:#8fa0ad}
html body{color:var(--ink)}
html body ::placeholder{color:var(--sub);opacity:1}
html body option{background:var(--surface);color:var(--text)!important}

/* links are told apart by underline, not by colour */
html body main a:not(.btn):not(.pill):not(.nav-item):not(.brand){text-decoration:underline;text-underline-offset:3px}
html body main a.btn,html body main a.pill{text-decoration:none}
/* controls: same background as the page surface (no grey), clear border */
html body .form-control,html body .form-select,html body textarea,html body input:not([type=radio]):not([type=checkbox]),html body select{background-color:var(--surface)!important;border:1.5px solid var(--field-line)!important}
html body .form-control:disabled,html body .form-control[readonly],html body input:disabled,html body input[readonly],html body select:disabled,html body textarea[readonly]{background-color:var(--surface)!important;border-style:dashed!important}
html body .form-control:focus,html body .form-select:focus,html body textarea:focus,html body input:focus{border-color:var(--btn-line)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--btn-line) 35%,transparent)}
/* buttons: light fill in light mode, deep fill in dark mode, both readable with the single text colour */
html body .btn-primary,html body .btn-primary:disabled{background:var(--btn)!important;border:1.5px solid var(--btn-line)!important;font-weight:700}
html body .btn-primary:hover,html body .btn-primary:focus{background:var(--btn-hover)!important}
html body .grid-bulk .btn-primary{background:var(--btn2)!important;border-color:var(--btn2-line)!important}
html body .btn-outline-secondary{background:var(--surface)!important;border:1.5px solid var(--field-line)!important}
html body .brand-mark,html body .auth-story .brand-mark{background:var(--btn)!important;border:1.5px solid var(--btn-line)}
html body .lang-switch a.active,html body .pill.active{background:var(--btn)!important;border-color:var(--btn-line)!important}
html body .bell-count{background:var(--badge-warn)!important}html body .bell-count.overdue{background:var(--badge-late)!important}
html body .nav-item.active{background:var(--accent-soft)!important;font-weight:700}
html body .star-input label,html body .stars{color:var(--star-off)!important}
html body .stars{color:var(--star-on)!important}
html body .star-input label:hover,html body .star-input label:hover~label,html body .star-input input:checked~label{color:var(--star-on)!important}
/* login */
html body .auth-shell,html body .auth-panel,html body .auth-card{background:var(--surface)!important}
html body .auth-panel input,html body .auth-card input,html body .auth-panel .form-control{background:var(--surface)!important;background-image:none}

.grid-layout{margin:.75rem;align-self:flex-start}
.layout-choice:checked ~ .table-responsive{overflow:visible}
.layout-choice:checked ~ .table-responsive .grid-table,.layout-choice:checked ~ .table-responsive .grid-table tbody{display:block;width:100%;min-width:0}
.layout-choice:checked ~ .table-responsive .grid-table thead{display:none}
.layout-choice:checked ~ .table-responsive .grid-table tbody tr:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.5rem;border:1px solid currentColor;border-radius:.6rem;margin:.8rem;padding:.75rem}
.layout-choice:checked ~ .table-responsive .grid-table td{display:block;white-space:normal;min-width:0;overflow-wrap:anywhere}
.layout-choice:checked ~ .table-responsive .grid-table td[data-label]::before{content:attr(data-label);display:block;font-weight:600;font-size:.85em}

.class-time{display:flex;align-items:end;flex-wrap:wrap;gap:.65rem;margin:1rem 0}.class-time legend{font-size:1rem;font-weight:600}.class-time label{display:grid;gap:.25rem}

.layout-choice{position:absolute;opacity:0;width:1px;height:1px}
.layout-choice:focus-visible + .grid-layout{outline:3px solid currentColor;outline-offset:2px}
.grid-layout{width:fit-content;cursor:pointer}
.show-table,.layout-choice:checked + .grid-layout .show-cards{display:none}
.layout-choice:checked + .grid-layout .show-table{display:inline}
.layout-choice:checked ~ .table-responsive .grid-table{table-layout:auto}
.layout-choice:checked ~ .table-responsive .grid-table td{max-width:none;width:auto}
.rating-search[hidden]{display:none}

.name-picker{position:relative;display:block}
.name-picker select[hidden],.name-options[hidden]{display:none!important}
.name-options{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:16rem;overflow:auto;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#26282b);border:1px solid #929299;border-radius:.45rem;box-shadow:0 5px 15px #0002}
.name-options [role=option],.name-options small{display:block;padding:.55rem .8rem;cursor:pointer}
.name-options [role=option]:hover,.name-options .current{background:#e6dff6;color:#271944}
.class-clock-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;max-width:34rem;margin-bottom:1rem}
.class-clock-pair label{position:relative;min-width:0}
.clock-native{opacity:0;position:absolute;width:1px;height:1px;pointer-events:none}
.clock-trigger{text-align:left;cursor:pointer}
.clock-dialog{box-sizing:border-box;width:min(310px,94vw);border:0;border-radius:1.6rem;padding:1.25rem;background:#f3edf7;color:#241f28;box-shadow:0 12px 50px #19132244}
.clock-dialog::backdrop{background:#17121d66}
.clock-dialog button{font:inherit;color:inherit;border:0;background:white;cursor:pointer}
.clock-head{display:flex;align-items:center;gap:.3rem}
.clock-head>button{flex:1;padding:.3rem .1rem;border-radius:.65rem;font-size:2.6rem;font-weight:550}
.clock-head>b{font-size:2rem}
.clock-period{display:grid;gap:.2rem}
.clock-period button{padding:.35rem .48rem;border-radius:.35rem}
.clock-dialog button[aria-pressed=true]{background:#ddc8ff;color:#49346c}
.clock-face{position:relative;border-radius:50%;margin:1.15rem auto;background:#fff;width:min(205px,65vw);aspect-ratio:1}
.clock-face button{position:absolute;transform:translate(-50%,-50%);width:2.05rem;height:2.05rem;border-radius:50%;font-size:1rem}
.clock-face button[aria-pressed=true]{background:#67508d;color:white}
.clock-face i{position:absolute;left:calc(50% - 1px);bottom:50%;width:2px;height:39%;background:#67508d;transform-origin:center bottom}
.clock-face::after{content:"";position:absolute;left:50%;top:50%;width:.45rem;height:.45rem;transform:translate(-50%,-50%);border-radius:50%;background:#67508d}
.clock-footer{display:flex;justify-content:flex-end;gap:1rem}
.clock-footer button{background:transparent;color:#594078;font-weight:600;padding:.4rem .6rem}
.clock-face .clock-n0{left:50.00%;top:11.00%}.clock-face .hand-0{transform:rotate(0deg)}
.clock-face .clock-n1{left:69.50%;top:16.23%}.clock-face .hand-1{transform:rotate(30deg)}
.clock-face .clock-n2{left:83.77%;top:30.50%}.clock-face .hand-2{transform:rotate(60deg)}
.clock-face .clock-n3{left:89.00%;top:50.00%}.clock-face .hand-3{transform:rotate(90deg)}
.clock-face .clock-n4{left:83.77%;top:69.50%}.clock-face .hand-4{transform:rotate(120deg)}
.clock-face .clock-n5{left:69.50%;top:83.77%}.clock-face .hand-5{transform:rotate(150deg)}
.clock-face .clock-n6{left:50.00%;top:89.00%}.clock-face .hand-6{transform:rotate(180deg)}
.clock-face .clock-n7{left:30.50%;top:83.77%}.clock-face .hand-7{transform:rotate(210deg)}
.clock-face .clock-n8{left:16.23%;top:69.50%}.clock-face .hand-8{transform:rotate(240deg)}
.clock-face .clock-n9{left:11.00%;top:50.00%}.clock-face .hand-9{transform:rotate(270deg)}
.clock-face .clock-n10{left:16.23%;top:30.50%}.clock-face .hand-10{transform:rotate(300deg)}
.clock-face .clock-n11{left:30.50%;top:16.23%}.clock-face .hand-11{transform:rotate(330deg)}
