:root{--ink:#17212b;--muted:#657486;--line:#e3e8ef;--bg:#f7f8fa;--navy:#14263d;--navy-deep:#0d1c2e;--navy-soft:#203b58;--teal:#177b78;--gold:#bd8d3f;--gold-soft:#f4e8d0;--ivory:#fbfaf7;--white:#fff;--danger:#a33a3a;--success:#17704d;--focus:#236ca1;--shadow-soft:0 10px 30px rgba(13,28,46,.08);--shadow-deep:0 24px 70px rgba(13,28,46,.16)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;background:linear-gradient(180deg,#102a43,#0e2237);color:#dce7f1;padding:24px 16px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:0 10px 30px;color:white}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--gold);color:#102a43;font-weight:800}.brand small{display:block;color:#91a7ba;font-size:10px;margin-top:2px}.sidebar nav{display:grid;gap:5px}.sidebar a,.disabled{display:block;padding:11px 12px;border-radius:8px;color:#c9d7e5;text-decoration:none}.sidebar a:hover{background:#1d3c57;color:white}.nav-label{color:#6f8ba4;font-size:10px;text-transform:uppercase;letter-spacing:.12em;margin:22px 12px 2px}.disabled{color:#617b91}.sidebar-foot{margin-top:auto;border-top:1px solid #24445f;padding:18px 10px 0;display:grid;gap:8px}.sidebar-foot small{color:#9fb1c1;overflow:hidden;text-overflow:ellipsis}.sidebar-foot a{padding:0;color:#fff}.main{flex:1;min-width:0}.topbar{min-height:100px;padding:24px 38px;background:var(--white);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px}.topbar h1{margin:2px 0 0;font-size:25px;letter-spacing:-.02em}.eyebrow{font-size:10px;letter-spacing:.15em;color:var(--teal);font-weight:700}.top-actions{margin-left:auto}.user-chip{background:#eef5f5;color:#286e6a;border-radius:20px;padding:8px 14px;font-size:12px}.branch-picker{margin-left:auto;min-width:190px}.branch-picker label{font-size:10px}.branch-picker select{margin-top:2px;padding:7px 9px}.content{padding:34px 38px;max-width:1400px}.menu{display:none}.grid{display:grid;gap:18px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:0 3px 12px rgba(16,42,67,.035)}.metric span{color:var(--muted);font-size:12px}.metric strong{display:block;font-size:30px;margin:7px 0;color:var(--navy)}.metric small{color:var(--muted)}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-head h2{font-size:16px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 20px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#fbfcfd}td{font-size:13px}.badge{display:inline-block;border-radius:20px;padding:4px 9px;font-size:11px;background:#edf2f5;color:#536474}.badge.active,.badge.trial{background:#e3f3ed;color:#17704d}.badge.suspended,.badge.locked,.badge.inactive{background:#fbe7e7;color:var(--danger)}.btn{display:inline-block;border:0;border-radius:7px;padding:10px 14px;background:var(--navy);color:#fff;text-decoration:none;cursor:pointer;font-weight:600}.btn.secondary{background:#eef2f5;color:var(--navy)}.btn.gold{background:var(--gold);color:var(--navy)}.inline-form{display:inline-flex;margin-left:6px;vertical-align:middle}form{display:grid;gap:15px}.inline-form{gap:0}hr{border:0;border-top:1px solid var(--line);margin:25px 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}label{font-size:12px;color:var(--muted);font-weight:600}input,select,textarea{width:100%;margin-top:6px;border:1px solid #d7dee6;border-radius:7px;padding:11px;background:#fff;color:var(--ink);font:inherit}textarea{min-height:90px}.actions{display:flex;gap:10px;align-items:center}.alert{padding:12px 15px;border-radius:8px;margin-bottom:18px}.alert.success{background:#e6f5ee;color:#176b4a}.alert.error{background:#fbe9e9;color:#903333}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top right,#dcece9,#f6f8fb 46%)}.login-card{width:min(460px,calc(100% - 32px));background:#fff;border:1px solid var(--line);border-radius:16px;padding:34px;box-shadow:0 20px 60px #102a431c}.login-card h1{margin:18px 0 4px}.muted{color:var(--muted)}.empty{padding:30px;text-align:center;color:var(--muted)}@media(max-width:900px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:1fr}.sidebar{position:fixed;z-index:5;inset:0 auto 0 -260px;transition:left .2s}.nav-open .sidebar{left:0}.menu{display:block;border:0;background:none;font-size:22px;color:var(--navy)}.topbar{padding:20px;flex-wrap:wrap}.branch-picker{order:3;margin-left:40px;width:calc(100% - 40px)}.top-actions{display:none}.content{padding:22px}}@media(max-width:600px){.metrics,.form-grid{grid-template-columns:1fr}.topbar h1{font-size:21px}.content{padding:16px}.login-card{padding:25px}.inline-form{margin-left:0;margin-top:5px}}

/* Build 013 management dashboard */
.dashboard-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:22px}.dashboard-hero h2{margin:6px 0 4px;font-size:28px}.dashboard-period{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.dashboard-period label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.dashboard-period input{min-width:145px}.dashboard-metrics{margin-bottom:22px}.dashboard-card{text-decoration:none;color:inherit;transition:transform .15s,box-shadow .15s}.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(17,35,58,.12)}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.dashboard-panel{min-width:0}.attention-list{display:grid;gap:10px}.attention-item{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:10px;border:1px solid var(--line);text-decoration:none;color:inherit}.attention-item:hover{background:#f7fafc}.attention-item p{margin:4px 0 0;color:var(--muted);font-size:13px}.severity-critical{border-color:#e3a5a5;background:#fff6f6}.severity-important{border-color:#e6c58a;background:#fffaf0}.severity-attention{border-color:#d9c98f}.severity-information{border-color:#b8d3e5}.status-badge{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#eef2f6}.quick-actions{display:flex;gap:9px;flex-wrap:wrap}.report-note{color:var(--muted);font-size:12px;line-height:1.55}.dashboard-table{min-width:680px}.task-list{display:grid;gap:1px}.task-list a{display:grid;gap:3px;padding:11px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}.task-list a:last-child{border-bottom:0}.task-list span,.task-list small{color:var(--muted);font-size:12px}.dashboard-trend{display:flex;align-items:flex-end;gap:14px;min-height:150px;padding:8px 4px}.dashboard-trend>div{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.dashboard-trend strong{font-size:11px;color:var(--navy);white-space:nowrap}.trend-bar{height:92px;width:100%;display:flex;align-items:flex-end;justify-content:center;background:linear-gradient(to top,rgba(215,225,234,.3),transparent);border-radius:6px 6px 0 0}.trend-bar i{display:block;width:70%;max-width:38px;background:var(--gold);border-radius:5px 5px 0 0}.activity-feed{display:grid;gap:0}.activity-feed div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid var(--line)}.activity-feed div:last-child{border-bottom:0}.activity-feed span{color:var(--muted);font-size:12px;text-align:right}.dashboard-footnote{margin:6px 0 18px;color:var(--muted);font-size:12px;line-height:1.6}@media(max-width:850px){.dashboard-hero{align-items:stretch;flex-direction:column}.dashboard-grid{grid-template-columns:1fr}.dashboard-period{align-items:flex-end}.dashboard-period label{flex:1}.dashboard-period input{width:100%;min-width:0}}@media(max-width:600px){.dashboard-period{display:grid;grid-template-columns:1fr 1fr}.dashboard-period button{grid-column:1/-1}.dashboard-trend{gap:5px}.dashboard-trend strong{font-size:9px}.activity-feed div{align-items:flex-start;flex-direction:column;gap:4px}.activity-feed span{text-align:left}.dashboard-table{min-width:600px}}

/* Batch 009 Phase 0–1 premium foundation */
:root{color-scheme:light}a{color:var(--teal)}button,input,select,textarea{font:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(35,108,161,.35);outline-offset:2px}.btn{min-height:44px;border-radius:9px;box-shadow:0 2px 5px rgba(13,28,46,.08);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(13,28,46,.14)}.btn-primary{background:var(--navy)}.btn-gold{background:var(--gold);color:var(--navy-deep)}.btn-wide{width:100%;display:flex;align-items:center;justify-content:space-between}.auth-page{margin:0;min-height:100vh;background:var(--ivory);color:var(--ink)}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(340px,46%) 1fr}.auth-visual{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:42px clamp(28px,6vw,88px);color:#f7f4ed;background:radial-gradient(circle at 80% 18%,rgba(189,141,63,.24),transparent 29%),linear-gradient(145deg,var(--navy-deep),var(--navy) 58%,#1c4563)}.auth-page-platform .auth-visual{background:radial-gradient(circle at 20% 72%,rgba(189,141,63,.2),transparent 30%),linear-gradient(145deg,#0b1726,var(--navy) 62%,#183b59)}.auth-visual:after{content:"";position:absolute;width:340px;height:340px;right:-150px;bottom:-120px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 30px rgba(255,255,255,.025),0 0 0 60px rgba(255,255,255,.02)}.auth-brand{position:relative;z-index:1;display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none}.auth-brand strong{display:block;font-size:15px;letter-spacing:.01em}.auth-brand small{display:block;color:#aebdca;font-size:11px;margin-top:2px}.brand-mark-light{background:var(--gold);color:var(--navy-deep)}.auth-visual-copy{position:relative;z-index:1;max-width:480px}.eyebrow-light{color:#d7b879}.auth-visual-copy h1{max-width:480px;margin:14px 0 16px;font-size:clamp(32px,4vw,56px);line-height:1.03;letter-spacing:-.045em}.auth-visual-copy p{max-width:410px;color:#c6d2dc;font-size:16px;line-height:1.7}.auth-trust{display:flex;gap:10px;align-items:center;margin-top:28px;color:#e5edf2;font-size:12px}.trust-icon{display:grid;place-items:center;width:25px;height:25px;border:1px solid rgba(255,255,255,.35);border-radius:50%;color:#e4c98d;font-weight:700}.auth-visual-foot{position:relative;z-index:1;margin:0;color:#91a6b8;font-size:11px;letter-spacing:.04em}.auth-panel{display:grid;place-items:center;padding:40px 24px;background:var(--ivory)}.auth-card{width:min(460px,100%);padding:clamp(26px,4vw,48px);background:rgba(255,255,255,.92);border:1px solid #e7e4dc;border-radius:18px;box-shadow:var(--shadow-deep)}.auth-card-heading{margin-bottom:26px}.auth-kicker{display:block;color:var(--teal);font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.auth-card h2{margin:10px 0 7px;color:var(--navy-deep);font-size:clamp(26px,3vw,34px);letter-spacing:-.035em}.auth-card-heading p{margin:0;color:var(--muted);font-size:14px}.auth-form{gap:20px}.field{display:grid;gap:7px}.field label,.field-label-row label{margin:0;color:var(--navy-deep);font-size:12px;font-weight:750}.field small{color:var(--muted);font-size:11px;font-weight:400}.field-label-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.auth-card input{height:48px;margin:0;border-color:#d9e0e7;border-radius:9px;background:#fff;transition:border .16s,box-shadow .16s}.auth-card input:focus{border-color:var(--focus);box-shadow:0 0 0 4px rgba(35,108,161,.1)}.password-wrap{position:relative}.password-wrap input{padding-right:72px}.password-toggle{position:absolute;right:7px;top:7px;height:34px;padding:0 10px;border:0;border-radius:6px;background:#edf2f5;color:var(--navy);font-size:11px;font-weight:750;cursor:pointer}.password-toggle:hover{background:var(--gold-soft)}.auth-submit{margin-top:3px;padding:0 16px}.auth-alert{display:grid;gap:3px;margin:-7px 0 21px;border-radius:9px;font-size:12px}.auth-alert strong{font-size:12px}.auth-alert span{line-height:1.45}.auth-divider{display:flex;align-items:center;gap:12px;margin:28px 0 16px;color:#9aa6b2;font-size:10px;letter-spacing:.12em;text-transform:uppercase}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--line)}.auth-secondary-link,.setup-link{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;color:var(--navy);font-size:12px;font-weight:700;text-decoration:none}.auth-secondary-link:hover,.setup-link:hover{text-decoration:underline}.setup-link{justify-content:flex-start;color:var(--teal);font-weight:600;font-size:11px;padding-top:3px}.auth-privacy{display:flex;gap:7px;align-items:flex-start;margin:23px 0 0;color:#87939e;font-size:10px;line-height:1.5}.auth-privacy span{color:var(--gold);font-size:16px;line-height:10px}.text-link{font-size:11px;font-weight:600}.disabled-link{color:#9ba6af;text-decoration:none;cursor:not-allowed}.auth-page .alert.success{border:1px solid #b9e1ce}.auth-page .alert.error{border:1px solid #efc7c7}@media(max-width:800px){.auth-shell{grid-template-columns:1fr}.auth-visual{min-height:300px;padding:28px 24px 30px}.auth-visual-copy{margin-top:54px}.auth-visual-copy h1{font-size:38px}.auth-visual-foot{display:none}.auth-panel{padding:24px 16px 40px}.auth-card{box-shadow:var(--shadow-soft)}}@media(max-width:460px){.auth-visual{min-height:255px}.auth-visual-copy{margin-top:35px}.auth-visual-copy h1{font-size:31px}.auth-visual-copy p{font-size:13px;line-height:1.5}.auth-trust{margin-top:16px;font-size:11px}.auth-card{padding:25px 20px}.auth-card h2{font-size:27px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

.recovery-page{background:radial-gradient(circle at 15% 20%,#e9f0ef,transparent 32%),var(--ivory)}.recovery-shell{min-height:100vh;display:grid;place-items:center;padding:30px 18px;position:relative}.recovery-brand{position:absolute;top:32px;left:clamp(20px,5vw,70px);color:var(--navy)}.recovery-brand small{color:var(--muted)}.recovery-card{width:min(500px,100%);padding:48px 42px;background:#fff;border:1px solid #e7e4dc;border-radius:18px;box-shadow:var(--shadow-deep);text-align:center}.recovery-code{display:block;color:var(--gold);font-size:12px;font-weight:800;letter-spacing:.18em;margin-bottom:22px}.recovery-card h1{margin:10px 0;color:var(--navy-deep);font-size:34px;letter-spacing:-.04em}.recovery-card>p{color:var(--muted);line-height:1.65;margin:0 auto 25px;max-width:390px}.recovery-card>.btn{display:inline-flex;gap:18px;align-items:center}.recovery-action{margin:12px 0 0;display:block}.recovery-action .btn{width:100%}@media(max-width:500px){.recovery-brand{top:20px;left:20px}.recovery-card{padding:38px 24px}.recovery-card h1{font-size:29px}}

/* Batch 009 Phase 0–1 premium foundation */
:root{color-scheme:light}a{color:var(--teal)}button,input,select,textarea{font:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(35,108,161,.35);outline-offset:2px}.btn{min-height:44px;border-radius:9px;box-shadow:0 2px 5px rgba(13,28,46,.08);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(13,28,46,.14)}.btn-primary{background:var(--navy)}.btn-gold{background:var(--gold);color:var(--navy-deep)}.btn-wide{width:100%;display:flex;align-items:center;justify-content:space-between}.auth-page{margin:0;min-height:100vh;background:var(--ivory);color:var(--ink)}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(340px,46%) 1fr}.auth-visual{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:42px clamp(28px,6vw,88px);color:#f7f4ed;background:radial-gradient(circle at 80% 18%,rgba(189,141,63,.24),transparent 29%),linear-gradient(145deg,var(--navy-deep),var(--navy) 58%,#1c4563)}.auth-page-platform .auth-visual{background:radial-gradient(circle at 20% 72%,rgba(189,141,63,.2),transparent 30%),linear-gradient(145deg,#0b1726,var(--navy) 62%,#183b59)}.auth-visual:after{content:"";position:absolute;width:340px;height:340px;right:-150px;bottom:-120px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 30px rgba(255,255,255,.025),0 0 0 60px rgba(255,255,255,.02)}.auth-brand{position:relative;z-index:1;display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none}.auth-brand strong{display:block;font-size:15px;letter-spacing:.01em}.auth-brand small{display:block;color:#aebdca;font-size:11px;margin-top:2px}.brand-mark-light{background:var(--gold);color:var(--navy-deep)}.auth-visual-copy{position:relative;z-index:1;max-width:480px}.eyebrow-light{color:#d7b879}.auth-visual-copy h1{max-width:480px;margin:14px 0 16px;font-size:clamp(32px,4vw,56px);line-height:1.03;letter-spacing:-.045em}.auth-visual-copy p{max-width:410px;color:#c6d2dc;font-size:16px;line-height:1.7}.auth-trust{display:flex;gap:10px;align-items:center;margin-top:28px;color:#e5edf2;font-size:12px}.trust-icon{display:grid;place-items:center;width:25px;height:25px;border:1px solid rgba(255,255,255,.35);border-radius:50%;color:#e4c98d;font-weight:700}.auth-visual-foot{position:relative;z-index:1;margin:0;color:#91a6b8;font-size:11px;letter-spacing:.04em}.auth-panel{display:grid;place-items:center;padding:40px 24px;background:var(--ivory)}.auth-card{width:min(460px,100%);padding:clamp(26px,4vw,48px);background:rgba(255,255,255,.92);border:1px solid #e7e4dc;border-radius:18px;box-shadow:var(--shadow-deep)}.auth-card-heading{margin-bottom:26px}.auth-kicker{display:block;color:var(--teal);font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.auth-card h2{margin:10px 0 7px;color:var(--navy-deep);font-size:clamp(26px,3vw,34px);letter-spacing:-.035em}.auth-card-heading p{margin:0;color:var(--muted);font-size:14px}.auth-form{gap:20px}.field{display:grid;gap:7px}.field label,.field-label-row label{margin:0;color:var(--navy-deep);font-size:12px;font-weight:750}.field small{color:var(--muted);font-size:11px;font-weight:400}.field-label-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.auth-card input{height:48px;margin:0;border-color:#d9e0e7;border-radius:9px;background:#fff;transition:border .16s,box-shadow .16s}.auth-card input:focus{border-color:var(--focus);box-shadow:0 0 0 4px rgba(35,108,161,.1)}.password-wrap{position:relative}.password-wrap input{padding-right:72px}.password-toggle{position:absolute;right:7px;top:7px;height:34px;padding:0 10px;border:0;border-radius:6px;background:#edf2f5;color:var(--navy);font-size:11px;font-weight:750;cursor:pointer}.password-toggle:hover{background:var(--gold-soft)}.auth-submit{margin-top:3px;padding:0 16px}.auth-alert{display:grid;gap:3px;margin:-7px 0 21px;border-radius:9px;font-size:12px}.auth-alert strong{font-size:12px}.auth-alert span{line-height:1.45}.auth-divider{display:flex;align-items:center;gap:12px;margin:28px 0 16px;color:#9aa6b2;font-size:10px;letter-spacing:.12em;text-transform:uppercase}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--line)}.auth-secondary-link,.setup-link{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;color:var(--navy);font-size:12px;font-weight:700;text-decoration:none}.auth-secondary-link:hover,.setup-link:hover{text-decoration:underline}.setup-link{justify-content:flex-start;color:var(--teal);font-weight:600;font-size:11px;padding-top:3px}.auth-privacy{display:flex;gap:7px;align-items:flex-start;margin:23px 0 0;color:#87939e;font-size:10px;line-height:1.5}.auth-privacy span{color:var(--gold);font-size:16px;line-height:10px}.text-link{font-size:11px;font-weight:600}.disabled-link{color:#9ba6af;text-decoration:none;cursor:not-allowed}.auth-page .alert.success{border:1px solid #b9e1ce}.auth-page .alert.error{border:1px solid #efc7c7}@media(max-width:800px){.auth-shell{grid-template-columns:1fr}.auth-visual{min-height:300px;padding:28px 24px 30px}.auth-visual-copy{margin-top:54px}.auth-visual-copy h1{font-size:38px}.auth-visual-foot{display:none}.auth-panel{padding:24px 16px 40px}.auth-card{box-shadow:var(--shadow-soft)}}@media(max-width:460px){.auth-visual{min-height:255px}.auth-visual-copy{margin-top:35px}.auth-visual-copy h1{font-size:31px}.auth-visual-copy p{font-size:13px;line-height:1.5}.auth-trust{margin-top:16px;font-size:11px}.auth-card{padding:25px 20px}.auth-card h2{font-size:27px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

.recovery-page{background:radial-gradient(circle at 15% 20%,#e9f0ef,transparent 32%),var(--ivory)}.recovery-shell{min-height:100vh;display:grid;place-items:center;padding:30px 18px;position:relative}.recovery-brand{position:absolute;top:32px;left:clamp(20px,5vw,70px);color:var(--navy)}.recovery-brand small{color:var(--muted)}.recovery-card{width:min(500px,100%);padding:48px 42px;background:#fff;border:1px solid #e7e4dc;border-radius:18px;box-shadow:var(--shadow-deep);text-align:center}.recovery-code{display:block;color:var(--gold);font-size:12px;font-weight:800;letter-spacing:.18em;margin-bottom:22px}.recovery-card h1{margin:10px 0;color:var(--navy-deep);font-size:34px;letter-spacing:-.04em}.recovery-card>p{color:var(--muted);line-height:1.65;margin:0 auto 25px;max-width:390px}.recovery-card>.btn{display:inline-flex;gap:18px;align-items:center}.recovery-action{margin:12px 0 0;display:block}.recovery-action .btn{width:100%}@media(max-width:500px){.recovery-brand{top:20px;left:20px}.recovery-card{padding:38px 24px}.recovery-card h1{font-size:29px}}

/* Batch 009 Phase 2 — premium workspace shell */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.workspace-page{background:#f5f7f9}.app-shell{min-height:100vh}.sidebar{width:292px;flex:0 0 292px;padding:18px 14px 16px;background:linear-gradient(180deg,#102a43 0%,#0c2034 100%);border-right:1px solid rgba(255,255,255,.07);box-shadow:12px 0 35px rgba(13,28,46,.08);transition:width .2s ease,transform .2s ease}.sidebar-top{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 6px 16px}.brand{min-width:0;display:flex;gap:11px;align-items:center;color:#fff;text-decoration:none}.brand-copy{min-width:0}.brand-copy strong,.brand-copy small{display:block}.brand-copy strong{font-size:14px;letter-spacing:.01em}.brand-copy small{margin-top:2px;color:#9db0c1;font-size:10px}.sidebar-collapse{margin-left:auto;display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(255,255,255,.05);color:#d9e4ec;font-size:21px;cursor:pointer}.sidebar-collapse:hover{background:rgba(255,255,255,.12)}.workspace-context{display:grid;gap:4px;padding:15px 12px;margin:0 2px 17px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.045)}.workspace-context strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:13px}.context-kicker,.context-branch{color:#9db0c1;font-size:10px}.context-kicker{text-transform:uppercase;letter-spacing:.13em;color:#d9b879}.workspace-nav{display:grid;gap:18px;overflow:auto;padding:0 2px}.nav-group{display:grid;gap:3px}.nav-label{margin:0 10px 5px;color:#7892a8;font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:750}.nav-item{display:flex!important;align-items:center;gap:11px;padding:10px 11px!important;border:1px solid transparent;border-radius:9px;color:#c9d7e5!important;font-size:12px;font-weight:600;transition:background .15s ease,color .15s ease,border-color .15s ease}.nav-item:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}.nav-item.is-active{border-color:rgba(215,184,121,.22);background:linear-gradient(90deg,rgba(189,141,63,.22),rgba(255,255,255,.06));color:#fff!important}.nav-icon{display:grid;place-items:center;width:20px;color:#d4b578;font-size:16px;font-family:Georgia,serif}.nav-text{min-width:0}.sidebar-bottom{display:grid;gap:12px;margin-top:auto;padding:18px 4px 0}.smart-help-slot{display:flex;align-items:center;gap:9px;padding:10px;border:1px dashed rgba(215,184,121,.3);border-radius:10px;color:#c7d4df}.smart-help-slot strong,.smart-help-slot small{display:block}.smart-help-slot strong{font-size:11px;color:#e6d19f}.smart-help-slot small{margin-top:2px;font-size:10px;color:#8fa5b8}.smart-help-mark{display:grid;place-items:center;width:24px;height:24px;border:1px solid #b98d47;border-radius:50%;color:#e0c58e;font-weight:800}.account-card{display:flex;align-items:center;gap:9px;padding:10px 4px 0;border-top:1px solid rgba(255,255,255,.1)}.account-copy{min-width:0}.account-copy strong,.account-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-copy strong{color:#fff;font-size:11px}.account-copy small{margin-top:2px;color:#9db0c1;font-size:10px}.signout-button{width:100%;min-height:40px;border:1px solid rgba(255,255,255,.13);border-radius:8px;background:rgba(255,255,255,.055);color:#d9e4ec;text-align:left;padding:9px 11px;cursor:pointer;font-size:12px;font-weight:650}.signout-button:hover{background:rgba(255,255,255,.12);color:#fff}.main{min-width:0}.topbar{min-height:82px;padding:16px clamp(20px,3vw,42px);gap:16px;box-shadow:0 1px 0 rgba(13,28,46,.03)}.topbar-heading{min-width:0}.topbar h1{font-size:23px;line-height:1.15}.topbar-context{display:grid;gap:1px;margin-left:auto;padding-left:17px;border-left:1px solid var(--line)}.top-context-label{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.1em}.topbar-context strong{color:var(--navy);font-size:12px}.topbar-profile{display:flex;align-items:center;gap:8px;padding-left:12px}.topbar-profile strong,.topbar-profile small{display:block;white-space:nowrap}.topbar-profile strong{color:var(--navy);font-size:11px}.topbar-profile small{margin-top:1px;color:var(--muted);font-size:10px}.avatar-small{width:30px;height:30px;font-size:11px}.context-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px clamp(20px,3vw,42px);border-bottom:1px solid var(--line);background:#fbfcfd}.branch-context{display:flex;align-items:center;gap:10px;min-width:0}.branch-context small,.branch-context strong{display:block}.branch-context small{color:var(--muted);font-size:10px}.branch-context strong{color:var(--navy);font-size:12px}.context-dot{width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px rgba(23,123,120,.12)}.context-divider{color:#b1bcc6}.branch-picker{margin:0;min-width:210px}.branch-picker label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;white-space:nowrap}.branch-picker select{width:auto;min-width:145px;margin:0;padding:7px 9px;border-radius:7px;font-size:11px}.content{padding:22px clamp(20px,3vw,42px) 42px}.breadcrumbs{display:flex;align-items:center;gap:8px;margin-bottom:18px;color:var(--muted);font-size:11px}.breadcrumbs a{color:var(--teal);text-decoration:none;font-weight:650}.breadcrumb-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb-row .breadcrumbs{margin-bottom:18px}.back-link{color:var(--teal);font-size:11px;font-weight:700;text-decoration:none}.back-link:hover{text-decoration:underline}.menu{display:none}.nav-scrim{display:none}
@media(max-width:1050px){.sidebar{width:254px;flex-basis:254px}.topbar-profile>span:last-child{display:none}.context-bar{align-items:flex-start;flex-direction:column;gap:10px}.branch-picker{width:100%}.branch-picker label{justify-content:space-between}.branch-picker select{flex:1}}
@media(max-width:800px){.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:292px;transform:translateX(-102%);box-shadow:18px 0 45px rgba(13,28,46,.25)}.nav-open .sidebar{transform:translateX(0)}.nav-open .nav-scrim{display:block;position:fixed;z-index:20;inset:0;background:rgba(9,22,36,.45)}.sidebar-collapse{display:none}.menu{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);font-size:19px;cursor:pointer}.topbar{padding:14px 18px;min-height:72px}.topbar-context{display:none}.topbar-profile{margin-left:auto;padding-left:0}.content{padding:18px}.context-bar{padding:11px 18px}.breadcrumb-row{align-items:flex-start;flex-direction:column;gap:0}.breadcrumb-row .breadcrumbs{margin-bottom:8px}}
@media(max-width:480px){.topbar-heading h1{font-size:19px}.topbar-profile{display:none}.context-bar{gap:12px}.branch-context{width:100%;align-items:flex-start}.context-divider{display:none}.branch-picker label{align-items:flex-start;flex-direction:column;gap:5px}.branch-picker select{width:100%}.content{padding:16px 14px 30px}}
@media(min-width:801px){.sidebar-collapsed .sidebar{width:82px;flex-basis:82px}.sidebar-collapsed .brand-copy,.sidebar-collapsed .workspace-context,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-text,.sidebar-collapsed .smart-help-slot div,.sidebar-collapsed .account-copy,.sidebar-collapsed .signout-button{display:none}.sidebar-collapsed .sidebar-top{justify-content:center}.sidebar-collapsed .sidebar-collapse{margin:0}.sidebar-collapsed .nav-item{justify-content:center}.sidebar-collapsed .sidebar-bottom{align-items:center}.sidebar-collapsed .account-card{border-top:0}.sidebar-collapsed .sidebar-collapse{transform:rotate(180deg)}}

/* Batch 009 Phase 3 — role-specific dashboard presentation */
.dashboard-hero{max-width:1500px}.dashboard-hero h2{letter-spacing:-.04em}.dashboard-hero p{max-width:700px}.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.dashboard-card{min-height:132px;display:flex;flex-direction:column;justify-content:center}.dashboard-card strong{font-size:28px}.dashboard-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:18px;margin-bottom:18px}.dashboard-panel{min-width:0}.dashboard-panel .panel-head h2{margin:4px 0 0;font-size:17px}.dashboard-panel .panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.role-banner{margin:0 0 18px;padding:14px 17px;border:1px solid #dcebe9;border-radius:11px;background:linear-gradient(90deg,#f0f8f7,#f8fbfb);color:#286e6a;font-size:12px}.role-banner strong{color:var(--navy)}.role-banner.owner{border-color:#eadfca;background:linear-gradient(90deg,#fff9ef,#fbfaf7)}.role-banner.cashier{border-color:#d9e5ef;background:linear-gradient(90deg,#f2f7fb,#fbfcfd)}.role-banner.claims{border-color:#ead9df;background:linear-gradient(90deg,#fff6f8,#fbfafb)}.role-banner.policy{border-color:#dcebe9}.role-banner.readonly{border-color:#dfe5ea;background:#fafbfc;color:#657486}.role-banner.manager{border-color:#d9e5ef;background:linear-gradient(90deg,#f2f7fb,#fbfcfd)}.role-banner.platform{border-color:#eadfca;background:linear-gradient(90deg,#fff9ef,#fbfaf7)}.dashboard-report-table{margin-bottom:15px}.dashboard-report-table:last-child{margin-bottom:0}.dashboard-report-table h4{margin:0 0 7px;color:var(--navy);font-size:12px}.dashboard-report-table table{font-size:11px}.dashboard-report-table td{padding:8px 6px}.dashboard-activity{margin-top:18px}.platform-split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.platform-stat{padding:15px;border:1px solid var(--line);border-radius:10px}.platform-stat small,.platform-stat strong{display:block}.platform-stat small{color:var(--muted);font-size:11px}.platform-stat strong{margin-top:5px;color:var(--navy);font-size:24px}.smart-help-float{position:fixed;z-index:8;right:24px;bottom:24px;display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px dashed rgba(189,141,63,.62);border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 10px 25px rgba(13,28,46,.12);color:var(--navy)}.smart-help-float>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--gold);font-weight:800}.smart-help-float strong,.smart-help-float small{display:block}.smart-help-float strong{font-size:11px}.smart-help-float small{color:var(--muted);font-size:9px}.dashboard-footnote{max-width:900px;margin-top:22px}.dashboard-report-table .empty{padding:15px}.dashboard-panel .quick-actions{gap:8px}
@media(max-width:1050px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.dashboard-card{min-height:112px}}
@media(max-width:600px){.dashboard-hero{margin-bottom:15px}.dashboard-hero h2{font-size:24px}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-card{min-height:108px;padding:14px}.dashboard-card strong{font-size:21px}.dashboard-grid{gap:10px;margin-bottom:10px}.role-banner{margin-bottom:14px;padding:12px 13px;font-size:11px}.smart-help-float{right:13px;bottom:13px;padding:8px 10px}.smart-help-float small{display:none}.smart-help-float>span{width:23px;height:23px}.dashboard-panel .panel-head{align-items:flex-start}.dashboard-panel .panel-head h2{font-size:15px}.dashboard-report-table{overflow:hidden}.dashboard-report-table .table-wrap{overflow:auto}.dashboard-footnote{font-size:11px}}

/* Batch 009 Phase 4 — operational workspace transformation */
.content>.panel,.content>form.filters,.content>.table-wrap{max-width:1500px}.content>.panel{overflow:hidden}.panel-head{min-height:58px;padding:17px 20px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfcfd)}.panel-head h2,.panel-head h3{letter-spacing:-.025em}.panel>div[style*="padding:20px"],.panel>form{padding:20px!important}.form-grid{gap:15px 18px}.form-grid label{display:grid;gap:7px;color:var(--navy);font-size:11px;font-weight:750}.form-grid label small,.form-grid .hint{color:var(--muted);font-size:11px;font-weight:400;line-height:1.45}.form-grid input,.form-grid select,.form-grid textarea,.filters input,.filters select{min-height:43px;border:1px solid #d5dee6;border-radius:8px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.form-grid textarea{min-height:100px;resize:vertical}.form-grid input:hover,.form-grid select:hover,.form-grid textarea:hover,.filters input:hover,.filters select:hover{border-color:#aabfce}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.filters input:focus,.filters select:focus{border-color:var(--teal);box-shadow:0 0 0 4px rgba(23,123,120,.1);outline:0}.filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-soft)}.filters label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.filters input,.filters select{min-width:150px;min-height:39px;padding:8px 10px}.filters .btn{min-height:39px}.table-wrap{border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-soft);overflow:auto}.table-wrap table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.table-wrap th{position:sticky;top:0;z-index:1;padding:12px 13px;background:#f6f8fa;color:#607386;border-bottom:1px solid #dce4ea;font-size:10px;letter-spacing:.07em;text-align:left;text-transform:uppercase;white-space:nowrap}.table-wrap td{padding:12px 13px;border-bottom:1px solid #edf1f4;color:#304456;vertical-align:middle}.table-wrap tbody tr{transition:background .12s ease}.table-wrap tbody tr:hover{background:#f7fbfb}.table-wrap tbody tr:last-child td{border-bottom:0}.table-wrap td a{font-weight:750;text-decoration:none}.table-wrap td a:hover{text-decoration:underline}.pagination{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.pagination .btn{min-height:36px;padding:7px 11px}.status-badge{border:1px solid #dbe4ea;background:#f3f6f8;color:#506274}.status-badge.status-active,.status-badge.status-confirmed,.status-badge.status-posted,.status-badge.status-approved,.status-badge.status-completed{border-color:#bfe1d1;background:#eefaf3;color:#23734f}.status-badge.status-pending,.status-badge.status-planning,.status-badge.status-in-preparation,.status-badge.status-waiting{border-color:#ecd9aa;background:#fff9e9;color:#876522}.status-badge.status-suspended,.status-badge.status-cancelled,.status-badge.status-void,.status-badge.status-rejected,.status-badge.status-ended{border-color:#efcaca;background:#fff4f4;color:#9b4444}.status-badge.status-archived,.status-badge.status-inactive{background:#f1f3f5;color:#697889}.detail-grid,.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-card,.profile-card{padding:17px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-soft)}.detail-card h3,.profile-card h3{margin:0 0 12px;color:var(--navy);font-size:14px}.detail-list{display:grid;gap:10px;margin:0}.detail-list div{display:flex;justify-content:space-between;gap:18px;padding-bottom:9px;border-bottom:1px solid #edf1f4}.detail-list div:last-child{padding-bottom:0;border-bottom:0}.detail-list dt{color:var(--muted);font-size:11px}.detail-list dd{margin:0;color:var(--navy);font-size:12px;font-weight:700;text-align:right}.timeline{display:grid;gap:0}.timeline-item{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;padding:0 0 17px}.timeline-item:before{content:"";position:absolute;left:7px;top:15px;bottom:0;width:1px;background:#dbe4ea}.timeline-item:last-child{padding-bottom:0}.timeline-item:last-child:before{display:none}.timeline-dot{position:relative;z-index:1;width:15px;height:15px;border:3px solid #fff;border-radius:50%;background:var(--teal);box-shadow:0 0 0 1px var(--teal)}.timeline-item strong{display:block;color:var(--navy);font-size:12px}.timeline-item small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.45}.progress-track{height:8px;overflow:hidden;border-radius:99px;background:#e8eef2}.progress-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--teal),#5bb1a7)}.action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:17px}.action-bar .actions{display:flex;gap:8px;flex-wrap:wrap}.empty{margin:0;padding:30px 18px;border:1px dashed #cbd8e1;border-radius:9px;background:#fbfcfd;color:var(--muted);font-size:12px;text-align:center}.alert{position:relative;padding-right:42px}.alert[data-toast]{animation:phase4-toast-in .2s ease-out}.alert[data-toast] .toast-close{position:absolute;top:8px;right:10px;border:0;background:transparent;color:inherit;font-size:18px;cursor:pointer}.modal-backdrop,.drawer-backdrop{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:18px;background:rgba(9,22,36,.48)}.modal-backdrop[hidden],.drawer-backdrop[hidden]{display:none}.modal-card{width:min(560px,100%);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 22px 65px rgba(13,28,46,.25)}.modal-card header,.modal-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 19px;border-bottom:1px solid var(--line)}.modal-card footer{justify-content:flex-end;border-top:1px solid var(--line);border-bottom:0}.modal-card .modal-body{padding:19px}.modal-close{border:0;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}.drawer-backdrop{place-items:stretch;justify-items:end;padding:0}.drawer-panel{width:min(540px,94vw);height:100%;overflow:auto;padding:22px;background:#fff;box-shadow:-20px 0 50px rgba(13,28,46,.2)}.drawer-panel header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.drawer-panel h2{margin:0;color:var(--navy);font-size:20px}@keyframes phase4-toast-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@media(max-width:700px){.detail-grid,.profile-grid{grid-template-columns:1fr}.panel-head{padding:15px}.panel>div[style*="padding:20px"],.panel>form{padding:15px!important}.filters{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.filters label:first-child{grid-column:1/-1}.filters input,.filters select{min-width:0;width:100%}.filters .btn{width:100%}.table-wrap{border-radius:8px}.table-wrap th,.table-wrap td{padding:10px}.action-bar{align-items:stretch;flex-direction:column}.action-bar .actions{width:100%}.action-bar .btn{flex:1}.modal-backdrop{padding:10px}.drawer-panel{width:94vw}}
@media print{.sidebar,.topbar,.context-bar,.breadcrumbs,.back-link,.filters,.actions,.btn,.smart-help-float,.smart-help-slot{display:none!important}.content{padding:0}.panel,.table-wrap{box-shadow:none;border-color:#ccd4db}.table-wrap th{position:static}.print-only{display:block!important}}
.print-only{display:none}

/* Batch 009 Phase 4B — targeted priority workspace refinements */
body[data-module="members"] .content> .actions:first-child,body[data-module="policies"] .content> .actions:first-child,body[data-module="claims"] .content> .actions:first-child,body[data-module="finance"] .content> .actions:first-child,body[data-module="operations"] .content> .actions:first-child,body[data-module="procurement"] .content> .actions:first-child{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px;padding:4px 2px 14px;border-bottom:1px solid var(--line)}body[data-module="members"] .content> .actions:first-child h2,body[data-module="policies"] .content> .actions:first-child h2,body[data-module="claims"] .content> .actions:first-child h2,body[data-module="finance"] .content> .actions:first-child h2,body[data-module="operations"] .content> .actions:first-child h2,body[data-module="procurement"] .content> .actions:first-child h2{margin:5px 0 0;color:var(--navy);font-size:24px;letter-spacing:-.04em}body[data-module="members"] .content> .actions:first-child .muted,body[data-module="policies"] .content> .actions:first-child .muted,body[data-module="claims"] .content> .actions:first-child .muted,body[data-module="finance"] .content> .actions:first-child .muted{max-width:650px;line-height:1.55}body[data-module="members"] .content> .panel:nth-of-type(2),body[data-module="policies"] .content> .panel,body[data-module="claims"] .content> .panel,body[data-module="finance"] .content> .panel,body[data-module="operations"] .content> .panel,body[data-module="procurement"] .content> .panel{border-radius:13px}body[data-module="members"] .content> .panel .table-wrap{border:0;box-shadow:none}body[data-module="members"] .content> .panel .panel-head{background:var(--q-panel,#fff)}body[data-module="members"] .content> .panel:nth-of-type(1){border-color:#dcebe9}body[data-route="member-view.php"] .content> .grid.two:first-of-type,body[data-route="policy-view.php"] .content> .grid.two:first-of-type,body[data-route="claim-view.php"] .content> .grid.two:first-of-type,body[data-route="supplier-view.php"] .content> .grid.two:first-of-type{align-items:stretch}body[data-route="member-view.php"] .content> .grid.two:first-of-type>.card,body[data-route="policy-view.php"] .content> .grid.two:first-of-type>.card,body[data-route="claim-view.php"] .content> .grid.two:first-of-type>.card,body[data-route="supplier-view.php"] .content> .grid.two:first-of-type>.card{min-height:130px;border-top:3px solid var(--teal)}body[data-route="policy-view.php"] .content> .grid.metrics,body[data-route="payment-view.php"] .content> .grid.metrics,body[data-route="funeral-view.php"] .content> .grid.metrics,body[data-route="supplier-view.php"] .content> .grid.metrics{margin-bottom:18px}body[data-route="policy-view.php"] .content> .panel .panel-head,body[data-route="claim-view.php"] .content> .panel .panel-head,body[data-route="payment-view.php"] .content> .panel .panel-head,body[data-route="funeral-view.php"] .content> .panel .panel-head,body[data-route="supplier-view.php"] .content> .panel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}body[data-route="claim-view.php"] .content> .panel:nth-of-type(2){border-top:3px solid #bd8d3f}body[data-route="payment-create.php"] .content> .panel:nth-of-type(2),body[data-route="payment-view.php"] .content> .panel:nth-of-type(2){border-top:3px solid var(--teal)}body[data-route="funeral-view.php"] .content> .panel{border-left:3px solid var(--teal)}body[data-module="procurement"] .content> .panel .table-wrap{border:0;box-shadow:none}body[data-route="purchase-orders.php"] .content> .panel:nth-of-type(2),body[data-route="supplier-view.php"] .content> .panel:nth-of-type(2){border-top:3px solid var(--gold)}body[data-route="supplier-view.php"] .content> .panel .panel-head,body[data-route="purchase-orders.php"] .content> .panel .panel-head{background:var(--q-panel,#fff)}body[data-route="payment-create.php"] .content> .panel:first-of-type{background:linear-gradient(135deg,#f4fbfa,#fff)}body[data-route="payment-create.php"] .content> .panel:first-of-type .table-wrap{margin-top:4px}body[data-route="payment-view.php"] .content> .grid.two .card{min-height:118px}body[data-route="funeral-view.php"] .content> .grid.two{align-items:stretch}body[data-route="funeral-view.php"] .content> .grid.two>.panel{min-height:180px}@media(max-width:700px){body[data-module] .content> .actions:first-child{align-items:stretch;flex-direction:column;gap:8px}body[data-module] .content> .actions:first-child h2{font-size:21px}body[data-route="member-view.php"] .content> .grid.two:first-of-type>.card,body[data-route="policy-view.php"] .content> .grid.two:first-of-type>.card,body[data-route="claim-view.php"] .content> .grid.two:first-of-type>.card,body[data-route="supplier-view.php"] .content> .grid.two:first-of-type>.card{min-height:0}body[data-route="funeral-view.php"] .content> .grid.two>.panel{min-height:0}}

/* Batch 009 Phase 5 — local Smart Help experience */
.smart-help-float{position:fixed;right:22px;bottom:22px;z-index:35;display:flex;align-items:center;gap:10px;min-width:166px;padding:11px 14px;border:1px solid rgba(255,255,255,.42);border-radius:14px;background:linear-gradient(135deg,#123d56,#177b78);color:#fff;box-shadow:0 12px 28px rgba(12,45,64,.24);cursor:pointer;text-align:left;transition:transform .18s ease,box-shadow .18s ease}.smart-help-float:hover,.smart-help-float:focus-visible{transform:translateY(-3px);box-shadow:0 16px 34px rgba(12,45,64,.3);outline:3px solid rgba(205,160,72,.3);outline-offset:2px}.smart-help-float>span:last-child{display:grid;gap:2px}.smart-help-float strong{font-size:12px}.smart-help-float small{color:rgba(255,255,255,.78);font-size:10px}.smart-help-float>span:first-child{display:grid;place-items:center;width:26px;height:26px;border:1px solid rgba(255,255,255,.55);border-radius:50%;font-weight:800}.smart-help-panel{position:fixed;z-index:60;right:22px;bottom:22px;width:min(430px,calc(100vw - 30px));max-height:min(760px,calc(100vh - 44px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #cfdae2;border-radius:16px;background:#fff;box-shadow:0 24px 75px rgba(13,31,48,.28)}.smart-help-panel[hidden]{display:none}.smart-help-head{display:flex;justify-content:space-between;gap:12px;padding:18px 18px 14px;background:linear-gradient(135deg,#102a43,#177b78);color:#fff}.smart-help-head h2{margin:4px 0 3px;font-size:22px;letter-spacing:-.035em}.smart-help-head p{margin:0;color:rgba(255,255,255,.76);font-size:11px}.smart-help-head .eyebrow{color:#d9b56d}.smart-help-close{align-self:flex-start;width:32px;height:32px;border:1px solid rgba(255,255,255,.5);border-radius:8px;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer}.smart-help-toolbar{display:flex;align-items:flex-end;gap:8px;padding:13px 16px;border-bottom:1px solid var(--line);background:#fbfcfd}.smart-help-toolbar label{display:grid;flex:1;gap:5px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.smart-help-toolbar input{width:100%;min-height:39px;padding:8px 10px;border:1px solid #d5dee6;border-radius:8px}.smart-help-toolbar input:focus{border-color:var(--teal);box-shadow:0 0 0 4px rgba(23,123,120,.1);outline:0}.smart-help-welcome{display:grid;gap:8px;margin:13px 16px 0;padding:13px;border:1px solid #ecd9aa;border-radius:10px;background:#fff9e9;color:#765a21;font-size:12px}.smart-help-welcome>span{color:#876f42;font-size:11px}.smart-help-welcome>div{display:flex;gap:7px;flex-wrap:wrap}.smart-help-list{flex:1;min-height:80px;overflow:auto;padding:12px 16px}.smart-help-topic{display:grid;gap:6px;width:100%;margin-bottom:8px;padding:12px;border:1px solid #e1e8ed;border-radius:10px;background:#fff;color:var(--navy);cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease,transform .15s ease}.smart-help-topic:hover,.smart-help-topic:focus-visible{border-color:#9ccbc6;background:#f4fbfa;transform:translateY(-1px);outline:0}.smart-help-topic strong{font-size:12px}.smart-help-topic small{color:var(--muted);font-size:11px;line-height:1.4}.smart-help-empty{padding:18px 4px;color:var(--muted);font-size:12px;text-align:center}.smart-help-walkthrough{margin:0 16px 12px;padding:14px;border:1px solid #cde4e0;border-radius:10px;background:#f4fbfa}.smart-help-walkthrough[hidden]{display:none}.smart-help-walkthrough h3{margin:0 0 6px;color:var(--navy);font-size:15px}.smart-help-walkthrough p{margin:0 0 10px;color:#526777;font-size:11px;line-height:1.5}.smart-help-walkthrough ol{margin:0 0 12px;padding-left:20px;color:#304456;font-size:11px;line-height:1.65}.smart-help-links{display:flex;gap:7px;flex-wrap:wrap}.smart-help-links a{font-size:11px;font-weight:750}.smart-help-foot{display:flex;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid var(--line);background:#fbfcfd}.link-button{padding:3px 0;border:0;background:none;color:var(--teal);font-size:10px;font-weight:750;cursor:pointer}.link-button:hover{text-decoration:underline}.smart-help-slot{display:flex;align-items:center;gap:9px;width:100%;padding:10px 11px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.06);color:#fff;cursor:pointer;text-align:left}.smart-help-slot:hover,.smart-help-slot:focus-visible{background:rgba(255,255,255,.12);outline:3px solid rgba(205,160,72,.3);outline-offset:2px}.smart-help-slot>span:last-child{display:grid;gap:2px}.smart-help-slot small{color:rgba(255,255,255,.68);font-size:10px}.smart-help-slot .smart-help-mark{display:grid;place-items:center;width:24px;height:24px;border:1px solid rgba(255,255,255,.5);border-radius:50%;font-weight:800}@media(max-width:700px){.smart-help-float{right:14px;bottom:14px;min-width:0;padding:10px 12px;border-radius:12px}.smart-help-float>span:last-child{display:none}.smart-help-panel{right:10px;bottom:10px;width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:14px}.smart-help-toolbar{align-items:stretch;flex-direction:column}.smart-help-toolbar .btn{align-self:flex-end}.smart-help-foot{flex-wrap:wrap}.smart-help-foot .link-button{flex:1;text-align:center}}
.smart-help-facts{display:grid;gap:8px;max-height:230px;overflow:auto;padding:11px 16px;border-bottom:1px solid var(--line);background:#f8fafb}.smart-help-facts[hidden]{display:none}.smart-help-explanation{display:grid;gap:4px;padding:10px 11px;border:1px solid #cde4e0;border-radius:9px;background:#f4fbfa}.smart-help-explanation.is-suggestion{border-color:#ecd9aa;background:#fff9e9}.smart-help-explanation-label{color:var(--teal);font-size:9px;font-weight:800;letter-spacing:.08em}.smart-help-explanation.is-suggestion .smart-help-explanation-label{color:#876522}.smart-help-explanation strong{color:var(--navy);font-size:12px}.smart-help-explanation p{margin:0;color:#526777;font-size:10px;line-height:1.45}.smart-help-explanation ul{margin:3px 0 0;padding-left:17px;color:#304456;font-size:10px;line-height:1.5}
/* Explicit branch submission remains usable with strict script policy. */
.branch-picker{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.branch-picker label{flex:1}.branch-picker>button{min-height:34px;padding:7px 10px;font-size:11px}

/* UI30 entry and recovery surfaces */
.auth-page .auth-card,.auth-page .recovery-card{border-radius:22px;box-shadow:0 24px 70px #102a431a}
.auth-page .btn{border-radius:11px;line-height:1.5;white-space:normal}
.auth-page .btn-primary{background:linear-gradient(135deg,#146f76,#104b59);color:#fff}
.auth-page input:focus-visible,.auth-page button:focus-visible,.auth-page a:focus-visible{outline:3px solid #3097a4;outline-offset:3px}
.auth-page :is(input,button){max-width:100%}
.auth-page :is(h1,h2,p){overflow-wrap:anywhere}
@media(max-width:480px){.auth-page .recovery-card,.auth-page .auth-card{border-radius:16px;padding:24px 20px}}
@media(prefers-reduced-motion:reduce){.auth-page *{animation:none!important;transition:none!important}}
