:root {
    font-family: system-ui, sans-serif;
    color: #182427;
    background: #f2f5f4;
    color-scheme: light;
    line-height: 1.5;
    accent-color: #006052;
    --ink: #182427;
    --muted: #495b59;
    --line: #d5dfdc;
    --surface: #fff;
    --accent: #006052;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem max(1rem, calc((100% - 72rem) / 2 + 1.5rem));
    background: #142a29;
    color: #d4e9e5;
}
header a {
    color: #a6f4d1;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
}
header span { border-inline-start: 1px solid #567470; padding-inline-start: 1rem; font-size: .875rem; }
main { max-width: 72rem; margin: 2.5rem auto; padding: 0 1.5rem 3rem; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0 0 .65rem; font-size: clamp(1.8rem, 4vw, 2.55rem); letter-spacing: -.035em; }
h2 { margin: 0 0 1rem; font-size: 1.45rem; letter-spacing: -.025em; }
h3 { margin: 1.65rem 0 .6rem; font-size: 1.05rem; }
h4 { margin: 1rem 0 .55rem; font-size: .95rem; }
p { max-width: 70ch; margin: .6rem 0 1rem; }
a, summary { color: var(--accent); text-underline-offset: .22em; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: start; gap: .85rem 1rem; margin-bottom: 1.5rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-weight: 600; }
.panel, .narrow { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 3vw, 1.65rem); }
.panel + .panel { margin-top: 1.25rem; }
.narrow { max-width: 29rem; margin: clamp(1rem, 8vh, 5rem) auto 0; }
.narrow input { display: block; width: 100%; }
.narrow form > button, .narrow form > p:last-child button { width: 100%; }
.narrow form > p:last-child { margin-bottom: 0; }
form { margin: 1rem 0; }
label { display: block; font-size: .9rem; font-weight: 650; margin: .85rem 0 .35rem; }
.account-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 2rem; margin-bottom: 1.25rem; }
.account-tools form, .sign-out { margin: 0; min-width: 0; }
.account-tools label { margin-top: 0; }
.account-tools p { margin: .45rem 0 0; font-size: .875rem; }
.form-row { display: flex; gap: .5rem; }
input, button {
    font: inherit;
    min-height: 44px;
    border: 1px solid #788d87;
    border-radius: 8px;
    padding: .55rem .8rem;
}
input { width: 100%; min-width: 0; background: var(--surface); color: var(--ink); caret-color: var(--accent); }
button {
    cursor: pointer;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 650;
}
button:hover { background: #004c41; }
button:active { background: #00382f; }
button:disabled { opacity: .7; cursor: wait; }
.form-row button { flex-shrink: 0; }
.sign-out button, .account-tools form[method=get] button { background: var(--surface); color: var(--accent); border-color: #788d87; }
.sign-out button:hover, .account-tools form[method=get] button:hover { background: #e8f2ef; }
.danger { background: #a02538; border-color: #a02538; }
.danger:hover, .danger:active { background: #81182a; }
:focus-visible { outline: 3px solid #ad510b; outline-offset: 2px; }
header :focus-visible { outline-color: #f2b378; }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--surface); padding: .75rem; }
.skip:focus { top: .2rem; z-index: 1; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.scroll table { min-width: 36rem; }
table { border-collapse: collapse; width: 100%; font-size: .925rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: .7rem .8rem; color: var(--muted); font-size: .85rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eaf1ef; font-size: .83rem; }
td { overflow-wrap: anywhere; }
[aria-label="Accounts table"] td:nth-child(2) { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f5f9f7; }
td form { margin: 0; }
details { max-width: 24rem; min-width: 8.5rem; }
summary { cursor: pointer; min-height: 28px; font-weight: 600; }
details p { margin: .4rem 0; }
.status { display: inline-block; padding: .15rem .5rem; border-radius: 5px; font-size: .82rem; font-weight: 650; }
.verified { background: #e0f4e9; color: #145738; }
.awaiting { background: #fff0d3; color: #693f08; }
.blocked { background: #fae8eb; color: #831e33; }
.muted { color: var(--muted); }
.notice { padding: .8rem 1rem; background: #edf4f2; border: 1px solid var(--line); border-radius: 8px; }
.error { background: #fff1ef; color: #82222b; }
.success { background: #edf6ef; color: #245932; }
::selection { background: #bde9d9; color: #152b24; }
@media (max-width: 700px) {
    main { margin: 1.5rem auto; padding-inline: 1rem; }
    .account-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .dashboard-heading { flex-wrap: wrap; }
    .form-row { flex-wrap: wrap; }
}
