/* Reusable components. Pages compose these; they rarely style anything new. ---- */

/* ------------------------------------------------------------------ icons ---- */
/* Duotone icons (Phosphor): line art in currentColor, a soft fill layer in --i2 at --i2-o.
   Plain icons keep one colour; the tone rules below give them a second one. */
.i { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; vertical-align: -3px; overflow: visible; }
.i--sm { width: 14px; height: 14px; }
.i--lg { width: 20px; height: 20px; }
.i--xl { width: 24px; height: 24px; }

/* Tone variables. data-tone comes from the icon's meaning (IconTones), tone-* from markup,
   card--* from the card an icon sits in, so a title chip always matches its card. */
.tone-violet,   [data-tone="violet"]   { --t-ink: var(--violet-ink);   --t-bg: var(--violet-bg);   --t-edge: var(--violet-edge);   --t-2: var(--violet-2); }
.tone-mint,     [data-tone="mint"]     { --t-ink: var(--mint-ink);     --t-bg: var(--mint-bg);     --t-edge: var(--mint-edge);     --t-2: var(--mint-2); }
.tone-lilac,    [data-tone="lilac"]    { --t-ink: var(--lilac-ink);    --t-bg: var(--lilac-bg);    --t-edge: var(--lilac-edge);    --t-2: var(--lilac-2); }
.tone-lavender, [data-tone="lavender"] { --t-ink: var(--lavender-ink); --t-bg: var(--lavender-bg); --t-edge: var(--lavender-edge); --t-2: var(--lavender-2); }
.tone-rose,     [data-tone="rose"]     { --t-ink: var(--rose-ink);     --t-bg: var(--rose-bg);     --t-edge: var(--rose-edge);     --t-2: var(--rose-2); }
.tone-peach,    [data-tone="peach"]    { --t-ink: var(--peach-ink);    --t-bg: var(--peach-bg);    --t-edge: var(--peach-edge);    --t-2: var(--peach-2); }
.tone-sky,      [data-tone="sky"]      { --t-ink: var(--sky-ink);      --t-bg: var(--sky-bg);      --t-edge: var(--sky-edge);      --t-2: var(--sky-2); }
.tone-butter,   [data-tone="butter"]   { --t-ink: var(--butter-ink);   --t-bg: var(--butter-bg);   --t-edge: var(--butter-edge);   --t-2: var(--butter-2); }
.card--violet   .card__title > .i { --t-bg: var(--surface); --t-ink: var(--violet-ink);   --t-edge: var(--violet-edge);   --t-2: var(--violet-2); }
.card--mint     .card__title > .i { --t-bg: var(--surface); --t-ink: var(--mint-ink);     --t-edge: var(--mint-edge);     --t-2: var(--mint-2); }
.card--lilac    .card__title > .i { --t-bg: var(--surface); --t-ink: var(--lilac-ink);    --t-edge: var(--lilac-edge);    --t-2: var(--lilac-2); }
.card--lavender .card__title > .i { --t-bg: var(--surface); --t-ink: var(--lavender-ink); --t-edge: var(--lavender-edge); --t-2: var(--lavender-2); }
.card--rose     .card__title > .i { --t-bg: var(--surface); --t-ink: var(--rose-ink);     --t-edge: var(--rose-edge);     --t-2: var(--rose-2); }
.card--peach    .card__title > .i { --t-bg: var(--surface); --t-ink: var(--peach-ink);    --t-edge: var(--peach-edge);    --t-2: var(--peach-2); }
.card--sky      .card__title > .i { --t-bg: var(--surface); --t-ink: var(--sky-ink);      --t-edge: var(--sky-edge);      --t-2: var(--sky-2); }
.card--butter   .card__title > .i { --t-bg: var(--surface); --t-ink: var(--butter-ink);   --t-edge: var(--butter-edge);   --t-2: var(--butter-2); }
/* Coloured duotone wherever a tone applies. */
.tone-violet, .tone-mint, .tone-lilac, .tone-lavender, .tone-rose, .tone-peach, .tone-sky, .tone-butter { color: var(--t-ink); --i2: var(--t-2); --i2-o: .5; }

