:root{--navy:#102642;--ink:#182d47;--muted:#72839a;--line:#dce6f0;--paper:#f1f5f9;--white:#fff;--green:#00a77c;--green-bg:#effaf6;--amber:#a96a12;--amber-bg:#fff8e9;--red:#b74747;--red-bg:#fff5f4;--shadow:0 12px 34px #19375512}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}[hidden]{display:none!important}
.topbar{min-height:68px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px max(22px,calc((100vw - 1320px)/2));position:sticky;top:0;z-index:5;box-shadow:0 2px 12px #0c1f3530}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:800}.brand img{width:48px;height:36px;object-fit:contain}.brand small{display:block;color:#9fb2c9;font-size:11px;font-weight:550;letter-spacing:.1em;text-transform:uppercase}.identity{display:flex;align-items:center;gap:12px;font-size:13px}.role-badge{border:1px solid #45617f;border-radius:99px;padding:7px 12px;color:#d6e4f4}
.app-shell{width:min(1440px,100%);margin:auto;padding:28px 24px 54px}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:7px 0 20px}.eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:800}.page-heading h1{font-size:clamp(27px,4vw,38px);line-height:1.1;margin:5px 0;letter-spacing:-.035em}.muted{color:var(--muted)}.page-heading p{margin:5px 0 0}.summary-strip{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:8px}.summary-item{min-width:0;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 5px 16px #19375508}.summary-item strong{display:block;font-size:23px;line-height:1.1}.summary-item span{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.25}.panel{margin-bottom:16px;padding:17px 19px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow)}.create-form{display:flex;align-items:end;gap:12px}.field{display:grid;gap:6px;min-width:0;flex:1}.field span{font-size:14px;font-weight:800}.field input,.field select{width:100%;min-height:48px;border:1px solid #d3dfeb;border-radius:11px;padding:0 13px;color:var(--ink);background:#fff;outline:none}.field input:focus,.field select:focus{border-color:#6097d1;box-shadow:0 0 0 3px #3178d31b}.compact{font-size:12px;margin:9px 0 0}
.button{border:1px solid transparent;border-radius:10px;min-height:44px;padding:9px 14px;font-weight:800}.button-primary{background:var(--navy);color:#fff}.button-light{background:#fff;color:var(--navy)}.button-outline{background:#fff;border-color:var(--line);color:var(--ink)}.button-danger{background:#fff0ef;border-color:#f4cecb;color:#bd4444}.button-success{background:#dff6ee;border-color:#c5ecdd;color:#08785d}.button:disabled{opacity:.55;cursor:wait}.filters{display:flex;gap:8px;overflow:auto;padding:2px 0 8px}.filter{flex:none;min-height:41px;padding:7px 13px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--ink);font-weight:750}.filter[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}.notice{margin:8px 0;color:var(--muted);font-size:13px}.notice:empty{display:none}.notice.error{padding:10px 13px;border-radius:10px;background:var(--red-bg);color:var(--red)}
.card-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.vehicle-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 20px #1937550b}.vehicle-cover{height:180px;background:linear-gradient(145deg,#eff4f8,#dfe8ef);display:grid;place-items:center;overflow:hidden;color:#8598ad}.vehicle-cover img{width:100%;height:100%;object-fit:contain}.vehicle-body{padding:14px}.vehicle-title-row{display:flex;justify-content:space-between;align-items:start;gap:9px}.vehicle-title{font-size:20px;font-weight:850;letter-spacing:.025em;overflow-wrap:anywhere}.vehicle-meta{color:var(--muted);font-size:12px;margin-top:4px}.status{flex:none;padding:5px 9px;border-radius:99px;background:#edf2f7;color:#61758c;font-size:11px;font-weight:850}.status.incomplete,.status.pending_review{background:var(--amber-bg);color:var(--amber)}.status.needs_work{background:var(--red-bg);color:var(--red)}.status.accepted{background:var(--green-bg);color:#08785d}.progress-line{height:8px;background:#e8edf2;border-radius:99px;overflow:hidden;margin-top:12px}.progress-line i{display:block;height:100%;background:linear-gradient(90deg,#00a77c,#46cc9f)}.progress-copy{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:var(--muted);font-size:12px}.card-open{width:100%;margin-top:12px}.empty-state{grid-column:1/-1;border:1px dashed #cbd9e7;border-radius:15px;background:#fff;padding:32px;text-align:center;color:var(--muted)}
.login-shell{min-height:calc(100dvh - 68px);display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 12% 10%,#dcebf9 0,transparent 34%),radial-gradient(ellipse at 88% 90%,#d5f0e7 0,transparent 30%),var(--paper)}.login-card{width:min(460px,100%);padding:27px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 24px 65px #1937551a}.login-card h1{font-size:28px;letter-spacing:-.04em;margin:7px 0}.login-card>p{font-size:13px}.login-card .field{margin:16px 0}.login-card .button{width:100%;margin-top:8px}.error{color:var(--red);background:var(--red-bg);padding:10px 12px;border-radius:10px;font-size:13px}.back-link{display:inline-block;margin-top:17px;color:#3974b7;font-size:13px;font-weight:750;text-decoration:none}.back-link:hover{text-decoration:underline}
.upload-queue{margin:0 0 14px;padding:12px 14px;border:1px solid #b8d8f3;border-radius:12px;background:#eef7ff;color:var(--navy);font-size:13px}.upload-queue strong{display:block;font-size:14px}.upload-queue p{margin:5px 0 0;color:#526d8b}.upload-queue ul{display:grid;gap:7px;margin:9px 0 0;padding:0;list-style:none}.upload-queue li{display:flex;justify-content:space-between;gap:10px;padding-top:7px;border-top:1px solid #d2e4f4}.upload-queue .upload-failed{color:var(--red)}.upload-retry{min-height:34px;margin-left:6px;padding:4px 9px;font-size:11px}
.detail-dialog{width:min(1480px,calc(100vw - 28px));height:min(94dvh,1100px);max-height:94dvh;padding:0;border:0;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 28px 100px #07182e55;overflow:hidden}.detail-dialog::backdrop{background:#102642bb;backdrop-filter:blur(5px)}.dialog-shell{height:100%;overflow:auto;overscroll-behavior:contain;padding:22px}.dialog-header{position:sticky;top:-22px;z-index:3;display:flex;justify-content:space-between;align-items:start;gap:18px;padding:5px 0 14px;background:#fff}.dialog-header h2{font-size:clamp(23px,3vw,32px);margin:4px 0;letter-spacing:-.03em}.dialog-header p{margin:0}.icon-button{flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:27px;line-height:1}.detail-progress{margin:0 0 8px;color:var(--muted);font-weight:750;font-size:13px}.upload-guidance{margin:0 0 12px;color:var(--muted);font-size:12px}.card-actions{display:flex;justify-content:flex-end;margin:4px 0 12px}.delete-warning{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid #f1cecc;border-radius:12px;background:#fff8f7}.delete-warning p{margin:0 auto 0 0;color:var(--muted);font-size:12px}.slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.slot-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 6px 17px #19375510}.slot-head{padding:13px 15px 11px}.slot-number{font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.slot-head h3{margin:3px 0;font-size:18px}.slot-head p{margin:0;color:var(--muted);font-size:13px}.slot-media{position:relative;display:grid;place-items:center;aspect-ratio:4/3;max-height:460px;overflow:hidden;background:#edf2f6}.slot-media img{display:block;width:100%;height:100%;object-fit:contain}.media-open{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;cursor:zoom-in}.sample-watermark{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#fff9;font-size:clamp(25px,4vw,48px);font-weight:950;letter-spacing:.06em;text-shadow:0 2px 7px #07182e99;transform:rotate(-20deg)}.sample-badge{position:absolute;bottom:8px;left:9px;padding:4px 9px;border-radius:99px;background:#102642c9;color:#fff;font-size:11px}.slot-empty{color:#91a3b6;font-size:13px}.slot-status{padding:10px 14px 0;font-size:12px;font-weight:850;color:var(--amber)}.slot-status.ok{color:#08785d}.slot-status.no{color:var(--red)}.slot-comment{margin:8px 13px 0;padding:9px 10px;border-radius:9px;background:#fff6e7;color:#7d5518;font-size:12px;white-space:pre-wrap}.slot-review{display:grid;gap:8px;padding:12px 13px}.slot-review label{font-size:12px;color:var(--muted)}.slot-review textarea{min-height:66px;width:100%;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:9px;font:inherit;font-size:13px}.review-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.slot-upload{display:flex;flex-wrap:wrap;gap:8px;padding:13px}.slot-upload label{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:800;font-size:13px;cursor:pointer}.slot-upload label:hover{background:#f7fafc}.hidden-file{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.hidden-file:focus-visible+label{outline:3px solid #6097d1;outline-offset:2px}.upload-progress{padding:0 13px 10px;color:var(--muted);font-size:12px}.lightbox{position:fixed;inset:0;z-index:8;display:grid;place-items:center;padding:20px;background:#07182ee8}.lightbox figure{display:grid;place-items:center;gap:10px;max-width:100%;max-height:100%;margin:0}.lightbox-photo-wrap{position:relative;display:grid;place-items:center;max-width:95vw;max-height:calc(94dvh - 60px);overflow:hidden}.lightbox img{display:block;max-width:95vw;max-height:calc(94dvh - 60px);object-fit:contain}.lightbox figcaption{color:#fff;text-align:center;font-size:13px}.close-lightbox{position:absolute;top:14px;right:14px;z-index:2}.toast{position:fixed;z-index:10;bottom:20px;left:50%;max-width:min(92vw,520px);transform:translate(-50%,18px);opacity:0;pointer-events:none;padding:12px 16px;border-radius:12px;background:#142d49;color:#fff;box-shadow:0 10px 30px #0002;font-size:13px;text-align:center;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.page-heading{align-items:start;flex-direction:column}.summary-strip{width:100%}.card-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.topbar{min-height:60px;padding:8px 12px;flex-wrap:wrap}.brand img{width:40px;height:30px}.brand{font-size:14px}.brand small{font-size:9px}.identity{gap:7px;font-size:12px}.identity .button{min-height:42px;padding:6px 9px}.app-shell{padding:19px 12px 40px}.summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.summary-item{padding:9px}.summary-item strong{font-size:20px}.summary-item span{font-size:10px}.summary-item:first-child{grid-column:span 2}.create-panel{padding:13px}.create-form{align-items:stretch;flex-direction:column;gap:9px}.create-form .button{width:100%}.filters{margin-top:7px}.card-list{grid-template-columns:minmax(0,1fr);gap:10px}.vehicle-card{display:grid;grid-template-columns:115px minmax(0,1fr)}.vehicle-cover{height:100%;min-height:126px}.vehicle-body{padding:11px}.vehicle-title{font-size:17px}.vehicle-meta{font-size:11px}.card-open{min-height:40px;margin-top:9px}.detail-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.dialog-shell{padding:14px 11px calc(15px + env(safe-area-inset-bottom))}.dialog-header{top:-14px;padding:8px 0 12px}.dialog-header h2{font-size:24px}.slot-grid{grid-template-columns:minmax(0,1fr);gap:11px}.slot-head{padding:12px}.slot-head h3{font-size:16px}.slot-media{max-height:none}.slot-upload label{flex:1;min-width:130px;min-height:47px}.slot-upload .delete-photo{flex:1 0 100%}.delete-warning{align-items:stretch;flex-direction:column}.delete-warning p{margin:0}.delete-warning .button{width:100%}.upload-queue{padding:10px}.upload-queue li{display:grid}.lightbox{padding:12px}.lightbox img{max-width:96vw;max-height:calc(100dvh - 95px)}}
.radii-field{display:flex;align-items:center;gap:8px;min-height:48px;margin:0;padding:4px 9px;border:1px solid var(--line);border-radius:11px}.radii-field legend{padding:0 4px;color:var(--muted);font-size:11px;font-weight:750}.radii-field label{display:flex;align-items:center;gap:4px;padding:4px 6px;border-radius:7px;background:#f3f6f9;font-size:13px;font-weight:800;white-space:nowrap}.radii-field input{accent-color:var(--navy)}
@media(max-width:640px){.radii-field{justify-content:center;min-height:48px}}
.plate-field{position:relative;z-index:2}.plate-field>label{font-size:14px;font-weight:800}.plate-picker{position:relative}.rubber-catalog-suggestions{position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;max-height:min(300px,45vh);overflow:auto;padding:5px;border:1px solid #cbd9e7;border-radius:12px;background:#fff;box-shadow:0 14px 32px #10264224}.rubber-catalog-option{display:flex;width:100%;min-height:45px;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:8px 11px;border:0;border-radius:8px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.rubber-catalog-option:hover,.rubber-catalog-option[aria-selected=true]{background:#eef5fc;outline:none}.rubber-catalog-option strong{font-size:14px;letter-spacing:.015em}.rubber-catalog-option span{color:var(--muted);font-size:11px;font-weight:500}.rubber-catalog-empty{padding:12px;color:var(--muted);font-size:12px}
.slot-card{border:1px solid var(--line);transition:border-color .15s,box-shadow .15s}.slot-card.pending{border:3px solid #e7a12b;box-shadow:0 6px 17px #c27b1918}.slot-card.ok{border:3px solid #0aa879;box-shadow:0 6px 17px #07865d1a}.slot-card.no{border:3px solid #d34a4a;box-shadow:0 6px 17px #b93d3d18}.slot-card.empty{border:1px solid var(--line)}.admin-exports{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 15px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 16px #1937550a}.admin-exports strong{margin-right:auto}.admin-exports button{min-height:42px}@media(max-width:600px){.admin-exports{align-items:stretch}.admin-exports strong{flex:1 0 100%}.admin-exports button{flex:1 1 100%}}
.radius-setup{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:14px;border:1px solid #bed4e9;border-radius:14px;background:#f3f8fd}.radius-setup>div{min-width:170px}.radius-setup strong{font-size:14px}.radius-setup p{margin:4px 0 0;color:var(--muted);font-size:12px}.radius-setup .radii-field{background:#fff}.radius-setup>.button{flex:none}.radius-blocked{margin:0 13px;padding:0 0 12px;color:var(--muted);font-size:12px}@media(max-width:640px){.radius-setup{align-items:stretch;flex-direction:column}.radius-setup>.button{width:100%}.radius-setup .radii-field{justify-content:space-around}}
.station-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));align-items:stretch;gap:10px}.station-tile{display:flex;min-width:0;min-height:116px;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 5px 16px #1937550a;transition:border-color .15s,box-shadow .15s,transform .15s}.station-tile:hover,.station-tile:focus-visible{border-color:#9bb9d7;box-shadow:0 9px 22px #19375515;transform:translateY(-1px);outline:none}.station-tile-top{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px}.station-tile-label,.station-eyebrow{color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.station-tile-count,.station-total{flex:none;padding:4px 7px;border-radius:99px;background:#eef4fa;color:#425d79;font-size:10px;font-weight:800}.station-tile-number{font-size:24px;line-height:1.05;letter-spacing:-.04em}.station-tile-fleet{display:flex;max-width:100%;flex-direction:column;gap:3px;margin-top:3px;color:var(--muted)}.station-tile-fleet>span{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px;font-size:10px}.station-tile-fleet small{font-size:9px}.station-tile-fleet strong{color:var(--ink);font-size:11px}.station-page{padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow)}.station-page-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid #e8eef4}.station-back{min-height:40px;white-space:nowrap}.station-page-copy{min-width:0}.station-page-copy h2{margin:0;font-size:27px;line-height:1.1;letter-spacing:-.035em}.station-fleet-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.station-fleet-pair{display:flex;flex-wrap:wrap;gap:7px;padding:6px 9px;border:1px solid #e4ebf2;border-radius:10px;background:#f6f9fc}.station-fleet-pair span{display:flex;align-items:baseline;gap:5px}.station-fleet-pair small{color:var(--muted);font-size:10px}.station-fleet-pair strong{font-size:12px;font-weight:800}.station-page .card-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.station-page .empty-state{grid-column:1/-1}
@media(max-width:1000px){.station-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.station-page .card-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.station-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.station-tile{min-height:108px;padding:10px;border-radius:12px}.station-tile-number{font-size:22px}.station-page{padding:10px;border-radius:14px}.station-page-header{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.station-back{grid-column:1/-1;justify-self:start}.station-page-copy h2{font-size:24px}.station-fleet-pair{gap:5px;padding:5px 7px}.station-fleet-pair span{gap:3px}.station-fleet-pair small{font-size:9px}.station-fleet-pair strong{font-size:11px}.station-page .card-list{grid-template-columns:minmax(0,1fr);gap:10px}}
.filter-toolbar{display:flex;align-items:flex-start;gap:10px;min-width:0}.filter-toolbar .filters{flex:1;min-width:0}.filter-toolbar .station-back{flex:none;min-height:41px;margin:2px 0 8px;white-space:nowrap}.station-page-header{grid-template-columns:minmax(0,1fr) auto}.station-page-header .station-page-copy h2{margin-top:0}
@media(max-width:640px){.filter-toolbar{gap:7px}.filter-toolbar .station-back{min-height:38px;padding:7px 9px;font-size:12px}.station-page-header{grid-template-columns:minmax(0,1fr) auto}.station-back{grid-column:auto;justify-self:auto}}

.login-card .module-back-link{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:16px;padding:12px 16px;border:1px solid #cbd9e8;border-radius:12px;background:linear-gradient(180deg,#fff,#f4f7fa);color:var(--navy);font-size:14px;font-weight:800;text-decoration:none;box-shadow:0 5px 14px #10264212;transition:background .16s,border-color .16s,color .16s,transform .16s,box-shadow .16s}.login-card .module-back-link:hover{transform:translateY(-1px);border-color:var(--navy);background:var(--navy);color:#fff;box-shadow:0 9px 20px #10264224}.login-card .module-back-link:focus-visible{outline:3px solid #70c4ff;outline-offset:3px}

/* Same lightweight tire animation as the public module card. */
.rubber-wheel{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #cce9ff2e;border-radius:14px;background:linear-gradient(145deg,#e2f3ff1c,#b9dcff08);box-shadow:inset 0 1px #ffffff14;overflow:visible}.rubber-wheel .wet-tire{width:44px;height:42px;overflow:visible}
.wet-rim{transform-origin:0 0;animation:wheel-drive 1.1s linear infinite}
.wet-tread{animation:wet-tread-roll .32s linear infinite}
@keyframes wet-tread-roll{to{transform:translateY(8px)}}
.puddle-fan{animation:puddle-pressure 1.1s ease-in-out infinite alternate;transform-origin:42px 66px}
@keyframes puddle-pressure{from{opacity:.5;transform:scale(.9)}to{opacity:.9;transform:scale(1.04)}}
.water-jet{opacity:0;animation:puddle-droplet .65s ease-out infinite}
.jet-a{--dx:-20px;--dy:-10px}.jet-b{--dx:-23px;--dy:-2px;animation-delay:.12s}.jet-c{--dx:-12px;--dy:-15px;animation-delay:.26s}.jet-d{--dx:14px;--dy:1px;animation-delay:.18s}.jet-e{--dx:-20px;--dy:-14px;animation-delay:.4s}.jet-f{--dx:-25px;--dy:-3px;animation-delay:.52s}
@keyframes puddle-droplet{0%{opacity:0;transform:translate(2px,2px)}15%{opacity:.9}65%{opacity:.5}100%{opacity:0;transform:translate(var(--dx),var(--dy))}}
@keyframes wheel-drive{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.wet-rim,.wet-tread,.puddle-fan,.water-jet{animation:none}.water-jet{display:none}}

/* Shared module header, from assets/module-header.css. */
/* Shared dimensions for the three module headers. Embedded into each module document. */
.module-header{box-sizing:border-box;position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;min-height:76px;height:auto;padding:12px max(24px,calc((100vw - 1320px)/2));background:#102642;color:#fff;box-shadow:0 2px 12px #0c1f3530}
.module-header .module-brand{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%;color:inherit;text-decoration:none;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:18px;font-weight:800;letter-spacing:.01em;line-height:1.2}
.module-header .module-brand-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;margin:0;border:1px solid #cce9ff2e;border-radius:14px;background:linear-gradient(145deg,#e2f3ff1c,#b9dcff08);box-shadow:inset 0 1px #ffffff14;overflow:visible}
.module-header .module-brand-icon>svg{display:block;width:40px;height:40px;overflow:visible}
.module-header .module-brand-copy{display:block;min-width:0}
.module-header .module-brand-title{display:block;margin:0;color:#fff;font:800 18px/1.2 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.01em;white-space:nowrap}
.module-header .module-brand-copy>.module-brand-subtitle{display:block;max-width:440px;margin:3px 0 0;color:#9fb2c9;font:550 11px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:normal}
.module-header .top-right,.module-header .top-actions,.module-header .user-pill,.module-header .identity{align-items:center;flex-wrap:wrap;gap:10px;min-width:0;max-width:100%;font-size:13px;line-height:1.35}
.module-header .top-right,.module-header .top-actions,.module-header>.identity{margin-left:auto}
.module-header .top-actions:not(:has(>:not([hidden]))){display:none}
.module-header button,.module-header .btn{min-height:40px;margin:0;padding:8px 12px;border:1px solid #dce6f0;border-radius:10px;background:#fff;color:#102642;font:750 13px/1.25 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap}
.module-header .module-brand:focus-visible{outline:3px solid #70c4ff;outline-offset:4px;border-radius:14px}
body:has(#loginPage.active) .module-header .top-right{display:none}
body:has(#loginPage.active #moduleChooser:not([hidden])) .module-header .intake-brand-mark{display:none}
@media(max-width:640px){
.module-header{min-height:72px;padding:10px 16px;gap:10px 14px}
.module-header .module-brand{gap:10px}
.module-header .module-brand-icon{flex-basis:44px;width:44px;height:44px;border-radius:13px}
.module-header .module-brand-icon>svg{width:36px;height:36px}
.module-header .module-brand-title{font-size:16px}
.module-header .module-brand-copy>.module-brand-subtitle{max-width:calc(100vw - 86px);font-size:9px;line-height:1.4;letter-spacing:.035em}
.module-header .top-right,.module-header .top-actions,.module-header>.identity{flex-basis:100%;justify-content:flex-end;gap:8px}
.module-header .user-pill{justify-content:flex-end;gap:8px}
.module-header button,.module-header .btn{min-height:40px;padding:8px 10px;font-size:12px}
}


/* One visual system for the three module sign-in screens. */
.module-login-screen:has(>.module-login-card:not([hidden])){box-sizing:border-box;display:grid;place-items:center;width:100%;max-width:none;min-height:calc(100svh - 76px);margin:0;padding:40px 24px;background:radial-gradient(ellipse at 12% 10%,#dcebf9 0,transparent 34%),radial-gradient(ellipse at 88% 90%,#d5f0e7 0,transparent 30%),#f3f6f9}
.module-login-screen .module-login-card{box-sizing:border-box;display:flex;flex-direction:column;gap:16px;width:min(520px,100%);min-height:660px;margin:0;padding:32px;border:1px solid #dce6f0;border-radius:24px;background:#fff;color:#182d47;box-shadow:0 24px 65px #1937551a;font:16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.module-login-card .module-login-heading{display:grid;gap:8px;margin:0}
.module-login-card .module-login-heading .eyebrow{margin:0;color:#72839a;font-size:11px;font-weight:800;line-height:1.4;letter-spacing:.1em;text-transform:uppercase}
.module-login-card .module-login-heading h1{margin:0;color:#182d47;font-size:30px;font-weight:780;line-height:1.15;letter-spacing:-.035em}
.module-login-card .module-login-heading p{margin:0;color:#72839a;font-size:14px;line-height:1.5}
.module-login-card .field{display:grid;gap:8px;flex:none;margin:0;min-width:0}
.module-login-card label,.module-login-card .field>span{margin:0;color:#182d47;font-size:14px;font-weight:750;line-height:1.4}
.module-login-card .field label{margin:0}
.module-login-card input{box-sizing:border-box;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:0 14px;border:1px solid #d3dfeb;border-radius:12px;background:#fff;color:#182d47;font:400 16px/1.3 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;outline:none}
.module-login-card input::placeholder{color:#8a98a8;opacity:1}
.module-login-card input:focus{border-color:#6097d1;outline:none;box-shadow:0 0 0 3px #3178d31b}
.module-login-card .login-submit{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0;padding:10px 16px;border:1px solid transparent;border-radius:12px;background:#102642;color:#fff;font:750 15px/1.3 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.module-login-card .login-submit:hover{background:#1a3a5c;filter:none}
.module-login-card .module-back-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:48px;height:48px;flex-shrink:0;margin: auto 0 0;padding:10px 16px;border:1px solid #cbd9e8;border-radius:12px;background:linear-gradient(180deg,#fff,#f4f7fa);color:#102642;font:750 14px/1.3 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;box-shadow:0 5px 14px #10264212}
.module-login-card .module-back-link:hover{background:#102642;color:#fff;border-color:#102642;text-decoration:none}
.module-login-card .module-login-note{margin:0;padding:12px 14px;border-radius:12px;background:#f3f7fa;color:#72839a;font-size:12px;font-weight:400;line-height:1.5}
.module-login-card .module-login-note small{font-size:inherit}
.module-login-card .error,.module-login-card .message{margin:0;padding:10px 12px;border-radius:12px;color:#b53f3f;background:#fff1f1;font-size:13px;line-height:1.45}
.module-login-card .form-stack{display:grid;gap:8px;margin:0}
.module-login-card .form-stack input+label,.module-login-card .form-stack input+.login-submit{margin-top:8px}
.module-login-card .login-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0;padding:4px;border-radius:12px;background:#f1f5f9}
.module-login-card .login-mode{min-height:40px;margin:0;padding:8px;border:1px solid transparent;border-radius:9px;background:transparent;color:#526a84;font:750 14px/1.3 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.module-login-card .login-mode.selected{border-color:#dce6f0;background:#fff;color:#102642;box-shadow:0 2px 8px #1835540a}
.module-login-card .login-submit:focus-visible,.module-login-card .module-back-link:focus-visible,.module-login-card .login-mode:focus-visible{outline:3px solid #70c4ff;outline-offset:3px}
@media(max-width:640px){
.module-login-screen:has(>.module-login-card:not([hidden])){min-height:calc(100svh - 72px);padding:24px 16px}
.module-login-screen .module-login-card{min-height:660px;gap:16px;padding:24px;border-radius:22px}
.module-login-card .module-login-heading h1{font-size:26px}
.module-login-card .module-login-heading p{font-size:14px}
.module-login-card .module-back-link{margin-top:auto}
.module-login-card .login-mode{font-size:13px}
}
