/* Academy LMS */
.acad-page {
  --acad-gold: #d4b56a;
  --acad-gold-soft: rgba(212, 181, 106, 0.16);
  --acad-emerald: rgba(136, 249, 145, 0.14);
  width: 100%;
  max-width: var(--app-stage, min(1480px, 100%));
  margin: 0 auto;
  padding: 0.35rem 0 2.5rem;
  display: grid;
  gap: 1.35rem;
}

.acad-hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(212, 181, 106, 0.22);
  background:
    radial-gradient(ellipse 70% 90% at 90% 10%, rgba(136, 249, 145, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(212, 181, 106, 0.1), transparent 50%),
    linear-gradient(160deg, #141414 0%, #0e0e0e 100%);
  animation: rise-in 0.45s ease both;
}

@media (max-width: 820px) {
  .acad-hero {
    grid-template-columns: 1fr;
  }
}

.acad-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acad-gold);
  font-weight: 700;
}

.acad-hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.acad-hero-lead {
  margin: 0;
  max-width: 42rem;
  color: rgba(220, 224, 220, 0.86);
  font-size: 0.95rem;
  line-height: 1.55;
}

.acad-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.acad-course-grid-catalog {
  gap: 1rem;
}

@media (max-width: 720px) {
  .acad-course-grid {
    grid-template-columns: 1fr;
  }
}

.acad-course-card {
  text-align: left;
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background-color: rgba(16, 16, 16, 0.92);
  color: inherit;
  cursor: pointer;
  transition: var(--btn-transition);
}

.acad-course-card:hover:not(:disabled):not(.is-locked) {
  border-color: rgba(136, 249, 145, 0.35);
  background-color: rgba(20, 22, 20, 0.98);
}

.acad-course-card.is-current {
  border-color: rgba(136, 249, 145, 0.45);
  box-shadow: inset 3px 0 0 var(--accent);
  background-color: rgba(136, 249, 145, 0.06);
}

.acad-course-card.is-done {
  border-color: rgba(136, 249, 145, 0.28);
}

.acad-course-card.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.acad-course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.acad-course-order {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--acad-gold);
}

.acad-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background-color: rgba(255, 255, 255, 0.03);
}

.acad-status-done {
  color: #0c1210;
  background-color: var(--accent);
  border-color: rgba(136, 249, 145, 0.4);
}

.acad-status-progress {
  color: #e6d3a2;
  border-color: rgba(212, 181, 106, 0.35);
  background-color: rgba(212, 181, 106, 0.1);
}

.acad-status-locked {
  color: var(--muted);
}

.acad-course-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.acad-course-card > em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.acad-course-card > p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(220, 224, 220, 0.82);
}

.acad-course-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--muted);
}

.acad-course-cta {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--accent);
}

.acad-course-cta.is-muted {
  color: var(--muted);
  font-weight: 600;
}

.acad-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: var(--btn-transition);
}

.acad-back:hover {
  color: var(--accent);
}

.acad-finale-catalog {
  margin-top: 0.5rem;
}

.acad-course-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.acad-course-lock.is-ok {
  color: var(--accent);
}

.acad-roadmap-lead {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.acad-progress-card {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(136, 249, 145, 0.25);
  background: rgba(0, 0, 0, 0.28);
}

.acad-progress-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.acad-progress-card strong {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.acad-progress-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.acad-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8ffc0, var(--accent), #d4b56a);
  transition: width 0.45s ease;
}

.acad-progress-card em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.acad-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .acad-layout {
    grid-template-columns: 1fr;
  }
}

.acad-roadmap {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .acad-roadmap {
    position: static;
  }
}

.acad-roadmap h2 {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.acad-modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.acad-mod-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.65rem;
  align-items: start;
  text-align: left;
  padding: 0.75rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.acad-mod-btn:hover:not(:disabled) {
  border-color: rgba(136, 249, 145, 0.28);
  background: rgba(136, 249, 145, 0.05);
}

.acad-mod-btn.is-current {
  border-color: rgba(136, 249, 145, 0.4);
  background: rgba(136, 249, 145, 0.08);
}

.acad-mod-btn.is-done .acad-mod-idx {
  background: rgba(136, 249, 145, 0.2);
  color: var(--accent);
}

.acad-mod-btn.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.acad-mod-btn.is-locked .acad-mod-idx {
  color: var(--acad-gold);
  background: var(--acad-gold-soft);
}

.acad-mod-btn.is-unlocking {
  animation: acad-unlock 0.7s ease;
}

@keyframes acad-unlock {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(212, 181, 106, 0.35);
  }
  40% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(212, 181, 106, 0);
  }
  100% {
    transform: scale(1);
  }
}

.acad-mod-idx {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 236, 232, 0.9);
}

.acad-mod-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.acad-mod-text strong {
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
}

.acad-mod-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.acad-mod-meta {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.acad-lesson {
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: 1.05rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    rgba(14, 14, 14, 0.95);
  animation: rise-in 0.4s ease both;
}

.acad-lesson-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.acad-lesson-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acad-gold);
}

.acad-lesson-head h2 {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
}

.acad-lesson-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.acad-blocks {
  display: grid;
  gap: 0.95rem;
}

.acad-p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(220, 224, 220, 0.92);
}

.acad-h {
  margin: 0.55rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.acad-ul,
.acad-ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(220, 224, 220, 0.9);
}

.acad-callout {
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border-left: 3px solid var(--accent);
  background: var(--acad-emerald);
}

.acad-callout.tone-gold {
  border-left-color: var(--acad-gold);
  background: var(--acad-gold-soft);
}

.acad-callout em {
  display: block;
  margin-bottom: 0.3rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.acad-callout.tone-gold em {
  color: var(--acad-gold);
}

.acad-callout p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.acad-combo {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0.65rem;
}

.acad-combo header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.acad-combo header strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

.acad-combo header span {
  font-size: 0.75rem;
  color: var(--acad-gold);
  font-weight: 700;
}

.acad-combo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.acad-combo p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.acad-formula {
  padding: 0.95rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(136, 249, 145, 0.25);
  background: rgba(136, 249, 145, 0.06);
  display: grid;
  gap: 0.4rem;
}

.acad-formula em {
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 750;
}

.acad-formula code {
  font-family: "Sora", "JetBrains Mono", monospace;
  font-size: 1.02rem;
  color: #e8ffe9;
  letter-spacing: -0.01em;
}

.acad-formula p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.acad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .acad-grid {
    grid-template-columns: 1fr;
  }
}

.acad-grid-card {
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.acad-grid-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  color: var(--acad-gold);
}

.acad-grid-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(210, 218, 214, 0.88);
}

.acad-lesson-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.75rem;
}

.acad-complete-btn {
  width: 100%;
  border: none;
  border-radius: 0.85rem;
  padding: 1rem 1.2rem;
  font-weight: 750;
  font-size: 1rem;
  cursor: pointer;
  color: var(--accent-ink);
  background: linear-gradient(135deg, #c8f5a0 0%, var(--accent) 45%, #d4b56a 100%);
  box-shadow: 0 10px 28px rgba(136, 249, 145, 0.18);
  transition: var(--btn-transition);
}

.acad-complete-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.acad-done-note {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(136, 249, 145, 0.3);
  background: rgba(136, 249, 145, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
}

.acad-next-link {
  justify-self: start;
  border: none;
  background: transparent;
  color: var(--acad-gold);
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0;
}

.acad-next-link:hover {
  text-decoration: underline;
}

.acad-finale {
  margin-top: 1.5rem;
  padding: 1.5rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(212, 181, 106, 0.35);
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(212, 181, 106, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(136, 249, 145, 0.12), transparent 50%),
    linear-gradient(145deg, #161410 0%, #0f1210 100%);
  display: grid;
  gap: 0.65rem;
  animation: rise-in 0.5s ease both;
}

.acad-finale-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acad-gold);
  font-weight: 750;
}

.acad-finale h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.acad-finale p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(220, 224, 220, 0.9);
}

.acad-finale-cta {
  justify-self: start;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  color: #1a1408;
  background-color: #d4b56a;
  background-image: none;
  box-shadow: 0 12px 30px rgba(212, 181, 106, 0.22);
  text-decoration: none;
  transition: var(--btn-transition);
}

.acad-finale-cta:hover {
  background-color: #e0c47a;
  filter: none;
}
.strat-page-head {
  text-align: center;
  margin: 0 auto 1.35rem;
  max-width: 36rem;
}

.strat-page-head h1 {
  margin-bottom: 0.35rem;
}

.strat-page-head .lead {
  margin: 0 auto;
  max-width: 28rem;
}

.strat-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .strat-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .strat-library {
    position: static;
    max-height: none;
  }
}

/* Equal twin panels */
.strat-col.panel {
  max-width: none;
  width: 100%;
  min-height: 28rem;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-sizing: border-box;
}

.strat-col-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.75rem 1rem;
  min-height: 3.4rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}

.strat-col-title {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.strat-col-title h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.strat-col-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.strat-wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.strat-wizard-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: var(--btn-transition);
}

.strat-wizard-steps li span {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.06);
  transition: var(--btn-transition);
}

.strat-wizard-steps .is-active {
  color: var(--accent);
  font-weight: 700;
  border-color: rgba(136, 249, 145, 0.3);
  background-color: rgba(136, 249, 145, 0.08);
}

.strat-wizard-steps .is-active span {
  background-color: var(--accent);
  color: #0c1210;
}

.strat-wizard-steps .is-done {
  color: rgba(212, 181, 106, 0.95);
}

.strat-wizard-steps .is-done span {
  background-color: rgba(212, 181, 106, 0.22);
  color: #e6d3a2;
}

.strat-wizard-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  animation: strat-step-in 0.38s var(--ease-out-smooth) both;
}

@keyframes strat-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strat-wizard-body > .muted {
  margin: 0;
  min-height: 1.3em;
}

.strat-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.strat-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .strat-format-grid,
  .strat-preset-grid {
    grid-template-columns: 1fr;
  }
}

.strat-format-card,
.strat-preset-card {
  text-align: left;
  padding: 0.95rem 0.9rem;
  min-height: 5.4rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background-color: rgba(255, 255, 255, 0.025);
  background-image: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  outline: none;
  transition: var(--btn-transition);
}

.strat-format-card:hover,
.strat-preset-card:hover {
  border-color: rgba(136, 249, 145, 0.35);
  background-color: rgba(255, 255, 255, 0.05);
}

.strat-format-card:focus-visible,
.strat-preset-card:focus-visible {
  border-color: rgba(136, 249, 145, 0.55);
  box-shadow: 0 0 0 3px rgba(136, 249, 145, 0.15);
}

.strat-format-card.is-active,
.strat-preset-card.is-active {
  border-color: rgba(136, 249, 145, 0.5);
  background-color: rgba(136, 249, 145, 0.1);
  box-shadow: 0 0 0 1px rgba(136, 249, 145, 0.12);
}

.strat-format-card.is-active:hover,
.strat-preset-card.is-active:hover {
  background-color: rgba(136, 249, 145, 0.14);
}

.strat-format-card strong,
.strat-preset-card strong {
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  line-height: 1.25;
}

.strat-format-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.strat-format-lock-icon {
  flex-shrink: 0;
  opacity: 0.75;
  color: var(--muted);
}

.strat-format-card.is-locked,
.strat-format-card.is-locked:hover,
.strat-format-card.is-locked:focus-visible {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: var(--line-soft);
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.strat-format-card.is-locked strong {
  color: var(--muted);
}

.strat-format-card span,
.strat-preset-card em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.strat-wizard-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.75rem;
}

.strat-wizard .panel input,
.strat-wizard input {
  margin-bottom: 0;
}

.strat-wizard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.strat-wizard-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.strat-wizard-actions .cta,
.strat-wizard-actions .cta-secondary {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.strat-name-examples {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 640px) {
  .strat-name-examples {
    grid-template-columns: 1fr;
  }
}

.strat-name-examples-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.strat-name-chip {
  border: 1px solid rgba(212, 181, 106, 0.28);
  background-color: rgba(212, 181, 106, 0.07);
  background-image: none;
  color: #e6d3a2;
  border-radius: 0.55rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  min-height: 2.35rem;
  transition: var(--btn-transition);
}

.strat-name-chip:hover {
  background-color: rgba(212, 181, 106, 0.16);
  border-color: rgba(212, 181, 106, 0.45);
}

.strat-name-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #ffb078;
  min-height: 1.2em;
}

/* Library */

.strat-library {
  position: sticky;
  top: 5.1rem;
  max-height: calc(100dvh - 6.25rem);
  overflow: auto;
}

.strat-library-count {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: "Sora", sans-serif;
  color: #0c1210;
  background: linear-gradient(145deg, #b8ffc0, var(--accent));
  flex-shrink: 0;
}

.strat-library-empty {
  flex: 1;
  min-height: 14rem;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.strat-library-empty p {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 650;
}

.strat-library-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  flex: 1;
  align-content: start;
}

.strat-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 8.25rem;
  transition: var(--btn-transition);
}

.strat-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.strat-card-cash {
  border-color: rgba(136, 249, 145, 0.24);
  box-shadow: inset 3px 0 0 rgba(136, 249, 145, 0.7);
}

.strat-card-mtt {
  border-color: rgba(212, 181, 106, 0.28);
  box-shadow: inset 3px 0 0 rgba(212, 181, 106, 0.75);
}

.strat-card-spins {
  border-color: rgba(120, 196, 255, 0.28);
  box-shadow: inset 3px 0 0 rgba(120, 196, 255, 0.75);
}

.strat-card-main {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 0.95rem 1rem 0.7rem;
  text-decoration: none;
  color: inherit;
}

.strat-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.35rem;
}

.strat-fmt-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.strat-fmt-cash {
  color: #b8ffc0;
  background: rgba(136, 249, 145, 0.1);
  border-color: rgba(136, 249, 145, 0.28);
}

.strat-fmt-mtt {
  color: #e6d3a2;
  background: rgba(212, 181, 106, 0.1);
  border-color: rgba(212, 181, 106, 0.32);
}

.strat-fmt-spins {
  color: #b8e0ff;
  background: rgba(120, 196, 255, 0.1);
  border-color: rgba(120, 196, 255, 0.32);
}

.strat-card-default {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strat-card-name {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.strat-card-meta {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.strat-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 0.95rem 0.95rem;
}

.strat-card-open,
.strat-card-delete {
  text-align: center;
  text-decoration: none;
  border-radius: 0.55rem;
  padding: 0.5rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--btn-transition);
}

.strat-card-open {
  color: #0c1210;
  background-color: var(--accent);
  background-image: none;
  border-color: rgba(136, 249, 145, 0.35);
}

.strat-card-open:hover {
  background-color: var(--accent-strong);
  filter: none;
}

.strat-card-delete {
  color: #ffb4a8;
  background-color: rgba(255, 90, 70, 0.08);
  background-image: none;
  border-color: rgba(255, 110, 90, 0.28);
}

.strat-card-delete:hover:not(:disabled) {
  background-color: rgba(255, 90, 70, 0.16);
}

.strat-card-delete:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gto-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.gto-meta-badges em {
  font-style: normal;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 181, 106, 0.35);
  color: #d4b56a;
  background: rgba(212, 181, 106, 0.08);
}
.shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  --app-stage: min(1480px, 100%);
}

.shell > main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0 clamp(0.85rem, 2vw, 1.75rem) 1.75rem;
}

.page:not(.gto-editor-page):not(.deck-page) {
  width: 100%;
  max-width: var(--app-stage);
  margin-inline: auto;
}

.shell:has(.deck-page),
.shell:has(.gto-editor-page) {
  max-width: none;
  padding: 0;
}