/* ------------------------------------------------------------------ cards ---- */
/* Every card: a fill, one thin dark hairline, a soft shadow. Pastel variants change
   only the fill and the icon ink, so a page reads as distinct objects at a glance. */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--s-5);
    min-width: 0;
}
.card--flush { padding: 0; overflow: hidden; }
.card--tight { padding: var(--s-4); }
.card--violet   { background: var(--violet-bg); }
.card--mint     { background: var(--mint-bg); }
.card--lilac    { background: var(--lilac-bg); }
.card--lavender { background: var(--lavender-bg); }
.card--rose     { background: var(--rose-bg); }
.card--peach    { background: var(--peach-bg); }
.card--sky      { background: var(--sky-bg); }
.card--butter   { background: var(--butter-bg); }
.card--link { display: block; color: inherit; transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease); }
.card--link:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
/* A whole card that is one submit button (suggested practice sets). */
.card-button { all: unset; box-sizing: border-box; display: flex; gap: var(--s-3); align-items: center; width: 100%; cursor: pointer; }
.card-button:focus-visible { box-shadow: var(--shadow-focus); border-radius: var(--r-sm); }
.card-button__title { display: block; }

.card__head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-4);
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--line-soft);
}
.card--flush > .card__head { margin: 0; }
.card__title { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base); }
/* Card titles lead with a small tinted chip holding a two-colour icon. */
.card__title > .i {
    box-sizing: border-box; width: 26px; height: 26px; flex: 0 0 26px; padding: 5px; border-radius: 8px;
    color: var(--t-ink, var(--violet-ink)); background: var(--t-bg, var(--violet-bg));
    box-shadow: inset 0 0 0 1px var(--t-edge, var(--violet-edge)), 0 1px 2px rgba(27, 24, 52, .06);
    --i2: var(--t-2, var(--violet-2)); --i2-o: .55;
}
.card__sub { font-size: var(--fs-xs); color: var(--ink-3); }
.card__body { padding: var(--s-5); }
.card__foot { margin: var(--s-4) calc(var(--s-5) * -1) calc(var(--s-5) * -1); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line-soft); background: rgba(255, 255, 255, .5); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* A square icon tile, tinted to the card it heads. */
.tile-icon {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.tile-icon .i { width: 20px; height: 20px; }
.tile-icon[class*="tone-"] { background: var(--t-bg); border-color: var(--t-edge); }


/* ------------------------------------------------------------------ stats ---- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.stat__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: var(--fs-md); font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.stat__hint { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------------------------------------------------------------- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 34px; padding: 0 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font: 600 var(--fs-sm) / 1 var(--font-ui);
    cursor: pointer; white-space: nowrap; text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .05s;
}
.btn:hover { background: var(--sunken); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn--primary {
    border-color: transparent; color: #fff;
    background: linear-gradient(180deg, #7b5cff 0%, #6542f5 100%);
    box-shadow: 0 1px 2px rgba(80, 50, 220, .3), 0 4px 12px rgba(109, 74, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover { color: #fff; background: linear-gradient(180deg, #6d4bff 0%, #5733ec 100%); }
.btn--soft { background: var(--violet-bg); border-color: var(--violet-edge); color: var(--violet-ink); box-shadow: none; }
.btn--soft:hover { background: #e9e2ff; color: var(--violet-ink); }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn--ghost:hover { background: var(--sunken); }
.btn--danger { color: var(--rose-ink); border-color: var(--rose-edge); background: var(--surface); }
.btn--danger:hover { background: var(--rose-bg); color: var(--rose-ink); }
.btn--success { color: var(--mint-ink); border-color: var(--mint-edge); background: var(--mint-bg); box-shadow: none; }
.btn--sm { height: 28px; padding: 0 10px; font-size: var(--fs-xs); border-radius: 7px; }
.btn--lg { height: 42px; padding: 0 20px; font-size: var(--fs-base); border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn--icon { width: 34px; padding: 0; }
.btn--icon.btn--sm { width: 28px; }

/* ---------------------------------------------------------- pills, badges ---- */
.pill {
    display: inline-flex; align-items: center; gap: 5px;
    height: 22px; padding: 0 9px;
    border-radius: var(--r-full);
    font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap;
    background: var(--sunken); color: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--line-soft);
}
.pill .i { width: 13px; height: 13px; }
.pill--violet { background: var(--violet-bg); color: var(--violet-ink); box-shadow: inset 0 0 0 1px var(--violet-edge); }
.pill--mint { background: var(--mint-bg); color: var(--mint-ink); box-shadow: inset 0 0 0 1px var(--mint-edge); }
.pill--lilac { background: var(--lilac-bg); color: var(--lilac-ink); box-shadow: inset 0 0 0 1px var(--lilac-edge); }
.pill--lavender { background: var(--lavender-bg); color: var(--lavender-ink); box-shadow: inset 0 0 0 1px var(--lavender-edge); }
.pill--rose { background: var(--rose-bg); color: var(--rose-ink); box-shadow: inset 0 0 0 1px var(--rose-edge); }
.pill--peach { background: var(--peach-bg); color: var(--peach-ink); box-shadow: inset 0 0 0 1px var(--peach-edge); }
.pill--sky { background: var(--sky-bg); color: var(--sky-ink); box-shadow: inset 0 0 0 1px var(--sky-edge); }
.pill--butter { background: var(--butter-bg); color: var(--butter-ink); box-shadow: inset 0 0 0 1px var(--butter-edge); }
.pill--solid { background: var(--ink); color: #fff; box-shadow: none; }

/* Mastery band: always a dot AND a label. */
.band { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-full); font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap; }
.band::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.band--strong { background: var(--mint-bg); color: var(--mint-ink); box-shadow: inset 0 0 0 1px var(--mint-edge); }
.band--ontrack { background: var(--sky-bg); color: var(--sky-ink); box-shadow: inset 0 0 0 1px var(--sky-edge); }
.band--attention { background: var(--peach-bg); color: var(--peach-ink); box-shadow: inset 0 0 0 1px var(--peach-edge); }
.band--intervention { background: var(--rose-bg); color: var(--rose-ink); box-shadow: inset 0 0 0 1px var(--rose-edge); }
.band--unknown { background: var(--sunken); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-soft); }

