@charset "UTF-8";
:root { --forest:#164e3d; --forest-dark:#103b2f; --leaf:#e9f1eb; --gold:#bd9343; --gold-soft:#f9f1dc; --ink:#1d3029; --muted:#65756d; --line:#dce4de; --paper:#fff; --canvas:#f5f7f3; --danger:#a73a35; --danger-soft:#fcefed; --radius:16px; font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; font-size:14px; color:var(--ink); background:var(--canvas); }
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
a { color:var(--forest); text-underline-offset:3px; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.5; }
:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:28px; line-height:1.35; letter-spacing:-.6px; margin-bottom:9px; }
h2 { font-size:19px; line-height:1.45; margin-bottom:12px; }
h3 { font-size:15px; margin-bottom:8px; }
p { line-height:1.75; }
.muted { color:var(--muted); }
.small-text { font-size:12px; }
.eyebrow { font-size:11px; letter-spacing:2px; font-weight:700; color:var(--gold); margin-bottom:12px; }
.skip-link { position:fixed; left:12px; top:-80px; z-index:30; padding:12px; background:white; }
.skip-link:focus { top:12px; }
.brand-mark { display:grid; place-items:center; width:64px; height:64px; border:1px solid #d7bd7a; border-radius:22px 22px 22px 5px; color:#ecd498; background:#ffffff0c; font-family:serif; font-size:31px; }
.brand-mark.small { width:40px; height:40px; font-size:23px; border-radius:13px 13px 13px 3px; flex-shrink:0; }
.login-screen { min-height:100vh; display:grid; grid-template-columns:minmax(300px,1.1fr) minmax(370px,1fr); }
.login-story { position:relative; overflow:hidden; padding:clamp(40px,8vw,120px); display:flex; flex-direction:column; justify-content:center; background:var(--forest-dark); color:#edf5ef; }
.login-story::after { content:""; pointer-events:none; position:absolute; width:390px; height:390px; right:-230px; bottom:-130px; border:70px solid #c2a86712; border-radius:50%; }
.login-story .brand-mark { margin-bottom:50px; }
.login-story h1 { font-size:clamp(30px,3.8vw,54px); line-height:1.45; margin-bottom:22px; }
.login-story p:not(.eyebrow) { max-width:440px; color:#b7cec0; }
.subject-pills { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.subject-pills span { border:1px solid #ffffff30; color:#d8e8dd; padding:7px 18px; border-radius:40px; }
.login-panel { width:100%; max-width:520px; padding:64px 48px; align-self:center; justify-self:center; }
.login-panel h2 { font-size:28px; margin-bottom:14px; }
.login-panel form { margin-top:30px; }
.login-footnote { border-top:1px solid var(--line); margin-top:28px; padding-top:20px; color:var(--muted); font-size:12px; }
label { display:block; font-size:13px; font-weight:600; margin-bottom:18px; line-height:1.6; }
input,select,textarea { display:block; width:100%; padding:11px 12px; border:1px solid #cdd9d0; border-radius:9px; background:white; color:var(--ink); margin-top:7px; min-height:44px; }
textarea { resize:vertical; }
input:focus,select:focus,textarea:focus { border-color:var(--forest); }
.button { display:inline-flex; justify-content:center; align-items:center; gap:6px; min-height:40px; padding:9px 15px; border:1px solid transparent; border-radius:9px; background:none; color:var(--forest); font-weight:600; text-decoration:none; white-space:nowrap; }
.button.primary { background:var(--forest); color:white; border-color:var(--forest); }
.button.primary:hover:not(:disabled) { background:var(--forest-dark); }
.button.secondary { background:white; border-color:var(--line); }
.button.quiet:hover { background:var(--leaf); }
.button.danger { color:var(--danger); background:var(--danger-soft); border-color:#f3d4cf; }
.button.compact { font-size:12px; padding:6px 10px; min-height:34px; }
.button.full { width:100%; }
.form-message { min-height:22px; color:var(--danger); font-size:13px; margin:10px 0 16px; overflow-wrap:anywhere; }
.workspace { min-height:100vh; display:grid; grid-template-columns:226px minmax(0,1fr); }
.sidebar { background:var(--forest-dark); color:#b9cdbf; display:flex; flex-direction:column; position:sticky; height:100vh; top:0; padding:28px 16px 20px; overflow-y:auto; }
.brand { color:#f5f6e9; text-decoration:none; display:flex; align-items:center; gap:12px; font-size:20px; padding:0 12px 30px; font-weight:600; }
.brand-sub { display:block; font-size:11px; letter-spacing:1px; color:#a6c0ae; margin-top:3px; font-weight:400; }
.nav-group { font-size:10px; color:#7fa18d; letter-spacing:1.5px; margin:18px 16px 7px; }
.nav-link { display:flex; align-items:center; gap:12px; padding:11px 16px; border-radius:9px; text-decoration:none; color:#bdd1c3; margin:3px 0; font-size:13px; }
.nav-link:hover { background:#ffffff0a; color:white; }
.nav-link[aria-current="page"] { background:#ffffff12; color:#f1dba5; box-shadow:inset 3px 0 var(--gold); }
.nav-icon { display:inline-flex; width:20px; height:20px; justify-content:center; align-items:center; border:1px solid currentColor; border-radius:6px; font-size:10px; opacity:.8; }
.sidebar-footer { margin-top:auto; padding:28px 14px 0; font-size:11px; }
.sidebar-footer p { font-size:10px; margin:7px 0 0; color:#83a28f; }
.status-dot { width:6px; height:6px; background:#b9ce95; border-radius:50%; display:inline-block; margin-right:7px; }
.main-column { min-width:0; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:74px; padding:16px 36px; background:#ffffffba; border-bottom:1px solid var(--line); }
.topbar-caption { color:var(--muted); font-size:12px; }
.topbar-caption span { padding:0 12px; color:#aab7ad; }
.account { display:flex; align-items:center; gap:14px; font-size:12px; }
#admin-identity { max-width:260px; overflow-wrap:anywhere; }
.menu-toggle { display:none; }
main { padding:30px 36px 40px; max-width:1580px; margin:auto; }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:26px; }
.page-heading .eyebrow { margin-bottom:8px; }
.page-heading .muted { margin-bottom:0; font-size:13px; max-width:720px; }
.page-footer { padding:18px 36px; color:#839085; font-size:11px; border-top:1px solid var(--line); }
.grid { display:grid; gap:18px; }
.stats { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:22px; }
.stat { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.stat-label { color:var(--muted); font-size:12px; margin-bottom:13px; }
.stat-value { font-size:32px; font-weight:650; letter-spacing:-1px; }
.stat:first-child { background:var(--forest); color:white; border-color:var(--forest); }
.stat:first-child .stat-label { color:#c9ddd0; }
.card { background:white; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:20px; }
.card-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:21px 22px; border-bottom:1px solid var(--line); }
.card-header h2 { margin:0; }
.card-body { padding:22px; }
.note { border:1px solid #ecdfba; border-radius:12px; background:var(--gold-soft); padding:16px 19px; color:#766031; margin-bottom:20px; font-size:13px; line-height:1.8; }
.note.error { background:var(--danger-soft); color:var(--danger); border-color:#f1cec8; }
.empty { text-align:center; padding:50px 24px; color:var(--muted); }
.empty h2 { color:var(--ink); }
.empty .button { margin-top:12px; }
.loader { padding:42px; display:flex; align-items:center; justify-content:center; gap:12px; color:var(--muted); }
.loader::before { content:""; width:18px; height:18px; border:2px solid var(--line); border-top-color:var(--forest); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:18px; }
.toolbar label { margin:0; flex:1; min-width:160px; max-width:450px; }
.toolbar .button { min-height:44px; }
.table-wrap { width:100%; overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; }
th { font-size:11px; color:var(--muted); font-weight:600; background:#f8faf7; white-space:nowrap; }
th,td { padding:14px 18px; border-bottom:1px solid #edf0ec; vertical-align:top; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#fcfdfb; }
td { max-width:360px; overflow-wrap:anywhere; }
td .muted { display:block; font-size:11px; margin-top:4px; }
.code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; overflow-wrap:anywhere; }
.badge { display:inline-block; padding:3px 9px; border-radius:30px; font-size:11px; font-weight:500; white-space:nowrap; background:#edf0ec; color:var(--muted); }
.badge.good { color:#276248; background:#e6f1e9; }
.badge.gold { color:#846222; background:var(--gold-soft); }
.badge.bad { color:var(--danger); background:var(--danger-soft); }
.actions { display:flex; gap:7px; flex-wrap:wrap; align-items:center; }
.pager { display:flex; justify-content:flex-end; gap:12px; align-items:center; padding:15px 20px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.matrix { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:20px; }
.subject-card { border:1px solid var(--line); border-radius:12px; padding:20px; background:white; }
.subject-card h3 { font-size:15px; }
.subject-card p { font-size:12px; margin:10px 0 0; color:var(--muted); }
.subject-card .badge { margin-top:3px; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; }
.detail-pair { font-size:13px; overflow-wrap:anywhere; }
.detail-key { display:block; color:var(--muted); font-size:11px; margin-bottom:5px; }
pre { margin:8px 0; padding:12px; background:#f5f7f3; border-radius:8px; max-height:280px; overflow:auto; white-space:pre-wrap; word-break:break-word; font-size:11px; line-height:1.7; }
details summary { cursor:pointer; color:var(--forest); font-size:12px; padding:5px 0; }
.toast { position:fixed; bottom:24px; right:24px; z-index:40; padding:14px 20px; max-width:min(480px,calc(100vw - 32px)); background:var(--forest-dark); color:white; border-radius:12px; box-shadow:0 10px 40px #103b2f2b; overflow-wrap:anywhere; }
dialog { width:min(560px,calc(100vw - 28px)); max-height:calc(100dvh - 40px); padding:26px; border:1px solid var(--line); border-radius:18px; color:var(--ink); overflow:auto; box-shadow:0 20px 80px #132e2529; }
dialog::backdrop { background:#102c2566; }
.dialog-heading { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.dialog-heading h2 { margin-top:5px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:6px; }
.field-hint { display:block; color:var(--muted); font-weight:400; font-size:11px; margin-top:6px; }
.conversation { display:flex; flex-direction:column; gap:14px; }
.message { width:min(90%,720px); border:1px solid var(--line); background:var(--canvas); padding:15px 18px; border-radius:14px 14px 14px 3px; }
.message.from-admin { align-self:flex-end; background:var(--leaf); border-radius:14px 14px 3px 14px; }
.message p { margin-bottom:6px; }
.message-body { white-space:pre-wrap; overflow-wrap:anywhere; font-weight:400; }
.terms-text { max-height:440px; min-width:220px; font-family:inherit; font-size:12px; }
input[type="file"] { padding:9px; font-size:12px; }
.checkbox-field { padding:13px; border:1px solid var(--line); border-radius:9px; background:var(--canvas); }
.checkbox-field input[type="checkbox"] { display:inline-block; width:20px; height:20px; min-height:20px; margin:0 8px 0 0; vertical-align:middle; accent-color:var(--forest); }
.reconciliation-nav { display:flex; flex-wrap:wrap; gap:9px; padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid var(--line); }
.reconciliation-nav a[aria-current="page"] { background:var(--forest); color:white; border-color:var(--forest); }
.period-range { white-space:pre-line; font-variant-numeric:tabular-nums; }
.monitoring-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; padding:20px; }
.monitoring-metric { min-width:0; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--canvas); overflow-wrap:anywhere; }
.monitoring-metric.triggered { border-color:#edc4bd; background:var(--danger-soft); }
.monitoring-metric .metric-value { font-size:25px; font-weight:650; font-variant-numeric:tabular-nums; margin:10px 0; }
.monitoring-metric .metric-label { font-weight:600; margin-bottom:8px; }
.monitoring-metric p:last-child { margin-bottom:0; }
.monitoring-delivery { display:flex; flex-wrap:wrap; gap:9px 22px; padding:18px 22px; font-variant-numeric:tabular-nums; }
.monitoring-delivery span { overflow-wrap:anywhere; }
@media (max-width:760px) { .monitoring-metrics { padding:17px; grid-template-columns:1fr; } .monitoring-delivery { padding:17px; } }
input[type="password"] { letter-spacing:.05em; }
#dialog-fields .code { padding:10px 0; }
#action-form:has(textarea[name="text"]) { min-width:0; }
#download-status { padding:14px; border:1px solid var(--line); border-radius:9px; background:var(--canvas); }
.card-header>.actions { justify-content:flex-end; }
@media (max-width:760px) { .card-header { align-items:flex-start; flex-wrap:wrap; } .card-header>.actions { justify-content:flex-start; } .dialog-actions { flex-wrap:wrap; } }
@media (min-width:1500px) { .stats { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media (max-width:1100px) { .workspace { grid-template-columns:194px minmax(0,1fr); } main { padding:26px 22px; } .topbar { padding:16px 22px; } .matrix { grid-template-columns:repeat(2,minmax(0,1fr)); } .stats { gap:12px; } .stat { padding:18px; } }
@media (max-width:760px) { .login-screen { display:block; } .login-story { padding:28px; } .login-story .brand-mark { width:42px; height:42px; font-size:22px; margin-bottom:20px; } .login-story h1 { font-size:28px; } .login-story .subject-pills,.login-story p:not(.eyebrow) { display:none; } .login-panel { padding:30px 24px; max-width:500px; } .workspace { display:block; } .sidebar { display:none; position:fixed; left:0; top:66px; height:calc(100dvh - 66px); width:226px; z-index:20; box-shadow:10px 0 40px #103b2f33; } .sidebar.open { display:flex; } .sidebar .brand { display:none; } .menu-toggle { display:inline-flex; } .topbar { min-height:66px; padding:10px 16px; position:sticky; top:0; z-index:21; background:#fffffff5; } .topbar-caption { display:none; } .account { gap:5px; } #admin-identity { max-width:145px; font-size:11px; } main { padding:24px 16px; } .page-heading { gap:8px; } h1 { font-size:24px; } .page-heading>.button { font-size:12px; padding:8px 10px; } .stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .stat-value { font-size:27px; } .card-header,.card-body { padding:17px; } .page-footer { padding:18px 16px; } th,td { padding:12px 13px; } .detail-grid { grid-template-columns:1fr; } .matrix { gap:10px; } .subject-card { padding:15px; } .pager { flex-wrap:wrap; padding:13px; } dialog { padding:20px; } }
@media (max-height:520px) and (min-width:761px) { .sidebar { padding-top:18px; } .brand { padding-bottom:10px; } .nav-link { padding:8px 13px; } .sidebar-footer { display:none; } .login-story { padding:32px; } .login-panel { padding:28px 40px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; scroll-behavior:auto !important; } }
