/* Лендинг /landing, моушен-торг, маркетплейс репетиторов, степпер ±50 ₽, ползунок времени, тарифы и /fees. */
/* ---------- лендинг, маркетплейс репетиторов и календарь-кружочки ---------- */
:root:not([data-theme="dark"]) body[data-auth="1"]:not(:has(.land-page:not(#brandbook-page):not(#fees-page):not(#market-page):not(.is-white-stage))),
:root:not([data-theme="dark"]) body[data-auth="1"]:not(:has(.land-page:not(#brandbook-page):not(#fees-page):not(#market-page):not(.is-white-stage))) .main {
  background: #ffffff;
  color: #1f1f1f;
}
body:not([data-user-dark="1"]) .land-page:not(#brandbook-page):not(#fees-page):not(#market-page).is-white-stage {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4f9;
  --ink: #1f1f1f;
  --ink-2: #444746;
  --muted: #5f6368;
  --line: #e3e8ef;
  --line-strong: #c4c7c5;
  --accent: #0b57d0;
  --accent-hover: #0842a0;
  --accent-soft: #e8f0fe;
  --leaf: #0b57d0;
  --leaf-soft: #e8f0fe;
  --good: #0b57d0;
  --good-soft: #e8f0fe;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --notif: #ea580c;
  --notif-soft: #fff3eb;
  --confirm: #15803d;
  --confirm-hover: #166534;
  --confirm-soft: #dcfce7;
  --pro: #7c3aed;
  --pro-soft: #f3e8ff;
  --bad: #e11d48;
  --bad-soft: #ffe4e8;
  --gold: #c59b5f;
  --gold-hover: #b3884d;
  --gold-ink: #8c6327;
  --gold-soft: #fbf5ea;
  --pill-bg: #1f1f1f;
  --pill-ink: #ffffff;
  --seg-bg: #f0f4f9;
  --seg-active: #ffffff;
  background: #ffffff;
  color: #1f1f1f;
}
body[data-auth="1"] .main {
  display: block;
  min-height: 100vh; min-height: 100dvh;
  padding: 0 0 calc(56px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}
body[data-auth="1"] .auth-wrap { margin: 8vh auto; padding: 0 16px; }
.land-page {
  width: 100%; max-width: 1260px; margin: 0 auto; min-width: 0;
  padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
}
.land-top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(24px, calc((100vw - 1340px) / 2));
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  min-width: 0;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}
.land-page:not(#brandbook-page) .land-top .brand-wordmark {
  transition: color .45s cubic-bezier(.22, 1, .36, 1);
}
.land-page:not(#brandbook-page):not(#fees-page):not(#market-page) .land-top:not(.is-scrolled-light) {
  background: rgba(0, 0, 0, .86);
  border-bottom-color: rgba(255, 255, 255, .08);
  --wm-ink: #ffffff;
  color: #ffffff;
}
.land-page:not(#brandbook-page):not(#fees-page):not(#market-page) .land-top:not(.is-scrolled-light) .brand-lockup,
.land-page:not(#brandbook-page):not(#fees-page):not(#market-page) .land-top:not(.is-scrolled-light) .brand-wordmark {
  --wm-ink: #ffffff;
  color: #ffffff;
}
.land-page:not(#brandbook-page):not(#fees-page):not(#market-page) .land-top:not(.is-scrolled-light) .land-links a {
  color: rgba(255, 255, 255, .80);
}
.land-page:not(#brandbook-page):not(#fees-page):not(#market-page) .land-top:not(.is-scrolled-light) .land-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .10);
}
.land-page:not(#brandbook-page):not(#fees-page):not(#market-page) .land-top:not(.is-scrolled-light) .icon-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #ffffff;
}
body:not([data-user-dark="1"]) .land-page:not(#brandbook-page) .land-top.is-scrolled-light,
:root:not([data-theme="dark"]) .land-page.is-fees-page .land-top.is-scrolled-light,
:root:not([data-theme="dark"]) .land-page.is-market-page .land-top.is-scrolled-light {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #e3e8ef;
  --wm-ink: #111622;
  color: #111622;
}
body:not([data-user-dark="1"]) .land-page:not(#brandbook-page) .land-top.is-scrolled-light .brand-lockup,
body:not([data-user-dark="1"]) .land-page:not(#brandbook-page) .land-top.is-scrolled-light .brand-wordmark,
:root:not([data-theme="dark"]) .land-page.is-fees-page .land-top.is-scrolled-light .brand-lockup,
:root:not([data-theme="dark"]) .land-page.is-fees-page .land-top.is-scrolled-light .brand-wordmark,
:root:not([data-theme="dark"]) .land-page.is-market-page .land-top.is-scrolled-light .brand-lockup,
:root:not([data-theme="dark"]) .land-page.is-market-page .land-top.is-scrolled-light .brand-wordmark {
  --wm-ink: #111622;
  color: #111622;
}
body:not([data-user-dark="1"]) .land-page:not(#brandbook-page) .land-top.is-scrolled-light .land-links a,
:root:not([data-theme="dark"]) .land-page.is-fees-page .land-top.is-scrolled-light .land-links a,
:root:not([data-theme="dark"]) .land-page.is-market-page .land-top.is-scrolled-light .land-links a {
  color: #3f4756;
}
body:not([data-user-dark="1"]) .land-page:not(#brandbook-page) .land-top.is-scrolled-light .land-links a:hover,
:root:not([data-theme="dark"]) .land-page.is-fees-page .land-top.is-scrolled-light .land-links a:hover,
:root:not([data-theme="dark"]) .land-page.is-market-page .land-top.is-scrolled-light .land-links a:hover {
  color: #111622;
  background: rgba(17, 22, 34, .06);
}
:root:not([data-theme="dark"]) .land-page.is-fees-page .land-top.is-scrolled-light .land-links a[aria-current="page"],
:root:not([data-theme="dark"]) .land-page.is-market-page .land-top.is-scrolled-light .land-links a[aria-current="page"] {
  background: #e8f0fe;
  color: #0b57d0;
  font-weight: 600;
}
body:not([data-auth="1"]):not([data-fullbleed="1"]):not([data-brandbook="1"]) .land-top {
  width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; margin-top: -30px;
  padding-inline: 20px;
}
.land-top + .land-hero-banner { margin-top: -8px; }
.land-top .brand-lockup { flex: none; min-width: 0; }
.land-top .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.land-top .brand-wordmark { font-size: 24px; height: auto; }
.land-links {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 2px 4px;
}
.land-links::-webkit-scrollbar { display: none; }
.land-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 13px;
  white-space: nowrap; flex: none; padding: 4px 6px; border-radius: 8px;
  transition: color .14s ease, background-color .14s ease;
}
.land-links a:hover { color: var(--accent); background: var(--accent-soft); }
.land-top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.land-top-actions .btn { border-radius: 999px; padding-inline: 16px; }
@media (max-width: 1280px) { .land-top .brand-sub { display: none; } .land-links { gap: 2px; } .land-links a { font-size: 12.5px; padding: 4px 5px; } }
@media (max-width: 760px) {
  .land-links { display: none; }
  .land-top .brand-lockup { flex: 1 1 auto; min-width: 0; }
}

.land-hero { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(330px, 420px); gap: 26px; align-items: start; min-width: 0; }
@media (max-width: 960px) { .land-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.land-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; scroll-margin-top: 74px; min-width: 0; }
.land-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; min-width: 0; }
.how-num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-weight: 600; font-size: 13px;
}

/* фильтры и кружковый календарь */
.chip-rail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; min-height: 36px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.chip-btn:hover { border-color: var(--accent); color: var(--ink); }
.chip-btn.on { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-ink); font-weight: 600; }
.chip-btn svg { width: 15px; height: 15px; flex: none; }
.chip-rail.is-single-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
}
.chip-rail.is-single-row > * { flex: 0 0 auto; }
.chip-rail.is-single-row::-webkit-scrollbar { display: none; }
.chip-btn.mkt-filter-trigger {
  font-weight: 600;
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--ink);
}
.chip-btn.mkt-filter-trigger:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.chip-btn.mkt-filter-trigger.on {
  background: var(--pill-bg);
  border-color: var(--pill-bg);
  color: var(--pill-ink);
}
.mkt-flt-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: currentColor;
}
.chip-btn.mkt-reset-inline {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}
.chip-btn.mkt-reset-inline:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.cal-days {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px; align-items: stretch; min-width: 0; max-width: 100%;
  padding: 4px 0 6px;
}
.cal-days.is-7days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
@media (max-width: 759px) {
  .cal-days,
  .cal-days.is-7days {
    display: flex; gap: 8px; align-items: stretch; width: 100%; min-width: 0; max-width: 100%;
    overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 4px 2px 6px; scrollbar-width: none;
  }
  .cal-days::-webkit-scrollbar { display: none; }
  .day-cir { flex: 0 0 68px; scroll-snap-align: start; }
}
.day-cir {
  position: relative; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 8px 6px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.day-cir:hover {
  border-color: var(--accent); transform: translateY(-1px); z-index: 2;
}
.day-wd { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.day-dot {
  width: auto; height: auto; min-height: 22px; border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; line-height: 1.1;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  background: transparent; color: var(--ink); border: 0; box-shadow: none;
}
.day-dot.all-badge { font-size: 13px; letter-spacing: .01em; }
.day-cnt { font-size: 11px; color: var(--muted); white-space: nowrap; }
.day-cir.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); color: var(--ink); }
.day-cir.on .day-dot { background: transparent; border: 0; color: var(--accent); box-shadow: none; }
.day-cir.on .day-cnt { color: var(--accent); font-weight: 600; }

.hour-circles {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px; align-items: stretch; min-width: 0; max-width: 100%;
}
@media (max-width: 1060px) { .hour-circles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hour-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hr-cir {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; min-width: 0; min-height: 36px; padding: 6px 10px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.hr-cir:hover { border-color: var(--accent); }
.hr-cir .hr-cnt {
  display: inline-flex; align-items: center; justify-content: center; min-width: auto; height: auto; padding: 0;
  border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
}
.hr-cir.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.hr-cir.on .hr-cnt { background: transparent; color: var(--accent-ink); }

/* карточки репетиторов */
.tutor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; min-width: 0; max-width: 100%; }
@media (max-width: 760px) { .tutor-grid { grid-template-columns: minmax(0, 1fr); } }
.tutor-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; height: 100%;
  min-width: 0; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.tutor-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: 0 12px 28px -18px rgba(17, 22, 34, .16);
}
.tutor-card-top { display: grid; gap: 10px; align-content: start; min-width: 0; }
.tutor-person-meta { display: grid; gap: 2px; min-width: 0; }
.tutor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tutor-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tutor-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #1d5bd6, #3b82f6);
}
.tutor-avatar.lg { width: 64px; height: 64px; font-size: 18px; }
.tutor-avatar.has-photo {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}
.tutor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.tutor-avatar.is-no-photo {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  font-size: 9.5px;
  line-height: 1.05;
  font-weight: 600;
  text-align: center;
  padding: 4px;
}
.tutor-avatar.lg.is-no-photo { font-size: 11.5px; padding: 6px; }
.tc-photo-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); min-width: 0; max-width: 100%;
}
.tc-photo-top {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0;
}
.tc-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-wa-cfg {
  padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; max-width: 100%;
}
.tc-wa-cfg .btn { max-width: 100%; white-space: normal; text-align: center; height: auto; }
.tc-contact-grid {
  display: grid; gap: 8px; align-items: end; min-width: 0;
  grid-template-columns: minmax(110px, .95fr) minmax(82px, .62fr) minmax(188px, 1.45fr) minmax(156px, 1.2fr);
}
.tc-contact-grid .field { min-width: 0; }
.tc-contact-grid > .field { align-content: end; }
.tc-contact-grid .input { width: 100%; min-width: 0; padding: 9px 11px; font-size: 13.5px; }
@media (max-width: 1120px) { .tc-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tc-contact-grid { grid-template-columns: minmax(0, 1fr); } }
.tutor-bio-wrap { display: grid; gap: 4px; align-content: start; min-width: 0; }
.tutor-bio {
  margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1.5em * 3);
}
.tutor-bio-wrap.is-open .tutor-bio {
  display: block; -webkit-line-clamp: unset; overflow: visible;
}
.tutor-bio-more {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; padding: 2px 0; cursor: pointer;
  color: var(--accent); font-size: 12.5px; font-weight: 600;
}
.tutor-bio-more:hover { text-decoration: underline; }
.tutor-bio-more svg { width: 14px; height: 14px; transition: transform .18s ease; }
.tutor-bio-wrap.is-open .tutor-bio-more svg { transform: rotate(180deg); }
.tutor-card-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 4px; min-width: 0; }
.tutor-bid-btn { width: 100%; min-height: 46px; font-size: 14.5px; font-weight: 600; justify-content: center; }
.tutor-sub-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tutor-sub-actions.is-single { grid-template-columns: minmax(0, 1fr); }
.tutor-sub-actions .btn { width: 100%; justify-content: center; }
.slot-mini-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-mini {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink); min-height: 30px;
}
.slot-mini:hover, .slot-mini.picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tutor-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.tutor-price { display: grid; gap: 1px; }
.tutor-price b { font-size: 19px; font-weight: 700; }

/* тарифы в стиле gemini.google/about/#plans */
.land-sec-head.is-gemini-center {
  flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
}
.gemini-plans-h2 {
  margin: 0; font-family: "Google Sans", "Onest", "Outfit", var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -.028em;
}
.gemini-grad-word {
  background: linear-gradient(90deg, #1a73e8 0%, #5b5bf6 52%, #d946ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600;
}
.gemini-plans-sub { max-width: 62ch; margin: 0 auto; font-size: 14.5px; line-height: 1.5; }
.gemini-rate-tabs {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px;
  padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.gemini-rate-tabs .chip-btn { border: 0; background: transparent; min-height: 32px; padding: 5px 12px; font-size: 13px; }
.gemini-rate-tabs .chip-btn.on {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .14);
}
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; min-width: 0; }
@media (max-width: 1180px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }
.plan-card {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 14px;
  position: relative; min-width: 0; border-radius: 26px; padding: 24px 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 28px -20px rgba(15, 23, 42, .14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -22px rgba(15, 23, 42, .18); }
.plan-card-head { display: grid; gap: 8px; }
.plan-title { font-family: "Google Sans", "Onest", "Outfit", var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.2; margin: 0; }
.plan-tagline { margin: 0; min-height: 40px; }
.plan-price-wrap { display: grid; gap: 3px; }
.plan-cta-wrap { display: grid; gap: 6px; }
.plan-cta-pill { width: 100%; justify-content: center; border-radius: 999px; min-height: 42px; font-weight: 600; font-size: 13.5px; }
.plan-cta-pill.is-gemini-grad:not(.is-confirmed) {
  background: linear-gradient(95deg, #1a73e8 0%, #4f46e5 55%, #7c3aed 100%);
  color: #ffffff; border: 0; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .52);
}
.plan-cta-pill.soft:not(.is-confirmed) {
  background: var(--accent-soft); color: var(--accent); border-color: transparent;
}
.plan-sep { height: 1px; background: var(--line); }
.plan-feats-wrap { display: grid; gap: 8px; align-content: start; }
.plan-feats-head { font-size: 12px; font-weight: 600; color: var(--ink); }
.plan-card.featured { border: 1.5px solid var(--accent); box-shadow: 0 16px 36px -22px rgba(11, 87, 208, .24); }
.plan-card.picked { background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 190%); }
.plan-card.super {
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 52%);
  border: 1.5px solid #4285f4;
  box-shadow: 0 16px 40px -20px rgba(66, 133, 244, .30);
}
:root[data-theme="dark"] .plan-card.super {
  background: linear-gradient(160deg, #0d1b3e 0%, #102548 55%, #16181d 100%);
  border: 1.5px solid #1d7bff;
  box-shadow: 0 12px 32px -14px rgba(29, 123, 255, .38);
}
.plan-card.super.picked {
  border-color: #7ea6ff;
  box-shadow: 0 0 0 1px rgba(126, 166, 255, .38), 0 14px 36px -14px rgba(47, 124, 255, .52);
}
@media (min-width: 721px) and (max-width: 1020px) {
  .plan-card { padding: 18px; }
  .plan-price { font-size: 22px; }
}
.plan-price { font-family: "Google Sans", "Onest", "Outfit", var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.1; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
.plan-feats li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.42; }
.plan-feats li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }

/* блок объяснения СБП-платёжки и эскроу */
.sbp-explainer-box {
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: 26px;
  box-shadow: none;
  gap: 14px;
}
.sbp-bank-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sbp-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
@media (max-width: 960px) { .sbp-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .sbp-step-grid { grid-template-columns: minmax(0, 1fr); } }
.sbp-step-card {
  display: grid; gap: 6px; align-content: start; min-width: 0;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}

/* интерактивная бета-секция на лендинге + комиссия 5% + время */
.demo-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 14px; align-items: stretch; min-width: 0; }
@media (max-width: 820px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.demo-calc-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; height: 100%; min-width: 0; }
.demo-rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.demo-rate-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.demo-rate-stepper { width: min(296px, 100%); flex: none; }
.hh-step-readout.is-inline {
  display: inline-flex; flex-direction: row; flex-wrap: nowrap;
  align-items: center; justify-content: center; align-self: stretch; gap: 4px;
  height: 100%; padding: 0 8px; white-space: nowrap; cursor: text; min-width: 0;
}
.demo-rate-input {
  width: 6ch; min-width: 44px; max-width: 78px; height: 22px; line-height: 22px;
  border: 0; background: transparent; padding: 0; margin: 0; min-height: 0; box-shadow: none; outline: none;
  text-align: right; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.demo-rate-input::-webkit-outer-spin-button,
.demo-rate-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.demo-rate-input:focus { outline: none; color: var(--accent); }
.hh-step-unit {
  display: inline-flex; align-items: center; height: 22px; line-height: 22px;
  font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; flex: none;
}
.demo-opt {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-size: 14px; transition: border-color .12s ease, background-color .12s ease;
}
.demo-opt:hover { border-color: var(--accent); }
.demo-opt.picked { border-color: var(--accent); background: var(--accent-soft); }
.demo-opt.ok { border-color: var(--good); background: var(--good-soft); }
.demo-opt.bad { border-color: var(--bad); background: var(--bad-soft); }
.fee-split-box {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0;
}
@media (max-width: 560px) { .fee-split-box { grid-template-columns: minmax(0, 1fr); } }
.fee-pill {
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  display: grid; gap: 2px; min-width: 0;
}
.fee-pill span { font-size: 11.5px; color: var(--muted); }
.fee-pill b { font-family: var(--font-display); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bid-fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  overflow: hidden;
  min-width: 0;
}
.bid-fee-row .fee-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.bid-fee-row .fee-pill:last-child { border-bottom: 0; }
.bid-fee-row .fee-pill span { font-size: 12.5px; color: var(--ink-2); }
.bid-fee-row .fee-pill b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.bid-fee-row .fee-pill:nth-child(2) b { color: var(--confirm); }
.hour-circles.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hour-circles.compact .hr-cir { min-height: 32px; padding: 4px 8px; font-size: 12.5px; }
@media (max-width: 520px) { .hour-circles.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* степпер цены (единый сегмент .hh-price-stepper из брендбука + числовой input в модалке) */
.bid-input {
  width: 6ch; min-width: 48px; max-width: 84px;
  text-align: right; font-family: var(--font-display); font-size: 18px; font-weight: 700;
  border: 0; background: transparent; padding: 2px 4px; min-height: 0; box-shadow: none;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.bid-input::-webkit-outer-spin-button,
.bid-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bid-input:focus { outline: none; box-shadow: none; color: var(--accent); }
.bot-preview {
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px dashed var(--line-strong);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; min-width: 0;
}
.reqs-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.req-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); min-width: 0; }

@media (max-width: 600px) {
  .land-top { padding: 8px 10px; gap: 6px; }
  .land-top .brand-lockup { gap: 8px; }
  .land-top .brand-mark { width: 30px; height: 30px; border-radius: 0; }
  .land-top .brand-mark svg { width: 30px; height: 30px; }
  .land-top .brand-wordmark { font-size: 22px; height: auto; }
  .land-top .brand-tag { display: none; }
  .land-top .brand-sub { display: none; }
  .land-top-actions { gap: 6px; }
  .land-top-actions .btn { padding: 6px 13px; font-size: 12.5px; min-height: 32px; border-radius: 999px; }
  .chip-rail.swipe { display: flex; flex-wrap: nowrap; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: visible; padding: 5px 4px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chip-rail.swipe > * { flex: 0 0 auto; }
  .chip-rail.swipe::-webkit-scrollbar { display: none; }
  .day-cir { flex: 0 0 64px; }
  .hr-cir { width: 100%; min-width: 0; min-height: 44px; padding: 6px 8px; }
  .input, select.input, textarea.input { font-size: 16px; }
}

/* ---------- UI в стиле референса (сегменты, поиск, карточки, фильтр-шторка, учёба) ---------- */
.hh-seg {
  display: flex; align-items: stretch; gap: 4px;
  padding: 4px; border-radius: 14px; background: var(--seg-bg); border: 1px solid var(--line);
}
.hh-seg.equal {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
}
.tc-req-filter-seg button { padding: 7px 6px; font-size: 13px; }
.hh-seg.side-role-seg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 3px;
  gap: 3px;
}
.hh-seg.side-role-seg button {
  padding: 6px 8px;
  min-height: 34px;
  font-size: 12px;
  overflow: visible;
  text-overflow: clip;
  flex: none;
}
.hh-seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 7px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 500;
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.hh-seg button svg { width: 16px; height: 16px; flex: none; display: block; }
.hh-seg button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hh-seg button[aria-pressed="true"] {
  background: var(--seg-active); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.modal-card.sheet-modal.is-auth-sheet {
  width: min(468px, 100%);
  max-width: min(468px, calc(100vw - 24px));
  max-height: min(94dvh, 860px);
  color: var(--ink);
}
.auth-modal-shell {
  width: 100%; max-width: 100%; max-height: none; overflow-y: auto;
  border-radius: 0; box-shadow: none; min-width: 0;
}
.auth-card.is-modal { gap: 10px; padding: 0; border-radius: 0; }
.auth-social-stack {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%;
}
.telegram-btn:hover {
  border-color: color-mix(in srgb, #229ED9 55%, var(--line-strong));
}
.auth-tg-widget-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
.auth-tg-widget-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.auth-tg-widget-slot:empty { display: none; }
.auth-tg-widget-wrap.is-widget-ready .auth-tg-fallback-btn { display: none; }
.auth-channel-seg button { gap: 7px; }
.auth-channel-seg button svg { width: 17px; height: 17px; flex: none; }
.cv-channel-switch {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.cv-check-btn { gap: 10px; }
.cv-btn-timer {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); color: #ffffff;
  font-size: 13px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.cv-channel-switch .link-btn.is-wait:disabled {
  color: var(--muted); opacity: .82; cursor: default; text-decoration: none; font-variant-numeric: tabular-nums;
}
.auth-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.auth-actions-row .btn:first-child { flex: 1 1 auto; justify-content: center; }
.auth-foot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--line);
}

.hh-search-box { position: relative; min-width: 0; }
.hh-search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: grid; place-items: center;
}
.hh-search-ico svg { width: 18px; height: 18px; }
.hh-search-input {
  width: 100%; min-height: 46px; padding: 10px 40px 10px 42px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 15px;
}
.hh-search-input::placeholder { color: var(--muted); }
.hh-search-input:focus { outline: none; border-color: var(--accent); }

.hh-sort-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

.verified-badge {
  display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none;
  border-radius: 50%; background: var(--accent); color: #fff;
}
.verified-badge svg { width: 11px; height: 11px; stroke-width: 2.8; }

.fav-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
  color: var(--muted); display: grid; place-items: center; flex: none;
}
.fav-btn:hover { background: var(--surface-2); color: var(--ink); }
.fav-btn[aria-pressed="true"] { color: var(--bad); }
.fav-btn svg { width: 20px; height: 20px; }