.paper-chip { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .02em; }
.paper-chip--CS { background: var(--violet-bg); color: var(--violet-ink); box-shadow: inset 0 0 0 1px var(--violet-edge); }
.paper-chip--DA { background: var(--mint-bg); color: var(--mint-ink); box-shadow: inset 0 0 0 1px var(--mint-edge); }
.paper-chip--GA { background: var(--butter-bg); color: var(--butter-ink); box-shadow: inset 0 0 0 1px var(--butter-edge); }
.paper-chip--ALL { background: var(--lavender-bg); color: var(--lavender-ink); box-shadow: inset 0 0 0 1px var(--lavender-edge); }

/* ----------------------------------------------------------------- avatar ---- */
.avatar {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
    display: grid; place-items: center;
    font: 700 var(--fs-xs) / 1 var(--font-display);
    box-shadow: inset 0 0 0 1px rgba(27, 24, 52, .08);
}
.avatar--lg { width: 44px; height: 44px; flex-basis: 44px; font-size: var(--fs-base); }
.avatar--violet { background: var(--violet-bg); color: var(--violet-ink); }
.avatar--mint { background: var(--mint-bg); color: var(--mint-ink); }
.avatar--lilac { background: var(--lilac-bg); color: var(--lilac-ink); }
.avatar--rose { background: var(--rose-bg); color: var(--rose-ink); }
.avatar--peach { background: var(--peach-bg); color: var(--peach-ink); }
.avatar--sky { background: var(--sky-bg); color: var(--sky-ink); }

