:root {
  color-scheme: dark;
  --bg: var(--tg-theme-bg-color, #0b0e14);
  --bg-soft: #10151e;
  --panel: var(--tg-theme-secondary-bg-color, #151c27);
  --panel-2: #1a2431;
  --panel-hover: #202d3d;
  --line: rgba(174, 194, 219, .13);
  --line-strong: rgba(174, 194, 219, .23);
  --text: var(--tg-theme-text-color, #f2f5fa);
  --muted: var(--tg-theme-hint-color, #9aa8ba);
  --faint: #6d7b8d;
  --accent: var(--tg-theme-accent-text-color, var(--tg-theme-link-color, #68d5c4));
  --accent-strong: var(--tg-theme-button-color, #39b8aa);
  --accent-wash: color-mix(in srgb, var(--accent) 12%, transparent);
  --gold: #e6bd72;
  --danger: #e77f83;
  --blue: #83aef5;
  --radius: 18px;
  --shadow: 0 16px 44px rgba(0, 0, 0, .28);
  --telegram-safe-top: 0px;
  --telegram-safe-right: 0px;
  --telegram-safe-bottom: 0px;
  --telegram-safe-left: 0px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 82% -12%, rgba(44, 112, 117, .18), transparent 37rem),
    radial-gradient(ellipse at -12% 42%, rgba(49, 75, 116, .12), transparent 33rem),
    var(--bg);
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: max(13px, env(safe-area-inset-top), var(--telegram-safe-top)) max(18px, calc((100vw - 1120px) / 2));
  background: var(--tg-theme-header-bg-color, rgba(11, 14, 20, .86)); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; color: #071513; font-size: 14px; font-weight: 950;
  letter-spacing: -1px; background: linear-gradient(145deg, #9aeadc, #36b4a5);
  box-shadow: 0 5px 22px rgba(57, 184, 170, .18);
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 12px; letter-spacing: .11em; white-space: nowrap; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.topbar-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(104, 213, 196, .5); }
.status-dot.is-warning { background: var(--gold); box-shadow: none; }
.main-content {
  width: min(1120px, 100%); margin: 0 auto; padding: 30px 22px 112px; flex: 1;
}
.bottom-nav {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px max(10px, calc((100vw - 640px) / 2)) calc(8px + max(env(safe-area-inset-bottom), var(--telegram-safe-bottom)));
  background: rgba(13, 17, 25, .94); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 54px; border: 0; border-radius: 12px; background: transparent;
  color: var(--faint); font-size: 10px; font-weight: 650; cursor: pointer;
}
.nav-item.is-active { color: var(--accent); background: rgba(104, 213, 196, .06); }
.nav-icon { font-size: 20px; line-height: 1.05; }
.nav-count { position: absolute; top: 4px; right: calc(50% - 24px); min-width: 15px; height: 15px; padding: 0 4px; display: grid; place-items: center; border-radius: 8px; color: #081614; background: var(--accent); font-size: 9px; font-weight: 850; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 5px 0 24px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 10px; letter-spacing: .17em; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 7px 0 7px; font-size: clamp(26px, 4vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
h3 { margin: 0; font-size: 15px; }
.lead { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 11px; line-height: 1.45; }
.section { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.hero-panel {
  position: relative; overflow: hidden; min-height: 230px; padding: clamp(22px, 4vw, 38px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid rgba(104, 213, 196, .2); border-radius: 24px;
  background:
    radial-gradient(circle at 84% 47%, rgba(104, 213, 196, .18), transparent 17rem),
    linear-gradient(112deg, #182433, #111923 72%);
  box-shadow: var(--shadow);
}
.hero-panel:after {
  content: "CS"; position: absolute; right: 7%; top: 50%; transform: translateY(-50%) rotate(-8deg);
  color: rgba(104, 213, 196, .055); font-size: clamp(100px, 18vw, 190px); font-weight: 1000; letter-spacing: -.12em; pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero-copy h1 { font-size: clamp(30px, 5vw, 48px); }
.hero-copy .lead { max-width: 475px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-side { position: relative; z-index: 1; min-width: 150px; text-align: center; }
.hero-number { color: var(--accent); font-size: 54px; line-height: 1; font-weight: 900; letter-spacing: -.07em; }
.hero-number-label { margin-top: 8px; color: var(--muted); font-size: 11px; }
.btn {
  min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 16px;
  background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 800; cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--panel-hover); border-color: rgba(104,213,196,.38); }
.btn-primary { background: linear-gradient(135deg, #80e0d0, #43bcae); color: var(--tg-theme-button-text-color, #081614); border-color: transparent; box-shadow: 0 8px 25px rgba(57, 184, 170, .16); }
.btn-primary:hover { background: linear-gradient(135deg, #9af0e1, #58cdbd); }
.btn-quiet { background: transparent; }
.btn-danger { color: #ffb9bc; border-color: rgba(231,127,131,.3); background: rgba(231,127,131,.07); }
.btn-small { min-height: 34px; padding: 0 11px; font-size: 11px; border-radius: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-panel, .surface {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 28, 39, .88);
}
.stat-panel { padding: 17px 18px; }
.stat-value { font-size: 27px; font-weight: 900; letter-spacing: -.05em; }
.stat-label { color: var(--muted); font-size: 11px; margin-top: 3px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.quick-card { min-height: 120px; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.quick-card:hover { border-color: rgba(104,213,196,.35); background: var(--panel-2); }
.quick-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 13px; background: var(--accent-wash); color: var(--accent); font-size: 18px; }
.quick-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notice {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
  border: 1px solid rgba(131,174,245,.18); border-radius: 13px; background: rgba(131,174,245,.06);
  color: #b8cce9; font-size: 11px; line-height: 1.5;
}
.notice strong { color: #e0eaff; }
.empty-state { padding: 36px 22px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(21,28,39,.42); }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; color: var(--accent); background: var(--accent-wash); font-size: 25px; }
.empty-state p { max-width: 420px; margin: 8px auto 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.player-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.player-card {
  position: relative; min-width: 0; padding: 14px; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; gap: 11px; border: 1px solid var(--line);
  border-radius: 16px; background: linear-gradient(145deg, #1a2634, #131a24 75%);
  cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.player-card:hover { transform: translateY(-2px); border-color: rgba(104,213,196,.38); background: linear-gradient(145deg, #223244, #161f2b 75%); }
.player-card--pick { border-color: rgba(104,213,196,.2); }
.player-card--pick:hover { border-color: var(--accent); }
.player-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; }
.player-avatar {
  width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center;
  border-radius: 12px; color: #c9eee8; background: linear-gradient(145deg, rgba(104,213,196,.23), rgba(104,213,196,.07));
  border: 1px solid rgba(104,213,196,.15); font-size: 12px; font-weight: 950; letter-spacing: -.04em;
}
.ovr-badge { min-width: 42px; padding: 5px 7px; border-radius: 9px; color: #0e1718; background: var(--gold); text-align: center; font-size: 17px; line-height: 1; font-weight: 950; letter-spacing: -.04em; }
.player-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 850; letter-spacing: -.025em; }
.player-team { margin-top: 4px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.role-pill, .soft-pill, .count-pill, .status-pill {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%;
  padding: 5px 8px; border-radius: 8px; font-size: 9px; font-weight: 800; white-space: nowrap;
}
.role-pill { color: #c0d0e4; background: rgba(131,174,245,.10); }
.soft-pill { color: var(--muted); background: rgba(174,194,219,.08); }
.count-pill { color: var(--accent); background: var(--accent-wash); }
.status-pill { color: var(--gold); background: rgba(230,189,114,.1); }
.player-grid .player-card { min-height: 145px; }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1fr) 180px 200px; gap: 10px; margin: 17px 0; }
.field, .select-field {
  width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 11px;
  background: #111923; color: var(--text); font-size: 12px; outline: none;
}
.field::placeholder { color: var(--faint); }
.field:focus, .select-field:focus { border-color: rgba(104,213,196,.6); }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #101720; }
.segmented button { min-height: 33px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.segmented button.is-active { color: var(--text); background: var(--panel-hover); }
.progress-row { display: flex; gap: 7px; margin: 19px 0; }
.progress-step { height: 6px; flex: 1; border-radius: 8px; background: #293442; }
.progress-step.is-done { background: var(--accent); box-shadow: 0 0 12px rgba(104,213,196,.2); }
.draft-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: 16px; align-items: start; }
.draft-main, .draft-aside { padding: 20px; }
.draft-aside { position: sticky; top: 86px; }
.draft-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.draft-offers .player-card { min-height: 160px; }
.pick-list { display: grid; gap: 9px; margin-top: 13px; }
.pick-row { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(11,14,20,.35); }
.pick-index { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: rgba(174,194,219,.09); font-size: 10px; font-weight: 900; }
.pick-row strong { font-size: 11px; }
.pick-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.pick-empty { color: var(--faint); font-size: 10px; }
.squad-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.squad-switch { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--panel); font-size: 11px; font-weight: 800; cursor: pointer; }
.squad-switch.is-active { color: var(--accent); border-color: rgba(104,213,196,.35); background: var(--accent-wash); }
.squad-panel { padding: 18px; }
.squad-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.squad-name-input { width: min(100%, 310px); min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #101720; color: var(--text); font-size: 13px; font-weight: 800; }
.roster-slots { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.roster-slot { min-width: 0; min-height: 153px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; border: 1px dashed var(--line-strong); border-radius: 13px; background: rgba(11,14,20,.24); }
.roster-slot.filled { border-style: solid; border-color: var(--line); background: linear-gradient(145deg,#1b2937,#131a24); }
.slot-number { color: var(--faint); font-size: 10px; font-weight: 850; }
.slot-empty { display: grid; place-items: center; gap: 7px; flex: 1; color: var(--muted); text-align: center; font-size: 10px; }
.slot-plus { color: var(--accent); font-size: 23px; }
.slot-player { margin: 11px 0 auto; }
.slot-player strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.slot-player small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.slot-footer { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: 12px; }
.slot-footer .ovr-mini { color: var(--gold); font-size: 14px; font-weight: 950; }
.text-button { border: 0; padding: 4px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.text-button:hover { color: var(--danger); }
.squad-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.squad-average { color: var(--muted); font-size: 11px; }
.squad-average strong { color: var(--text); font-size: 20px; }
.modal-root:empty { display: none; }
.modal-root { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,5,10,.78); backdrop-filter: blur(8px); }
.modal {
  position: relative; width: min(520px, 100%); max-height: min(84vh, 780px); overflow: auto;
  padding: 22px; border: 1px solid var(--line-strong); border-radius: 20px; background: #151e2a; box-shadow: 0 28px 90px rgba(0,0,0,.55);
  animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-size: 17px; cursor: pointer; }
.profile-head { display: flex; gap: 15px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11,14,20,.35); }
.profile-avatar { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 17px; color: #d9fff8; background: linear-gradient(145deg, #315c60, #1a3138); font-size: 19px; font-weight: 950; }
.profile-name { font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.profile-team { margin-top: 4px; color: var(--muted); font-size: 11px; }
.profile-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.attribute-list { display: grid; gap: 10px; margin-top: 19px; }
.attribute-row { display: grid; grid-template-columns: 104px 1fr 28px; gap: 9px; align-items: center; font-size: 10px; }
.attribute-track { height: 7px; border-radius: 8px; background: #0b1119; overflow: hidden; }
.attribute-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg,#368f8b,#83ded0); }
.attribute-score { color: var(--text); font-weight: 900; text-align: right; }
.modal-note { margin-top: 16px; padding: 11px 12px; border-radius: 10px; color: var(--muted); background: rgba(230,189,114,.07); font-size: 10px; line-height: 1.5; }
.picker-list { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.picker-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11,14,20,.35); text-align: left; cursor: pointer; }
.picker-item:hover { border-color: rgba(104,213,196,.42); }
.picker-item strong { display: block; font-size: 12px; }
.picker-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.picker-ovr { color: var(--gold); font-size: 18px; font-weight: 950; }
.toast-root { position: fixed; z-index: 80; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); width: max-content; max-width: calc(100% - 30px); padding: 11px 15px; border: 1px solid rgba(104,213,196,.28); border-radius: 12px; color: var(--text); background: #1b2c34; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast-root.is-visible { opacity: 1; transform: translate(-50%, 0); }
.loading-panel { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 13px; color: var(--muted); font-size: 12px; }
.loader { width: 29px; height: 29px; border: 3px solid rgba(104,213,196,.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-panel { margin: 50px auto; max-width: 560px; padding: 24px; border: 1px solid rgba(231,127,131,.25); border-radius: 17px; background: rgba(231,127,131,.06); }
.error-panel p { color: var(--muted); font-size: 12px; line-height: 1.55; }
@media (max-width: 900px) {
  .player-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .roster-slots { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .draft-layout { grid-template-columns: 1fr; }
  .draft-aside { position: static; }
}
@media (max-width: 620px) {
  .topbar { padding: 10px 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { font-size: 10px; }
  .topbar-status { font-size: 9px; }
  .main-content { padding: 22px 14px 105px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .hero-panel { min-height: 0; padding: 24px 20px; }
  .hero-panel:after { right: -8%; top: 24%; font-size: 105px; }
  .hero-side { display: none; }
  .hero-copy h1 { font-size: 31px; }
  .lead { font-size: 12px; }
  .hero-actions { margin-top: 17px; }
  .btn { min-height: 40px; padding: 0 13px; font-size: 11px; }
  .stats-grid { gap: 8px; }
  .stat-panel { padding: 13px 11px; }
  .stat-value { font-size: 23px; }
  .stat-label { font-size: 9px; }
  .quick-grid { gap: 9px; }
  .quick-card { min-height: 112px; padding: 14px; }
  .player-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .player-card { padding: 11px; border-radius: 14px; gap: 9px; }
  .player-grid .player-card { min-height: 140px; }
  .player-name { font-size: 13px; }
  .player-team { font-size: 9px; }
  .ovr-badge { min-width: 38px; font-size: 15px; }
  .player-avatar { width: 33px; height: 33px; flex-basis: 33px; }
  .role-pill, .count-pill { padding: 4px 6px; font-size: 8px; }
  .filter-bar { grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-bar .field { grid-column: 1 / -1; }
  .draft-main, .draft-aside { padding: 14px; }
  .draft-offers { gap: 8px; }
  .draft-offers .player-card { min-height: 145px; }
  .roster-slots { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .roster-slot { min-height: 140px; }
  .squad-panel { padding: 13px; }
  .modal-root { padding: 10px; }
  .modal { padding: 17px; max-height: 88vh; }
  .attribute-row { grid-template-columns: 88px 1fr 24px; }
}
@media (max-width: 360px) {
  .topbar-status span:not(.status-dot) { display: none; }
  .nav-item { font-size: 9px; }
  .player-card { padding: 9px; }
  .draft-offers { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 27px; }
}


body[data-telegram-theme="light"] {
  color-scheme: light;
  background: var(--bg);
}
body[data-telegram-theme="light"] .topbar,
body[data-telegram-theme="light"] .bottom-nav {
  background: var(--tg-theme-header-bg-color, rgba(248, 250, 253, .94));
}
body[data-telegram-theme="light"] .surface,
body[data-telegram-theme="light"] .stat-panel,
body[data-telegram-theme="light"] .quick-card,
body[data-telegram-theme="light"] .empty-state,
body[data-telegram-theme="light"] .player-card {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line-strong);
}
body[data-telegram-theme="light"] .hero-panel {
  background: linear-gradient(120deg, var(--panel), var(--tg-theme-section-bg-color, #e9f0f4));
  border-color: var(--line-strong);
}
body[data-telegram-theme="light"] .field,
body[data-telegram-theme="light"] .select-field,
body[data-telegram-theme="light"] .squad-name-input,
body[data-telegram-theme="light"] .segmented {
  color: var(--text);
  background: var(--tg-theme-bg-color, #fff);
  border-color: var(--line-strong);
}
body[data-telegram-theme="light"] .modal {
  color: var(--text);
  background: var(--panel);
}
body[data-telegram-theme="light"] .picker-item,
body[data-telegram-theme="light"] .pick-row,
body[data-telegram-theme="light"] .roster-slot {
  color: var(--text);
  background: var(--tg-theme-bg-color, #fff);
  border-color: var(--line-strong);
}
body[data-telegram-theme="light"] .notice {
  color: var(--muted);
  background: var(--panel);
  border-color: var(--line-strong);
}
body[data-telegram-theme="light"] .nav-item.is-active {
  color: var(--accent);
  background: var(--accent-wash);
}