.shell:has(.deck-page) > main,
.shell:has(.gto-editor-page) > main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Редактор стратегий: страница листается целиком, без внутренних «коробок» */
.shell:has(.gto-editor-page) {
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

.shell:has(.gto-editor-page) > main {
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
}

.shell:has(.deck-page) .topbar,
.shell:has(.gto-editor-page) .topbar {
  margin-bottom: 0;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(10, 12, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.shell:has(.gto-editor-page) .topbar-inner {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.topbar {
  margin-bottom: 1.35rem;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 14, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
  width: 100%;
}

.topbar-inner {
  width: 100%;
  max-width: var(--app-stage, min(1480px, 100%));
  margin: 0 auto;
  padding: 0.65rem clamp(0.85rem, 2vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.85rem;
  margin-left: -0.85rem;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  color: rgba(210, 218, 214, 0.88);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.brand:hover {
  color: #f2f6f3;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.06);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-mark__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
}

.brand-name {
  position: relative;
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #e8eee9;
  overflow: hidden;
}

.brand-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
}

.brand:hover .brand-name {
  color: #f7faf8;
}

.brand:hover .brand-name::after {
  opacity: 1;
  animation: brand-shimmer 0.85s ease both;
}

@keyframes brand-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.brand-beta {
  align-self: center;
  margin-left: 0.05rem;
  padding: 0.12rem 0.4rem 0.14rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(210, 218, 214, 0.72);
  font-family: "Sora", sans-serif;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.brand:hover .brand-beta {
  color: #f2f6f3;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
  position: relative;
  z-index: 201;
  overflow: visible;
}

.topbar-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(210, 218, 214, 0.72);
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.topbar-nav .nav-icon {
  flex-shrink: 0;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.topbar-nav > a:hover .nav-icon,
.topbar-nav > a.is-active .nav-icon {
  opacity: 1;
}

.topbar-nav > a:hover {
  color: #f2f6f3;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.06);
}

.topbar-nav > a.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(136, 249, 145, 0.22);
}

.topbar-nav > a.is-active:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.topbar-nav > a.nav-analysis-busy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-analysis-label {
  line-height: 1;
}

.nav-analysis-pct {
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  padding: 0.18rem 0.35rem;
  border: 1px solid rgba(136, 249, 145, 0.45);
  background: rgba(136, 249, 145, 0.14);
  color: var(--accent);
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.topbar-nav > a.is-active .nav-analysis-pct {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.16);
  color: var(--accent-ink);
}

.nav-analysis-pct.is-done {
  border-color: rgba(136, 249, 145, 0.7);
  background: rgba(136, 249, 145, 0.28);
}

.nav-analysis-pct.is-error {
  border-color: rgba(255, 110, 110, 0.55);
  background: rgba(255, 80, 80, 0.16);
  color: #ff8f8f;
}

.analysis-job-banner__pct {
  font-style: normal;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.nav-ghost {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.nav-ghost:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.nav-cta {
  margin-left: 0.2rem;
  padding: 0.52rem 1.05rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(180, 255, 200, 0.35) !important;
  background: linear-gradient(180deg, #9cff9f 0%, var(--accent) 100%) !important;
  color: var(--accent-ink) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.nav-cta:hover {
  background: linear-gradient(180deg, #b4ffb6 0%, var(--accent-strong) 100%) !important;
  color: var(--accent-ink) !important;
  border-color: rgba(200, 255, 210, 0.45) !important;
}

.profile-menu {
  position: relative;
  margin-left: 0.35rem;
  z-index: 1002;
}

.profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
}

.profile-chip:hover {
  border-color: var(--accent);
}

.profile-chip.is-active {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(136, 249, 145, 0.22);
}

.profile-chip.is-active:hover {
  border-color: transparent;
  background: var(--accent);
}

.profile-chip-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-avatar.fallback {
  background: linear-gradient(135deg, var(--accent), #5b8def);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 800;
}

.profile-avatar.xl {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.25rem;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(280px, 86vw);
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
  z-index: 1003;
  animation: rise-in 0.18s ease both;
}

.profile-dropdown-head {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.profile-dropdown-head strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.profile-dropdown-head span {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-section {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.profile-dropdown-section:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.profile-dropdown-label {
  margin: 0;
  padding: 0.35rem 0.75rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-dropdown-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0.58rem 0.75rem;
  border-radius: 0.55rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.profile-dropdown-item.danger {
  color: var(--danger);
}

.account-settings-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.account-settings-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.account-settings-dialog {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(136, 249, 145, 0.08), transparent 55%),
    #121212;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 1.15rem 1.2rem 1.25rem;
  animation: rise-in 0.22s ease both;
}

.account-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-settings-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.account-settings-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.account-settings-close {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.account-settings-close:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.account-settings-card .profile-card-top {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
}

.account-settings-card .profile-card-top h3 {
  margin: 0 0 0.2rem;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.account-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.profile-card {
  max-width: 40rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(18, 18, 18, 0.92);
  padding: 1.4rem;
}

.profile-page {
  display: grid;
  gap: 1rem;
}

.profile-page-head {
  display: block;
}

.profile-page-head h1 {
  margin-bottom: 0.35rem;
}

.profile-page-head .lead {
  margin-bottom: 0;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(18, 18, 18, 0.92);
  width: fit-content;
  max-width: 100%;
}

.profile-tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 0.48rem 0.95rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.profile-tabs button:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.profile-tabs button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(136, 249, 145, 0.18);
}

.profile-tab-panel {
  min-width: 0;
}

.profile-tab-card {
  max-width: none;
  width: min(100%, 48rem);
}

.profile-tab-card h2 {
  margin: 0 0 0.3rem;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.profile-tab-lead {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
}

.profile-tab-card-wrap {
  width: min(100%, 72rem);
}

.profile-account-stack {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 72rem);
}

.profile-report-wrap {
  max-width: none;
}

.profile-tab-card-wrap .profile-card,
.profile-tab-card-wrap .databases-panel,
.profile-tab-card-wrap .profile-sub-card {
  max-width: none;
  width: 100%;
  margin: 0;
}

.profile-sub-card {
  max-width: none;
  width: min(100%, 72rem);
}

.profile-sub-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.profile-sub-head h2 {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.profile-sub-head .muted {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9rem;
}

.profile-sub-current {
  display: grid;
  gap: 0.2rem;
  text-align: right;
}

.profile-sub-badge {
  justify-self: end;
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.14);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.profile-sub-current strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.profile-sub-current em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-sub-usage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.profile-sub-usage > div {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.25rem;
}

.profile-sub-usage span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-sub-usage strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1rem 0.95rem 1.05rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: rgba(12, 14, 16, 0.7);
}

.plan-card.is-current {
  border-color: rgba(62, 207, 142, 0.55);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.15);
}

.plan-card.is-hit {
  border-color: rgba(240, 190, 80, 0.4);
}

.plan-hit {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0be50;
}

.plan-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.plan-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 2.4em;
}

.plan-price {
  margin: 0.35rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price strong {
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.plan-price span,
.plan-price-rub {
  color: var(--muted);
  font-size: 0.82rem;
}

.plan-price-rub {
  margin: 0 0 0.35rem;
}

.plan-card ul {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  min-height: 7.5rem;
}

.plan-card li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text);
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.plan-card .cta,
.plan-card .cta-secondary {
  width: 100%;
  min-height: 2.4rem;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plan-grid,
  .profile-sub-usage {
    grid-template-columns: 1fr;
  }

  .profile-sub-current {
    text-align: left;
  }

  .profile-sub-badge {
    justify-self: start;
  }
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}

.profile-card-top h2 {
  margin: 0 0 0.2rem;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.profile-card-top .muted {
  margin: 0;
}

.profile-fields {
  display: grid;
  gap: 1rem;
}

.profile-field-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.profile-field-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-rating {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.profile-top-hands {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.profile-top-hands h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.profile-top-hands-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.profile-top-hands-list li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.profile-top-rank {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.profile-top-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.profile-top-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.profile-top-link:hover {
  text-decoration: underline;
}

.profile-top-likes {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fca5a5;
  white-space: nowrap;
}

.profile-field-value .linkish,
.profile-inline-form .linkish,
button.linkish {
  all: unset;
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.profile-inline-form input {
  flex: 1;
  min-width: 10rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg);
  color: var(--ink);
}

.badge.warn {
  background: #5a3a12;
  color: #ffd59a;
}

.profile-actions {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 107, 107, 0.45) !important;
  color: var(--danger) !important;
  text-decoration: none;
}

.danger-btn:hover {
  background: rgba(255, 107, 107, 0.08) !important;
}

.profile-danger-zone {
  margin-top: 0;
  border-color: rgba(255, 107, 107, 0.28);
}

.profile-danger-zone h2 {
  margin: 0 0 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.profile-danger-zone .muted {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 0.88rem;
}

/* ── Hand databases (profile) ── */

.databases-panel {
  max-width: none;
  width: min(100%, 48rem);
}

.databases-panel-head h2 {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.databases-panel-head .muted {
  margin: 0;
  font-size: 0.9rem;
}

.databases-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  margin: 1.1rem 0 0.85rem;
}

.databases-create label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.databases-create input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg);
  color: var(--ink);
}

.databases-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.databases-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(12, 12, 12, 0.65);
}

.databases-item.is-active {
  border-color: rgba(136, 249, 145, 0.45);
  background: rgba(136, 249, 145, 0.06);
}

.databases-item-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.databases-item-main strong {
  font-size: 1rem;
}

.databases-active {
  display: inline-block;
  margin-left: 0.45rem;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.databases-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .databases-create {
    grid-template-columns: 1fr;
  }

  .databases-item {
    grid-template-columns: 1fr;
  }

  .databases-item-actions {
    justify-content: flex-start;
  }
}

.danger-solid {
  background: rgba(255, 90, 90, 0.92) !important;
  border-color: rgba(255, 90, 90, 0.95) !important;
  color: #fff !important;
}

.danger-solid:hover {
  background: rgba(230, 70, 70, 1) !important;
}

.profile-delete-confirm {
  display: grid;
  gap: 0.85rem;
}

.profile-delete-confirm p {
  margin: 0;
}

.profile-delete-confirm label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-delete-confirm input {
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.95);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  margin: 1.75rem 0 0.85rem;
  letter-spacing: -0.02em;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 52rem;
}

.preset-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(18, 18, 18, 0.9);
  padding: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.preset-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.preset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.preset-card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.preset-tag {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(136, 249, 145, 0.14);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.preset-mini-list {
  display: grid;
  gap: 0.4rem;
}

.preset-mini {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0.6rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font: inherit;
}

.preset-mini:hover:not(:disabled) {
  border-color: var(--accent);
}

.preset-mini:disabled {
  opacity: 0.55;
  cursor: wait;
}

.preset-mini strong {
  color: var(--accent);
  font-size: 0.75rem;
  min-width: 2.4rem;
  padding-top: 0.1rem;
}

.preset-mini-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.preset-mini-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.preset-mini-desc {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

/* вЂ”вЂ” Upload page вЂ”вЂ” */
.upload-page {
  position: relative;
  max-width: 56rem;
  animation: rise-in 0.45s ease both;
}

.analysis-page {
  position: relative;
  max-width: var(--app-stage);
  animation: rise-in 0.45s ease both;
}

.analysis-scope-tabs {
  margin-bottom: 1.25rem;
}

.analysis-scope-panel {
  min-width: 0;
}

.analysis-db-meta {
  margin: 0 0 0.85rem;
}

.analysis-sync-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.analysis-sync-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  opacity: 0.9;
}

.analysis-sync-pill.is-ok {
  color: var(--accent);
}

.analysis-sync-pill.is-bad {
  color: #f0a090;
}

.analysis-sync-pill.is-busy {
  color: rgba(245, 247, 250, 0.78);
}

.analysis-sync-retry {
  font-size: 0.75rem;
}

.analysis-sync-note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.analysis-sync-note.is-bad {
  color: #f0a090;
}

.analysis-page-results {
  margin-top: 1.75rem;
}

.analysis-day-after-report {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.15rem;
}

.analysis-day-icon-wrap {
  position: relative;
}

.analysis-day-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.analysis-day-icon:hover,
.analysis-day-icon.is-open {
  opacity: 1;
  color: rgba(245, 247, 250, 0.92);
  border-color: var(--line-soft);
  background: rgba(0, 0, 0, 0.18);
}

.analysis-day-icon.is-active {
  opacity: 1;
  color: var(--accent);
}

.analysis-day-icon-dot {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.analysis-day-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 40;
  min-width: 13.5rem;
  max-width: min(18rem, 86vw);
  max-height: min(16rem, 50vh);
  overflow: auto;
  padding: 0.55rem 0.6rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.65rem;
  background: rgba(12, 16, 14, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.analysis-day-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 247, 250, 0.88);
}

.analysis-day-popover-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.analysis-day-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.3rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}

.analysis-day-check:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 250, 0.9);
}

.analysis-day-check.is-on {
  color: rgba(245, 247, 250, 0.92);
}

.analysis-day-check input {
  margin: 0;
  accent-color: var(--accent);
}

.analysis-day-check em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.7;
}

.analysis-day-popover-meta {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
}

.db-analyze-toolbar--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.db-analyze-toolbar--inline .upload-field {
  flex: 0 1 16rem;
  min-width: 12rem;
}

.db-hands-pill {
  font-size: 0.82rem;
  padding-bottom: 0.35rem;
}

.analysis-upload {
  margin-bottom: 1.25rem;
}

.session-upload.is-compact .upload-shell {
  padding: 0.9rem 1rem;
}

.session-upload.is-compact .upload-dropzone {
  min-height: 5.5rem;
  padding: 1.1rem 1rem;
}

.session-upload.is-compact .upload-dropzone-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.65rem;
}

.session-upload.is-compact .upload-dropzone strong {
  font-size: 1rem;
}

.session-upload.is-compact .upload-report {
  margin-top: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
}

.upload-page.is-dragover {
  outline: none;
}

.upload-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 7, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.upload-drop-overlay-card {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  padding: 2rem 2.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(136, 249, 145, 0.35);
  background:
    linear-gradient(160deg, rgba(136, 249, 145, 0.1), transparent 55%),
    rgba(14, 16, 14, 0.95);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.upload-drop-overlay-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.upload-drop-overlay-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-hero {
  margin-bottom: 1.75rem;
}

.upload-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(136, 249, 145, 0.75);
}

.upload-hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}

.upload-hero .lead {
  margin: 0.55rem 0 0;
  max-width: 28rem;
  color: var(--muted);
}

.upload-shell {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(12, 12, 12, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.upload-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
}

.upload-field {
  display: grid;
  gap: 0.35rem;
  flex: 1;
  min-width: 12rem;
}

.upload-field span {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.upload-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #0b0b0b;
  color: var(--ink);
}

.upload-submit {
  border: none;
  border-radius: 0.75rem;
  padding: 0.78rem 1.35rem;
  font-weight: 750;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.upload-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.upload-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.upload-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;
}

.upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 11rem;
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(136, 249, 145, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.28);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-dropzone:hover:not(.disabled) {
  border-color: rgba(136, 249, 145, 0.35);
  transform: translateY(-1px);
}

.upload-dropzone.disabled {
  opacity: 0.55;
  cursor: wait;
  pointer-events: none;
}

.upload-hint {
  margin: 0;
  color: #c8b27a;
  font-size: 0.88rem;
  font-weight: 650;
}

.upload-dropzone-mark {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(136, 249, 145, 0.28);
  background:
    linear-gradient(135deg, rgba(136, 249, 145, 0.2), transparent),
    #101210;
  box-shadow: 0 0 24px rgba(136, 249, 145, 0.12);
}

.upload-dropzone strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.upload-dropzone span {
  color: var(--muted);
  font-size: 0.88rem;
}

.upload-file-tray {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}

.upload-file-tray-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.upload-file-tray-head em {
  font-style: normal;
  margin-right: auto;
}

.upload-clear {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.upload-clear:hover {
  color: var(--ink);
}

.upload-file-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 7rem;
  overflow: auto;
}

.upload-file-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.3rem 0.35rem 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.95);
  font-size: 0.75rem;
  color: var(--muted);
}

.upload-file-chips li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}

.upload-file-chips button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.35rem;
}

.upload-file-chips button:hover {
  color: var(--danger);
}

.upload-report {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.upload-report-cell {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.9);
}

.upload-report-cell span {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.upload-report-cell strong {
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.upload-report-cell.ok strong {
  color: var(--call);
}

.upload-report-cell.bad strong {
  color: var(--raise);
}

.upload-sessions {
  margin-top: 2rem;
}

.upload-sessions-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.upload-sessions-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.upload-sessions-empty {
  margin: 0;
  font-size: 0.9rem;
}

.upload-session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.85);
}

.upload-session-list li + li {
  border-top: 1px solid var(--line-soft);
}

.upload-session-row {
  width: 100%;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1.8fr) 6.5rem 4.5rem 2.5rem 2.75rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-size: 0.8rem;
}

.upload-session-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.upload-session-row.active {
  background: rgba(136, 249, 145, 0.06);
}

.usr-room {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(136, 249, 145, 0.85);
}

.usr-label {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usr-meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}

.usr-dev {
  text-align: right;
  font-weight: 750;
  color: var(--call);
  font-variant-numeric: tabular-nums;
}

.usr-dev.bad {
  color: var(--raise);
}

.upload-deviations {
  margin-top: 1.5rem;
}

.upload-deviations h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

.session-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}

.bad-text {
  color: #ff9b9b;
}

.ok-text {
  color: #7aefb5;
}

.results-page .lead {
  margin-bottom: 1.25rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.results-controls {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.period-bar {
  display: grid;
  gap: 0.75rem;
  margin: 0.35rem 0 0.5rem;
}

.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.period-chip {
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.88);
  color: var(--muted);
  border-radius: 0.55rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.period-chip:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.period-chip.active {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.period-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.period-custom label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.period-custom input[type="date"] {
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.95);
  color: var(--ink);
  font-weight: 650;
  min-width: 10.5rem;
}

.period-custom input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

.results-controls select {
  min-width: 16rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.95);
  color: var(--ink);
}

.unit-toggle {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
}

.unit-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.unit-toggle button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.35rem;
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(14, 14, 14, 0.96));
  padding: 1.05rem 1.15rem;
  display: grid;
  gap: 0.25rem;
  min-height: 7.2rem;
}

.kpi-card.hero-kpi {
  border-color: rgba(136, 249, 145, 0.22);
  box-shadow: 0 0 40px rgba(136, 249, 145, 0.06);
}

.kpi-card.hero-kpi.neg {
  border-color: rgba(255, 90, 90, 0.28);
  box-shadow: 0 0 40px rgba(255, 90, 90, 0.07);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kpi-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.kpi-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.kpi-sep {
  margin: 0 0.25rem;
  color: #444;
}

.pos {
  color: #57e4a5;
}

.neg {
  color: #ff6b6b;
}

.flat {
  color: #9aa3b5;
}

.chart-panel {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91, 141, 239, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(16, 16, 18, 0.98), rgba(10, 10, 12, 0.98));
  padding: 0.85rem 0.9rem 0.7rem;
  overflow: hidden;
  max-width: 48rem;
  margin-inline: auto;
  width: 100%;
}

.chart-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.chart-panel-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.chart-panel-head .muted {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
}

.chart-legend {
  display: flex;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chart-legend i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
}

.chart-legend .lg.pos {
  background: #3dd68c;
}

.chart-legend .lg.neg {
  background: #ff5a5a;
}

.chart-legend .lg.line {
  background: #d7e0ff;
  box-shadow: 0 0 8px rgba(215, 224, 255, 0.45);
}

.profit-chart {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.profit-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 0;
  max-height: 16rem;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.chart-zero {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
}

.chart-line {
  stroke: #e8eeff;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(180, 200, 255, 0.35));
}

.chart-axis {
  fill: #7d8599;
  font-size: 11px;
  font-weight: 650;
}

.chart-cross {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}

.chart-dot {
  fill: #fff;
  stroke: #5b8def;
  stroke-width: 2;
}

.chart-tooltip {
  position: absolute;
  top: 0.35rem;
  transform: translateX(-50%);
  pointer-events: none;
  background: rgba(12, 12, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  display: grid;
  gap: 0.15rem;
  font-size: 0.78rem;
  white-space: nowrap;
  z-index: 2;
}

.chart-tooltip strong {
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
}

.chart-tooltip span {
  color: var(--muted);
}

.sessions-profit-block {
  margin-top: 1.75rem;
  max-width: 56rem;
}

.sessions-profit-block h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}

.branch-pl-block {
  margin-top: 1.15rem;
  max-width: 56rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .branch-pl-block {
    grid-template-columns: 1fr;
  }
}

.branch-pl-col {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.88);
}

.branch-pl-col h2 {
  margin: 0 0 0.25rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.branch-pl-sub {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
}

.branch-pl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.branch-pl-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.branch-pl-list li:last-child {
  border-bottom: none;
}

.branch-pl-label {
  font-weight: 700;
  color: var(--ink);
}

.branch-pl-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.branch-pl-meta em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.branch-pl-meta strong {
  font-size: 0.88rem;
}

.session-profit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.session-profit-list li {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(18, 18, 18, 0.88);
}

.session-profit-list button {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.session-profit-list button:hover {
  background: rgba(255, 255, 255, 0.02);
}

.session-profit-list strong {
  display: block;
  font-family: "Sora", sans-serif;
  margin-bottom: 0.15rem;
}

.session-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-weight: inherit;
}

.session-label__rest {
  color: inherit;
  font-weight: 650;
}

.room-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.12rem 0.4rem 0.12rem 0.12rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: default;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.room-badge__icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.room-badge__svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.92);
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}

.room-badge__name {
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.room-badge--ps:hover,
.session-profit-list button:hover .room-badge--ps {
  color: #ff6b6b;
  border-color: rgba(225, 29, 46, 0.45);
  background: rgba(225, 29, 46, 0.12);
  box-shadow: 0 0 18px rgba(225, 29, 46, 0.28);
}

.room-badge--gg:hover,
.session-profit-list button:hover .room-badge--gg {
  color: #f6c453;
  border-color: rgba(246, 196, 83, 0.45);
  background: rgba(246, 196, 83, 0.1);
  box-shadow: 0 0 18px rgba(246, 196, 83, 0.22);
}

.room-badge:hover .room-badge__svg,
.session-profit-list button:hover .room-badge__svg {
  filter: saturate(1.15) brightness(1.08);
  transform: scale(1.06);
}

.session-profit-list .muted {
  font-size: 0.78rem;
}

.session-profit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  justify-content: flex-end;
}

.results-empty {
  max-width: 32rem;
}

@media (max-width: 980px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .session-profit-list button {
    flex-direction: column;
    align-items: flex-start;
  }
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 48rem;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(18, 18, 18, 0.9);
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.report-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.report-card.ok strong {
  color: var(--call);
}

.report-card.bad strong {
  color: var(--raise);
}

.report-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deviation-table-wrap {
  margin-top: 1.75rem;
}

.deviation-table-wrap h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.deviation-table {
  width: 100%;
  max-width: 48rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.deviation-table th,
.deviation-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0.45rem;
  text-align: left;
}

.deviation-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.act.raise {
  color: #ffb0b0;
}

.act.call {
  color: #9ef0c4;
}

.act.fold {
  color: #b6cfff;
}

@media (max-width: 900px) {
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-report {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .upload-session-row {
    grid-template-columns: 2rem minmax(0, 1fr) 3.5rem 2.2rem 1.8rem;
  }

  .upload-session-row .usr-meta:nth-child(4) {
    display: none;
  }

  .preset-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .upload-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-submit {
    width: 100%;
  }

  .upload-report {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page {
  animation: rise-in 0.55s ease both;
}

.page h1,
.hero-title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page p.lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.hero {
  min-height: calc(100vh - 7rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  max-width: 12ch;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  line-height: 0.95;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.hero-title .accent {
  color: var(--accent);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 26rem;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta,
.cta-secondary,
.panel button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--btn-transition);
}

.cta,
.panel button[type="submit"] {
  /* Сплошной цвет — плавно интерполируется при hover (градиент «мигает») */
  background-color: var(--accent);
  background-image: none;
  color: var(--accent-ink);
  box-shadow: 0 0 24px var(--glow);
}

.cta:hover,
.panel button[type="submit"]:hover:not(:disabled) {
  background-color: var(--accent-strong);
  background-image: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(136, 249, 145, 0.28);
}

.cta:disabled,
.panel button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cta-secondary {
  background-color: transparent;
  background-image: none;
  color: var(--ink);
  border: 1px solid var(--line);
}

.cta-secondary:hover {
  border-color: var(--muted);
  background-color: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(22, 22, 22, 0.95), rgba(10, 10, 10, 0.92)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 12px
    );
  animation: rise-in 0.7s ease 0.1s both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  animation: pulse-glow 4.5s ease-in-out infinite;
  pointer-events: none;
}

.range-board {
  position: absolute;
  inset: 1.25rem;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(13, 1fr);
  gap: 3px;
  z-index: 1;
}

.range-cell {
  border-radius: 3px;
  min-height: 0;
  opacity: 0.9;
}

.landing-hero-visual .range-cell {
  animation: landing-cell-in 0.7s ease both;
}

.range-cell.raise {
  background: linear-gradient(180deg, #ff7a7a, var(--raise));
}

.range-cell.call {
  background: linear-gradient(180deg, #57e4a5, var(--call));
}

.range-cell.fold {
  background: linear-gradient(180deg, #7aa8f5, var(--fold));
  opacity: 0.55;
}

@keyframes landing-cell-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 0.9;
    transform: none;
  }
}

.range-legend {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.range-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.range-legend i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  display: inline-block;
}

/* —— Landing presentation —— */
.landing {
  display: grid;
  gap: 0;
  padding-bottom: 4rem;
}

.landing-hero {
  overflow: hidden;
}

.landing-hero-atmosphere {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 55% at 15% 30%, rgba(136, 249, 145, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(91, 141, 239, 0.12), transparent 55%);
  pointer-events: none;
  animation: landing-atmosphere 10s ease-in-out infinite alternate;
}

@keyframes landing-atmosphere {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate3d(2%, 3%, 0) scale(1.05);
    opacity: 1;
  }
}

.landing-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-reveal.is-in {
  opacity: 1;
  transform: none;
}

.landing-manifesto {
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 1rem;
}

.landing-manifesto-line {
  margin: 0;
  max-width: 18ch;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.landing-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 4.25rem 0;
  border-top: 1px solid var(--line-soft);
}

.landing-feature.is-flip {
  direction: rtl;
}

.landing-feature.is-flip > * {
  direction: ltr;
}

.landing-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.landing-feature-copy h2,
.landing-flow h2,
.landing-close h2 {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
}

.landing-feature-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 34rem;
}

.landing-feature-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.landing-feature-copy li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.landing-feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--accent);
}

.landing-feature-stage {
  position: relative;
  min-height: 16rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(155deg, rgba(20, 20, 20, 0.96), rgba(8, 8, 8, 0.98)),
    repeating-linear-gradient(
      -35deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 14px
    );
}

.landing-stage-glow {
  position: absolute;
  inset: auto -15% -35% auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(136, 249, 145, 0.18), transparent 65%);
  pointer-events: none;
}

.landing-stage-matrix {
  position: absolute;
  inset: 1.25rem;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 3px;
}

.landing-stage-matrix i {
  border-radius: 3px;
  display: block;
}

.landing-stage-matrix i.raise {
  background: var(--raise);
}

.landing-stage-matrix i.call {
  background: var(--call);
}

.landing-stage-matrix i.fold {
  background: var(--fold);
  opacity: 0.5;
}

.landing-stage-chart {
  position: absolute;
  inset: 1.5rem 1.25rem 1.25rem;
}

.landing-stage-chart svg {
  width: 100%;
  height: 100%;
}

.landing-chart-area {
  fill: rgba(136, 249, 145, 0.12);
}

.landing-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
}

.landing-reveal.is-in .landing-chart-line {
  animation: landing-draw 1.4s ease forwards 0.2s;
}

@keyframes landing-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.landing-stage-table {
  position: absolute;
  inset: 1.25rem;
  display: grid;
  place-items: end center;
  padding-bottom: 1rem;
}

.landing-felt {
  position: absolute;
  inset: 12% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(61, 214, 140, 0.22), transparent 55%),
    radial-gradient(circle at 50% 55%, #0f3d28 0%, #07160f 70%);
  border: 1px solid rgba(136, 249, 145, 0.18);
}

.landing-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.45rem;
}

.landing-actions span {
  padding: 0.45rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  animation: landing-action-pulse 2.8s ease-in-out infinite;
}

.landing-actions .act-raise {
  background: rgba(255, 90, 90, 0.18);
  color: #ffb0b0;
  border-color: rgba(255, 90, 90, 0.35);
  animation-delay: 0s;
}

.landing-actions .act-call {
  background: rgba(136, 249, 145, 0.14);
  color: #9ef0c4;
  border-color: rgba(136, 249, 145, 0.35);
  animation-delay: 0.35s;
}

.landing-actions .act-fold {
  background: rgba(91, 141, 239, 0.16);
  color: #b6cfff;
  border-color: rgba(91, 141, 239, 0.35);
  animation-delay: 0.7s;
}

@keyframes landing-action-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.landing-stage-kpi {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
}

.landing-stage-kpi > div {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1.5rem;
  background: rgba(12, 12, 12, 0.96);
}

.landing-stage-kpi em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-stage-kpi strong {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.landing-stage-kpi strong.pos {
  color: var(--accent);
}

.landing-stage-kpi span {
  color: var(--muted);
  font-size: 0.85rem;
}

.landing-flow {
  padding: 4.5rem 0 3rem;
  border-top: 1px solid var(--line-soft);
}

.landing-flow h2 {
  max-width: 16ch;
  margin-bottom: 2rem;
}

.landing-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  counter-reset: flow;
}

.landing-flow-steps li {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(136, 249, 145, 0.35);
  counter-increment: flow;
}

.landing-flow-steps li::before {
  content: counter(flow, decimal-leading-zero);
  font-family: "Sora", sans-serif;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.landing-flow-steps strong {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.landing-flow-steps span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-close {
  margin-top: 2rem;
  padding: 3.5rem 0 1rem;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}

.landing-close h2 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
}

.landing-close p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .landing-feature,
  .landing-feature.is-flip {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 3rem 0;
  }

  .landing-flow-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .landing-manifesto {
    padding: 3rem 0 1rem;
  }
}

/* —— Presentation deck (home) —— */
.deck-page {
  position: relative;
  height: calc(100dvh - 5.25rem);
  min-height: 28rem;
  color: var(--text);
}

.deck {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.deck-slide {
  position: relative;
  box-sizing: border-box;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vh, 2.5rem) clamp(1.25rem, 5vw, 4rem) clamp(3.5rem, 8vh, 5rem);
  overflow: hidden;
}

.deck-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 10% 0%, rgba(62, 207, 142, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 100%, rgba(120, 160, 255, 0.07), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.deck-slide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.deck-slide[data-visual="close"] .deck-slide-inner,
.deck-slide[data-visual="hero"] .deck-slide-inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
}

.deck-copy {
  min-width: 0;
}

.deck-eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
  max-width: 36rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.deck-eyebrow em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.deck-copy h2 {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.85rem, 4.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  max-width: 18ch;
}

