:root {
    --brand-900: #0b3b36;
    --brand-700: #0d524c;
    --brand-600: #0f6b62;
    --brand-100: #e6f3f1;
    --accent: #d9a441;
    --text: #102826;
    --muted: #5c6f6c;
    --surface: #ffffff;
    --border: #cfe0dc;
    --danger: #b42318;
    --ok: #067647;
    --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, #f4faf8 0%, #eef5f3 40%, #f8fbfa 100%);
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    background: var(--brand-900);
    color: #fff;
    padding: 0.75rem 1rem;
}
.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.brand { font-size: 20px; font-weight: 700; color: #fff; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 14px; }
.nav a { color: #d7ece8; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(11, 59, 54, 0.06);
}
.card + .card { margin-top: 1rem; }
.card__title { font-size: 28px; line-height: 1.25; margin: 0 0 0.75rem; color: var(--brand-900); }
.card__subtitle { font-size: 13px; color: var(--muted); margin: 0 0 1rem; }
.section-foot { font-size: 13px; color: var(--muted); margin-top: 0.75rem; border-top: 1px dashed var(--border); padding-top: 0.5rem; }

.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 15px;
    cursor: pointer;
    background: var(--brand-600);
    color: #fff;
}
.btn--ghost { background: transparent; border: 1px solid var(--brand-600); color: var(--brand-600); }
.btn--accent { background: var(--accent); color: #1a1a1a; }

.input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
}
.form-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-row .input { flex: 1 1 240px; }

.quota-muted {
    margin: 0 0 1rem;
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}
.quota-bar {
    background: var(--brand-100);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
    margin-bottom: 1rem;
}
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
}
.alert--warn { background: #fff7e6; border: 1px solid #f5d08a; }
.alert--dismissible { position: relative; padding-right: 2.25rem; }
.alert-dismiss {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.alert--info { background: #eef7ff; border: 1px solid #b6d7ff; }
.alert--error { background: #fef3f2; border: 1px solid #fecdca; color: var(--danger); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }

.report-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) {
    .report-layout { grid-template-columns: 1fr; }
}
.report-nav {
    position: sticky;
    top: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
}
.report-nav a { display: block; padding: 0.35rem 0.5rem; font-size: 14px; border-radius: 6px; }
.report-nav a:hover { background: var(--brand-100); text-decoration: none; }
@media (max-width: 900px) {
    .report-nav { display: flex; overflow-x: auto; gap: 0.35rem; position: static; }
    .report-nav a { white-space: nowrap; flex: 0 0 auto; }
}

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--border); padding: 0.5rem; text-align: left; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.35rem; }
.status-dot--ok { background: var(--ok); }
.status-dot--bad { background: var(--danger); }
.status-dot--unk { background: #98a2b3; }
.empty { color: var(--muted); font-style: normal; }
.site-footer { text-align: center; font-size: 13px; color: var(--muted); padding: 2rem 1rem; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.admin-nav a { background: var(--brand-100); padding: 0.35rem 0.65rem; border-radius: 999px; font-size: 13px; }
