.site-notice[hidden],.site-notice-toggle[hidden],.notice-preview-summary[hidden]{display:none}
.site-notice{display:flex;align-items:center;gap:5px;min-width:0;background:transparent;color:#145da0;font:700 14px/1.5 system-ui,sans-serif}
.site-notice[data-tone="warning"]{color:#805300}
.site-notice[data-tone="urgent"]{color:#b42318}
html[data-theme="dark"] .site-notice{color:#8cc8ff}
html[data-theme="dark"] .site-notice[data-tone="warning"]{color:#ffd76a}
html[data-theme="dark"] .site-notice[data-tone="urgent"]{color:#ffaaa2}
.site-notice-viewport{flex:1;min-width:0;overflow:hidden}
.site-notice-track{overflow-wrap:anywhere}
.site-notice [data-notice-title]{font-weight:850;margin-right:.55em}
.site-notice[data-scrolling="true"] .site-notice-track{width:max-content;white-space:nowrap;animation:notice-scroll var(--notice-duration,30s) linear infinite}
.site-notice[data-scrolling="true"] [data-notice-message]{white-space:nowrap}
.site-notice[data-paused="true"] .site-notice-track,.site-notice:hover .site-notice-track,.site-notice:focus-within .site-notice-track{animation-play-state:paused}
.site-notice .site-notice-toggle{appearance:none;flex:none;padding:3px 5px;margin:0;border:0;border-radius:4px;background:transparent;color:inherit;font:700 14px/1 system-ui,sans-serif;cursor:pointer;min-width:24px;min-height:28px}
.site-notice-toggle:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
@keyframes notice-scroll{from{transform:translateX(var(--notice-start,100%))}to{transform:translateX(-100%)}}
[data-notice-message]{white-space:pre-wrap;overflow-wrap:anywhere}
[data-notice-title]{overflow-wrap:anywhere}
.result-summary:has(>.site-notice:not([hidden])),.notice-preview-summary{display:grid;grid-template-columns:max-content minmax(80px,1fr) auto;align-items:center;gap:12px}
.result-summary:has(>.site-notice:not([hidden]))>.result-actions{width:auto;margin:0;max-width:420px}
.notice-preview-summary{padding:11px 14px;font-size:14px;background:#f7f9fb}
@media(max-width:1000px){
.result-summary:has(>.site-notice:not([hidden])),.notice-preview-summary{grid-template-columns:minmax(0,1fr) auto;gap:8px}
.result-summary:has(>.site-notice:not([hidden]))>.site-notice,.notice-preview-summary>.site-notice{grid-column:1/-1;grid-row:2}
.result-summary:has(>.site-notice:not([hidden]))>.result-actions{display:contents}
.result-summary:has(>.site-notice:not([hidden]))>.result-actions>span,.notice-preview-summary>span{grid-column:2;grid-row:1;max-width:180px;text-align:right}
.result-summary:has(>.site-notice:not([hidden])) .filter-button{grid-column:1/-1;justify-self:end}
}
@media(prefers-reduced-motion:reduce){
.site-notice[data-scrolling="true"] .site-notice-track{animation:none;transform:none;width:auto;white-space:normal}
.site-notice[data-scrolling="true"] [data-notice-message]{white-space:pre-wrap}
.site-notice .site-notice-toggle{display:none}
}
.site-maintenance-page{margin:0;min-height:100vh;display:grid;place-items:center;background:#f1f5f9;color:#213649;font:16px/1.6 system-ui,sans-serif;padding:24px;box-sizing:border-box}
.site-maintenance-card{box-sizing:border-box;max-width:620px;width:100%;padding:48px;background:#fff;border:1px solid #d4e0eb;border-top:4px solid #145da0;border-radius:14px;box-shadow:0 16px 50px #1c456b0c}
.site-maintenance-card[data-tone="warning"]{border-top-color:#b27a00}
.site-maintenance-card[data-tone="urgent"]{border-top-color:#b03830}
.maintenance-brand{display:block;width:220px;max-width:100%;height:auto;margin:0 0 38px}
.maintenance-label{font-size:12px;letter-spacing:.1em;font-weight:750;color:#526b80}
.site-maintenance-card h1{font-size:30px;line-height:1.2;margin:12px 0 18px}
.site-maintenance-card [data-notice-message]{margin-bottom:26px}
.maintenance-retry{display:inline-block;border-radius:7px;background:#145da0;color:#fff;padding:10px 18px;text-decoration:none;font-weight:700}
.maintenance-retry:focus-visible{outline:3px solid #7bb6e7;outline-offset:3px}
.site-maintenance-card .maintenance-hint{font-size:13px;color:#526b80;margin:18px 0 0}
html[data-theme="dark"] .site-maintenance-page{background:#111c27;color:#ecf3fa}
html[data-theme="dark"] .site-maintenance-card{background:#1b2a39;border-color:#3f5870}
html[data-theme="dark"] .maintenance-label,html[data-theme="dark"] .maintenance-hint{color:#b6c9da}
html[data-theme="dark"] .site-maintenance-page .maintenance-brand{filter:invert(1)}
.notice-preview{border:1px solid #d4e0eb;border-radius:8px;overflow:hidden;margin:18px 0;background:#f1f5f9}
.notice-preview .site-maintenance-card{margin:20px auto;max-width:540px;box-shadow:none;padding:30px}
@media(max-width:600px){.site-maintenance-page{padding:16px}.site-maintenance-card{padding:28px 22px}.site-maintenance-card h1{font-size:26px}.notice-preview .site-maintenance-card{margin:12px;width:calc(100% - 24px)}}