.deck-copy h2.deck-brand {
  max-width: none;
  font-size: clamp(2.8rem, 9vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  background: linear-gradient(120deg, #f4f7f5 20%, var(--accent) 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.deck-lead {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.45;
  color: var(--text);
}

.deck-body {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.deck-points {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
}

.deck-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.deck-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18);
}

.deck-cta {
  margin-top: 0.35rem;
}

.deck-visual {
  min-width: 0;
  display: grid;
  place-items: center;
}

.deck-matrix {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(28, 32, 36, 0.95), rgba(12, 14, 16, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.deck-matrix i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.deck-matrix i.raise {
  background: rgba(62, 207, 142, 0.72);
}

.deck-matrix i.call {
  background: rgba(120, 170, 255, 0.65);
}

.deck-matrix i.fold {
  background: rgba(255, 255, 255, 0.07);
}

.deck-quote {
  margin: 0;
  width: min(100%, 22rem);
  padding: 1.75rem 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30, 36, 32, 0.95), rgba(12, 14, 16, 0.98));
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.deck-chart {
  width: min(100%, 24rem);
  padding: 1rem 1rem 0.9rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(28, 32, 36, 0.95), rgba(12, 14, 16, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.deck-chart svg {
  display: block;
  width: 100%;
  height: 8.5rem;
}

.deck-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.deck-chart-meta strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.deck-errors {
  width: min(100%, 24rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.deck-errors > div {
  padding: 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.9);
}

.deck-errors span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

.deck-mini-grid i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.deck-mini-grid i.raise { background: rgba(62, 207, 142, 0.7); }
.deck-mini-grid i.call { background: rgba(120, 170, 255, 0.6); }
.deck-mini-grid i.fold { background: rgba(255, 255, 255, 0.07); }

.deck-mini-grid.is-errors i.raise { background: rgba(255, 90, 90, 0.75); }
.deck-mini-grid.is-errors i.call { background: rgba(240, 180, 70, 0.7); }
.deck-mini-grid.is-errors i.fold { background: rgba(140, 140, 150, 0.45); }

.deck-branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, 22rem);
  display: grid;
  gap: 0.5rem;
}

.deck-branch-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(18, 20, 22, 0.92);
  font-size: 0.88rem;
}

.deck-branch-list em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 650;
}

.deck-branch-list li.is-new {
  border-style: dashed;
  border-color: rgba(62, 207, 142, 0.4);
  background: rgba(62, 207, 142, 0.06);
}

.deck-branch-list li.is-new em {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.deck-trainer {
  width: min(100%, 24rem);
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(28, 32, 36, 0.96), rgba(12, 14, 16, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.75rem;
}

.deck-trainer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-trainer-head em {
  font-style: normal;
  color: var(--text);
  letter-spacing: 0.04em;
}

.deck-trainer-table {
  position: relative;
  height: 9.5rem;
  display: grid;
  place-items: center;
}

.deck-trainer-rail {
  position: absolute;
  inset: 0.35rem 0.2rem;
  border-radius: 999px;
  background:
    linear-gradient(145deg, #3a2a1c 0%, #1a120c 45%, #2c1e14 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.deck-trainer-felt {
  position: relative;
  z-index: 1;
  width: calc(100% - 1.6rem);
  height: calc(100% - 1.5rem);
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(70, 160, 110, 0.35), transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #145338 0%, #0a281c 72%, #061810 100%);
  border: 1px solid rgba(120, 200, 150, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.deck-trainer-pot {
  position: absolute;
  top: 0.65rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 235, 225, 0.55);
}

.deck-trainer-cards {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.deck-card {
  width: 2.35rem;
  height: 3.2rem;
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #f8f6f1 0%, #e8e4dc 100%);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.28rem 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.deck-card span {
  font-size: 1rem;
  margin-top: 0.1rem;
}

.deck-card.is-red {
  color: #c62828;
}

.deck-trainer-prompt {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-trainer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.deck-trainer-actions span {
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.deck-trainer-actions .is-fold {
  color: #b6cfff;
  border-color: rgba(120, 150, 220, 0.28);
  background: rgba(91, 141, 239, 0.08);
}

.deck-trainer-actions .is-call {
  color: #9ef0c4;
  border-color: rgba(100, 200, 140, 0.28);
  background: rgba(62, 207, 142, 0.08);
}

.deck-trainer-actions .is-raise {
  color: #ffb0b0;
  border-color: rgba(255, 110, 110, 0.3);
  background: rgba(255, 90, 90, 0.08);
}

.deck-trainer-actions .is-pick {
  color: #0d1a12;
  background: linear-gradient(180deg, #9cff9f 0%, var(--accent) 100%);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(62, 207, 142, 0.35);
}

.deck-trainer-ok {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.deck-kpi {
  width: min(100%, 22rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.deck-kpi > div {
  padding: 1rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.92);
}

.deck-kpi em {
  display: block;
  margin-bottom: 0.35rem;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-kpi strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.deck-kpi span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.deck-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, 20rem);
  display: grid;
  gap: 0.65rem;
  counter-reset: flow;
}

.deck-flow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.92);
}

.deck-flow li::before {
  content: counter(flow);
  grid-row: span 2;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.deck-flow strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.deck-flow span {
  font-size: 0.82rem;
  color: var(--muted);
}

.deck-close-mark {
  width: min(100%, 20rem);
  padding: 1.75rem 1.4rem;
  text-align: center;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62, 207, 142, 0.18), transparent 60%),
    rgba(14, 16, 18, 0.95);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.deck-close-mark span {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
}

.deck-close-mark em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.deck-next {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(10, 12, 14, 0.75);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.deck-next:hover {
  border-color: rgba(62, 207, 142, 0.45);
  background: rgba(62, 207, 142, 0.1);
}

.deck-next span {
  opacity: 0.7;
}

.deck-dots {
  position: absolute;
  right: clamp(0.55rem, 2vw, 1.2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.deck-dots button {
  width: 0.52rem;
  height: 0.52rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.deck-dots button:hover {
  background: rgba(255, 255, 255, 0.45);
}

.deck-dots button.is-active {
  background: var(--accent);
  transform: scale(1.28);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.22);
}

@media (max-width: 900px) {
  .deck-page {
    height: calc(100dvh - 4.75rem);
  }

  .deck-slide-inner {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .deck-visual {
    order: -1;
  }

  .deck-slide[data-visual="hero"] .deck-visual {
    display: none;
  }

  .deck-copy h2 {
    max-width: none;
  }

  .deck-dots {
    right: 0.4rem;
  }

  .deck-dots button {
    width: 0.42rem;
    height: 0.42rem;
  }

  .deck-matrix {
    width: min(100%, 16rem);
  }
}


.auth-layout {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 8rem);
}

.auth-card {
  width: min(100%, 420px);
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.75rem;
  box-shadow: 0 0 60px rgba(136, 249, 145, 0.08);
  backdrop-filter: blur(10px);
  animation: rise-in 0.5s ease both;
}

.auth-card h1 {
  font-family: "Sora", sans-serif;
  font-size: 1.85rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}

.auth-card .lead {
  margin-bottom: 1.35rem;
}

.terms-check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
  margin: 1rem 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.terms-check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.terms-check-box {
  grid-column: 1;
  grid-row: 1;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: 0.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.terms-check-box::after {
  content: "";
  width: 0.32rem;
  height: 0.58rem;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(42deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}

.terms-check:hover .terms-check-box {
  border-color: rgba(62, 207, 142, 0.45);
}

.terms-check-input:focus-visible + .terms-check-box {
  outline: 2px solid rgba(62, 207, 142, 0.45);
  outline-offset: 2px;
}

.terms-check-input:checked + .terms-check-box {
  border-color: transparent;
  background: linear-gradient(180deg, #9cff9f 0%, var(--accent) 100%);
  box-shadow: 0 0 16px rgba(62, 207, 142, 0.28);
}

.terms-check-input:checked + .terms-check-box::after {
  border-color: #0d1a12;
  opacity: 1;
  transform: translateY(-1px) rotate(42deg) scale(1);
}

.terms-check-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.terms-link {
  all: unset;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 650;
}

.terms-link:hover {
  color: var(--accent-strong, #9cff9f);
}

.terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.terms-modal {
  width: min(100%, 40rem);
  max-height: min(88dvh, 44rem);
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(24, 28, 32, 0.98), rgba(12, 14, 16, 0.99));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.terms-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.terms-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.terms-modal-head h2 {
  margin: 0 0 0.25rem;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.terms-modal-head .muted {
  margin: 0;
  font-size: 0.82rem;
}

.terms-close-x {
  min-height: 2.2rem !important;
  min-width: 2.2rem;
  padding: 0.4rem 0.65rem !important;
  align-self: flex-start;
}

.terms-modal-body {
  overflow-y: auto;
  padding: 1.1rem 1.35rem 1.25rem;
  display: grid;
  gap: 1.15rem;
}

.terms-section h3 {
  margin: 0 0 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.terms-section p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-modal-foot {
  padding: 0.9rem 1.35rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: flex-end;
}

.site-footer {
  margin-top: auto;
  padding: 1.1rem clamp(0.85rem, 2vw, 1.75rem) 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  width: 100%;
}

.shell:has(.deck-page) .site-footer {
  margin-top: 0;
  padding-left: clamp(1.25rem, 5vw, 4rem);
  padding-right: clamp(1.25rem, 5vw, 4rem);
}

.shell:has(.gto-editor-page) .site-footer {
  margin-top: 0;
  padding: 1.1rem clamp(0.85rem, 3vw, 2.25rem) 1.35rem;
  background: #0a0c10;
}

.site-footer-inner {
  width: min(100%, 44rem);
  margin: 0 auto;
  display: grid;
  gap: 0.55rem;
}

.site-footer-line {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #4a4a4a;
}

.site-footer-label {
  color: #3f3f3f;
}

.site-footer-toggle {
  all: unset;
  cursor: pointer;
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-toggle:hover {
  color: #6a6a6a;
}

.site-footer-spoiler {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.28s ease;
}

.site-footer-spoiler.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.site-footer-spoiler-inner {
  overflow: hidden;
  min-height: 0;
}

.site-footer-spoiler-inner p {
  margin: 0 0 0.45rem;
  font-size: 10px;
  line-height: 1.5;
  color: #4a4a4a;
}

.site-footer-spoiler-inner p:last-child {
  margin-bottom: 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 10px;
  font-weight: 400;
}

.site-footer-links button {
  all: unset;
  cursor: pointer;
  color: #454545;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.site-footer-links button:hover {
  color: #6e6e6e;
}

.site-footer-links span {
  color: #333;
  user-select: none;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 1rem 1rem 1.2rem;
  }

  .site-footer-links {
    gap: 0.3rem 0.45rem;
  }
}

/* —— Support widget —— */
.support-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.support-widget > * {
  pointer-events: auto;
}

.support-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 207, 142, 0.35);
  background: rgba(14, 16, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(230, 236, 232, 0.92);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.support-fab:hover {
  border-color: rgba(62, 207, 142, 0.55);
  background: rgba(18, 22, 24, 0.85);
  transform: translateY(-1px);
}

.support-fab.is-open {
  border-color: rgba(62, 207, 142, 0.5);
}

.support-fab svg {
  opacity: 0.9;
}

.support-panel {
  width: min(calc(100vw - 2rem), 22.5rem);
  border-radius: 1.1rem;
  border: 1px solid rgba(62, 207, 142, 0.22);
  background: linear-gradient(165deg, rgba(22, 26, 28, 0.96), rgba(10, 12, 14, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: support-rise 0.22s ease both;
}

@keyframes support-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.support-panel-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.support-mark {
  width: 1.35rem !important;
  height: 1.35rem !important;
}

.support-panel-brand strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.support-panel-brand em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.support-close {
  all: unset;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.support-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.support-panel-body {
  padding: 0.95rem;
  display: grid;
  gap: 0.85rem;
}

.support-live {
  padding: 0.8rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.support-live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.support-live-title {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text);
}

.support-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #6a6a6a;
  box-shadow: 0 0 0 3px rgba(106, 106, 106, 0.15);
}

.support-live-status {
  font-size: 0.75rem;
  color: var(--muted);
}

.support-live-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(150, 158, 154, 0.95);
}

.support-primary {
  appearance: none;
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(180, 255, 200, 0.28);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(156, 255, 159, 0.92) 0%, var(--accent) 100%);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.support-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 0 22px rgba(62, 207, 142, 0.22);
}

.support-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.support-back {
  all: unset;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  width: fit-content;
}

.support-back:hover {
  color: var(--accent);
}

.support-form {
  display: grid;
  gap: 0.7rem;
}

.support-form label {
  display: grid;
  gap: 0.35rem;
}

.support-form label > span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-form textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.45;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: rgba(62, 207, 142, 0.45);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.1);
}

.support-form select {
  cursor: pointer;
}

.support-error {
  margin: 0;
  font-size: 0.8rem;
}

.support-success {
  padding: 1.1rem 0.35rem 0.6rem;
  text-align: center;
  animation: support-rise 0.25s ease both;
}

.support-success p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(220, 230, 224, 0.92);
}

@media (max-width: 640px) {
  .support-widget {
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
    align-items: stretch;
  }

  .support-fab {
    align-self: flex-end;
  }

  .support-panel {
    width: 100%;
  }
}

.google-slot {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-bottom: 1rem;
}

.google-fallback {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  cursor: pointer;
}

.google-fallback:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.25rem 0 1rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  max-width: 28rem;
}

.panel label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.panel input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg);
  color: var(--ink);
}

.panel input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.panel button[type="button"].linkish {
  all: unset;
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}

.strategy-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
}

.strategy-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(18, 18, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.strategy-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.chip.danger-chip {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.45);
  background: transparent;
}

.chip.danger-chip:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--danger);
}

.chip.danger-chip:disabled {
  opacity: 0.55;
  cursor: wait;
}

.badge {
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.editor-page .lead {
  margin-bottom: 1rem;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.editor-back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.editor-back:hover {
  color: var(--accent);
}

.editor-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding-top: 0.35rem;
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* —— GTO Wizard–style strategy tree —— */
.gto-editor .editor-header h1 {
  margin-bottom: 0;
}

.gto-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.gto-pos-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(14, 14, 14, 0.92));
}

.gto-pos {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.35rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

.gto-pos:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.gto-pos.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.gto-tree-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(18, 18, 18, 0.88);
}

.gto-roots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gto-root {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.gto-root:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.gto-root.in-path {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.gto-root.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.gto-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  min-width: 0;
  flex: 1;
}

.gto-crumb {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.gto-crumb .is-current {
  color: var(--ink);
}

.gto-crumb-sep {
  margin: 0 0.15rem;
  opacity: 0.55;
}

.gto-crumb-back {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0.45rem;
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
  font-weight: 700;
}

.gto-crumb-back:hover {
  border-color: var(--accent);
}

.gto-node-title {
  margin-left: 0.55rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--accent);
}

.gto-villain-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.gto-villain-label,
.gto-actions-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.gto-villain {
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.gto-villain.has-chart {
  border-style: solid;
  color: var(--ink);
}

.gto-villain:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.gto-villain.active {
  background: var(--accent);
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent-ink);
}

.gto-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(12, 12, 12, 0.75);
}

.gto-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.55rem;
  cursor: pointer;
  min-width: 4.5rem;
}

.gto-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.gto-action.raise:not(:disabled) {
  border-color: rgba(232, 93, 74, 0.55);
  color: #ffb4a8;
}

.gto-action.raise:not(:disabled):hover {
  background: rgba(232, 93, 74, 0.18);
  border-color: #e85d4a;
}

.gto-action-hint {
  font-size: 0.78rem;
  margin-left: 0.35rem;
}

@media (max-width: 720px) {
  .gto-pos {
    padding: 0.55rem 0.2rem;
    font-size: 0.78rem;
  }

  .gto-tree-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.street-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(18, 18, 18, 0.85);
  margin-bottom: 1.25rem;
}

.street-tabs button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  cursor: pointer;
}

.street-tabs button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.editor-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.editor-sidebar {
  display: grid;
  gap: 0.85rem;
}

.editor-block {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(18, 18, 18, 0.88);
  padding: 1rem;
}

.editor-block h2 {
  margin: 0 0 0.75rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0.55rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--btn-transition);
}

.chip:hover {
  border-color: var(--muted);
}

.chip.chip-add {
  border-style: dashed;
  opacity: 0.85;
  font-size: 0.78rem;
}

.chip.chip-add:hover {
  opacity: 1;
  border-color: var(--accent);
}

.chip.active {
  background: rgba(136, 249, 145, 0.16);
  border-color: var(--accent);
  color: var(--accent);
}

.chip.brush.raise.active {
  background: rgba(255, 90, 90, 0.22);
  border-color: var(--raise);
  color: #ffb0b0;
}

.chip.brush.call.active {
  background: rgba(61, 214, 140, 0.2);
  border-color: var(--call);
  color: #9ef0c4;
}

.chip.brush.fold.active {
  background: rgba(91, 141, 239, 0.22);
  border-color: var(--fold);
  color: #b6cfff;
}

.editor-main {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(136, 249, 145, 0.05), transparent 60%),
    rgba(10, 10, 10, 0.95);
  padding: 1rem 1rem 0.75rem;
  overflow: auto;
}

.range-matrix {
  display: grid;
  grid-template-columns: 1.35rem repeat(13, minmax(0, 1fr));
  gap: 2px;
  user-select: none;
  min-width: 620px;
}

.range-matrix-row {
  display: contents;
}

.range-matrix-corner {
  width: 1.35rem;
}

.range-matrix-label {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: "Sora", sans-serif;
}

.range-matrix-cell {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  padding: 0;
  cursor: crosshair;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  background: #141820;
}

.range-matrix-cell .cell-bars {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.range-matrix-cell .bar {
  display: block;
  height: 100%;
  min-width: 0;
}

.range-matrix-cell .bar.raise {
  background: linear-gradient(180deg, #ff7b7b, var(--raise));
}

.range-matrix-cell .bar.call {
  background: linear-gradient(180deg, #5aefad, var(--call));
}

.range-matrix-cell .bar.fold {
  background: linear-gradient(180deg, #6a8fd8, #3a5288);
}

.range-matrix-cell .cell-code {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: clamp(0.42rem, 0.85vw, 0.6rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.range-matrix-cell .cell-pct {
  position: absolute;
  right: 2px;
  bottom: 1px;
  z-index: 1;
  pointer-events: none;
  font-size: clamp(0.38rem, 0.7vw, 0.52rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.02em;
}

.range-matrix-cell.selected {
  outline: 2px solid #fff;
  outline-offset: -1px;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.range-matrix-cell:hover:not(:disabled) {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: -1px;
  z-index: 1;
}

.range-matrix-cell:disabled {
  cursor: default;
  opacity: 0.7;
}

.range-matrix-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink);
}

.range-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.range-matrix-legend .lg {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
}

.range-matrix-legend .lg.raise {
  background: var(--raise);
}

.range-matrix-legend .lg.call {
  background: var(--call);
}

.range-matrix-legend .lg.fold {
  background: #5b8def;
}

.freq-brush {
  display: grid;
  gap: 0.75rem;
}

.freq-slider-row {
  display: grid;
  gap: 0.35rem;
}

.freq-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 650;
}

.freq-slider-head strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.freq-slider-head .act.raise,
.stats-bar-row .act.raise,
.inspector-fold + .act.raise {
  color: #ff9b9b;
}

.freq-slider-head .act.call,
.stats-bar-row .act.call {
  color: #7aefb5;
}

.stats-bar-row .act.fold {
  color: #9db8f0;
}

.freq-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.4rem;
  border-radius: 999px;
  background: #2a2a2a;
  outline: none;
}

.freq-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #111;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.freq-range.raise {
  background: linear-gradient(90deg, #3a1515, var(--raise));
}

.freq-range.call {
  background: linear-gradient(90deg, #123224, var(--call));
}

.freq-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.freq-preset {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  border-radius: 0.45rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.freq-preset:hover {
  border-color: var(--muted);
}

.freq-preset.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(136, 249, 145, 0.1);
}

.brush-preview {
  display: grid;
  gap: 0.4rem;
  padding: 0.65rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-soft);
}

.brush-preview-bars {
  display: flex;
  height: 0.85rem;
  border-radius: 0.3rem;
  overflow: hidden;
  background: #1a2233;
}

.brush-preview-bars i {
  display: block;
  height: 100%;
}

.brush-preview-bars i.raise {
  background: var(--raise);
}

.brush-preview-bars i.call {
  background: var(--call);
}

.brush-preview-bars i.fold {
  background: #5b8def;
}

.brush-preview-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hand-inspector .hand-code {
  color: var(--accent);
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
}

.inspector-fold {
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 650;
}

.inspector-fold strong {
  color: #9db8f0;
}

.editor-stage .range-stats {
  position: sticky;
  top: 1rem;
}

.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font-weight: 700;
  cursor: not-allowed;
  background: #2a2a2a;
  color: #7a7a7a;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.save-btn-ready {
  cursor: pointer;
  border-color: transparent;
  background: linear-gradient(180deg, #9cff9f 0%, var(--accent) 100%);
  color: var(--accent-ink);
  box-shadow: 0 0 28px var(--glow);
}

.save-btn-ready:hover:not(:disabled) {
  background: var(--accent-strong);
}

.save-btn:disabled:not(.save-btn-ready) {
  opacity: 1;
}

.save-btn-ready:disabled {
  opacity: 0.7;
  cursor: wait;
}

.range-stats .stats-play {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}

.range-stats .stats-play span {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.85rem;
}

.range-stats .stats-play strong {
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.stats-bars {
  display: grid;
  gap: 0.55rem;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.2rem;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.stats-bar-row em {
  font-style: normal;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stats-track {
  height: 0.45rem;
  border-radius: 999px;
  background: #222;
  overflow: hidden;
}

.stats-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.stats-track i.raise {
  background: var(--raise);
}

.stats-track i.call {
  background: var(--call);
}

.stats-track i.fold {
  background: #5b8def;
}

.postflop-placeholder h2 {
  font-family: "Sora", sans-serif;
}

/* ── Macro Postflop Matrix ──────────────────────────────────── */
.mpm {
  --mpm-bg: #0b0d10;
  --mpm-panel: #111418;
  --mpm-line: rgba(255, 255, 255, 0.05);
  --mpm-line-strong: rgba(255, 255, 255, 0.1);
  --mpm-text: #f3f4f6;
  --mpm-muted: #8b929e;
  --mpm-accent: #7dd3a0;
  --mpm-fold: #f07178;
  --mpm-check: #9aa3b2;
  --mpm-call: #6ea8fe;
  --mpm-bet: #5fd68a;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--mpm-text);
  background:
    radial-gradient(1000px 420px at 8% -15%, rgba(125, 211, 160, 0.07), transparent 55%),
    var(--mpm-bg);
  border: 1px solid var(--mpm-line);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem 1.35rem;
  width: 100%;
  max-width: 78rem;
  box-sizing: border-box;
}

.mpm *,
.mpm *::before,
.mpm *::after {
  box-sizing: border-box;
}

.mpm-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.mpm-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mpm-accent);
}

.mpm-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.mpm-lead {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--mpm-muted);
  line-height: 1.4;
  max-width: 36rem;
}

.mpm-context {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--mpm-muted);
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--mpm-line);
  border-radius: 0.5rem;
  background: var(--mpm-panel);
}

.mpm-context strong {
  color: var(--mpm-text);
}

.mpm-context em {
  font-style: normal;
  color: var(--mpm-accent);
}

.mpm-toggles {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mpm-toggle-block {
  display: grid;
  gap: 0.4rem;
}

.mpm-toggle-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mpm-muted);
}

.mpm-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mpm-toggle {
  border: 1px solid var(--mpm-line);
  background: var(--mpm-panel);
  color: var(--mpm-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.mpm-toggle.is-active {
  color: var(--mpm-text);
  border-color: var(--mpm-accent);
  background: rgba(125, 211, 160, 0.1);
}

.mpm-table-wrap {
  overflow: auto;
  border: 1px solid var(--mpm-line);
  border-radius: 0.75rem;
  background: #080a0d;
}

.mpm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 52rem;
}

.mpm-table th,
.mpm-table td {
  border: 1px solid var(--mpm-line);
  vertical-align: top;
}

.mpm-table thead th {
  padding: 0.75rem 0.7rem;
  background: #0e1116;
  text-align: left;
}

.mpm-table thead th strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--mpm-text);
  margin-bottom: 0.25rem;
}

.mpm-table thead th em,
.mpm-table tbody th em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--mpm-muted);
  font-weight: 500;
}

.mpm-corner span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mpm-muted);
}

.mpm-table tbody th {
  width: 11.5rem;
  padding: 0.75rem 0.7rem;
  background: #0e1116;
  text-align: left;
}

.mpm-table tbody th strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
  margin-bottom: 0.25rem;
}

.mpm-table td {
  padding: 0.55rem;
  background: var(--mpm-panel);
  min-width: 12.5rem;
}

.mpm-cell {
  display: grid;
  gap: 0.4rem;
  min-height: 4.6rem;
}

.mpm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mpm-act {
  border: 1px solid var(--mpm-line);
  background: #0c0f14;
  color: var(--mpm-muted);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.35rem 0.45rem;
  border-radius: 0.35rem;
  cursor: pointer;
  min-width: 2.8rem;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.mpm-act.tone-fold.is-active {
  color: #ffd0d3;
  background: rgba(240, 113, 120, 0.16);
  border-color: var(--mpm-fold);
}

.mpm-act.tone-check.is-active {
  color: #e5e7eb;
  background: rgba(154, 163, 178, 0.16);
  border-color: var(--mpm-check);
}

.mpm-act.tone-call.is-active {
  color: #d7e7ff;
  background: rgba(110, 168, 254, 0.16);
  border-color: var(--mpm-call);
}

.mpm-act.tone-bet.is-active {
  color: #d8ffe6;
  background: rgba(95, 214, 138, 0.16);
  border-color: var(--mpm-bet);
}

.mpm-sizing {
  min-height: 1.85rem;
  display: flex;
  align-items: center;
}

.mpm-sizing select {
  appearance: none;
  border: 1px solid rgba(95, 214, 138, 0.35);
  background: rgba(95, 214, 138, 0.08);
  color: #d8ffe6;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 1.4rem 0.3rem 0.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #7dd3a0 50%),
    linear-gradient(135deg, #7dd3a0 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.mpm-sizing-placeholder {
  font-size: 0.68rem;
  color: rgba(139, 146, 158, 0.45);
}

.mpm-json {
  margin-top: 1rem;
  border: 1px solid var(--mpm-line);
  border-radius: 0.75rem;
  background: #080a0d;
  overflow: hidden;
}

.mpm-json-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--mpm-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}

.mpm-json-toggle em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mpm-muted);
}

.mpm-json-body {
  margin: 0;
  padding: 0 0.9rem 0.9rem;
  max-height: 20rem;
  overflow: auto;
  font-family: "Inter", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #c7ceda;
  border-top: 1px solid var(--mpm-line);
  white-space: pre;
}

@media (max-width: 720px) {
  .mpm {
    padding: 1rem;
  }

  .mpm-toggle {
    font-size: 0.74rem;
    padding: 0.5rem 0.65rem;
  }
}

