:root{--ink:#16363c;--teal:#0e666a;--sea:#dff1ee;--muted:#62777a;--line:#d6e3e2;--paper:#f5f8f7;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.55}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}.top{background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px max(22px,calc((100vw - 1160px)/2));flex-wrap:wrap}.brand{display:flex;align-items:center;gap:11px;color:var(--ink)}.brand img{width:43px;height:43px}.brand span{display:flex;flex-direction:column;line-height:1.1;letter-spacing:.07em}.brand small{font-size:10px;letter-spacing:.14em;margin-top:5px}.top nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:13px}.top nav form{display:inline}.user{color:var(--muted)}.linkbtn{border:0;background:none;color:var(--teal);padding:0;cursor:pointer}.wrap{max-width:1160px;padding:35px 22px 70px;margin:auto;min-height:calc(100vh - 135px)}h1{font-size:clamp(27px,4vw,43px);line-height:1.14;letter-spacing:-.035em;margin:10px 0}h2{font-size:19px;margin:0 0 17px}.hero{padding:45px 40px;border-radius:20px;background:linear-gradient(115deg,rgba(10,82,85,.94),rgba(28,117,116,.84)),radial-gradient(circle at 80% 20%,#c1ded6,transparent);color:white;margin-bottom:24px}.hero h1{max-width:650px}.hero p{max-width:720px;color:#e3f5f2}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;text-transform:uppercase;color:var(--teal)}.hero .eyebrow{color:#c9ece8}.panel{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:25px;margin-bottom:20px;box-shadow:0 4px 20px #0e454509}.narrow{max-width:720px;margin-left:auto;margin-right:auto}.center{text-align:center}.muted{color:var(--muted);font-size:13px}form label{display:block;font-size:13px;font-weight:650;margin:13px 0}input,select,textarea{display:block;width:100%;border:1px solid #bdcdcc;background:#fff;border-radius:9px;padding:11px 12px;margin-top:6px;font:inherit;font-weight:400;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #86bdb6;outline-offset:1px}.check{display:flex;gap:11px;align-items:flex-start;font-weight:400}.check input{width:19px;flex-shrink:0;margin-top:4px}.primary,.button,button.small{display:inline-block;background:var(--teal);color:white;border:0;border-radius:9px;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer}.small{font-size:12px!important;padding:8px 11px!important}.secondary{background:#e8f1ef!important;color:var(--teal)!important}.cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px;flex-wrap:wrap}.heading p{color:var(--muted);margin:4px 0}.metric,.tile{background:var(--white);border:1px solid var(--line);padding:21px;border-radius:14px}.metric strong,.tile b{font-size:29px;display:block;letter-spacing:-.04em}.metric span,.tile span,.tile small{font-size:12px;color:var(--muted);display:block}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0 25px}.tile b{margin:10px 0}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{background:#eef5f3;color:#526d70}td,th{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}.inline{display:inline-block;margin-right:4px}.pill{display:inline-block;border-radius:30px;background:#e3f2ee;color:#075f5e;font-size:12px;padding:5px 10px;text-transform:capitalize}.staff{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.staff span{color:var(--muted)}.note{border-top:1px solid var(--line);padding:14px 0}.note small{color:var(--muted)}.pre{white-space:pre-wrap;overflow-wrap:anywhere}dl{display:grid;grid-template-columns:120px 1fr;gap:12px;font-size:13px}dt{color:var(--muted)}dd{margin:0}.alert{padding:12px 17px;border-radius:10px;margin-bottom:15px;background:#fff1d7}.alert.ok{background:#e4f5eb}.back{display:inline-block;margin-bottom:20px}.symbol{font-size:42px;color:var(--teal)}footer{text-align:center;font-size:12px;color:var(--muted);padding:25px;border-top:1px solid var(--line)}.sheetwrap{overflow:auto;max-width:100%}.sheetgrid{min-width:920px}.sheetgrid th:first-child{position:sticky;left:0;z-index:1;background:#eef5f3}.sheetgrid td,.sheetgrid th{padding:3px;border:1px solid var(--line)}.sheetgrid td input{min-width:105px;width:100%;border:0;border-radius:0;padding:9px 6px;margin:0;background:transparent;font-size:13px}.sheetgrid td input:focus{outline:2px solid var(--teal);outline-offset:-2px}.sheetgrid td input[readonly]{background:#f5f8f7}@media(max-width:760px){.cols,.cards{grid-template-columns:1fr}.top{padding:13px 18px}.top nav{gap:10px}.hero{padding:27px 23px}.panel{padding:18px}.wrap{padding:20px 14px 45px}dl{grid-template-columns:1fr;gap:2px}dd{margin-bottom:12px}}


/* Angitū Advocate Services — role-specific dashboard layout, pilot visual build.
   Existing non-dashboard tools retain their original styling. */
.dashboard-view{background:#f7f6f1}
.dashboard-view>.top{display:none}
.dashboard-view>.wrap{max-width:none;margin:0;padding:0;min-height:100vh}
.dashboard-view>footer{background:#f7f6f1;margin-left:270px}
.workspace-shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.workspace-sidebar{background:linear-gradient(175deg,#063e3e 0%,#004749 55%,#003638 100%);color:#f4faf4;padding:25px 13px 24px;display:flex;flex-direction:column;gap:14px;min-height:100vh}
.side-brand{display:flex;align-items:center;gap:12px;padding:10px 11px 2px}
.side-brand img{width:49px;height:49px;object-fit:contain;border-radius:11px;background:#fff;padding:5px}
.side-brand strong{font-size:28px;line-height:1;display:block;font-family:Georgia,serif;letter-spacing:-.03em}
.side-brand span{font-size:13px;font-weight:600}
.side-caption{font-size:11px;text-transform:uppercase;letter-spacing:.14em;padding:10px 13px 22px;border-bottom:1px solid #ffffff28;color:#c6ded8}
.side-links{display:flex;flex-direction:column;gap:4px}
.side-links a{display:flex;align-items:center;gap:15px;padding:11px 15px;color:#eff9f4;font-size:14px;font-weight:600;border-radius:10px;text-decoration:none;transition:background .15s}
.side-links a:first-letter{font-size:20px}
.side-links a:hover{background:#ffffff20}
.side-links a.selected{background:linear-gradient(90deg,#d6e9ca,#9dcfc3);color:#073f3c}
.side-foot{margin-top:auto;border-top:1px solid #ffffff25;padding:22px 12px 0;color:#d3e6dd;font-size:10px;letter-spacing:.12em}
.side-foot small{letter-spacing:0;font-size:11px}
.workspace-main{min-width:0;padding:28px clamp(18px,2.5vw,42px) 48px}
.workspace-welcome{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 0 26px;margin-bottom:22px;border-bottom:1px solid #d9e5db;background:radial-gradient(ellipse at 90% 30%,#e2ebd7 0,transparent 36%)}
.workspace-welcome h1{font-size:clamp(24px,2.4vw,34px);margin:7px 0 6px;color:#083c3e}
.workspace-welcome p{margin:0;color:#4f6d68;font-size:14px}
.workspace-welcome .eyebrow{color:#41857c}
.welcome-meta{display:flex;align-items:center;gap:15px;white-space:nowrap}
.pilot-label{color:#2f7567;background:#e4eee3;border:1px solid #cce1d5;padding:8px 11px;border-radius:30px;font-size:10px;font-weight:800;letter-spacing:.04em}
.user-bubble{background:#004d4d;color:white;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-weight:800;font-size:13px}
.workspace-section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}
.workspace-section-title h2{margin:0;color:#103e40;font-size:21px}
.workspace-section-title p{margin:2px 0;color:#74877f;font-size:12px}
.workspace-section-title a,.panel-heading a{font-size:12px;font-weight:700;color:#126c5f}
.workspace-stats{display:grid;gap:13px;margin-bottom:20px}
.manager-stats,.kaimahi-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.stat-card{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:12px;background:linear-gradient(145deg,#edf2e2,#f7f8ef);border:1px solid #e4eadf;border-radius:14px;padding:19px 18px;min-height:120px;text-decoration:none;color:#143d3b;box-shadow:0 4px 14px #123d3110}
.stat-card:hover{border-color:#8fc2b2;text-decoration:none}
.stat-symbol{font-size:30px;grid-row:span 2;color:#206d4d;align-self:center}
.stat-card strong{font-size:33px;line-height:1.1;letter-spacing:-.04em}
.stat-card strong small{font-size:15px;color:#68857c}
.stat-card>span:last-child{font-size:12px;font-weight:650}
.workspace-panels{display:grid;gap:15px;margin-bottom:17px;align-items:stretch}
.manager-top-panels{grid-template-columns:1fr 1fr 1fr}
.manager-lower-panels{grid-template-columns:1fr 1fr}
.kaimahi-top-panels{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace-panel{background:#fffdfa;border:1px solid #dce5dd;border-radius:15px;overflow:hidden;margin-bottom:17px;box-shadow:0 4px 13px #164e3e0a;min-width:0}
.workspace-panels>.workspace-panel{margin-bottom:0}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 17px;background:#fafbf7;border-bottom:1px solid #e4eae3}
.kaimahi-shell .panel-heading{background:#004c4d;color:white}
.panel-heading h2{margin:0;font-size:16px;line-height:1.3}
.kaimahi-shell .panel-heading a,.kaimahi-shell .panel-heading .panel-meta{color:#d2ece1}
.panel-meta{font-size:11px;color:#7a8c84}
.panel-content{padding:12px 16px}
.workload-item{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e6ebe5}
.workload-item:last-child{border-bottom:0}
.round-avatar{flex:none;width:39px;height:39px;border-radius:50%;background:#d8eacb;color:#1b5846;display:grid;place-items:center;font-size:12px;font-weight:800}
.workload-item>div{min-width:0;flex:1}
.workload-item strong,.activity-line strong{display:block;font-size:13px;line-height:1.4;color:#173d3c}
.workload-item small,.activity-line small{display:block;color:#6c7e77;font-size:11px;margin-top:3px}
.progress-track{height:7px;border-radius:20px;background:#e4e7e1;overflow:hidden;margin-top:8px}
.progress-track>div{height:100%;background:linear-gradient(90deg,#7ba46d,#14734f);border-radius:20px}
.empty-feature{padding:24px 10px;text-align:center;color:#58776b}
.empty-feature>span{font-size:36px;display:block;color:#498a76}
.empty-feature strong{font-size:13px}
.empty-feature p{font-size:12px;margin:6px auto;max-width:260px}
.finance-panel{background:#f0f5e9}
.finance-panel .panel-heading{background:#e9f1df}
.finance-line{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #dce4d8;font-size:12px}
.finance-line strong{color:#164b3d}
.finance-total{font-weight:800;font-size:14px}
.finance-action{display:block;text-align:right;font-size:12px;font-weight:700;margin:18px 0 3px}
.activity-line{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #e6eae5;text-decoration:none;color:#1a4c47}
.activity-line:last-child{border-bottom:0}
.activity-line>div{min-width:0;flex:1}
.activity-line>span:last-child{margin-left:auto}
.activity-icon{color:#1c6a57;font-size:24px}
.case-chip{font-size:10px;font-weight:800;background:#e1edcf;color:#2b5d46;padding:9px;border-radius:8px}
.alert-row{display:flex;justify-content:space-between;align-items:center;background:#f2f5ed;border-radius:12px;padding:13px 14px;margin:7px 0;font-size:12px;color:#294c42;text-decoration:none}
.alert-row:nth-child(2){background:#fcf1df}
.alert-row:nth-child(3){background:#e7f1f0}
.alert-row:hover{text-decoration:none;filter:brightness(.98)}
.quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:14px}
.kaimahi-shell .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.quick-grid a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#f0f4e9;border:1px solid #e2ead9;border-radius:12px;min-height:112px;text-align:center;font-size:25px;color:#0e5c51;text-decoration:none;padding:10px}
.quick-grid a:hover{background:#e0ebd7}
.quick-grid strong{font-size:12px;color:#1b4a44}
.quick-grid small{font-size:10px;color:#6e8076}
.workspace-panel>.tablewrap{padding:0 12px 12px}
.workspace-panel table{min-width:640px}
.kaimahi-shell .stat-card{background:linear-gradient(140deg,#edf3e0,#e6f0e4)}
@media(max-width:1450px){.manager-top-panels{grid-template-columns:1fr 1fr}.finance-panel{grid-column:1/-1}.kaimahi-top-panels{grid-template-columns:1fr 1fr}.kaimahi-top-panels>.workspace-panel:last-child{grid-column:1/-1}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.workspace-shell{grid-template-columns:220px minmax(0,1fr)}.dashboard-view>footer{margin-left:220px}.manager-stats,.kaimahi-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-top-panels,.manager-lower-panels,.kaimahi-top-panels{grid-template-columns:1fr}.finance-panel,.kaimahi-top-panels>.workspace-panel:last-child{grid-column:auto}.side-links a{font-size:12px;padding:10px}.side-brand strong{font-size:24px}}
@media(max-width:680px){.workspace-shell{display:block}.workspace-sidebar{min-height:0;padding:12px;gap:8px}.side-brand{padding:5px}.side-brand img{width:35px;height:35px}.side-brand strong{font-size:22px}.side-caption,.side-foot{display:none}.side-links{display:flex;flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:4px}.side-links a{flex:none;white-space:nowrap;font-size:11px;padding:9px 11px}.workspace-main{padding:20px 12px 30px}.workspace-welcome{align-items:flex-start}.welcome-meta{flex-direction:column-reverse;gap:5px}.pilot-label{font-size:8px;padding:6px}.user-bubble{width:32px;height:32px}.stat-card{min-height:100px;padding:13px;gap:7px}.stat-card strong{font-size:26px}.stat-symbol{font-size:22px}.quick-grid,.kaimahi-shell .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-view>footer{margin-left:0}.workspace-section-title{gap:8px}}


/* Approved Manager Concept 2 refinement — scoped to manager only */
.manager-shell .workspace-main{padding:12px 18px 40px}
.manager-shell .workspace-welcome{margin:0 -18px 13px;padding:14px 24px 22px;background:linear-gradient(100deg,#fffdf8 55%,#e8f1df);border-bottom:0}
.manager-shell .workspace-welcome .eyebrow{display:none}
.manager-shell .workspace-welcome h1{font-size:clamp(23px,2.15vw,35px);margin:0 0 5px}
.manager-shell .workspace-welcome p{font-size:14px;color:#214c46}
.manager-shell .workspace-section-title{margin-bottom:12px}
.manager-shell .workspace-section-title h2{font-size:20px}
.manager-shell .manager-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:17px}
.manager-shell .stat-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:112px;padding:14px 11px;gap:1px;background:linear-gradient(135deg,#eef3e4,#f9f8f1)}
.manager-shell .stat-symbol{font-size:25px;line-height:1.1}
.manager-shell .stat-card strong{font-size:29px;line-height:1.12;color:#063e3c}
.manager-shell .stat-card>span:last-of-type{font-size:12px;font-weight:800;color:#203d36}
.manager-shell .stat-card>small{font-size:10px;line-height:1.35;color:#5d796a}
.manager-shell .manager-top-panels{grid-template-columns:1fr 1fr .93fr;gap:12px}
.manager-shell .finance-panel{grid-column:auto}
.manager-shell .manager-lower-panels{grid-template-columns:1.4fr .9fr;gap:12px}
.manager-shell .workspace-panel{border-radius:14px}
.manager-shell .panel-heading{padding:12px 14px;background:#fffefa}
.manager-shell .panel-heading h2{font-size:17px;color:#0b4040}
.manager-shell .finance-panel .panel-heading{background:#e9f2e0}
.manager-shell .workload-item{padding:13px 0}
.manager-shell .alert-row:first-child{background:#f9e4df}
.manager-shell .alert-row:nth-child(2){background:#fff1d8}
.manager-shell .alert-row:nth-child(3){background:#e1eef3}
.manager-shell .alert-row:nth-child(4){background:#e9f3de}
.manager-shell .side-links a{font-size:14px}
.manager-shell .side-links a.selected{background:#4da89b;color:#fff}
.manager-shell .side-brand img{background:#fff}
.manager-shell .workspace-section-title>a{display:none}
@media(max-width:1500px){.manager-shell .manager-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-shell .manager-top-panels{grid-template-columns:1fr 1fr}.manager-shell .finance-panel{grid-column:1/-1}}
@media(max-width:1000px){.manager-shell .manager-top-panels,.manager-shell .manager-lower-panels{grid-template-columns:1fr}.manager-shell .finance-panel{grid-column:auto}}
@media(max-width:680px){.manager-shell .manager-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-shell .workspace-main{padding:15px 12px}.manager-shell .workspace-welcome{margin:0 -12px 15px;padding:14px 12px}.manager-shell .stat-card{min-height:105px}}


/* Unified staff portal — distinct manager and kaimahi entry through one page */
.welcome-login{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);max-width:1030px;margin:15px auto 35px;min-height:580px;border-radius:23px;overflow:hidden;background:#fffdfa;border:1px solid #dce9e2;box-shadow:0 15px 55px #003d3620}
.welcome-login-hero{background:linear-gradient(155deg,#003e40,#0a6660);padding:60px clamp(25px,4vw,54px);color:white;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative}
.welcome-login-hero:after{content:"";position:absolute;right:-45px;bottom:-65px;width:260px;height:260px;border:30px solid #ffffff12;transform:rotate(45deg);pointer-events:none}
.welcome-login-hero img{width:80px;height:80px;object-fit:contain;background:#fff;border-radius:17px;padding:10px;margin-bottom:35px}
.welcome-login-hero .eyebrow{color:#a9dccc}
.welcome-login-hero h1{color:#fff;font-size:clamp(30px,3vw,45px);line-height:1.16;margin:16px 0}
.welcome-login-hero p{color:#dceee8;font-size:15px;max-width:340px}
.login-kaupapa{margin-top:35px;font-size:11px;letter-spacing:.05em;color:#b4ded0}
.welcome-login-card{padding:clamp(22px,4vw,52px);align-self:center}
.welcome-login-card h2{font-size:27px;color:#083d3d;margin:7px 0 6px}
.workspace-choices{border:0;padding:0;margin:24px 0 16px;min-width:0}
.workspace-choices legend{font-size:13px;font-weight:800;margin-bottom:9px}
.workspace-choice{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #d6e5db;border-radius:11px;margin:8px 0;cursor:pointer}
.workspace-choice:has(input:checked){border-color:#148072;background:#e8f3ec;box-shadow:0 0 0 1px #148072}
.workspace-choice input{width:18px;height:18px;margin:0;flex:none;accent-color:#087569}
.workspace-choice span{display:flex;flex-direction:column;gap:2px}
.workspace-choice strong{font-size:13px}
.workspace-choice small{font-size:11px;color:#647e76}
.login-submit{width:100%;margin-top:13px}
.login-demo{border-top:1px solid #e1e9e2;margin-top:25px;padding-top:21px}
.login-demo h3{font-size:15px;margin:0}
.demo-login-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.demo-login-options button{width:100%;padding:12px 7px;border-radius:10px;border:1px solid #b9d6c7;background:#e8f3e8;color:#0b5c50;font-size:12px;font-weight:800;cursor:pointer}
.demo-login-options button:hover{background:#d5eadb}
.login-help{font-size:11px;color:#799189;text-align:center;margin:20px 0 0}
@media(max-width:720px){.welcome-login{grid-template-columns:1fr;margin:0 auto}.welcome-login-hero{padding:28px 25px;min-height:250px}.welcome-login-hero img{width:48px;height:48px;margin-bottom:14px}.welcome-login-hero h1{font-size:28px;margin:7px 0}.login-kaupapa{margin-top:12px}.welcome-login-card{padding:24px}}


/* Staff profile creation */
.account-screen{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:28px;max-width:1000px;margin:30px auto}
.account-intro{border-radius:19px;padding:48px 38px;background:linear-gradient(145deg,#e5f2e8,#fafaf4);align-self:start}
.account-intro h1{font-size:clamp(27px,3vw,40px);color:#073f3e;margin:17px 0}
.account-intro p{font-size:15px;line-height:1.75}
.account-form{padding:30px 35px}
.account-form h2{font-size:24px}
.account-register-link{margin:17px 0 0;text-align:center;font-size:14px}
.account-register-link a{font-weight:800}
@media(max-width:750px){.account-screen{grid-template-columns:1fr;margin:10px auto;gap:12px}.account-intro{padding:24px}.account-form{padding:23px}}


/* ACMS single authoritative theme: no repeated competing overrides. */
:root{--ink:#102F30;--teal:#006E6A;--sea:#D7F0EE;--muted:#6B7F7E;--line:#D7F0EE;--paper:#EDF4F3;--white:#FAF9F6;--deep-teal:#004D4B;--accent:#00A698}
body,body.dashboard-view{background:#EDF4F3;color:#102F30}
body:not(.secure-login-view){background-image:linear-gradient(#EDF4F3e5,#EDF4F3e5),url('/static/puhoro-original.jpg');background-attachment:fixed;background-size:cover;background-position:center}
.top{background:#FAF9F6;border-color:#D7F0EE}.top .brand{color:#004D4B}
a{color:#006E6A}.primary,.button,button.small{background:#006E6A;color:#FAF9F6}.primary:hover{background:#004D4B}
input,select,textarea{border-color:#6B7F7E;background:#FAF9F6;color:#102F30}
input:focus,select:focus,textarea:focus{outline-color:#00A698}
.panel,.tile,.metric,.workspace-panel,.stat-card{background:#FAF9F6;border-color:#D7F0EE;color:#102F30}
.hero{background:linear-gradient(115deg,#004D4B,#006E6A)}.hero p,.hero .eyebrow{color:#D7F0EE}
.dashboard-view>.wrap,.workspace-main{background:transparent}.dashboard-view>footer{background:#EDF4F3}
.workspace-sidebar{background:#004D4B;color:#FAF9F6}.side-brand img{background:#EDF4F3}
.side-links a.selected,.side-links a:hover{background:#006E6A;color:#FAF9F6}
.workspace-welcome{background:none;border-color:#D7F0EE}
.workspace-welcome h1,.workspace-section-title h2{color:#004D4B}
.workspace-welcome p,.workspace-section-title p{color:#6B7F7E}
.pilot-label{background:#D7F0EE;color:#004D4B;border-color:#00A698}
.user-bubble{background:#006E6A;color:#FAF9F6}
.panel-heading,.kaimahi-shell .panel-heading{background:#004D4B;color:#FAF9F6;border-color:#006E6A}
.panel-heading h2{color:#FAF9F6}.panel-heading a,.panel-meta,.kaimahi-shell .panel-heading a,.kaimahi-shell .panel-heading .panel-meta{color:#D7F0EE}
.round-avatar{background:#D7F0EE;color:#004D4B}
th,.sheetgrid th:first-child{background:#D7F0EE;color:#004D4B}
.pill{background:#D7F0EE;color:#004D4B}.secondary{background:#D7F0EE!important;color:#004D4B!important}
.secure-login-view{background:#EDF4F3;background-image:linear-gradient(#EDF4F3c9,#EDF4F3c9),url('/static/puhoro-original.jpg');background-position:center;background-size:cover;background-attachment:fixed}
.secure-login-view>.top{display:none}
.secure-login-view>.wrap{max-width:none;margin:0;padding:0;min-height:0}
.secure-login-page{min-height:calc(100dvh - 65px);padding:18px 16px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.secure-login-brand{text-align:center;color:#004D4B}
.secure-login-brand img{width:112px;height:112px;display:block;object-fit:contain;margin:0 auto 3px}
.secure-login-brand h1{font-size:clamp(40px,4vw,56px);line-height:1.02;margin:0;font-weight:800}
.secure-login-subtitle{font-size:clamp(21px,2.5vw,30px);margin:3px 0}
.secure-login-services{font-size:clamp(12px,1.5vw,16px);margin:8px 0 0}
.secure-login-services span{color:#00A698;margin:0 10px}
.secure-login-card{width:min(100%,590px);background:#004D4B;color:#FAF9F6;border:2px solid #00A698;border-radius:23px;padding:22px clamp(20px,4vw,42px);box-shadow:0 15px 38px #004D4B25;text-align:center}
.secure-login-card h2{font-size:25px;color:#FAF9F6;margin:0}
.secure-login-card>p{color:#D7F0EE;margin:3px 0 13px}
.secure-login-card form{text-align:left}
.secure-login-card form label{color:#FAF9F6;margin:9px 0 4px}
.secure-login-card .login-field{position:relative}
.secure-login-card .login-field input{width:100%;padding:11px 43px;background:#006E6A;color:#FAF9F6;border:1px solid #D7F0EE;border-radius:10px;margin:0}
.secure-login-card input::placeholder{color:#D7F0EE}
.secure-login-card .field-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#D7F0EE;pointer-events:none}
.secure-login-card .password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);background:transparent;border:0;color:#FAF9F6;cursor:pointer;padding:7px}
.secure-login-card .login-submit{width:100%;margin-top:17px;background:#00A698;color:#FAF9F6;font-size:17px}
.secure-login-card .login-submit:hover{background:#006E6A}
.secure-login-card .secure-login-note{font-size:12px;margin:14px 0 0;color:#D7F0EE}
.secure-login-demo{margin-top:12px;color:#D7F0EE;text-align:left}
.secure-login-demo summary{cursor:pointer}
.secure-login-demo button{background:#006E6A;color:#FAF9F6;border:1px solid #D7F0EE;border-radius:8px;padding:8px}
.secure-login-view>footer{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#004D4B;color:#FAF9F6;border-top:1px solid #00A698;padding:20px 5.5%;font-size:12px}
.secure-login-view>footer span{flex:1}.secure-login-view>footer span:first-child{text-align:left}.secure-login-view>footer span:last-child{text-align:right}
.profile-shell{max-width:1050px;margin:30px auto;display:grid;grid-template-columns:1fr 1fr;border-radius:22px;overflow:hidden;box-shadow:0 14px 35px #004D4B20}
.profile-intro{background:#004D4B;color:#FAF9F6;padding:55px 42px;display:flex;flex-direction:column;justify-content:center}
.profile-intro img{width:100px;height:100px;margin-bottom:20px}.profile-intro .eyebrow,.profile-values{color:#D7F0EE}
.profile-intro h1{color:#FAF9F6}.profile-values{font-size:13px;margin-top:30px}
.profile-panel{margin:0;border:0;border-radius:0;padding:48px 40px}.profile-panel input[readonly]{background:#EDF4F3;color:#6B7F7E}
.profile-panel button{width:100%;margin-top:16px}
@media(max-width:760px){.profile-shell{grid-template-columns:1fr}.profile-intro{padding:32px 25px}.profile-panel{padding:30px 22px}.secure-login-page{justify-content:flex-start}.secure-login-brand img{width:86px;height:86px}.secure-login-services span{margin:0 3px}.secure-login-view>footer{font-size:10px;flex-wrap:wrap}}

/* Original supplied pūhoro: faint, unmodified image beneath the interface. */
body.secure-login-view{background-image:linear-gradient(#EDF4F3d1,#EDF4F3d1),url('/static/puhoro-original.jpg')}
body:not(.secure-login-view){background-image:linear-gradient(#EDF4F3dc,#EDF4F3dc),url('/static/puhoro-original.jpg')}
.secure-login-brand img{background:transparent;border-radius:0;object-fit:contain}
.profile-intro img,.side-brand img,.top .brand img{object-fit:contain}
/* ACMS visual repair v4: verified screenshot defects */
body.secure-login-view,body:not(.secure-login-view){background:#EDF4F3!important;background-image:none!important;position:relative;isolation:isolate}
body.secure-login-view::before,body:not(.secure-login-view)::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:url('/static/puhoro-original.jpg');background-position:center;background-repeat:no-repeat;background-size:cover;opacity:.055}
body.secure-login-view::before{opacity:.065}
.secure-login-view{min-height:100dvh;display:flex;flex-direction:column}
.secure-login-view>.wrap{flex:1;min-height:0!important;width:100%;display:flex;flex-direction:column;justify-content:center}
.secure-login-page{min-height:0!important;box-sizing:border-box;padding:clamp(14px,2vh,24px) 16px!important;gap:clamp(10px,1.7vh,19px)!important;justify-content:center!important}
.secure-login-brand{display:flex;flex-direction:column;align-items:center}
.secure-login-brand img{width:clamp(90px,10.5vh,136px)!important;height:clamp(90px,10.5vh,136px)!important;object-fit:contain!important;mix-blend-mode:multiply;flex-shrink:0}
.secure-login-brand h1{font-size:clamp(37px,5.3vh,58px)!important;line-height:1.05!important;margin:0!important}
.secure-login-subtitle{font-size:clamp(21px,3.1vh,33px)!important;margin:0!important}
.secure-login-services{font-size:clamp(11px,1.6vh,16px)!important;margin:7px 0 0!important}
.secure-login-card{width:min(100%,560px)!important;padding:clamp(17px,2.4vh,27px) clamp(20px,3vw,40px)!important;box-sizing:border-box;border-radius:22px}
.secure-login-card h2{font-size:clamp(21px,2.7vh,27px)!important}
.secure-login-card>p{margin:3px 0 12px!important}
.secure-login-card .login-field input{padding-top:10px!important;padding-bottom:10px!important}
.secure-login-card .login-submit{margin-top:14px!important}
.secure-login-view>footer{flex-shrink:0;padding:13px 5.5%!important}
.profile-shell{background:#FAF9F6}
.profile-intro img{mix-blend-mode:screen;object-fit:contain}
@media(max-height:740px){.secure-login-page{padding:10px 16px!important;gap:8px!important}.secure-login-brand img{width:74px!important;height:74px!important}.secure-login-brand h1{font-size:36px!important}.secure-login-subtitle{font-size:21px!important}.secure-login-card{padding:13px 24px!important}.secure-login-card .secure-login-note{margin-top:8px!important}.secure-login-view>footer{padding:10px 5%!important}}
@media(max-width:600px){.secure-login-view>.wrap{justify-content:flex-start}.secure-login-brand img{width:86px!important;height:86px!important}.secure-login-services{line-height:1.7}.secure-login-card{width:100%!important}.secure-login-view>footer{font-size:10px!important}}
/* ACMS logo composition v5 */
.secure-login-brand{width:100%;max-width:720px;margin-inline:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;flex-shrink:0}
.secure-login-brand img{display:block!important;width:clamp(128px,17vh,176px)!important;height:clamp(128px,17vh,176px)!important;max-width:42vw;max-height:42vw;object-fit:contain!important;object-position:center!important;margin:0 auto 4px!important;flex-shrink:0}
.secure-login-brand h1{font-size:clamp(40px,6vh,65px)!important;font-weight:800!important;letter-spacing:.015em!important;line-height:1.04!important;margin:0!important;color:#004D4B!important}
.secure-login-brand .secure-login-subtitle{font-size:clamp(22px,3.25vh,35px)!important;font-weight:400!important;line-height:1.17!important;margin:6px 0 0!important;color:#004D4B!important}
.secure-login-brand .secure-login-services{font-size:clamp(12px,1.75vh,17px)!important;font-weight:500;line-height:1.5;margin:13px 0 0!important;color:#004D4B}
.secure-login-brand .secure-login-services span{color:#00A698!important;margin:0 clamp(5px,1.3vw,13px)!important}
.secure-login-page{gap:clamp(13px,2.4vh,24px)!important}
@media(max-height:800px){.secure-login-brand img{width:clamp(95px,14vh,125px)!important;height:clamp(95px,14vh,125px)!important}.secure-login-brand h1{font-size:clamp(36px,5vh,49px)!important}.secure-login-brand .secure-login-subtitle{font-size:clamp(20px,2.8vh,27px)!important}.secure-login-brand .secure-login-services{margin-top:7px!important}.secure-login-page{gap:11px!important}}
@media(max-width:600px){.secure-login-brand img{width:108px!important;height:108px!important}.secure-login-brand h1{font-size:41px!important}.secure-login-brand .secure-login-subtitle{font-size:23px!important}.secure-login-brand .secure-login-services{font-size:12px!important;max-width:360px}.secure-login-page{gap:13px!important}}

/* ACMS logo lockup refinement: image is always fully visible, not stretched or cropped. */
.secure-login-view>.wrap{justify-content:flex-start!important}
.secure-login-page{justify-content:flex-start!important;gap:clamp(13px,2.2vh,24px)!important;padding-top:clamp(22px,4vh,46px)!important;padding-bottom:24px!important}
.secure-login-brand{width:100%;max-width:760px;gap:0;flex-shrink:0;overflow:visible}
.secure-login-brand img{display:block;width:clamp(135px,16vw,180px)!important;height:clamp(125px,15vw,165px)!important;max-height:none!important;object-fit:contain!important;object-position:center center!important;margin:0 auto 8px!important;mix-blend-mode:multiply}
.secure-login-brand h1{font-size:clamp(42px,5vw,64px)!important;letter-spacing:.045em;line-height:1.08!important;margin:0!important;color:#004D4B}
.secure-login-brand .secure-login-subtitle{font-size:clamp(23px,2.7vw,32px)!important;line-height:1.2!important;margin:3px 0 0!important;color:#004D4B}
.secure-login-brand .secure-login-services{font-size:clamp(12px,1.5vw,16px)!important;line-height:1.5!important;margin:13px 0 0!important;color:#004D4B}
.secure-login-card{flex-shrink:0}
@media(max-height:850px){.secure-login-page{padding-top:16px!important;gap:12px!important}.secure-login-brand img{width:110px!important;height:105px!important;margin-bottom:4px!important}.secure-login-brand h1{font-size:43px!important}.secure-login-brand .secure-login-subtitle{font-size:24px!important}.secure-login-brand .secure-login-services{margin-top:6px!important}}
@media(max-width:600px){.secure-login-page{padding-top:18px!important}.secure-login-brand img{width:112px!important;height:105px!important}.secure-login-brand h1{font-size:39px!important}.secure-login-brand .secure-login-subtitle{font-size:21px!important}.secure-login-brand .secure-login-services{font-size:11px!important}}

/* Remove the rectangular white JPG canvas around the original triangle.
   Keep the triangle's internal white negative-space geometry intact. */
.secure-login-brand img,
.profile-intro img,
.side-brand img,
.top .brand img {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ACMS refinement: show more of the original pūhoro without altering artwork. */
body.secure-login-view::before,body:not(.secure-login-view)::before{
  background-size:contain!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
.secure-login-brand h1{
  font-weight:900!important;
  letter-spacing:.035em!important;
}
.secure-login-brand .secure-login-subtitle{
  font-weight:800!important;
}
.secure-login-brand .secure-login-services{
  font-weight:700!important;
}

/* Transparent case-management SVG needs no JPG background workaround. */
.secure-login-brand img,.profile-intro img,.side-brand img,.top .brand img{
  mix-blend-mode:normal!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
  background:transparent!important;
}

/* Extend the original pūhoro across the viewport without enlarging the artwork.
   Fixed-size repeated panels preserve its existing scale and proportions. */
body.secure-login-view::before,body:not(.secure-login-view)::before{
  background-size:600px auto!important;
  background-repeat:repeat-x!important;
  background-position:center center!important;
}

/* Screenshot repair: eliminate obvious wallpaper seams and overpowering pūhoro. */
body.secure-login-view::before,body:not(.secure-login-view)::before{
 background-size:min(95vw,1100px) auto!important;
 background-repeat:no-repeat!important;
 background-position:center center!important;
 opacity:.035!important;
}
.secure-login-brand img{min-width:105px;min-height:105px}

/* Screenshot correction: one centred original pūhoro, no visible tile seams. */
body.secure-login-view::before,body:not(.secure-login-view)::before{
 background-size:min(92vw,1100px) auto!important;
 background-repeat:no-repeat!important;
 background-position:center center!important;
 opacity:.035!important;
}
/* Original JPG fallback until transparent recolour is verified. */
.secure-login-brand img,.profile-intro img,.side-brand img,.top .brand img{
 clip-path:polygon(50% 0%,100% 100%,0% 100%)!important;
 -webkit-clip-path:polygon(50% 0%,100% 100%,0% 100%)!important;
 mix-blend-mode:multiply!important;
}

/* ACMS approved login composition: keep existing functionality, fix scale and alignment. */
body.secure-login-view::before{
 background-size:cover!important;
 background-position:center center!important;
 background-repeat:no-repeat!important;
 opacity:.025!important;
}
.secure-login-view>.wrap{justify-content:flex-start!important}
.secure-login-page{
 padding:clamp(20px,3vh,35px) 16px 25px!important;
 gap:clamp(17px,2.5vh,25px)!important;
 align-items:center!important;
 justify-content:flex-start!important;
}
.secure-login-brand{max-width:780px!important;text-align:center!important}
.secure-login-brand img{
 display:block!important;
 width:clamp(210px,25.2vh,252px)!important;
 height:clamp(198px,24vh,246px)!important;
 min-width:0!important;min-height:0!important;
 margin:0 auto 4px!important;
 object-fit:contain!important;
 object-position:center!important;
}
.secure-login-brand h1{font-size:clamp(48px,6vh,67px)!important;font-weight:900!important;line-height:1.06!important;letter-spacing:.015em!important}
.secure-login-brand .secure-login-subtitle{font-size:clamp(25px,3.5vh,36px)!important;font-weight:500!important;margin:1px 0 0!important}
.secure-login-brand .secure-login-services{font-size:clamp(13px,1.85vh,18px)!important;font-weight:500!important;margin:13px 0 0!important}
.secure-login-card{
 width:min(100%,510px)!important;
 padding:18px clamp(22px,3vw,36px) 20px!important;
 border-radius:24px!important;
 box-shadow:0 14px 34px rgba(0,77,75,.15)!important;
}
.secure-login-card h2{display:flex;align-items:center;justify-content:center;gap:12px;font-size:26px!important}
.login-lock{color:#00A698;font-size:28px;line-height:1}
.secure-login-card .login-field{border-radius:15px!important}
.secure-login-card .login-field input{font-size:17px!important}
.secure-login-card .field-icon{font-size:22px!important}
.secure-login-card .login-submit{border-radius:13px!important}
@media(max-height:850px){
 .secure-login-page{padding-top:14px!important;gap:12px!important}
 .secure-login-brand img{width:174px!important;height:168px!important}
 .secure-login-brand h1{font-size:48px!important}
 .secure-login-brand .secure-login-subtitle{font-size:27px!important}
 .secure-login-brand .secure-login-services{margin-top:8px!important}
 .secure-login-card{padding-top:14px!important;padding-bottom:14px!important}
}
@media(max-width:600px){
 .secure-login-page{padding-top:18px!important}
 .secure-login-brand img{width:150px!important;height:145px!important}
 .secure-login-brand h1{font-size:42px!important}
 .secure-login-brand .secure-login-subtitle{font-size:23px!important}
 .secure-login-brand .secure-login-services{font-size:12px!important;line-height:1.7!important}
 .secure-login-card{padding:16px 20px!important}
}

/* ACMS original-geometry SVG is transparent: no clipping or colour filters. */
.secure-login-brand img,.profile-intro img,.side-brand img,.top .brand img{
 clip-path:none!important;-webkit-clip-path:none!important;
 mix-blend-mode:normal!important;filter:none!important;
 object-fit:contain!important;object-position:center!important;
 background:transparent!important;border:0!important;
 box-shadow:none!important;
}

/* ACMS approved reference: one full-width, softly visible original pūhoro.
   Stretch its display across the viewport instead of zooming/cropping. */
body.secure-login-view::before{
 background-image:url('/static/puhoro-original.jpg')!important;
 background-size:100% 100%!important;
 background-position:center!important;
 background-repeat:no-repeat!important;
 opacity:.075!important;
}
/* Keep the original Angitū geometric lockup centred at all widths. */
.secure-login-brand img{
 display:block!important;
 margin-left:auto!important;
 margin-right:auto!important;
 object-fit:contain!important;
 object-position:center center!important;
}

/* ACMS login Soft Mist background — preserve original pūhoro overlay at 5%. */
html:has(body.secure-login-view),body.secure-login-view,
body.secure-login-view>.wrap,body.secure-login-view .secure-login-page{
 background-color:#EDF4F3!important;
}
body.secure-login-view{
 background-image:none!important;
}
body.secure-login-view::before{
 background-color:transparent!important;
}

/* Approved ACMS pūhoro ink: Deep Charcoal #102F30 over Soft Mist #EDF4F3.
   Screen blend maps black artwork lines to charcoal and white paper to white;
   opacity keeps the watermark unobtrusive. Original artwork is unchanged. */
body.secure-login-view::before{
 background-image:url('/static/puhoro-original.jpg')!important;
 background-color:#102F30!important;
 background-blend-mode:screen!important;
 background-repeat:no-repeat!important;
 background-position:center!important;
 background-size:100% 100%!important;
 opacity:.12!important;
}

/* Approved ACMS pūhoro: Deep Charcoal #102F30 linework on Soft Mist.
   Preserve the supplied original artwork; colour it only at display time. */
body.secure-login-view::before{
 background-color:transparent!important;
 background-image:linear-gradient(#102F30,#102F30),url('/static/puhoro-original.jpg')!important;
 background-blend-mode:screen!important;
 background-size:100% 100%,100% 100%!important;
 background-position:center,center!important;
 background-repeat:no-repeat,no-repeat!important;
 opacity:.15!important;
}

/* FIX: the original JPG is black ink on white paper.
   Screen blending erased the ink; negative z-index hid the layer.
   Multiply makes the white paper disappear against Soft Mist and
   leaves charcoal-toned linework visible without changing the source. */
body.secure-login-view{isolation:isolate!important;background:#EDF4F3!important}
body.secure-login-view::before{
 content:""!important;
 position:fixed!important;inset:0!important;
 z-index:0!important;
 pointer-events:none!important;
 background-color:transparent!important;
 background-image:url('/static/puhoro-original.jpg')!important;
 background-blend-mode:normal!important;
 background-repeat:no-repeat!important;
 background-position:center center!important;
 background-size:100% 100%!important;
 mix-blend-mode:multiply!important;
 opacity:.32!important;
}
body.secure-login-view>.wrap,
body.secure-login-view>footer,
body.secure-login-view>.footer{
 position:relative!important;z-index:1!important;
}

/* Root-cause repair: .wrap and .secure-login-page have opaque Soft Mist
   backgrounds that painted OVER the body::before watermark. Put the original
   pūhoro in the login content layer, above those backgrounds and below UI. */
body.secure-login-view::before{content:none!important;display:none!important}
body.secure-login-view>.wrap{
 position:relative!important;isolation:isolate!important;
 background:#EDF4F3!important;
}
body.secure-login-view>.wrap::before{
 content:""!important;
 display:block!important;
 position:absolute!important;
 inset:0!important;
 z-index:0!important;
 pointer-events:none!important;
 background:url('/static/puhoro-original.jpg') center center / 100% 100% no-repeat!important;
 mix-blend-mode:multiply!important;
 opacity:.5!important;
}
body.secure-login-view .secure-login-page{
 position:relative!important;z-index:1!important;
 background:transparent!important;
}

/* Login pūhoro finishing: extend past the bottom edge so no Soft Mist strip
   shows; fade the unchanged original artwork gently into Soft Mist. */
body.secure-login-view>.wrap{overflow:hidden!important}
body.secure-login-view>.wrap::before{
 top:0!important;
 right:0!important;
 bottom:-24px!important;
 left:0!important;
 background-position:center bottom!important;
 background-size:100% 100%!important;
 opacity:.025!important;
 mix-blend-mode:multiply!important;
}

/* ACMS login refinement: compact panel, stronger brand hierarchy and breathing room.
   Subtitle uses #006E6A; preserve Soft Mist and 5% pūhoro. */
body.secure-login-view .secure-login-brand .secure-login-subtitle{
 color:#006E6A!important;
 -webkit-text-stroke:0 transparent;
 text-shadow:none!important;
}
body.secure-login-view .secure-login-page{gap:clamp(18px,2.5vh,25px)!important}
body.secure-login-view .secure-login-card{
 padding-top:15px!important;
 padding-bottom:17px!important;
}
body.secure-login-view .secure-login-card>p{margin-bottom:9px!important}
body.secure-login-view .secure-login-card form label{margin-top:7px!important}
body.secure-login-view .secure-login-card .login-submit{margin-top:12px!important}
body.secure-login-view .secure-login-card .secure-login-note{margin-top:10px!important}
@media(max-width:600px){
 body.secure-login-view .secure-login-page{gap:16px!important}
 body.secure-login-view .secure-login-card{padding:15px 20px!important}
}

/* Small laptop safeguard: retain legible branding without crowding short screens. */
@media(max-height:650px){body.secure-login-view .secure-login-brand img{width:145px!important;height:140px!important}}

/* ACMS login viewport fit: override accumulated legacy height/spacing rules.
   Keep all controls and footer visible on standard desktop/laptop viewports.
   On exceptionally short screens allow natural scrolling instead of clipping controls. */
html:has(body.secure-login-view){height:100%;overflow:hidden}
body.secure-login-view{
 height:100dvh!important;min-height:0!important;
 overflow:hidden!important;display:flex!important;flex-direction:column!important;
}
body.secure-login-view>.wrap{
 flex:1 1 auto!important;min-height:0!important;
 justify-content:center!important;overflow:hidden!important;
}
body.secure-login-view .secure-login-page{
 flex:0 1 auto!important;min-height:0!important;
 padding:8px 16px 10px!important;
 gap:clamp(8px,1.4vh,13px)!important;
 justify-content:center!important;
}
body.secure-login-view .secure-login-brand img{
 width:clamp(155px,22vh,210px)!important;
 height:clamp(150px,21.5vh,205px)!important;
 margin:0 auto 0!important;
}
body.secure-login-view .secure-login-brand h1{font-size:clamp(40px,5.5vh,61px)!important}
body.secure-login-view .secure-login-brand .secure-login-subtitle{font-size:clamp(22px,3vh,31px)!important;margin:0!important}
body.secure-login-view .secure-login-brand .secure-login-services{font-size:clamp(11px,1.55vh,15px)!important;margin:6px 0 0!important}
body.secure-login-view .secure-login-card{
 width:min(100%,510px)!important;
 padding:12px clamp(20px,3vw,34px) 13px!important;
}
body.secure-login-view .secure-login-card h2{font-size:clamp(22px,2.8vh,26px)!important}
body.secure-login-view .secure-login-card>p{margin:2px 0 6px!important}
body.secure-login-view .secure-login-card form label{margin:5px 0 3px!important}
body.secure-login-view .secure-login-card .login-field input{padding-top:8px!important;padding-bottom:8px!important}
body.secure-login-view .secure-login-card .login-submit{margin-top:9px!important}
body.secure-login-view .secure-login-card .secure-login-note{margin-top:8px!important}
body.secure-login-view .secure-login-demo{margin-top:7px!important}
body.secure-login-view>footer{flex:0 0 auto!important;padding:9px 5.5%!important}
@media(max-height:760px){
 body.secure-login-view .secure-login-brand img{width:clamp(160px,22vh,190px)!important;height:clamp(155px,21.5vh,185px)!important}
 body.secure-login-view .secure-login-brand h1{font-size:clamp(34px,5vh,46px)!important}
 body.secure-login-view .secure-login-brand .secure-login-subtitle{font-size:clamp(19px,2.8vh,25px)!important}
 body.secure-login-view .secure-login-page{gap:5px!important;padding:4px 12px!important}
}
@media(max-width:600px){
 body.secure-login-view .secure-login-brand img{width:clamp(125px,20vh,160px)!important;height:clamp(120px,19.5vh,155px)!important}
 body.secure-login-view .secure-login-brand .secure-login-services{font-size:11px!important}
 body.secure-login-view .secure-login-card{padding:11px 16px!important}
}
@media(max-height:600px){
 html:has(body.secure-login-view){height:auto;overflow:auto}
 body.secure-login-view{height:auto!important;min-height:100dvh!important;overflow:visible!important}
 body.secure-login-view>.wrap{overflow:visible!important}
}

/* Login finishing v32: 2.5% original pūhoro and more separation before panel.
   Reallocate existing spacing rather than increase total height. */
body.secure-login-view .secure-login-brand .secure-login-services{margin:4px 0 0!important}
body.secure-login-view .secure-login-page{gap:clamp(16px,2.2vh,21px)!important;padding-top:4px!important;padding-bottom:4px!important}
@media(max-height:760px){body.secure-login-view .secure-login-page{gap:12px!important;padding-top:2px!important;padding-bottom:2px!important}}
@media(max-width:600px){body.secure-login-view .secure-login-page{gap:12px!important}}

/* v33 — typography-only refinement. Preserve logo, panel, viewport fit and pūhoro. */
body.secure-login-view .secure-login-brand .secure-login-subtitle{
 font-weight:400!important;
 margin-top:4px!important;
}
body.secure-login-view .secure-login-brand .secure-login-services{
 font-size:clamp(12px,1.72vh,16.5px)!important;
 font-weight:500!important;
 letter-spacing:.005em!important;
 line-height:1.35!important;
 margin-top:6px!important;
}
body.secure-login-view .secure-login-brand .secure-login-services span{
 margin-left:clamp(7px,1.1vw,12px)!important;
 margin-right:clamp(7px,1.1vw,12px)!important;
}
@media(max-width:600px){
 body.secure-login-view .secure-login-brand .secure-login-services{font-size:11.5px!important;line-height:1.4!important}
 body.secure-login-view .secure-login-brand .secure-login-services span{margin-left:4px!important;margin-right:4px!important}
}

/* ACMS Platinum Manager dashboard: APPROVED colour blocks preserved.
   Scope: sidebar identity, original pūhoro background and panel legibility ONLY.
   Do not recolour statistic cards, finance panel, alert rows or quick action tiles. */
body.dashboard-view{background:#EDF4F3!important;background-image:none!important}
body.dashboard-view::before{content:none!important;display:none!important}
body.dashboard-view .workspace-main{position:relative;isolation:isolate;background:#EDF4F3!important}
body.dashboard-view .workspace-main::before{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
 background:url('/static/puhoro-original.jpg') center top / 100% auto repeat-y;
 opacity:.025;
}
/* Brand identity — use approved logo geometry and login-style typography. */
body.dashboard-view .workspace-sidebar{background:#004D4B!important}
body.dashboard-view .side-brand{align-items:center;gap:14px;padding:14px 10px 10px}
body.dashboard-view .side-brand img{
 display:block;flex:0 0 auto;width:70px;height:70px;
 padding:0!important;background:transparent!important;object-fit:contain;
 clip-path:none!important;-webkit-clip-path:none!important;mix-blend-mode:normal!important;
}
body.dashboard-view .side-brand>div{min-width:0}
body.dashboard-view .side-brand strong{
 display:block;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
 font-size:clamp(23px,2vw,28px)!important;font-weight:900!important;
 letter-spacing:.035em!important;line-height:1.1;color:#FAF9F6;
}
body.dashboard-view .side-brand span{display:block;font-size:12px;font-weight:500;line-height:1.5;color:#D7F0EE}
body.dashboard-view .side-caption{color:#D7F0EE;border-bottom-color:#ffffff30}
body.dashboard-view .side-links a{transition:background-color .15s ease,color .15s ease}
body.dashboard-view .side-links a:focus-visible{outline:2px solid #00A698;outline-offset:2px}
/* Panels: consistent framing and readable actions, without changing approved fills. */
body.dashboard-view .workspace-panel{border:1px solid #D7F0EE;box-shadow:0 3px 14px rgba(0,77,75,.07)}
body.dashboard-view .workspace-panel .panel-heading{border-bottom:1px solid #006E6A;gap:12px}
body.dashboard-view .workspace-panel .panel-heading h2{font-weight:750;line-height:1.35}
body.dashboard-view .manager-shell .workspace-panel:not(.finance-panel) .panel-heading a,
body.dashboard-view .manager-shell .workspace-panel:not(.finance-panel) .panel-heading .panel-meta{
 color:#006E6A!important;font-weight:700!important;opacity:1!important;
}
body.dashboard-view .workspace-panel .panel-heading a:hover{text-decoration:underline;text-underline-offset:3px}
body.dashboard-view .workspace-panel .panel-heading a:focus-visible{outline:2px solid #00A698;outline-offset:3px}
body.dashboard-view .workspace-panel .panel-content{line-height:1.55}
body.dashboard-view .workspace-panel .muted{color:#526F70}
@media(max-width:1000px){body.dashboard-view .side-brand img{width:58px;height:58px}body.dashboard-view .side-brand{gap:9px;padding:10px 5px}body.dashboard-view .side-brand strong{font-size:23px!important}}
@media(max-width:680px){body.dashboard-view .side-brand img{width:44px;height:44px}body.dashboard-view .side-brand{padding:5px;gap:10px}body.dashboard-view .side-brand strong{font-size:22px!important}body.dashboard-view .workspace-main::before{background-size:cover}}

/* Keep pūhoro below every dashboard panel and all interactive controls. */
body.dashboard-view .workspace-main>*{position:relative;z-index:1}

/* Sidebar-only pūhoro trial v35 — original image unchanged; approved login unaffected.
   Dashboard content remains clear Soft Mist. All approved tile colours stay as-is. */
body.dashboard-view .workspace-main::before{content:none!important;display:none!important}
body.dashboard-view .workspace-sidebar{
 position:relative;isolation:isolate;background:#004D4B!important;
}
body.dashboard-view .workspace-sidebar::before{
 content:"";display:block;position:absolute;inset:0;z-index:0;
 pointer-events:none;
 background-image:url('/static/puhoro-original.jpg');
 background-position:center top;background-repeat:repeat-y;background-size:100% auto;
 opacity:.05;mix-blend-mode:screen;
}
body.dashboard-view .workspace-sidebar>*{position:relative;z-index:1}

/* v36: restore original triangle contrast and tidy sidebar lockup.
   Logo SVG itself remains unmodified; light badge separates it from dark pūhoro. */
body.dashboard-view .side-brand{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;text-align:center!important;
 gap:9px!important;padding:18px 8px 12px!important;
}
body.dashboard-view .side-brand img{
 display:block!important;width:104px!important;height:94px!important;
 flex:0 0 auto!important;object-fit:contain!important;
 background:#EDF4F3!important;
 border:1px solid #D7F0EE!important;border-radius:16px!important;
 padding:11px!important;box-sizing:border-box!important;
 box-shadow:0 4px 16px rgba(0,0,0,.12)!important;
}
body.dashboard-view .side-brand>div{display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;width:100%!important}
body.dashboard-view .side-brand strong{
 font-size:27px!important;line-height:1.1!important;letter-spacing:.035em!important;
 white-space:nowrap!important;color:#FAF9F6!important;
}
body.dashboard-view .side-brand span{
 font-size:12px!important;line-height:1.35!important;font-weight:600!important;
 color:#D7F0EE!important;max-width:200px!important;
}
body.dashboard-view .side-caption{text-align:center!important;padding-top:7px!important}
@media(max-width:1000px){body.dashboard-view .side-brand img{width:90px!important;height:84px!important}body.dashboard-view .side-brand strong{font-size:24px!important}}
@media(max-width:680px){
 body.dashboard-view .side-brand{flex-direction:row!important;text-align:left!important;justify-content:flex-start!important;padding:7px 5px!important;gap:11px!important}
 body.dashboard-view .side-brand img{width:57px!important;height:54px!important;border-radius:10px!important;padding:6px!important}
 body.dashboard-view .side-brand>div{align-items:flex-start!important;width:auto!important}
 body.dashboard-view .side-brand strong{font-size:21px!important}
 body.dashboard-view .side-brand span{font-size:11px!important}
}


/* v40: Carry the dashboard sidebar through the footer, removing the
   light-coloured strip below it without touching the dashboard layout. */
@media(min-width:681px){
 body.dashboard-view>footer{
  position:relative!important;
  background:linear-gradient(to right,#004D4B 0 270px,#EDF4F3 270px 100%)!important;
  margin-left:0!important;
  padding-left:calc(270px + 25px)!important;
 }
 body.dashboard-view>footer::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:270px;
  pointer-events:none;
  background:#004D4B url('/static/puhoro-original.jpg') center bottom / 100% auto repeat-y;
  opacity:.14;mix-blend-mode:multiply;
 }
}
@media(min-width:681px) and (max-width:1000px){
 body.dashboard-view>footer{
  background:linear-gradient(to right,#004D4B 0 220px,#EDF4F3 220px 100%)!important;
  padding-left:calc(220px + 25px)!important;
 }
 body.dashboard-view>footer::before{width:220px}
}

/* v41 — Official ACMS pūhoro artworks, approved originals (unchanged files).
   These final rules supersede legacy background images and blending rules. */
body.secure-login-view>.wrap::before{
 background-image:url('/static/Desktop_Login_Background1.jpg')!important;
 background-repeat:no-repeat!important;
 background-position:center center!important;
 background-size:100% 100%!important;
 opacity:1!important;
 mix-blend-mode:multiply!important;
}
body.dashboard-view .workspace-sidebar::before{
 background-image:url('/static/Desktop_Sidebar.jpg')!important;
 background-position:center top!important;
 background-repeat:no-repeat!important;
 background-size:100% auto!important;
 opacity:.65!important;
 mix-blend-mode:multiply!important;
}
/* Keep the footer extension solid Deep Teal rather than restarting the
   portrait artwork at the bottom and creating a visible pattern seam. */
@media(min-width:681px){
 body.dashboard-view>footer::before{
  background:#004D4B!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
 }
}

/* v43: Teal colour treatment on the exact official sidebar JPEG.
   CSS-only filter: original image file, geometry, and layout stay unchanged. */
body.dashboard-view .workspace-sidebar::before{
 filter:sepia(1) saturate(3) hue-rotate(125deg)!important;
 opacity:.65!important;
}

/* v44 — Correct white-backed JPEG compositing for official sidebar pūhoro.
   Invert white to black, tint the linework, and screen away black so the
   Deep Teal sidebar remains intact. Never change the original JPEG. */
body.dashboard-view .workspace-sidebar::before{
 background-image:url('/static/Desktop_Sidebar.jpg')!important;
 filter:invert(1) sepia(1) saturate(8) hue-rotate(125deg) brightness(3)!important;
 mix-blend-mode:screen!important;
 opacity:.65!important;
}

/* v45: Continuous official sidebar artwork through the footer boundary.
   No fixed page height: long case lists remain accessible. */
@media(min-width:681px){
 body.dashboard-view .workspace-sidebar::before{
  background-size:100% 100%!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
 }
}

/* v46: Carry the approved teal pūhoro into the footer's sidebar-width strip.
   Original image and dashboard structure remain unchanged. */
@media(min-width:681px){
 body.dashboard-view>footer::before{
  background-color:#004D4B!important;
  background-image:url('/static/Desktop_Sidebar.jpg')!important;
  background-position:center bottom!important;
  background-size:100% auto!important;
  background-repeat:no-repeat!important;
  filter:invert(1) sepia(1) saturate(8) hue-rotate(125deg) brightness(3)!important;
  mix-blend-mode:screen!important;
  opacity:.65!important;
 }
}

/* v47 — ONE continuous official pūhoro from sidebar top to footer bottom.
   The dashboard body spans both regions. Do not render two separate crops. */
@media(min-width:681px){
 body.dashboard-view{position:relative!important;isolation:isolate!important}
 body.dashboard-view::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:0!important;top:0!important;bottom:0!important;
  width:270px!important;
  pointer-events:none!important;
  z-index:4!important;
  background-image:url('/static/Desktop_Sidebar.jpg')!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
  filter:invert(1) sepia(1) saturate(8) hue-rotate(125deg) brightness(3)!important;
  mix-blend-mode:screen!important;
  opacity:.65!important;
 }
 body.dashboard-view .workspace-sidebar::before,
 body.dashboard-view>footer::before{content:none!important;display:none!important}
}
@media(min-width:681px) and (max-width:1000px){
 body.dashboard-view::after{width:220px!important}
}

/* v48: Profile uses the approved v47 continuous sidebar/footer artwork. */
body.profile-view>.top{display:none}
body.profile-view>.wrap{max-width:none;margin:0;padding:0;min-height:100vh}
body.profile-view{background:#EDF4F3;position:relative;isolation:isolate}
body.profile-view>footer{position:relative;background:linear-gradient(to right,#004D4B 0 270px,#EDF4F3 270px 100%);margin:0;padding-left:295px}
body.profile-view .workspace-sidebar{position:relative;isolation:isolate;background:#004D4B!important}
body.profile-view .workspace-sidebar::before{content:none!important;display:none!important}
body.profile-view .side-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:18px 8px 12px}
body.profile-view .side-brand img{width:104px;height:94px;object-fit:contain;background:#EDF4F3;border:1px solid #D7F0EE;border-radius:16px;padding:11px;box-shadow:0 4px 16px #0002}
body.profile-view .side-brand>div{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%}
body.profile-view .side-brand strong{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:27px;letter-spacing:.035em;color:#FAF9F6;white-space:nowrap}
body.profile-view .side-brand span{font-size:12px;color:#D7F0EE}
body.profile-view .side-caption{text-align:center;padding-top:7px}
body.profile-view::after{content:"";display:block;position:absolute;top:0;left:0;bottom:0;width:270px;pointer-events:none;z-index:4;background:url('/static/Desktop_Sidebar.jpg') center top / 100% 100% no-repeat;filter:invert(1) sepia(1) saturate(8) hue-rotate(125deg) brightness(3);mix-blend-mode:screen;opacity:.65}
.profile-workspace-main{padding:24px clamp(18px,2.5vw,42px) 42px}
.profile-welcome{margin-bottom:20px}
.profile-dashboard-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(380px,1.2fr);gap:18px;align-items:stretch}
.profile-summary,.profile-account-card{border-radius:17px;min-width:0;padding:30px;box-shadow:0 8px 26px #102F3010}
.profile-summary{background:#004D4B;color:#FAF9F6;display:flex;flex-direction:column;gap:12px}
.profile-summary-logo{width:66px;height:66px;object-fit:contain;filter:brightness(0) invert(1)}
.profile-summary .eyebrow{color:#D7F0EE}
.profile-summary h2{font-size:clamp(22px,2vw,30px);line-height:1.2;margin:6px 0 0;color:#FAF9F6}
.profile-summary p{margin:0;color:#D7F0EE;font-size:13px}
.profile-summary-details{margin-top:25px;border-top:1px solid #ffffff33}
.profile-summary-details>div{display:flex;flex-direction:column;gap:4px;padding:15px 0;border-bottom:1px solid #ffffff24}
.profile-summary-details small{color:#D7F0EE;font-size:10px;letter-spacing:.12em;font-weight:800}
.profile-summary-details strong{font-size:15px;overflow-wrap:anywhere}
.profile-account-card{background:#FAF9F6;border:1px solid #D7F0EE}
.profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.profile-card-heading h2{font-size:24px;margin:5px 0}
.profile-avatar{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:#004D4B;color:#FAF9F6;font-weight:800}
.profile-helper{font-size:13px;color:#6B7F7E;margin:9px 0 20px}
.profile-field-group{border-top:1px solid #D7F0EE;padding-top:14px;margin-top:14px}
.profile-field-group h3{font-size:13px;color:#004D4B;margin:0 0 10px}
.profile-account-card form label{font-size:12px;margin:10px 0}
.profile-account-card input{padding:10px 12px;margin-top:5px;border-color:#A6BFBA;background:#fff}
.profile-account-card input[readonly]{background:#EDF4F3;color:#555F60}
.profile-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:23px}
.profile-actions .primary{background:#006E6A;min-width:160px}
.profile-actions a{font-size:13px;font-weight:700}
@media(min-width:681px) and (max-width:1000px){body.profile-view::after{width:220px}body.profile-view>footer{background:linear-gradient(to right,#004D4B 0 220px,#EDF4F3 220px 100%);padding-left:245px}.profile-dashboard-grid{grid-template-columns:1fr}.profile-summary{min-height:260px}body.profile-view .side-brand img{width:90px;height:84px}}
@media(max-width:680px){body.profile-view::after{display:none}body.profile-view>footer{background:#EDF4F3;padding-left:25px}.profile-dashboard-grid{grid-template-columns:1fr}.profile-summary,.profile-account-card{padding:22px}.profile-workspace-main{padding:20px 14px 35px}body.profile-view .side-brand{flex-direction:row;text-align:left;justify-content:flex-start;padding:7px 5px;gap:11px}body.profile-view .side-brand img{width:57px;height:54px;padding:6px}body.profile-view .side-brand>div{align-items:flex-start;width:auto}body.profile-view .side-brand strong{font-size:21px}body.profile-view .side-brand span{font-size:11px}}

/* v49 — One canonical sidebar brand specification for all ACMS workspace pages.
   Exact original logo SVG remains unchanged; preserve approved v47 pūhoro. */
body:is(.dashboard-view,.profile-view) .side-brand{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;text-align:center!important;
 gap:9px!important;padding:18px 8px 12px!important;
}
body:is(.dashboard-view,.profile-view) .side-brand img{
 display:block!important;width:104px!important;height:94px!important;
 flex:0 0 auto!important;object-fit:contain!important;
 background:#EDF4F3!important;border:1px solid #D7F0EE!important;
 border-radius:16px!important;padding:11px!important;box-sizing:border-box!important;
 box-shadow:0 4px 16px rgba(0,0,0,.12)!important;
}
body:is(.dashboard-view,.profile-view) .side-brand>div{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 gap:3px!important;width:100%!important;min-width:0!important;
}
body:is(.dashboard-view,.profile-view) .side-brand strong{
 display:block!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
 font-size:27px!important;line-height:1.1!important;letter-spacing:.035em!important;
 font-weight:900!important;white-space:nowrap!important;color:#FAF9F6!important;
}
body:is(.dashboard-view,.profile-view) .side-brand span{
 font-size:12px!important;line-height:1.35!important;font-weight:600!important;color:#D7F0EE!important;
}
@media(min-width:681px) and (max-width:1000px){
 body:is(.dashboard-view,.profile-view) .side-brand img{width:90px!important;height:84px!important}
 body:is(.dashboard-view,.profile-view) .side-brand strong{font-size:24px!important}
}
@media(max-width:680px){
 body:is(.dashboard-view,.profile-view) .side-brand{
  flex-direction:row!important;text-align:left!important;justify-content:flex-start!important;
  padding:7px 5px!important;gap:11px!important;
 }
 body:is(.dashboard-view,.profile-view) .side-brand img{
  width:57px!important;height:54px!important;border-radius:10px!important;padding:6px!important;
 }
 body:is(.dashboard-view,.profile-view) .side-brand>div{align-items:flex-start!important;width:auto!important}
 body:is(.dashboard-view,.profile-view) .side-brand strong{font-size:21px!important}
 body:is(.dashboard-view,.profile-view) .side-brand span{font-size:11px!important}
}

/* v50: Every authenticated workspace route shares the identical sidebar brand.
   Keep the protected v47 one-piece pūhoro overlay untouched. */
body:is(.dashboard-view,.profile-view) .side-brand img{
 width:104px!important;height:94px!important;display:block!important;
 object-fit:contain!important;background:#EDF4F3!important;
 border:1px solid #D7F0EE!important;border-radius:16px!important;
 padding:11px!important;box-sizing:border-box!important;
 filter:none!important;mix-blend-mode:normal!important;opacity:1!important;
}
body:is(.dashboard-view,.profile-view) .side-brand strong{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-weight:900!important}
body.dashboard-view .workspace-tool-main{min-width:0;max-width:none;width:100%;padding:28px clamp(18px,2.5vw,42px) 48px}
body.dashboard-view .workspace-tool-main>.panel,body.dashboard-view .workspace-tool-main>.hero{max-width:100%}
@media(min-width:681px) and (max-width:1000px){body:is(.dashboard-view,.profile-view) .side-brand img{width:90px!important;height:84px!important}}
@media(max-width:680px){body:is(.dashboard-view,.profile-view) .side-brand img{width:57px!important;height:54px!important;padding:6px!important;border-radius:10px!important}}

/* v51: Personal dashboard section ordering, no changes to protected cards or pūhoro. */
#dashboard-custom-grid{display:flex;flex-direction:column;gap:18px;min-width:0}
#dashboard-custom-grid>.dashboard-movable{width:100%;min-width:0;margin-top:0;margin-bottom:0}
.dashboard-customize-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:12px 16px;margin:0 0 16px;border:1px solid #D7F0EE;border-radius:13px;background:#FAF9F6}
.dashboard-customize-toolbar>div:first-child{display:flex;flex-direction:column;gap:2px}
.dashboard-customize-toolbar strong{font-size:14px;color:#004D4B}
.dashboard-customize-toolbar small{font-size:12px;color:#6B7F7E}
.dashboard-layout-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.dashboard-layout-controls button,.dashboard-move-tools button{border:1px solid #006E6A;border-radius:8px;background:#EDF4F3;color:#004D4B;padding:7px 11px;font-size:12px;font-weight:700;cursor:pointer}
.dashboard-layout-controls button:hover,.dashboard-move-tools button:hover{background:#D7F0EE}
#dashboard-layout-status{font-size:11px;color:#006E6A}
.dashboard-movable{position:relative}
.dashboard-move-tools{display:none;position:relative;z-index:5;justify-content:flex-end;gap:5px;padding:6px 8px;background:#D7F0EE;border-radius:8px 8px 0 0}
.dashboard-editing .dashboard-move-tools{display:flex}
.dashboard-editing>.dashboard-movable{outline:2px dashed #00A698;outline-offset:2px;border-radius:10px}
.dashboard-editing>.dashboard-drop-target{outline:3px solid #006E6A}
.dashboard-editing>.dashboard-dragging{opacity:.55}
.dashboard-drag-handle{cursor:grab!important;touch-action:none}
.dashboard-drag-handle:active{cursor:grabbing!important}
@media(max-width:680px){.dashboard-customize-toolbar{align-items:flex-start}.dashboard-layout-controls{width:100%}}

/* v52: Individual tile movement and two-column resize, only in edit mode. */
#dashboard-custom-grid .workspace-stats,#dashboard-custom-grid .workspace-panels{min-width:0}
#dashboard-custom-grid .dashboard-tile{position:relative;min-width:0}
#dashboard-custom-grid .dashboard-tile-tools{display:none;position:relative;z-index:6;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;padding:5px;background:#D7F0EE;border-radius:8px;margin:0 0 8px}
#dashboard-custom-grid.dashboard-editing .dashboard-tile-tools{display:flex}
#dashboard-custom-grid .dashboard-tile-tools button{font:700 11px/1.2 system-ui,sans-serif;border:1px solid #006E6A;border-radius:6px;background:#EDF4F3;color:#004D4B;padding:5px 7px;cursor:pointer}
#dashboard-custom-grid .dashboard-tile-grip{cursor:grab!important}
#dashboard-custom-grid.dashboard-editing .dashboard-tile{outline:1px dashed #00A698;outline-offset:1px}
#dashboard-custom-grid.dashboard-editing .dashboard-tile-drop{outline:3px solid #006E6A}
#dashboard-custom-grid .workspace-stats .dashboard-tile-wide,#dashboard-custom-grid .workspace-panels .dashboard-tile-wide,#dashboard-custom-grid .quick-grid .dashboard-tile-wide{grid-column:span 2!important}
#dashboard-custom-grid .workspace-stats,#dashboard-custom-grid .workspace-panels,#dashboard-custom-grid .quick-grid{align-items:stretch}
@media(max-width:680px){#dashboard-custom-grid .dashboard-tile-wide{grid-column:auto!important}}

/* ACMS v53: navigation controls inside the main content; sidebar and v47 artwork unchanged. */
.acms-page-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:0;position:relative;z-index:2}
.acms-logout-form{margin:0!important;padding:0!important;display:inline-flex}
.acms-back-button,.acms-logout-button{font:700 13px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;border-radius:9px;padding:10px 15px;cursor:pointer;min-height:38px}
.acms-back-button{color:#004D4B;background:#FAF9F6;border:1px solid #B7D5D1}
.acms-logout-button{color:#FAF9F6;background:#004D4B;border:1px solid #004D4B}
.acms-back-button:hover{background:#D7F0EE}
.acms-logout-button:hover{background:#006E6A}
.acms-back-button:focus-visible,.acms-logout-button:focus-visible{outline:3px solid #00A698;outline-offset:2px}
@media(max-width:680px){.acms-page-actions{margin-bottom:12px}.acms-back-button,.acms-logout-button{padding:9px 12px}}

/* v54 — User-controlled dashboard visibility and sidebar shortcuts. */
.acms-settings-panel{margin:0 0 18px;padding:22px;background:#FAF9F6;border:1px solid #D7F0EE;border-radius:15px;box-shadow:0 5px 18px #102F3010}
.acms-settings-panel[hidden],#dashboard-custom-grid .acms-display-hidden{display:none!important}
.acms-settings-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:16px}
.acms-settings-heading h2{margin:0 0 5px;color:#004D4B;font-size:21px}
.acms-settings-heading p{margin:0;font-size:13px;color:#6B7F7E}
.acms-settings-heading button,.acms-settings-footer button{border:1px solid #006E6A;border-radius:8px;background:#EDF4F3;color:#004D4B;font-weight:700;padding:9px 12px;cursor:pointer}
.acms-settings-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.acms-settings-option{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid #D7F0EE;border-radius:10px;background:#EDF4F3}
.acms-settings-option label{font-size:13px;font-weight:700;color:#004D4B}
.acms-settings-option select{width:100%;padding:9px;border:1px solid #6B7F7E;border-radius:7px;background:#FAF9F6;color:#102F30}
.acms-settings-footer{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:#006E6A}
body:is(.dashboard-view,.profile-view) .acms-sidebar-settings-link{display:block;margin:10px 12px;padding:11px 13px;border:1px solid #D7F0EE66;border-radius:9px;color:#FAF9F6;text-decoration:none;font-weight:700;font-size:13px}
body:is(.dashboard-view,.profile-view) .acms-sidebar-settings-link:hover{background:#006E6A}
body:is(.dashboard-view,.profile-view) .acms-personal-links{padding:8px 12px}
.acms-shortcuts-title{color:#D7F0EE;font-size:10px;font-weight:800;letter-spacing:.12em;margin:8px 4px}
.acms-personal-links a{display:block;padding:9px 12px;margin:3px 0;color:#FAF9F6;text-decoration:none;border-radius:8px;font-size:12px;overflow-wrap:anywhere}
.acms-personal-links a:hover{background:#006E6A}

/* v55: Existing case register accessed from dashboard tiles; no bottom-of-page table. */
.acms-case-dialog{position:fixed;inset:0;margin:auto;width:min(1080px,calc(100vw - 36px));max-width:1080px;max-height:min(85vh,900px);overflow:auto;box-sizing:border-box;border:1px solid #D7F0EE;border-radius:16px;padding:24px;background:#FAF9F6;color:#102F30;box-shadow:0 20px 70px #102F3055;z-index:100}
.acms-case-dialog::backdrop{background:rgba(16,47,48,.65)}
.acms-case-dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.acms-case-dialog-top h2{margin:4px 0 5px;color:#004D4B;font-size:24px}
.acms-case-dialog-top p{margin:0;color:#6B7F7E;font-size:13px}
.acms-case-close{padding:9px 13px;border:1px solid #006E6A;border-radius:8px;background:#004D4B;color:#FAF9F6;cursor:pointer;font-weight:700;white-space:nowrap}
.acms-case-register-body .panel-heading{margin:0 0 14px}
.acms-case-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.acms-case-filter>label:first-child{font-size:12px;font-weight:700;color:#004D4B}
.acms-case-filter input[type=search]{flex:1;min-width:180px;max-width:420px;padding:10px 12px;border:1px solid #6B7F7E;border-radius:8px;background:#EDF4F3}
.acms-case-filter>label:last-child{display:flex;align-items:center;gap:5px;font-size:12px;color:#004D4B}
.acms-case-register-body tbody tr[hidden]{display:none!important}
@media(max-width:680px){.acms-case-dialog{width:calc(100vw - 16px);padding:14px;max-height:92vh}.acms-case-dialog-top h2{font-size:20px}.acms-case-dialog-top{gap:8px}}

/* v57: Personal sidebar items share the exact native sidebar navigation layout. */
.workspace-sidebar .side-links .acms-personal-links{display:contents!important;padding:0!important;margin:0!important}
.workspace-sidebar .side-links .acms-personal-links>a{display:flex!important;align-items:center;gap:15px;margin:0!important;padding:11px 15px!important;border:0!important;border-radius:10px!important;background:transparent;color:#FAF9F6;font-size:14px;font-weight:600;text-decoration:none}
.workspace-sidebar .side-links .acms-personal-links>a:hover{background:#006E6A}
.workspace-sidebar .side-links .acms-personal-links>a span{font:inherit}

@media(max-width:1000px){.workspace-sidebar .side-links .acms-personal-links>a{padding:10px!important;font-size:12px}}
@media(max-width:680px){.workspace-sidebar .side-links .acms-personal-links>a{flex:none;white-space:nowrap;padding:9px 11px!important;font-size:11px}}

/* v58: Service Performance tiles open full registers; no duplicate bottom panels. */
.acms-service-dialog .acms-dialog-dismiss{float:right;position:sticky;top:0;z-index:2;background:#004D4B;color:#FAF9F6;border:1px solid #006E6A;border-radius:8px;padding:9px 13px;font-weight:700;cursor:pointer}
.acms-service-dialog .panel-heading{clear:both;padding-top:10px}
.acms-service-dialog .tablewrap{max-width:100%;overflow:auto}

/* v59 — Role-aware add controls use existing server-side creation workflows. */
.acms-add-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:11px 13px;margin:0 0 15px;border:1px solid #D7F0EE;border-radius:12px;background:#FAF9F6}
.acms-add-toolbar>strong{font-size:13px;color:#004D4B;margin-right:5px}
.acms-add-link{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid #006E6A;border-radius:8px;color:#004D4B;background:#EDF4F3;text-decoration:none;font-weight:700;font-size:12px}
.acms-add-link:hover,.acms-add-link:focus-visible{background:#D7F0EE;outline-color:#00A698}

/* v64: document portability and demo-only role navigation */
.acms-document-transfer{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:16px;padding:12px;border:1px solid #D7F0EE;border-radius:10px;background:#EDF4F3}
.acms-document-transfer a,.acms-document-transfer button,.acms-demo-switch button{display:inline-flex;align-items:center;padding:9px 12px;border:1px solid #006E6A;border-radius:8px;background:#FAF9F6;color:#004D4B;font-weight:700;font-size:12px;text-decoration:none;cursor:pointer}
.acms-document-transfer span{font-size:12px;color:#006E6A}
.acms-demo-switch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px 13px;border:1px solid #D7F0EE;border-radius:10px;background:#FAF9F6;color:#004D4B;font-size:12px}
.acms-demo-switch form{margin:0}

/* Platinum public organisation intake */
.acms-public-actions{display:grid;gap:9px;margin:18px 0;padding:16px;border:1px solid #D7F0EE;border-radius:14px;background:#EDF4F3}
.acms-public-actions p{margin:0 0 3px;color:#102F30;font-weight:700}
.acms-public-actions a{display:block;padding:10px 12px;border:1px solid #006E6A;border-radius:9px;color:#004D4B;background:#FAF9F6;text-decoration:none;font-weight:700;text-align:center}
.acms-public-actions a:hover{background:#D7F0EE}
.acms-public-intake{max-width:720px;margin:35px auto 60px}
.acms-intake-heading{text-align:center;margin-bottom:25px}
.acms-intake-heading h1{font-size:clamp(27px,4vw,39px);margin:8px 0;color:#004D4B}
.acms-intake-heading p{color:#6B7F7E;line-height:1.65}
.acms-intake-form{padding:clamp(18px,4vw,34px);border-radius:18px}
.acms-intake-form form{display:grid;gap:15px}
.acms-intake-form label{display:grid;gap:7px;font-weight:700;color:#102F30}
.acms-intake-form input,.acms-intake-form textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #6B7F7E;border-radius:9px;background:#FAF9F6;color:#102F30;font:inherit}
.acms-intake-form textarea{resize:vertical}
.acms-intake-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.acms-enquiry-record{border-bottom:1px solid #D7F0EE;padding:16px 0;overflow-wrap:anywhere}
.acms-enquiry-details{white-space:pre-wrap}
.acms-enquiry-record form{display:flex;gap:8px;flex-wrap:wrap}

/* Platinum v68: unobtrusive public pathways preserve the compact secure login */
.secure-login-card .acms-login-quicklinks{display:flex;justify-content:center;align-items:center;gap:5px 11px;flex-wrap:wrap;margin:16px 0 8px;padding:12px 0 3px;border-top:1px solid rgba(215,240,238,.25);background:transparent;line-height:1.45}
.secure-login-card .acms-login-quicklinks span{flex-basis:100%;text-align:center;font-size:12px;font-weight:600;color:#D7F0EE;opacity:.9}
.secure-login-card .acms-login-quicklinks a{display:inline;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(215,240,238,.45);padding:3px 0;border:0;border-radius:0;background:transparent;color:#FAF9F6;font-size:12px;font-weight:600;white-space:nowrap}
.secure-login-card .acms-login-quicklinks a+a:before{content:'·';display:inline-block;color:#D7F0EE;margin-right:11px;text-decoration:none}
.secure-login-card .acms-login-quicklinks a:hover,.secure-login-card .acms-login-quicklinks a:focus-visible{color:#D7F0EE;text-decoration-color:#D7F0EE}
@media(max-width:460px){.secure-login-card .acms-login-quicklinks{gap:3px 8px}.secure-login-card .acms-login-quicklinks a{font-size:11px}.secure-login-card .acms-login-quicklinks a+a:before{margin-right:8px}}