.tutor-rate { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.tutor-name-line { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.tutor-name-line .tutor-avatar,
.tutor-name-line .tutor-avatar-ph { flex: none; margin: 0; }
.tutor-person-meta { min-width: 0; display: grid; gap: 2px; }
.tutor-title-inline { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; }
.tutor-person-name { color: var(--ink); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tutor-title-inline .verified-badge { flex: none; }
.tutor-modal-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; flex: 1; }
.trial-guar-btn.is-active {
  background: color-mix(in srgb, var(--good) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--good) 32%, var(--line));
  color: var(--good); font-weight: 600;
}
.trial-guar-btn.is-active:hover { background: color-mix(in srgb, var(--good) 16%, var(--surface)); }
.trial-guar-btn.is-grey {
  background: var(--surface-2, #F3F5F8);
  border: 1px solid var(--line);
  color: var(--muted); font-weight: 500;
}
.trial-guar-box {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px;
  padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45;
}
.trial-guar-box:not(:has(> svg)) { grid-template-columns: minmax(0, 1fr); }
.trial-guar-box > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.trial-guar-box.is-active {
  background: color-mix(in srgb, var(--good) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--good) 30%, var(--line));
  color: var(--good);
}
.trial-guar-box.is-active b { color: var(--good); }
.trial-guar-box.is-grey {
  background: var(--surface-2, #F3F5F8);
  border: 1px solid var(--line);
  color: var(--muted);
}
.trial-guar-box.is-grey b { color: var(--ink-2); font-size: 13px; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tutor-tag-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 13px;
}
.tutor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.tutor-actions.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 420px) { .tutor-actions { grid-template-columns: minmax(0, 1fr); } }

.hh-notice-card {
  display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.hh-chat-list { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

.sheet-grabber-zone {
  display: flex; justify-content: center; align-items: center;
  padding: 10px 16px 4px; cursor: grab; touch-action: none; user-select: none;
}
.sheet-grabber {
  width: 42px; height: 4.5px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 76%, transparent);
}
.sheet-modal {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  max-height: min(92dvh, 780px); gap: 0;
}
.sheet-grabber-zone, .sheet-head, .sheet-foot { flex: none; }
.sheet-head {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px;
  padding: 8px 16px 12px; border-bottom: 1px solid var(--line);
}
.sheet-head.is-filter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
}
#filter-modal-title {
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.sheet-foot.filter-sheet-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.filter-reset-btn {
  flex: none; min-height: 44px; padding: 0 16px; white-space: nowrap;
}
.filter-apply-btn {
  flex: 1 1 auto; min-height: 44px; justify-content: center; white-space: nowrap;
}
.sheet-head.is-booking-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 16px 12px; border-bottom: 1px solid var(--line);
}
.sheet-head.is-booking-head .tutor-modal-head { flex: 1 1 auto; min-width: 0; }
.sheet-close-btn { flex: none; color: var(--ink-2); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; display: grid; gap: 16px; align-content: start; }
.sheet-modal > .sheet-body { width: 100%; max-width: 100%; box-sizing: border-box; }
.sheet-body.auth-modal-shell { padding: 8px 20px 18px; }
.sheet-body.auth-modal-shell .form.is-modal {
  border: 0; box-shadow: none; padding: 0; background: transparent; gap: 10px;
}
.sheet-body.auth-modal-shell .h2 { color: var(--ink); }
.auth-close-btn { flex: none; margin-top: -2px; color: var(--ink-2); }
@media (min-width: 681px) {
  .sheet-modal > .sheet-grabber-zone { display: none; }
  .sheet-modal .sheet-head.is-booking-head { padding: 14px 16px 12px; }
  .sheet-modal.is-auth-sheet > .sheet-body.auth-modal-shell { padding: 18px 20px 18px; }
}
@media (max-width: 480px) {
  .sheet-body.auth-modal-shell { padding: 8px 14px 18px; }
  .sheet-body.auth-modal-shell .hh-seg.equal button {
    gap: 5px; padding: 6px 6px; font-size: 12.5px;
    white-space: normal; line-height: 1.2; text-align: center;
  }
  .sheet-body.auth-modal-shell .hh-seg.equal button span {
    overflow: visible; text-overflow: clip;
  }
}
.sheet-foot { padding: 12px 16px max(14px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot.is-centered { display: flex; justify-content: center; }
.sheet-foot.is-centered.is-stacked { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.bid-messenger-note { font-size: 12px; line-height: 1.35; max-width: 380px; margin-inline: auto; }
.card-messenger-note { font-size: 11.5px; line-height: 1.3; text-align: center; display: block; margin-top: -2px; }
.bid-submit-main {
  width: 100%; max-width: 100%; min-height: 50px; border-radius: 14px;
  font-size: 15.5px; font-weight: 600; justify-content: center;
}
.bal-flat-sec {
  display: grid; gap: 6px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.bal-flat-amount {
  font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
}
.bal-flat-need { font-size: 13px; font-weight: 600; color: var(--accent); line-height: 1.35; }
.bal-flat-copy { margin: 0; font-size: 13px; line-height: 1.48; color: var(--ink-2); }
@keyframes ygoSlideLR {
  from { opacity: .65; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes otpPop {
  0% { transform: scale(.92); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.ygo-pay-rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  padding: 2px 16px 6px; margin: 0 -16px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.ygo-pay-rail::-webkit-scrollbar { display: none; }
.ygo-pay-tile {
  flex: 0 0 clamp(216px, 58%, 300px); min-height: 88px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.ygo-pay-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.ygo-pay-tile:active { transform: scale(.98); }
.ygo-pay-tile.is-on {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 44%, transparent);
}
.ygo-tile-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
}
.ygo-tile-copy { display: grid; gap: 2px; min-width: 0; }
.ygo-tile-copy b {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-sheet-kind="payout"] .ygo-pay-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 2px 0 4px;
  overflow: visible;
}
[data-sheet-kind="payout"] .ygo-pay-tile {
  flex: none;
  width: 100%;
  min-width: 0;
}
.ygo-tile-copy span { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ygo-tile-copy span.is-free { color: var(--confirm); font-weight: 600; }
.ygo-sbp-badge {
  width: 24px; height: 28px; border-radius: 0; display: inline-grid; place-items: center;
  background: transparent; flex: none;
}
.ygo-sbp-svg { display: block; flex: none; }
.ygo-tile-net {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; flex: none;
}
.ygo-net-svg { display: block; flex: none; }
.ygo-net-mc-lbl { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.ygo-net-fallback {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--ink); color: var(--surface);
}
.ygo-net-fallback.is-dark {
  background: rgba(255, 255, 255, .14); color: #ffffff; border: 1px solid rgba(255, 255, 255, .16);
}
.ygo-add-badge {
  width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 8%, var(--surface)); color: var(--ink);
}
.ygo-check {
  width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent); color: #ffffff; flex: none;
}
.ygo-check svg { width: 12px; height: 12px; stroke-width: 2.8; }
.sheet-back-btn {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent;
  padding: 4px 2px; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer;
}
.ygo-bank-card {
  position: relative; overflow: hidden; display: grid; gap: 16px;
  padding: 18px 18px 20px; border-radius: 20px;
  background: radial-gradient(circle at 88% 12%, rgba(59, 130, 246, .28) 0%, transparent 46%),
              linear-gradient(135deg, #242936 0%, #11141b 68%, #0a0c10 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 34px -14px rgba(15, 23, 42, .52);
  animation: ygoSlideLR .24s cubic-bezier(.22, 1, .36, 1);
  transition: background .25s ease, border-color .25s ease;
}
.ygo-bank-card[data-bank="sber"] {
  background: radial-gradient(circle at 88% 12%, rgba(36, 184, 92, .34) 0%, transparent 48%),
              linear-gradient(135deg, #103b25 0%, #0d2118 68%, #08120d 100%);
  border-color: rgba(52, 208, 110, .24);
}
.ygo-bank-card[data-bank="vtb"] {
  background: radial-gradient(circle at 88% 12%, rgba(14, 165, 233, .36) 0%, transparent 48%),
              linear-gradient(135deg, #0b2c6b 0%, #0b1b3d 68%, #070f21 100%);
  border-color: rgba(56, 189, 248, .26);
}
.ygo-bank-card[data-bank="tbank"] {
  background: radial-gradient(circle at 88% 12%, rgba(250, 204, 21, .28) 0%, transparent 48%),
              linear-gradient(135deg, #2b2922 0%, #181713 68%, #0e0d0b 100%);
  border-color: rgba(250, 204, 21, .24);
}
.ygo-bank-card[data-bank="alfa"] {
  background: radial-gradient(circle at 88% 12%, rgba(239, 49, 36, .34) 0%, transparent 48%),
              linear-gradient(135deg, #3c1414 0%, #1d0e0f 68%, #100809 100%);
  border-color: rgba(248, 113, 113, .26);
}
.ygo-bank-card[data-bank="gpb"] {
  background: radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .28) 0%, transparent 48%),
              linear-gradient(135deg, #162447 0%, #0f172a 68%, #090e1a 100%);
}
.ygo-bank-card[data-bank="ozon"] {
  background: radial-gradient(circle at 88% 12%, rgba(0, 91, 255, .38) 0%, transparent 48%),
              linear-gradient(135deg, #0f2559 0%, #0b1636 68%, #070d1f 100%);
}
.ygo-bank-card[data-bank="yandex"] {
  background: radial-gradient(circle at 88% 12%, rgba(252, 63, 29, .28) 0%, transparent 48%),
              linear-gradient(135deg, #292226 0%, #171418 68%, #0d0b0e 100%);
}
.ygo-bank-card[data-bank="raif"] {
  background: radial-gradient(circle at 88% 12%, rgba(254, 230, 0, .24) 0%, transparent 48%),
              linear-gradient(135deg, #2b2919 0%, #191811 68%, #0e0e09 100%);
}
.ygo-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ygo-chip-wrap { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .62); min-width: 0; }
.ygo-card-bank {
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: rgba(255, 255, 255, .92);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ygo-brand-slot {
  display: inline-flex; align-items: center; justify-content: flex-end; min-height: 24px; flex: none;
}
.ygo-card-field { display: grid; gap: 4px; min-width: 0; }
.ygo-card-lbl {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}
.ygo-card-inp {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08); color: #ffffff;
  font-size: 16.5px; font-weight: 600; letter-spacing: .04em;
  outline: none; transition: border-color .15s ease, background-color .15s ease;
}
.ygo-card-inp::placeholder { color: rgba(255, 255, 255, .36); font-weight: 500; }
.ygo-card-inp:focus {
  border-color: #60a5fa;
  background: rgba(255, 255, 255, .14);
}
.ygo-card-bottom2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ygo-sec-note {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--muted);
}
.ygo-sec-note svg { width: 16px; height: 16px; flex: none; color: var(--confirm); }
.cv-phone-field { position: relative; display: grid; gap: 6px; min-width: 0; }
.cv-phone-wrap {
  display: flex; align-items: stretch; min-height: 50px;
  border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); min-width: 0;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cv-phone-field.is-compact .cv-phone-wrap {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.cv-phone-wrap:focus-within {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.cv-country-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 12px; border: 0; border-right: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer; flex: none; white-space: nowrap;
}
.cv-phone-field.is-compact .cv-country-btn {
  padding: 0 10px;
  font-size: 13.5px;
}
.cv-country-btn svg { width: 14px; height: 14px; color: var(--muted); }
.cv-phone-inp {
  border: 0; background: transparent; width: 100%; min-width: 0;
  padding: 10px 12px; font-size: 17px; font-weight: 600;
  color: var(--ink); outline: none; box-shadow: none; letter-spacing: .01em;
}
.cv-phone-field.is-compact .cv-phone-inp {
  padding: 9px 11px;
  font-size: 15px;
  font-weight: 500;
}
.cv-phone-field.is-notched .cv-phone-wrap {
  min-height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cv-phone-field.is-notched .cv-phone-wrap:focus-within {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.cv-phone-field.is-notched .cv-country-btn {
  padding: 0 8px 0 0;
  font-size: 13px;
}
.cv-phone-field.is-notched .cv-phone-inp {
  height: 26px;
  min-height: 26px;
  padding: 1px 0 0 8px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
}
.cv-phone-inp:focus { outline: none; box-shadow: none; }
.cv-country-menu {
  display: grid; gap: 2px; max-height: 224px; overflow-y: auto;
  padding: 6px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: 0 14px 32px -12px rgba(15, 23, 42, .26);
}
.cv-country-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer;
}
.cv-country-opt:hover { background: var(--surface-2); }
.cv-country-opt.is-on {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent); font-weight: 600;
}
.cv-demo-push {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
}
.cv-demo-push-copy { display: grid; gap: 2px; font-size: 12.5px; line-height: 1.35; }
.cv-demo-push-copy b { color: var(--ink); font-size: 13px; }
.otp-4-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  max-width: 296px; margin-inline: auto; width: 100%;
  animation: ygoSlideLR .22s cubic-bezier(.22, 1, .36, 1);
}
.otp-digit-box {
  width: 100%; height: 64px; text-align: center; padding: 0;
  border-radius: 16px; border: 1.8px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  outline: none; transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.otp-digit-box:focus {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: otpPop .18s ease;
}
.bal-amount-box {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 50px;
  border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface-2);
}
.bal-amount-box:focus-within { border-color: var(--accent); background: var(--surface); }
.bal-amount-inp {
  border: 0; background: transparent; width: 100%; min-width: 0; padding: 8px 0;
  font-size: 20px; font-weight: 700; color: var(--ink); outline: none; box-shadow: none;
}
.bal-amount-inp:focus { outline: none; box-shadow: none; }
.bal-amount-cur { font-size: 18px; font-weight: 600; color: var(--muted); flex: none; }
.bal-fee-line { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.bal-submit-btn {
  width: 100%; min-height: 50px; border-radius: 14px;
  font-size: 15.5px; font-weight: 600; justify-content: center;
}
.chip-btn.is-on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-weight: 600;
}
.filter-price-inputs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px;
}
.filter-num-box {
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); min-height: 42px;
}
.filter-num-inp {
  border: 0; background: transparent; padding: 6px 0; width: 100%; min-width: 0;
  font-size: 15px; font-weight: 600; box-shadow: none; color: var(--ink);
}
.filter-num-inp:focus { outline: none; box-shadow: none; }
.hh-sort-seg { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 3px; padding: 3px; }
/* Предотвращение горизонтального переполнения на мобильных устройствах */
.shell, .main, .page, .land-sec, .card, .tutor-grid, .tutor-card, .hh-chat-list, .hh-notice-card, .hh-seg, .chip-rail {
  min-width: 0;
  max-width: 100%;
}
.main { overflow-x: clip; }
@media (max-width: 759px) { .cal-days { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; } }
#bb-market-app .hh-seg { flex: none; }
@media (max-width: 899px) {
  .topbar, .brand-lockup, .tabbar { min-width: 0; max-width: 100%; }
  .brand-lockup { overflow: hidden; }
  .topbar-actions { flex: none; }
}
@media (max-width: 760px) {
  .tutor-grid { grid-template-columns: minmax(0, 1fr); }
  .hh-seg button { padding: 6px 8px; font-size: 13px; }
  .tutor-head { min-width: 0; max-width: 100%; }
  .tutor-head > * { min-width: 0; }
}

/* ---------- UX/UI и моушен-дизайн лендинга (строго чёрно-синяя палитра без зелёного) ---------- */
@keyframes heroRise {
  from { opacity: 1; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmerBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes btnWave {
  0% { transform: scale(.88); opacity: .75; }
  100% { transform: scale(1.16); opacity: 0; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .65); }
  60% { box-shadow: 0 0 0 7px rgba(96, 165, 250, 0); }
}
@keyframes marqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes marqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero-stage-wrap {
  position: relative; overflow: hidden; border-radius: 24px; padding: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  background:
    radial-gradient(620px circle at var(--mx, 72%) var(--my, 28%), rgba(29, 123, 255, .17), transparent 62%),
    linear-gradient(155deg, color-mix(in srgb, var(--surface) 92%, #0e1a36) 0%, var(--surface) 60%);
  box-shadow: var(--shadow);
  min-width: 0; max-width: 100%;
}
:root[data-theme="light"] .hero-stage-wrap {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.hero-stage-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(120, 165, 255, .16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 85% 85% at 62% 35%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 62% 35%, #000 10%, transparent 80%);
}
:root[data-theme="light"] .hero-stage-wrap::before { opacity: .35; }
.hero-stage-wrap > .land-hero { position: relative; z-index: 1; }

.motion-stage {
  position: relative; border-radius: 20px; padding: 18px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, #0f1a33);
  box-shadow: 0 22px 48px -22px rgba(26, 109, 255, .48), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px;
  min-width: 0; max-width: 100%; overflow: hidden;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .25s ease;
}
:root[data-theme="light"] .motion-stage {
  background: #ffffff;
  border: 1.5px solid var(--line);
  box-shadow: 0 14px 32px -20px rgba(20, 21, 23, .14);
}
.motion-stage:hover { transform: translateY(-2px); border-color: var(--accent); }
.motion-head-rail { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: nowrap; }
.motion-preset-rail { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; overflow: visible; padding-bottom: 0; min-width: 0; flex: 1; }
.motion-preset-rail::-webkit-scrollbar { display: none; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  display: inline-block; flex: none; animation: pulseDot 1.8s ease-out infinite;
}

.motion-card-body {
  padding: 14px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  position: relative;
}
:root[data-theme="light"] .motion-card-body { background: #ffffff; }

.hh-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.hh-price-old {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: currentColor;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hh-price-old.lg { font-size: 18px; }
.hh-price-now {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  line-height: 1.15; font-variant-numeric: tabular-nums;
}
.hh-price-now.lg { font-size: 26px; }

.hh-blue-banner {
  border-radius: 20px; padding: 24px 26px;
  background: linear-gradient(135deg, #0070ff 0%, #0055d4 100%);
  color: #ffffff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 14px 32px -18px rgba(0, 112, 255, .55);
}
.hh-blue-banner .muted, .hh-blue-banner .small { color: rgba(255, 255, 255, .86); }
.hh-blue-banner .hh-price-old { color: rgba(255, 255, 255, .72); }
.hh-blue-banner .hh-price-now { color: #ffffff; }

/* строгая палитра тегов по брендбуку: Серый (база) + Синий hh (выгода) + Оранжевый (уведомление / ставка ниже анкеты) */
.hh-diff-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; max-width: 100%; }
.tutor-card .hh-diff-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1px;
}
.tutor-card .hh-diff-strip::-webkit-scrollbar {
  display: none;
}
.tutor-card .hh-diff-strip .diff-tag {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 3px 9px;
  font-size: 11.5px;
  line-height: 1.25;
}
.diff-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.diff-tag.market {
  background: var(--surface-2); border-color: var(--line); color: var(--muted);
  text-decoration: line-through;
}
.diff-tag.rate {
  background: var(--surface-2); border-color: var(--line); color: var(--ink-2);
}
.diff-tag.save-hot {
  background: var(--notif-soft); border-color: color-mix(in srgb, var(--notif) 30%, transparent); color: var(--notif);
}
.diff-tag.save-cool,
.diff-tag.save-cyan {
  background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent);
}
.diff-tag.pro {
  background: var(--pro-soft); border-color: color-mix(in srgb, var(--pro) 34%, transparent); color: var(--pro);
}
.diff-tag.confirm {
  background: var(--confirm-soft); border-color: color-mix(in srgb, var(--confirm) 32%, transparent); color: var(--confirm);
}

/* ползунок времени 10:00–20:00: 3 варианта (чистый, с редкими рисками, полная линейка) */
.hh-time-picker {
  padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); display: grid; gap: 7px;
}
.hh-time-val {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 700; transition: background-color .2s ease, color .2s ease;
}
.hh-time-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  border-radius: 999px; outline: none; cursor: pointer; margin: 12px 0; border: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--pct, 20%), var(--line-strong) var(--pct, 20%), var(--line-strong) 100%);
}
.hh-time-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 24px; border-radius: 5px;
  background: linear-gradient(180deg, color-mix(in srgb, #fff 28%, var(--accent)) 0%, var(--accent) 52%, color-mix(in srgb, #000 14%, var(--accent)) 100%);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent), 0 3px 10px rgba(0, 112, 255, .36);
  cursor: grab;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hh-time-range.is-ruler { height: 7px; }
.hh-time-range.is-ruler::-webkit-slider-thumb {
  width: 12px; height: 26px; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent) 0 4px, rgba(255,255,255,.92) 4px 5.5px, var(--accent) 5.5px 12px);
}
.hh-time-range.is-ruler::-moz-range-thumb {
  width: 12px; height: 26px; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent) 0 4px, rgba(255,255,255,.92) 4px 5.5px, var(--accent) 5.5px 12px);
  border: 2px solid var(--surface);
}
.hh-time-range::-webkit-slider-thumb:hover,
.hh-time-range:focus-visible::-webkit-slider-thumb {
  transform: scaleY(1.1);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 4px 12px rgba(0, 112, 255, .44);
}
.hh-time-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scaleY(1.14); }
.hh-time-range::-moz-range-thumb {
  width: 10px; height: 24px; border-radius: 5px;
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent), 0 3px 10px rgba(0, 112, 255, .36);
  cursor: grab;
}
.hh-slider-ticks {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 5px; height: 10px; margin-top: -4px; margin-bottom: 2px;
}
.hh-slider-ticks i {
  display: block; width: 1.5px; height: 6px; border-radius: 2px;
  background: color-mix(in srgb, var(--muted) 55%, var(--line-strong));
  transition: background-color .18s ease, height .18s ease;
}
.hh-slider-ticks.ruler i { height: 5px; width: 1.5px; background: color-mix(in srgb, var(--muted) 52%, var(--line-strong)); }
.hh-slider-ticks.ruler i.major { height: 10px; width: 2px; background: color-mix(in srgb, var(--ink-2) 55%, var(--muted)); }
.hh-slider-ticks i.on,
.hh-slider-ticks i.active { background: var(--accent); height: 11px; }
.hh-time-ticks {
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--muted); font-family: var(--font-mono); line-height: 1;
}

/* единый сегментный степпер цены -50 ₽ / +50 ₽ без двойных рамок */
.hh-price-stepper {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(max-content, 1fr) minmax(64px, auto);
  gap: 4px; align-items: center;
  min-height: 44px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
}
.hh-price-stepper.compact {
  grid-template-columns: minmax(52px, auto) minmax(max-content, 1fr) minmax(52px, auto);
  min-height: 38px;
}
.hh-step-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 36px; padding: 0 10px; border-radius: 9px; border: 0;
  background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(20, 21, 23, .06);
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
.hh-price-stepper.compact .hh-step-btn { min-height: 30px; font-size: 12.5px; padding: 0 8px; }
.hh-step-btn:hover { background: var(--accent-soft); color: var(--accent); }
.hh-step-btn:active, .hh-step-btn.is-hit { transform: scale(.96); background: var(--accent); color: #fff; }
.hh-step-readout {
  display: flex; align-items: center; justify-content: center; text-align: center;
  gap: 4px; line-height: 1.15; padding: 2px 8px; min-width: 112px; white-space: nowrap;
}
.hh-step-readout b {
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.hh-price-stepper.compact .hh-step-readout b { font-size: 14px; }

.motion-bid-btn {
  position: relative; overflow: visible; width: 100%; justify-content: center;
  font-size: 15px; font-weight: 700; min-height: 46px;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, background-color .38s cubic-bezier(.22, 1, .36, 1), border-color .38s ease, color .25s ease;
}
.motion-bid-btn.is-pressed {
  transform: scale(.96);
  box-shadow: 0 0 0 4px rgba(47, 124, 255, .36);
}
.motion-bid-btn.is-pressed::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit;
  border: 2px solid #7cb0ff; pointer-events: none; animation: btnWave .65s ease-out infinite;
}

.hh-motion-status {
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; font-size: 12.5px;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.hh-motion-status.sent {
  padding: 11px 13px; border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--notif) 52%, var(--line));
  background: color-mix(in srgb, var(--notif-soft) 28%, var(--surface));
  color: var(--ink);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--notif) 38%, transparent);
  transition: border-color .38s ease, background-color .38s ease, box-shadow .38s ease;
}

.motion-cursor {
  position: absolute; z-index: 8; pointer-events: none;
  width: 26px; height: 26px; transform: translate(-4px, -4px);
  transition: left .65s cubic-bezier(.22, 1, .36, 1), top .65s cubic-bezier(.22, 1, .36, 1), transform .16s ease, opacity .25s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .55));
}
.motion-cursor.clicking { transform: translate(-4px, -4px) scale(.82); }
.motion-cursor .cursor-ring {
  position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #7cb0ff; opacity: 0;
}
.motion-cursor.clicking .cursor-ring { animation: btnWave .48s ease-out 1; }
.motion-stage.paused .motion-cursor { opacity: .35; }

/* бегущая лента тем и сделок */
.marquee-band {
  display: grid; gap: 10px; overflow: hidden; min-width: 0; max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-row { display: flex; width: max-content; gap: 10px; }
.marquee-row.left { animation: marqueeLeft 34s linear infinite; }
.marquee-row.right { animation: marqueeRight 38s linear infinite; }
.marquee-band:hover .marquee-row { animation-play-state: paused; }
.marquee-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 13px; white-space: nowrap; flex: none;
  transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
}
.marquee-pill:hover { border-color: var(--accent); transform: translateY(-1px); background: var(--accent-soft); }
.marquee-pill b { font-weight: 600; }
.marquee-pill span { color: var(--muted); font-size: 12px; }

/* калькулятор выгоды «ниже рынка» */
.savings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: stretch; min-width: 0; }
@media (max-width: 820px) { .savings-grid { grid-template-columns: minmax(0, 1fr); } }
.savings-bar-track {
  height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  overflow: hidden;
}
.savings-bar-fill {
  height: 100%; border-radius: 999px;
  background: var(--accent);
  transition: width .35s cubic-bezier(.22, 1, .36, 1);
}
.savings-bar-fill.muted-fill { background: var(--line-strong); }
.savings-bar-fill.gold-fill {
  background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, .5), 0 2px 10px -2px rgba(197, 155, 95, .52);
}
.savings-gold-label { color: var(--gold-ink); font-weight: 600; }
.savings-gold-txt { color: var(--gold-ink); font-weight: 700; }
.savings-gold-label svg { color: var(--gold-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .savings-gold-label:not(:has(svg)),
  .savings-gold-label > span,
  .savings-gold-txt {
    background: var(--gold-text-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (max-width: 600px) {
  .hero-stage-wrap { padding: 16px; border-radius: 20px; }
  .motion-stage { padding: 14px; border-radius: 18px; }
  .hh-price-stepper { grid-template-columns: 74px minmax(0, 1fr) 74px; }
  .hh-step-btn { padding: 0 6px; font-size: 13px; }
  .hh-time-ticks { font-size: 10px; }
  .hh-blue-banner { padding: 18px; border-radius: 16px; }
}


/* ---------- Расширенный адаптив: @container + планшет + 320px + Лаборатория адаптивности ---------- */
.tutor-card { container-type: inline-size; }
@container (max-width: 410px) {
  .tutor-card .tutor-actions { grid-template-columns: minmax(0, 1fr); }
  .tutor-card .hh-price-stepper { grid-template-columns: 70px minmax(0, 1fr) 70px; }
  .tutor-card .hh-step-btn { padding: 0 6px; font-size: 13px; }
}
@container (max-width: 340px) {
  .tutor-card .hh-price-stepper { grid-template-columns: 62px minmax(0, 1fr) 62px; }
  .tutor-card .hh-step-readout b { font-size: 14.5px; }
  .tutor-card .tutor-rate { font-size: 18px; }
}

@media (min-width: 1360px) { .land-page { max-width: 1340px; } }
@media (max-width: 1080px) and (min-width: 681px) {
  .tutor-grid, .bb-blueprint-grid, .bb-sliders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .land-page { gap: 26px; padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px)); }
  .land-top { padding: 8px 9px; gap: 5px; }
  .land-top-actions .btn { padding: 5px 8px; font-size: 12px; }
}
@media (max-width: 360px) {
  .hh-price-stepper { grid-template-columns: 66px minmax(0, 1fr) 66px; }
  .hh-step-btn { padding: 0 6px; font-size: 12.5px; }
  .hh-step-readout b { font-size: 14.5px; }
  .day-cir { min-width: 54px; padding: 6px 4px; }
  .day-dot { width: auto; height: auto; font-size: 14px; }
}

/* ---------- Расширение лендинга: Квиз-подбор, Аналитика ставок, ИИ, Антифейк, Отзывы, Гарантии, FAQ, Mobile Sticky ---------- */
.land-match-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 14px; align-items: stretch; min-width: 0; }
.land-match-result {
  padding: 18px; border-radius: var(--r);
  border: 1.5px solid color-mix(in srgb, var(--accent) 44%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent-soft) 52%, var(--surface)) 0%, var(--surface) 75%);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0;
}
.land-rates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.rate-bench-card {
  padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  display: grid; gap: 10px; align-content: space-between; text-align: left; cursor: pointer;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), border-color .16s ease, box-shadow .18s ease;
}
.rate-bench-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.rate-bars { display: grid; gap: 5px; }
.rate-bar-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.rate-bar-track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rate-bar-fill { height: 100%; border-radius: 999px; background: var(--line-strong); }
.rate-bar-fill.ours { background: var(--accent); }
.rate-bar-fill.pro { background: var(--pro); }

.land-verify-grid, .land-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.review-card { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; height: 100%; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.review-rating { font-weight: 700; }
.review-rating svg { width: 12px; height: 12px; fill: currentColor; }
.review-quote { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.review-foot { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.review-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tutor-avatar.review-av { width: 34px; height: 34px; font-size: 12px; border-radius: 50%; flex: none; }
.verified-badge.sm { width: 15px; height: 15px; display: inline-grid; place-items: center; flex: none; vertical-align: middle; }
.verified-badge.sm svg { width: 9px; height: 9px; }
.review-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.review-price-row .hh-price-old { font-size: 13.5px; line-height: 1; }
.review-price-now { font-size: 16px; font-weight: 700; color: var(--accent); line-height: 1; }
.review-price-row .diff-tag { line-height: 1; padding: 3px 9px; }

.tutor-perks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; min-width: 0; }
@media (max-width: 820px) { .tutor-perks-grid { grid-template-columns: minmax(0, 1fr); } }
.tutor-perk-card {
  padding: 14px 15px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line);
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; height: 100%;
}
.tutor-perk-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); flex: none;
}
.tutor-perk-ico svg { width: 17px; height: 17px; display: block; }
.land-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 18px;
  flex-wrap: wrap; padding-bottom: 18px; border-top: 0; min-width: 0;
}
.land-footer-links { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }

.land-trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--confirm-soft) 48%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--confirm) 36%, var(--line));
  min-width: 0;
}
.land-trust-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--confirm-soft); color: var(--confirm);
}
.land-trust-ico svg { width: 20px; height: 20px; }

