:root {
  --bg: var(--tg-theme-secondary-bg-color, #f1f2f6);
  --card: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #fff));
  --text: var(--tg-theme-text-color, #16181d);
  --hint: var(--tg-theme-hint-color, #8a8f9c);
  --accent: var(--tg-theme-button-color, #3a7bf2);
  --accent-text: var(--tg-theme-button-text-color, #fff);
  --red: var(--tg-theme-destructive-text-color, #e5484d);
  --green: #2fa36b;
  --orange: #e08a1e;
  --line: color-mix(in srgb, var(--hint) 22%, transparent);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not(.tg) {
    --bg: #101114; --card: #1b1d22; --text: #eceef2; --hint: #8b919e; --accent: #5b93f5;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
main { max-width: 560px; margin: 0 auto; padding: 12px 14px; }

/* header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 14px; }
.head h1 { font-size: 30px; margin: 0; font-weight: 700; letter-spacing: -.02em; }
.head .sub { color: var(--hint); font-size: 13px; }
.nav { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center;
  font-size: 18px; color: var(--accent);
}
.pill-btn { background: var(--card); color: var(--accent); border-radius: 18px; padding: 0 12px; height: 36px; font-size: 14px; font-weight: 500; }

/* day */
.day { margin-bottom: 14px; }
.day-title { display: flex; justify-content: space-between; font-size: 13px; color: var(--hint); text-transform: uppercase; letter-spacing: .03em; padding: 0 4px 6px; }
.day.today .day-title b { color: var(--accent); }
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.empty { padding: 12px 14px; color: var(--hint); font-size: 14px; }

.lesson { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; position: relative; }
.sw + .sw, .row + .row, .lesson + .lesson { border-top: 1px solid var(--line); }
.lesson .time { width: 44px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.lesson .time.none { color: var(--hint); font-weight: 400; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lesson .who { flex: 1; min-width: 0; }
.lesson .who b { font-weight: 600; }
.lesson .who small, .row small { display: block; color: var(--hint); font-size: 12.5px; }
.dur { font-size: 13px; color: var(--hint); font-variant-numeric: tabular-nums; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.badge.done { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.badge.missed { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.badge.cancelled { background: var(--line); color: var(--hint); }
.badge.debt { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.badge.ok { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.lesson.done .who b, .lesson.missed .who b { opacity: .75; }
.lesson.cancelled .who b, .lesson.cancelled .time { text-decoration: line-through; color: var(--hint); }

/* students / month */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; }
.row .grow { flex: 1; min-width: 0; }
.big { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.big small { font-weight: 400; text-align: right; }
.big.neg { color: var(--red); }
.big.pos { color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 10px 12px; }
.stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--hint); }
.section-title { font-size: 13px; color: var(--hint); text-transform: uppercase; letter-spacing: .03em; margin: 16px 4px 6px; }
.mrow .nums { display: flex; gap: 10px; font-size: 13px; color: var(--hint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.mrow .nums b { color: var(--text); font-weight: 600; }
.bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* tabs */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 5;
}
.tabs button { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; color: var(--hint); padding: 4px 0; }
.tabs button span { font-size: 20px; filter: grayscale(1) opacity(.6); }
.tabs button.on { color: var(--accent); font-weight: 600; }
.tabs button.on span { filter: none; }
.fab {
  position: fixed; right: max(16px, calc(50% - 264px)); bottom: calc(84px + env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-size: 28px; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); z-index: 4;
}

/* sheet */
#sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 10; animation: fade .2s; }
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; z-index: 11;
  background: var(--bg); border-radius: 18px 18px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; animation: up .22s ease-out;
}
#sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
#sheet h2 { margin: 0 0 2px; font-size: 19px; }
#sheet .sub { color: var(--hint); font-size: 14px; margin-bottom: 14px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.act { background: var(--card); border-radius: 12px; padding: 12px 10px; font-weight: 500; display: flex; align-items: center; gap: 8px; justify-content: center; }
.act.sel { outline: 2px solid var(--accent); }
.form { background: var(--card); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 46px; }
.field + .field { border-top: 1px solid var(--line); }
.field label { flex: none; width: 110px; color: var(--hint); font-size: 14px; }
.field input, .field select { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; outline: none; text-align: right; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 1; padding: 8px 0; }
.chip { padding: 5px 10px; border-radius: 14px; background: var(--bg); font-size: 13.5px; }
.chip.on { background: var(--accent); color: var(--accent-text); }
.primary { width: 100%; height: 48px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 16px; }
.danger { width: 100%; height: 44px; color: var(--red); margin-top: 6px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 1; padding: 10px 0; }
.colors button { width: 24px; height: 24px; border-radius: 50%; }
.colors button.on { outline: 2px solid var(--text); outline-offset: 2px; }

#toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 20px; font-size: 14px; z-index: 20;
}
.field.stack { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
.field.stack .chips { justify-content: flex-start; align-items: center; }
.act.wide { grid-column: 1 / -1; background: var(--accent); color: var(--accent-text); }
.badge.moved { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.slot { background: var(--card); border-radius: 12px; padding: 9px 6px; font-size: 12.5px; color: var(--hint); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.slot b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.slot.on { background: var(--accent); color: var(--accent-text); }
.slot.on b { color: var(--accent-text); }
.todo { background: var(--card); border-radius: var(--radius); margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); }
.todo summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; cursor: pointer; }
.todo summary::-webkit-details-marker { display: none; }
.todo summary span { color: var(--orange); font-weight: 600; font-size: 14px; }
.todo-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.todo-chip { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 16px; padding: 6px 10px; font-size: 14px; }
.todo-chip small { color: var(--hint); }
.todo-chip b { font-variant-numeric: tabular-nums; }

/* ---- week strip ---- */
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 10px; }
.ds { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 2px; border-radius: 12px; }
.ds small { font-size: 11px; color: var(--hint); text-transform: uppercase; }
.ds b { font-size: 18px; font-weight: 500; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.ds.today b { color: var(--red); font-weight: 700; }
.ds.sel b { background: var(--text); color: var(--bg); }
.ds.sel.today b { background: var(--red); color: #fff; }
.ds i { font-style: normal; font-size: 13px; line-height: 10px; color: var(--hint); letter-spacing: 1px; height: 10px; }
.ds i.late { color: var(--red); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: color-mix(in srgb, var(--hint) 16%, transparent); border-radius: 9px; padding: 2px; margin-bottom: 12px; }
.seg button { border-radius: 7px; padding: 6px 0; font-size: 13px; font-weight: 500; color: var(--text); }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---- unmarked lessons ---- */
.alert { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; margin-bottom: 12px;
  background: color-mix(in srgb, var(--red) 10%, var(--card)); border-radius: var(--radius); padding: 11px 14px; color: var(--red); }
.alert b { display: block; font-weight: 600; }
.alert small { display: block; color: var(--hint); font-size: 12.5px; }
.badge.overdue { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.lesson.is-overdue .dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 40%, transparent); }
.mark-day { color: var(--green); font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; margin-right: 10px; }
.day-title span { display: flex; align-items: center; }

/* ---- swipe ---- */
.sw { position: relative; overflow: hidden; }
.sw-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #fff; font-weight: 600; font-size: 14px; background: var(--green); }
.sw[data-dir="l"] .sw-bg { background: var(--accent); }
.sw[data-dir="r"] .sw-move, .sw[data-dir="l"] .sw-done { visibility: hidden; }
.sw:not(.ready) .sw-bg { filter: saturate(.55) opacity(.85); }
.sw-row { position: relative; background: var(--card); touch-action: pan-y; }
.time.none { color: var(--accent); font-weight: 500; font-size: 12px; white-space: nowrap; width: 56px; }

/* ---- day timeline ---- */
.day > .day-title, main > .day-title { padding-top: 2px; }
.tl { position: relative; background: var(--card); border-radius: var(--radius); margin-bottom: 6px; cursor: copy; }
.tl-h { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.tl-h span { position: absolute; left: 8px; top: -8px; font-size: 11px; color: var(--hint); background: var(--card); padding: 0 4px; font-variant-numeric: tabular-nums; }
.tl-h:first-child span { top: 2px; }
.tl-now { position: absolute; left: 40px; right: 0; border-top: 2px solid var(--red); z-index: 2; }
.tl-now::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tl-l { position: absolute; overflow: hidden; text-align: left; padding: 4px 8px; border-radius: 7px; font-size: 13px; line-height: 1.2;
  background: color-mix(in srgb, var(--c) 18%, var(--card)); border-left: 3px solid var(--c); cursor: pointer; z-index: 1; }
.tl-l b { display: block; font-weight: 600; color: color-mix(in srgb, var(--c) 55%, var(--text)); }
.tl-l small { display: block; color: var(--hint); font-size: 11.5px; }
.tl-l .badge { position: absolute; right: 4px; top: 4px; font-size: 10.5px; padding: 1px 6px; }
.tl-l.done, .tl-l.missed { opacity: .6; }
.tl-l.is-overdue { border-left-color: var(--red); }
.hint { text-align: center; color: var(--hint); font-size: 12px; margin: 4px 0 10px; }

/* ---- student cards ---- */
.cards { display: grid; gap: 10px; }
.scard { display: block; width: 100%; text-align: left; border-radius: 16px; padding: 13px 15px;
  background: color-mix(in srgb, var(--c) 13%, var(--card)); }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sc-name b { display: block; font-size: 17px; font-weight: 600; }
.sc-name small { display: block; font-size: 13px; color: var(--hint); }
.sc-big { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: color-mix(in srgb, var(--c) 60%, var(--text)); line-height: 1.1; }
.sc-big small { display: block; font-size: 12px; font-weight: 500; color: var(--hint); }
.scard.neg .sc-big { color: var(--red); }
.sc-bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 22%, transparent); margin: 10px 0 8px; overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.scard.neg .sc-bar i { background: var(--red); }
.sc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--hint); }
.sc-meta > span:first-child { margin-right: auto; }
.chip-o, .chip-g { padding: 2px 8px; border-radius: 10px; font-weight: 600; font-size: 12px; }
.chip-o { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.chip-g { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }

/* ---- month rings ---- */
.rings { display: flex; align-items: center; gap: 18px; background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.legend { display: grid; gap: 8px; flex: 1; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend span { display: flex; justify-content: space-between; flex: 1; font-size: 14px; color: var(--hint); }
.legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- toast with undo ---- */
#toast:not([hidden]) { display: flex; align-items: center; gap: 14px; }
#toast button { color: var(--accent); font-weight: 600; filter: brightness(1.4); }
.rings { gap: 14px; padding: 14px; }
.legend span { gap: 8px; font-size: 13.5px; }
.legend b { white-space: nowrap; }
.mrow .nums { flex-wrap: wrap; gap: 2px 10px; }
.mrow .nums > span { white-space: nowrap; }

/* ---- earnings ---- */
.earn { display: block; background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.earn small { display: block; color: var(--hint); font-size: 13px; }
.earn > b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.earn-bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.earn-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.earn-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--hint); }
.money { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.money b { font-variant-numeric: tabular-nums; }
.badge.part { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.mrow { align-items: flex-start; }
.mrow .dot { margin-top: 6px; }
.plan-line { display: block; font-size: 13px; color: var(--hint); margin-top: 2px; }
.plan-line b { color: var(--text); font-weight: 700; }
.nw { white-space: nowrap; }

/* ---- payments: waiting / paid ---- */
.pay-sec { display: flex; justify-content: space-between; }
.pay-sec.wait { color: var(--red); }
.pay-sec.done { color: var(--green); }
.pay-row { cursor: pointer; }
.pay-row .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.paid-btn { background: var(--green); color: #fff; border-radius: 14px; padding: 6px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
#toast { white-space: nowrap; }

/* ---- month rows: name, make-ups tag, given / total, segmented bar ---- */
.mrow2 { display: block; width: 100%; text-align: left; padding: 11px 14px; }
.mrow2 + .mrow2 { border-top: 1px solid var(--line); }
.m-top { display: flex; align-items: center; gap: 8px; }
.m-top .dot { background: var(--c); }
.m-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.m-name b { font-weight: 600; }
.m-name small { color: var(--hint); font-size: 12px; }
.tag-carry { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 9px; background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.m-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.m-of { color: var(--hint); font-size: 13px; font-variant-numeric: tabular-nums; }
.m-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); margin-top: 8px; }
.m-bar i { display: block; height: 100%; }
.b-done { background: var(--c, var(--hint)); }
.b-miss { background: var(--orange); }
.b-ahead { background: color-mix(in srgb, var(--c, var(--hint)) 35%, transparent); }
.m-legend { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--hint); margin: 8px 0 14px; }
.m-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* ---- tab bar with "+" (iOS style) ---- */
.fab { display: none; }
.tabs { padding: 6px 4px calc(4px + env(safe-area-inset-bottom)); align-items: flex-end; background: color-mix(in srgb, var(--card) 96%, transparent); }
.tabs button { position: relative; gap: 3px; font-size: 10.5px; font-weight: 500; padding: 2px 0 4px; }
.tabs svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on svg { stroke-width: 2.1; }
.tabs .tab-plus { flex: none; width: 54px; height: 54px; max-width: none; border-radius: 50%; margin: -22px 6px 2px; padding: 0;
  background: var(--accent); color: var(--accent-text); justify-content: center; border: 4px solid var(--bg);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent); }
.tabs .tab-plus svg { width: 26px; height: 26px; stroke-width: 2.4; }
.tabs .tab-plus:active { transform: scale(.94); }
.tab-badge { position: absolute; top: -1px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 17px; text-align: center; }
.tab-badge[hidden] { display: none; }
.plus-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 700; flex: none; }
.chev { color: var(--hint); font-size: 20px; }
.tabs button span { font-size: 10.5px; filter: none; }
.plus-ico svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plus-list .row { padding: 11px 14px; }

/* ---- Telegram link in the student card ---- */
.tg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg-actions .act { background: var(--bg); color: var(--accent); }
.link-btn { color: var(--red); font-size: 14px; }
.chip-tg { padding: 2px 8px; border-radius: 10px; font-weight: 600; font-size: 12px; background: color-mix(in srgb, #2aabee 16%, transparent); color: #2aabee; }
.todo-move { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }

/* ---- moving several lessons / offering windows ---- */
.move-day { color: var(--accent); }
.link-all { color: var(--accent); font-weight: 600; font-size: 14px; padding: 4px 4px 10px; }
.check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--hint); display: grid; place-items: center; flex: none; font-size: 13px; color: #fff; }
.check.on { background: var(--accent); border-color: var(--accent); }
.bulk-row select { max-width: 48%; border: 0; border-radius: 9px; padding: 6px 8px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--accent); font-size: 13px; font-weight: 600; }
.notify-row { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.notify-row input { width: 20px; height: 20px; accent-color: var(--green); }
.offer-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-chips .chip { background: var(--card); padding: 7px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.offer-chips .chip.on { background: var(--accent); color: var(--accent-text); }
.sticky-send { position: sticky; bottom: 0; box-shadow: 0 -8px 16px var(--bg); }
button[disabled] { opacity: .45; }
.bulk-row select { max-width: none; flex: none; font-variant-numeric: tabular-nums; }
.day-title b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-title span { flex: none; white-space: nowrap; }

/* ---- Zoom link for the day ---- */
.zoom { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 8px 10px 8px 12px; margin-bottom: 12px; }
.zoom.ok { border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.zoom-ico { font-size: 20px; }
.zoom b { display: block; font-size: 14px; font-weight: 600; }
.zoom small { display: block; color: var(--hint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom .grow { flex: 1; min-width: 0; }
.zoom input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 8px 0; font-size: 14px; }
.zoom-save { background: var(--accent); color: var(--accent-text); border-radius: 14px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
