/* Notice popups. Colours come from each site's variables: navy/blue on the customer site, the admin palette on admin. */
.notice-overlay{position:fixed;inset:0;z-index:50;background:rgba(11,53,88,.48);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;animation:notice-fade .18s ease-out}
@keyframes notice-fade{from{opacity:0}to{opacity:1}}
.notice-card{width:min(520px,100%);max-height:calc(100vh - 40px);overflow-y:auto;background:var(--surface,#fff);color:var(--text);border-radius:24px;box-shadow:0 30px 60px rgba(11,53,88,.25);display:flex;flex-direction:column;outline:none}
.notice-card.urgent{border:2px solid var(--danger)}
.notice-urgent{display:flex;align-items:center;gap:8px;background:var(--danger);color:#fff;padding:12px 24px;font-size:15px;font-weight:800}
.notice-urgent svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* Recommended upload: 1040×780 (4:3). Other ratios are shown whole (letterboxed), never cropped. */
.notice-image{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:var(--soft)}
.notice-body{padding:26px 30px 20px;display:flex;flex-direction:column;gap:12px}
.notice-meta{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}
.notice-tag{display:inline-flex;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:800;background:var(--soft);color:var(--accent)}
.notice-date{font-size:13px;color:var(--muted)}
.notice-body h2{margin:0;font-size:23px;font-weight:800;line-height:1.38;letter-spacing:-.3px;word-break:keep-all}
.notice-body p{margin:0;font-size:15px;line-height:1.75;color:var(--muted);white-space:pre-line;word-break:keep-all}
.notice-cta{margin-top:6px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border-radius:10px;border:0;background:var(--accent);color:#fff;text-decoration:none;font-size:16px;font-weight:700;cursor:pointer;width:100%}
.notice-cta:hover{filter:brightness(.94);color:#fff}
.notice-cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.notice-card.urgent .notice-cta{background:var(--text)}
.notice-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:0 30px 16px;font-size:14px;font-weight:700;color:var(--muted)}
.notice-pager button{width:40px;height:40px;min-height:40px;padding:0;border-radius:999px;border:1px solid var(--line);background:var(--surface,#fff);color:var(--text);display:flex;align-items:center;justify-content:center}
.notice-pager svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.notice-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);background:var(--bg);padding:10px 18px 10px 24px}
.notice-foot label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--muted);min-height:44px;cursor:pointer;margin:0}
.notice-foot input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--accent)}
.notice-foot .notice-close{min-height:44px;padding:0 20px}
.notice-ack-row{padding:0 30px 26px}
.notice-ack{width:100%;min-height:52px;background:var(--text);border-color:var(--text);color:#fff;font-size:16px;font-weight:700}

/* Phone: the popup becomes a bottom sheet with large close targets. */
@media(max-width:650px){
 .notice-overlay{align-items:flex-end;padding:0}
 .notice-card{width:100%;max-height:88vh;border-radius:24px 24px 0 0}
 .notice-body{padding:20px 20px 14px}
 .notice-body h2{font-size:20px}
 .notice-foot{padding:6px 12px 6px 18px}
 .notice-ack-row{padding:0 20px 20px}
}

/* Admin: list and editor */
.notice-admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:8px}
.notice-admin-head .hint{margin:0;flex:1}
.notice-counts{color:var(--muted);margin:6px 0 14px}
.notice-table td{vertical-align:middle}
.notice-table small{color:var(--muted)}
.notice-state{font-weight:700}
.notice-state.live{color:var(--accent)}
.notice-state.ended,.notice-state.off{color:var(--muted)}
.notice-order,.notice-actions{display:flex;gap:4px}
.notice-order button,.notice-actions button{min-height:34px;padding:0 10px}
.notice-switch{position:relative;width:46px;height:26px;min-height:26px;padding:3px;border-radius:999px;border:0;background:#c9d6e4;display:flex;justify-content:flex-start}
.notice-switch span{width:20px;height:20px;border-radius:999px;background:#fff;display:block}
.notice-switch.on{background:var(--accent);justify-content:flex-end}
.notice-editor{display:grid;grid-template-columns:minmax(0,1fr) 460px;gap:20px;align-items:start;margin-bottom:20px}
.notice-editor .forms{max-width:none;margin:0}
.notice-kinds{border:0;padding:0;margin:0 0 12px;display:flex;gap:8px;flex-wrap:wrap}
.notice-kinds legend{padding:0;margin-bottom:6px;color:var(--muted)}
.notice-kinds label{display:flex;flex-direction:row;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:8px 14px;cursor:pointer;white-space:nowrap;margin:0}
.notice-kinds input{width:auto;min-height:0;margin:0;accent-color:var(--accent)}
.notice-kinds label:has(input:checked){border-color:var(--accent);background:var(--soft);color:var(--accent);font-weight:700}
.notice-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.notice-check{display:flex;align-items:center;gap:8px}
.notice-check input{width:auto;min-height:0}
.notice-preview{position:sticky;top:20px}
.notice-preview h2{margin-top:0}
.notice-stage{background:#5a7590;border-radius:18px;padding:28px 20px;display:flex;justify-content:center}
.notice-stage .notice-card{max-height:none;box-shadow:0 16px 36px rgba(0,0,0,.25)}
.notice-spec{margin-top:16px;padding:20px 22px}
.notice-spec h2{margin:0 0 12px;font-size:17px}
.notice-spec dl{margin:0;display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px 14px;font-size:14px;line-height:1.65}
.notice-spec dt{font-weight:700;color:var(--text)}
.notice-spec dd{margin:0;color:var(--muted);word-break:keep-all}
.notice-spec b{color:var(--text)}
@media(max-width:650px){.notice-spec dl{grid-template-columns:1fr;gap:2px}.notice-spec dd{margin-bottom:8px}}
button.danger{background:var(--danger);border-color:var(--danger);color:#fff}
@media(max-width:1100px){.notice-editor{grid-template-columns:1fr}.notice-preview{position:static}}
@media(max-width:650px){.notice-two{grid-template-columns:1fr}.notice-admin-head{flex-direction:column}}