.land-faq-list { display: grid; gap: 8px; min-width: 0; }
.faq-item {
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; transition: border-color .15s ease;
}
.faq-item.open { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); }
.faq-btn {
  width: 100%; padding: 14px 16px; border: 0; background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.faq-btn:hover { background: var(--surface-2); }
.faq-chev { display: inline-flex; color: var(--muted); transition: transform .2s cubic-bezier(.22, 1, .36, 1), color .15s ease; flex: none; }
.faq-chev svg { width: 17px; height: 17px; }
.faq-item.open .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-ans { padding: 0 16px 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; }

.land-mobile-sticky { display: none; }
@media (max-width: 980px) {
  .land-rates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .land-match-grid, .land-verify-grid, .land-reviews-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .land-rates-grid { grid-template-columns: minmax(0, 1fr); }
  .land-page { padding-bottom: 84px; }
  .land-mobile-sticky {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; max-width: 520px; margin-inline: auto; z-index: 24;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    min-height: 58px; padding: 10px 14px; border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 32px -12px rgba(15, 23, 42, .32);
    transition: opacity .22s ease, transform .22s ease;
  }
  .land-mobile-sticky.is-hidden { opacity: 0; pointer-events: none; transform: translateY(16px); }
  .land-mobile-sticky-copy { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
  .land-mobile-sticky-copy b { font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .land-mobile-sticky-copy span { font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .land-mobile-sticky-btn {
    flex: none; min-height: 38px; padding: 0 18px; border-radius: 999px;
    background: var(--accent); border: 0; color: #ffffff;
    font-weight: 600; white-space: nowrap;
  }
  .land-page[data-inside="1"] .land-mobile-sticky {
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Hero-экран в стиле gemini.google/about/ (чисто чёрный #000000 -> плавный переход в белый #FFFFFF + 4 плавающих фото) ---------- */
.land-hero-banner {
  position: relative; overflow: hidden; border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(170px, 232px) minmax(0, 1fr) minmax(170px, 232px);
  grid-template-areas:
    "c1 copy c2"
    "c3 copy c4"
    "foot foot foot";
  align-items: center; gap: 24px 32px;
  min-height: 600px; padding: 52px 44px 36px;
  background: radial-gradient(ellipse 64% 48% at 50% 44%, rgba(29, 123, 255, .10), transparent 72%), #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 28px 64px -32px rgba(0, 0, 0, .82);
  min-width: 0;
}
.land-page:not(#brandbook-page) > .land-hero-banner {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  margin-top: -8px; border: 0; border-radius: 0 0 42px 42px;
  background: radial-gradient(ellipse 64% 48% at 50% 42%, rgba(29, 123, 255, .09), transparent 72%), #000000;
  padding: 46px max(28px, calc((100vw - 1340px) / 2)) 48px;
  min-height: min(86vh, 760px);
  box-shadow: none;
}
body:not([data-auth="1"]):not([data-fullbleed="1"]):not([data-brandbook="1"]) .land-page:not(#brandbook-page) > .land-hero-banner {
  width: calc(100% + 32px); margin-left: -16px; margin-right: -16px;
}
.land-page:not(#brandbook-page) > #land-market {
  padding-top: 22px;
}
#bb-hero-banner .land-hero-banner { min-height: 480px; padding: 34px 28px 24px; gap: 16px 20px; }

@keyframes geminiFloatEnter {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.94); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes geminiFloatDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(calc(var(--fx, 1) * 8px), -12px, 0) rotate(calc(var(--fx, 1) * .65deg)); }
  66% { transform: translate3d(calc(var(--fx, 1) * -6px), 9px, 0) rotate(calc(var(--fx, 1) * -.55deg)); }
}

.hero-float-card {
  position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0;
  background: transparent; min-width: 0; overflow: visible;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.hero-float-drift {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 24px 54px -18px rgba(0, 0, 0, .88);
  animation:
    geminiFloatEnter .75s cubic-bezier(.2, .8, .2, 1) var(--enter-delay, 0ms) both,
    geminiFloatDrift var(--float-dur, 10s) ease-in-out var(--float-delay, 0s) infinite;
  will-change: transform;
}
.hero-float-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.03);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.hero-float-card:hover .hero-float-photo { transform: scale(1.08); }
.hero-float-card.is-c1 { grid-area: c1; }
.hero-float-card.is-c2 { grid-area: c2; margin-top: 18px; }
.hero-float-card.is-c3 { grid-area: c3; margin-top: -10px; }
.hero-float-card.is-c4 { grid-area: c4; margin-top: 8px; }

html.reduced-motion .hero-float-card,
.is-reduced .hero-float-card { transform: none !important; }
html.reduced-motion .hero-float-drift,
.is-reduced .hero-float-drift { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-float-card { transform: none !important; }
  .hero-float-drift { animation: none !important; }
  .tc-switch-pill.is-anim-on,
  .tc-switch-pill.is-anim-off,
  .tc-switch-pill.is-anim-on *,
  .tc-switch-pill.is-anim-off *,
  .tc-switch-pill.is-anim-on *::after,
  .tc-switch-pill.is-anim-off *::after,
  .top-notif-btn svg,
  .top-notif-badge,
  .tc-pay-notify-btn.is-just-sent,
  .tc-pay-notify-btn.is-just-sent .tc-pay-check,
  .tc-pay-notify-btn.is-just-sent .tc-pay-check-ring,
  .tc-pay-notify-btn.is-just-sent .tc-pay-check-mark { animation-duration: .01ms !important; }
  .notif-inbox-item { transition-duration: .01ms !important; }
}

.hero-banner-top {
  grid-area: copy; position: relative; z-index: 2;
  display: grid; justify-items: center; text-align: center;
  gap: 18px; max-width: 620px; margin-inline: auto; min-width: 0;
}
.hero-banner-h1 {
  margin: 0; font-family: "Google Sans", "Onest", "Outfit", var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.9vw, 56px); line-height: 1.06; letter-spacing: -.03em;
  color: #ffffff; max-width: 17ch;
}
.hero-banner-sub {
  margin: 0; font-size: clamp(15px, 1.45vw, 18px); line-height: 1.48;
  color: rgba(255, 255, 255, .74); max-width: 44ch;
}
.hero-banner-ctas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-width: 0;
}
.land-hero-banner .hero-cta-primary,
.hero-cta-primary {
  min-height: 48px; padding: 0 32px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; white-space: nowrap; width: auto;
  color: #ffffff;
  background: #1a73e8;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 28px -8px rgba(26, 115, 232, .56);
}
.land-hero-banner .hero-cta-primary:hover:not(:disabled),
.hero-cta-primary:hover:not(:disabled) {
  background: #2f86ff;
  border-color: rgba(255, 255, 255, .32);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -8px rgba(29, 123, 255, .68);
}
.land-hero-banner .hero-cta-primary.is-confirmed,
.hero-cta-primary.is-confirmed {
  background: var(--confirm);
  border-color: var(--confirm);
  color: #ffffff;
  box-shadow: 0 12px 26px -10px rgba(34, 197, 94, .48);
}

.hero-banner-foot {
  grid-area: foot; position: relative; z-index: 1;
  display: grid; justify-items: center; text-align: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.hero-banner-kpis {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 14px 40px; min-width: 0;
}
.hero-banner-kpi { display: grid; justify-items: center; text-align: center; gap: 2px; min-width: 0; }
.hero-banner-kpi b {
  font-family: "Google Sans", "Onest", "Outfit", var(--font-display); font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600; line-height: 1.05; letter-spacing: -.02em; color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.hero-banner-kpi span { font-size: 12.5px; color: rgba(255, 255, 255, .68); }
.hero-banner-note {
  margin: 0; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .62);
}
.hero-banner-note a { color: #8ab4f8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.land-search-strip {
  display: grid; gap: 12px; min-width: 0;
  margin-top: -12px;
}
.land-search-bar {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 7px 7px 7px 16px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, .22);
}
.land-search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.land-search-bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.land-search-bar input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 15px; padding: 8px 4px; outline: none;
}
.land-search-bar input::placeholder { color: var(--muted); }
.land-search-bar .btn { min-height: 42px; padding: 0 22px; flex: none; font-weight: 600; }

@media (max-width: 919px) {
  .land-hero-banner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    grid-template-areas:
      "c1 c2"
      "copy copy"
      "c3 c4"
      "foot foot";
    min-height: 0; padding: 20px 14px 24px; border-radius: 22px; gap: 20px 14px;
  }
  .land-page:not(#brandbook-page) > .land-hero-banner {
    border-radius: 0 0 32px 32px;
    padding: 20px 14px 32px;
    min-height: 0;
  }
  .hero-float-drift { border-radius: 20px; }
  .hero-float-card.is-c1 { margin-top: 0; }
  .hero-float-card.is-c2 { margin-top: 26px; }
  .hero-float-card.is-c3 { margin-top: 18px; }
  .hero-float-card.is-c4 { margin-top: -6px; }
  .hero-banner-top { gap: 12px; padding-block: 6px; max-width: 100%; }
  .hero-banner-h1 { font-size: clamp(29px, 7.8vw, 40px); line-height: 1.08; }
  .hero-banner-sub { font-size: 14.5px; line-height: 1.45; }
  .hero-banner-ctas { width: 100%; justify-content: center; }
  .land-hero-banner .hero-cta-primary,
  .hero-cta-primary { width: auto; min-height: 46px; padding: 0 28px; justify-content: center; }
  .hero-banner-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .hero-banner-kpi b { font-size: clamp(16px, 4.4vw, 20px); white-space: nowrap; }
  .hero-banner-kpi span { font-size: 11px; line-height: 1.25; }
}
@media (max-width: 680px) {
  .land-top { padding: 10px 14px; border-radius: 0; }
  .land-top + .land-hero-banner { margin-top: -12px; }
  .land-page:not(#brandbook-page) > .land-hero-banner { margin-top: -36px; padding-top: 22px; }
  .land-search-strip { margin-top: -4px; }
  .land-search-bar { flex-wrap: nowrap; padding: 6px 6px 6px 12px; gap: 6px; }
  .land-search-bar input { font-size: 14px; padding: 7px 2px; }
  .land-search-bar .btn { min-height: 38px; padding: 0 14px; width: auto; }
}

/* ---------- Личный кабинет преподавателя (в едином брендбуке hh + Саха) ---------- */
.tc-req-section {
  display: grid; gap: 12px; min-width: 0;
  background: transparent; border: 0; padding: 0; box-shadow: none;
}
.tc-req-groups { display: grid; gap: 18px; min-width: 0; }
.tc-req-group { display: grid; gap: 10px; min-width: 0; }
.tc-req-group-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc-req-group-title { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: -.01em; }
.tc-req-list { display: grid; gap: 10px; min-width: 0; }
.tc-req-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.tc-req-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.tc-req-who .tutor-avatar { width: 32px; height: 32px; font-size: 12px; flex: none; }
.tc-req-who b { font-size: 14px !important; line-height: 1.2; overflow-wrap: anywhere; }
.tc-req-who .small { font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-req-head-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  flex: none; text-align: right; min-width: 0;
}
.tc-req-head-right > .chip { flex: none; font-size: 11px; padding: 2px 7px; }
.tc-req-price-row {
  gap: 4px 6px; justify-content: flex-end; align-items: baseline; flex-wrap: nowrap;
}
.tc-req-price-row .hh-price-old { font-size: 12.5px; }
.tc-req-price-row .hh-price-now { font-size: 17px; line-height: 1.15; }
.tc-req-card {
  display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tc-req-card > .tc-req-offer-bar,
.tc-req-card > .tc-req-accepted-body {
  margin-top: auto;
}
.tc-req-card.is-pending { border-color: var(--line); }
.tc-req-card.is-accepted {
  border-color: color-mix(in srgb, var(--confirm) 44%, var(--line));
  background: color-mix(in srgb, var(--confirm-soft) 18%, var(--surface));
}
.tc-req-meta-stack { display: grid; gap: 5px; min-width: 0; }
.tc-req-price-block { min-width: 0; }
.tc-req-slot-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.tc-req-slot-line svg { width: 13px; height: 13px; color: var(--muted); flex: none; }
.tc-req-slot-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 32px; padding: 4px 9px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tc-req-slot-btn:hover,
.tc-req-slot-btn.is-open {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}
.tc-req-slot-main { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.tc-req-slot-main svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.tc-req-slot-edit { font-size: 12px; font-weight: 600; color: var(--accent); flex: none; white-space: nowrap; }
.tc-sched-box.is-editing {
  display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--surface-2); width: 100%;
}
.tc-sched-days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tc-sched-hours-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.tc-sched-days-grid .chip-btn,
.tc-sched-hours-grid .chip-btn {
  min-height: 28px; padding: 0 4px; font-size: 11.5px;
  justify-content: center; text-align: center; font-variant-numeric: tabular-nums;
}
.tc-sched-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .tc-sched-hours-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tc-sched-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}
.tc-req-card .hh-diff-strip.is-1row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  width: 100%; max-width: 100%; min-width: 0;
  overflow: visible;
}
.tc-diff-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; width: 100%; max-width: 100%; }
.tc-diff-row > * { flex: 0 0 auto; }
.tc-req-card .hh-diff-strip.is-1row .diff-tag {
  padding: 2px 7px; font-size: 11px; line-height: 1.2; white-space: nowrap;
}
.lead-submit-btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.lead-submit-btn svg {
  flex: none;
}
@media (max-width: 560px) {
  .lead-submit-btn {
    width: 100%;
    padding: 10px 14px;
  }
}
.tc-req-offer-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.tc-req-card .hh-price-stepper.compact {
  width: 100%; min-height: 34px; padding: 2px; border-radius: 10px;
  grid-template-columns: minmax(48px, auto) minmax(max-content, 1fr) minmax(48px, auto);
}
.tc-req-card .hh-price-stepper.compact .hh-step-btn {
  min-height: 28px; padding: 0 8px; font-size: 12px; border-radius: 8px;
}
.tc-req-card .hh-price-stepper.compact .hh-step-readout {
  font-size: 13px; padding: 0 6px;
}
.tc-req-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; min-width: 0; }
.tc-req-actions .btn.sm { min-height: 34px; padding: 5px 11px; font-size: 12.5px; border-radius: 10px; }
.tc-req-actions-sub { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-req-actions-sub .btn { flex: 1 1 130px; }
@media (min-width: 900px) {
  .tc-req-filter-seg {
    width: fit-content;
    min-width: 340px;
    max-width: 460px;
  }
  .tc-req-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .tc-req-list.is-single {
    grid-template-columns: minmax(0, 1fr);
  }
  .tc-req-list:has(.tc-sched-box.is-editing) {
    align-items: start;
  }
  .tc-req-card {
    padding: 11px 13px;
    gap: 8px;
  }
  .tc-req-card:hover {
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  }
  .tc-req-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
@media (min-width: 1180px) {
  .tc-req-offer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .tc-req-offer-bar .hh-price-stepper.compact {
    width: auto;
    flex: 0 0 auto;
  }
  .tc-req-offer-bar .tc-req-actions {
    flex: 1 1 215px;
    min-width: 0;
  }
}
@media (max-width: 420px) {
  .tc-req-price-row .hh-price-now { font-size: 15.5px; }
  .tc-req-price-row .hh-price-old { font-size: 11.5px; }
  .tc-req-actions .btn.sm { padding: 5px 9px; font-size: 12px; }
}
.tc-req-card .msg-channel-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.tc-req-card .msg-channel-bar .btn-msg { width: 100%; min-width: 0; justify-content: center; padding-inline: 6px; font-size: 12px; }
.tc-connect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.tc-connect-row.is-no-video {
  grid-template-columns: minmax(0, 1fr);
}
.tc-connect-row .tc-connect-btn {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 13px;
  gap: 6px;
  justify-content: center;
}
.tc-req-card .tc-connect-row .msg-channel-bar,
.study-lesson-card .tc-connect-row .msg-channel-bar,
.tc-connect-row .msg-channel-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  flex: none;
}
.tc-req-card .tc-connect-row .msg-channel-bar .btn-msg,
.study-lesson-card .tc-connect-row .msg-channel-bar .btn-msg,
.tc-connect-row .msg-channel-bar .btn-msg {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
}
.tc-req-card .tc-connect-row.is-no-video .msg-channel-bar,
.study-lesson-card .tc-connect-row.is-no-video .msg-channel-bar,
.tc-connect-row.is-no-video .msg-channel-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}
.tc-req-card .tc-connect-row.is-no-video .msg-channel-bar .btn-msg,
.study-lesson-card .tc-connect-row.is-no-video .msg-channel-bar .btn-msg,
.tc-connect-row.is-no-video .msg-channel-bar .btn-msg {
  width: 100%;
}
@media (max-width: 420px) {
  .tc-connect-row { gap: 5px; }
  .tc-connect-row .tc-connect-btn { min-height: 34px; padding: 5px 9px; font-size: 12.5px; }
  .tc-req-card .tc-connect-row .msg-channel-bar,
  .study-lesson-card .tc-connect-row .msg-channel-bar,
  .tc-connect-row .msg-channel-bar { gap: 4px; }
  .tc-req-card .tc-connect-row .msg-channel-bar .btn-msg,
  .study-lesson-card .tc-connect-row .msg-channel-bar .btn-msg,
  .tc-connect-row .msg-channel-bar .btn-msg {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}
.tc-req-quote {
  padding: 6px 10px; border-radius: 9px; background: var(--surface-2);
  border: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.38;
}
.tc-hold-hint {
  font-size: 11px; line-height: 1.2; text-align: right; margin-top: -3px; opacity: .82;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-pay-box {
  display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); min-width: 0;
}
.tc-pay-box.is-unpaid {
  border-color: color-mix(in srgb, var(--notif) 36%, var(--line));
  background: color-mix(in srgb, var(--notif-soft) 36%, var(--surface));
}
.tc-pay-box.is-paid {
  border-color: color-mix(in srgb, var(--confirm) 36%, var(--line));
  background: color-mix(in srgb, var(--confirm-soft) 38%, var(--surface));
}
.tc-pay-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tc-pay-info { display: grid; gap: 2px; min-width: 0; flex: 1 1 150px; }
.tc-pay-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); line-height: 1.3; }
.tc-pay-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--notif); }
.tc-pay-box.is-paid .tc-pay-dot { background: var(--confirm); }
.tc-pay-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tc-pay-notify-btn {
  width: 100%; justify-content: center;
  border-color: color-mix(in srgb, var(--notif) 40%, var(--line)); color: var(--notif); background: var(--surface);
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, opacity .2s ease, transform .18s ease;
}
.tc-pay-notify-btn svg { width: 15px; height: 15px; }
.tc-pay-notify-btn.is-sent { border-color: var(--line-strong); color: var(--ink-2); }
.tc-pay-notify-btn.is-cooldown,
.tc-pay-notify-btn.is-cooldown:disabled {
  cursor: not-allowed;
  opacity: .88;
  border-color: color-mix(in srgb, var(--confirm) 28%, var(--line));
  background: color-mix(in srgb, var(--confirm-soft) 24%, var(--surface));
  color: var(--ink-2);
}
.tc-pay-notify-btn.is-just-sent,
.tc-pay-notify-btn.is-just-sent:disabled {
  opacity: 1;
  border-color: color-mix(in srgb, var(--confirm) 48%, var(--line));
  background: color-mix(in srgb, var(--confirm-soft) 62%, var(--surface));
  color: var(--confirm);
  animation: tc-pay-btn-pop .38s cubic-bezier(.22, 1, .36, 1);
}
.tc-pay-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--confirm);
}
.tc-pay-check svg { width: 17px; height: 17px; }
.tc-pay-notify-btn.is-just-sent .tc-pay-check {
  animation: tc-pay-check-pop .42s cubic-bezier(.22, 1, .36, 1);
}
.tc-pay-notify-btn.is-just-sent .tc-pay-check-ring {
  stroke-dasharray: 54;
  stroke-dashoffset: 54;
  animation: tc-pay-ring-draw .36s cubic-bezier(.22, 1, .36, 1) forwards;
}
.tc-pay-notify-btn.is-just-sent .tc-pay-check-mark {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: tc-pay-mark-draw .3s .14s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes tc-pay-btn-pop {
  0% { transform: scale(.96); }
  55% { transform: scale(1.015); }
  100% { transform: scale(1); }
}
@keyframes tc-pay-check-pop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes tc-pay-ring-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes tc-pay-mark-draw {
  to { stroke-dashoffset: 0; }
}
.tc-notify-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 8px; padding: 7px 10px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line); min-width: 0;
}
.tc-notify-top { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.tc-notify-title { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tc-notify-title svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.tc-notify-box .tc-switch-pill {
  min-height: 26px; padding: 2px 8px 2px 3px; gap: 6px; font-size: 11.5px;
}
.tc-notify-box .tc-switch-track {
  width: 30px; height: 18px; flex: 0 0 30px;
}
.tc-notify-box .tc-switch-track::after {
  width: 14px; height: 14px; top: 2px; left: 2px;
}
.tc-notify-box .tc-switch-pill.is-on .tc-switch-track::after {
  transform: translateX(12px);
}
@keyframes tc-knob-sm-on {
  0% { transform: translateX(0) scale(.92); }
  60% { transform: translateX(13px) scale(1.04); }
  100% { transform: translateX(12px) scale(1); }
}
@keyframes tc-knob-sm-off {
  0% { transform: translateX(12px) scale(.92); }
  60% { transform: translateX(-1px) scale(1.04); }
  100% { transform: translateX(0) scale(1); }
}
.tc-notify-box .tc-switch-pill.is-anim-on .tc-switch-track::after { animation: tc-knob-sm-on .28s cubic-bezier(.22, 1, .36, 1) both; }
.tc-notify-box .tc-switch-pill.is-anim-off .tc-switch-track::after { animation: tc-knob-sm-off .28s cubic-bezier(.22, 1, .36, 1) both; }
.tc-notify-box.is-off .tc-lead-pills { opacity: .55; }
.tc-notify-box .tc-lead-pills {
  display: inline-flex; align-items: center; gap: 4px; flex: none; min-width: 0;
}
.tc-notify-box .tc-lead-pill {
  min-height: 26px; padding: 2px 9px; border-radius: 8px; font-size: 11.5px;
}
@media (max-width: 560px) {
  .tc-notify-box {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 7px 9px;
  }
  .tc-notify-top {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
  }
  .tc-notify-box .tc-lead-pills {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; width: 100%;
  }
  .tc-notify-box .tc-lead-pill {
    min-height: 28px; padding: 3px 4px; font-size: 11.5px;
  }
}
.tc-switch-pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 36px; padding: 4px 12px 4px 5px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color .24s ease, border-color .24s ease, color .24s ease, transform .14s ease;
}
.tc-switch-pill:active { transform: scale(.96); }
.tc-switch-track {
  position: relative; width: 40px; height: 24px; border-radius: 999px;
  background: var(--line-strong); flex: 0 0 40px;
  transition: background-color .24s ease;
}
.tc-switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}
.tc-switch-pill.is-on {
  background: var(--confirm-soft); border-color: color-mix(in srgb, var(--confirm) 45%, var(--line)); color: var(--confirm);
}
.tc-switch-pill.is-on .tc-switch-track { background: var(--confirm); }
.tc-switch-pill.is-on .tc-switch-track::after { transform: translateX(16px); }
@keyframes tc-knob-on {
  0% { transform: translateX(0) scale(.92); }
  60% { transform: translateX(17.5px) scale(1.04); }
  100% { transform: translateX(16px) scale(1); }
}
@keyframes tc-knob-off {
  0% { transform: translateX(16px) scale(.92); }
  60% { transform: translateX(-1.5px) scale(1.04); }
  100% { transform: translateX(0) scale(1); }
}
@keyframes tc-track-on {
  0% { background: var(--line-strong); }
  100% { background: var(--confirm); }
}
@keyframes tc-track-off {
  0% { background: var(--confirm); }
  100% { background: var(--line-strong); }
}
@keyframes tc-pill-on {
  0% { background: var(--surface); border-color: var(--line-strong); }
  100% { background: var(--confirm-soft); border-color: color-mix(in srgb, var(--confirm) 45%, var(--line)); }
}
@keyframes tc-pill-off {
  0% { background: var(--confirm-soft); border-color: color-mix(in srgb, var(--confirm) 45%, var(--line)); }
  100% { background: var(--surface); border-color: var(--line-strong); }
}
.tc-switch-pill.is-anim-on { animation: tc-pill-on .26s ease both; }
.tc-switch-pill.is-anim-on .tc-switch-track { animation: tc-track-on .26s ease both; }
.tc-switch-pill.is-anim-on .tc-switch-track::after { animation: tc-knob-on .28s cubic-bezier(.22, 1, .36, 1) both; }
.tc-switch-pill.is-anim-off { animation: tc-pill-off .26s ease both; }
.tc-switch-pill.is-anim-off .tc-switch-track { animation: tc-track-off .26s ease both; }
.tc-switch-pill.is-anim-off .tc-switch-track::after { animation: tc-knob-off .28s cubic-bezier(.22, 1, .36, 1) both; }
.tc-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none;
}
.tc-status-dot.is-on { background: var(--confirm); box-shadow: 0 0 0 2px color-mix(in srgb, var(--confirm) 28%, transparent); }
.tc-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tc-drawer-head .icon-btn { flex: none; }
.tc-wa-master-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.tc-ch-3grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.tc-ch-3grid .auto-ch-pill { width: 100%; justify-content: center; }
.tc-ics-quick-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-ics-area { font-size: 11.5px; line-height: 1.4; min-height: 76px; }
.tc-cal-import-actions { display: grid; gap: 8px; }
.tc-sync-card {
  gap: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.tc-sync-status {
  font-size: 12px;
  color: var(--muted);
}
.tc-sync-status.is-on {
  color: var(--confirm);
  font-weight: 600;
}
.tc-sync-sec {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tc-sync-sec-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.tc-sync-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.tc-sync-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .14s ease, background-color .14s ease;
}
.tc-sync-app-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tc-sync-app-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}
.tc-sync-url-inp {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12.5px;
}
.tc-sync-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.tc-sync-actions-row .btn.sm {
  min-height: 34px;
}
.tc-sync-manual {
  font-size: 12px;
  color: var(--muted);
}
.tc-sync-manual > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--accent);
  padding: 2px 0;
}
.tc-sync-manual > summary::-webkit-details-marker {
  display: none;
}
.tc-sync-manual[open] > summary {
  margin-bottom: 6px;
}
.tc-sync-foot-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.tc-gcal-link-btn.is-bad {
  color: var(--bad);
}
.tc-fee1-banner {
  padding: 9px 12px; border-radius: 12px;
  background: var(--confirm-soft); border: 1px solid color-mix(in srgb, var(--confirm) 35%, var(--line));
  color: var(--confirm); font-size: 13px; line-height: 1.35;
}
.tc-lead-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.tc-lead-pill {
  min-height: 32px; padding: 4px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 12px; font-weight: 600; white-space: nowrap; text-align: center; cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.tc-lead-pill.is-on,
.tc-lead-pill[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700;
}
.tc-prof-compact-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 13px 14px; border-radius: 14px; min-width: 0; max-width: 100%;
}
.tc-prof-compact-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.tc-compact-title { font-size: 14.5px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.tc-compact-chip { font-size: 11px; padding: 2px 8px; min-height: 22px; flex: none; }
.tc-prof-compact-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
}
.tc-prof-preview-btn {
  min-height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; flex: none;
}
.tc-compact-note { font-size: 12.5px; color: var(--muted); line-height: 1.35; min-width: 0; }
.tc-autobump-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 11px 13px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 72%, var(--surface)) 0%, color-mix(in srgb, var(--gold) 18%, var(--surface)) 100%);
  min-width: 0; max-width: 100%;
}
.tc-autobump-panel {
  padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)); min-width: 0;
}
.tc-bump-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-bump-title-wrap { min-width: 0; display: grid; gap: 2px; }
.tc-bump-title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.tc-bump-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tc-bump-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.btn.tc-bump-manual-btn {
  flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 0 12px; font-size: 13px; justify-content: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface); border-color: color-mix(in srgb, var(--gold) 44%, var(--line)); color: var(--ink);
}
.btn.tc-bump-manual-btn.is-confirmed,
.btn.tc-bump-manual-btn.is-confirmed:disabled {
  background: var(--confirm-soft);
  border-color: color-mix(in srgb, var(--confirm) 52%, var(--line));
  color: var(--confirm-hover);
  -webkit-text-fill-color: var(--confirm-hover);
  opacity: 1;
  box-shadow: none;
  cursor: default;
}
.btn.tc-bump-manual-btn.is-confirmed b {
  color: var(--confirm-hover);
  -webkit-text-fill-color: var(--confirm-hover);
}
.tc-bump-more-btn {
  flex: 0 0 auto; min-height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
}
@media (max-width: 330px) {
  .tc-bump-actions { flex-wrap: wrap; }
  .tc-bump-more-btn { width: 100%; justify-content: center; }
}
.tc-bump-meta-list { gap: 4px; font-size: 12.5px; color: var(--muted); }
.tc-bump-chip { white-space: normal; line-height: 1.3; }
.tc-bump-hours-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tc-bump-hours-grid .chip-btn { justify-content: center; width: 100%; padding-inline: 6px; font-size: 12px; white-space: nowrap; }
.tc-metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.tc-exp-edu-grid { display: grid; grid-template-columns: minmax(105px, 130px) minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; max-width: 100%; }
.textarea.tc-field-wrap {
  min-height: 48px;
  padding: 9px 12px;
  line-height: 1.4;
  resize: vertical;
  overflow-wrap: anywhere;
  field-sizing: content;
}
.tc-messengers-box {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0 0;
  border-top: 1px solid var(--line); border-radius: 0;
  background: transparent; min-width: 0; max-width: 100%;
}
.tc-messengers-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tc-messengers-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.tc-messengers-count {
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.tc-messengers-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.tc-messengers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; max-width: 100%; }
.tc-msgr-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 11px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); min-width: 0; max-width: 100%;
}
.tc-msgr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.tc-msgr-brand-wrap {
  display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto;
}
.tc-msgr-brand-meta {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0;
}
.tc-msgr-brand { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.tc-msgr-ico {
  width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.tc-msgr-ico svg { width: 15px; height: 15px; }
.tc-msgr-ico.is-tg { background: color-mix(in srgb, #229ed9 14%, transparent); color: #229ed9; }
.tc-msgr-ico.is-wa { background: var(--confirm-soft); color: var(--confirm); }
.tc-msgr-ico.is-max { background: color-mix(in srgb, #6c47ff 14%, transparent); color: #6c47ff; }
.tc-msgr-ico.is-vk { background: color-mix(in srgb, #0077ff 14%, transparent); color: #0077ff; }
.tc-msgr-status {
  font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.tc-msgr-status.is-linked { color: var(--confirm); }
.tc-msgr-row { display: grid; gap: 6px; min-width: 0; }
.tc-msgr-row .field { margin: 0; gap: 0; }
.tc-msgr-row .input,
.tc-msgr-row .phone-field-wrap { background: var(--surface-2); }
.tc-msgr-act {
  width: auto; flex: none; min-height: 30px; padding: 0 11px; border-radius: 9px; font-size: 12.5px;
}
.tc-msgr-act.is-unlink { color: var(--muted); }
.tc-msgr-act.is-unlink:hover { color: var(--bad); }
.tc-profile-form .hh-seg.equal button { white-space: normal; line-height: 1.25; padding: 8px 10px; text-align: center; }
.tc-hh-meter {
  height: 6px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); overflow: hidden;
}
.tc-hh-meter > i {
  display: block; height: 100%; border-radius: inherit;
  background: var(--gold-grad); transition: width .22s ease;
}
.tc-tag-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tag {
  min-height: 32px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.tc-tag[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600;
}
.tc-account-section {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; max-width: 100%;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.tc-account-section .tc-photo-row,
.tc-account-section > .field .input,
.tc-account-section .tc-two-col .input,
.tc-account-section .tc-two-col .select,
.tc-account-section .tc-two-col .hh-select-trigger {
  background: var(--surface);
}
.tc-section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; min-width: 0;
}
.tc-sp-section { min-width: 0; max-width: 100%; }
.tc-sp-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 10px; min-width: 0; max-width: 100%;
}
.tc-sp-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 13px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); min-width: 0; max-width: 100%;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.tc-sp-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 16%, var(--surface));
}
.tc-sp-card.is-editing {
  grid-column: 1 / -1;
  background: var(--surface);
}
.tc-sp-card.is-editing .tc-prof-compact-card {
  background: var(--surface-2);
  box-shadow: none;
}
.tc-sp-draft-wrap {
  padding: 14px; border-radius: 16px;
  border: 1px solid var(--accent); background: var(--surface); min-width: 0; max-width: 100%;
}
.tc-sp-draft-wrap .tc-sp-editor {
  border-top: 0; padding-top: 0;
}
.tc-sp-card.is-hidden:not(.is-active) {
  background: var(--surface-2);
}
.tc-sp-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; min-width: 0;
}
.tc-sp-title-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0;
}
.tc-sp-subj {
  font-size: 14.5px; font-weight: 700; line-height: 1.25; color: var(--ink);
}
.tc-sp-status {
  font-size: 11px; min-height: 20px; padding: 2px 7px;
}
.tc-sp-off-chip {
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.tc-sp-headline {
  font-size: 13px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere;
}
.tc-sp-price {
  flex: none; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.tc-sp-card-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.35;
}
.tc-sp-card-actions {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  margin-top: auto; padding-top: 4px;
}
.tc-sp-card-actions .btn {
  height: 36px; min-height: 36px; padding: 0 11px; border-radius: 10px; font-size: 13px; box-sizing: border-box;
}
.tc-sp-edit-btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
.tc-sp-card-actions .btn.tc-sp-bump-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.tc-sp-card-actions .btn.tc-sp-bump-btn:not(.is-confirmed) {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  color: var(--ink);
}
.tc-sp-card-actions .btn.tc-sp-bump-btn:not(:disabled):not(.is-confirmed):hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}
.tc-sp-card-actions .btn.tc-sp-bump-btn:disabled:not(.is-confirmed) {
  opacity: .48;
  cursor: not-allowed;
}
.tc-sp-card-actions .btn.tc-sp-bump-btn svg { flex: none; }
.tc-sp-card-actions .btn.tc-sp-bump-btn.is-confirmed {
  padding: 0 10px;
  font-size: 12.5px;
}
.tc-sp-pub-btn, .tc-sp-del-btn { flex: 0 0 auto; white-space: nowrap; }
.tc-sp-del-btn { color: var(--bad); }
.tc-sp-card:not(.is-editing) .tc-sp-card-actions:not(.is-confirming) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.tc-sp-card:not(.is-editing) .tc-sp-card-actions:not(.is-confirming) .btn {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  justify-content: center;
}
.tc-sp-card:not(.is-editing) .tc-sp-card-actions:not(.is-confirming) .tc-sp-bump-btn.is-confirmed {
  padding: 0 6px;
  font-size: 12px;
}
.tc-sp-confirm {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  width: 100%; padding: 6px 8px 6px 12px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bad) 26%, var(--line));
  background: color-mix(in srgb, var(--bad) 7%, var(--surface-2));
}
.tc-sp-confirm-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.tc-sp-confirm-btns { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tc-sp-confirm .btn { min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; }
.tc-sp-confirm .btn.bad {
  background: var(--bad); border-color: var(--bad); color: #fff;
}
.tc-sp-empty { gap: 8px; }
.tc-sp-editor {
  padding: 16px 0 0; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; background: transparent; min-width: 0;
}
.tc-sp-editor-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; padding-bottom: 2px; color: var(--ink);
}
.tc-sp-editor .day-cir:not(.on),
.tc-sp-editor .hr-cir:not(.on),
.tc-sp-editor .tc-tag:not([aria-pressed="true"]),
.tc-sp-editor .input,
.tc-sp-editor .textarea,
.tc-sp-editor .hh-select-trigger,
.tc-sp-editor .hh-multi-trigger {
  background: var(--surface);
}
.tc-sp-slots-box {
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.tc-sp-slots-box .cal-days.is-7days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 2px 0 4px;
}
.tc-sp-slots-box .day-cir {
  flex: none;
  width: 100%;
  min-width: 0;
  padding: 7px 2px;
  gap: 2px;
  border-radius: 10px;
}
.tc-sp-slots-box .day-wd { font-size: 10.5px; line-height: 1.15; }
.tc-sp-slots-box .day-dot { font-size: 15px; min-height: 20px; line-height: 1.1; }
.tc-sp-slots-box .day-cnt { font-size: 9.5px; line-height: 1.1; }
@media (max-width: 430px) {
  .tc-sp-slots-box .cal-days.is-7days { gap: 3px; }
  .tc-sp-slots-box .day-cir { padding: 6px 1px; border-radius: 9px; }
  .tc-sp-slots-box .day-wd { font-size: 10px; }
  .tc-sp-slots-box .day-dot { font-size: 14px; min-height: 18px; }
  .tc-sp-slots-box .day-cnt { font-size: 8.5px; }
}
@media (max-width: 600px) {
  .tc-sp-slots-box .hour-circles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .tc-sp-slots-box .hr-cir {
    min-height: 38px;
    padding: 5px 7px;
    font-size: 12px;
    gap: 3px;
  }
}
@media (max-width: 350px) {
  .tc-sp-slots-box .hour-circles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tc-cal-hours { display: grid; gap: 8px; min-width: 0; }
.tc-cal-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); min-width: 0;
}
.tc-cal-slot.is-open { background: color-mix(in srgb, var(--accent-soft) 24%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.tc-cal-slot.is-booked { background: color-mix(in srgb, var(--confirm-soft) 24%, var(--surface)); border-color: color-mix(in srgb, var(--confirm) 42%, var(--line)); }
.tc-cal-slot.is-pending { background: color-mix(in srgb, var(--notif-soft) 28%, var(--surface)); border-color: color-mix(in srgb, var(--notif) 44%, var(--line)); }
.tc-cal-time {
  min-width: 58px; font-weight: 700; font-size: 14px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tc-bar-chart {
  position: relative;
  display: grid; grid-template-columns: repeat(var(--bar-count, 7), minmax(0, 1fr)); gap: 4px;
  align-items: center; height: 167px; padding: 8px 8px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.tc-bar-chart.is-scroll {
  grid-template-columns: repeat(var(--bar-count, 30), 48px);
  justify-content: start;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.tc-bar-chart.is-scroll .tc-bar-lbl { font-size: 11px; white-space: nowrap; }
.tc-bar-chart.is-dense { gap: 2px; padding: 8px 6px; }
.tc-bar-chart.is-dense .tc-bar-col { padding: 4px 1px; }
.tc-bar-chart.is-dense .tc-bar-val { font-size: 10px; }
.tc-bar-chart.is-dense .tc-bar-lbl { font-size: 10.5px; }
.tc-bar-col {
  display: grid; grid-template-rows: 16px 92px 16px; gap: 6px; height: 149px;
  align-items: center; justify-items: center; min-width: 0;
  background: transparent; border: 1.5px solid transparent; border-radius: 999px;
  padding: 5px 2px; font: inherit; color: inherit; width: 100%;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.tc-bar-col:focus:not(:focus-visible) { outline: none; }
.tc-bar-col[data-a] { cursor: pointer; }
.tc-bar-col[data-a]:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.tc-bar-col.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.tc-bar-col.is-active .tc-bar-val,
.tc-bar-col.is-active .tc-bar-lbl { color: var(--accent); font-weight: 700; }
.tc-bar-val { font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.tc-bar-track {
  width: 100%; max-width: 28px; height: 92px; display: flex; align-items: flex-end; justify-content: center; position: relative;
}
.tc-bar-fill {
  width: 100%; border-radius: 999px;
  background: var(--accent); transition: height .2s ease, transform .14s ease;
}
.tc-bar-fill.is-gold { background: var(--gold-grad); }
.tc-bar-col[data-a]:hover .tc-bar-fill { filter: brightness(1.08); }
.tc-bar-chart:not([class*="is-"]) .tc-bar-track {
  width: 16px; max-width: 16px; padding: 2px; border-radius: 999px;
  background: color-mix(in srgb, var(--line-strong) 34%, transparent); overflow: hidden;
}
.tc-bar-chart:not([class*="is-"]) .tc-bar-fill { width: 100%; border-radius: 999px; }
.tc-bar-chart.is-sticks .tc-bar-track::before {
  content: ""; position: absolute; inset: 0 auto 0 50%;
  width: 1px; background: var(--line); transform: translateX(-50%);
}
.tc-bar-chart.is-sticks .tc-bar-fill { width: 6px; border-radius: 999px; position: relative; z-index: 1; }
.tc-bar-chart.is-lollipop .tc-bar-track::before {
  content: ""; position: absolute; inset: 0 auto 0 50%;
  width: 1px; background: color-mix(in srgb, var(--line-strong) 55%, transparent); transform: translateX(-50%);
}
.tc-bar-chart.is-lollipop .tc-bar-fill { width: 4px; border-radius: 999px; position: relative; z-index: 1; }
.tc-bar-chart.is-lollipop .tc-bar-fill::after {
  content: ""; position: absolute; top: -4px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%);
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface-2);
}
.tc-bar-chart.is-lollipop .tc-bar-fill.is-gold::after { background: #C59B5F; }
.tc-bar-chart.is-capsule .tc-bar-track {
  width: 14px; padding: 2px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.tc-bar-chart.is-capsule .tc-bar-fill { width: 100%; border-radius: 999px; }
.tc-bar-chart.is-dual .tc-bar-track {
  max-width: 22px; gap: 4px; align-items: flex-end; justify-content: center;
  border-bottom: 1.5px solid var(--line-strong); padding-bottom: 1px;
}
.tc-bar-chart.is-dual .tc-bar-fill { width: 6.5px; border-radius: 999px; }
.tc-bar-fill.is-bench { background: color-mix(in srgb, var(--pro) 55%, var(--line-strong)); }
.tc-bar-chart.is-range {
  height: auto;
  min-height: 188px;
  padding: 10px 8px;
  align-items: stretch;
}
.tc-bar-chart.is-range .tc-bar-col {
  grid-template-rows: 16px 86px 14px 16px;
  gap: 5px;
  height: auto;
  padding: 5px 2px;
}
.tc-bar-chart.is-range .tc-bar-track {
  height: 86px;
}
.tc-bar-chart.is-range .tc-bar-track::before {
  content: ""; position: absolute; inset: 0 auto 0 50%;
  width: 1px; background: var(--line); transform: translateX(-50%);
}
.tc-bar-chart.is-range .tc-bar-fill {
  width: 4px; border-radius: 999px; position: absolute;
  left: 50%; transform: translateX(-50%); bottom: var(--low, 20%); z-index: 1;
}
.tc-bar-chart.is-range .tc-bar-fill::before,
.tc-bar-chart.is-range .tc-bar-fill::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 0; box-shadow: 0 0 0 2px var(--surface-2); box-sizing: border-box;
}
.tc-bar-chart.is-range .tc-bar-fill::before { top: -4px; }
.tc-bar-chart.is-range .tc-bar-fill::after { bottom: -4px; }
.tc-bar-chart.is-range .tc-bar-fill.is-gold::before,
.tc-bar-chart.is-range .tc-bar-fill.is-gold::after { background: #c59b5f; }
.tc-bar-min { font-size: 10px; line-height: 12px; color: var(--muted); font-family: var(--font-mono); }
.tc-bar-chart.is-combo {
  position: relative; display: block; height: auto; min-height: 167px; padding: 8px 10px;
}
.tc-combo-svg-wrap { width: 100%; display: block; min-width: 0; }
.tc-combo-svg {
  display: block; width: 100%; height: auto; overflow: visible;
}
.tc-combo-grid { stroke: var(--line-strong); stroke-dasharray: 4 4; stroke-width: 1; opacity: .7; }
.tc-combo-baseline { stroke: var(--line-strong); stroke-width: 1; opacity: .85; }
.tc-combo-val { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--muted); }
.tc-combo-lbl { font-family: inherit; font-size: 11.5px; font-weight: 600; fill: var(--ink-2); }
.tc-combo-col[data-a] { cursor: pointer; outline: none; }
.tc-combo-col[data-a]:hover .tc-combo-dot { filter: brightness(1.12); }
.tc-combo-col.is-active .tc-combo-val,
.tc-combo-col.is-active .tc-combo-lbl { fill: var(--accent); font-weight: 700; }
.tc-bar-lbl { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-2); }
.tc-student-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); min-width: 0; max-width: 100%;
}
.tc-cal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-stu-progress {
  display: grid; gap: 7px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); min-width: 0;
}
.tc-stu-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tc-stu-remind-btn { width: 100%; justify-content: center; }
.tc-stu-drop-btn { color: var(--bad); }
.tc-stu-drop-confirm { margin-top: 2px; }
.tc-students-tab-wrap { gap: 12px; min-width: 0; max-width: 100%; }
.tc-stu-mode-seg, .tc-stu-scope-seg { width: 100%; }
.tc-stu-dir { gap: 10px; min-width: 0; max-width: 100%; }
.tc-stu-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.tc-stu-item {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.tc-stu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.tc-stu-ident { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.tc-stu-item .avatar.sm { width: 36px; height: 36px; font-size: 13px; flex: none; }
.tc-stu-item .avatar.is-past {
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); box-shadow: none;
}
.tc-stu-head-txt { display: grid; gap: 2px; min-width: 0; }
.tc-stu-head-txt b {
  font-size: 14.5px; line-height: 1.25; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-stu-head-txt .small {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-stu-more-btn { flex: none; white-space: nowrap; }
.tc-stu-detail {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--line); min-width: 0;
}
.tc-stu-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; min-width: 0; }
.tc-stu-meta-kv { display: grid; gap: 2px; min-width: 0; }
.tc-stu-meta-kv span { font-size: 11.5px; color: var(--muted); }
.tc-stu-meta-kv b { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tc-stu-hw {
  font-size: 13px; color: var(--ink-2); line-height: 1.4;
  padding: 8px 10px; border-radius: 10px; background: var(--surface-2);
}
.tc-stu-detail-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tc-stu-fold { border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.tc-stu-fold > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2);
  list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 0;
}
.tc-stu-fold > summary::-webkit-details-marker { display: none; }
.tc-stu-fold > summary::after {
  content: "▾"; color: var(--muted); font-size: 12px; transition: transform .15s ease;
}
.tc-stu-fold[open] > summary::after { transform: rotate(180deg); }
.tc-stu-fold-body { display: grid; gap: 10px; padding-top: 8px; min-width: 0; }
.tc-wa-inline-panel {
  padding: 14px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--surface-2); gap: 12px; min-width: 0;
}
.tc-score-track {
  position: relative; height: 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); overflow: hidden;
}
.tc-score-fill {
  height: 100%; border-radius: inherit; background: var(--gold-grad);
}
.tc-template-card {
  display: grid; gap: 8px; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); min-width: 0;
}
.tc-template-body { font-size: 13px; color: var(--ink-2); line-height: 1.45; white-space: pre-wrap; }
.tc-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }

