:root {
    color-scheme: light;
    font-family: Inter, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172d2a;
    background: #f2f4ef;
    --green: #154238;
    --ink: #172d2a;
    --muted: #536963;
    --line: #dbe4dd;
    --surface: #fff;
    --accent: #d9f68a;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #12584b; text-underline-offset: .2em; }
a:hover { color: #083a30; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #4c987e;
    outline-offset: 3px;
}

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 2; padding: .6rem; background: #fff; }
.skip:focus { top: .5rem; }
.topbar { background: #112e28; color: #fff; }
.topbar-inner {
    margin: 0 auto;
    max-width: 77rem;
    min-height: 4.4rem;
    padding: .75rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-weight: 750; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: .65rem;
    background: var(--accent);
    color: var(--ink);
    font-weight: 850;
}
.brand small { margin-left: .4rem; color: #c5d7ce; font-size: .83rem; font-weight: 500; }
.topbar nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.topbar nav a { color: #dceae0; text-decoration: none; font-size: .86rem; font-weight: 600; }
.topbar nav a:hover { text-decoration: underline; }
.topbar form { margin: 0; }
.text-button { background: transparent; border: 1px solid #63817a; color: #fff; font-size: .85rem; }
.text-button:hover { background: #2c4d45; }

.shell { max-width: 77rem; margin: 0 auto; padding: 2.75rem 1.75rem 4rem; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 760; letter-spacing: -.045em; }
h2 { font-size: 1.05rem; letter-spacing: -.015em; font-weight: 720; }
.muted { color: var(--muted); }
.intro p { margin-top: .45rem; }
.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; min-width: 0; }
.overview > :first-child { grid-column: 1 / -1; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.35rem; gap: .75rem; }
.panel-header a { font-size: .85rem; }
.count { font-size: .8rem; font-weight: 700; border-radius: 1rem; background: #edf3ec; color: #30594e; padding: .2rem .55rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-spacing: 0; text-align: left; font-size: .875rem; }
thead { background: #f8faf7; color: #436258; }
th, td { padding: .8rem 1.35rem; vertical-align: top; }
tbody tr + tr > * { border-top: 1px solid #edf1ed; }
tbody tr > * { overflow-wrap: anywhere; }
th { font-weight: 650; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .87em; font-weight: 600; }
.full-panel { margin-top: 1rem; }
.status { border-radius: 999px; display: inline-block; padding: .15rem .55rem; font-size: .78rem; font-weight: 680; background: #edf1ef; }
.status.pending { background: #fff0c7; color: #694d02; }
.status.success { background: #d9efe1; color: #20523b; }
.status.error { background: #f9e4e1; color: #872f2e; }

.form-panel { padding: 1.2rem 1.35rem 1.35rem; }
.form-panel h2 { margin-bottom: 1rem; }
.stack { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.stack label { font-size: .82rem; font-weight: 680; }
.stack label:not(:first-of-type) { margin-top: .3rem; }
.stack input:not([type="hidden"]), .stack select {
    color: var(--ink);
    background: #fcfdfa;
    border: 1px solid #aabfb5;
    border-radius: .55rem;
    min-height: 2.65rem;
    padding: .55rem .7rem;
    width: 100%;
}
.stack button { align-self: flex-start; margin-top: .65rem; }
.stack small, .stack .muted { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.domain-input { position: relative; }
.domain-input input { padding-right: .7rem; }
.domain-input span { display: block; font-size: .72rem; color: var(--muted); margin-top: .3rem; overflow-wrap: anywhere; }
button, .secondary-button {
    border: 1px solid transparent;
    border-radius: .55rem;
    cursor: pointer;
    font-weight: 650;
    padding: .55rem .85rem;
    min-height: 2.5rem;
}
button { color: #fff; background: var(--green); }
button:hover { background: #0d352c; }
button:disabled { opacity: .55; cursor: default; }
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-color: #aabfb5;
    background: #fff;
    color: #1c5145;
    text-decoration: none;
    font-size: .84rem;
}
.secondary-button:hover { background: #eaf2eb; }
.notice, .error-text { padding: .75rem .9rem; border-radius: .55rem; margin-bottom: 1rem; }
.notice { color: #1c5145; background: #e0f1e4; }
.error-text { color: #872f2e; background: #f9e4e1; }
summary { cursor: pointer; color: #12584b; white-space: nowrap; }
.download-form { min-width: 11rem; margin-top: .75rem; }
.login-card {
    max-width: 27rem;
    margin: 7vh auto 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 2rem;
}
.login-card h1 { margin-bottom: .55rem; }
.login-card p, .login-card .stack { margin-top: .8rem; }
.login-card .secondary-button { margin-top: 1.2rem; }

@media (max-width: 57rem) {
    .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
    .shell { padding: 1.6rem .9rem 2.75rem; }
    .topbar-inner { padding: .65rem .9rem; gap: .75rem; justify-content: space-between; flex-wrap: wrap; }
    .topbar nav { order: 3; flex-basis: 100%; margin-left: 0; }
    .intro { align-items: start; flex-direction: column; }
    .overview { grid-template-columns: minmax(0, 1fr); }
    th, td { padding: .75rem; }
    .login-card { padding: 1.35rem; }
}
