/* Lesson booking: one stylesheet for the booking page and the admin panel.
   --accent is set by the server from the host's saved colour. Light and dark themes via html[data-theme]. */
:root {
  --accent: #0069ff;
  --accent-d: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-t: color-mix(in srgb, var(--accent) 8%, transparent);
  --accent-t2: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-ink: var(--accent-d);
  --on-accent: #fff;
  --ink: #1a1a1a; --ink2: #4d5055; --mute: #6b6f76; --faint: #a3a6ad; --line: #e3e5e8; --bg: #f6f7f9; --card: #fff; --field: #fff; --field-line: #b2b6bc;
  --red: #c8362f; --red-t: #fdecec; --green: #1a7a4a; --green-t: #e8f6ee; --warn: #8a5a00; --warn-t: #fff4e0;
  --shadow: 0 1px 8px rgba(0, 0, 0, .08);
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); -webkit-text-size-adjust: 100%;
}
html[data-theme="dark"] {
  --accent-d: color-mix(in srgb, var(--accent) 70%, #fff);
  --accent-t: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-t2: color-mix(in srgb, var(--accent) 30%, transparent);
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #fff);
  --ink: #eceef1; --ink2: #c3c7ce; --mute: #9aa0a9; --faint: #5d626b; --line: #2d3139; --bg: #0f1115; --card: #181b21; --field: #12151a; --field-line: #3d424c;
  --red: #ff7b72; --red-t: #3a1d1d; --green: #5fd398; --green-t: #173326; --warn: #f5c26b; --warn-t: #33270f;
  --shadow: 0 1px 10px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); }
svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Shared controls */
.primary { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 40px; padding: 12px 24px; font-weight: 700; font-size: 15px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.primary:disabled { opacity: .5; cursor: default; }
.ghost { background: transparent; color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 40px; padding: 10px 20px;
  font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ghost:hover { background: var(--accent-t); }
.ghost:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; color: var(--accent-ink); font-weight: 600; min-height: 44px; padding: 0 6px; display: inline-flex; align-items: center; }
.link:disabled { color: var(--faint); cursor: default; }
.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.danger:hover { background: var(--red-t); }
.icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--ink2); display: inline-grid; place-items: center; padding: 0; }
.icon:hover { background: var(--accent-t); color: var(--accent-ink); }
input, select, textarea { background: var(--field); border: 1px solid var(--field-line); border-radius: 8px; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--mute); font-size: 13px; min-height: 44px; padding: 0 8px; }
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; }

/* Booking card */
.page { padding: 48px 24px 12px; display: flex; justify-content: center; align-items: flex-start; }
.card { position: relative; width: 100%; max-width: 1000px; min-height: 600px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); display: flex; transition: max-width .2s; }
.card.with-slots { max-width: 1060px; }
.info { width: 320px; flex: none; border-right: 1px solid var(--line); padding: 28px; position: relative; }
.back { position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--accent-ink); display: grid; place-items: center; }
.back:hover { background: var(--accent-t); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 26px;
  display: grid; place-items: center; margin: 56px 0 18px; }
.avatar.sm { width: 40px; height: 40px; font-size: 17px; margin: 0; flex: none; }
.host { margin: 0 0 4px; color: var(--mute); font-weight: 600; font-size: 16px; }
.event { margin: 0 0 22px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--ink2); font-weight: 600; }
.meta li { display: flex; gap: 10px; align-items: flex-start; }
.meta li svg { margin-top: 1px; color: var(--mute); }
.meta small { display: block; font-weight: 400; color: var(--mute); font-size: 14px; margin-top: 2px; }
.meta .teams-link { word-break: break-all; }
.meta .teams-link a { color: var(--accent-ink); font-weight: 500; }