/* Payouts UI (shared dock & topbar pill styles moved to ux-ui/styles/base.css) */
.tc-payout-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.tc-payout-summary .tile { padding: 13px 14px; gap: 4px; align-content: space-between; }
.tc-payout-summary .tile-value { font-size: clamp(20px, 5.2vw, 25px); white-space: nowrap; }
.tc-rate-tile {
  grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; min-width: 0;
}
.tc-rate-tile-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; min-width: 0;
}
.tc-rate-tile-btn .tile-value { font-size: clamp(22px, 5.8vw, 26px); }
.tc-rate-edit-box { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tc-kpi-tiles .tile { padding: 13px 14px; gap: 5px; align-content: space-between; }
.tc-kpi-tiles .tile-value { font-size: clamp(20px, 5.2vw, 26px); white-space: nowrap; }
.tc-kpi-tiles .tile-note { font-size: 12px; line-height: 1.3; }
.tc-kpi-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.tc-wallet-card {
  border-color: color-mix(in srgb, var(--gold, #c59b5f) 38%, var(--line));
  background: linear-gradient(155deg, color-mix(in srgb, var(--gold, #c59b5f) 8%, var(--surface)), var(--surface));
  gap: 12px;
}
.tc-wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-wallet-hero { display: grid; gap: 2px; }
.tc-wallet-amount {
  font-family: var(--font-display); font-size: clamp(28px, 7.5vw, 34px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--ink);
}
.tc-wallet-sub {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tc-wallet-sub-item { display: grid; gap: 2px; min-width: 0; }
.tc-wallet-sub-item b { font-size: 16px; line-height: 1.25; }
.tc-wallet-req { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.tc-wallet-req svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.tc-wallet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tc-wallet-submit { width: 100%; min-height: 44px; justify-content: center; border-radius: 14px; font-weight: 600; }
@media (max-width: 460px) { .tc-wallet-actions { grid-template-columns: minmax(0, 1fr); } }
.tc-goal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0; }
.tc-goal-row .chip-btn { width: 100%; justify-content: center; padding: 7px 6px; font-size: 13px; min-height: 36px; }
.tc-goal-custom-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tc-fold-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-chart-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.tc-chart-seg::-webkit-scrollbar { display: none; }
.tc-chart-seg button { white-space: nowrap; flex: 0 0 auto; }
.tc-payout-list { display: grid; gap: 8px; min-width: 0; }
.tc-payout-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0;
}
.tc-payout-item-right { display: grid; gap: 4px; justify-items: end; flex-shrink: 0; }
.tc-payout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
}
.tc-payout-grid > .field { min-width: 0; align-content: end; }
.tc-payout-npd-box {
  display: grid;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
  transition: border-color .16s ease;
}
.tc-payout-npd-box.is-on {
  border-color: color-mix(in srgb, var(--confirm) 30%, var(--line));
}
.tc-payout-npd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  cursor: pointer;
}
.tc-payout-npd.is-wip { cursor: default; }
.tc-payout-npd-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tc-npd-chip {
  font-size: 11px;
  padding: 2px 8px;
  min-height: 22px;
}
.tc-npd-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-top: 1px;
  cursor: pointer;
}
.tc-npd-switch-inp {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.tc-npd-switch-inp:checked + .tc-switch-track {
  background: var(--confirm);
}
.tc-npd-switch-inp:checked + .tc-switch-track::after {
  transform: translateX(16px);
}
.tc-npd-switch-inp:focus-visible + .tc-switch-track {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tc-npd-switch-inp:disabled + .tc-switch-track,
.tc-payout-npd.is-wip .tc-switch-track {
  opacity: .55;
  cursor: not-allowed;
}
.tc-payout-inn-sec {
  display: grid;
  gap: 6px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.tc-payout-inn-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.tc-payout-inn-inp {
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 14.5px;
  letter-spacing: .03em;
}
.tc-payout-inn-btn {
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  justify-content: center;
}
@media (max-width: 420px) {
  .tc-payout-inn-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .tc-payout-inn-btn {
    width: 100%;
  }
}
.tc-npd-status {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}
.tc-npd-status.is-ok { color: var(--confirm); }
.tc-npd-status.is-err { color: var(--bad); }
.tc-wip-btn {
  min-height: 22px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer;
}
.tc-payout-err {
  padding: 9px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bad) 36%, transparent);
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 680px) {
  .tc-two-col,
  .tc-exp-edu-grid { grid-template-columns: minmax(0, 1fr); }
  .tc-prof-compact-foot { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tc-prof-preview-btn { width: 100%; min-height: 36px; justify-content: center; }
  .tc-messengers-grid {
    grid-template-columns: minmax(0, 1fr); gap: 0;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface);
  }
  .tc-msgr-card {
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 12px; background: transparent;
  }
  .tc-msgr-card:last-child { border-bottom: 0; }
  .tc-msgr-row .input,
  .tc-msgr-row .phone-field-wrap { background: var(--surface-2); }
  .tc-bar-chart { gap: 2px; padding: 8px 6px; }
  .tc-bar-chart.is-scroll { gap: 6px; padding: 8px 10px; }
  .tc-bar-chart.is-range { padding: 10px 6px; }
  .tc-bar-chart.is-combo { padding: 6px 6px; min-height: 150px; }
  .tc-bar-val { font-size: 10px; }
  .tc-payout-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-payout-kpis > :first-child { grid-column: 1 / -1; }
  .tc-wallet-cta, .tc-wallet-cta .btn { width: 100%; }
  .tc-bump-more-btn { flex: 0 0 auto; justify-content: center; }
  .tc-bump-hours-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tc-photo-actions .btn { width: 100%; justify-content: center; }
  .tc-profile-submit-row .btn { width: 100%; justify-content: center; }
  .tc-cal-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tc-cal-toolbar > :first-child { grid-column: 1 / -1; }
  .tc-cal-toolbar .btn { width: 100%; justify-content: center; }
  .tc-req-actions > .btn { width: 100%; justify-content: center; }
  .tc-period-seg { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-payout-grid { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- Плавный переход Чёрный (Hero) -> Белый (Подбор) на /landing ---------- */
body:has(.land-page:not(#brandbook-page)),
body:has(.land-page:not(#brandbook-page)) .main,
.land-page:not(#brandbook-page),
.land-page:not(#brandbook-page) .land-sec,
.land-page:not(#brandbook-page) .tutor-card,
.land-page:not(#brandbook-page) .hh-search-box,
.land-page:not(#brandbook-page) .land-plain-line,
.land-page:not(#brandbook-page) .land-footer.is-minimal {
  transition: background-color 0.78s cubic-bezier(.22, 1, .36, 1),
              color 0.58s cubic-bezier(.22, 1, .36, 1),
              border-color 0.58s ease;
}
:root body:has(.land-page:not(#brandbook-page):not(#fees-page):not(#market-page):not(.is-white-stage)):not(.is-land-white),
:root body:has(.land-page:not(#brandbook-page):not(#fees-page):not(#market-page):not(.is-white-stage)):not(.is-land-white) .main {
  background-color: #000000;
  color: #F5F7FA;
}
:root .land-page:not(#brandbook-page):not(#fees-page):not(#market-page):not(.is-white-stage) {
  background-color: #000000;
  color: #F5F7FA;
  --bg: #000000;
  --surface: #12151C;
  --surface-2: #1A1F2A;
  --ink: #F5F7FA;
  --ink-2: #CFD6E4;
  --muted: #98A2B3;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .20);
  --chip: #1B202C;
  --seg-bg: #1B202C;
  --seg-active: #262D3D;
}
:root body:not([data-user-dark="1"]).is-land-white,
:root body:not([data-user-dark="1"]).is-land-white .main,
:root body:not([data-user-dark="1"]) .land-page:not(#brandbook-page):not(#fees-page):not(#market-page).is-white-stage {
  background-color: #FFFFFF;
  color: #111622;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F6FA;
  --ink: #111622;
  --ink-2: #3F4756;
  --muted: #667085;
  --line: rgba(17, 22, 34, .10);
  --line-strong: rgba(17, 22, 34, .18);
  --chip: #F1F4F9;
  --seg-bg: #F0F4F9;
  --seg-active: #FFFFFF;
  --accent: #0B57D0;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(11, 87, 208, .09);
  --leaf: #0b57d0;
  --leaf-soft: #e8f0fe;
  --good: #0b57d0;
  --good-soft: #e8f0fe;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --notif: #ea580c;
  --notif-soft: #fff3eb;
  --confirm: #15803d;
  --confirm-hover: #166534;
  --confirm-soft: #dcfce7;
  --pro: #7c3aed;
  --pro-soft: #f3e8ff;
  --bad: #e11d48;
  --bad-soft: #ffe4e8;
  --gold: #c59b5f;
  --gold-hover: #b3884d;
  --gold-ink: #8c6327;
  --gold-soft: #fbf5ea;
  --shadow-sm: 0 2px 10px rgba(17, 22, 34, .05);
}
.land-page:not(#brandbook-page) .land-hero-banner {
  background: #000000;
  color: #F5F7FA;
  border-radius: 26px;
}
@media (max-width: 760px) {
  .land-page:not(#brandbook-page) .land-hero-banner { padding-bottom: 92px; }
}

/* ---------- Модалка записи без горизонтального скролла на мобильных ---------- */
.modal-card .field,
.modal-card .stack,
.modal-card .row,
.modal-card .hh-price-row,
.modal-card .hh-diff-strip { min-width: 0; max-width: 100%; }
.modal-card .hh-price-stepper {
  width: 100%; max-width: 100%;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  gap: 4px; box-sizing: border-box;
}
.modal-card .hh-step-readout { min-width: 0; padding: 2px 4px; justify-content: center; }
.modal-card .bid-input { width: 5.2ch; min-width: 0; max-width: 100%; }
#bid-signal { min-width: 0; max-width: 100%; margin-top: 2px; }
#bid-signal .chip {
  display: block; width: 100%; max-width: 100%;
  white-space: normal; height: auto; border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  padding: 9px 12px; font-size: 13px; font-weight: 500; line-height: 1.4;
  box-sizing: border-box; text-align: left;
}

/* ---------- Бесконечный скролл каталога и минимальный 4-ссылочный футер ---------- */
.mkt-scroll-sentinel { display: flex; justify-content: center; padding: 14px 0 4px; }
.mkt-feed-end {
  text-align: center; padding: 14px 0 2px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.land-plain-line {
  border: 0; height: 1px; background: var(--line-strong); margin: 18px 0 0;
}
.land-footer.is-minimal {
  border-top: 0; padding: 16px 4px 28px;
  display: flex; justify-content: center;
}
.land-footer-links.is-plain {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
}
.land-foot-plain {
  background: none; border: 0; padding: 4px 2px;
  font: inherit; font-size: 13px; color: var(--muted);
  text-decoration: none; cursor: pointer; transition: color .14s ease;
}
.land-foot-plain:hover {
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Правая панель фильтров на ПК и полноэкранная шторка на мобильных ---------- */
@keyframes filterDrawerIn {
  0% { opacity: .45; transform: translateX(100%); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (min-width: 681px) {
  .modal-back.is-filter-back {
    justify-items: end;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }
  .modal-back.is-filter-back .sheet-modal.is-filter-drawer {
    width: min(472px, 100vw);
    max-width: min(472px, 100vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 22px 0 0 22px;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: -16px 0 48px -12px rgba(0, 0, 0, .26);
  }
  :root[data-theme="dark"] .modal-back.is-filter-back .sheet-modal.is-filter-drawer {
    box-shadow: -18px 0 56px -10px rgba(0, 0, 0, .74);
  }
  .sheet-modal.is-filter-drawer > .sheet-grabber-zone {
    display: none;
  }
  .sheet-modal.is-filter-drawer .sheet-head.is-filter-head {
    padding: 18px 20px 14px;
  }
  .sheet-modal.is-filter-drawer #filter-modal-title {
    text-align: left;
    font-size: 18px;
  }
  .sheet-modal.is-filter-drawer .sheet-body {
    padding: 18px 20px;
  }
  .sheet-modal.is-filter-drawer .sheet-foot.filter-sheet-foot {
    padding: 14px 20px;
  }
  .sheet-modal.is-filter-drawer.is-sheet-entering {
    animation: filterDrawerIn .32s cubic-bezier(.22, 1, .36, 1);
  }
}
@media (max-width: 680px) {
  .modal-back.is-sheet-back { padding: 0; align-items: end; }
  .modal-back.is-sheet-back .sheet-modal,
  .modal-back.is-sheet-back .sheet-modal.is-auth-sheet {
    width: 100vw; max-width: 100vw;
    max-height: 94dvh; border-radius: 22px 22px 0 0; border-bottom: 0;
  }
  .sheet-modal.is-fullscreen-sheet {
    width: 100vw; max-width: 100vw;
    height: calc(100dvh - 8px); max-height: calc(100dvh - 8px);
    border-radius: 22px 22px 0 0; border-bottom: 0;
  }
  .sheet-modal.is-filter-drawer .filter-close-btn { display: none; }
  .sheet-modal.is-auth-sheet .auth-close-btn { display: none; }
  .sheet-modal .sheet-close-btn { display: none; }
  .sheet-modal.is-filter-drawer .sheet-head.is-filter-head {
    justify-content: center;
    padding: 6px 16px 12px;
  }
  .sheet-modal.is-filter-drawer #filter-modal-title { text-align: center; }
  .sheet-modal.is-booking-sheet {
    width: 100vw; max-width: 100vw;
    max-height: 94dvh; border-radius: 22px 22px 0 0; border-bottom: 0;
  }
  .hh-sort-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hh-sort-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hh-sort-seg button { padding: 7px 6px; font-size: 12.5px; text-align: center; justify-content: center; }
}

/* ---------- Главная ученика: отклики, однострочный фильтр, карточки как в Поиске, Телемост и Профиль ---------- */
.home-bids-wrap { min-width: 0; }
.home-bids-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap;
}
.home-bids-head .btn { flex: none; white-space: nowrap; }
.home-bid-seg {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.38fr) minmax(0, .94fr);
  width: 100%;
  gap: 4px;
}
.home-bid-seg button {
  white-space: nowrap; justify-content: center; text-align: center;
  padding: 8px 6px; font-size: 12.5px; min-width: 0;
}
@media (max-width: 390px) {
  .home-bid-seg button { padding: 7px 4px; font-size: 11.5px; }
}
.home-bid-empty { background: var(--surface); }
.home-bid-grid { min-width: 0; }
.tutor-card.is-home-bid .home-bid-slot {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 12.5px; color: var(--muted); line-height: 1.4;
}
.tutor-card.is-home-bid .home-bid-slot svg {
  width: 14px; height: 14px; flex: none; margin-top: 2px;
}
.home-bid-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%;
}
.home-bid-actions .btn { width: 100%; justify-content: center; }
.home-bid-actions > :first-child:nth-last-child(3) { grid-column: 1 / -1; }
.bid-telemost-box { display: grid; gap: 6px; width: 100%; }
.bid-telemost-add { width: 100%; justify-content: center; border-style: dashed; }
.bid-telemost-saved { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
.bid-telemost-join,
.bid-telemost-edit { width: 100%; justify-content: center; }
.bid-telemost-auto-note {
  font-size: 11.5px; line-height: 1.35; color: var(--muted); text-align: center; padding: 0 4px;
}
.bid-telemost-form {
  display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.bid-telemost-form-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%;
}
.bid-telemost-form-actions .btn { width: 100%; justify-content: center; }
.bid-telemost-form-actions .btn[data-a="bid-telemost-cancel"] { grid-column: 1 / -1; }
.bid-telemost-inp { min-height: 38px; font-size: 13.5px; }
.home-bid-status {
  padding: 9px 12px; border-radius: 12px;
  display: grid; gap: 2px; font-size: 12.5px; line-height: 1.32;
}
.home-bid-status b { font-size: 13px; line-height: 1.3; }
.home-bid-status.is-pending {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--ink);
}
.home-bid-status.is-pending b { color: var(--accent); font-weight: 700; }
.home-bid-status.is-accepted {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--confirm-soft);
  border: 1px solid color-mix(in srgb, var(--confirm) 30%, transparent);
  color: var(--ink);
}
.home-bid-status .home-bid-status-ico {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--confirm);
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
:root[data-theme="dark"] .home-bid-status .home-bid-status-ico {
  background: var(--confirm-hover);
  color: #fff;
}
.home-bid-status .home-bid-status-ico svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}
.home-bid-status-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.home-bid-status.is-accepted b { color: var(--confirm); font-weight: 700; }
.home-bid-status > span,
.home-bid-status-copy span { font-size: 12px; line-height: 1.32; color: var(--ink-2); }
.tutor-card.is-home-bid .msg-channel-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%;
}
.tutor-card.is-home-bid .msg-channel-bar .btn-msg {
  width: 100%; min-width: 0; justify-content: center;
  padding: 0 8px; min-height: 36px; font-size: 12.5px; border-radius: 12px;
}
.bk-tbl-pending-btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* Умный выбор 2 дат и времени на платформе + бот-диалог с преподавателем */
.bid-sched-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  background: var(--surface);
  min-width: 0;
}
.bid-sched-card.is-sent {
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface));
}
.bid-sched-card.is-proposed {
  border-color: color-mix(in srgb, var(--notif) 36%, var(--line));
  background: color-mix(in srgb, var(--notif-soft) 50%, var(--surface));
}
.bid-sched-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.bid-sched-head b {
  display: block;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink);
}
.bid-sched-head .chip { flex: none; white-space: nowrap; }
.bid-sched-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.bid-sched-day-btn {
  min-height: 36px;
  padding: 0 2px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.bid-sched-day-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.bid-sched-hours {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bid-sched-hours::-webkit-scrollbar { display: none; }
.bid-sched-hour-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  white-space: nowrap;
}
.bid-sched-hour-btn.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.bid-sched-bot {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.bid-sched-bot b { font-size: 12px; color: var(--ink); font-weight: 600; }
.bid-sched-submit,
.bid-sched-full-btn {
  width: 100%;
  justify-content: center;
}
.bid-sched-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.bid-sched-actions .btn { width: 100%; justify-content: center; min-width: 0; }
.bid-sched-confirmed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--confirm) 30%, transparent);
  background: color-mix(in srgb, var(--confirm-soft) 55%, var(--surface));
}
.bid-sched-confirmed b { display: block; font-size: 13px; color: var(--confirm); font-weight: 700; }
.bid-sched-confirmed span { display: block; line-height: 1.32; }
.bid-sched-confirmed .btn { flex: none; white-space: nowrap; }
.tc-sched-box { font-size: 12.5px; line-height: 1.4; }

/* Учёба -> Расписание: 7-дневный календарь с цифрами уроков + карточки дня с Телемостом и мессенджерами */
.study-cal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}
.study-cal-card > * {
  min-width: 0;
  max-width: 100%;
}
.tc-cal-mobile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.tc-cal-mobile-head > * {
  min-width: 0;
  max-width: 100%;
}
.tc-week-nav {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.tc-week-nav.is-past-week {
  background: color-mix(in srgb, var(--line) 42%, var(--surface-2));
  border-color: var(--line);
}
.tc-week-arrow {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease;
}
.tc-week-arrow:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.tc-week-title-btn {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
}
.tc-week-title-btn b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.study-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.study-week-days[data-week-swipe] {
  touch-action: pan-y;
  user-select: none;
}
.study-week-days.is-past-week .study-week-day-btn,
.study-week-day-btn.is-past {
  background: color-mix(in srgb, var(--line) 35%, var(--surface-2));
  border-color: var(--line);
  color: var(--muted);
}
.study-week-days.is-past-week .study-week-day-btn.has-lessons,
.study-week-day-btn.is-past.has-lessons {
  background: color-mix(in srgb, var(--line) 24%, var(--surface));
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.study-week-days.is-past-week .study-week-day-btn .swd-cnt,
.study-week-day-btn.is-past .swd-cnt {
  background: var(--line-strong);
  color: var(--ink-2);
}
.study-week-days.is-past-week .study-week-day-btn.on,
.study-week-day-btn.is-past.on {
  background: var(--muted);
  border-color: var(--muted);
  color: #ffffff;
}
.study-week-days.is-past-week .study-week-day-btn.on .swd-cnt,
.study-week-day-btn.is-past.on .swd-cnt {
  background: rgba(255, 255, 255, .24);
  color: #ffffff;
}
.study-lesson-card.is-past {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
}
.study-lesson-card.is-past .tutor-avatar {
  filter: grayscale(1);
  opacity: .72;
}
.study-lesson-card.is-past .tutor-person-name,
.study-lesson-card.is-past b {
  color: var(--ink-2);
}
.tc-past-chip {
  background: color-mix(in srgb, var(--line) 55%, var(--surface));
  border-color: var(--line-strong);
  color: var(--muted);
}
.tc-past-pay-line {
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--line) 30%, var(--surface));
}
.study-week-day-btn {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: 3px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 62px;
  padding: 10px 2px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.study-week-day-btn.is-today::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3.5px;
  border-radius: 999px;
  background: var(--confirm);
  pointer-events: none;
}
.study-week-day-btn.has-lessons {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--surface);
  color: var(--ink);
}
.study-week-day-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.study-week-day-btn.is-today.on::before {
  background: #4ade80;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28);
}
.study-week-day-btn .swd-wd {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  opacity: .82;
}
.study-week-day-btn .swd-num {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}
.study-week-day-btn .swd-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--notif);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.study-week-day-btn.on .swd-cnt {
  background: rgba(255, 255, 255, .24);
  color: #ffffff;
}
.study-week-day-btn .swd-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: .22;
  margin: 6px 0;
}
.study-day-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.study-day-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.study-lesson-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.study-lesson-card > * {
  min-width: 0;
  max-width: 100%;
}
.study-lesson-card .tutor-name-line,
.study-lesson-card .tutor-person-meta {
  min-width: 0;
  max-width: 100%;
}
.study-lesson-card .btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
}
.study-lesson-time-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.study-lesson-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.study-lesson-pills::-webkit-scrollbar {
  display: none;
}
.study-lesson-pills > * {
  flex: 0 0 auto;
  white-space: nowrap;
}
.study-lesson-card .msg-channel-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.study-lesson-card .msg-channel-bar .btn-msg {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding: 0 6px;
  min-height: 36px;
  font-size: 12px;
  border-radius: 12px;
}
.study-cancel-btn {
  width: 100%;
  justify-content: center;
}
.study-hold-hint {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
}

.stu-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.stu-hero-card {
  padding: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.stu-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.stu-avatar-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}
.stu-profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
}
.stu-profile-avatar.is-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  border-color: transparent;
}
.stu-avatar-cam {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
}
.stu-avatar-cam svg { width: 12px; height: 12px; }
.stu-hero-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.stu-hero-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}
.stu-hero-sub {
  line-height: 1.35;
}
.stu-hero-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.stu-hero-logout-btn {
  color: var(--bad);
  margin-left: auto;
}
.stu-hero-logout-btn:hover {
  border-color: var(--bad);
  background: var(--bad-soft);
}
.stu-profile-head-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.stu-acc-edit-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.stu-acc-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.stu-acc-edit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 380px) {
  .stu-acc-edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-setup-notif {
  padding: 14px 16px;
  border-color: color-mix(in srgb, var(--notif) 42%, var(--line));
  background: color-mix(in srgb, var(--notif-soft) 55%, var(--surface));
  display: grid;
  gap: 12px;
}
.profile-setup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-setup-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 220px;
}
.profile-setup-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-setup-body {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.profile-setup-body .card.pad-lg { padding: 0; border: 0; background: transparent; box-shadow: none; }
.prep-subj-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prep-subj-chip {
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}
.prep-subj-chip.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
:root[data-theme="dark"] .prep-subj-chip.on {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: var(--accent);
  color: #93c5fd;
}
.prep-soon-note {
  line-height: 1.45;
}

.stu-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.stu-profile-form > * { min-width: 0; max-width: 100%; }
.stu-sec-head {
  display: grid;
  gap: 2px;
}
.stu-form-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0 0;
}
.stu-notch-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}
.stu-notch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
@media (min-width: 720px) {
  .stu-notch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 350px) {
  .stu-notch-grid.is-dates {
    grid-template-columns: minmax(0, 1fr);
  }
}
.stu-notch-field {
  margin: 0;
  padding: 0 11px 5px;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.stu-notch-field:hover {
  border-color: color-mix(in srgb, var(--ink) 28%, var(--line-strong));
}
.stu-notch-field:focus-within,
.stu-notch-field.is-select:has(.hh-select.open),
.stu-notch-field.is-select:has(.hh-multi.open),
.stu-notch-field.is-select:has(.cb-sdo-trigger[aria-expanded="true"]),
.stu-notch-field.is-combo:has(.cb-grp-combo.is-open),
.stu-notch-field.is-combo:has(.hw-combo-menu) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.stu-notch-field > legend {
  margin: 0 0 0 2px;
  padding: 0 4px;
  max-width: calc(100% - 6px);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .14s ease;
}
.stu-notch-field:focus-within > legend,
.stu-notch-field.is-select:has(.hh-select.open) > legend,
.stu-notch-field.is-select:has(.hh-multi.open) > legend,
.stu-notch-field.is-select:has(.cb-sdo-trigger[aria-expanded="true"]) > legend,
.stu-notch-field.is-combo:has(.cb-grp-combo.is-open) > legend,
.stu-notch-field.is-combo:has(.hw-combo-menu) > legend {
  color: var(--accent);
}
.stu-notch-input::placeholder,
.stu-notch-textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.stu-notch-field > legend > label {
  cursor: pointer;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stu-notch-input,
.stu-notch-select {
  width: 100%;
  min-width: 0;
  height: 26px;
  min-height: 26px;
  padding: 1px 0 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
  box-sizing: border-box;
}
.stu-notch-input.num {
  font-size: 15px;
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stu-notch-input::-webkit-inner-spin-button,
.stu-notch-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stu-notch-input.is-date {
  font-size: 13px;
  font-weight: 500;
  appearance: auto;
  -moz-appearance: auto;
}
.stu-notch-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 8px) 50%, calc(100% - 3px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.stu-notch-textarea,
.stu-notch-field.is-textarea .textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 2px 0 1px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.38;
  resize: vertical;
  box-sizing: border-box;
}
.stu-notch-field.is-select {
  position: relative;
  padding: 0 11px 4px;
}
.stu-notch-field.is-select .hh-select {
  position: relative;
  width: 100%;
}
.stu-notch-field.is-select .hh-select-btn,
.stu-profile-form .stu-notch-field.is-select .hh-select-btn {
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
}
.stu-notch-field.is-select .hh-select-btn:hover,
.stu-notch-field.is-select .hh-select.open .hh-select-btn {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.stu-notch-field.is-select .hh-select-val {
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}
.stu-notch-field.is-select .hh-select-val > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stu-notch-field.is-select .hh-select-meta {
  font-size: 11px;
  padding: 1px 5px;
  flex: none;
}
.stu-notch-field.is-select .hh-select-menu {
  left: -12px;
  right: -12px;
  top: calc(100% + 6px);
  z-index: 40;
}
.stu-notch-field.is-select .hh-multi,
.stu-notch-field.is-select .cb-sdo-picker-wrap {
  position: relative;
  width: 100%;
}
.stu-notch-field.is-select .hh-multi-btn,
.stu-notch-field.is-select .cb-sdo-trigger,
.stu-notch-field.is-select .cb-sdo-picker-wrap.is-full .cb-sdo-trigger {
  width: 100%;
  min-height: 28px;
  height: auto;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}
.stu-notch-field.is-select .hh-multi-btn:hover,
.stu-notch-field.is-select .hh-multi.open .hh-multi-btn,
.stu-notch-field.is-select .cb-sdo-trigger:hover,
.stu-notch-field.is-select .cb-sdo-trigger.has-selection,
.stu-notch-field.is-select .cb-sdo-trigger[aria-expanded="true"] {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.stu-notch-field.is-select .hh-multi-menu,
.stu-notch-field.is-select .cb-sdo-popover {
  left: -12px;
  right: -12px;
  top: calc(100% + 6px);
  z-index: 40;
}
.stu-notch-field.is-combo {
  position: relative;
  padding: 0 11px 5px;
}
.stu-notch-field.is-combo .cb-grp-box {
  min-height: 28px;
  padding: 1px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stu-notch-field.is-combo .cb-grp-inp {
  font-size: 14px;
  font-weight: 500;
  padding: 2px 0;
  min-height: 24px;
}
.stu-notch-field.is-combo .cb-grp-menu {
  left: -12px;
  right: -12px;
  top: calc(100% + 6px);
}
.stu-notch-field.is-combo .hw-combo-menu {
  left: -1px;
  right: -1px;
  top: calc(100% + 4px);
}
.stu-notch-field.is-compact {
  padding: 0 8px 3px;
  border-radius: 9px;
}
.stu-notch-field.is-compact > legend {
  font-size: 10.5px;
}
.stu-notch-field.is-compact .stu-notch-input {
  height: 22px;
  min-height: 22px;
  font-size: 13px;
}
.stu-notch-field.is-phone {
  padding: 0 11px 5px;
}
.stu-notch-input:focus,
.stu-notch-input:focus-visible,
.stu-notch-select:focus,
.stu-notch-select:focus-visible,
.stu-notch-textarea:focus,
.stu-notch-textarea:focus-visible,
.stu-notch-field.is-textarea .textarea:focus,
.stu-notch-field.is-textarea .textarea:focus-visible,
.stu-notch-field.is-select .hh-select-btn:focus,
.stu-notch-field.is-select .hh-select-btn:focus-visible,
.stu-notch-field.is-select .hh-multi-btn:focus,
.stu-notch-field.is-select .hh-multi-btn:focus-visible,
.stu-notch-field.is-select .cb-sdo-trigger:focus,
.stu-notch-field.is-select .cb-sdo-trigger:focus-visible {
  outline: none;
  box-shadow: none;
}
.stu-stats-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stu-data-card {
  display: grid;
  gap: 10px;
}

.stu-data-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.stu-data-backup-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stu-data-backup-row .btn.sm {
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

.stu-data-reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.stu-data-reset-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.stu-data-reset-lbl svg {
  width: 14px;
  height: 14px;
}

.stu-data-reset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stu-data-reset-btn {
  padding: 5px 10px;
  min-height: 28px;
}

.stu-data-reset-btn:hover {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 40%, var(--line));
}
@media (max-width: 520px) {
  .stu-hero-foot .btn { flex: 1 1 auto; justify-content: center; }
  .stu-hero-logout-btn { margin-left: 0; }
  .profile-setup-btn { width: 100%; justify-content: center; }
  .stu-save-btn { width: 100%; justify-content: center; }
  .stu-stats-btn { width: 100%; justify-content: center; }
}

.study-bill-banner {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}
.study-bill-banner.is-due {
  border-color: color-mix(in srgb, var(--notif) 46%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--notif-soft) 68%, var(--surface)) 0%, var(--surface) 78%);
}
.study-bill-banner.is-ok {
  border-color: color-mix(in srgb, var(--good) 36%, var(--line));
  background: color-mix(in srgb, var(--good) 8%, var(--surface));
}
.study-bill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.study-bill-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 220px;
}
.study-bill-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.study-bill-ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.study-bill-banner.is-due .study-bill-ico {
  background: color-mix(in srgb, var(--notif) 16%, transparent);
  color: var(--notif);
}
.study-bill-banner.is-ok .study-bill-ico {
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: var(--good);
}
.study-bill-title {
  font-size: 15px;
  line-height: 1.25;
}
.study-bill-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.study-bill-details {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.study-bill-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.45;
}
.study-bill-list {
  display: grid;
  gap: 8px;
}
.study-bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.study-bill-row-info {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.study-bill-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.study-bill-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.study-bill-tag.is-ok {
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: var(--good);
}
.study-bill-tag.is-warn {
  background: color-mix(in srgb, var(--notif) 16%, transparent);
  color: var(--notif);
}
.study-bill-summary {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.study-bill-sum-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.study-bill-sum-line.is-total {
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
  color: var(--ink);
}
@media (max-width: 520px) {
  .study-bill-actions { width: 100%; }
  .study-bill-actions .btn { flex: 1 1 auto; }
}

#toast,
#toast.is-side {
  position: fixed;
  left: -9999px;
  right: auto;
  top: 0;
  bottom: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  animation: none !important;
}

.top-notif-btn { position: relative; overflow: visible; }
.top-notif-btn.has-unread { color: var(--ink); }
.top-notif-btn svg { transform-origin: 50% 15%; }
.top-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--notif);
  color: #ffffff;
  border: 2px solid var(--surface);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.top-notif-badge[hidden] { display: none !important; }

@keyframes notif-bell-ring-a {
  0% { transform: rotate(0) scale(1); }
  16% { transform: rotate(19deg) scale(1.1); }
  34% { transform: rotate(-16deg) scale(1.08); }
  52% { transform: rotate(12deg) scale(1.05); }
  70% { transform: rotate(-7deg) scale(1.02); }
  86% { transform: rotate(3deg); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes notif-bell-ring-b {
  0% { transform: rotate(0) scale(1); }
  16% { transform: rotate(19deg) scale(1.1); }
  34% { transform: rotate(-16deg) scale(1.08); }
  52% { transform: rotate(12deg) scale(1.05); }
  70% { transform: rotate(-7deg) scale(1.02); }
  86% { transform: rotate(3deg); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes notif-badge-pop-a {
  0% { transform: scale(.55) translateY(3px); box-shadow: 0 0 0 0 color-mix(in srgb, var(--notif) 55%, transparent); }
  45% { transform: scale(1.34) translateY(-3px); box-shadow: 0 0 0 6px color-mix(in srgb, var(--notif) 0%, transparent); }
  75% { transform: scale(.92) translateY(0); }
  100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 transparent; }
}
@keyframes notif-badge-pop-b {
  0% { transform: scale(.55) translateY(3px); box-shadow: 0 0 0 0 color-mix(in srgb, var(--notif) 55%, transparent); }
  45% { transform: scale(1.34) translateY(-3px); box-shadow: 0 0 0 6px color-mix(in srgb, var(--notif) 0%, transparent); }
  75% { transform: scale(.92) translateY(0); }
  100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 transparent; }
}
.top-notif-btn.is-ring-a svg { animation: notif-bell-ring-a .62s ease-out; }
.top-notif-btn.is-ring-b svg { animation: notif-bell-ring-b .62s ease-out; }
.top-notif-badge.is-pop-a { animation: notif-badge-pop-a .5s cubic-bezier(.22, 1, .36, 1); }
.top-notif-badge.is-pop-b { animation: notif-badge-pop-b .5s cubic-bezier(.22, 1, .36, 1); }

.notif-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.notif-sheet-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-sheet-kind="notif"] .sheet-body {
  overflow-x: hidden;
}
.notif-inbox-list {
  display: grid;
  gap: 8px;
  overflow-x: hidden;
}
.notif-inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  touch-action: pan-y;
  user-select: none;
  will-change: transform, opacity;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}
.notif-inbox-item.is-swiping {
  transition: none !important;
}
.notif-inbox-item.is-dismiss-left {
  transform: translateX(-115%) rotate(-1.5deg) !important;
  opacity: 0 !important;
  pointer-events: none;
}
.notif-inbox-item.is-dismiss-right {
  transform: translateX(115%) rotate(1.5deg) !important;
  opacity: 0 !important;
  pointer-events: none;
}
.notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--notif);
  margin-top: 6px;
  flex: none;
}
.notif-item-copy {
  min-width: 0;
  flex: 1 1 0;
  display: grid;
  gap: 3px;
}
.notif-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.notif-item-head b {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.3;
}
.notif-item-time {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.notif-item-msg {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
  word-break: break-word;
}
.notif-inbox-item.is-clickable {
  cursor: pointer;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, border-color .16s ease, background .16s ease;
}
.notif-inbox-item.is-clickable:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.notif-item-open {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}
.notif-item-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}
.notif-item-body {
  min-width: 0;
  flex: 1 1 0;
  display: grid;
  gap: 8px;
}
.notif-join-btn {
  justify-self: start;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}
.toast-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.toast-action-link:hover {
  text-decoration: underline;
}
.notif-item-close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

/* Каталог предметов и адаптивных направлений (Подробнее + поиск + оркестратор) */
.mkt-subj-head { align-items: baseline; gap: 8px; }
.mkt-subj-more-btn {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.mkt-subj-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.mkt-subj-finder .hh-search-input {
  min-height: 40px;
  font-size: 14px;
  border-radius: 12px;
  background: var(--surface-2);
}
.mkt-subj-finder .search-clear[hidden] { display: none; }
.mkt-subj-groups { display: grid; gap: 12px; padding-top: 2px; }
.mkt-subj-cat { display: grid; gap: 6px; }
.mkt-subj-cat-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.chip-btn.is-orch {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}
.orch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.chip-btn.on .orch-dot { background: currentColor; }
.mkt-subj-add-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface-2);
}
.mkt-subj-add-card b { font-size: 13.5px; color: var(--ink); }
@media (max-width: 560px) {
  .mkt-subj-add-card .btn { width: 100%; justify-content: center; }
}

.bug-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.bug-modal-actions > .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 12px;
  white-space: nowrap;
  font-size: 13.5px;
}
@media (max-width: 420px) {
  .bug-modal-actions > .btn {
    padding-inline: 8px;
    gap: 6px;
    font-size: 13px;
  }
}

