@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/poppins-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/poppins-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/poppins-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/poppins-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/poppins-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/poppins-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/poppins-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/poppins-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/be-vietnam-pro-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/be-vietnam-pro-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/be-vietnam-pro-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/**
 * Design tokens: an iOS-style grouped palette with orange as the one accent, in the style of the
 * Claude Account Manager app.
 *
 * - `--accent` fills buttons, rings and bars; `--accent-text` is the darker orange for text on light
 *   surfaces (5.2:1 on white), since the fill orange alone is too light for small text.
 * - Cards are "lux" panels: a top highlight, a hairline ring, a close shadow and a wide soft one.
 * - Poppins first; Be Vietnam Pro fills in the Vietnamese letters Poppins lacks (ạ, ơ, ư, ễ…).
 */
:root {
    --font: 'Poppins', 'Be Vietnam Pro', system-ui, 'Segoe UI', -apple-system, sans-serif;
    --radius: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --gap: 16px;

    --bg: #f2f2f7;
    --bg-image:
        radial-gradient(120% 62% at 50% -12%, rgb(234 88 12 / 7%), transparent 62%),
        linear-gradient(180deg, #f7f8fb 0%, #eeeff4 100%);
    --surface: #ffffff;
    --surface-2: #f2f2f7;
    --surface-glass: rgb(255 255 255 / 78%);
    --card-bg: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    --border: #e5e5ea;
    --hairline: rgb(28 28 30 / 7%);
    --text: #1c1c1e;
    --text-muted: #6e6e73;
    --text-dim: #98989f;

    --accent: #ea580c;
    --accent-text: #c2410c;
    --accent-soft: rgb(234 88 12 / 10%);
    --accent-contrast: #ffffff;
    --accent-fill: linear-gradient(180deg, #fb8b45 0%, #ec6416 52%, #d9520a 100%);
    --accent-glow: 0 6px 16px -6px rgb(217 82 10 / 55%);

    --warn-bg: #fff4e5;
    --warn-border: #ffd8a8;
    --warn-text: #8a4b00;
    --danger-bg: #fff1f0;
    --danger-border: #ffc9c5;
    --danger-text: #b42318;
    --success-bg: #eaf8ee;
    --success-border: #b7e4c4;
    --success-text: #1a7f37;

    --shadow-card:
        inset 0 1px 0 rgb(255 255 255 / 90%), 0 0 0 1px rgb(28 28 30 / 5.5%),
        0 1px 2px rgb(28 28 30 / 4%), 0 14px 30px -14px rgb(28 28 30 / 14%);
    --shadow-seg: 0 1px 3px rgb(28 28 30 / 12%), 0 0 0 0.5px rgb(28 28 30 / 4%);
    --shadow-btn-primary:
        inset 0 1px 0 rgb(255 255 255 / 32%), 0 1px 2px rgb(160 60 0 / 28%),
        0 6px 14px -6px rgb(217 82 10 / 55%);
    --shadow-btn-ghost:
        inset 0 1px 0 #ffffff, 0 0 0 1px rgb(28 28 30 / 9%), 0 1px 2px rgb(28 28 30 / 5%);
    --shadow-btn-ghost-hover:
        inset 0 1px 0 #ffffff, 0 0 0 1px rgb(234 88 12 / 35%), 0 2px 8px -2px rgb(234 88 12 / 22%);
    --ghost-fill: linear-gradient(180deg, #ffffff 0%, #f3f4f8 100%);
    --ghost-fill-active: linear-gradient(180deg, #eef0f4 0%, #e8eaef 100%);
    --seg-track: rgb(118 118 128 / 12%);
    --scrollbar: rgb(28 28 30 / 18%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d0d0f;
        --bg-image:
            radial-gradient(120% 62% at 50% -12%, rgb(255 138 61 / 9%), transparent 62%),
            linear-gradient(180deg, #121215 0%, #0b0b0d 100%);
        --surface: #1c1c1e;
        --surface-2: #2c2c2e;
        --surface-glass: rgb(28 28 30 / 78%);
        --card-bg: linear-gradient(180deg, #1f1f22 0%, #1a1a1c 100%);
        --border: #38383a;
        --hairline: rgb(255 255 255 / 8%);
        --text: #f2f2f7;
        --text-muted: #a1a1a6;
        --text-dim: #7c7c82;

        --accent: #ff8a3d;
        --accent-text: #ff9f5a;
        --accent-soft: rgb(255 138 61 / 16%);
        --accent-contrast: #ffffff;
        --accent-fill: linear-gradient(180deg, #ff9a52 0%, #f0701f 52%, #dc5c0e 100%);
        --accent-glow: 0 6px 16px -6px rgb(240 112 31 / 45%);

        --warn-bg: #33240f;
        --warn-border: #6b4a17;
        --warn-text: #ffcc80;
        --danger-bg: #3a1714;
        --danger-border: #74302a;
        --danger-text: #ffaaa2;
        --success-bg: #12301c;
        --success-border: #255e39;
        --success-text: #8fe0aa;

        --shadow-card:
            inset 0 1px 0 rgb(255 255 255 / 5%), 0 0 0 1px rgb(255 255 255 / 7%),
            0 1px 2px rgb(0 0 0 / 30%), 0 14px 30px -14px rgb(0 0 0 / 60%);
        --shadow-seg: 0 1px 3px rgb(0 0 0 / 40%);
        --shadow-btn-primary:
            inset 0 1px 0 rgb(255 255 255 / 22%), 0 1px 2px rgb(0 0 0 / 40%),
            0 6px 14px -6px rgb(240 112 31 / 45%);
        --shadow-btn-ghost:
            inset 0 1px 0 rgb(255 255 255 / 6%), 0 0 0 1px rgb(255 255 255 / 10%),
            0 1px 2px rgb(0 0 0 / 30%);
        --shadow-btn-ghost-hover:
            inset 0 1px 0 rgb(255 255 255 / 6%), 0 0 0 1px rgb(255 138 61 / 45%),
            0 2px 8px -2px rgb(255 138 61 / 25%);
        --ghost-fill: linear-gradient(180deg, #2c2c2f 0%, #242427 100%);
        --ghost-fill-active: linear-gradient(180deg, #222225 0%, #1e1e21 100%);
        --seg-track: rgb(118 118 128 / 24%);
        --scrollbar: rgb(255 255 255 / 20%);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
#app {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/**
 * The page sits on a faint gradient with an orange glow at the top, so white cards have something
 * to lift off (a flat grey would leave them as plain rectangles).
 */
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
    background-color: var(--bg);
    background-image: var(--bg-image);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-soft);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/**
 * Lux panel: a highlight on the top edge, a hairline ring, a close shadow and a wide soft one.
 * One `box-shadow` list does all four, which is what makes a card read as an object.
 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

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

/** Small uppercase section label followed by a short line fading to the right. */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-title::after {
    content: '';
    width: 40px;
    height: 1px;
    flex: none;
    background: linear-gradient(90deg, var(--hairline), transparent);
}

/**
 * Buttons with material: a slight vertical gradient, a highlight on the top edge and a ring with
 * a shadow. Pressing darkens them and pulls the shadow in, so a press reads as a push.
 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

/** Square icon-only button; the name goes in `aria-label` and `title`. */
.btn--icon {
    width: 40px;
    padding: 0;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

.btn--primary {
    background: var(--accent-fill);
    color: var(--accent-contrast);
    font-weight: 600;
    box-shadow: var(--shadow-btn-primary);
}

.btn--primary:hover:not(:disabled) {
    filter: brightness(1.05);
}

.btn--primary:active:not(:disabled) {
    filter: brightness(0.95);
    box-shadow: inset 0 1px 2px rgb(120 40 0 / 32%);
}

.btn--ghost {
    background: var(--ghost-fill);
    color: var(--accent-text);
    box-shadow: var(--shadow-btn-ghost);
}

.btn--ghost:hover:not(:disabled) {
    box-shadow: var(--shadow-btn-ghost-hover);
}

.btn--ghost:active:not(:disabled) {
    background: var(--ghost-fill-active);
}

.field {
    display: grid;
    gap: 6px;
}

/** Field name with its icon in front: the icon is what the eye finds, the word confirms it. */
.field__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.field__label svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--accent-text);
}

.input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow:
        inset 0 1px 2px rgb(28 28 30 / 6%),
        0 0 0 1px var(--border);
    transition: box-shadow 0.15s ease;
}

.input:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 1px var(--accent),
        0 0 0 4px var(--accent-soft);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/** iOS segmented control: a tinted track with the pressed option raised on it. */
.segmented {
    display: inline-flex;
    flex-wrap: wrap;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    padding: 2px;
    border-radius: 9px;
    background: var(--seg-track);
}

.segmented button {
    min-height: 32px;
    padding: 0 14px;
    white-space: nowrap;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.segmented button[aria-pressed='true'] {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-seg);
}

.segmented button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

@media (max-width: 480px) {
    .segmented button {
        padding: 0 10px;
        font-size: 14px;
    }
}

/**
 * iOS switch on a real checkbox (`role="switch"`), so keyboard and screen readers work unchanged:
 * the input is invisible over the track, the knob slides when it is checked.
 */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.switch input {
    position: absolute;
    inset: 0;
    width: 51px;
    height: 31px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.switch__track {
    position: relative;
    width: 51px;
    height: 31px;
    flex: none;
    border-radius: 999px;
    background: var(--seg-track);
    transition: background 0.2s ease;
}

.switch__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 3px 8px rgb(0 0 0 / 15%),
        0 1px 1px rgb(0 0 0 / 16%);
    transition: transform 0.2s ease;
}

.switch input:checked + .switch__track {
    background: var(--accent);
}

.switch input:checked + .switch__track::after {
    transform: translateX(20px);
}

.switch input:focus-visible + .switch__track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.switch input:disabled + .switch__track {
    opacity: 0.5;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface-2);
    color: var(--text-muted);
    white-space: nowrap;
}

.badge--accent {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.badge--warn {
    background: var(--warn-bg);
    color: var(--warn-text);
}

.badge--success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge--muted {
    background: var(--surface-2);
    color: var(--text-muted);
}

.badge--danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border: 3px solid transparent;
    border-radius: 6px;
    background-clip: content-box;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/**
 * Page styles of the lookbook on top of the house tokens.css and base.css (orange design system).
 *
 * - base.css is written for an app shell that scrolls inside <main>; this is a document that scrolls itself, so the
 *   page height and overflow are reset here.
 * - Mobile first: 16px side gutter, one column; looks go two/three columns from 600/960px.
 */
html,
body {
    height: auto;
    overflow: visible;
}

body {
    min-height: 100vh;
}

a {
    color: var(--accent-text);
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 var(--hairline);
}

.header__inner,
.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.brand strong {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header__actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.page {
    display: grid;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
}

.intro {
    display: flex;
    align-items: center;
    gap: 16px;
}

.intro img {
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.intro h1 {
    font-size: 22px;
    letter-spacing: -0.022em;
}

.intro p {
    margin-top: 4px;
    color: var(--text-muted);
}

.looks {
    display: grid;
    gap: 16px;
}

@media (min-width: 600px) {
    .looks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .looks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.look-card {
    display: grid;
    overflow: hidden;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.look-card:hover {
    transform: translateY(-2px);
}

.look-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.look-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
    background: var(--surface-2);
}

.look-card__body {
    display: grid;
    gap: 8px;
    padding: 14px 16px 16px;
}

.look-card__caption {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--accent-text);
}

.photos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 380px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scrollbar-width: thin;
}

.photos img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: var(--radius);
    scroll-snap-align: center;
    background: var(--surface-2);
    box-shadow: var(--shadow-card);
}

.look-head {
    display: grid;
    gap: 10px;
}

.look-head .btn {
    justify-self: start;
}

.look-head h1 {
    font-size: 21px;
    letter-spacing: -0.02em;
}

.items {
    display: grid;
    gap: 12px;
}

@media (min-width: 820px) {
    .items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.item img {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--surface-2);
}

.item__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.item__name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.item__shop {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item .btn {
    justify-self: start;
    margin-top: 6px;
    min-height: 44px;
}

.back {
    justify-self: start;
}

.footer {
    padding: 8px 16px 32px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-dim);
}
