:root {
    --pitch: #1e4d3b;
    --pitch-dark: #153828;
    --chalk: #f5f6f2;
    --paper: #ffffff;
    --ink: #17211c;
    --muted: #5d6b63;
    --line: #d5dad0;
    --whistle: #f2c230;
    --danger: #a3261f;
    --danger-bg: #fbeceb;
    --radius: 6px;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --pitch: #4f9a79;
        --pitch-dark: #6bb593;
        --chalk: #121815;
        --paper: #1a221e;
        --ink: #e9eee9;
        --muted: #9aa8a0;
        --line: #33403a;
        --danger: #f2a39d;
        --danger-bg: #3a1f1d;
    }
}
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
body { margin: 0; background: var(--chalk); color: var(--ink); min-height: 100vh; }

.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1.25rem; background: var(--pitch-dark); color: #fff;
    border-bottom: 4px solid var(--whistle);
}
.brand { font-weight: 700; letter-spacing: .01em; }
.langs { display: flex; gap: .25rem; }
.langs a {
    color: #fff; text-decoration: none; padding: .15rem .5rem;
    border-radius: var(--radius); font-size: .875rem; opacity: .8;
}
.langs a[aria-current="true"] { background: rgba(255,255,255,.18); opacity: 1; font-weight: 600; }
.langs a:hover { opacity: 1; }

.card {
    max-width: 34rem; margin: 2rem auto; padding: 1.75rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (max-width: 36rem) { .card { margin: 0; border-radius: 0; border-left: 0; border-right: 0; } }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
.muted { color: var(--muted); margin: 0 0 1.25rem; }

.steps { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps li { flex: 1; height: .35rem; background: var(--line); border-radius: 2px; }
.steps li.done { background: var(--pitch); }
.steps li[aria-current="step"] { background: var(--whistle); }

label, legend { display: block; font-weight: 600; margin: 1rem 0 .25rem; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
    width: 100%; padding: .6rem .7rem; font: inherit; color: inherit;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid var(--whistle); outline-offset: 1px;
}
.hint { color: var(--muted); font-size: .875rem; margin: .25rem 0 0; }
.error { color: var(--danger); font-size: .875rem; margin: .25rem 0 0; }
.alert { background: var(--danger-bg); color: var(--danger); padding: .7rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; }

.choice {
    display: flex; align-items: center; gap: .75rem; margin: .5rem 0; padding: .7rem .9rem;
    border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--pitch); background: color-mix(in srgb, var(--pitch) 10%, var(--paper)); }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--pitch); }

.actions { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: .75rem; margin-top: 1.75rem; }
.btn {
    font: inherit; font-weight: 600; padding: .6rem 1.3rem; border-radius: var(--radius);
    border: 1px solid var(--pitch); background: var(--pitch); color: #fff; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--pitch-dark); }
.btn.ghost { background: transparent; color: var(--pitch); }
.btn.ghost:hover { background: color-mix(in srgb, var(--pitch) 10%, transparent); }
.footnote { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

.done-actions { margin: 1.5rem 0 0; }
h2 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; }
.logout button {
    font: inherit; font-size: .875rem; color: #fff; background: transparent; cursor: pointer;
    border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); padding: .25rem .75rem;
}
.logout button:hover { background: rgba(255,255,255,.15); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; color: var(--muted); font-size: .875rem; }

.step-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.step-logo { width: min(17rem, 100%); height: auto; }
@media (min-width: 36rem) { .step-logo { max-width: 55%; } }

.cancel-row { margin-top: 1.25rem; }
.linkbtn {
    background: none; border: 0; padding: 0; font: inherit; font-size: .9rem;
    color: var(--muted); text-decoration: underline; cursor: pointer;
}
.linkbtn:hover { color: var(--ink); }

.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-lg { display: block; width: 8rem; height: 8rem; margin: .75rem 0; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--pitch); color: #fff; font-weight: 700; }
.dash-head { display: flex; align-items: center; gap: 1rem; }
.dash-head .muted { margin-bottom: 0; }
input[type=file] { width: 100%; font: inherit; }
