:root{
  --blue:#174a7c;
  --blue2:#0f3459;
  --bg:#eef3f8;
  --line:#cbd7e5;
  --text:#111827;
  --muted:#56657a;
  --ok:#116b38;
  --bad:#b00020;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:Arial,Helvetica,sans-serif;color:var(--text);line-height:1.45}
.hero-wrap,.page-wrap{min-height:100vh;padding:24px;display:flex;justify-content:center;align-items:flex-start}
.hero-wrap{align-items:center}
.page-wrap.narrow{max-width:620px;margin:0 auto}
.card,.hero-card{width:100%;max-width:980px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 10px 25px rgba(15,52,89,.08)}
.hero-card{max-width:620px;text-align:center}
h1{margin:0 0 10px;color:var(--blue);font-size:32px;line-height:1.15}
h2{margin:8px 0 0;color:var(--blue2);font-size:22px}
.lead{font-size:20px;color:var(--muted)}
.logo{max-height:90px;margin-bottom:10px}.logo.small{max-height:70px;margin:0 18px 0 0}.nav-logo{max-height:44px;margin:0}
.form-header{display:flex;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.muted{color:var(--muted);margin:0}
fieldset{border:1px solid var(--line);border-radius:10px;margin:18px 0;padding:16px}legend{font-weight:bold;color:var(--blue);padding:0 8px}
.grid{display:grid;gap:14px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.full{grid-column:1/-1}
label{display:block;font-weight:bold;margin:10px 0 6px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff}textarea{resize:vertical}
.password-field{position:relative;width:100%}.password-field input{padding-right:66px}.password-toggle{position:absolute;top:50%;right:6px;transform:translateY(-50%);margin:0;padding:6px 8px;border-radius:6px;background:transparent;color:var(--blue);font-size:13px;line-height:1}.password-toggle:hover{background:#eaf2ff;color:var(--blue2)}.password-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.required{color:var(--bad);font-weight:bold}
button,.btn{display:inline-block;border:0;border-radius:8px;background:var(--blue);color:white;font-weight:bold;padding:12px 18px;text-decoration:none;cursor:pointer;margin-top:14px}button:hover,.btn:hover{background:var(--blue2)}button:disabled{opacity:.6;cursor:not-allowed}.btn.secondary{background:#56657a;margin-left:8px}.btn.secondary:hover{background:#3d4a5a}
.status{font-weight:bold;margin-top:14px}.status.ok{color:var(--ok)}.status.bad{color:var(--bad)}
.verified-box{background:#f3fbf6;border:1px solid #bfe3cc;border-radius:10px;padding:12px;margin:12px 0;color:#0d542b;font-weight:bold}
.check-row{display:flex;gap:9px;align-items:center;font-weight:normal;line-height:1.35}.check-row>input[type="checkbox"],.check-row>input[type="radio"]{display:block;flex:0 0 16px;width:16px!important;height:16px!important;min-width:16px;min-height:16px;margin:0!important;padding:0!important;align-self:center}
.radio-options{display:flex;gap:18px;margin:6px 0 10px}.radio-options label{display:flex;gap:6px;align-items:center;margin:0;font-weight:normal}.radio-options input{width:auto}
.terms-text{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px}.terms-text p{margin:0 0 10px}.terms-text p:last-child{margin-bottom:0}
.document-upload-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.document-upload-row:last-child{border-bottom:0}.document-upload-row label{margin:0}.upload-results{margin-top:14px}.upload-result{border:1px solid var(--line);border-radius:8px;padding:10px;margin:8px 0;background:#f8fafc}.upload-result.pending{border-color:#b8c7d8;color:var(--blue);background:#f8fbff}.upload-result.ok{border-color:#bfe3cc;color:var(--ok);background:#f3fbf6}.upload-result.bad{border-color:#f3c1c8;color:var(--bad);background:#fff5f6}.document-progress{margin-top:14px}.document-progress-track{height:12px;background:#dde5ef;border-radius:999px;overflow:hidden}.document-progress-fill{height:100%;width:0;background:var(--blue);border-radius:999px;transition:width .25s ease}.document-progress p{margin-top:8px}
.parent-document-target{display:inline-flex;align-items:center;margin:0 0 6px;padding:7px 10px;border:1px solid #9fd8c4;border-radius:999px;background:#edf9f5;color:#075f47;font-weight:700}.parent-document-upload fieldset{margin-top:14px}.parent-document-upload .check-row{margin-top:14px}
.parent-notification-button{position:relative;display:grid;place-items:center;width:42px;min-height:42px;padding:0;background:#eef4fb;color:var(--blue);border:1px solid var(--line)}.parent-notification-badge{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#d7263d;color:#fff;font-size:11px;font-weight:800;box-shadow:0 0 0 2px #fff}.parent-notification-panel{margin:-4px 0 14px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;box-shadow:0 7px 20px rgba(15,52,89,.09)}.parent-notification-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.parent-notification-heading h2,.parent-notification-heading p{margin:0}.parent-notification-list{display:grid;gap:8px}.parent-notification-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:7px;align-items:center}.parent-notification-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;width:100%;margin:0;padding:11px 12px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text)}.parent-notification-item.unread{border-left:4px solid var(--blue);background:#f3f8ff}.parent-notification-item strong,.parent-notification-item span,.parent-notification-item small{display:block}.parent-notification-item span{margin-top:3px;color:var(--muted)}.parent-notification-item small{color:var(--blue);white-space:nowrap}.parent-notification-delete{display:grid;place-items:center;width:32px;min-height:32px;height:32px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:#77899b;font-size:20px;line-height:1}.parent-notification-delete:hover,.parent-notification-delete:focus-visible{border-color:#d7263d;background:#fff1f3;color:#b71932}
.parent-notification-item{grid-template-columns:minmax(0,1fr);gap:0;font-size:10px;line-height:1.35}.parent-notification-item>span{margin-top:0}.parent-notification-item strong{font-size:12px;line-height:1.3}.parent-notification-item>span>span{margin-top:3px;font-size:10px;line-height:1.4}.parent-notification-item small{margin-top:6px;font-size:10px;line-height:1.3;white-space:normal}
.fee-panel{margin-top:18px}.fee-breakdown{border:1px solid var(--line);border-radius:10px;padding:14px;margin:14px 0;background:#f8fafc}.fee-breakdown h2{font-size:18px;margin:0 0 10px}.breakdown-row{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:9px 0}.breakdown-row:first-of-type{border-top:0}.breakdown-row.total{font-size:18px;color:var(--blue);font-weight:bold}.fee-option{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:12px;margin:10px 0;background:#f8fafc;font-weight:normal}.fee-option input{width:auto;margin-top:4px}.fee-option span{display:flex;justify-content:space-between;gap:14px;width:100%;align-items:center}.fee-option small{color:var(--blue);font-weight:bold;white-space:nowrap}.receipt-box{border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:14px;background:#f8fafc}.receipt-box p{margin:8px 0}
.dashboard-card{max-width:1180px}.dashboard-login{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.dashboard-actions{display:flex;justify-content:flex-end;gap:8px;margin:0 0 12px}.dashboard-signout{background:#56657a}.dashboard-signout:hover{background:#3d4a5a}.child-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:14px 0}.child-card{display:block;text-align:left;background:#f8fafc;color:var(--text);border:1px solid var(--line);border-radius:10px;margin:0;padding:12px}.child-list .child-card{position:relative;border-color:hsl(var(--child-hue,207) 54% 70%);background:hsl(var(--child-hue,207) 72% 94%)}.child-list .child-card:hover{border-color:hsl(var(--child-hue,207) 68% 42%);background:hsl(var(--child-hue,207) 76% 90%)}.child-list .child-card.selected{border:2px solid #43d19e;background:hsl(var(--child-hue,207) 64% 34%);box-shadow:0 0 0 3px rgba(67,209,158,.24)}.child-list .child-card.selected::after{content:"✓ Selected";position:absolute;top:8px;right:8px;padding:4px 7px;border-radius:999px;background:#43d19e;color:#071b2c;font-size:9px;font-weight:800;letter-spacing:.02em}.child-list .child-card.selected .child-card-layout{padding-right:72px}.child-list .child-card span{display:block;color:hsl(var(--child-hue,207) 34% 29%);font-weight:normal;margin-top:3px}.child-card-layout{display:grid!important;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;margin:0!important}.child-card-copy{margin:0!important;min-width:0}.child-card-copy strong{display:block;color:hsl(var(--child-hue,207) 54% 17%)}.child-list .child-card.selected .child-card-copy strong,.child-list .child-card.selected .child-card-copy span{color:#fff}.child-passport{position:relative;width:64px;height:74px;margin:0!important;border:1px solid hsl(var(--child-hue,207) 54% 70%);border-radius:8px;overflow:hidden;background:hsl(var(--child-hue,207) 76% 88%);display:grid!important;place-items:center}.child-passport-initials{margin:0!important;color:hsl(var(--child-hue,207) 72% 36%)!important;font-size:18px;font-weight:700!important}.child-passport img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:16px}.panel{border:1px solid var(--line);border-radius:10px;padding:14px;background:#f8fafc}.panel h2{font-size:18px;margin:0 0 12px}.full-panel{grid-column:1/-1}.metric-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:12px}.metric-row div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px}.metric-row strong,.metric-row span{display:block}.metric-row strong{color:var(--blue);font-size:18px}.metric-row span{color:var(--muted);font-size:13px}.activity-list{display:grid;gap:8px}.activity-item{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px}.activity-item strong,.activity-item span,.activity-item small{display:block}.activity-item span{color:var(--muted);margin-top:3px}.activity-item small{color:var(--blue);margin-top:4px}.activity-item label{display:block;margin-top:10px}.activity-item input{max-width:260px}.component-heading{font-weight:700;color:var(--text);margin-top:10px}.component-list{margin:6px 0 0 18px;padding:0;color:var(--muted)}.component-list li{margin:3px 0}
.is-loading{display:inline-flex;align-items:center;justify-content:center;gap:9px}.is-loading::before{content:"";width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:button-spin .75s linear infinite}@keyframes button-spin{to{transform:rotate(360deg)}}
.secondary.is-loading::before,
.workflow-icon-action.is-loading::before,
.compact-action.is-loading::before,
.staff-passkey-button.is-loading::before,
.settings-text-button.is-loading::before {
  border-color: currentColor transparent currentColor currentColor;
}
@media (max-width:720px){.grid.two{grid-template-columns:1fr}.form-header{display:block}.logo.small{margin-bottom:10px}h1{font-size:26px}.card,.hero-card{padding:18px}.hero-wrap,.page-wrap{padding:12px}}

.collapsible-activity summary{color:var(--blue);cursor:pointer;font-weight:700;margin-bottom:10px}
.collapsible-activity[open] summary{margin-bottom:14px}
@media (max-width:820px){.dashboard-grid{grid-template-columns:1fr}}
@media (max-width:520px){.document-upload-row{grid-template-columns:1fr}.fee-option span{display:block}.btn.secondary{margin-left:0;margin-right:6px}}
.admin-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0}.admin-tabs .child-card{font-weight:bold}.admin-table-wrap{overflow:auto;margin:10px 0 18px}.admin-table{width:100%;border-collapse:collapse;background:#fff}.admin-table th,.admin-table td{border:1px solid var(--line);padding:9px;text-align:left;vertical-align:top}.admin-table th{background:#eaf2ff;color:var(--blue)}
.landing-page{min-height:100vh;padding:24px;background:linear-gradient(180deg,#eaf2ff 0,#eef3f8 46%,#fff 100%)}
.landing-nav{max-width:1180px;margin:0 auto 22px;display:flex;justify-content:space-between;align-items:center;gap:18px}
.brand-lockup{display:flex;align-items:center;gap:12px;color:var(--blue2)}
.brand-lockup strong,.brand-lockup span{display:block}.brand-lockup span{font-size:13px;color:var(--muted)}
.nav-actions{display:flex;gap:14px;align-items:center}.nav-actions a{color:var(--blue);font-weight:bold;text-decoration:none}
.landing-hero{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:28px;align-items:stretch;padding:38px 0 28px}
.hero-copy{display:flex;flex-direction:column;justify-content:center;min-height:420px}
.eyebrow{text-transform:uppercase;color:var(--ok);font-size:13px;font-weight:bold;letter-spacing:.08em;margin:0 0 14px}
.hero-copy h1{font-size:54px;max-width:780px;margin-bottom:16px;color:var(--blue2)}
.hero-copy .lead{max-width:720px;margin:0 0 12px;color:#34445a;font-size:20px}
.portal-notice{max-width:720px;border-left:4px solid var(--ok);background:#f3fbf6;padding:12px 14px;color:#0d542b}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.hero-actions .btn{margin-top:0}.hero-actions .btn.secondary{margin-left:0;background:#fff;color:var(--blue);border:1px solid var(--line)}
.hero-service-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:0 18px 38px rgba(15,52,89,.12);display:grid;gap:12px;align-content:center}
.hero-service-panel div{border:1px solid var(--line);border-radius:10px;padding:16px;background:#f8fafc}.hero-service-panel strong,.hero-service-panel span{display:block}.hero-service-panel strong{color:var(--blue);font-size:18px}.hero-service-panel span{color:var(--muted);margin-top:5px}
.service-grid{max-width:1180px;margin:0 auto 30px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.service-tile{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;text-decoration:none;color:var(--text);box-shadow:0 8px 20px rgba(15,52,89,.06)}
.service-tile:hover{border-color:var(--blue);background:#f8fbff}.service-tile strong,.service-tile span{display:block}.service-tile strong{color:var(--blue);font-size:18px}.service-tile span{color:var(--muted);margin-top:6px}
.result-scores{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:8px}.result-scores span{background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:8px}
@media (max-width:860px){.landing-nav{align-items:flex-start}.landing-hero{grid-template-columns:1fr;padding-top:18px}.hero-copy{min-height:auto}.hero-copy h1{font-size:36px}.hero-service-panel{box-shadow:none}.nav-actions{flex-wrap:wrap;justify-content:flex-end}}
@media (max-width:560px){.landing-page{padding:14px}.landing-nav{display:block}.nav-actions{margin-top:12px;justify-content:flex-start}.hero-copy h1{font-size:31px}.hero-actions .btn{width:fit-content;text-align:center}}

#uploadOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
}

#uploadOverlay.show {
  display: flex;
}

.upload-box {
  background: #ffffff;
  max-width: 430px;
  width: 90%;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.upload-bar {
  width: 100%;
  height: 18px;
  background: #dde5ef;
  border-radius: 20px;
  overflow: hidden;
  margin: 20px 0;
}

.upload-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #dde5ef 0%, #198754 45%, #198754 55%, #dde5ef 100%);
  background-size: 200% 100%;
  animation: uploadMove 1.1s linear infinite;
}

@keyframes uploadMove {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.payment-status {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.payment-status:empty {
  display: none;
}

.metric-row .credit-good {
  border-color: #bfe3cc;
  background: #f3fbf6;
}

.metric-row .credit-good strong {
  color: var(--ok);
}

.credit-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #bfe3cc;
  border-radius: 8px;
  background: #f3fbf6;
  color: #0d542b;
  font-weight: bold;
}

/* Responsive portal layout: comfortable touch targets and phone-friendly stacking. */
img{max-width:100%}
.card,.hero-card,.panel,.activity-item,.child-card{min-width:0;overflow-wrap:anywhere}

@media (max-width:680px){
  body{overflow-x:hidden}
  .hero-wrap,.page-wrap{padding:8px;min-height:auto}
  .card,.hero-card{padding:14px;border-radius:10px;box-shadow:none}
  .form-header{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center;padding-bottom:12px;margin-bottom:14px}
  .form-header .logo.small{width:52px;max-height:58px;margin:0}
  .form-header .logo.small[style*="display: none"]+div{grid-column:1/-1}
  .form-header h1{font-size:24px;margin-bottom:5px}
  .form-header .muted{font-size:14px}
  fieldset{padding:12px;margin:14px 0}
  input,select,textarea,button,.btn{font-size:16px}
  button,.btn{min-height:44px;padding:11px 14px}
  .dashboard-login button,#restrictionForm button{width:fit-content}
  .dashboard-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:5px;margin-bottom:10px}
  .dashboard-actions button{width:auto;min-height:36px;margin:0;padding:7px 8px;font-size:10px;line-height:1.1;white-space:nowrap}
  .dashboard-actions .parent-notification-button{flex:0 0 36px;width:36px;min-height:36px;padding:0;font-size:16px}
  .parent-notification-heading{display:grid;grid-template-columns:max-content max-content;align-items:start;justify-content:start;gap:5px 6px;margin-bottom:8px}
  .parent-notification-heading>div{grid-column:1/-1;min-width:0}
  .parent-notification-heading h2{font-size:14px;line-height:1.15}
  .parent-notification-heading p{max-width:28ch;margin-top:3px;font-size:9px;line-height:1.3}
  .parent-notification-heading>button{width:auto;min-height:28px;margin:0;padding:5px 7px;font-size:8px;line-height:1.1;white-space:nowrap}
  .child-list{grid-template-columns:1fr;gap:5px;margin:7px 0 10px}
  .child-list .child-card{width:100%;min-height:0;padding:7px 8px;border-radius:8px;font-size:9px;line-height:1.25}
  .child-list .child-card.selected{box-shadow:0 0 0 2px rgba(67,209,158,.2)}
  .child-list .child-card.selected::after{top:5px;right:5px;padding:2px 4px;font-size:7px}
  .child-list .child-card.selected .child-card-layout{padding-right:48px}
  .child-card-layout{grid-template-columns:44px minmax(0,1fr);gap:7px}
  .child-card-copy strong{font-size:9px;line-height:1.25}
  .child-list .child-card span{margin-top:1px;font-size:9px;line-height:1.25}
  .child-passport{width:44px;height:50px;border-radius:6px}
  .child-passport-initials{font-size:13px!important}
  .dashboard-card .dashboard-view-panel{padding:9px}
  .dashboard-card .dashboard-view-panel h2{margin:0 0 7px;font-size:13px;line-height:1.2}
  .dashboard-card .dashboard-view-panel h3{margin:0 0 6px;font-size:11px;line-height:1.2}
  .dashboard-card .dashboard-view-panel>.muted,
  .dashboard-card .dashboard-view-panel .store-search-summary{font-size:9px;line-height:1.3}
  .dashboard-card .dashboard-view-panel .activity-list{gap:5px}
  .dashboard-card .dashboard-view-panel .activity-item{padding:7px 8px;border-radius:6px;font-size:9px;line-height:1.3}
  .dashboard-card .dashboard-view-panel .activity-item strong{font-size:10px;line-height:1.25}
  .dashboard-card .dashboard-view-panel .activity-item span,
  .dashboard-card .dashboard-view-panel .activity-item small{margin-top:1px;font-size:9px;line-height:1.3}
  .dashboard-card .dashboard-view-panel .collapsible-activity summary{margin-bottom:6px;font-size:9px;line-height:1.25}
  .dashboard-card .dashboard-view-panel .collapsible-activity[open] summary{margin-bottom:7px}
  .dashboard-card .dashboard-view-panel .result-scores{gap:5px;font-size:9px}
  .dashboard-grid{gap:10px}
  .panel{padding:12px}
  .panel h2{font-size:17px}
  .metric-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .activity-item{padding:11px}
  .activity-item input{max-width:none}
  .activity-item button,.activity-item .btn{width:fit-content;max-width:100%;margin-left:0;margin-right:0}
  .result-scores{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .admin-table-wrap{margin-left:-12px;margin-right:-12px;padding:0 12px;-webkit-overflow-scrolling:touch}
  .admin-table{min-width:680px}
  .breakdown-row{align-items:flex-start}
  .fee-option{padding:10px}
  .nav-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .nav-actions a{display:flex;align-items:center;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
}

@media (max-width:420px){
  .form-header{grid-template-columns:44px minmax(0,1fr)}
  .form-header .logo.small{width:44px;max-height:50px}
  .form-header h1{font-size:21px}
  .metric-row,.result-scores,.admin-tabs,.nav-actions{grid-template-columns:1fr}
  .child-card-layout{grid-template-columns:44px minmax(0,1fr);gap:7px}
  .child-passport{width:44px;height:50px}
  .breakdown-row{display:grid;gap:3px}
  .fee-option span{display:grid;gap:4px}
  .hero-copy h1{font-size:28px}
}

/* DIGC Suite workspace launcher and device-level preferences. */
html[data-accent="blue"]{--preference-accent:#1768e8;--preference-accent-deep:#0b45b7;--preference-accent-soft:#e8f1ff}
html[data-accent="gold"]{--preference-accent:#bd7b08;--preference-accent-deep:#8f5900;--preference-accent-soft:#fff4d8}
html[data-accent="emerald"]{--preference-accent:#0c8b68;--preference-accent-deep:#08684f;--preference-accent-soft:#dff8ef}
html[data-accent]{--blue:var(--preference-accent);--blue2:var(--preference-accent-deep)}
html[data-large-text="true"]{font-size:112.5%}
html[data-density="compact"] .card,
html[data-density="compact"] .panel,
html[data-density="compact"] .activity-item{padding-top:10px;padding-bottom:10px}
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
html[data-theme="dark"]{color-scheme:dark;--bg:#091321;--line:#2b3d53;--text:#edf4ff;--muted:#a8b8cb}
html[data-theme="dark"] body{background:#091321;color:var(--text)}
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .activity-item,
html[data-theme="dark"] .child-card,
html[data-theme="dark"] .service-tile,
html[data-theme="dark"] .hero-service-panel,
html[data-theme="dark"] .hero-service-panel div,
html[data-theme="dark"] .metric-row div,
html[data-theme="dark"] .admin-table,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#111e2e;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .landing-page{background:linear-gradient(180deg,#0d1b2e 0,#091321 60%,#07101b 100%)}
html[data-theme="dark"] .hero-copy .lead,
html[data-theme="dark"] .service-tile span,
html[data-theme="dark"] .hero-service-panel span,
html[data-theme="dark"] .muted{color:var(--muted)}
html[data-theme="dark"] .admin-table th{background:#152943}
html[data-theme="dark"] .terms-text,
html[data-theme="dark"] .fee-breakdown,
html[data-theme="dark"] .receipt-box{background:#0d1a29}

/* Preserve staff-dashboard contrast when the shared dark theme is active. */
html[data-theme="dark"] .staff-page .staff-topbar{background:#0d1a29;border-color:#2b3d53}
html[data-theme="dark"] .staff-page .staff-brand strong,
html[data-theme="dark"] .staff-page .staff-identity-copy strong{color:#f4f8ff}
html[data-theme="dark"] .staff-page .staff-brand small,
html[data-theme="dark"] .staff-page .staff-identity-copy small{color:#b7c6d8}
html[data-theme="dark"] .staff-main-content{background:#091321}
html[data-theme="dark"] .staff-page .staff-welcome h1,
html[data-theme="dark"] .staff-page .staff-summary strong,
html[data-theme="dark"] .staff-page .staff-summary span,
html[data-theme="dark"] .staff-page .staff-summary small,
html[data-theme="dark"] .staff-page .staff-summary small b{color:#f4f8ff}
html[data-theme="dark"] .dashboard-charts article{background:#111e2e;border-color:#2b3d53}
html[data-theme="dark"] .dashboard-charts h3,
html[data-theme="dark"] .chart-row>strong{color:#f4f8ff}
html[data-theme="dark"] .chart-row>span,
html[data-theme="dark"] .dashboard-charts .muted{color:#c3d0df}
html[data-theme="dark"] .chart-row>span small{color:#9fb1c5}
html[data-theme="dark"] .chart-row i{background:#2a3b50}
html[data-theme="dark"] .workflow-ledger-heading h2{color:#f4f8ff}
html[data-theme="dark"] .workflow-dialog,
html[data-theme="dark"] .workflow-dialog-header,
html[data-theme="dark"] .workflow-dialog .workflow-form{background:#0d1a29;color:#edf4ff}
html[data-theme="dark"] .workflow-dialog-header{border-color:#2b3d53}
html[data-theme="dark"] .workflow-dialog-header h2,
html[data-theme="dark"] .workflow-dialog .workflow-form label{color:#f4f8ff}
html[data-theme="dark"] .workflow-dialog-header>button{background:#17273a;color:#e8f1ff}
html[data-theme="dark"] .approval-asset-preview,
html[data-theme="dark"] .approval-defaults,
html[data-theme="dark"] .decision-verification{border-color:#33465c;background:#111f30;color:#edf4ff}
html[data-theme="dark"] .approval-defaults legend,
html[data-theme="dark"] .decision-verification legend{color:#c3d0df}
html[data-theme="dark"] .decision-record-reference{background:#14263a;color:#edf4ff}
html[data-theme="dark"] .material-grand-total-row th{border-color:#8fb0ce!important;background:#18314a!important;color:#fff!important}
html[data-theme="dark"] .child-list .child-card{border-color:hsl(var(--child-hue,207) 48% 44%);background:hsl(var(--child-hue,207) 42% 20%)}
html[data-theme="dark"] .child-list .child-card:hover{background:hsl(var(--child-hue,207) 45% 25%)}
html[data-theme="dark"] .child-list .child-card .child-card-copy strong{color:#f4f8ff}
html[data-theme="dark"] .child-list .child-card .child-card-copy span{color:#cbd9e8}
html[data-theme="dark"] .child-list .child-card.selected{border-color:#43d19e;background:hsl(var(--child-hue,207) 55% 29%);box-shadow:0 0 0 3px rgba(67,209,158,.24)}
html[data-theme="dark"] .child-list .child-card.selected::after{background:#43d19e;color:#071b2c}
html[data-theme="dark"] .child-list .child-card.selected .child-card-copy strong,
html[data-theme="dark"] .child-list .child-card.selected .child-card-copy span{color:#fff}
html[data-theme="dark"] .child-list .child-card.selected .child-passport{border-color:#8be4c2;background:#e8f5ff}

.suite-launcher-page{height:100vh;height:100dvh;min-height:0;background:#071b38;color:#fff;overflow:hidden}
.suite-launcher{position:relative;display:grid;grid-template-columns:minmax(360px,.92fr) minmax(480px,1.08fr);min-height:100vh;background:radial-gradient(circle at 84% 12%,rgba(42,112,255,.18),transparent 32%),#f5f8fd}
.launcher-showcase{position:relative;min-height:100vh;padding:clamp(30px,5vw,72px);overflow:hidden;background:linear-gradient(145deg,#061a38 0%,#0a3d96 55%,#1269ef 100%);color:#fff;display:flex;flex-direction:column;isolation:isolate}
.launcher-showcase::before,.launcher-showcase::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.15);border-radius:50%;z-index:-1}
.launcher-showcase::before{width:580px;height:580px;right:-300px;top:-160px}
.launcher-showcase::after{width:410px;height:410px;right:-190px;top:-40px}
.launcher-showcase-top{display:flex;align-items:center;gap:14px;font-size:19px;font-weight:700;letter-spacing:.02em}
.launcher-logo{display:grid;place-items:center;width:52px;height:52px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
.launcher-logo img{width:100%;height:100%;object-fit:contain;border-radius:0}
.launcher-art{position:absolute;top:16%;right:-8%;width:min(39vw,520px);aspect-ratio:1;z-index:-1;opacity:.95}
.launcher-art span{position:absolute;display:block;border-radius:44% 56% 68% 32% / 56% 36% 64% 44%;transform:rotate(-16deg)}
.launcher-art span:nth-child(1){inset:0;background:linear-gradient(145deg,rgba(255,255,255,.22),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.24)}
.launcher-art span:nth-child(2){inset:17%;background:linear-gradient(145deg,rgba(88,164,255,.75),rgba(12,68,165,.2));box-shadow:0 30px 80px rgba(0,17,65,.22)}
.launcher-art span:nth-child(3){inset:35%;background:linear-gradient(145deg,#f3b92e,#f07b2a);box-shadow:0 16px 45px rgba(245,156,32,.25)}
.launcher-message{margin-top:auto;max-width:620px;padding-top:280px}
.launcher-message p,.launcher-kicker,.sheet-header p{margin:0 0 10px;text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:800}
.launcher-message p{color:#b9d5ff}
.launcher-message h1{margin:0;color:#fff;font-size:clamp(42px,5.2vw,72px);font-weight:350;letter-spacing:-.045em;line-height:1.03}
.launcher-message h1 strong{font-weight:800}
.launcher-message>span{display:block;max-width:520px;margin-top:20px;color:#d5e5ff;font-size:17px;line-height:1.65}
.launcher-directory{position:relative;display:flex;flex-direction:column;justify-content:center;padding:clamp(34px,7vw,96px);color:#14223a}
.launcher-heading{max-width:620px;margin-bottom:34px}
.launcher-kicker{color:var(--preference-accent,#1768e8)}
.launcher-heading h2{margin:0 0 10px;color:#102341;font-size:clamp(32px,4vw,52px);letter-spacing:-.035em;line-height:1.08}
.launcher-heading>p:last-child{margin:0;color:#6a7890;font-size:17px}
.launcher-channels{display:grid;gap:14px;max-width:680px}
.launcher-channel{display:grid;grid-template-columns:58px minmax(0,1fr) 30px;align-items:center;gap:17px;width:100%;min-height:88px;margin:0;padding:14px 16px;border:1px solid #dce5f0;border-radius:18px;background:#fff;color:#15233a;text-align:left;text-decoration:none;box-shadow:0 7px 22px rgba(24,49,89,.06);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.launcher-channel:hover,.launcher-channel:focus-visible{background:#fff;border-color:var(--preference-accent,#1768e8);box-shadow:0 14px 32px rgba(24,76,166,.14);transform:translateY(-2px);outline:none}
.channel-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--preference-accent-soft,#e8f1ff);color:var(--preference-accent-deep,#0b45b7);font-size:17px;font-weight:900;letter-spacing:.02em}
.channel-copy{min-width:0}.channel-copy strong,.channel-copy small{display:block}.channel-copy strong{color:#13233d;font-size:19px}.channel-copy small{margin-top:4px;color:#718097;font-size:13px;font-weight:500}
.channel-arrow{color:var(--preference-accent,#1768e8);font-size:25px;transition:transform .2s ease}.launcher-channel:hover .channel-arrow{transform:translateX(3px)}
.launcher-help{margin:28px 0 0;color:#77859a;font-size:13px}.launcher-help a{color:var(--preference-accent-deep,#0b45b7);font-weight:700}
.launcher-settings-button{position:fixed;right:24px;bottom:24px;z-index:50;display:grid;place-items:center;width:58px;height:58px;margin:0;padding:0;border:4px solid rgba(255,255,255,.86);border-radius:50%;background:var(--preference-accent,#1768e8);color:#fff;font-size:24px;box-shadow:0 12px 30px rgba(14,55,122,.28)}
.launcher-settings-button:hover{background:var(--preference-accent-deep,#0b45b7);transform:rotate(20deg)}
.launcher-overlay[hidden]{display:none}
.launcher-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:flex-end;padding:22px;background:rgba(4,13,27,.62);backdrop-filter:blur(6px)}
.launcher-sheet{width:min(500px,100%);max-height:calc(100vh - 44px);overflow:auto;padding:26px;border:1px solid rgba(130,153,185,.28);border-radius:24px;background:#fff;color:#14223a;box-shadow:0 28px 90px rgba(0,12,34,.3)}
.sheet-handle{display:none}
.sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.sheet-header p{color:var(--preference-accent,#1768e8)}
.sheet-header h2{margin:0;color:#102341;font-size:29px;letter-spacing:-.025em}
.sheet-close{display:grid;place-items:center;width:42px;height:42px;margin:0;padding:0;border:1px solid #dce5f0;border-radius:50%;background:#f3f6fa;color:#23344e;font-size:28px;font-weight:400;line-height:1}
.services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.services-grid a{display:block;min-height:150px;padding:18px;border:1px solid #dfe7f1;border-radius:17px;color:#162741;text-decoration:none;background:#f8faff}
.services-grid a:hover,.services-grid a:focus-visible{border-color:var(--preference-accent,#1768e8);background:var(--preference-accent-soft,#e8f1ff);outline:none}
.services-grid span{display:grid;place-items:center;width:42px;height:42px;margin-bottom:18px;border-radius:12px;background:#fff;color:var(--preference-accent-deep,#0b45b7);font-weight:900;box-shadow:0 4px 12px rgba(20,48,91,.08)}
.services-grid strong,.services-grid small{display:block}.services-grid strong{font-size:16px}.services-grid small{margin-top:5px;color:#738198;font-size:12px}
.preference-group{margin:0 0 22px;padding:0;border:0}.preference-group legend{margin-bottom:10px;padding:0;color:#263753;font-size:14px}
.preference-options{display:grid;gap:8px}.preference-options-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.preference-options label{margin:0}.preference-options input{position:absolute;opacity:0;pointer-events:none}
.preference-options span{display:block;padding:11px;border:1px solid #dce5f0;border-radius:11px;background:#f7f9fc;color:#52617a;text-align:center;font-size:13px;font-weight:700;cursor:pointer}
.preference-options input:checked+span{border-color:var(--preference-accent,#1768e8);background:var(--preference-accent-soft,#e8f1ff);color:var(--preference-accent-deep,#0b45b7);box-shadow:0 0 0 1px var(--preference-accent,#1768e8)}
.accent-options{display:flex;gap:12px}.accent-options label{margin:0;text-align:center;cursor:pointer}.accent-options input{position:absolute;opacity:0;pointer-events:none}
.accent-options span{display:block;width:43px;height:43px;margin:0 auto 5px;border:4px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #cdd8e6}
.accent-options input:checked+span{box-shadow:0 0 0 3px #102341}.accent-blue{background:#1768e8}.accent-gold{background:#bd7b08}.accent-emerald{background:#0c8b68}.accent-options small{color:#66758c;font-size:11px}
.preference-switch-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 10px;margin:0 -10px;border-top:1px solid #e3e9f1;border-radius:10px;transition:background .2s ease,box-shadow .2s ease}
.preference-switch-row:has(.preference-switch input:checked){background:#edf9f4;box-shadow:inset 4px 0 0 #087a55}
.preference-switch-row>span{min-width:0}.preference-switch-row strong,.preference-switch-row small{display:block}.preference-switch-row strong{color:#243550;font-size:14px}.preference-switch-row small{margin-top:3px;color:#7a879a;font-size:11px}
.preference-switch-row.is-unavailable{opacity:.58}.preference-switch-row.is-unavailable .preference-switch{cursor:not-allowed}
.preference-switch{position:relative;flex:0 0 56px;height:30px;margin:0}.preference-switch input{position:absolute;opacity:0}.preference-switch span{position:absolute;inset:0;border:2px solid #7e8ca0;border-radius:999px;background:#9aa7b8;cursor:pointer;box-shadow:inset 0 1px 3px rgba(16,35,65,.2);transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}.preference-switch span::before{content:"OFF";position:absolute;right:5px;top:50%;transform:translateY(-50%);color:#fff;font-size:7px;font-weight:800;letter-spacing:.03em}.preference-switch span::after{content:"";position:absolute;left:2px;top:2px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .2s ease}.preference-switch input:checked+span{border-color:#087a55;background:#0aa174;box-shadow:0 0 0 3px rgba(10,161,116,.16)}.preference-switch input:checked+span::before{content:"ON";left:7px;right:auto}.preference-switch input:checked+span::after{transform:translateX(26px)}.preference-switch input:focus-visible+span{outline:3px solid rgba(23,104,232,.35);outline-offset:3px}
.settings-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:22px}.settings-actions button{width:fit-content;min-height:48px;margin:0}.settings-reset{border:1px solid #dce5f0;background:#f4f6fa;color:#34445d}.settings-reset:hover{background:#e9eef5}.settings-save{background:var(--preference-accent,#1768e8)}.settings-save:hover{background:var(--preference-accent-deep,#0b45b7)}
.launcher-modal-open{overflow:hidden}

html[data-theme="dark"] .suite-launcher{background:radial-gradient(circle at 84% 12%,rgba(42,112,255,.12),transparent 32%),#07111f}
html[data-theme="dark"] .launcher-directory{color:#eaf2ff}
html[data-theme="dark"] .launcher-heading h2,
html[data-theme="dark"] .channel-copy strong{color:#f3f7ff}
html[data-theme="dark"] .launcher-heading>p:last-child,
html[data-theme="dark"] .launcher-help{color:#9cadc2}
html[data-theme="dark"] .launcher-channel{background:#101d2e;border-color:#2a3b50;color:#edf4ff;box-shadow:none}
html[data-theme="dark"] .launcher-channel:hover{background:#14243a}
html[data-theme="dark"] .channel-copy small{color:#a7b5c8}
html[data-theme="dark"] .launcher-sheet{background:#101d2e;color:#edf4ff;border-color:#31435a}
html[data-theme="dark"] .sheet-header h2,
html[data-theme="dark"] .preference-group legend,
html[data-theme="dark"] .preference-switch-row strong{color:#f0f5ff}
html[data-theme="dark"] .sheet-close,
html[data-theme="dark"] .preference-options span,
html[data-theme="dark"] .settings-reset{background:#17273a;color:#dce8f8;border-color:#33465d}
html[data-theme="dark"] .services-grid a{background:#142337;border-color:#30435a;color:#eff5ff}
html[data-theme="dark"] .services-grid small,
html[data-theme="dark"] .preference-switch-row small{color:#a3b3c7}
html[data-theme="dark"] .preference-switch-row{border-color:#2a3c52}
html[data-theme="dark"] .preference-switch-row:has(.preference-switch input:checked){background:#102d28;box-shadow:inset 4px 0 0 #43d19e}

@media (min-width:901px) and (max-height:800px){
  .launcher-showcase{padding:clamp(22px,3.5vw,52px)}
  .launcher-message{padding-top:clamp(110px,20vh,180px)}
  .launcher-message h1{font-size:clamp(38px,4.6vw,60px)}
  .launcher-message>span{margin-top:14px;font-size:15px;line-height:1.45}
  .launcher-directory{padding:clamp(24px,5vw,64px)}
  .launcher-heading{margin-bottom:22px}
  .launcher-channel{min-height:74px;padding:10px 14px}
  .launcher-help{margin-top:18px}
}

@media (max-width:900px){
  .suite-launcher{grid-template-columns:1fr;min-height:auto}
  .launcher-showcase{min-height:390px;padding:28px 28px 36px}
  .launcher-art{top:-18%;right:-12%;width:470px;opacity:.75}
  .launcher-message{padding-top:130px}.launcher-message h1{font-size:46px}.launcher-message>span{font-size:14px}
  .launcher-directory{min-height:calc(100vh - 390px);padding:44px 28px 80px}
  .launcher-channels{max-width:none}
}
@media (max-width:560px){
  .launcher-showcase{min-height:330px;padding:20px 20px 28px;border-radius:0 0 38px 38px}
  .launcher-showcase-top{font-size:16px}.launcher-logo{width:44px;height:44px;border-radius:13px}
  .launcher-art{width:330px;top:-7%;right:-24%;opacity:.72}
  .launcher-message{padding-top:84px}.launcher-message p{font-size:10px}.launcher-message h1{font-size:38px}.launcher-message>span{max-width:310px;margin-top:12px;font-size:12px;line-height:1.5}
  .launcher-directory{min-height:0;padding:34px 16px 92px}
  .launcher-heading{margin-bottom:22px}.launcher-heading h2{font-size:29px}.launcher-heading>p:last-child{font-size:14px}
  .launcher-channel{grid-template-columns:50px minmax(0,1fr) 24px;gap:12px;min-height:79px;padding:12px;border-radius:15px}.channel-mark{width:50px;height:50px;border-radius:14px;font-size:15px}.channel-copy strong{font-size:17px}.channel-copy small{font-size:11px}.channel-arrow{font-size:21px}
  .launcher-settings-button{right:16px;bottom:16px;width:54px;height:54px}
  .launcher-overlay{align-items:flex-end;padding:0;background:rgba(4,13,27,.68)}
  .launcher-sheet{width:100%;max-height:88vh;padding:10px 17px 22px;border:0;border-radius:24px 24px 0 0}
  .sheet-handle{display:block;width:42px;height:4px;margin:0 auto 16px;border-radius:99px;background:#ccd5e0}
  .sheet-header{margin-bottom:18px}.sheet-header h2{font-size:25px}.sheet-close{width:38px;height:38px}
  .services-grid{gap:9px}.services-grid a{min-height:132px;padding:14px}.services-grid span{margin-bottom:13px}
  .settings-actions{position:sticky;bottom:-22px;margin-left:-17px;margin-right:-17px;padding:12px 17px 16px;background:inherit;border-top:1px solid #dfe7f1}
}

.dashboard-nav{position:sticky;top:0;z-index:20;display:flex;gap:8px;margin:0 0 14px;padding:8px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 5px 16px rgba(15,52,89,.08)}

/* Application-style settings workspace. */
.settings-page{background:#f4f7fb;color:#172033}
.settings-shell{width:min(1440px,100%);margin:0 auto;padding:22px 28px 48px}
.settings-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:8px 2px 20px;border-bottom:1px solid #dbe3ef}
.settings-brand{display:flex;align-items:center;gap:16px;min-width:0}
.settings-logo-wrap{display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px;border:0;border-radius:0;background:transparent;box-shadow:none}
.settings-logo{max-width:42px;max-height:42px}
.settings-topbar h1{margin:1px 0 3px;font-size:29px;letter-spacing:-.02em;color:#102f50}
.settings-topbar p{margin:0;color:#64748b}
.settings-eyebrow{margin:0!important;color:#0e6b4f!important;font-size:11px!important;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.settings-top-actions{display:flex;align-items:center;gap:8px}
.settings-link{display:inline-flex;align-items:center;min-height:40px;padding:8px 13px;border:1px solid #d6e0ed;border-radius:9px;background:#fff;color:#174a7c;font-size:14px;font-weight:700;text-decoration:none;transition:.18s ease}
.settings-link:hover{border-color:#8ba8c5;background:#f8fbff;transform:translateY(-1px)}
.settings-unlock-card{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(240px,330px) auto;align-items:end;gap:18px;width:min(1040px,100%);margin:80px auto 0;padding:28px;border:1px solid #d8e2ef;border-radius:16px;background:#fff;box-shadow:0 16px 44px rgba(15,52,89,.09)}
.settings-lock-icon{display:grid;place-items:center;width:52px;height:52px;align-self:center;border-radius:13px;background:#eaf2ff;font-size:22px}
.settings-unlock-copy h2{margin:2px 0 5px;font-size:21px;color:#102f50}
.settings-unlock-copy p{margin:0;color:#64748b;font-size:14px}
.settings-unlock-control label{margin:0 0 6px;font-size:13px}
.settings-unlock-card button{min-height:46px;margin:0;white-space:nowrap}
.settings-login-status{grid-column:2/-1;margin:0}
.settings-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:24px;align-items:start}
.settings-scope-toolbar{grid-column:1/-1;display:grid;grid-template-columns:minmax(280px,1fr) minmax(190px,240px) minmax(180px,230px) auto;align-items:end;gap:12px;padding:15px 17px;border:1px solid #bfd3e7;border-radius:13px;background:linear-gradient(135deg,#f7fbff,#eef6ff);box-shadow:0 5px 18px rgba(15,52,89,.045)}
.settings-scope-copy strong,.settings-scope-copy small{display:block}.settings-scope-copy strong{margin:2px 0 3px;color:#163a5e;font-size:15px}.settings-scope-copy small{color:#64748b;font-size:12px;line-height:1.4}
.settings-scope-control span{display:block;margin-bottom:5px;color:#4b5f77;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.settings-scope-control select{min-height:41px;margin:0;padding:8px 10px;border-color:#b9cbe0;border-radius:8px;background:#fff;color:#172033;font-size:13px}
.settings-scope-toolbar button{width:fit-content;min-height:41px;margin:0;white-space:nowrap}
.settings-scope-locked{position:relative;opacity:.56}.settings-scope-locked::after{content:'Organisation-wide';position:absolute;top:10px;right:10px;padding:3px 6px;border-radius:5px;background:#e7edf4;color:#52667d;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.settings-sidebar{position:sticky;top:18px;padding:14px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,52,89,.045)}
.settings-sidebar-title{padding:4px 8px 11px;color:#738196;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.settings-sidebar nav{display:grid;gap:4px}
.settings-nav-link{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;padding:10px;border:1px solid transparent;border-radius:9px;color:#334155;text-decoration:none;transition:.16s ease}
.settings-nav-link>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f0f4f8;color:#64748b;font-size:11px;font-weight:800}
.settings-nav-link strong,.settings-nav-link small{display:block}
.settings-nav-link strong{font-size:14px;line-height:1.2}.settings-nav-link small{margin-top:2px;color:#8290a3;font-size:11px;font-weight:400}
.settings-nav-link:hover{background:#f8fafc}.settings-nav-link.active{border-color:#bfd3e7;background:#edf5ff;color:#174a7c}
.settings-nav-link.active>span{background:#174a7c;color:#fff}.settings-nav-link.active small{color:#587693}
.settings-sidebar-note{margin-top:14px;padding:12px;border-radius:9px;background:#f0f7f4;color:#305f50;font-size:12px}
.settings-sidebar-note strong{font-size:12px}.settings-sidebar-note p{margin:3px 0 0;line-height:1.45}
.settings-content{display:grid;gap:18px;min-width:0}
.settings-section{scroll-margin-top:20px;padding:25px 28px 29px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,52,89,.04)}
.settings-section-heading{display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;align-items:start;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #e6ebf2}
.settings-section-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eaf2ff;color:#174a7c;font-size:14px;font-weight:800}
.settings-section-heading h2{margin:1px 0 4px;color:#163a5e;font-size:20px;letter-spacing:-.01em}
.settings-section-heading p:last-child{margin:0;color:#718096;font-size:13px}
.settings-fields{display:grid;gap:18px}.settings-fields.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-fields .full-width{grid-column:1/-1}
.settings-field{min-width:0}.settings-field label{margin:0 0 7px;color:#26354a;font-size:13px;font-weight:750}
.settings-field input,.settings-field select,.settings-field textarea{min-height:46px;padding:10px 12px;border-color:#cbd7e5;border-radius:8px;background:#fff;color:#172033;transition:border-color .16s,box-shadow .16s}
.settings-field textarea{min-height:86px}.settings-field input:hover,.settings-field select:hover,.settings-field textarea:hover{border-color:#9eb3ca}
.settings-field input:focus,.settings-field select:focus,.settings-field textarea:focus{border-color:#3974aa;outline:0;box-shadow:0 0 0 3px rgba(57,116,170,.13)}
.settings-help{display:block;margin-top:7px;color:#718096;font-size:12px;font-weight:400;line-height:1.5}.settings-help code{padding:1px 4px;border-radius:4px;background:#f1f5f9;color:#334155;font-size:11px}
.settings-subsection{margin-top:20px;padding-top:20px;border-top:1px solid #edf0f4}.settings-subsection:first-of-type{margin-top:0;padding-top:0;border-top:0}
.settings-subsection-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}.settings-subsection-title strong{color:#26354a;font-size:14px}.settings-subsection-title span{color:#7b8798;font-size:12px;text-align:right}
.settings-logo-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:20px;align-items:center;padding:18px;border:1px solid #dde5ef;border-radius:11px;background:#f8fafc}
.settings-logo-preview{display:grid;place-items:center;width:104px;height:104px;padding:10px;border:1px solid #d6e0ed;border-radius:12px;background:#fff}
.settings-logo-preview img{max-width:82px;max-height:82px}
.settings-logo-copy strong{display:block;color:#26354a}.settings-logo-copy p{margin:5px 0 13px;color:#718096;font-size:13px}
.settings-file-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.settings-file-actions input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.settings-file-button,.settings-text-button{display:inline-flex;align-items:center;justify-content:center;min-height:39px;margin:0;padding:8px 13px;border-radius:8px;font-size:13px;font-weight:750;cursor:pointer}
.settings-file-button{background:#174a7c;color:#fff}.settings-file-button:hover{background:#0f3459}
.settings-text-button{border:1px solid #cbd7e5;background:#fff;color:#174a7c}.settings-text-button:hover{background:#edf5ff;color:#0f3459}
.settings-savebar{position:sticky;bottom:14px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #cbd8e7;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 12px 30px rgba(15,52,89,.15);backdrop-filter:blur(10px)}
.settings-savebar strong{display:block;color:#26354a;font-size:13px}.settings-savebar .status{margin:2px 0 0;color:#718096;font-size:12px;font-weight:500}
.settings-savebar .status.ok{color:var(--ok)}.settings-savebar .status.bad{color:var(--bad)}
.settings-savebar button{width:fit-content;min-height:43px;margin:0}

@media (max-width:900px){
  .settings-shell{padding:16px 16px 40px}.settings-layout{grid-template-columns:1fr;gap:14px}
  .settings-scope-toolbar{grid-template-columns:1fr 1fr}.settings-scope-copy{grid-column:1/-1}
  .settings-sidebar{position:sticky;top:0;z-index:15;overflow-x:auto;padding:8px}.settings-sidebar-title,.settings-sidebar-note{display:none}.settings-sidebar nav{display:flex;min-width:max-content}
  .settings-nav-link{grid-template-columns:26px auto;padding:8px}.settings-nav-link>span{width:25px;height:25px}.settings-nav-link small{display:none}
  .settings-unlock-card{grid-template-columns:auto 1fr;margin-top:42px}.settings-unlock-control{grid-column:1/-1}.settings-unlock-card button{grid-column:1/-1}.settings-login-status{grid-column:1/-1}
}
@media (max-width:680px){
  .settings-shell{padding:10px 9px 30px}.settings-topbar{align-items:flex-start;margin-bottom:14px;padding:7px 2px 14px}.settings-logo-wrap{width:48px;height:48px;flex-basis:48px}.settings-logo{max-width:36px;max-height:36px}.settings-topbar h1{font-size:24px}.settings-brand>div>p:last-child{display:none}
  .settings-top-actions{display:grid;gap:5px}.settings-link{min-height:34px;padding:6px 9px;font-size:12px}
  .settings-section{padding:19px 15px 22px;border-radius:11px}.settings-section-heading{grid-template-columns:36px minmax(0,1fr);gap:10px;margin-bottom:19px}.settings-section-icon{width:34px;height:34px}
  .settings-fields.two-column{grid-template-columns:1fr}.settings-fields .full-width{grid-column:auto}.settings-subsection-title{display:block}.settings-subsection-title span{display:block;margin-top:3px;text-align:left}
  .settings-logo-card{grid-template-columns:76px minmax(0,1fr);gap:13px;padding:13px}.settings-logo-preview{width:76px;height:76px}.settings-logo-preview img{max-width:58px;max-height:58px}
  .settings-savebar{bottom:7px;padding:11px}.settings-savebar button{width:fit-content}.settings-savebar strong{display:none}
  .settings-scope-toolbar{grid-template-columns:1fr;padding:12px}.settings-scope-copy{grid-column:auto}.settings-scope-toolbar button{justify-self:start}
}
@media (max-width:430px){
  .settings-topbar{display:block}.settings-top-actions{grid-template-columns:1fr 1fr;margin-top:11px}.settings-link{justify-content:center}
  .settings-unlock-card{display:block;margin-top:22px;padding:20px}.settings-lock-icon{margin-bottom:14px}.settings-unlock-control{margin-top:17px}.settings-unlock-card button{width:fit-content;margin-top:12px}
  .settings-logo-card{display:block}.settings-logo-preview{margin-bottom:13px}.settings-file-actions{display:flex;flex-wrap:wrap;gap:8px}.settings-file-button,.settings-text-button{width:fit-content}
  .settings-savebar{display:grid;grid-template-columns:minmax(0,1fr) auto}.settings-savebar button{width:fit-content;padding:9px 11px}.settings-savebar .status{line-height:1.25}
}
.dashboard-nav button{flex:1;margin:0;min-height:44px;padding:10px 12px;border:1px solid transparent;background:#edf2f7;color:var(--blue2)}
.dashboard-nav button:hover{background:#dce8f5}
.dashboard-nav button.selected{background:var(--blue);color:#fff;border-color:var(--blue2);box-shadow:inset 0 -3px 0 rgba(255,255,255,.3)}
.dashboard-view-panel[hidden]{display:none!important}
.dashboard-view-panel{scroll-margin-top:12px}

@media (max-width:680px){
  body{padding-bottom:76px}
  .dashboard-nav{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:100;justify-content:flex-start;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));gap:7px;border-width:1px 0 0;border-radius:0;box-shadow:0 -6px 18px rgba(15,52,89,.16);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:8px;overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .dashboard-nav::-webkit-scrollbar{display:none}
  .dashboard-nav button{flex:0 0 auto;min-width:112px;min-height:52px;padding:8px 12px;font-size:12px;line-height:1.15;border-radius:7px;white-space:nowrap;scroll-snap-align:start}
  .dashboard-grid{display:block}
  .dashboard-view-panel{margin-bottom:10px}
}

/* Staff web companion */
.staff-page{min-height:100vh;background:linear-gradient(180deg,#e8f0f9 0,#f4f7fa 260px,#eef3f8 100%)}
.staff-topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px max(18px,calc((100vw - 1240px)/2));border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);box-shadow:0 4px 14px rgba(15,52,89,.08)}
.staff-brand{display:flex;align-items:center;gap:11px;color:var(--blue2);text-decoration:none}.staff-brand span,.staff-brand strong,.staff-brand small{display:block}.staff-brand small{color:var(--muted)}
.staff-identity{display:flex;align-items:center;justify-content:flex-end;gap:12px;text-align:right}.staff-identity span,.staff-identity strong,.staff-identity small{display:block}.staff-identity small{color:var(--muted)}.staff-identity button{margin:0}
.staff-shell{width:100%;max-width:1240px;margin:0 auto;padding:28px 18px 48px}
.staff-login-card{max-width:500px;margin:42px auto}.staff-login-card .lead{font-size:17px;margin-bottom:18px}.staff-login-card button[type="submit"]{width:fit-content}.staff-login-note{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.staff-passkey-button{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;max-width:100%;margin-top:9px;border:1px solid #1a6ad8;background:#edf5ff;color:#1057b8}.staff-passkey-button[hidden]{display:none}.staff-passkey-button span,.staff-passkey-setup span{font-size:18px;line-height:1}
.staff-dashboard{display:grid;gap:16px}.staff-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}.staff-welcome h1{margin-bottom:5px}.staff-welcome button{margin:0;white-space:nowrap}
.staff-summary{margin:0}.staff-summary div{box-shadow:0 4px 12px rgba(15,52,89,.05)}
.staff-tabs{position:sticky;top:75px;z-index:30;padding:8px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.97);box-shadow:0 5px 15px rgba(15,52,89,.08)}.staff-tabs .child-card{min-height:46px;text-align:center}.staff-tabs .child-card.selected{color:#fff;background:var(--blue);border-color:var(--blue2)}
.staff-panel{background:#fff;scroll-margin-top:145px}.staff-panel h2:not(:first-child){margin-top:28px}

@media (max-width:680px){
  .staff-page{padding-bottom:0}
  .staff-topbar{padding:9px 10px}.staff-brand .nav-logo{max-width:38px}.staff-brand strong{font-size:14px}.staff-brand small{font-size:11px}
  .staff-identity span{display:none}.staff-identity button{min-height:40px;padding:8px 11px;font-size:13px}
  .staff-shell{padding:14px 8px 30px}.staff-login-card{margin:18px auto}
  .staff-welcome{display:grid;padding:15px}.staff-welcome button{width:fit-content}
  .staff-tabs{top:59px;display:flex;overflow-x:auto;grid-template-columns:none;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.staff-tabs .child-card{flex:0 0 auto;min-width:130px;min-height:44px}
  .staff-panel{padding:12px;scroll-margin-top:124px}
}

/* Department bills and requisitions */
.workflow-intro,.workflow-heading,.workflow-record-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.workflow-intro{padding-bottom:14px;border-bottom:1px solid var(--line)}.workflow-intro h2,.workflow-heading h2{margin:0}.workflow-intro button{margin:0}.workflow-intro>button{flex:0 0 auto;width:max-content;min-width:max-content;white-space:nowrap}
.workflow-submit-section{margin:18px 0 26px}.workflow-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px}.workflow-form{padding:16px;border:1px solid var(--line);border-radius:11px;background:#f8fafc}.workflow-form h3{margin:0 0 10px;color:var(--blue2)}.workflow-form label{font-weight:700}.workflow-form button{width:fit-content;max-width:100%}
.workflow-list-section{margin-top:26px}.workflow-list-section h2{display:flex;align-items:center;gap:7px}.workflow-list-section h2 small{font-size:13px;color:var(--muted)}.workflow-record-list{display:grid;gap:11px}.workflow-record{padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(15,52,89,.04)}.workflow-record-heading>div strong,.workflow-record-heading>div small{display:block}.workflow-record-heading>div small{color:var(--muted);margin-top:2px}.workflow-record>p{margin:9px 0}.workflow-record>small{display:block;margin-top:7px;color:var(--muted)}
.workflow-status{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#edf2f7;color:var(--blue2);font-size:12px;font-weight:700}.workflow-status.status-submitted{background:#fff5d9;color:#7a5600}.workflow-status.status-approved{background:#e8f7ee;color:var(--ok)}.workflow-status.status-rejected{background:#fff0f2;color:var(--bad)}.workflow-status.status-posted,.workflow-status.status-paid{background:#eaf2ff;color:var(--blue)}
.workflow-record-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.workflow-record-meta span{padding:8px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:var(--muted);font-size:12px}.workflow-record-meta strong{display:block;color:var(--text);font-size:14px;overflow-wrap:anywhere}.workflow-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.workflow-actions button{margin:0}.workflow-actions .workflow-approve{background:var(--ok)}.workflow-actions .workflow-reject{background:#c6283d}

@media (max-width:760px){
  .workflow-form-grid{grid-template-columns:1fr}.workflow-record-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
  .workflow-intro,.workflow-heading{display:grid}.workflow-intro button{width:fit-content}.workflow-record-heading{align-items:flex-start}.workflow-record-meta{grid-template-columns:1fr}.workflow-actions{display:flex;flex-wrap:wrap}.workflow-actions button{width:fit-content;max-width:100%}
}

/* Financial application presentation */
.staff-page{--finance-navy:#102a43;--finance-navy-2:#183f63;--finance-cyan:#19a7a0;--finance-surface:#f5f7fa;background:#e9eef4}
.staff-page .staff-topbar{height:68px;padding:10px 22px;background:#fff;box-shadow:0 1px 0 rgba(15,42,67,.1)}
.staff-desktop-tools{display:flex;align-items:center;gap:7px}
.staff-header-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;min-height:38px;margin:0;padding:0;border:1px solid #cad5e0;border-radius:10px;background:#f7fafc;color:var(--finance-navy);box-shadow:none}
.staff-header-icon:hover{border-color:#8fa8c0;background:#eaf0f6}.staff-header-icon span{font-size:20px;line-height:1}.staff-header-icon.is-loading span{display:none}
.staff-header-signout{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;min-height:38px;margin:0;padding:0;border-radius:10px}.staff-header-signout span{font-size:19px;line-height:1}
.staff-sidebar-theme{display:none}
html[data-theme="dark"] .staff-header-icon{border-color:#3b526b;background:#14263a;color:#eaf2ff}
html[data-theme="dark"] .staff-header-icon:hover{background:#1b334c;color:#fff}
.staff-menu-toggle,.staff-sidebar-scrim{display:none}.staff-menu-toggle{align-items:center;gap:6px;margin:0;border:1px solid #cad5e0;background:#fff;color:var(--finance-navy)}.staff-menu-toggle span{font-size:18px;line-height:1}
.staff-page .staff-shell{max-width:none;margin:0;padding:0}
.staff-page .staff-dashboard{display:block}
.staff-app-layout{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:calc(100vh - 68px)}
.staff-sidebar{position:sticky;top:68px;height:calc(100vh - 68px);display:flex;flex-direction:column;padding:22px 14px;background:linear-gradient(180deg,var(--finance-navy) 0,#0b2239 100%);color:#fff}
.staff-sidebar-heading{padding:0 11px 18px;border-bottom:1px solid rgba(255,255,255,.12)}.staff-sidebar-heading small,.staff-sidebar-heading strong{display:block}.staff-sidebar-heading small{color:#9fb4c8;text-transform:uppercase;letter-spacing:.1em;font-size:10px}.staff-sidebar-heading strong{margin-top:5px;font-size:16px}
.staff-page .staff-tabs{position:static;display:grid;grid-template-columns:1fr;gap:5px;margin:16px 0;padding:0;border:0;background:transparent;box-shadow:none}.staff-page .staff-tabs .child-card{min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#edf4ff;text-align:left;font-size:14px}.staff-page .staff-tabs .child-card>span:last-child{color:#edf4ff;font-weight:600}.staff-page .staff-tabs .child-card:hover{background:rgba(255,255,255,.1);color:#fff}.staff-page .staff-tabs .child-card:hover>span:last-child,.staff-page .staff-tabs .child-card.selected>span:last-child{color:#fff}.staff-page .staff-tabs .child-card.selected{border-color:rgba(255,255,255,.14);background:linear-gradient(90deg,var(--finance-navy-2),rgba(25,167,160,.32));color:#fff;box-shadow:inset 3px 0 0 var(--finance-cyan)}
.staff-sidebar-note{display:flex;flex:0 0 auto;align-items:center;gap:9px;margin-top:10px;padding:12px 10px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(255,255,255,.05)}.staff-sidebar-note strong,.staff-sidebar-note small{display:block}.staff-sidebar-note strong{font-size:12px}.staff-sidebar-note small{color:#9fb4c8;font-size:10px}.staff-live-dot{width:9px;height:9px;border-radius:50%;background:#43d19e;box-shadow:0 0 0 4px rgba(67,209,158,.13)}
.staff-sidebar .staff-tabs{flex:1 1 auto;min-height:0}.staff-sidebar-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:8px;margin-top:auto}.staff-swipe-hint{display:none;width:100%;color:#91a8bd;font-size:10px;text-align:center}.staff-sidebar-signout{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;max-width:100%;min-height:42px;margin:0;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);color:#fff}.staff-sidebar-signout:hover{background:rgba(255,255,255,.15)}
.staff-passkey-setup{display:flex;align-items:center;justify-content:center;gap:7px;width:fit-content;max-width:100%;min-height:42px;margin:0;border:1px solid rgba(255,255,255,.24);background:#0d62d6;color:#fff}.staff-passkey-setup[hidden]{display:none}.staff-passkey-setup.is-registered{border-color:#52d6a7;background:#0b765b}
.staff-profile-settings{display:flex;align-items:center;justify-content:center;gap:7px;width:fit-content;max-width:100%;min-height:42px;margin:0;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff}.staff-profile-settings[hidden]{display:none}
.approval-asset-grid{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px;align-items:center}.approval-asset-preview{min-height:92px;padding:10px;border:1px dashed #b8c7d8;border-radius:9px;background:#f8fafc;text-align:center}.approval-asset-preview img{display:block;max-width:100%;max-height:74px;margin:0 auto 7px;object-fit:contain}.approval-asset-preview span{display:block;margin:16px 0;color:#829ab1;font-size:11px}.workflow-form .approval-asset-preview button{width:auto;min-height:28px;margin:0;padding:5px 9px;font-size:10px}.approval-defaults,.decision-verification{margin:14px 0;padding:13px;border:1px solid #dce4ec;border-radius:9px}.approval-defaults legend,.decision-verification legend{padding:0 6px;color:#486581;font-size:12px;font-weight:700}.approval-defaults .check-row{margin:8px 0;font-size:12px}.decision-record-reference{padding:9px;border-radius:7px;background:#edf3f8;color:#243b53;font-weight:700}.decision-verification-divider{display:flex;align-items:center;gap:8px;margin:9px 0;color:#829ab1;font-size:10px;text-transform:uppercase}.decision-verification-divider::before,.decision-verification-divider::after{content:"";flex:1;height:1px;background:#dce4ec}.finance-decision-dialog{width:min(520px,calc(100vw - 24px))}.finance-decision-dialog .staff-passkey-button{margin:0}.finance-decision-dialog .staff-passkey-button.is-verified{border-color:#087a55;background:#e7f8f1;color:#087a55}
@media (max-width:560px){.approval-asset-grid{grid-template-columns:1fr}.approval-asset-preview{min-height:74px}}
.staff-main-content{min-width:0;padding:26px 30px 50px;background:var(--finance-surface)}
.staff-page .staff-welcome{padding:0;border:0;background:transparent}.staff-page .staff-welcome h1{color:var(--finance-navy);font-size:27px}.staff-page .staff-welcome button{background:#fff;color:var(--finance-navy);border:1px solid #cad5e0}.staff-page .staff-welcome button:hover{background:#eaf0f6}
.staff-branch-control{display:grid;flex:0 0 auto;gap:4px;min-width:190px;color:#486581;font-size:10px;font-weight:800;letter-spacing:.06em;text-align:left;text-transform:uppercase}.staff-branch-control[hidden]{display:none}.staff-branch-control select{width:100%;min-height:38px;margin:0;padding:7px 30px 7px 10px;border:1px solid #bdccda;border-radius:9px;background:#fff;color:var(--finance-navy);font-size:12px;font-weight:700;letter-spacing:0;text-transform:none}.staff-branch-control select:disabled{cursor:wait;opacity:.7}
html[data-theme="dark"] .staff-branch-control{color:#bed0e2}html[data-theme="dark"] .staff-branch-control select{border-color:#3b526b;background:#14263a;color:#f2f7ff}
.staff-page .staff-summary{display:flex;flex-wrap:nowrap;gap:12px;max-width:100%;padding:0 0 8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.staff-page .staff-summary div{position:relative;min-height:96px;padding:16px 16px 14px;border:1px solid #dce4ec;border-radius:10px;background:#fff;box-shadow:0 4px 12px rgba(16,42,67,.04);overflow:hidden}.staff-page .staff-summary div::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--finance-cyan)}.staff-page .staff-summary strong{font-size:25px;color:var(--finance-navy)}.staff-page .staff-summary span{text-transform:uppercase;letter-spacing:.04em;font-size:10px}
.staff-page .staff-summary>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;flex:0 0 clamp(150px,13vw,178px);min-width:150px;scroll-snap-align:start}
@media (min-width:681px){
  .staff-page .staff-summary>div{border-color:transparent;color:#fff;background:linear-gradient(145deg,#123a67,#0b2748);box-shadow:0 7px 18px rgba(16,42,67,.16)}
  .staff-page .staff-summary>div:nth-child(4n+2){background:linear-gradient(145deg,#086b75,#064752)}
  .staff-page .staff-summary>div:nth-child(4n+3){background:linear-gradient(145deg,#7350a8,#422c70)}
  .staff-page .staff-summary>div:nth-child(4n+4){background:linear-gradient(145deg,#a44f2d,#71301b)}
  .staff-page .staff-summary>div::before{background:rgba(255,255,255,.58)}
  .staff-page .staff-summary>div strong,
  .staff-page .staff-summary>div span,
  .staff-page .staff-summary>div small,
  .staff-page .staff-summary>div small b{color:#fff}
}
.dashboard-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.dashboard-charts article{padding:14px;border:1px solid #dce4ec;border-radius:10px;background:#fff}.dashboard-charts h3{margin:0 0 10px;color:var(--finance-navy);font-size:14px}.chart-row{display:grid;grid-template-columns:minmax(90px,1.1fr) minmax(90px,2fr) auto;gap:8px;align-items:center;margin:7px 0;font-size:11px}.chart-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-row>span small{display:block;color:#6b7280}.chart-row i{display:block;height:8px;overflow:hidden;border-radius:999px;background:#e8eef5}.chart-row i b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0d6efd,#16a6b6)}.chart-row>strong{font-size:11px;color:var(--finance-navy)}.store-item-row{display:grid;grid-template-columns:2fr 1.5fr 1fr auto;gap:8px;align-items:center}.store-purchase-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px}.store-quantity{width:78px;max-width:78px;height:30px;min-height:30px;margin:0;padding:3px 22px 3px 9px;color:#102a43;background-color:#fff;font-size:12px}.store-quantity.is-locked{pointer-events:none;opacity:1;color:#102a43;-webkit-text-fill-color:#102a43;background-color:#f4f7fa}.activity-item .store-cart-action{width:30px!important;min-width:30px!important;height:30px;min-height:30px;margin:0;padding:0;border-radius:50%;background:var(--ok);color:#fff;font-size:14px}.activity-item .store-cart-action.is-added{background:#e7f7ef;color:#087a55;border-color:#87cfb3;opacity:1}.activity-item .store-cart-action:disabled{cursor:default}
@media (max-width:780px){.dashboard-charts{grid-template-columns:1fr}.store-item-row{grid-template-columns:minmax(0,1fr) auto}.store-item-row>strong,.store-item-row>span,.store-item-row>small{grid-column:1}.store-purchase-controls{grid-column:2;grid-row:1/4}.store-quantity{width:58px;max-width:58px;padding:3px 18px 3px 7px}}
.staff-page .staff-panel{padding:22px;border:1px solid #dce4ec;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(16,42,67,.04);scroll-margin-top:82px}
.staff-page .admin-table{border:0}.staff-page .admin-table th{padding:11px;border-width:0 0 1px;background:#f2f6f9;color:#486581;text-transform:uppercase;letter-spacing:.04em;font-size:10px}.staff-page .admin-table td{padding:11px;border-width:0 0 1px;border-color:#e6edf3;font-size:13px}.staff-page .admin-table tbody tr:hover{background:#f8fbfd}
.workflow-primary-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.workflow-primary-actions button{margin:0;background:var(--finance-navy)}.workflow-primary-actions button:hover{background:var(--finance-navy-2)}.workflow-primary-actions .workflow-secondary-action{background:var(--finance-cyan)}.workflow-primary-actions .workflow-icon-action{border:1px solid #cad5e0;background:#fff;color:var(--finance-navy)}
.workflow-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:18px 0}.workflow-kpis>div{padding:15px;border:1px solid #dce4ec;border-radius:10px;background:#f9fbfc}.workflow-kpis small,.workflow-kpis strong,.workflow-kpis span{display:block}.workflow-kpis small{color:#627d98;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.workflow-kpis strong{margin:5px 0;color:var(--finance-navy);font-size:25px}.workflow-kpis span{color:#829ab1;font-size:11px}.workflow-kpis>div:first-child{border-left:4px solid #e5a82b}.workflow-kpis>div:nth-child(2){border-left:4px solid #2ca66f}.workflow-kpis>div:nth-child(3){border-left:4px solid #d6455d}.workflow-kpis>div:nth-child(4){border-left:4px solid var(--finance-cyan)}
.workflow-ledger-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:25px 0 5px;padding-top:18px;border-top:1px solid #e3eaf0}.workflow-ledger-heading h2{margin:0;color:var(--finance-navy)}
.workflow-list-section{margin-top:18px}.workflow-record{border-color:#dce4ec;box-shadow:none}.workflow-record:hover{border-color:#aebfd0;box-shadow:0 5px 14px rgba(16,42,67,.05)}
.finance-record-meta-table{max-height:none;margin:9px 0 7px}.finance-record-meta-table .admin-table{width:max-content;min-width:100%;table-layout:auto}.finance-record-meta-table th,.finance-record-meta-table td{padding:6px 8px;white-space:nowrap}.finance-record-meta-table th{font-size:9px}.finance-record-meta-table td{font-size:11px}.finance-record-actions{display:flex!important;grid-template-columns:none!important;flex-wrap:wrap;gap:7px}.finance-record-actions button{flex:0 0 auto;width:fit-content!important;min-width:0;min-height:36px;padding:7px 9px;font-size:11px}
.finance-record-table-wrap{max-height:58vh}.finance-record-table{width:max-content;min-width:100%;table-layout:auto}.finance-record-table th,.finance-record-table td{white-space:nowrap}.finance-record-table td:nth-child(3){max-width:260px;overflow:hidden;text-overflow:ellipsis}.finance-row-actions{display:flex;align-items:center;gap:4px;min-width:max-content}
.workflow-dialog{width:min(620px,calc(100vw - 24px));max-height:90vh;padding:0;border:0;border-radius:14px;background:#fff;box-shadow:0 25px 70px rgba(4,20,35,.35);overflow:auto}.workflow-dialog::backdrop{background:rgba(7,25,43,.62);backdrop-filter:blur(3px)}.workflow-dialog-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #dce4ec;background:#fff}.workflow-dialog-header small,.workflow-dialog-header h2{display:block}.workflow-dialog-header small{color:var(--finance-cyan);font-weight:700;text-transform:uppercase;letter-spacing:.06em}.workflow-dialog-header h2{margin:3px 0 0;color:var(--finance-navy)}.workflow-dialog-header>button{width:38px;height:38px;margin:0;padding:0;border-radius:50%;background:#edf2f7;color:var(--finance-navy);font-size:24px}.workflow-dialog .workflow-form{padding:20px;border:0;border-radius:0;background:#fff}.workflow-dialog .workflow-form h3{display:none}

.staff-subscription-dialog{width:min(960px,calc(100vw - 24px))}.staff-subscription-content{padding:18px 20px 22px}.staff-subscription-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.staff-subscription-summary>div{padding:12px 14px;border:1px solid #d9e4ee;border-radius:10px;background:#f7fafc}.staff-subscription-summary small,.staff-subscription-summary strong{display:block}.staff-subscription-summary small{color:#60758c;font-size:10px;text-transform:uppercase}.staff-subscription-summary strong{margin-top:4px;color:#123f6d}.staff-subscription-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}.staff-subscription-toolbar>small{max-width:570px;color:#60758c}.subscription-cycle{display:inline-flex;padding:3px;border-radius:10px;background:#e9f0f7}.subscription-cycle button{width:fit-content;min-height:34px;margin:0;padding:6px 13px;border:0;background:transparent;color:#29465f;font-size:12px}.subscription-cycle button.active{background:#0b8f76;color:#fff;box-shadow:0 2px 7px #0b8f7630}.staff-subscription-plans{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 12px;scroll-snap-type:x proximity}.staff-subscription-plan{display:flex;flex:0 0 230px;flex-direction:column;min-height:390px;padding:16px;border:1px solid #d7e3ed;border-radius:13px;background:#fff;scroll-snap-align:start}.staff-subscription-plan.current{border:2px solid #0b8f76;background:#f0fbf8}.staff-subscription-plan header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.staff-subscription-plan header small{display:block;min-height:30px;color:#60758c;font-size:10px}.staff-subscription-plan h3{margin:4px 0 0;color:#123f6d;font-size:19px}.staff-subscription-plan header>span{padding:3px 7px;border-radius:999px;background:#0b8f76;color:#fff;font-size:9px;text-transform:uppercase}.subscription-price{display:flex;align-items:baseline;gap:4px;margin:15px 0 3px;color:#123f6d}.subscription-price strong{font-size:20px}.subscription-price span,.subscription-seat-limit,.subscription-more{color:#60758c;font-size:10px}.staff-subscription-plan ul{flex:1;margin:12px 0;padding-left:18px;color:#29465f;font-size:11px;line-height:1.55}.staff-subscription-plan li::marker{color:#0b8f76}.staff-subscription-plan>button{width:fit-content;max-width:100%;min-height:36px;margin-top:12px;padding:7px 12px;font-size:11px}.staff-subscription-plan>button:disabled{background:#dce4eb;color:#6d7e8e;cursor:not-allowed}
html[data-theme="dark"] .staff-subscription-content,html[data-theme="dark"] .staff-subscription-plan{background:#0d1a29;color:#edf4ff}html[data-theme="dark"] .staff-subscription-summary>div{border-color:#2b3d53;background:#132337}html[data-theme="dark"] .staff-subscription-summary strong,html[data-theme="dark"] .staff-subscription-plan h3,html[data-theme="dark"] .subscription-price{color:#f4f8ff}html[data-theme="dark"] .staff-subscription-plan{border-color:#2b3d53}html[data-theme="dark"] .staff-subscription-plan.current{border-color:#24b99c;background:#102b2a}html[data-theme="dark"] .staff-subscription-plan ul,html[data-theme="dark"] .staff-subscription-toolbar>small,html[data-theme="dark"] .staff-subscription-plan header small,html[data-theme="dark"] .subscription-price span,html[data-theme="dark"] .subscription-seat-limit,html[data-theme="dark"] .subscription-more{color:#bfd0e2}
@media(max-width:680px){.staff-subscription-content{padding:12px}.staff-subscription-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.staff-subscription-summary>div{padding:9px}.staff-subscription-toolbar{align-items:flex-start;flex-direction:column;margin:12px 0}.staff-subscription-toolbar>small{font-size:9px}.staff-subscription-plan{flex-basis:205px;min-height:360px;padding:13px}.staff-subscription-plan h3{font-size:16px}.subscription-price strong{font-size:17px}}
.material-requisition-dialog{width:min(1000px,calc(100vw - 24px))}.material-entry-wrap,.material-submission-table{max-height:none}.material-entry-table{min-width:820px}.material-entry-table input{min-width:0;margin:0}.material-entry-table [data-material-field="item"]{width:190px}.material-entry-table [data-material-field="specification"]{width:250px}.material-entry-table [data-material-field="quantity"]{width:95px}.material-entry-table [data-material-field="unitPrice"]{width:125px}.material-item-control{display:grid;grid-template-columns:minmax(150px,1fr) 30px;gap:6px;align-items:center}.workflow-form .material-item-control button{width:30px;height:30px;min-height:30px;margin:0;padding:0;border-radius:50%;background:#fff0f2;color:#a61b32;font-size:18px}.material-entry-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 18px}.workflow-form .material-entry-actions button{width:auto;margin:0;padding:8px 12px}.material-entry-actions strong{color:var(--finance-navy);white-space:nowrap}.material-entry-table output,.material-entry-actions output{font-weight:800;color:var(--finance-navy)}.material-submission-table{margin:12px 0}.material-submission-table .admin-table{min-width:max-content}.material-submission-table th,.material-submission-table td{white-space:nowrap}
.material-grand-total-row th{border-top:2px solid var(--finance-navy)!important;background:#e6eef6!important;color:var(--finance-navy)!important;font-size:12px!important}.material-grand-total-row th:first-child{text-align:right}.material-grand-total-row output{font-weight:800;color:var(--finance-navy)}
html[data-theme="dark"] .material-entry-table output{color:#fff}
.tax-breakdown-dialog{width:min(980px,calc(100vw - 24px));padding:20px}.tax-breakdown-dialog h2{margin-top:0;color:var(--finance-navy)}.tax-breakdown-close{position:sticky;bottom:0;display:flex;justify-content:flex-end;padding:10px 0;background:#fff}.tax-breakdown-close button{margin:0}

@media (max-width:900px){
  .staff-app-layout{grid-template-columns:210px minmax(0,1fr)}.staff-main-content{padding:22px 18px 40px}.workflow-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
  .staff-page{padding-bottom:0}.staff-page .staff-topbar{height:58px}.staff-app-layout{display:block;min-height:calc(100vh - 58px)}.staff-main-content{padding:15px 8px 25px}.staff-menu-toggle{display:inline-flex;padding:7px 10px;font-size:12px}.staff-sidebar-open{overflow:hidden}.staff-desktop-tools{display:none}.staff-brand .nav-logo{cursor:pointer}.staff-brand.is-refreshing .nav-logo{animation:button-spin .75s linear infinite}.staff-sidebar .staff-sidebar-heading{position:relative;padding-right:58px}.staff-sidebar-theme{position:absolute;right:4px;top:0;display:grid;place-items:center;width:38px;height:38px;min-height:38px;margin:0;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(255,255,255,.09);color:#fff}.staff-sidebar-theme:hover{background:rgba(255,255,255,.16)}.staff-sidebar-theme span{font-size:19px;line-height:1}
  .staff-sidebar{position:fixed;left:0;right:auto;top:58px;bottom:0;z-index:120;width:min(84vw,310px);height:auto;padding:18px 12px calc(14px + env(safe-area-inset-bottom));border:0;border-right:1px solid #284b6b;background:linear-gradient(180deg,var(--finance-navy) 0,#0b2239 100%);transform:translateX(-105%);transition:transform .24s ease;overflow:hidden}.staff-sidebar.is-open{transform:translateX(0);box-shadow:18px 0 45px rgba(4,20,35,.32)}.staff-sidebar-heading{display:block}.staff-sidebar-note{display:flex}.staff-page .staff-tabs{display:grid;grid-template-columns:1fr;margin:12px 0;overflow-x:hidden;overflow-y:auto;gap:5px;scrollbar-width:thin}.staff-page .staff-tabs .child-card{width:100%;min-width:0;min-height:44px;padding:10px 12px;text-align:left;font-size:13px}.staff-page .staff-tabs .child-card.selected{box-shadow:inset 3px 0 0 var(--finance-cyan)}
  .staff-sidebar-scrim{position:fixed;inset:58px 0 0;z-index:110;display:block;margin:0;padding:0;border:0;border-radius:0;background:rgba(7,25,43,.56);backdrop-filter:blur(2px)}
  .staff-page .staff-panel{padding:14px}.workflow-primary-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px;width:100%;margin-top:10px}.workflow-primary-actions button{flex:0 0 auto;width:fit-content;min-width:0;min-height:29px;padding:6px 7px;font-size:9px;line-height:1;white-space:nowrap}.workflow-primary-actions .finance-workflow-refresh{display:grid;place-items:center;width:29px;height:29px;min-width:29px;padding:0;font-size:17px}.workflow-primary-actions .finance-workflow-refresh span{display:block;line-height:1}.workflow-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-kpis>div{padding:12px}.workflow-kpis strong{font-size:21px}
  .material-requisition-dialog{max-height:94vh;max-height:94dvh;border-radius:11px}
  .material-requisition-dialog .workflow-dialog-header{padding:10px 12px}
  .material-requisition-dialog .workflow-dialog-header small{font-size:8px;line-height:1.1}
  .material-requisition-dialog .workflow-dialog-header h2{margin-top:2px;font-size:14px;line-height:1.2}
  .material-requisition-dialog .workflow-dialog-header>button{width:30px;height:30px;min-height:30px;font-size:19px}
  .material-requisition-dialog .workflow-form{padding:10px 12px 14px;font-size:10px}
  .material-requisition-dialog .workflow-form>label{margin:6px 0 3px;font-size:10px;font-weight:600;line-height:1.2}
  .material-requisition-dialog .workflow-form>label input,
  .material-requisition-dialog .workflow-form>label textarea{min-height:33px;margin-top:3px;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.25}
  .material-requisition-dialog .workflow-form>label textarea{min-height:44px}
  .material-requisition-dialog .workflow-form>.muted{margin:5px 0;font-size:9px;line-height:1.35}
  .material-requisition-dialog .material-entry-wrap{margin:6px -12px 7px;padding:0 12px}
  .material-requisition-dialog .material-entry-table{min-width:630px}
  .staff-page .material-requisition-dialog .material-entry-table th,
  .staff-page .material-requisition-dialog .material-entry-table td{padding:4px 5px;font-size:9px}
  .material-requisition-dialog .material-entry-table input{min-height:30px;padding:5px 6px;font-size:10px}
  .material-requisition-dialog .material-entry-table [data-material-field="item"]{width:132px}
  .material-requisition-dialog .material-entry-table [data-material-field="specification"]{width:158px}
  .material-requisition-dialog .material-entry-table [data-material-field="quantity"]{width:70px}
  .material-requisition-dialog .material-entry-table [data-material-field="unitPrice"]{width:90px}
  .material-requisition-dialog .material-item-control{grid-template-columns:minmax(102px,1fr) 26px;gap:4px}
  .material-requisition-dialog .workflow-form .material-item-control button{width:26px;height:26px;min-height:26px;font-size:14px}
  .material-requisition-dialog .material-entry-actions{margin:5px 0 9px}
  .material-requisition-dialog .workflow-form .material-entry-actions button,
  .material-requisition-dialog .workflow-form>button[type="submit"]{min-height:30px;padding:6px 8px;font-size:10px;line-height:1}
}
@media (max-width:420px){.workflow-kpis{grid-template-columns:1fr 1fr}.staff-page .staff-summary{grid-template-columns:1fr 1fr}.staff-page .staff-summary div{min-height:84px;padding:12px}.staff-page .staff-summary strong{font-size:21px}}

/* Unified staff accounts */
.staff-user-list{display:grid;gap:9px;margin-top:18px}.staff-user-row{display:grid;grid-template-columns:48px minmax(180px,1fr) auto auto;gap:12px;align-items:center;padding:13px;border:1px solid #dce4ec;border-radius:10px;background:#fff}.staff-user-row:hover{border-color:#afc1d2;background:#fbfdff}.staff-user-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--finance-navy-2),var(--finance-cyan));color:#fff;font-weight:700}.staff-user-copy{min-width:0}.staff-user-copy strong,.staff-user-copy span,.staff-user-copy small{display:block;overflow-wrap:anywhere}.staff-user-copy span{margin-top:2px;color:#486581;font-size:13px}.staff-user-copy small{margin-top:3px;color:#829ab1}.staff-user-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.staff-password-dialog .workflow-form>button{width:fit-content}.staff-password-dialog .dashboard-signout{margin-top:8px}
.staff-security-activity{margin-top:28px;padding-top:20px;border-top:1px solid #dce4ec}.staff-security-activity h2{margin-bottom:10px}
.role-access-settings{margin-top:18px;padding:18px;border:1px solid #dce4ec;border-radius:12px;background:#fff}.role-access-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.role-access-heading h2{margin:2px 0 4px}.role-access-heading p{margin:0}.role-access-scope{flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#e7f7f3;color:#087360;font-size:11px;font-weight:800}.role-access-editor{margin-top:16px}.role-access-role{display:grid;grid-template-columns:minmax(140px,220px);gap:5px;font-weight:700}.role-access-source{min-height:20px;margin:8px 0 0;color:#627d98;font-size:12px}.role-access-modules{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.role-access-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:13px}.role-access-actions .status{flex:1;margin:0}.role-access-actions button{width:fit-content;margin:0}.role-access-actions button.secondary{border-color:#b8c7d5;background:#fff;color:#244b70}
@media (max-width:760px){.staff-user-row{grid-template-columns:44px minmax(0,1fr) auto auto}.staff-user-actions{grid-column:auto;display:flex}}
@media (max-width:440px){.staff-user-row{grid-template-columns:40px minmax(0,1fr) auto;padding:9px;gap:8px}.staff-user-avatar{grid-column:1;grid-row:1/3;width:38px;height:38px}.staff-user-copy{grid-column:2;grid-row:1/3}.staff-user-row>.workflow-status{grid-column:3;grid-row:1;justify-self:end}.staff-user-actions{grid-column:3;grid-row:2;justify-self:end}}

/* Shared configuration surfaces inside the web companion. */
.config-card{margin:18px 0;padding:0;border:1px solid #dce4ec;border-radius:12px;background:#fff;overflow:hidden}
.config-card-heading{padding:17px 18px;border-bottom:1px solid #e4eaf0;background:#f9fbfc}.config-card-heading small{color:var(--finance-cyan);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.config-card-heading h3{margin:3px 0;color:var(--finance-navy);font-size:17px}.config-card-heading p{margin:3px 0 0;color:#718096;font-size:12px}
.config-card .config-form{margin:0;padding:18px;border:0;border-radius:0;background:#fff}.config-form>label{margin:0}.config-form label{color:#26354a;font-size:13px}.config-form label>small{display:block;margin-top:5px;color:#718096;font-weight:400}
.config-form input,.config-form select,.config-form textarea,.config-dialog-form input,.config-dialog-form select{min-height:43px;border-color:#cbd7e5;background:#fff}.config-form input:focus,.config-form select:focus,.config-dialog-form input:focus,.config-dialog-form select:focus{border-color:#3974aa;outline:0;box-shadow:0 0 0 3px rgba(57,116,170,.12)}
.config-actionbar{grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,1fr) auto;gap:13px;align-items:center;margin:3px -18px -18px;padding:13px 18px;border-top:1px solid #e4eaf0;background:#f9fbfc}.config-actionbar label,.config-actionbar .status,.config-actionbar button{margin:0}.workflow-form .config-actionbar button{width:fit-content}
.config-details{margin:14px 0 22px;border:1px solid #dce4ec;border-radius:12px;background:#fff;overflow:hidden}.config-details>summary{padding:15px 18px;cursor:pointer;list-style:none;color:var(--finance-navy);font-weight:750}.config-details>summary::-webkit-details-marker{display:none}.config-details>summary::after{content:'+';float:right;width:25px;height:25px;border-radius:7px;background:#edf3f8;text-align:center;line-height:25px}.config-details[open]>summary::after{content:'–'}.config-details>summary span,.config-details>summary small{display:block}.config-details>summary small{margin-top:2px;color:#718096;font-size:11px;font-weight:400}.config-details[open]>summary{border-bottom:1px solid #e4eaf0;background:#f9fbfc}.config-details .config-form{margin:0;padding:18px;border:0;border-radius:0;background:#fff}.config-details>.workflow-record-list{margin:0;padding:0 18px 18px}
.store-category-list{gap:6px}.store-category-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:44px;padding:7px 9px;border-radius:8px}.store-category-copy{min-width:0}.store-category-copy strong,.store-category-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-category-copy strong{font-size:13px}.store-category-copy small{margin-top:1px;color:#718096;font-size:10px}.store-category-actions{display:flex;align-items:center;gap:9px}.store-category-edit{display:grid;place-items:center;width:24px!important;height:24px;min-height:24px!important;margin:0!important;padding:0!important;border:0;border-radius:50%;background:transparent!important;color:#9a6800!important;font-size:16px;line-height:1}.store-category-edit:hover{background:#fff2cf!important}.store-category-edit:focus-visible{outline:2px solid currentColor;outline-offset:2px}.store-category-toggle{display:flex!important;align-items:center;gap:5px;margin:0!important;color:#486581!important;font-size:10px!important;white-space:nowrap;cursor:pointer}.store-category-toggle input{width:15px;height:15px;min-height:15px;margin:0;accent-color:#15936f}
.store-order-record{padding:11px}.store-order-record>p{margin:6px 0}.store-order-status{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;min-height:38px;margin:8px 0 0;padding:8px 13px;border-radius:8px;background:#08775f;font-size:12px;font-weight:600;white-space:nowrap}.store-order-status:hover{background:#075f4d}.store-order-status.is-collected,.store-order-status.is-collected:disabled{border:1px solid #b9e6d1;background:#e8f7ee;color:#14724a;opacity:1}
.department-primary-workflow{border-left:4px solid #15936f}.workflow-wide-field{grid-column:1/-1}.wallet-account-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 18px 14px}.wallet-account-result>div,.report-recipient-preview{display:grid;gap:3px;padding:12px;border:1px solid #cbd7e5;border-radius:9px;background:#f3f8fc}.wallet-account-result small{color:#60758c;font-size:10px;text-transform:uppercase}.wallet-account-result strong{color:#102a43;font-size:17px}.wallet-account-result span,.report-recipient-preview span{color:#526174;font-size:11px}.inline-action-group{display:flex;justify-content:flex-end;gap:8px}.market-list-table{max-height:330px;margin:13px 0}.market-list-table table{min-width:560px}.market-list-table th,.market-list-table td{padding:7px 9px}.market-list-table input[type="checkbox"]{width:17px;height:17px;min-height:17px;margin:0}.market-list-table input[type="number"]{width:100px;min-height:34px;margin:0;padding:5px 7px}
.department-workspace-links{position:sticky;top:68px;z-index:5;display:flex;gap:8px;margin:12px 0;padding:8px;border:1px solid #ccd9e6;border-radius:12px;background:rgba(248,251,253,.96);box-shadow:0 5px 16px rgba(15,42,67,.08);backdrop-filter:blur(8px)}.department-workspace-links button{display:inline-flex;align-items:center;gap:6px;width:fit-content;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#29445e;font-size:12px}.department-workspace-links button:hover,.department-workspace-links button.active{border-color:#15936f;background:#e4f7f1;color:#08694f}.tuck-shop-pos-workspace{border:2px solid #15936f;box-shadow:0 8px 24px rgba(8,105,79,.1);scroll-margin-top:125px}.tuck-shop-pos-workspace .config-card-heading{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#e9fbf5,#f8fbfd)}.workspace-feature-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#15936f;color:#fff;font-size:23px}.purchase-step-label{display:flex;align-items:center;gap:9px;margin:14px 18px 0;color:#173b58;font-size:13px;font-weight:700}.purchase-step-label strong{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#0d6efd;color:#fff;font-size:12px}#departmentInventoryWorkspace,#departmentStockWorkspace,#departmentPurchaseHistory{scroll-margin-top:125px}
.tuck-shop-pos-workspace #tuckShopNfcScan{border-color:#087f73;background:#087f73;color:#fff}.tuck-shop-pos-workspace #tuckShopNfcScan.nfc-unavailable{border-color:#9ba9b8;background:#eef2f6;color:#536273}
.organization-commerce-workspace{border:2px solid #15936f;box-shadow:0 10px 28px rgba(8,105,79,.1)}.organization-commerce-workspace .commerce-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(110deg,#e8faf4,#f4f8ff)}.commerce-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:14px 18px;border-bottom:1px solid #dce7ef;background:#f9fbfd}.commerce-summary-grid>div{display:grid;gap:2px;padding:11px;border:1px solid #d6e3ed;border-radius:10px;background:#fff}.commerce-summary-grid small{color:#60758c;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.commerce-summary-grid strong{color:#123f6d;font-size:18px}.commerce-summary-grid span{color:#718096;font-size:10px}.commerce-pos-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:start}.commerce-catalog,.commerce-cart{min-width:0;padding:16px 18px}.commerce-catalog{border-right:1px solid #dce7ef}.commerce-search-label{display:grid;gap:5px;margin:0 0 10px;color:#29445e;font-size:11px;font-weight:750}.commerce-search-label input,.commerce-checkout-form input,.commerce-checkout-form select{min-height:37px;margin:0;padding:7px 9px;border:1px solid #c6d5e4;border-radius:8px;background:#fff;color:#17324d;font-size:12px}.commerce-product-list{display:grid;gap:7px;max-height:420px;overflow:auto;padding-right:3px;overscroll-behavior:contain}.commerce-product{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:62px;padding:9px 10px;border:1px solid #d5e1eb;border-radius:10px;background:#fff}.commerce-product>div:first-child{min-width:0}.commerce-product strong,.commerce-product span,.commerce-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commerce-product strong{color:#17324d;font-size:12px}.commerce-product span{margin-top:2px;color:#60758c;font-size:10px}.commerce-product small{margin-top:4px;color:#08775f;font-size:10px;font-weight:700}.commerce-product-action{display:flex;align-items:center;gap:6px}.commerce-product-action select,.commerce-cart-line select{width:55px;min-height:31px;margin:0;padding:4px 5px;border:1px solid #c6d5e4;border-radius:7px;background:#fff;color:#17324d;font-size:11px}.commerce-add-button{display:grid!important;place-items:center;width:30px!important;height:30px;min-height:30px!important;margin:0!important;padding:0!important;border:1px solid #c7d8e7!important;border-radius:50%!important;background:#f4f8fb!important;color:#1769e0!important}.commerce-add-button.is-added{border-color:#87d8bd!important;background:#e1f7ef!important;color:#08775f!important}.commerce-cart-title{display:flex;align-items:end;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #dce7ef}.commerce-cart-title small,.commerce-cart-title h4{display:block;margin:0}.commerce-cart-title small{color:#15936f;font-size:9px;font-weight:800;text-transform:uppercase}.commerce-cart-title h4{color:#17324d;font-size:16px}.commerce-cart-title>strong{color:#08775f;font-size:18px}.commerce-cart-lines{display:grid;gap:6px;max-height:260px;margin:10px 0;overflow:auto}.commerce-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:7px;padding:8px;border:1px solid #dce5ed;border-radius:9px;background:#f9fbfc}.commerce-cart-line>div{min-width:0}.commerce-cart-line>div strong,.commerce-cart-line>div span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commerce-cart-line>div strong{color:#17324d;font-size:11px}.commerce-cart-line>div span{color:#718096;font-size:9px}.commerce-cart-line>strong{color:#17324d;font-size:11px;white-space:nowrap}.commerce-cart-line .compact-delete-action{width:25px!important;height:25px;min-height:25px!important;margin:0!important;padding:0!important}.commerce-checkout-form{padding-top:10px;border-top:1px solid #dce7ef}.commerce-customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.commerce-customer-grid label{display:grid;gap:4px;margin:0;color:#29445e;font-size:10px;font-weight:700}.commerce-checkout-total{display:flex;align-items:center;justify-content:space-between;margin:11px 0 0;padding:10px 12px;border-radius:9px;background:#e6f7f1;color:#08725c}.commerce-checkout-total span{font-size:11px;font-weight:700}.commerce-checkout-total strong{font-size:18px}.commerce-checkout-form .config-actionbar{display:flex;justify-content:space-between;margin:10px -18px -16px;padding:11px 18px}.commerce-checkout-form .config-actionbar .status{flex:1}.commerce-checkout-form .config-actionbar button{flex:0 0 auto;width:fit-content;min-height:35px;margin:0;padding:7px 13px}.commerce-empty{padding:13px;text-align:center}.commerce-receipt-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;margin:13px 18px 0;padding:11px 13px;border:1px solid #9dddc6;border-radius:10px;background:#e7f8f1}.commerce-receipt-preview>div:first-child small,.commerce-receipt-preview>div:first-child strong,.commerce-receipt-preview>div:first-child span{display:block}.commerce-receipt-preview small{color:#526f67;font-size:9px}.commerce-receipt-preview strong{color:#08694f;font-size:12px}.commerce-receipt-preview span{color:#365b50;font-size:10px}.commerce-receipt-preview>small{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commerce-sales-history{border-top:1px solid #dce7ef}.commerce-sales-history>summary{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;background:#f9fbfd;color:#17324d;font-size:12px;font-weight:750;cursor:pointer}.commerce-sales-history>summary span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:50%;background:#e5eef6;color:#31546f;font-size:10px}.commerce-sales-history .table-wrap{max-height:360px;margin:0;padding:0 18px 18px}.commerce-sales-history table{min-width:720px}.commerce-sales-history th,.commerce-sales-history td{padding:7px 8px;font-size:10px}.commerce-sale-status{display:inline-flex;margin-top:3px;padding:2px 6px;border-radius:999px;font-size:8px;font-weight:800}.commerce-sale-status.is-paid{background:#ddf6e9;color:#087049}.commerce-sale-status.is-pending{background:#fff1c7;color:#875b00}.commerce-inventory-active{align-self:end;min-height:43px;padding:9px 11px;border:1px solid #dce4ec;border-radius:8px;background:#f8fafc}
.config-dialog-form{display:grid;gap:0!important;padding:0!important}.config-group{padding:18px 20px;border-bottom:1px solid #e4eaf0}.config-group>header{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:13px}.config-group>header strong{color:var(--finance-navy);font-size:14px}.config-group>header small{color:#718096;font-size:11px;text-align:right}.config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.config-grid>label{margin:0}.config-switch{align-self:center;padding:11px;border:1px solid #dce4ec;border-radius:8px;background:#f8fafc}.config-toggle-stack{display:grid;align-content:center;gap:10px;padding:10px 0}.config-toggle-stack label{margin:0}
.config-option-list{margin-top:14px;padding:13px;border:1px solid #dce4ec;border-radius:9px;background:#f8fafc}.config-option-list>strong{display:block;margin-bottom:9px;color:#486581;font-size:12px}.config-option-list label{margin:7px 0;font-size:12px}.config-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 14px;margin-top:0}.config-dialog-actions{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px 20px;background:#fff;box-shadow:0 -5px 16px rgba(16,42,67,.08)}.config-dialog-actions .status,.config-dialog-actions button{margin:0}.workflow-form .config-dialog-actions button{width:fit-content}.config-dialog-action-buttons{display:flex;align-items:center;justify-content:flex-end;gap:10px}.subscription-plans-link{width:fit-content;color:#0b57d0;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:2px}.subscription-plans-link:hover{color:#083b91}
.config-option-list .check-row{display:flex;align-items:center;gap:8px;min-height:28px;margin:3px 0}
.config-option-list .check-row input[type="checkbox"]{flex:0 0 15px;width:15px;height:15px;min-height:15px;margin:0;padding:0}
#staffUserDialog{width:min(780px,calc(100vw - 24px))}
.student-profile-dialog{width:min(920px,calc(100vw - 24px))}.student-login-guidance{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 20px;border-bottom:1px solid #dce4ec;background:#edf7ff;color:#274b6d}.student-login-guidance strong{color:var(--finance-navy)}.student-login-guidance span{font-size:12px;text-align:right}.student-code-generator{width:auto!important;min-height:32px!important;margin:7px 0 0!important;padding:6px 9px!important;background:#edf3f8!important;color:var(--finance-navy)!important;font-size:11px!important}.table-action{width:auto;margin:0;padding:7px 11px;font-size:12px}
.student-profile-dialog .workflow-dialog-header h2{font-size:17px;font-weight:400}.student-profile-dialog .student-login-guidance strong{font-size:12px;font-weight:400}.student-profile-dialog .student-login-guidance span{font-size:10px;font-weight:400}.student-profile-dialog .config-group>header strong{font-size:12px;font-weight:400}.student-profile-dialog .config-grid>label{font-size:11px;font-weight:400}.student-profile-dialog .config-grid input,.student-profile-dialog .config-grid select{min-height:38px;padding:8px 10px;font-size:13px;font-weight:400}.student-profile-dialog .config-dialog-actions button{font-size:12px;font-weight:400}
.student-edit-icon{display:grid;place-items:center;width:28px;height:28px;min-height:28px!important;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#c98500;font-size:20px;line-height:1}.student-edit-icon:hover{background:#fff2cf;color:#8b6000}.student-edit-icon:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media (max-width:680px){.config-actionbar{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:2px}.config-actionbar .status{flex:1 1 180px}.workflow-form .config-actionbar button{width:fit-content}.config-group{padding:15px}.config-group>header{display:block}.config-group>header small{display:block;margin-top:3px;text-align:left}.config-grid,.config-option-grid{grid-template-columns:1fr}.config-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}.config-dialog-actions .status{flex:1 1 180px}.config-dialog-action-buttons{flex-wrap:wrap}.workflow-form .config-dialog-actions button{width:fit-content}}
@media (max-width:680px){.wallet-account-result{grid-template-columns:1fr;margin:0 12px 12px}.inline-action-group{display:grid;grid-template-columns:1fr 1fr}.workflow-wide-field{grid-column:auto}.market-list-table{margin-inline:-8px}.department-workspace-links{top:4px;overflow-x:auto;white-space:nowrap}.department-workspace-links button{flex:0 0 auto}.workspace-feature-icon{width:40px;height:40px}.purchase-step-label{margin-inline:12px}}
@media (max-width:980px){.commerce-pos-layout{grid-template-columns:1fr}.commerce-catalog{border-right:0;border-bottom:1px solid #dce7ef}.commerce-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.organization-commerce-workspace{margin-inline:-4px}.organization-commerce-workspace .commerce-heading{padding:13px}.commerce-summary-grid{gap:6px;padding:9px}.commerce-summary-grid>div{min-height:65px;padding:8px}.commerce-summary-grid strong{font-size:15px}.commerce-catalog,.commerce-cart{padding:12px}.commerce-product-list{max-height:350px}.commerce-product{padding:8px}.commerce-customer-grid{grid-template-columns:1fr}.commerce-checkout-form .config-actionbar{align-items:center;margin:9px -12px -12px;padding:10px 12px}.commerce-checkout-form .config-actionbar .status{flex:1 1 100%;text-align:left}.commerce-cart-line{grid-template-columns:minmax(0,1fr) auto auto}.commerce-cart-line>strong{grid-column:2}.commerce-cart-line .compact-delete-action{grid-column:3;grid-row:1/3}.commerce-receipt-preview{margin:10px 10px 0}.commerce-sales-history .table-wrap{padding-inline:10px}.commerce-sales-history>summary{padding-inline:12px}}
@media (max-width:680px){.student-login-guidance{display:block;padding:12px 15px}.student-login-guidance span{display:block;margin-top:4px;text-align:left}}

/* Personalization, compact dashboards, and isolated record scrolling */
[hidden]{display:none!important}
.web-logo-picker{display:flex;align-items:center;gap:14px}.web-logo-picker img{width:92px;height:72px;object-fit:contain;padding:5px;border:1px solid var(--line);border-radius:8px;background:#fff}.web-logo-picker input{margin:0 0 8px}.web-logo-picker button{margin:0 8px 0 0}
.metric-row{grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:6px;margin-bottom:8px}.metric-row div{padding:6px}.metric-row strong{font-size:15px}.metric-row span{font-size:11px}
.staff-page .staff-summary{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:7px}.staff-page .staff-summary div{min-height:58px;padding:9px 10px 8px;border-radius:8px}.staff-page .staff-summary strong{font-size:18px}.staff-page .staff-summary span{font-size:9px}
.staff-page .staff-summary .student-summary-card{min-width:150px}.student-summary-card small{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:5px;color:#526174;font-size:9px}.student-summary-card small b{color:var(--finance-navy);font-size:11px}.student-summary-card small i{width:1px;height:11px;background:#c9d4df}
.workflow-kpis{gap:7px;margin:11px 0}.workflow-kpis>div{padding:9px;border-radius:8px}.workflow-kpis strong{margin:3px 0;font-size:18px}.workflow-kpis small,.workflow-kpis span{font-size:9px}
.admin-table-wrap{max-height:420px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.admin-table thead{position:sticky;top:0;z-index:1}.workflow-record-list,.staff-user-list{max-height:440px;overflow:auto;padding-right:5px;overscroll-behavior:contain;scrollbar-gutter:stable}
/* Keep shared workspace tables readable: columns retain their content width and the wrapper scrolls. */
.admin-table-wrap{
  overflow-x:auto;
  overflow-y:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.admin-table{
  width:max-content;
  min-width:100%;
  table-layout:auto;
}
.admin-table th,
.admin-table td{
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
}
.document-actions summary{cursor:pointer;color:var(--blue);font-weight:700;white-space:nowrap}.document-action-row{display:grid;grid-template-columns:minmax(130px,1fr) auto auto auto;gap:7px;align-items:center;min-width:360px;padding:7px 0;border-bottom:1px solid var(--line)}.document-action-row:last-child{border-bottom:0}.document-action-row a{display:inline-block;padding:5px 7px;border-radius:5px;background:#eaf2ff;color:var(--blue);font-size:11px;font-weight:700;text-decoration:none}.document-action-row .document-delete{padding:5px 7px;border:0;border-radius:5px;background:#b42318;color:#fff;font-size:11px;font-weight:700}
@media (max-width:680px){.staff-page .staff-summary div{min-height:54px;padding:8px}.staff-page .staff-summary strong{font-size:17px}.workflow-kpis>div{padding:8px}.workflow-kpis strong{font-size:17px}.admin-table-wrap{max-height:58vh}.workflow-record-list,.staff-user-list{max-height:58vh}.web-logo-picker{align-items:flex-start}.web-logo-picker img{width:72px;height:60px}}
@media (max-width:680px){.role-access-settings{padding:13px}.role-access-heading{display:block}.role-access-scope{display:inline-flex;margin-top:8px}.role-access-modules{grid-template-columns:1fr 1fr}.role-access-actions{flex-wrap:wrap}.role-access-actions .status{flex-basis:100%}.role-access-actions button{font-size:10px}}
.staff-page{min-height:100vh;min-height:100dvh}.staff-page .staff-shell{min-height:calc(100vh - 68px);min-height:calc(100dvh - 68px)}.staff-page .staff-dashboard,.staff-app-layout{min-height:inherit}.staff-main-content{min-height:calc(100vh - 68px);min-height:calc(100dvh - 68px)}
@media (max-width:680px){.staff-page .staff-shell,.staff-main-content{min-height:calc(100vh - 58px);min-height:calc(100dvh - 58px)}}
.payslip-download{display:inline-block;width:auto;min-height:0;margin:0;padding:6px 9px;border:0;border-radius:6px;background:var(--finance-navy);color:#fff;font-size:11px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap}.payslip-download:hover{background:var(--finance-cyan);color:#fff}
.store-cart-panel{margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.store-cart-panel>button{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;min-height:38px;margin-top:7px;padding:8px 14px;white-space:nowrap}.store-cart-panel h2{margin:0 0 6px;font-size:16px}.admission-document-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.admission-document-flow .activity-item{display:flex;flex-direction:column;gap:7px}.admission-document-flow button{margin:0}.admission-document-flow .document-download-status{min-height:2.5em;color:var(--blue)}.admission-document-flow .document-download-status.bad{color:var(--bad);font-weight:700}.admission-document-flow .document-download-status.good{color:var(--ok);font-weight:700}
.store-catalog-section .activity-item,.store-cart-panel .activity-item{padding:6px 9px;margin:3px 0;min-height:0}.store-catalog-section h3{margin:8px 0 4px}.store-catalog-section .store-item-row{gap:2px 6px}.store-catalog-section .store-item-row>strong{font-size:13px;line-height:1.2}.store-catalog-section .store-item-row>span{margin:0;font-size:12px;line-height:1.2}.store-catalog-section .store-item-row>small{margin:0;font-size:11px;line-height:1.2}
.store-search-control{display:block;max-width:520px;margin:12px 0 4px;color:var(--text);font-size:11px;font-weight:400}.store-search-control span{display:block;margin-bottom:4px}.store-search-control input{height:36px;min-height:36px;padding:6px 10px;font-size:12px;font-weight:400}.store-search-summary{min-height:16px;margin:0 0 7px;font-size:10px}
.store-cart-panel .store-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 6px;align-items:center}.store-cart-panel .store-item-row strong{font-size:12px;line-height:1.2}.store-cart-panel .store-item-row span,.store-cart-panel .store-item-row small{grid-column:1;margin:0;font-size:10px;line-height:1.2}.store-cart-panel .store-item-row button{grid-column:2;grid-row:1/4;width:28px!important;min-width:28px!important;height:28px;min-height:28px;padding:0;margin:0;white-space:nowrap}
.pwa-install{position:fixed;left:50%;bottom:18px;z-index:1000;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:min(560px,calc(100% - 28px));padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 35px #0f274733}.pwa-install p{flex:1;margin:0}.pwa-install button{width:auto;margin:0;white-space:nowrap}.pwa-install .pwa-dismiss{background:#eef2f6;color:var(--text)}
.staff-page .school-store-panel .admin-table th,.staff-page .school-store-panel .admin-table td{padding:5px 9px}.staff-page .school-store-panel .workflow-record{padding:8px 11px}.staff-page .school-store-panel .workflow-record p{margin:5px 0}
@media (max-width:760px){.admission-document-flow{grid-template-columns:1fr}}

/* DIGC mobile command centre */
.staff-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--finance-navy-2),var(--finance-cyan));color:#fff;font-weight:800;text-align:center}
.staff-mobile-nav,.staff-module-dialog{display:none}

@media (max-width:680px){
  .staff-page{--mobile-navy:#071b33;--mobile-navy-soft:#102d4c;--mobile-gold:#f5bd2e;--mobile-blue:#0d62d6;background:#eef3f8;padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  .staff-page .staff-topbar{position:sticky;top:0;z-index:100;height:76px;padding:10px 13px;border:0;background:linear-gradient(135deg,var(--mobile-navy),#0c3157);box-shadow:0 7px 22px rgba(4,20,35,.2)}
  .staff-brand{min-width:0;color:#fff}.staff-brand .nav-logo{width:42px;height:42px;max-width:42px;object-fit:contain}.staff-brand span{min-width:0}.staff-brand strong{max-width:43vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:13px}.staff-brand small{margin-top:2px;color:#afc8df;font-size:10px;letter-spacing:.04em}
  .staff-identity{gap:8px}.staff-identity-copy{display:none!important}.staff-avatar{display:grid!important;flex-basis:40px;width:40px;height:40px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12)}.staff-identity .dashboard-signout{display:none}
  .staff-page .staff-shell,.staff-main-content{min-height:calc(100vh - 76px);min-height:calc(100dvh - 76px)}.staff-main-content{padding:0 0 26px;background:#eef3f8}
  .staff-page .staff-welcome{position:relative;display:flex;align-items:flex-end;min-height:170px;margin:0;padding:25px 18px 24px;border:0;border-radius:0 0 28px 28px;background:linear-gradient(145deg,#092443 0,#124e80 70%,#087a87 100%);overflow:hidden}.staff-page .staff-welcome::before{content:'';position:absolute;right:-42px;top:-62px;width:190px;height:190px;border:32px solid rgba(255,255,255,.07);border-radius:50%}.staff-page .staff-welcome::after{content:'';position:absolute;right:24px;bottom:18px;width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.05));transform:rotate(12deg)}.staff-page .staff-welcome>div{position:relative;z-index:1;max-width:78%}.staff-page .staff-welcome .eyebrow{color:var(--mobile-gold);font-size:10px}.staff-page .staff-welcome h1{margin:5px 0 8px;color:#fff;font-size:20px;line-height:1.18}.staff-page .staff-welcome .muted{color:#d5e4f1;font-size:12px}.staff-page .staff-welcome button{position:absolute;right:15px;top:15px;z-index:2;width:38px;height:38px;min-height:38px;padding:0;border-color:rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.12);color:transparent;font-size:0}.staff-page .staff-welcome button::before{content:'↻';color:#fff;font-size:20px}
  .staff-page .staff-welcome>div{max-width:55%}.staff-branch-control{position:absolute;right:15px;bottom:24px;z-index:3;min-width:0;width:132px;color:#d7e7f5;font-size:8px}.staff-branch-control select{min-height:34px;padding:6px 25px 6px 8px;border-color:rgba(255,255,255,.28);background:#f7fbff;color:#102a43;font-size:10px}
  #staffDashboardStatus{margin:8px 15px 0}
  .staff-page .staff-summary{display:flex!important;gap:10px;margin:-12px 0 10px;padding:0 14px 5px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.staff-page .staff-summary::-webkit-scrollbar{display:none}.staff-page .staff-summary div{flex:0 0 142px;min-height:92px;padding:14px;border:0;border-radius:17px;background:#fff;box-shadow:0 9px 22px rgba(16,42,67,.1);scroll-snap-align:start}.staff-page .staff-summary div::before{left:14px;right:14px;top:auto;bottom:0;width:auto;height:3px;border-radius:4px;background:linear-gradient(90deg,var(--mobile-gold),#f27b53)}.staff-page .staff-summary strong{font-size:23px}.staff-page .staff-summary span{margin-top:7px;font-size:9px}.staff-page .staff-summary .student-summary-card{min-width:170px}
  .dashboard-charts{gap:10px;margin:10px 12px}.dashboard-charts article{border:0;border-radius:16px;box-shadow:0 5px 16px rgba(16,42,67,.07)}
  .staff-page .staff-panel{margin:10px 10px 0;padding:16px 13px 20px;border:0;border-radius:18px;box-shadow:0 7px 20px rgba(16,42,67,.07);scroll-margin-top:88px}.staff-page .staff-panel h2{font-size:19px}.staff-page .admin-table-wrap{border-radius:12px}.staff-page .admin-table th{font-size:9px}.staff-page .admin-table td{font-size:12px}
  .staff-sidebar{top:0;z-index:160;width:min(86vw,330px);padding:27px 15px calc(24px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#06182d 0,#092642 100%)}.staff-sidebar-heading{padding:0 12px 20px}.staff-sidebar-heading::before{content:attr(data-initial);display:grid;place-items:center;width:48px;height:48px;margin-bottom:15px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-weight:800}.staff-sidebar-heading strong{font-size:18px}.staff-page .staff-tabs .child-card{min-height:48px;border-radius:11px;font-size:14px}.staff-sidebar-scrim{inset:0;z-index:150}.staff-swipe-hint{display:block}.staff-sidebar-signout{min-height:46px;border-radius:12px;font-size:13px}
  .staff-mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:140;display:grid;grid-template-columns:repeat(5,1fr);height:72px;padding:7px 5px calc(5px + env(safe-area-inset-bottom));border-top:1px solid rgba(12,39,66,.08);background:rgba(255,255,255,.97);box-shadow:0 -7px 24px rgba(8,30,51,.13);backdrop-filter:blur(12px)}.staff-mobile-nav button{display:grid;place-items:center;align-content:center;gap:2px;min-width:0;min-height:50px;margin:0;padding:2px;border:0;background:transparent;color:#748397}.staff-mobile-nav button>span{font-size:20px;line-height:1}.staff-mobile-nav button>small{font-size:9px;font-weight:700}.staff-mobile-nav button.selected{color:var(--mobile-blue)}.staff-mobile-nav .mobile-nav-centre{position:relative;top:-25px;width:64px;height:64px;min-height:64px;justify-self:center;border:6px solid #eef3f8;border-radius:50%;background:linear-gradient(145deg,#ffd85b,var(--mobile-gold));color:#102a43;box-shadow:0 8px 20px rgba(222,160,8,.35)}.staff-mobile-nav .mobile-nav-centre>span{font-size:25px}.staff-mobile-nav .mobile-nav-centre>small{position:absolute;top:65px;color:#65758a}
  .staff-module-dialog{position:fixed;inset:auto 0 0;display:none;width:100%;max-width:none;max-height:82vh;margin:0;padding:0;border:0;border-radius:25px 25px 0 0;background:#fff;box-shadow:0 -18px 50px rgba(4,20,35,.3);overflow:auto}.staff-module-dialog[open]{display:block;animation:module-sheet-in .22s ease-out}.staff-module-dialog::backdrop{background:rgba(3,15,27,.65);backdrop-filter:blur(3px)}.staff-module-sheet{padding:19px 16px calc(28px + env(safe-area-inset-bottom))}.staff-module-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.staff-module-sheet header small{color:#718096;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.staff-module-sheet h2{margin:3px 0 0;color:var(--mobile-navy);font-size:21px}.staff-module-sheet header button{width:38px;height:38px;min-height:38px;margin:0;padding:0;border:0;border-radius:50%;background:#eef3f8;color:#163a5d;font-size:25px}.staff-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 10px}.staff-module-grid button{display:grid;justify-items:center;gap:8px;min-width:0;margin:0;padding:0;border:0;background:transparent;color:#26384d}.staff-module-grid button>span{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:#e8f2ff;color:#1559aa;font-size:22px;box-shadow:inset 0 0 0 1px rgba(10,58,104,.05)}.staff-module-grid button>strong{font-size:11px;line-height:1.2;text-align:center}.staff-module-grid button.selected>span{outline:3px solid rgba(13,98,214,.18)}.staff-module-grid .module-tone-1>span{background:#fff2cf;color:#8b6000}.staff-module-grid .module-tone-2>span{background:#e7f7ef;color:#14724a}.staff-module-grid .module-tone-3>span{background:#fbe8ef;color:#a43a64}.staff-module-grid .module-tone-4>span{background:#eeeaff;color:#5840a7}.staff-module-grid .module-tone-5>span{background:#e3f7f8;color:#17717a}
  .staff-login-card{position:relative;width:auto;margin:22px 13px;padding:27px 20px;border:0;border-radius:23px;background:#fff;box-shadow:0 15px 35px rgba(16,42,67,.12);overflow:hidden}.staff-login-card::before{content:'';position:absolute;inset:0 0 auto;height:8px;background:linear-gradient(90deg,var(--mobile-blue),#15a4a1,var(--mobile-gold))}.staff-login-card h1{color:var(--mobile-navy)}.staff-login-card button[type="submit"]{border-radius:12px;background:linear-gradient(135deg,#0d62d6,#124a91)}
  .workflow-record{border-radius:14px}.workflow-actions button{border-radius:10px}.pwa-install{bottom:84px}
}

@media (max-width:380px){
  .staff-brand strong{max-width:48vw}.staff-page .staff-welcome h1{font-size:19px}.staff-module-grid{gap:13px 7px}.staff-module-grid button>span{width:49px;height:49px}.staff-mobile-nav button>small{font-size:8px}
}

@keyframes module-sheet-in{from{transform:translateY(30px);opacity:.65}to{transform:translateY(0);opacity:1}}
@media (max-width:680px){
  .staff-page #staffDashboardStatus.status.ok{display:none}
  .staff-page .staff-summary{margin:12px 0 10px}
  .staff-page .staff-summary>div{
    display:flex;
    flex:0 0 144px;
    width:144px;
    height:98px;
    min-width:144px;
    min-height:98px;
    max-width:144px;
    padding:12px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
    color:#fff;
    background:linear-gradient(145deg,#123a67,#0b2748);
  }
  .staff-page .staff-summary>div:nth-child(4n+2){background:linear-gradient(145deg,#086b75,#064752)}
  .staff-page .staff-summary>div:nth-child(4n+3){background:linear-gradient(145deg,#7350a8,#422c70)}
  .staff-page .staff-summary>div:nth-child(4n+4){background:linear-gradient(145deg,#a44f2d,#71301b)}
  .staff-page .staff-summary>div::before{background:rgba(255,255,255,.58)}
  .staff-page .staff-summary>div strong,
  .staff-page .staff-summary>div span,
  .staff-page .staff-summary>div small,
  .staff-page .staff-summary>div small b{color:#fff}
  .staff-page .staff-summary>div strong{font-size:24px;line-height:1}
  .staff-page .staff-summary>div span{max-width:100%;margin-top:9px;line-height:1.25}
  .staff-page .staff-summary .student-summary-card{
    flex-basis:144px;
    width:144px;
    min-width:144px;
    max-width:144px;
  }
  .staff-page .student-summary-card small{flex-wrap:wrap;line-height:1.15}
  html[data-theme="dark"] .staff-page .staff-summary>div,
  html[data-theme="dark"] .staff-page .staff-summary>div strong,
  html[data-theme="dark"] .staff-page .staff-summary>div span,
  html[data-theme="dark"] .staff-page .staff-summary>div small,
  html[data-theme="dark"] .staff-page .staff-summary>div small b{color:#fff}
  html[data-theme="dark"] .staff-page .staff-summary>div{background:linear-gradient(145deg,#123a67,#0b2748)}
  html[data-theme="dark"] .staff-page .staff-summary>div:nth-child(4n+2){background:linear-gradient(145deg,#086b75,#064752)}
  html[data-theme="dark"] .staff-page .staff-summary>div:nth-child(4n+3){background:linear-gradient(145deg,#7350a8,#422c70)}
  html[data-theme="dark"] .staff-page .staff-summary>div:nth-child(4n+4){background:linear-gradient(145deg,#a44f2d,#71301b)}
  .staff-page .admin-table-wrap{
    overflow-x:auto;
    overflow-y:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  .staff-page .admin-table{
    width:max-content;
    min-width:100%;
    table-layout:auto;
  }
  .staff-page .admin-table th,
  .staff-page .admin-table td{
    width:1%;
    white-space:nowrap;
    overflow-wrap:normal;
    word-break:normal;
  }
}

/* Keep tapped table rows legible when dark mode gives them a light selection surface. */
html[data-theme="dark"] .staff-page .admin-table tbody tr:hover,
html[data-theme="dark"] .staff-page .admin-table tbody tr:active,
html[data-theme="dark"] .staff-page .admin-table tbody tr:focus-within,
html[data-theme="dark"] .staff-page .admin-table tbody tr.selected{
  background:#f8fbfd;
  color:#102a43;
}
html[data-theme="dark"] .staff-page .admin-table tbody tr:hover td,
html[data-theme="dark"] .staff-page .admin-table tbody tr:active td,
html[data-theme="dark"] .staff-page .admin-table tbody tr:focus-within td,
html[data-theme="dark"] .staff-page .admin-table tbody tr.selected td{
  color:#102a43;
  border-color:#cbd7e5;
}
html[data-theme="dark"] .staff-page .admin-table tbody tr:hover .student-edit-icon,
html[data-theme="dark"] .staff-page .admin-table tbody tr:active .student-edit-icon,
html[data-theme="dark"] .staff-page .admin-table tbody tr:focus-within .student-edit-icon,
html[data-theme="dark"] .staff-page .admin-table tbody tr.selected .student-edit-icon{color:#8b6000}

@media (max-width:560px){
  .suite-launcher-page{height:auto;min-height:100vh;min-height:100dvh;overflow-x:hidden;overflow-y:auto}
  .suite-launcher{height:auto;min-height:100vh;min-height:100dvh;grid-template-rows:auto auto;overflow:visible}
  .launcher-showcase{height:auto;min-height:clamp(190px,28dvh,220px);padding:12px 16px 14px;border-radius:0 0 28px 28px}
  .launcher-showcase-top{gap:9px;font-size:14px}
  .launcher-logo{width:36px;height:36px;padding:5px;border-radius:11px}
  .launcher-art{width:225px;top:-24%;right:-16%;opacity:.68}
  .launcher-message{padding-top:24px}
  .launcher-message p{margin-bottom:4px;font-size:8px}
  .launcher-message h1{font-size:28px;line-height:1}
  .launcher-message>span{max-width:330px;margin-top:7px;font-size:10px;line-height:1.35}
  .launcher-directory{min-height:0;padding:18px 12px 86px;overflow:visible;justify-content:flex-start}
  .launcher-heading{margin-bottom:14px}
  .launcher-kicker{margin-bottom:5px;font-size:9px}
  .launcher-heading h2{margin-bottom:5px;font-size:24px;line-height:1.03}
  .launcher-heading>p:last-child{font-size:12px}
  .launcher-channels{gap:8px}
  .launcher-channel{grid-template-columns:44px minmax(0,1fr) 20px;gap:10px;min-height:66px;padding:8px 10px;border-radius:13px}
  .channel-mark{width:44px;height:44px;border-radius:12px;font-size:13px}
  .channel-copy strong{font-size:15px}
  .channel-copy small{margin-top:2px;font-size:9px;line-height:1.25}
  .channel-arrow{font-size:18px}
  .launcher-help{margin-top:14px;font-size:11px}
  .launcher-settings-button{width:48px;height:48px;font-size:20px}
}

@media (max-width:560px) and (max-height:640px){
  .suite-launcher{grid-template-rows:auto auto}
  .launcher-showcase{min-height:170px;padding-top:9px;padding-bottom:10px}
  .launcher-message{padding-top:13px}
  .launcher-message h1{font-size:25px}
  .launcher-message>span{font-size:9px}
  .launcher-directory{padding-top:12px;padding-bottom:52px}
  .launcher-heading{margin-bottom:9px}
  .launcher-heading h2{font-size:21px}
  .launcher-channels{gap:6px}
  .launcher-channel{min-height:58px;padding-top:6px;padding-bottom:6px}
  .launcher-help{margin-top:9px}
}

/* Compact record actions shared by staff and parent-facing lists. */
.compact-icon-action{
  display:inline-grid!important;
  place-items:center;
  flex:0 0 24px;
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  min-height:24px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  font-size:15px!important;
  line-height:1!important;
  box-shadow:none!important;
}
.compact-icon-action>span{display:block;line-height:1}
.compact-edit-action{color:#976500!important}
html:not([data-theme="dark"]) .compact-edit-action{background:#fff4d6!important;color:#714900!important}
.compact-edit-action:hover{background:#fff2cf!important;color:#704a00!important}
.compact-delete-action{color:#c6283d!important}
.compact-delete-action:hover{background:#fff0f2!important;color:#96172b!important}
.compact-print-action{color:#185fa5!important}
.compact-print-action:hover{background:#e8f2ff!important;color:#0c467f!important}
.compact-approve-action{color:#08775f!important}
.compact-approve-action:hover{background:#e8f7ee!important;color:#075f4d!important}
.compact-reject-action{color:#c6283d!important}
.compact-reject-action:hover{background:#fff0f2!important;color:#96172b!important}
.compact-icon-action:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.compact-icon-action.is-loading::before{width:12px;height:12px;border-color:currentColor transparent currentColor currentColor}

@media (max-width:680px){
  .staff-page .workflow-form-grid{gap:9px 12px}
  .staff-page .config-form>label,
  .staff-page .config-dialog-form .config-grid>label{
    margin:0;
    font-size:11px;
    font-weight:400;
  }
  .staff-page .config-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .staff-page .config-form select,
  .staff-page .config-dialog-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .staff-page .config-dialog-form select{
    min-height:36px;
    padding:6px 9px;
    font-size:12px;
    font-weight:400;
  }
  .staff-page .config-form textarea,
  .staff-page .config-dialog-form textarea{
    min-height:58px;
    padding:7px 9px;
    font-size:12px;
    font-weight:400;
  }
}

/* Posted-ledger income analytics */
.income-analytics{display:grid;gap:16px;min-width:0}
.income-report-heading{align-items:flex-end}
.income-report-heading .muted{max-width:660px}
.income-report-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.income-report-actions button{width:auto;min-height:38px;margin:0;padding:8px 13px}
.income-filter-card,.income-chart-card,.income-distribution-card,.income-transactions{
  min-width:0;padding:16px;border:1px solid #d8e2ed;border-radius:16px;background:#fff
}
.income-period-switch{display:grid;grid-template-columns:repeat(4,minmax(80px,1fr));gap:8px;margin-bottom:14px}
.income-period-switch button{
  width:100%;min-height:38px;margin:0;padding:7px 12px;border:1px solid #cbd8e6;border-radius:999px;
  background:#eef5f7;color:#31516c;font-size:12px
}
.income-period-switch button.active{border-color:#0ca982;background:#0ca982;color:#fff;box-shadow:0 5px 14px rgba(12,169,130,.22)}
.income-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;align-items:end}
.income-filter-grid label{display:grid;gap:5px;margin:0;color:#52667c;font-size:11px;font-weight:650}
.income-filter-grid input,.income-filter-grid select{width:100%;min-height:38px;margin:0;padding:6px 9px;font-size:12px;font-weight:400}
.income-filter-grid button{width:fit-content;min-height:38px;margin:0;padding:8px 15px}
.income-report-period{
  display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 16px;padding:20px;border-radius:17px;
  background:linear-gradient(125deg,#103b67,#0b7d78);color:#fff;box-shadow:0 12px 28px rgba(16,59,103,.16)
}
.income-report-period span{font-size:12px;letter-spacing:.02em}.income-report-period strong{grid-row:1/3;grid-column:2;font-size:30px}.income-report-period small{opacity:.82}
.income-card-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.income-card-heading h3{margin:2px 0 0}.income-card-heading>span{color:#71859b;font-size:11px;text-align:right}
.income-bar-chart{display:grid;grid-template-columns:repeat(var(--income-buckets),minmax(0,1fr));align-items:stretch;gap:4px;height:270px;overflow:hidden;padding:8px 2px 2px}
.income-bar-item{display:grid;grid-template-rows:28px 1fr 34px;min-width:0;gap:5px;text-align:center}
.income-bar-item>strong{align-self:end;overflow:hidden;color:#52667c;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.income-bar-item>div{display:flex;align-items:flex-end;justify-content:center;overflow:hidden;border-radius:9px 9px 3px 3px;background:#eef3f7}
.income-bar-item i{display:block;width:68%;min-height:3px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#42d7ba,#0b9b79);box-shadow:0 3px 8px rgba(11,155,121,.22)}
.income-bar-item small{overflow:hidden;color:#52667c;font-size:10px;line-height:1.2;text-overflow:ellipsis}
.income-empty-chart{display:grid;min-height:220px;place-content:center;text-align:center;color:#71859b}
.income-empty-chart span{font-size:40px;opacity:.38}.income-empty-chart p{margin:6px}.income-empty-chart.compact{min-height:180px}
.income-distribution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.income-distribution-card h3{margin:0 0 16px}
.income-donut-layout{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);align-items:center;gap:20px}
.income-donut{
  display:grid;width:min(100%,210px);aspect-ratio:1;margin:auto;place-items:center;border-radius:50%;
  background:conic-gradient(var(--income-donut));box-shadow:inset 0 0 0 1px rgba(16,42,67,.05)
}
.income-donut::before{content:"";grid-area:1/1;width:54%;aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(16,42,67,.08)}
.income-donut span{z-index:1;grid-area:1/1;display:grid;max-width:52%;text-align:center}
.income-donut strong{overflow:hidden;color:#102a43;font-size:14px;text-overflow:ellipsis}.income-donut small{color:#71859b;font-size:10px}
.income-legend{display:grid;gap:8px;min-width:0}
.income-legend>div{display:grid;grid-template-columns:10px minmax(70px,1fr) auto;align-items:center;gap:8px;padding-bottom:7px;border-bottom:1px solid #edf1f5;font-size:11px}
.income-legend i{width:10px;height:10px;border-radius:3px}.income-legend span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.income-legend strong{color:#102a43;font-size:11px}
.income-transactions>.income-card-heading+h2:empty{display:none}
.income-transactions .admin-table-wrap{max-height:440px}.income-transactions .admin-table th{position:sticky;top:0;z-index:1}

html[data-theme="dark"] .income-filter-card,
html[data-theme="dark"] .income-chart-card,
html[data-theme="dark"] .income-distribution-card,
html[data-theme="dark"] .income-transactions{border-color:#33465c;background:#111e2e;color:#edf4ff}
html[data-theme="dark"] .income-period-switch button{border-color:#3b536c;background:#172a3e;color:#d4e2f1}
html[data-theme="dark"] .income-period-switch button.active{border-color:#22c39c;background:#087c65;color:#fff}
html[data-theme="dark"] .income-filter-grid label,
html[data-theme="dark"] .income-card-heading>span,
html[data-theme="dark"] .income-bar-item>strong,
html[data-theme="dark"] .income-bar-item small,
html[data-theme="dark"] .income-empty-chart{color:#a8b8cb}
html[data-theme="dark"] .income-filter-grid input,
html[data-theme="dark"] .income-filter-grid select{border-color:#3b5068;background:#0d1a29;color:#edf4ff;color-scheme:dark}
html[data-theme="dark"] .income-bar-item>div{background:#233448}
html[data-theme="dark"] .income-donut::before{background:#111e2e}
html[data-theme="dark"] .income-donut strong,
html[data-theme="dark"] .income-legend strong{color:#f4f8ff}
html[data-theme="dark"] .income-donut small{color:#a8b8cb}
html[data-theme="dark"] .income-legend>div{border-color:#2c4055}

@media (max-width:980px){
  .income-filter-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}
  .income-donut-layout{grid-template-columns:150px minmax(0,1fr)}
}
@media (max-width:680px){
  .income-analytics{gap:11px}
  .income-filter-card,.income-chart-card,.income-distribution-card,.income-transactions{padding:12px;border-radius:14px}
  .income-report-heading{display:grid;align-items:start}.income-report-actions{justify-content:flex-start}
  .income-period-switch{gap:5px}.income-period-switch button{min-width:0;min-height:34px;padding:6px 4px;font-size:10px}
  .income-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .income-filter-grid label{font-size:10px}.income-filter-grid input,.income-filter-grid select{min-height:35px;padding:5px 7px;font-size:11px}
  .income-report-period{padding:15px}.income-report-period strong{font-size:21px}.income-report-period span{font-size:10px}
  .income-bar-chart{grid-template-columns:repeat(var(--income-buckets),minmax(48px,1fr));height:230px;overflow-x:auto;scrollbar-width:thin}.income-bar-item{min-width:48px}
  .income-distribution-grid{grid-template-columns:1fr}
  .income-donut-layout{grid-template-columns:125px minmax(0,1fr);gap:12px}
  .income-donut strong{font-size:11px}.income-legend>div{font-size:10px}.income-legend strong{font-size:10px}
  .income-card-heading{align-items:flex-start}.income-card-heading>span{max-width:42%}
  .income-transactions .admin-table-wrap{max-height:52vh}
}

@media print{
  body.staff-page{background:#fff!important}
  .staff-topbar,.staff-sidebar,.staff-mobile-nav,.staff-sidebar-scrim,.staff-summary,.income-report-actions,.income-filter-card{display:none!important}
  .staff-shell,.staff-dashboard,.staff-app-layout,.staff-main-content,.staff-panel{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
  .income-analytics{gap:10px}.income-chart-card,.income-distribution-card,.income-transactions{break-inside:avoid;border-color:#bdcad8}
  .income-bar-chart{grid-template-columns:repeat(var(--income-buckets),minmax(0,1fr));overflow:visible;height:220px}.income-bar-item{min-width:0}.income-transactions .admin-table-wrap{max-height:none;overflow:visible}
}

/* Complete dark-theme coverage for shared forms, configuration surfaces, and dialogs. */
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8297ad;opacity:1}
html[data-theme="dark"] .upload-result,
html[data-theme="dark"] .fee-option,
html[data-theme="dark"] .result-scores span,
html[data-theme="dark"] .store-cart-panel,
html[data-theme="dark"] .pwa-install,
html[data-theme="dark"] .nav-actions a{
  border-color:#33465c;
  background:#111f30;
  color:#edf4ff;
}
html[data-theme="dark"] .upload-result.pending{border-color:#3f6386;background:#10263b;color:#bddcff}
html[data-theme="dark"] .upload-result.ok,
html[data-theme="dark"] .verified-box,
html[data-theme="dark"] .portal-notice{border-color:#27664f;background:#102d28;color:#bcebd8}
html[data-theme="dark"] .upload-result.bad{border-color:#7e3d4a;background:#311b25;color:#ffc4ce}
html[data-theme="dark"] .document-progress-track{background:#2a3b50}
html[data-theme="dark"] .parent-document-target{border-color:#28745d;background:#102d28;color:#bcebd8}
html[data-theme="dark"] .parent-notification-button,
html[data-theme="dark"] .parent-notification-panel,
html[data-theme="dark"] .parent-notification-item,
html[data-theme="dark"] .parent-notification-delete{border-color:#33465c;background:#111f30;color:#edf4ff}
html[data-theme="dark"] .parent-notification-item.unread{border-left-color:#4d9cff;background:#10263b}
html[data-theme="dark"] .parent-notification-badge{box-shadow:0 0 0 2px #071421}
html[data-theme="dark"] .hero-actions .btn.secondary{border-color:#3b526b;background:#14263a;color:#d9eaff}

html[data-theme="dark"] .staff-page .staff-panel,
html[data-theme="dark"] .workflow-kpis>div,
html[data-theme="dark"] .workflow-record,
html[data-theme="dark"] .staff-user-row,
html[data-theme="dark"] .role-access-settings,
html[data-theme="dark"] .config-card,
html[data-theme="dark"] .config-card-heading,
html[data-theme="dark"] .config-card .config-form,
html[data-theme="dark"] .config-details,
html[data-theme="dark"] .config-details .config-form,
html[data-theme="dark"] .config-switch,
html[data-theme="dark"] .config-option-list,
html[data-theme="dark"] .config-actionbar,
html[data-theme="dark"] .config-dialog-actions,
html[data-theme="dark"] .tax-breakdown-close{
  border-color:#33465c;
  background:#111e2e;
  color:#edf4ff;
}
html[data-theme="dark"] .staff-user-row:hover,
html[data-theme="dark"] .workflow-record:hover{border-color:#55708b;background:#14263a}
html[data-theme="dark"] .staff-page .staff-panel h1,
html[data-theme="dark"] .staff-page .staff-panel h2,
html[data-theme="dark"] .staff-page .staff-panel h3,
html[data-theme="dark"] .staff-user-copy strong,
html[data-theme="dark"] .config-card-heading h3,
html[data-theme="dark"] .config-form label,
html[data-theme="dark"] .config-group>header strong,
html[data-theme="dark"] .config-option-list>strong,
html[data-theme="dark"] .config-option-list label,
html[data-theme="dark"] .config-details>summary,
html[data-theme="dark"] .tax-breakdown-dialog h2,
html[data-theme="dark"] .material-entry-actions strong,
html[data-theme="dark"] .material-grand-total-row output{color:#f4f8ff}
html[data-theme="dark"] .role-access-heading h2{color:#f4f8ff}
html[data-theme="dark"] .role-access-source{color:#a8b8cb}
html[data-theme="dark"] .role-access-scope{background:#123c35;color:#bff5e8}
html[data-theme="dark"] .role-access-actions button.secondary{border-color:#4c6279;background:#172a3e;color:#edf4ff}
html[data-theme="dark"] .staff-user-copy span,
html[data-theme="dark"] .staff-user-copy small,
html[data-theme="dark"] .config-card-heading p,
html[data-theme="dark"] .config-form label>small,
html[data-theme="dark"] .config-group>header small,
html[data-theme="dark"] .config-details>summary small,
html[data-theme="dark"] .store-category-copy small{color:#a8b8cb}
html[data-theme="dark"] .config-group,
html[data-theme="dark"] .config-card-heading,
html[data-theme="dark"] .config-actionbar,
html[data-theme="dark"] .config-dialog-actions,
html[data-theme="dark"] .staff-security-activity,
html[data-theme="dark"] .config-details[open]>summary{border-color:#33465c}
html[data-theme="dark"] .config-details[open]>summary,
html[data-theme="dark"] .config-details>summary::after{background:#172a3e;color:#edf4ff}
html[data-theme="dark"] .wallet-account-result>div,
html[data-theme="dark"] .report-recipient-preview{border-color:#33465c;background:#111e2e;color:#edf4ff}
html[data-theme="dark"] .wallet-account-result strong,
html[data-theme="dark"] .wallet-account-result span,
html[data-theme="dark"] .report-recipient-preview span{color:#edf4ff}
html[data-theme="dark"] .wallet-account-result small{color:#a9bdd3}
html[data-theme="dark"] .department-workspace-links{border-color:#33465c;background:rgba(17,30,46,.96)}
html[data-theme="dark"] .department-workspace-links button{color:#cbd9e8}
html[data-theme="dark"] .department-workspace-links button:hover,
html[data-theme="dark"] .department-workspace-links button.active{border-color:#45c6a0;background:#123a34;color:#d9fff3}
html[data-theme="dark"] .tuck-shop-pos-workspace .config-card-heading{background:linear-gradient(110deg,#123a34,#111e2e)}
html[data-theme="dark"] .purchase-step-label{color:#dcecff}
html[data-theme="dark"] .workflow-kpis small,
html[data-theme="dark"] .workflow-kpis span{color:#a8b8cb}
html[data-theme="dark"] .workflow-kpis strong{color:#f4f8ff}
html[data-theme="dark"] .workflow-primary-actions .workflow-icon-action{
  border-color:#45617e;
  background:#172a3e;
  color:#e7f1ff;
}
html[data-theme="dark"] .student-login-guidance{
  border-color:#33465c;
  background:#142b40;
  color:#c8d8e9;
}
html[data-theme="dark"] .student-login-guidance strong{color:#f4f8ff}
html[data-theme="dark"] .store-category-toggle{color:#c3d0df!important}
html[data-theme="dark"] .store-order-status.is-collected,
html[data-theme="dark"] .store-order-status.is-collected:disabled{
  border-color:#27664f;
  background:#12372e;
  color:#bcebd8;
}
html[data-theme="dark"] .organization-commerce-workspace{border-color:#2ea887}
html[data-theme="dark"] .organization-commerce-workspace .commerce-heading{background:linear-gradient(110deg,#123a34,#111e2e)}
html[data-theme="dark"] .commerce-summary-grid,
html[data-theme="dark"] .commerce-sales-history>summary{border-color:#33465c;background:#0d1a29;color:#edf4ff}
html[data-theme="dark"] .commerce-summary-grid>div,
html[data-theme="dark"] .commerce-product,
html[data-theme="dark"] .commerce-cart-line{border-color:#33465c;background:#14263a}
html[data-theme="dark"] .commerce-summary-grid strong,
html[data-theme="dark"] .commerce-product strong,
html[data-theme="dark"] .commerce-cart-title h4,
html[data-theme="dark"] .commerce-cart-line>div strong,
html[data-theme="dark"] .commerce-cart-line>strong{color:#f4f8ff}
html[data-theme="dark"] .commerce-summary-grid small,
html[data-theme="dark"] .commerce-summary-grid span,
html[data-theme="dark"] .commerce-product span,
html[data-theme="dark"] .commerce-cart-line>div span{color:#a8b8cb}
html[data-theme="dark"] .commerce-product small,
html[data-theme="dark"] .commerce-cart-title>strong{color:#74dfbc}
html[data-theme="dark"] .commerce-catalog,
html[data-theme="dark"] .commerce-cart-title,
html[data-theme="dark"] .commerce-checkout-form,
html[data-theme="dark"] .commerce-sales-history{border-color:#33465c}
html[data-theme="dark"] .commerce-search-label,
html[data-theme="dark"] .commerce-customer-grid label{color:#cbd9e8}
html[data-theme="dark"] .commerce-search-label input,
html[data-theme="dark"] .commerce-checkout-form input,
html[data-theme="dark"] .commerce-checkout-form select,
html[data-theme="dark"] .commerce-product-action select,
html[data-theme="dark"] .commerce-cart-line select{border-color:#405773;background:#0d1a29;color:#f4f8ff}
html[data-theme="dark"] .commerce-add-button{border-color:#405773!important;background:#172a3e!important;color:#9bc7ff!important}
html[data-theme="dark"] .commerce-add-button.is-added{border-color:#2d8168!important;background:#123a34!important;color:#8be0bd!important}
html[data-theme="dark"] .commerce-checkout-total,
html[data-theme="dark"] .commerce-receipt-preview{border-color:#27664f;background:#12372e;color:#bcebd8}
html[data-theme="dark"] .commerce-receipt-preview strong{color:#bcebd8}
html[data-theme="dark"] .commerce-receipt-preview span,
html[data-theme="dark"] .commerce-receipt-preview small{color:#9fcabb}
html[data-theme="dark"] .commerce-inventory-active{border-color:#33465c;background:#14263a}
html[data-theme="dark"] .staff-page .admin-table td{border-color:#33465c;color:#edf4ff}
html[data-theme="dark"] .staff-page .admin-table tbody tr:hover,
html[data-theme="dark"] .staff-page .admin-table tbody tr:active,
html[data-theme="dark"] .staff-page .admin-table tbody tr:focus-within,
html[data-theme="dark"] .staff-page .admin-table tbody tr.selected{
  background:#dcecff;
  color:#081b2e;
}

html[data-theme="dark"] .staff-module-dialog,
html[data-theme="dark"] .staff-login-card,
html[data-theme="dark"] .staff-mobile-nav{
  border-color:#33465c;
  background:#0d1a29;
  color:#edf4ff;
}
html[data-theme="dark"] .staff-module-sheet h2,
html[data-theme="dark"] .staff-module-grid button{color:#edf4ff}
html[data-theme="dark"] .staff-module-sheet header small{color:#a8b8cb}
html[data-theme="dark"] .staff-module-sheet header button{background:#172a3e;color:#edf4ff}
html[data-theme="dark"] .staff-login-card h1{color:#f4f8ff}

html[data-theme="dark"] .settings-page{background:#091321;color:#edf4ff}
html[data-theme="dark"] .settings-sidebar,
html[data-theme="dark"] .settings-section,
html[data-theme="dark"] .settings-unlock-card,
html[data-theme="dark"] .settings-logo-card{
  border-color:#33465c;
  background:#111e2e;
  color:#edf4ff;
}
html[data-theme="dark"] .settings-topbar{border-color:#33465c}
html[data-theme="dark"] .settings-topbar h1,
html[data-theme="dark"] .settings-unlock-copy h2,
html[data-theme="dark"] .settings-subsection-title strong,
html[data-theme="dark"] .settings-logo-copy strong,
html[data-theme="dark"] .settings-savebar strong{color:#f4f8ff}
html[data-theme="dark"] .settings-topbar p,
html[data-theme="dark"] .settings-subsection-title span,
html[data-theme="dark"] .settings-logo-copy p,
html[data-theme="dark"] .settings-savebar .status{color:#a8b8cb}
html[data-theme="dark"] .settings-sidebar-title{color:#9fb2c8}
html[data-theme="dark"] .settings-nav-link{color:#d8e5f5}
html[data-theme="dark"] .settings-nav-link small{color:#a8b8cb}
html[data-theme="dark"] .settings-nav-link.active small{color:#bcd0e5}
html[data-theme="dark"] .settings-section h1,
html[data-theme="dark"] .settings-section h2,
html[data-theme="dark"] .settings-section h3,
html[data-theme="dark"] .settings-field,
html[data-theme="dark"] .settings-unlock-card strong{color:#f4f8ff}
html[data-theme="dark"] .settings-section p,
html[data-theme="dark"] .settings-help,
html[data-theme="dark"] .settings-unlock-card p{color:#a8b8cb}
html[data-theme="dark"] .settings-field input,
html[data-theme="dark"] .settings-field select,
html[data-theme="dark"] .settings-field textarea{
  border-color:#3b5068;
  background:#0d1a29;
  color:#edf4ff;
  color-scheme:dark;
}
html[data-theme="dark"] .settings-field label,
html[data-theme="dark"] .settings-unlock-control label{color:#dce8f8}
html[data-theme="dark"] .settings-field input::placeholder,
html[data-theme="dark"] .settings-field textarea::placeholder{color:#7f93aa;opacity:1}
html[data-theme="dark"] .settings-link,
html[data-theme="dark"] .settings-nav-link:hover,
html[data-theme="dark"] .settings-nav-link.active{
  border-color:#3b526b;
  background:#14263a;
  color:#d9eaff;
}
html[data-theme="dark"] .settings-nav-link>span,
html[data-theme="dark"] .settings-section-icon,
html[data-theme="dark"] .settings-help code{background:#172a3e;color:#cfe3fb}
html[data-theme="dark"] .settings-sidebar-note{background:#102d28;color:#bcebd8}
html[data-theme="dark"] .settings-logo-wrap{
  border-color:transparent;
  background:transparent;
}
html[data-theme="dark"] .settings-logo-preview{
  border-color:#3b5068;
  background:#0d1a29;
}
html[data-theme="dark"] .settings-text-button{
  border-color:#3b526b;
  background:#14263a;
  color:#d9eaff;
}
html[data-theme="dark"] .settings-text-button:hover{background:#1b334c;color:#fff}
html[data-theme="dark"] .settings-savebar{
  border-color:#3b5068;
  background:rgba(17,30,46,.96);
}
html[data-theme="dark"] .settings-scope-toolbar{
  border-color:#3b5068;
  background:linear-gradient(135deg,#111e2e,#14263a);
  color:#edf4ff;
}
html[data-theme="dark"] .settings-scope-copy strong{color:#f4f8ff}
html[data-theme="dark"] .settings-scope-copy small,
html[data-theme="dark"] .settings-scope-control span{color:#a8b8cb}
html[data-theme="dark"] .settings-scope-control select{
  border-color:#3b5068;
  background:#0d1a29;
  color:#edf4ff;
  color-scheme:dark;
}
html[data-theme="dark"] .settings-scope-locked::after{background:#26384d;color:#c9d9ea}

/* Signed-in staff profile editing and photo avatar. */
.staff-profile-trigger{
  display:flex;
  align-items:center;
  gap:10px;
  width:auto;
  min-height:46px;
  margin:0;
  padding:3px 7px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:inherit;
  text-align:right;
  box-shadow:none;
}
.staff-profile-trigger:hover{border-color:#bfd0e1;background:#edf3f8}
.staff-profile-trigger:focus-visible{outline:3px solid rgba(25,167,160,.32);outline-offset:2px}
.staff-avatar{overflow:hidden}
.staff-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.staff-avatar>span{margin:0}
.profile-photo-editor{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:center;margin:14px 0 18px}
.profile-photo-preview{display:grid;place-items:center;width:96px;height:96px;overflow:hidden;border:2px solid #d6e1ed;border-radius:50%;background:linear-gradient(135deg,var(--finance-navy-2),var(--finance-cyan));color:#fff;font-size:30px;font-weight:800}
.profile-photo-preview img{width:100%;height:100%;object-fit:cover}
.profile-photo-editor label{margin-top:0}
.workflow-form .profile-photo-remove{width:auto;min-height:30px;margin:9px 0 0;padding:6px 10px;border:1px solid #d2dce7;background:#edf2f7;color:#334e68;font-size:11px}
.staff-login-details-form{margin-top:4px;padding-top:18px;border-top:1px solid #d9e4ef}
.profile-security-heading{margin-bottom:4px}
.profile-security-heading small{color:#078875;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.profile-security-heading h3{margin:4px 0 3px;color:#102a43;font-size:17px}
.profile-security-heading p{margin:0 0 12px;font-size:11px;line-height:1.5}
html[data-theme="dark"] .staff-profile-trigger:hover{border-color:#45617e;background:#172a3e}
html[data-theme="dark"] .profile-photo-preview{border-color:#55708b}
html[data-theme="dark"] .staff-login-details-form{border-top-color:#36516b}
html[data-theme="dark"] .profile-security-heading h3{color:#f1f7fd}
html[data-theme="dark"] .workflow-form .profile-photo-remove{border-color:#45617e;background:#172a3e;color:#d9eaff}
@media (max-width:680px){
  .staff-profile-trigger{min-height:40px;padding:0}
  .staff-avatar>span{display:block!important}
  .profile-photo-editor{grid-template-columns:74px minmax(0,1fr);gap:12px}
  .profile-photo-preview{width:72px;height:72px;font-size:23px}
}

/* Keep the password visibility control clear of entered text in every form layout. */
.password-field>input{padding-right:68px!important}
.password-field>.password-toggle{
  position:absolute;
  top:50%;
  right:6px;
  z-index:1;
  width:auto!important;
  min-width:50px;
  min-height:28px;
  margin:0!important;
  padding:5px 8px!important;
  transform:translateY(-50%);
  border-radius:6px;
  background:transparent;
  line-height:1;
}
html[data-theme="dark"] .password-field>.password-toggle{color:#75adff}
html[data-theme="dark"] .password-field>.password-toggle:hover{background:#1a3149;color:#cfe3ff}

/* Icon-led navigation and isolated, full-height module workspaces. */
.staff-page .staff-tabs .child-card{display:flex;align-items:center;gap:10px}
.staff-tab-icon{display:grid!important;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:8px;background:rgba(255,255,255,.07);font-size:15px;line-height:1}
.staff-page .staff-tabs .child-card.selected .staff-tab-icon{background:rgba(255,255,255,.14)}
.staff-page .staff-tabs .child-card.subscription-restricted{cursor:not-allowed;border-color:rgba(255,255,255,.08);background:rgba(128,145,160,.12);color:#8fa0b0;opacity:.68;box-shadow:none}.staff-page .staff-tabs .child-card.subscription-restricted>span:last-of-type{color:#a7b4c0}.staff-page .staff-tabs .child-card.subscription-restricted .staff-tab-icon{background:rgba(128,145,160,.16);filter:grayscale(1)}.staff-page .staff-tabs .child-card.subscription-restricted small{margin-left:auto;color:#bac4cd;font-size:9px;font-weight:700;white-space:nowrap}
.staff-module-grid button.subscription-restricted{cursor:not-allowed;opacity:.52;filter:grayscale(1)}.staff-module-grid button.subscription-restricted>span{background:#e2e6ea;color:#69747f}.staff-module-grid button.subscription-restricted>em{font-size:8px;font-style:normal;font-weight:800;color:#687480;text-transform:uppercase}
html[data-theme="dark"] .staff-page .staff-tabs .child-card.subscription-restricted{background:rgba(90,105,120,.16);color:#8795a2}html[data-theme="dark"] .staff-module-grid button.subscription-restricted>span{background:#34404c;color:#aeb9c3}
.staff-sidebar .staff-tabs{margin-bottom:0;padding-bottom:12px}
.staff-sidebar-actions{
  position:relative;
  z-index:3;
  padding-top:11px;
  border-top:1px solid rgba(255,255,255,.12);
  background:#0b2239;
}
.staff-sidebar-note{position:relative;z-index:3}
@media (min-width:681px){
  .staff-sidebar > .staff-tabs{
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-width:thin;
  }
}
.staff-main-content.module-view-active{padding-top:18px}
.staff-main-content.module-view-active .staff-summary{margin:0 0 14px}
.staff-main-content.module-view-active .staff-panel{min-height:calc(100vh - 168px);min-height:calc(100dvh - 168px)}
.staff-summary .module-summary-card{gap:2px}
.staff-summary .module-summary-icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  margin:0 0 2px;
  border-radius:9px;
  background:#e8f2ff;
  color:#1559aa;
  font-size:15px;
  line-height:1;
  text-transform:none;
}
.staff-summary .module-summary-card:nth-child(4n+2) .module-summary-icon{background:#e7f7ef;color:#14724a}
.staff-summary .module-summary-card:nth-child(4n+3) .module-summary-icon{background:#eeeaff;color:#5840a7}
.staff-summary .module-summary-card:nth-child(4n+4) .module-summary-icon{background:#fff2cf;color:#8b6000}
.staff-summary .module-summary-card small{margin-top:2px;color:#829ab1;font-size:9px}
html[data-theme="dark"] .staff-summary .module-summary-icon{background:#183657;color:#9bc7ff}
html[data-theme="dark"] .staff-summary .module-summary-card:nth-child(4n+2) .module-summary-icon{background:#123b32;color:#8be0bd}
html[data-theme="dark"] .staff-summary .module-summary-card:nth-child(4n+3) .module-summary-icon{background:#30294d;color:#c9baff}
html[data-theme="dark"] .staff-summary .module-summary-card:nth-child(4n+4) .module-summary-icon{background:#473716;color:#ffd877}
@media (max-width:680px){
  .staff-sidebar-actions{background:#092642}
  .staff-main-content.module-view-active{padding-top:12px}
  .staff-main-content.module-view-active .staff-summary{margin:0 0 8px}
  .staff-main-content.module-view-active .staff-panel{min-height:calc(100vh - 188px);min-height:calc(100dvh - 188px);margin-top:0}
  .staff-summary .module-summary-card{gap:1px}
  .staff-summary .module-summary-icon{width:25px;height:25px;margin-bottom:1px;background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:14px}
  .staff-summary .module-summary-card strong{font-size:20px!important}
  .staff-summary .module-summary-card span:not(.module-summary-icon){margin-top:3px!important}
}
/* Generic organisation departments, program registration and recording charts */
.department-summary-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: .75rem;
  max-width: 100%;
  margin: 1rem 0;
  padding-bottom: .4rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.department-summary-grid .module-stat {
  flex: 0 0 auto;
  width: max-content;
  min-width: 200px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 16px;
  padding: .85rem;
  color: #fff;
  scroll-snap-align: start;
}

.department-summary-grid .module-stat > * {
  max-width: none;
  white-space: nowrap;
}
.department-summary-grid .module-stat strong { margin-bottom: .3rem; }
.department-summary-grid .module-stat span,
.department-summary-grid .module-stat small {
  display: block;
  margin-top: .15rem;
  line-height: 1.25;
}
.department-summary-grid .module-stat span,
.department-summary-grid .module-stat small { color: rgba(255,255,255,.88); }
.department-summary-grid .tone-1 { background: linear-gradient(145deg, #124273, #1e63a5); }
.department-summary-grid .tone-2 { background: linear-gradient(145deg, #08756f, #14a39a); }
.department-summary-grid .tone-3 { background: linear-gradient(145deg, #67409a, #8c61be); }
.department-summary-grid .tone-4 { background: linear-gradient(145deg, #9c4424, #c8683d); }
.department-summary-grid .tone-5 { background: linear-gradient(145deg, #976300, #c99313); }

.department-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.department-chart-card {
  border: 1px solid var(--border, #d8e1ec);
  border-radius: 16px;
  background: var(--card, #fff);
  padding: 1rem;
  min-width: 0;
}

.dashboard-charts .department-chart-card { min-height: 280px; }
.dashboard-charts .dashboard-chart-loading {
  min-height: 112px;
  display: grid;
  align-content: center;
}

.vertical-bar-chart {
  height: 230px;
  display: flex;
  align-items: stretch;
  gap: .65rem;
  overflow-x: auto;
  padding-top: .5rem;
}

.vertical-bar-item {
  min-width: 64px;
  flex: 1 0 64px;
  display: grid;
  grid-template-rows: 24px 1fr 34px;
  gap: .3rem;
  text-align: center;
}

.vertical-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  background: color-mix(in srgb, var(--border, #d8e1ec) 55%, transparent);
  border-radius: 8px 8px 3px 3px;
  overflow: hidden;
}

.vertical-bar-track i { display: block; width: 72%; border-radius: 7px 7px 2px 2px; min-height: 2px; }
.vertical-bar-track .blue { background: linear-gradient(#2f8cff, #1459bb); }
.vertical-bar-track .teal { background: linear-gradient(#2ed1c2, #087d68); }
.vertical-bar-track .gold { background: linear-gradient(#ffc857, #c68100); }
.vertical-bar-track .emerald { background: linear-gradient(#38d5aa, #087d68); }
.vertical-bar-track .purple { background: linear-gradient(#b48cff, #7141ad); }
.vertical-bar-track .coral { background: linear-gradient(#ff8f75, #ba472e); }
.vertical-bar-item small { overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }

html[data-theme="dark"] .department-chart-card {
  border-color: #33465c;
  background: #111e2e;
  color: #edf4ff;
}
html[data-theme="dark"] .department-chart-card h3,
html[data-theme="dark"] .vertical-bar-item strong {
  color: #f4f8ff;
}
html[data-theme="dark"] .vertical-bar-item small {
  color: #c7d5e5;
}
html[data-theme="dark"] .vertical-bar-track {
  background: #25364a;
}

.giving-source-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 1rem 0;
}

.giving-source-chart .department-chart-card {
  min-height: 285px;
}

.department-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.compact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}

.compact-form h3 { margin: 0 0 .3rem; }
.compact-form input:not([type="checkbox"]),
.compact-form select { width: 100%; min-height: 38px; }
.compact-form button { width: auto; align-self: flex-start; }
.church-service-entry-form {
  width: 100%;
  max-width: none;
}
.church-service-entry-form > h3,
.church-service-entry-form > p { margin-right: 0; margin-left: 0; }
.church-service-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem .9rem;
  width: 100%;
}
.church-service-entry-grid label {
  display: grid;
  grid-template-rows: auto 44px;
  gap: .35rem;
  min-width: 0;
  margin: 0;
  align-content: start;
}
.church-service-entry-grid input:not([type="checkbox"]),
.church-service-entry-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
}
.church-service-entry-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 40px;
}
.church-service-entry-actions .status { margin: 0; }
.service-attendance-workspace {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  min-width: 0;
}
.attendance-breakdown-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  width: 100%;
}
.attendance-breakdown-fields label { min-width: 0; }
.attendance-total-field {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #96d9c7;
  border-radius: 10px;
  background: #eaf8f3;
  color: #075f4d;
}
.attendance-total-field input[readonly] {
  border-color: transparent;
  background: transparent;
  color: #075f4d;
  font-size: 1.25rem;
  font-weight: 800;
}
.service-attendance-report { min-width: 0; }
.service-attendance-report-heading { margin: 0 0 .65rem; }
.service-attendance-report-heading small { color: var(--ok); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-attendance-report-heading h3 { margin: .15rem 0 0; }
.service-attendance-summary {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: 0 0 .5rem;
  scrollbar-width: thin;
}
.service-attendance-summary > div {
  flex: 0 0 min(130px, 28vw);
  min-width: 100px;
  padding: .7rem;
  border: 1px solid var(--border, #d8e1ec);
  border-radius: 10px;
  background: var(--card, #fff);
}
.service-attendance-summary small { display: block; color: #61758c; font-size: .68rem; }
.service-attendance-summary strong { display: block; margin-top: .2rem; color: var(--finance-navy); font-size: 1.1rem; }
.service-attendance-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: .7rem;
  min-width: 0;
}
.service-attendance-chart-card { min-height: 130px; padding: .8rem; }
.service-attendance-chart-card .chart-row { grid-template-columns: minmax(76px, 1fr) minmax(65px, 1.6fr) auto; }
.service-attendance-empty {
  display: grid;
  gap: .25rem;
  min-height: 170px;
  place-content: center;
  padding: 1rem;
  border: 1px dashed var(--border, #d8e1ec);
  border-radius: 14px;
  color: #61758c;
  text-align: center;
}
html[data-theme="dark"] .attendance-total-field { border-color: #287c68; background: #11382f; color: #9ae7d1; }
html[data-theme="dark"] .attendance-total-field input[readonly] { color: #9ae7d1; }
html[data-theme="dark"] .service-attendance-summary > div { border-color: #33465c; background: #111e2e; }
html[data-theme="dark"] .service-attendance-summary small,
html[data-theme="dark"] .service-attendance-empty { color: #b8c7d8; }
html[data-theme="dark"] .service-attendance-summary strong { color: #f4f8ff; }
@media (max-width: 900px) {
  .church-service-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-attendance-workspace { grid-template-columns: 1fr; }
  .service-attendance-chart-grid { grid-template-columns: repeat(3, minmax(190px, 1fr)); overflow-x: auto; padding-bottom: .35rem; }
}
@media (max-width: 560px) {
  .church-service-entry-grid { grid-template-columns: 1fr; }
  .attendance-breakdown-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-attendance-chart-grid { grid-template-columns: 1fr; overflow: visible; }
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  max-width: 100%;
  margin: .3rem 0;
  white-space: nowrap;
}
.inline-check > input[type="checkbox"],
.inline-check > input[type="radio"] {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}
.inline-check > span { display: inline-block; }
.department-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .85rem;
}
.department-import-actions button { width: auto; }

.department-workspace-intro {
  align-items: center;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border, #d8e1ec);
}

.organization-workspace-tabs {
  position: sticky;
  top: 66px;
  z-index: 8;
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  margin: 1rem 0;
  padding: .5rem;
  border: 1px solid var(--border, #d8e1ec);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card, #fff) 94%, transparent);
  box-shadow: 0 8px 22px rgba(16,42,67,.08);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
}

.organization-workspace-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: auto;
  min-height: 40px;
  padding: .55rem .85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted, #526174);
  font-size: .78rem;
  font-weight: 650;
}

.organization-workspace-tabs button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--border, #d8e1ec) 65%, transparent);
  color: var(--text, #102a43);
}

.organization-workspace-tabs button:hover,
.organization-workspace-tabs button.active {
  border-color: #15936f;
  background: #e7f7f2;
  color: #07684f;
}

.organization-workspace-tabs button.active span {
  background: #15936f;
  color: #fff;
}

.organization-workspace-panel {
  min-height: 420px;
  padding: 1rem;
  border: 1px solid var(--border, #d8e1ec);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card, #fff) 97%, #eff6fb);
}

.organization-workspace-panel[hidden] { display: none !important; }

.department-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border, #d8e1ec);
}

.department-panel-heading small {
  color: #087b61;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.department-panel-heading h3 {
  margin: .18rem 0 0;
  font-size: 1.15rem;
}

.department-panel-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted, #526174);
  font-size: .8rem;
  text-align: right;
}

.department-two-column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.department-three-column-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.department-single-form-grid { grid-template-columns: minmax(280px, 620px); }
.department-member-onboarding {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .85rem 0 0;
  padding: .7rem .85rem;
  border: 1px solid #a9dfcf;
  border-radius: 10px;
  background: #ecfaf5;
  color: #315d52;
  font-size: .76rem;
}
.department-member-onboarding strong { color: #08745b; }
.department-member-name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.department-member-assignment-form button:disabled {
  border-color: #cbd5df;
  background: #dce4eb;
  color: #718096;
  cursor: not-allowed;
}
.department-member-assignment-form > small { display: block; line-height: 1.4; }

.organization-workspace-panel .workflow-card {
  min-width: 0;
  padding: 1rem;
  border-radius: 13px;
  box-shadow: none;
}

.organization-workspace-panel > h2 {
  margin: 1.25rem 0 .55rem;
  color: var(--text, #102a43);
  font-size: 1rem;
}

.organization-workspace-panel .admin-table-wrap {
  margin-bottom: 1rem;
}

.department-batch-assignment {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #cbdbe8;
  border-left: 4px solid #15936f;
  border-radius: 13px;
  background: #fff;
}
.department-batch-heading,
.department-batch-tools,
.department-batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.department-batch-heading h3,
.department-batch-heading p { margin: .15rem 0; }
.department-batch-heading > div > small { color: #08775f; font-weight: 800; text-transform: uppercase; }
.department-batch-heading > strong { flex: 0 0 auto; color: #1769e0; }
.department-batch-controls { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .75rem; margin-top: .9rem; }
.department-batch-controls label,
.department-batch-tools label { display: grid; gap: .35rem; margin: 0; }
.department-batch-controls input,
.department-batch-controls select,
.department-batch-tools input { min-height: 38px; margin: 0; }
.department-batch-tools { margin-top: .8rem; }
.department-batch-tools label { flex: 1 1 300px; }
.department-batch-tools > div { display: flex; flex: 0 0 auto; gap: .45rem; }
.department-batch-tools button { width: auto; margin: 0; }
.department-batch-people {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .45rem;
  max-height: 360px;
  margin-top: .75rem;
  padding: .65rem;
  overflow: auto;
  border: 1px solid #d8e3ec;
  border-radius: 10px;
  background: #f8fbfd;
  overscroll-behavior: contain;
}
.department-batch-person {
  display: grid;
  grid-template-columns: 16px minmax(0,1fr) auto;
  gap: .6rem;
  min-height: 52px;
  margin: 0;
  padding: .55rem .65rem;
  border: 1px solid #dce5ed;
  border-radius: 9px;
  background: #fff;
}
.department-batch-person span,
.department-batch-person strong,
.department-batch-person small { display: block; min-width: 0; }
.department-batch-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.department-batch-person small { margin-top: .15rem; color: #718096; font-weight: 400; }
.department-batch-person em { align-self: center; color: #08775f; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.department-batch-person.is-assigned { border-color: #a7d9c7; background: #eaf8f2; }
.department-batch-actions { margin-top: .8rem; }
.department-batch-actions .status { flex: 1; margin: 0; }
.department-batch-actions button { flex: 0 0 auto; width: auto; margin: 0; }
html[data-theme="dark"] .department-batch-assignment,
html[data-theme="dark"] .department-batch-person { border-color: #354b62; background: #13283d; color: #edf5ff; }
html[data-theme="dark"] .department-batch-people { border-color: #354b62; background: #102235; }
html[data-theme="dark"] .department-batch-person.is-assigned { border-color: #28765f; background: #153c34; }

@media (max-width:680px) {
  .department-batch-heading,
  .department-batch-tools,
  .department-batch-actions { align-items: stretch; flex-direction: column; }
  .department-batch-heading > strong { align-self: flex-start; }
  .department-batch-controls,
  .department-batch-people { grid-template-columns: 1fr; }
  .department-batch-tools > div,
  .department-batch-actions button { width: 100%; }
  .department-batch-tools button { flex: 1; }
}

.department-guidance-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: linear-gradient(145deg, #edf8f5, #f8fbfd);
}

.department-guidance-card > span {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #15936f;
  color: #fff;
  font-size: 1.3rem;
}

.department-guidance-card h3 { margin: 0 0 .4rem; }
.department-guidance-card p,
.department-guidance-card li {
  color: var(--muted, #526174);
  font-size: .78rem;
  line-height: 1.5;
}
.department-guidance-card ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.compact-row-actions { display: inline-flex; align-items: center; gap: .35rem; }
.organization-workspace-status { position: sticky; bottom: 8px; z-index: 6; width: fit-content; max-width: 100%; }

html[data-theme="dark"] .organization-workspace-tabs,
html[data-theme="dark"] .organization-workspace-panel {
  border-color: #33465c;
  background: rgba(15,31,49,.97);
}

html[data-theme="dark"] .organization-workspace-tabs button { color: #c8d7e6; }
html[data-theme="dark"] .organization-workspace-tabs button span { background: #213a55; color: #e8f2fc; }
html[data-theme="dark"] .organization-workspace-tabs button:hover,
html[data-theme="dark"] .organization-workspace-tabs button.active {
  border-color: #45c6a0;
  background: #123a34;
  color: #d9fff3;
}
html[data-theme="dark"] .department-guidance-card { background: linear-gradient(145deg, #12362f, #13283d); }
html[data-theme="dark"] .department-member-onboarding {
  border-color: #286b5b;
  background: #11352f;
  color: #c5e9de;
}
html[data-theme="dark"] .department-member-onboarding strong { color: #75dfbf; }

@media (max-width: 640px) {
  .department-chart-grid, .department-form-grid { grid-template-columns: 1fr; }
  .department-chart-card { padding: .75rem; }
  .vertical-bar-chart { height: 200px; }
  .organization-workspace-tabs { top: 4px; margin-inline: -.25rem; }
  .organization-workspace-panel { min-height: 0; padding: .75rem; }
  .department-panel-heading { align-items: flex-start; flex-direction: column; }
  .department-panel-heading p { text-align: left; }
  .department-two-column-grid,
  .department-three-column-grid,
  .department-single-form-grid { grid-template-columns: 1fr; }
  .department-member-onboarding { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .department-member-name-grid { grid-template-columns: 1fr; }
}

.launcher-public-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: .7rem;
}

.launcher-public-actions a,
.launcher-public-actions button {
  width: auto;
  min-height: 38px;
  border-radius: 10px;
  padding: .55rem .85rem;
}

@media (min-width: 821px) and (max-height: 850px) {
  .launcher-directory { padding: 24px clamp(34px, 5vw, 68px); }
  .launcher-heading { margin-bottom: 18px; }
  .launcher-heading h2 { font-size: clamp(34px, 3.5vw, 46px); }
  .launcher-channels { gap: 10px; }
  .launcher-channel { min-height: 72px; padding: 9px 14px; }
  .launcher-help { margin-top: 12px; }
  .launcher-public-actions { margin-top: .45rem; }
}

.auth-page { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.auth-page .auth-shell { width: 100%; min-width: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1rem; box-sizing: border-box; }
.organisation-registration-card { max-width: 1180px; min-width: 0; width: min(1180px, calc(100vw - 2rem)); padding: 1.25rem; box-sizing: border-box; overflow: hidden; background: #fff; color: #172033; border: 1px solid #d8e1ec; border-radius: 18px; box-shadow: 0 16px 42px rgba(17,46,82,.12); }
.registration-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.registration-brand img { width: 64px; height: 64px; object-fit: contain; }
.registration-brand > div { min-width: 0; }
.registration-brand h1, .registration-brand p { margin: .15rem 0; }
.registration-brand h1 { color: #174a7c; overflow-wrap: normal; }
.registration-brand > div > p:last-child { color: #56657a; }
.plan-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan-selection-help { margin: .35rem 0 .75rem; color: #56657a; font-size: 13px; }
.plan-book-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: .9rem; margin-bottom: .9rem; }
.plan-book-toolbar .plan-selection-help { margin: 0; padding-top: .3rem; }
.plan-book-download { width: fit-content; min-width: 182px; border: 0; border-radius: 999px; padding: .45rem .95rem; background: #1769e0; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.plan-book-download:hover { background: #0f56b4; }
.plan-book-spread { position: relative; padding: 1rem; border-radius: 20px; border: 1px solid #d8e1ec; background: radial-gradient(circle at 15% 15%, #ffffffcc, #f4f7ff 42%, #eef3ff 78%); box-shadow: 0 18px 44px #0d234915; }
.plan-book-spread::before { content: ""; position: absolute; inset: .65rem; border: 1px dashed #cad6ea; border-radius: 16px; pointer-events: none; }
.billing-cycle-toggle { display: inline-flex; width: fit-content; margin: 0; padding: 3px; border: 1px solid #cbd8e6; border-radius: 999px; background: #edf3f8; }
.billing-cycle-toggle label { margin: 0; cursor: pointer; }
.billing-cycle-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.billing-cycle-toggle span { display: block; padding: .45rem .8rem; border-radius: 999px; color: #53677e; font-size: 12px; font-weight: 800; }
.billing-cycle-toggle input:checked + span { background: #1769e0; color: #fff; box-shadow: 0 2px 7px rgba(23,105,224,.24); }
.plan-choice-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.plan-choice-card { --plan-cover: #4f6eff; --plan-strip: #c9d7ff; --plan-sheet: #eef4ff; --plan-accent: #2246b8;
  position: relative; isolation: isolate; min-width: 0; overflow: hidden; border: 1px solid transparent; border-radius: 18px; color: #172033; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; background: var(--plan-sheet); box-shadow: 0 12px 20px #0f234a1f; }
.plan-choice-card.selected { border-color: var(--plan-accent); box-shadow: 0 0 0 2px var(--plan-accent), 0 14px 28px #1738ab3f; }
.plan-choice-card.unavailable { opacity: .68; }
.plan-choice-card::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(170deg, rgba(255,255,255,.45), rgba(255,255,255,0)), linear-gradient(90deg, var(--plan-strip), var(--plan-sheet)); opacity: .95; }
.plan-choice-card::after { content: ""; position: absolute; z-index: 0; left: 8px; top: 8px; bottom: 8px; width: 22px; pointer-events: none; background: linear-gradient(180deg, #fff 0, var(--plan-cover)); opacity: .75; border-right: 1px solid rgba(255,255,255,.55); }
.plan-choice-tag { position: absolute; right: .75rem; top: .65rem; padding: .2rem .45rem; background: #fff; color: #173f96; border-radius: 999px; font-size: 11px; font-weight: 800; border: 1px solid #cbd8ff; box-shadow: 0 3px 8px #234ca30f; z-index: 2; }
.plan-choice-select { position: relative; z-index: 1; display: block; min-width: 0; margin: 0; cursor: pointer; }
.plan-choice-select > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-choice-main { position: relative; z-index: 1; display: flex; min-width: 0; min-height: 128px; padding: .8rem .8rem .8rem 2.85rem; flex-direction: column; gap: .3rem; color: #172033; }
.plan-choice-main strong { color: #10253f; font-size: 16px; font-weight: 900; }
.plan-choice-main small { min-height: 34px; color: #354a63; line-height: 1.35; font-weight: 650; }
.plan-choice-main b { margin-top: auto; color: #075f4c; font-size: 15px; font-weight: 900; }
.plan-choice-main b em { color: #66788d; font-size: 11px; font-style: normal; font-weight: 600; }
.plan-comparison-details { margin-top: .75rem; border: 1px solid #d8e1ec; border-radius: 13px; overflow: hidden; background: #fff; }
.plan-comparison-details > summary { width: fit-content; margin: .7rem .8rem; color: #0b57d0; cursor: pointer; font-size: 13px; font-weight: 800; }
.plan-comparison-scroll { overflow-x: auto; border-top: 1px solid #d8e1ec; scrollbar-gutter: stable; }
.plan-comparison-scroll:focus-visible { outline: 3px solid rgba(23,105,224,.28); outline-offset: -3px; }
.plan-comparison-grid { display: grid; grid-template-columns: repeat(5, minmax(210px,1fr)); min-width: 1050px; }
.plan-comparison-column { min-width: 0; padding: .9rem; border-right: 1px solid #d8e1ec; background: var(--plan-sheet, #f8fafc); }
.plan-comparison-column:last-child { border-right: 0; }
.plan-comparison-column.unavailable { opacity: .68; }
.plan-comparison-column header { display: grid; gap: .25rem; min-height: 82px; padding-bottom: .65rem; border-bottom: 1px solid #d8e1ec; }
.plan-comparison-column h3 { margin: 0; color: #174a7c; font-size: 15px; }
.plan-comparison-column header strong { color: #0c745e; font-size: 13px; }
.plan-comparison-column header small { color: #65778b; }
.plan-comparison-column ul { margin: .7rem 0 0; padding-left: 1.1rem; color: #44566c; font-size: 12px; line-height: 1.5; }
.plan-comparison-column li + li { margin-top: .32rem; }
.organisation-registration-card .inline-check { justify-self: start; color: #26354a; white-space: normal; line-height: 1.4; }
.organisation-registration-card .inline-check input { width: auto; min-height: 0; }
.organisation-registration-card button[type="submit"],
.organisation-registration-card .settings-link { width: fit-content; justify-self: start; }
.activation-card { max-width: 780px; }
.activation-summary { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #b9ded5; border-radius: 12px; background: #effaf7; }
.activation-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem 1rem; margin: 0; }
.activation-summary dl > div { min-width: 0; }
.activation-summary dt { color: #5d7188; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.activation-summary dd { margin: .15rem 0 0; color: #143c63; font-weight: 750; overflow-wrap: anywhere; }
.activation-form { display: grid; gap: 1rem; }
.activation-form[hidden], .activation-summary[hidden], .activation-card .settings-link[hidden] { display: none; }
.onboarding-status-card { overflow: visible; }
.onboarding-progress { display: grid; gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.onboarding-progress li { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: .75rem; padding: .8rem; border: 1px solid #d8e1ec; border-radius: 12px; background: #f8fbff; }
.onboarding-progress li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dce7f6; color: #34516f; font-weight: 900; }
.onboarding-progress li div { display: grid; gap: .16rem; min-width: 0; }
.onboarding-progress li strong { color: #173f67; }
.onboarding-progress li small { color: #64758a; line-height: 1.35; }
.onboarding-progress li.is-complete { border-color: #91d3c3; background: #effaf7; }
.onboarding-progress li.is-complete > span { background: #118a76; color: #fff; }
.onboarding-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.onboarding-actions button, .onboarding-actions .settings-link { width: fit-content; }
.onboarding-next-check { min-height: 1.25rem; }
html[data-theme="dark"] .organisation-registration-card { background: #111e2e; color: #edf4ff; border-color: #33465c; box-shadow: 0 16px 42px rgba(0,0,0,.32); }
html[data-theme="dark"] .registration-brand h1 { color: #72a9ff; }
html[data-theme="dark"] .registration-brand > div > p:last-child { color: #b7c6d8; }
html[data-theme="dark"] .organisation-registration-card .settings-field label,
html[data-theme="dark"] .organisation-registration-card .inline-check,
html[data-theme="dark"] .plan-choice-main strong { color: #edf4ff; }
html[data-theme="dark"] .plan-selection-help { color: #a8b8cb; }
html[data-theme="dark"] .billing-cycle-toggle { border-color: #3b5068; background: #0d1a29; }
html[data-theme="dark"] .billing-cycle-toggle span { color: #b8c8da; }
html[data-theme="dark"] .billing-cycle-toggle input:checked + span { color: #fff; }
html[data-theme="dark"] .plan-book-spread { border-color: #2c4b6e; background: radial-gradient(circle at 15% 15%, #10223b, #101d2f 40%, #0f1522 80%); }
html[data-theme="dark"] .plan-book-download { background: #2c6af1; }
html[data-theme="dark"] .plan-book-download:hover { background: #4f83f4; }
html[data-theme="dark"] .plan-choice-card { background: #0d1a29; color: #edf4ff; box-shadow: 0 12px 20px #00000038; }
html[data-theme="dark"] .plan-choice-card.selected { border-color: var(--plan-accent); box-shadow: 0 0 0 2px var(--plan-accent), 0 16px 30px #0a1c402c; }
html[data-theme="dark"] .plan-choice-card::before { filter: brightness(.32) saturate(.9); }
html[data-theme="dark"] .plan-choice-card::after { opacity: .9; filter: brightness(.72) saturate(.9); }
html[data-theme="dark"] .plan-choice-tag { background: #0d1a29; color: #9fcbff; border-color: #2f4b7c; }
html[data-theme="dark"] .plan-choice-main { color: #edf4ff; }
html[data-theme="dark"] .plan-choice-main small { color: #a8b8cb; }
html[data-theme="dark"] .plan-choice-main b { color: #79e1bd; }
html[data-theme="dark"] .plan-comparison-details,
html[data-theme="dark"] .plan-comparison-scroll,
html[data-theme="dark"] .plan-comparison-column,
html[data-theme="dark"] .plan-comparison-column header { border-color: #3b5068; }
html[data-theme="dark"] .plan-comparison-details { background: #111e2e; }
html[data-theme="dark"] .plan-comparison-details > summary { color: #83b5ff; }
html[data-theme="dark"] .plan-comparison-column { background: #0d1a29; }
html[data-theme="dark"] .plan-comparison-column h3 { color: #edf4ff; }
html[data-theme="dark"] .plan-comparison-column header small,
html[data-theme="dark"] .plan-comparison-column ul { color: #a8b8cb; }
html[data-theme="dark"] .activation-summary { border-color: #315b57; background: #102c2a; }
html[data-theme="dark"] .activation-summary dt { color: #a9bdcf; }
html[data-theme="dark"] .activation-summary dd { color: #eaf5ff; }
html[data-theme="dark"] .onboarding-progress li { border-color: #33465c; background: #15263a; }
html[data-theme="dark"] .onboarding-progress li > span { background: #30465f; color: #dce9f8; }
html[data-theme="dark"] .onboarding-progress li strong { color: #e7f2ff; }
html[data-theme="dark"] .onboarding-progress li small { color: #b6c6d8; }
html[data-theme="dark"] .onboarding-progress li.is-complete { border-color: #315b57; background: #102c2a; }
html[data-theme="dark"] .onboarding-progress li.is-complete > span { background: #21a890; color: #fff; }
@media (max-width: 700px) {
  .auth-page { padding-bottom: 0; }
  .auth-page .auth-shell { place-items: start center; padding: .75rem; }
  .organisation-registration-card { width: 100%; padding: 1rem; }
  .registration-brand { display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: start; gap: .75rem; margin-bottom: 1rem; }
  .registration-brand img { width: 52px; height: 52px; }
  .registration-brand h1 { font-size: 24px; }
  .registration-brand > div > p:last-child { font-size: 13px; line-height: 1.4; }
  .plan-choice-grid { grid-auto-flow: column; grid-auto-columns: minmax(190px,78vw); grid-template-columns: none; overflow-x: auto; padding: 2px 2px .55rem; scroll-snap-type: x proximity; }
  .plan-choice-card { scroll-snap-align: start; }
  .plan-book-toolbar { align-items: flex-start; flex-direction: column; }
  .plan-book-download { width: 100%; }
  .activation-summary dl { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .registration-brand { grid-template-columns: 44px minmax(0,1fr); gap: .65rem; }
  .registration-brand img { width: 44px; height: 44px; }
  .registration-brand h1 { font-size: 22px; }
  .plan-selection-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .plan-choice-main { min-height: 0; }
}

.plan-management-shell { max-width: 1180px; margin: 0 auto; }
.plan-pricing-workspace { display: grid; gap: 1rem; }
.plan-pricing-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: .8rem; border: 1px solid #d8e1ec; border-radius: 12px; background: #f8fafc; }
.plan-pricing-toolbar > label:first-child { display: grid; gap: .35rem; width: 110px; font-size: 12px; font-weight: 800; }
.plan-pricing-webhook-note { display: grid; gap: .35rem; margin: 0 0 1rem; padding: .8rem; border: 1px solid #b8dfd3; border-radius: 12px; background: #eefaf6; color: #244f44; font-size: 12px; }
.plan-pricing-webhook-note code { width: fit-content; max-width: 100%; overflow-wrap: anywhere; color: #075f4f; font-weight: 800; }
.plan-pricing-webhook-note p { margin: 0; line-height: 1.45; }
.plan-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.plan-pricing-card { min-width: 0; padding: 1rem; border: 1px solid #d8e1ec; border-radius: 14px; background: #fff; }
.plan-pricing-card > header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid #e1e8f0; }
.plan-pricing-card h3 { margin: 0; color: #174a7c; }
.plan-pricing-card p { margin: .25rem 0 0; color: #60748a; font-size: 12px; line-height: 1.45; }
.plan-pricing-card .plan-module-counts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.plan-pricing-card .plan-module-counts span { padding: .3rem .5rem; border-radius: 999px; background: #edf4fb; color: #405b76; font-size: 10px; font-weight: 700; }
.plan-pricing-card .plan-module-counts b { color: #0b57d0; }
.plan-trial-note { display: block; margin-top: .6rem; color: #6b7f94; font-size: 10px; line-height: 1.45; }
.plan-pricing-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; margin-top: .8rem; }
.plan-pricing-fields label { display: grid; gap: .35rem; min-width: 0; color: #31465d; font-size: 11px; font-weight: 800; }
.plan-pricing-fields input { min-width: 0; }
.plan-pricing-card details { margin-top: .75rem; color: #40566e; font-size: 12px; }
.plan-pricing-card summary { width: fit-content; color: #0b57d0; cursor: pointer; font-weight: 800; }
.plan-pricing-card ul { margin: .65rem 0 0; padding-left: 1.25rem; line-height: 1.55; }
.plan-entitlement-section { min-width: 0; }
.plan-entitlement-tabs { display: flex; gap: .45rem; margin-bottom: .75rem; padding: .35rem; overflow-x: auto; border: 1px solid #d7e1eb; border-radius: 11px; background: #f4f8fb; }
.plan-entitlement-tabs button { flex: 0 0 auto; width: fit-content; min-height: 34px; margin: 0; padding: .45rem .8rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #526a80; font-size: 11px; font-weight: 800; }
.plan-entitlement-tabs button:hover,
.plan-entitlement-tabs button.active { border-color: #80cdbf; background: #e5f7f2; color: #08715f; }
.plan-entitlement-table-wrap { max-width: 100%; overflow: auto; border: 1px solid #d5e0ea; border-radius: 12px; }
.plan-entitlement-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 11px; }
.plan-entitlement-table th,
.plan-entitlement-table td { padding: .65rem; border-right: 1px solid #e1e8ef; border-bottom: 1px solid #e1e8ef; text-align: center; vertical-align: middle; }
.plan-entitlement-table thead th { position: sticky; top: 0; z-index: 2; background: #edf4fa; color: #24425e; font-size: 10px; text-transform: uppercase; }
.plan-entitlement-table th:first-child { position: sticky; left: 0; z-index: 3; width: 34%; min-width: 250px; background: #f9fbfd; text-align: left; }
.plan-entitlement-table thead th:first-child { z-index: 4; background: #edf4fa; }
.plan-entitlement-table th:last-child,
.plan-entitlement-table td:last-child { border-right: 0; }
.plan-entitlement-table tbody tr:last-child th,
.plan-entitlement-table tbody tr:last-child td { border-bottom: 0; }
.plan-entitlement-table tbody th strong,
.plan-entitlement-table tbody th small,
.plan-entitlement-table tbody th em { display: block; }
.plan-entitlement-table tbody th strong { color: #233f59; font-size: 11px; }
.plan-entitlement-table tbody th small { margin-top: .2rem; color: #657b90; font-size: 9px; font-weight: 400; line-height: 1.4; }
.plan-entitlement-table tbody th em { margin-top: .25rem; color: #087360; font-size: 8px; font-style: normal; }
.plan-entitlement-table td label { display: grid; width: 32px; height: 32px; margin: auto; place-items: center; cursor: pointer; }
.plan-entitlement-table td label > span { display: none !important; }
.plan-entitlement-table td input { width: 17px; height: 17px; min-height: 17px; margin: 0; accent-color: #087f6c; }
.plan-entitlement-help { margin: .75rem 0 0; padding: .7rem .8rem; border-left: 3px solid #159e87; border-radius: 5px; background: #eef8f5; color: #405e58; font-size: 10px; line-height: 1.5; }
.tenant-pool-section { min-width: 0; }
.tenant-pool-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.tenant-pool-summary-card { min-width: 0; padding: .8rem; border: 1px solid #cfe1dc; border-radius: 11px; background: #f3fbf8; }
.tenant-pool-summary-card.needs-capacity { border-color: #edcf8e; background: #fff9e9; }
.tenant-pool-summary-card span,
.tenant-pool-summary-card strong,
.tenant-pool-summary-card small { display: block; }
.tenant-pool-summary-card span { color: #557086; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tenant-pool-summary-card strong { margin-top: .2rem; color: #093e67; font-size: 18px; }
.tenant-pool-summary-card small { margin-top: .15rem; color: #657b8f; font-size: 9px; }
.tenant-pool-tabs { display: flex; gap: .45rem; margin-bottom: .8rem; padding: .35rem; overflow-x: auto; border: 1px solid #d7e1eb; border-radius: 11px; background: #f4f8fb; }
.tenant-pool-tabs button { flex: 0 0 auto; width: fit-content; min-height: 34px; margin: 0; padding: .45rem .8rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #526a80; font-size: 11px; font-weight: 800; }
.tenant-pool-tabs button.active { border-color: #80cdbf; background: #e5f7f2; color: #08715f; }
.tenant-pool-actions-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)) auto; gap: .65rem; align-items: end; margin-bottom: .8rem; }
.tenant-pool-actions-grid label { min-width: 0; color: #38536c; font-size: 10px; font-weight: 800; }
.tenant-pool-actions-grid input,
.tenant-pool-actions-grid select { width: 100%; min-height: 39px; margin-top: .25rem; font-size: 11px; }
.tenant-pool-actions-grid button { width: fit-content; min-height: 39px; white-space: nowrap; }
.tenant-pool-table-wrap { max-width: 100%; overflow: auto; border: 1px solid #d5e0ea; border-radius: 11px; }
.tenant-pool-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; font-size: 10px; }
.tenant-pool-table th,
.tenant-pool-table td { padding: .6rem .7rem; border-right: 1px solid #e1e8ef; border-bottom: 1px solid #e1e8ef; text-align: left; white-space: nowrap; }
.tenant-pool-table th { background: #edf4fa; color: #24425e; font-size: 9px; text-transform: uppercase; }
.tenant-pool-table tr:last-child td { border-bottom: 0; }
.tenant-pool-table th:last-child,
.tenant-pool-table td:last-child { border-right: 0; }
.tenant-pool-table td strong,
.tenant-pool-table td small { display: block; }
.tenant-pool-table td small { margin-top: .15rem; color: #74889a; font-size: 8px; }
.tenant-pool-table a { color: #075fc6; font-weight: 800; }
.tenant-pool-status { display: inline-flex; padding: .2rem .45rem; border-radius: 999px; background: #eaf0f5; color: #52677b; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.tenant-pool-status.ok { background: #dff6ed; color: #08705c; }
.tenant-pool-status.bad { background: #fde8ea; color: #b21932; }
.tenant-pool-table .compact-action { width: fit-content; min-height: 28px; padding: .3rem .55rem; font-size: 9px; }
.subscription-confirmation-card { width: min(620px, calc(100vw - 2rem)); padding: 1.25rem; }
.subscription-confirmation-result { margin: 1rem 0; }
.subscription-confirmation-summary { display: grid; gap: .5rem; margin: 0; }
.subscription-confirmation-summary div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: .75rem; padding: .7rem; border-radius: 9px; background: #eef4fa; }
.subscription-confirmation-summary dt { color: #526b82; font-weight: 700; }
.subscription-confirmation-summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 800; }
html[data-theme="dark"] .plan-pricing-toolbar,
html[data-theme="dark"] .plan-pricing-card { border-color: #33465c; background: #111e2e; color: #edf4ff; }
html[data-theme="dark"] .plan-pricing-webhook-note { border-color: #276458; background: #102d28; color: #c8f1e6; }
html[data-theme="dark"] .plan-pricing-webhook-note code { color: #85e7d2; }
html[data-theme="dark"] .plan-pricing-card > header { border-color: #33465c; }
html[data-theme="dark"] .plan-pricing-card h3,
html[data-theme="dark"] .plan-pricing-fields label { color: #edf4ff; }
html[data-theme="dark"] .plan-pricing-card p,
html[data-theme="dark"] .plan-pricing-card details { color: #a8b8cb; }
html[data-theme="dark"] .plan-pricing-card .plan-module-counts span { background: #1b3045; color: #bdcad8; }
html[data-theme="dark"] .plan-pricing-card .plan-module-counts b { color: #83b5ff; }
html[data-theme="dark"] .plan-trial-note { color: #9fb0c2; }
html[data-theme="dark"] .plan-pricing-card summary { color: #83b5ff; }
html[data-theme="dark"] .plan-entitlement-tabs { border-color: #33465c; background: #0d1a29; }
html[data-theme="dark"] .plan-entitlement-tabs button { color: #afbecd; }
html[data-theme="dark"] .plan-entitlement-tabs button:hover,
html[data-theme="dark"] .plan-entitlement-tabs button.active { border-color: #277969; background: #123d35; color: #9cebdc; }
html[data-theme="dark"] .plan-entitlement-table-wrap { border-color: #33465c; }
html[data-theme="dark"] .plan-entitlement-table { background: #111e2e; color: #dce7f2; }
html[data-theme="dark"] .plan-entitlement-table th,
html[data-theme="dark"] .plan-entitlement-table td { border-color: #2c4054; }
html[data-theme="dark"] .plan-entitlement-table thead th,
html[data-theme="dark"] .plan-entitlement-table thead th:first-child { background: #192a3c; color: #edf4ff; }
html[data-theme="dark"] .plan-entitlement-table th:first-child { background: #132235; }
html[data-theme="dark"] .plan-entitlement-table tbody th strong { color: #e5eef8; }
html[data-theme="dark"] .plan-entitlement-table tbody th small { color: #a8b8cb; }
html[data-theme="dark"] .plan-entitlement-table tbody th em { color: #89dfcf; }
html[data-theme="dark"] .plan-entitlement-help { background: #102d28; color: #c8e7df; }
html[data-theme="dark"] .tenant-pool-summary-card { border-color: #2e4c4a; background: #102a28; }
html[data-theme="dark"] .tenant-pool-summary-card.needs-capacity { border-color: #735f32; background: #302914; }
html[data-theme="dark"] .tenant-pool-summary-card span,
html[data-theme="dark"] .tenant-pool-summary-card small { color: #adc0cf; }
html[data-theme="dark"] .tenant-pool-summary-card strong { color: #e4effa; }
html[data-theme="dark"] .tenant-pool-tabs { border-color: #33465c; background: #0d1a29; }
html[data-theme="dark"] .tenant-pool-tabs button { color: #afbecd; }
html[data-theme="dark"] .tenant-pool-tabs button.active { border-color: #277969; background: #123d35; color: #9cebdc; }
html[data-theme="dark"] .tenant-pool-actions-grid label { color: #c1d1df; }
html[data-theme="dark"] .tenant-pool-table-wrap { border-color: #33465c; }
html[data-theme="dark"] .tenant-pool-table { background: #111e2e; color: #dce7f2; }
html[data-theme="dark"] .tenant-pool-table th { background: #192a3c; color: #edf4ff; }
html[data-theme="dark"] .tenant-pool-table th,
html[data-theme="dark"] .tenant-pool-table td { border-color: #2c4054; }
html[data-theme="dark"] .tenant-pool-table td small { color: #a5b7c7; }
html[data-theme="dark"] .tenant-pool-table a { color: #83baff; }
html[data-theme="dark"] .subscription-confirmation-summary div { background: #0d1a29; }
@media (max-width: 760px) {
  .plan-pricing-grid { grid-template-columns: 1fr; }
  .plan-pricing-fields { grid-template-columns: 1fr; }
  .plan-pricing-toolbar { align-items: flex-start; flex-direction: column; }
  .plan-entitlement-table { min-width: 680px; }
  .tenant-pool-summary { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; }
  .tenant-pool-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenant-pool-actions-grid button { grid-column: 1 / -1; }
}

/* Principal, Senior Pastor and Head Minister executive correspondence workspace. */
.executive-loading{display:grid;min-height:46vh;place-content:center;justify-items:center;gap:8px;color:#526d82;text-align:center}
.executive-loading small{font-size:11px}
.executive-office-intro{align-items:center;border-bottom:1px solid #d8e3ed;padding-bottom:14px}
.executive-workspace-tabs{position:sticky;top:66px;z-index:8;display:flex;gap:6px;margin:14px 0;padding:6px;overflow-x:auto;border:1px solid #d6e1eb;border-radius:13px;background:rgba(248,251,254,.95);box-shadow:0 7px 22px rgba(16,42,67,.07);backdrop-filter:blur(9px);scrollbar-width:thin}
.executive-workspace-tabs button{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;width:auto;min-height:39px;margin:0;padding:7px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#526b82;font-size:11px;font-weight:700}
.executive-workspace-tabs button span{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#e4edf5;color:#204f7f;font-size:13px}
.executive-workspace-tabs button:hover,.executive-workspace-tabs button.active{border-color:#159f8a;background:#e7f7f3;color:#087360}
.executive-workspace-tabs button.active span{background:#119b84;color:#fff}
.executive-workspace-panel{min-height:520px;padding:18px;border:1px solid #d6e1eb;border-radius:15px;background:#fbfdff}
.executive-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) repeat(2,minmax(220px,.75fr));gap:12px}
.executive-hero-card,.executive-quick-card{display:flex;min-width:0;min-height:164px;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:19px;border-radius:15px}
.executive-hero-card{grid-row:span 1;background:linear-gradient(135deg,#103c69,#176a83);color:#fff}
.executive-quick-card{border:1px solid #d3e0ea;background:#fff}
.executive-hero-card small,.executive-quick-card small{font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.executive-hero-card small{color:#a8e9df}
.executive-quick-card small{color:#07806d}
.executive-hero-card h3,.executive-quick-card h3{margin:6px 0;font-size:20px}
.executive-hero-card p,.executive-quick-card p{margin:0 0 14px;font-size:11px;line-height:1.55}
.executive-hero-card p{color:#d6e9f3}
.executive-quick-card p{color:#61778c}
.executive-hero-card button,.executive-quick-card button{width:fit-content;margin:0}
.executive-hero-card button{border:1px solid rgba(255,255,255,.45);background:#fff;color:#123f6d}
.executive-chart-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin:14px 0}
.executive-chart-grid .department-chart-card{min-height:245px}
.executive-empty-chart{display:grid;place-content:center;justify-items:center;text-align:center}
.executive-empty-chart>span{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:#e7f1fb;font-size:25px}
.executive-empty-chart h3{color:#173b58}
.executive-empty-chart .muted{color:#60778c!important}
.executive-recent{margin-top:14px;padding:15px;border:1px solid #d6e1eb;border-radius:14px;background:#fff}
.executive-recent .department-panel-heading{align-items:center}
.executive-metric-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.executive-metric-picker .check-row{display:flex;align-items:center;gap:9px;min-height:58px;margin:0;padding:10px;border:1px solid #d5e0eb;border-radius:10px;background:#f8fbfd}
.executive-metric-picker .check-row input{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:0}
.executive-metric-picker .check-row span,.executive-metric-picker .check-row strong,.executive-metric-picker .check-row small{display:block}
.executive-metric-picker .check-row strong{font-size:11px}
.executive-metric-picker .check-row small{margin-top:3px;color:#71869b;font-size:9px;font-weight:400}
.executive-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.executive-form-actions button{width:fit-content!important;margin:0!important}
.executive-form-actions .status{flex:1 1 220px;margin:0}
.executive-directory-layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:500px;margin:-18px;overflow:hidden;border-radius:15px}
.executive-directory-filters{display:flex;flex-direction:column;padding:20px 14px;border-right:1px solid #d9e4ee;background:linear-gradient(180deg,#eff5fa,#f8fbfd)}
.executive-directory-filters>small{color:#07806d;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.executive-directory-filters h3{margin:5px 0 17px}
.executive-directory-types{display:grid;gap:6px}
.executive-directory-types button{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;margin:0;padding:7px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#365069;text-align:left}
.executive-directory-types button span{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#dde9f3}
.executive-directory-types button:hover,.executive-directory-types button.active{border-color:#87cfc2;background:#e4f7f2;color:#086b5b}
.executive-directory-filters>p{display:flex;align-items:flex-start;gap:7px;margin:auto 0 0;padding:10px;border-radius:9px;background:#deeee9;color:#2a655b;font-size:9px;line-height:1.5}
.executive-directory-main{padding:20px}
.executive-directory-search{margin:0 0 15px}
.executive-directory-search>label{display:block;color:#314c65;font-size:11px;font-weight:700}
.executive-directory-search label>span{display:flex;gap:7px;margin-top:6px}
.executive-directory-search input{flex:1;min-width:0;height:40px;min-height:40px;margin:0}
.executive-directory-search button{width:fit-content;min-height:40px;margin:0}
.executive-directory-results{display:grid;gap:7px}
.executive-directory-record{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px;border:1px solid #d7e2ec;border-radius:11px;background:#fff}
.executive-record-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#153f6c,#16a18b);color:#fff;font-size:12px;font-weight:800}
.executive-directory-record strong,.executive-directory-record small,.executive-directory-record a{display:block}
.executive-directory-record strong{font-size:12px}
.executive-directory-record small{margin-top:2px;color:#6c8195;font-size:9px}
.executive-directory-record a{width:fit-content;margin-top:3px;color:#1769d2;font-size:9px}
.executive-directory-record button{width:fit-content;margin:0}
.executive-directory-empty{display:grid;min-height:210px;place-content:center;justify-items:center;grid-column:1/-1;color:#6e8296;text-align:center}
.executive-directory-empty>span{font-size:30px}
.executive-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.executive-template-card{display:flex;min-height:210px;flex-direction:column;align-items:flex-start;padding:16px;border:1px solid #d5e1ec;border-radius:13px;background:#fff}
.executive-template-card>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e7f1fb;color:#175f9f;font-size:18px}
.executive-template-card small{margin-top:12px;color:#07806d;font-size:8px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.executive-template-card h3{margin:4px 0 6px;font-size:14px}
.executive-template-card p{margin:0 0 14px;color:#63788c;font-size:10px;line-height:1.5}
.executive-template-card button{width:fit-content;margin:auto 0 0}
.executive-token-guide{margin-top:14px;padding:12px;border-radius:10px;background:#edf4fa}
.executive-token-guide strong{font-size:10px}.executive-token-guide p{margin:6px 0 0}.executive-token-guide code{display:inline-block;margin:2px;padding:3px 6px;border-radius:5px;background:#dce9f4;color:#245379;font-size:9px}
.executive-composer{display:grid;gap:11px}
.executive-compose-card{padding:15px;border:1px solid #d5e1ec;border-radius:13px;background:#fff}
.executive-compose-card>header{display:flex;align-items:center;gap:10px;margin-bottom:13px;padding-bottom:10px;border-bottom:1px solid #e1e8ef}
.executive-compose-card>header>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#163f6c;color:#fff;font-size:10px;font-weight:800}
.executive-compose-card>header strong,.executive-compose-card>header small{display:block}
.executive-compose-card>header strong{font-size:13px}.executive-compose-card>header small{margin-top:2px;color:#708497;font-size:9px;font-weight:400}
.executive-compose-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.executive-compose-card>label,.executive-compose-grid>label{margin:0;color:#304b64;font-size:10px;font-weight:700}
.executive-compose-card input:not([type=checkbox]):not([type=radio]),.executive-compose-card select,.executive-compose-card textarea{width:100%;margin-top:5px;background:#fbfdff;color:#102a43;font-size:12px;font-weight:400}
.executive-span-two{grid-column:span 2}
.executive-recipient-mode,.executive-endorsement-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:11px}
.executive-recipient-mode .check-row,.executive-endorsement-row .check-row{display:inline-flex;align-items:center;gap:7px;margin:0;padding:7px 10px;border:1px solid #d9e3ec;border-radius:9px;background:#f8fbfd}
.executive-recipient-mode input,.executive-endorsement-row input{width:15px;height:15px;min-height:15px;margin:0}
.executive-selected-recipient{display:flex;align-items:center;gap:9px;width:fit-content;max-width:100%;margin:0 0 9px;padding:8px 10px;border:1px solid #7dcdbf;border-radius:10px;background:#e5f8f3}
.executive-selected-recipient>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#139a82;color:#fff}
.executive-selected-recipient strong,.executive-selected-recipient small{display:block}.executive-selected-recipient strong{font-size:11px}.executive-selected-recipient small{color:#477266;font-size:9px}
.executive-selected-recipient button{margin-left:auto}
.executive-directory-email{display:block;max-width:430px;margin:0 0 9px;color:#304b64;font-size:10px;font-weight:700}
.executive-directory-email input{width:100%;margin-top:5px}
.executive-token-strip{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.executive-token-strip button{width:fit-content;min-height:25px;margin:0;padding:4px 7px;font:9px ui-monospace,monospace}
.executive-authorization-card{border-color:#9fd9ce;background:#f6fcfa}
.executive-password-confirm{display:block;max-width:390px;margin:10px 0!important}
.executive-password-confirm small{display:block;margin-top:3px;color:#6c8195;font-size:9px}
.executive-register-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.executive-register-toolbar span{color:#5f758a;font-size:10px}.executive-register-toolbar button{width:fit-content;margin:0}
.executive-register-list{display:grid;gap:6px}
.executive-register-row{display:grid;grid-template-columns:minmax(125px,.7fr) minmax(220px,1.5fr) 100px 105px auto;align-items:center;gap:10px;padding:10px;border:1px solid #d7e2ec;border-radius:10px;background:#fff}
.executive-register-row strong,.executive-register-row small{display:block}.executive-register-row strong{font-size:10px}.executive-register-row small{margin-top:2px;color:#708497;font-size:8px}.executive-register-row time{color:#60778c;font-size:9px}.executive-register-row .workflow-status{justify-self:start}.executive-register-row button{margin:0}
.executive-register-row .executive-send-action,.executive-register-row .executive-print-action{color:#185f96!important}
.executive-register-row .executive-send-action:hover,.executive-register-row .executive-print-action:hover{background:#e7f1fb!important;color:#0b456f!important}
html[data-theme="dark"] .executive-office-intro{border-color:#33485f}
html[data-theme="dark"] .executive-workspace-tabs,html[data-theme="dark"] .executive-workspace-panel{border-color:#33485f;background:rgba(15,31,49,.97)}
html[data-theme="dark"] .executive-workspace-tabs button{color:#cfdeed}
html[data-theme="dark"] .executive-workspace-tabs button span{background:#213b55;color:#e4effb}
html[data-theme="dark"] .executive-workspace-tabs button:hover,html[data-theme="dark"] .executive-workspace-tabs button.active{border-color:#42c5aa;background:#123c35;color:#e5fff9}
html[data-theme="dark"] .executive-quick-card,html[data-theme="dark"] .executive-recent,html[data-theme="dark"] .executive-template-card,html[data-theme="dark"] .executive-compose-card,html[data-theme="dark"] .executive-directory-record,html[data-theme="dark"] .executive-register-row{border-color:#354b62;background:#112438;color:#edf5ff}
html[data-theme="dark"] .executive-quick-card p,html[data-theme="dark"] .executive-template-card p,html[data-theme="dark"] .executive-directory-record small,html[data-theme="dark"] .executive-register-row small,html[data-theme="dark"] .executive-register-row time{color:#b8cada}
html[data-theme="dark"] .executive-metric-picker .check-row,html[data-theme="dark"] .executive-recipient-mode .check-row,html[data-theme="dark"] .executive-endorsement-row .check-row{border-color:#354b62;background:#13283d;color:#edf5ff}
html[data-theme="dark"] .executive-metric-picker .check-row small{color:#adc1d4}
html[data-theme="dark"] .executive-directory-filters{border-color:#354b62;background:linear-gradient(180deg,#10243a,#0e1e30)}
html[data-theme="dark"] .executive-directory-types button{color:#cfdeed}
html[data-theme="dark"] .executive-directory-types button span{background:#213a55}
html[data-theme="dark"] .executive-directory-types button:hover,html[data-theme="dark"] .executive-directory-types button.active{border-color:#42c5aa;background:#123c35;color:#e5fff9}
html[data-theme="dark"] .executive-directory-filters>p{background:#12362f;color:#c7eee4}
html[data-theme="dark"] .executive-directory-search>label{color:#e7f1fb}
html[data-theme="dark"] .executive-directory-empty{color:#bfd0df}
html[data-theme="dark"] .executive-token-guide{background:#142a40;color:#e7f1fb}
html[data-theme="dark"] .executive-token-guide code{background:#213b55;color:#cce5ff}
html[data-theme="dark"] .executive-compose-card>header{border-color:#344960}
html[data-theme="dark"] .executive-compose-card>header small,html[data-theme="dark"] .executive-password-confirm small,html[data-theme="dark"] .executive-register-toolbar span{color:#b8cada}
html[data-theme="dark"] .executive-compose-card>label,html[data-theme="dark"] .executive-compose-grid>label{color:#e7f1fb}
html[data-theme="dark"] .executive-directory-email{color:#e7f1fb}
html[data-theme="dark"] .executive-compose-card input:not([type=checkbox]):not([type=radio]),html[data-theme="dark"] .executive-compose-card select,html[data-theme="dark"] .executive-compose-card textarea{border-color:#405871;background:#0d1c2c;color:#f2f7ff}
html[data-theme="dark"] .executive-authorization-card{border-color:#287663;background:#102f2b}
html[data-theme="dark"] .executive-selected-recipient{border-color:#2f927c;background:#123c35;color:#e8fff9}
html[data-theme="dark"] .executive-empty-chart{border-color:#354b62;background:#112438;color:#edf5ff}
html[data-theme="dark"] .executive-empty-chart>span{background:#213b55;color:#dcecff}
html[data-theme="dark"] .executive-empty-chart .muted{color:#b8cada!important}
html[data-theme="dark"] .executive-register-row .executive-send-action,html[data-theme="dark"] .executive-register-row .executive-print-action{color:#9ed2ff!important}
html[data-theme="dark"] .executive-register-row .executive-send-action:hover,html[data-theme="dark"] .executive-register-row .executive-print-action:hover{background:#213b55!important;color:#fff!important}
@media(max-width:980px){
  .executive-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .executive-hero-card{grid-column:1/-1}
  .executive-register-row{grid-template-columns:minmax(120px,.7fr) minmax(180px,1.5fr) 90px auto}
  .executive-register-row time{display:none}
}
@media(max-width:680px){
  .executive-office-intro{align-items:flex-start}
  .executive-workspace-tabs{top:4px;margin:9px -4px;padding:4px}
  .executive-workspace-tabs button{padding:6px 8px;font-size:9px}
  .executive-workspace-panel{min-height:0;padding:10px}
  .executive-overview-grid{grid-template-columns:1fr}
  .executive-hero-card{grid-column:auto}
  .executive-hero-card,.executive-quick-card{min-height:145px;padding:15px}
  .executive-chart-grid{grid-template-columns:1fr}
  .executive-metric-picker{grid-template-columns:1fr}
  .executive-directory-layout{grid-template-columns:1fr;min-height:0;margin:-10px}
  .executive-directory-filters{padding:13px;border-right:0;border-bottom:1px solid #d9e4ee}
  .executive-directory-types{display:flex;gap:5px;overflow-x:auto}
  .executive-directory-types button{flex:0 0 auto;width:auto}
  .executive-directory-filters>p{display:none}
  .executive-directory-main{padding:13px}
  .executive-directory-record{grid-template-columns:36px minmax(0,1fr) auto;padding:8px}
  .executive-record-avatar{width:36px;height:36px}
  .executive-compose-card{padding:11px}
  .executive-compose-grid{grid-template-columns:1fr}
  .executive-span-two{grid-column:auto}
  .executive-register-row{grid-template-columns:minmax(90px,.7fr) minmax(125px,1.5fr) auto;padding:8px}
  .executive-register-row>.workflow-status{display:none}
  .executive-register-row .compact-row-actions{justify-self:end}
}

/* Universal Records Desk: scoped filters, bounded results and selected detail. */
.records-desk-handoff{display:flex;align-items:center;gap:9px;width:fit-content;max-width:100%;margin:0 0 12px;padding:8px 11px;border:1px solid #9bd8cb;border-radius:9px;background:#e9f8f4;color:#155e55}.records-desk-handoff>span{font-size:16px}.records-desk-handoff p{margin:0}.records-desk-handoff strong,.records-desk-handoff small{display:block}.records-desk-handoff strong{font-size:10px}.records-desk-handoff small{margin-top:2px;font-size:9px}
.records-desk-shell{display:grid;grid-template-columns:minmax(230px,270px) minmax(310px,360px) minmax(380px,1fr);min-height:calc(100vh - 205px);min-height:calc(100dvh - 205px);margin:-22px;overflow:hidden;border-radius:12px;background:#f4f7fa}
.records-desk-filters,.records-desk-results-pane,.records-desk-detail-pane{min-width:0}
.records-desk-filters{display:flex;flex-direction:column;padding:20px 16px;border-right:1px solid #d9e2ec;background:linear-gradient(180deg,#f9fbfd,#eef4f8)}
.records-desk-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px}.records-desk-heading>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#123c68;color:#fff;font-size:20px}
.records-desk-heading small,.records-desk-results-pane header small,.records-desk-profile-header small{display:block;color:#087f73;font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.records-desk-heading h2,.records-desk-results-pane header h2{margin:3px 0 0;color:#102a43;font-size:18px}
.records-desk-search{margin:0 0 17px}.records-desk-search>label{display:block;margin-bottom:6px;color:#344f68;font-size:11px;font-weight:700}.records-desk-search>div{position:relative;display:flex;align-items:center}.records-desk-search>div>span{position:absolute;left:11px;z-index:1;color:#627d98;font-size:14px}
.records-desk-search input{width:100%;height:42px;min-height:42px;margin:0;padding:8px 68px 8px 34px;border:1px solid #b8c8d8;border-radius:10px;background:#fff;color:#102a43;font-size:12px}.records-desk-search button{position:absolute;right:5px;width:58px;min-height:32px;margin:0;padding:6px 8px;border-radius:7px;font-size:10px}
.records-desk-type-list{display:grid;gap:5px}.records-desk-type-list button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#334e68;text-align:left}.records-desk-type-list button>span:first-child{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#e3ebf3;font-size:13px}.records-desk-type-list button>span:last-child{font-size:12px;font-weight:700}
.records-desk-type-list button:hover,.records-desk-type-list button.active{border-color:#9bd8cb;background:#e5f7f2;color:#075e50}.records-desk-type-list button.active{box-shadow:inset 3px 0 0 #0e9f8a}
.records-desk-privacy{display:flex;align-items:flex-start;gap:8px;margin-top:auto;padding:12px;border-radius:10px;background:#e6f3ef;color:#1b5d50}.records-desk-privacy>span{font-size:16px}.records-desk-privacy p{margin:0}.records-desk-privacy strong,.records-desk-privacy small{display:block}.records-desk-privacy strong{font-size:11px}.records-desk-privacy small{margin-top:3px;font-size:9px;line-height:1.45}
.records-desk-results-pane{display:flex;flex-direction:column;border-right:1px solid #d9e2ec;background:#fff}.records-desk-results-pane>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 17px 13px;border-bottom:1px solid #e3eaf1}.records-desk-results-pane>header>span{display:grid;place-items:center;min-width:30px;height:25px;padding:0 8px;border-radius:13px;background:#eaf1f8;color:#34516e;font-size:10px;font-weight:800}
.records-desk-result-message{min-height:42px;padding:10px 17px;color:#627d98;font-size:10px}.records-desk-result-message p{margin:0}.records-desk-result-message .status{font-size:11px}.records-desk-results{display:flex;flex-direction:column;gap:4px;overflow-y:auto;padding:0 8px 18px;overscroll-behavior:contain}
.records-desk-result{display:grid;grid-template-columns:42px minmax(0,1fr) 16px;align-items:center;gap:10px;width:100%;min-height:67px;margin:0;padding:9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#243b53;text-align:left}.records-desk-result:hover{background:#f4f7fa}.records-desk-result.selected{border-color:#47bda7;background:#e9f8f4;box-shadow:inset 3px 0 0 #0e9f8a}
.records-desk-result-avatar,.records-desk-profile-avatar{display:grid;place-items:center;border-radius:12px;color:#fff;font-weight:800}.records-desk-result-avatar{width:42px;height:42px;font-size:12px}.records-desk-result-avatar.tone-1{background:linear-gradient(145deg,#14528a,#207bc2)}.records-desk-result-avatar.tone-2{background:linear-gradient(145deg,#08756f,#19aa9e)}.records-desk-result-avatar.tone-3{background:linear-gradient(145deg,#6b3fa0,#9765c4)}.records-desk-result-avatar.tone-4{background:linear-gradient(145deg,#a34827,#ce6b42)}.records-desk-result-avatar.tone-5{background:linear-gradient(145deg,#986300,#d69a14)}
.records-desk-result-copy{min-width:0}.records-desk-result-copy strong,.records-desk-result-copy span,.records-desk-result-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.records-desk-result-copy strong{font-size:12px}.records-desk-result-copy span{margin-top:3px;color:#526d82;font-size:10px}.records-desk-result-copy small{margin-top:3px;color:#829ab1;font-size:9px}.records-desk-result-arrow{color:#9fb3c8;font-size:20px;text-align:center}
.records-desk-detail-pane{overflow-y:auto;padding:22px;background:#f8fafc;overscroll-behavior:contain}.records-desk-detail-state{display:grid;place-items:center;align-content:center;min-height:420px;color:#627d98;text-align:center}.records-desk-detail-state strong,.records-desk-detail-state small{display:block}.records-desk-detail-state strong{margin-top:10px;color:#334e68;font-size:16px}.records-desk-detail-state small{max-width:300px;margin-top:5px;font-size:11px;line-height:1.5}.records-desk-empty-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e8eef5;font-size:27px}.records-desk-spinner{display:inline-block;width:16px;height:16px;margin-right:6px;border:2px solid #b8c8d8;border-top-color:#0e9f8a;border-radius:50%;vertical-align:middle;animation:button-spin .75s linear infinite}
.records-desk-profile-header{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:13px;padding-bottom:18px;border-bottom:1px solid #d6e0ea}.records-desk-profile-avatar{width:58px;height:58px;background:linear-gradient(145deg,#123c68,#159b91);font-size:17px}.records-desk-profile-header h2{margin:4px 0 2px!important;color:#102a43;font-size:21px!important}.records-desk-profile-header p{margin:0;color:#526d82;font-size:11px}.records-desk-status{align-self:start;padding:5px 9px;border-radius:15px;background:#ddf5ea;color:#086a51;font-size:9px;font-weight:800}
.records-desk-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.records-desk-metrics>div{min-width:0;padding:12px;border:1px solid #d5e0ea;border-radius:10px;background:#fff;box-shadow:0 3px 9px rgba(16,42,67,.035)}.records-desk-metrics small,.records-desk-metrics strong{display:block}.records-desk-metrics small{color:#627d98;font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.records-desk-metrics strong{margin-top:5px;overflow:hidden;color:#102a43;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.records-desk-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.records-desk-actions button{width:fit-content;min-height:34px;margin:0;padding:7px 11px;border-radius:8px;font-size:10px}.records-desk-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.records-desk-info-card,.records-desk-activity-card{min-width:0;padding:15px;border:1px solid #d7e1eb;border-radius:11px;background:#fff}.records-desk-info-card h3,.records-desk-activity-card h3{margin:0 0 11px!important;color:#173b58;font-size:13px!important}
.records-desk-info-card dl{margin:0}.records-desk-info-card dl>div{display:grid;grid-template-columns:minmax(90px,.75fr) minmax(0,1.25fr);gap:8px;padding:7px 0;border-top:1px solid #edf1f5}.records-desk-info-card dl>div:first-child{border-top:0}.records-desk-info-card dt{color:#6b7f93;font-size:9px}.records-desk-info-card dd{min-width:0;margin:0;color:#243b53;font-size:10px;font-weight:700;overflow-wrap:anywhere}
.records-desk-activity-card article{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #edf1f5}.records-desk-activity-card article:first-child{border-top:0}.records-desk-activity-card article span{min-width:0}.records-desk-activity-card article strong,.records-desk-activity-card article small{display:block}.records-desk-activity-card article strong{color:#243b53;font-size:10px}.records-desk-activity-card article small{margin-top:3px;color:#829ab1;font-size:8px}.records-desk-activity-card article b{flex:0 0 auto;color:#087f73;font-size:10px}.records-desk-mobile-back{display:none}

html[data-theme="dark"] .records-desk-shell{background:#091625}html[data-theme="dark"] .records-desk-filters{border-color:#2a4056;background:linear-gradient(180deg,#10243a,#0c1d2f)}html[data-theme="dark"] .records-desk-results-pane{border-color:#2a4056;background:#0d1b2b}html[data-theme="dark"] .records-desk-detail-pane{background:#0a1726}
html[data-theme="dark"] .records-desk-heading h2,html[data-theme="dark"] .records-desk-results-pane header h2,html[data-theme="dark"] .records-desk-profile-header h2,html[data-theme="dark"] .records-desk-detail-state strong,html[data-theme="dark"] .records-desk-info-card h3,html[data-theme="dark"] .records-desk-activity-card h3{color:#f1f6fc}
html[data-theme="dark"] .records-desk-search>label,html[data-theme="dark"] .records-desk-type-list button{color:#c9d8e8}html[data-theme="dark"] .records-desk-search input{border-color:#385069;background:#0b1a2a;color:#f2f7fc}html[data-theme="dark"] .records-desk-type-list button>span:first-child{background:#1a344e}html[data-theme="dark"] .records-desk-type-list button:hover,html[data-theme="dark"] .records-desk-type-list button.active{border-color:#2b8f80;background:#123b35;color:#d9fff4}html[data-theme="dark"] .records-desk-privacy{background:#12342f;color:#c0eadf}
html[data-theme="dark"] .records-desk-results-pane>header{border-color:#2a4056}html[data-theme="dark"] .records-desk-results-pane>header>span{background:#1a3047;color:#cfdeed}html[data-theme="dark"] .records-desk-result{color:#e7f0f9}html[data-theme="dark"] .records-desk-result:hover{background:#14283d}html[data-theme="dark"] .records-desk-result.selected{border-color:#3bb69e;background:#123a34}html[data-theme="dark"] .records-desk-result-copy span{color:#b4c5d7}html[data-theme="dark"] .records-desk-result-copy small,html[data-theme="dark"] .records-desk-result-message,html[data-theme="dark"] .records-desk-profile-header p{color:#91a8bd}
html[data-theme="dark"] .records-desk-profile-header{border-color:#2b4056}html[data-theme="dark"] .records-desk-metrics>div,html[data-theme="dark"] .records-desk-info-card,html[data-theme="dark"] .records-desk-activity-card{border-color:#2b4056;background:#101f30}html[data-theme="dark"] .records-desk-metrics strong,html[data-theme="dark"] .records-desk-info-card dd,html[data-theme="dark"] .records-desk-activity-card article strong{color:#edf4fc}html[data-theme="dark"] .records-desk-info-card dl>div,html[data-theme="dark"] .records-desk-activity-card article{border-color:#273b50}html[data-theme="dark"] .records-desk-info-card dt,html[data-theme="dark"] .records-desk-metrics small{color:#9fb1c5}
html[data-theme="dark"] .records-desk-handoff{border-color:#2b8f80;background:#123b35;color:#d9fff4}

@media (max-width:1180px) and (min-width:681px){.records-desk-shell{grid-template-columns:220px 300px minmax(330px,1fr)}.records-desk-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.records-desk-detail-grid{grid-template-columns:1fr}}
@media (max-width:680px){
  .records-desk-shell{display:block;min-height:calc(100dvh - 176px);margin:-14px;border-radius:0;background:#fff;overflow:visible}.records-desk-filters{padding:15px 12px 10px;border:0;border-bottom:1px solid #d9e2ec;background:#f7fafc}.records-desk-heading{margin-bottom:12px}.records-desk-heading>span{width:36px;height:36px}.records-desk-heading h2{font-size:17px}.records-desk-search{margin-bottom:10px}.records-desk-search input{font-size:16px}
  .records-desk-type-list{display:flex;gap:6px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.records-desk-type-list::-webkit-scrollbar{display:none}.records-desk-type-list button{flex:0 0 auto;width:auto;min-height:36px;padding:6px 9px;white-space:nowrap}.records-desk-type-list button>span:first-child{width:23px;height:23px}.records-desk-privacy{display:none}
  .records-desk-results-pane{min-height:48dvh;border:0}.records-desk-results-pane>header{padding:14px 12px 9px}.records-desk-results-pane>header h2{font-size:15px}.records-desk-result-message{padding:8px 12px}.records-desk-results{overflow:visible;padding:0 6px 96px}.records-desk-result{min-height:65px;border-bottom:1px solid #edf1f5;border-radius:9px}
  .records-desk-detail-pane{display:none;min-height:calc(100dvh - 145px);padding:13px 11px 100px;overflow:visible}.records-desk-shell.detail-open .records-desk-filters,.records-desk-shell.detail-open .records-desk-results-pane{display:none}.records-desk-shell.detail-open .records-desk-detail-pane{display:block}
  .records-desk-mobile-back{display:inline-flex;align-items:center;gap:5px;width:fit-content;min-height:34px;margin:0 0 12px;padding:6px 10px;border:1px solid #cbd8e4;background:#fff;color:#294b69}.records-desk-mobile-back span{font-size:20px;line-height:1}.records-desk-profile-header{grid-template-columns:48px minmax(0,1fr);gap:10px}.records-desk-profile-avatar{width:48px;height:48px}.records-desk-profile-header h2{font-size:18px!important}.records-desk-status{grid-column:2;width:fit-content;margin-top:2px}
  .records-desk-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}.records-desk-metrics>div{padding:10px}.records-desk-actions{position:sticky;top:4px;z-index:5;padding:7px;border:1px solid #d8e2eb;border-radius:10px;background:rgba(248,250,252,.96);backdrop-filter:blur(8px)}.records-desk-detail-grid{grid-template-columns:1fr}.records-desk-info-card,.records-desk-activity-card{padding:13px}.records-desk-info-card dl>div{grid-template-columns:110px minmax(0,1fr)}
  html[data-theme="dark"] .records-desk-shell{background:#0a1726}html[data-theme="dark"] .records-desk-filters{border-color:#2a4056;background:#0e2033}html[data-theme="dark"] .records-desk-mobile-back{border-color:#334b63;background:#13263a;color:#d9e7f5}html[data-theme="dark"] .records-desk-actions{border-color:#30475e;background:rgba(12,29,47,.96)}
}

/* Student Conduct & Discipline Committee */
.student-conduct-summary{grid-template-columns:repeat(5,minmax(112px,1fr));margin:0 0 14px}
.student-conduct-summary>div{display:flex;min-height:88px;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.student-conduct-summary>div:nth-child(1){background:linear-gradient(145deg,#123c68,#1c5d96);color:#fff}
.student-conduct-summary>div:nth-child(2){background:linear-gradient(145deg,#08756f,#18a091);color:#fff}
.student-conduct-summary>div:nth-child(3){background:linear-gradient(145deg,#68449b,#8d63bd);color:#fff}
.student-conduct-summary>div:nth-child(4){background:linear-gradient(145deg,#9d4527,#c76742);color:#fff}
.student-conduct-summary>div:nth-child(5){background:linear-gradient(145deg,#176b4e,#239270);color:#fff}
.student-conduct-summary small{color:rgba(255,255,255,.84)}
.student-conduct-summary strong{color:#fff;font-size:21px}
.student-conduct-layout{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:16px;align-items:start}
.student-conduct-card{min-width:0;padding:18px;border:1px solid #d7e2ee;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(22,47,76,.07)}
.student-conduct-card h3{margin:2px 0 14px;color:#102a43}
.student-conduct-card-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:14px}
.student-conduct-card-heading h3{margin:2px 0}
.student-conduct-student-search{display:grid;flex:0 1 300px;gap:4px;color:#274762;font-size:10px;font-weight:700}
.student-conduct-student-search-controls{display:flex;align-items:stretch;gap:6px}
.student-conduct-student-search input{width:100%;min-height:36px;margin:0;padding:7px 10px;border:1px solid #b9c9d9;border-radius:9px;background:#f8fbfe;color:#102a43;font:500 12px/1.25 Arial,sans-serif}
.student-conduct-student-search button{width:auto;min-height:36px;margin:0;padding:7px 12px;border-radius:9px;white-space:nowrap}
.student-conduct-student-search small{min-height:13px;color:#647f96;font-size:9px;font-weight:500;text-align:right}
.student-conduct-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.student-conduct-form label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#274762;font-size:10px;font-weight:700}
.student-conduct-form input,.student-conduct-form select,.student-conduct-form textarea{width:100%;min-height:38px;margin:0;padding:8px 10px;border:1px solid #cbd8e4;border-radius:8px;background:#fff;color:#102a43;font:inherit;font-weight:500}
.student-conduct-form textarea{resize:vertical}
.student-conduct-form .checkbox-line{display:flex;min-height:38px;flex-direction:row;align-items:center;gap:8px;padding:7px 9px;border:1px solid #d7e2ee;border-radius:8px;background:#f7fafc}
.student-conduct-form .checkbox-line input{width:16px;min-height:16px;margin:0}
.conduct-span-2{grid-column:1/-1}
.student-conduct-actions{display:flex;align-items:center;gap:8px}
.student-conduct-actions button{width:auto}
.conduct-register{overflow:auto}
.conduct-register table{min-width:920px}
.conduct-register .table-icon-actions{white-space:nowrap}
html[data-theme="dark"] .student-conduct-card{border-color:#2c435a;background:#0f2032;box-shadow:none}
html[data-theme="dark"] .student-conduct-card h3,html[data-theme="dark"] .student-conduct-form label{color:#e7f0f9}
html[data-theme="dark"] .student-conduct-student-search{color:#e7f0f9}
html[data-theme="dark"] .student-conduct-student-search input{border-color:#3b5670;background:#102438;color:#edf5ff}
html[data-theme="dark"] .student-conduct-student-search button{border-color:#4b6b88}
html[data-theme="dark"] .student-conduct-student-search small{color:#a8bdd0}
html[data-theme="dark"] .student-conduct-form input,html[data-theme="dark"] .student-conduct-form select,html[data-theme="dark"] .student-conduct-form textarea{border-color:#344c63;background:#102438;color:#edf5ff}
html[data-theme="dark"] .student-conduct-form .checkbox-line{border-color:#344c63;background:#13283c;color:#edf5ff}
@media(max-width:980px){.student-conduct-summary{grid-template-columns:repeat(5,minmax(118px,1fr));overflow-x:auto}.student-conduct-layout{grid-template-columns:1fr}}
@media(max-width:680px){.student-conduct-summary{margin-right:-14px}.student-conduct-card{padding:13px;border-radius:13px}.student-conduct-card-heading{display:grid}.student-conduct-student-search{width:100%;max-width:none}.student-conduct-student-search-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}.student-conduct-form{grid-template-columns:1fr}.conduct-span-2{grid-column:auto}}

/* Keep summary cards readable in one bounded row; overflow belongs to the row, not the page. */
.metric-row,
.workflow-kpis,
.commerce-summary-grid,
.records-desk-metrics,
.student-conduct-summary{
  --summary-card-basis:clamp(145px,18vw,210px);
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  width:100%;
  max-width:100%;
  min-width:0;
  padding-bottom:7px;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scroll-padding-inline:2px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:#91a8bd transparent;
  touch-action:pan-x pan-y;
  -webkit-overflow-scrolling:touch;
}
.metric-row>div,
.workflow-kpis>div,
.commerce-summary-grid>div,
.records-desk-metrics>div,
.student-conduct-summary>div{
  flex:1 0 var(--summary-card-basis);
  min-width:var(--summary-card-basis);
  max-width:none;
  scroll-snap-align:start;
}
.metric-row:has(>.credit-note){
  display:grid;
  grid-template-columns:repeat(4,minmax(var(--summary-card-basis),1fr));
}
.metric-row:has(>.credit-note)>.credit-note{grid-column:1/-1}
.metric-row:focus-visible,
.workflow-kpis:focus-visible,
.commerce-summary-grid:focus-visible,
.records-desk-metrics:focus-visible,
.student-conduct-summary:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
}
.workflow-kpis{--summary-card-basis:clamp(165px,19vw,220px)}
.commerce-summary-grid{--summary-card-basis:clamp(150px,17vw,205px)}
.records-desk-metrics{--summary-card-basis:clamp(135px,15vw,180px)}
.student-conduct-summary{--summary-card-basis:clamp(145px,17vw,190px)}
html[data-theme="dark"] .metric-row,
html[data-theme="dark"] .workflow-kpis,
html[data-theme="dark"] .commerce-summary-grid,
html[data-theme="dark"] .records-desk-metrics,
html[data-theme="dark"] .student-conduct-summary{scrollbar-color:#526d82 transparent}

/* Student face lookup */
.records-desk-face-action{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:38px;
  margin:-5px 0 14px;
  padding:7px 11px;
  border:1px solid #8fcfc2;
  border-radius:9px;
  background:#e8f7f3;
  color:#075f52;
  font-size:11px;
  font-weight:800;
}
.records-desk-face-action:hover{border-color:#45ad99;background:#d9f2ec;color:#064f45}
.records-desk-face-action>span:first-child{font-size:15px}
.sensitive-access-toggle{
  padding:9px 10px!important;
  border:1px solid #d5c58c!important;
  border-radius:9px;
  background:#fff9e7;
}
.student-face-dialog{
  width:min(680px,calc(100vw - 28px));
  max-width:680px;
  max-height:calc(100dvh - 28px);
  margin:auto;
  padding:0;
  overflow:auto;
  border:0;
  border-radius:18px;
  background:#fff;
  color:#102a43;
  box-shadow:0 28px 80px rgba(4,23,43,.42);
}
.student-face-dialog::backdrop{background:rgba(4,17,31,.7);backdrop-filter:blur(4px)}
.student-face-dialog>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 16px;
  border-bottom:1px solid #d9e4ee;
  background:linear-gradient(135deg,#f8fbff,#eef8f5);
}
.student-face-dialog>header small{
  display:block;
  color:#087d6d;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.student-face-dialog>header h2{margin:4px 0 0!important;color:#102a43;font-size:22px!important}
.student-face-dialog>header p{margin:5px 0 0;color:#60788e;font-size:11px}
.student-face-close{
  display:grid;
  flex:0 0 auto;
  width:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  place-items:center;
  border:1px solid #d1deea!important;
  border-radius:50%!important;
  background:#edf3f8!important;
  color:#24445f!important;
  font-size:21px!important;
  line-height:1!important;
}
.student-face-notice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:16px 22px 12px;
  padding:11px 13px;
  border:1px solid #bfe2d9;
  border-radius:11px;
  background:#edf9f6;
  color:#174d45;
}
.student-face-notice>span{font-size:19px}
.student-face-notice p{margin:0}
.student-face-notice strong,.student-face-notice small{display:block}
.student-face-notice strong{font-size:11px}
.student-face-notice small{margin-top:3px;color:#49726c;font-size:9px;line-height:1.5}
.student-face-camera{
  position:relative;
  width:calc(100% - 44px);
  aspect-ratio:16/9;
  max-height:360px;
  margin:0 22px;
  overflow:hidden;
  border:1px solid #233f59;
  border-radius:14px;
  background:radial-gradient(circle at 50% 42%,#173c55,#071827 72%);
}
.student-face-camera video{
  width:100%;
  height:100%;
  border:0;
  background:transparent;
  object-fit:cover;
  transform:scaleX(-1);
}
.student-face-guide{
  position:absolute;
  inset:11% 31%;
  border:2px solid rgba(128,245,210,.9);
  border-radius:48% 48% 44% 44%;
  box-shadow:0 0 0 999px rgba(2,15,27,.22),0 0 20px rgba(68,223,180,.2);
  pointer-events:none;
}
.student-face-camera>p{
  position:absolute;
  right:12px;
  bottom:10px;
  left:12px;
  width:fit-content;
  margin:0 auto;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(3,17,29,.76);
  color:#f0fff9;
  font-size:9px;
  text-align:center;
  pointer-events:none;
}
.student-face-dialog>progress{
  display:block;
  width:calc(100% - 44px);
  height:7px;
  margin:10px 22px 0;
  overflow:hidden;
  border:0;
  border-radius:999px;
  accent-color:#0c9a82;
}
.student-face-dialog>progress[hidden]{display:none}
.student-face-status{
  min-height:34px;
  margin:14px 22px 0;
  padding:9px 11px;
  border:1px solid #d4e0eb;
  border-radius:9px;
  background:#f4f7fa;
  color:#415d76;
  font-size:10px;
  line-height:1.45;
}
.student-face-status.good{border-color:#a8ddcf;background:#eaf8f4;color:#086450}
.student-face-status.warn{border-color:#ead18a;background:#fff8df;color:#70530a}
.student-face-status.bad{border-color:#edb4bc;background:#fff0f2;color:#a21d31}
.student-face-match{margin:12px 22px 0;padding:12px;border:1px solid #8ed4c5;border-radius:12px;background:#edf9f6}
.student-face-match>div{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px}
.student-face-match-avatar{display:grid;width:44px;height:44px;place-items:center;border-radius:12px;background:linear-gradient(145deg,#123c68,#159b91);color:#fff;font-size:12px;font-weight:800}
.student-face-match p{min-width:0;margin:0}
.student-face-match p small,.student-face-match p strong,.student-face-match p span{display:block}
.student-face-match p small{color:#087d6d;font-size:8px;font-weight:800;text-transform:uppercase}
.student-face-match p strong{margin-top:3px;color:#153b57;font-size:12px}
.student-face-match p span{margin-top:2px;overflow:hidden;color:#5d7489;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.student-face-match button{width:fit-content;min-height:34px;margin:0;padding:7px 10px;border-radius:8px;font-size:9px}
.student-face-match>small{display:block;margin-top:9px;color:#55746e;font-size:8px;line-height:1.45}
.student-face-dialog>footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:16px 22px 20px;
}
.student-face-dialog>footer button{width:fit-content;min-height:38px;margin:0;padding:8px 12px;border-radius:8px;font-size:10px}
.student-face-dialog>footer button.secondary{border:1px solid #c6d5e3;background:#edf3f8;color:#24445f}
.student-face-dialog>footer button.danger{background:#be3046;color:#fff}
.student-face-dialog button[disabled]{cursor:not-allowed;opacity:.55}
html[data-theme="dark"] .records-desk-face-action{border-color:#2b8f80;background:#123b35;color:#d9fff4}
html[data-theme="dark"] .sensitive-access-toggle{border-color:#725f2c!important;background:#2b2619;color:#fff4cc!important}
html[data-theme="dark"] .student-face-dialog{background:#0d1b2b;color:#edf4fc}
html[data-theme="dark"] .student-face-dialog>header{border-color:#2b4056;background:linear-gradient(135deg,#10243a,#102d2b)}
html[data-theme="dark"] .student-face-dialog>header h2{color:#f2f7fc}
html[data-theme="dark"] .student-face-dialog>header p{color:#abc0d4}
html[data-theme="dark"] .student-face-close{border-color:#385069!important;background:#172b40!important;color:#e8f2fb!important}
html[data-theme="dark"] .student-face-notice{border-color:#286b60;background:#12342f;color:#d8fff4}
html[data-theme="dark"] .student-face-notice small{color:#a9d2c8}
html[data-theme="dark"] .student-face-status{border-color:#30465b;background:#13263a;color:#c4d4e3}
html[data-theme="dark"] .student-face-status.good{border-color:#287967;background:#12392f;color:#bdf3e5}
html[data-theme="dark"] .student-face-status.warn{border-color:#79652d;background:#322b18;color:#ffe9a9}
html[data-theme="dark"] .student-face-status.bad{border-color:#7f3948;background:#351c25;color:#ffbdc8}
html[data-theme="dark"] .student-face-match{border-color:#2d8d7b;background:#123a34}
html[data-theme="dark"] .student-face-match p strong{color:#f0f7fc}
html[data-theme="dark"] .student-face-match p span,html[data-theme="dark"] .student-face-match>small{color:#b5ccca}
html[data-theme="dark"] .student-face-dialog>footer button.secondary{border-color:#385069;background:#172b40;color:#e8f2fb}
@media(max-width:680px){
  .records-desk-face-action{width:fit-content;margin:0 0 9px}
  .student-face-dialog{width:100%;max-width:none;max-height:calc(100dvh - 8px);border-radius:15px 15px 0 0}
  .student-face-dialog>header{padding:16px 15px 13px}
  .student-face-dialog>header h2{font-size:19px!important}
  .student-face-notice{margin:12px 15px 9px}
  .student-face-camera{width:calc(100% - 30px);aspect-ratio:4/3;margin:0 15px}
  .student-face-guide{inset:10% 25%}
  .student-face-dialog>progress{width:calc(100% - 30px);margin-left:15px}
  .student-face-status,.student-face-match{margin-right:15px;margin-left:15px}
  .student-face-match>div{grid-template-columns:40px minmax(0,1fr)}
  .student-face-match-avatar{width:40px;height:40px}
  .student-face-match button{grid-column:1/-1}
  .student-face-dialog>footer{justify-content:flex-start;padding:13px 15px 18px}
}

/* Branded public self-service giving */
.giving-page{min-height:100dvh;margin:0;padding:clamp(14px,3vw,38px);background:radial-gradient(circle at 12% 12%,rgba(30,116,222,.18),transparent 30%),linear-gradient(145deg,#071b38,#0d365e);color:#102a43}
.giving-shell{display:grid;grid-template-columns:minmax(320px,.88fr) minmax(390px,1.12fr);width:min(1040px,100%);min-height:min(720px,calc(100dvh - clamp(28px,6vw,76px)));margin:auto;border:1px solid rgba(255,255,255,.18);border-radius:26px;background:#fff;box-shadow:0 28px 75px rgba(0,12,34,.38);overflow:hidden}
.giving-brand-panel{display:flex;min-width:0;flex-direction:column;padding:clamp(28px,5vw,58px);background:linear-gradient(160deg,#0d3e70,#071d39 72%);color:#fff}
.giving-product{display:flex;align-items:center;gap:13px;width:fit-content;color:#fff;text-decoration:none}.giving-product img{width:54px;height:54px;padding:5px;border-radius:13px;background:#fff;object-fit:contain}.giving-product span{display:grid}.giving-product strong{font-size:18px}.giving-product small{color:#a8c7e5;font-size:11px}
.giving-brand-copy{margin:auto 0}.giving-brand-copy>p{margin:0 0 10px;color:#61e1c0;font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}.giving-brand-copy h1{margin:0 0 16px;color:#fff;font-size:clamp(34px,4.5vw,51px);line-height:1.03;letter-spacing:-1.6px}.giving-brand-copy h1 strong{color:#6fe0c3}.giving-brand-copy>span{display:block;max-width:430px;color:#c4d7e9;font-size:13px;line-height:1.7}
.giving-trust-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.giving-trust-list span{padding:6px 9px;border:1px solid rgba(130,215,197,.28);border-radius:999px;background:rgba(20,116,100,.2);color:#d6fff4;font-size:10px}
.giving-form-panel{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:clamp(28px,5vw,62px);background:#fff}.giving-form-panel>header{margin-bottom:22px}.giving-form-panel>header p{margin:0;color:#087d68;font-size:11px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase}.giving-form-panel>header h2{margin:5px 0 4px;color:#102a43;font-size:30px}.giving-form-panel>header span{color:#6a7f93;font-size:12px}
.giving-form{display:grid;gap:13px}.giving-form label{display:grid;gap:5px;color:#24425e;font-size:11px;font-weight:700}.giving-form input,.giving-form select,.giving-form textarea{width:100%;min-height:43px;margin:0;padding:9px 11px;border:1px solid #c9d7e4;border-radius:9px;background:#fff;color:#102a43;font:inherit;font-size:13px;font-weight:500}.giving-form textarea{resize:vertical}.giving-form input:focus,.giving-form select:focus,.giving-form textarea:focus{outline:3px solid rgba(30,105,224,.14);border-color:#1e69e0}
.giving-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.giving-amount-input{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;border:1px solid #c9d7e4;border-radius:9px;overflow:hidden}.giving-amount-input>span{display:grid;height:100%;place-items:center;background:#edf4fb;color:#164a78;font-weight:800}.giving-amount-input input{border:0;border-radius:0;font-size:17px;font-weight:700}.giving-amount-input:focus-within{outline:3px solid rgba(30,105,224,.14);border-color:#1e69e0}
.giving-form button{width:fit-content;min-height:44px;margin-top:2px;padding:9px 16px;border-radius:9px;background:#087d68}.giving-form button:hover{background:#056856}.giving-form button[disabled]{cursor:wait;opacity:.72}.giving-form .status{min-height:18px;margin:0}.giving-disclaimer{margin:0;color:#7a8da0;font-size:10px}.giving-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
html[data-theme="dark"] .giving-page{background:radial-gradient(circle at 12% 12%,rgba(30,116,222,.17),transparent 30%),#050e19}.giving-page .giving-shell{color-scheme:light}
@media(max-width:760px){.giving-page{padding:0;background:#fff}.giving-shell{display:block;min-height:100dvh;border:0;border-radius:0;box-shadow:none}.giving-brand-panel{min-height:270px;padding:24px}.giving-brand-copy{margin:38px 0 12px}.giving-brand-copy h1{font-size:34px}.giving-brand-copy>span{font-size:12px}.giving-trust-list{margin-top:12px}.giving-form-panel{padding:27px 20px 38px}.giving-form-panel>header h2{font-size:25px}}
@media(max-width:430px){.giving-form-row{grid-template-columns:1fr}.giving-brand-panel{min-height:245px}.giving-brand-copy{margin:28px 0 8px}.giving-trust-list span{font-size:9px}}

/* Organisation Store public-link controls */
.commerce-heading>.inline-action-group{align-items:center;flex-wrap:nowrap}.commerce-heading>.inline-action-group>button{flex:0 0 auto;width:fit-content;min-height:35px;margin:0;padding:7px 11px;white-space:nowrap;font-size:10px}.commerce-receipt-preview [data-commerce-open-payment]{color:#08775f}
@media(max-width:520px){.commerce-heading>.inline-action-group{align-items:flex-end;flex-direction:column-reverse}.commerce-heading>.inline-action-group>button{font-size:9px}.commerce-heading .workspace-feature-icon{width:34px;height:34px}}

/* Logos render directly on their surrounding surface; never supply a white plate. */
img.logo,
img.nav-logo,
.launcher-logo,
.launcher-logo img,
.settings-logo-wrap,
.settings-logo,
.settings-logo-preview,
.settings-logo-preview img,
.web-logo-picker img,
.registration-brand img,
.giving-product img {
  background: transparent !important;
  box-shadow: none !important;
}
.settings-logo-preview,
.web-logo-picker img,
.giving-product img {
  border-color: transparent !important;
}
.web-logo-picker img,
.giving-product img {
  padding: 0;
  border-radius: 0;
}

/* Keep exactly four organisation-store products visible before local scrolling. */
.commerce-product-list{max-height:269px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.commerce-product{height:62px;min-height:62px;box-sizing:border-box}
@media(max-width:680px){.commerce-product-list{max-height:269px}}

/* Clean donor, currency-settlement and staff-attendance workspaces. */
.workspace-subnav{position:sticky;top:0;z-index:8;display:flex;gap:7px;overflow-x:auto;margin:10px 0;padding:7px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.96);scrollbar-width:thin}
.workspace-subnav button{flex:0 0 auto;width:fit-content;min-height:34px;margin:0;padding:7px 11px;border-radius:7px;font-size:10px;white-space:nowrap}
.management-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.management-split>.admin-table-wrap,.management-split>.chart-card,.management-split>.church-dashboard-grid{min-width:0;margin-top:0}
.donor-register-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:18px;align-items:start}
.donor-insights-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#f8fbff,#f2faf7)}
.donor-insights-card>header{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:14px}.donor-insights-card>header small{display:block;color:#087d68;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.donor-insights-card>header h2{margin:3px 0 0;font-size:18px}.donor-insights-card>header>span{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#e1f3ed;color:#08725c;font-size:9px;font-weight:800}
.donor-contribution-visual{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:16px;align-items:center}.donor-contribution-chart{position:relative;display:grid;place-items:center;width:min(100%,210px);aspect-ratio:1;margin:auto;border-radius:50%;background:var(--donor-pie)}.donor-contribution-chart::after{content:"";position:absolute;width:58%;height:58%;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(22,74,120,.06)}.donor-contribution-chart>span{position:relative;z-index:1;display:grid;gap:2px;width:54%;text-align:center}.donor-contribution-chart strong{overflow:hidden;color:#123f6d;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.donor-contribution-chart small{color:#718096;font-size:8px;text-transform:uppercase}
.donor-contribution-legend{display:grid;gap:6px;min-width:0}.donor-contribution-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:7px;padding-bottom:6px;border-bottom:1px solid #dce6ee}.donor-contribution-legend i{width:9px;height:9px;border-radius:50%;background:var(--donor-color)}.donor-contribution-legend span,.donor-contribution-legend strong,.donor-contribution-legend small{display:block;min-width:0}.donor-contribution-legend strong{overflow:hidden;color:#17324d;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.donor-contribution-legend small{margin-top:1px;color:#718096;font-size:8px}.donor-contribution-legend b{color:#31546f;font-size:10px}
.donor-insight-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:15px}.donor-insight-kpis>div{display:grid;gap:2px;padding:9px;border:1px solid #d9e5ed;border-radius:8px;background:#fff}.donor-insight-kpis strong{color:#123f6d;font-size:17px}.donor-insight-kpis span{color:#718096;font-size:8px;text-transform:uppercase}.donor-table-stack{display:grid;gap:12px;min-width:0}.donor-table-stack .management-table-block{min-width:0}.donor-table-stack .management-table-block h2{margin:0 0 7px}.donor-table-stack .admin-table-wrap{margin:0;max-height:300px}
.compact-management-form{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.inline-policy-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:10px 0 14px}
.inline-policy-form>label{display:grid;gap:5px;min-width:150px;margin:0;font-size:11px}
.inline-policy-form>.hr-person-picker{flex:1 1 430px;margin:0}
.inline-policy-form>label:has(input[type="radio"]){display:flex;align-items:center;min-height:37px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.inline-policy-form input[type="radio"]{flex:0 0 16px;width:16px;height:16px;margin:0 7px 0 0}
.inline-policy-form button{flex:0 0 auto;width:fit-content;min-height:37px;margin:0;padding:8px 12px}
.settlement-selection{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:260px;margin:12px 0;padding:9px;border:1px solid var(--line);border-radius:9px;overflow:auto;background:#f8fafc}
.settlement-selection>label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;margin:0;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:normal}
.settlement-selection input{width:16px;height:16px;margin:2px 0 0}
.settlement-selection strong,.settlement-selection small{display:block}.settlement-selection small{margin-top:2px;color:var(--muted)}
.attendance-clock-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,.9fr);gap:20px;align-items:center;margin:14px 0;padding:20px;border:1px solid #b9d9d0;border-left:5px solid #159b7f;border-radius:12px;background:linear-gradient(135deg,#f5fcfa,#edf8f5)}
.dashboard-time-attendance{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.7fr);gap:12px;margin:12px 0}.dashboard-digital-clock,.dashboard-attendance-quick{min-width:0;border:1px solid #d3dfeb;border-radius:13px;box-shadow:0 7px 18px rgba(20,54,84,.07)}.dashboard-digital-clock{display:flex;flex-direction:column;justify-content:center;padding:18px 20px;background:linear-gradient(145deg,#0b3d70,#126a91);color:#fff}.dashboard-digital-clock small{color:#bfe8f5;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.dashboard-digital-clock strong{margin:3px 0;font-size:34px;font-variant-numeric:tabular-nums;line-height:1;letter-spacing:.03em}.dashboard-digital-clock span{color:#d9f2fa;font-size:11px}.dashboard-attendance-quick{padding:14px 16px;background:#fff}.dashboard-attendance-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dashboard-attendance-heading>div{display:grid;gap:1px}.dashboard-attendance-heading small{color:#6a7d90;font-size:9px;font-weight:800;text-transform:uppercase}.dashboard-attendance-heading strong{color:#173b58;font-size:17px}.dashboard-attendance-state{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#edf2f7;color:#526b82;font-size:9px;font-weight:800}.dashboard-attendance-state.state-clocked_in{background:#e3f6ef;color:#08735d}.dashboard-attendance-state.state-completed{background:#e5effd;color:#195f9d}.dashboard-attendance-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.dashboard-attendance-meta span{padding:3px 6px;border-radius:6px;background:#eef4f8;color:#536b82;font-size:9px}.dashboard-attendance-controls{display:grid;grid-template-columns:minmax(150px,1fr) minmax(135px,.8fr) auto;gap:7px;align-items:end;margin-top:9px}.dashboard-attendance-controls label{margin:0;font-size:9px}.dashboard-attendance-controls select{min-height:36px;padding:6px 8px;font-size:10px}.dashboard-attendance-controls>small{align-self:center;color:#6b7f92;font-size:9px}.dashboard-attendance-controls button{width:max-content;min-width:max-content;min-height:36px;margin:0;padding:7px 12px;white-space:nowrap}.dashboard-attendance-quick>.status{min-height:0;margin:6px 0 0;font-size:9px}
.attendance-clock-card.is-clocked-in{border-left-color:#1f74d2;background:linear-gradient(135deg,#f5f9fe,#edf4fc)}
.attendance-clock-card h3{margin:2px 0 5px;color:var(--blue2);font-size:22px}.attendance-clock-card p{margin:0;color:var(--muted)}
.attendance-clock-card>div:first-child{min-width:0}.attendance-clock-controls{display:grid;grid-template-columns:minmax(190px,260px) minmax(140px,1fr) max-content;align-items:end;gap:8px;min-width:0;width:100%}.attendance-clock-controls label{min-width:0;margin:0}.attendance-clock-controls select{box-sizing:border-box;width:100%;min-width:0}.attendance-clock-controls>small{min-width:0;align-self:center;line-height:1.35;overflow-wrap:normal;word-break:normal}.attendance-clock-controls button{width:fit-content;min-width:max-content;min-height:43px;margin:0;padding:9px 15px;background:#087d68;white-space:nowrap}
.attendance-clock-card>.status,.attendance-security-actions{grid-column:1/-1}.attendance-security-actions{display:flex;align-items:center;gap:8px;overflow-x:auto}.attendance-security-actions button{flex:0 0 auto;width:fit-content;margin:0;white-space:nowrap}
.attendance-presence-check{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #b9d9d0;border-radius:10px;background:#fff}.attendance-presence-check div{display:grid;gap:2px}.attendance-presence-check small{color:#5d6e82}.attendance-presence-check button{flex:0 0 auto;width:fit-content;margin:0}.attendance-presence-check.is-due{border-color:#dfad28;background:#fff9e8}.attendance-presence-check.is-overdue{border-color:#d75a63;background:#fff1f2}.attendance-presence-check.is-overdue strong{color:#9f2430}
.attendance-settings-tabs{display:flex;align-items:center;gap:5px;max-width:100%;margin:2px 0 10px;padding:5px;border:1px solid #d3dee9;border-radius:10px;background:#eef4f9;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.attendance-settings-tabs button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:max-content;min-width:max-content;min-height:34px;margin:0;padding:7px 11px;border:1px solid transparent;border-radius:7px;background:transparent;color:#536b82;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:none}.attendance-settings-tabs button[aria-selected="true"]{border-color:#aac9e5;background:#fff;color:#0d5c9d;box-shadow:0 2px 7px rgba(23,63,95,.1)}
.attendance-settings-panel{padding:12px;border:1px solid #d8e2eb;border-radius:10px;background:#fbfdff}.attendance-settings-panel[hidden]{display:none!important}.attendance-settings-panel .config-grid{margin:0}.attendance-settings-note{margin:10px 0 0!important;padding:9px 10px;border-left:3px solid #3c89c8;border-radius:7px;background:#eef6fd;color:#49657d!important;font-size:11px;line-height:1.45}.attendance-settings-panel [data-attendance-presence-setting]{transition:opacity .18s ease}.attendance-settings-panel [data-attendance-presence-setting].is-disabled{opacity:.48}
.attendance-week-schedule{max-width:100%;margin:12px 0;padding:10px;overflow-x:auto;border:1px solid #d3dee9;border-radius:11px}.attendance-week-schedule legend{padding:0 6px;color:#173b58;font-size:12px;font-weight:800}.attendance-week-schedule-head,.attendance-week-schedule-row{display:grid;grid-template-columns:minmax(100px,1fr) 90px minmax(120px,1fr) minmax(120px,1fr);gap:9px;align-items:center;min-width:540px}.attendance-week-schedule-head{padding:0 8px 7px;color:#66778b;font-size:10px;font-weight:800;text-transform:uppercase}.attendance-week-schedule-row{padding:7px 8px;border-top:1px solid #e2e9f0}.attendance-week-schedule-row>strong{color:#243e58;font-size:12px}.attendance-week-schedule-row label{margin:0}.attendance-week-schedule-row .check-row{display:flex;align-items:center;gap:5px}.attendance-week-schedule-row input[type="time"]{min-height:36px;padding:6px 8px}
.attendance-day-time>span{display:none}
.giving-remember{display:grid!important;grid-template-columns:16px minmax(0,1fr);align-items:start!important;gap:8px!important;padding:9px;border:1px solid #c9d7e4;border-radius:9px;background:#f7fafc}.giving-remember input{width:16px!important;height:16px!important;min-height:16px!important;margin:1px 0 0!important;padding:0!important}.giving-remember span{font-size:10px;line-height:1.45}
html[data-theme="dark"] .workspace-subnav{border-color:#33495f;background:rgba(13,27,43,.96)}
html[data-theme="dark"] .donor-insights-card{border-color:#33495f;background:linear-gradient(145deg,#10243a,#102b2a)}html[data-theme="dark"] .donor-insights-card>header h2,html[data-theme="dark"] .donor-contribution-legend strong{color:#eef5fc}html[data-theme="dark"] .donor-contribution-chart::after,html[data-theme="dark"] .donor-insight-kpis>div{border-color:#33495f;background:#132a41}html[data-theme="dark"] .donor-contribution-chart strong,html[data-theme="dark"] .donor-insight-kpis strong{color:#f4f8ff}html[data-theme="dark"] .donor-contribution-legend>div{border-color:#33495f}
html[data-theme="dark"] .inline-policy-form>label:has(input[type="radio"]),html[data-theme="dark"] .settlement-selection{border-color:#33495f;background:#10243a;color:#eef5fc}
html[data-theme="dark"] .settlement-selection>label{border-color:#33495f;background:#132a41;color:#eef5fc}
html[data-theme="dark"] .attendance-clock-card,html[data-theme="dark"] .attendance-clock-card.is-clocked-in{border-color:#2a7c6d;background:linear-gradient(135deg,#102b2a,#10243a);color:#eef5fc}
html[data-theme="dark"] .dashboard-digital-clock{border-color:#286b8b;background:linear-gradient(145deg,#0d385f,#125571)}html[data-theme="dark"] .dashboard-attendance-quick{border-color:#344a5f;background:#102235}html[data-theme="dark"] .dashboard-attendance-heading strong{color:#eff6ff}html[data-theme="dark"] .dashboard-attendance-state{background:#273b4e;color:#d8e6f3}html[data-theme="dark"] .dashboard-attendance-state.state-clocked_in{background:#153e35;color:#9ee9d5}html[data-theme="dark"] .dashboard-attendance-state.state-completed{background:#183b5c;color:#b8d9f8}html[data-theme="dark"] .dashboard-attendance-meta span{background:#1a3045;color:#c0d2e2}
html[data-theme="dark"] .attendance-clock-card h3{color:#f4f8ff}
html[data-theme="dark"] .attendance-settings-tabs{border-color:#344a5f;background:#0e2032}html[data-theme="dark"] .attendance-settings-tabs button{color:#afc2d5}html[data-theme="dark"] .attendance-settings-tabs button[aria-selected="true"]{border-color:#3f7199;background:#18334d;color:#f0f7ff}html[data-theme="dark"] .attendance-settings-panel{border-color:#354a5f;background:#101f30}html[data-theme="dark"] .attendance-settings-note{border-color:#4c91c9;background:#152c41;color:#c5d7e8!important}
html[data-theme="dark"] .attendance-week-schedule{border-color:#3a4e63;background:#101d2c}html[data-theme="dark"] .attendance-week-schedule-row{border-color:#33465a}html[data-theme="dark"] .attendance-week-schedule-row>strong{color:#edf4ff}
html[data-theme="dark"] .attendance-presence-check{border-color:#3b5668;background:#112233}html[data-theme="dark"] .attendance-presence-check.is-due{border-color:#8d742f;background:#302a17}html[data-theme="dark"] .attendance-presence-check.is-overdue{border-color:#984651;background:#321c24}html[data-theme="dark"] .attendance-presence-check.is-overdue strong{color:#ffadb5}
@media(max-width:900px){.donor-register-layout{grid-template-columns:1fr}.donor-contribution-visual{grid-template-columns:minmax(150px,220px) minmax(0,1fr)}}
@media(max-width:1200px){.attendance-clock-card{grid-template-columns:1fr;gap:14px;align-items:start}.attendance-clock-controls{grid-template-columns:minmax(220px,260px) minmax(180px,1fr) auto}}
@media(max-width:760px){.management-split,.attendance-clock-card{grid-template-columns:1fr}.attendance-clock-card{padding:14px}.attendance-clock-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end}.attendance-clock-controls label{grid-column:1/-1;width:100%;min-width:0}.attendance-clock-controls select{width:100%;min-width:0}.attendance-clock-controls>small{grid-column:1/2}.attendance-clock-controls button{grid-column:2/3;align-self:end}.inline-policy-form{align-items:stretch;flex-direction:column}.inline-policy-form>label,.inline-policy-form>.hr-person-picker{width:100%}.settlement-selection{grid-template-columns:1fr}.workspace-subnav{top:0}.donor-contribution-visual{grid-template-columns:1fr}.donor-contribution-chart{width:190px}.donor-insight-kpis{grid-template-columns:repeat(3,minmax(82px,1fr))}}
@media(max-width:760px){.dashboard-time-attendance{grid-template-columns:1fr;gap:7px;margin:8px 0}.dashboard-digital-clock{padding:12px 14px}.dashboard-digital-clock strong{font-size:27px}.dashboard-digital-clock span{font-size:9px}.dashboard-attendance-quick{padding:10px}.dashboard-attendance-heading strong{font-size:13px}.dashboard-attendance-controls{grid-template-columns:minmax(0,1fr) auto}.dashboard-attendance-controls label:first-child{grid-column:1/-1}.dashboard-attendance-controls label{font-size:8px}.dashboard-attendance-controls select{min-height:33px;padding:5px 7px;font-size:9px}.dashboard-attendance-controls>small{font-size:8px}.dashboard-attendance-controls button{min-height:33px;padding:6px 9px;font-size:9px}.dashboard-attendance-meta{margin-top:5px}}
@media(max-width:760px){.attendance-settings-tabs{gap:3px;margin-bottom:7px;padding:4px}.attendance-settings-tabs button{min-height:30px;padding:5px 8px;font-size:9px}.attendance-settings-panel{padding:8px}.attendance-settings-panel .config-grid{grid-template-columns:1fr;gap:7px}.attendance-settings-panel label{font-size:9px}.attendance-settings-panel input,.attendance-settings-panel select{min-height:34px;padding:6px 8px;font-size:10px}.attendance-settings-note{margin-top:7px!important;padding:7px 8px;font-size:9px}.attendance-week-schedule{margin:0;padding:6px;overflow:visible}.attendance-week-schedule legend{font-size:10px}.attendance-week-schedule-head{display:none}.attendance-week-schedule-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;min-width:0;margin-top:6px;padding:8px;border:1px solid #e0e7ee;border-radius:8px}.attendance-week-schedule-row:first-of-type{margin-top:0}.attendance-week-schedule-row>strong{font-size:10px}.attendance-week-schedule-row>.check-row{justify-self:end;font-size:9px}.attendance-week-schedule-row>.attendance-day-time{min-width:0}.attendance-day-time>span{display:block;margin-bottom:3px;color:#61768b;font-size:8px;font-weight:800}.attendance-week-schedule-row input[type="time"]{width:100%;min-width:0;min-height:32px;padding:4px 5px;font-size:9px}html[data-theme="dark"] .attendance-week-schedule-row{border-color:#33465a}}

/* Focused module workspaces: one functional panel at a time. */
.module-workspace-shell{min-width:0;margin-top:10px}
.module-workspace-tabs{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:5px;max-width:100%;padding:6px;border:1px solid var(--line);border-radius:11px;background:rgba(246,249,252,.97);box-shadow:0 5px 16px rgba(18,50,77,.06);overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.module-workspace-tabs button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;width:max-content;min-width:max-content;min-height:35px;margin:0;padding:7px 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;white-space:nowrap;box-shadow:none}
.module-workspace-tabs button:hover{border-color:var(--line);background:#fff;color:var(--blue2)}
.module-workspace-tabs button.selected{border-color:#0c8b78;background:#0c8b78;color:#fff;box-shadow:0 4px 10px rgba(12,139,120,.18)}
.module-workspace-tabs button>span{font-size:13px;line-height:1}.module-workspace-tabs button>strong{font:inherit;font-weight:800}.module-workspace-tabs button>small{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:rgba(19,63,109,.09);color:inherit;font-size:9px;font-weight:800}
.module-workspace-tabs button.selected>small{background:rgba(255,255,255,.2)}
.module-workspace-panels{min-width:0}.module-workspace-panel{min-width:0;padding:14px 2px 2px}.module-workspace-panel[hidden]{display:none!important}
.module-workspace-panel>:first-child{margin-top:0}.module-workspace-panel>.config-group,.module-workspace-panel>.config-card{margin-top:0}
.module-workspace-panel>.workflow-kpis{margin-top:0}.module-workspace-panel>.admin-table-wrap{max-width:100%}
.module-workspace-panel>.workspace-panel-note{margin:0 0 10px}
html[data-theme="dark"] .module-workspace-tabs{border-color:#33495f;background:rgba(13,27,43,.97);box-shadow:0 5px 16px rgba(0,0,0,.18)}
html[data-theme="dark"] .module-workspace-tabs button{color:#b8c8d8}html[data-theme="dark"] .module-workspace-tabs button:hover{border-color:#48627c;background:#132a41;color:#fff}html[data-theme="dark"] .module-workspace-tabs button.selected{border-color:#1eb69b;background:#0b8f79;color:#fff}
@media(max-width:760px){.module-workspace-shell{margin-top:7px}.module-workspace-tabs{top:0;margin-inline:-2px;padding:5px;border-radius:9px}.module-workspace-tabs button{min-height:32px;padding:6px 9px;font-size:9px}.module-workspace-tabs button>span{font-size:11px}.module-workspace-tabs button>small{height:17px;min-width:17px;font-size:8px}.module-workspace-panel{padding-top:10px}}

/* Human Resources workspace */
.hr-workspace-stack{display:grid;gap:14px;min-width:0}.hr-form-card{margin:0}.hr-form-card .config-grid-span{grid-column:1/-1}.hr-overview-panel{display:grid;gap:14px}.hr-kpis{margin-top:0}.hr-role-guide{padding:16px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#f8fbff,#f2faf7)}
.hr-workspace-actions{display:grid;grid-template-columns:minmax(260px,360px) auto;gap:4px 10px;align-items:end}.hr-workspace-actions label{grid-column:1;margin:0;color:#29445e;font-size:11px;font-weight:750}.hr-workspace-actions input{min-height:38px;margin-top:5px;padding:7px 10px;font-size:12px}.hr-workspace-actions small{grid-column:1;color:#718096;font-size:9px}.hr-workspace-actions button{grid-column:2;grid-row:1/3;align-self:end;width:fit-content}
.config-grid>.hr-person-picker{grid-column:1/-1}.hr-person-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;min-width:0;padding:10px;border:1px solid #dce6ee;border-radius:10px;background:#f8fbfd}.hr-person-picker label{display:grid;gap:5px;min-width:0;margin:0;color:#26354a;font-size:12px;font-weight:700}.hr-person-picker input,.hr-person-picker select{min-width:0;margin:0}.hr-person-picker input[type="search"]{padding-left:34px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center}.hr-person-picker>small{grid-column:1/-1;color:#718096;font-size:9px}
.hr-role-guide>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.hr-role-guide>header h2{margin:2px 0 0;color:var(--blue2);font-size:18px}.hr-role-guide>header>span{padding:5px 8px;border-radius:999px;background:#e3f3ee;color:#08735f;font-size:9px;font-weight:800;white-space:nowrap}
.hr-role-guide>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px;margin-top:12px}.hr-role-guide article{padding:11px;border:1px solid #dce6ee;border-radius:9px;background:#fff}.hr-role-guide article strong{display:block;color:#173f68;font-size:11px}.hr-role-guide article p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.45}
.table-action-group{display:flex;align-items:center;gap:5px;white-space:nowrap}.table-action.danger{border-color:#e8a7b1;background:#fff3f5;color:#b4233b}.hr-workspace-stack>.admin-table-wrap{margin-top:0}
html[data-theme="dark"] .hr-role-guide{border-color:#33495f;background:linear-gradient(145deg,#10243a,#102b2a)}html[data-theme="dark"] .hr-role-guide>header{border-color:#33495f}html[data-theme="dark"] .hr-role-guide>header h2,html[data-theme="dark"] .hr-role-guide article strong{color:#eef5fc}html[data-theme="dark"] .hr-role-guide article{border-color:#33495f;background:#132a41}html[data-theme="dark"] .table-action.danger{border-color:#8a3c4b;background:#3b1820;color:#ffb6c2}html[data-theme="dark"] .hr-workspace-actions label,html[data-theme="dark"] .hr-person-picker label{color:#e7f1fb}html[data-theme="dark"] .hr-workspace-actions small,html[data-theme="dark"] .hr-person-picker>small{color:#9fb2c5}html[data-theme="dark"] .hr-person-picker{border-color:#33495f;background:#10243a}html[data-theme="dark"] .hr-person-picker input[type="search"]{border-color:#405773;background-color:#0d1a29;color:#f4f8ff}
@media(max-width:620px){.hr-role-guide{padding:12px}.hr-role-guide>header{align-items:flex-start;flex-direction:column}.hr-role-guide>div{grid-template-columns:1fr}.hr-form-card .config-grid-span{grid-column:auto}.hr-workspace-actions{grid-template-columns:minmax(0,1fr) auto;width:100%}.hr-workspace-actions label{min-width:0}.hr-workspace-actions input{font-size:16px}.hr-person-picker{grid-template-columns:1fr}.hr-person-picker>small{grid-column:1}.config-grid>.hr-person-picker{grid-column:auto}}

/* One compact, readable type scale for history and audit records on phones. */
@media(max-width:680px){
  .activity-list .activity-item{padding:7px 8px;font-size:8px;line-height:1.3}
  .activity-list .activity-item strong{font-size:10px;line-height:1.25}
  .activity-list .activity-item span,.activity-list .activity-item small,.activity-list .activity-item time{margin-top:1px;font-size:8px;line-height:1.3}
  .workflow-record-list{gap:6px}.workflow-record-list .workflow-record{padding:8px;border-radius:8px;font-size:8px;line-height:1.3}
  .workflow-record-list .workflow-record-heading>div strong{font-size:10px;line-height:1.25}
  .workflow-record-list .workflow-record-heading>div small,.workflow-record-list .workflow-record>p,.workflow-record-list .workflow-record>small{margin-top:2px;font-size:8px;line-height:1.3}
  .workflow-record-list .workflow-record-meta{gap:5px;margin-top:6px}.workflow-record-list .workflow-record-meta span{padding:6px;font-size:8px}.workflow-record-list .workflow-record-meta strong{font-size:10px}
  .staff-page .module-workspace-panel .admin-table th{padding:6px 7px;font-size:8px}.staff-page .module-workspace-panel .admin-table td{padding:6px 7px;font-size:9px;line-height:1.3}
  .parent-notification-item{padding:8px}.parent-notification-item strong{font-size:10px}.parent-notification-item span,.parent-notification-item small{font-size:8px;line-height:1.3}
  .commerce-sales-history>summary{padding:9px 12px;font-size:10px}.commerce-sales-history th,.commerce-sales-history td{padding:6px 7px;font-size:9px}
  .records-desk-activity-card article strong,.executive-register-row strong{font-size:10px}.records-desk-activity-card article small,.executive-register-row small{font-size:8px}
}