.fb-attach-box {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed var(--line-2, var(--line));
  background: var(--surface-2);
}
.fb-attach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.fb-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .14s ease;
}
.fb-add-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.fb-add-plus {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  flex: none;
}
.fb-add-plus svg {
  width: 15px;
  height: 15px;
  display: block;
}
.fb-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fb-attach-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.fb-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fb-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink);
}
.fb-file-kind {
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  flex: none;
}
.fb-file-kind.is-pdf {
  background: color-mix(in srgb, var(--bad, #dc2626) 14%, transparent);
  color: var(--bad, #dc2626);
}
.fb-file-name {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.fb-file-size {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.fb-file-rm {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.fb-file-rm:hover {
  background: color-mix(in srgb, var(--bad, #dc2626) 14%, transparent);
  color: var(--bad, #dc2626);
}
.fb-mailto-row {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.fb-mailto-row a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bal-refund-bar {
  margin-top: 4px;
}
.bal-refund-toggle {
  padding: 4px 10px;
  font-size: 12.5px;
  border-radius: 999px;
}
.bal-refund-box {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2, var(--line));
  background: var(--surface-2);
}
.bal-refund-list {
  display: grid;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.bal-refund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}
.bal-refund-st {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.bal-refund-st.is-succeeded {
  color: var(--confirm, #16a34a);
  border-color: color-mix(in srgb, var(--confirm, #16a34a) 40%, var(--line));
}
.bal-refund-st.is-canceled,
.bal-refund-st.is-rejected {
  color: var(--bad, #dc2626);
  border-color: color-mix(in srgb, var(--bad, #dc2626) 40%, var(--line));
}

/* Профиль ученика: выравнивание полей «Класс или цель» / «Город», часовой пояс и привязка Google/Telegram */
.stu-pf-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.stu-profile-form .input:not(textarea),
.stu-profile-form select.input,
.stu-profile-form .select {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  line-height: 1.25;
}
.stu-pf-pair .hh-select-menu {
  z-index: 40;
  max-height: 260px;
  overflow-y: auto;
}
.stu-city-tz-note {
  grid-column: 1 / -1;
  margin-top: -2px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
}
.stu-linked-card {
  display: grid;
  gap: 10px;
}
.stu-link-list {
  display: grid;
  gap: 8px;
}
.stu-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.stu-link-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}
.stu-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  flex: none;
}
.stu-link-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.stu-link-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.stu-link-copy b {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
}
.stu-link-copy .small {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stu-link-act {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: none;
  margin-left: auto;
}
.stu-link-act .btn.sm {
  min-height: 32px;
  height: 32px;
  padding: 0 11px;
  font-size: 13px;
  white-space: nowrap;
}
.stu-link-row.is-linked {
  padding: 8px 10px;
  gap: 8px;
  flex-wrap: nowrap;
}
.stu-link-row.is-linked.is-bot {
  flex-wrap: wrap;
}
.stu-link-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}
.chip.good.stu-link-badge {
  padding: 1px 7px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  flex: none;
}
.stu-link-row.is-linked .stu-link-copy {
  flex: 1 1 auto;
}
.stu-link-row.is-linked .stu-link-act .btn.sm {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}
.stu-link-icon.is-tg { color: #229ed9; }
.stu-link-icon.is-wa { color: var(--confirm); }
.stu-link-icon.is-max { color: #6c47ff; }
.stu-link-icon.is-vk { color: #0077ff; }
.tc-link-list .stu-link-row {
  background: var(--surface-2);
}
.tc-link-list .stu-link-icon {
  background: var(--surface);
}
.tc-link-list .stu-link-row:not(.is-editing):not(.is-bot) {
  flex-wrap: nowrap;
}
.stu-link-inline .field {
  margin: 0;
  gap: 0;
  flex: 1 1 200px;
  min-width: 0;
}
.stu-link-inline .phone-field-wrap {
  flex: 1 1 210px;
  min-height: 36px;
  min-width: 0;
  background: var(--surface-2);
}
.stu-link-inline .phone-field-wrap .input {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}
.tc-link-list .stu-link-inline .input {
  background: var(--surface-2);
}
.stu-link-act:has(.stu-link-inline) {
  width: 100%;
  margin-left: 0;
}
.stu-link-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stu-link-inline .input {
  width: min(210px, 100%);
  min-height: 36px;
  height: 36px;
  padding: 6px 10px;
  font-size: 13.5px;
}
@media (max-width: 350px) {
  .stu-pf-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .stu-link-inline {
    width: 100%;
  }
  .stu-link-inline .input,
  .stu-link-inline .field,
  .stu-link-inline .phone-field-wrap {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ---------- Отзывы, рейтинги и споры по гарантии ---------- */
.tutor-rating-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  margin: -2px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  vertical-align: baseline;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tutor-rating-btn:hover {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--accent);
}
.tutor-rating-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bk-trust-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bk-trust-actions .bk-review-btn,
.bk-trust-actions .bk-dispute-btn {
  flex: 1 1 auto;
}

.rev-summary-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.rev-summary-left {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 84px;
}
.rev-score {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
}
.rev-score-stars {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold, #d99b16);
}
.rev-bars {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.rev-bar-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
}
.rev-bar-row > .num:last-child {
  text-align: right;
}
.rev-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  display: block;
}
.rev-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gold, #d99b16);
  transition: width .2s ease;
}

.rev-list {
  display: grid;
  gap: 10px;
}
.rev-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.rev-card.is-mine {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.rev-stars-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--gold, #d99b16) 15%, var(--surface-2));
  color: var(--gold, #b7791f);
}
.rev-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rev-stars-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rev-star-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.rev-star-btn:hover {
  border-color: var(--gold, #d99b16);
  color: var(--gold, #d99b16);
}
.rev-star-btn.on {
  background: color-mix(in srgb, var(--gold, #d99b16) 16%, var(--surface));
  border-color: var(--gold, #d99b16);
  color: var(--gold, #d99b16);
}

.dsp-guar-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.dsp-guar-banner.is-guar {
  border-color: color-mix(in srgb, var(--confirm) 45%, var(--line));
  background: color-mix(in srgb, var(--confirm) 10%, var(--surface));
}
.dsp-guar-banner svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--confirm);
}

.dsp-reasons {
  display: grid;
  gap: 8px;
}
.dsp-reason-btn {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dsp-reason-btn.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  font-weight: 600;
}

html[data-theme="dark"] .rev-card.is-mine {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
html[data-theme="dark"] .rev-stars-pill {
  color: #f4be41;
  background: rgba(244, 190, 65, 0.16);
}
html[data-theme="dark"] .dsp-guar-banner.is-guar {
  background: color-mix(in srgb, var(--confirm) 16%, var(--surface));
}

@media (max-width: 560px) {
  .rev-summary-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rev-summary-left {
    grid-auto-flow: column;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
  }
  .bk-trust-actions {
    width: 100%;
  }
}

/* ---------- Юридический блок (152-ФЗ, Оферта, Эскроу) и баннер cookies ---------- */
.auth-migrate-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.auth-migrate-row .check {
  flex: none;
  margin: 1px 0 0;
}
.auth-migrate-row > span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
  color: var(--ink);
}
.auth-legal-note,
.bal-legal-note {
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  color: var(--muted);
}
.auth-legal-note {
  max-width: 360px;
}
.auth-legal-note a,
.bal-legal-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stu-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.stu-legal-links a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.stu-legal-links a:hover {
  text-decoration: underline;
}
.stu-legal-pd-row {
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.stu-danger-link {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 28%, var(--line));
}
.stu-danger-link:hover {
  background: var(--bad-soft);
  border-color: color-mix(in srgb, var(--bad) 46%, var(--line));
  color: var(--bad);
}
.stu-tg-bot-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--accent-soft);
}

.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 44;
  width: min(440px, calc(100vw - 32px));
  pointer-events: auto;
}
@media (min-width: 900px) {
  .cookie-banner {
    right: max(96px, env(safe-area-inset-right, 0px));
  }
}
.cookie-banner-card {
  display: grid;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px -16px rgba(15, 23, 42, .34);
}
.cookie-banner-copy {
  display: grid;
  gap: 5px;
}
.cookie-banner-copy b {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.cookie-banner-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.cookie-banner-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-banner-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.cookie-opt-list {
  display: grid;
  gap: 10px;
}
.cookie-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.cookie-opt-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.cookie-opt-copy b {
  font-size: 14px;
  color: var(--ink);
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.cookie-switch:focus-visible {
  outline: none;
}
.cookie-switch:focus-visible .cookie-switch-track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent);
}
.cookie-switch-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  min-width: 74px;
  text-align: right;
  transition: color .18s ease;
}
.cookie-switch.on .cookie-switch-lbl {
  color: var(--accent);
}
.cookie-switch-track {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--muted) 42%, var(--surface-2));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14);
  transition: background .18s ease, border-color .18s ease;
  flex: none;
}
.cookie-switch.on .cookie-switch-track {
  background: var(--accent);
  border-color: transparent;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
}
.cookie-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.cookie-switch.on .cookie-switch-thumb {
  transform: translateX(18px);
}
.cookie-switch.is-tap-pulse {
  animation: none;
}
.cookie-switch.is-tap-pulse .cookie-switch-track {
  animation: btnTapPulse .34s cubic-bezier(.22, 1, .36, 1);
}
.sheet-foot.cookie-modal-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.sheet-foot.cookie-modal-foot .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  white-space: nowrap;
}

:root[data-theme="dark"] body:not(.is-land-white) .cookie-banner-card,
:root[data-theme="dark"] body[data-user-dark="1"] .cookie-banner-card {
  background: color-mix(in srgb, var(--surface) 92%, #000000);
  box-shadow: 0 24px 52px -14px rgba(0, 0, 0, .82);
}

@media (max-width: 899px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 540px;
    margin-inline: auto;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 560px) {
  .cookie-banner-card {
    padding: 13px 14px;
    border-radius: 16px;
  }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cookie-opt-row {
    align-items: center;
  }
  .cookie-switch {
    flex-direction: column-reverse;
    align-items: center;
    gap: 3px;
    min-width: 68px;
  }
  .cookie-switch-lbl {
    min-width: 0;
    text-align: center;
    font-size: 11px;
  }
  .sheet-foot.cookie-modal-foot .btn {
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ---------- Тактильная анимация нажатия кнопок ---------- */
@keyframes btnTapPulse {
  0% { transform: scale(.96); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 34%, transparent); }
  55% { transform: scale(1.015); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { transform: scale(1); box-shadow: none; }
}
@keyframes btnOkFlash {
  0% { transform: scale(.97); }
  45% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.btn:active:not(:disabled),
.chip-btn:active:not(:disabled),
.icon-btn:active:not(:disabled),
.theme-pill:active:not(:disabled),
.btn-msg:active:not(.is-disabled),
.hh-step-btn:active:not(:disabled),
.tutor-rating-btn:active:not(:disabled),
.cookie-toggle-btn:active:not(:disabled),
.day-cir:active:not(:disabled) {
  transform: scale(.965);
}

.is-tap-pulse {
  animation: btnTapPulse .26s cubic-bezier(.22, 1, .36, 1);
}
.is-btn-ok {
  animation: btnOkFlash .28s cubic-bezier(.22, 1, .36, 1);
  border-color: var(--confirm) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--confirm) 28%, transparent);
}

/* ---------- Анимации кнопки «Предложить» и отправки заявки ---------- */
.tutor-bid-btn,
.bid-submit-main {
  position: relative;
  overflow: hidden;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, background-color .18s ease;
}
.tutor-bid-btn::after,
.bid-submit-main::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 52%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .36) 50%, transparent 100%);
  transform: skewX(-20deg) translateX(0);
  opacity: 0;
  pointer-events: none;
}
.tutor-bid-btn:hover::after,
.bid-submit-main:hover::after {
  animation: bidBtnSheen .72s cubic-bezier(.22, 1, .36, 1);
}
.is-bid-launch {
  animation: bidBtnLaunch .52s cubic-bezier(.22, 1, .36, 1) !important;
}
.is-bid-launch::after {
  animation: bidBtnSheen .55s cubic-bezier(.22, 1, .36, 1);
}

@keyframes bidBtnSheen {
  0% { transform: skewX(-20deg) translateX(0); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: skewX(-20deg) translateX(360%); opacity: 0; }
}
@keyframes bidBtnLaunch {
  0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 44%, transparent); }
  26% { transform: scale(.94); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
  64% { transform: scale(1.03); box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--accent) 52%, transparent); }
  100% { transform: scale(1); box-shadow: none; }
}

.bid-launch-burst {
  position: fixed;
  width: 0;
  height: 0;
  z-index: 96;
  pointer-events: none;
}
.bid-launch-ring {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2.5px solid var(--accent);
  animation: bidWaveRing .54s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes bidWaveRing {
  0% { transform: scale(.4); opacity: .92; }
  100% { transform: scale(2.85); opacity: 0; }
}
.bid-launch-pill {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--accent) 56%, rgba(0, 0, 0, .35));
  animation: bidPillRise .64s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes bidPillRise {
  0% { transform: translate(-50%, -25%) scale(.84); opacity: 0; }
  22% { transform: translate(-50%, -115%) scale(1.04); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(-50%, -240%) scale(.96); opacity: 0; }
}
.bid-spark {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bidSparkOut .56s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes bidSparkOut {
  0% { transform: rotate(var(--a, 0deg)) translateY(-6px) scale(.55); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: rotate(var(--a, 0deg)) translateY(-38px) scale(0); opacity: 0; }
}

.modal-back.is-back-entering {
  animation: modalBackIn .2s ease-out;
}
@keyframes modalBackIn {
  from { background-color: rgba(0, 0, 0, 0); }
  to { background-color: rgba(0, 0, 0, .74); }
}
.sheet-modal.is-sheet-entering {
  animation: sheetSpringIn .32s cubic-bezier(.22, 1, .36, 1);
}
.sheet-modal.is-sheet-swap {
  animation: sheetSwapIn .26s cubic-bezier(.22, 1, .36, 1);
}
@keyframes sheetSpringIn {
  0% { opacity: 1; transform: translateY(22px) scale(.965); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sheetSwapIn {
  0% { opacity: 1; transform: translateY(10px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .sheet-modal.is-sheet-entering {
    animation-name: sheetMobileUp;
  }
  @keyframes sheetMobileUp {
    0% { opacity: 1; transform: translateY(36px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

.bid-sent-fx {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}
.bid-sent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 15px 20px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--confirm) 38%, var(--line));
  box-shadow: 0 22px 48px -12px rgba(17, 22, 34, .28), 0 0 0 1px color-mix(in srgb, var(--confirm) 14%, transparent);
  animation: bidSentCardIn .36s cubic-bezier(.22, 1, .36, 1) forwards;
}
.bid-sent-fx.is-leaving .bid-sent-card {
  animation: bidSentCardOut .26s ease-in forwards;
}
@keyframes bidSentCardIn {
  0% { opacity: 0; transform: translateY(18px) scale(.9); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bidSentCardOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(.96); }
}
.bid-sent-ico {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--confirm-soft);
  color: var(--confirm);
}
.bid-sent-ico svg {
  width: 24px;
  height: 24px;
}
.bid-check-path {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: bidCheckDraw .36s ease-out .09s forwards;
}
@keyframes bidCheckDraw {
  to { stroke-dashoffset: 0; }
}
.bid-sent-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--confirm);
  animation: bidSentRingPop .62s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes bidSentRingPop {
  0% { transform: scale(.8); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
.bid-sent-ico .bid-spark {
  left: 19px;
  top: 19px;
  background: var(--confirm);
}
.bid-sent-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.bid-sent-copy b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.bid-sent-copy span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.tutor-card.is-home-bid.is-just-sent {
  animation: bidCardLand .48s cubic-bezier(.22, 1, .36, 1), bidCardHalo 1.5s ease-out;
}
.tutor-card.is-home-bid.is-bid-highlighted {
  animation: bidProfilePulseOnce 1.55s cubic-bezier(.22, 1, .36, 1) 1 forwards;
}
:root[data-theme="dark"] .tutor-card.is-home-bid.is-bid-highlighted {
  animation: bidProfilePulseOnceDark 1.55s cubic-bezier(.22, 1, .36, 1) 1 forwards;
}
@keyframes bidProfilePulseOnce {
  0% {
    border-color: var(--line);
    box-shadow: var(--shadow);
    transform: scale(1);
  }
  22% {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent-soft) 52%, var(--surface));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 26%, transparent), 0 18px 40px -14px color-mix(in srgb, var(--accent) 34%, transparent);
    transform: scale(1.012);
  }
  65% {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
    background: color-mix(in srgb, var(--accent-soft) 24%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow);
    transform: scale(1.003);
  }
  100% {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: scale(1);
  }
}
@keyframes bidProfilePulseOnceDark {
  0% {
    border-color: var(--line);
    box-shadow: var(--shadow);
    transform: scale(1);
  }
  22% {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 32%, transparent), 0 18px 42px -14px rgba(29, 123, 255, .42);
    transform: scale(1.012);
  }
  65% {
    border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
    background: color-mix(in srgb, var(--accent-soft) 28%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow);
    transform: scale(1.003);
  }
  100% {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: scale(1);
  }
}
@keyframes bidCardLand {
  0% { opacity: 0; transform: translateY(18px) scale(.975); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bidCardHalo {
  0%, 35% {
    border-color: var(--confirm);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--confirm) 26%, transparent), var(--shadow);
  }
  100% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
}

.tutor-card.is-home-bid.is-just-accepted {
  animation: bidAcceptHaloOnce 1.5s cubic-bezier(.22, 1, .36, 1) 1 forwards;
}
:root[data-theme="dark"] .tutor-card.is-home-bid.is-just-accepted {
  animation: bidAcceptHaloOnceDark 1.5s cubic-bezier(.22, 1, .36, 1) 1 forwards;
}
.home-bid-status.is-accepted.is-just-accepted .home-bid-status-ico {
  animation: bidCheckPop .42s cubic-bezier(.22, 1, .36, 1);
}
.bid-sched-card.is-just-revealed {
  animation: bidSchedReveal .38s cubic-bezier(.22, 1, .36, 1);
}
.bid-sched-confirmed.is-just-confirmed {
  animation: bidSchedConfirmedPulse 1.3s ease-out 1;
}
:root[data-theme="dark"] .bid-sched-confirmed.is-just-confirmed {
  animation: bidSchedConfirmedPulseDark 1.3s ease-out 1;
}
@keyframes bidAcceptHaloOnce {
  0% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  24% {
    border-color: var(--confirm);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--confirm) 22%, transparent), 0 14px 32px -12px color-mix(in srgb, var(--confirm) 28%, transparent);
  }
  100% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
}
@keyframes bidAcceptHaloOnceDark {
  0% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  24% {
    border-color: var(--confirm);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--confirm) 28%, transparent), 0 14px 36px -12px rgba(34, 197, 94, .34);
  }
  100% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
}
@keyframes bidCheckPop {
  0% { transform: scale(.55); opacity: 0; }
  65% { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes bidSchedReveal {
  0% {
    opacity: 0;
    transform: translateY(-6px);
    border-color: var(--accent);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  }
}
@keyframes bidSchedConfirmedPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--confirm) 30%, transparent);
  }
  35% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--confirm) 22%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@keyframes bidSchedConfirmedPulseDark {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--confirm) 34%, transparent);
  }
  35% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--confirm) 26%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

:root[data-theme="dark"] .bid-sent-card {
  background: var(--surface);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, .86), 0 0 0 1px color-mix(in srgb, var(--confirm) 24%, transparent);
}
:root[data-theme="dark"] .bid-launch-pill {
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, .72);
}