.main { flex: 1; padding: 28px 32px 32px; min-width: 0; }
.title { margin: 6px 0 22px; font-size: 20px; font-weight: 700; }
.cal-wrap { display: flex; gap: 28px; }
.cal { flex: 1; max-width: 430px; margin: 0 auto; }
.with-slots .cal { margin: 0; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 18px; }
.month { font-size: 16px; min-width: 150px; text-align: center; }
.nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-t); color: var(--accent-ink); display: grid; place-items: center; }
.nav:disabled { background: none; color: var(--faint); cursor: default; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.dow span { font-size: 13px; color: var(--ink2); padding: 6px 0 10px; letter-spacing: .02em; }
.grid { row-gap: 6px; justify-items: center; }
.day { width: 46px; height: 46px; border-radius: 50%; border: 0; background: none; font-size: 15px; color: var(--faint); position: relative; padding: 0; }
.day.blank { visibility: hidden; }
.day.open { background: var(--accent-t); color: var(--accent-ink); font-weight: 700; }
.day.open:hover { background: var(--accent-t2); }
.day.sel, .day.sel:hover { background: var(--accent); color: var(--on-accent); }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.day:disabled { cursor: default; }
.tz-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink2); font-size: 14px; }
.tz-line svg { width: 16px; height: 16px; color: var(--mute); }
.tz-btn { margin-top: 22px; border: 0; background: none; padding: 8px 8px 8px 0; min-height: 44px; color: var(--ink2); }
.tz-btn:hover span { text-decoration: underline; }
.tz-btn .caret { width: 16px; height: 16px; }

.slots { width: 220px; flex: none; }
.slots-day { margin: 8px 0 4px; font-size: 16px; font-weight: 600; }
.slots .tz-line { display: none; }
.slot-list { margin-top: 18px; display: grid; gap: 10px; max-height: 470px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.slot { height: 52px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: var(--card); color: var(--accent-ink); font-weight: 700; font-size: 15px; width: 100%; }
.slot:hover { border: 2px solid var(--accent); }
.slot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slot.chosen { background: var(--mute); border-color: var(--mute); color: var(--card); display: grid; place-items: center; }
.slot.next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.empty { color: var(--mute); }

/* Details */
.form { max-width: 460px; display: grid; }
.form label { font-weight: 700; margin: 0 0 8px; }
.form input, .form textarea { padding: 12px 14px; font-size: 16px; margin-bottom: 20px; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-t2); }
.form [aria-invalid="true"] { border-color: var(--red); margin-bottom: 6px; }
.err { color: var(--red); margin: 0 0 16px; font-size: 14px; }
.req { color: var(--red); }
.fine { color: var(--mute); font-size: 14px; margin: 0 0 20px; }
.form .primary { justify-self: start; }
.form-err { background: var(--red-t); color: var(--red); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: 15px; }
.form-err a { color: inherit; font-weight: 700; }

