:root{--ink:#17314c;--ink-deep:#11283e;--muted:#62768a;--blue:#245f8d;--blue-hover:#194969;--canvas:#f4f6f8;--paper:#fff;--line:#dce4eb;--amber:#98530e;--amber-bg:#fff5e6;--green:#21704d;--red:#aa3636;--shadow:0 12px 40px rgba(20,44,68,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;font-size:15px;line-height:1.65}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:clamp(31px,4.5vw,48px);line-height:1.35;letter-spacing:-.035em;font-weight:750}h2{font-size:23px;line-height:1.4;letter-spacing:-.025em}h3{font-size:18px;line-height:1.5}p{overflow-wrap:anywhere}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #3a91cd;outline-offset:4px}[hidden]{display:none!important}.shell{max-width:1144px;padding-left:32px;padding-right:32px;margin:0 auto}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:20px;top:-70px;background:var(--ink);color:white;z-index:1000;padding:12px 20px;border-radius:6px}.skip-link:focus{top:12px}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:92px}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;color:var(--ink)}.brand:hover{text-decoration:none}.brand small{display:block;font-size:10px;letter-spacing:.12em;font-weight:400;color:var(--muted);margin-top:1px}.brand-mark{display:grid;place-items:center;width:42px;height:46px;border:1px solid var(--ink);border-radius:3px;font-family:serif;font-size:27px;font-weight:400}.quiet-link{font-size:13px;color:var(--muted);white-space:nowrap}.header-actions{display:flex;gap:18px;align-items:center}.hero{padding:66px 0 54px;display:flex;justify-content:space-between;gap:40px;align-items:center}.eyebrow{color:var(--blue);font-size:11px;font-weight:700;letter-spacing:.14em;margin-bottom:18px}.hero-copy{margin-top:20px;color:var(--muted);line-height:1.9;font-size:15px}.hero-note{padding-left:48px;min-width:300px;border-left:1px solid #c9d5df;display:flex;flex-direction:column;align-items:flex-start}.note-number{font-family:Georgia,serif;font-size:64px;line-height:1.15;font-weight:400;letter-spacing:-.06em;color:#32536f}.note-label{font-size:12px;letter-spacing:.08em;margin-top:10px}.hero-note p{font-size:12px;color:var(--amber);margin-top:21px}.urgent-dot{display:inline-block;vertical-align:middle;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#c57e25}.notice{padding:16px 20px;background:#e9f1f8;border:1px solid #cbdde9;border-radius:8px;color:var(--ink);margin-bottom:20px;font-size:14px}.notice-warning{background:var(--amber-bg);border-color:#ebd1a9;color:#805010}.notice-error{background:#fff0f0;border-color:#eecaca;color:var(--red)}.notice-success{background:#edf8f1;border-color:#c9e4d3;color:var(--green)}.claim-notice{display:flex;justify-content:space-between;align-items:center;gap:20px}.claim-notice p{margin-top:3px;color:var(--muted)}.events-section{padding-bottom:42px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px}.section-heading p{margin-top:7px;font-size:12px}.count-badge{display:inline-block;min-width:26px;text-align:center;font-size:13px;vertical-align:middle;padding:3px 8px;border:1px solid #cfdbe6;background:#eaf0f5;border-radius:5px;margin-left:7px;letter-spacing:0}.sync-text{font-variant-numeric:tabular-nums}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:6px;padding:10px 18px;min-height:43px;font-size:13px;line-height:1.5;font-weight:600;white-space:nowrap;transition:background-color .15s,color .15s}.button:hover{text-decoration:none}.button-primary{background:var(--blue);color:white;border-color:var(--blue)}.button-primary:hover:not(:disabled){background:var(--blue-hover);border-color:var(--blue-hover)}.button-secondary{background:var(--paper);border-color:#c9d6e0;color:var(--ink)}.button-secondary:hover:not(:disabled){background:#eaf0f5}.button-quiet{background:transparent;color:var(--muted);border-color:var(--line)}.button-quiet:hover:not(:disabled){background:#e9eef3;color:var(--ink)}.button-small{padding:7px 12px;min-height:36px;font-size:12px}.button-full{width:100%}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.search-field{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--muted);padding-left:14px;width:360px;max-width:100%}.search-field>span:not(.sr-only){font-size:24px;line-height:1}.search-field input{border:none;background:transparent;min-height:43px;font-size:13px;padding:8px 12px 8px 0;min-width:0;width:100%;color:var(--ink);outline-offset:0}.search-field:focus-within{box-shadow:0 0 0 2px #80afd1}.filter-pills{display:flex;gap:8px;flex-shrink:0}.filter-pill{background:transparent;border:1px solid transparent;padding:8px 14px;border-radius:5px;color:var(--muted);font-size:12px;min-height:40px}.filter-pill.active{border-color:#ccd9e4;background:#e8eef4;color:var(--ink);font-weight:700}.events-list{display:grid;gap:12px}.event-card{position:relative;display:flex;align-items:center;gap:28px;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:25px 26px;overflow:hidden;box-shadow:0 3px 7px rgba(27,48,66,.015)}.event-card.urgent{border-color:#e4c89f}.event-card.urgent:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#cf933f}.event-date{min-width:106px;flex:0 0 106px;padding-right:18px;border-right:1px solid var(--line);text-align:center;font-variant-numeric:tabular-nums}.date-day{display:block;font-size:29px;font-weight:650;line-height:1.2;letter-spacing:-.02em;white-space:nowrap}.date-weekday{display:block;font-size:14px;color:var(--muted);margin-top:7px;white-space:nowrap}.event-content{flex:1;min-width:0}.event-topline{display:flex;gap:10px;align-items:center;margin-bottom:7px}.event-company{font-size:11px;color:var(--muted);letter-spacing:.03em;overflow-wrap:anywhere}.tag{display:inline-flex;align-items:center;padding:2px 7px;font-size:10px;line-height:1.5;font-weight:600;border-radius:3px;white-space:nowrap;background:#ecf1f6;color:var(--blue)}.tag-urgent{background:#fff1dc;color:#8a510f}.event-title{font-size:17px;overflow-wrap:anywhere;font-weight:650}.event-meta{display:flex;flex-wrap:wrap;gap:5px 22px;margin-top:12px;font-size:12px;color:var(--muted)}.event-meta span{display:inline-flex;gap:7px;align-items:baseline}.event-meta b{color:#426078;font-size:11px;font-weight:400}.event-card>.button{align-self:center}.empty-state{padding:56px 20px;text-align:center;background:var(--paper);border:1px dashed #c9d5df;border-radius:8px}.empty-state h3{font-size:18px;margin-bottom:9px}.empty-state p{color:var(--muted);font-size:14px}.empty-state .button{margin-top:20px}.loading-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-bottom:12px;animation:pulse 1.4s infinite}.how-it-works{border-top:1px solid var(--line);padding:32px 0 42px}.how-it-works h2{font-size:16px;margin-bottom:24px}.how-it-works ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:36px}.how-it-works li{display:flex;gap:14px}.how-it-works li>span{font-family:Georgia,serif;font-size:22px;color:#87a0b6;line-height:1.3}.how-it-works h3{font-size:13px;margin-bottom:6px}.how-it-works p{font-size:12px;color:var(--muted);line-height:1.85}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:30px;padding-top:22px;padding-bottom:30px;color:var(--muted);font-size:11px}.footer>span{white-space:nowrap}dialog{border:1px solid var(--line);border-radius:12px;padding:0;width:460px;max-width:calc(100% - 30px);max-height:calc(100% - 40px);box-shadow:0 20px 80px rgba(12,30,46,.25);color:var(--ink)}dialog::backdrop{background:rgba(13,31,47,.48);backdrop-filter:blur(3px)}.dialog-inner{position:relative;padding:34px}.dialog-inner .eyebrow{margin-bottom:9px}.dialog-inner h2{font-size:25px;padding-right:20px}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:0;background:transparent;color:var(--muted);font-size:25px;border-radius:5px;line-height:1}.icon-button:hover{background:#edf1f4}.dialog-close{position:absolute;right:12px;top:12px}.selected-event{padding:15px 0 19px;margin-bottom:18px;border-bottom:1px solid var(--line);font-size:13px}.selected-event strong{display:block;font-size:14px;line-height:1.6}.selected-event p{margin-top:6px;color:var(--muted);font-size:12px}.form-row{margin:0 0 18px}.form-row label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}.form-row input{display:block;width:100%;border:1px solid #c6d3de;border-radius:5px;background:white;padding:11px 12px;min-height:46px;color:var(--ink);font-size:14px}.form-row input::placeholder{color:#7f8fa0;font-size:12px}.form-help{font-size:12px;color:var(--muted);line-height:1.75;margin:12px 0 18px}.inline-error{font-size:13px;color:var(--red);margin:12px 0}.claim-progress{text-align:center}.progress-icon{display:grid;place-items:center;background:#ebf1f7;border-radius:50%;width:54px;height:54px;margin:0 auto 16px;font-size:28px;color:var(--blue)}.claim-progress h3{font-size:20px;margin-bottom:12px}.claim-progress>p:not(.form-help){font-size:14px;line-height:1.9}.claim-progress .button{margin-top:12px}.claim-progress.success .progress-icon{background:#eaf6ee;color:var(--green)}.claim-progress.error .progress-icon{background:#fceeee;color:var(--red)}.claim-progress.review .progress-icon{background:var(--amber-bg);color:var(--amber)}.admin-main{min-height:calc(100vh - 194px);padding-top:32px;padding-bottom:48px}.login-panel{width:430px;max-width:100%;margin:54px auto;background:white;border:1px solid var(--line);border-radius:10px;padding:34px;box-shadow:var(--shadow)}.login-panel h1{font-size:28px}.login-panel>.muted{font-size:13px;margin-top:10px;margin-bottom:27px}.dashboard-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:22px 0 30px}.dashboard-heading h1{font-size:30px}.dashboard-heading .eyebrow{margin-bottom:10px}.dashboard-heading .muted{font-size:12px;margin-top:9px}.dashboard-actions{display:flex;gap:10px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat-card{background:white;border:1px solid var(--line);border-radius:7px;padding:20px 24px}.stat-card span{color:var(--muted);font-size:12px;display:block}.stat-card strong{display:block;font-size:34px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.4;margin-top:8px}.health-panel{display:flex;gap:28px;flex-wrap:wrap;background:#e9eef3;border:1px solid #d7e0e8;border-radius:6px;padding:16px 22px;margin:18px 0 35px;font-size:12px}.health-panel div{display:flex;gap:12px}.health-panel strong{font-weight:500}.health-panel .inline-error{width:100%;margin:0}.admin-section{margin-top:34px}.admin-section .section-heading{margin-bottom:16px}.admin-section h2{font-size:19px}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:7px;background:white}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;line-height:1.7}thead{background:#eaf0f5}th{color:#4f687e;font-weight:600;padding:12px 16px;white-space:nowrap}td{padding:16px;border-top:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;min-width:84px}td:first-child{min-width:170px;max-width:340px}td:last-child{min-width:115px}.table-primary{font-size:13px;font-weight:600;display:block}.table-secondary{font-size:11px;display:block;color:var(--muted);margin-top:5px}.table-empty{text-align:center;padding:36px;color:var(--muted)}.status-badge{display:inline-block;border-radius:4px;padding:3px 7px;background:#edf1f6;color:#3f5c77;font-size:11px;white-space:nowrap}.status-confirmed,.status-sent{background:#e8f5ed;color:var(--green)}.status-review,.status-uncertain,.status-processing{background:var(--amber-bg);color:var(--amber)}.status-rejected,.status-failed,.status-error{background:#fff0f0;color:var(--red)}.status-preview{background:#eaf0f9;color:#426992}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}#confirm-message{margin-top:18px;font-size:14px;line-height:1.9}
@keyframes pulse{50%{opacity:.3}}
@media(max-width:800px){.shell{padding-left:22px;padding-right:22px}.hero{padding:40px 0}.hero-note{min-width:240px;padding-left:30px}.note-number{font-size:54px}.event-card{gap:20px;padding:22px}.event-date{min-width:75px;flex-basis:75px;padding-right:15px}.event-title{font-size:15px}.how-it-works ol{gap:22px}.dashboard-heading{align-items:flex-start;flex-direction:column}.stats-grid{gap:10px}.stat-card{padding:16px}.health-panel{gap:12px 25px}}
@media(max-width:600px){body{font-size:14px}.shell{padding-left:18px;padding-right:18px}.header-inner{min-height:77px}.brand{font-size:15px;gap:9px}.brand-mark{width:35px;height:40px;font-size:23px}.brand small{font-size:9px;letter-spacing:.08em}.quiet-link{font-size:12px}.hero{padding:32px 0 30px;display:block}.hero h1{font-size:33px}.hero .eyebrow{margin-bottom:14px;font-size:10px}.hero-copy{font-size:13px;line-height:1.9;margin-top:17px}.hero-note{border-left:0;padding:0;margin-top:22px;display:block;min-width:0}.note-number{display:none}.note-label{display:none}.hero-note p{font-size:11px;margin:0}.notice{padding:13px 15px;font-size:12px}.claim-notice{gap:12px;align-items:flex-start}.claim-notice .button{font-size:11px;padding:8px 10px;min-height:37px}.section-heading{gap:12px;margin-bottom:18px}h2{font-size:20px}.section-heading p{font-size:11px;margin-top:8px}.section-heading>.button{padding:8px 11px;font-size:11px;min-height:37px}.count-badge{font-size:11px;padding:2px 6px}.filter-bar{align-items:stretch;gap:12px;flex-direction:column}.search-field{width:100%}.filter-pills{gap:8px}.filter-pill{font-size:11px;padding:6px 12px;min-height:35px}.event-card{display:grid;grid-template-columns:57px 1fr;gap:0 17px;padding:20px 17px}.event-date{min-width:0;width:57px;padding-right:13px;align-self:start;padding-top:3px}.date-day{font-size:29px}.date-month{font-size:9px;line-height:1.7;margin-top:7px}.event-content{width:100%;min-width:0}.event-topline{flex-wrap:wrap;gap:5px 8px;margin-bottom:5px}.event-company{font-size:10px}.tag{font-size:9px}.event-title{font-size:15px;line-height:1.65}.event-meta{font-size:11px;margin-top:9px;gap:4px}.event-meta span{width:100%}.event-meta b{font-size:10px}.event-card>.button{grid-column:2;justify-self:start;margin-top:16px;min-height:39px;padding:8px 18px;font-size:12px}.events-section{padding-bottom:30px}.how-it-works{padding:26px 0 30px}.how-it-works ol{grid-template-columns:1fr;gap:20px}.how-it-works h2{font-size:15px;margin-bottom:22px}.how-it-works li>span{font-size:20px}.how-it-works h3{margin-bottom:3px}.how-it-works p{font-size:11px}.footer{display:block;padding-top:17px;padding-bottom:24px;font-size:10px}.footer>span{display:block;margin-top:7px}.dialog-inner{padding:28px 23px}.dialog-inner h2{font-size:23px}.dialog-inner .eyebrow{font-size:10px}.login-panel{padding:26px 22px;margin:25px auto}.login-panel h1{font-size:25px}.admin-main{padding-top:20px}.header-actions{gap:7px}.header-actions .button{padding:6px 8px;min-height:36px;font-size:11px}.dashboard-heading{padding-top:13px}.dashboard-heading h1{font-size:27px}.dashboard-actions{width:100%}.dashboard-actions .button{flex:1;font-size:12px;padding:9px}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-card strong{font-size:30px}.health-panel{padding:14px 15px;font-size:11px;gap:11px}.health-panel div{justify-content:space-between;width:100%;gap:8px}.admin-section .section-heading{align-items:flex-start}.admin-section .section-heading p{line-height:1.8}.admin-section h2{font-size:18px}td,th{padding:12px}.dialog-actions{gap:8px}.dialog-actions .button{font-size:12px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* Seven-day source sync and public list views. */
.view-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 10px}.view-tab{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:11px 16px;font-size:14px;min-height:45px}.view-tab.active{border-bottom-color:var(--blue);color:var(--ink);font-weight:700}.view-description{font-size:12px;color:var(--muted);margin-bottom:18px}.event-availability{flex:0 0 auto;color:var(--muted);font-size:12px;padding:9px 0;text-align:center;min-width:92px}.sync-panel{border:1px solid #c8d9e5;background:#f9fcff;border-radius:8px;padding:22px 24px;margin:0 0 24px}.sync-panel-heading{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.sync-panel h2{font-size:18px}.sync-panel-heading p{font-size:12px;margin-top:7px}.sync-result{font-size:13px;margin-top:17px}.sync-details{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:18px;margin:19px 0 0}.sync-details div{min-width:0}.sync-details dt{font-size:11px;color:var(--muted)}.sync-details dd{font-size:12px;margin:5px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.status-succeeded{background:#e8f5ed;color:var(--green)}.status-running,.status-queued{background:var(--amber-bg);color:var(--amber)}
@media(max-width:800px){.sync-details{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.view-tab{font-size:13px;padding:9px 12px}.view-description{font-size:11px}.event-availability{grid-column:2;justify-self:start;text-align:left;margin-top:10px;font-size:11px}.sync-panel{padding:18px 16px}.sync-panel-heading{gap:10px}.sync-panel h2{font-size:16px}.sync-panel-heading p{font-size:11px}.sync-result{font-size:12px}.sync-details{gap:14px}.sync-details dd{font-size:11px}.dashboard-actions{flex-wrap:wrap}.dashboard-actions .button{flex:1 1 auto}}.status-disabled{background:var(--amber-bg);color:var(--amber)}select:focus-visible{outline:3px solid #3a91cd;outline-offset:4px}


/* Continuous confirmation and persistent fault display. */
.service-notice{margin-top:0;overflow-wrap:anywhere}.service-notice strong{display:block;font-size:15px}.service-notice p{margin-top:5px;line-height:1.8}.service-notice small{display:block;margin-top:7px;font-size:11px;opacity:.85}.public-service-notice{margin-top:24px;margin-bottom:24px}.system-health{margin-bottom:28px;padding:24px;border:1px solid var(--line);border-radius:8px;background:white;min-width:0}.system-health .section-heading{align-items:flex-start}.health-alerts .notice{margin-bottom:10px}.health-alerts .notice p{margin-top:7px;font-size:12px}.health-components{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.health-card{min-width:0;border:1px solid var(--line);border-top:3px solid #a1b4c4;border-radius:6px;padding:16px;background:#f9fbfd;overflow-wrap:anywhere}.health-ok{border-top-color:#409260}.health-error,.health-stalled{border-top-color:#bc4545;background:#fffafa}.health-warning{border-top-color:#bf8a38;background:#fffcf5}.health-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:10px}.health-card h3{font-size:14px}.health-description{font-size:12px;line-height:1.8;margin-bottom:8px}.health-time{font-size:10px;color:var(--muted);line-height:1.7}.health-recovered{font-size:10px;color:var(--green);margin-top:5px}.health-next{font-size:11px;line-height:1.8;margin-top:8px}.health-summary{font-size:12px;color:var(--muted);margin:12px 0;overflow-wrap:anywhere}.status-ok{background:#e8f5ed;color:var(--green)}.status-warning,.status-pending{background:var(--amber-bg);color:var(--amber)}.button[aria-disabled="true"]{opacity:.55;cursor:not-allowed}.health-panel small{display:block;overflow-wrap:anywhere}.health-panel div{flex-wrap:wrap;min-width:0}.health-panel strong{overflow-wrap:anywhere;max-width:100%}.system-health .form-help{margin-bottom:0}
@media(max-width:900px){.health-components{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.system-health{padding:18px 15px}.health-components{grid-template-columns:1fr}.system-health h2{font-size:18px}.system-health .section-heading{gap:10px}.system-health .section-heading>.button{white-space:normal;min-width:70px;max-width:90px}.service-notice strong{font-size:13px}.service-notice small{font-size:10px}.health-card{padding:14px}.admin-section .section-heading{flex-wrap:wrap}}

.health-stale .health-card{border-top-color:#9ba6b0;background:#f4f5f6}.health-stale .status-badge{background:#e4e8ed;color:#566779}

.mail-policy-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px;margin:0 0 18px;border:1px solid var(--border,#d7e0df);border-radius:12px;background:var(--surface,#fff)}
.mail-policy-panel h3{margin:0 0 8px}.mail-policy-panel p{margin:8px 0}.mail-policy-panel .button{flex-shrink:0;min-width:160px}.mail-policy-panel [aria-checked="true"]{background:#184d43;color:#fff;border-color:#184d43}.status-skipped{background:#eef2f3;color:#42545b}
@media(max-width:640px){.mail-policy-panel{align-items:stretch;flex-direction:column;gap:12px}.mail-policy-panel .button{width:100%}}

/* Real signup steps: no simulated percentages or endless busy cursor. */
.claim-steps{list-style:none;margin:18px 0;padding:0;display:grid;gap:10px;text-align:left}
.claim-steps li{display:flex;align-items:center;gap:10px;color:var(--muted,#64748b);font-size:14px}
.claim-step-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;height:25px;border:1px solid #cbd5e1;border-radius:50%;font-size:12px;font-weight:700}
.claim-steps .done{color:#166534}.claim-steps .done .claim-step-icon{background:#dcfce7;border-color:#86efac}
.claim-steps .current{color:#1d4ed8;font-weight:700}.claim-steps .current .claim-step-icon{background:#dbeafe;border-color:#60a5fa}
.claim-steps .stalled{color:#92400e}.claim-steps .stalled .claim-step-icon{background:#fef3c7;border-color:#fbbf24}

/* Public title and a dismissible, temporary success notice. */
.public-header .brand{min-width:0}.public-header .brand-mark{flex-shrink:0}.public-header .brand>span:last-child{min-width:0}.public-header .brand-name{display:block;overflow-wrap:anywhere}
.claim-notice>div:first-child{min-width:0;flex:1}.claim-notice-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
@media(max-width:600px){.claim-notice-actions{flex-direction:column;align-items:stretch}}

/* Compact operational status; details never reserve page space. */
.health-components{gap:4px 18px}
.health-item{position:relative;min-width:0;border-bottom:1px solid var(--line)}
.health-summary-button{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:42px;padding:7px 4px;border:0;background:transparent;color:var(--ink);text-align:left;font-size:13px;line-height:1.5;cursor:help}
.health-item-label{min-width:0;font-weight:600;overflow-wrap:anywhere}.health-summary-button .status-badge{flex-shrink:0;font-size:11px}
.health-item.health-error .health-item-label,.health-item.health-stalled .health-item-label{color:var(--red)}
.health-item.health-warning .health-item-label{color:var(--amber)}
.health-item:focus-within,.health-item[data-open="true"]{z-index:20}
.health-details{display:none;position:absolute;left:0;top:calc(100% - 2px);width:320px;max-width:calc(100vw - 64px);padding:15px;background:white;border:1px solid #b9cbd8;border-radius:7px;box-shadow:0 8px 24px #19334824;color:var(--ink);overflow-wrap:anywhere;text-align:left;z-index:21}
.health-item:nth-child(3n) .health-details{left:auto;right:0}
.health-summary-button:focus-visible + .health-details,.health-item[data-open="true"] .health-details{display:block}
@media(hover:hover){.health-item:hover{z-index:20}.health-item:hover .health-details{display:block}}
.health-stale .health-item{background:#f4f5f6}.health-stale .health-item-label{color:#566779}
.dashboard-heading h1{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.025em}
.admin-brand-name{overflow-wrap:anywhere}.admin-page .brand{min-width:0}.admin-page .brand-mark{flex-shrink:0}
@media(max-width:900px){.health-item:nth-child(3n) .health-details{left:0;right:auto}.health-item:nth-child(2n) .health-details{left:auto;right:0}}
@media(max-width:600px){.health-components{gap:3px}.health-item:nth-child(n) .health-details{left:0;right:auto}.dashboard-heading h1{font-size:24px}.admin-page .header-inner{flex-wrap:wrap;padding-top:16px;padding-bottom:16px}.admin-page .header-actions{margin-left:auto}.event-date{flex-basis:74px;min-width:74px;padding-right:12px}.date-day{font-size:23px}.date-weekday{font-size:13px}}

/* Dense admin layout: six status entries, short summaries and five-row pages. */
.admin-page .shell{max-width:1280px}
.admin-page .header-inner{min-height:74px}
.admin-page .admin-main{padding-top:18px}
.admin-page .dashboard-heading{padding:12px 0 18px;gap:18px;align-items:center}
.admin-page .dashboard-heading h1{font-size:clamp(22px,2.25vw,29px)}
.admin-page .dashboard-heading .eyebrow{margin-bottom:7px}
.admin-page .dashboard-heading .muted{margin-top:5px;font-size:11px}
.admin-page .dashboard-actions{gap:8px;flex-shrink:0}
.admin-page .dashboard-actions .button{font-size:12px;padding:8px 11px;min-height:38px}
.admin-page .hr-mail-button[aria-checked="true"]{background:#e8f5ed;border-color:#bddbc9;color:var(--green)}
.admin-page .hr-mail-button[aria-checked="false"]{background:#f2f4f7;border-color:#ccd5df;color:#536476}
.control-feedback{margin:0 0 12px;font-size:12px}.feedback-success{color:var(--green)}.feedback-error{color:var(--red)}
.admin-page .service-notice{padding:9px 13px;margin-bottom:12px}
.admin-page .service-notice strong{font-size:13px}.admin-page .service-notice p{font-size:12px;margin-top:3px}
.admin-page .system-health{padding:14px 17px;margin-bottom:14px}
.admin-page .system-health .section-heading{margin-bottom:9px;align-items:center;gap:10px}
.admin-page .system-health .section-heading>div{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.admin-page .system-health h2,.admin-page .admin-section h2{font-size:18px}
.admin-page #health-updated{margin:0;font-size:10px}
.admin-page .health-components{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px 12px}
.admin-page .health-summary-button{min-height:33px;padding:4px 2px;gap:4px;font-size:12px;cursor:default}
.admin-page .health-summary-button .status-badge{padding:2px 5px;font-size:10px}
.admin-page .health-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-page .health-details{width:300px;max-width:calc(100vw - 72px)}
.admin-page .health-item:nth-child(n) .health-details{left:0;right:auto}
.admin-page .health-item:nth-child(6n) .health-details,.admin-page .health-item:nth-child(6n-1) .health-details,.admin-page .health-item:nth-child(6n-2) .health-details{left:auto;right:0}
.admin-page .health-alerts .notice{padding:8px 11px;font-size:12px;margin-bottom:7px}.admin-page .health-alerts .notice p{margin-top:3px}
.admin-page .health-summary{margin:6px 0;font-size:11px}
.admin-page .sync-panel{padding:12px 16px;margin:0 0 12px;display:grid;grid-template-columns:auto 1fr;gap:8px 25px;align-items:center}
.admin-page .sync-panel-heading{align-items:center;gap:12px}.admin-page .sync-panel h2{font-size:16px}
.admin-page .sync-details{margin:0;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px 24px}
.admin-page .sync-details>div{display:flex;gap:7px;align-items:baseline}.admin-page .sync-details dd{margin:0;font-size:12px}.admin-page .sync-details dt{font-size:11px}
.admin-page .sync-panel>.sync-result,.admin-page .sync-panel>.inline-error{grid-column:1/-1;margin:0;font-size:12px}
.admin-page .stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:white;border:1px solid var(--line);border-radius:7px;margin:0 0 18px}
.admin-page .stat-card{border:0;box-shadow:none;border-radius:0;background:transparent;padding:10px 15px;display:flex;gap:14px;align-items:center;justify-content:space-between}
.admin-page .stat-card:not(:last-child){border-right:1px solid var(--line)}.admin-page .stat-card strong{font-size:24px;margin:0;line-height:1.3}.admin-page .stat-card>span{font-size:12px}
.admin-page .admin-section{margin-bottom:20px}.admin-page .admin-section .section-heading{margin-bottom:10px;gap:12px;align-items:center}
.admin-page .section-heading p{font-size:11px;margin-top:4px}.admin-page .section-meta{font-size:11px;color:var(--muted)}
.admin-page table{font-size:12px}.admin-page th,.admin-page td{padding:9px 12px;vertical-align:middle;line-height:1.55}.admin-page th{font-size:12px}
.admin-page .table-primary{font-size:12px}.admin-page .table-secondary{font-size:11px;margin-top:3px;line-height:1.5}
.admin-page .record-meta{white-space:nowrap}.admin-page .claims-table td:nth-child(1){max-width:430px}.admin-page .claims-table td:nth-child(2){white-space:nowrap}
.admin-page .records-section .status-badge{font-size:11px;padding:3px 7px}.admin-page .table-empty{padding:20px;font-size:12px}
.admin-page .record-detail{font-size:11px;max-width:360px}.admin-page .record-detail summary{color:var(--blue);cursor:pointer;margin-top:3px}.admin-page .record-detail p{margin-top:5px;color:var(--muted);overflow-wrap:anywhere}
.admin-page .logs-table th:first-child,.admin-page .logs-table td:first-child{width:142px;white-space:nowrap}.admin-page .logs-table th:nth-child(2){width:80px}
.records-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:8px;font-size:11px;font-variant-numeric:tabular-nums}
.records-pagination .button{min-height:30px;padding:5px 10px;font-size:11px}
.admin-page .button:disabled{cursor:default}.admin-page .button[aria-busy="true"]{cursor:progress}
.admin-page .inline-error{margin:7px 0;font-size:12px}.admin-page .footer{padding-top:12px;padding-bottom:15px;font-size:10px}
@media(max-width:1099px){.admin-page .dashboard-heading{flex-wrap:wrap}.admin-page .dashboard-actions{margin-left:auto}.admin-page .health-components{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-page .health-item:nth-child(n) .health-details{left:0;right:auto}.admin-page .health-item:nth-child(4n) .health-details,.admin-page .health-item:nth-child(4n-1) .health-details{left:auto;right:0}.admin-page .sync-panel{grid-template-columns:1fr}.admin-page .sync-details{justify-content:flex-start}}
@media(max-width:799px){.admin-page .health-components{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-page .health-item:nth-child(n) .health-details{left:0;right:auto}.admin-page .health-item:nth-child(3n) .health-details{left:auto;right:0}.admin-page .stat-card{padding:9px 10px;gap:7px}.admin-page .stat-card>span{font-size:11px}}
@media(max-width:599px){.admin-page .dashboard-heading{padding-top:5px;gap:12px}.admin-page .dashboard-heading h1{font-size:22px}.admin-page .dashboard-actions{width:100%;gap:6px}.admin-page .dashboard-actions .button{padding:7px 9px;font-size:11px;flex:1 1 auto}.admin-page .system-health{padding:12px}.admin-page .health-components{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px}.admin-page .health-item:nth-child(n) .health-details{left:0;right:auto}.admin-page .health-item:nth-child(2n) .health-details{left:auto;right:0}.admin-page .health-summary-button{font-size:11px}.admin-page .system-health .section-heading>div{gap:3px}.admin-page #health-updated{font-size:9px}.admin-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-page .stat-card:nth-child(2){border-right:0}.admin-page .stat-card:nth-child(-n+2){border-bottom:1px solid var(--line)}.admin-page .stat-card strong{font-size:22px}.admin-page .sync-panel{padding:10px 12px;gap:8px}.admin-page .sync-details{gap:4px 14px}.admin-page .sync-details dd{font-size:11px}.admin-page .records-section .section-heading{flex-wrap:wrap}.admin-page .records-section .table-wrap{overflow:auto}.admin-page .claims-table{min-width:800px}.admin-page .emails-table{min-width:650px}.admin-page .logs-table{min-width:550px}.records-pagination{justify-content:center;gap:10px}}

/* Public branding and compact service summary. */
.public-header .brand-logo,.admin-page .brand-logo{display:block;width:64px;height:auto;flex:0 0 64px;object-fit:contain;border:0;border-radius:0}
.public-service-notice{display:flex;align-items:center;gap:6px 18px;padding:10px 16px;margin-top:18px;margin-bottom:18px}
.public-service-notice strong{flex-shrink:0;font-size:14px;line-height:1.6}
.public-service-notice p{flex:1;min-width:0;margin:0;font-size:13px;line-height:1.6}
.public-service-notice small{flex-shrink:0;max-width:100%;margin:0;font-size:11px;line-height:1.6}
@media(max-width:800px){.public-service-notice{flex-wrap:wrap;gap:3px 12px}.public-service-notice p{flex:1 1 200px}.public-service-notice small{flex-basis:100%}}
@media(max-width:600px){.public-header .brand-logo,.admin-page .brand-logo{width:46px;flex-basis:46px}.public-service-notice{padding:9px 12px}.public-service-notice strong{font-size:13px}.public-service-notice p{font-size:12px}.public-service-notice small{font-size:10px}}

/* Compact public dispatch cards; keep numeric date and readable weekday. */
.events-list{gap:8px}
.event-card{gap:18px;padding:12px 18px}
.event-date{flex:0 0 auto;min-width:0;width:max-content;padding-right:14px;display:flex;flex-direction:column;align-items:center}
.event-topline{gap:8px;margin-bottom:2px}
.event-title{font-size:16px;line-height:1.4}
.event-meta{margin-top:5px;gap:3px 18px;line-height:1.4}
.event-card>.button{min-height:36px;padding:8px 14px}
@media(max-width:640px){
 body:not(.admin-page) .header-inner{flex-wrap:wrap;gap:6px;padding-top:10px;padding-bottom:10px}
 body:not(.admin-page) .brand{flex:1 0 100%;min-width:0}
 body:not(.admin-page) .brand>span{font-size:15px;line-height:1.5}
 body:not(.admin-page) .header-actions{width:100%;justify-content:flex-end}
 .event-card{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 12px;padding:12px}
 .event-date{width:auto;min-width:0;padding:2px 12px 0 0;grid-row:1 / span 2}
 .event-topline{margin-bottom:2px}
 .event-title{font-size:14px;line-height:1.45}
 .event-meta{margin-top:4px;gap:2px 10px}
 .event-meta span{width:auto;max-width:100%;overflow-wrap:anywhere}
 .event-card>.button{grid-column:2;margin-top:2px;min-height:34px;padding:6px 12px;font-size:12px}
 .event-card>.event-availability{margin-top:0;padding:2px 0}
}

/* Ordinal, date, start time and campus share one compact facts row. */
.event-facts{display:grid;grid-template-columns:max-content max-content max-content minmax(100px,132px);gap:20px;align-items:center;flex:0 0 auto;padding-right:20px;border-right:1px solid var(--line)}
.event-ordinal{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:3px 6px;border:1px solid var(--line);border-radius:6px;background:#f4f8fb;color:var(--blue);font-size:16px;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.event-facts .event-date{width:auto;min-width:0;padding:0;border:0;grid-row:auto;align-self:center}
.event-facts .date-day,.event-time-start{font-size:24px;font-weight:650;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.event-facts .date-weekday,.event-time-end{display:block;font-size:13px;font-weight:400;line-height:1.4;margin-top:5px;color:var(--muted);white-space:nowrap}
.event-time{text-align:center}
.event-campus{font-size:22px;font-weight:600;line-height:1.35;text-align:center;overflow-wrap:anywhere}
@media(max-width:700px){
 .event-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}
 .event-facts{grid-column:1 / -1;grid-template-columns:max-content max-content max-content minmax(0,1fr);gap:24px;border-right:0;border-bottom:1px solid var(--line);padding:0 0 10px;width:100%;justify-items:center}
 .event-content{grid-column:1}
 .event-card>.button,.event-card>.event-availability{grid-column:2;grid-row:2;align-self:center;justify-self:end;margin:0}
}
@media(max-width:640px){
 .event-card{gap:9px 12px}
 .event-facts{gap:12px;padding-bottom:9px}
 .event-facts .date-day,.event-time-start{font-size:21px}
 .event-campus{font-size:20px}
 .event-facts .date-weekday,.event-time-end{font-size:13px;margin-top:4px}
}

/* School login recovery sits immediately left of the CAPTCHA balance. */
.admin-page:not(.dispatch-page) .dashboard-actions{display:grid;grid-template-columns:repeat(5,128px);gap:8px;align-items:stretch}
.admin-page:not(.dispatch-page) .dashboard-actions>.button,.admin-page:not(.dispatch-page) .dashboard-actions>.captcha-balance-card{width:100%;height:44px;min-height:44px;min-width:0;margin:0;padding:3px 8px;box-sizing:border-box}
.captcha-balance-card{display:flex;flex-direction:column;justify-content:center;gap:0;border:1px solid #ccd9e4;border-radius:6px;background:#f4f8fb;cursor:default;text-align:center}
.captcha-balance-label{font-size:11px;line-height:1.2;color:var(--muted);font-weight:500;white-space:nowrap}
#captcha-balance-value{font-size:13px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--blue)}
#captcha-balance-value[data-compact="true"]{font-size:11px;line-height:1.1;white-space:normal;overflow-wrap:anywhere}
.captcha-balance-card[data-state="stale"] #captcha-balance-value,.captcha-balance-card[data-state="error"] #captcha-balance-value{color:var(--amber)}
.captcha-balance-card[data-state="disabled"] #captcha-balance-value{color:var(--muted)}
.captcha-balance-detail{display:none!important}
@media(max-width:760px){.admin-page:not(.dispatch-page) .dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}}

/* Missing school contacts resume within the existing claim dialog. */
.contact-email-form{text-align:left;margin:16px 0 12px;padding-top:12px;border-top:1px solid var(--line)}
.contact-email-form .form-help{margin:0 0 12px}.contact-email-form .form-row{margin-bottom:10px}.contact-email-form .button{margin-top:0}.contact-email-form .inline-error{margin:8px 0}

/* Compact, private server counters. Progress elements avoid inline CSP styles. */
.server-metrics-panel{background:#fff;border:1px solid var(--line,#dce5ec);border-radius:9px;padding:12px 17px;margin-bottom:14px}
.server-metrics-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:9px}
.server-metrics-heading h2{margin:0;font-size:17px;line-height:1.5}
#server-metrics-status{font-size:11px;color:#647b90}
.server-metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:8px}
.server-metric{display:flex;flex-direction:column;gap:4px;min-width:0;border-left:2px solid #e5edf4;padding:2px 10px}
.server-metric-label{font-size:12px;color:#526c84}
.server-metric-value{font-size:24px;line-height:1.25;font-variant-numeric:tabular-nums;color:#173d60;overflow-wrap:anywhere}
.server-metric-detail{font-size:11px;line-height:1.5;color:#6d8092;overflow-wrap:anywhere}
.server-metric-bar{display:block;width:100%;height:5px;margin:3px 0;border:0;border-radius:3px;overflow:hidden;appearance:none;background:#eaf0f5;accent-color:#27738e}
.server-metric-bar::-webkit-progress-bar{background:#eaf0f5;border-radius:3px}
.server-metric-bar::-webkit-progress-value{background:#27738e;border-radius:3px}
.server-metric-bar::-moz-progress-bar{background:#27738e}
.server-metric[data-warning="true"] .server-metric-value{color:#b66717}
.server-metric[data-warning="true"] .server-metric-bar{accent-color:#cf892f}
.server-metric[data-warning="true"] .server-metric-bar::-webkit-progress-value{background:#cf892f}
.server-metric[data-warning="true"] .server-metric-bar::-moz-progress-bar{background:#cf892f}
.server-metrics-panel[data-state="stale"] .server-metrics-grid,.server-metrics-panel[data-state="paused"] .server-metrics-grid{opacity:.58}
.server-metrics-panel[data-state="stale"] #server-metrics-status,.server-metrics-panel[data-state="partial"] #server-metrics-status,.server-metrics-panel[data-state="error"] #server-metrics-status{color:#a96018}
@media(max-width:600px){.server-metrics-panel{padding:11px 12px}.server-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 6px}.server-metric{padding:2px 7px}.server-metric-value{font-size:21px}}

/* Administrator replacement: compact fields and persistent task progress. */
.replacement-form{display:grid;grid-template-columns:minmax(240px,2.5fr) minmax(110px,1fr) minmax(150px,1fr) auto;gap:12px;align-items:end}
.replacement-form .form-row{margin:0}.replacement-form select{width:100%;min-height:44px}
.replacement-hint,.replacement-panel #replacement-current{font-size:13px;margin:10px 0}
.replacement-panel table{width:100%;font-size:13px}.replacement-panel td{padding:10px 12px;vertical-align:top}
.replacement-panel td small{display:block;color:var(--muted,#667085);margin-top:3px}
@media(max-width:850px){.replacement-form{grid-template-columns:1fr 1fr}.replacement-event{grid-column:1/-1}.replacement-form button{min-height:44px}}
@media(max-width:480px){.replacement-form{grid-template-columns:1fr}.replacement-panel td{min-width:125px}}


/* Email intake stays attached to its replacement job during polling. */
.replacement-email-form{display:flex;flex-direction:column;gap:7px;min-width:220px;max-width:320px;text-align:left}
.replacement-email-form label{font-size:12px;font-weight:600}.replacement-email-form input{width:100%;min-height:36px;padding:7px 9px;font:inherit;border:1px solid var(--line);border-radius:6px}
.replacement-email-form .inline-error:empty{display:none}.replacement-email-form .button{align-self:flex-start}
