:root {
    color-scheme: light;
    --ink: #17211c;
    --muted: #66756c;
    --line: #d9e3dc;
    --brand: #176b4b;
    --soft: #f4f8f5;
    --panel: #ffffff;
    --danger: #a33a2d;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #fbfdfb; color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar div { display: flex; align-items: center; gap: 10px; }
.topbar span { color: var(--muted); font-size: 13px; }
.topbar nav { display: flex; gap: 12px; flex-wrap: wrap; }
.shell { width: min(1120px, 100%); margin: 0 auto; padding: 24px 16px 48px; }
.hero { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: 0; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.login-box { max-width: 520px; margin: 36px auto; }
.notice { border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; line-height: 1.4; }
.notice.ok { background: #eaf7ef; border: 1px solid #b8e2c8; }
.notice.error { background: #fff0ee; border: 1px solid #efbbb2; color: var(--danger); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: inherit; }
input:focus { outline: 3px solid rgba(23, 107, 75, .16); border-color: var(--brand); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 0; border-radius: 6px; padding: 10px 14px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.button.secondary { background: #eef5f0; color: var(--ink); border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-height: 82px; }
.metric strong { display: block; font-size: 24px; margin-bottom: 4px; }
.metric span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 11px 12px; vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #edf5ef; color: #245c43; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.closed, .badge.expired, .badge.cancelled { background: #f3eeee; color: #7a332a; }
.detail-list { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px 14px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.timeline { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.progress { height: 9px; background: #e7efe9; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); }
@media (max-width: 760px) {
    .topbar, .hero { align-items: flex-start; flex-direction: column; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-list, .timeline-item { grid-template-columns: 1fr; }
}
