:root {
  --bg: #F4F2EE; --card: #FFFFFF; --soft: #FBFAF8; --line: #DDD6CC; --line2: #ECE6DD;
  --ink: #1C1F2E; --muted: #4F5566; --blue: #2541A0; --blue-ink: #1F3790; --blue-soft: #DCE4FB;
  --red: #DA2420; --red-ink: #A3170F; --red-soft: #FDE1DD; --green: #1E8E4E; --green-soft: #D5F2DF; --green-ink: #13693A;
  --yellow: #FFC93C;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Manrope', system-ui, sans-serif; font-size: 15px; }
h1, h2, h3 { font-family: 'Unbounded', sans-serif; margin: 0; }
h1 { font-size: clamp(22px, 5vw, 32px); color: var(--blue-ink); font-weight: 700; }
h2 { font-size: 18px; font-weight: 500; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 20px 16px; background: #FFFFFF; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--blue-ink); font-size: 15px; }
.logo { background: #fff; border-radius: 50%; }
.logo { width: 52px; height: 52px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs button { min-height: 44px; padding: 10px 14px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); font-weight: 600; text-align: left; font-size: 15px; }
.tabs button:hover { background: var(--bg); }
.tabs button[aria-current="page"] { background: var(--blue); color: #fff; font-weight: 700; }
.who { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.who button { margin-top: 8px; }
@media (max-width: 700px) {
  .side { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; position: sticky; top: 0; z-index: 5; }
  .brand span { display: none; }
  .logo { width: 40px; height: 40px; }
  .tabs { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .tabs button { min-height: 40px; padding: 8px 12px; border-radius: 999px; }
  .who { display: none; }
}
.login { max-width: 460px; margin: 8vh auto 0; text-align: center; align-items: center; }
.page { flex: 999 1 560px; min-width: 0; max-width: 1040px; margin: 0 auto; padding: 20px 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card.hero { background: var(--blue); color: #fff; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big { font-family: 'Unbounded', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; }

.person { background: var(--soft); border: 1px solid var(--line2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #ECEAE6; color: #4A4F60; }
.chip.low { background: var(--red-soft); color: var(--red-ink); }
.chip.blue { background: var(--blue-soft); color: var(--blue-ink); }
.chip.ok { background: var(--green-soft); color: var(--green-ink); }

.btn { min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid #D9D3CA; background: var(--card); font-weight: 700; }
.btn.primary { background: var(--blue); color: #fff; border: 0; border-radius: 999px; }
.btn.link { border: 0; background: transparent; color: var(--blue); text-decoration: underline; padding: 0; min-height: 0; }
.btn.danger { background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 999px; }
.status button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.status button.charged[aria-pressed="true"] { background: var(--red); }
.status button.neutral[aria-pressed="true"] { background: #4A4F60; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #4A4F60; }
input, select { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid #D9D3CA; background: #fff; font-size: 15px; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: #4A4F60; padding: 8px 6px; }
td { padding: 10px 6px; border-top: 1px solid var(--line2); vertical-align: middle; }
.scroll { overflow-x: auto; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
.toast.show { opacity: 1; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 140px; }
.day.today { border: 2px solid var(--blue); }
.dh { font-size: 13px; color: #4A4F60; text-transform: capitalize; }
.lesson { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; width: 100%; padding: 6px 8px; border-radius: 10px; border: 0; font-size: 13px; line-height: 1.3; }
.lesson .t { font-weight: 700; }
.lesson .s { font-size: 11px; opacity: .8; }
.lesson { border-left: 4px solid transparent; }
.lesson.planned { background: var(--blue-soft); color: var(--blue-ink); border-left-color: var(--blue); }
.lesson.done { background: var(--green-soft); color: var(--green-ink); border-left-color: var(--green); }
.lesson.charged { background: var(--red-soft); color: var(--red-ink); border-left-color: var(--red); }
.lesson.cancelled { background: #EDEAE5; color: #5B6070; border-left-color: #B9B2A7; text-decoration: line-through; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend .lesson { width: auto; display: inline-block; text-decoration: none; }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } }

.card { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(28,31,46,.06); }
.gridwrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.grid7 { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 820px; }
.gh { padding: 10px 8px; background: var(--soft); color: var(--ink); font-size: 13px; text-transform: capitalize; position: sticky; top: 0; border-bottom: 1px solid var(--line); }
.gh.today { color: var(--blue-ink); box-shadow: inset 0 -3px 0 var(--blue); }
.gt { padding: 6px; font-size: 12px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line2); }
.gc { position: relative; min-height: 48px; padding: 4px; border-top: 1px solid var(--line2); border-left: 1px solid var(--line2); display: flex; flex-direction: column; gap: 4px; }
.gc.today { background: #F7F9FF; }
.plus { align-self: flex-start; width: 28px; height: 28px; border-radius: 999px; border: 1px dashed #B9B2A7; background: transparent; color: var(--muted); font-weight: 700; opacity: 0; transition: opacity .15s; }
.gc:hover .plus, .plus:focus { opacity: 1; }
@media (hover: none) { .plus { opacity: .55; } }
.plus:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.dlg { border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px rgba(28,31,46,.18); padding: 20px; width: min(440px, 92vw); }
.dlg form { display: flex; flex-direction: column; gap: 12px; }
.dlg::backdrop { background: rgba(28,31,46,.45); }

/* Телефон: календарь показывает один день, дни переключаются вкладками */
.daytabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.daytabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; padding: 6px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 12px; position: relative; }
.daytabs button strong { font-size: 16px; }
.daytabs button.today { border-color: var(--blue); }
.daytabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.daytabs i { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--red); }
.daytabs button[aria-selected="true"] i { color: #fff; }
.grid7.one { grid-template-columns: 56px 1fr; min-width: 0; }
.grid7.one .plus { opacity: .7; width: 100%; height: 32px; border-radius: 10px; }
.grid7.one .plus::after { content: " добавить урок"; font-weight: 600; font-size: 13px; }
@media (max-width: 700px) {
  .who { display: block; margin: 0; flex-basis: 100%; font-size: 12px; }
  .who button { margin-top: 0; min-height: 32px; padding: 4px 10px; }
  table { font-size: 14px; }
  .who br { display: none; }
  .who button { margin-left: 8px; }
}
[hidden] { display: none !important; }

/* ---------- Оформление: «облачка речи» Easy Talk ---------- */
body { position: relative; }
body::before, body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none; background-repeat: no-repeat; background-size: contain;
}
/* большое синее облачко справа сверху и красное слева снизу — очень бледные */
body::before {
  width: 520px; height: 440px; right: -140px; top: -120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M40 10h180a30 30 0 0 1 30 30v100a30 30 0 0 1-30 30H110l-50 40 8-40H40a30 30 0 0 1-30-30V40a30 30 0 0 1 30-30z' fill='%23DCE4FB'/%3E%3C/svg%3E");
  opacity: .75; animation: drift 38s ease-in-out infinite alternate;
}
body::after {
  width: 360px; height: 300px; left: 160px; bottom: -110px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M220 10H40a30 30 0 0 0-30 30v100a30 30 0 0 0 30 30h110l50 40-8-40h28a30 30 0 0 0 30-30V40a30 30 0 0 0-30-30z' fill='%23FDE1DD'/%3E%3C/svg%3E");
  opacity: .7; animation: drift 46s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-30px, 24px) rotate(-4deg); } }
.shell { position: relative; z-index: 1; }

/* Приветственный баннер — единственный яркий элемент страницы */
.hero2 {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: var(--blue); color: #fff; border-radius: 28px; padding: 26px 28px; min-height: 170px;
}
.hero2::after { /* мягкий круг в углу, чтобы синий не был плоским */
  content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none;
}
.hero2 h1 { color: #fff; font-size: clamp(22px, 4vw, 30px); }
.hero2 p { margin: 6px 0 0; color: #DCE4FB; font-weight: 600; }
.hero-text p::first-letter { text-transform: uppercase; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hstat { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.12); }
.hstat strong { font-family: 'Unbounded', sans-serif; font-size: 20px; }
.hstat span { font-size: 13px; color: #DCE4FB; }
.hstat.warn strong { color: #FFC9C2; }
.hstat.ok strong { color: #B9F0CD; }

.bubbles { position: relative; width: 250px; height: 130px; z-index: 1; }
.bub {
  position: absolute; padding: 9px 14px; border-radius: 18px; font-weight: 700; font-size: 14px; white-space: nowrap;
  background: #fff; color: var(--blue-ink); box-shadow: 0 6px 18px rgba(14,26,77,.18);
}
.bub::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.bub.b0 { left: 0; top: 4px; } .bub.b0::after { left: 16px; }
.bub.b1 { right: 0; top: 46px; background: var(--red); color: #fff; } .bub.b1::after { right: 18px; }
.bub.b2 { left: 28px; bottom: 0; } .bub.b2::after { left: 22px; }
.bub { animation: bob 6s ease-in-out infinite; }
.bub.b1 { animation-delay: -2s; } .bub.b2 { animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
/* при первом входе облачка «говорят» по очереди */
.hero2.play .bub { opacity: 0; animation: pop .45s cubic-bezier(.2,1.4,.4,1) forwards, bob 6s ease-in-out .9s infinite; }
.hero2.play .bub.b0 { animation-delay: .25s, 1.2s; }
.hero2.play .bub.b1 { animation-delay: .75s, 1.7s; }
.hero2.play .bub.b2 { animation-delay: 1.25s, 2.2s; }
@keyframes pop { from { opacity: 0; transform: scale(.4) translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hero2 { grid-template-columns: 1fr; padding: 20px; min-height: 0; }
  .bubbles { width: 100%; height: 44px; }
  .bub.b0 { top: 0; } .bub.b1 { top: 0; right: auto; left: 104px; } .bub.b2 { display: none; }
}

/* Карточки остатка у ученика — светлые, чтобы не спорить с баннером */
.card.hero { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-left: 6px solid var(--blue); }
.card.hero .big { color: var(--blue-ink); }

/* Отклик на действия */
.btn { transition: transform .12s ease, background-color .15s ease, color .15s ease; }
.btn:active { transform: scale(.96); }
.status button[aria-pressed="true"] { animation: press .3s ease; }
@keyframes press { 50% { transform: scale(1.06); } }
.tabs button { transition: background-color .2s ease, color .2s ease; }
.dlg[open] { animation: dlgin .22s cubic-bezier(.2,1,.4,1); }
@keyframes dlgin { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.toast { transition: opacity .2s, transform .25s cubic-bezier(.2,1,.4,1); transform: translate(-50%, 12px); }
.toast.show { transform: translate(-50%, 0); }
.lesson { transition: transform .15s ease, box-shadow .15s ease; }
button.lesson:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(28,31,46,.1); }
:focus-visible { outline: 3px solid #FFC93C; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero2.play .bub { opacity: 1; }
}

/* ---------- Палитры: синий и красный остаются акцентами логотипа, вокруг — тёплые тона ---------- */
:root {
  --hero-bg: var(--blue); --hero-ink: #fff; --hero-sub: #DCE4FB; --hero-blob: rgba(255,255,255,.07);
  --st0: rgba(255,255,255,.12); --st1: rgba(255,255,255,.12); --st2: rgba(255,255,255,.12); --st-ink: #fff;
  --b0: #fff; --b0-ink: var(--blue-ink); --b1: var(--red); --b1-ink: #fff; --b2: #fff; --b2-ink: var(--blue-ink);
  --tab-on: var(--blue); --tab-on-ink: #fff; --side: #fff;
}
.hero2 { background: var(--hero-bg); color: var(--hero-ink); }
.hero2 h1 { color: var(--hero-ink); }
.hero2 p, .hstat span { color: var(--hero-sub); }
.hero2::after { background: var(--hero-blob); }
.hstat { color: var(--st-ink); }
.hstat.s0 { background: var(--st0); } .hstat.s1 { background: var(--st1); } .hstat.s2 { background: var(--st2); }
.hstat strong { color: inherit; }
.bub.b0 { background: var(--b0); color: var(--b0-ink); }
.bub.b1 { background: var(--b1); color: var(--b1-ink); }
.bub.b2 { background: var(--b2); color: var(--b2-ink); }
.tabs button[aria-current="page"] { background: var(--tab-on); color: var(--tab-on-ink); }
.side { background: var(--side); }

/* A. «Абрикос и лаванда»: мягкий сиреневый баннер, абрикосовые и мятные облачка */
:root[data-theme="a"] {
  --bg: #F6F3FA; --line: #E2DCEC; --line2: #EEE9F4; --soft: #FAF8FC;
  --hero-bg: linear-gradient(120deg, #E6E0FB 0%, #F3E6F4 55%, #FDE7DA 100%); --hero-ink: #23286B; --hero-sub: #5A5F8C;
  --hero-blob: rgba(255,255,255,.45);
  --st0: #fff; --st1: #DDF3E7; --st2: #FFE3D3; --st-ink: #23286B;
  --b0: #fff; --b0-ink: #2541A0; --b1: #FF8A65; --b1-ink: #fff; --b2: #7C6CF0; --b2-ink: #fff;
  --tab-on: #E6E0FB; --tab-on-ink: #23286B;
}
:root[data-theme="a"] body::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M40 10h180a30 30 0 0 1 30 30v100a30 30 0 0 1-30 30H110l-50 40 8-40H40a30 30 0 0 1-30-30V40a30 30 0 0 1 30-30z' fill='%23E6E0FB'/%3E%3C/svg%3E"); }
:root[data-theme="a"] body::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M220 10H40a30 30 0 0 0-30 30v100a30 30 0 0 0 30 30h110l50 40-8-40h28a30 30 0 0 0 30-30V40a30 30 0 0 0-30-30z' fill='%23FFE3D3'/%3E%3C/svg%3E"); }

/* B. «Мята и солнце»: свежий мятный баннер, жёлтые и коралловые облачка */
:root[data-theme="b"] {
  --bg: #F1F6F3; --line: #D9E6DE; --line2: #E7F0EA; --soft: #F8FBF9;
  --hero-bg: linear-gradient(120deg, #CFEFE0 0%, #E4F5D9 60%, #FFF1C7 100%); --hero-ink: #14402E; --hero-sub: #3F6B57;
  --hero-blob: rgba(255,255,255,.5);
  --st0: #fff; --st1: #FFF1C7; --st2: #FFDCD4; --st-ink: #14402E;
  --b0: #fff; --b0-ink: #2541A0; --b1: #FFC93C; --b1-ink: #3A2A00; --b2: #FF7A66; --b2-ink: #fff;
  --tab-on: #CFEFE0; --tab-on-ink: #14402E;
}
:root[data-theme="b"] body::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M40 10h180a30 30 0 0 1 30 30v100a30 30 0 0 1-30 30H110l-50 40 8-40H40a30 30 0 0 1-30-30V40a30 30 0 0 1 30-30z' fill='%23D7F0E4'/%3E%3C/svg%3E"); }
:root[data-theme="b"] body::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M220 10H40a30 30 0 0 0-30 30v100a30 30 0 0 0 30 30h110l50 40-8-40h28a30 30 0 0 0 30-30V40a30 30 0 0 0-30-30z' fill='%23FFF1C7'/%3E%3C/svg%3E"); }

/* C. «Вечерний Лондон»: глубокий тёмно-синий баннер, янтарь и коралл, светлый фон */
:root:not([data-theme="a"]):not([data-theme="b"]) {
  --bg: #F3F1EC; --line: #E0DAD0; --line2: #ECE7DE;
  --hero-bg: linear-gradient(135deg, #1D2557 0%, #2B2F6E 60%, #473068 100%); --hero-ink: #FFF6E8; --hero-sub: #C9C6E6;
  --hero-blob: rgba(255,181,71,.14);
  --st0: rgba(255,255,255,.1); --st1: rgba(255,181,71,.22); --st2: rgba(255,122,102,.25); --st-ink: #FFF6E8;
  --b0: #FFF6E8; --b0-ink: #1D2557; --b1: #FFB547; --b1-ink: #2A1B00; --b2: #FF7A66; --b2-ink: #fff;
  --tab-on: #1D2557; --tab-on-ink: #FFF6E8;
}
:root:not([data-theme="a"]):not([data-theme="b"]) body::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M40 10h180a30 30 0 0 1 30 30v100a30 30 0 0 1-30 30H110l-50 40 8-40H40a30 30 0 0 1-30-30V40a30 30 0 0 1 30-30z' fill='%23FBE4BF'/%3E%3C/svg%3E"); }
:root:not([data-theme="a"]):not([data-theme="b"]) body::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 220'%3E%3Cpath d='M220 10H40a30 30 0 0 0-30 30v100a30 30 0 0 0 30 30h110l50 40-8-40h28a30 30 0 0 0 30-30V40a30 30 0 0 0-30-30z' fill='%23E3DEF5'/%3E%3C/svg%3E"); }
:root[data-theme="a"] .hstat.warn strong, :root[data-theme="b"] .hstat.warn strong { color: #C2410C; }
:root[data-theme="a"] .hstat.ok strong, :root[data-theme="b"] .hstat.ok strong { color: #13693A; }

/* Сворачиваемый раздел */
details.fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2::after { content: " ▾"; color: var(--muted); font-size: 14px; }
details.fold[open] > summary h2::after { content: " ▴"; }
details.fold:not([open]) { gap: 0; }

/* Палитра C по умолчанию: тёмно-синяя боковая панель в тон баннеру */
.side { background: var(--side); color: var(--side-ink, var(--ink)); }
:root:not([data-theme="a"]):not([data-theme="b"]) {
  --side: #FFFCF6; --side-ink: #1D2557; --tab-on: #FFE2B0; --tab-on-ink: #1D2557;
}
:root:not([data-theme="a"]):not([data-theme="b"]) .brand { color: #1D2557; }
:root:not([data-theme="a"]):not([data-theme="b"]) .tabs button { color: #3B3F63; }
:root:not([data-theme="a"]):not([data-theme="b"]) .tabs button:hover { background: #F6EFE3; }
:root:not([data-theme="a"]):not([data-theme="b"]) .tabs button[aria-current="page"] { background: var(--tab-on); color: var(--tab-on-ink); box-shadow: inset 4px 0 0 #FFB547; }
:root:not([data-theme="a"]):not([data-theme="b"]) .btn.primary,
:root:not([data-theme="a"]):not([data-theme="b"]) .status button[aria-pressed="true"]:not(.charged):not(.neutral) { background: #2B2F6E; border-color: #2B2F6E; }

/* Силуэт Лондона в баннере */
.hero2 { min-height: 200px; }
.hero-text { position: relative; z-index: 1; }
.skyline { position: absolute; right: 12px; bottom: 0; width: 440px; max-width: 70%; height: auto; pointer-events: none; z-index: 0; }
.sk-far { fill: rgba(255,255,255,.06); }
.sk-eye { stroke: rgba(255,255,255,.16); }
.sk-near { fill: rgba(12,14,42,.55); }
.sk-clock { fill: #FFB547; filter: drop-shadow(0 0 6px rgba(255,181,71,.8)); }
.sk-hands { stroke: #3A2600; }
.sk-win { fill: rgba(255,181,71,.75); }
.bubbles { z-index: 2; }
.bub.b0 { top: -6px; } .bub.b1 { top: 30px; } .bub.b2 { bottom: auto; top: 70px; }
.hero2 .bubbles { align-self: start; }
/* светлые палитры: силуэт мягче */
:root[data-theme="a"] .sk-near, :root[data-theme="b"] .sk-near { fill: rgba(29,37,87,.14); }
:root[data-theme="a"] .sk-eye, :root[data-theme="b"] .sk-eye { stroke: rgba(29,37,87,.12); }
:root[data-theme="a"] .sk-far, :root[data-theme="b"] .sk-far { fill: rgba(29,37,87,.06); }
@media (max-width: 640px) {
  .hero2 { padding-bottom: 96px; }
  .skyline { width: 300px; max-width: 90%; right: 0; }
  .hero2 .bubbles { position: absolute; left: 20px; bottom: 70px; width: auto; height: 40px; }
  .bub.b0, .bub.b1 { top: auto; bottom: 0; }
}
@media (min-width: 641px) { .hero2 .bubbles { margin-right: 120px; } }
@media (max-width: 640px) { .hero2 { padding-bottom: 150px; } .hero2 .bubbles { bottom: 92px; } }

/* Управление: справа колонка «Ждут оплаты», слева всё остальное */
.adm { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.adm-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.adm-side { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
.adm-main { grid-column: 1; grid-row: 1; }
.paylist > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.paylist > summary::-webkit-details-marker { display: none; }
.plist { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 170px); overflow-y: auto; }
.plist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line2); }
.pl-who { display: flex; flex-direction: column; min-width: 0; }
.pl-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.mini { min-height: 34px; padding: 4px 10px; font-size: 13px; border-radius: 999px; }
#psearch { width: 100%; max-width: 360px; }
.card.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 1px 2px rgba(28,31,46,.06); } 30% { box-shadow: 0 0 0 4px #FFB547; } }
@media (max-width: 1100px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { grid-column: 1; grid-row: 1; position: static; }
  .adm-main { grid-row: 2; }
  .plist { max-height: 320px; }
}