/* ── Post-Flop Rule Builder ─────────────────────────────────── */
.pfrb {
  --pfrb-bg: #0f1115;
  --pfrb-panel: #14171d;
  --pfrb-panel-2: #1a1e26;
  --pfrb-line: rgba(255, 255, 255, 0.06);
  --pfrb-line-strong: rgba(255, 255, 255, 0.12);
  --pfrb-text: #f3f4f6;
  --pfrb-muted: #8b929e;
  --pfrb-accent: #7dd3a0;
  --pfrb-fold: #f07178;
  --pfrb-check: #9aa3b2;
  --pfrb-call: #6ea8fe;
  --pfrb-bet: #5fd68a;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--pfrb-text);
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(125, 211, 160, 0.07), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(110, 168, 254, 0.05), transparent 50%),
    var(--pfrb-bg);
  border: 1px solid var(--pfrb-line);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem 1.4rem;
  max-width: 72rem;
  box-sizing: border-box;
}

.pfrb *,
.pfrb *::before,
.pfrb *::after {
  box-sizing: border-box;
}

.pfrb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  min-height: 4.5rem;
}

.pfrb-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pfrb-accent);
}

.pfrb-header h2 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--pfrb-text);
}

.pfrb-summary {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--pfrb-muted);
  line-height: 1.4;
  max-width: 36rem;
}

.pfrb-reset {
  flex-shrink: 0;
  margin-top: 0.15rem;
  border: 1px solid var(--pfrb-line-strong);
  background: transparent;
  color: var(--pfrb-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  cursor: pointer;
}

.pfrb-reset:hover {
  color: var(--pfrb-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.pfrb-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.pfrb-branches {
  border: 1px solid var(--pfrb-line);
  border-radius: 0.85rem;
  background: var(--pfrb-panel);
  padding: 0.75rem;
  position: sticky;
  top: 0.5rem;
}

.pfrb-branches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.pfrb-branches-head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pfrb-muted);
}

.pfrb-branches-head span {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--pfrb-accent);
}

.pfrb-branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-height: 28rem;
  overflow: auto;
}

.pfrb-branch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem;
  border: 1px solid var(--pfrb-line);
  border-radius: 0.55rem;
  background: var(--pfrb-panel-2);
  padding: 0.35rem;
}

.pfrb-branch.is-active {
  border-color: rgba(125, 211, 160, 0.45);
  background: rgba(125, 211, 160, 0.08);
}

.pfrb-branch-main {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  min-width: 0;
}

.pfrb-branch-main em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 750;
  color: var(--pfrb-muted);
}

.pfrb-branch-main strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pfrb-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfrb-branch-main span {
  font-size: 0.68rem;
  color: var(--pfrb-muted);
  line-height: 1.3;
}

.pfrb-branch-rename {
  width: 100%;
  border: 1px solid var(--pfrb-line-strong);
  border-radius: 0.35rem;
  background: #0c0e12;
  color: var(--pfrb-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.4rem;
}

.pfrb-branch-actions {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pfrb-branch-actions button {
  border: 0;
  background: transparent;
  color: var(--pfrb-muted);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  border-radius: 0.3rem;
  cursor: pointer;
}

.pfrb-branch-actions button:hover:not(:disabled) {
  color: var(--pfrb-text);
  background: rgba(255, 255, 255, 0.06);
}

.pfrb-branch-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pfrb-editor {
  min-width: 0;
}

.pfrb-active-line {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--pfrb-muted);
}

.pfrb-section {
  background: var(--pfrb-panel);
  border: 1px solid var(--pfrb-line);
  border-radius: 0.85rem;
  padding: 1rem 1.05rem 1.1rem;
  margin-bottom: 0.85rem;
}

.pfrb-section-head {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.95rem;
  min-height: 2.6rem;
}

.pfrb-step {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  border: 1px solid var(--pfrb-line-strong);
  background: var(--pfrb-panel-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pfrb-accent);
}

.pfrb-section-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pfrb-text);
}

.pfrb-section-head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--pfrb-muted);
  line-height: 1.35;
}

.pfrb-situation-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  gap: 0.9rem 1rem;
}

.pfrb-field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  min-height: 4.25rem;
}

.pfrb-field-span {
  grid-column: 1 / -1;
  min-height: 4.75rem;
}

.pfrb-field label,
.pfrb-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pfrb-muted);
}

.pfrb-select-wrap {
  position: relative;
}

.pfrb-select-wrap select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--pfrb-line-strong);
  background: var(--pfrb-panel-2);
  color: var(--pfrb-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 2rem 0.55rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.pfrb-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--pfrb-muted);
  border-bottom: 1.5px solid var(--pfrb-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.pfrb-toggle-row,
.pfrb-badge-row,
.pfrb-action-group,
.pfrb-sizing-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pfrb-toggle,
.pfrb-badge,
.pfrb-act,
.pfrb-size {
  border: 1px solid var(--pfrb-line);
  background: var(--pfrb-panel-2);
  color: var(--pfrb-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.pfrb-toggle.is-active,
.pfrb-badge.is-active {
  color: var(--pfrb-text);
  background: rgba(125, 211, 160, 0.1);
  border-color: var(--pfrb-accent);
}

.pfrb-badge {
  font-size: 0.74rem;
}

.pfrb-hand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.pfrb-hand-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 13rem) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--pfrb-line);
  border-radius: 0.65rem;
  background: var(--pfrb-panel-2);
  /* Always reserve sizing slot so BET toggle does not reflow the page */
  min-height: 6.85rem;
}

.pfrb-hand-meta {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.15rem;
}

.pfrb-hand-meta strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--pfrb-text);
}

.pfrb-hand-meta span {
  font-size: 0.72rem;
  color: var(--pfrb-muted);
  line-height: 1.3;
}

.pfrb-hand-controls {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.pfrb-act {
  min-width: 4.6rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pfrb-act.tone-fold.is-active {
  color: #ffd0d3;
  background: rgba(240, 113, 120, 0.14);
  border-color: var(--pfrb-fold);
}

.pfrb-act.tone-check.is-active {
  color: #e5e7eb;
  background: rgba(154, 163, 178, 0.14);
  border-color: var(--pfrb-check);
}

.pfrb-act.tone-call.is-active {
  color: #d7e7ff;
  background: rgba(110, 168, 254, 0.14);
  border-color: var(--pfrb-call);
}

.pfrb-act.tone-bet.is-active {
  color: #d8ffe6;
  background: rgba(95, 214, 138, 0.14);
  border-color: var(--pfrb-bet);
}

.pfrb-sizing-slot {
  min-height: 2.35rem;
  overflow: hidden;
  opacity: 0.35;
  pointer-events: none;
}

.pfrb-sizing-slot.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pfrb-sizing-slot:not(.is-open)::before {
  content: "Р’С‹Р±РµСЂРё В«Р‘РµС‚ / СЂРµР№Р·В», С‡С‚РѕР±С‹ Р·Р°РґР°С‚СЊ СЃР°Р№Р·РёРЅРі";
  display: block;
  font-size: 0.7rem;
  color: var(--pfrb-muted);
  padding: 0.55rem 0.15rem 0;
}

.pfrb-sizing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(95, 214, 138, 0.22);
  background: rgba(95, 214, 138, 0.06);
}

.pfrb-sizing-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pfrb-bet);
}

.pfrb-size {
  font-size: 0.7rem;
  padding: 0.32rem 0.55rem;
}

.pfrb-size.is-active {
  color: #d8ffe6;
  background: rgba(95, 214, 138, 0.18);
  border-color: var(--pfrb-bet);
}

.pfrb-json {
  border: 1px solid var(--pfrb-line);
  border-radius: 0.75rem;
  background: #0c0e12;
  overflow: hidden;
}

.pfrb-json-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--pfrb-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}

.pfrb-json-toggle em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pfrb-muted);
}

.pfrb-json-body {
  margin: 0;
  padding: 0 0.9rem 0.9rem;
  max-height: 18rem;
  overflow: auto;
  font-family: "Inter", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #c7ceda;
  border-top: 1px solid var(--pfrb-line);
  white-space: pre;
}

@media (max-width: 900px) {
  .pfrb-layout {
    grid-template-columns: 1fr;
  }

  .pfrb-branches {
    position: static;
  }

  .pfrb-branch-list {
    max-height: 12rem;
  }
}

@media (max-width: 720px) {
  .pfrb {
    padding: 1rem;
  }

  .pfrb-header {
    flex-direction: column;
  }

  .pfrb-situation-grid {
    grid-template-columns: 1fr;
  }

  .pfrb-hand-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.75rem;
    padding-top: 0.5rem;
  }

  .hero-title {
    max-width: none;
  }

  .hero-visual {
    min-height: 280px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
  }

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav-cta {
    margin-left: 0 !important;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-stage {
    grid-template-columns: 1fr;
  }

  .editor-stage .range-stats {
    position: static;
    max-width: 22rem;
  }

  .editor-header {
    flex-direction: column;
  }
}

body.confirm-open #root {
  filter: blur(8px);
  transition: filter 0.18s ease;
  pointer-events: none;
  user-select: none;
}

.confirm-root {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  animation: confirm-fade 0.16s ease both;
}

.confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 24.5rem);
  padding: 1.45rem 1.4rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 22, 22, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: confirm-pop 0.2s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.confirm-dialog-danger {
  border-color: rgba(255, 107, 107, 0.22);
}

.confirm-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  margin-bottom: 0.95rem;
  color: var(--danger);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.28);
}

.confirm-title {
  margin: 0 0 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.confirm-desc {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.confirm-desc .profile-delete-confirm {
  text-align: left;
}

.confirm-desc .profile-delete-confirm input {
  width: 100%;
  margin-top: 0.45rem;
  box-sizing: border-box;
}

.confirm-desc strong {
  color: var(--ink);
  font-weight: 650;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.confirm-btn {
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  padding: 0.55rem 0.95rem;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.confirm-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.confirm-btn-ghost {
  background: transparent;
  color: var(--ink);
}

.confirm-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--muted);
}

.confirm-btn-danger {
  background: linear-gradient(180deg, #ff8585 0%, var(--danger) 100%);
  border-color: transparent;
  color: #1a0505;
}

.confirm-btn-danger:hover:not(:disabled) {
  filter: brightness(1.06);
}

.confirm-btn-primary {
  background: linear-gradient(180deg, #9cff9f 0%, var(--accent) 100%);
  border-color: transparent;
  color: var(--accent-ink);
}

@keyframes confirm-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes confirm-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.career-header {
  display: block;
  margin-bottom: 0.85rem;
  width: 100%;
}

.career-header .lead {
  margin-bottom: 0;
}

.career-page {
  width: 100%;
}

.career-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(18, 18, 18, 0.92);
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
}

.career-tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 0.48rem 0.95rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition:
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.career-tabs button:hover:not(.active) {
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.05);
}

.career-tabs button.active {
  background-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(136, 249, 145, 0.18);
}

.career-tab-panel {
  min-width: 0;
}

.session-schedule {
  display: grid;
  gap: 0.9rem;
  max-width: 48rem;
}

.session-schedule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem 1rem;
}

.session-schedule-head h2 {
  margin: 0 0 0.15rem;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.session-schedule-head p {
  margin: 0;
  font-size: 0.78rem;
  max-width: 28rem;
}

.session-schedule-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(136, 249, 145, 0.3);
  background: rgba(136, 249, 145, 0.1);
  color: var(--ink);
  white-space: nowrap;
  align-self: center;
}

.schedule-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(136, 249, 145, 0.14);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(136, 249, 145, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 10%, rgba(47, 157, 106, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(22, 24, 22, 0.98), rgba(10, 11, 10, 0.98));
  animation: scheduleShellIn 0.45s ease both;
}

@keyframes scheduleShellIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.schedule-volume-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
}

.schedule-ring-wrap {
  position: relative;
  width: 7.25rem;
  height: 7.25rem;
  flex-shrink: 0;
}

.schedule-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.schedule-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}

.schedule-ring-value {
  fill: none;
  stroke: url(#schedRingGrad);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(136, 249, 145, 0.25));
}

.schedule-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.05rem;
  pointer-events: none;
}

.schedule-ring-label strong {
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.schedule-ring-label em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(136, 249, 145, 0.9);
  margin-top: -0.15rem;
}

.schedule-ring-label span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-volume-aside {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.schedule-volume-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.schedule-volume-title strong {
  font-size: 0.95rem;
  text-transform: capitalize;
  font-weight: 750;
  font-family: "Sora", sans-serif;
}

.schedule-volume-hint {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(136, 249, 145, 0.85);
  font-weight: 650;
}

.schedule-volume-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.schedule-vol-card {
  position: relative;
  display: grid;
  gap: 0.12rem;
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  min-width: 0;
  animation: scheduleCardIn 0.5s ease both;
}

.schedule-vol-card:nth-child(1) {
  animation-delay: 0.05s;
}
.schedule-vol-card:nth-child(2) {
  animation-delay: 0.12s;
}
.schedule-vol-card:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes scheduleCardIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.schedule-vol-card em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-vol-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.schedule-vol-card span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.schedule-vol-meter {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  border-radius: 0 2px 0 0;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.schedule-vol-card.is-plan .schedule-vol-meter {
  background: rgba(148, 163, 184, 0.65);
}

.schedule-vol-card.is-fact {
  border-color: rgba(136, 249, 145, 0.22);
  background: rgba(136, 249, 145, 0.06);
}

.schedule-vol-card.is-fact .schedule-vol-meter {
  background: linear-gradient(90deg, rgba(136, 249, 145, 0.4), #88f991);
}

.schedule-vol-card.is-left .schedule-vol-meter {
  background: rgba(253, 186, 116, 0.7);
}

.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.schedule-field select {
  width: auto;
  margin: 0;
  min-width: 4.5rem;
  padding: 0.32rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: #141816;
  color: #f2f5f3;
  font: inherit;
  font-weight: 700;
  color-scheme: dark;
}

.schedule-field select option,
.schedule-slot-chip select option {
  background: #141816;
  color: #f2f5f3;
}

.schedule-slots-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
}

.schedule-slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.3rem 0.2rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(136, 249, 145, 0.18);
  background: #121614;
}

.schedule-slot-chip em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--muted);
  margin-right: 0.1rem;
}

.schedule-slot-chip select {
  width: auto;
  margin: 0;
  padding: 0.25rem 0.2rem;
  border: none;
  border-radius: 0.3rem;
  background: #1a1f1c;
  color: #f2f5f3;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
}

