/* ---------------------------------------------------------------
   Theming. <html> carries data-theme (the colour) and data-mode
   (auto | light | dark). Each theme supplies two accents; every other
   token is mixed from whichever one is active, so surfaces pick up a
   wash of the colour without any per-theme hand-tuning.
   ----------------------------------------------------------------*/

:root {
  --accent-l: #6d4aff;
  --accent-d: #a68bff;
  --radius: 12px;
}

[data-theme="red"]    { --accent-l: #c0392b; --accent-d: #ff8a80; }
[data-theme="orange"] { --accent-l: #b25a00; --accent-d: #ffab5e; }
[data-theme="yellow"] { --accent-l: #8a6d00; --accent-d: #ecc94b; }
[data-theme="green"]  { --accent-l: #1f7a4d; --accent-d: #5fd39a; }
[data-theme="teal"]   { --accent-l: #0f7b8a; --accent-d: #4fd1e0; }
[data-theme="blue"]   { --accent-l: #1e5fd0; --accent-d: #7fb0ff; }
[data-theme="purple"] { --accent-l: #6d4aff; --accent-d: #a68bff; }
[data-theme="pink"]   { --accent-l: #c2185b; --accent-d: #ff92b8; }
[data-theme="brown"]  { --accent-l: #7a5230; --accent-d: #d3a878; }
[data-theme="slate"]  { --accent-l: #44546a; --accent-d: #a3b1c6; }

/* light */
:root {
  --accent: var(--accent-l);
  --text: #1e222c;
  --muted: #6a7080;
  --bg:      color-mix(in srgb, var(--accent) 6%,  #f5f5f8);
  --surface: color-mix(in srgb, var(--accent) 3%,  #ffffff);
  --border:  color-mix(in srgb, var(--accent) 15%, #e2e0e8);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #ffffff);
  --on-accent: #ffffff;
  --on-bad: #ffffff;
  --good: #17794a; --good-soft: #e2f5ea;
  --warn: #8a5a00; --warn-soft: #fdf0d5;
  --bad:  #b3261e; --bad-soft:  #fdeceb;
  --shadow: 0 1px 2px rgba(20, 16, 40, .06), 0 8px 24px rgba(20, 16, 40, .05);
  color-scheme: light;
}

/* dark — applied when the device asks for it, unless light is forced */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --accent: var(--accent-d);
    --text: #e8e7ef;
    --muted: #9e9bac;
    --bg:      color-mix(in srgb, var(--accent) 8%,  #121116);
    --surface: color-mix(in srgb, var(--accent) 7%,  #1c1b23);
    --border:  color-mix(in srgb, var(--accent) 17%, #2e2c39);
    --accent-soft: color-mix(in srgb, var(--accent) 20%, #1c1b23);
    --on-accent: #15141a;
    --on-bad: #2a1210;
    --good: #6ee7a8; --good-soft: #16301f;
    --warn: #f0c675; --warn-soft: #33280f;
    --bad:  #ff9c93; --bad-soft:  #3a1c1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* dark — forced, whatever the device says */
:root[data-mode="dark"] {
  --accent: var(--accent-d);
  --text: #e8e7ef;
  --muted: #9e9bac;
  --bg:      color-mix(in srgb, var(--accent) 8%,  #121116);
  --surface: color-mix(in srgb, var(--accent) 7%,  #1c1b23);
  --border:  color-mix(in srgb, var(--accent) 17%, #2e2c39);
  --accent-soft: color-mix(in srgb, var(--accent) 20%, #1c1b23);
  --on-accent: #15141a;
  --on-bad: #2a1210;
  --good: #6ee7a8; --good-soft: #16301f;
  --warn: #f0c675; --warn-soft: #33280f;
  --bad:  #ff9c93; --bad-soft:  #3a1c1a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- top bar ---- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
  max-width: 1040px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem;
}
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 1rem;
}
.nav { display: flex; gap: .15rem; flex-wrap: wrap; margin-right: auto; }
.nav-link {
  padding: .35rem .7rem; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500;
}
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.signout { display: flex; align-items: center; gap: .6rem; }
.whoami { color: var(--muted); font-size: .85rem; }
.linkish {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: inherit; font-size: .85rem; text-decoration: underline; padding: 0;
}
.linkish:hover { color: var(--text); }

/* ---- layout ---- */
.main { max-width: 720px; margin: 0 auto; padding: 1.75rem 1rem 3rem; }
.main.wide { max-width: 1040px; }
.footer {
  max-width: 1040px; margin: 0 auto; padding: 0 1rem 2rem;
  color: var(--muted); font-size: .8rem;
}

h1 { font-size: 1.6rem; margin: 0 0 .3rem; letter-spacing: -.02em; }
.lede { color: var(--muted); margin: 0 0 1.5rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.card-title { font-size: 1.02rem; margin: 0 0 .9rem; letter-spacing: -.01em; }
.card-actions { margin-top: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---- forms ---- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.hint { color: var(--muted); font-size: .82rem; font-weight: 400; margin: .25rem 0 0; }
input[type=text], input[type=email], input[type=date], input[type=time],
input[type=number], select, textarea {
  width: 100%; padding: .6rem .7rem;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 1rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; }

button, .btn {
  display: inline-block; padding: .6rem 1.05rem;
  border: 1px solid transparent; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .btn:hover { filter: brightness(1.07); }
.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn-danger { background: var(--bad); color: var(--on-bad); }
.btn-small { padding: .35rem .7rem; font-size: .85rem; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ---- flashes ---- */
.flash {
  padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem;
  border: 1px solid transparent; font-size: .93rem;
}
.flash-info { background: var(--accent-soft); color: var(--accent); }
.flash-success { background: var(--good-soft); color: var(--good); }
.flash-error { background: var(--bad-soft); color: var(--bad); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }

/* ---- badges ---- */
.badge {
  display: inline-block; padding: .12rem .5rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-muted { background: var(--bg); color: var(--muted); }
.badge-neutral { background: var(--accent-soft); color: var(--accent); }

/* ---- lists & tables ---- */
.empty { color: var(--muted); font-style: italic; margin: .25rem 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li {
  padding: .8rem 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.list > li:first-child { padding-top: 0; }
.grow { flex: 1 1 200px; min-width: 0; }
.when { font-weight: 600; }
.sub { color: var(--muted); font-size: .86rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---- slot picker ---- */
.day { margin-bottom: 1.2rem; }
.day-head { font-weight: 600; margin-bottom: .5rem; font-size: .95rem; }
.slots { display: flex; flex-wrap: wrap; gap: .4rem; }
.slot {
  padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: .88rem;
  cursor: pointer; font-weight: 500;
}
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.hours-grid { display: grid; gap: .6rem; }
.hours-row {
  display: grid; grid-template-columns: 110px 1fr 1fr auto;
  gap: .5rem; align-items: center;
}
.hours-row .day-name { font-weight: 600; font-size: .9rem; }
@media (max-width: 560px) {
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row .day-name { grid-column: 1 / -1; }
}

.notice {
  background: var(--warn-soft); color: var(--warn);
  padding: .7rem .9rem; border-radius: 9px; font-size: .9rem; margin: .75rem 0;
}
.stat-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stat { flex: 1 1 120px; }
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .82rem; }

/* ---- sub-tabs inside a section ---- */
.subtabs {
  display: flex; gap: .25rem; margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.subtab {
  padding: .5rem .9rem; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--accent); border-bottom-color: var(--accent); }

.alert-strip { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.alert-strip a {
  background: var(--warn-soft); color: var(--warn); text-decoration: none;
  padding: .35rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.alert-strip a:hover { filter: brightness(.97); }

/* ---- month calendar ---- */
.booking-layout { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; }
.booking-cal { flex: 1 1 340px; min-width: 300px; }
.booking-times {
  flex: 1 1 260px; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}

.cal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.cal-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.cal-nav {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); font-size: .95rem;
}
.cal-nav:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.cal-nav-off { opacity: .3; pointer-events: none; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { margin-bottom: 4px; }
.cal-dow-cell {
  text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; padding: .2rem 0;
}
.cal-cell {
  aspect-ratio: 1 / 1; border-radius: 9px; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: .9rem; text-decoration: none; color: var(--muted);
  border: 1px solid transparent; background: var(--bg); min-height: 40px;
}
.cal-blank { background: none; }
.cal-num { font-weight: 600; line-height: 1.1; }
.cal-note { font-size: .6rem; line-height: 1; opacity: .85; text-align: center; }

a.cal-cell { cursor: pointer; }
a.cal-cell:hover { border-color: var(--accent); color: var(--accent); }
.cal-cell.is-open {
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.cal-cell.is-custom { background: var(--warn-soft); color: var(--warn); }
.cal-cell.is-closed { opacity: .45; }
.cal-cell { position: relative; }
.cal-cell.is-today .cal-num { font-weight: 800; }
.cal-cell.is-today::after {
  content: ''; position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}
.cal-cell.is-today.is-selected::after { background: var(--on-accent); box-shadow: none; }
.cal-cell.is-selected {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.cal-cell.is-selected .cal-note { opacity: .9; }

.cal-legend {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem;
  font-size: .78rem; color: var(--muted);
}
.cal-legend span { display: flex; align-items: center; gap: .35rem; }
.swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.swatch-open { background: var(--accent-soft); border: 1px solid var(--accent); }
.swatch-custom { background: var(--warn-soft); border: 1px solid var(--warn); }
.swatch-closed { background: var(--bg); border: 1px solid var(--border); }

.times-head { font-weight: 700; margin-bottom: .25rem; font-size: .98rem; }
.times-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; }
.times-list .slot { text-align: center; text-decoration: none; padding: .55rem; }
.times-empty { color: var(--muted); font-size: .9rem; padding: 1.5rem .5rem; text-align: center; }
.day-quick { margin-top: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---- range selection in a calendar ---- */
.cal-cell.in-range { background: var(--accent-soft); color: var(--accent); }
.swatch-sel { background: var(--accent); border: 1px solid var(--accent); }
.swatch-range { background: var(--accent-soft); border: 1px solid var(--accent); }
.range-pick {
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: 9px; padding: .6rem .75rem; margin-bottom: 1rem;
  font-size: .88rem; color: var(--muted);
}

/* ---- per-day "not teaching" toggle ---- */
.hours-row { align-items: center; }
.hours-row.is-off input[type=time] { opacity: .4; }
.toggle {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 500; font-size: .85rem; color: var(--muted);
  margin: 0; white-space: nowrap; cursor: pointer;
}
.toggle input { width: auto; margin: 0; accent-color: var(--accent); }
.hours-row.is-off .toggle { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row .day-name { grid-column: 1 / -1; }
  .toggle { grid-column: 1 / -1; }
}

/* ---- a saved period lit up on the calendar ---- */
.cal-cell.is-highlight {
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent); font-weight: 700;
}
/* time buttons in the reschedule picker are <button>, keep them looking like slots */
button.slot { width: 100%; font-weight: 500; }
button.slot:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---- custom hours: periods listed beside the calendar ---- */
.custom-layout { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.custom-side { flex: 0 1 260px; min-width: 230px; }
.custom-cal { flex: 1 1 320px; min-width: 290px; }

.periods { list-style: none; margin: 0 0 .9rem; padding: 0; }
.periods .period {
  position: relative; border-radius: 10px; padding: .6rem .7rem; margin-bottom: .3rem;
  border: 1px solid transparent;
}
.periods .period:hover { background: var(--bg); }
.periods .period.is-shown {
  background: var(--accent-soft); border-color: var(--accent);
}
.period-link { display: block; text-decoration: none; color: inherit; }
.period-name { display: block; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.period-dates { display: block; color: var(--muted); font-size: .84rem; margin-top: .1rem; }
.period-kind { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.period.is-shown .period-name { color: var(--accent); }
.period-remove { position: absolute; top: .55rem; right: .6rem; opacity: 0; transition: opacity .12s; }
.period:hover .period-remove, .period.is-shown .period-remove { opacity: 1; }
.period-remove .linkish { font-size: .76rem; }
.add-btn { display: block; text-align: center; }

.add-period .field { margin-bottom: .75rem; }
.add-period .row { gap: .5rem; }
.add-period .card-actions { margin-top: .9rem; }

/* ---- per-weekday rules inside a custom period ---- */
.period-days { display: grid; gap: .35rem; margin-bottom: .6rem; }
.period-day {
  display: grid; grid-template-columns: 46px 1fr 1fr 58px;
  gap: .4rem; align-items: center;
  padding: .25rem .35rem; border-radius: 8px;
}
.period-day:hover { background: var(--bg); }
.period-day .pd-name { font-weight: 700; font-size: .88rem; }
.period-day input[type=time] { padding: .5rem .55rem; font-size: .95rem; }
.period-day.is-off { opacity: .72; }
.period-day.is-off input[type=time] { opacity: .35; }
.period-day .pd-off { font-size: .8rem; gap: .3rem; justify-content: flex-end; }
.period-day.is-off .pd-name { color: var(--muted); }

/* while a period is being added, give the form room to breathe */
.custom-layout.is-adding .custom-side { flex: 1 1 430px; min-width: 320px; }
.custom-layout.is-adding .custom-cal { flex: 0 1 330px; }
@media (max-width: 720px) {
  .custom-layout.is-adding .custom-side,
  .custom-layout.is-adding .custom-cal { flex: 1 1 100%; }
  .period-day { grid-template-columns: 44px 1fr 1fr 54px; }
}

/* ---- email log ---- */
.mail-item { padding: 1rem 1.1rem; }
.mail-head { display: flex; gap: 1rem; align-items: flex-start; }
.mail-body {
  margin: .8rem 0 0; padding: .8rem .9rem;
  background: var(--bg); border-radius: 9px; border: 1px solid var(--border);
  font: inherit; font-size: .88rem; white-space: pre-wrap; word-break: break-word;
}
.maillink { font-weight: 600; }

/* ---- approvals sitting under a student's name ---- */
.approval-head {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--border);
}
.student-link {
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  color: var(--text); letter-spacing: -.01em;
}
.student-link:hover { color: var(--accent); }
.approval {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  padding: .8rem 0; border-bottom: 1px solid var(--border);
}
.approval:last-child { border-bottom: 0; padding-bottom: 0; }
.approval-body { flex: 1 1 220px; min-width: 0; }
.approval-kind {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: .15rem;
}
.decide-form { display: flex; flex-direction: column; gap: .4rem; flex: 0 1 260px; }
.decide-form input[type=text] { font-size: .85rem; padding: .45rem .55rem; }

/* ---- appearance picker ---- */
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .25rem; }
.swatch-opt { position: relative; }
.swatch-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.swatch-opt span {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sw); cursor: pointer;
  border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border) inset;
  font-size: .9rem; color: #fff;
}
.swatch-opt input:checked + span {
  border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset;
}
.swatch-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch-opt span::after { content: ''; }
.swatch-opt input:checked + span::after { content: '✓'; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

.mode-row { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 .4rem; }
.mode-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.mode-opt span {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .8rem; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-size: .88rem;
}
.mode-opt input:checked + span {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.mode-toggle {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; font-size: .95rem; padding: 0;
}
.mode-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ---- upcoming lessons grouped by month ---- */
.month-group { margin-bottom: 1.4rem; }
.month-group:last-child { margin-bottom: 0; }
.month-head {
  display: flex; align-items: baseline; gap: .6rem;
  padding-bottom: .35rem; margin-bottom: .2rem; border-bottom: 1px solid var(--border);
}
.month-head a {
  font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--text);
}
.month-head a:hover { color: var(--accent); }

/* ---- email log selection ---- */
.mail-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding: .6rem .9rem; margin-bottom: .8rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.mail-pick { display: flex; align-items: center; padding-top: .15rem; }
.mail-pick input { width: auto; margin: 0; accent-color: var(--accent); cursor: pointer; }