/* ---------- Актуальная страница условий оплаты /fees (Light + OLED Dark) ---------- */
.land-page.is-fees-page,
.land-page.is-market-page {
  gap: 28px;
  padding-bottom: 12px;
}
:root:not([data-theme="dark"]) body:has(.land-page.is-fees-page),
:root:not([data-theme="dark"]) body:has(.land-page.is-fees-page) .main,
:root:not([data-theme="dark"]) .land-page.is-fees-page,
:root:not([data-theme="dark"]) body:has(.land-page.is-market-page),
:root:not([data-theme="dark"]) body:has(.land-page.is-market-page) .main,
:root:not([data-theme="dark"]) .land-page.is-market-page {
  background-color: #ffffff;
  color: #111622;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --ink: #111622;
  --ink-2: #3f4756;
  --muted: #667085;
  --line: rgba(17, 22, 34, .10);
  --line-strong: rgba(17, 22, 34, .18);
  --accent: #0b57d0;
  --accent-hover: #0842a0;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --confirm: #15803d;
  --confirm-hover: #166534;
  --confirm-soft: #dcfce7;
  --pro: #7c3aed;
  --pro-soft: #f3e8ff;
  --gold: #c59b5f;
  --gold-ink: #8c6327;
  --gold-btn-ink: #5a3c0e;
  --gold-soft: #fbf5ea;
  --gold-glass: linear-gradient(135deg, rgba(246, 212, 134, .34) 0%, rgba(197, 155, 95, .44) 52%, rgba(168, 116, 40, .28) 100%);
  --pill-bg: #111622;
  --pill-ink: #ffffff;
  --seg-bg: #f0f4f9;
  --seg-active: #ffffff;
  --shadow: 0 10px 28px -18px rgba(17, 22, 34, .14);
}
:root[data-theme="dark"] body:has(.land-page.is-fees-page),
:root[data-theme="dark"] body:has(.land-page.is-fees-page) .main,
:root[data-theme="dark"] .land-page.is-fees-page,
:root[data-theme="dark"] body:has(.land-page.is-market-page),
:root[data-theme="dark"] body:has(.land-page.is-market-page) .main,
:root[data-theme="dark"] .land-page.is-market-page {
  background-color: #000000;
  color: #f5f7fa;
  --bg: #000000;
  --surface: #12151c;
  --surface-2: #1a1f2a;
  --ink: #f5f7fa;
  --ink-2: #cfd6e4;
  --muted: #98a2b3;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .20);
  --accent: #1d7bff;
  --accent-hover: #0d67e8;
  --accent-ink: #ffffff;
  --accent-soft: #102548;
  --confirm: #22c55e;
  --confirm-hover: #16a34a;
  --confirm-soft: #0c2b17;
  --pro: #a78bfa;
  --pro-soft: #21153b;
  --gold: #c59b5f;
  --gold-ink: #e5c185;
  --gold-btn-ink: #fff3d6;
  --gold-soft: #261e12;
  --gold-glass: linear-gradient(135deg, rgba(245, 210, 128, .22) 0%, rgba(197, 155, 95, .34) 52%, rgba(154, 106, 36, .22) 100%);
  --pill-bg: #ffffff;
  --pill-ink: #141517;
  --seg-bg: #181c26;
  --seg-active: #252b3b;
  --shadow: 0 12px 32px -18px rgba(0, 0, 0, .75);
}
:root[data-theme="dark"] .land-page.is-fees-page .land-top.is-scrolled-light,
:root[data-theme="dark"] .land-page.is-market-page .land-top.is-scrolled-light {
  background: rgba(12, 14, 19, .90);
  border-bottom-color: rgba(255, 255, 255, .10);
  --wm-ink: #f5f7fa;
  color: #f5f7fa;
}
:root[data-theme="dark"] .land-page.is-fees-page .land-top.is-scrolled-light .brand-lockup,
:root[data-theme="dark"] .land-page.is-fees-page .land-top.is-scrolled-light .brand-wordmark,
:root[data-theme="dark"] .land-page.is-market-page .land-top.is-scrolled-light .brand-lockup,
:root[data-theme="dark"] .land-page.is-market-page .land-top.is-scrolled-light .brand-wordmark {
  --wm-ink: #f5f7fa;
  color: #f5f7fa;
}
:root[data-theme="dark"] .land-page.is-fees-page .land-top.is-scrolled-light .land-links a,
:root[data-theme="dark"] .land-page.is-market-page .land-top.is-scrolled-light .land-links a {
  color: #cfd6e4;
}
:root[data-theme="dark"] .land-page.is-fees-page .land-top.is-scrolled-light .land-links a:hover,
:root[data-theme="dark"] .land-page.is-fees-page .land-top.is-scrolled-light .land-links a[aria-current="page"],
:root[data-theme="dark"] .land-page.is-market-page .land-top.is-scrolled-light .land-links a:hover,
:root[data-theme="dark"] .land-page.is-market-page .land-top.is-scrolled-light .land-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(29, 123, 255, .20);
}
.fees-hero {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(640px 260px at 96% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.fees-hero-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 24ch;
}
.fees-hero-lead {
  max-width: 72ch;
  color: var(--ink-2);
}
.fees-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fees-kpi {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.fees-kpi-val {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.02em;
}
.fees-kpi b {
  font-size: 14px;
  color: var(--ink);
}
.fees-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fees-step-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fees-step-card:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: var(--shadow);
}
.fees-step-card b {
  font-size: 16px;
  color: var(--ink);
}
.fees-calc {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.fees-calc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
}
.fees-seg-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.fees-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fees-seg-btn {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 6px 13px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.fees-seg-btn:hover { color: var(--ink); }
.fees-seg-btn.on {
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-weight: 600;
  box-shadow: 0 2px 8px -2px rgba(17, 22, 34, .18);
}
.fees-split-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.fees-split-tutor {
  background: var(--confirm);
  transition: width .24s cubic-bezier(.22, 1, .36, 1);
}
.fees-split-fee {
  background: var(--accent);
  transition: width .24s cubic-bezier(.22, 1, .36, 1);
}
.fees-split-sbp {
  background: var(--pro);
  transition: width .24s cubic-bezier(.22, 1, .36, 1);
}
.fees-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fees-calc-grid.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fees-calc-tile {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fees-calc-tile b {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}
.fees-calc-tile.is-payout b { color: var(--confirm); }
.fees-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fees-role-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fees-faq-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 18px;
  transition: border-color .16s ease;
}
.fees-faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}
.fees-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.fees-faq-item summary::-webkit-details-marker { display: none; }
.fees-faq-item summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}
.fees-faq-item[open] summary::after {
  content: "−";
  background: var(--accent-soft);
  color: var(--accent);
}
.fees-faq-item p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.fees-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.fees-cta-band b { font-size: 16px; color: var(--ink); }
@media (max-width: 1024px) {
  .fees-calc-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .fees-kpis,
  .fees-calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fees-kpis > :last-child,
  .fees-calc-grid:not(.is-4) > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .land-page.is-fees-page,
  .land-page.is-market-page { gap: 20px; }
  .fees-hero { padding: 20px 16px; border-radius: 18px; }
  .fees-kpis,
  .fees-steps,
  .fees-calc-grid,
  .fees-calc-grid.is-4,
  .fees-roles { grid-template-columns: minmax(0, 1fr); }
  .fees-kpis > :last-child,
  .fees-calc-grid:not(.is-4) > :last-child { grid-column: auto; }
  .fees-calc { padding: 18px 16px; border-radius: 18px; }
  .fees-step-card,
  .fees-role-card,
  .fees-cta-band { padding: 18px 16px; }
  .fees-seg-controls { width: 100%; }
  .fees-seg { width: 100%; border-radius: 16px; }
  .fees-seg-btn { flex: 1 1 auto; text-align: center; border-radius: 12px; white-space: normal; line-height: 1.25; }
}