.schedule-slot-chip > span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.schedule-slot-x {
  width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.schedule-slot-x:hover:not(:disabled) {
  color: #fdba74;
  background: rgba(253, 186, 116, 0.1);
}

.schedule-slot-x:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.schedule-add-btn {
  border: 1px solid rgba(136, 249, 145, 0.3);
  background: rgba(136, 249, 145, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.schedule-add-btn:hover:not(:disabled) {
  background: rgba(136, 249, 145, 0.18);
}

.schedule-add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.schedule-inline-muted {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.schedule-cal-block {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-cal-block h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 750;
}

.schedule-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.1rem;
}

.schedule-month-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.schedule-month-nav strong {
  font-size: 0.78rem;
  text-transform: capitalize;
  min-width: 8.5rem;
  text-align: center;
  font-weight: 700;
}

.schedule-month-nav button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.schedule-day-volume {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.4rem 0.35rem;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-day-volume-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
}

.schedule-day-volume-head h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.schedule-day-volume-head .muted {
  margin: 0;
  font-size: 0.62rem;
}

.schedule-day-volume-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 5.25rem;
}

.schedule-day-vol-bar {
  fill: rgba(255, 255, 255, 0.08);
}

.schedule-day-vol-bar.has-fact {
  fill: rgba(148, 163, 184, 0.75);
}

.schedule-day-vol-bar.is-on {
  fill: rgba(136, 249, 145, 0.4);
}

.schedule-day-vol-bar.has-fact.is-on {
  fill: #88f991;
}

.schedule-day-vol-tick {
  fill: rgba(148, 163, 184, 0.55);
  font-size: 6.5px;
  text-anchor: middle;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.schedule-day-vol-tick.is-hot {
  fill: rgba(230, 238, 245, 0.95);
  font-weight: 800;
}

.schedule-day-vol-count {
  fill: rgba(200, 210, 220, 0.95);
  font-size: 7px;
  text-anchor: middle;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.schedule-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.22rem;
  margin-bottom: 0.15rem;
}

.schedule-cal-weekdays span {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.22rem;
}

.schedule-cal-day {
  min-height: 2.2rem;
  display: grid;
  place-content: center;
  gap: 0.05rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0.15rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.schedule-cal-day:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  transform: translateY(-1px);
}

.schedule-cal-day strong {
  font-size: 0.8rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.schedule-cal-day em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1;
}

.schedule-cal-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.schedule-cal-day.has-fact em {
  color: rgba(136, 249, 145, 0.95);
}

.schedule-cal-day.is-on {
  color: var(--ink);
  border-color: rgba(136, 249, 145, 0.42);
  background: rgba(136, 249, 145, 0.16);
}

.schedule-cal-pad {
  min-height: 2.2rem;
}

@media (max-width: 720px) {
  .schedule-volume-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .schedule-volume-aside {
    width: 100%;
  }

  .schedule-volume-title {
    justify-content: center;
  }

  .schedule-volume-cards {
    grid-template-columns: 1fr;
  }

  .schedule-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-month-nav strong {
    min-width: 7rem;
  }
}

/* Legacy unused schedule classes */
.schedule-days,
.schedule-day,
.schedule-slots,
.schedule-duration,
.schedule-date-add,
.schedule-date-list,
.schedule-summary,
.schedule-summary-list,
.schedule-block-lead,
.schedule-hour-legend,
.schedule-hour-hint,
.schedule-hours-controls,
.schedule-hour-chart-compact,
.schedule-hour-grid,
.schedule-hour-col,
.schedule-volume-row,
.schedule-volume-metrics,
.schedule-volume-bar {
  display: none;
}

.session-schedule .bankroll-block {
  display: none;
}

.bankroll-panel {
  display: grid;
  gap: 1.1rem;
}

.bankroll-hero {
  border: 1px solid rgba(136, 249, 145, 0.25);
  border-radius: 1.1rem;
  padding: 1.25rem 1.35rem;
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(136, 249, 145, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(12, 12, 12, 0.98));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
}

.bankroll-hero-meta {
  font-size: 0.88rem;
}

.bankroll-balance {
  display: block;
  margin-top: 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.bankroll-balance em {
  font-style: normal;
  font-size: 1rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.bankroll-hint {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

.bankroll-block {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(18, 18, 18, 0.9);
  padding: 1.1rem 1.15rem;
}

.bankroll-block h2 {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.bankroll-block label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.bankroll-block input {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg);
  color: var(--ink);
}

.bankroll-block select {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.bankroll-block input:focus,
.bankroll-block select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.brm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.brm-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bankroll-block-lead {
  margin: 0 0 0.85rem;
}

.brm-controls {
  display: grid;
  gap: 0.95rem;
}

.brm-controls-row {
  display: grid;
  gap: 0.45rem;
}

.brm-controls-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.brm-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-soft);
}

.brm-seg-brm {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brm-seg button {
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--muted);
  border-radius: 0.65rem;
  padding: 0.65rem 0.5rem;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brm-seg button:hover:not(:disabled):not(.is-active) {
  color: rgba(245, 247, 250, 0.92);
  background-color: rgba(255, 255, 255, 0.08);
}

.brm-seg button.is-active {
  color: #0c1210;
  background-color: var(--accent);
  border-color: rgba(136, 249, 145, 0.4);
  box-shadow: 0 4px 16px rgba(136, 249, 145, 0.22);
}

.brm-seg button.is-active:hover:not(:disabled) {
  background-color: var(--accent-strong, #7aef8e);
  box-shadow: 0 6px 18px rgba(136, 249, 145, 0.28);
}

.brm-seg button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.brm-seg button.is-locked,
.brm-seg button.is-locked:hover {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--muted);
  background-color: rgba(0, 0, 0, 0.18);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.brm-mode-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.brm-mode-lock-icon {
  flex-shrink: 0;
  opacity: 0.8;
  color: var(--muted);
}

.brm-focus {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(136, 249, 145, 0.22);
  background:
    radial-gradient(ellipse 70% 80% at 8% 0%, rgba(136, 249, 145, 0.1), transparent 55%),
    rgba(14, 16, 14, 0.96);
}

.brm-focus-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.brm-focus-title {
  margin: 0.2rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brm-focus-bi {
  font-size: 0.82rem;
  font-weight: 700;
  color: #d4b56a;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 181, 106, 0.35);
  background: rgba(212, 181, 106, 0.08);
  white-space: nowrap;
}

.brm-focus-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 42rem;
}

.brm-focus-tip {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.brm-focus .brm-verdict {
  margin-top: 0.15rem;
}

.brm-focus .stake-advice {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.brm-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.brm-mode-chip {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brm-mode-chip strong {
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.brm-mode-chip span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.brm-mode-chip:hover:not(:disabled) {
  border-color: rgba(136, 249, 145, 0.35);
}

.brm-mode-chip.is-active {
  border-color: rgba(136, 249, 145, 0.5);
  background: rgba(136, 249, 145, 0.1);
}

.brm-active-desc {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.brm-active-desc strong {
  color: var(--ink);
}

.brm-verdict {
  border-radius: 1.05rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(136, 249, 145, 0.28);
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(136, 249, 145, 0.14), transparent 55%),
    rgba(16, 18, 16, 0.95);
  display: grid;
  gap: 0.55rem;
}

.brm-verdict-shot {
  border-color: rgba(212, 181, 106, 0.4);
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(212, 181, 106, 0.16), transparent 55%),
    rgba(18, 16, 12, 0.95);
}

.brm-verdict-warn {
  border-color: rgba(255, 140, 100, 0.4);
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(255, 120, 80, 0.14), transparent 55%),
    rgba(20, 14, 12, 0.95);
}

.brm-verdict-empty {
  border-color: var(--line);
  background: rgba(18, 18, 18, 0.9);
}

.brm-verdict-head {
  display: grid;
  gap: 0.35rem;
}

.brm-verdict-title {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.brm-verdict-detail {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.brm-verdict-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 0.35rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brm-verdict-stats div {
  display: grid;
  gap: 0.15rem;
}

.brm-verdict-stats dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.brm-verdict-stats dd {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.brm-verdict-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.brm-progress {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brm-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.brm-progress-head strong {
  font-family: "Sora", sans-serif;
  font-weight: 650;
}

.brm-progress-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.brm-progress.is-done .brm-progress-head span {
  color: rgba(136, 249, 145, 0.95);
}

.brm-progress-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.brm-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(136, 249, 145, 0.55), rgba(136, 249, 145, 0.95));
}

.brm-progress.is-done .brm-progress-track i {
  background: linear-gradient(90deg, rgba(212, 181, 106, 0.55), rgba(212, 181, 106, 0.95));
}

.brm-progress-meta {
  margin: 0;
  font-size: 0.78rem;
}

.brm-goal select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
}

.brm-goal select:focus {
  outline: none;
  border-color: rgba(136, 249, 145, 0.45);
}

.brm-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  padding: 0.85rem 0.8rem;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  min-height: 8.5rem;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brm-card:hover:not(:disabled) {
  border-color: var(--muted);
}

.brm-card.active {
  border-color: var(--accent);
  background: rgba(136, 249, 145, 0.1);
}

.brm-card strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.brm-card > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.brm-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.brm-card .brm-tip {
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 650;
  color: #9db8f0;
  line-height: 1.35;
}

.bankroll-desc {
  margin: 0.55rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stake-advice {
  border: 1px solid rgba(91, 141, 239, 0.28);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(91, 141, 239, 0.12), transparent 55%),
    rgba(16, 18, 24, 0.95);
}

.stake-advice.compact {
  padding: 0.85rem 1rem;
}

.stake-advice-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.stake-advice-head strong {
  display: block;
  margin-top: 0.2rem;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.stake-advice-head .muted {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
}

.stake-tip {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.stake-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.stake-chip {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  min-width: 7.5rem;
  display: grid;
  gap: 0.15rem;
  background: rgba(0, 0, 0, 0.28);
}

.stake-chip strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.stake-chip span {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.stake-chip em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}

.stake-chip.role-primary {
  border-color: rgba(136, 249, 145, 0.45);
  background: rgba(136, 249, 145, 0.08);
}

.stake-chip.role-primary span {
  color: var(--accent);
}

.stake-chip.role-primary.shortfall {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.stake-chip.role-primary.shortfall span {
  color: #fbbf24;
}

.stake-chip.role-soft span {
  color: #9db8f0;
}

.stake-chip.role-stretch {
  border-color: rgba(255, 107, 107, 0.35);
}

.stake-chip.role-stretch span {
  color: #ff9b9b;
}

.stake-fit {
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  max-width: 18rem;
  line-height: 1.35;
}

.stake-fit.ok,
.stake-fit.soft {
  color: #7aefb5;
  border-color: rgba(122, 239, 181, 0.35);
  background: rgba(61, 214, 140, 0.08);
}

.stake-fit.stretch,
.stake-fit.high {
  color: #ff9b9b;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 90, 90, 0.08);
}

.stake-fit.low {
  color: #9db8f0;
  border-color: rgba(91, 141, 239, 0.35);
  background: rgba(91, 141, 239, 0.08);
}

.bankroll-grid-2 {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}

.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-height: 22rem;
  overflow: auto;
}

.ledger-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
}

.ledger-list strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.ledger-list .muted {
  font-size: 0.75rem;
}

.ledger-amounts {
  text-align: right;
  display: grid;
  gap: 0.15rem;
  font-weight: 750;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.ledger-amounts em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.ledger-amounts em.plus {
  color: #3ecf8e;
}

.ledger-amounts em.minus {
  color: #f07178;
}

@media (max-width: 1100px) {
  .brm-grid,
  .brm-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brm-mode-switch {
    grid-template-columns: 1fr;
  }

  .brm-seg,
  .brm-seg-brm {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .brm-grid,
  .brm-grid-4 {
    grid-template-columns: 1fr;
  }

  .brm-seg,
  .brm-seg-brm {
    grid-template-columns: 1fr;
  }

  .bankroll-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Strategy analysis calc progress */
.analysis-calc {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(136, 249, 145, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.28);
  animation: analysis-calc-in 0.35s ease both;
}

.analysis-calc--compact {
  padding: 0.95rem 1rem 0.85rem;
}

@keyframes analysis-calc-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.analysis-calc__head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.analysis-calc__pulse {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(136, 249, 145, 0.45);
  animation: analysis-calc-pulse 1.4s ease-out infinite;
  flex-shrink: 0;
}

@keyframes analysis-calc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(136, 249, 145, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(136, 249, 145, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(136, 249, 145, 0);
  }
}

.analysis-calc__titles {
  display: grid;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.analysis-calc__titles strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.analysis-calc__phase {
  font-size: 0.82rem;
  color: var(--muted);
}

.analysis-calc__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.analysis-calc__steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.analysis-calc__steps li.is-active {
  color: var(--ink);
}

.analysis-calc__steps li.is-done {
  color: rgba(136, 249, 145, 0.85);
}

.analysis-calc__step-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}

.analysis-calc__steps li.is-active .analysis-calc__step-mark {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(136, 249, 145, 0.4);
}

.analysis-calc__steps li.is-done .analysis-calc__step-mark {
  border-color: rgba(136, 249, 145, 0.7);
  background: rgba(136, 249, 145, 0.7);
}

.analysis-calc__bar {
  position: relative;
  padding-top: 1.35rem;
}

.analysis-calc__pct {
  position: absolute;
  top: 0;
  z-index: 1;
  transform: translateX(-50%);
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  text-shadow: 0 0 12px rgba(136, 249, 145, 0.35);
}

.analysis-calc__pct::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 0.35rem;
  background: rgba(136, 249, 145, 0.55);
  transform: translateX(-50%);
}

.analysis-calc__track {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-calc__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3dd68c 0%, var(--accent) 55%, #5b8def 100%);
  box-shadow: 0 0 14px rgba(136, 249, 145, 0.35);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.analysis-calc__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: analysis-calc-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes analysis-calc-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -40% 0;
  }
}

.analysis-calc__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.analysis-calc__meta em {
  font-style: normal;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 0.2rem;
}

.analysis-calc__speed em {
  color: var(--accent);
}

/* Background analysis toast (survives tab switches) */
.analysis-job-banner {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--panel) 92%, #000);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.analysis-job-banner.is-running {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-soft));
}

.analysis-job-banner.is-done {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line-soft));
}

.analysis-job-banner.is-error {
  border-color: color-mix(in srgb, #c44 55%, var(--line-soft));
}

.analysis-job-banner__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.analysis-job-banner__body strong {
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.analysis-job-banner__body span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.analysis-job-banner__link {
  margin-top: 0.15rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  width: fit-content;
}

.analysis-job-banner__link:hover {
  text-decoration: underline;
}

.analysis-job-banner__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
}

.analysis-job-banner__close:hover {
  color: var(--ink);
}

.analysis-bg-wait {
  margin-top: 1.25rem;
  animation: none;
}

.analysis-bg-wait-banner {
  margin-bottom: 0.85rem;
}

.analysis-bg-wait-banner .analysis-bg-wait {
  margin-top: 0;
}

.analysis-bg-wait--compact {
  padding: 0.85rem 1rem 0.75rem;
}

.analysis-bg-wait--compact .analysis-calc__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.analysis-bg-wait__kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.analysis-bg-wait h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.analysis-bg-wait__step {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.analysis-bg-wait__pct {
  font-style: normal;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.analysis-import-progress {
  margin-top: 1.25rem;
  padding: 1.2rem 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.analysis-import-progress__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.analysis-import-progress__head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.analysis-import-progress__hands {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.analysis-import-progress__track {
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.analysis-import-progress__fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.analysis-import-progress__step {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.analysis-import-progress.is-done {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-soft));
}

.analysis-import-progress.is-error {
  border-color: color-mix(in srgb, #c44 50%, var(--line-soft));
}

/* Strategy analysis (H2N-style HUD) */
.analysis-panel {
  display: grid;
  gap: 1.25rem;
}

.analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
  width: fit-content;
  max-width: 100%;
}

.analysis-tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0.65rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.01em;
}

.analysis-tabs button:hover {
  color: var(--ink);
}

.analysis-tabs button.active {
  color: var(--ink);
  background: rgba(136, 249, 145, 0.1);
  border-color: rgba(136, 249, 145, 0.28);
}

.analysis-tab-pane {
  display: grid;
  gap: 1.5rem;
}

.analysis-subhead {
  margin: 0 0 0.65rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.preflop-open-detail {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
}

.preflop-open-detail .analysis-chart-hint {
  margin-top: 0;
}

.preflop-open-detail .analysis-kpi em .neg {
  color: var(--raise);
  font-weight: 750;
}

.strategy-dev-kpis {
  grid-template-columns: repeat(2, minmax(0, 12rem));
}

.preflop-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.25rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-soft);
}

.preflop-subtabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.preflop-subtabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.preflop-subtabs button.active {
  color: #04140f;
  background: #34d399;
}

.rec-panel {
  display: grid;
  gap: 1rem;
}

.rec-head h2 {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.rec-head .muted {
  margin: 0;
  font-size: 0.9rem;
}

.rec-head strong {
  color: var(--accent);
}

.rec-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
}

.rec-score-badge {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 0.15rem;
  row-gap: 0.1rem;
  align-items: end;
  padding: 0.55rem 0.8rem 0.5rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.08);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.rec-score-badge:hover {
  background: rgba(62, 207, 142, 0.14);
}

.rec-score-num {
  grid-column: 1;
  grid-row: 1;
  font-family: "Sora", sans-serif;
  font-size: 1.65rem;
  font-weight: 750;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.rec-score-of {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 0.15rem;
}

.rec-score-badge em {
  grid-column: 1 / -1;
  grid-row: 2;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.rec-grade-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  margin: 0.5rem 0 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(62, 207, 142, 0.22);
  background: rgba(62, 207, 142, 0.05);
}

@media (max-width: 640px) {
  .rec-grade-hero {
    grid-template-columns: 1fr;
  }
}

.rec-grade-ring {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 3px solid rgba(62, 207, 142, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

.rec-grade-ring strong {
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.rec-grade-ring span {
  font-size: 0.72rem;
  color: var(--muted);
}

.rec-grade-meta h4 {
  margin: 0 0 0.4rem;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.rec-grade-meta p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(210, 218, 214, 0.9);
}

.rec-grade-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.rec-grade-split b {
  color: rgba(230, 236, 232, 0.95);
  font-weight: 700;
}

.rec-focus {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 180, 80, 0.25);
  background: rgba(255, 160, 60, 0.06);
}

.rec-focus h4 {
  margin: 0 0 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.rec-focus ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.rec-focus li {
  font-size: 0.88rem;
  line-height: 1.45;
}

.rec-hud-title {
  margin: 0.25rem 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.rec-hud-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.rec-hud-card {
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.4rem;
}

.rec-hud-card.status-low,
.rec-hud-card.status-high {
  border-color: rgba(255, 140, 80, 0.3);
  background: rgba(255, 120, 50, 0.05);
}

.rec-hud-card.status-ok {
  border-color: rgba(62, 207, 142, 0.22);
}

.rec-hud-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.rec-hud-top strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.rec-hud-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
}

.rec-hud-status.status-ok {
  color: var(--accent);
  border-color: rgba(62, 207, 142, 0.35);
}

.rec-hud-status.status-low,
.rec-hud-status.status-high {
  color: #ffb078;
  border-color: rgba(255, 160, 80, 0.35);
}

.rec-hud-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.rec-hud-value {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.rec-hud-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(210, 218, 214, 0.88);
}

.rec-loss {
  color: #ff7a7a !important;
}

.rec-section h3 {
  margin: 0.5rem 0 0.4rem;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.rec-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.rec-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px dashed var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.rec-card {
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 0.75rem;
}

.rec-list-damage .rec-card {
  border-color: rgba(255, 90, 90, 0.3);
  background: rgba(255, 70, 70, 0.045);
}

.rec-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.rec-card-title {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.rec-card-title strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.rec-card-id {
  font-size: 0.78rem;
  color: var(--muted);
}

.rec-open-btn {
  flex-shrink: 0;
  border: 1px solid rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
  color: var(--accent);
  border-radius: 0.55rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.rec-open-btn:hover {
  background: rgba(62, 207, 142, 0.18);
}

.rec-hand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.45rem 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.rec-hand-strip > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.rec-hand-strip em {
  font-style: normal;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.rec-hand-strip strong {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.rec-hand-strip span {
  font-size: 0.72rem;
  color: var(--muted);
}

.rec-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.rec-act {
  font-size: 0.82rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.45rem;
}

.rec-act-bad {
  background: rgba(255, 80, 80, 0.12);
  color: #ff9a9a;
}

.rec-act-good {
  background: rgba(62, 207, 142, 0.12);
  color: var(--accent);
}

.rec-act-arrow {
  color: var(--muted);
  font-size: 0.9rem;
}

.rec-math-pill {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

.rec-analysis {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(210, 218, 214, 0.9);
}

.rec-example {
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border-left: 3px solid var(--accent);
  background: rgba(62, 207, 142, 0.07);
}

.rec-example em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.rec-example p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rec-plan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.rec-plan li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(62, 207, 142, 0.22);
  background: rgba(62, 207, 142, 0.05);
}

.rec-plan-num {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.18);
  color: var(--accent);
  font-weight: 750;
  font-size: 0.85rem;
}

.rec-plan p {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.leak-panel {
  display: grid;
  gap: 1.25rem;
}

.leak-hero {
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 90, 90, 0.22);
  background:
    radial-gradient(ellipse 80% 80% at 10% 0%, rgba(255, 70, 70, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(28, 18, 20, 0.95), rgba(12, 12, 14, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.leak-hero-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 160, 160, 0.7);
}

.leak-hero-value {
  margin: 0 0 0.65rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: rgba(230, 236, 232, 0.9);
}

.leak-hero-value.is-neg {
  color: #ff7a7a;
  text-shadow: 0 0 28px rgba(255, 70, 70, 0.28);
}

.leak-hero-note,
.leak-hero-meta {
  margin: 0;
  max-width: 46rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.leak-hero-meta {
  margin-top: 0.55rem;
  color: rgba(255, 170, 170, 0.65);
}

.leak-block h3 {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.leak-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.leak-insight {
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.55rem;
}

.leak-insight.is-leak {
  border-color: rgba(255, 90, 90, 0.35);
  background: rgba(255, 70, 70, 0.05);
}

.leak-insight.is-warn {
  border-color: rgba(240, 180, 70, 0.35);
  background: rgba(240, 180, 70, 0.05);
}

.leak-insight header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.leak-insight header strong {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.leak-insight header span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
}

.leak-insight.is-leak header span {
  color: #ff8a8a;
}

.leak-insight.is-warn header span {
  color: #f0be50;
}

.leak-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.leak-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(62, 207, 142, 0.45), var(--accent));
}

.leak-insight.is-leak .leak-bar i {
  background: linear-gradient(90deg, rgba(255, 90, 90, 0.4), #ff6b6b);
}

.leak-insight p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.leak-heat-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.leak-heat-head h3 {
  margin: 0;
}

.leak-heat-head .muted {
  margin: 0;
  font-size: 0.82rem;
}

.leak-heat {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 2px;
  width: min(100%, 36rem);
  padding: 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.85);
}

.leak-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 3px;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(200, 210, 205, 0.35);
  font-size: clamp(0.45rem, 1.1vw, 0.58rem);
  font-weight: 650;
  cursor: default;
  display: grid;
  place-items: center;
}

.leak-cell.has-err {
  color: rgba(255, 235, 230, 0.92);
  cursor: help;
}

.leak-cell:hover,
.leak-cell:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 1;
}

@media (max-width: 960px) {
  .leak-insights {
    grid-template-columns: 1fr;
  }

  .leak-heat {
    width: 100%;
  }
}

.preflop-errors-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.preflop-errors-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preflop-filter-clear {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 0.45rem;
  cursor: pointer;
}

.preflop-errors-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.preflop-errors-layout--focus {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
  .preflop-errors-layout {
    grid-template-columns: 1fr;
  }
}

.preflop-chart-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(32rem, 70vh);
}

.preflop-chart-list .analysis-subhead {
  flex-shrink: 0;
}

.branch-list-scroll-hint {
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
}

.preflop-chart-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  /* ~10 rows visible, then scroll */
  max-height: calc(10 * 2.7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.preflop-chart-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
  color: #e5e7eb;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.preflop-chart-list button.is-active {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(239, 68, 68, 0.12);
  color: #fff;
}

.preflop-chart-list-flat .branch-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.15rem;
  align-items: stretch;
  gap: 0.4rem;
  min-height: 2.35rem;
}

.preflop-chart-list-flat .branch-list-main {
  min-width: 0;
  height: 100%;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.82);
}

.preflop-chart-list-flat .branch-list-main:hover:not(:disabled) {
  border-color: rgba(226, 232, 240, 0.35);
  background: rgba(148, 163, 184, 0.14);
  color: #f8fafc;
}

.preflop-chart-list-flat .branch-list-main.is-active,
.preflop-chart-list-flat .branch-list-main.is-active:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.preflop-chart-list-flat .branch-list-main.is-active .err-chart-matchup {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.95);
}

.preflop-chart-list-flat .branch-list-plus,
.preflop-chart-list-flat .branch-list-plus-spacer {
  width: 2.15rem;
  height: 100%;
  min-height: 2.35rem;
  border-radius: 0.5rem;
}

.preflop-chart-list-flat .branch-list-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.preflop-chart-list-flat .branch-list-plus:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.7);
}

.preflop-chart-list-flat .branch-list-plus:disabled {
  opacity: 0.55;
  cursor: wait;
}

.preflop-chart-list-flat .branch-list-plus-spacer {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.branch-missing-tag {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(148, 163, 184, 0.9);
}

.preflop-chart-list button em.err-count,
.err-count {
  font-style: normal;
  font-weight: 800;
  color: #f87171;
  flex-shrink: 0;
}

.err-count--split {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  font-variant-numeric: tabular-nums;
}

.err-count-errors {
  color: #f87171;
}

.err-count-sep {
  color: rgba(148, 163, 184, 0.55);
  font-weight: 650;
}

.err-count-total {
  color: #fff;
  font-weight: 750;
}

.preflop-chart-list-flat .branch-list-main .err-chart-matchup {
  color: rgba(203, 213, 225, 0.88);
}

.preflop-chart-list button:not(.is-active) .err-chart-matchup {
  color: rgba(203, 213, 225, 0.88);
}

.preflop-chart-list-flat .branch-list-main.is-active .err-count-total {
  color: #fff;
}

.preflop-chart-list button .pot-tag {
  font-style: normal;
}

.err-chart-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.err-chart-tags--inline {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.preflop-chart-list-flat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: calc(10 * 2.7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.preflop-chart-list-flat button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
}

.err-chart-matchup {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.35rem;
  padding: 0.18rem 0.45rem;
  white-space: nowrap;
}

.preflop-chart-main {
  min-width: 0;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
}

.preflop-chart-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .preflop-chart-compare {
    grid-template-columns: 1fr;
  }
}

.preflop-chart-pane {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  min-height: 26rem;
  padding: 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  overflow: visible;
}

.preflop-chart-compare--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preflop-chart-compare--duo .preflop-chart-pane {
  min-height: 0;
}

.preflop-chart-compare--duo .dev-error-matrix {
  --cell: 2rem;
}

.preflop-chart-pane--full {
  grid-column: 1 / -1;
  min-height: 0;
}

.preflop-chart-pane > .muted,
.preflop-chart-pane > .analysis-chart-hint {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 1rem 0.5rem;
}

.preflop-chart-pane .range-matrix,
.preflop-chart-pane .dev-error-matrix {
  margin-inline: auto;
  max-width: none;
  overflow: visible;
}

.preflop-chart-pane--full .dev-error-matrix {
  --cell: 2rem;
}

.preflop-chart-pane header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
}

.preflop-chart-pane header strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.preflop-chart-pane header span {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Compact square cells — no stretch to fill the pane */
.preflop-chart-pane .range-matrix {
  --cell: 1.85rem;
  grid-template-columns: var(--cell) repeat(13, var(--cell));
  gap: 2px;
  min-width: 0;
  width: max-content;
}

.preflop-chart-pane .range-matrix-corner,
.preflop-chart-pane .range-matrix-label {
  width: var(--cell);
  height: var(--cell);
  font-size: 0.68rem;
}

.preflop-chart-pane .range-matrix-cell {
  width: var(--cell);
  height: var(--cell);
  aspect-ratio: auto;
  border-radius: 3px;
}

.preflop-chart-pane .range-matrix-cell .cell-code {
  font-size: 0.52rem;
}

/* Frequencies only in tooltip on hover */
.preflop-chart-pane .range-matrix-cell .cell-pct {
  display: none;
}

.preflop-chart-pane .range-matrix-legend {
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

.dev-error-matrix {
  --cell: 1.85rem;
  display: grid;
  grid-template-columns: var(--cell) repeat(13, var(--cell));
  gap: 1px;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.4rem;
  padding: 1px;
}

.dev-error-matrix-row {
  display: contents;
}

.dev-error-matrix-corner,
.dev-error-matrix-label {
  width: var(--cell);
  height: var(--cell);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  background: #12151c;
}

.dev-error-matrix-cell {
  width: var(--cell);
  height: var(--cell);
  border: 0;
  padding: 0;
  position: relative;
  background: #1a1f2a;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
}

.dev-error-matrix-bars {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  z-index: 0;
}

.dev-error-matrix-bars .bar {
  display: block;
  height: 100%;
  min-width: 0;
}

.dev-error-matrix-bars .bar.raise {
  background: linear-gradient(180deg, #ff7b7b, var(--raise));
}

.dev-error-matrix-bars .bar.call {
  background: linear-gradient(180deg, #5aefad, var(--call));
}

.dev-error-matrix-bars .bar.fold {
  background: linear-gradient(180deg, #6a8fd8, #3a5288);
}

.dev-error-matrix-cell.has-count {
  color: #fff;
}

.dev-error-matrix-cell.selected {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: -2px;
  z-index: 1;
}

.dev-error-matrix-code {
  position: absolute;
  inset: 0 0 42% 0;
  display: grid;
  place-items: end center;
  font-size: 0.48rem;
  font-weight: 650;
  opacity: 0.9;
  padding-bottom: 1px;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.dev-error-matrix-count {
  position: absolute;
  inset: 42% 0 0 0;
  display: grid;
  place-items: start center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.dev-error-matrix-cell:not(.has-count) .dev-error-matrix-code {
  inset: 0;
  place-items: center;
}

.dev-error-matrix-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.dev-error-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dev-error-matrix-legend .lg {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
}

.dev-error-matrix-legend .lg.raise {
  background: var(--raise);
}

.dev-error-matrix-legend .lg.call {
  background: var(--call);
}

.dev-error-matrix-legend .lg.fold {
  background: #3a5288;
}

/* legacy */
.dev-error-matrix-pct {
  display: none;
}

.discipline-guide {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 1.05rem;
  border-left: 3px solid #a78bfa;
  background: linear-gradient(
    105deg,
    rgba(167, 139, 250, 0.1) 0%,
    rgba(167, 139, 250, 0.03) 55%,
    transparent 100%
  );
  max-width: 44rem;
}

.discipline-guide-head h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #c4b5fd;
}

.discipline-guide-head p {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.discipline-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.discipline-guide-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.discipline-guide-list strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  padding-top: 0.05rem;
}

.discipline-guide-list strong.sev-critical {
  color: #f87171;
}

.discipline-guide-list strong.sev-standard {
  color: #fb923c;
}

.discipline-guide-list strong.sev-minor {
  color: #fbbf24;
}

.discipline-guide-list strong.sev-perfect {
  color: #4ade80;
}

.discipline-guide-list span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.discipline-guide-list em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
}

.discipline-guide-note {
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.strategy-dev-table {
  max-width: none;
}

.strategy-dev-table .clickable-row {
  cursor: pointer;
}

.strategy-dev-table .clickable-row:hover {
  background: rgba(136, 249, 145, 0.06);
}

.strategy-dev-table .dev-hand-id {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.1rem;
}

.replay-nav-row.single {
  grid-template-columns: 1fr 1fr;
}

.analysis-empty {
  padding: 1.5rem;
  max-width: 36rem;
}

.analysis-empty .cta {
  margin-top: 0.75rem;
  display: inline-flex;
}

.analysis-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.analysis-kpi {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(14, 14, 16, 0.7);
}

.analysis-kpi span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analysis-kpi strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 750;
}

.analysis-kpi em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}

.analysis-kpi .pos,
.analysis-table .pos {
  color: #6dcea0;
}

.analysis-kpi .neg,
.analysis-table .neg {
  color: #ff7a7a;
}

.analysis-block {
  display: grid;
  gap: 0.75rem;
}

.analysis-block h2 {
  margin: 0;
  font-size: 1.1rem;
}

.analysis-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.missing-spots-panel {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
}

.missing-spots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.missing-spots-head strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.missing-spots-head p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.82rem;
}

.missing-spots-head .cta {
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.missing-spots-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.missing-spots-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  font-weight: 600;
}

.missing-spot-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.missing-spot-matchup {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.missing-spot-tag {
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(251, 146, 60, 0.95);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 0.25rem;
  padding: 0.05rem 0.28rem;
}

.pot-tag {
  display: inline-block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 247, 250, 0.75);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.pot-tag.pot-srp {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.pot-tag.pot-3bp {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

.pot-tag.pot-4bp {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(236, 72, 153, 0.12);
}

.pot-tag.pot-allin {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.12);
}

.pot-tag.pot-limp {
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.35);
  background: rgba(99, 102, 241, 0.12);
}

.pot-tag.pot-multi {
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(20, 184, 166, 0.12);
}

.analysis-branch-pl {
  margin: 0 0 1rem;
  max-width: none;
}

.branch-pot-filters {
  margin: 0 0 0.85rem;
}

.branch-matchup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.branch-matchup-group {
  border: 1px solid var(--line-soft);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.35rem 0.45rem 0.45rem;
}

.branch-matchup-open {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0.4rem 0.35rem;
  cursor: pointer;
}

.branch-matchup-open:hover {
  background: rgba(148, 163, 184, 0.1);
}

.branch-row-pots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.35rem 0.15rem;
}

.branch-row-pot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font: inherit;
}

.branch-row-pot em {
  font-style: normal;
  opacity: 0.85;
  font-size: 0.78em;
}

.branch-matchup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.branch-matchup-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.82rem;
}

.branch-matchup-meta em {
  font-style: normal;
  color: var(--muted, rgba(226, 232, 240, 0.65));
}

.branch-pot-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.branch-pot-tag-btn {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0.35rem 0.25rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.branch-pot-tag-btn:hover {
  background: rgba(148, 163, 184, 0.1);
}

.branch-pot-tag-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.82rem;
}

.branch-pot-tag-meta em {
  font-style: normal;
  color: var(--muted, rgba(226, 232, 240, 0.65));
}

.err-chart-matchup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.err-chart-matchup-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.err-chart-matchup-group > .err-chart-matchup {
  align-self: flex-start;
}

.err-chart-matchup-group > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.branch-pl-row-btn {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.branch-pl-row-btn:hover .branch-pl-label {
  color: #fff;
}

.branch-pl-row-btn:hover .branch-pl-meta em {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.branch-pl-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.missing-spots-list em {
  font-style: normal;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.missing-spot-add {
  flex-shrink: 0;
  border: 1px solid rgba(136, 249, 145, 0.35);
  border-radius: 0.5rem;
  padding: 0.35rem 0.7rem;
  background: rgba(136, 249, 145, 0.1);
  color: #88f991;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.missing-spot-add:hover:not(:disabled) {
  background: rgba(136, 249, 145, 0.18);
  border-color: rgba(136, 249, 145, 0.55);
}

.missing-spot-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.spots-hint-link {
  color: #88f991;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.spots-hint-link:hover {
  text-decoration: underline;
}

.strategy-gap-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 180, 70, 0.45);
  background: rgba(245, 180, 70, 0.1);
  color: #f0d9a8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.analysis-kpi strong.muted {
  color: rgba(232, 228, 216, 0.45);
}

.analysis-chart-hint {
  margin: 0;
  font-size: 0.85rem;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.hud-cell {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(18, 18, 20, 0.85);
}

.hud-cell span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hud-cell strong {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.hud-cell em {
  font-style: normal;
  color: #5c6370;
  font-size: 0.7rem;
}

.analysis-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.analysis-table th,
.analysis-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.analysis-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.analysis-table tr:last-child td {
  border-bottom: none;
}

.analysis-table .clickable-row {
  cursor: pointer;
}

.analysis-table .clickable-row:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.hud-lines-chart {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.75rem 0.5rem 0.5rem;
  background: rgba(10, 10, 12, 0.75);
}

.hud-lines-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 0.75rem 0.45rem;
}

.hud-lines-legend .leg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(20, 20, 24, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 0.65rem;
  cursor: pointer;
  opacity: 0.45;
}

.hud-lines-legend .leg-btn.on {
  opacity: 1;
  color: var(--text);
}

.hud-lines-legend .leg-btn::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.22rem;
  border-radius: 99px;
}

.hud-lines-legend .leg-total::before {
  background: #e8eeff;
}

.hud-lines-legend .leg-blue::before {
  background: #4aa3ff;
}

.hud-lines-legend .leg-red::before {
  background: #ff5a5a;
}

.hud-lines-legend .leg-btn em {
  font-style: normal;
  color: var(--muted);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.hud-line {
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
}

.hud-line.total {
  stroke: #e8eeff;
  stroke-width: 2.6;
}

.hud-line.blue {
  stroke: #4aa3ff;
  stroke-width: 2.35;
}

.hud-line.red {
  stroke: #ff5a5a;
  stroke-width: 2.35;
}

.hud-dot.total {
  fill: #e8eeff;
  stroke: #1a1a1e;
  stroke-width: 1.5;
}

.hud-dot.blue {
  fill: #4aa3ff;
  stroke: #0a1624;
  stroke-width: 1.5;
}

.hud-dot.red {
  fill: #ff5a5a;
  stroke: #241010;
  stroke-width: 1.5;
}

.hud-lines-tooltip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.4rem 0.85rem 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.hud-lines-tooltip strong {
  color: var(--text);
}

.hud-lines-tooltip .tip-total {
  color: #e8eeff;
}

.hud-lines-tooltip .tip-blue {
  color: #4aa3ff;
}

.hud-lines-tooltip .tip-red {
  color: #ff5a5a;
}

/* вЂ”вЂ” H2N performance chart вЂ”вЂ” */
.h2n-chart {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  background: #0a0c10;
  padding: 0.55rem 0.5rem 0.45rem;
  font-family: Inter, ui-monospace, "Roboto Mono", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.h2n-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.45rem 0.55rem;
}

.h2n-unit-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  overflow: hidden;
  background: rgba(20, 23, 31, 0.95);
}

.h2n-unit-toggle button {
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  min-width: 2.4rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background 120ms ease, color 120ms ease;
}

.h2n-unit-toggle button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.h2n-unit-toggle button:hover:not(.active) {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}

.h2n-unit-toggle button.active {
  color: #0a0c10;
  background: #f59e0b;
}

.h2n-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0 0.55rem 0.65rem;
}

.h2n-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 25, 32, 0.9);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    opacity 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease;
}

.h2n-leg.on {
  opacity: 1;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
}

.h2n-leg.off {
  opacity: 0.38;
  color: #64748b;
  background: rgba(15, 17, 22, 0.7);
}

.h2n-leg.off em {
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.55);
}

.h2n-leg i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.h2n-leg em {
  font-style: normal;
  color: #64748b;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.h2n-compliance-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.h2n-chart-stage {
  position: relative;
}

.h2n-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 15rem;
  touch-action: none;
  cursor: crosshair;
}

.h2n-plot-bg {
  fill: #0a0c10;
}

.h2n-grid {
  stroke: rgba(255, 255, 255, 0.02);
  stroke-width: 1;
}

.h2n-zero {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}

.h2n-axis-zero {
  fill: rgba(255, 255, 255, 0.55) !important;
  font-weight: 700;
}

.h2n-axis-y,
.h2n-axis-x,
.h2n-axis-y-right {
  fill: #94a3b8;
  font-size: 10.5px;
  font-family: Inter, ui-monospace, "Roboto Mono", system-ui, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}

.h2n-axis-x {
  fill: #475569;
}

/* Right Y-axis: muted purple labels, no axis stroke (drawn transparent). */
.h2n-axis-y-right {
  fill: rgba(168, 85, 247, 0.6);
  font-size: 10px;
  font-weight: 600;
}

.h2n-crosshair {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}

.h2n-tip {
  position: absolute;
  top: 1.1rem;
  transform: translateX(12px);
  z-index: 5;
  min-width: 12.5rem;
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 8px;
  background: #14171f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.h2n-tip.flip {
  transform: translateX(calc(-100% - 12px));
}

.h2n-tip header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.h2n-tip-section {
  display: grid;
  gap: 0.28rem;
}

.h2n-tip-section-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.h2n-tip-section-strategy {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.h2n-tip-row {
  display: grid;
  grid-template-columns: 0.55rem 1fr auto;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.h2n-tip-row i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.h2n-tip-row strong {
  color: #f8fafc;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.h2n-tip-row.strategy strong {
  color: #d8b4fe;
}

.h2n-tip-badge {
  margin-top: 0.45rem;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

@media (max-width: 700px) {
  .h2n-chart-toolbar {
    flex-wrap: wrap;
  }

  .h2n-tip {
    min-width: 10rem;
  }
}

@media (max-width: 1100px) {
  .analysis-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hud-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .analysis-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.analysis-kpi.clickable,
.hud-cell.clickable {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.analysis-kpi.clickable:hover,
.hud-cell.clickable:hover {
  border-color: rgba(136, 249, 145, 0.4);
  background: rgba(136, 249, 145, 0.06);
  transform: translateY(-1px);
}

/* ===== Premium Hand Replayer (pr-*) ===== */
.pr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(10px);
}

.pr-shell {
  --pr-bg: #0f1115;
  --pr-panel: #151821;
  --pr-felt: #1a1d24;
  --pr-felt-2: #12151a;
  --pr-text: rgba(255, 255, 255, 0.87);
  --pr-muted: #94a3b8;
  --pr-accent: #f59e0b;
  --pr-line: rgba(255, 255, 255, 0.05);
  --pr-fold: #64748b;
  --pr-call: #3b82f6;
  --pr-bet: #10b981;
  width: min(1180px, 100%);
  height: min(92vh, 820px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--pr-line);
  background: var(--pr-bg);
  color: var(--pr-text);
  font-family: Inter, Manrope, system-ui, sans-serif;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.pr-shell.log-collapsed {
  grid-template-columns: 1fr;
}

.pr-shell.is-page {
  width: min(1200px, 100%);
  max-height: none;
  min-height: calc(100vh - 4.5rem);
  margin: 0 auto;
  border-radius: 0.85rem;
  box-shadow: none;
}

.pr-page {
  padding: 0 0.75rem 1.25rem;
}

.share-hand-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(52, 211, 153, 0.12), transparent),
    #0b0d12;
  color: #e8eaef;
}

.share-hand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.share-hand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.share-hand-error {
  padding: 2rem 1.25rem;
  text-align: center;
  color: #fca5a5;
}

.pr-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pr-body > .pr-main {
  flex: 1 1 auto;
  min-height: 0;
}

.pr-banner-extra {
  flex-shrink: 0;
  padding: 0.28rem 1.1rem;
  border-bottom: 1px solid var(--pr-line);
  background: transparent;
}

.pr-body.has-banner .pr-stage {
  padding-top: 0.35rem;
}

.share-like-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-like-login {
  margin: 0;
}

.share-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.share-comment-like {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.share-comment-like:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.share-comment-like.is-liked {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

.share-social-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.1rem 2.5rem;
}

.share-social {
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(15, 18, 24, 0.92);
  padding: 1rem 1.1rem 1.15rem;
}

.share-social-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.share-street-summary {
  opacity: 0.55;
  padding-top: 0.55rem;
  padding-bottom: 0.15rem;
}

.share-street-count {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: rgba(232, 234, 239, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
}

.share-social-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.share-like-heart {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.3rem;
  vertical-align: -0.1rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.1 21.35c-.1 0-.2-.05-.3-.1C7.1 17.9 4 14.55 4 10.75 4 8.05 6.05 6 8.7 6c1.45 0 2.8.7 3.6 1.8C13.1 6.7 14.45 6 15.9 6 18.55 6 20.6 8.05 20.6 10.75c0 3.8-3.1 7.15-7.8 10.5-.1.05-.2.1-.3.1h-.4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.1 21.35c-.1 0-.2-.05-.3-.1C7.1 17.9 4 14.55 4 10.75 4 8.05 6.05 6 8.7 6c1.45 0 2.8.7 3.6 1.8C13.1 6.7 14.45 6 15.9 6 18.55 6 20.6 8.05 20.6 10.75c0 3.8-3.1 7.15-7.8 10.5-.1.05-.2.1-.3.1h-.4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.share-like-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.share-like-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.share-like-btn.is-liked {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

.share-social-hint,
.share-social-muted {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: rgba(232, 234, 239, 0.55);
}

.share-social-hint a {
  color: #6ee7b7;
}

.share-social-error {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #f87171;
}

.share-street-block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0 0.35rem;
  opacity: 0.72;
  transition: opacity 160ms ease, background 160ms ease;
}

.share-street-block.is-current {
  opacity: 1;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  border-radius: 0.55rem;
  background: rgba(52, 211, 153, 0.06);
}

.share-street-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 234, 239, 0.5);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.share-street-now {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.share-social-progress strong {
  color: #6ee7b7;
  font-weight: 700;
}

.share-social-locked {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.share-comment-list {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.share-comment-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.share-comment-list li.is-mine {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.share-comment-list strong {
  font-size: 0.72rem;
  color: #6ee7b7;
}

.share-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: start;
}

.share-comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 2.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #e8eaef;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
}

.share-comment-form button {
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.share-comment-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 640px) {
  .share-comment-form {
    grid-template-columns: 1fr;
  }
}

.pr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--pr-line);
  background: rgba(21, 24, 33, 0.92);
}

.pr-kicker {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pr-muted);
}

.pr-topbar h2 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pr-topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.pr-share-btn {
  border-color: rgba(52, 211, 153, 0.55) !important;
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  font-weight: 700 !important;
}

.pr-share-btn:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.85) !important;
  background: rgba(16, 185, 129, 0.28) !important;
}

.pr-controls-hands .pr-share-btn {
  margin-left: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.pr-share-toast-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 0.4rem 1.1rem 0;
}

.pr-share-url {
  display: inline-block;
  margin: 0;
  width: fit-content;
  max-width: min(100%, 36rem);
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.74rem;
  line-height: 1.3;
}

.pr-share-url a {
  color: #a7f3d0;
  text-decoration: none;
  word-break: break-all;
}

.pr-share-url a:hover {
  text-decoration: underline;
}

.pr-ghost-btn,
.pr-icon-btn {
  border: 1px solid var(--pr-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pr-text);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  font-family: inherit;
  font-weight: 600;
}

.pr-ghost-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.pr-icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pr-fs-btn[aria-pressed="true"] {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.pr-ghost-btn:hover,
.pr-icon-btn:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.pr-error {
  margin: 0.75rem 1.1rem 0;
  color: #f87171;
}

.pr-muted {
  margin: 0.75rem 1.1rem 0;
  color: var(--pr-muted);
}

.pr-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 0;
}

.pr-shell.log-collapsed .pr-main {
  grid-template-columns: 1fr;
}

.pr-shell.log-collapsed .pr-log {
  display: none;
}

.pr-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0.75rem 1rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(30, 34, 43, 0.9), transparent 70%),
    var(--pr-bg);
}

/* PokerOK / GG-style felt table */
.pr-canvas {
  width: min(100%, 1200px); /* 960px × 125% */
  aspect-ratio: 16 / 9;
  min-height: 25rem;
}

.pr-canvas.poker-ok,
.pr-canvas.poker-felt,
.pr-canvas.h2n-table,
.pr-canvas.cyber-table {
  background: #1a1c20;
  border-radius: 0.5rem;
  overflow: visible;
}

.pr-table {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: size;
}

.pr-table-inner {
  position: absolute;
  inset: 14% 10% 16%;
  border-radius: 50% / 48%;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, #2f7a3a 0%, #246b32 42%, #1a5528 100%);
  border: 18px solid #2a221c;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.pr-table-rail {
  position: absolute;
  inset: 14% 10% 16%;
  border-radius: 50% / 48%;
  border: 18px solid transparent;
  background:
    linear-gradient(#2a221c, #2a221c) padding-box,
    linear-gradient(160deg, #3d342c 0%, #1a1510 40%, #4a3f35 70%, #1f1914 100%) border-box;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 0 rgba(0, 0, 0, 0.35);
  opacity: 0;
}

.pr-table-felt-line {
  position: absolute;
  inset: 19% 14% 21%;
  border-radius: 50% / 48%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 1;
}

.pr-center {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: min(70%, 20rem);
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  z-index: 2;
  pointer-events: none;
}

/* HU: pot/board a bit lower so the top seat bet doesn't cover them. */
.pr-canvas.is-hu .pr-center {
  top: 50%;
}

.pr-pot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #f5d76e;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: Manrope, Sora, sans-serif;
  white-space: nowrap;
}

.pr-pot strong {
  display: inline;
  font-size: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f5d76e;
  letter-spacing: -0.01em;
}

.pr-pot-chip {
  display: none;
}

.pr-pot em {
  display: none;
}

.pr-board {
  display: grid;
  grid-template-columns: repeat(5, 2.45rem);
  gap: 0.28rem;
  justify-content: center;
  min-height: 3.35rem;
}

.pr-board-slot {
  width: 2.45rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
}

.pr-board-ph {
  display: none;
}

.pr-street {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-family: Manrope, sans-serif;
}

.pr-street-bet {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: Manrope, sans-serif;
  animation: pr-bet-in 0.28s ease both;
  pointer-events: none;
}

.pr-street-bet.is-to-pot {
  animation: pr-chips-to-pot 0.48s ease forwards;
  z-index: 8;
}

@keyframes pr-chips-to-pot {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + (50 - var(--bx, 50)) * 1cqw),
        calc(-50% + (48 - var(--by, 50)) * 1cqh)
      )
      scale(0.35);
  }
}

.pr-pot.is-collecting {
  animation: pr-pot-pulse 0.45s ease;
}

.pr-pot.is-paying {
  animation: pr-pot-pay 0.55s ease forwards;
}

.pr-pot.is-paid {
  opacity: 0.45;
}

@keyframes pr-pot-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
}

@keyframes pr-pot-pay {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.92);
  }
}

.pr-street-bet.is-from-pot {
  animation: pr-pot-to-winner 0.6s ease forwards;
  z-index: 9;
}

.pr-street-bet.is-won {
  z-index: 7;
}

.pr-street-bet.is-won > span:not(.pr-chip),
.pr-street-bet.is-from-pot > span:not(.pr-chip) {
  border-color: rgba(245, 215, 110, 0.55);
  background: rgba(40, 32, 10, 0.88);
  color: #f5d76e;
}

@keyframes pr-pot-to-winner {
  0% {
    opacity: 0.95;
    transform: translate(
        calc(-50% + (50 - var(--bx, 50)) * 1cqw),
        calc(-50% + (48 - var(--by, 50)) * 1cqh)
      )
      scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.pr-street-bet > span:not(.pr-chip) {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Ceramic chip — cream edge + burgundy face */
.pr-chip {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 8deg,
      #f3e6c4 0deg 14deg,
      #c4a46a 14deg 22deg,
      #f3e6c4 22deg 36deg,
      #8b1e2d 36deg 48deg
    );
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.pr-chip-ring {
  position: absolute;
  inset: 0.16rem;
  border-radius: 50%;
  border: 1.5px dashed rgba(243, 230, 196, 0.75);
  background: radial-gradient(circle at 35% 30%, #b33a4a 0%, #7a1524 55%, #5c101c 100%);
  box-shadow: inset 0 0 0 2px #8b1e2d;
}

.pr-chip-core {
  position: absolute;
  inset: 0.38rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #f7e7a8 0%, #e0b84a 45%, #b88920 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(80, 40, 10, 0.35);
}

.pr-dealer-chip {
  position: absolute;
  z-index: 7;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe566 0%, #f5c518 55%, #d4a017 100%);
  color: #1a1a1a;
  font-size: 0.62rem;
  font-weight: 900;
  font-family: Manrope, sans-serif;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  left: 3.1rem;
  top: -0.35rem;
  transform: translate(-50%, -50%);
}

.pr-dealer-chip.badge-right {
  left: -3.1rem;
}

.pr-seat-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 0;
  height: 0;
}

.pr-seat {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: 7.4rem;
  display: grid;
  gap: 0;
  justify-items: center;
}

.pr-seat.is-folded {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.pr-seat.is-folded .pr-seat-name,
.pr-seat.is-folded .pr-seat-stack {
  opacity: 0.75;
}

.pr-muck-cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.pr-muck-cards.is-animating {
  animation: pr-muck-to-pass 0.55s ease forwards;
}

.pr-seat.is-folded:not(.is-folding) .pr-muck-cards {
  opacity: 0;
}

.pr-muck-cards .pr-card:first-child {
  transform: rotate(-10deg) translateX(3px);
}

.pr-muck-cards .pr-card:last-child {
  transform: rotate(12deg) translateX(-3px);
}

@keyframes pr-muck-to-pass {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--mx, 0) * 0.55 * 1cqw), calc(var(--my, 0) * 0.55 * 1cqh))
      scale(0.4) rotate(28deg);
    filter: blur(0.5px);
  }
}

.pr-seat.is-placeholder {
  opacity: 0.5;
}

.pr-seat.is-placeholder .pr-seat-cards {
  min-height: 2.1rem;
}

.pr-seat-cards {
  display: flex;
  height: 2.35rem;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -0.15rem;
}

.pr-seat.is-hero .pr-seat-cards {
  height: 3.2rem;
  margin-bottom: -0.25rem;
}

.pr-seat-cards .pr-card:first-child {
  transform: rotate(-6deg) translateX(2px);
  z-index: 1;
}

.pr-seat-cards .pr-card:last-child {
  transform: rotate(6deg) translateX(-2px);
  z-index: 2;
}

.pr-seat.is-hero .pr-seat-cards .pr-card:first-child {
  transform: rotate(-3deg) translateX(3px);
}

.pr-seat.is-hero .pr-seat-cards .pr-card:last-child {
  transform: rotate(3deg) translateX(-3px);
}

.pr-seat.is-hero .pr-seat-cards .pr-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pr-seat-name {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 1.35rem;
  padding: 0.18rem 0.45rem;
  background: #1c1e24;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 0.15rem 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Manrope, sans-serif;
  box-sizing: border-box;
}

.pr-seat-name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pr-seat-stack {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25rem;
  padding: 0.12rem 0.4rem;
  background: linear-gradient(180deg, #2a4a7a 0%, #1e3a62 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-top: none;
  border-radius: 0 0 0.15rem 0.15rem;
  box-sizing: border-box;
}

.pr-seat-stack strong {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #c8e0ff;
  font-family: Manrope, sans-serif;
}

.pr-seat.is-turn .pr-seat-name,
.pr-seat.is-turn .pr-seat-stack {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.pr-seat.is-showdown .pr-seat-cards .pr-card {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.85), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.pr-pos-badge {
  flex-shrink: 0;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #9aa3b2;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline;
  box-shadow: none;
  position: static;
  transform: none;
}

.pr-seat.badge-left .pr-pos-badge,
.pr-seat.badge-right .pr-pos-badge {
  left: auto;
  right: auto;
}

.pr-seat-box {
  display: contents;
}

.pr-seat-action {
  min-height: 1rem;
  margin-top: 0.15rem;
  display: grid;
  place-items: center;
}

.pr-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.8rem;
  height: 1rem;
  padding: 0 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: Manrope, sans-serif;
}

.pr-action-pill.ghost {
  visibility: hidden;
}

.pr-action-pill.fold {
  background: rgba(40, 100, 190, 0.92);
  color: #e8f2ff;
}

.pr-action-pill.show {
  background: rgba(37, 99, 235, 0.95);
  color: #dbeafe;
}

.pr-action-pill.win {
  background: rgba(212, 160, 30, 0.95);
  color: #fff8e0;
  min-width: 4.2rem;
}

.pr-seat.is-winner .pr-seat-name,
.pr-seat.is-winner .pr-seat-stack {
  box-shadow: 0 0 0 2px rgba(245, 215, 110, 0.75);
}

.pr-action-pill.check,
.pr-action-pill.call {
  background: rgba(34, 160, 80, 0.92);
  color: #e8ffe8;
}

.pr-action-pill.bet {
  background: rgba(180, 50, 50, 0.9);
  color: #ffe4e4;
}

.pr-dealer {
  display: none;
}

/* Cards */
.pr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  border-radius: 0.3rem;
  background: #ffffff;
  border: 1px solid rgba(15, 17, 21, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-family: Inter, Manrope, sans-serif;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.pr-card.md {
  width: 2.45rem;
  height: 3.35rem;
  font-size: 0.95rem;
}

.pr-card.sm {
  width: 1.55rem;
  height: 2.15rem;
  font-size: 0.7rem;
}

.pr-card.lg {
  width: 2.9rem;
  height: 4rem;
  font-size: 1.1rem;
}

.pr-card-rank,
.pr-card-suit {
  display: block;
}

.pr-card.suit-s {
  color: #1e2022;
}

.pr-card.suit-c {
  color: #27a745;
}

.pr-card.suit-d {
  color: #007bff;
}

.pr-card.suit-h {
  color: #dc3545;
}

.pr-card.back {
  background: linear-gradient(160deg, #f0d78c 0%, #d4a84b 38%, #b8862d 70%, #8f6a1e 100%);
  border-color: rgba(90, 60, 10, 0.45);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pr-card-back-pattern {
  position: absolute;
  inset: 0.18rem;
  border-radius: 0.18rem;
  border: 1px solid rgba(255, 230, 160, 0.55);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.2) 0%, transparent 42%),
    repeating-linear-gradient(
      45deg,
      transparent 0 3px,
      rgba(120, 80, 20, 0.12) 3px 6px
    );
}

/* Action log */
.pr-log {
  min-height: 0;
  border-left: 1px solid var(--pr-line);
  background: var(--pr-panel);
  display: flex;
  flex-direction: column;
}

.pr-log-head {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--pr-line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pr-muted);
}

.pr-log-head em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--pr-accent);
}

.pr-log-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.15rem;
}

.pr-log-empty {
  padding: 0.65rem;
  color: var(--pr-muted);
  font-size: 0.78rem;
}

.pr-log-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: baseline;
  min-height: 1.55rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.74rem;
}

.pr-log-row.current {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.pr-log-row.hero .pr-log-name {
  color: var(--pr-accent);
}

.pr-log-street {
  color: var(--pr-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pr-log-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-log-act {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pr-muted);
}

.pr-log-row.fold .pr-log-act {
  color: var(--pr-fold);
}

.pr-log-row.call .pr-log-act {
  color: #93c5fd;
}

.pr-log-row.raise .pr-log-act {
  color: #6ee7b7;
}

/* Controls */
.pr-controls {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.1rem 0.9rem;
  border-top: 1px solid var(--pr-line);
  background: rgba(21, 24, 33, 0.95);
}

.pr-controls-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pr-muted);
  font-variant-numeric: tabular-nums;
}

.pr-controls-info span:first-child {
  color: var(--pr-text);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-unit-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pr-line);
  border-radius: 0.4rem;
  overflow: hidden;
  margin-left: 0.15rem;
}

.pr-unit-toggle button {
  border: 0;
  background: transparent;
  color: var(--pr-muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.45rem;
  cursor: pointer;
  min-width: 1.7rem;
  transition: background 140ms ease, color 140ms ease;
}

.pr-unit-toggle button + button {
  border-left: 1px solid var(--pr-line);
}

.pr-unit-toggle button:hover:not(:disabled):not(.active) {
  color: var(--pr-text);
  background: rgba(255, 255, 255, 0.04);
}

.pr-unit-toggle button.active {
  color: #0b0d12;
  background: #f59e0b;
}

.pr-unit-toggle button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pr-controls-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pr-media-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  border: 1px solid var(--pr-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pr-text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.pr-media-btn:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.4);
}

.pr-media-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pr-controls-hands {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pr-hand-btn {
  border: 1px solid var(--pr-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pr-text);
  border-radius: 0.45rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  white-space: nowrap;
}

.pr-hand-btn:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.pr-hand-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pr-hand-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pr-muted);
}

.pr-hand-jump select {
  border: 1px solid var(--pr-line);
  background: rgba(15, 17, 21, 0.9);
  color: var(--pr-text);
  border-radius: 0.4rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  cursor: pointer;
}

.pr-controls-step {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pr-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pr-controls-track {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pr-controls-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-radius: 99px;
  transition: width 120ms linear;
}

@keyframes pr-bet-in {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 900px) {
  .pr-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 9rem;
  }

  .pr-log {
    border-left: none;
    border-top: 1px solid var(--pr-line);
  }

  .pr-controls {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pr-controls-info,
  .pr-controls-hands {
    justify-content: center;
  }

  .pr-seat {
    width: 7.2rem;
  }

  .pr-board {
    grid-template-columns: repeat(5, 2.15rem);
    gap: 0.25rem;
  }

  .pr-board-slot {
    width: 2.15rem;
    height: 2.95rem;
  }

  .pr-card.md {
    width: 2.05rem;
    height: 2.85rem;
    font-size: 0.82rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   GTO Wizard–style Strategy Tree Editor
   ═══════════════════════════════════════════════════════════ */

.gto-editor-page {
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: auto;
  width: 100%;
  overflow: visible;
}

.gto-shell {
  --gto-bg: #0a0c10;
  --gto-panel: #0f1218;
  --gto-line: rgba(255, 255, 255, 0.04);
  --gto-line-strong: rgba(255, 255, 255, 0.1);
  --gto-text: #f5f7fa;
  --gto-muted: rgba(245, 247, 250, 0.45);
  /* Strength tiers: Fold(weak) → Call → Raise → 3bet → 4bet(strong) */
  --gto-fold: #2563eb;
  --gto-call: #22c55e;
  --gto-raise: #ef4444;
  --gto-3bet: #a855f7;
  --gto-4bet: #eab308;
  /* Dense chrome, larger range grid */
  --gto-cell: clamp(24px, 3.55vh, 40px);
  /* Центрированная сцена под широкий экран */
  --gto-stage: min(1480px, 100%);
  background:
    radial-gradient(
      ellipse 70% 42% at 50% -8%,
      rgba(255, 255, 255, 0.045),
      transparent 58%
    ),
    var(--gto-bg);
  color: var(--gto-text);
  border: none;
  border-radius: 0;
  padding: 0.45rem clamp(0.85rem, 3vw, 2.25rem) 1.25rem;
  flex: 1 0 auto;
  min-height: calc(100dvh - 3.1rem);
  max-height: none;
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.gto-shell > .gto-top,
.gto-shell > .gto-tabs,
.gto-shell > .gto-branches-tab,
.gto-shell > .gto-selector-slot,
.gto-shell > .gto-paint-bar,
.gto-shell > .gto-workspace {
  width: 100%;
  max-width: var(--gto-stage);
}

.gto-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 0.35rem;
  flex-shrink: 0;
}

.gto-back {
  display: inline-block;
  color: var(--gto-muted);
  font-size: 0.72rem;
  margin-bottom: 0;
}

.gto-back:hover {
  color: var(--gto-text);
}

.gto-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
}

.gto-save-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gto-muted);
  border: 1px solid var(--gto-line);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.gto-save-pill.flash {
  color: var(--gto-raise);
  border-color: rgba(34, 197, 94, 0.35);
}

.gto-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.65rem;
  background: var(--gto-panel);
  border: 1px solid var(--gto-line);
  border-radius: 0.75rem;
}

.gto-format {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gto-format label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gto-muted);
  margin: 0;
}