/* Confirmation */
.card.done .info { display: none; }
.card.done .main { display: flex; justify-content: center; padding-top: 48px; }
.confirm { text-align: center; max-width: 520px; width: 100%; }
.tick { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; }
.tick svg { width: 28px; height: 28px; }
.confirm h2 { font-size: 22px; margin: 14px 0 6px; }
.lead { margin: 0 0 24px; color: var(--ink2); }
.summary { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.sum-title { font-weight: 700; font-size: 18px; margin: 0 0 16px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 0; }

/* Footer (student view) */
.foot { display: flex; justify-content: center; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 8px 16px 20px; color: var(--mute); font-size: 13px; }

/* Time zone picker */
.tz-pop { position: absolute; inset: 0; z-index: 20; min-height: 100vh; }
.tz-panel { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  max-height: 420px; display: flex; flex-direction: column; overflow: hidden; }
.tz-top { display: flex; gap: 6px; padding: 12px 12px 6px; }
.tz-top input { flex: 1; padding: 10px 12px; min-height: 44px; font-size: 16px; }
.tz-x { width: 44px; height: 44px; border: 0; background: none; font-size: 26px; color: var(--ink2); display: none; }
.tz-fmt { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 8px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 6px 14px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.tz-list { overflow-y: auto; padding: 0 0 8px; }
.tz-group { margin: 10px 14px 4px; font-size: 13px; font-weight: 700; color: var(--mute); letter-spacing: .03em; }
.tz-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 11px 14px; min-height: 44px; font-size: 15px; }
@media (hover: hover) { .tz-row:hover { background: var(--accent-t); } }
.tz-row.cur { background: var(--accent); color: var(--on-accent); }
.tz-now { color: inherit; opacity: .75; white-space: nowrap; }
.tz-none { padding: 14px; color: var(--mute); }

@media (max-width: 760px) {
  body.booking { background: var(--card); }
  .page { padding: 0; }
  .card { flex-direction: column; border: 0; border-radius: 0; box-shadow: none; min-height: 0; }
  .info { width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 20px 18px; text-align: center; }
  .back { left: 12px; top: 14px; }
  .avatar { width: 52px; height: 52px; font-size: 22px; margin: 4px auto 10px; }
  .event { font-size: 22px; margin-bottom: 14px; }
  .meta { gap: 10px; justify-items: center; }
  .meta li { text-align: left; }
  .meta small { display: none; }
  .summary .meta { justify-items: stretch; }
  .summary .meta small { display: block; }
  .main { padding: 20px 16px 28px; }
  .title { text-align: center; font-size: 18px; margin: 4px 0 16px; }
  .cal-wrap { display: block; }
  .cal { max-width: none; }
  .cal-head { gap: 10px; }
  .day { width: 44px; height: 44px; }
  body[data-step="day"] .cal, body[data-step="day"] .title { display: none; }
  .slots { width: auto; }
  .slots-day { text-align: center; font-weight: 700; margin-top: 0; }
  .slots .tz-line { display: flex; justify-content: center; }
  .slot-list { max-height: none; overflow: visible; }
  .form { max-width: none; }
  .form .primary { justify-self: stretch; }
  .card.done .main { padding-top: 28px; }
  .summary { padding: 18px; }
  .tz-panel { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; max-height: 80vh; border-radius: 14px 14px 0 0; position: fixed; }
  .tz-pop { position: fixed; background: rgba(0, 0, 0, .35); }
  .tz-x { display: block; }
}

/* ---------- Admin panel ---------- */
body.admin { background: var(--bg); }
.login { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 30px 26px; text-align: center; }
.login-card .avatar { margin: 0 auto 14px; }
.login-card h1 { font-size: 22px; margin: 0 0 4px; }
.login-card p { color: var(--mute); margin: 0 0 20px; }
.pin { width: 100%; text-align: center; font-size: 28px; letter-spacing: .4em; padding: 10px 0 10px .4em; min-height: 56px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.pin:focus { border-color: var(--accent); outline: 2px solid var(--accent-t2); }
.login-card .primary { width: 100%; }
#login-err.login-err { color: var(--red); min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }

.adm-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.adm-bar { max-width: 960px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.adm-who { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.adm-name { margin: 0; font-weight: 700; font-size: 17px; }
.adm-sub { margin: 0; color: var(--mute); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.adm-sub svg { width: 14px; height: 14px; }
.adm-actions { display: flex; align-items: center; gap: 4px; }
.tabs { max-width: 960px; margin: 0 auto; padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 0 12px; min-height: 46px; font-weight: 600; color: var(--mute); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.pane { display: grid; gap: 18px; }
.adm { max-width: 960px; width: 100%; margin: 0 auto; padding: 20px 16px 48px; display: grid; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; }
.panel-head { margin-bottom: 16px; }
.panel-head p { margin: 0; color: var(--mute); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row input { flex: 1 1 260px; min-height: 44px; padding: 0 12px; }

/* Lessons */
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lesson:first-child { border-top: 0; }
.l-when { font-weight: 700; }
.l-who { color: var(--ink2); font-size: 14px; }
.l-acts { grid-row: span 2; display: flex; gap: 6px; align-items: center; }
.lesson.cancelled .l-when { text-decoration: line-through; color: var(--mute); font-weight: 600; }
.lesson.past .l-when { color: var(--ink2); font-weight: 600; }
.confirm-row { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--red-t); border-radius: 8px; padding: 8px 10px; }
.confirm-row span { color: var(--red); font-weight: 600; flex: 1 1 180px; }
.sub-h { font-size: 14px; color: var(--mute); margin: 18px 0 4px; font-weight: 700; }
.none { color: var(--mute); padding: 8px 0; list-style: none; }
.al { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.al label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.al input, .al select { min-height: 44px; padding: 0 10px; font-size: 15px; }
.msg { margin: 10px 0 0; font-size: 14px; min-height: 1em; }
.msg.ok { color: var(--green); } .msg.bad { color: var(--red); }

/* Weekly hours */
.wk-row { display: grid; grid-template-columns: 140px 1fr 44px; gap: 8px 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.wk-row:first-child { border-top: 0; }
.wk-day { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.wk-day:not(.on) { color: var(--mute); }
.wk-ranges { display: grid; gap: 8px; }
.wk-range { display: flex; align-items: center; gap: 8px; }
.wk-range select { min-height: 44px; padding: 0 8px; }
.wk-off { margin: 0; min-height: 44px; display: flex; align-items: center; color: var(--mute); }
.to { color: var(--mute); }

/* Block dates */
.blk { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 24px; }
.bgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; touch-action: none; }
.blk .dow { margin-top: 4px; }
.bd { width: 44px; height: 44px; border-radius: 10px; border: 0; background: none; color: var(--faint); font-size: 15px; position: relative; user-select: none; }
.bd.blank { visibility: hidden; }
.bd.works { color: var(--ink); background: var(--accent-t); font-weight: 600; }
.bd.off { background: repeating-linear-gradient(135deg, var(--red-t), var(--red-t) 5px, transparent 5px, transparent 9px); color: var(--red); text-decoration: line-through; }
.bd.sel { outline: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); text-decoration: none; }
.bd.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.bd:disabled { cursor: default; opacity: .6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mute); font-size: 13px; margin: 12px 0 0; align-items: center; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.lg.works { background: var(--accent-t2); } .lg.off { background: var(--red-t); border: 1px solid var(--red); } .lg.sel { background: var(--accent); }
.blk-count { font-weight: 600; margin: 0 0 10px; }
.blk-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.blk-list { list-style: none; margin: 0; padding: 0; }
.blk-list li { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); min-height: 44px; }
.blk-list li:first-child { border-top: 0; }
.blk h3 { font-size: 14px; color: var(--mute); margin: 0 0 4px; }

/* Settings */
.radio { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.radio input { width: 20px; height: 20px; accent-color: var(--accent); }
.example { background: var(--accent-t); border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; font-size: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.sw-custom { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.sw-custom input { position: absolute; inset: -8px; width: 60px; height: 60px; opacity: 0; cursor: pointer; border: 0; }
.sw-custom[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.seg-row { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.seg-row button { border: 0; background: var(--card); min-height: 44px; padding: 0 16px; font-weight: 600; color: var(--ink2); }
.seg-row button + button { border-left: 1px solid var(--line); }
.seg-row button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.set-h { font-size: 15px; margin: 18px 0 8px; }
.set-h:first-of-type { margin-top: 0; }
.hint { color: var(--mute); font-size: 14px; margin: 8px 0 0; }
#feed { width: 100%; min-height: 44px; padding: 0 12px; }

/* Outbox */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--ink2); }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mail { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.mail.hl { box-shadow: 0 0 0 3px var(--accent-t2); }
.mail-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; font-size: 14px; }
.mail-subj { font-weight: 700; margin: 0 0 4px; }
.mail-to { margin: 0; font-size: 14px; color: var(--ink2); }
.st { font-weight: 600; }
.st.scheduled { color: var(--accent-ink); } .st.simulated { color: var(--green); } .st.cancelled { color: var(--mute); } .st.logged { color: var(--mute); }
.mail .body { white-space: pre-wrap; word-break: break-word; font: 14px/1.5 inherit; font-family: inherit; background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; }
.mail details summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.mail .note { font-size: 13px; color: var(--mute); margin: 8px 0 0; }
.reset { text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 30px;
  font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .adm-bar { padding: 8px 12px; }
  .adm-name { font-size: 16px; }
  .adm-view { display: none; }
  .wk-row { grid-template-columns: 1fr 44px; }
  .wk-day { grid-column: 1 / -1; }
  .wk-ranges { grid-column: 1; }
  .blk { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .adm-actions .theme-btn span { display: none; }
  .adm-actions .theme-btn svg { width: 20px; height: 20px; }
  .adm-sub { font-size: 12px; white-space: nowrap; }
  .gmt { display: none; }
}