html.reduced-motion .is-tap-pulse,
html.reduced-motion .is-btn-ok,
html.reduced-motion .is-bid-launch,
html.reduced-motion .tutor-bid-btn::after,
html.reduced-motion .bid-submit-main::after,
html.reduced-motion .sheet-modal.is-sheet-entering,
html.reduced-motion .sheet-modal.is-filter-drawer.is-sheet-entering,
html.reduced-motion .sheet-modal.is-sheet-swap,
html.reduced-motion .modal-back.is-back-entering,
html.reduced-motion .bid-launch-burst,
html.reduced-motion .bid-sent-card,
html.reduced-motion .bid-check-path,
html.reduced-motion .bid-sent-ring,
html.reduced-motion .tutor-card.is-home-bid.is-just-sent,
html.reduced-motion .tutor-card.is-home-bid.is-just-accepted,
html.reduced-motion .tutor-card.is-home-bid.is-bid-highlighted,
html.reduced-motion .home-bid-status.is-accepted.is-just-accepted .home-bid-status-ico,
html.reduced-motion .bid-sched-card.is-just-revealed,
html.reduced-motion .bid-sched-confirmed.is-just-confirmed {
  animation: none !important;
}
html.reduced-motion .bid-check-path {
  stroke-dashoffset: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  .is-tap-pulse,
  .is-btn-ok,
  .is-bid-launch,
  .tutor-bid-btn::after,
  .bid-submit-main::after,
  .sheet-modal.is-sheet-entering,
  .sheet-modal.is-filter-drawer.is-sheet-entering,
  .sheet-modal.is-sheet-swap,
  .modal-back.is-back-entering,
  .bid-launch-burst,
  .bid-sent-card,
  .bid-check-path,
  .bid-sent-ring,
  .tutor-card.is-home-bid.is-just-sent,
  .tutor-card.is-home-bid.is-just-accepted,
  .tutor-card.is-home-bid.is-bid-highlighted,
  .home-bid-status.is-accepted.is-just-accepted .home-bid-status-ico,
  .bid-sched-card.is-just-revealed,
  .bid-sched-confirmed.is-just-confirmed,
  .mc-panel {
    animation: none !important;
  }
  .mc-fab {
    transition: none !important;
  }
  .bid-check-path {
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- Учёба / Общение segmented switches & hh-style Mini-Messenger ---------- */
.learn-head-seg {
  display: inline-flex;
  align-self: flex-start;
  flex-wrap: nowrap;
}
.comm-head-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 420px);
}
.comm-head-seg button {
  gap: 8px;
}
.comm-head-seg .comm-seg-badge {
  flex: none;
  overflow: visible;
  text-overflow: clip;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--notif, #ea580c);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
:root[data-theme="dark"] .comm-head-seg .comm-seg-badge {
  background: #ea580c;
  color: #ffffff;
}
@media (max-width: 899px) {
  .comm-head-seg {
    width: 100%;
  }
}

.mini-chat-dock[hidden] {
  display: none !important;
}
.mini-chat-dock {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.mini-chat-dock > * {
  pointer-events: auto;
}
@media (max-width: 899px) {
  .mini-chat-dock {
    display: none !important;
  }
}

.mc-fab {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 28px -8px rgba(0, 112, 255, .52), 0 4px 12px -4px rgba(14, 17, 22, .22);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), background-color .16s ease, box-shadow .18s ease;
}
.mc-fab svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.mc-fab:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.03);
}
.mc-fab.is-open {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px -10px rgba(14, 17, 22, .24);
}
:root[data-theme="dark"] .mc-fab {
  box-shadow: 0 14px 32px -8px rgba(29, 123, 255, .58), 0 4px 14px rgba(0, 0, 0, .65);
}
:root[data-theme="dark"] .mc-fab.is-open {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
}

.mc-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bad);
  color: #ffffff;
  border: 2px solid var(--surface);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mc-panel {
  width: min(380px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 120px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 56px -16px rgba(14, 17, 22, .28), 0 4px 14px -4px rgba(14, 17, 22, .08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: mcPopIn .18s cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] .mc-panel {
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px -14px rgba(0, 0, 0, .92);
}
@keyframes mcPopIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.mc-panel-head svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.mc-panel-head .row > svg {
  color: var(--accent);
}
.mc-head-title {
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-head-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-search-wrap {
  position: relative;
  padding: 8px 12px;
  border-bottom: 0;
  background: var(--surface);
  flex: none;
}
.mc-search-ico {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: inline-flex;
}
.mc-search-ico svg {
  width: 15px;
  height: 15px;
}
.mc-search-inp {
  padding-left: 38px !important;
  height: 38px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  font-size: 13px;
  background: var(--surface-2);
}
:root[data-theme="dark"] .mc-search-inp {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.mc-thread-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mc-thread-list.is-full {
  max-height: 480px;
}

.mc-thread-item {
  position: relative;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  min-height: 62px;
  border-radius: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color .14s ease;
}
.mc-thread-item:hover {
  background: var(--surface-2);
}
.mc-thread-item.is-active {
  background: var(--accent-soft);
}
.mc-thread-item .avatar {
  flex: none;
  width: 46px;
  height: 46px;
  font-size: 14.5px;
  font-weight: 700;
}
.avatar.is-support {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mc-thread-item.is-support {
  background: transparent;
  border-bottom: 0;
}
.mc-thread-item.is-support:hover {
  background: var(--surface-2);
}
.mc-thread-item.is-support.is-active {
  background: var(--accent-soft);
}
.mc-support-star {
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
  flex: none;
}
.mc-support-pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: color-mix(in srgb, #f59e0b 14%, var(--surface-2));
  color: var(--ink-2);
  white-space: nowrap;
  flex: none;
}
:root[data-theme="dark"] .mc-thread-item.is-support {
  background: transparent;
}
:root[data-theme="dark"] .mc-thread-item.is-support:hover {
  background: rgba(255, 255, 255, 0.06);
}
:root[data-theme="dark"] .mc-thread-item.is-support.is-active {
  background: rgba(37, 99, 235, 0.28);
}
:root[data-theme="dark"] .mc-support-pin-pill {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}
.mc-thread-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.mc-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.mc-thread-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-thread-time-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.mc-thread-time {
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.mc-thread-item.is-unread .mc-thread-time {
  color: var(--accent);
  font-weight: 700;
}
.mc-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.mc-thread-prev {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-thread-item.is-unread .mc-thread-prev {
  color: var(--ink);
  font-weight: 500;
}
.mc-thread-badge {
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mc-thread-pay {
  font-weight: 700;
}
.mc-thread-pay.is-paid {
  color: var(--confirm);
}
.mc-thread-pay.is-unpaid {
  color: #ea580c;
}
:root[data-theme="dark"] .mc-thread-pay.is-unpaid {
  color: #fb923c;
}

.mc-ctx-bar,
.mc-lesson-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  flex: none;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}
.mc-lesson-bar.is-unpaid {
  background: #fff7ed;
  border-bottom-color: rgba(234, 88, 12, .24);
}
:root[data-theme="dark"] .mc-lesson-bar.is-unpaid {
  background: rgba(249, 115, 22, .12);
  border-bottom-color: rgba(249, 115, 22, .32);
}
.mc-lesson-info {
  min-width: 0;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mc-lesson-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.mc-lesson-when {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink);
  min-width: 0;
}
.mc-lesson-when svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}
.mc-lesson-sub {
  font-size: 12px;
}
.mc-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  flex: none;
}
.mc-pay-pill svg {
  width: 12px;
  height: 12px;
  flex: none;
}
.mc-pay-pill.is-paid {
  background: var(--confirm-soft);
  color: var(--confirm);
}
.mc-pay-pill.is-unpaid {
  background: var(--notif-soft);
  color: #c2410c;
}
:root[data-theme="dark"] .mc-pay-pill.is-unpaid {
  color: #fb923c;
}
.mc-lesson-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.mc-lesson-acts > .btn {
  white-space: nowrap;
  min-width: 0;
}
.mc-lesson-acts > .btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-panel .mc-lesson-acts {
  flex-wrap: wrap;
  width: 100%;
}
.mc-panel .mc-lesson-acts > .btn {
  flex: 0 0 auto;
}
.mc-topup-btn,
.mc-pay-remind-btn {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  gap: 5px;
  box-shadow: 0 4px 12px -4px rgba(234, 88, 12, .48);
}
.mc-topup-btn:hover,
.mc-pay-remind-btn:hover {
  background: #c2410c !important;
  border-color: #c2410c !important;
}
.mc-pay-remind-btn:disabled {
  opacity: .56;
  cursor: default;
}
:root[data-theme="dark"] .mc-pay-remind-btn,
:root[data-theme="dark"] .mc-topup-btn {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #0b0c10 !important;
}
:root[data-theme="dark"] .mc-pay-remind-btn:hover,
:root[data-theme="dark"] .mc-topup-btn:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
}
.mc-topup-btn svg,
.mc-pay-remind-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.mc-tm-btn {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
}
.mc-tm-edit-btn {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 9px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  gap: 5px;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink-2) !important;
}
.mc-tm-edit-btn svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.mc-tm-edit-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.mc-tm-edit-btn.is-active {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}
:root[data-theme="dark"] .mc-tm-edit-btn {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--ink-2) !important;
}
:root[data-theme="dark"] .mc-tm-edit-btn.is-active {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
@media (max-width: 560px) {
  .mc-lesson-acts {
    width: 100%;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mc-lesson-acts::-webkit-scrollbar { display: none; }
  .mc-lesson-acts > .btn {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 9px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
    border-radius: 9px !important;
    flex: 0 0 auto;
  }
  .mc-lesson-acts > .btn svg {
    width: 12px !important;
    height: 12px !important;
    flex: none;
  }
}
.mc-tm-editor {
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.mc-tm-editor-lbl {
  font-size: 11.5px;
  line-height: 1.35;
}
.mc-tm-editor-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mc-tm-inp {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}
.mc-tm-save-btn {
  flex: none;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
}
.mc-tm-editor-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mc-tm-err {
  color: var(--bad);
  font-weight: 600;
  font-size: 12px;
}
@media (max-width: 899px) {
  .mc-tm-inp {
    font-size: 16px !important;
  }
}

.mc-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  background: var(--bg);
}
:root[data-theme="dark"] .mc-messages {
  background: #0a0b0e;
}

.mc-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 84%;
  align-self: flex-start;
}
.mc-msg.is-me {
  align-self: flex-end;
  align-items: flex-end;
}
.mc-msg-bubble {
  padding: 9px 12px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.42;
  word-break: break-word;
}
.mc-msg.is-me .mc-msg-bubble {
  border-radius: 16px 16px 4px 16px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.mc-msg-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}
.mc-msg-time {
  font-size: 10.5px;
  color: var(--muted);
  padding: 0;
}
.mc-receipt {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: none;
}
.mc-receipt.is-sent {
  color: color-mix(in srgb, var(--accent) 68%, var(--muted));
}
.mc-receipt.is-read {
  color: var(--accent);
}
.mc-receipt.is-compact svg {
  height: 11px;
  width: auto;
  display: block;
}

.mc-quick-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: none;
}
.mc-quick-row::-webkit-scrollbar {
  display: none;
}
.mc-quick-pill {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.mc-quick-pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.mc-quick-pill.is-remind {
  background: var(--notif-soft);
  border-color: rgba(249, 115, 22, .35);
  color: #c2410c;
}
.mc-quick-pill.is-remind:hover {
  background: #ffedd5;
  border-color: #ea580c;
  color: #9a3412;
}
:root[data-theme="dark"] .mc-quick-pill.is-remind {
  color: #fb923c;
  border-color: rgba(251, 146, 60, .38);
}
:root[data-theme="dark"] .mc-quick-pill.is-remind:hover {
  background: rgba(249, 115, 22, .24);
  color: #fed7aa;
}
.mc-quick-pill svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.mc-notice-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--confirm-soft);
  color: var(--confirm);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  flex: none;
}
.mc-notice-bar > svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.mc-notice-bar > span {
  flex: 1 1 auto;
  min-width: 0;
}
.mc-notice-x {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mc-notice-x svg {
  width: 12px;
  height: 12px;
}

.mc-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.mc-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  border-radius: 999px;
  padding-inline: 14px;
  font-size: 13.5px;
}
.mc-send-btn {
  flex: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.mc-send-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mc-attach-btn {
  flex: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mc-attach-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.mc-attach-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mc-pending-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px 6px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  flex: none;
  max-height: 120px;
  overflow-y: auto;
}
.mc-pending-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.mc-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}
.mc-pending-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  max-width: 220px;
}
.mc-pending-chip > svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}
.mc-pending-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.mc-pending-size {
  font-size: 11px;
  color: var(--muted);
  flex: none;
}
.mc-pending-x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  line-height: 0;
}
.mc-pending-thumb .mc-pending-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--surface);
  background: var(--ink);
  color: var(--surface);
}
.mc-pending-x svg {
  width: 11px;
  height: 11px;
  display: block;
}

.mc-msg-bubble.is-media-only {
  padding: 4px;
}
.mc-msg-text {
  white-space: pre-wrap;
}
.mc-msg-bubble:not(.is-media-only) .mc-att-photos + .mc-msg-text,
.mc-msg-bubble:not(.is-media-only) .mc-att-files + .mc-msg-text,
.mc-msg-bubble:not(.is-media-only) .mc-att-photos + .mc-att-files {
  margin-top: 6px;
}
.mc-att-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mc-att-photo-btn {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  cursor: zoom-in;
  max-width: 100%;
}
.mc-att-photo {
  max-width: 240px;
  max-height: 220px;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.mc-att-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mc-att-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
  transition: background-color .14s ease, border-color .14s ease;
}
.mc-att-file:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.mc-msg.is-me .mc-att-file {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
  color: #ffffff;
}
.mc-msg.is-me .mc-att-file:hover {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .5);
}
.mc-att-file-ico,
.mc-att-file-dl {
  flex: none;
  display: inline-flex;
  color: var(--accent);
}
.mc-att-file-ico svg,
.mc-att-file-dl svg {
  width: 16px;
  height: 16px;
  display: block;
}
.mc-att-file-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mc-att-file-name {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-att-file-size {
  font-size: 11px;
  color: var(--muted);
}
.mc-msg.is-me .mc-att-file-size,
.mc-msg.is-me .mc-att-file-ico,
.mc-msg.is-me .mc-att-file-dl {
  color: rgba(255, 255, 255, .92);
}

.mc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
@media (min-width: 900px) {
  .mc-lightbox.is-mobile-only {
    display: none !important;
  }
}
.mc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .86);
  cursor: zoom-out;
}
.mc-lightbox-card {
  position: relative;
  z-index: 1;
  max-width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] .mc-lightbox-card {
  border-color: var(--line-strong);
}
.mc-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mc-lightbox-title {
  font-size: 13.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-lightbox-body {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0b0e;
  overflow: auto;
}
.mc-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.mc-guest-box,
.mc-empty-box {
  flex: 1 1 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.mc-empty-thread {
  margin: auto;
  padding: 18px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  max-width: 320px;
}

.comm-chats-strip {
  gap: 10px;
}
.comm-chats-strip svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.comm-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.comm-strip-grid .mc-thread-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 0;
  background: var(--surface-2);
}
.comm-strip-grid .mc-thread-item::before {
  display: none;
}
.comm-strip-grid .mc-thread-item:hover {
  border-color: var(--line-strong);
}

.shell:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) {
  padding: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .head {
  flex: none;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .head .eyebrow {
  display: none;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .head .h1 {
  font-size: 20px;
  line-height: 1.2;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .head .lead {
  font-size: 13px;
  color: var(--muted);
  max-width: none;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell):has(.comm-head-seg) > .page > .head {
  border-bottom: 0;
  padding-bottom: 8px;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .comm-head-seg {
  flex: none;
  margin: 12px 20px;
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell):has(.comm-head-seg) > .page > .comm-chat-grid {
  border-top: 1px solid var(--line);
}
.main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .notice {
  flex: none;
  margin: 12px 20px 0;
}
body:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) .mini-chat-dock {
  display: none !important;
}

.card.comm-chat-grid,
.comm-chat-grid {
  --comm-side-eff: min(var(--comm-side-w, 320px), max(220px, calc(100% - 320px)));
  position: relative;
  padding: 0 !important;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--comm-side-eff) minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--surface);
}
.comm-chat-grid.is-side-compact {
  --comm-side-eff: 76px;
}
.comm-chat-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
}
.comm-chat-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--comm-side-eff) - 5px);
  width: 10px;
  z-index: 14;
  cursor: col-resize;
  touch-action: none;
  outline: none;
}
.mc-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: none;
}
.mc-avatar-unread {
  display: none;
}
.comm-chat-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .15s ease, width .15s ease, left .15s ease;
}
.comm-chat-resizer:hover::after,
.comm-chat-resizer:focus-visible::after,
.comm-chat-resizer.is-dragging::after {
  opacity: 1;
  width: 3px;
  left: 3px;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent);
}
body.is-comm-resizing {
  user-select: none;
  cursor: col-resize;
}
body.is-comm-resizing .comm-chat-grid,
body.is-comm-resizing .comm-chat-sidebar,
body.is-comm-resizing .comm-chat-pane,
body.is-comm-resizing .comm-chat-resizer {
  transition: none !important;
}
@media (min-width: 900px) {
  .comm-chat-grid.is-side-compact .comm-chat-sidebar > .mc-search-wrap {
    padding: 0;
    justify-content: center;
    cursor: pointer;
  }
  .comm-chat-grid.is-side-compact .comm-chat-sidebar > .mc-search-wrap .mc-search-ico {
    position: static;
    transform: none;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    pointer-events: auto;
  }
  .comm-chat-grid.is-side-compact .comm-chat-sidebar > .mc-search-wrap .mc-search-inp {
    display: none;
  }
  .comm-chat-grid.is-side-compact .comm-chat-sidebar .mc-thread-copy,
  .comm-chat-grid.is-side-compact .comm-chat-sidebar .tc-grp-item-txt,
  .comm-chat-grid.is-side-compact .comm-chat-sidebar .tc-fav-btn.is-inline {
    display: none;
  }
  .comm-chat-grid.is-side-compact .comm-chat-sidebar .mc-thread-item,
  .comm-chat-grid.is-side-compact .comm-chat-sidebar .tc-grp-item,
  .comm-chat-grid.is-side-compact .comm-chat-sidebar .tc-grp-item-main {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
  }
  .comm-chat-grid.is-side-compact .comm-chat-sidebar > .empty {
    display: none;
  }
  .comm-chat-grid.is-side-compact .mc-avatar-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -4px;
    bottom: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--surface);
  }
}
.comm-chat-sidebar .mc-thread-list.is-full {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0 0 2px;
  overflow-y: auto;
}
.comm-chat-sidebar > .empty {
  flex: 0 0 auto;
  margin: 12px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.comm-chat-sidebar > .empty b {
  font-size: 14.5px;
  color: var(--ink);
}
.comm-chat-sidebar > .empty span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 280px;
}
.comm-chat-sidebar > .empty .btn {
  margin-top: 4px;
  flex: none;
  height: auto;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
}
.comm-chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
}
.comm-chat-pane .mc-messages {
  min-height: 0;
}
.comm-chat-pane.is-empty {
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.comm-chat-pane.is-empty > .empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  max-width: 360px;
  padding: 24px 22px;
  border-radius: 16px;
}
.comm-chat-pane.is-empty > .empty .btn {
  margin-top: 4px;
  flex: none;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
}
.comm-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.comm-pane-person {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.comm-pane-person .avatar {
  flex: none;
  width: 38px;
  height: 38px;
  font-size: 13px;
}
.comm-head-profile-btn,
.mc-head-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 8px 4px 4px;
  margin: -4px 0 -4px -4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .14s ease;
}
.mc-head-profile-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 4px 8px;
  margin: -4px 0;
  max-width: 100%;
}
.comm-head-profile-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.comm-head-profile-btn:hover,
.mc-head-profile-btn:hover {
  background: var(--surface-2);
}
.comm-head-profile-btn:hover .mc-head-title,
.mc-head-profile-btn:hover .mc-head-title {
  color: var(--accent);
}
.tutor-profile-jump-btn {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tutor-profile-jump-btn:hover .tutor-person-name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comm-mobile-back,
.comm-mobile-rail {
  display: none;
}

/* Telegram Desktop Folders Rail for Tutor Общение */
.tc-tg-shell {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}
.tc-tg-rail {
  width: 92px;
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: #f1f4f9;
  border-right: 1px solid var(--line);
  user-select: none;
}
.tc-tg-rail::-webkit-scrollbar {
  display: none;
}
.tc-tg-folders {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 8px;
}
.tc-tg-folder {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5b687a;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.tc-tg-folder:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink);
}
.tc-tg-folder.is-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.tc-tg-folder-ico {
  position: relative;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tc-tg-folder-ico svg {
  width: 24px;
  height: 24px;
  display: block;
}
.tc-tg-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: #8f9cad;
  border: 2px solid #f1f4f9;
}
.tc-tg-badge.is-accent {
  background: var(--accent);
}
.tc-tg-folder.is-active .tc-tg-badge {
  border-color: color-mix(in srgb, var(--accent) 12%, #f1f4f9);
}
.tc-tg-folder-lbl {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 100%;
  padding: 0 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-tg-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stu-tg-bids-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 28px;
}
.tc-tg-grp-ico {
  display: inline-flex;
  align-items: center;
  vertical-align: -2px;
  margin-right: 5px;
  opacity: 0.8;
  flex: none;
}
.tc-tg-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.tc-pane-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.tc-thread-fav-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
:root[data-theme="dark"] .tc-tg-rail {
  background: #0e1621;
  border-right-color: #1c2733;
}
:root[data-theme="dark"] .tc-tg-folder {
  color: #768c9e;
}
:root[data-theme="dark"] .tc-tg-folder:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #dce7f2;
}
:root[data-theme="dark"] .tc-tg-folder.is-active {
  background: #202b36;
  color: #5eb5f7;
}
:root[data-theme="dark"] .tc-tg-badge {
  background: #6c7883;
  border-color: #0e1621;
}
:root[data-theme="dark"] .tc-tg-badge.is-accent {
  background: #3d9be9;
}
:root[data-theme="dark"] .tc-tg-folder.is-active .tc-tg-badge {
  border-color: #202b36;
}