/* --------------------------------------------------------------- progress ---- */
.bar { position: relative; height: 7px; border-radius: var(--r-full); background: rgba(27, 24, 52, .07); overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); transition: width .4s var(--ease); }
.bar--mint > span { background: #2fb37b; }
.bar--rose > span { background: #e2547f; }
.bar--peach > span { background: #ec8a45; }
.bar--sky > span { background: #3a8ee0; }
.bar--lilac > span { background: #b061e6; }
.bar--thin { height: 5px; }
.bar--thick { height: 10px; }

.meter { display: flex; align-items: center; gap: var(--s-3); }
.meter .bar { flex: 1; }
.meter__val { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }

/* Ring: a percentage at a glance. --p is 0..100. */
.ring {
    --p: 0; --c: var(--accent);
    width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(27, 24, 52, .08) 0);
    display: grid; place-items: center;
}
.ring::before { content: ""; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); grid-area: 1 / 1; box-shadow: inset 0 0 0 1px var(--line-soft); }
.ring > span { grid-area: 1 / 1; z-index: 1; font: 800 var(--fs-sm) / 1 var(--font-display); font-variant-numeric: tabular-nums; }
.ring--lg { width: 88px; height: 88px; }
.ring--lg::before { width: 70px; height: 70px; }
.ring--lg > span { font-size: var(--fs-lg); }

/* ------------------------------------------------------------------ lists ---- */
.list { display: flex; flex-direction: column; }
.list__row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.list__row:first-child { border-top: 0; padding-top: 0; }
.list__row:last-child { padding-bottom: 0; }
.list__title { font-weight: 600; color: var(--ink); }
.list__meta { font-size: var(--fs-xs); color: var(--ink-3); }
a.list__row { color: inherit; }
a.list__row:hover .list__title { color: var(--accent-ink); }

/* Rows inside a flush card get their own side padding. */
.card--flush .list__row { padding: var(--s-3) var(--s-5); }
.card--flush .list__row:first-child { border-top: 0; }

/* ------------------------------------------------------------------ table ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
    text-align: left; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink-3); padding: 10px var(--s-4); background: var(--surface-2); border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td { padding: 11px var(--s-4); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfaff; }
.table .num, .table th.num { text-align: right; }

/* ------------------------------------------------------------------- tabs ---- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-soft); flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.tab .pill { height: 18px; padding: 0 6px; }

/* ------------------------------------------------------------------ forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field__error { font-size: var(--fs-xs); color: var(--rose-ink); font-weight: 500; }

.input, .select, .textarea {
    width: 100%; height: 38px; padding: 0 12px;
    font: 500 var(--fs-base) / 1.2 var(--font-ui); color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-xs);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.select { padding-right: 32px; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7896' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(27, 24, 52, .4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input--sm, .select--sm { height: 32px; font-size: var(--fs-sm); }

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Big selectable cards (onboarding, paper choice). */
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body {
    display: flex; gap: var(--s-3); align-items: flex-start;
    padding: var(--s-4); border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.choice:hover .choice__body { border-color: rgba(27, 24, 52, .4); }
.choice input:checked + .choice__body { border-color: var(--accent); background: var(--violet-bg); box-shadow: 0 0 0 3px rgba(109, 74, 255, .15); }
.choice input:focus-visible + .choice__body { box-shadow: var(--shadow-focus); }
.choice__title { font-weight: 700; font-family: var(--font-display); }
.choice__text { font-size: var(--fs-sm); color: var(--ink-3); }

/* Segmented rating: New · Seen · Comfortable · Strong. */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sunken); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-soft); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 5px 10px; border-radius: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); cursor: pointer; }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; font: 600 var(--fs-xs) / 1.2 var(--font-ui); color: var(--ink-3); cursor: pointer; }
.seg button.is-on { background: var(--surface); color: var(--violet-ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--violet-edge); }
.seg input:checked + span { background: var(--surface); color: var(--violet-ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--violet-edge); }
.seg input:focus-visible + span { box-shadow: var(--shadow-focus); }

/* ----------------------------------------------------------------- alerts ---- */
.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); font-size: var(--fs-sm); background: var(--surface); }
.alert .i { margin-top: 1px; }
.alert--info { background: var(--sky-bg); border-color: var(--sky-edge); color: var(--sky-ink); }
.alert--ok { background: var(--mint-bg); border-color: var(--mint-edge); color: var(--mint-ink); }
.alert--warn { background: var(--peach-bg); border-color: var(--peach-edge); color: var(--peach-ink); }
.alert--error { background: var(--rose-bg); border-color: var(--rose-edge); color: var(--rose-ink); }
.alert b { color: inherit; }

/* Flash messages slide in at the top of the content column. */
.flash { margin-bottom: var(--s-4); animation: flash-in .25s var(--ease); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ empty state ---- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-10) var(--s-6); }
.empty .tile-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; margin-bottom: var(--s-2); }
.empty__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.empty__text { color: var(--ink-3); font-size: var(--fs-sm); max-width: 46ch; }

/* --------------------------------------------------------------- dropdown ---- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 50;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 6px;
}
.menu__item { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font: 500 var(--fs-sm) var(--font-ui); background: none; border: 0; cursor: pointer; text-align: left; }
.menu__item:hover { background: var(--sunken); color: var(--ink); }
.menu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }

.badge-dot { position: relative; }
.badge-dot > b { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full); background: #e2547f; color: #fff; font-size: 9.5px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }

/* ----------------------------------------------------------- definition kv ---- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-4); font-size: var(--fs-sm); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }

.divider { height: 1px; background: var(--line-soft); margin: var(--s-4) 0; }
.section-label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: var(--s-6) 0 var(--s-3); display: flex; align-items: center; gap: var(--s-2); }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* Password field with a show / hide eye (wired in site.js). */
.pw { position: relative; display: block; }
.pw .input { padding-right: 40px; }
.pw__toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 28px; display: grid; place-items: center;
    border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink-3); cursor: pointer;
}
.pw__toggle:hover { background: var(--sunken); color: var(--ink); }
.pw__toggle:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.pw__toggle .i { width: 17px; height: 17px; }
.pw__hide { display: none; }
.pw.is-shown .pw__show { display: none; }
.pw.is-shown .pw__hide { display: inline; }