.gto-format select {
  background: #151922;
  color: #fff;
  border: 1px solid var(--gto-line-strong);
  border-radius: 0.45rem;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  min-width: 5.5rem;
}

.gto-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.gto-crumb-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.gto-chevron {
  color: var(--gto-muted);
  margin: 0 0.15rem;
  font-weight: 300;
}

.gto-crumb {
  border: 1px solid transparent;
  background: transparent;
  color: var(--gto-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
}

.gto-crumb:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gto-line);
}

.gto-crumb.current {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gto-line-strong);
}

.gto-crumb-meta {
  cursor: default;
  opacity: 0.85;
}

.gto-ribbon-stable {
  min-height: 4.25rem;
  align-items: flex-start;
}

.gto-badge {
  border: 1px solid var(--gto-line-strong);
  background: #151922;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.gto-badge-meta {
  cursor: default;
  color: var(--gto-muted);
  background: transparent;
}

.gto-badge-action:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: #1a2030;
}

.gto-badge-current {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.1);
}

.gto-action-panel {
  min-height: 7.5rem;
}

.gto-action-headline {
  margin: 0 0 0.25rem;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
}

.gto-action-sub {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--gto-muted);
}

.gto-decision-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.gto-decision {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  border: 1px solid var(--gto-line-strong);
  background: #12161f;
  color: #fff;
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  cursor: pointer;
  min-height: 3.6rem;
  text-align: left;
  transition: transform 0.1s ease, border-color 0.12s ease, background 0.12s ease;
}

