@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700;800&display=swap');
:root{--ink:#27304c;--muted:#8590a6;--purple:#6557d7;--purple-deep:#4f45ae;--lavender:#eeecfc;--line:#e9eaf3;--green:#2eaa92;--orange:#ff996d;--bg:#f5f6fc}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 'Sarabun',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:var(--purple);text-decoration:none}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #f4b861;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #b5aafa;outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:700;letter-spacing:-.6px;line-height:1.4}h2{font-size:17px;font-weight:700}h3{font-size:15px;margin:22px 0 10px}p{color:var(--muted)}.sidebar{width:244px;background:white;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:32px 19px;z-index:5;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);padding:0 7px}.brand img{width:53px;height:53px;object-fit:contain}.brand span{font-size:23px;letter-spacing:1px;font-weight:700}.brand b{color:var(--purple)}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:#80869b;margin-top:-2px}.nav-label{font-size:9px;letter-spacing:1.5px;color:#9da4b9;margin:43px 15px 17px}.nav-item{display:flex;align-items:center;gap:14px;padding:12px 15px;border-radius:11px;color:#858ca3;margin:5px 0;font-size:13px}.nav-item>span{font-size:23px;width:23px;text-align:center;font-family:Arial,sans-serif;line-height:1}.nav-item:hover{background:#f7f6fe;color:var(--purple)}.nav-item.active{background:var(--purple);color:white;box-shadow:0 7px 15px #6557d72a}.side-note{margin-top:auto;padding:20px 11px 0;color:#616c86;font-size:11px;border-top:1px solid var(--line)}.side-note small{color:#9ba3b5;font-size:10px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:5px}.main{margin-left:244px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:88px;background:#ffffffc9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px}.breadcrumb{font-size:10px;color:#9ca3b7;display:block;margin-bottom:2px}.topbar strong{font-size:13px;font-weight:500}.account{display:flex;align-items:center;gap:12px;font-size:12px}.account small{display:block;color:#9aa2b3;font-size:10px}.avatar{width:35px;height:35px;border-radius:50%;background:#eeebff;color:var(--purple);display:grid;place-items:center;font-weight:700}.icon-btn{width:32px;height:32px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;color:#8f98ad}.text-btn{border:0;background:none;color:var(--purple);padding:7px;font-size:12px}.content{padding:32px 36px;max-width:1620px;width:100%;margin:auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:4px 0 25px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#9b92ce;margin-bottom:8px}.page-heading p{font-size:12px;margin-top:6px}.heading-tag{background:white;border:1px solid var(--line);padding:9px 13px;border-radius:9px;font-size:11px;white-space:nowrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--purple);border:1px solid transparent;color:white;border-radius:9px;padding:10px 18px;font-weight:500;font-size:13px;box-shadow:0 4px 10px #6557d71c;white-space:nowrap}.btn:hover{background:var(--purple-deep)}.btn.secondary{background:white;color:var(--purple);border:1px solid #dedaf8;box-shadow:none}.btn.small{padding:8px 14px;font-size:12px}.btn.full{display:flex;width:100%;padding:13px}.filter-bar{display:flex;flex-wrap:wrap;align-items:end;gap:13px;background:#eeedf9;border:1px solid #e6e3f7;border-radius:13px;padding:15px 18px;margin-bottom:23px}.filter-bar label{font-size:10px;color:#817b9f;min-width:130px;flex:1;gap:4px}.filter-bar label:nth-of-type(3){flex:1.5}.filter-bar select{background:white;border:1px solid #e4e0f4;font-size:12px;padding:8px 12px;color:#555975}.filter-bar .btn{padding:9px 18px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:23px 0}.stat-card{background:white;border:1px solid #efedf7;border-radius:16px;padding:21px 22px;position:relative;overflow:hidden;box-shadow:0 5px 18px #35347503}.stat-card:after{content:'';position:absolute;width:86px;height:86px;border-radius:50%;right:-29px;bottom:-36px;background:#f8f7fd}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#8b90a7;font-size:12px}.stat-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#eeeafb;color:var(--purple);font-size:20px}.stat-value{font-size:35px;line-height:1.3;font-weight:700;margin:13px 0 7px;letter-spacing:-1px}.stat-card small{color:#a0a5b6;font-size:10px}.stat-1 .stat-icon{background:#e6f7f1;color:#29a68a}.stat-2 .stat-icon{background:#fff0e8;color:#ef9368}.stat-3 .stat-icon{background:#eaf2ff;color:#638bd2}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;margin-bottom:20px}.panel{background:white;border:1px solid #edecf5;border-radius:16px;padding:25px;margin-bottom:20px;box-shadow:0 5px 20px #3c345503}.dashboard-grid .panel{margin-bottom:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}.panel-heading p{font-size:11px;margin-top:3px}.soft-label{font-size:9px;color:#a196d1;background:#f6f4fd;border-radius:6px;padding:5px 9px;white-space:nowrap}.bar-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(70px,2fr) 48px;gap:16px;align-items:center;margin:18px 0;font-size:11px}.bar-row>span{color:#78819a}.bar-row strong{text-align:right;font-size:12px;font-weight:600;color:#66617e}.bar-track{background:#f5f3fc;border-radius:5px;height:13px;overflow:hidden}.bar-fill{height:100%;border-radius:5px;min-width:0;transition:width .5s ease;background:#8c7deb}.bar-fill.tone-1{background:#b4a7fa}.bar-fill.tone-2{background:#ffaf8b}.bar-fill.tone-3{background:#6bc5b5}.chart-unit{font-size:10px;text-align:right;color:#adb1bf;margin-top:20px}.ring{width:174px;height:174px;border-radius:50%;background:conic-gradient(var(--purple) var(--pct),#efedfc 0);margin:25px auto 20px;display:grid;place-items:center;transform:rotate(-90deg)}.ring>div{width:145px;height:145px;border-radius:50%;background:white;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(90deg)}.ring strong{font-size:33px;font-weight:600;letter-spacing:-1px}.ring span{font-size:10px;color:#a8a1c1;margin-top:4px}.ring-caption{text-align:center;font-size:11px;color:#8a83a3}.legend-dot{display:inline-block;width:8px;height:8px;background:var(--purple);border-radius:3px;margin-right:5px}.mini-note{padding:12px 14px;background:#f8f7fc;color:#928ba7;border-radius:8px;font-size:11px;line-height:1.8;margin-top:18px}.work-strip{display:flex;align-items:center;gap:22px;padding:12px 17px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:11px;flex-wrap:wrap}.work-strip strong{color:#79718e}.work-strip a{color:#8c88a0}.work-strip b{color:var(--purple);margin-left:8px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-weight:500;color:#9b9bb2;background:#f8f7fc;font-size:11px;padding:13px 13px;white-space:nowrap}td{padding:15px 13px;border-bottom:1px solid #f0eef6;vertical-align:middle;color:#787d94}td strong{display:block;font-size:12px;color:#555c76;font-weight:500}td small{display:block;font-size:10px;color:#a1a6b6;margin-top:4px}.num{text-align:right;font-variant-numeric:tabular-nums}tfoot th,tfoot td{background:#f6f4fc;color:var(--purple);font-weight:600}.table-link{font-size:11px;white-space:nowrap}.badge{display:inline-block;border-radius:6px;padding:4px 9px;background:#f0edf9;color:#9489b3;font-size:10px;white-space:nowrap}.badge.approved{background:#e8f8f0;color:#399c80}.badge.submitted{background:#fff3dc;color:#b39552}.badge.returned{background:#fff0e9;color:#d78568}.public-note{color:#9399ad;font-size:11px;padding:8px 2px;line-height:1.9}.site-footer{border-top:1px solid #e9e6f2;margin:10px 36px 0;padding:23px 0;display:flex;align-items:center;gap:13px;color:#8e8aa2;font-size:11px}.site-footer img{width:53px;height:53px;object-fit:contain}.site-footer strong{color:#6e648e;font-size:12px;display:block}.site-footer span{display:block;font-size:10px;line-height:1.9}.footer-right{margin-left:auto;text-align:right;font-size:9px;letter-spacing:1px;color:#b2adc1}.footer-right small{display:block;font-size:9px;letter-spacing:0;margin-top:6px}.empty{text-align:center;padding:37px 15px;color:#b0a6c9}.empty h3{font-size:14px;font-weight:500;margin:10px 0 4px;color:#8f86a8}.empty p{font-size:11px}.empty-icon{font-size:40px;color:#c9c0eb}.alert{background:#eeebfc;border:1px solid #dfd9f6;color:#7766a8;padding:14px 18px;border-radius:10px;margin-bottom:20px;font-size:12px}.alert.error{background:#fff1ed;color:#ad6b58;border-color:#f7ded7}.credential{font-size:14px;line-height:2}.credential code{font-size:19px;font-weight:600}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#7b7790}label b{color:#b39edb}input,select,textarea{width:100%;background:#fff;border:1px solid #e3dfed;border-radius:8px;padding:10px 12px;color:#55586e;min-width:0}textarea{resize:vertical}input::placeholder{color:#b3aec2}form>label{margin-bottom:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.span-2{grid-column:span 2}.section-heading{display:flex;gap:13px;align-items:center;margin-bottom:25px}.section-heading>span{width:34px;height:34px;background:#eeeafa;color:var(--purple);border-radius:10px;display:grid;place-items:center;font-weight:600;font-size:11px}.section-heading p{font-size:11px;margin-top:3px}.form-banner{display:flex;align-items:center;gap:15px;padding:20px 23px;background:linear-gradient(120deg,#eee9fd,#f5effd);border:1px solid #e5def8;border-radius:13px;margin-bottom:23px}.form-banner p{font-size:11px;margin-top:3px}.form-banner strong{font-size:14px;color:#746195}.form-banner>.soft-label{margin-left:auto;background:white}.form-banner-icon{font-size:30px;color:#a497cb}.input-table{margin-top:22px}.input-table input{max-width:130px;text-align:right}.input-table td{padding:10px 13px}.field-note{font-size:11px;color:#a09ab0;margin:9px 0 19px}.form-actions{position:sticky;bottom:12px;z-index:3;border:1px solid #e5def5;background:#ffffffed;backdrop-filter:blur(12px);border-radius:12px;padding:15px 19px;display:flex;justify-content:flex-end;gap:12px;align-items:center;box-shadow:0 5px 25px #49406210}.form-actions>span{margin-right:auto;font-size:11px;color:#a599b9}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.detail-grid small{display:block;color:#aaa3b5;font-size:10px}.detail-grid strong{font-size:13px;color:#736982;font-weight:500;display:block;margin-top:4px}.button-row{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.review-panel{border-color:#d7cef2}.review-panel .button-row{margin-top:16px}.prewrap{white-space:pre-wrap;font-size:12px;color:#8b8297}.inline{display:inline}.narrow{max-width:580px}.align-end{display:flex;align-items:end}.panel summary{cursor:pointer;color:#8470b1;font-size:14px}.panel-heading input{max-width:300px}.login-body{background:radial-gradient(ellipse at 20% 10%,#e0dbff,transparent 50%),radial-gradient(ellipse at 90% 95%,#e9e0fa,transparent 50%),#f4f2fb;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:45px 20px}.login-card{width:450px;background:#ffffffed;border:1px solid white;border-radius:24px;padding:34px 42px;box-shadow:0 25px 80px #76629918;text-align:center}.login-card h1{font-size:26px}.login-card p{font-size:12px;margin:10px 0 25px}.login-card form{text-align:left}.login-card label{font-size:12px}.login-logo{width:112px;height:112px;object-fit:contain;margin:0 auto 18px}.login-card .eyebrow{margin-bottom:9px}.login-card .mini-note{margin-top:22px}.back-link{position:absolute;top:20px;left:24px;color:#9c8bb5;font-size:12px}.login-credit{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;font-size:10px;color:#aaa2b8;line-height:1.9}.login-credit strong{font-weight:500;color:#8c7ea3}.print-header{display:none}body:has(.login-card){margin:0}@media(min-width:1700px){.content{padding-top:40px}}@media(max-width:1150px){.sidebar{width:210px;padding:25px 13px}.main{margin-left:210px}.content{padding:25px}.topbar{padding:0 25px}.stat-card{padding:17px}.stat-top{font-size:11px}.soft-label{white-space:normal}.dashboard-grid{grid-template-columns:1.3fr 1fr}.account>span{max-width:160px}.site-footer{margin-left:25px;margin-right:25px}.footer-right{display:none}}@media(max-width:900px){.stats-grid{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.heading-tag{display:none}.account>span{display:none}.form-grid.three{grid-template-columns:1fr 1fr}.bar-row{grid-template-columns:150px 1fr 50px}.detail-grid{grid-template-columns:1fr 1fr}.filter-bar label{min-width:110px}.filter-bar .text-btn{display:none}.form-banner>.soft-label{display:none}.form-actions>span{display:none}.panel-heading{flex-wrap:wrap}h1{font-size:24px}}@media(max-width:640px){.sidebar{position:static;width:100%;padding:14px 17px;border-right:0;border-bottom:1px solid var(--line)}.brand img{width:40px;height:40px}.brand span{font-size:20px}.nav-label,.side-note{display:none}.sidebar nav{display:flex;overflow:auto;margin-top:15px;gap:6px}.nav-item{flex-shrink:0;padding:8px 12px;font-size:11px;margin:0;border-radius:8px}.nav-item>span{font-size:17px;width:17px}.main{margin-left:0}.topbar{height:65px;padding:0 18px}.content{padding:22px 16px}.page-heading{flex-direction:column;gap:13px}.stats-grid{gap:12px;margin:17px 0}.stat-card{padding:15px}.stat-value{font-size:29px}.stat-icon{width:27px;height:27px;font-size:17px}.stat-top{font-size:10px}.stat-card small{font-size:9px}.panel{padding:19px;border-radius:13px}.filter-bar{padding:12px;gap:10px}.filter-bar label{flex:1 1 40%;min-width:0}.filter-bar .btn{width:100%}.bar-row{grid-template-columns:115px 1fr 37px;gap:10px;font-size:10px}.form-grid,.form-grid.three{grid-template-columns:1fr}.span-2{grid-column:auto}.form-actions{padding:12px;bottom:5px}.form-actions .btn{font-size:12px;padding:10px 12px;flex:1}.form-banner{padding:17px}.account{gap:6px}.account .avatar,.account .icon-btn{display:none}.account .text-btn{font-size:10px}.topbar strong{font-size:11px}.site-footer{margin:0 16px;padding:22px 0;gap:10px}.site-footer img{width:43px;height:43px}.site-footer strong{font-size:11px}.site-footer span{font-size:9px}.login-card{padding:27px 24px}.work-strip{gap:12px}.panel-heading input{max-width:none}.button-row .btn{width:100%}h1{font-size:23px}}@media print{@page{size:A4;margin:14mm}.sidebar,.topbar,.filter-bar,.page-heading,.no-print,.form-actions,button,.alert,.site-footer,.field-note{display:none!important}.main{margin:0}.content{padding:0;max-width:none}.print-header{display:block;text-align:center;margin-bottom:25px}.print-header img{width:60px;height:60px}.print-header p{font-size:10px;color:#555}.dashboard-grid{display:block}.panel{border:1px solid #ddd;box-shadow:none;padding:14px;border-radius:0;break-inside:avoid;margin-bottom:15px!important}.table-scroll{overflow:visible}table{font-size:9px}th,td{padding:7px 5px}.bar-fill{print-color-adjust:exact;-webkit-print-color-adjust:exact}body{background:white;color:#222}.panel h2{font-size:13px}.bar-row{margin:9px 0;grid-template-columns:170px 1fr 45px}.chart-unit{font-size:8px}}

/* Public landing page: full-width dashboard with staff entry in the header. */
.public-layout .main{margin-left:0}.public-layout .topbar{height:98px;padding:0 max(32px,calc((100vw - 1500px)/2));gap:24px;background:#fff}.public-brand{display:flex;gap:13px;align-items:center;color:var(--ink)}.public-brand img{width:59px;height:59px;object-fit:contain}.public-brand strong{font-size:20px!important;font-weight:700!important;letter-spacing:1.2px;color:var(--purple-deep)}.public-brand small{display:block;font-size:11px;color:#9290a8;margin-top:2px}.public-links{display:flex;gap:24px;margin-left:auto;font-size:12px}.public-links a{color:#8c86a3}.public-links a:hover{color:var(--purple)}.public-layout .content{max-width:1500px;padding:35px 32px}.public-layout .page-heading{margin-top:5px;margin-bottom:27px}.public-layout .site-footer{width:calc(100% - 64px);max-width:1436px;margin:10px auto 0}.public-layout .dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
@media(max-width:1000px){.public-layout .topbar{padding:0 24px}.public-links{gap:15px}.public-brand small{max-width:235px;font-size:10px}.public-layout .dashboard-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.public-links{display:none}.public-layout .topbar{height:auto;min-height:87px;padding:15px 18px;gap:12px;flex-wrap:wrap}.public-brand img{width:45px;height:45px}.public-brand strong{font-size:17px!important}.public-brand small{font-size:9px;max-width:210px}.public-layout .account{margin-left:auto}.public-layout .account .btn{font-size:11px;padding:9px 11px}.public-layout .content{padding:24px 16px}.public-layout .dashboard-grid{grid-template-columns:1fr}.public-layout .site-footer{width:calc(100% - 32px)}}@media print{.public-layout .main{margin:0}.public-layout .content{max-width:none;padding:0}}
/* Color refresh — violet identity with emerald, coral and blue data cards. */
body{background:radial-gradient(ellipse at 5% 0%,#e5e0ff 0,transparent 36%),radial-gradient(ellipse at 95% 38%,#e2f4f5 0,transparent 35%),#f4f5fc}
.public-layout .topbar{border-bottom:3px solid #ece6ff;box-shadow:0 4px 25px #4a34900a}.public-brand strong{color:#5940c3!important}.public-links a{color:#64547e;font-weight:600}.public-layout .account>.btn{background:linear-gradient(110deg,#7550da,#5140b4);box-shadow:0 5px 15px #6945c92e}
.public-layout .page-heading{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;padding:39px 38px;min-height:190px;background:radial-gradient(ellipse at 100% 0%,#4d9fa977,transparent 50%),linear-gradient(115deg,#34265e 0%,#6645b5 58%,#8470dc 100%);box-shadow:0 16px 30px #51368c22;margin-bottom:24px;align-items:center}.public-layout .page-heading:before{content:'';position:absolute;z-index:-1;width:290px;height:290px;right:9%;top:-175px;border:45px solid #ffffff09;border-radius:50%}.public-layout .page-heading:after{content:'';position:absolute;z-index:-1;width:260px;height:260px;right:-65px;bottom:-190px;border:45px solid #ffffff0d;border-radius:50%}.public-layout .page-heading h1{color:white;font-size:33px;letter-spacing:-.6px;max-width:830px}.public-layout .page-heading .eyebrow{color:#e2d2ff;font-size:10px;letter-spacing:2px;margin-bottom:12px}.public-layout .page-heading p{color:#e2d8f6;font-size:13px;margin-top:13px}.public-layout .heading-tag{background:#ffffff16;border:1px solid #ffffff3b;color:#f9f6ff;border-radius:30px;padding:10px 15px;backdrop-filter:blur(4px)}.public-layout .heading-tag .status-dot{background:#74edc9;box-shadow:0 0 0 4px #74edc91c}
.filter-bar{background:#ffffffdd;border:1px solid #e3ddf4;box-shadow:0 5px 20px #60479a08;border-radius:15px;padding:18px 21px;border-left:4px solid #8f6ce3}.filter-bar label{color:#786394;font-weight:500}.filter-bar select{background:#faf9ff;color:#605076}.filter-bar .btn{background:#7554cc}
.stats-grid{gap:20px;margin:25px 0}.stat-card{border:0;border-radius:18px;padding:24px 25px;box-shadow:0 10px 20px #6250ac18;min-height:173px;isolation:isolate}.stat-card:after{width:150px;height:150px;right:-25px;bottom:-85px;background:#ffffff12;z-index:-1;box-shadow:0 0 0 22px #ffffff07}.stat-card.stat-0{background:linear-gradient(120deg,#7d5fe0,#6050c0)}.stat-card.stat-1{background:linear-gradient(120deg,#289d92,#1b827e)}.stat-card.stat-2{background:linear-gradient(120deg,#e98a60,#d66b53)}.stat-card.stat-3{background:linear-gradient(120deg,#5e8ed8,#4c6ebc)}.stat-card .stat-top{color:#ffffffe8;font-size:13px}.stat-card .stat-icon{background:#ffffff25;color:white!important;border:1px solid #ffffff24;width:37px;height:37px;border-radius:12px}.stat-card .stat-value{color:white;font-size:40px;font-weight:700;margin:10px 0 5px;line-height:1.25}.stat-card small{color:#ffffffd9;font-size:11px}
.panel{border-color:#e9e3f3;border-radius:18px;box-shadow:0 7px 25px #4a346308}.panel-heading h2{color:#55406e;font-size:18px}.panel-heading p{color:#9d8eae}.panel-heading:before{content:'';width:5px;height:32px;border-radius:8px;background:linear-gradient(#8d66dc,#b4a0ef);flex-shrink:0}.panel-heading>div:first-of-type{margin-right:auto}.panel-heading{gap:12px}.panel-heading .soft-label{background:#f0eafb;color:#8a65b5;font-size:9px;border:1px solid #e8def8}.dashboard-grid>.panel:nth-child(2) .panel-heading:before{background:linear-gradient(#f2a77c,#efc49d)}.bar-track{background:#f0edf8;height:15px;border-radius:5px}.bar-fill{background:linear-gradient(90deg,#aa8bec,#7957cd)}.bar-fill.tone-1{background:linear-gradient(90deg,#71cdc0,#2d9f92)}.bar-fill.tone-2{background:linear-gradient(90deg,#ffc399,#ee9268)}.bar-fill.tone-3{background:linear-gradient(90deg,#8eb4ef,#5c86ce)}.bar-row>span{color:#756586}.bar-row strong{color:#5e4976}.ring{background:conic-gradient(#8a62db var(--pct),#efe8fa 0);box-shadow:0 0 0 10px #faf7ff,0 0 0 11px #f0e9fa}.ring strong{color:#6b48aa}.ring-caption{color:#826d9c}.legend-dot{background:#8a62db}.mini-note{background:#f8f4ff;color:#8b76a2;border-left:3px solid #d8c3f3}.public-note{background:#eaf4f2;border:1px solid #d5e9e3;border-radius:12px;padding:15px 20px;color:#658b80;margin-top:23px;font-size:11px}.site-footer{border-top:2px solid #e2d8f4}.site-footer strong{color:#785796}.site-footer img{filter:drop-shadow(0 3px 5px #6a468629)}.soft-label{color:#8962b5}.btn{background:#7554cc}.btn:hover{background:#6040b5}.login-body .btn{background:linear-gradient(100deg,#825ed8,#6244bc)}
@media(max-width:1100px){.stat-card{padding:21px}.stat-card .stat-value{font-size:35px}.public-layout .page-heading h1{font-size:29px}.public-layout .page-heading{padding:32px}.stat-card .stat-top{font-size:12px}}
@media(max-width:760px){.public-layout .page-heading{padding:26px 23px;min-height:170px;border-radius:18px}.public-layout .page-heading h1{font-size:25px}.public-layout .page-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.public-layout .page-heading p{font-size:11px;line-height:1.8;max-width:290px}.stat-card{padding:18px;min-height:157px}.stat-card .stat-value{font-size:34px}.stat-card .stat-top{font-size:11px}.stat-card .stat-icon{width:29px;height:29px;font-size:17px}.stat-card small{font-size:9px}.stats-grid{gap:12px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:10px}.filter-bar{padding:15px}.public-note{padding:14px;font-size:10px}}
@media print{body{background:white}.public-layout .page-heading{display:none}.stat-card{background:white!important;box-shadow:none;color:#222;border:1px solid #ccc}.stat-card .stat-value,.stat-card .stat-top,.stat-card small{color:#222}.panel-heading:before{display:none}.panel{box-shadow:none}.mini-note{border:0}.public-note{background:white;border:0}}

/* Readability update */
body{font-size:16px}h1{font-size:32px}h2,.panel-heading h2{font-size:21px}h3{font-size:18px}label,.filter-bar label{font-size:15px}input,select,textarea,.filter-bar select{font-size:16px;padding:12px 14px}.btn,.btn.small,.text-btn,.table-link{font-size:15px}.nav-item{font-size:15px}.stat-card .stat-value{font-size:48px;font-variant-numeric:tabular-nums;letter-spacing:0}.stat-card .stat-top{font-size:16px}.stat-card small{font-size:13px}.stat-card{min-height:190px}.bar-row{font-size:14px;grid-template-columns:minmax(150px,1fr) minmax(70px,2fr) 65px}.bar-row strong{font-size:18px;color:#49355f;font-variant-numeric:tabular-nums}.bar-track{height:19px}.ring strong{font-size:40px}.ring span,.ring-caption,.chart-unit{font-size:14px}.panel-heading p,.page-heading p,.mini-note,.field-note,.public-note{font-size:14px}table{font-size:15px}th{font-size:14px}td strong{font-size:15px}td small,.badge{font-size:13px}.num{font-size:17px;font-weight:600;color:#544466}.account{font-size:14px}.account small{font-size:12px}.site-footer strong{font-size:15px}.site-footer span{font-size:13px}.login-card label{font-size:16px}.login-card p{font-size:15px}.login-credit{font-size:13px}.public-brand small{font-size:13px}.public-links{font-size:15px}.public-layout .page-heading p{font-size:16px}.public-layout .account .btn{font-size:14px}.staff-layout .topbar{height:auto;min-height:88px;padding-top:14px;padding-bottom:14px;flex-wrap:wrap}
@media(max-width:760px){.stat-card .stat-value{font-size:39px}.stat-card .stat-top{font-size:14px}.stat-card small{font-size:12px}.stat-card{padding:17px;min-height:175px}.bar-row{grid-template-columns:115px 1fr 45px;font-size:13px;gap:10px}.bar-row strong{font-size:16px}.panel-heading h2{font-size:19px}.public-layout .page-heading p{font-size:14px}.public-brand small{font-size:11px}.site-footer span{font-size:11px}.nav-item{font-size:13px}.account .icon-btn{display:grid}.filter-bar select{font-size:15px}.public-layout .account .btn{font-size:13px}}
@media print{body,table{font-size:10px}th,td strong{font-size:10px}.num{font-size:11px}.bar-row{font-size:10px}.bar-row strong{font-size:11px}}

.insight-ribbon{display:grid;grid-template-columns:1.3fr 1fr 1fr;background:#fff;border:1px solid #e6def4;border-radius:16px;margin:0 0 24px;padding:24px 12px;box-shadow:0 5px 18px #63489708}.insight-ribbon>div{padding:0 24px;border-right:1px solid #eee8f7}.insight-ribbon>div:last-child{border:0}.insight-ribbon span{display:block;font-size:15px;color:#877499}.insight-ribbon strong{display:block;font-size:31px;color:#6c4cb1;font-variant-numeric:tabular-nums;margin-top:5px}.insight-ribbon>div:nth-child(2) strong{color:#467dc4}.insight-ribbon>div:nth-child(3) strong{color:#bd6597}.insight-ribbon small{font-size:13px;font-weight:400;color:#9b8ea8}.outcome-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.outcome-tile{position:relative;overflow:hidden;background:linear-gradient(125deg,#f0e9ff,#f9f5ff);border:1px solid #e7dcfa;padding:21px;border-radius:14px;color:#7753ac}.outcome-tile strong{display:block;font-size:35px;line-height:1.3;font-variant-numeric:tabular-nums;margin:7px 0}.outcome-tile>span:not(.outcome-index){display:block;font-size:15px}.outcome-tile small{font-size:12px;opacity:.7}.outcome-index{position:absolute;right:15px;top:12px;opacity:.25;font-size:26px;font-weight:700}.outcome-1,.outcome-4{background:linear-gradient(125deg,#e4f6f0,#f4fcf9);border-color:#d4eee3;color:#328c78}.outcome-2,.outcome-5{background:linear-gradient(125deg,#fff0e1,#fff9f2);border-color:#f6e2cd;color:#bd8053}.outcome-3,.outcome-6{background:linear-gradient(125deg,#e7effc,#f5f8ff);border-color:#d9e5fa;color:#557fb9}.filter-bar input[type=search]{font-size:15px;background:#faf9ff}.filter-bar label:has(input[type=search]){min-width:190px}
@media(max-width:1000px){.outcome-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.insight-ribbon strong{font-size:26px}.insight-ribbon>div{padding:0 16px}}@media(max-width:640px){.outcome-tiles{grid-template-columns:1fr 1fr;gap:10px}.outcome-tile{padding:17px}.outcome-tile strong{font-size:32px}.outcome-tile>span:not(.outcome-index){font-size:14px}.insight-ribbon{grid-template-columns:1fr;padding:4px 20px}.insight-ribbon>div{padding:16px 0;border-right:0;border-bottom:1px solid #eee8f7}.insight-ribbon strong{font-size:29px}.filter-bar label:has(input[type=search]){flex-basis:100%}}
@media print{.insight-ribbon,.outcome-tile{box-shadow:none;background:white;break-inside:avoid}.outcome-tiles{grid-template-columns:repeat(4,1fr)}}

.gender-legend{display:flex;justify-content:center;gap:22px;margin:10px 0 20px;font-size:14px;color:#847394}.gender-legend i,.income-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px}.male-dot{background:#6c91df}.female-dot{background:#c47ead}.gender-chart{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:20px 12px 0;background:repeating-linear-gradient(to top,#f0ecf6 0,#f0ecf6 1px,transparent 1px,transparent 40px);border-radius:12px;margin-bottom:20px}.gender-group{text-align:center}.gender-columns{height:180px;display:flex;align-items:flex-end;justify-content:center;gap:9px}.gender-column{width:35%;max-width:42px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.gender-column strong{font-size:15px;color:#756583;margin-bottom:7px}.gender-bar{width:100%;min-height:2px;border-radius:6px 6px 0 0}.gender-bar.male{background:linear-gradient(#97b5f2,#6989d3)}.gender-bar.female{background:linear-gradient(#e0a3cb,#bd77a4)}.gender-group>span{display:block;font-size:12px;background:white;padding:12px 0;color:#95839c}.age-summary{margin-top:10px}.income-donut{width:210px;height:210px;border-radius:50%;margin:18px auto 25px;display:grid;place-items:center;box-shadow:0 0 0 10px #faf8fd}.income-donut>div{width:158px;height:158px;background:white;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.income-donut strong{font-size:40px;color:#694992;font-variant-numeric:tabular-nums}.income-donut span{font-size:12px;color:#9e8eac}.income-legend>div{display:grid;grid-template-columns:15px 1fr 40px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #f5f1f8;font-size:14px;color:#8c7a9a}.income-legend strong{text-align:right;color:#664b7c;font-size:17px}.district-summary thead th{background:#6a4e9b;color:white;font-size:15px}.district-summary tfoot th,.district-summary tfoot td{background:#f0e9fa;color:#67478d}.rate-pill{display:inline-block;padding:4px 9px;background:#e9f6ee;color:#4f9778;border-radius:6px;font-size:14px}.outcome-tile{border-top:4px solid #a083d2}.outcome-1,.outcome-4{border-top-color:#62b99f}.outcome-2,.outcome-5{border-top-color:#e9a374}.outcome-3,.outcome-6{border-top-color:#809fd3}@media(max-width:640px){.gender-chart{gap:5px;padding-left:0;padding-right:0}.gender-columns{gap:5px}.gender-column strong{font-size:13px}.gender-group>span{font-size:10px}.income-legend>div{font-size:13px}.district-summary table{min-width:690px}}@media print{.gender-bar,.income-donut{print-color-adjust:exact;-webkit-print-color-adjust:exact}.gender-chart{break-inside:avoid}.district-summary thead th{background:#eee;color:black}}

.list-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:20px;flex-wrap:wrap}.list-pagination span{margin-right:auto;color:#9685a3;font-size:14px}.list-pagination select{max-width:145px}.list-pagination button:disabled{opacity:.4;cursor:default}@media print{.list-pagination{display:none}.activity-records tr[hidden]{display:table-row}}

/* Compact sign-in page: fit standard desktop and mobile viewport heights. */
.login-body{min-height:100svh;padding:16px 18px;box-sizing:border-box}.login-card{width:460px;max-width:100%;padding:22px 32px;border-radius:20px}.login-logo{width:80px;height:80px;margin-bottom:8px}.login-card .eyebrow{font-size:9px;margin-bottom:5px}.login-card h1{font-size:25px;line-height:1.3}.login-card p{font-size:13px;line-height:1.5;margin:8px 0 17px}.login-card label{font-size:14px;gap:5px;margin-bottom:12px}.login-card input{font-size:16px;padding:9px 12px;min-height:42px}.login-card .btn.full{padding:10px;min-height:42px;font-size:15px}.login-card .mini-note{font-size:11px;line-height:1.5;padding:9px 12px;margin-top:13px}.login-card .login-credit{font-size:11px;line-height:1.6;padding-top:11px;margin-top:13px}.login-body .back-link{top:13px;left:18px;font-size:12px}.login-card .alert{padding:8px 12px;margin:10px 0;font-size:12px}
@media(max-height:740px){.login-body{padding:12px 16px}.login-card{padding:18px 28px}.login-logo{width:64px;height:64px;margin-bottom:5px}.login-card h1{font-size:23px}.login-card p{margin:5px 0 12px;font-size:12px}.login-card label{margin-bottom:9px}.login-card .mini-note{margin-top:10px;padding:7px 10px}.login-card .login-credit{margin-top:9px;padding-top:8px;font-size:10px}.login-body .back-link{top:8px;font-size:11px}}
@media(max-height:610px){.login-body{padding:10px 14px}.login-logo{width:48px;height:48px;margin-bottom:3px}.login-card{padding:14px 25px}.login-card h1{font-size:21px}.login-card .eyebrow{font-size:8px;margin-bottom:3px}.login-card p{font-size:11px;margin:4px 0 9px}.login-card label{font-size:13px;margin-bottom:8px;gap:3px}.login-card input{min-height:38px;padding:7px 10px}.login-card .btn.full{min-height:38px;padding:8px}.login-card .mini-note{font-size:10px;margin-top:8px;padding:6px 9px}.login-card .login-credit{font-size:9px;line-height:1.5;margin-top:7px;padding-top:6px}.login-body .back-link{position:fixed;left:10px;top:5px;font-size:10px}}
@media(max-width:600px){.login-body .back-link{position:static;align-self:flex-start;margin:0 0 10px}.login-body{flex-direction:column;justify-content:center;gap:0}.login-card{margin:0 auto}.login-card .login-credit{font-size:10px}}
@media(max-height:480px) and (min-width:650px){.login-card{width:680px;display:grid;grid-template-columns:200px 1fr;column-gap:25px;padding:18px 25px;text-align:left}.login-card .login-logo{grid-column:1;grid-row:1 / 4;width:100px;height:100px;justify-self:center;margin:auto}.login-card .eyebrow,.login-card h1,.login-card>p,.login-card>form,.login-card>.alert{grid-column:2}.login-card .mini-note,.login-card .login-credit{grid-column:1 / -1;text-align:center}.login-card .login-credit br{display:none}.login-card .login-credit strong{margin-right:8px}}
/* Ubon-inspired lotus, candle and flowing-water illustration. */
.login-body{position:relative;isolation:isolate;background:radial-gradient(ellipse at 12% 18%,#e0d0f3 0,transparent 43%),radial-gradient(ellipse at 90% 80%,#f0dec6 0,transparent 40%),linear-gradient(135deg,#f3edfb,#f8f6fc 50%,#eee7f6);overflow-x:hidden}.login-body:before,.login-body:after{content:'';position:fixed;inset:-20px;pointer-events:none;z-index:-1}.login-body:before{background:url('login-ubon.svg?v=20261109-flame101') center center / cover no-repeat;animation:ubon-drift 22s ease-in-out infinite alternate;transform-origin:center}.login-body:after{background:radial-gradient(circle at 22% 32%,#d6b2f52b,transparent 21%),radial-gradient(circle at 83% 30%,#f4d59138,transparent 18%),radial-gradient(circle at 78% 85%,#b0a0e52b,transparent 23%);animation:ubon-glow 13s ease-in-out infinite alternate}.login-body .login-card{position:relative;background:#ffffffed;border:1px solid #fff;box-shadow:0 18px 70px #68478f20,0 0 0 1px #bda6d51a;backdrop-filter:blur(12px)}.login-body .back-link{z-index:2;color:#83649b}.login-body .login-logo{filter:drop-shadow(0 4px 7px #63487626)}
@keyframes ubon-drift{from{transform:translate3d(-5px,0,0) scale(1.015)}to{transform:translate3d(5px,-8px,0) scale(1.035)}}@keyframes ubon-glow{from{opacity:.5;transform:translate3d(0,0,0)}to{opacity:1;transform:translate3d(-10px,7px,0)}}
@media(max-width:600px){.login-body:before{background-size:auto 100%;background-position:48% center;opacity:.65}.login-body .login-card{background:#fffffff0}}
@media(prefers-reduced-motion:reduce){.login-body:before,.login-body:after{animation:none;transform:none}}

/* More visible motion, confined to the decorative background. */
.login-body:before{inset:-55px;animation:ubon-drift-visible 10s ease-in-out infinite alternate;will-change:transform}.login-body:after{inset:-50px;animation:ubon-glow-visible 7s ease-in-out infinite alternate;will-change:transform,opacity}
@keyframes ubon-drift-visible{0%{transform:translate3d(-22px,14px,0) rotate(-1deg) scale(1.02)}100%{transform:translate3d(24px,-22px,0) rotate(1deg) scale(1.06)}}
@keyframes ubon-glow-visible{0%{opacity:.35;transform:translate3d(-25px,16px,0) scale(.96)}100%{opacity:1;transform:translate3d(30px,-22px,0) scale(1.08)}}
@media(prefers-reduced-motion:reduce){.login-body:before,.login-body:after{animation:none;transform:none;will-change:auto}}
/* Cross-device layout and touch interaction pass. */
html{scroll-padding-top:20px}body{min-width:0}.main,.content,.panel,.dashboard-grid>*{min-width:0}img{max-width:100%}input,select,textarea{max-width:100%}.table-scroll{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.table-scroll:focus-visible{outline:3px solid #b9a4e6;outline-offset:4px}.activity-records table{min-width:900px}.input-table{min-width:420px}.input-table input{min-width:70px;width:100%}.account{flex-wrap:wrap}.site-footer>div{min-width:0;overflow-wrap:anywhere}.form-actions{padding-bottom:max(15px,env(safe-area-inset-bottom))}.prewrap{overflow-wrap:anywhere}.form-grid label{min-width:0}
@media(pointer:coarse){.btn,.text-btn,.icon-btn,.nav-item,.table-link{min-height:44px}.table-link{display:inline-flex;align-items:center;padding:6px}.text-btn{padding:10px}.icon-btn{min-width:44px}input,select{min-height:44px}.list-pagination button{min-width:80px}}
@media(max-width:960px){.staff-layout .sidebar{position:static;width:100%;height:auto;inset:auto;padding:15px 20px;border-right:0;border-bottom:1px solid var(--line)}.staff-layout .main{margin-left:0}.staff-layout .sidebar .brand img{width:42px;height:42px}.staff-layout .sidebar .brand span{font-size:20px}.staff-layout .sidebar .nav-label,.staff-layout .sidebar .side-note{display:none}.staff-layout .sidebar nav{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;padding:12px 2px 6px;scrollbar-width:thin}.staff-layout .nav-item{flex-shrink:0;margin:0;padding:10px 13px;font-size:14px}.staff-layout .content{padding:24px}.staff-layout .topbar{padding:14px 24px}.staff-layout .dashboard-grid{grid-template-columns:1fr 1fr}.topbar .account{max-width:100%}.form-actions .btn{white-space:normal;text-align:center}}
@media(max-width:760px){.public-layout .public-links{display:flex;order:3;flex:1 0 100%;margin:2px 0 0;border-top:1px solid #eee8f7;padding-top:7px;gap:8px}.public-links a{display:flex;align-items:center;min-height:40px;padding:6px 13px;border-radius:8px;font-size:14px;background:#f5f1fb}.public-layout .topbar{align-items:center}.public-layout .public-brand{min-width:0;flex:1 1 220px}.public-layout .public-brand small{max-width:270px;white-space:normal}.public-layout .account{flex:0 1 auto}.staff-layout .dashboard-grid{grid-template-columns:1fr}.panel-heading{align-items:flex-start}.panel-heading>div{min-width:0}.panel-heading .soft-label{max-width:100%;white-space:normal}.form-banner{align-items:flex-start}.form-banner strong{overflow-wrap:anywhere}.detail-grid{grid-template-columns:1fr 1fr}.filter-bar label{min-width:0}.filter-bar label:has(input[type=search]){min-width:0}.filter-bar .btn{min-height:44px}.login-body{overflow-y:auto}.login-card input{font-size:16px}.login-body .back-link{min-height:36px;display:inline-flex;align-items:center}}
@media(max-width:480px){.staff-layout .sidebar{padding:13px 14px}.staff-layout .content{padding:20px 14px}.staff-layout .topbar{padding:12px 14px}.page-heading h1{font-size:25px}.public-layout .page-heading h1{font-size:25px}.stats-grid{gap:10px}.stat-card .stat-top{font-size:13px;align-items:flex-start}.stat-card .stat-icon{width:25px;height:25px;flex-shrink:0}.stat-card .stat-value{font-size:34px;overflow-wrap:anywhere}.stat-card{padding:15px;min-height:170px}.stat-card small{font-size:11px}.detail-grid{grid-template-columns:1fr}.form-actions{gap:8px;padding:10px;bottom:5px;flex-wrap:wrap}.form-actions .btn{min-height:46px;flex:1 1 130px;font-size:14px}.input-table th,.input-table td{padding:10px 8px}.form-grid,.form-grid.three{gap:16px}.account .btn{white-space:normal}.public-layout .topbar{gap:10px}.public-layout .account{margin-left:0}.site-footer{align-items:flex-start}.site-footer span{font-size:11px;line-height:1.7}.bar-row{grid-template-columns:minmax(85px,1fr) minmax(50px,1.25fr) 40px}.insight-ribbon strong{font-size:27px}.outcome-tile strong{font-size:31px}.list-pagination{justify-content:flex-start;gap:8px}.list-pagination span{flex-basis:100%}.login-card{padding-left:22px;padding-right:22px}.login-card .login-credit{overflow-wrap:anywhere}}
@media(max-width:359px){.stats-grid{grid-template-columns:1fr}.stat-card{min-height:150px}.filter-bar label{flex-basis:100%}.outcome-tiles{grid-template-columns:1fr}.public-brand small{font-size:10px}.gender-column strong{font-size:11px}}
@media print{.staff-layout .sidebar,.public-layout .public-links{display:none!important}.staff-layout .main{margin:0}.staff-layout .content{padding:0}.activity-records table,.input-table{min-width:0}.table-scroll{overflow:visible}.account{display:none}}

/* Spacious sign-in frame, with all content grouped inside the viewport. */
.login-body:has(.login-screen-card){padding:32px;min-height:100svh;gap:0}.login-screen-card{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto auto;align-content:center;align-items:center;column-gap:70px;row-gap:8px;width:min(1240px,calc(100vw - 64px));max-width:100%;min-height:min(680px,calc(100svh - 84px));padding:40px 60px;text-align:center;border-radius:30px;background:linear-gradient(115deg,#fffffff5,#fbf8fff5)!important;box-shadow:0 25px 80px #62428625!important}.login-screen-card .login-logo{grid-column:1;grid-row:1;width:140px;height:140px;justify-self:center;margin:0 0 8px;align-self:end}.login-screen-card h1{grid-column:1;grid-row:2;font-size:34px;line-height:1.35;margin:0;color:#624485}.login-screen-card>p{grid-column:1;grid-row:3;font-size:16px;line-height:1.7;margin:0;color:#9c86ad}.login-screen-card>form{grid-column:2;grid-row:1 / 5;text-align:left;width:100%;max-width:450px;justify-self:center;padding:34px;background:white;border:1px solid #eee5f7;border-radius:20px;box-shadow:0 10px 35px #6b47850a}.login-screen-card label{font-size:16px;gap:9px;margin-bottom:20px}.login-screen-card input{min-height:52px;padding:13px 15px;background:#fcfaff;border:1px solid #ded1ee;border-radius:10px;font-size:17px}.login-screen-card .btn.full{min-height:51px;border-radius:10px;font-size:17px;padding:12px}.login-screen-card .login-credit{grid-column:1;grid-row:4;font-size:13px;line-height:1.8;margin:16px 0 0;padding:16px 0 0;border-top:1px solid #e9dff1}.login-screen-card .login-credit strong{display:block;font-size:15px}.login-screen-card>.alert{grid-column:1 / -1;grid-row:auto;margin:0 0 10px}.login-body:has(.login-screen-card) .back-link{position:fixed;top:8px;left:32px;margin:0;min-height:24px}
@media(max-width:850px){.login-body:has(.login-screen-card){padding:26px 16px 14px}.login-screen-card{display:flex;flex-direction:column;justify-content:center;gap:0;width:calc(100vw - 32px);max-width:580px;min-height:0;padding:22px 30px;border-radius:22px}.login-screen-card .login-logo{width:80px;height:80px;margin:0 0 8px;align-self:center}.login-screen-card h1{font-size:27px}.login-screen-card>p{font-size:13px;line-height:1.5;margin:7px 0 16px}.login-screen-card>form{max-width:440px;padding:18px 22px;border-radius:15px}.login-screen-card label{font-size:15px;margin-bottom:13px;gap:6px}.login-screen-card input{min-height:45px;padding:10px 12px;font-size:16px}.login-screen-card .btn.full{min-height:45px;font-size:16px;padding:10px}.login-screen-card .login-credit{font-size:11px;line-height:1.6;margin:13px 0 0;padding-top:11px}.login-screen-card .login-credit strong{font-size:13px}.login-body:has(.login-screen-card) .back-link{left:17px;top:3px;font-size:11px}.login-screen-card>.alert{width:100%;font-size:12px}}
@media(max-height:700px) and (min-width:851px){.login-screen-card{min-height:calc(100svh - 70px);padding:24px 42px;column-gap:40px}.login-screen-card .login-logo{width:105px;height:105px}.login-screen-card h1{font-size:29px}.login-screen-card>p{font-size:14px}.login-screen-card>form{padding:24px}.login-screen-card .login-credit{font-size:11px;margin-top:9px;padding-top:10px}.login-screen-card .login-credit strong{font-size:13px}}
@media(max-height:670px) and (max-width:850px){.login-screen-card{padding:14px 22px}.login-screen-card .login-logo{width:58px;height:58px;margin-bottom:4px}.login-screen-card h1{font-size:23px}.login-screen-card>p{font-size:12px;margin:5px 0 10px}.login-screen-card>form{padding:13px 17px}.login-screen-card label{margin-bottom:10px;font-size:14px;gap:4px}.login-screen-card input{min-height:42px;padding:8px 10px}.login-screen-card .btn.full{min-height:42px;padding:8px}.login-screen-card .login-credit{font-size:10px;margin-top:9px;padding-top:8px}.login-screen-card .login-credit strong{font-size:12px}}
@media(max-height:460px) and (min-width:600px){.login-screen-card{display:grid;grid-template-columns:1fr 1.2fr;width:calc(100vw - 40px);max-width:1000px;padding:14px 25px;column-gap:24px;row-gap:4px;min-height:calc(100svh - 50px)}.login-screen-card .login-logo{grid-column:1;grid-row:1;width:68px;height:68px;margin:0;align-self:center}.login-screen-card h1{grid-column:1;grid-row:2;font-size:23px}.login-screen-card>p{grid-column:1;grid-row:3;font-size:11px;margin:0}.login-screen-card>form{grid-column:2;grid-row:1 / 5;padding:16px}.login-screen-card .login-credit{grid-column:1;grid-row:4;font-size:9px;text-align:center;margin-top:6px;padding-top:6px}.login-screen-card .login-credit br{display:initial}.login-screen-card .login-credit strong{font-size:11px;margin:0}.login-screen-card label{margin-bottom:9px;font-size:13px;gap:4px}.login-screen-card input{min-height:39px;padding:7px 10px}.login-screen-card .btn.full{min-height:39px;padding:7px;font-size:14px}}
/* Subtle illustration inside the sign-in frame. */
.login-body .login-screen-card{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(120deg,#fcf8fff5,#f6f1fceF)!important}.login-screen-card:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('login-ubon.svg?v=20261109-flame101') left center / auto 135% no-repeat;opacity:.2}.login-screen-card:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 20% 20%,#dfc9ef30,transparent 52%),repeating-linear-gradient(135deg,transparent 0,transparent 35px,#9f7eb708 35px,#9f7eb708 36px)}.login-screen-card>form{background:#fffffff0;box-shadow:0 10px 35px #6848820c;border-color:#e6d9f0}.login-screen-card input{background:#fff}.login-screen-card .login-credit{border-color:#dfcfe9}
@media(max-width:850px){.login-screen-card:before{background-position:35% center;background-size:auto 115%;opacity:.15}}

.user-actions{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.user-actions form{margin:0}.user-action{width:42px;height:42px;border-radius:10px;border:1px solid #e6ddf3;display:inline-flex;align-items:center;justify-content:center;background:#f4effc;color:#8663b9;padding:0;cursor:pointer;transition:background .15s}.user-action.reset{background:#eaf5f5;border-color:#d5eaea;color:#40988d}.user-action.delete{background:#fff0ef;border-color:#f4d9d6;color:#cf716b}.user-action:hover{filter:brightness(.95)}.user-action:focus-visible{outline:3px solid #c1a5e8;outline-offset:3px}@media(pointer:coarse){.user-action{width:46px;height:46px}}

.category-picker{border:0;margin:4px 0 0;padding:0;min-width:0;width:100%;flex:1 0 100%}.category-picker legend{font-size:17px;font-weight:600;color:#665078;padding:0;margin-bottom:13px}.category-picker legend>span{color:#bc87a0}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.category-option{position:relative;display:block!important;min-width:0;margin:0!important}.category-option>input{position:absolute;width:1px;height:1px;opacity:0;padding:0;min-height:0}.category-face{display:flex;align-items:center;gap:11px;min-height:79px;padding:14px;background:#fff;border:1px solid #e6dfef;border-radius:12px;transition:border-color .15s,background .15s,box-shadow .15s;cursor:pointer}.category-symbol{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:10px;background:#f4effb;color:#9671be;font-size:23px;font-family:Arial,sans-serif}.category-copy{font-size:14px;color:#887397;line-height:1.5;overflow-wrap:anywhere}.category-check{display:grid;place-items:center;width:18px;height:18px;margin-left:auto;flex-shrink:0;border-radius:50%;border:1px solid #ded5e7;font-size:11px;color:transparent}.category-option>input:checked+.category-face{background:linear-gradient(110deg,#f2eafa,#fcfaff);border-color:#aa83ce;box-shadow:0 3px 12px #8352ab12}.category-option>input:checked+.category-face .category-symbol{background:#8964ba;color:white}.category-option>input:checked+.category-face .category-copy{color:#6d4a8d;font-weight:600}.category-option>input:checked+.category-face .category-check{background:#8964ba;border-color:#8964ba;color:white}.category-option>input:focus-visible+.category-face{outline:3px solid #c8afe5;outline-offset:3px}.category-option:hover .category-face{border-color:#bda3d2}.category-help{font-size:12px!important;color:#a28bad;margin-top:11px}.category-panel .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1050px){.category-grid,.category-panel .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.category-grid,.category-panel .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.category-face{padding:11px;min-height:86px;gap:8px}.category-symbol{width:30px;height:32px;font-size:21px}.category-copy{font-size:13px}.category-check{width:15px;height:15px}.category-picker legend{font-size:16px}}@media(max-width:380px){.category-symbol{display:none}.category-face{min-height:77px}.category-copy{font-size:13px}}@media print{.category-picker{display:none}}

/* Hierarchical activity submenu, replacing the category cards. */
.activity-submenu{flex:1 0 100%;min-width:0;border:1px solid #e2d7ed;border-radius:12px;background:#fff;margin:5px 0}.activity-submenu>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:13px 18px;font-size:15px;color:#72528f;font-weight:600;min-height:65px}.activity-submenu>summary::-webkit-details-marker{display:none}.submenu-menu-icon{font-size:26px;line-height:1;color:#a388bb}.submenu-selected{display:block;font-size:12px;font-weight:400;color:#a18aae;margin-top:2px}.submenu-chevron{margin-left:auto;font-size:23px;color:#a189b4;transition:transform .15s}.activity-submenu[open] .submenu-chevron{transform:rotate(180deg)}.activity-submenu[open]>summary{border-bottom:1px solid #eee7f5;background:#faf7fe;border-radius:12px 12px 0 0}.submenu-content{display:grid;grid-template-columns:1fr 1fr;gap:8px 25px;padding:16px 20px}.submenu-group:first-child:last-child{grid-column:1 / -1}.submenu-group-title{padding:10px 10px 6px;color:#9b85aa;font-size:12px;font-weight:600}.submenu-children{border-left:1px solid #e6dced;margin-left:16px;padding-left:9px}.submenu-item{position:relative;display:block!important;margin:3px 0!important;cursor:pointer}.submenu-item>input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0}.submenu-item-face{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 12px;border-radius:8px;color:#8b759b;font-size:14px;line-height:1.5;transition:background .15s}.submenu-branch{width:7px;height:7px;border-radius:50%;background:#d5c6e1;flex-shrink:0}.submenu-tick{margin-left:auto;color:transparent;font-size:13px}.submenu-item>input:checked+.submenu-item-face{color:#775198;background:#f0e7f9;font-weight:600}.submenu-item>input:checked+.submenu-item-face .submenu-branch{background:#9671b7}.submenu-item>input:checked+.submenu-item-face .submenu-tick{color:#9671b7}.submenu-item:hover .submenu-item-face{background:#f7f3fb}.submenu-item>input:focus-visible+.submenu-item-face{outline:3px solid #cbb1e2;outline-offset:2px}.submenu-content>.submenu-group:first-child:has(input[value=""]){grid-column:1 / -1;border-bottom:1px solid #f0eaf6;padding-bottom:5px}.category-panel{padding:17px 23px}.category-panel .activity-submenu{margin:0}@media(max-width:640px){.submenu-content{grid-template-columns:1fr;gap:0;padding:10px 12px}.submenu-item-face{font-size:14px;min-height:47px}.activity-submenu>summary{padding:12px 14px}.submenu-selected{font-size:12px;overflow-wrap:anywhere}.category-panel{padding:12px}.submenu-group-title{font-size:13px}}@media print{.activity-submenu{display:none}}

.left-category-menu{margin:10px 0 0;border-top:1px solid #eee8f5;padding-top:10px;min-width:0}.left-category-menu>summary{list-style:none;display:flex;gap:9px;align-items:center;cursor:pointer;padding:12px;font-size:14px;color:#8b6aa6}.left-category-menu>summary::-webkit-details-marker{display:none}.left-chevron{margin-left:auto}.left-category-items{padding:4px 0 8px 15px;border-left:1px solid #e7dbef;margin-left:20px}.left-category-link{display:block;padding:10px 11px;margin:3px 0;border-radius:8px;color:#9b87a9;font-size:12px;line-height:1.6}.left-category-link:hover{background:#f8f3fc}.left-category-link.selected{background:#eee4f8;color:#785099;font-weight:600}.sidebar{overflow-y:auto}.selected-category-note{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#f3edf9;border:1px solid #e5d9f0;border-radius:10px;padding:13px 17px;margin-bottom:20px}.selected-category-note>span{font-size:13px;color:#a08aaf}.selected-category-note strong{font-size:15px;color:#805b9a}.selected-category-note small{font-size:11px;color:#ad96ba;margin-left:auto}.activity-tabs{display:flex;background:white;border:1px solid #e4d9ef;border-radius:13px;gap:6px;padding:7px;margin-bottom:20px;overflow-x:auto}.activity-tabs button{border:0;background:transparent;border-radius:9px;padding:13px 15px;display:flex;gap:8px;align-items:center;justify-content:center;flex:1;white-space:nowrap;font-size:14px;color:#a18aae;min-height:48px}.activity-tabs button>span{font-size:11px;background:#f5f0fa;padding:3px 6px;border-radius:5px;color:#ac96bc}.activity-tabs button[aria-selected=true]{background:#8561b2;color:white;box-shadow:0 3px 10px #8055a325}.activity-tabs button[aria-selected=true]>span{background:#ffffff20;color:white}.activity-form>[hidden]{display:none!important}.tab-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 20px}.tab-pagination>span{font-size:13px;color:#a38cb0}.tab-pagination button:disabled{opacity:.4;cursor:default}.activity-form .section-heading{margin-bottom:25px}@media(max-width:960px){.staff-layout .sidebar nav{flex-wrap:wrap;overflow:visible}.left-category-menu{flex:1 0 100%;margin:6px 0 0}.left-category-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0;padding:8px;border:0}.left-category-link{font-size:13px}.activity-tabs button{flex-shrink:0;flex-basis:auto}.selected-category-note small{flex-basis:100%;margin:0}}@media(max-width:600px){.left-category-items{grid-template-columns:1fr 1fr}.activity-tabs{gap:4px;padding:5px}.activity-tabs button{padding:11px 12px;font-size:13px}.activity-tabs button>span{font-size:10px}.selected-category-note{gap:6px 10px}.tab-pagination .btn{font-size:13px;padding:10px 12px}.tab-pagination>span{font-size:12px}}@media print{.activity-tabs,.tab-pagination,.selected-category-note{display:none}.activity-form>[hidden]{display:block!important}}
/* Compact dashboard cards while preserving readable totals. */
.stats-grid{gap:14px;margin:18px 0}.stat-card{min-height:0;padding:16px 20px;border-radius:14px}.stat-card .stat-top{font-size:14px}.stat-card .stat-icon{width:29px;height:29px;font-size:18px;border-radius:9px}.stat-card .stat-value{font-size:39px;line-height:1.2;margin:7px 0 4px}.stat-card small{font-size:12px;line-height:1.4}.insight-ribbon{padding:15px 9px;margin-bottom:18px}.insight-ribbon>div{padding:0 20px}.insight-ribbon span{font-size:14px}.insight-ribbon strong{font-size:27px;margin-top:2px}.outcome-tiles{gap:11px}.outcome-tile{padding:13px 17px;border-radius:11px;border-top-width:3px}.outcome-tile strong{font-size:29px;line-height:1.15;margin:4px 0}.outcome-tile>span:not(.outcome-index){font-size:14px;line-height:1.4}.outcome-tile small{font-size:11px}.outcome-index{font-size:20px;top:8px;right:12px}.panel{padding:20px;margin-bottom:16px}.panel-heading{margin-bottom:17px}.dashboard-grid{gap:16px;margin-bottom:16px}.section-heading{margin-bottom:18px}.form-banner{padding:15px 19px;margin-bottom:17px}.selected-category-note{padding:10px 14px;margin-bottom:15px}.activity-tabs{margin-bottom:15px}.activity-form .section-heading{margin-bottom:20px}
@media(max-width:760px){.stats-grid{gap:10px}.stat-card{min-height:0;padding:13px 15px}.stat-card .stat-top{font-size:13px}.stat-card .stat-icon{width:25px;height:25px;font-size:16px}.stat-card .stat-value{font-size:33px;margin:6px 0 3px}.stat-card small{font-size:11px}.outcome-tile{padding:11px 14px}.outcome-tile strong{font-size:27px}.outcome-tile>span:not(.outcome-index){font-size:13px}.insight-ribbon>div{padding:11px 0}.insight-ribbon strong{font-size:25px}.panel{padding:17px}.panel-heading{margin-bottom:15px}.dashboard-grid{gap:13px;margin-bottom:13px}}

/* Group activity navigation and give long Thai labels more space. */
@media(min-width:961px){.sidebar{width:280px;padding-left:18px;padding-right:18px}.staff-layout .main{margin-left:280px}}
.activities-nav-group{min-width:0}.activities-nav-group .left-category-menu{margin:5px 0;border-top:0;padding:0}.activities-nav-group summary{min-height:48px;border-radius:10px;padding:12px 15px;font-size:15px;gap:13px;color:#8c7a9e}.activities-nav-group summary>span:first-child{font-size:23px;width:23px}.activities-nav-group .current-group>summary{background:#8561b2;color:white;box-shadow:0 4px 12px #7951a921}.activities-nav-group .left-category-items{margin:9px 0 10px 27px;padding:0 0 0 10px}.activities-nav-group .left-category-link{font-size:13px;line-height:1.65;padding:10px 12px;scroll-margin:12px}.sidebar a:focus-visible{outline:2px solid #b897d7;outline-offset:2px}.activities-nav-group .left-category-link[aria-current=true]{border-left:3px solid #a37abd;background:#eee4f8;padding-left:9px}.activities-nav-group .left-chevron{transition:transform .15s}.activities-nav-group details[open] .left-chevron{transform:rotate(180deg)}
@media(max-width:960px){.staff-layout .sidebar nav>.activities-nav-group{flex:1 0 100%;order:10}.activities-nav-group .left-category-items{margin:6px 0;padding:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:0}.activities-nav-group summary{padding:10px 12px}.staff-layout .main{margin-left:0}}
@media(max-width:600px){.activities-nav-group .left-category-items{grid-template-columns:1fr 1fr}.activities-nav-group .left-category-link{font-size:13px;padding:10px}}
@media print{.staff-layout .main{margin-left:0}}

/* Explicit expand/collapse affordance for the activity menu. */
.activities-nav-group summary .left-chevron{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;margin-left:auto;border:1px solid #cbb6df;border-radius:9px;background:#eee4f8;color:#79509e;box-shadow:0 2px 5px #76518d12;transition:transform .2s ease,background .2s ease}.activities-nav-group .current-group>summary .left-chevron{background:#ffffffed;color:#79509e;border-color:#ffffffa0}.activities-nav-group summary:hover .left-chevron{background:#e3d3f1}.activities-nav-group details[open]>summary .left-chevron{transform:rotate(180deg)}.activities-nav-group summary:focus-visible{outline:3px solid #b897d7;outline-offset:3px}@media(prefers-reduced-motion:reduce){.activities-nav-group summary .left-chevron{transition:none}}
/* Scrollbars appear while their scroll area is moving. */
html,.sidebar,.table-scroll,.activity-tabs,.sidebar nav{scrollbar-width:thin;scrollbar-color:transparent transparent}
html.is-scrolling,.sidebar.is-scrolling,.table-scroll.is-scrolling,.activity-tabs.is-scrolling,.sidebar nav.is-scrolling{scrollbar-color:#b59acb transparent}
html::-webkit-scrollbar,.sidebar::-webkit-scrollbar,.table-scroll::-webkit-scrollbar,.activity-tabs::-webkit-scrollbar,.sidebar nav::-webkit-scrollbar{width:7px;height:7px}
html::-webkit-scrollbar-track,.sidebar::-webkit-scrollbar-track,.table-scroll::-webkit-scrollbar-track,.activity-tabs::-webkit-scrollbar-track,.sidebar nav::-webkit-scrollbar-track{background:transparent}
html::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb,.table-scroll::-webkit-scrollbar-thumb,.activity-tabs::-webkit-scrollbar-thumb,.sidebar nav::-webkit-scrollbar-thumb{background:transparent;border-radius:20px}
html.is-scrolling::-webkit-scrollbar-thumb,.sidebar.is-scrolling::-webkit-scrollbar-thumb,.table-scroll.is-scrolling::-webkit-scrollbar-thumb,.activity-tabs.is-scrolling::-webkit-scrollbar-thumb,.sidebar nav.is-scrolling::-webkit-scrollbar-thumb{background:#b59acb}
@media(forced-colors:active){html,.sidebar,.table-scroll,.activity-tabs,.sidebar nav{scrollbar-color:auto}}
.thai-date-control{position:relative;display:flex;gap:8px;min-width:0}.thai-date-control>input{min-width:0;flex:1}.thai-calendar-toggle{border:1px solid #dccce9;border-radius:9px;color:#8860a6;background:#f2eaf9;width:48px;min-width:48px;font-size:25px;cursor:pointer}.thai-date-hint{font-size:11px;color:#aa92b8}.thai-calendar-panel{position:absolute;top:calc(100% + 7px);left:0;width:355px;max-width:calc(100vw - 68px);padding:13px;background:#fff;border:1px solid #e1d4ec;border-radius:14px;box-shadow:0 14px 40px #69418126;z-index:20}.thai-calendar-panel[hidden]{display:none!important}.thai-calendar-head{display:flex;gap:5px;align-items:center;margin-bottom:10px}.thai-calendar-head select{font-size:13px;padding:8px 5px;min-width:0;min-height:40px}.thai-calendar-head select:first-of-type{flex:1.1}.thai-calendar-head select:last-of-type{flex:1}.thai-calendar-head button{border:0;background:#f4eefb;border-radius:7px;color:#9570b2;font-size:24px;min-width:31px;min-height:40px}.thai-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.thai-weekday{text-align:center;font-size:12px;color:#ad96b9;padding:5px 0}.thai-calendar-grid button{min-height:39px;border:0;background:white;border-radius:8px;font-size:14px;color:#887394}.thai-calendar-grid button:hover{background:#f3eafb}.thai-calendar-grid button.today{box-shadow:inset 0 0 0 1px #c7a9df}.thai-calendar-grid button.selected{background:#8b64b0;color:white}.thai-calendar-foot{display:flex;justify-content:space-between;border-top:1px solid #f2ebf7;padding-top:8px;margin-top:10px}.thai-calendar-foot button{border:0;background:none;color:#9a76b5;font-size:13px;padding:7px;min-height:40px}.activity-form .panel:has(.thai-date-control){overflow:visible}.thai-calendar-panel button:focus-visible{outline:2px solid #ad86ca;outline-offset:1px}@media(max-width:600px){.thai-calendar-panel{width:330px;max-width:calc(100vw - 68px)}.thai-calendar-grid button{min-height:40px}.thai-calendar-head select{font-size:12px}}@media print{.thai-calendar-panel,.thai-calendar-toggle{display:none}}
.has-heading-symbol{display:flex;align-items:center;gap:10px;min-width:0}.heading-label{min-width:0;overflow-wrap:anywhere}.heading-symbol{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:31px;height:31px;border-radius:9px;background:#f0e8fa;color:#9b76bc}.heading-symbol svg{width:19px;height:19px}.heading-symbol-wallet{background:#e7f5ee;color:#629a83}.heading-symbol-users{background:#eaf0fc;color:#829bd0}.heading-symbol-check{background:#e8f4f0;color:#70a592}.heading-symbol-message{background:#fff1e9;color:#c79e84}.heading-symbol-pin{background:#f7edf5;color:#bb92ae}h1>.heading-symbol{width:42px;height:42px;border-radius:12px}h1>.heading-symbol svg{width:25px;height:25px}h3>.heading-symbol{width:26px;height:26px;border-radius:7px}h3>.heading-symbol svg{width:16px;height:16px}.public-layout .page-heading h1>.heading-symbol{background:#ffffff1a;color:#f4e9ff;border:1px solid #ffffff25}.login-card h1.has-heading-symbol{justify-content:center;gap:10px}.login-card h1>.heading-symbol{width:32px;height:32px;border-radius:9px;background:#efe6f7;color:#9873b4}.login-card h1>.heading-symbol svg{width:20px;height:20px}@media(max-width:600px){.has-heading-symbol{gap:8px}.heading-symbol{width:28px;height:28px}.heading-symbol svg{width:17px;height:17px}h1>.heading-symbol{width:34px;height:34px}h1>.heading-symbol svg{width:21px;height:21px}}@media print{.heading-symbol{background:none!important;color:#555!important;width:20px;height:20px}.heading-symbol svg{width:16px;height:16px}}
.activity-symbol{width:19px;height:19px;flex-shrink:0;vertical-align:middle}.activity-tabs button>span:has(.activity-symbol){display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:7px}.activity-tabs .activity-symbol{width:18px;height:18px}.section-heading>span:has(.activity-symbol){width:37px;height:37px;flex-shrink:0;border-radius:10px}.section-heading .activity-symbol{width:21px;height:21px}.form-actions .activity-symbol{width:18px;height:18px}.nav-item>span:has(.activity-symbol){display:inline-flex;align-items:center;justify-content:center}.nav-item .activity-symbol{width:22px;height:22px}@media(max-width:600px){.activity-tabs .activity-symbol{width:16px;height:16px}.activity-tabs button{gap:7px}.section-heading .activity-symbol{width:19px;height:19px}}

.report-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;margin:0 0 20px;max-width:100%}.report-actions>.btn{width:auto;flex:0 0 auto;min-height:42px;padding:9px 16px;font-size:14px;white-space:nowrap}@media(max-width:480px){.report-actions{gap:7px}.report-actions>.btn{flex:1 1 0;min-width:0;padding:9px 7px;font-size:12px}}@media print{.report-actions{display:none!important}}

/* Align filter controls and actions to one consistent baseline. */
.filter-bar{display:grid;grid-template-columns:repeat(var(--filter-fields,4),minmax(105px,1fr)) auto;align-items:end;gap:14px;padding:20px 22px}.filter-bar>label,.filter-bar>label:nth-of-type(3),.filter-bar>label:has(input[type=search]){display:flex;flex-direction:column;gap:8px;margin:0;min-width:0;font-size:14px;line-height:1.4;font-weight:500}.filter-bar>label>select,.filter-bar>label>input{height:46px;min-height:46px;margin:0;padding:10px 12px;font-size:16px;line-height:1.4;border-radius:9px;width:100%;box-sizing:border-box}.filter-actions{display:flex;align-items:center;gap:9px;margin:0;white-space:nowrap}.filter-bar .filter-actions>.btn{height:46px;min-height:46px;min-width:105px;width:auto;padding:10px 15px;font-size:14px;line-height:1.4;box-sizing:border-box;margin:0;display:inline-flex;align-items:center;justify-content:center;border-radius:9px}.filter-bar .filter-actions>.secondary{background:#faf8fe;border-color:#e0d5ef;color:#9573b1;box-shadow:none}.filter-bar .filter-actions>.secondary:hover{background:#f0e8f8}
@media(max-width:1200px){.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.filter-actions{grid-column:1 / -1;justify-content:flex-end}.filter-bar .filter-actions>.btn{min-width:130px}.filter-bar>label:has(input[type=search]){grid-column:auto}}
@media(max-width:640px){.filter-bar{padding:16px;gap:13px}.filter-bar>label{font-size:13px}.filter-bar>label>select,.filter-bar>label>input{font-size:15px;height:45px;min-height:45px}.filter-bar>label:has(input[type=search]){grid-column:1 / -1}.filter-actions{gap:10px;padding-top:1px}.filter-bar .filter-actions>.btn{flex:1;min-width:0;width:auto;height:45px;min-height:45px;font-size:14px;padding:10px}}
@media(max-width:359px){.filter-bar{grid-template-columns:1fr}.filter-actions{grid-column:1}}

/* Expand the SDL name without crowding narrow navigation. */
.brand .brand-expanded{font-size:17px;letter-spacing:0;line-height:1.45}.brand .brand-expanded>b{display:block;font-weight:600;color:#795594}.brand .brand-expanded small{font-size:10px;letter-spacing:.25px;margin-top:4px;line-height:1.4;color:#af99bb}.public-brand .expanded-site-title{font-size:21px!important;letter-spacing:0!important;font-weight:600!important;line-height:1.4}.brand-english{display:block;font-size:11px;letter-spacing:1.3px;color:#af96c1;margin:3px 0}.login-english{font-size:12px;letter-spacing:1px;color:#b29ac3}.breadcrumb{line-height:1.7}.public-layout .public-brand small{margin-top:3px}.public-brand>span{min-width:0}.public-brand{flex-shrink:1}.footer-right{letter-spacing:1px}
@media(max-width:960px){.brand .brand-expanded{font-size:15px}.brand .brand-expanded>b{display:inline}.brand .brand-expanded>b+b{margin-left:4px}.public-brand .expanded-site-title{font-size:18px!important}}
@media(max-width:600px){.public-brand .expanded-site-title{font-size:17px!important}.brand-english{font-size:9px;letter-spacing:.7px}.public-brand small{font-size:10px!important;line-height:1.6}.public-layout .public-brand{flex-basis:240px}.login-english{font-size:10px;letter-spacing:.5px}.brand .brand-expanded{font-size:14px}.breadcrumb{font-size:10px;max-width:260px}}

/* Activity-entry workspace: use the page width for fields, with compact chrome. */
.activity-entry-page .content{max-width:none;padding:18px 24px;margin:0 auto}.activity-entry-page .page-heading{margin:0 0 13px;gap:10px}.activity-entry-page .page-heading .eyebrow{display:none}.activity-entry-page .page-heading h1{font-size:26px}.activity-entry-page .page-heading p{font-size:12px;margin-top:4px}.activity-entry-page .form-banner{padding:10px 15px;margin-bottom:12px;gap:10px}.activity-entry-page .form-banner-icon{font-size:24px}.activity-entry-page .form-banner p{font-size:11px}.activity-entry-page .selected-category-note{padding:8px 13px;margin-bottom:12px}.activity-entry-page .selected-category-note strong{font-size:14px}.activity-entry-page .activity-tabs{padding:5px;margin-bottom:12px}.activity-entry-page .activity-tabs button{min-height:42px;padding:9px 12px}.activity-entry-page .activity-form>section.panel{padding:18px 20px;margin-bottom:12px;min-height:300px}.activity-entry-page .section-heading{margin-bottom:16px!important;gap:10px}.activity-entry-page .section-heading h2{font-size:19px}.activity-entry-page .section-heading p{font-size:11px}.activity-entry-page .form-grid{gap:13px 18px}.activity-entry-page .form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-entry-page .activity-form label{font-size:14px;gap:5px;margin:0}.activity-entry-page .activity-form input:not([type=hidden]),.activity-entry-page .activity-form select{min-height:40px;height:40px;padding:8px 11px;font-size:15px}.activity-entry-page .activity-form textarea{min-height:145px;font-size:15px;padding:11px}.activity-entry-page .input-table{margin-top:13px}.activity-entry-page .input-table th,.activity-entry-page .input-table td{padding:7px 11px}.activity-entry-page .input-table input{height:36px!important;min-height:36px!important}.activity-entry-page .mini-note{padding:8px 11px;margin-top:12px;font-size:11px}.activity-entry-page .field-note{font-size:11px;margin:6px 0 10px}.activity-entry-page .form-actions{position:static;box-shadow:none;padding:10px 13px;border-radius:10px}.activity-entry-page .form-actions .btn{min-height:40px;padding:8px 14px;font-size:14px}.activity-entry-page .tab-pagination{margin:0 0 10px;gap:10px}.activity-entry-page .tab-pagination .btn{min-height:36px;padding:6px 12px;font-size:13px}.activity-entry-page .site-footer{padding:12px 0;margin-top:0}.activity-entry-page .site-footer img{width:40px;height:40px}.activity-entry-page .site-footer strong{font-size:12px}.activity-entry-page .site-footer span{font-size:10px;line-height:1.6}.tracking-groups{display:grid;grid-template-columns:1.1fr .9fr 1.1fr;gap:14px;margin-top:17px;align-items:start}.tracking-group{background:#fcfaff;border:1px solid #eee4f5;border-radius:11px;padding:13px;min-width:0}.tracking-group h3{font-size:15px;margin:0 0 10px;line-height:1.5}.tracking-group .form-grid,.activity-entry-page .tracking-group .form-grid.three{grid-template-columns:1fr;gap:9px}.activity-entry-page .tracking-group label{display:grid;grid-template-columns:minmax(0,1fr) 75px;gap:8px;align-items:center;font-size:12px;line-height:1.45}.activity-entry-page .tracking-group input{height:35px!important;min-height:35px!important;padding:6px 8px!important;text-align:right;font-size:15px}.tracking-group .field-note{font-size:10px!important;line-height:1.6}.tracking-group .mini-note{font-size:10px!important;line-height:1.6;padding:7px!important}.activity-entry-page .thai-date-hint{font-size:10px}.activity-entry-page .thai-calendar-toggle{height:40px}.activity-entry-page .activity-form .thai-calendar-panel select{font-size:12px;padding:6px 3px}
@media(min-width:1200px){.activity-entry-page .activity-form>section.panel:first-of-type .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.activity-entry-page .activity-form>section.panel:first-of-type .span-2{grid-column:span 2}}
@media(max-width:1150px){.tracking-groups{grid-template-columns:1fr 1fr}.tracking-group:last-child{grid-column:1 / -1}.activity-entry-page .tracking-group:last-child .form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.activity-entry-page .content{padding:16px}.activity-entry-page .activity-form>section.panel{padding:16px;min-height:0}.activity-entry-page .form-banner{margin-bottom:10px}.activity-entry-page .selected-category-note small{font-size:10px}.activity-entry-page .activity-form input:not([type=hidden]),.activity-entry-page .activity-form select{height:44px;min-height:44px;font-size:16px}.activity-entry-page .activity-form label{font-size:14px}.tracking-groups{grid-template-columns:1fr}.tracking-group:last-child{grid-column:auto}.activity-entry-page .tracking-group:last-child .form-grid{grid-template-columns:1fr}.activity-entry-page .tracking-group label{font-size:14px;grid-template-columns:minmax(0,1fr) 90px}.activity-entry-page .tracking-group input{min-height:42px!important;height:42px!important;font-size:16px}.activity-entry-page .form-grid.three{grid-template-columns:1fr}.activity-entry-page .form-grid{gap:13px}.activity-entry-page .tab-pagination .btn{min-height:44px}.activity-entry-page .form-actions .btn{min-height:44px}.activity-entry-page .site-footer span{font-size:10px}}
@media(min-width:961px) and (max-height:800px){.activity-entry-page .topbar{min-height:62px;padding-top:8px;padding-bottom:8px}.activity-entry-page .content{padding-top:12px;padding-bottom:12px}.activity-entry-page .page-heading h1{font-size:23px}.activity-entry-page .page-heading{margin-bottom:10px}.activity-entry-page .form-banner{padding:7px 13px}.activity-entry-page .activity-form>section.panel{min-height:0;padding:15px 18px}.activity-entry-page .section-heading{margin-bottom:12px!important}.activity-entry-page .activity-tabs button{min-height:39px;padding:7px 10px}.activity-entry-page .site-footer{padding:8px 0}.tracking-groups{margin-top:12px;gap:10px}.tracking-group{padding:10px}.tracking-group .form-grid{gap:6px}}
.activity-entry-page .form-actions>.tab-pagination{margin:0 auto 0 0;justify-content:flex-start}.activity-entry-page .form-actions>#draft-hint{display:none}@media(max-width:760px){.activity-entry-page .form-actions{flex-wrap:wrap}.activity-entry-page .form-actions>.tab-pagination{flex:1 0 100%;justify-content:space-between;margin-bottom:7px}.activity-entry-page .form-actions>.btn{flex:1}}

.outcome-icon{position:absolute;top:13px;right:15px;display:flex;align-items:center;justify-content:center;width:39px;height:39px;background:#ffffff8c;border:1px solid #ffffff99;border-radius:11px;color:inherit}.outcome-icon svg{width:25px;height:25px}.outcome-tile .outcome-index{display:none}.outcome-tile strong{padding-right:43px;min-height:39px;display:flex;align-items:center}.outcome-tile>span:not(.outcome-index):not(.outcome-icon){display:block}.outcome-tile>.outcome-icon{display:flex}@media(max-width:600px){.outcome-icon{width:33px;height:33px;top:11px;right:11px;border-radius:9px}.outcome-icon svg{width:22px;height:22px}.outcome-tile strong{padding-right:36px;min-height:33px}}@media print{.outcome-icon{background:none;border:0}}

.outcome-7{background:linear-gradient(125deg,#f4e9f8,#fcf6ff);border-color:#e9d8ef;border-top-color:#b78bc5;color:#a16cb0}
/* Staff workspace visual refresh: distinct navigation, richer section hierarchy. */
.staff-layout{background:radial-gradient(ellipse at 100% 0%,#e2e9fb80,transparent 40%),radial-gradient(ellipse at 35% 80%,#f0dded65,transparent 45%),#f3f1fa}.staff-layout .sidebar{background:linear-gradient(165deg,#35244f 0%,#4a3269 55%,#563a73 100%);border-right:0;box-shadow:6px 0 28px #39214b13}.staff-layout .brand .brand-expanded>b{color:#fff1ff}.staff-layout .brand .brand-expanded small{color:#c7b0dc}.staff-layout .brand img{filter:drop-shadow(0 3px 7px #190d2435)}.staff-layout .nav-label{color:#b59cc9}.staff-layout .nav-item{color:#d6c3e9;border:1px solid transparent}.staff-layout .nav-item:hover{background:#ffffff12;color:white;border-color:#ffffff10}.staff-layout .nav-item.active{background:linear-gradient(110deg,#aa7dda,#8d68c1);color:white;box-shadow:0 5px 16px #21132f25;border-color:#c1a0e440}.staff-layout .nav-item>span{color:#d6b7ef}.staff-layout .nav-item.active>span{color:white}.staff-layout .activities-nav-group summary{color:#ddc7ee}.staff-layout .activities-nav-group .current-group>summary{background:linear-gradient(110deg,#ad7fd8,#8c66bd);box-shadow:0 5px 15px #22132e24}.staff-layout .activities-nav-group .left-category-items{border-color:#a880bb50}.staff-layout .left-category-link{color:#c9b0dd}.staff-layout .left-category-link:hover{background:#ffffff10;color:#fff}.staff-layout .activities-nav-group .left-category-link.selected{background:#ffffff15;color:#fff;border-left-color:#e4c080}.staff-layout .side-note{border-color:#ffffff15;color:#dcc9e9}.staff-layout .side-note small{color:#ad93c0}.staff-layout .sidebar a:focus-visible{outline-color:#e2b982}.staff-layout .topbar{background:#ffffffed;border-bottom:1px solid #e6ddf1;box-shadow:0 4px 20px #4c2d7105}.staff-layout .topbar strong{color:#70508d}.staff-layout .avatar{background:linear-gradient(135deg,#e6d5f5,#f6e9f8);color:#8c59b0;border:1px solid #dfc8ee}.staff-layout .page-heading{position:relative;border-left:4px solid #a77bcd;padding-left:17px}.staff-layout .page-heading h1{color:#513766}.staff-layout .eyebrow{color:#a483bb}.staff-layout .panel{border-color:#e5d9ef;box-shadow:0 5px 22px #61427908}.staff-layout .panel-heading{padding-bottom:13px;border-bottom:1px solid #f0e7f6}.staff-layout .panel-heading h2{color:#71508d}.staff-layout .filter-bar{border-left-color:#a77bcd;background:linear-gradient(110deg,#fff,#faf7fe);box-shadow:0 5px 20px #76559908}.staff-layout .filter-bar label{color:#8c6ba2}.staff-layout .btn{background:linear-gradient(115deg,#9d70c5,#815cac);box-shadow:0 4px 11px #8b60ac1d}.staff-layout .btn:hover{background:linear-gradient(115deg,#8e60b7,#74509f)}.staff-layout .btn.secondary{background:#fff;color:#986fb5;border-color:#d8c4e8;box-shadow:none}.staff-layout .btn.secondary:hover{background:#f7f0fc}.staff-layout table thead th{background:#ede3f6;color:#8d68a5;border-bottom:1px solid #dfcee9}.staff-layout table tbody tr:nth-child(even){background:#fcfaff}.staff-layout table tbody tr:hover{background:#f7f0fd}.staff-layout table td{border-bottom-color:#f0e8f6}.staff-layout .work-strip{border-color:#e2d2ef;background:linear-gradient(110deg,#fbf7ff,#fff);border-left:4px solid #b68dd3}.staff-layout .work-strip b{background:#eee2f7;color:#956bb0;border-radius:5px;padding:2px 7px}.staff-layout .badge.approved{background:#e0f4ec;color:#418d75}.staff-layout .badge.submitted{background:#fff0d2;color:#b58b40}.staff-layout .badge.returned{background:#ffe8df;color:#bd8068}.staff-layout .badge.draft{background:#eee3f6;color:#a17ab9}.staff-layout .selected-category-note{border-left:4px solid #b48bd2;background:linear-gradient(110deg,#eee2f8,#fbf8fe)}.staff-layout .activity-tabs{border-color:#ddc8ed;box-shadow:0 4px 15px #8b5cac0a;padding:6px;background:#fff}.staff-layout .activity-tabs button{border:1px solid transparent;color:#a283b4;transition:background .15s,color .15s}.staff-layout .activity-tabs button:hover{background:#f8f1fc}.staff-layout .activity-tabs button[aria-selected=true]{background:linear-gradient(115deg,#aa7bd0,#8e65b7);color:white;border-color:#b38ad4;box-shadow:0 4px 12px #9f70bd26}.staff-layout .activity-tabs button:nth-child(2)>span{background:#e7effb;color:#83a0cd}.staff-layout .activity-tabs button:nth-child(3)>span{background:#e3f2ec;color:#70a48e}.staff-layout .activity-tabs button:nth-child(4)>span{background:#fff0df;color:#c9a079}.staff-layout .activity-tabs button:nth-child(5)>span{background:#f6e8f2;color:#bc92b0}.staff-layout .activity-tabs button[aria-selected=true]>span{background:#ffffff24;color:white}.activity-entry-page .activity-form>section.panel{position:relative;border-top:3px solid #bb97d8;background:linear-gradient(145deg,#fff 75%,#fcf9ff)}.activity-entry-page .activity-form>section.panel:nth-of-type(2){border-top-color:#97b6df}.activity-entry-page .activity-form>section.panel:nth-of-type(3){border-top-color:#8dbfaa}.activity-entry-page .activity-form>section.panel:nth-of-type(4){border-top-color:#e2b18b}.activity-entry-page .activity-form>section.panel:nth-of-type(5){border-top-color:#cf9abd}.activity-entry-page .section-heading{padding-bottom:12px;border-bottom:1px solid #f0e5f7}.activity-entry-page .section-heading>span{background:#eee0f8;color:#ab7dc7}.activity-entry-page .activity-form>section.panel:nth-of-type(2) .section-heading>span{background:#e9f0fc;color:#8eadd4}.activity-entry-page .activity-form>section.panel:nth-of-type(3) .section-heading>span{background:#e5f2ec;color:#87b29c}.activity-entry-page .activity-form>section.panel:nth-of-type(4) .section-heading>span{background:#fff0e3;color:#d6ab88}.activity-entry-page .activity-form>section.panel:nth-of-type(5) .section-heading>span{background:#f9eaf4;color:#c59ab7}.staff-layout .activity-form label{color:#9272a6;font-weight:500}.staff-layout .activity-form input:not([type=hidden]),.staff-layout .activity-form select,.staff-layout .activity-form textarea{background:#fdfaff;border-color:#e1d2ec;color:#6f537e;transition:border-color .15s,box-shadow .15s}.staff-layout .activity-form input:focus,.staff-layout .activity-form select:focus,.staff-layout .activity-form textarea:focus{background:white;border-color:#bf9bd8;box-shadow:0 0 0 3px #b58dc514;outline:none}.activity-entry-page .form-actions{border-color:#dbc6ea;background:#fff;box-shadow:0 5px 20px #81559909}.activity-entry-page .tracking-group{background:linear-gradient(145deg,#f9f3fd,#fff);border-color:#e9dcf2}.staff-layout .site-footer{border-top-color:#dfcceb}.staff-layout .rate-pill{background:#e3f4eb;color:#5d9c7c}.staff-layout .user-action.edit{background:#eee1f9;color:#a077bb;border-color:#e2cbed}.staff-layout .user-action.reset{background:#e4f1ef;color:#71a79b}.staff-layout .user-action.delete{background:#ffebe7;color:#cb9284}.staff-layout .report-actions .btn.secondary{background:#fff}.staff-layout .narrow{border-top:3px solid #b28ccf}.staff-layout .activities-nav-group summary .left-chevron{background:#ffffff14;border-color:#ffffff2a;color:#ebd7f6}.staff-layout .activities-nav-group .current-group>summary .left-chevron{background:#ffffffed;color:#956bb0}@media(max-width:960px){.staff-layout .sidebar{background:linear-gradient(110deg,#35244f,#583b77)}.staff-layout .activities-nav-group .left-category-items{background:#ffffff08;border-radius:10px}.staff-layout .page-heading{padding-left:13px}}@media print{.staff-layout{background:white}.staff-layout .panel{background:white;box-shadow:none}.staff-layout table thead th{background:#eee;color:#333}.staff-layout table tbody tr:nth-child(even){background:white}.staff-layout .page-heading{border:0}}
/* Amethyst and gold palette inspired by the supplied reference. */
:root{--purple:#663983;--purple-deep:#392046;--ink:#392b43}.staff-layout{background:radial-gradient(ellipse at 100% 0%,#e9d9ee70,transparent 45%),radial-gradient(ellipse at 10% 90%,#f4e7cb50,transparent 45%),#f6f2f8}.staff-layout .sidebar{background:radial-gradient(ellipse at 10% 0%,#65387160,transparent 50%),linear-gradient(170deg,#210d30,#351344 55%,#451c51);border-right:1px solid #b78c452c}.staff-layout .brand .brand-expanded>b{color:#f3dfb5}.staff-layout .brand .brand-expanded small{color:#bba0c4}.staff-layout .nav-label{color:#a589b2}.staff-layout .nav-item{color:#d6c3df}.staff-layout .nav-item>span{color:#cfa863}.staff-layout .nav-item.active,.staff-layout .activities-nav-group .current-group>summary{background:linear-gradient(110deg,#70447f,#542960);color:#ffedcb;border:1px solid #b58a4e70;box-shadow:0 4px 15px #12051d24}.staff-layout .nav-item.active>span{color:#f0cd87}.staff-layout .activities-nav-group summary{color:#ddc8e4}.staff-layout .activities-nav-group .left-category-link.selected{background:linear-gradient(90deg,#c3a06020,#ffffff08);color:#f5dfb8;border-left-color:#d2aa61}.staff-layout .left-category-link:hover{background:#ffffff0c;color:#ffe5b6}.staff-layout .activities-nav-group summary .left-chevron{background:#d8b16b13;border-color:#d4ae5f40;color:#e2bd7a}.staff-layout .activities-nav-group .current-group>summary .left-chevron{background:#e4c78c;color:#543061;border-color:#f7dfad}.staff-layout .side-note{border-color:#c99b5030;color:#d9c4df}.staff-layout .sidebar a:focus-visible{outline-color:#dfba77}.staff-layout .topbar{border-bottom:1px solid #dfc89b60;background:linear-gradient(110deg,#fff,#fdf9f2)}.staff-layout .avatar{background:linear-gradient(135deg,#efe0f4,#faf1dd);border-color:#ddc399;color:#724581}.staff-layout .page-heading{border-left-color:#c3a05b}.staff-layout .page-heading h1{color:#51325f}.staff-layout .eyebrow{color:#af8d54}.staff-layout .heading-symbol{background:#f0e5f5;color:#855594}.staff-layout .panel{border-color:#e7ddeb;box-shadow:0 5px 20px #49235307}.staff-layout .panel-heading h2{color:#674474}.staff-layout .panel-heading:before{background:linear-gradient(#bd984f,#e5ca91)}.staff-layout .filter-bar{border-left-color:#c2a264;background:linear-gradient(110deg,#fff,#fdfaf5);border-color:#e4d5e9;border-left:4px solid #c2a264}.staff-layout .filter-bar label{color:#896694}.staff-layout .btn{background:linear-gradient(110deg,#79508a,#5a2e6a);color:#fff4df;border-color:#c3a36c70;box-shadow:0 4px 12px #69397318}.staff-layout .btn:hover{background:linear-gradient(110deg,#69407a,#4a2059)}.staff-layout .btn.secondary{background:#fffdf8;border-color:#d9c28f;color:#916f35;box-shadow:none}.staff-layout .btn.secondary:hover{background:#faf2df}.staff-layout .activity-tabs{background:#fff;border-color:#e0ccab}.staff-layout .activity-tabs button[aria-selected=true]{background:linear-gradient(110deg,#794d8a,#5e326e);color:#ffecc8;border-color:#c7a569}.staff-layout .activity-tabs button[aria-selected=true]>span{background:#e2be791f;color:#f0d093}.staff-layout .selected-category-note{background:linear-gradient(110deg,#f2e8f7,#fcf8ef);border-left-color:#c4a05d}.activity-entry-page .activity-form>section.panel{border-top-color:#bc9b61}.staff-layout .section-heading>span{background:#f3ebdb;color:#b18a43}.staff-layout .tracking-group{background:linear-gradient(145deg,#fbf7fd,#fffcf6)}.staff-layout .activity-form input:focus,.staff-layout .activity-form select:focus,.staff-layout .activity-form textarea:focus{border-color:#c6a36b;box-shadow:0 0 0 3px #c8a15b16}.staff-layout table thead th{background:#eee4f2;color:#795285;border-bottom-color:#d6bc9270}.staff-layout table tbody tr:nth-child(even){background:#fdfaf5}.staff-layout table tbody tr:hover{background:#f5edf8}.staff-layout .site-footer{border-top-color:#c7a56660}.staff-layout .site-footer strong{color:#82578f}.staff-layout .site-footer .footer-right{color:#b4945c}.staff-layout .work-strip{border-left-color:#bf9a53;background:linear-gradient(110deg,#fffaf0,#fff)}.staff-layout .stat-0{background:linear-gradient(120deg,#855995,#5e346d)}.staff-layout .stat-1{background:linear-gradient(120deg,#508d80,#3e7168)}.staff-layout .stat-2{background:linear-gradient(120deg,#c3a061,#aa8248)}.staff-layout .stat-3{background:linear-gradient(120deg,#7b719f,#5f557f)}.staff-layout .report-actions .btn.secondary{background:#fffdf8}.public-layout .page-heading{background:radial-gradient(ellipse at 100% 0%,#a4783f25,transparent 50%),linear-gradient(115deg,#281132,#51245f 60%,#73447c);border:1px solid #bb944b50}.public-layout .page-heading .eyebrow{color:#d8b77a}.public-layout .page-heading .heading-tag{border-color:#d8b77a60;color:#f7e3bd;background:#e2ba6b14}.public-layout .public-brand .expanded-site-title{color:#633a70!important}.public-layout .account>.btn{background:linear-gradient(110deg,#754580,#502357);border-color:#bf9c5960}.public-layout .topbar{border-bottom-color:#d3b57570}.public-layout .stat-0{background:linear-gradient(120deg,#895c99,#603570)}.public-layout .stat-2{background:linear-gradient(120deg,#c3a061,#aa8248)}.public-layout .filter-bar{border-left-color:#c2a264}.login-body:has(.login-screen-card){background:radial-gradient(ellipse at 15% 20%,#62327080,transparent 55%),radial-gradient(ellipse at 90% 90%,#a2763530,transparent 50%),linear-gradient(125deg,#210b2b,#36133f 55%,#4b2353)}.login-body:before{opacity:.55}.login-body:after{background:radial-gradient(circle at 15% 25%,#b68a3a25,transparent 24%),radial-gradient(circle at 85% 70%,#d2ac6120,transparent 22%)}.login-body .back-link{color:#e6cc96}.login-body .login-screen-card{border:1px solid #cfad7355;box-shadow:0 25px 80px #13071b55!important;background:linear-gradient(120deg,#fdf9fff5,#fffaf0f5)!important}.login-screen-card h1{color:#684073}.login-body .login-screen-card .btn{background:linear-gradient(110deg,#7b4e89,#57295f);border-color:#c3a16270;color:#fff0d1}.login-body .login-logo{filter:drop-shadow(0 0 14px #d6b56845)}.login-screen-card:after{background:radial-gradient(ellipse at 20% 20%,#ddc39c20,transparent 55%),repeating-linear-gradient(135deg,transparent 0,transparent 35px,#ad8f4e09 35px,#ad8f4e09 36px)}@media(max-width:960px){.staff-layout .sidebar{background:linear-gradient(110deg,#250d32,#4b2257)}}@media print{.staff-layout,.login-body{background:white}.staff-layout .panel{box-shadow:none}.staff-layout table thead th{background:#eee;color:#333}}

@media(max-width:600px){.report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.report-actions>.btn{width:100%;min-height:44px;font-size:12px;padding:9px 6px;white-space:normal}}
.notes-confirmation{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;margin-top:18px!important;padding:13px;background:#f7f1fb;border:1px solid #e6d7ef;border-radius:9px}.activity-entry-page .notes-confirmation input[type=checkbox]{width:20px!important;height:20px!important;min-height:20px!important;flex-shrink:0;accent-color:#8557a1;margin-top:2px}.notes-confirmation>span{font-size:13px;line-height:1.7}.completion-status{font-size:12px;color:#b08852;background:#fff9ed;border:1px solid #eee0c5;border-radius:8px;padding:9px 13px;margin-bottom:10px}.completion-status.ready{background:#ecf7f0;border-color:#d0e8da;color:#69947e}.activity-tabs button.tab-complete:after{content:'✓';font-size:11px;margin-left:2px;color:#82ad96}.activity-tabs button.tab-incomplete:after{content:'•';font-size:17px;margin-left:2px;color:#c5a06b}.activity-tabs button[aria-selected=true].tab-complete:after{color:#e1efda}.activity-tabs button[aria-selected=true].tab-incomplete:after{color:#f4d8a5}.activity-row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.activity-row-actions form{margin:0}.awaiting-completion{opacity:.8}

.staff-layout .badge.submitted{background:#e0f4ec;color:#418d75}.public-layout .badge.submitted{background:#e8f8f0;color:#399c80}

.registration-age-table{margin-bottom:14px;min-width:420px}.registration-age-table td,.registration-age-table th{padding:7px 10px}.registration-age-table input{max-width:130px;text-align:right}.registration-totals input[readonly]{background:#f1e9f8!important;color:#80579a!important;font-weight:600}.passed-age-caption{text-align:left;font-size:15px;font-weight:600;color:#89699f;padding:12px 0 9px}.activity-entry-page .registration-age-table input{height:36px!important;min-height:36px!important}@media(max-width:760px){.activity-entry-page .registration-age-table input{height:44px!important;min-height:44px!important}}
.learner-matrices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}.learner-matrix{min-width:0;background:#fdfaff;border:1px solid #e9deef;border-radius:12px;padding:15px}.learner-matrix h3{margin:0 0 9px;font-size:17px;color:#89699f}.learner-matrix.graduation-matrix{background:#fcfdfb;border-color:#e3eadf}.learner-matrix.graduation-matrix h3{color:#78927c}.learner-matrix .passed-age-caption{display:none}.learner-matrix .registration-age-table,.learner-matrix .input-table{min-width:350px;margin-top:12px;margin-bottom:12px}.learner-matrix th:first-child{width:34%}.activity-entry-page .learner-matrix .form-grid{gap:12px;grid-template-columns:1fr 1fr}.activity-entry-page .learner-matrix .mini-note{font-size:10px;line-height:1.5}.activity-entry-page .learner-matrix input{max-width:100%}.activity-entry-page .learner-matrix .registration-totals input{font-size:17px;font-weight:600}.learner-matrix .field-note{min-height:32px}@media(max-width:1100px){.learner-matrices{gap:12px}.learner-matrix{padding:12px}.learner-matrix .registration-age-table,.learner-matrix .input-table{min-width:330px}}@media(max-width:850px){.learner-matrices{grid-template-columns:1fr}.learner-matrix .field-note{min-height:0}.learner-matrix{padding:14px}}@media print{.learner-matrices{display:block}.learner-matrix{border:0;padding:0;break-inside:avoid}}
/* Error feedback appears after submission and clears as values are corrected. */
.activity-entry-page .activity-form .report-invalid,.staff-layout .activity-form .report-invalid{border:1.5px solid #d9827f!important;background:#fff2f0!important;box-shadow:0 0 0 3px #d98b8512!important}.activity-entry-page .activity-form .report-invalid:focus{outline:2px solid #e5aba5!important;outline-offset:2px}.field-error{display:block;color:#bc706b;font-size:12px;line-height:1.55;margin:5px 0 0;text-align:left;overflow-wrap:anywhere}.tracking-group label>.field-error{grid-column:1 / -1}.activity-tabs button.tab-has-errors{box-shadow:inset 0 -3px #d5918b}.activity-tabs button.tab-has-errors:after{content:'!';color:#c67f79!important;font-size:12px;font-weight:700}.activity-tabs button.tab-has-errors[aria-selected=true]:after{color:#ffe0d6!important}.notes-confirmation:has(.report-invalid){border-color:#d99a94;background:#fff3f0}.registration-age-table .field-error,.input-table .field-error{max-width:180px;font-size:11px}
.activity-compact-table{table-layout:fixed;min-width:1200px!important}.activity-compact-table td{height:56px;padding:9px 11px;white-space:nowrap;vertical-align:middle}.activity-compact-table th{padding:12px 11px}.cell-ellipsis{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help;line-height:1.6}.cell-ellipsis:focus-visible{outline:2px solid #b894ce;outline-offset:2px;border-radius:3px}.activity-compact-table .activity-row-actions{gap:6px;flex-wrap:nowrap}.activity-compact-table .user-action{width:34px;height:34px;min-width:34px;border-radius:8px}.activity-compact-table .user-action svg{width:17px;height:17px}.user-action.view{color:#799bc7;background:#eef4fc;border-color:#dce7f4}.user-action.print{color:#a591af;background:#f5f0f8;border-color:#e8dfed}.user-action.map{color:#76a58c;background:#ecf7ef;border-color:#d8ecdf}.user-action:disabled{opacity:.35;cursor:default}.app-tooltip{position:fixed;z-index:10000;max-width:min(370px,calc(100vw - 20px));padding:10px 13px;background:#432b50;color:#fff8ff;font-size:13px;line-height:1.65;border:1px solid #94739f66;border-radius:9px;box-shadow:0 6px 20px #30123f26;white-space:normal;overflow-wrap:anywhere;pointer-events:none}.app-tooltip[hidden]{display:none!important}@media(pointer:coarse){.activity-compact-table .user-action{width:42px;height:42px;min-width:42px}.activity-compact-table{min-width:1280px!important}}@media print{.app-tooltip{display:none!important}.activity-compact-table{min-width:0!important}.activity-compact-table td{white-space:normal;height:auto}.cell-ellipsis{white-space:normal;overflow:visible}}
.activity-map-details,.activity-evidence{border:1px solid #e4d6eb;border-radius:10px;padding:12px 15px;background:#fbf7fe}.activity-map-details>summary,.activity-evidence>summary{cursor:pointer;font-size:14px;color:#9572aa;font-weight:600}.activity-map-details[open]>summary,.activity-evidence[open]>summary{margin-bottom:13px}.activity-location-map{height:290px;min-width:0;border:1px solid #e4d9ec;border-radius:9px;overflow:hidden;z-index:0}.map-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:11px}.map-controls>span{margin-right:auto;color:#9f85af;font-size:12px}.activity-entry-page .map-controls .btn{font-size:12px;min-height:38px;padding:7px 11px}.activity-map-marker{background:transparent}.activity-map-marker>span{display:block;width:28px;height:28px;border-radius:50% 50% 50% 0;background:#9866b2;border:3px solid #fff;box-shadow:0 3px 9px #36204460;transform:rotate(-45deg)}.activity-map-marker>span:after{content:'';display:block;width:8px;height:8px;border-radius:50%;background:#f5dca0;margin:7px}.activity-evidence{margin-top:18px}.activity-evidence .form-grid{margin-top:13px}.activity-media{margin:20px 0;padding:18px;border:1px solid #e8deef;border-radius:12px;background:#fff}.activity-media p{font-size:13px;overflow-wrap:anywhere;margin:8px 0}.activity-photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px}.activity-photo-grid figure{margin:0}.activity-photo-grid img{display:block;width:100%;height:240px;object-fit:contain;background:#faf7fc;border:1px solid #ede3f2;border-radius:8px}.activity-photo-grid figcaption{font-size:12px;color:#a18ab0;margin-top:7px}@media(max-width:600px){.activity-location-map{height:270px}.map-controls>.btn{flex:1}.map-controls>span{flex-basis:100%}.activity-photo-grid{grid-template-columns:1fr}.activity-photo-grid img{height:auto;max-height:300px}.activity-map-details,.activity-evidence{padding:11px}}
.activity-location-map iframe{width:100%;height:100%;border:0;display:block}.map-coordinate-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:12px}.activity-evidence>h3{margin:0 0 11px;font-size:15px}.activity-entry-page .activity-evidence{padding:12px 14px;margin:0 0 15px;background:#fcf9ff}.activity-entry-page .activity-evidence .form-grid{gap:11px 15px;margin-top:0}.activity-inline-previews{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}.activity-inline-previews>div{height:110px;display:flex;align-items:center;justify-content:center;text-align:center;background:#f5eef9;border:1px dashed #dac4e6;border-radius:9px;color:#b19bbd;font-size:12px;overflow:hidden}.activity-inline-previews img{width:100%;height:100%;object-fit:contain}.activity-entry-page .activity-form textarea[name=problems],.activity-entry-page .activity-form textarea[name=suggestions]{height:60px;min-height:60px;resize:vertical}.activity-entry-page .activity-form>section.panel:last-of-type>.form-grid{gap:10px 15px}.activity-entry-page .activity-form>section.panel:last-of-type .notes-confirmation{margin-top:11px!important;padding:9px 11px}.activity-entry-page .activity-evidence .field-note{margin:6px 0}.activity-entry-page .activity-form>section.panel:last-of-type{min-height:0}@media(max-width:760px){.map-coordinate-fields{grid-template-columns:1fr}.activity-inline-previews>div{height:100px}.activity-entry-page .activity-evidence .form-grid{grid-template-columns:1fr}.activity-entry-page .activity-form textarea[name=problems],.activity-entry-page .activity-form textarea[name=suggestions]{height:70px;min-height:70px}}@media print{.activity-location-map{display:none}}
/* A clear amber warning marks every incomplete activity tab. */
.staff-layout .activity-tabs button.tab-incomplete:after,.staff-layout .activity-tabs button.tab-has-errors:after,.staff-layout .activity-tabs button[aria-selected=true].tab-incomplete:after,.staff-layout .activity-tabs button[aria-selected=true].tab-has-errors:after{content:'!';display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;min-width:19px;border-radius:50%;margin-left:4px;background:#ffe19a;color:#845e12!important;border:1px solid #efc462;font-size:12px;font-weight:800;line-height:1;box-shadow:0 1px 4px #bd8d291a}.staff-layout .activity-tabs button.tab-has-errors{box-shadow:inset 0 -3px #e3bc65}.staff-layout .activity-tabs button.tab-complete:not(.tab-has-errors):after{content:'✓';background:none;border:0;color:#82ad96;font-size:12px}.staff-layout .activity-tabs button[aria-selected=true].tab-complete:not(.tab-has-errors):after{color:#e1efda}
.activity-entry-page .activity-form input.followup-unavailable{background:#efedf1!important;color:#b5aabd!important;border-color:#e3dce8!important;cursor:not-allowed;box-shadow:none!important}.activity-entry-page .activity-form input.followup-derived{background:#f1e8f7!important;color:#9c77b2!important;font-weight:600}.followup-unavailable::-webkit-inner-spin-button{appearance:none}.followup-unavailable::-webkit-outer-spin-button{appearance:none}

/* Compact, readable activity details without changing other screens. */
.activity-detail-page .content{padding:22px 26px;max-width:1500px;margin:0 auto}.activity-detail-page .page-heading{margin-bottom:17px;padding-left:14px}.activity-detail-page .page-heading h1{font-size:28px;line-height:1.45}.activity-detail-page .page-heading p{font-size:15px;margin-top:6px}.activity-detail-page .page-heading .eyebrow{font-size:9px;margin-bottom:5px}.activity-detail-page .panel{padding:19px 21px;margin-bottom:15px}.activity-detail-page .dashboard-grid{gap:15px;margin-bottom:15px;grid-template-columns:1fr 1fr}.activity-detail-page .dashboard-grid .panel{margin-bottom:0}.activity-detail-page .detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 17px}.activity-detail-page .detail-grid>div{padding:10px 12px;background:#fbf7fd;border:1px solid #eee3f4;border-radius:9px;min-width:0}.activity-detail-page .detail-grid small{font-size:13px;color:#a18aaa;line-height:1.45}.activity-detail-page .detail-grid strong{font-size:17px;font-weight:600;color:#765681;line-height:1.5;margin-top:5px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.activity-detail-page h2{font-size:21px;margin-bottom:12px}.activity-detail-page h3{font-size:18px;margin:15px 0 9px}.activity-detail-page .panel>h3:first-child{margin-top:0}.activity-detail-page .bar-row{grid-template-columns:minmax(140px,1.25fr) minmax(70px,1.5fr) 45px;gap:12px;font-size:15px;margin:13px 0}.activity-detail-page .bar-row strong{font-size:19px;color:#775082}.activity-detail-page .bar-track{height:16px}.activity-detail-page .chart-unit{font-size:12px;margin-top:12px}.activity-detail-page table{font-size:16px}.activity-detail-page table th{font-size:15px;padding:10px 12px}.activity-detail-page table td{padding:10px 12px;font-variant-numeric:tabular-nums}.activity-detail-page .prewrap{font-size:16px;line-height:1.7;color:#80678d}.activity-detail-page .badge{font-size:13px;padding:6px 11px}.activity-detail-page .activity-media{padding:18px 21px;margin:0 0 15px;border-color:#e5d9ef}.activity-detail-page .activity-media h3{margin-top:0;font-size:20px}.activity-detail-page .activity-media p{font-size:15px;line-height:1.65;margin:6px 0}.activity-detail-page .activity-photo-grid{gap:13px;margin-top:12px}.activity-detail-page .activity-photo-grid img{height:190px}.activity-detail-page .activity-photo-grid figcaption{font-size:13px}.activity-detail-page .site-footer{padding:14px 0;margin-top:0}
@media(max-width:1150px){.activity-detail-page .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-detail-page .dashboard-grid{grid-template-columns:1fr}.activity-detail-page .bar-row{grid-template-columns:minmax(150px,1fr) minmax(90px,2fr) 50px}}
@media(max-width:640px){.activity-detail-page .content{padding:18px 14px}.activity-detail-page .page-heading h1{font-size:24px}.activity-detail-page .page-heading p{font-size:14px}.activity-detail-page .detail-grid{grid-template-columns:1fr 1fr;gap:10px}.activity-detail-page .detail-grid>div{padding:10px}.activity-detail-page .detail-grid small{font-size:12px}.activity-detail-page .detail-grid strong{font-size:16px}.activity-detail-page .panel,.activity-detail-page .activity-media{padding:16px}.activity-detail-page h2{font-size:19px}.activity-detail-page .bar-row{grid-template-columns:minmax(110px,1.2fr) minmax(45px,1fr) 35px;gap:8px;font-size:14px}.activity-detail-page .bar-row strong{font-size:17px}.activity-detail-page .activity-media p{font-size:14px}.activity-detail-page .activity-photo-grid img{height:auto;max-height:240px}}@media(max-width:359px){.activity-detail-page .detail-grid{grid-template-columns:1fr}}@media print{.activity-detail-page .content{padding:0}.activity-detail-page .detail-grid>div{background:white;border-color:#ccc}.activity-detail-page .panel{box-shadow:none}.activity-detail-page .detail-grid strong,.activity-detail-page .detail-grid small{font-size:11px}}
/* Readable activity facts, including pages using the earlier layout markup. */
.detail-grid small,.activity-detail-page .detail-grid small{font-size:16px;line-height:1.55;color:#8a729a;font-weight:500}.detail-grid strong,.activity-detail-page .detail-grid strong{font-size:21px;line-height:1.6;color:#624475;font-weight:600;margin-top:6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.detail-grid,.activity-detail-page .detail-grid{gap:19px 23px}.detail-grid>div,.activity-detail-page .detail-grid>div{min-width:0;padding:11px 13px}.activity-detail-page .detail-grid>div{background:#fcf9fe;border-color:#e9ddf1}@media(max-width:640px){.detail-grid small,.activity-detail-page .detail-grid small{font-size:15px}.detail-grid strong,.activity-detail-page .detail-grid strong{font-size:19px;line-height:1.55}.detail-grid,.activity-detail-page .detail-grid{gap:13px}.detail-grid>div,.activity-detail-page .detail-grid>div{padding:10px}}@media print{.detail-grid small,.activity-detail-page .detail-grid small{font-size:11px}.detail-grid strong,.activity-detail-page .detail-grid strong{font-size:12px}}

.detail-back-row{display:flex;margin:0 0 15px}.detail-back-row .btn{min-height:42px;padding:9px 15px;font-size:14px;gap:9px}.detail-back-row .btn>span{font-size:20px;line-height:1}@media(max-width:600px){.detail-back-row .btn{min-height:44px}}@media print{.detail-back-row{display:none}}

/* Compact facts with readable values and uncluttered Thai date ranges. */
.activity-detail-page .detail-grid{gap:12px 14px;align-items:stretch}.activity-detail-page .detail-grid>div{padding:10px 13px;min-height:82px;display:flex;flex-direction:column;justify-content:center;border-radius:9px}.activity-detail-page .detail-grid small{font-size:14px;line-height:1.4;margin:0}.activity-detail-page .detail-grid strong{font-size:20px;line-height:1.4;margin-top:5px}.detail-fact-value{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;cursor:help}.detail-fact-value:focus-visible{outline:2px solid #b38ccc;outline-offset:2px;border-radius:3px}.activity-detail-page .detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.activity-detail-page .content>.panel:has(.detail-grid){padding:15px 17px}@media(max-width:1100px){.activity-detail-page .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-detail-page .detail-grid strong{font-size:18px}}@media(max-width:640px){.activity-detail-page .detail-grid{grid-template-columns:1fr 1fr;gap:10px}.activity-detail-page .detail-grid>div{padding:10px 11px;min-height:76px}.activity-detail-page .detail-grid small{font-size:13px}.activity-detail-page .detail-grid strong{font-size:17px}}@media(max-width:359px){.activity-detail-page .detail-grid{grid-template-columns:1fr}}@media print{.detail-fact-value{white-space:normal;overflow:visible}.activity-detail-page .detail-grid>div{min-height:0}.activity-detail-page .detail-grid strong{font-size:12px}.activity-detail-page .detail-grid small{font-size:11px}}

.budget-comparison table{min-width:1000px}.budget-comparison th:first-child{width:29%}.budget-comparison .budget-negative{color:#c2766b;font-weight:600}.budget-comparison tfoot th,.budget-comparison tfoot td{background:#eee4f4;color:#8a62a0}.budget-comparison td small{font-size:12px;line-height:1.5}.budget-comparison .panel-heading .btn{font-size:13px;min-height:40px}.budget-comparison .field-note{margin:13px 0 0}

.province-work-overview{border-left:4px solid #c5a36a}.province-work-overview details>summary{cursor:pointer;color:#a382b5;font-size:14px;padding:9px 0}.province-work-overview .table-scroll{margin-top:10px}.province-work-overview .field-note{margin:12px 0 0}.province-work-overview .panel-heading{margin-bottom:9px}

.compact-long-table{max-height:430px;overflow:auto}.compact-long-table thead th,.activity-records thead th{position:sticky;top:0;z-index:1}.compact-long-table td{padding:10px 12px}.compact-list-pagination{padding-top:12px}.summary-note-list>h2{margin-bottom:14px}.summary-note-item{border:1px solid #e9ddf0;border-radius:9px;margin:8px 0;background:#fcfaff}.summary-note-item>summary{cursor:pointer;display:list-item;padding:11px 15px;color:#9b79b0;font-size:14px}.summary-note-item>summary>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:calc(100% - 25px);vertical-align:middle}.summary-note-item p{padding:0 15px;font-size:14px;margin:0 0 12px}.activity-records{max-height:440px;overflow:auto}@media(max-width:600px){.compact-long-table,.activity-records{max-height:380px}.summary-note-item>summary{padding:10px 12px;font-size:13px}}@media print{.compact-long-table,.activity-records{max-height:none;overflow:visible}.table-scroll tr[hidden]{display:table-row!important}.summary-note-item{break-inside:avoid}.summary-note-item>summary>span{white-space:normal;overflow:visible}}

/* Gentle sidebar feedback, independent from the active menu styling. */
.staff-layout .sidebar .nav-item,.staff-layout .left-category-link,.staff-layout .activities-nav-group summary{transition:transform .18s ease,background .18s ease,box-shadow .18s ease,color .18s ease}.staff-layout .sidebar .nav-item:hover,.staff-layout .left-category-link:hover{transform:translateX(3px);box-shadow:inset 3px 0 #d5b477;background-color:#ffffff13}.staff-layout .activities-nav-group summary:hover{background-color:#ffffff10;box-shadow:inset 3px 0 #d5b477}.staff-layout .sidebar .nav-item:hover>span{color:#edcf98}.outcome-feature{padding:0!important;border:1px solid #d9c49b!important;overflow:hidden;grid-column:1 / -1}.outcome-feature-heading{padding:22px 25px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:radial-gradient(ellipse at right top,#c4a45a20,transparent 60%),linear-gradient(115deg,#37203f,#674174);border-bottom:2px solid #c2a363}.outcome-feature-heading h2{color:#fff4df!important;font-size:24px!important;margin:3px 0 4px!important}.outcome-feature-heading .heading-symbol{background:#ffffff16;color:#eed5a2}.outcome-feature-kicker{font-size:11px;letter-spacing:1.1px;color:#dfc493}.outcome-feature-heading p{font-size:12px;color:#d7c2df}.outcome-followed-total{text-align:right;flex-shrink:0}.outcome-followed-total strong{display:block;font-size:33px;line-height:1.2;color:#f2dbac;font-variant-numeric:tabular-nums}.outcome-followed-total>span{display:block;font-size:11px;color:#cbb6d3;margin-top:4px}.outcome-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:20px;background:linear-gradient(135deg,#fcf9ff,#fffdf8)}.result-feature-card{--result-color:#9874b0;--result-bg:#f0e6f7;border:1px solid #e8dfee;border-top:3px solid var(--result-color);background:white;border-radius:12px;padding:15px 17px;min-width:0;box-shadow:0 4px 12px #5c376a05}.result-feature-card.result-tone-1{--result-color:#6a9d87;--result-bg:#e8f4ec}.result-feature-card.result-tone-2{--result-color:#bb995b;--result-bg:#faf0de}.result-feature-card.result-tone-3{--result-color:#8196bb;--result-bg:#eaf0f9}.result-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.result-card-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;color:var(--result-color);background:var(--result-bg)}.result-card-icon svg{width:23px;height:23px}.result-card-percent{font-size:12px;font-weight:600;color:var(--result-color);padding:3px 7px;background:var(--result-bg);border-radius:6px}.result-card-number{font-size:36px;font-weight:700;color:#674572;font-variant-numeric:tabular-nums;line-height:1.25;margin:10px 0 7px}.result-card-number small{font-size:11px;font-weight:400;color:#ad98b8;margin-left:7px}.result-feature-card h3{font-size:14px!important;line-height:1.5;margin:0!important;color:#9a7ba8;min-height:42px}.result-card-meter{height:5px;border-radius:5px;background:var(--result-bg);overflow:hidden;margin-top:10px}.result-card-meter>span{display:block;height:100%;background:var(--result-color);border-radius:5px}.dashboard-grid:has(>.outcome-feature){grid-template-columns:1fr!important}.result-feature-card h3>.heading-symbol{display:none}.outcome-tile{box-shadow:0 5px 12px #60427008}.outcome-tile strong{color:#785385}.outcome-tile .outcome-icon{box-shadow:0 3px 9px #7554880a}.outcome-tile.outcome-0,.outcome-tile.outcome-5{background:linear-gradient(110deg,#eee2f7,#fbf6ff)}.outcome-tile.outcome-1,.outcome-tile.outcome-4{background:linear-gradient(110deg,#e1f0e6,#f5fcf7)}.outcome-tile.outcome-2,.outcome-tile.outcome-6{background:linear-gradient(110deg,#f5e7c9,#fffbf1)}.outcome-tile.outcome-3,.outcome-tile.outcome-7{background:linear-gradient(110deg,#e6e8f5,#f9f8ff)}
@media(max-width:1050px){.outcome-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:15px}.result-feature-card{padding:13px}.result-card-number{font-size:31px}.result-card-number small{display:block;margin-left:0;margin-top:3px}.result-feature-card h3{font-size:13px!important}}@media(max-width:760px){.outcome-feature-grid{grid-template-columns:1fr 1fr}.outcome-feature-heading{padding:18px}.outcome-feature-heading h2{font-size:21px!important}.outcome-feature-heading p{font-size:11px}.outcome-followed-total strong{font-size:27px}.result-card-number small{display:inline;margin-left:6px}.result-card-number{font-size:32px}.result-feature-card h3{font-size:14px!important}.outcome-feature-heading{gap:12px}.outcome-followed-total>span{font-size:10px}}@media(max-width:359px){.outcome-feature-heading{flex-direction:column;align-items:flex-start}.outcome-followed-total{text-align:left}}@media(prefers-reduced-motion:reduce){.staff-layout .sidebar .nav-item,.staff-layout .left-category-link,.staff-layout .activities-nav-group summary{transition:none}.staff-layout .sidebar .nav-item:hover,.staff-layout .left-category-link:hover{transform:none}}@media print{.outcome-feature{border-color:#aaa!important}.outcome-feature-heading{background:white;border-color:#aaa}.outcome-feature-heading h2,.outcome-followed-total strong,.outcome-feature-heading p,.outcome-feature-kicker{color:#333!important}.outcome-feature-grid{background:white}.result-feature-card{box-shadow:none;break-inside:avoid}}
/* Compact results: 8 metrics in a slim grid with no repeated captions. */
.outcome-feature-heading{padding:13px 18px;gap:15px}.outcome-feature-kicker{display:none}.outcome-feature-heading h2{font-size:21px!important;margin:0!important}.outcome-feature-heading p{font-size:11px;margin-top:4px}.outcome-followed-total strong{font-size:27px}.outcome-followed-total>span{font-size:10px;margin-top:2px}.outcome-feature-grid{gap:10px;padding:13px}.result-feature-card{position:relative;padding:11px 13px;border-radius:9px;border-top-width:2px;box-shadow:none}.result-card-top{position:absolute;right:11px;top:11px}.result-card-icon{width:29px;height:29px;border-radius:8px}.result-card-icon svg{width:20px;height:20px}.result-card-percent{display:none}.result-card-number{font-size:30px;line-height:1.15;margin:0 35px 6px 0}.result-card-number small{font-size:10px;display:inline;margin-left:5px}.result-feature-card h3{font-size:13px!important;min-height:0;line-height:1.45;margin:0!important}.result-card-meter{height:3px;margin-top:9px}.activity-detail-page .outcome-feature-heading{padding:13px 17px}.activity-detail-page .result-feature-card h3{margin:0!important}.outcome-tiles{gap:9px}.outcome-tile{padding:10px 13px}.outcome-tile strong{font-size:27px;margin:2px 0;min-height:31px}.outcome-tile .outcome-icon{width:31px;height:31px;top:10px;right:11px}.outcome-tile .outcome-icon svg{width:20px;height:20px}.outcome-tile>span:not(.outcome-index):not(.outcome-icon){font-size:13px;line-height:1.4}.outcome-tile small{font-size:10px}@media(min-width:1450px){.outcome-feature-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.result-card-number small{display:block;margin:3px 0 0}.result-feature-card h3{min-height:38px;font-size:12px!important}.result-card-top{right:9px;top:10px}.result-card-icon{width:25px;height:25px}.result-card-icon svg{width:17px;height:17px}.result-card-number{font-size:27px;margin-right:23px}.result-feature-card{padding:10px}.outcome-followed-total{display:flex;gap:8px;align-items:baseline}}@media(max-width:1050px){.result-feature-card{padding:11px 12px}.result-card-number{font-size:28px}.result-card-number small{display:block;margin:3px 0 0}.result-feature-card h3{font-size:12px!important;min-height:34px}.outcome-feature-heading h2{font-size:20px!important}}@media(max-width:760px){.outcome-feature-heading{padding:12px 14px}.outcome-feature-heading p{display:none}.outcome-feature-heading h2{font-size:19px!important}.outcome-followed-total strong{font-size:24px}.outcome-feature-grid{gap:8px;padding:10px}.result-card-number{font-size:29px;margin-bottom:5px}.result-card-number small{display:inline;margin-left:5px}.result-feature-card h3{font-size:12px!important;min-height:0}.result-card-meter{margin-top:7px}.result-card-top{right:10px;top:10px}.outcome-tile{padding:10px 12px}}

.outcome-comparison-chart{margin:0 13px 14px;padding:14px 15px 12px;border:1px solid #e9dfee;background:#fff;border-radius:10px}.outcome-comparison-chart figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.outcome-comparison-chart figcaption strong{font-size:14px;color:#a181af;font-weight:600}.outcome-comparison-chart figcaption>span{font-size:10px;color:#b49dbd}.outcome-comparison-chart figcaption i{display:inline-block;background:#c4a065;width:8px;height:8px;margin-right:4px;border-radius:3px}.outcome-chart-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d3c1df transparent}.outcome-chart-inner{min-width:650px;max-width:1100px;margin:auto}.outcome-chart-inner>svg{display:block;width:100%;height:190px;overflow:visible}.outcome-chart-inner svg rect{outline:none;transition:opacity .15s}.outcome-chart-inner svg rect:hover,.outcome-chart-inner svg rect:focus{opacity:.75;stroke:#886297;stroke-width:2}.outcome-chart-labels{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:0 8px 0 53px}.outcome-chart-labels>span{font-size:11px;color:#ad94b7;text-align:center;line-height:1.4;max-height:32px;overflow:hidden;cursor:help}.outcome-feature .outcome-comparison-chart{margin-top:0}.outcome-chart-scroll:focus-visible{outline:2px solid #c0a4d2;outline-offset:2px;border-radius:7px}@media(max-width:760px){.outcome-comparison-chart{margin:0 10px 10px;padding:12px 10px}.outcome-comparison-chart figcaption{align-items:flex-start;flex-direction:column;gap:4px}.outcome-chart-inner>svg{height:175px}.outcome-chart-labels>span{font-size:10px}}@media print{.outcome-chart-scroll{overflow:visible}.outcome-chart-inner{min-width:0}.outcome-chart-inner>svg{height:auto}.outcome-comparison-chart{break-inside:avoid}}

/* Plot labels share the SVG coordinates of their bars. */
.outcome-chart-inner>svg{height:auto;max-height:235px;width:100%}.report-three-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:16px}.report-three-charts>.panel{margin:0;padding:17px;min-width:0}.report-three-charts h2{font-size:17px;line-height:1.5;min-height:46px;margin:0 0 12px}.report-three-charts h2 .heading-symbol{width:27px;height:27px}.report-chart-body{height:246px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d6c3e1 transparent;padding-right:3px}.report-three-charts .bar-row{grid-template-columns:minmax(75px,1.2fr) minmax(45px,1fr) 32px;gap:9px;margin:12px 0;font-size:12px}.report-three-charts .bar-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-three-charts .bar-row strong{font-size:16px}.report-three-charts .bar-track{height:12px}.report-three-charts .chart-unit{font-size:10px;margin-top:13px}@media(max-width:1050px){.report-three-charts{grid-template-columns:1fr}.report-chart-body{height:auto;max-height:260px}.report-three-charts h2{min-height:0}.report-three-charts .bar-row{grid-template-columns:minmax(135px,1fr) minmax(90px,2fr) 40px;font-size:13px}.outcome-chart-inner>svg{height:auto;max-height:225px}}@media print{.report-three-charts{display:block}.report-chart-body{height:auto;max-height:none;overflow:visible}.report-three-charts>.panel{margin-bottom:12px;break-inside:avoid}.outcome-chart-inner>svg{max-height:none}}

/* Soft metallic details and pictograms with exact counts. */
.result-feature-card{background:radial-gradient(ellipse at 100% 0%,var(--result-bg),transparent 72%),linear-gradient(135deg,#fff,#ffffffed);border-color:#e8dded;box-shadow:0 4px 14px #6c44730a,inset 0 1px #fff;transition:box-shadow .2s,border-color .2s}.result-feature-card:hover{box-shadow:0 6px 20px #79528515;border-color:#d5bedf}.result-card-icon{background:linear-gradient(135deg,#fff,var(--result-bg));border:1px solid #ffffffc9;box-shadow:0 2px 7px #7752800b}.result-card-number{letter-spacing:-.5px;color:#694376;text-shadow:0 1px #fff}.result-card-meter{height:4px;background:#eae3ee;box-shadow:inset 0 1px 2px #69457008}.result-card-meter>span{background:linear-gradient(90deg,var(--result-color),#d0b379)}.outcome-comparison-chart{background:linear-gradient(165deg,#fff,#fcf9fe);box-shadow:inset 0 1px #fff}.outcome-chart-inner svg rect{filter:drop-shadow(0 3px 3px #84608b16)}.age-people-chart{margin-top:15px}.people-total-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:14px}.people-total{--person-color:#819fc7;--person-bg:#edf3fb;display:flex;align-items:center;gap:12px;border:1px solid #e0e8f4;border-radius:12px;padding:13px 17px;background:linear-gradient(110deg,#f5f9ff,#fff)}.people-total.female{--person-color:#b28ab9;--person-bg:#f6edf7;border-color:#ecdff0;background:linear-gradient(110deg,#fcf5fd,#fff)}.people-total-icon{display:grid;place-items:center;width:40px;height:48px;border-radius:10px;background:var(--person-bg);color:var(--person-color)}.people-total-icon svg{height:36px;width:20px;fill:currentColor}.people-total>div>span{font-size:12px;color:#a48eaf}.people-total strong{display:block;font-size:28px;font-variant-numeric:tabular-nums;color:#7d5a8b;line-height:1.25}.people-total strong small{font-size:11px;font-weight:400;margin-left:7px;color:#b59fbf}.people-total>b{margin-left:auto;color:var(--person-color);font-size:16px}.people-age-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.people-age-card{background:#fff;border:1px solid #e9dfef;border-radius:11px;padding:12px}.people-age-title{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:11px}.people-age-title>strong{font-size:13px;font-weight:500;color:#9d80ac}.people-age-title>span{font-size:11px;color:#b49abf;background:#f8f3fb;padding:3px 6px;border-radius:5px}.people-ratio-row{--person-color:#90add4;display:flex;align-items:center;gap:6px;margin:8px 0}.people-ratio-row.female{--person-color:#bb95c0}.people-sex-label{font-size:11px;color:#b49ebf;width:23px;flex-shrink:0}.person-glyphs{display:flex;gap:2px;flex:1;min-width:0}.person-glyph{position:relative;display:block;height:26px;flex:1;max-width:15px;min-width:5px;color:#eee8f2}.person-glyph>svg,.person-glyph-lit>svg{display:block;width:100%;height:100%;fill:currentColor}.person-glyph-lit{position:absolute;inset:0;color:var(--person-color);clip-path:inset(calc(100% - var(--person-fill)) 0 0 0)}.people-ratio-row>strong{font-size:17px;color:var(--person-color);font-variant-numeric:tabular-nums;margin-left:auto}.people-chart-note{font-size:11px;color:#b29bbd;margin-top:12px}.activity-detail-page .people-chart-note{font-size:11px}.activity-detail-page .people-total strong{font-size:27px}.activity-detail-page .people-total strong small{font-size:11px}.activity-detail-page .people-age-title>strong{font-size:13px}.activity-detail-page .people-ratio-row>strong{font-size:17px}.activity-detail-page .people-total-row .people-total strong{margin-top:0}@media(max-width:1150px){.people-age-grid{grid-template-columns:1fr 1fr}}@media(max-width:640px){.people-total{padding:11px;gap:8px}.people-total strong{font-size:24px}.people-total>b{font-size:12px}.people-total-icon{width:30px;height:40px}.people-total strong small{display:block;margin-left:0;font-size:10px}.people-age-grid{gap:9px}.people-age-card{padding:10px}.people-age-title{flex-wrap:wrap}.people-age-title>strong{font-size:12px}.people-ratio-row{gap:4px}.person-glyphs{gap:1px}.person-glyph{height:24px}.people-ratio-row>strong{font-size:15px}}@media(max-width:359px){.people-age-grid,.people-total-row{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.result-feature-card{transition:none}}@media print{.result-feature-card{box-shadow:none;background:white}.people-age-card,.people-total{break-inside:avoid;background:white}.person-glyph-lit{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.summary-chart-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0 8px}.summary-mini-chart{--summary-color:#a180b9;display:flex;align-items:center;gap:16px;border:1px solid #e6dcec;border-radius:13px;background:linear-gradient(120deg,#fff,#fcf9ff);padding:16px 20px;min-width:0}.summary-mini-green{--summary-color:#7baa94}.summary-mini-gold{--summary-color:#c1a169}.summary-mini-ring{width:76px;height:76px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--summary-color) var(--summary-pct),#f1eaf5 0);display:grid;place-items:center}.summary-mini-ring>span{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:white;font-size:15px;font-weight:600;color:var(--summary-color);font-variant-numeric:tabular-nums}.summary-mini-copy{min-width:0}.summary-mini-copy h3{font-size:14px;margin:0 0 5px;color:#a287af}.summary-mini-copy h3 .heading-symbol{display:none}.summary-mini-copy strong{font-size:27px;color:#795387;font-variant-numeric:tabular-nums;line-height:1.3}.summary-mini-copy strong small{font-size:14px;color:#b49abf;font-weight:400}.summary-mini-copy p{font-size:10px;color:#b59ec0;margin-top:4px}.summary-scope-caption{font-size:11px;color:#b49bbc;text-align:right;margin-bottom:17px}.course-chart-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.course-chart-item{border:1px solid #e9dfef;border-radius:10px;padding:14px;background:#fdfaff;min-width:0}.course-chart-item h3{font-size:14px!important;color:#9875a9;margin:0 0 15px;min-height:25px}.course-chart-item h3 .heading-symbol{display:none}.course-chart-line{margin:12px 0}.course-chart-line>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.course-chart-line span{font-size:11px;color:#ad94ba}.course-chart-line strong{font-size:17px;color:#9971ab;font-variant-numeric:tabular-nums}.course-chart-line strong small{font-size:12px;font-weight:400;color:#b9a3c4}.course-chart-track{height:9px;background:#eee5f6;border-radius:6px;overflow:hidden}.course-chart-track>span{display:block;height:100%;background:linear-gradient(90deg,#ba9bd2,#9776ae);border-radius:6px}.course-chart-item:nth-child(2) .course-chart-track>span{background:linear-gradient(90deg,#a9cabb,#76a68f)}.course-chart-item:nth-child(3) .course-chart-track>span{background:linear-gradient(90deg,#dfc896,#b79b69)}.course-chart-item:nth-child(4) .course-chart-track>span{background:linear-gradient(90deg,#afc1de,#8a9fbe)}.dashboard-grid:has(>section:only-child){grid-template-columns:1fr}.activity-detail-page .summary-mini-copy strong{font-size:27px}@media(max-width:1150px){.summary-mini-chart{padding:13px;gap:10px}.summary-mini-ring{width:62px;height:62px}.summary-mini-ring>span{width:50px;height:50px;font-size:12px}.summary-mini-copy strong{font-size:23px}.summary-mini-copy h3{font-size:13px}.course-chart-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.summary-chart-row{grid-template-columns:1fr;gap:10px}.summary-mini-chart{padding:12px 16px}.summary-mini-copy p{font-size:11px}.summary-mini-copy strong{font-size:27px}.summary-mini-ring{width:63px;height:63px}.summary-mini-ring>span{width:51px;height:51px}.summary-mini-copy h3{font-size:14px}.course-chart-grid{gap:10px}.course-chart-item{padding:12px}.course-chart-item h3{font-size:13px!important}.course-chart-line>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}}@media(max-width:359px){.course-chart-grid{grid-template-columns:1fr}}@media print{.summary-mini-chart{break-inside:avoid}.summary-mini-ring{print-color-adjust:exact;-webkit-print-color-adjust:exact}.course-chart-item{break-inside:avoid}}
/* Layout balance: content-sized panels, tighter rhythm and consistent chart height. */
.content{padding-top:25px;padding-bottom:25px}.page-heading{margin-bottom:20px}.panel{padding:18px 20px;margin-bottom:15px}.panel-heading{margin-bottom:15px;gap:12px}.panel-heading p{margin-top:3px}.dashboard-grid{gap:15px;margin-bottom:15px;align-items:start}.dashboard-grid>.panel{height:auto;min-height:0}.filter-bar{margin-bottom:18px;padding:17px 20px;gap:12px}.summary-chart-row{margin:17px 0 7px;gap:12px}.summary-scope-caption{margin-bottom:14px}.summary-mini-chart{padding:14px 18px}.insight-ribbon{margin-bottom:15px;padding:13px 9px}.public-layout .content{padding-top:26px;padding-bottom:24px}.public-layout .page-heading{min-height:148px;padding:26px 30px;margin-bottom:19px}.public-layout .page-heading h1{font-size:30px}.public-layout .page-heading p{margin-top:9px}.public-layout .page-heading .eyebrow{margin-bottom:8px}.public-layout .dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start}.dashboard-grid>.panel.wide{max-height:410px;overflow:auto}.bar-row{margin:14px 0;gap:12px}.chart-unit{margin-top:13px}.income-donut{width:160px;height:160px;margin:12px auto 17px;box-shadow:0 0 0 7px #faf8fd}.income-donut>div{width:121px;height:121px}.income-donut strong{font-size:32px}.income-donut span{font-size:10px}.income-legend>div{padding:6px 0;font-size:13px}.income-legend strong{font-size:16px}.people-total-row{gap:11px;margin-bottom:12px}.people-total{padding:11px 14px}.people-age-grid{gap:10px}.people-age-card{padding:10px 12px}.people-age-title{margin-bottom:8px}.people-ratio-row{margin:6px 0}.people-chart-note{margin-top:10px}.outcome-feature-grid{padding:12px;gap:10px}.outcome-comparison-chart{margin:0 12px 12px;padding:12px 14px 10px}.outcome-chart-inner>svg{max-height:195px}.outcome-feature-heading{padding:12px 18px}.report-three-charts{gap:13px;margin-bottom:15px;align-items:start}.report-three-charts>.panel{padding:16px;min-height:0}.report-three-charts h2{min-height:0;margin-bottom:12px;font-size:16px}.report-chart-body{height:auto;max-height:245px;min-height:0}.report-three-charts .bar-row{margin:11px 0}.course-chart-panel .panel-heading{margin-bottom:14px}.course-chart-grid{gap:11px}.course-chart-item{padding:12px 14px}.course-chart-item h3{margin-bottom:11px;min-height:0}.course-chart-line{margin:10px 0}.course-chart-panel .field-note{margin-bottom:0}.site-footer{margin-top:5px;padding-top:18px;padding-bottom:18px}.province-work-overview{padding:16px 20px}.province-work-overview .panel-heading{padding-bottom:10px;margin-bottom:6px}.staff-layout .panel-heading{padding-bottom:11px}.activity-detail-page .panel{padding:17px 19px}.activity-detail-page .detail-grid{gap:11px 13px}.activity-detail-page .detail-grid>div{min-height:76px;padding:9px 12px}.activity-detail-page .activity-media{padding:17px 19px}.activity-detail-page .dashboard-grid{align-items:start}.activity-entry-page .activity-form>section.panel{min-height:0}.activity-entry-page .tracking-groups{align-items:start}.activity-entry-page .form-actions{margin-bottom:0}.list-pagination{padding-top:13px;gap:9px}.budget-comparison .field-note{font-size:11px}.report-actions{margin-bottom:16px}
@media(min-width:1200px){.public-layout .dashboard-grid:has(.age-people-chart){grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.public-layout .dashboard-grid:has(.age-people-chart) .people-age-grid{grid-template-columns:1fr 1fr}.public-layout .dashboard-grid:has(.age-people-chart) .people-total{padding:10px}.public-layout .dashboard-grid:has(.age-people-chart) .people-total>b{font-size:13px}.public-layout .dashboard-grid:has(.age-people-chart) .people-total strong{font-size:25px}}
@media(min-width:1450px){.outcome-feature-grid{gap:9px}.result-feature-card{padding:10px}.outcome-chart-inner>svg{max-height:185px}.content{max-width:1560px}.activity-entry-page .content{max-width:none}}
@media(max-width:1050px){.public-layout .dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.panel.wide{max-height:390px}.report-three-charts{grid-template-columns:1fr}.report-chart-body{max-height:245px}.public-layout .page-heading{padding:24px}.outcome-chart-inner>svg{max-height:190px}}
@media(max-width:640px){.content,.public-layout .content{padding:20px 14px}.panel{padding:16px;margin-bottom:13px}.dashboard-grid{gap:13px;margin-bottom:13px}.filter-bar{padding:15px;margin-bottom:15px}.public-layout .page-heading{min-height:0;padding:22px 20px;margin-bottom:16px}.public-layout .page-heading h1{font-size:25px}.public-layout .page-heading p{font-size:13px;margin-top:8px}.summary-mini-chart{padding:11px 15px}.insight-ribbon{padding:3px 15px}.insight-ribbon>div{padding:10px 0}.outcome-feature-grid{padding:10px;gap:9px}.outcome-comparison-chart{margin:0 10px 10px;padding:10px}.report-three-charts>.panel{padding:15px}.people-total-row{gap:9px}.people-total{padding:10px}.activity-detail-page .panel{padding:15px}.activity-detail-page .detail-grid>div{min-height:72px}.province-work-overview{padding:15px}.site-footer{padding:15px 0}.dashboard-grid>.panel.wide{max-height:360px}}
@media print{.dashboard-grid>.panel.wide{max-height:none;overflow:visible}.panel,.summary-mini-chart{box-shadow:none}.report-chart-body{max-height:none;overflow:visible}}

[data-outcome-card]{position:relative;overflow:hidden;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}[data-outcome-card]:before{content:'';position:absolute;inset:-50% auto -50% -85%;width:45%;background:linear-gradient(100deg,transparent,#ffffffb8,transparent);transform:skewX(-23deg);pointer-events:none;z-index:2}[data-outcome-card]:hover:before,[data-outcome-card]:focus-visible:before{animation:outcome-shine .85s ease forwards}[data-outcome-card]:hover{transform:translateY(-3px);box-shadow:0 9px 20px #76518d18;border-color:#c9afd9}[data-outcome-card]:active{transform:translateY(-1px) scale(.99)}[data-outcome-card]:focus-visible{outline:3px solid #c9a9df;outline-offset:3px}@keyframes outcome-shine{from{left:-85%}to{left:145%}}.outcome-detail-modal{width:min(760px,calc(100vw - 30px));max-height:85svh;padding:0;border:1px solid #dac6e7;border-radius:18px;background:#fff;box-shadow:0 25px 85px #27163245;color:#8b6b9d}.outcome-detail-modal::backdrop{background:#2c173955;backdrop-filter:blur(3px)}.outcome-modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 23px;background:linear-gradient(115deg,#f2e8fa,#fcf8ef);border-bottom:1px solid #eadff0}.outcome-modal-header h2{margin:0;font-size:21px;color:#916ba5}.outcome-modal-close{width:36px;height:36px;min-width:36px;border:1px solid #e0cce9;background:#ffffffa0;color:#a285b0;border-radius:9px;font-size:25px;cursor:pointer}.outcome-modal-body{padding:19px 23px;max-height:calc(85svh - 150px);overflow:auto}.outcome-modal-stats{display:flex;align-items:baseline;gap:13px}.outcome-modal-stats strong{font-size:39px;line-height:1.2;color:#9d77ae;font-variant-numeric:tabular-nums}.outcome-modal-stats>span{font-size:13px;color:#ad95b8}.outcome-modal-note{font-size:12px;color:#b39ebe;margin:9px 0 17px}.outcome-modal-list{border:1px solid #eadff0;border-radius:10px;overflow:hidden}.outcome-modal-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 15px;border-bottom:1px solid #f0e8f5}.outcome-modal-item:last-child{border-bottom:0}.outcome-modal-item:nth-child(even){background:#fcf9fe}.outcome-modal-item>div{min-width:0}.outcome-modal-item strong,.outcome-modal-item a{font-size:14px;color:#a17bb2;font-weight:500}.outcome-modal-item small{display:block;font-size:11px;color:#b8a1c2;margin-top:4px}.outcome-modal-item b{font-size:20px;color:#aa8abb;font-variant-numeric:tabular-nums;white-space:nowrap}.outcome-modal-footer{display:flex;justify-content:flex-end;padding:12px 23px;border-top:1px solid #eee4f3}.outcome-modal-footer .btn{min-height:40px;font-size:14px}@media(max-width:600px){.outcome-detail-modal{width:calc(100vw - 24px);max-height:90svh;border-radius:14px}.outcome-modal-header{padding:15px 17px}.outcome-modal-header h2{font-size:18px}.outcome-modal-body{padding:16px 17px;max-height:calc(90svh - 145px)}.outcome-modal-stats{gap:7px;flex-wrap:wrap}.outcome-modal-stats strong{font-size:33px}.outcome-modal-stats>span{font-size:12px}.outcome-modal-item{padding:11px}.outcome-modal-item strong,.outcome-modal-item a{font-size:13px}.outcome-modal-close{min-height:40px;min-width:40px}.outcome-modal-footer{padding:11px 17px}}@media(prefers-reduced-motion:reduce){[data-outcome-card]{transition:none}[data-outcome-card]:hover{transform:none}[data-outcome-card]:before{animation:none!important;display:none}}@media print{.outcome-detail-modal{display:none}[data-outcome-card]:before{display:none}}

.age-pyramid{margin-top:14px}.pyramid-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#faf6fd;border:1px solid #eee3f3;border-radius:9px;margin-bottom:16px;font-size:13px}.pyramid-legend strong{font-size:19px;font-variant-numeric:tabular-nums;margin-left:6px}.pyramid-legend i{display:inline-block;width:8px;height:8px;border-radius:3px;margin-right:6px}.pyramid-male-label{color:#8ba9cd}.pyramid-male-label i{background:#9bb7dc}.pyramid-female-label{color:#b494c0}.pyramid-female-label i{background:#c1a0cc}.pyramid-all{font-size:11px;color:#b19bbe}.pyramid-plot{display:flex;flex-direction:column;gap:15px;padding:5px 0}.pyramid-row{display:grid;grid-template-columns:minmax(0,1fr) 108px minmax(0,1fr);gap:9px;align-items:center}.pyramid-side{display:flex;align-items:center;gap:8px;min-width:0}.pyramid-count{font-size:16px;font-weight:600;width:30px;flex-shrink:0;text-align:center;font-variant-numeric:tabular-nums;color:#a38bb3}.pyramid-track{position:relative;height:24px;flex:1;min-width:0;background:repeating-linear-gradient(90deg,#f5f0f9 0,#f5f0f9 calc(25% - 1px),#eae1f0 calc(25% - 1px),#eae1f0 25%);overflow:hidden}.pyramid-track>span{display:block;height:100%;min-width:0}.pyramid-male .pyramid-track{border-radius:7px 0 0 7px;display:flex;justify-content:flex-end}.pyramid-male .pyramid-track>span{background:linear-gradient(90deg,#b5c9e6,#8eabd2);border-radius:6px 0 0 6px}.pyramid-female .pyramid-track{border-radius:0 7px 7px 0}.pyramid-female .pyramid-track>span{background:linear-gradient(90deg,#b18ec1,#d3b9de);border-radius:0 6px 6px 0}.pyramid-male .pyramid-count{color:#8da8cb}.pyramid-female .pyramid-count{color:#b494c0}.pyramid-age{text-align:center;font-size:13px;color:#a88bb8;white-space:nowrap}.pyramid-scale{display:flex;justify-content:space-between;padding:7px 39px 0;font-size:10px;color:#bea9c9}.pyramid-note{font-size:11px;color:#b9a1c3;margin-top:10px}.pyramid-side:focus-visible{outline:2px solid #c9b0db;outline-offset:3px;border-radius:5px}.dashboard-grid:has(.age-pyramid){grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:start}.dashboard-grid:has(.age-pyramid):has(>.outcome-feature){grid-template-columns:1fr!important}.dashboard-grid:has(.age-pyramid) .income-donut{width:130px;height:130px;margin:10px auto 14px;box-shadow:0 0 0 5px #faf8fd}.dashboard-grid:has(.age-pyramid) .income-donut>div{width:98px;height:98px}.dashboard-grid:has(.age-pyramid) .income-donut strong{font-size:27px}.dashboard-grid:has(.age-pyramid) .income-donut span{font-size:9px}.dashboard-grid:has(.age-pyramid) .income-legend>div{padding:4px 0;font-size:12px}.dashboard-grid:has(.age-pyramid) .income-legend strong{font-size:14px}.dashboard-grid:has(.age-pyramid) .mini-note{font-size:10px;padding:8px 10px;margin-top:10px}@media(max-width:1000px){.dashboard-grid:has(.age-pyramid){grid-template-columns:1fr}.pyramid-row{grid-template-columns:minmax(0,1fr) 105px minmax(0,1fr)}}@media(max-width:600px){.pyramid-legend{padding:9px;gap:6px;font-size:12px}.pyramid-legend strong{font-size:17px}.pyramid-all{font-size:10px}.pyramid-row{grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr);gap:5px}.pyramid-age{font-size:11px}.pyramid-count{font-size:14px;width:23px}.pyramid-side{gap:4px}.pyramid-track{height:22px}.pyramid-plot{gap:13px}.pyramid-note{font-size:10px;line-height:1.6}.pyramid-scale{padding-left:27px;padding-right:27px}}@media print{.pyramid-track>span{print-color-adjust:exact;-webkit-print-color-adjust:exact}.age-pyramid{break-inside:avoid}}

.outcome-age-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:15px;margin-bottom:15px;align-items:stretch}.outcome-age-row>.panel{margin:0;min-width:0}.outcome-age-row .outcome-comparison-chart{margin:0;border:0;padding:0;background:none;box-shadow:none}.outcome-age-row .outcome-comparison-chart figcaption{min-height:45px;margin-bottom:10px;border-bottom:1px solid #eee5f4;align-items:flex-start;padding-bottom:12px}.outcome-age-row .outcome-comparison-chart figcaption strong{font-size:18px;color:#9b79ac}.outcome-age-row .outcome-comparison-chart figcaption>span{font-size:9px}.outcome-age-row .outcome-chart-inner{min-width:540px}.outcome-age-row .outcome-chart-inner>svg{max-height:none;height:auto}.outcome-age-row .pyramid-legend{padding:8px 10px;margin-bottom:13px}.outcome-age-row .pyramid-row{grid-template-columns:minmax(0,1fr) 95px minmax(0,1fr);gap:6px}.outcome-age-row .pyramid-age{font-size:12px}.outcome-age-row .pyramid-count{font-size:14px;width:25px}.outcome-age-row .pyramid-note{font-size:10px}.insight-income-panel{display:grid;grid-template-columns:175px minmax(0,1fr);gap:0 25px;align-items:center}.insight-income-panel>.panel-heading,.insight-income-panel>.mini-note,.insight-income-panel>.empty{grid-column:1 / -1}.insight-income-panel .income-donut{margin:10px auto;width:145px;height:145px}.insight-income-panel .income-donut>div{width:110px;height:110px}.insight-income-panel .income-legend{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.insight-income-panel .income-legend>div{font-size:12px;padding:6px 0}.insight-income-panel>.mini-note{margin-top:10px}@media(max-width:1050px){.outcome-age-row{grid-template-columns:1fr}.outcome-age-row .outcome-chart-inner{min-width:600px}.outcome-age-row .outcome-chart-inner>svg{max-height:210px}.insight-income-panel{grid-template-columns:150px 1fr;gap:0 15px}}@media(max-width:640px){.outcome-age-row{gap:13px}.outcome-age-row .outcome-comparison-chart figcaption{flex-direction:column;gap:4px}.outcome-age-row .outcome-comparison-chart figcaption strong{font-size:17px}.outcome-age-row .pyramid-row{grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr)}.insight-income-panel{display:block}.insight-income-panel .income-legend{grid-template-columns:1fr}.insight-income-panel .income-donut{margin:13px auto}}@media print{.outcome-age-row{display:block}.outcome-age-row>.panel{margin-bottom:12px}.insight-income-panel{display:block}}

.district-heatmap{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.district-heatmap-cell{display:flex;flex-direction:column;min-width:0;gap:3px;padding:10px 12px;border-radius:9px;border:1px solid #e6d9ef;transition:transform .15s,box-shadow .15s}.district-heatmap-cell:hover{transform:translateY(-2px);box-shadow:0 4px 12px #83579014}.district-heatmap-cell>span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.district-heatmap-cell>strong{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}.district-heatmap-cell>small{font-size:9px;opacity:.7}.heat-level-0{background:#f9f6fb;color:#c0adc9;border-style:dashed}.heat-level-1{background:#f1e8f7;color:#ab8abc}.heat-level-2{background:#e4d4ef;color:#9b75ad}.heat-level-3{background:#cbb0df;color:#fff8ff}.heat-level-4{background:#a884bd;color:#fff6ff}.heatmap-legend{display:flex;align-items:center;gap:5px;margin-top:12px;font-size:10px;color:#b39dbf}.heatmap-legend>i{width:13px;height:8px;border-radius:2px}.heatmap-legend>small{margin-left:auto;font-size:10px}.dashboard-grid>.panel.wide:has(.district-heatmap){max-height:none;overflow:visible}.mock-mode-notice{background:#fff7df;border:1px solid #ead399;border-radius:9px;color:#b49354;padding:11px 15px;font-size:13px;margin-bottom:17px}.mock-mode-notice strong{margin-right:8px;color:#a7823d}.mock-mode-notice a{color:#a67db8;text-decoration:underline}@media(max-width:760px){.district-heatmap{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.district-heatmap-cell{padding:9px}.district-heatmap-cell>span{font-size:11px}.district-heatmap-cell>strong{font-size:22px}.heatmap-legend{flex-wrap:wrap}.heatmap-legend>small{flex-basis:100%;margin-top:3px}.mock-mode-notice{font-size:12px}}@media(max-width:359px){.district-heatmap{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){.district-heatmap-cell{transition:none}.district-heatmap-cell:hover{transform:none}}

.active-category-scope{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 13px;margin:-5px 0 16px;background:#f5edf9;border:1px solid #e8daef;border-radius:8px;font-size:12px;color:#b29cbd}.active-category-scope strong{font-weight:500;color:#a483b7}.active-category-scope a{margin-left:auto;color:#b194c4;text-decoration:underline}@media(max-width:600px){.active-category-scope{font-size:11px;gap:5px 8px}.active-category-scope a{margin-left:0}}

.insight-symbol-ribbon{padding:15px 10px;align-items:center}.insight-symbol-ribbon>.insight-symbol-item{display:flex;align-items:center;gap:16px;padding:3px 23px;min-width:0}.insight-symbol-ribbon .insight-ribbon-symbol{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;border:1px solid #eadef3;border-radius:13px;background:linear-gradient(135deg,#fff,#f1e8f8);color:#a07fbc}.insight-symbol-ribbon .insight-ribbon-symbol svg{width:28px;height:28px}.insight-symbol-ribbon .insight-male .insight-ribbon-symbol{background:linear-gradient(135deg,#fff,#eaf1fb);border-color:#e0e9f5;color:#8daacd}.insight-symbol-ribbon .insight-female .insight-ribbon-symbol{background:linear-gradient(135deg,#fff,#f8edf6);border-color:#eddff0;color:#bd96bb}.insight-symbol-ribbon .insight-male .insight-ribbon-symbol svg,.insight-symbol-ribbon .insight-female .insight-ribbon-symbol svg{fill:currentColor;width:19px;height:34px}.insight-symbol-ribbon .insight-symbol-item strong{margin:0;font-size:28px;line-height:1.3;min-width:0;font-variant-numeric:tabular-nums}.insight-symbol-item:focus-visible{outline:2px solid #d0b6e0;outline-offset:3px;border-radius:9px}.insight-symbol-ribbon strong small{font-size:12px;margin-left:4px;font-weight:400}@media(max-width:900px){.insight-symbol-ribbon>.insight-symbol-item{padding:3px 13px;gap:11px}.insight-symbol-ribbon .insight-ribbon-symbol{width:41px;height:41px;border-radius:11px}.insight-symbol-ribbon .insight-ribbon-symbol svg{width:24px;height:24px}.insight-symbol-ribbon .insight-symbol-item strong{font-size:24px}.insight-symbol-ribbon strong small{font-size:10px}}@media(max-width:640px){.insight-symbol-ribbon{grid-template-columns:1fr;padding:3px 14px}.insight-symbol-ribbon>.insight-symbol-item{padding:11px 0;gap:13px}.insight-symbol-ribbon .insight-symbol-item strong{font-size:26px}.insight-symbol-ribbon .insight-ribbon-symbol{width:39px;height:39px}.insight-symbol-ribbon strong small{font-size:11px}}

/* Purple and gold district scale; all eight outcomes visible without inner scrolling. */
.district-heatmap .heat-level-1,.heatmap-legend .heat-level-1{background:#f0e9f8;color:#614180;border-color:#dfd0ee}
.district-heatmap .heat-level-2,.heatmap-legend .heat-level-2{background:#c9b2e1;color:#40245d;border-color:#b59ace}
.district-heatmap .heat-level-3,.heatmap-legend .heat-level-3{background:linear-gradient(125deg,#735093,#553172);color:#fff;border-color:#8661a3}
.district-heatmap .heat-level-4,.heatmap-legend .heat-level-4{background:linear-gradient(125deg,#f1dfa9,#d2ad5e);color:#493411;border-color:#c3a15f}
.district-heatmap-cell>small{opacity:1}.district-heatmap-cell:focus-visible{outline:3px solid #b58c40;outline-offset:3px}
.dashboard-grid>.outcome-vertical-panel{max-height:none;overflow:visible}
.outcome-vertical-chart{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;padding-top:28px}
.outcome-column{min-width:0;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;border-radius:9px;padding:0 3px 8px}
.outcome-column-plot{height:155px;width:100%;display:flex;justify-content:flex-end;align-items:center;flex-direction:column;position:relative;border-bottom:1px solid #ddcfe9;background:repeating-linear-gradient(to top,transparent 0,transparent 38px,#eee7f4 38px,#eee7f4 39px)}
.outcome-column-plot>span{display:block;width:60%;max-width:45px;flex-shrink:0;min-height:2px;border-radius:7px 7px 0 0;background:linear-gradient(0deg,#68418c,#b99bd7);box-shadow:inset 1px 0 0 #ffffff55}
.outcome-column-plot>strong{font-size:20px;line-height:26px;color:#61417c;font-variant-numeric:tabular-nums}
.outcome-column.is-highest .outcome-column-plot>span{background:linear-gradient(0deg,#ad8239,#ebd69b)}
.outcome-column.is-highest .outcome-column-plot>strong{color:#8b672c}
.outcome-column-icon{display:flex;color:#9370b0}.outcome-column-icon svg{width:22px;height:22px}
.outcome-column-label{font-size:12px;line-height:1.45;color:#604578;overflow-wrap:anywhere}
.outcome-column:hover,.outcome-column:focus-visible{background:#f6f0fb;outline:2px solid #d9c7e8;outline-offset:2px}
.outcome-vertical-note{font-size:11px;color:#886e99;margin:12px 0 0;text-align:right}
@media(max-width:640px){.outcome-vertical-chart{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 8px}.outcome-column-plot{height:100px}.outcome-column-label{font-size:11px}.outcome-column-plot>strong{font-size:18px}.outcome-vertical-note{text-align:left}}

/* District totals: single gold scale, light for low and dark for high. */
.district-heatmap .heat-level-0{background:#fffdf7;color:#89764c;border-color:#e8ddbf}
.district-heatmap .heat-level-1,.heatmap-legend .heat-level-1{background:linear-gradient(125deg,#fff9e8,#f6eac5);color:#624a20;border-color:#e9d6a0}
.district-heatmap .heat-level-2,.heatmap-legend .heat-level-2{background:linear-gradient(125deg,#f4e3b3,#e8cd86);color:#574018;border-color:#d9bb70}
.district-heatmap .heat-level-3,.heatmap-legend .heat-level-3{background:linear-gradient(125deg,#e5c779,#cfaa50);color:#45320e;border-color:#bd963c}
.district-heatmap .heat-level-4,.heatmap-legend .heat-level-4{background:linear-gradient(125deg,#aa7c28,#805916);color:#fffaf0;border-color:#93691d}
.heatmap-legend{color:#887044}.district-heatmap-cell:hover{box-shadow:0 5px 15px #a37c2926}

/* Let both outcome/course panels grow together; never clip chart labels. */
.dashboard-grid.outcome-course-row{align-items:stretch}
.dashboard-grid.outcome-course-row>.panel{height:auto;min-height:460px;max-height:none;overflow:visible;margin-bottom:0;display:flex;flex-direction:column}
.outcome-course-row .panel-heading{flex-shrink:0}
.outcome-course-row .outcome-vertical-chart{flex-shrink:0;padding-top:32px}
.outcome-course-row .outcome-column-plot{height:185px}
.outcome-course-row .outcome-column-label{min-height:64px}
.outcome-course-row .outcome-vertical-note{margin-top:auto;padding-top:16px}
.outcome-course-row>.panel:not(.outcome-vertical-panel)>.mini-note{margin-top:auto}
.outcome-course-row>.panel:not(.outcome-vertical-panel)>.chart-unit{margin-bottom:20px}
@media(max-width:760px){.dashboard-grid.outcome-course-row{grid-template-columns:1fr}.dashboard-grid.outcome-course-row>.panel{min-height:0}.outcome-course-row .outcome-column-plot{height:150px}.outcome-course-row .outcome-column-label{min-height:0}.outcome-course-row>.panel:not(.outcome-vertical-panel)>.mini-note{margin-top:16px}}
@media(max-width:640px){.outcome-course-row .outcome-column-plot{height:110px}.outcome-course-row .outcome-vertical-chart{row-gap:28px}}

.insight-income-panel{display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:470px;padding:20px 24px}
.insight-income-panel>.panel-heading{margin-bottom:8px}.insight-income-panel>.panel-heading h2{font-size:20px}.insight-income-panel>.panel-heading p{font-size:12px}
.income-interactive-ring{width:210px;height:210px;position:relative;margin:0 auto}.income-interactive-ring>svg{width:100%;height:100%;overflow:visible}
.income-ring-total{position:absolute;inset:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.income-ring-total strong{font-size:34px;line-height:1.3;color:#6a448e}.income-ring-total span{font-size:11px;color:#977fa8}
.income-ring-segment{pointer-events:stroke;cursor:help;transition:stroke-width .15s,filter .15s}.income-ring-segment:hover,.income-ring-segment:focus{stroke-width:29;filter:brightness(1.08);outline:none}
.income-dot-legend{display:flex;justify-content:center;gap:8px}.income-dot-legend button{border:1px solid #e7ddef;border-radius:8px;background:#fff;width:32px;height:30px;display:grid;place-items:center;padding:0}.income-dot-legend i{width:13px;height:13px;background:var(--income-color);border-radius:4px}.income-dot-legend button:hover{background:#f6f0fa}
.income-hover-hint{text-align:center;font-size:11px;color:#9277a1;margin-top:8px}
@media(prefers-reduced-motion:reduce){.income-ring-segment{transition:none}}

.income-trend-row{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.4fr);gap:15px;align-items:stretch;margin-bottom:15px}
.income-trend-row>.panel{margin:0;min-width:0;max-width:none;height:auto}.quarterly-trend-panel{display:flex;flex-direction:column;justify-content:space-between;padding:20px 24px}
.quarterly-trend-svg{display:block;width:100%;height:auto;max-height:285px;overflow:visible;margin:auto 0}.quarter-trend-point{cursor:help;outline:none}.quarter-trend-point:hover circle:last-of-type,.quarter-trend-point:focus circle:last-of-type{r:9;fill:#a37c38}
.quarter-trend-note{font-size:11px;color:#9277a1;margin-top:10px}.quarterly-trend-panel .panel-heading h2{font-size:20px}.quarterly-trend-panel .panel-heading p{font-size:12px}
@media(max-width:800px){.income-trend-row{grid-template-columns:1fr}.quarterly-trend-panel{padding:20px}.quarterly-trend-svg{max-height:none}.quarterly-trend-panel .panel-heading h2{font-size:18px}}

.dashboard-grid>.panel.wide:has(.district-map-component){max-height:none;overflow:visible;grid-column:1/-1}
.district-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#9a815d;font-size:12px;margin-bottom:10px}.district-map-toolbar>div{display:flex;background:#f3edf8;border:1px solid #e5d9ee;border-radius:9px;padding:3px;gap:3px}.map-view-toggle{border:0;padding:7px 14px;border-radius:7px;background:transparent;color:#8d6ba3;font-size:12px}.map-view-toggle.selected{background:#795394;color:#fff}
.district-map-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.8fr);gap:24px;align-items:center;background:radial-gradient(ellipse at 35% 55%,#fbf5e6,transparent 65%);border-radius:16px}.district-map-content[hidden],.district-map-table[hidden],[data-map-link][hidden]{display:none!important}
.district-map-stage{min-width:0;display:flex;justify-content:center}.district-map-svg{display:block;width:100%;max-height:590px;overflow:visible;filter:drop-shadow(0 10px 7px #8f6b2e17)}
.district-map-area{cursor:pointer;outline:none;transition:transform .18s,filter .18s}.district-map-area>path{stroke:#fff8e9;stroke-width:1.2;stroke-linejoin:round;vector-effect:non-scaling-stroke}.district-map-area.is-selected>path,.district-map-area:hover>path,.district-map-area:focus>path{stroke:#a36e13;stroke-width:2.4;filter:brightness(1.07)}
.district-map-label{font:600 11px 'Sarabun',sans-serif;fill:#573d16;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:#fff8e9;stroke-width:3px;stroke-linejoin:round}.map-north{font-size:18px;fill:#876397}
.district-map-info{background:linear-gradient(125deg,#fff,#fbf6ff);border:1px solid #e6d9ef;border-radius:15px;padding:22px;box-shadow:0 8px 25px #69417e08}.map-info-kicker{font-size:11px;color:#ad8a4b}.district-map-info h3{font-size:22px;margin:7px 0 16px;color:#68417f}.district-map-info dl{margin:0 0 18px}.district-map-info dl>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eee4f4}.district-map-info dt{font-size:13px;color:#9275a3}.district-map-info dd{font-size:17px;font-weight:600;color:#69427e;margin:0;text-align:right}.district-map-info>p{font-size:11px;margin-top:13px;color:#9c84ab}.map-district-key{margin-top:15px;border-top:1px solid #e9dff0;padding-top:12px}.map-district-key summary{font-size:12px;color:#9672a9;cursor:pointer}.map-district-key ol{columns:2;padding-left:25px;font-size:11px;color:#8c729d;line-height:1.9}.district-map-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:13px;color:#9d8051;font-size:11px}.district-map-footer i{display:inline-block;width:100px;height:9px;border-radius:5px;background:linear-gradient(90deg,#faf0cf,#efdb9c,#dec075,#c9a04c,#a77b28);margin:0 5px}.district-map-footer small{font-size:10px;color:#a48baf}.district-map-table td{font-size:13px;padding:10px}.district-map-table th{font-size:12px}
@media(max-width:760px){.district-map-content{grid-template-columns:1fr;gap:10px}.district-map-svg{max-height:480px}.district-map-info{padding:15px}.district-map-info h3{font-size:20px;margin-bottom:8px}.district-map-info dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.district-map-info dl>div{display:block;padding:7px 0}.district-map-info dt{font-size:11px}.district-map-info dd{font-size:14px;text-align:left;margin-top:4px}.district-map-toolbar{align-items:flex-start;flex-wrap:wrap}.map-district-key ol{columns:2}.district-map-table .table-scroll{max-height:none}}
@media(prefers-reduced-motion:reduce){.district-map-area{transition:none}}

/* Compact sidebar rhythm, retaining readable text and 44px primary targets. */
.staff-layout .sidebar nav{margin-top:14px}
.staff-layout .sidebar .nav-item{padding:8px 12px;margin:2px 0;gap:10px;min-height:44px;line-height:1.45}
.staff-layout .sidebar .activities-nav-group .left-category-menu{margin:2px 0}
.staff-layout .sidebar .activities-nav-group summary{padding:7px 12px;gap:10px;min-height:44px;line-height:1.45}
.staff-layout .sidebar .activities-nav-group summary .left-chevron{width:29px;height:29px;min-width:29px;border-radius:7px}
.staff-layout .sidebar .activities-nav-group .left-category-items{margin:4px 0 6px 18px;padding:3px 0 3px 9px}
.staff-layout .sidebar .activities-nav-group .left-category-link{padding:7px 9px;margin:1px 0;line-height:1.45;font-size:13px;min-height:36px;display:flex;align-items:center}
.staff-layout .sidebar .activities-nav-group .left-category-link[aria-current=true]{padding-left:6px}
@media(max-width:1050px){.staff-layout .sidebar nav{margin-top:0;gap:4px;padding-top:8px;padding-bottom:4px}.staff-layout .sidebar .activities-nav-group .left-category-items{margin:4px 0;padding:4px;gap:3px}}

/* Same-origin page transitions retain the old frame until the new view is ready. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:sidebar-page-out 140ms ease-out both}
::view-transition-new(root){animation:sidebar-page-in 180ms ease-out both}
@keyframes sidebar-page-out{from{opacity:1}to{opacity:0}}
@keyframes sidebar-page-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}

.staff-layout .sidebar{view-transition-name:staff-sidebar}
::view-transition-group(staff-sidebar){animation-duration:0s}
::view-transition-old(staff-sidebar){animation:none;opacity:0}
::view-transition-new(staff-sidebar){animation:none;opacity:1}

/* Navigation indicator: visible only while a real page request is in progress. */
.page-loading[hidden]{display:none!important}.page-loading{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;background:#f7f2faad;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.page-loading-card{width:min(280px,calc(100vw - 40px));padding:25px 30px 22px;border:1px solid #d8bd83;border-radius:21px;background:radial-gradient(circle at top,#fff8e9,#fff 75%);box-shadow:0 14px 60px #48235820;display:flex;align-items:center;flex-direction:column;text-align:center;gap:7px}
.page-loading-card>strong{font-size:19px;color:#654077;margin-top:5px}.page-loading-card>span{font-size:12px;color:#9a83a4}.page-loading-orbit{position:relative;width:82px;height:82px;display:grid;place-items:center}.page-loading-orbit img{width:60px;height:60px;object-fit:contain}.page-loading-orbit>span{position:absolute;inset:0;border:2px solid #e9ddf0;border-top-color:#b68a3d;border-right-color:#8961a4;border-radius:50%;animation:page-loading-spin 1s linear infinite}.page-loading-track{height:3px;overflow:hidden;width:100%;background:#f0e8f5;border-radius:4px;margin-top:12px}.page-loading-track>i{display:block;height:100%;width:40%;border-radius:4px;background:linear-gradient(90deg,#a67cc1,#d2b46d);animation:page-loading-slide 1.2s ease-in-out infinite}
@keyframes page-loading-spin{to{transform:rotate(360deg)}}@keyframes page-loading-slide{from{transform:translateX(-110%)}to{transform:translateX(360%)}}
@media(prefers-reduced-motion:reduce){.page-loading-orbit>span,.page-loading-track>i{animation:none}.page-loading-track>i{width:100%}}

.report-widget-row{align-items:stretch}.report-widget-row>.panel{height:auto;display:flex;flex-direction:column;padding:19px;max-height:none;overflow:visible}.report-widget-row h2{font-size:17px;min-height:50px;margin-bottom:10px}
.report-age-donut{position:relative;width:180px;height:180px;margin:0 auto 10px}.report-age-donut>svg{width:100%;height:100%;overflow:visible}.report-age-donut>div{position:absolute;inset:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.report-age-donut strong{font-size:30px;color:#6b4485}.report-age-donut span{font-size:10px;color:#9b81ab}.report-age-segment{cursor:help;pointer-events:stroke}.report-age-segment:hover,.report-age-segment:focus{stroke-width:28;outline:none}
.report-age-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.report-age-legend>div{display:flex;align-items:center;gap:6px;padding:5px 0;min-width:0}.report-age-legend i{width:9px;height:9px;border-radius:3px;flex-shrink:0}.report-age-legend span{font-size:11px;color:#8e729e}.report-age-legend strong{font-size:15px;margin-left:auto;color:#6e4b84}
.report-dot-list{display:grid;gap:15px;margin-top:10px}.report-dot-row{display:grid;grid-template-columns:minmax(105px,1.2fr) minmax(45px,1fr) 38px;gap:12px;align-items:center;min-height:22px}.report-dot-row>span{font-size:11px;color:#8a7099}.report-dot-row>strong{font-size:16px;color:#6c4a82;text-align:right}.report-dot-track{height:1px;background:#e5d9ed;position:relative;margin:0 7px}.report-dot-track i{position:absolute;top:50%;transform:translate(-50%,-50%);width:11px;height:11px;border-radius:50%;background:#bd984f;border:2px solid #f8edcf;box-shadow:0 0 0 2px #c6a46130}.report-dot-row:hover .report-dot-track i,.report-dot-row:focus .report-dot-track i{background:#81569e;box-shadow:0 0 0 4px #ad89c52b}.report-dot-scale{display:flex;justify-content:space-between;margin:8px 50px 0 49%;font-size:10px;color:#aa93b6}
.course-rank-list{list-style:none;padding:0;margin:0;display:grid;gap:7px}.course-rank-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #eee5f3;min-width:0}.course-rank-number{width:35px;height:35px;background:#f4edf9;color:#9571ae;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:2px;flex-shrink:0}.course-rank-number svg{width:16px;height:20px}.course-rank-number b{font-size:12px}.course-rank-number.rank-1{background:#f7e9be;color:#987025}.course-rank-number.rank-2{background:#eee9f2;color:#8d8299}.course-rank-number.rank-3{background:#f1e2d5;color:#ab7d58}.course-rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#8e719e;flex:1;min-width:0}.course-rank-list li>strong{font-size:19px;color:#6b4884;text-align:right;flex-shrink:0}.course-rank-list small{display:block;font-size:9px;font-weight:400;color:#a18aaf}.report-rank-more{margin-top:auto;padding-top:12px;font-size:12px}.report-widget-note{font-size:10px;color:#a28aaf;margin-top:auto;padding-top:12px}
@media(max-width:1050px){.report-widget-row{grid-template-columns:1fr}.report-widget-row h2{min-height:0}.report-age-donut{width:170px;height:170px}.report-age-legend{max-width:450px;width:100%;margin:auto}.report-dot-row{grid-template-columns:minmax(115px,1fr) minmax(80px,2fr) 45px}.report-dot-scale{margin-left:36%}.course-rank-list{gap:3px}}

/* Top courses: compact three-place podium with decorative medallions. */
.course-podium{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr);align-items:start;gap:10px;padding:21px 0 15px;background:radial-gradient(ellipse at 50% 30%,#f8edcd70,transparent 66%)}
.podium-entry{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:23px;border-radius:12px;outline-offset:3px}.podium-place-1{padding-top:0}.podium-position{font-size:10px;letter-spacing:.3px;color:#a18bac;margin-bottom:7px}.podium-place-1 .podium-position{color:#a17a32;font-weight:600}
.podium-medallion{width:68px;height:68px;flex-shrink:0;border:1px solid #d9c8e5;border-radius:50%;background:linear-gradient(135deg,#fff,#efe5f5);box-shadow:0 4px 12px #7552860c,inset 0 0 0 5px #ffffffb0;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.podium-medallion strong{font-size:24px;line-height:1.15;color:#88619f;font-variant-numeric:tabular-nums}.podium-medallion small{font-size:8px;color:#a58ab5;margin-top:3px}.podium-place-1 .podium-medallion{width:85px;height:85px;border-color:#d0ad5d;background:linear-gradient(140deg,#fff7dc,#e9cc84);box-shadow:0 7px 20px #bd95452b,inset 0 0 0 5px #ffffff75}.podium-place-1 .podium-medallion strong{font-size:30px;color:#8c6422}.podium-place-1 .podium-medallion small{color:#9e7c3a}.podium-place-3 .podium-medallion{background:linear-gradient(135deg,#fff9f0,#ecdaca);border-color:#dbc0a4}.podium-place-3 .podium-medallion strong{color:#a67b52}
.podium-course-name{font-size:11px;line-height:1.55;color:#9376a4;margin-top:12px;width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;min-height:51px;overflow-wrap:anywhere}.podium-place-1 .podium-course-name{color:#775082;font-weight:600}
.podium-entry:hover .podium-medallion,.podium-entry:focus .podium-medallion{outline:2px solid #c9a961;outline-offset:3px}
.podium-runners{display:grid;gap:8px;margin-top:4px}.podium-runner{display:flex;gap:10px;align-items:center;min-width:0;padding:9px 11px;border-radius:10px;background:#faf7fc;border:1px solid #eee5f3}.runner-position{font-size:16px;color:#c2afd0;font-weight:600}.runner-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9275a1;flex:1;min-width:0}.podium-runner>strong{font-size:19px;color:#846198;font-weight:600;text-align:right}.podium-runner small{display:block;font-size:8px;color:#ac96b6;font-weight:400;line-height:1.2}.report-course-ranking .report-rank-more{margin-top:12px;padding-top:0;font-size:11px}.report-course-ranking .report-widget-note{padding-top:8px;font-size:9px}
@media(max-width:359px){.course-podium{gap:7px}.podium-medallion{width:58px;height:58px}.podium-place-1 .podium-medallion{width:72px;height:72px}.podium-course-name{font-size:10px}}

.outcome-coverage-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(250px,3fr);gap:14px;padding:0 14px 14px;align-items:stretch}.outcome-coverage-row .outcome-comparison-chart{margin:0;padding:16px;min-width:0;display:flex;flex-direction:column;justify-content:space-between}.outcome-coverage-row .outcome-chart-inner{min-width:0;max-width:none;width:100%}.outcome-coverage-row .outcome-chart-scroll{overflow:visible}.outcome-coverage-row .outcome-chart-inner>svg{height:auto;max-height:none;width:100%}.outcome-coverage-row .outcome-comparison-chart figcaption{flex-wrap:wrap}
.tracking-coverage-chart{margin:0;padding:16px;border:1px solid #e9dfee;border-radius:10px;background:linear-gradient(135deg,#fff,#fffaf0);display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}.tracking-coverage-chart figcaption{font-size:14px;color:#9675a7;font-weight:600;align-self:flex-start;margin-bottom:5px}.tracking-coverage-ring{width:170px;height:170px;position:relative;margin:0 auto}.tracking-coverage-ring svg{width:100%;height:100%;overflow:visible}.tracking-coverage-ring circle{pointer-events:stroke;cursor:help}.tracking-coverage-ring circle:hover,.tracking-coverage-ring circle:focus{stroke-width:26;outline:none}.tracking-coverage-center{position:absolute;inset:35px;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none}.tracking-coverage-center strong{font-size:27px;color:#977139;font-variant-numeric:tabular-nums}.tracking-coverage-center span{font-size:10px;color:#ac91b8}.tracking-coverage-legend{width:100%;max-width:235px;display:grid;gap:7px;margin-top:4px}.tracking-coverage-legend>span{display:flex;align-items:center;gap:7px;font-size:11px;color:#9576a5}.tracking-coverage-legend i{width:9px;height:9px;border-radius:3px;background:#c2a05e;flex-shrink:0}.tracking-coverage-legend>span+span i{background:#e8ddf1}.tracking-coverage-legend b{margin-left:auto;color:#755289;font-size:14px}.tracking-coverage-chart>p{font-size:10px;color:#a68ab3;margin-top:9px}.tracking-coverage-chart .coverage-data-note{color:#b57c32}
@media(max-width:1050px){.outcome-coverage-row{grid-template-columns:1fr}.outcome-coverage-row .outcome-chart-inner>svg{max-height:260px}.tracking-coverage-chart{display:grid;grid-template-columns:170px minmax(0,1fr);gap:0 20px}.tracking-coverage-chart figcaption{grid-column:1/-1}.tracking-coverage-ring{grid-row:2/4}.tracking-coverage-chart>p{grid-column:2}.tracking-coverage-legend{max-width:none}}
@media(max-width:480px){.outcome-coverage-row{padding:0 10px 10px;gap:10px}.outcome-coverage-row .outcome-comparison-chart{padding:12px 7px}.tracking-coverage-chart{display:flex}.tracking-coverage-chart figcaption{align-self:center}.tracking-coverage-legend{max-width:235px}}

/* Quiet cartographic backdrop; decoration never intercepts district interactions. */
.district-map-stage{position:relative;isolation:isolate;border-radius:18px;background:radial-gradient(ellipse at 50% 48%,#efdca854 0%,#fbf5e987 43%,#fffdf8 78%);padding:8px 0;overflow:hidden}
.district-map-stage::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#c6a56910 1px,transparent 1px),linear-gradient(90deg,#c6a56910 1px,transparent 1px);background-size:38px 38px;mask-image:radial-gradient(ellipse at center,#000 25%,transparent 83%);-webkit-mask-image:radial-gradient(ellipse at center,#000 25%,transparent 83%)}
.district-map-stage::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:url('map-lotus.svg'),url('map-lotus.svg');background-repeat:no-repeat;background-size:175px auto,145px auto;background-position:left 12px bottom 20px,right 10px top 22px;opacity:.055}
.district-map-stage .district-map-svg{position:relative;z-index:1;max-height:620px;width:100%;transform:scale(1.025);transform-origin:center;filter:drop-shadow(0 12px 9px #99702c1c)}
@media(max-width:760px){.district-map-stage{padding:6px 0}.district-map-stage .district-map-svg{max-height:500px;transform:scale(1.015)}.district-map-stage::before{background-size:30px 30px}.district-map-stage::after{background-size:115px auto,100px auto;background-position:left 5px bottom 18px,right 5px top 12px}}

.course-waffle-layout{display:grid;grid-template-columns:minmax(145px,1fr) minmax(145px,1fr);gap:22px;align-items:center;margin:16px 0 20px}.course-waffle-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;width:100%;max-width:250px;margin:auto}.waffle-cell{display:block;aspect-ratio:1;border-radius:3px;box-shadow:inset 0 1px 0 #ffffff50;transition:filter .12s,transform .12s;cursor:help}.waffle-tone-0{background:#79519b}.waffle-tone-1{background:#b898cd}.waffle-tone-2{background:#c3a05c}.waffle-tone-3{background:#efddb0}.waffle-empty{background:#eee8f3}.waffle-cell:hover{filter:brightness(1.18);transform:scale(1.2);outline:1px solid #96703b;z-index:1}.waffle-scale{font-size:9px;text-align:center;color:#ad96b7;margin-top:10px}.course-waffle-legend{display:grid;gap:11px}.waffle-legend-item{min-width:0;padding-bottom:10px;border-bottom:1px solid #eee5f3;border-radius:3px}.waffle-legend-label{display:flex;align-items:center;gap:7px;font-size:12px;color:#9273a2}.waffle-legend-label i{width:10px;height:10px;flex-shrink:0;border-radius:3px}.waffle-legend-item>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding-left:17px;margin-top:3px}.waffle-legend-item strong{font-size:23px;line-height:1.3;color:#715087;font-variant-numeric:tabular-nums}.waffle-legend-item>div>span{font-size:11px;color:#a38ab2}.waffle-legend-item:hover,.waffle-legend-item:focus-visible{background:#fbf7fe;outline:1px solid #e8d9f1;outline-offset:3px}.waffle-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8deee;padding-top:12px;margin-top:auto;margin-bottom:14px;color:#9677a8;font-size:12px}.waffle-total strong{font-size:22px;color:#7e5a90}.waffle-total small{font-size:10px;font-weight:400;color:#ac94ba}
@media(max-width:400px){.course-waffle-layout{gap:13px;grid-template-columns:minmax(115px,1fr) minmax(125px,1fr)}.course-waffle-grid{gap:3px}.waffle-legend-item strong{font-size:20px}.waffle-legend-label{font-size:11px}}
@media(prefers-reduced-motion:reduce){.waffle-cell{transition:none}.waffle-cell:hover{transform:none}}

.course-ring-wrap{margin:8px 0 12px}.course-type-ring{display:block;width:100%;height:auto;max-height:335px;overflow:visible}.course-ring-segment{cursor:help;pointer-events:stroke}.course-ring-segment:hover,.course-ring-segment:focus{stroke-width:37;outline:none;filter:brightness(1.07)}.course-ring-label{font:12px 'Sarabun',sans-serif;fill:#8e6f9e}.course-ring-value{font:600 19px 'Sarabun',sans-serif;fill:#6a4481}.course-ring-percent{font-size:11px;font-weight:400;fill:#a68bb5}.course-ring-total{font:700 32px 'Sarabun',sans-serif;fill:#74508b}.course-ring-total-label{font:12px 'Sarabun',sans-serif;fill:#9d81ac}.course-ring-total-unit{font:10px 'Sarabun',sans-serif;fill:#b09aba}.course-ring-note{font-size:10px;color:#a58bb2;text-align:center;margin:2px 0 0}.course-ring-mobile-labels{display:none}
@media(max-width:480px){.course-type-ring{max-height:245px}.course-ring-label{font-size:13px}.course-ring-value{font-size:20px}.course-ring-mobile-labels{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;margin:0 0 12px}.course-ring-mobile-labels>div{display:grid;grid-template-columns:9px 1fr;gap:2px 6px;padding:7px;border-bottom:1px solid #eee4f4}.course-ring-mobile-labels i{width:8px;height:8px;border-radius:3px;margin-top:5px}.course-ring-mobile-labels span{font-size:11px;color:#9675a7}.course-ring-mobile-labels strong{grid-column:2;font-size:18px;color:#78518e;line-height:1.3}.course-ring-mobile-labels small{grid-column:2;font-size:10px;color:#a78db5}}

.income-trend-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr)}.income-labelled-wrap{width:100%;margin:auto 0}.income-labelled-ring{display:block;width:100%;height:auto;overflow:visible;max-height:340px}.income-labelled-segment{pointer-events:stroke;cursor:help}.income-labelled-segment:hover,.income-labelled-segment:focus{stroke-width:34;outline:none;filter:brightness(1.08)}.income-ring-label{font:13px 'Sarabun',sans-serif;fill:#90719f}.income-ring-value{font:600 20px 'Sarabun',sans-serif;fill:#75508c}.income-ring-percent{font-size:12px;font-weight:400;fill:#a48bb2}.income-ring-total{font:700 32px 'Sarabun',sans-serif;fill:#754d8e}.income-ring-total-label{font:12px 'Sarabun',sans-serif;fill:#a085af}.income-labelled-note{font-size:10px;text-align:center;color:#a68db2;margin:6px 0 0}.income-labelled-mobile{display:none}
@media(max-width:800px){.income-trend-row{grid-template-columns:1fr}.income-labelled-ring{max-height:360px}}
@media(max-width:480px){.income-labelled-mobile{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-top:8px}.income-labelled-mobile>div{display:grid;grid-template-columns:8px 1fr;gap:2px 6px;padding:5px 0;border-bottom:1px solid #eee4f3}.income-labelled-mobile i{width:8px;height:8px;border-radius:3px;margin-top:4px}.income-labelled-mobile span{font-size:10px;color:#9475a3}.income-labelled-mobile strong{grid-column:2;font-size:17px;line-height:1.2;color:#78528e}.income-labelled-mobile small{grid-column:2;font-size:10px;color:#ab91b6}.income-labelled-ring{max-height:240px}}

/* Put the map heading in the existing side space; keep map dimensions unchanged. */
.district-map-side{min-width:0;display:flex;flex-direction:column;gap:18px}.district-map-side-heading{padding:5px 2px 2px 15px;border-left:3px solid #d1af68}.district-map-side-heading>span{font-size:10px;letter-spacing:1px;color:#b08b46}.district-map-side-heading h2{font-size:23px;line-height:1.5;color:#74518a;margin:6px 0}.district-map-side-heading p{font-size:12px;color:#a28ab1;line-height:1.6}.district-map-side-heading .heading-symbol{width:30px;height:30px;flex-shrink:0}.map-table-title{font-size:20px;color:#76508c;margin:10px 0 15px}
@media(max-width:760px){.district-map-side{gap:13px}.district-map-side-heading h2{font-size:20px}.district-map-side-heading{padding-left:12px}.district-map-side-heading>span{font-size:9px}}

/* One-shot chart entrance; never hide data while waiting for JavaScript. */
.chart-enter{animation:chart-soft-enter .55s ease-out both}.outcome-vertical-chart.chart-enter .outcome-column-plot>span{transform-origin:bottom;animation:chart-bar-grow .6s cubic-bezier(.2,.7,.2,1) backwards}.outcome-comparison-chart svg.chart-enter rect{transform-box:fill-box;transform-origin:center bottom;animation:chart-bar-grow .6s cubic-bezier(.2,.7,.2,1) backwards}
@keyframes chart-soft-enter{from{opacity:.25;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes chart-bar-grow{from{transform:scaleY(.05)}to{transform:scaleY(1)}}
@media(hover:hover) and (pointer:fine){.district-map-area:hover,.district-map-area:focus-visible{transform:translateY(-4px);filter:drop-shadow(0 4px 3px #a77e3c30)}.district-map-area:hover>path,.district-map-area:focus-visible>path{stroke:#bd933f;stroke-width:2.4}}
@media(prefers-reduced-motion:reduce){.chart-enter,.outcome-vertical-chart.chart-enter .outcome-column-plot>span,.outcome-comparison-chart svg.chart-enter rect{animation:none!important}.district-map-area:hover,.district-map-area:focus-visible{transform:none;filter:none}}
@media print{.chart-enter,.outcome-vertical-chart.chart-enter .outcome-column-plot>span,.outcome-comparison-chart svg.chart-enter rect{animation:none!important;transform:none!important;opacity:1!important}}

/* Start on visibility, then raise bars sequentially from left to right. */
.outcome-vertical-chart.chart-enter .outcome-column-plot>span,.outcome-comparison-chart svg.chart-enter rect{animation-duration:700ms;animation-delay:var(--bar-delay,180ms);animation-timing-function:cubic-bezier(.18,.72,.25,1);animation-fill-mode:backwards}
@keyframes chart-bar-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.outcome-vertical-chart.chart-enter .outcome-column-plot>span,.outcome-comparison-chart svg.chart-enter rect{animation:none!important;animation-delay:0ms!important}}

/* Match ring entrance to the short pause before count-up. */
.course-type-ring.chart-enter,.income-labelled-ring.chart-enter,.report-age-donut svg.chart-enter,.tracking-coverage-ring svg.chart-enter{animation-delay:220ms;animation-duration:650ms;animation-fill-mode:backwards}
@media(prefers-reduced-motion:reduce){.course-type-ring.chart-enter,.income-labelled-ring.chart-enter,.report-age-donut svg.chart-enter,.tracking-coverage-ring svg.chart-enter{animation:none!important;animation-delay:0ms!important}}

/* Keep names and monetary values together; wrap only between detail groups. */
.app-tooltip{width:max-content;max-width:calc(100vw - 20px);display:flex;flex-wrap:wrap;gap:0 6px;white-space:normal;overflow-wrap:normal;word-break:normal;padding:11px 15px;border-radius:10px}
.app-tooltip .tooltip-part{display:block;white-space:nowrap;max-width:100%;min-width:0}.app-tooltip .tooltip-part+.tooltip-part::before{content:"·";display:inline-block;margin-right:6px;color:#d1b383}.app-tooltip .tooltip-long-part{white-space:normal;overflow-wrap:anywhere}
.app-tooltip.tooltip-enter{animation:tooltip-reveal-right 220ms cubic-bezier(.2,.7,.2,1) both;transform-origin:left center}
@keyframes tooltip-reveal-right{from{opacity:0;transform:translateX(-12px);clip-path:inset(0 100% 0 0 round 10px)}to{opacity:1;transform:translateX(0);clip-path:inset(0 0 0 0 round 10px)}}
@media(prefers-reduced-motion:reduce){.app-tooltip.tooltip-enter{animation:none}}
@media print{.app-tooltip{display:none!important}}

/* Age pyramid grows outward from its center, a pair at a time. */
.age-pyramid.chart-enter{animation:none}.age-pyramid.chart-enter .pyramid-track>span{animation:pyramid-outward 700ms cubic-bezier(.18,.72,.25,1) backwards;animation-delay:var(--pyramid-delay,220ms)}
.age-pyramid.chart-enter .pyramid-male .pyramid-track>span{transform-origin:right center}.age-pyramid.chart-enter .pyramid-female .pyramid-track>span{transform-origin:left center}
@keyframes pyramid-outward{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.age-pyramid.chart-enter .pyramid-track>span{animation:none!important}}
@media print{.age-pyramid.chart-enter .pyramid-track>span{animation:none!important;transform:none!important}}

/* Tabs already name each section; reclaim the repeated heading space. */
.activity-entry-page .activity-form>.activity-tabs~section.panel>.section-heading{display:none}
.activity-entry-page .activity-form>.activity-tabs~section.panel{padding-top:17px}
@media(max-width:640px){.activity-entry-page .activity-form>.activity-tabs~section.panel{padding-top:13px}}

.photo-input-label{display:flex;flex-direction:column;gap:6px;min-width:0;color:#a083b3;font-size:14px}.photo-source-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.photo-upload-button{display:inline-flex!important;align-items:center;cursor:pointer;border:1px solid #d9c5e6;background:#f4ecfa;color:#87609f;padding:7px 10px;border-radius:8px;font-size:12px;position:relative;overflow:hidden}.photo-upload-button input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-upload-button:focus-within{outline:2px solid #bd994e;outline-offset:2px}.photo-link-button{border:1px solid #e5d9ec;background:white;border-radius:7px;padding:6px 9px;font-size:11px;color:#9871ad}.photo-source-actions>[role=status]{font-size:10px;color:#699d84}.photo-source-actions>.upload-error{color:#b35f67}.photo-input-label input[hidden]{display:none!important}.activity-inline-previews img{object-fit:contain}

.staff-layout .activities-nav-group summary .activity-menu-home{display:flex;align-items:center;gap:10px;flex:1;min-width:0;align-self:stretch;color:inherit;padding:5px 0;line-height:1.5}.activity-menu-home>span:first-child{font-size:23px;width:23px;flex-shrink:0;color:#d8b16d}.activity-menu-home>span:last-child{font-size:14px}.staff-layout .activities-nav-group summary .activity-menu-expand{cursor:pointer;padding:0;flex-shrink:0}.activity-menu-home:focus-visible{outline:2px solid #d7b674;outline-offset:3px;border-radius:5px}

/* The SVG animates its own elements; keep both full-page decorative layers still. */
.login-body::before,.login-body::after{animation:none!important;transform:none!important;will-change:auto}

/* Outcome tiles: large count at left, icon and description stacked at right. */
.outcome-tiles>.outcome-tile{container-type:inline-size;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:minmax(65px,1fr) auto;column-gap:10px;row-gap:2px;min-height:126px;padding:12px 14px;align-items:center}
.outcome-tiles>.outcome-tile>strong{grid-column:1;grid-row:1;display:flex;align-items:center;align-self:stretch;min-width:0;min-height:0;padding:0;margin:0;line-height:1;font-size:54px;font-size:clamp(20px,calc(72cqi / var(--outcome-number-chars,3)),64px);letter-spacing:-1.5px;font-weight:700}
.outcome-tiles>.outcome-tile>small{grid-column:1;grid-row:2;align-self:start;font-size:11px;line-height:1.4;padding-bottom:2px}
.outcome-tiles>.outcome-tile>.outcome-icon{position:static;grid-column:2;grid-row:1;justify-self:center;align-self:center;width:45px;height:45px;border-radius:13px;display:flex;align-items:center;justify-content:center}
.outcome-tiles>.outcome-tile>.outcome-icon svg{width:29px;height:29px}
.outcome-tiles>.outcome-tile>span:not(.outcome-index):not(.outcome-icon){grid-column:2;grid-row:2;text-align:center;align-self:start;font-size:12px;line-height:1.45;min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){.outcome-tiles>.outcome-tile{padding:11px 10px;column-gap:7px;min-height:122px;grid-template-rows:minmax(60px,1fr) auto}.outcome-tiles>.outcome-tile>.outcome-icon{width:39px;height:39px;border-radius:11px}.outcome-tiles>.outcome-tile>.outcome-icon svg{width:25px;height:25px}.outcome-tiles>.outcome-tile>span:not(.outcome-index):not(.outcome-icon){font-size:11px}.outcome-tiles>.outcome-tile>small{font-size:10px}}

/* Keep on-screen budget comparison rows to one line; full text in tooltips. */
.budget-comparison .budget-comparison-table{table-layout:fixed;width:100%;min-width:920px}.budget-comparison .budget-comparison-table th:first-child{width:34%}.budget-comparison .budget-comparison-table th:nth-child(2){width:11%}.budget-comparison .budget-comparison-table th:nth-child(n+3){width:9.166%}.budget-comparison .budget-comparison-table td{padding:10px 12px;vertical-align:middle}.budget-comparison .budget-cell-text{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.55}.budget-comparison .budget-cell-text:focus-visible{outline:2px solid #c6a361;outline-offset:2px;border-radius:3px}
@media print{.budget-comparison .budget-comparison-table{min-width:0;table-layout:auto}.budget-comparison .budget-cell-text{white-space:normal;overflow:visible;text-overflow:clip}}

/* Row focus feedback applies equally to interactive and read-only records. */
.content table tbody>tr>td{transition:background-color 150ms ease,box-shadow 150ms ease}
.content table tbody>tr.is-pointer-row>td,.content table tbody>tr.is-keyboard-row>td{background-color:#eee3f5!important;box-shadow:inset 0 1px 0 #d5bfdf70,inset 0 -1px 0 #d5bfdf70}
.content table tbody>tr.is-pointer-row>td:first-child,.content table tbody>tr.is-keyboard-row>td:first-child{box-shadow:inset 3px 0 0 #bc9750,inset 0 1px 0 #d5bfdf70,inset 0 -1px 0 #d5bfdf70}
.content table tbody>tr.is-pointer-row>td:last-child,.content table tbody>tr.is-keyboard-row>td:last-child{box-shadow:inset -1px 0 0 #d5bfdf70,inset 0 1px 0 #d5bfdf70,inset 0 -1px 0 #d5bfdf70}
.content table tbody>tr.is-pointer-row>td:only-child,.content table tbody>tr.is-keyboard-row>td:only-child{box-shadow:inset 3px 0 0 #bc9750,inset 0 1px 0 #d5bfdf70,inset 0 -1px 0 #d5bfdf70}
.course-rank-list>li,.podium-runner,.income-legend>div,.report-age-legend>div,.report-dot-row,.waffle-legend-item{transition:background-color 150ms ease,box-shadow 150ms ease}
.course-rank-list>li:hover,.course-rank-list>li:focus-within,.podium-runner:hover,.podium-runner:focus-within,.income-legend>div:hover,.income-legend>div:focus-within,.report-age-legend>div:hover,.report-age-legend>div:focus-within,.report-dot-row:hover,.report-dot-row:focus-within,.waffle-legend-item:hover,.waffle-legend-item:focus-within{background-color:#eee3f5;box-shadow:inset 3px 0 #bc9750;border-radius:7px}
@media(prefers-reduced-motion:reduce){.content table tbody>tr>td,.course-rank-list>li,.podium-runner,.income-legend>div,.report-age-legend>div,.report-dot-row,.waffle-legend-item{transition:none}}
@media print{.content table tbody>tr.is-pointer-row>td,.content table tbody>tr.is-keyboard-row>td{background:transparent!important;box-shadow:none!important}}

/* Purple/gold row illumination: a single smooth light sweep on entry. */
.content table tbody>tr>td{transition:background-color 260ms ease,box-shadow 260ms ease;background-image:linear-gradient(112deg,transparent 25%,#fff7da00 37%,#f3d79166 47%,#fff9e580 50%,#dec18a40 55%,transparent 68%);background-size:280% 100%;background-position:100% 0;background-repeat:no-repeat}
.content table tbody>tr.is-pointer-row>td,.content table tbody>tr.is-keyboard-row>td{background-color:#ede2f4!important;animation:record-gold-sweep 850ms cubic-bezier(.2,.65,.3,1) both}
@keyframes record-gold-sweep{from{background-position:100% 0}to{background-position:0% 0}}
.course-rank-list>li,.podium-runner,.income-legend>div,.report-age-legend>div,.report-dot-row,.waffle-legend-item{position:relative;isolation:isolate;overflow:hidden;transition:background-color 260ms ease,box-shadow 260ms ease}
.course-rank-list>li::after,.podium-runner::after,.income-legend>div::after,.report-age-legend>div::after,.report-dot-row::after,.waffle-legend-item::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(112deg,transparent 30%,#efd08b00 40%,#f5dda466 49%,#fff9e580 51%,#dabb7b20 58%,transparent 70%);transform:translateX(-120%);opacity:0}
.course-rank-list>li:hover::after,.course-rank-list>li:focus-within::after,.podium-runner:hover::after,.podium-runner:focus-within::after,.income-legend>div:hover::after,.income-legend>div:focus-within::after,.report-age-legend>div:hover::after,.report-age-legend>div:focus-within::after,.report-dot-row:hover::after,.report-dot-row:focus-within::after,.waffle-legend-item:hover::after,.waffle-legend-item:focus-within::after{animation:record-light-sweep 850ms cubic-bezier(.2,.65,.3,1) both}
@keyframes record-light-sweep{0%{transform:translateX(-120%);opacity:0}18%{opacity:1}80%{opacity:1}100%{transform:translateX(120%);opacity:0}}
@media(prefers-reduced-motion:reduce){.content table tbody>tr>td{background-image:none;transition:none}.content table tbody>tr.is-pointer-row>td,.content table tbody>tr.is-keyboard-row>td{animation:none}.course-rank-list>li::after,.podium-runner::after,.income-legend>div::after,.report-age-legend>div::after,.report-dot-row::after,.waffle-legend-item::after{display:none}}
@media print{.content table tbody>tr>td{background-image:none!important;animation:none!important}.course-rank-list>li::after,.podium-runner::after,.income-legend>div::after,.report-age-legend>div::after,.report-dot-row::after,.waffle-legend-item::after{display:none}}

/* Restrict motion to the leading edge; keep the rest of each row quiet. */
.content table tbody>tr>td{background-image:none;animation:none!important}
.content table tbody>tr.is-pointer-row>td,.content table tbody>tr.is-keyboard-row>td{animation:none!important}
.content table tbody>tr.is-pointer-row>td:first-child,.content table tbody>tr.is-keyboard-row>td:first-child{animation:leading-gold-glow 700ms ease-out both!important}
.course-rank-list>li::after,.podium-runner::after,.income-legend>div::after,.report-age-legend>div::after,.report-dot-row::after,.waffle-legend-item::after{display:none}
.course-rank-list>li:hover,.course-rank-list>li:focus-within,.podium-runner:hover,.podium-runner:focus-within,.income-legend>div:hover,.income-legend>div:focus-within,.report-age-legend>div:hover,.report-age-legend>div:focus-within,.report-dot-row:hover,.report-dot-row:focus-within,.waffle-legend-item:hover,.waffle-legend-item:focus-within{animation:leading-gold-glow 700ms ease-out both}
@keyframes leading-gold-glow{0%{box-shadow:inset 3px 0 #bc9750}45%{box-shadow:inset 4px 0 #edce86,inset 15px 0 15px -15px #e3bd6b80}100%{box-shadow:inset 3px 0 #bc9750}}
@media(prefers-reduced-motion:reduce){.content table tbody>tr.is-pointer-row>td:first-child,.content table tbody>tr.is-keyboard-row>td:first-child,.course-rank-list>li:hover,.podium-runner:hover,.income-legend>div:hover,.report-age-legend>div:hover,.report-dot-row:hover,.waffle-legend-item:hover{animation:none!important}}
@media print{.content table tbody>tr.is-pointer-row>td:first-child,.content table tbody>tr.is-keyboard-row>td:first-child{animation:none!important;box-shadow:none!important}}

.followed-age-fields{padding:10px 12px;border:1px solid #e5d8ef;background:#fcf9fe;border-radius:10px;margin:10px 0}.followed-age-fields>span{font-size:12px;color:#9573a7}.followed-age-fields .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:6px}.followed-age-fields label{font-size:11px}.followed-age-fields input{height:35px!important;min-height:35px!important}.followed-age-fields>small{font-size:10px;color:#aa93b5}.followup-live-totals{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.followup-live-totals>span{padding:5px 8px;background:#f0e7f7;border-radius:7px;color:#92719f;font-size:10px}.income-zero-fields{margin-top:8px;padding-top:8px;border-top:1px solid #e6d8ee}.income-status-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.income-status-summary>span{display:flex;align-items:center;gap:8px;flex:1;min-width:105px;font-size:10px;color:#9b7bab;padding:7px 8px;background:#f7f0fb;border-radius:8px}.income-status-summary strong{font-size:15px;color:#805e92;margin-left:auto}
@media(max-width:640px){.followed-age-fields .form-grid{grid-template-columns:1fr 1fr}}

.activity-media-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0}.activity-media-link{display:flex;align-items:center;gap:10px;padding:10px 13px;min-height:49px;border:1px solid #e1d0ec;border-radius:11px;background:linear-gradient(115deg,#faf6fd,#fffdf8);color:#8a649e;transition:background-color .2s,border-color .2s,box-shadow .2s;min-width:0}.activity-media-link:hover,.activity-media-link:focus-visible{border-color:#c8a460;background:#f4ebfa;box-shadow:inset 3px 0 #c2a061}.media-link-icon{display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:8px;background:#efe4f6;color:#a483b8;flex-shrink:0}.media-link-icon svg{width:20px;height:20px}.media-link-label{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.media-link-external{margin-left:auto;color:#b09055;font-size:20px;flex-shrink:0}.activity-detail-page .activity-coordinate-note{font-size:12px;color:#aa93b4}
@media(max-width:600px){.activity-media-links{grid-template-columns:1fr}.media-link-label{font-size:13px}}
@media(prefers-reduced-motion:reduce){.activity-media-link{transition:none}}

.app-tooltip.has-tooltip-preview{width:min(320px,calc(100vw - 20px));gap:3px 6px}.tooltip-image-wrap{flex-basis:100%;width:100%;height:min(175px,30vh);margin-top:7px;background:#ffffff0b;border:1px solid #c8a86c44;border-radius:7px;overflow:hidden;display:flex;align-items:center;justify-content:center}.tooltip-image-wrap img{display:block;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity 180ms ease}.tooltip-image-wrap.preview-loaded img{opacity:1}
@media(prefers-reduced-motion:reduce){.tooltip-image-wrap img{transition:none}}

.media-link-source{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;font-size:10px;color:#8a719d;background:#eee8f7;border:1px solid #dfd2ed;border-radius:5px;padding:2px 5px;line-height:1.3}.media-link-source b{width:12px;height:13px;border-radius:3px;display:inline-flex;justify-content:center;align-items:center;background:#9b82b2;color:#fff;font:bold 12px Arial,sans-serif}
@media(max-width:400px){.media-link-source{font-size:9px;padding:2px 4px}.activity-media-link{gap:7px}}

.about-system-trigger{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #d8c194;border-radius:50%;background:#fffaf0;color:#ae8c50;padding:4px;cursor:pointer;margin-top:7px;vertical-align:middle;transition:background-color .2s,box-shadow .2s}.about-system-trigger svg{width:18px;height:18px}.about-system-trigger:hover{background:#f4e8c9;box-shadow:0 0 0 3px #d8b97420}.about-dialog-open{overflow:hidden;scrollbar-gutter:stable}.about-system-dialog{width:min(470px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #c5a46d;border-radius:20px;background:#fffdf9;color:#745184;box-shadow:0 25px 100px #25113055;overflow:auto;text-align:left;animation:about-dialog-in .22s ease-out}.about-system-dialog::backdrop{background:#24142e88;backdrop-filter:blur(4px)}.about-dialog-close{position:absolute;top:12px;right:13px;width:32px;height:32px;border-radius:50%;background:#ffffffb0;border:1px solid #e6d8eb;color:#8f6ba4;font-size:25px;line-height:1;cursor:pointer}.about-dialog-header{text-align:center;padding:25px 35px 19px;border-bottom:1px solid #e5d2ac;background:radial-gradient(ellipse at top,#f3e7cc,#faf4ff 80%)}.about-dialog-header>img{width:76px;height:76px;object-fit:contain;display:block;margin:0 auto 10px}.about-dialog-header>span{font-size:9px;color:#b08b49;letter-spacing:1.4px}.about-dialog-header h2{font-size:25px!important;color:#79538d!important;margin:5px 0 6px!important}.about-dialog-header p{font-size:13px!important;color:#a188ae!important;line-height:1.6}.about-dialog-body{padding:19px 25px}.about-dialog-body>p{font-size:13px;color:#9a7da9;line-height:1.8}.about-dialog-body .about-public-note{font-size:11px;color:#aa93b4;margin-top:10px}.about-developer{padding:15px 16px;margin-top:17px;border-left:3px solid #c6a466;background:#f7f0fb;border-radius:0 10px 10px 0}.about-developer>span{font-size:10px;color:#b29561}.about-developer h3{font-size:18px!important;color:#8d629f!important;margin:5px 0 4px!important}.about-developer p{font-size:12px!important;color:#9b80aa!important;line-height:1.6}.about-system-dialog>footer{padding:0 25px 19px;display:flex;justify-content:flex-end}.about-system-dialog>footer .btn{font-size:12px}.login-screen-card>.about-system-trigger{position:absolute;right:17px;bottom:13px;margin:0;z-index:3}
@keyframes about-dialog-in{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
:root[data-theme=dark] .about-system-trigger{background:#402c4c;border-color:#9f804e;color:#e2c58f}:root[data-theme=dark] .about-system-dialog{background:#2c1f37;border-color:#947145}:root[data-theme=dark] .about-dialog-header{background:radial-gradient(ellipse at top,#594344,#36243f 80%);border-color:#7e603c}:root[data-theme=dark] .about-dialog-header h2{color:#ebd4ac!important}:root[data-theme=dark] .about-dialog-header p,:root[data-theme=dark] .about-dialog-body>p{color:#c8add6!important}:root[data-theme=dark] .about-developer{background:#3a2847}:root[data-theme=dark] .about-developer h3{color:#e4c895!important}:root[data-theme=dark] .about-developer p{color:#c9b0d5!important}:root[data-theme=dark] .about-dialog-close{background:#483152;border-color:#6a4b7b;color:#dfc79d}
@media(prefers-reduced-motion:reduce){.about-system-dialog{animation:none}.about-system-trigger{transition:none}}
@media print{.about-system-trigger,.about-system-dialog{display:none!important}}

/* Always-visible entry point for both public visitors and signed-in staff. */
.public-layout>.about-system-trigger,.staff-layout>.about-system-trigger{position:fixed;right:20px;bottom:20px;margin:0;z-index:120;width:34px;height:34px;background:#fffaf4e8;border-color:#c5a66a;box-shadow:0 3px 12px #4d2e6420}.public-layout>.about-system-trigger svg,.staff-layout>.about-system-trigger svg{width:21px;height:21px}
@media(max-width:640px){.public-layout>.about-system-trigger,.staff-layout>.about-system-trigger{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}}

.about-system-trigger{opacity:.38;transition:opacity 220ms ease,background-color 220ms ease,box-shadow 220ms ease}.about-system-trigger:hover,.about-system-trigger:focus-visible,.about-system-trigger:active{opacity:1}
@media(prefers-reduced-motion:reduce){.about-system-trigger{transition:none}}

.about-system-dialog .about-developer{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:15px;padding:14px;border-left-width:3px;background:linear-gradient(120deg,#f1e7f7,#fcf7ea)}.about-developer-portrait{display:block;width:100px;height:132px;object-fit:cover;object-position:50% 38%;border-radius:12px;border:2px solid #cfb579;box-shadow:0 5px 14px #6747771c;background:#e7d8eb}.about-developer-copy{min-width:0}.about-developer-copy>span{font-size:10px;color:#b29561}.about-developer-copy h3 .heading-symbol{display:none}.about-system-dialog .about-developer h3{font-size:17px!important;line-height:1.5}.about-system-dialog .about-developer p{font-size:11px!important;line-height:1.7}.about-system-dialog .about-dismiss-hint{margin:0;padding:0 20px 18px;text-align:center;font-size:10px;color:#b6a1bf;line-height:1.6}.about-dismiss-touch{display:none}
:root[data-theme=dark] .about-system-dialog .about-developer{background:linear-gradient(120deg,#3e2a4b,#392b37)}
@media(max-width:400px){.about-system-dialog .about-dialog-body{padding:16px}.about-system-dialog .about-developer{grid-template-columns:80px minmax(0,1fr);gap:11px;padding:11px}.about-developer-portrait{width:80px;height:112px}.about-system-dialog .about-developer h3{font-size:16px!important}}
@media(pointer:coarse){.about-dismiss-desktop{display:none}.about-dismiss-touch{display:inline}}

.about-developer-photo-frame{width:100px;height:132px;overflow:hidden;border-radius:12px;border:2px solid #cfb579;box-shadow:0 5px 14px #6747771c;background:#e7d8eb}.about-developer-photo-frame .about-developer-portrait{width:100%;height:100%;border:0;border-radius:0;box-shadow:none;object-fit:cover;transform:scale(2);transform-origin:50% 24%}.about-system-dialog .about-dialog-body{padding-bottom:23px}
@media(max-width:400px){.about-developer-photo-frame{width:80px;height:112px}}

/* Square portrait with a wider composition to retain the hand and posture. */
.about-system-dialog .about-developer{grid-template-columns:112px minmax(0,1fr)}.about-developer-photo-frame{width:112px;height:112px;aspect-ratio:1}.about-developer-photo-frame .about-developer-portrait{transform:none;object-fit:cover;object-position:50% 32%}
@media(max-width:400px){.about-system-dialog .about-developer{grid-template-columns:92px minmax(0,1fr)}.about-developer-photo-frame{width:92px;height:92px}}

.staff-layout .nav-item>.nav-text{width:auto;flex:1;font:inherit;line-height:inherit;text-align:left;color:inherit}
.sidebar-toggle{display:none}
@media(min-width:961px){
 .staff-layout .sidebar{transition:width 240ms ease,padding 240ms ease}.staff-layout .main{transition:margin-left 240ms ease}
 .sidebar-toggle{position:absolute;top:9px;right:12px;display:flex;align-items:center;justify-content:center;width:29px;height:29px;padding:4px;border:1px solid #c9a76966;border-radius:8px;color:#dec18b;background:#ffffff0a;cursor:pointer;z-index:2}.sidebar-toggle svg{width:20px;height:20px;transition:transform 240ms ease}.sidebar-toggle:hover{background:#d9b56b20}
 .sidebar-collapsed .staff-layout .sidebar{width:76px;padding:48px 10px 18px}.sidebar-collapsed .staff-layout .main{margin-left:76px}.sidebar-collapsed .sidebar-toggle{right:23px}.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}
 .sidebar-collapsed .staff-layout .sidebar .brand{justify-content:center;padding:0;gap:0}.sidebar-collapsed .staff-layout .sidebar .brand img{width:38px;height:38px}.sidebar-collapsed .sidebar .brand-expanded,.sidebar-collapsed .sidebar .nav-text,.sidebar-collapsed .sidebar .side-note{display:none!important}
 .sidebar-collapsed .staff-layout .sidebar nav{margin-top:18px}.sidebar-collapsed .staff-layout .sidebar .nav-item{justify-content:center;padding:10px 7px;gap:0}.sidebar-collapsed .staff-layout .sidebar .nav-item>span:first-child{width:24px;flex-shrink:0}
 .sidebar-collapsed .staff-layout .sidebar .activities-nav-group summary{padding:7px;gap:0;min-height:44px}.sidebar-collapsed .sidebar .activity-menu-home{justify-content:center;gap:0;padding:0!important}.sidebar-collapsed .sidebar .activity-menu-home>span:last-child,.sidebar-collapsed .sidebar .activity-menu-expand,.sidebar-collapsed .sidebar .left-category-items{display:none!important}
}
@media(prefers-reduced-motion:reduce){.staff-layout .sidebar,.staff-layout .main,.sidebar-toggle svg{transition:none}}

/* Collapse handle sits on the center seam instead of the sidebar header. */
@media(min-width:961px){
 .staff-layout .sidebar-toggle{position:fixed;top:50%;left:266px;right:auto;transform:translateY(-50%);width:28px;height:52px;padding:5px 3px;border-radius:14px;border:1px solid #c5a061;background:linear-gradient(180deg,#f6e9c7,#dfc285);color:#73502c;box-shadow:0 3px 12px #26113225;z-index:20;transition:left 240ms ease,background-color 180ms ease,box-shadow 180ms ease}
 .staff-layout .sidebar-toggle:hover{background:linear-gradient(180deg,#fff4d7,#e9ca80);box-shadow:0 3px 15px #b58b3d45}
 .sidebar-collapsed .staff-layout .sidebar-toggle{left:62px;right:auto}
 .sidebar-collapsed .staff-layout .sidebar{padding-top:32px}
 :root[data-theme=dark] .staff-layout .sidebar-toggle{background:linear-gradient(180deg,#5a3c64,#392145);color:#e2c28b;border-color:#b49054}
}
@media(prefers-reduced-motion:reduce){.staff-layout .sidebar-toggle{transition:none}}

/* Quiet seam control: icon only, no visible box. */
@media(min-width:961px){
 .staff-layout .sidebar-toggle,:root[data-theme=dark] .staff-layout .sidebar-toggle{width:24px;height:38px;left:268px;right:auto;padding:5px 2px;border:0;border-radius:0;background:none;box-shadow:none;opacity:.32;color:#b79558;transition:left 240ms ease,opacity 200ms ease}
 .sidebar-collapsed .staff-layout .sidebar-toggle{left:64px}
 .staff-layout .sidebar-toggle svg{width:16px;height:16px}
 .staff-layout .sidebar-toggle:hover,.staff-layout .sidebar-toggle:focus-visible,:root[data-theme=dark] .staff-layout .sidebar-toggle:hover{background:none;box-shadow:none;opacity:1}
}
@media(prefers-reduced-motion:reduce){.staff-layout .sidebar-toggle{transition:none}}

@media(min-width:961px){:root[data-theme=dark].sidebar-collapsed .staff-layout .sidebar-toggle{left:64px}}

.about-build{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:12px}.about-build>span{padding:4px 9px;border-radius:6px;background:#ffffff80;border:1px solid #d9c49b;color:#a68a58;font-size:10px}.about-build b{font-weight:600;color:#9873aa;margin-left:3px}.site-footer .site-build{font-size:9px;opacity:.7;letter-spacing:.3px}:root[data-theme=dark] .about-build>span{background:#49344c;border-color:#82663e;color:#c9ab77}:root[data-theme=dark] .about-build b{color:#dac0e7}

/* About dialog: compact identity header, readable copy and a balanced portrait card. */
.about-system-dialog{width:min(520px,calc(100vw - 28px));border-radius:18px;font-weight:400}
.about-system-dialog .about-dialog-header{display:grid;grid-template-columns:72px minmax(0,1fr);gap:18px;align-items:center;text-align:left;padding:25px 27px 23px;background:linear-gradient(120deg,#fbf5e7,#f6effb);border-bottom:1px solid #e6d7bd}
.about-system-dialog .about-dialog-header>img{width:72px;height:72px;margin:0;filter:drop-shadow(0 3px 7px #b28b4430)}
.about-brand-copy>span{display:block;font-size:9px;letter-spacing:1.5px;color:#b18d4f;font-weight:600}
.about-system-dialog .about-brand-copy h2{display:block!important;text-align:left;font-size:25px!important;line-height:1.3!important;margin:6px 0 7px!important;letter-spacing:0;font-weight:600}.about-brand-copy h2 .heading-symbol{display:none!important}
.about-system-dialog .about-brand-copy p{font-size:12px!important;line-height:1.5;color:#9675a6!important;font-weight:400}.about-brand-copy>small{display:block;font-size:12px;line-height:1.6;color:#a087ac;margin-top:1px}
.about-system-dialog .about-dialog-body{padding:22px 27px 23px}.about-system-dialog .about-dialog-body>p{font-size:14px;line-height:1.8;font-weight:400;color:#876a96;margin:0}.about-system-dialog .about-dialog-body>.about-public-note{font-size:11px;line-height:1.7;margin-top:12px;padding-left:10px;border-left:2px solid #d8bf8b;color:#a28aac}
.about-system-dialog .about-developer{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;align-items:center;padding:15px;margin-top:20px;border:1px solid #e3d4e9;border-radius:13px;background:linear-gradient(120deg,#faf6fd,#fffaf0)}
.about-system-dialog .about-developer-photo-frame{width:112px;height:112px;aspect-ratio:1;border-radius:10px;border:1px solid #c8ae78;box-shadow:none}.about-system-dialog .about-developer-portrait{transform:none;object-position:50% 32%}
.about-system-dialog .about-developer-copy>span{font-size:10px;color:#b08d4e;letter-spacing:.3px}.about-system-dialog .about-developer-copy h3{font-size:18px!important;line-height:1.5;margin:5px 0 5px!important;font-weight:600;letter-spacing:0}.about-system-dialog .about-developer-copy p{font-size:12px!important;line-height:1.65;font-weight:400}.about-system-dialog .about-developer-copy p:last-child{font-size:11px!important;line-height:1.7;margin-top:4px;color:#ac96b5!important}
.about-release{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 27px;background:#f6f1f9;border-top:1px solid #e9dfee;color:#b09bbb;font-size:10px;letter-spacing:.2px}.about-release b{font-size:11px;font-weight:500;color:#9c7caa;margin-left:4px;font-variant-numeric:tabular-nums}
:root[data-theme=dark] .about-system-dialog{background:#261c32;border-color:#795f3e}:root[data-theme=dark] .about-system-dialog .about-dialog-header{background:linear-gradient(120deg,#3b2b3d,#30213b);border-color:#6a533b}:root[data-theme=dark] .about-brand-copy>small{color:#bca3c9}:root[data-theme=dark] .about-system-dialog .about-developer{background:#33263f;border-color:#59425f}:root[data-theme=dark] .about-release{background:#21172a;border-color:#4b3757;color:#9f87ae}:root[data-theme=dark] .about-release b{color:#d0b5df}
@media(max-width:400px){.about-system-dialog .about-dialog-header{padding:21px 19px;grid-template-columns:60px minmax(0,1fr);gap:14px}.about-system-dialog .about-dialog-header>img{width:60px;height:60px}.about-system-dialog .about-brand-copy h2{font-size:23px!important}.about-system-dialog .about-dialog-body{padding:18px}.about-system-dialog .about-developer{grid-template-columns:88px minmax(0,1fr);gap:12px;padding:12px}.about-system-dialog .about-developer-photo-frame{width:88px;height:88px}.about-system-dialog .about-developer-copy h3{font-size:16px!important}.about-release{padding:11px 19px}}

button.about-developer-photo-frame{display:block;padding:0;cursor:zoom-in;flex-shrink:0}button.about-developer-photo-frame:focus-visible{outline:2px solid #c6a15f;outline-offset:4px}.portrait-original-viewer{border:0;background:transparent;padding:0;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:hidden;cursor:zoom-out;box-shadow:0 15px 70px #0007}.portrait-original-viewer::backdrop{background:#160e20d9;backdrop-filter:blur(5px)}.portrait-original-viewer img{display:block;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);width:auto;height:auto;object-fit:contain;border-radius:12px}

.about-developer-photo-frame{position:relative;cursor:zoom-in!important;pointer-events:auto!important}.about-developer-photo-frame img{pointer-events:auto!important;cursor:zoom-in}.about-developer-photo-frame::after{content:"＋";position:absolute;right:5px;bottom:5px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#34213cc9;color:#ffe3a0;font-size:18px;line-height:1;pointer-events:none}

.about-system-dialog .about-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.about-team-member{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e2d2e8;border-top:2px solid #c6a464;border-radius:12px;background:linear-gradient(135deg,#faf5fd,#fffaf1);min-width:0}.about-team-member .about-developer-photo-frame{width:84px;height:84px;flex:0 0 84px;margin:0;border-radius:12px}.about-team-member .about-developer-photo-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;transform:none}.about-system-dialog .about-team-member h3{font-size:15px!important;line-height:1.5;margin:0 0 4px!important;color:#79548b}.about-system-dialog .about-team-member p{font-size:12px!important;line-height:1.5;margin:0;color:#9b80aa}html[data-theme=dark] .about-team-member{background:#37273e;border-color:#5f456a;border-top-color:#bc9b62}html[data-theme=dark] .about-system-dialog .about-team-member h3{color:#e5cb98}@media(max-width:680px){.about-system-dialog .about-team-grid{grid-template-columns:1fr}.about-team-member{padding:10px 12px}.about-team-member .about-developer-photo-frame{width:74px;height:74px;flex-basis:74px}}

.about-team-member{flex-direction:column;align-items:center;text-align:center;gap:10px}.about-team-member .about-developer-photo-frame{width:96px;height:96px;flex-basis:96px}.about-team-name{display:block;font-size:14px;line-height:1.6;color:#79548b;font-weight:600;margin-bottom:3px;word-break:normal}.about-team-member>div{min-width:0;width:100%}html[data-theme=dark] .about-team-name{color:#e5cb98}@media(max-width:680px){.about-team-member{flex-direction:row;text-align:left}.about-team-member .about-developer-photo-frame{width:74px;height:74px;flex-basis:74px}}

.about-system-dialog:has(.about-team-grid){width:min(900px,calc(100vw - 32px));max-width:900px}.about-system-dialog .about-team-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.about-system-dialog .about-team-member{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:flex-start;gap:14px;padding:20px 12px;min-width:0}.about-system-dialog .about-team-member .about-developer-photo-frame{width:120px;height:120px;flex:0 0 120px}.about-system-dialog .about-team-member .about-team-name{font-size:15px;line-height:1.6;margin:0 0 5px}.about-team-role{display:block;color:#ae8b47;font-size:10px;line-height:1.5;margin-bottom:4px}.about-team-lead{border-top-color:#9a73b4}.about-team-member:not(.about-team-lead)>div{padding-top:19px}.about-system-dialog .about-dialog-body{padding:22px 26px}@media(max-width:620px){.about-system-dialog:has(.about-team-grid){width:calc(100vw - 20px)}.about-system-dialog .about-dialog-body{padding:16px 10px}.about-system-dialog .about-team-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.about-system-dialog .about-team-member{padding:12px 5px;gap:8px}.about-system-dialog .about-team-member .about-developer-photo-frame{width:clamp(58px,19vw,90px);height:clamp(58px,19vw,90px);flex-basis:clamp(58px,19vw,90px);border-radius:10px}.about-system-dialog .about-team-member .about-team-name{font-size:11px;line-height:1.5}.about-system-dialog .about-team-member p{font-size:10px!important}.about-team-role{font-size:8px}.about-team-member:not(.about-team-lead)>div{padding-top:16px}}

.about-team-member:not(.about-team-lead)>div{padding-top:0!important}.about-team-role{min-height:16px}

.about-team-member .about-developer-photo-frame{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;will-change:transform}.about-team-member .about-developer-photo-frame img{transition:transform .25s ease}.about-team-member .about-developer-photo-frame:hover,.about-team-member .about-developer-photo-frame:focus-visible{transform:translateY(-2px) scale(1.035);border-color:#c09a49;box-shadow:0 7px 18px #75503a30}.about-team-member .about-developer-photo-frame:hover img{transform:scale(1.04)}.about-portrait-preview{position:fixed;z-index:20;width:190px;padding:7px;border:1px solid #c5a162;border-radius:14px;background:#fffaf0;box-shadow:0 10px 32px #24122e40;pointer-events:none;animation:portrait-preview-in .18s ease-out}.about-portrait-preview[hidden]{display:none!important}.about-portrait-preview img{display:block;width:100%;height:230px;object-fit:contain;border-radius:9px;background:#f1ebf3}.about-portrait-preview span{display:block;text-align:center;font-size:12px;color:#8c6a35;padding:6px 0 2px}html[data-theme=dark] .about-portrait-preview{background:#35243e}html[data-theme=dark] .about-portrait-preview span{color:#e6c98e}@keyframes portrait-preview-in{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.about-team-member .about-developer-photo-frame,.about-team-member .about-developer-photo-frame img{transition:none}.about-portrait-preview{animation:none}}
