/* Administrator only: inherit the public site's header and brand tokens. */
.admin-page{background:#f6f7f8}
.admin-main{padding:34px 0 64px;min-height:calc(100vh - 80px)}
.admin-shell{width:min(760px,calc(100% - 40px));margin:0 auto}
.admin-title{margin-bottom:20px}
.admin-title h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.04em;margin:5px 0}
.admin-title>p:last-child{color:var(--muted);font-size:14px;margin:0}
.admin-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 24px;margin-bottom:16px}
.admin-panel h2{font-size:19px;margin:0 0 18px;letter-spacing:-.025em}
.admin-panel form{max-width:100%}
.admin-panel label{display:block;font-size:14px;font-weight:700;margin:12px 0 4px}
.admin-panel input:not([type=checkbox]):not([type=hidden]),.admin-panel textarea{display:block;box-sizing:border-box;width:100%;min-height:42px;padding:10px 12px;margin:6px 0 12px;border:1px solid #cbd0d7;border-radius:8px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.admin-panel textarea{min-height:105px;resize:vertical;line-height:1.6}
.admin-panel input[type=file]{padding:8px;max-width:100%;font-size:13px}
.admin-panel input[type=checkbox]{width:18px;height:18px;vertical-align:middle;accent-color:var(--brand);margin-right:7px}
.admin-panel fieldset{min-width:0;margin:15px 0;border:1px solid var(--line);border-radius:10px;padding:12px 16px}
.admin-panel legend{font-weight:750;padding:0 5px;font-size:14px}
.admin-panel fieldset p{font-size:13px;color:var(--muted)}
.admin-panel button,.admin-toolbar button{min-height:40px;padding:9px 15px;border:1px solid #cbd0d7;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer;margin:5px 7px 5px 0}
.admin-panel form>button:first-of-type,.admin-panel #login button{background:var(--brand);border-color:var(--brand);color:#fff}
.admin-panel button:hover,.admin-toolbar button:hover{border-color:var(--brand-deep)}
.admin-panel button:disabled{opacity:.5;cursor:wait}
.admin-toolbar{display:flex;justify-content:flex-end;margin:-8px 0 10px}
#status{min-height:22px;margin:8px 0 12px;color:var(--brand-deep);font-size:14px}
#signin[hidden],#workspace[hidden]{display:none!important}
#notices article{border-top:1px solid var(--line);padding:14px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#notices article strong{flex:1 1 220px}
#notices article p{font-size:13px;color:var(--muted);margin:0}
#notices article button{margin:0;min-height:38px;padding:7px 12px}
@media(max-width:600px){.admin-main{padding:20px 0 40px}.admin-shell{width:calc(100% - 28px)}.admin-panel{padding:17px 15px;border-radius:11px}.admin-title h1{font-size:26px}.admin-panel fieldset{padding:10px 12px}}

/* Save outcome stays beside the form actions, not above the entire admin page. */
.editor-help{font-size:14px;line-height:1.6;color:var(--muted);margin:-7px 0 14px}
#save_result:not([hidden]){display:block;clear:both;background:#f0f7f4;border:1px solid #9dc7b2;border-left:5px solid #24744f;border-radius:10px;padding:15px 17px;margin:14px 0 3px;line-height:1.6;outline-offset:3px}
#save_result strong{display:block;font-size:17px;color:#175b3c}
#save_result p{margin:6px 0;font-size:14px}
#save_result a{display:inline-block;font-size:14px;font-weight:700;margin:4px 0;text-decoration:underline;text-underline-offset:3px}

/* Notice list first, editor shown only when needed */
#editor_panel[hidden],#popup_dates[hidden]{display:none!important}
#notice_list_panel{scroll-margin-top:110px}#editor_panel{scroll-margin-top:105px}
#new_notice{background:var(--brand);border-color:var(--brand);color:#fff}
#notices article{gap:10px 12px}#notices article strong{min-width:0;overflow-wrap:anywhere}#notices article p{flex:1 1 100%;order:2;font-size:12px;color:var(--muted)}#notices article button{order:1}
@media(max-width:600px){.admin-toolbar{justify-content:space-between}.admin-panel h2{line-height:1.4}#notices article strong{flex-basis:100%}}