.gto-decision strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gto-decision em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--gto-muted);
  font-weight: 600;
}

.gto-decision:hover {
  transform: translateY(-1px);
}

.gto-decision.fold {
  border-color: rgba(239, 68, 68, 0.4);
}

.gto-decision.fold:hover,
.gto-decision.fold.armed {
  background: rgba(239, 68, 68, 0.15);
}

.gto-decision.call {
  border-color: rgba(59, 130, 246, 0.4);
}

.gto-decision.call:hover,
.gto-decision.call.armed {
  background: rgba(59, 130, 246, 0.15);
}

.gto-decision.raise {
  border-color: rgba(34, 197, 94, 0.45);
}

.gto-decision.raise:hover,
.gto-decision.raise.armed {
  background: rgba(34, 197, 94, 0.15);
}

.gto-decision.compact {
  min-height: 0;
  padding: 0.5rem 0.85rem;
  flex-direction: row;
  align-items: center;
}

.gto-decision.ghost {
  color: var(--gto-muted);
}

.gto-raise-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gto-line);
  border-radius: 0.6rem;
  background: #0c0f14;
}

.gto-raise-dock input {
  width: 5rem;
  background: #151922;
  border: 1px solid var(--gto-line-strong);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-weight: 700;
}

.gto-raise-dock input[type="text"] {
  width: 10rem;
}

.gto-flop-panel {
  border-color: rgba(34, 197, 94, 0.25);
}

@media (max-width: 720px) {
  .gto-decision-row {
    grid-template-columns: 1fr;
  }
}

/* ── Preflop Action Selector (GTO Wizard positions row) ── */

.gto-selector-slot {
  min-height: 0;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.gto-format-inline {
  display: flex;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.gto-top-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pas {
  background: #0b0d10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem 0.45rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.pas-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 0;
  margin-bottom: 0.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pas-history-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.pas-history-arrow {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.15rem;
  font-size: 0.85rem;
}

.pas-history-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #12151a;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
}

.pas-history-pot {
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.45);
  line-height: 1.1;
}

.pas-history-chip:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.45);
}

.pas-history-flop {
  margin: 0 0 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pas-branch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pas-branch-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pas-branch-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.45);
}

.pas-branch-pot {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.5);
}

.pas-branch-title strong {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
}

.pas-branch-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pas-branch-index {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(245, 247, 250, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
}

.pas-branch-back {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 247, 250, 0.88);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.pas-branch-back:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pas-branch-back.ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(245, 247, 250, 0.55);
}

.pas-branch-back.ghost:hover {
  color: rgba(245, 247, 250, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.pas-history-chip.is-current {
  color: #fff;
  border-color: rgba(136, 249, 145, 0.55);
  background: rgba(136, 249, 145, 0.12);
  cursor: default;
  box-shadow: 0 0 0 1px rgba(136, 249, 145, 0.15);
}

.pas-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.pas-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.pas-col-folded,
.pas-col-waiting {
  opacity: 0.4;
}

.pas-col-active {
  opacity: 1;
}

.pas-col-locked {
  opacity: 0.85;
}

.pas-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #111418;
  color: #f5f7fa;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 0.45rem;
  cursor: pointer;
  padding: 0.45rem 0.25rem;
}

.pas-col-active .pas-seat {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 0 18px rgba(245, 158, 11, 0.18);
  background: linear-gradient(180deg, #1a1408 0%, #111418 100%);
}

.pas-seat:disabled {
  cursor: default;
}

.pas-seat-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.pas-pills {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pas-pill {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  padding: 0.42rem 0.35rem;
  cursor: pointer;
  background: transparent;
  color: rgba(220, 228, 234, 0.78);
  transition:
    filter 0.12s ease,
    opacity 0.12s ease,
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

.pas-pill:disabled:not(.is-chosen):not(.is-painting) {
  cursor: default;
  opacity: 0.4;
}

/* Default: bare labels, no frame / no color */
.pas-pill.fold,
.pas-pill.call,
.pas-pill.raise {
  background: transparent;
  border-color: transparent;
  color: rgba(220, 228, 234, 0.78);
  box-shadow: none;
}

/* Hover: neutral frame only — no action color yet */
.pas-pill.fold:not(:disabled):not(.is-chosen):not(.is-painting):hover,
.pas-pill.call:not(:disabled):not(.is-chosen):not(.is-painting):hover,
.pas-pill.raise:not(:disabled):not(.is-chosen):not(.is-painting):hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}

/* Pressed / selected — fill + border in action color */
.pas-pill.is-chosen,
.pas-pill.is-painting {
  opacity: 1 !important;
  filter: none !important;
  color: #fff !important;
  font-weight: 900;
}

.pas-pill.fold.is-chosen,
.pas-pill.fold.is-painting {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  box-shadow: none;
}

.pas-pill.call.is-chosen,
.pas-pill.call.is-painting {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #04140f !important;
  box-shadow: none;
}

.pas-pill.raise.is-chosen,
.pas-pill.raise.is-painting {
  background: #ef4444 !important;
  border-color: #f87171 !important;
  box-shadow: none;
}

.pas-pill.raise.is-allin {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.pas-allin-stack {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.02em;
}

.mwb-stack {
  color: #fca5a5 !important;
}

.mwb-no-range {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  padding: 0.45rem 0;
}

.gto-range-spots {
  margin-top: 0.3rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #12151a;
}

.gto-range-spots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.3rem;
}

.gto-range-spots-head strong {
  font-size: 0.75rem;
  color: #fff;
}

.gto-range-spots-head span {
  font-size: 0.65rem;
  color: rgba(245, 247, 250, 0.4);
}

.gto-range-spots-empty {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(245, 247, 250, 0.4);
}

.gto-range-spots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gto-range-spot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(230, 236, 240, 0.8);
  font: inherit;
  padding: 0.5rem 0.7rem;
  border-radius: 0.45rem;
  cursor: pointer;
  min-width: 7.5rem;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

.gto-range-spot em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(230, 236, 240, 0.85);
}

.gto-range-spot span {
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(220, 228, 234, 0.7);
}

/* Hover: neutral frame only */
.gto-range-spot:hover:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

/* Active seat — neutral frame, no action tint */
.gto-range-spot.is-active {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.gto-range-spot.is-active em {
  color: #fff;
}

.gto-range-spot small {
  font-size: 0.65rem;
  font-weight: 650;
  color: rgba(245, 247, 250, 0.45);
}

.gto-selector-slot .gto-range-spots {
  margin-top: 0.65rem;
}

.pas-flop-body-compact {
  min-height: auto;
  margin-top: 0.55rem;
  padding: 0;
}

.gto-spot-summary {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gto-spot-summary h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.45);
}

.gto-spot-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gto-spot-summary button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #12151a;
  color: rgba(245, 247, 250, 0.75);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.gto-spot-summary button.is-active {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fff;
  background: rgba(245, 158, 11, 0.1);
}

.gto-spot-summary em {
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

.pas-raise-dock {
  display: none;
}

.pas-size-hint {
  margin: 0.45rem 0 0;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 250, 0.4);
  text-align: center;
}

.pas-raise-dock.open {
  display: none;
}

.pas-raise-dock input {
  display: none;
}

.pas-dock-placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.pas-dock-hint {
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.pas-dock-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #151922;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.pas-dock-btn.confirm {
  background: #10b981;
  border-color: #10b981;
  color: #04140f;
}

.pas-flop-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 10.5rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.pas-flop-body strong {
  font-size: 1.05rem;
  color: #fff;
}

@media (max-width: 720px) {
  .pas-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gto-selector-slot {
    min-height: 22rem;
  }
}

/* ── Multi-Window Strategy Builder ── */

.gto-selector-slot-mwb {
  min-height: 0;
}

.mwb {
  background: linear-gradient(180deg, #0e1218 0%, #0a0c10 100%);
}

.mwb-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  margin-inline: auto;
}

.mwb-window {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 1 11.25rem;
  width: 11.25rem;
  min-width: 9.75rem;
  max-width: 13rem;
  min-height: 11.5rem;
  padding: 0.5rem 0.45rem 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #171c26 0%, #0f1319 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 28px rgba(0, 0, 0, 0.28);
  transition:
    opacity 0.12s ease,
    border-color 0.12s ease,
    background-color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
  transform: none;
}

.mwb-window.is-clickable {
  cursor: pointer;
}

.mwb-window.is-hovered,
.mwb-window.is-clickable:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, #1a1f28 0%, #12161c 100%);
  box-shadow: none;
  transform: none;
}

.mwb-window.is-hovered .mwb-seat,
.mwb-window.is-clickable:hover .mwb-seat {
  color: #fff;
  text-shadow: none;
}

.mwb-window.is-dimmed .mwb-top,
.mwb-window.is-dimmed .mwb-seat-hit {
  opacity: 0.5;
}

.mwb-window.is-dimmed .pas-pill:not(.is-chosen) {
  opacity: 0.75;
  filter: none;
}

.mwb-window.is-editing {
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  background: linear-gradient(180deg, #1a1f28 0%, #12161c 100%);
}

/* Locked seat whose range is open for paint — keep action color, soft ring only */
.mwb-window.is-paint-target:not(.mwb-status-active) {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.mwb-window.is-editing .mwb-seat {
  color: #fff;
}

.mwb-seat-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.3rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.mwb-seat-hit:hover:not(:disabled) {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.mwb-seat-hit:disabled {
  cursor: default;
  opacity: 0.55;
}

.mwb-locked-hint {
  color: rgba(180, 230, 200, 0.45) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 650 !important;
}

/* Active actor: larger neutral frame — opponent to act («Ход») */
.mwb-window.mwb-status-active {
  opacity: 1;
  z-index: 3;
  min-height: 0;
  padding: 0.5rem 0.5rem 0.45rem;
  transform: none;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, #222833 0%, #151a22 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mwb-window.mwb-status-active .mwb-seat {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.mwb-window.mwb-status-active .mwb-badge {
  font-size: 0.6rem;
  min-height: 1.1rem;
  padding: 0.12rem 0.4rem;
}

.mwb-window.mwb-status-active .pas-pill {
  font-size: 0.7rem;
  padding: 0.4rem 0.35rem;
}

/* After an action is locked — window border matches that action */
.mwb-window.mwb-tone-raise:not(.mwb-status-active) {
  border-color: rgba(239, 68, 68, 0.7);
}

.mwb-window.mwb-tone-call:not(.mwb-status-active) {
  border-color: rgba(16, 185, 129, 0.7);
}

.mwb-window.mwb-tone-fold:not(.mwb-status-active) {
  border-color: rgba(37, 99, 235, 0.65);
}

.mwb-window.mwb-tone-none,
.mwb-window.mwb-tone-active {
  box-shadow: none;
}

.mwb-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-height: 0;
}

.mwb-seat {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #fff;
}

.mwb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(245, 247, 250, 0.88);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.mwb-badge-active {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
}

.mwb-badge-auto-folded {
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.4);
}

.mwb-badge-folded {
  color: #60a5fa;
}

.mwb-badge-locked {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.mwb-badge-waiting {
  color: rgba(255, 255, 255, 0.45);
}

.mwb-mid,
.mwb-edit {
  display: none !important;
}

.mwb-micro,
.mwb-locked-meta {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.mwb-locked-meta {
  color: rgba(255, 255, 255, 0.55);
}

.mwb-pills {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: auto;
}

.mwb-window.is-dimmed .pas-pill.is-chosen {
  opacity: 1 !important;
}

.mwb-window.mwb-status-waiting {
  opacity: 0.88;
}

@media (max-width: 960px) {
  .mwb-window {
    flex: 1 1 calc(33.333% - 0.55rem);
    width: auto;
    max-width: none;
    min-width: 8.5rem;
  }

  .gto-selector-slot-mwb {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .mwb-window {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
  }
}

.gto-node-panel {
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.55rem;
  background: var(--gto-panel);
  border: 1px solid var(--gto-line);
  border-radius: 0.75rem;
}

.gto-status {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #fff;
}

.gto-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.gto-add {
  border: 1px solid var(--gto-line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.gto-add.fold {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.gto-add.call {
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.gto-add.raise {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.gto-add.ghost {
  color: var(--gto-muted);
}

.gto-add:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gto-raise-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gto-raise-inline input {
  width: 4rem;
  background: #151922;
  border: 1px solid var(--gto-line-strong);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.4rem 0.45rem;
  font: inherit;
  font-weight: 700;
}

.gto-child-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--gto-line);
}

.gto-child-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gto-muted);
  margin-right: 0.25rem;
}

.gto-child-chip {
  border: 1px solid var(--gto-line);
  background: #151922;
  color: var(--gto-text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.gto-child-chip.fold {
  border-color: rgba(239, 68, 68, 0.35);
}

.gto-child-chip.call {
  border-color: rgba(59, 130, 246, 0.35);
}

.gto-child-chip.raise {
  border-color: rgba(34, 197, 94, 0.35);
}

.gto-child-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.gto-paint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  background: rgba(15, 18, 24, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.gto-paint-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.45);
  margin: 0 0.25rem 0 0.15rem;
}

.gto-paint,
.gto-freq {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(220, 228, 234, 0.7);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

/* Hover: neutral frame, no action color */
.gto-paint.fold:not(.active):hover,
.gto-paint.call:not(.active):hover,
.gto-paint.raise:not(.active):hover,
.gto-paint.mix:not(.active):hover,
.gto-freq:not(.active):hover {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.gto-paint.fold:not(.active) {
  color: var(--gto-fold);
}

.gto-paint.call:not(.active) {
  color: var(--gto-call);
}

.gto-paint.raise:not(.active).tier-open {
  color: var(--gto-raise);
}

.gto-paint.raise:not(.active).tier-3bet {
  color: var(--gto-3bet);
}

.gto-paint.raise:not(.active).tier-4bet {
  color: var(--gto-4bet);
}

.gto-paint.mix:not(.active) {
  color: rgba(245, 247, 250, 0.7);
}

/* Selected brush — action color + matching border */
.gto-paint.fold.active {
  color: #fff;
  background: var(--gto-fold);
  border-color: #3b82f6;
  box-shadow: none;
}

.gto-paint.call.active {
  color: #04140f;
  background: var(--gto-call);
  border-color: #4ade80;
  box-shadow: none;
}

.gto-paint.raise.active.tier-open,
.gto-paint.raise.active:not(.tier-3bet):not(.tier-4bet) {
  color: #fff;
  background: var(--gto-raise);
  border-color: #f87171;
  box-shadow: none;
}

.gto-paint.raise.active.tier-3bet {
  color: #fff;
  background: var(--gto-3bet);
  border-color: #c084fc;
  box-shadow: none;
}

.gto-paint.raise.active.tier-4bet {
  color: #1a1400;
  background: var(--gto-4bet);
  border-color: #facc15;
  box-shadow: none;
}

.gto-paint.mix.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.gto-freq.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.gto-mix-range {
  width: 5.5rem;
  accent-color: var(--gto-raise);
  vertical-align: middle;
}

.gto-mix-range.call {
  accent-color: var(--gto-call);
}

.gto-mix-range.freq {
  accent-color: rgba(255, 255, 255, 0.55);
  width: 4.5rem;
}

.gto-mix-val {
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 2.4rem;
  color: rgba(245, 247, 250, 0.85);
}

.gto-mix-val.raise {
  color: var(--gto-raise);
}

.gto-mix-val.call {
  color: var(--gto-call);
}

.gto-mix-fold {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gto-fold);
  margin-left: 0.15rem;
}

.gto-paint-hint {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--gto-muted);
  max-width: 28rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Tabs ── */

.gto-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 auto 0.4rem;
  padding: 0.18rem;
  background: #0f1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.55rem;
  flex-shrink: 0;
}

.gto-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(245, 247, 250, 0.5);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.32rem 0.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: var(--btn-transition);
}

.gto-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.gto-tab.is-active {
  color: #fff;
  background: #151922;
  border-color: rgba(255, 255, 255, 0.08);
}

.gto-tab-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #04140f;
  background: #f59e0b;
  border-radius: 999px;
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
  text-align: center;
}

/* ── Saved branches tab ── */

.gto-branches-tab {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
  padding-bottom: 0.35rem;
}

.gto-branches-presets {
  margin: 0;
  padding: 0.9rem 1rem;
  background: #0f1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  flex-shrink: 0;
  max-height: none;
  overflow: visible;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.gto-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
  max-width: 100%;
}

.gto-preset-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #12151a;
}

.gto-preset-card.is-active {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.08);
}

.gto-preset-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gto-preset-card-top strong {
  font-size: 0.95rem;
  color: #fff;
}

.gto-preset-tag {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 0.3rem;
  padding: 0.12rem 0.4rem;
}

.gto-preset-card p {
  margin: 0;
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(245, 247, 250, 0.45);
}

.gto-preset-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.gto-preset-card-foot em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(245, 247, 250, 0.4);
}

.gto-preset-apply {
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.gto-preset-apply:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #fff;
}

.gto-branches-filter {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #0f1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.gto-branches {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #0f1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  flex: 1 1 auto;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.gto-filter-block {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.gto-filter-block-tight {
  margin-bottom: 0.55rem;
}

.gto-filter-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.42);
}

.gto-filter-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.gto-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gto-filter-pots button,
.gto-filter-matchups button {
  font-size: 0.74rem;
  padding: 0.38rem 0.55rem;
  border-radius: 0.42rem;
}

.gto-filter-matchups {
  max-height: 6.5rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.gto-filter-matchup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gto-filter-select-wrap {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
}

.gto-filter-select-wrap select {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #151922;
  color: #e8edf5;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
}

.gto-filter-more {
  align-self: center;
  font-size: 0.68rem;
  font-weight: 650;
}

.gto-filter-reset {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(245, 247, 250, 0.55);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.gto-filter-reset:hover,
.gto-filter-reset-inline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.gto-filter-reset-inline {
  border: none;
  background: transparent;
  color: #6ee7b7;
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gto-branches-filter .gto-branches-head {
  flex-wrap: wrap;
  align-items: center;
}

.gto-filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151922;
  color: rgba(245, 247, 250, 0.72);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.gto-filter-chips button:disabled {
  opacity: 0.35;
  cursor: default;
}

.gto-filter-chips button em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(245, 247, 250, 0.38);
  min-width: 1.1rem;
  text-align: center;
}

.gto-filter-chips button:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.35);
  color: #fff;
}

.gto-filter-chips button.is-active {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.16);
  color: #ecfdf5;
}

.gto-filter-chips button.is-active em {
  color: #6ee7b7;
}

.gto-filter-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
}

.gto-branches-danger {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.5rem 0.75rem;
  border-radius: 0.45rem;
  cursor: pointer;
}

.gto-branches-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

.gto-branches-danger:disabled {
  opacity: 0.4;
  cursor: default;
}

