:root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #1f2933;
    --muted: #667085;
    --line: #d9dee7;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

.topbar {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px;
}

.topbar__inner,
.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-weight: 700;
    color: var(--text);
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page {
    padding: 28px 0;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.metric {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.metric__label {
    color: var(--muted);
    font-size: 14px;
}

.metric__value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 6px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.button--light {
    background: #fff;
    color: var(--brand-dark);
}

.muted {
    color: var(--muted);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 14px;
}

.notice {
    border-left: 4px solid var(--brand);
    background: #ecfdf3;
    padding: 12px 14px;
    margin: 16px 0;
}

.error-code {
    color: var(--danger);
    font-weight: 700;
}

@media (max-width: 640px) {
    .topbar__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
