:root{color-scheme:light;font:14px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--bg:#f3f6fb;--surface:#fff;--ink:#0c2141;--muted:#66809e;--line:#dfe8f3;--accent:#0874e9;--accent-soft:#ecf5ff;--navy:#071a35;--shadow:0 8px 35px rgba(20,51,91,.045)}
[data-theme=dark]{color-scheme:dark;--bg:#071529;--surface:#102540;--ink:#eaf2fd;--muted:#abc0d9;--line:#314663;--accent:#67b9ff;--accent-soft:#123a65;--shadow:0 9px 35px rgba(0,0,0,.15)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{color:var(--ink);background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}.skip-link{position:absolute;top:-80px;left:12px;background:var(--accent);color:white;padding:10px;z-index:90}.skip-link:focus{top:10px}
.app-layout{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#e7f3ff;display:flex;flex-direction:column;min-height:100vh;padding:26px 17px 19px;position:sticky;top:0;height:100vh}.sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:7px 8px 30px}.sidebar-brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:800;letter-spacing:-.02em}.sidebar-brand img{width:45px;height:38px;object-fit:contain}.sidebar-brand strong{display:block;font-size:9px;color:#8db6ea;letter-spacing:.16em;line-height:1.4;font-weight:650}.sidebar-caption{font-size:10px;color:#7f9ec5;font-weight:700;letter-spacing:.11em;padding:0 16px;margin:12px 0}.nav-caption{margin-top:31px;margin-bottom:11px}.sidebar-nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;width:100%;border:1px solid transparent;border-radius:10px;background:transparent;color:#a8beda;text-align:left;font-weight:600;padding:11px 12px;min-height:44px;transition:background .15s}.nav-link:hover{background:#132b51;color:white}.nav-link.is-current{background:linear-gradient(110deg,#0d4795,#0c3979);color:white;border-color:#23558e}.nav-icon{display:grid;place-items:center;width:23px;font-size:22px;font-weight:400}.sidebar-bottom{margin-top:auto;border-top:1px solid #1a3558;padding:21px 13px 0;font-size:11px;color:#b8cce8}.sidebar-bottom>div{margin-top:5px;color:#819ab9}.connection-dot{display:inline-block;background:#5dd7ab;width:7px;height:7px;border-radius:50%;margin-right:6px}.sidebar-close{display:none}
.workspace{min-width:0}.topbar{height:88px;padding:0 clamp(20px,3vw,56px);background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:22px}.topbar-heading{display:flex;align-items:center;gap:15px}.topbar-kicker{font-size:10px;letter-spacing:.13em;color:var(--muted);font-weight:750}.topbar-heading strong{font-size:17px}.topbar-tools{display:flex;align-items:center;gap:17px;min-width:0}.org-switch{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.org-switch select{max-width:280px;min-width:140px;padding:9px 30px 9px 11px;margin:0;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:9px}.icon-button{display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:38px;height:38px;border-radius:9px;font-size:19px}.icon-button:hover{background:var(--accent-soft)}.profile-chip{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--ink);font-weight:650;white-space:nowrap}.profile-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#0e67b8;font-weight:800}.menu-toggle{display:none}
.workspace-content{max-width:1420px;margin:0 auto;padding:38px clamp(20px,3vw,56px) 24px;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 26px}.eyebrow{font-size:10px;letter-spacing:.16em;color:var(--accent);font-weight:800}.page-heading h1{margin:7px 0 7px;font-size:clamp(27px,2.6vw,38px);font-weight:790;line-height:1.2;letter-spacing:-.035em}.page-heading p{margin:0;color:var(--muted);max-width:670px}.env-pill{font-size:10px;letter-spacing:.08em;padding:9px 12px;background:var(--accent-soft);color:var(--accent);border-radius:20px;white-space:nowrap;font-weight:700}
.welcome-card{background:linear-gradient(113deg,#052c69 0%,#074b9b 69%,#087cf1 100%);border-radius:18px;min-height:260px;padding:35px 41px;position:relative;display:flex;justify-content:space-between;align-items:center;gap:24px;overflow:hidden;color:white;box-shadow:0 18px 42px rgba(6,64,144,.16)}.welcome-card:before{content:"";position:absolute;right:-120px;top:-200px;border:1px solid #ffffff30;width:490px;height:490px;border-radius:50%}.welcome-card>div{z-index:1;max-width:600px}.welcome-card img{width:min(30%,250px);height:auto;opacity:.24;filter:drop-shadow(0 0 22px #eff9ff);pointer-events:none}.welcome-eyebrow{font-size:10px;letter-spacing:.2em;color:#b7ddff;font-weight:800}.welcome-card h2{font-size:clamp(23px,2.5vw,32px);letter-spacing:-.03em;line-height:1.2;margin:15px 0}.welcome-card p{max-width:490px;color:#d5eaff;margin:0 0 19px}.button-white{background:#fff;color:#0855a9!important;border-color:#fff!important}.button-white:hover{background:#e5f3ff}.section-title{font-size:18px;margin:31px 0 16px}
.metrics,.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.metrics{margin-top:19px}.metric-card,.module-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.metric-card{padding:19px 22px;display:flex;flex-direction:column;gap:7px}.metric-card span,.metric-card small{color:var(--muted);font-size:12px}.metric-card strong{font-size:30px;letter-spacing:-.04em;overflow-wrap:anywhere}.metric-card strong.metric-role{font-size:22px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-card{text-align:left;display:flex;flex-direction:column;align-items:flex-start;min-height:170px;gap:8px;padding:21px 23px;color:var(--ink)}button.module-card:hover{border-color:var(--accent);transform:translateY(-1px)}.module-card strong{font-size:17px}.module-card small{font-size:13px;color:var(--muted)}.module-symbol{font-size:26px;color:var(--accent);font-weight:650}.module-action{font-size:12px;font-weight:700;color:var(--accent);margin-top:auto}.module-pending{opacity:.7}
.panel{padding:24px 28px;margin-bottom:18px}.panel h2{font-size:19px;margin:0 0 15px}.panel h3{font-size:15px;margin-top:24px}.panel p{color:var(--muted)}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.panel-head h2{margin:0}.panel-head small{color:var(--muted)}.button{border:1px solid transparent;padding:10px 16px;border-radius:9px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 0}.button-primary{color:white;background:#086fe4}.button-primary:hover{background:#0c5fc0}.button-quiet{color:var(--ink);background:var(--accent-soft);border-color:var(--line)}.button-quiet:hover{border-color:var(--accent)}.button-row{display:flex;gap:10px;flex-wrap:wrap}label:not(.org-switch){display:block;color:var(--muted);font-size:12px;font-weight:700;margin:17px 0 7px}input,form select{padding:12px 14px;max-width:100%;width:100%;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:9px}input:focus,select:focus{border-color:var(--accent)}form{max-width:760px}form+form{border-top:1px solid var(--line);padding-top:13px;margin-top:19px}ul{list-style:none;padding:0;margin:14px 0 0}li{border-top:1px solid var(--line);padding:14px 4px;overflow-wrap:anywhere}li small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}li button{margin:7px 6px 0 0;background:var(--accent-soft);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:7px 12px}li select{border:1px solid var(--line);background:var(--bg);color:var(--ink);margin-right:6px;border-radius:7px;padding:7px}output{display:block;margin-top:13px;color:var(--accent);overflow-wrap:anywhere}output.error,#message.error,#account-action-status.error{color:#c54141}.identity-card{margin-top:17px;padding:17px 18px;background:var(--bg);border-radius:11px}.identity-card>span,.profile-details dt{display:block;font-size:12px;color:var(--muted)}.identity-card output{font-size:14px;color:var(--ink);margin-top:6px}.profile-details{display:grid;gap:14px;margin:0}.profile-details>div{border-top:1px solid var(--line);padding:11px 0}.profile-details dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}footer{margin:36px 0;color:var(--muted);font-size:12px}
@media(min-width:1000px){.workspace-content{min-height:calc(100vh - 88px)}}
@media(max-width:980px){.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;z-index:52;width:min(290px,85vw);left:0;top:0;bottom:0;height:100dvh;transform:translateX(-105%);transition:transform .19s ease;box-shadow:10px 0 35px #0003}.sidebar.is-open{transform:translateX(0)}.sidebar-close,.menu-toggle{display:grid}.sidebar-close{border-color:#234267;background:#11284b;color:white}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:51;background:#0008}.topbar{height:75px}.org-switch>span{display:none}}
@media(max-width:680px){.topbar{gap:8px;padding:0 14px}.topbar-tools{gap:7px}.topbar-kicker{font-size:8px}.topbar-heading strong{font-size:14px}.org-switch select{max-width:130px;min-width:80px;padding:8px 5px;font-size:11px}.profile-chip{padding:0}.profile-chip>span:last-child{display:none}.workspace-content{padding:24px 16px}.page-heading{gap:7px}.env-pill{display:none}.welcome-card{padding:26px 24px;min-height:240px}.welcome-card img{position:absolute;right:-35px;bottom:-15px;width:185px;opacity:.14}.module-grid,.metrics{grid-template-columns:1fr}.panel{padding:19px 17px}.panel-head{align-items:flex-start;flex-wrap:wrap}.module-card{min-height:145px}.welcome-card h2{font-size:25px}.button-row .button{width:100%}li select{max-width:100%;width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* Employee-facing operational registers */
.register-host{display:grid;gap:16px}.register-panel{margin-bottom:0}
.register-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.register-top h2{margin:0 0 4px}.register-top p{margin:0;font-size:12px}
.register-new{white-space:nowrap;margin:0}
.register-filters{max-width:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:14px}
.register-filters input[type=search]{flex:1 1 190px;min-width:140px}
.register-filters input[name=category]{flex:0 1 145px}
.register-filters select{width:auto;min-width:146px;max-width:220px;background:var(--surface)}
.register-filters .button{margin:0}
.register-filters .register-check{display:flex;align-items:center;gap:7px;
  margin:0;padding:0 7px;color:var(--ink);font-size:12px;white-space:nowrap}
.register-check input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);margin:0}
.register-list{display:grid;gap:9px;margin-top:17px}
.register-item{display:flex;align-items:center;justify-content:space-between;gap:20px;
  border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:var(--surface)}
.register-item:hover{border-color:var(--accent)}
.register-item-main{min-width:0;display:grid;gap:5px}
.register-kicker{color:var(--muted);font-size:11px;font-weight:650;letter-spacing:.02em}
.register-title{font-size:15px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
.register-item-details{display:flex;gap:7px;flex-wrap:wrap;min-width:0;margin-top:3px}
.register-detail{color:var(--muted);background:var(--bg);border:1px solid var(--line);
  border-radius:5px;padding:3px 7px;font-size:11px}
.register-item-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:0 0 auto}
.register-item-actions .button{margin:0;padding:7px 10px;font-size:12px}
.register-status{font-size:11px;font-weight:750;color:var(--accent);background:var(--accent-soft);
  padding:5px 9px;border-radius:15px;white-space:nowrap}
.register-status.is-archived{color:var(--muted);background:var(--bg)}
.register-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-top:1px solid var(--line);margin-top:18px;padding-top:12px;font-size:12px;color:var(--muted)}
.register-pager>div{display:flex;gap:7px;flex-wrap:wrap}.register-pager .button{margin:0}
.register-empty{padding:22px;color:var(--muted);font-size:13px;text-align:center;background:var(--bg);border-radius:9px}
.register-feedback{font-size:12px}.register-feedback.error{color:#c54141}
.register-editor{scroll-margin-top:20px}
.register-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.register-editor-heading h2{margin:0}.register-editor-heading .button{margin:0}
.register-hint{font-size:12px;margin:10px 0 0}
.register-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:18px;row-gap:0}
.register-form-grid label{min-width:0}
.register-form-grid label:has(textarea){grid-column:1 / -1}
.register-form-grid input,.register-form-grid select,.register-form-grid textarea{
  display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid var(--line);
  background:var(--bg);color:var(--ink);border-radius:9px;font:inherit;font-size:13px}
.register-form-grid textarea{min-height:90px;resize:vertical}
.register-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.register-form-actions .button{margin:0}
@media(max-width:1120px){
  .register-filters select{max-width:none}
  .register-item-actions{max-width:210px}
}
@media(max-width:720px){
  .register-top{align-items:flex-start;flex-wrap:wrap}
  .register-new{width:100%}
  .register-filters>*{flex:1 1 100%!important;width:100%!important;max-width:none!important}
  .register-filters .register-check{flex:1 1 100%;justify-content:flex-start}
  .register-item{align-items:flex-start;flex-direction:column;gap:12px}
  .register-item-actions{width:100%;max-width:none;justify-content:flex-start}
  .register-item-actions .button{flex:1 1 auto}
  .register-form-grid{grid-template-columns:minmax(0,1fr)}
  .register-form-grid label:has(textarea){grid-column:auto}
  .register-pager{align-items:flex-start;flex-direction:column}
  .register-pager>div{width:100%}.register-pager .button{flex:1}
}