.gto-branch-meta em.pot-limp {
  color: #a5b4fc;
}

.gto-branch-meta em.pot-srp {
  color: #93c5fd;
}

.gto-branch-meta em.pot-multi {
  color: #5eead4;
}

.gto-branch-meta em.pot-3bp {
  color: #fbbf24;
}

.gto-branch-meta em.pot-4bp {
  color: #f472b6;
}

.gto-branch-meta em.pot-allin {
  color: #f87171;
}

.gto-branches-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(245, 247, 250, 0.4);
}

.gto-branches-list-full {
  max-height: none;
  overflow: visible;
  flex: 0 0 auto;
  min-height: 0;
}

.gto-branches-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: none;
  overflow: visible;
}

.gto-branches-list.gto-branches-list-full {
  max-height: none;
  min-height: 0;
}

.gto-branch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
  padding: 0.2rem;
  border-radius: 0.55rem;
}

.gto-branch-row.is-active {
  background: rgba(245, 158, 11, 0.06);
}

.gto-branch-row .gto-branch-item {
  border-color: rgba(255, 255, 255, 0.06);
}

.gto-branch-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gto-branch-open,
.gto-branch-delete {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151922;
  color: #e8edf5;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}

.gto-branch-open:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fff;
}

.gto-branch-delete {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.gto-branch-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

.gto-branches-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.gto-branches-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 750;
  color: #fff;
}

.gto-branches-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245, 247, 250, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gto-branches-empty {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(245, 247, 250, 0.45);
}

.gto-branches-missing {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.65rem;
  flex-shrink: 0;
}

.gto-branches-head-compact {
  margin-bottom: 0.35rem;
}

.gto-branches-head-compact h2 {
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(245, 247, 250, 0.55);
}

.gto-branches-hint-ok {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: #6ee7b7;
}

.gto-missing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 9.5rem;
  overflow-y: auto;
}

.gto-missing-list li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.gto-missing-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem;
  text-align: left;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  color: rgba(245, 247, 250, 0.62);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.4rem;
  cursor: pointer;
}

.gto-missing-row:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 250, 0.88);
}

.gto-missing-row:disabled {
  opacity: 0.55;
  cursor: default;
}

.gto-missing-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.gto-missing-tag {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(251, 146, 60, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 0.25rem;
  padding: 0.05rem 0.28rem;
}

.gto-missing-meta {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(245, 247, 250, 0.35);
  font-variant-numeric: tabular-nums;
}

.gto-missing-add {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.75);
  width: 1.1rem;
  text-align: center;
}

.gto-missing-more {
  margin-top: 0.3rem;
  border: none;
  background: transparent;
  color: rgba(245, 247, 250, 0.4);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.15rem 0.25rem;
  cursor: pointer;
}

.gto-missing-more:hover {
  color: rgba(245, 247, 250, 0.7);
}

.gto-branch-row.is-empty .gto-branch-item {
  border-color: rgba(255, 140, 100, 0.28);
}

.gto-branch-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #12151a;
  color: rgba(245, 247, 250, 0.75);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.gto-branch-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.gto-branch-item.is-active {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.gto-branch-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(245, 158, 11, 0.9);
}

.gto-branch-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
  color: inherit;
}

.gto-branch-meta {
  display: inline-flex;
  gap: 0.35rem;
  flex-shrink: 0;
  align-items: center;
}

.gto-branch-meta em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
}

.gto-branch-meta em.has-range {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.gto-branch-meta em.no-chart {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.4);
}

.gto-branch-meta em.flop {
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.35);
}

.gto-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  gap: 0.65rem;
  align-items: start;
  flex: 1 0 auto;
  min-height: auto;
  width: 100%;
  overflow: visible;
}

.gto-workspace-main {
  min-width: 0;
  min-height: auto;
  padding: 0.65rem 0.75rem;
  background: var(--gto-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.gto-matrix-stack {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.gto-matrix-stack:has(.gto-matrix-panel-call),
.gto-matrix-stack.has-dual {
  grid-template-columns: repeat(2, max-content);
  gap: 0.65rem;
  --gto-cell: clamp(20px, 2.9vh, 34px);
}

.gto-matrix-panel.is-focus {
  outline: 1px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
  border-radius: 0.35rem;
}

.gto-matrix-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.45rem;
  margin-bottom: 0.25rem;
}

.gto-matrix-panel-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.gto-matrix-panel-head span {
  font-size: 0.62rem;
  color: var(--gto-muted);
}

.gto-matrix-panel-call {
  padding-top: 0;
  border-top: none;
  border-left: 1px solid var(--gto-line);
  padding-left: 0.65rem;
}

.gto-matrix-panel-call .gto-matrix-panel-head h3 {
  color: #34d399;
}

.gto-matrix.is-readonly {
  pointer-events: none;
  opacity: 0.95;
}

.gto-facing-call {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.gto-facing-call h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.gto-facing-call p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  color: #e5e7eb;
  font-size: 0.82rem;
}

.gto-facing-call em {
  font-style: normal;
  font-weight: 700;
  color: #34d399;
}

.gto-facing-call > span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--gto-muted);
}

.gto-sidebar {
  background: var(--gto-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  overflow: visible;
  min-height: auto;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.gto-sidebar h2 {
  margin: 0 0 0.15rem;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  color: #fff;
}

.gto-sidebar-seat {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gto-muted);
  letter-spacing: 0.04em;
}

.gto-range-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.gto-range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid var(--gto-line);
  background: #151922;
}

.gto-range-row strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.gto-range-row span {
  font-size: 0.72rem;
  color: var(--gto-muted);
}

.gto-range-row em {
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
}

.gto-range-row.fold {
  border-left: 3px solid var(--gto-fold);
}

.gto-range-row.call {
  border-left: 3px solid var(--gto-call);
}

.gto-range-row.raise {
  border-left: 3px solid var(--gto-raise);
}

.gto-range-row.raise.tier-3bet {
  border-left-color: var(--gto-3bet);
}

.gto-range-row.raise.tier-4bet {
  border-left-color: var(--gto-4bet);
}

.gto-hand-detail {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gto-line);
}

.gto-hand-detail h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: #fff;
}

.gto-hand-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.gto-hand-line .fold {
  color: var(--gto-fold);
}

.gto-hand-line .call {
  color: var(--gto-call);
}

.gto-hand-line .raise {
  color: var(--gto-raise);
}

.gto-sidebar-hint {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--gto-muted);
}

.gto-matrix {
  display: grid;
  grid-template-columns: calc(var(--gto-cell) * 0.9) repeat(13, var(--gto-cell));
  gap: 1.5px;
  user-select: none;
  width: max-content;
  max-width: 100%;
}

.gto-matrix-corner {
  width: calc(var(--gto-cell) * 0.9);
}

.gto-matrix-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--gto-cell) * 0.36);
  font-weight: 750;
  color: var(--gto-muted);
  width: var(--gto-cell);
  height: var(--gto-cell);
}

.gto-matrix-row {
  display: contents;
}

.gto-matrix-cell {
  position: relative;
  width: var(--gto-cell);
  height: var(--gto-cell);
  aspect-ratio: auto;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  padding: 0;
  cursor: crosshair;
  overflow: hidden;
  min-width: 0;
}

.gto-matrix-cell.selected {
  outline: 2px solid #fff;
  outline-offset: -2px;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.gto-matrix.brush-fold .gto-matrix-cell.selected {
  outline-color: var(--gto-fold);
}

.gto-matrix.brush-call .gto-matrix-cell.selected {
  outline-color: var(--gto-call);
}

.gto-matrix.brush-raise .gto-matrix-cell.selected {
  outline-color: var(--gto-raise);
}

.gto-matrix-code {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--gto-cell) * 0.32);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.gto-matrix-pct {
  position: absolute;
  right: 1px;
  bottom: 0;
  font-size: calc(var(--gto-cell) * 0.24);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  line-height: 1;
}

@media (min-width: 1280px) {
  .gto-shell {
    --gto-cell: clamp(28px, 3.9vh, 44px);
  }

  .mwb-window {
    flex-basis: 12rem;
    width: 12rem;
    max-width: 13.5rem;
  }
}

@media (max-width: 1100px) {
  .gto-matrix-stack:has(.gto-matrix-panel-call) {
    grid-template-columns: 1fr;
  }

  .gto-matrix-panel-call {
    border-left: none;
    border-top: 1px solid var(--gto-line);
    padding-left: 0;
    padding-top: 0.45rem;
  }
}

@media (max-width: 960px) {
  .gto-workspace {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .gto-shell {
    max-height: none;
    overflow: visible;
  }

  .gto-paint-hint {
    margin-left: 0;
    width: 100%;
    white-space: normal;
  }
}

/* —— Trainer —— */
.trainer-page .lead {
  margin: 0.35rem 0 0;
}

.trainer-setup {
  display: grid;
  gap: 1.35rem;
  max-width: 52rem;
}

.trainer-setup-block h2 {
  margin: 0 0 0.65rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trainer-setup-sub {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.trainer-setup-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.trainer-setup-hint strong {
  color: var(--ink);
}

.trainer-format-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.trainer-format-chip,
.trainer-program-chip,
.trainer-variation-chip {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.trainer-format-chip strong,
.trainer-program-chip strong {
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.trainer-format-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.trainer-format-lock-icon {
  flex-shrink: 0;
  opacity: 0.75;
  color: var(--muted);
}

.trainer-format-chip.is-locked,
.trainer-format-chip.is-locked:hover {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.trainer-format-chip.is-locked strong {
  color: var(--muted);
}

.trainer-format-chip span,
.trainer-program-chip span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.trainer-format-chip:hover,
.trainer-program-chip:hover,
.trainer-variation-chip:hover {
  border-color: rgba(136, 249, 145, 0.35);
}

.trainer-format-chip.is-active,
.trainer-program-chip.is-active,
.trainer-variation-chip.is-active {
  border-color: rgba(136, 249, 145, 0.5);
  background: rgba(136, 249, 145, 0.1);
}

.trainer-program-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.trainer-variation-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trainer-variation-chip {
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.trainer-setup-select {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.trainer-setup-select select {
  min-width: 12rem;
  max-width: 28rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line-soft);
  background: #12151c;
  color: var(--ink);
  font: inherit;
}

.trainer-setup-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

.trainer-start {
  border: none;
  border-radius: 0.7rem;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #0a0f0c;
  background: #88f991;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.trainer-start:hover:not(:disabled) {
  transform: translateY(-1px);
}

.trainer-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.trainer-session-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
}

.trainer-session-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.trainer-session-meta strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.trainer-session-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.trainer-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trainer-ghost {
  border: 1px solid var(--line-soft);
  border-radius: 0.55rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.trainer-ghost:hover {
  border-color: rgba(136, 249, 145, 0.4);
}

@media (max-width: 720px) {
  .trainer-format-switch,
  .trainer-program-switch {
    grid-template-columns: 1fr;
  }
}

.trainer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.trainer-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.trainer-score strong {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.trainer-score span {
  font-size: 0.82rem;
  color: var(--muted);
}

.trainer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
}

.trainer-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.trainer-toolbar select {
  min-width: 12rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line-soft);
  background: #12151c;
  color: var(--ink);
  font: inherit;
}

.trainer-pos-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: -0.35rem 0 1.1rem;
}

.trainer-pos-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  margin-right: 0.25rem;
}

.trainer-pos-chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.trainer-pos-chip.is-on {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.16);
  color: #fff;
}

.trainer-next {
  margin-left: auto;
  padding: 0.55rem 1.1rem;
  border-radius: 0.65rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
}

.trainer-next:disabled {
  opacity: 0.5;
  cursor: default;
}

.trainer-stage {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 52rem;
}

.trainer-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
}

.trainer-hand-code {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.trainer-meta-bar strong {
  font-size: 0.95rem;
}

.trainer-meta-bar em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.trainer-table-wrap {
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.75rem;
  overflow: visible;
}

.trainer-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}

.trainer-prompt {
  margin: 0;
  font-weight: 650;
  text-align: center;
}

.trainer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
}

.trainer-actions.is-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 20rem;
}

.trainer-actions .act-btn {
  padding: 0.95rem 0.5rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.trainer-actions .act-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.trainer-actions .act-btn.fold {
  background: linear-gradient(180deg, #6a8fd8, #3a5288);
}

.trainer-actions .act-btn.call {
  background: linear-gradient(180deg, #5aefad, var(--call));
  color: #062416;
}

.trainer-actions .act-btn.raise {
  background: linear-gradient(180deg, #ff7b7b, var(--raise));
}

.trainer-actions .act-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.trainer-feedback {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
}

.trainer-feedback.ok {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.12);
}

.trainer-feedback.bad {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(239, 68, 68, 0.12);
}

.trainer-verdict {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trainer-verdict > div {
  min-width: 0;
}

.trainer-verdict strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.trainer-verdict-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  animation: trainer-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.trainer-verdict-mark svg {
  display: block;
}

.trainer-verdict-mark.ok circle {
  fill: rgba(16, 185, 129, 0.18);
  stroke: #34d399;
  stroke-width: 2.5;
}

.trainer-verdict-mark.ok path {
  fill: none;
  stroke: #34d399;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: trainer-draw 0.45s 0.08s ease forwards;
}

.trainer-verdict-mark.bad circle {
  fill: rgba(239, 68, 68, 0.16);
  stroke: #f87171;
  stroke-width: 2.5;
}

.trainer-verdict-mark.bad path {
  fill: none;
  stroke: #f87171;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: trainer-draw 0.35s 0.06s ease forwards;
}

@keyframes trainer-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes trainer-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.trainer-feedback p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .trainer-toolbar .trainer-next {
    margin-left: 0;
  }
}

.trainer-mix {
  display: flex;
  height: 0.85rem;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #1a1f2a;
}

.trainer-mix .bar {
  display: block;
  min-width: 0;
}

.trainer-mix .bar.raise {
  background: var(--raise);
}

.trainer-mix .bar.call {
  background: var(--call);
}

.trainer-mix .bar.fold {
  background: #3a5288;
}

.trainer-mix-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
}

/* Pot odds drill — same stage chrome as chart trainer */
.pod-drill {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.pod-coach-line {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(220, 224, 220, 0.88);
}

.pod-coach-line em {
  font-style: normal;
  font-weight: 750;
  color: #f0e6c8;
}

.trainer-hh {
  margin: 0;
  font-size: 0.82rem;
}

.trainer-feedback .trainer-next {
  margin-left: 0;
  margin-top: 0.25rem;
  align-self: flex-start;
}

/* —— Глобально: плавный hover у всех кнопок (перебивает короткие 0.12–0.15s) —— */
button,
[role="button"],
.cta,
.cta-secondary,
.chip,
.gto-tab,
.gto-filter-chips button,
.gto-preset-apply,
.pas-history-chip,
.pas-action-btn,
.upload-submit,
.nav a.chip,
.topbar button,
.analysis-tabs button,
.preflop-subtabs button,
.brm-seg button,
.career-tabs button,
.strat-format-card,
.strat-preset-card,
.strat-name-chip,
.strat-card-open,
.strat-card-delete {
  transition: var(--btn-transition) !important;
}

/* ── Spot filters (Споты / GTOBase-style) ── */

.spf-page-tabs {
  margin-bottom: 0.65rem;
}

.spf-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  flex: 1;
}

.spf-editor-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.spf-editor-top h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.spf-editor-top p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: rgba(245, 247, 250, 0.45);
}

.spf-editor-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.spf-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.spf-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.spf-btn.ghost {
  background: transparent;
  color: rgba(230, 236, 240, 0.65);
}

.spf {
  display: grid;
  gap: 0.65rem;
}

.spf-block {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  background: rgba(12, 14, 18, 0.92);
}

.spf-block.is-locked {
  opacity: 0.55;
}

.spf-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.spf-block-head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.88);
}

.spf-block-head span {
  font-size: 0.68rem;
  color: rgba(245, 247, 250, 0.4);
}

.spf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.spf-chip {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(220, 228, 234, 0.75);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.spf-chip:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.spf-chip.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.spf-chip:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  border-color: transparent;
}

.spf-chip-raiser.is-active {
  background: rgba(239, 68, 68, 0.28);
  border-color: #f87171;
}

.spf-chip-hero.is-active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
}

.spf-sub {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spf-sub-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.45);
}

.spf-status {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: rgba(245, 247, 250, 0.4);
}

.spf-status.is-ready {
  color: rgba(110, 231, 183, 0.85);
}

.spf-matrix-wrap {
  position: relative;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  background: rgba(10, 12, 16, 0.95);
  min-height: 18rem;
}

.spf-matrix-wrap.is-disabled {
  min-height: 12rem;
}

.spf-matrix-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 10rem;
  text-align: center;
  color: rgba(245, 247, 250, 0.45);
}

.spf-matrix-lock strong {
  color: rgba(245, 247, 250, 0.75);
  font-size: 0.9rem;
}

.spf-sync-note {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(147, 197, 253, 0.85);
}

.spf-json {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.25);
}

.spf-json summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245, 247, 250, 0.5);
}

.spf-json pre {
  margin: 0.45rem 0 0;
  max-height: 14rem;
  overflow: auto;
  font-size: 0.65rem;
  color: rgba(220, 228, 234, 0.7);
}

/* ── Admin traffic panel ── */

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-page-head .lead {
  margin-bottom: 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-kpi-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(18, 18, 18, 0.92);
  padding: 0.95rem 1rem;
}

.admin-kpi-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 750;
}

.admin-kpi-card dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.admin-kpi-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.admin-kpi-card dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-kpi-card dd {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.admin-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(136, 249, 145, 0.06);
}

.admin-totals div {
  display: grid;
  gap: 0.2rem;
}

.admin-totals span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.admin-totals strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.admin-block {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(18, 18, 18, 0.92);
  padding: 1rem 1.1rem;
  min-width: 0;
}

.admin-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table code,
.admin-recent code {
  font-size: 0.82rem;
  color: var(--accent);
}

.admin-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-height: 28rem;
  overflow: auto;
}

.admin-recent li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-recent time {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Top liked hands feed */
.feed-page-head {
  margin-bottom: 1.25rem;
}

.feed-page-head h1 {
  margin: 0 0 0.35rem;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.feed-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 40rem;
}

.feed-top-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.feed-top-rank {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.feed-top-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.feed-top-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.feed-top-link:hover {
  text-decoration: underline;
}

.feed-top-stats {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(232, 234, 239, 0.75);
}

.feed-top-stats span:last-child {
  color: #fca5a5;
}

.feed-author-link {
  color: #6ee7b7;
  font-weight: 700;
  text-decoration: none;
}

.feed-author-link:hover {
  text-decoration: underline;
}

.public-profile-head h1 {
  margin: 0 0 0.45rem;
}

.public-profile-sub {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
}

.public-profile-stats {
  display: grid;
  gap: 0.65rem;
  max-width: 22rem;
  margin-top: 0.85rem;
}

.public-profile-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.public-profile-stat-label {
  color: var(--muted);
  font-weight: 600;
}

.profile-stat-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.profile-stat-link:hover:not(:disabled) {
  color: #6ee7b7;
}

.profile-stat-link.is-active {
  color: #6ee7b7;
}

.profile-stat-link:disabled {
  color: inherit;
  cursor: default;
  text-decoration: none;
  opacity: 0.85;
}

.profile-comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.profile-comment-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.profile-comment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.profile-comment-body {
  margin: 0 0 0.5rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-comment-hand {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.profile-comment-hand:hover {
  text-decoration: underline;
}

.hits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.hits-card {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.hits-hand-link {
  display: grid;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.hits-hand-link:hover .hits-tag {
  border-color: rgba(110, 231, 183, 0.45);
}

.hits-cards {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.hits-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hits-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(232, 234, 239, 0.88);
}

.hits-tag.pot {
  color: #fcd34d;
}

.hits-tag.matchup {
  color: #6ee7b7;
}

.hits-side {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
  align-content: center;
}

.eng-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(232, 234, 239, 0.72);
  white-space: nowrap;
}

.eng-item {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.eng-ico {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.eng-item.eng-likes,
.eng-likes {
  color: #ef4444;
}

.heart-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: #ef4444;
  filter: drop-shadow(0 0 0.35rem rgba(239, 68, 68, 0.35));
}

.profile-likes-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ef4444;
  font-weight: 800;
}

.profile-likes-value .heart-ico {
  width: 1.15rem;
  height: 1.15rem;
}

.hits-engagement {
  justify-self: end;
}

.feed-back {
  margin: 0 0 0.85rem;
}

.feed-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* News / changelog */
.news-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.news-page-head h1 {
  margin: 0 0 0.35rem;
}

.news-archive-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.news-archive-link:hover {
  text-decoration: underline;
}

.news-list {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
}

.news-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.news-date {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.news-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.news-summary {
  margin: 0 0 0.55rem;
  color: rgba(232, 234, 239, 0.82);
  line-height: 1.45;
}

.news-points {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.25rem;
  color: rgba(232, 234, 239, 0.78);
  font-size: 0.9rem;
}

.news-archive-foot {
  margin: 1.25rem 0 0;
  max-width: 42rem;
}

.news-archive-foot a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.news-archive-foot a:hover {
  text-decoration: underline;
}

/* Strategy line analysis */
.line-analysis-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
@media (max-width: 720px) {
  .line-analysis-layout {
    grid-template-columns: 1fr;
  }
}
.line-analysis-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 28rem;
  overflow: auto;
}
.line-analysis-list button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.5rem;
  text-align: left;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
}
.line-analysis-list button em {
  grid-column: 2;
  font-size: 0.75rem;
  font-style: normal;
}
.line-analysis-list button.is-active {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}
.line-analysis-detail {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}
.hand-line-detail {
  display: grid;
  gap: 0.65rem;
}
.hand-line-detail-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
}
.line-badge.ok {
  color: #04140f;
  background: #34d399;
}
.line-badge.bad {
  color: #fff;
  background: #ef4444;
}
.line-badge.miss {
  color: #04140f;
  background: #fbbf24;
}
.line-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.line-path-step {
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  font-size: 0.82rem;
  font-weight: 600;
}
.line-path-step--missing {
  border-color: #fbbf24;
  color: #fbbf24;
}
.branch-range-split {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.branch-range-split-item {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-soft);
  font-size: 0.8rem;
}
.branch-range-split-item.is-hero {
  border-color: #34d399;
}
.branch-range-split-item span {
  color: var(--muted);
}
.missing-branch-prompt {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.08);
}
.missing-branch-prompt p {
  margin: 0;
  font-size: 0.9rem;
}
.tree-integrity-banner,
.line-deviation-text {
  margin: 0;
  font-size: 0.85rem;
  color: #fca5a5;
}
.pr-strategy-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.pr-strategy-badge.ok {
  color: #04140f;
  background: #34d399;
}
.pr-strategy-badge.bad {
  color: #fff;
  background: #ef4444;
}
.pr-strategy-badge.miss {
  color: #04140f;
  background: #fbbf24;
}

/* Geometric controls only — keep original theme, square buttons/tabs/inputs. */

button,
[role="button"],
.cta,
.cta-secondary,
.chip,
.period-chip,
.unit-toggle button,
.career-tabs button,
.profile-tabs button,
.street-tabs button,
.analysis-tabs button,
.preflop-subtabs button,
.upload-submit,
.nav-cta,
.nav-ghost,
.topbar-nav > a,
.profile-chip,
.panel button[type="submit"],
input,
select,
textarea,
.panel input,
.results-controls select {
  border-radius: 0 !important;
}
:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --bg-panel: #161616;
  --ink: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #88f991;
  --accent-strong: #6ee87a;
  --accent-ink: #0a0a0a;
  --line: #262626;
  --line-soft: #1c1c1c;
  --danger: #ff6b6b;
  --raise: #ef4444;
  --raise-3bet: #a855f7;
  --raise-4bet: #eab308;
  --call: #22c55e;
  --fold: #2563eb;
  --glow: rgba(136, 249, 145, 0.22);
  /* Плавный easing для hover/active кнопок */
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-transition:
    background-color 0.36s var(--ease-out-smooth),
    background 0.36s var(--ease-out-smooth),
    color 0.36s var(--ease-out-smooth),
    border-color 0.36s var(--ease-out-smooth),
    box-shadow 0.36s var(--ease-out-smooth),
    transform 0.36s var(--ease-out-smooth),
    filter 0.36s var(--ease-out-smooth),
    opacity 0.36s var(--ease-out-smooth);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 70% 15%, rgba(136, 249, 145, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(91, 141, 239, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0b0d10 0%, var(--bg) 40%, #080808 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* Плавные hover/active для всех кнопок сайта */
button,
[role="button"],
.cta,
.cta-secondary,
.chip {
  transition: var(--btn-transition);
}

#root {
  min-height: 100dvh;
  width: 100%;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}