@media (min-width: 900px) {
  .tc-tg-folders {
    padding: 0 0 8px;
  }
  .tc-tg-folder {
    height: 60px;
    padding: 6px 4px;
    box-sizing: border-box;
  }
  .comm-chat-sidebar > .mc-search-wrap {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .comm-chat-sidebar > .mc-search-wrap .mc-search-inp {
    width: 100%;
  }
  .comm-chat-pane > .comm-pane-head {
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
    box-sizing: border-box;
  }
  .comm-chat-sidebar .mc-thread-item.is-support {
    height: 63px;
    min-height: 63px;
    box-sizing: border-box;
  }
  .comm-chat-pane .mc-lesson-bar,
  .comm-chat-pane .mc-ctx-bar {
    min-height: 63px;
    padding: 8px 14px;
    box-sizing: border-box;
  }
}

@media (max-width: 899px) {
  .comm-strip-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shell:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .shell:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .topbar {
    position: relative;
    top: auto;
    flex: none;
  }
  .shell:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .main {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .shell:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .tabbar {
    position: static;
    flex: none;
  }
  .main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .head {
    padding: 10px 14px 8px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
  }
  .main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .head .lead {
    display: none;
  }
  .main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .comm-head-seg {
    margin: 10px 12px;
    width: auto;
  }
  .main:has(#comm-chat-workspace, #tc-comm-groups, #tc-tg-shell) > .page > .notice {
    margin: 10px 12px 0;
  }
  .main:has(#comm-chat-workspace.has-active-thread, #tc-comm-groups.has-active-thread, #tc-tg-shell:has(.has-active-thread)) > .page > .head,
  .main:has(#comm-chat-workspace.has-active-thread, #tc-comm-groups.has-active-thread, #tc-tg-shell:has(.has-active-thread)) > .page > .comm-head-seg,
  .main:has(#comm-chat-workspace.has-active-thread, #tc-comm-groups.has-active-thread, #tc-tg-shell:has(.has-active-thread)) > .page > .notice {
    display: none;
  }
  .main:has(#comm-chat-workspace.has-active-thread, #tc-comm-groups.has-active-thread, #tc-tg-shell:has(.has-active-thread)) > .page > .comm-chat-grid {
    border-top: 0;
  }
  .card.comm-chat-grid,
  .comm-chat-grid {
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
  }
  .comm-chat-sidebar {
    border-right: none;
    border-bottom: none;
    height: 100%;
    min-height: 0;
  }
  .comm-chat-resizer {
    display: none !important;
  }
  .comm-chat-grid.has-active-thread .comm-chat-sidebar {
    display: none;
  }
  .comm-chat-grid:not(.has-active-thread) .comm-chat-pane {
    display: none;
  }
  .comm-mobile-rail {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    flex: none;
  }
  .comm-mobile-rail::-webkit-scrollbar {
    display: none;
  }
  .comm-mobile-chip {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
  }
  .comm-mobile-chip.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
  }
  .comm-mobile-chip .avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
    flex: none;
  }
  .comm-mobile-chip-dot {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--notif);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    flex: none;
  }
  .comm-mobile-back {
    display: inline-grid;
    flex: none;
  }
  .comm-chat-pane {
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
  }
  .comm-chat-grid .mc-composer {
    padding: 8px 12px;
  }
  .comm-chat-sidebar .mc-thread-list.is-full {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }
  .tc-section-head > .btn {
    width: 100%;
    justify-content: center;
  }
  .tc-sp-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .tc-sp-editor {
    padding: 14px 0 0;
  }
  .tc-tg-shell {
    flex-direction: column;
  }
  .tc-tg-main {
    order: 3;
  }
  .tc-tg-shell:not(:has(.has-active-thread)):has(.comm-chat-sidebar) > .tc-tg-main,
  .tc-tg-shell:not(:has(.has-active-thread)):has(.comm-chat-sidebar) .comm-chat-grid,
  .tc-tg-shell:not(:has(.has-active-thread)):has(.comm-chat-sidebar) .comm-chat-sidebar {
    display: contents;
  }
  .tc-tg-shell:not(:has(.has-active-thread)) .mc-search-wrap {
    order: 1;
    flex: none;
    padding: 8px 12px;
    border-bottom: 0;
    background: var(--surface);
  }
  .tc-tg-shell:not(:has(.has-active-thread)) .mc-search-ico {
    left: 26px;
  }
  .tc-tg-shell:not(:has(.has-active-thread)) .mc-search-ico svg {
    width: 16px;
    height: 16px;
  }
  .tc-tg-shell:not(:has(.has-active-thread)) .mc-search-inp {
    height: 40px;
    min-height: 40px;
    border-radius: 999px;
    padding-left: 40px !important;
    font-size: 14px;
  }
  .tc-tg-shell:not(:has(.has-active-thread)) .mc-thread-list,
  .tc-tg-shell:not(:has(.has-active-thread)) .tc-grp-list {
    order: 3;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  .tc-tg-shell:not(:has(.has-active-thread)) .comm-chat-sidebar > .empty {
    order: 3;
    flex: 0 0 auto;
    margin: 12px 12px auto;
    padding: 26px 20px;
  }
  .tc-tg-rail {
    order: 2;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 2px 12px 8px;
    flex: none;
    flex-direction: row;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 999px;
    background: var(--surface-2);
    padding: 4px;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tc-tg-folders {
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    flex: 0 0 auto;
  }
  .tc-tg-folder {
    width: auto;
    flex-direction: row;
    align-items: center;
    padding: 7px 14px;
    min-height: 32px;
    border-radius: 999px;
    gap: 6px;
    flex: none;
    color: var(--ink-2);
    background: transparent;
  }
  .tc-tg-folder.is-active {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--accent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  }
  @media (hover: none) {
    .tc-tg-folder:hover:not(.is-active) {
      background: transparent;
      color: var(--ink-2);
    }
  }
  .tc-tg-folder-lbl {
    order: 1;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    display: inline;
    overflow: visible;
    padding: 0;
  }
  .tc-tg-folder-ico {
    order: 2;
    width: auto;
    height: auto;
    gap: 0;
  }
  .tc-tg-folder-ico svg {
    display: none;
  }
  .tc-tg-folder-ico:not(:has(.tc-tg-badge)) {
    display: none;
  }
  .tc-tg-badge {
    position: static;
    border: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    background: color-mix(in srgb, var(--ink) 12%, transparent);
    color: var(--ink-2);
  }
  .tc-tg-badge.is-accent {
    background: var(--accent);
    color: #ffffff;
  }
  .tc-tg-folder.is-active .tc-tg-badge:not(.is-accent) {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
  }
  :root[data-theme="dark"] .tc-tg-rail {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }
  :root[data-theme="dark"] .tc-tg-folder {
    color: #8ea0b2;
  }
  :root[data-theme="dark"] .tc-tg-folder.is-active {
    background: rgba(94, 181, 247, 0.18);
    color: #6ab9f7;
    box-shadow: none;
  }
  :root[data-theme="dark"] .tc-tg-badge {
    background: rgba(255, 255, 255, 0.14);
    color: #dce7f2;
  }
  :root[data-theme="dark"] .tc-tg-badge.is-accent {
    background: #3d9be9;
    color: #ffffff;
  }
  .tc-tg-shell:has(.has-active-thread) > .tc-tg-rail {
    display: none;
  }

  .stu-tg-bids-pane {
    padding: 14px 12px 24px;
  }
}
@media (max-width: 520px) {
  .tc-sp-card-actions:not(.is-confirming) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .tc-sp-card-actions:not(.is-confirming) .btn {
    width: 100%;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 8px;
    justify-content: center;
  }
  .tc-sp-card-actions:not(.is-confirming) .tc-sp-bump-btn.is-confirmed {
    padding: 0 6px;
    font-size: 12px;
  }
}

/* Google Calendar-inspired Desktop Week View (mobile preserves day-pills UI) */
.tc-gcal-topbar,
.tc-gcal-desktop,
.tc-gcal-resizer,
.tc-gcal-inspector-close {
  display: none;
}
@media (min-width: 900px) {
  .main:has(#tc-gcal-week, #study-gcal-week) {
    padding-block: 14px 16px;
  }
  .main:has(#tc-gcal-week, #study-gcal-week) > .page {
    max-width: 1460px;
  }
  #tc-students-mode-seg {
    display: none;
  }
  #tc-week-strip,
  #study-week-strip {
    position: relative;
  }
  #tc-week-strip > .tc-wa-inline-panel {
    width: min(410px, calc(100vw - 48px));
  }
  #tc-week-strip > form[data-f="tc-cal-import"] {
    width: min(390px, calc(100vw - 48px));
  }
  #tc-week-strip > .tc-wa-inline-panel,
  #tc-week-strip > form[data-f="tc-cal-import"] {
    position: absolute;
    top: 44px;
    right: 0;
    z-index: 65;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 13px 14px;
    gap: 10px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow: 0 20px 44px rgba(15, 23, 42, .18), 0 4px 12px rgba(15, 23, 42, .08);
    animation: tcGcalPopIn .16s cubic-bezier(.22, 1, .36, 1) both;
  }
  #tc-week-strip > .tc-wa-inline-panel .h2 {
    font-size: 16px;
    line-height: 1.2;
  }
  #tc-week-strip > .tc-wa-inline-panel .tc-wa-master-row {
    padding: 8px 10px;
  }
  #tc-week-strip > .tc-wa-inline-panel .tc-template-card {
    padding: 10px 12px;
    gap: 6px;
  }
  #tc-week-strip > .tc-wa-inline-panel .textarea {
    min-height: 68px;
    font-size: 13px;
    padding: 8px 10px;
  }
  .tc-gcal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 2px 0;
  }
  .tc-gcal-tb-left,
  .tc-gcal-tb-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
  }
  .tc-gcal-tb-right .btn.sm,
  .tc-gcal-tb-left .btn.sm {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .tc-gcal-nav-pair {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .tc-gcal-nav-pair .icon-btn.sm {
    font-size: 18px;
    font-weight: 600;
  }
  .tc-gcal-today-btn {
    border-color: var(--line-strong);
    font-weight: 600;
  }
  .tc-gcal-month-title {
    margin: 0 2px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--ink);
    white-space: nowrap;
  }
  .tc-gcal-week-chip {
    font-size: 12px;
    font-weight: 600;
  }
  .tc-gcal-view-seg {
    padding: 2px;
  }
  .tc-gcal-view-seg button {
    min-height: 28px;
    padding: 0 11px;
    font-size: 12.5px;
  }
  #tc-week-strip.tc-cal-mode-week .tc-cal-mobile-head,
  #study-week-strip.tc-cal-mode-week .tc-cal-mobile-head {
    display: none;
  }
  #tc-week-strip.tc-cal-mode-list .tc-cal-toolbar,
  #study-week-strip.tc-cal-mode-list .tc-cal-toolbar {
    display: none;
  }
  .tc-gcal-shell.is-mode-week {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
  }
  .tc-gcal-shell.is-mode-week.has-inspector {
    grid-template-columns: minmax(0, 1fr) 14px min(var(--gcal-inspector-w, 340px), max(260px, calc(100% - 374px)));
    gap: 0;
  }
  .tc-gcal-shell.is-mode-week.has-inspector > .tc-gcal-resizer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    position: relative;
    width: 14px;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
    outline: none;
  }
  .tc-gcal-shell.is-mode-week.has-inspector > .tc-gcal-resizer::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .15s ease, background .15s ease;
  }
  .tc-gcal-resizer-grip {
    position: sticky;
    top: min(260px, 45vh);
    display: block;
    width: 4px;
    height: 42px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 42%, var(--line-strong));
    transition: background .15s ease, height .15s ease, box-shadow .15s ease;
  }
  .tc-gcal-resizer:hover::before,
  .tc-gcal-resizer:focus-visible::before,
  .tc-gcal-resizer.is-dragging::before {
    opacity: .5;
  }
  .tc-gcal-resizer:hover .tc-gcal-resizer-grip,
  .tc-gcal-resizer:focus-visible .tc-gcal-resizer-grip,
  .tc-gcal-resizer.is-dragging .tc-gcal-resizer-grip {
    background: var(--accent);
    height: 54px;
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 42%, transparent);
  }
  .tc-gcal-shell.is-inspector-will-collapse > .tc-gcal-resizer::before,
  .tc-gcal-shell.is-inspector-will-collapse > .tc-gcal-resizer .tc-gcal-resizer-grip {
    background: var(--bad);
    opacity: .85;
  }
  .tc-gcal-shell.is-inspector-will-collapse > .tc-gcal-inspector-wrap {
    opacity: .32;
    transform: translateX(10px);
    transition: opacity .14s ease, transform .14s ease;
  }
  body.tc-gcal-is-resizing-inspector {
    user-select: none;
    cursor: col-resize;
  }
  body.tc-gcal-is-resizing-inspector .tc-gcal-shell,
  body.tc-gcal-is-resizing-inspector .tc-gcal-desktop,
  body.tc-gcal-is-resizing-inspector .tc-gcal-inspector-wrap {
    transition: none !important;
  }
  .tc-gcal-shell.is-mode-week .tc-gcal-desktop {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
  }
  .tc-gcal-shell.is-mode-week:not(.has-inspector) > .tc-gcal-inspector-wrap,
  .tc-gcal-shell.is-mode-week:not(.has-inspector) > .tc-gcal-resizer {
    display: none;
  }
  .tc-gcal-shell.is-mode-week.has-inspector .tc-gcal-inspector-close {
    display: inline-grid;
  }
  .tc-gcal-shell.is-mode-list .tc-gcal-desktop {
    display: none;
  }
  .tc-gcal-aside {
    width: 206px;
    flex: 0 0 206px;
    display: grid;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .tc-gcal-shell.is-aside-collapsed .tc-gcal-aside {
    display: none;
  }
  @media (max-width: 1180px) {
    .tc-gcal-aside {
      display: none;
    }
    .tc-gcal-aside-btn {
      display: none;
    }
  }
  @media (max-width: 1380px) {
    .tc-gcal-shell.has-inspector .tc-gcal-aside {
      display: none;
    }
  }
  .tc-gcal-mini {
    display: grid;
    gap: 6px;
  }
  .tc-gcal-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 2px;
  }
  .tc-gcal-mini-head b {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
  }
  .tc-gcal-mini-nav {
    display: inline-flex;
    gap: 2px;
  }
  .tc-gcal-mini-nav button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
  }
  .tc-gcal-mini-nav button:hover {
    background: var(--surface-2);
    color: var(--ink);
  }
  .tc-gcal-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px 0;
    text-align: center;
  }
  .tc-gcal-mini-grid.is-wd span {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    padding: 2px 0;
  }
  .tc-gcal-mini-day {
    position: relative;
    width: 26px;
    height: 26px;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color .12s ease, color .12s ease;
  }
  .tc-gcal-mini-day:hover {
    background: var(--surface-2);
  }
  .tc-gcal-mini-day.is-out {
    color: var(--muted);
    opacity: .55;
  }
  .tc-gcal-mini-day.is-in-week {
    background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  }
  .tc-gcal-mini-day.is-selected:not(.is-today) {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
  }
  .tc-gcal-mini-day.is-today {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
  }
  .tc-gcal-mini-day.has-dot::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3.5px;
    height: 3.5px;
    border-radius: 999px;
    background: var(--accent);
  }
  .tc-gcal-mini-day.is-today.has-dot::after {
    background: #fff;
  }
  .tc-gcal-sources {
    display: grid;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .tc-gcal-sources-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 2px;
    padding: 0 2px;
  }
  .tc-gcal-src-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 5px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-2);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color .12s ease, opacity .12s ease;
  }
  .tc-gcal-src-btn:hover {
    background: var(--surface-2);
  }
  .tc-gcal-src-btn:not(.is-on) {
    opacity: .6;
  }
  .tc-gcal-src-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    flex: none;
    border: 1.5px solid var(--line-strong);
    color: #fff;
  }
  .tc-gcal-src-btn.is-uni.is-on .tc-gcal-src-box {
    background: #d97706;
    border-color: #d97706;
  }
  .tc-gcal-src-btn.is-uni:not(.is-on) .tc-gcal-src-box {
    border-color: #d97706;
  }
  .tc-gcal-src-btn.is-student.is-on .tc-gcal-src-box {
    background: var(--accent);
    border-color: var(--accent);
  }
  .tc-gcal-src-btn.is-student:not(.is-on) .tc-gcal-src-box {
    border-color: var(--accent);
  }
  .tc-gcal-src-btn.is-custom.is-on .tc-gcal-src-box {
    background: #0d9488;
    border-color: #0d9488;
  }
  .tc-gcal-src-btn.is-custom:not(.is-on) .tc-gcal-src-box {
    border-color: #0d9488;
  }
  .tc-gcal-src-btn.is-gcal.is-on .tc-gcal-src-box {
    background: #64748b;
    border-color: #64748b;
  }
  .tc-gcal-src-btn.is-gcal:not(.is-on) .tc-gcal-src-box {
    border-color: #64748b;
  }
  .tc-gcal-grid-wrap {
    position: relative;
    isolation: isolate;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
  }
  .tc-gcal-scroll {
    position: relative;
    height: calc(100dvh - 104px);
    max-height: calc(100dvh - 104px);
    min-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .tc-gcal-head {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(0, 1fr));
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .tc-gcal-tz {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px 8px;
    font-size: 10.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
  }
  .tc-gcal-tz-sel {
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 2px;
    cursor: pointer;
    text-align: center;
  }
  .tc-gcal-tz-sel:hover,
  .tc-gcal-tz-sel:focus {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--ink);
    outline: none;
  }
  .tc-gcal-day-hd {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 8px 4px;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
    transition: background-color .12s ease;
  }
  .tc-gcal-day-hd:hover {
    background: var(--surface-2);
  }
  .tc-gcal-wd {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--muted);
  }
  .tc-gcal-day-hd.is-today .tc-gcal-wd {
    color: var(--accent);
  }
  .tc-gcal-num {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
  }
  .tc-gcal-day-hd.is-past .tc-gcal-num {
    color: var(--muted);
  }
  .tc-gcal-day-hd.is-selected:not(.is-today) .tc-gcal-num {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .tc-gcal-day-hd.is-today .tc-gcal-num {
    background: var(--accent);
    color: #fff;
  }
  .tc-gcal-body {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(0, 1fr));
    padding-bottom: 14px;
  }
  .tc-gcal-end-lbl {
    position: absolute;
    bottom: -6px;
    right: 10px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    pointer-events: none;
  }
  .tc-gcal-times {
    display: grid;
    grid-auto-rows: 60px;
    background: var(--surface);
  }
  .tc-gcal-time-lbl {
    position: relative;
    padding-right: 10px;
    text-align: right;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    transform: translateY(-7px);
    user-select: none;
  }
  .tc-gcal-q-ticks {
    position: absolute;
    right: 0;
    top: 7px;
    width: 6px;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      transparent 0,
      transparent 14px,
      color-mix(in srgb, var(--line-strong) 45%, transparent) 14px 15px,
      transparent 15px 29px,
      color-mix(in srgb, var(--line-strong) 75%, transparent) 29px 30px,
      transparent 30px 44px,
      color-mix(in srgb, var(--line-strong) 45%, transparent) 44px 45px,
      transparent 45px 60px
    );
  }
  .tc-gcal-col {
    position: relative;
    display: grid;
    grid-auto-rows: 60px;
    min-width: 0;
  }
  .tc-gcal-col.is-selected {
    background: color-mix(in srgb, var(--accent-soft) 18%, transparent);
  }
  .tc-gcal-col.is-drop-target {
    background: color-mix(in srgb, var(--accent-soft) 36%, transparent);
  }
  .tc-gcal-cell {
    position: relative;
    width: 100%;
    height: 60px;
    padding: 2px 5px;
    border: 0;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(
      to bottom,
      transparent 0,
      transparent 14px,
      color-mix(in srgb, var(--line) 32%, transparent) 14px 15px,
      transparent 15px 44px,
      color-mix(in srgb, var(--line) 32%, transparent) 44px 45px,
      transparent 45px 60px
    );
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
  }
  .tc-gcal-cell::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px dashed color-mix(in srgb, var(--line) 55%, transparent);
    pointer-events: none;
  }
  .tc-gcal-cell:hover {
    background-color: color-mix(in srgb, var(--accent-soft) 24%, transparent);
  }
  .tc-gcal-cell-hint {
    display: none;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent);
    pointer-events: none;
  }
  .tc-gcal-hover-slot {
    display: none;
    position: absolute;
    left: 2px;
    right: 2px;
    height: 15px;
    z-index: 2;
    pointer-events: none;
    border-radius: 4px;
    border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
    background: color-mix(in srgb, var(--accent-soft) 65%, transparent);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    line-height: 13px;
    padding: 0 5px;
    box-sizing: border-box;
  }
  .tc-gcal-hover-slot.is-visible {
    display: flex;
    align-items: center;
  }
  .tc-gcal-draft-ev {
    position: absolute;
    left: 2px;
    right: 4px;
    z-index: 80;
    border-radius: 8px;
    padding: 4px 8px 8px;
    background: #38bdf8;
    color: #082f49;
    border-left: 3px solid #0284c7;
    box-shadow: 0 8px 22px rgba(2, 132, 199, .28);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1px;
    overflow: hidden;
    user-select: none;
  }
  .tc-gcal-draft-ev.is-compact {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 1px 7px;
  }
  .tc-gcal-draft-ev.is-clr-amber { background: #fde68a; color: #78350f; border-left-color: #d97706; }
  .tc-gcal-draft-ev.is-clr-green { background: #bbf7d0; color: #14532d; border-left-color: #16a34a; }
  .tc-gcal-draft-ev.is-clr-purple { background: #ddd6fe; color: #3b0764; border-left-color: #7c3aed; }
  .tc-gcal-draft-ev.is-clr-rose { background: #fecdd3; color: #881337; border-left-color: #e11d48; }
  .tc-gcal-ev.is-spans-next,
  .tc-gcal-draft-ev.is-spans-next {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom: 1px dashed rgba(15, 23, 42, .24);
  }
  .tc-gcal-ev.is-cont-from-prev,
  .tc-gcal-draft-ev.is-cont-from-prev {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-top: 1px dashed rgba(15, 23, 42, .24);
  }
  :root[data-theme="dark"] .tc-gcal-ev.is-spans-next,
  :root[data-theme="dark"] .tc-gcal-draft-ev.is-spans-next {
    border-bottom-color: rgba(255, 255, 255, .28);
  }
  :root[data-theme="dark"] .tc-gcal-ev.is-cont-from-prev,
  :root[data-theme="dark"] .tc-gcal-draft-ev.is-cont-from-prev {
    border-top-color: rgba(255, 255, 255, .28);
  }
  .tc-gcal-draft-resize {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 7px;
    cursor: ns-resize;
  }
  .tc-gcal-draft-resize::after {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    margin: 2px auto 0;
    border-radius: 999px;
    background: currentColor;
    opacity: .42;
  }
  body.tc-gcal-is-dragging {
    user-select: none !important;
    cursor: ns-resize !important;
  }
  body.tc-gcal-is-moving {
    user-select: none !important;
    cursor: grabbing !important;
  }
  .tc-gcal-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ea4335;
    z-index: 4;
    pointer-events: none;
  }
  .tc-gcal-now-line::before {
    content: "";
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ea4335;
  }
  .tc-gcal-ev {
    position: absolute;
    z-index: 3;
    border: 0;
    border-radius: 8px;
    padding: 4px 7px;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1px;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  }
  .tc-gcal-ev:not(.is-gcal) {
    cursor: grab;
  }
  .tc-gcal-ev.is-overlap-front {
    box-shadow: 0 0 0 1.5px var(--surface), 0 2px 6px rgba(15, 23, 42, .14);
  }
  .tc-gcal-ev:hover {
    z-index: 90 !important;
    filter: brightness(.97);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
  }
  .tc-gcal-ev.is-selected {
    z-index: 95 !important;
    outline: 2px solid var(--ink);
    outline-offset: -1px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .22);
  }
  .tc-gcal-ev.is-selected:not(.is-compact) {
    padding-bottom: 11px;
  }
  .tc-gcal-ev-resize {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 9px;
    cursor: ns-resize;
    z-index: 6;
    touch-action: none;
  }
  .tc-gcal-ev.is-compact .tc-gcal-ev-resize {
    height: 6px;
  }
  .tc-gcal-ev-resize::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin: 3px auto 0;
    border-radius: 999px;
    background: currentColor;
    opacity: .55;
    transition: opacity .12s ease, transform .12s ease;
  }
  .tc-gcal-ev.is-compact .tc-gcal-ev-resize::after {
    margin-top: 1px;
    width: 22px;
    height: 2.5px;
  }
  .tc-gcal-ev-resize:hover::after,
  .tc-gcal-ev.is-resizing .tc-gcal-ev-resize::after {
    opacity: .95;
    transform: scaleX(1.12);
  }
  .tc-gcal-ev.is-drag-ready {
    transform: scale(1.015);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .22);
    cursor: grabbing;
  }
  .tc-gcal-ev.is-dragging {
    transition: none !important;
    z-index: 120 !important;
    opacity: .94;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .28);
    cursor: grabbing !important;
    pointer-events: none;
  }
  .tc-gcal-ev.is-resizing {
    transition: none !important;
    z-index: 120 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .24);
  }
  .tc-gcal-ev.is-uni {
    background: #fef3c7;
    color: #78350f;
    border-left: 3px solid #d97706;
  }
  .tc-gcal-ev.is-student {
    background: #dbeafe;
    color: #1e3a8a;
    border-left: 3px solid var(--accent);
  }
  .tc-gcal-ev.is-custom,
  .tc-gcal-ev.is-clr-blue {
    background: #e0f2fe;
    color: #0c4a6e;
    border-left: 3px solid #0284c7;
  }
  .tc-gcal-ev.is-clr-amber {
    background: #fef3c7;
    color: #78350f;
    border-left: 3px solid #d97706;
  }
  .tc-gcal-ev.is-clr-green {
    background: #dcfce7;
    color: #14532d;
    border-left: 3px solid #16a34a;
  }
  .tc-gcal-ev.is-clr-purple {
    background: #ede9fe;
    color: #3b0764;
    border-left: 3px solid #7c3aed;
  }
  .tc-gcal-ev.is-clr-rose {
    background: #ffe4e6;
    color: #881337;
    border-left: 3px solid #e11d48;
  }
  .tc-gcal-ev.is-task .tc-gcal-ev-title::before {
    content: "○ ";
    font-weight: 800;
  }
  .tc-gcal-ev.is-task.is-done {
    opacity: .6;
    text-decoration: line-through;
  }
  .tc-gcal-ev.is-task.is-done .tc-gcal-ev-title::before {
    content: "✓ ";
  }
  .tc-gcal-ev.is-gcal {
    background: var(--surface-2);
    color: var(--ink-2);
    border: 1px dashed var(--line-strong);
    border-left: 3px solid #64748b;
    box-shadow: none;
  }
  .tc-gcal-ev.is-past {
    opacity: .68;
  }
  .tc-gcal-ev.is-cancelled {
    opacity: .56;
    text-decoration: line-through;
  }
  .tc-gcal-ev.is-conflict {
    box-shadow: 0 0 0 1.5px var(--bad);
  }
  .tc-gcal-ev-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.22;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tc-gcal-ev:not(.is-compact) .tc-gcal-ev-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .tc-gcal-ev-time {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    opacity: .9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tc-gcal-ev-meta {
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    opacity: .78;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tc-gcal-ev.is-compact {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
  }
  .tc-gcal-ev.is-compact .tc-gcal-ev-title {
    flex: 1 1 auto;
    min-width: 0;
  }
  .tc-gcal-ev.is-compact .tc-gcal-ev-time {
    flex: none;
  }
  .tc-gcal-empty-float {
    position: sticky;
    left: 0;
    bottom: 14px;
    margin: -56px auto 14px;
    width: fit-content;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 12.5px;
    color: var(--muted);
    box-shadow: var(--shadow);
  }
  .tc-gcal-shell.is-mode-week > .tc-gcal-inspector-wrap {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 14px;
    min-width: 0;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .tc-gcal-shell.is-mode-week > .tc-gcal-inspector-wrap .study-day-panel {
    border-top: 0;
    padding-top: 0;
  }
  .study-lesson-card.is-focused {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
  }
}
:root[data-theme="dark"] .tc-gcal-ev.is-uni {
  background: #e5b749;
  color: #1c1917;
  border-left-color: #b45309;
}
:root[data-theme="dark"] .tc-gcal-ev.is-student {
  background: #3b82f6;
  color: #ffffff;
  border-left-color: #93c5fd;
}
:root[data-theme="dark"] .tc-gcal-ev.is-gcal {
  background: #22252e;
  color: #cbd5e1;
  border-left-color: #94a3b8;
}
:root[data-theme="dark"] .tc-gcal-ev.is-overlap-front {
  box-shadow: 0 0 0 1.5px #111622, 0 2px 8px rgba(0, 0, 0, .42);
}
:root[data-theme="dark"] .tc-gcal-ev.is-selected {
  outline-color: #ffffff;
}
@media (min-width: 900px) and (max-width: 1379px) {
  .tc-gcal-week-chip {
    display: none;
  }
}

/* Google Calendar floating Quick-Create popover (desktop + mobile) */
.tc-gcal-pop-wrap {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.tc-gcal-pop-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, .06);
  pointer-events: auto;
  cursor: default;
}
.tc-gcal-pop {
  position: fixed;
  top: 72px;
  right: 24px;
  width: min(404px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 12px 16px 14px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .22), 0 4px 12px rgba(15, 23, 42, .10);
  pointer-events: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: tcGcalPopIn .16s cubic-bezier(.22, 1, .36, 1) both;
}
.tc-gcal-pop-head,
.tc-gcal-pop-title-wrap,
.tc-gcal-pop-tabs,
.tc-gcal-pop-foot {
  flex-shrink: 0;
}
@keyframes tcGcalPopIn {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tc-gcal-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tc-gcal-pop-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
}
.tc-gcal-pop-drag:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.tc-gcal-pop-drag:active {
  cursor: grabbing;
}
.tc-gcal-pop-title-wrap {
  padding: 0 4px 0 28px;
}
.tc-gcal-pop-title {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  padding: 3px 0 5px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}
.tc-gcal-pop-title::placeholder {
  color: var(--muted);
}
.tc-gcal-pop-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 28px;
}
.tc-gcal-pop-tab {
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.tc-gcal-pop-tab:hover {
  background: var(--surface-2);
}
.tc-gcal-pop-tab.is-on {
  background: var(--accent-soft);
  color: var(--accent);
}
.tc-gcal-pop-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.tc-gcal-pop-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.tc-gcal-pop-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 26px;
  color: var(--muted);
}
.tc-gcal-pop-ico.is-video {
  color: #f59e0b;
}
.tc-gcal-pop-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tc-gcal-pop-inline {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tc-gcal-pop-inp {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.tc-gcal-pop-inline .tc-gcal-pop-inp {
  flex: 1 1 140px;
  width: auto;
}
.tc-gcal-pop-inp:hover,
.tc-gcal-pop-inp:focus {
  background: var(--surface-2);
}
.tc-gcal-pop-inp::placeholder {
  color: var(--muted);
}
.tc-gcal-time-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tc-gcal-pop-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.tc-gcal-time-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tc-gcal-time-sel {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 3px 7px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tc-gcal-time-sel:focus {
  outline: none;
  border-color: var(--accent);
}
.tc-gcal-time-dash {
  color: var(--muted);
  font-weight: 600;
}
.tc-gcal-pop-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.tc-gcal-link-btn {
  border: 0;
  padding: 2px 5px;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tc-gcal-link-btn:hover {
  background: var(--accent-soft);
}
.tc-gcal-pop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tc-gcal-pop-chips .chip-btn,
.tc-gcal-pop-qbtn {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 11.5px;
}
.tc-gcal-owner-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}
.tc-gcal-owner-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tc-gcal-owner-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}
.tc-gcal-owner-dot.is-clr-amber { background: #d97706; }
.tc-gcal-owner-dot.is-clr-green { background: #16a34a; }
.tc-gcal-owner-dot.is-clr-purple { background: #7c3aed; }
.tc-gcal-owner-dot.is-clr-rose { background: #e11d48; }
.tc-gcal-color-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.tc-gcal-cdot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #0284c7;
  transition: transform .12s ease;
}
.tc-gcal-cdot.is-clr-amber { background: #d97706; }
.tc-gcal-cdot.is-clr-green { background: #16a34a; }
.tc-gcal-cdot.is-clr-purple { background: #7c3aed; }
.tc-gcal-cdot.is-clr-rose { background: #e11d48; }
.tc-gcal-cdot.is-on {
  transform: scale(1.18);
  border-color: var(--surface);
  box-shadow: 0 0 0 2px var(--ink);
}
.tc-gcal-price-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tc-gcal-price-inp {
  width: 78px;
  min-height: 26px;
  padding: 2px 7px;
  font-size: 12.5px;
}
.tc-gcal-pop-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.tc-gcal-pop-save {
  border-radius: 999px !important;
  padding: 0 20px !important;
  font-weight: 600;
}
:root[data-theme="dark"] .tc-gcal-pop,
:root[data-theme="dark"] #tc-week-strip > .tc-wa-inline-panel,
:root[data-theme="dark"] #tc-week-strip > form[data-f="tc-cal-import"] {
  background: #202229;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] .tc-gcal-pop-tab.is-on {
  background: #0842a0;
  color: #d3e3fd;
}
:root[data-theme="dark"] .tc-gcal-pop-save {
  background: #a8c7fa !important;
  color: #062e6f !important;
}
:root[data-theme="dark"] .tc-gcal-ev.is-clr-blue { background: #2563eb; color: #fff; border-left-color: #93c5fd; }
:root[data-theme="dark"] .tc-gcal-ev.is-clr-amber { background: #d97706; color: #fff; border-left-color: #fde68a; }
:root[data-theme="dark"] .tc-gcal-ev.is-clr-green { background: #15803d; color: #fff; border-left-color: #86efac; }
:root[data-theme="dark"] .tc-gcal-ev.is-clr-purple { background: #6d28d9; color: #fff; border-left-color: #ddd6fe; }
:root[data-theme="dark"] .tc-gcal-ev.is-clr-rose { background: #be123c; color: #fff; border-left-color: #fecdd3; }
@media (max-width: 899px) {
  .tc-gcal-pop-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    pointer-events: auto;
  }
  .tc-gcal-pop-backdrop {
    background: rgba(15, 23, 42, .45);
  }
  .tc-gcal-pop {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(440px, 100%);
    max-height: calc(100dvh - 28px);
  }
}
