:root {
  color-scheme: light;
  --ink: #102019;
  --ink-2: #4b5b53;
  --muted: #758179;
  --line: #dfe5dc;
  --surface: #ffffff;
  --surface-2: #f4f6f2;
  --surface-3: #e9eee7;
  --dark: #0b1712;
  --lime: #c8ff31;
  --lime-2: #aee220;
  --coral: #ff715b;
  --coral-soft: #fff0ed;
  --blue: #3e6df2;
  --blue-soft: #edf2ff;
  --amber: #d98900;
  --amber-soft: #fff6df;
  --green: #08764b;
  --green-soft: #e7f7ef;
  --shadow: 0 18px 50px rgba(11, 23, 18, 0.08);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface-2);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface-2);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(62, 109, 242, 0.24);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  display: none;
}

.sidebar-backdrop,
.sidebar-close.icon-button {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px 22px;
  color: #fff;
  background: var(--dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 28px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--dark);
  border-radius: 11px;
  background: var(--lime);
  font-size: 17px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: #8ca097;
  font: 500 10px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #9eaea6;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  font-weight: 600;
  transition: 160ms ease;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.studio-nav-link { text-decoration: none; }
.extra-market-summary { margin-top: 18px; }
.extra-market-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.extra-market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.extra-market-card { padding: 14px; border-radius: 14px; border: 1px solid #bdd0c0; background: #f7faf7; color: #153021; }
.extra-market-heading, .extra-market-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.extra-market-heading strong { font-size: 14px; }
.extra-market-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.extra-market-pair span { display: grid; gap: 2px; padding: 9px; border-radius: 9px; background: #e8f1e9; font-size: 12px; }
.extra-market-pair b { font-size: 18px; }.extra-market-pair small { color: #54705b; }
.extra-market-foot span:last-child { font-weight: 800; }
.room-market-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: #476451; }
.room-market-balance a { margin-left: auto; font-weight: 700; }
.room-market-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.room-market-entry label { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; }
.room-market-entry select, .room-market-entry input { width: 100%; min-width: 0; border: 1px solid #b8cdbd; border-radius: 9px; padding: 10px; background: #fff; color: #153021; font: inherit; }
.room-market-entry small { grid-column: 1 / -1; color: #54705b; }
.room-market-entry button { grid-column: 1 / -1; width: 100%; }
.extra-market-card > .button { margin-top: 12px; width: 100%; }
.extra-market-empty, .extra-market-queue { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border: 1px dashed #b8cabd; border-radius: 12px; }
.extra-market-queue span { padding: 5px 8px; border-radius: 8px; background: #e6f0e8; font-size: 12px; }
.overlay-extras { grid-column: 1 / -1; width: 100%; margin: 0; }
.overlay-extras .extra-market-title, .overlay-extras .extra-market-card,
.public-extras .extra-market-title, .public-extras .extra-market-card { color: #e9f7ed; }
.overlay-extras .extra-market-card, .public-extras .extra-market-card { background: #12271a; border-color: #3c694b; }
.overlay-extras .extra-market-pair span, .public-extras .extra-market-pair span { background: #24442b; }
.overlay-extras .extra-market-pair small, .public-extras .extra-market-pair small { color: #a7c7b0; }
.public-extras { margin-top: 14px; }
.public-extras .extra-market-title { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.public-extras .extra-market-card { padding: 11px 13px; }
.public-extras .extra-market-pair { margin: 7px 0; }
.public-extras .extra-market-pair span { padding: 6px 8px; }

.nav-button.active .nav-icon {
  color: var(--dark);
  background: var(--lime);
}

.nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  transition: 160ms ease;
}

.nav-icon svg,
.button-icon svg,
.icon-button svg,
.status-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.plan-card {
  margin-top: auto;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.plan-card .eyebrow {
  color: var(--lime);
}

.plan-card strong {
  display: block;
  margin: 7px 0 4px;
  font: 700 16px/1.25 "Manrope", sans-serif;
}

.plan-card p {
  margin: 0 0 14px;
  color: #9eaea6;
  font-size: 12px;
  line-height: 1.45;
}

.plan-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.plan-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.main-area {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 242, 0.92);
  backdrop-filter: blur(16px);
}

.topbar-leading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sidebar-toggle {
  flex: 0 0 auto;
}

.app-shell.sidebar-collapsed .page {
  width: 100%;
}

.mobile-brand {
  display: none;
}

.context-title {
  font: 800 18px/1.1 "Manrope", sans-serif;
  letter-spacing: -0.035em;
}

.context-title small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 500 12px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.account-menu {
  position: relative;
  z-index: 30;
}

.account-menu summary {
  list-style: none;
  cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary:focus-visible {
  outline: 3px solid rgba(62, 109, 242, 0.24);
  outline-offset: 2px;
}

.profile-caret {
  width: 7px;
  height: 7px;
  margin: -4px 2px 0 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.account-menu[open] .profile-caret {
  transform: translateY(4px) rotate(225deg);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(270px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-menu-identity {
  display: grid;
  gap: 3px;
  padding: 12px 12px 10px;
}

.account-menu-identity small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.account-menu-identity > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.account-menu-panel > button,
.account-menu-panel > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.account-menu-panel > button:hover,
.account-menu-panel > a:hover,
.account-menu-panel > button:focus-visible,
.account-menu-panel > a:focus-visible {
  background: var(--surface-2);
}

.account-menu-panel svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.account-menu-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.account-menu-panel > .account-menu-logout {
  color: #b43b32;
}

button.profile-chip {
  color: inherit;
  border: 0;
  cursor: pointer;
}

.sign-in-button {
  min-height: 38px;
  text-decoration: none;
}

.guest-card .button {
  width: 100%;
  margin-top: 14px;
  color: var(--dark);
  text-decoration: none;
}

.avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: var(--dark);
  font: 700 12px/1 "Manrope", sans-serif;
}

.profile-chip span {
  font-size: 13px;
  font-weight: 700;
}

.page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 52px) 110px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font: 800 clamp(26px, 3.4vw, 38px)/1.08 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 6px;
  font: 800 21px/1.18 "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 4px;
  font: 700 15px/1.25 "Manrope", sans-serif;
  letter-spacing: -0.025em;
}

.subtle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--dark);
  background: var(--lime);
}

.button.primary:hover {
  background: var(--lime-2);
}

.button.dark {
  color: #fff;
  background: var(--dark);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button.danger {
  color: #a02f21;
  border-color: #ffd1ca;
  background: var(--coral-soft);
}

.button.danger.outline {
  background: var(--surface);
}

.button.ghost {
  min-height: 36px;
  padding: 0 10px;
  color: var(--ink-2);
  border-color: transparent;
  background: transparent;
}

.button.small {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.mode-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #d2dfcc;
  border-radius: 16px;
  background: #eff6eb;
}

.mode-notice .status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green);
  border-radius: 11px;
  background: #dff0d8;
}

.mode-notice strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.mode-notice p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge.open,
.badge.verified,
.badge.paid {
  color: var(--green);
  background: var(--green-soft);
}

.badge.pending,
.badge.closed {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.settled {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.rejected,
.badge.unpaid {
  color: #af3e2d;
  background: var(--coral-soft);
}

.round-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.round-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px 26px;
  color: #fff;
  background: var(--dark);
}

.round-hero > * {
  min-width: 0;
}

.round-hero .eyebrow {
  margin-bottom: 9px;
  color: var(--lime);
}

.round-hero h2 {
  margin-bottom: 7px;
  font-size: clamp(21px, 3vw, 28px);
  overflow-wrap: anywhere;
}

.round-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #a8b5ae;
  font-size: 12px;
}

.round-meta span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.round-meta svg {
  width: 15px;
  height: 15px;
}

.round-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.round-actions > * {
  min-width: 0;
}

.round-actions .button { white-space: normal; }

.round-switcher {
  min-width: 0;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.round-switcher-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.round-switcher-heading h2 { margin: 3px 0 0; font-size: 17px; }
.round-switcher-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.round-switcher-list { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 8px; }
.round-switcher-item { flex: 0 0 clamp(190px, 27%, 270px); min-width: 0; padding: 11px 13px; text-align: left; border: 1px solid var(--line); border-radius: 12px; color: var(--dark); background: var(--surface-2); cursor: pointer; }
.round-switcher-item strong, .round-switcher-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-switcher-item strong { font-size: 13px; }
.round-switcher-item span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.round-switcher-item:hover, .round-switcher-item:focus-visible { border-color: var(--green); }
.round-switcher-item.is-selected { border-color: var(--green); background: #e6f5e4; box-shadow: inset 0 0 0 1px var(--green); }
.round-switcher-item.is-selected strong { color: #123b20; }

.round-hero .button.secondary,
.round-hero .icon-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.summary-item {
  padding: 19px 22px;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.summary-value {
  display: block;
  font: 800 23px/1 "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.summary-value small {
  margin-left: 3px;
  color: var(--muted);
  font: 600 11px/1 "DM Sans", sans-serif;
}

.market-wrap {
  padding: 25px;
}

.market-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.market-heading p,
.section-heading p {
  margin: 0;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: stretch;
  gap: 13px;
}

.side-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.side-card.win {
  --side-color: var(--green);
  --side-soft: var(--green-soft);
}

.side-card.lose {
  --side-color: var(--coral);
  --side-soft: var(--coral-soft);
}

.side-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--side-color);
  border-radius: 12px;
  background: var(--side-soft);
  font: 800 15px/1 "Manrope", sans-serif;
}

.side-title span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.side-amount {
  margin: 22px 0 14px;
  font: 800 clamp(26px, 4vw, 36px)/1 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.side-amount small {
  color: var(--muted);
  font: 600 12px/1 "DM Sans", sans-serif;
  letter-spacing: 0;
}

.match-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce3da;
}

.match-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--side-color);
}

.side-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.side-foot strong {
  color: var(--ink);
}

.versus {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.versus span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.balance-control {
  display: flex;
  flex: 1 1 360px;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #b8e5ce;
  border-radius: 13px;
  background: var(--green-soft);
}

.balance-control.is-limited {
  border-color: #f2d398;
  background: #fff8e8;
}

.balance-control > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #155a38;
  border-radius: 10px;
  background: #fff;
}

.balance-control.is-limited > span {
  color: #986212;
}

.balance-control svg {
  width: 17px;
  height: 17px;
}

.balance-control strong,
.balance-control small {
  display: block;
}

.balance-control strong {
  font-size: 11px;
}

.balance-control small {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.4;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.75fr);
  gap: 20px;
  margin-top: 20px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.bet-list,
.activity-list,
.history-list {
  display: grid;
  gap: 1px;
}

.bet-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 74px 92px 92px auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0eb;
}

.bet-row:last-child {
  border-bottom: 0;
}

.bettor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bettor-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--ink);
  border-radius: 11px;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 800;
}

.bettor-name {
  min-width: 0;
}

.bettor-name strong,
.bettor-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bettor-name strong {
  font-size: 13px;
}

.bettor-name span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.side-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.side-pill.win {
  color: var(--green);
  background: var(--green-soft);
}

.side-pill.lose {
  color: #ac3b2b;
  background: var(--coral-soft);
}

.bet-money strong,
.bet-match strong {
  display: block;
  font-size: 13px;
}

.bet-money span,
.bet-match span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.more-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.more-button:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0eb;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}

.activity-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.activity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.activity-item time {
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  padding: 38px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  color: var(--ink-2);
  border-radius: 15px;
  background: var(--surface-3);
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 110px) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.history-card:last-child {
  border-bottom: 0;
}

.history-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.history-stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.history-stat strong {
  font-size: 13px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.billing-panel {
  grid-column: 1 / -1;
}

.mp-mini-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  color: #0878c9;
  border: 1px solid #b9dcf5;
  border-radius: 999px;
  background: #edf8ff;
  font: 800 11px/1 "Manrope", sans-serif;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.payment-provider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #cde6f7;
  border-radius: 16px;
  background: #f3faff;
}

.provider-shield {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0878c9;
  border-radius: 12px;
  background: #dcefff;
}

.provider-shield svg {
  width: 20px;
  height: 20px;
}

.payment-provider strong,
.payment-provider small {
  display: block;
}

.payment-provider strong {
  font-size: 14px;
}

.payment-provider small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.plan-options {
  gap: 9px;
}

.plan-option {
  position: relative;
  overflow: hidden;
}

.plan-option::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: #1597df;
  opacity: 0;
  transition: opacity 160ms ease;
}

.plan-option:hover::after,
.plan-option:focus-visible::after {
  opacity: 1;
}

.plan-option:disabled {
  cursor: wait;
  opacity: 0.68;
}

.free-plan {
  cursor: default;
}

.plan-green {
  color: var(--green);
  background: var(--green-soft);
}

.plan-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.plan-dark {
  color: var(--lime);
  background: var(--dark);
}

.checkout-spinner {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2px solid #b9dcf5;
  border-top-color: #0878c9;
  border-radius: 50%;
  animation: payment-spin 700ms linear infinite;
}

.payment-dialog {
  width: min(440px, 100%);
}

.payment-result {
  display: grid;
  justify-items: center;
  padding: 36px 28px 25px;
  text-align: center;
}

.payment-result-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  place-items: center;
  color: #0878c9;
  border-radius: 20px;
  background: #e8f6ff;
}

.payment-result.approved .payment-result-icon {
  color: var(--green);
  background: var(--green-soft);
}

.payment-result.failed .payment-result-icon {
  color: var(--red);
  background: var(--red-soft);
}

.payment-result-icon svg {
  width: 30px;
  height: 30px;
}

.payment-result h2 {
  margin: 15px 0 7px;
  font-size: 25px;
}

.payment-result p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-loader {
  width: min(250px, 80%);
  height: 5px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.payment-loader i {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: #1597df;
  animation: payment-slide 1.25s ease-in-out infinite;
}

@keyframes payment-spin {
  to { transform: rotate(360deg); }
}

@keyframes payment-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(245%); }
}

.lobby-page {
  width: min(1320px, 100%);
}

.lobby-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.lobby-head h1 {
  margin-top: 5px;
  font-size: clamp(31px, 4vw, 45px);
}

.lobby-head .subtle {
  font-size: 15px;
}

.lobby-pulse {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 9px;
  min-width: 188px;
  padding: 13px 16px;
  color: #fff;
  border-radius: 16px;
  background: var(--dark);
}

.lobby-pulse > span {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(200, 255, 49, 0.28);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(200, 255, 49, 0.08);
}

.lobby-pulse strong {
  font-size: 13px;
}

.lobby-pulse small {
  color: #9eaea6;
  font-size: 11px;
}

.discover-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.search-field {
  display: flex;
  flex: 1;
  min-width: 220px;
  align-items: center;
  gap: 9px;
  height: 45px;
  padding: 0 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.search-field svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 37px;
  padding: 0 13px;
  color: var(--ink-2);
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-chip:hover {
  background: var(--surface-2);
}

.filter-chip.active {
  color: #fff;
  background: var(--dark);
}

.catalog-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 23px 2px 12px;
}

.catalog-summary strong {
  font-size: 14px;
}

.catalog-summary span {
  color: var(--muted);
  font-size: 12px;
}

.live-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.live-game-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(11, 23, 18, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.live-game-card:hover {
  border-color: #c8d2c5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.live-game-card.is-starting {
  background: #fbfcfa;
}

.live-card-top,
.live-card-foot,
.host-identity,
.live-meta,
.coverage-block > div:first-child {
  display: flex;
  align-items: center;
}

.live-card-top,
.live-card-foot,
.coverage-block > div:first-child {
  justify-content: space-between;
  gap: 14px;
}

.host-identity {
  min-width: 0;
  gap: 10px;
}

.host-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  font: 800 12px/1 "Manrope", sans-serif;
}

.accent-lime {
  color: var(--dark);
  background: var(--lime);
}

.accent-blue {
  color: #fff;
  background: var(--blue);
}

.accent-coral {
  color: #fff;
  background: var(--coral);
}

.accent-amber {
  color: #573600;
  background: #ffd66f;
}

.host-identity > div {
  min-width: 0;
}

.host-identity strong,
.host-identity > div > span {
  display: flex;
  align-items: center;
}

.host-identity strong {
  gap: 5px;
  font-size: 14px;
}

.host-identity > div > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.host-copy strong {
  display: flex;
  align-items: center;
  gap: 5px;
}

.host-copy .host-trust {
  margin-top: 1px;
  font-weight: 700;
}

.host-copy .host-trust.is-verified {
  color: #18754a;
}

.host-copy .host-trust.is-unverified {
  color: #9a5145;
}

.host-copy .host-game {
  color: var(--muted);
}

.verified-mark {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--blue);
}

.verified-mark svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.live-card-copy {
  padding: 19px 0 15px;
}

.live-card-copy h2 {
  min-height: 50px;
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.25;
}

.live-meta {
  flex-wrap: wrap;
  gap: 8px 15px;
  color: var(--muted);
  font-size: 12px;
}

.live-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-meta svg {
  width: 15px;
  height: 15px;
}

.mini-market {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.mini-market > div:last-child {
  text-align: right;
}

.mini-market span,
.mini-market strong {
  display: block;
}

.mini-market div > span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.mini-market strong {
  font: 800 18px/1.15 "Manrope", sans-serif;
}

.mini-vs {
  color: #9da9a1;
  font-size: 10px;
  font-weight: 800;
}

.coverage-block {
  padding: 16px 1px 18px;
}

.coverage-block > div:first-child span,
.coverage-block > div:first-child strong,
.coverage-block small {
  font-size: 11px;
}

.coverage-block > div:first-child span,
.coverage-block small {
  color: var(--muted);
}

.coverage-track {
  height: 7px;
  margin: 8px 0 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.coverage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.live-card-foot {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.live-card-foot > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 10px;
}

.live-card-foot .button {
  flex: 0 0 auto;
}

.catalog-empty {
  grid-column: 1 / -1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 0;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.room-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 18px;
}

.stream-placeholder {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 20px;
  color: #fff;
  border-radius: 24px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.stream-placeholder.has-video {
  min-height: 0;
  max-height: 560px;
}

.stream-player {
  flex: none;
  align-self: center;
  width: min(100%, 760px);
  height: auto;
  max-height: 428px;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 14px 0;
  border: 0;
  border-radius: 14px;
  background: #000;
}

.stream-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 8px 12px;
  border: 1px solid #66766f;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.stream-center .stream-open-link { margin-top: 18px; }
.stream-open-link:hover { background: #24372e; }

.stream-top,
.stream-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #9eaea6;
  font-size: 12px;
}

.stream-top > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stream-top svg {
  width: 16px;
  height: 16px;
}

.stream-center {
  display: grid;
  max-width: 390px;
  margin: auto;
  place-items: center;
  text-align: center;
}

.stream-center .host-avatar {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  border-radius: 21px;
  font-size: 18px;
}

.stream-center strong {
  font: 800 22px/1.2 "Manrope", sans-serif;
}

.stream-center p {
  margin: 8px 0 0;
  color: #9eaea6;
  font-size: 13px;
  line-height: 1.55;
}

.room-info-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.room-info-card h1 {
  margin: 25px 0 20px;
  font-size: 28px;
}

.active-box-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(118, 230, 67, 0.38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(118, 230, 67, 0.14), rgba(118, 230, 67, 0.04));
}

.active-box-card.is-empty {
  grid-template-columns: auto minmax(0, 1fr);
  border-color: var(--line);
  background: var(--surface-2);
}

.active-box-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--lime);
}

.active-box-icon svg,
.payment-box-summary > span svg {
  width: 21px;
  height: 21px;
}

.active-box-card > div,
.payment-box-item > div,
.payment-box-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.active-box-card small,
.payment-box-item small,
.payment-box-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.active-box-card strong,
.payment-box-item strong,
.payment-box-summary strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.active-box-card > div > span,
.payment-box-item > div > span,
.payment-box-summary > div > span {
  color: var(--muted);
  font-size: 13px;
}

.participant-box {
  margin-bottom: 16px;
}

.account-warning {
  margin: 14px 28px 0;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(239, 169, 55, .42);
  border-radius: 15px;
  background: rgba(239, 169, 55, .1);
}

.account-warning > span {
  width: 26px;
  color: var(--amber);
  flex: 0 0 auto;
}

.account-warning > span svg { width: 24px; height: 24px; }
.account-warning p { margin: 3px 0; color: var(--text); }
.account-warning small { color: var(--muted); }

.payment-box-summary,
.payment-box-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.payment-box-summary {
  padding: 15px;
  border-radius: 15px;
  background: var(--surface-2);
}

.payment-box-summary > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.payment-box-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.payment-box-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.payment-box-item.is-active {
  border-color: rgba(118, 230, 67, .5);
  box-shadow: inset 3px 0 var(--lime);
}

.payout-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.payout-confirmation > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-soft);
}

.payout-confirmation > span svg { width: 20px; height: 20px; }
.payout-confirmation > div { display: grid; gap: 2px; min-width: 0; }
.payout-confirmation small { color: var(--muted); font-size: 12px; }
.payout-confirmation strong { overflow-wrap: anywhere; }
.payout-confirmation > div > span { color: var(--muted); font-size: 13px; }

.payout-line {
  display: block;
  margin-top: 4px;
  color: var(--green) !important;
  font-size: 12px;
  font-weight: 700;
}

.payout-detail-row > strong {
  max-width: 230px;
  overflow-wrap: anywhere;
  text-align: right;
}

.result-summary {
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface-2);
}

.share-room-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 22px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background: var(--dark);
}

.qr-card > strong { font-size: 18px; }
.qr-card > span { color: #aebbb4; font-size: 13px; line-height: 1.45; }

.room-qr {
  width: 248px;
  min-height: 248px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.room-qr canvas,
.room-qr img {
  display: block;
  width: 232px;
  height: 232px;
}

.qr-unavailable {
  color: var(--ink);
  font-size: 14px;
}

.share-options {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
}

.share-options h3 { margin: 4px 0 6px; font-size: 23px; }
.share-options p { margin: 0; color: var(--muted); line-height: 1.5; }

.share-link-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.share-link-field > span,
.share-link-field button {
  color: var(--green);
}

.share-link-field svg { width: 20px; height: 20px; }

.share-link-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.share-link-field button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  background: var(--green-soft);
}

.share-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.share-action-grid .button:last-child { grid-column: 1 / -1; }

.share-guidance {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--green-soft);
}

.share-guidance span { color: var(--green); font-size: 13px; line-height: 1.45; }

[hidden] {
  display: none !important;
}

.room-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.room-rule-grid div {
  padding: 12px;
  border-right: 1px solid var(--line);
}

.room-rule-grid div:last-child {
  border-right: 0;
}

.room-rule-grid span,
.room-rule-grid strong {
  display: block;
}

.room-rule-grid span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.room-rule-grid strong {
  font-size: 12px;
}

.room-main-action {
  width: 100%;
  margin-top: auto;
}

.room-market {
  margin-top: 18px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.setting-row span {
  color: var(--muted);
  font-size: 11px;
}

.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #cdd5ca;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: 150ms ease;
}

.toggle.on {
  background: var(--green);
}

.toggle.on::after {
  transform: translateX(18px);
}

.bottom-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(5, 12, 9, 0.58);
  backdrop-filter: blur(7px);
  animation: fade-in 150ms ease;
}

.modal {
  width: min(560px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(5, 12, 9, 0.28);
  animation: modal-in 180ms ease;
}

.modal.wide {
  width: min(760px, 100%);
}

.modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 17px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-header h2 {
  font-size: 20px;
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.field textarea {
  min-height: 86px;
  padding-top: 12px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a9b2ac;
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--muted);
  font-weight: 700;
  transform: translateY(-50%);
}

.input-prefix input {
  padding-left: 37px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice-card {
  position: relative;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card label {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: 140ms ease;
}

.choice-card input:checked + label {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: var(--green-soft);
}

.choice-card.lose input:checked + label {
  border-color: var(--coral);
  box-shadow: inset 0 0 0 1px var(--coral);
  background: var(--coral-soft);
}

.choice-card label > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
  font-weight: 800;
}

.choice-card label strong,
.choice-card label small {
  display: block;
}

.choice-card label strong {
  font-size: 13px;
}

.choice-card label small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 108px;
  place-items: center;
  padding: 16px;
  border: 1px dashed #b9c4b7;
  border-radius: 15px;
  background: var(--surface-2);
  text-align: center;
}

.upload-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.upload-box strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.upload-box span {
  color: var(--muted);
  font-size: 10px;
}

.upload-icon {
  display: grid;
  width: 35px;
  height: 35px;
  margin: 0 auto 8px;
  place-items: center;
  color: var(--green);
  border-radius: 11px;
  background: var(--green-soft);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #cae3d5;
  border-radius: 13px;
  background: var(--green-soft);
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.check-row strong,
.check-row span {
  display: block;
}

.check-row strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.check-row span {
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.4;
}

.info-box {
  padding: 13px;
  color: var(--ink-2);
  border-radius: 13px;
  background: var(--blue-soft);
  font-size: 11px;
  line-height: 1.5;
}

.participant-dialog {
  width: min(780px, 100%);
}

.auth-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 8px 8px;
  text-align: center;
}

.auth-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #155a38;
  border-radius: 18px;
  background: var(--green-soft);
}

.auth-symbol svg {
  width: 28px;
  height: 28px;
}

.auth-panel h3 {
  margin-top: 4px;
  font-size: 20px;
}

.auth-panel p {
  max-width: 430px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.auth-main-action {
  width: min(360px, 100%);
  margin-top: 7px;
  text-decoration: none;
}

.auth-panel small {
  color: var(--muted);
  font-size: 12px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.35fr);
  gap: 18px;
}

.auth-form {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.auth-form > p {
  margin-top: -6px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.auth-form .auth-symbol {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.auth-form .auth-main-action {
  width: 100%;
}

.register-form {
  background: #fff;
}

.register-role-grid,
.role-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.session-role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.register-role {
  cursor: pointer;
}

.register-role input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.register-role > span {
  display: grid;
  min-height: 110px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  transition: 0.18s ease;
}

.register-role input:checked + span {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(50, 213, 131, 0.16);
  background: var(--green-soft);
}

.register-role svg {
  width: 22px;
  height: 22px;
  color: #155a38;
}

.register-role strong,
.register-role small {
  display: block;
}

.register-role small {
  color: var(--muted);
  font-size: 10px;
}

.auth-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.auth-note svg {
  width: 18px;
  height: 18px;
  color: #155a38;
}

.role-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 8px;
  color: #d8ffe8;
  border: 1px solid rgba(216, 255, 232, 0.22);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.role-settings {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.role-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.role-choice.is-primary {
  border-color: var(--green);
  background: var(--green-soft);
}

.role-choice-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #155a38;
  border-radius: 11px;
  background: #fff;
}

.role-choice-icon svg {
  width: 18px;
  height: 18px;
}

.role-choice strong,
.role-choice small {
  display: block;
}

.role-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.verified-profile-preview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.verified-profile-preview strong,
.verified-profile-preview span {
  display: block;
}

.verified-profile-preview > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nickname-prefix input {
  padding-left: 34px;
}

.account-public-name {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.account-public-name span,
.review-nickname {
  color: #18754a;
  font-size: 12px;
  font-weight: 800;
}

.review-nickname {
  display: inline !important;
  margin-left: 5px;
}

.identity-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #cae3d5;
  border-radius: 14px;
  background: var(--green-soft);
}

.identity-privacy > span {
  flex: 0 0 auto;
  color: #155a38;
}

.identity-privacy strong,
.identity-privacy p {
  display: block;
}

.identity-privacy strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.identity-privacy p,
.verification-state p,
.verification-success p {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.verification-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.dni-guidance {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 13px;
  background: var(--blue-soft);
}

.dni-guidance strong {
  font-size: 13px;
}

.dni-guidance span {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.verification-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
}

.verification-success > svg {
  width: 42px;
  height: 42px;
  color: #155a38;
}

.verification-success strong {
  font-size: 18px;
}

.settings-actions {
  display: flex;
  gap: 9px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.settings-actions a {
  text-decoration: none;
}

.admin-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 18px;
  color: var(--ink-2);
  text-align: center;
}

.admin-loading svg {
  width: 32px;
  height: 32px;
  color: var(--green);
}

.admin-loading span {
  color: var(--muted);
  font-size: 12px;
}

.verification-review-list {
  display: grid;
  gap: 15px;
}

.verification-review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.verification-review-head,
.verification-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}

.verification-review-head strong,
.verification-review-head span {
  display: block;
}

.verification-review-head > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.dni-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.dni-review-grid figure {
  margin: 0;
  background: #07110c;
}

.dni-review-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.dni-review-grid figcaption {
  padding: 8px 10px;
  color: #dbe7df;
  font-size: 11px;
  text-align: center;
}

.review-note {
  margin: 12px 14px 0;
  padding: 10px 12px;
  color: #8c2f22;
  border-radius: 11px;
  background: var(--coral-soft);
  font-size: 12px;
}

.verification-review-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.participant-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #cae3d5;
  border-radius: 15px;
  background: var(--green-soft);
}

.participant-intro .status-icon {
  flex: 0 0 auto;
}

.participant-intro strong,
.participant-intro p {
  display: block;
}

.participant-intro strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.participant-intro p {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}

.receipt-workflow {
  display: grid;
  gap: 12px;
  margin-bottom: 21px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-2);
}

.participant-upload {
  background: var(--surface);
}

.receipt-preview-wrap {
  overflow: hidden;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #07110c;
}

.receipt-preview-wrap[hidden] {
  display: none;
}

.receipt-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.ocr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ocr-toolbar strong,
.ocr-toolbar span {
  display: block;
}

.ocr-toolbar strong {
  font-size: 13px;
}

.ocr-toolbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ocr-status {
  min-height: 38px;
  padding: 10px 12px;
  color: var(--ink-2);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.45;
}

.ocr-status.working {
  color: #5d4a00;
  background: #fff7d6;
}

.ocr-status.success {
  color: #155a38;
  background: var(--green-soft);
}

.ocr-status.error {
  color: #8c2f22;
  background: var(--coral-soft);
}

.ocr-raw-details {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12px;
}

.ocr-raw-details[hidden] {
  display: none;
}

.ocr-raw-details summary {
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 700;
}

.ocr-raw-details pre {
  max-height: 180px;
  margin: 10px 0 0;
  overflow: auto;
  color: var(--muted);
  white-space: pre-wrap;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.form-section-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.form-section-heading strong {
  font-size: 14px;
}

.form-section-heading span,
.field-hint {
  color: var(--muted);
  font-size: 11px;
}

.fraud-warning {
  padding: 15px;
  color: #7c2c20;
  border: 1px solid #efb4aa;
  border-radius: 14px;
  background: #fff4f1;
}

.fraud-warning strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.fraud-warning p {
  font-size: 12px;
  line-height: 1.55;
}

.fraud-check {
  border-color: #efb4aa;
  background: #fff9f7;
}

.form-error {
  padding: 12px 13px;
  color: #8c2f22;
  border: 1px solid #efb4aa;
  border-radius: 12px;
  background: var(--coral-soft);
  font-size: 12px;
  line-height: 1.45;
}

.form-error[hidden] {
  display: none;
}

.detail-source {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  color: #155a38;
  border-radius: 999px;
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 800;
}

.participant-note {
  margin-top: 13px;
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-2);
}

.participant-note strong {
  font-size: 12px;
}

.participant-note p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.checkout-notice,
.checkout-error {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.45;
}

.checkout-notice {
  color: var(--ink-2);
  border: 1px solid #c9d8ff;
  background: var(--blue-soft);
}

.checkout-error {
  color: #8c2f22;
  border: 1px solid #efc2bb;
  background: var(--coral-soft);
}

.checkout-notice strong,
.checkout-notice span,
.checkout-error strong,
.checkout-error span {
  display: block;
}

.checkout-notice .button {
  width: max-content;
  margin-top: 5px;
  color: #07110c;
  text-decoration: none;
}

.settle-options {
  display: grid;
  gap: 10px;
}

.result-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.result-option:hover {
  border-color: #aab7a7;
  background: var(--surface-2);
}

.result-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
}

.result-option.win .result-symbol {
  color: var(--green);
  background: var(--green-soft);
}

.result-option.lose .result-symbol {
  color: #ac3b2b;
  background: var(--coral-soft);
}

.result-option.void .result-symbol {
  color: var(--amber);
  background: var(--amber-soft);
}

.result-option strong,
.result-option span {
  display: block;
}

.result-option strong {
  font-size: 13px;
}

.result-option span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.public-board {
  padding: 18px;
  color: #fff;
  border-radius: 20px;
  background: var(--dark);
}

.public-host-trust {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin: -3px -3px 14px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.public-host-trust strong,
.public-host-trust > div:not(.host-reputation) > span {
  display: block;
}

.public-host-trust > div:not(.host-reputation) > span {
  margin-top: 3px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.public-board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.public-board .eyebrow {
  color: var(--lime);
}

.public-board h2 {
  margin: 5px 0 4px;
  font-size: 25px;
}

.public-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.public-side {
  padding: 12px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.public-side span {
  display: block;
  color: #9eb0a6;
  font-size: 11px;
  font-weight: 700;
}

.public-side strong {
  display: block;
  margin: 5px 0;
  font: 800 26px/1 "Manrope", sans-serif;
}

.public-side small {
  color: var(--lime);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
  padding: 13px 15px;
  color: #fff;
  border-radius: 14px;
  background: var(--dark);
  box-shadow: 0 18px 50px rgba(5, 12, 9, 0.25);
  animation: toast-in 180ms ease;
}

.toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.toast.error .toast-dot {
  background: var(--coral);
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 12px;
}

.toast span {
  margin-top: 2px;
  color: #b7c4bd;
  font-size: 10px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.host-reputation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.host-reputation span {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.host-reputation strong {
  color: var(--ink);
  font-size: 13px;
}

.host-reputation.compact span {
  padding: 5px 8px;
  font-size: 11px;
}

.patch-assistant {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px solid #bcd1ff;
  border-radius: 16px;
  background: var(--blue-soft);
}

.patch-assistant > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
}

.patch-assistant > span svg {
  width: 21px;
  height: 21px;
}

.patch-assistant p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}

.patch-assistant.is-urgent {
  border-color: #f2cf8a;
  background: var(--amber-soft);
}

.patch-assistant.is-urgent > span {
  background: var(--amber);
}

.patch-assistant.is-balanced {
  grid-template-columns: auto minmax(0, 1fr);
  border-color: #bfe2ce;
  background: var(--green-soft);
}

.patch-assistant.is-balanced > span {
  background: var(--green);
}

.patch-suggestions,
.validation-actions,
.settlement-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.validation-queue {
  margin-top: 20px;
}

.validation-queue.is-empty {
  padding-block: 18px;
}

.validation-list {
  display: grid;
  gap: 12px;
}

.validation-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr) minmax(210px, .8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 15px;
  background: var(--surface);
}

.validation-card.safe { border-left-color: var(--green); }
.validation-card.warning,
.validation-card.manual { border-left-color: var(--amber); }
.validation-card.danger { border-left-color: var(--coral); }

.validation-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.validation-main > div {
  display: grid;
  min-width: 0;
}

.validation-main > div span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-light {
  width: 13px;
  height: 13px;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 0 0 2px currentColor;
}

.risk-light.safe { color: var(--green); background: var(--green); }
.risk-light.warning,
.risk-light.manual { color: var(--amber); background: var(--amber); }
.risk-light.danger { color: var(--coral); background: var(--coral); }

.validation-label {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 800;
}

.validation-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.validation-checks span,
.voucher-check-grid > div {
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.validation-checks span { padding: 6px 8px; }
.check-pass { color: var(--green); background: var(--green-soft); }
.check-warn { color: #8a5700; background: var(--amber-soft); }
.check-fail { color: #b43726; background: var(--coral-soft); }

.impact-preview {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
}

.impact-preview strong {
  color: var(--ink);
  font-size: 13px;
}

.voucher-score {
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.voucher-score > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
}

.voucher-score > div:first-child small {
  grid-column: 2;
  color: var(--muted);
}

.voucher-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.voucher-check-grid > div {
  display: flex;
  gap: 9px;
  padding: 10px;
}

.voucher-check-grid > div > span {
  font-size: 17px;
}

.voucher-check-grid > div div {
  display: grid;
  gap: 3px;
}

.voucher-check-grid small {
  color: inherit;
  font-weight: 500;
  opacity: .82;
}

.impact-detail {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.settlement-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  margin-bottom: 15px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface-2);
}

.settlement-progress > div:first-child {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.settlement-progress > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.settlement-progress-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.settlement-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.payment-proof-line {
  color: var(--green) !important;
  font-weight: 700;
}

.payment-destination-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background: var(--dark);
}

.payment-destination-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--dark);
  background: var(--lime);
}

.payment-destination-card svg {
  width: 22px;
  height: 22px;
}

.payment-destination-card > div {
  display: grid;
  gap: 3px;
}

.payment-destination-card small,
.payment-destination-card > div span {
  color: #a9b9b0;
}

.payment-destination-card strong {
  font-size: 22px;
}

.overlay-mode,
.overlay-mode body,
body.overlay-mode {
  background: transparent !important;
}

body.overlay-mode {
  min-width: 0;
  overflow: hidden;
}

.obs-overlay {
  display: flex;
  gap: 18px;
  align-items: stretch;
  width: min(1180px, calc(100vw - 40px));
  margin: 20px auto;
  color: #fff;
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, .3));
}

.obs-overlay.loading {
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--dark);
}

.overlay-market {
  flex: 1;
  min-width: 0;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: rgba(7, 17, 12, .94);
  backdrop-filter: blur(12px);
}

.overlay-head,
.overlay-brand,
.overlay-foot {
  display: flex;
  align-items: center;
}

.overlay-head {
  justify-content: space-between;
}

.overlay-brand {
  gap: 10px;
}

.overlay-brand > div {
  display: grid;
}

.overlay-brand small {
  color: #a9b9b0;
}

.overlay-live {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #ff8c7b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.overlay-live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(255, 113, 91, .14);
}

.overlay-market h1 {
  margin: 18px 0 16px;
  overflow: hidden;
  font-size: clamp(22px, 3vw, 40px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.overlay-sides > div:not(.overlay-vs) {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
}

.overlay-sides .win { color: var(--dark); background: var(--lime); }
.overlay-sides .lose { background: var(--coral); text-align: right; }
.overlay-sides span { font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.overlay-sides strong { font-size: clamp(22px, 3vw, 36px); }
.overlay-vs { color: #92a098; font-size: 12px; font-weight: 900; }

.overlay-progress {
  height: 7px;
  margin: 13px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.overlay-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), #fff);
}

.overlay-foot {
  gap: 18px;
  justify-content: space-between;
  color: #b9c5be;
  font-size: 13px;
}

.overlay-foot strong { color: #fff; }

.overlay-join {
  display: grid;
  width: 205px;
  place-items: center;
  align-content: center;
  padding: 18px;
  border-radius: 22px;
  color: var(--dark);
  background: #fff;
  text-align: center;
}

.overlay-join #overlay-qr {
  display: grid;
  width: 150px;
  min-height: 150px;
  place-items: center;
  margin-bottom: 9px;
}

.overlay-join img,
.overlay-join canvas { max-width: 100%; height: auto !important; }
.overlay-join span { margin-top: 3px; color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
  .validation-card { grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr); }
  .validation-actions { justify-content: flex-start; }
}

@media (max-width: 1020px) {
  .app-shell:not(.sidebar-collapsed) {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 14px;
  }

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

  .live-game-grid,
  .room-stage {
    grid-template-columns: 1fr;
  }

  .stream-placeholder {
    min-height: 380px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-item:nth-child(2) {
    border-right: 0;
  }

  .summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .auth-layout,
  .register-role-grid,
  .role-choice-grid {
    grid-template-columns: 1fr;
  }

  .register-role > span {
    min-height: 82px;
  }
  .account-warning {
    margin: 10px 14px 0;
  }

  .share-room-grid {
    grid-template-columns: 1fr;
  }

  .qr-card {
    padding: 18px;
  }

  .share-action-grid {
    grid-template-columns: 1fr;
  }

  .share-action-grid .button:last-child {
    grid-column: auto;
  }

  .active-box-card,
  .payment-box-item,
  .payout-confirmation {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .active-box-card > .badge,
  .payment-box-item > .badge,
  .payment-box-item > .button {
    grid-column: 2;
    justify-self: start;
  }

  .payout-confirmation > .button {
    grid-column: 2;
    justify-self: start;
  }

  .ocr-toolbar,
  .detail-source {
    align-items: stretch;
    flex-direction: column;
  }

  .ocr-toolbar .button {
    width: 100%;
  }

  .dni-review-grid {
    grid-template-columns: 1fr;
  }

  .verification-review-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .verification-review-actions .button {
    width: 100%;
  }

  .verified-profile-preview {
    grid-template-columns: auto 1fr;
  }

  .verified-profile-preview > .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 51;
    inset: 0 auto 0 0;
    display: flex;
    width: min(280px, calc(100vw - 48px));
    height: 100dvh;
    overflow-y: auto;
    padding-top: calc(28px + env(safe-area-inset-top));
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .app-shell.sidebar-collapsed .sidebar {
    display: flex;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .sidebar-close.icon-button {
    position: absolute;
    top: calc(23px + env(safe-area-inset-top));
    right: 14px;
    display: grid;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
  }

  .sidebar .brand {
    padding-right: 38px;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(5, 12, 9, 0.55);
  }

  .app-shell.sidebar-open .sidebar-backdrop {
    display: block;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 66px;
    padding: 10px 16px;
  }

  .topbar-leading {
    gap: 10px;
  }

  .context-title,
  .profile-chip .profile-name {
    display: none;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 800 16px/1 "Manrope", sans-serif;
    letter-spacing: -0.04em;
  }

  .mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .profile-chip {
    min-height: 40px;
    padding-right: 6px;
  }

  .page {
    padding: 23px 15px 108px;
  }

  .payment-provider {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .payment-provider .mp-mini-badge {
    grid-column: 1 / -1;
  }

  .page-heading {
    align-items: flex-start;
  }

  .lobby-head {
    align-items: flex-start;
  }

  .discover-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    min-width: 0;
  }

  .filter-row {
    margin-inline: -4px;
    padding-inline: 4px;
  }

  .live-game-grid {
    grid-template-columns: 1fr;
  }

  .page-heading .button span:not(.button-icon) {
    display: none;
  }

  h1 {
    font-size: 28px;
  }

  .mode-notice {
    grid-template-columns: auto 1fr;
  }

  .mode-notice > .badge {
    display: none;
  }

  .round-hero {
    grid-template-columns: 1fr;
    padding: 21px;
  }

  .round-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .round-actions .button {
    width: 100%;
    padding-inline: 10px;
    white-space: normal;
  }

  .round-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .round-meta span:last-child {
    grid-column: 1 / -1;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-item {
    padding: 16px;
  }

  .summary-value {
    font-size: 20px;
  }

  .market-wrap {
    padding: 19px;
  }

  .market-heading {
    align-items: flex-start;
  }

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

  .versus {
    height: 1px;
    background: var(--line);
  }

  .versus span {
    width: 34px;
    height: 34px;
    background: var(--surface);
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .balance-control {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 18px;
  }

  .bet-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    padding: 12px 0;
  }

  .bet-row .bet-match {
    display: none;
  }

  .bet-row .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .history-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .history-stat {
    display: none;
  }

  .settings-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .bottom-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
  }

  .bottom-nav .nav-button {
    display: grid;
    min-height: 54px;
    place-items: center;
    gap: 2px;
    padding: 4px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 9px;
    text-align: center;
  }

  .bottom-nav .nav-icon {
    width: 27px;
    height: 27px;
  }

  .bottom-nav .nav-button.active {
    color: var(--ink);
    background: var(--surface-2);
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal,
  .modal.wide {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .modal-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .public-sides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .public-side { min-width: 0; padding: 10px; }
  .public-side strong { font-size: clamp(19px, 6vw, 26px); }
  .public-side small { display: block; font-size: 10px; line-height: 1.25; }

  .public-host-trust .host-reputation {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .public-host-trust .host-reputation span {
    flex: 0 0 auto;
  }

  .public-host-trust {
    grid-template-columns: auto 1fr;
  }

  .public-host-trust > .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .toast {
    right: 15px;
    bottom: 88px;
    width: calc(100% - 30px);
  }

  .lobby-head {
    margin-bottom: 19px;
  }

  .lobby-head h1 {
    font-size: 31px;
  }

  .lobby-pulse {
    display: none;
  }

  .discover-toolbar {
    padding: 10px;
  }

  .live-game-card {
    padding: 17px;
    border-radius: 19px;
  }

  .live-card-copy h2 {
    min-height: 0;
    font-size: 19px;
  }

  .live-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-card-foot .button {
    width: 100%;
  }

  .stream-placeholder {
    min-height: 310px;
    border-radius: 20px;
  }

  .room-info-card {
    border-radius: 20px;
  }

  .room-info-card h1 {
    font-size: 24px;
  }
}

.wallet-heading-actions,
.balance-account-actions,
.history-pagination > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.live-session-strip,
.cash-closure-strip,
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.live-session-strip.is-active {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
}

.live-session-strip > div,
.cash-closure-strip > div {
  display: grid;
  gap: 3px;
  flex: 1;
}

.live-session-strip p,
.cash-closure-strip span,
.history-pagination > span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.deposit-history-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, .45fr) minmax(145px, .45fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.balance-account-card {
  flex-wrap: wrap;
}

.balance-account-card .balance-account-actions {
  flex: 1 0 100%;
  justify-content: flex-end;
}

.is-frozen {
  border-color: color-mix(in srgb, var(--red) 35%, var(--line)) !important;
  background: color-mix(in srgb, var(--red) 5%, var(--surface)) !important;
}

.compact-summary {
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .deposit-history-toolbar { grid-template-columns: 1fr; }
  .live-session-strip,
  .cash-closure-strip,
  .history-pagination { align-items: stretch; flex-direction: column; }
}

.room-balance-card,
.wallet-policy-strip,
.participant-balance-card,
.wallet-item,
.payment-source-card > span {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.room-balance-card,
.wallet-policy-strip,
.participant-balance-card,
.wallet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
}

.room-balance-card {
  justify-content: space-between;
  margin: 16px 0;
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  background: color-mix(in srgb, var(--green) 7%, var(--surface));
}

.room-balance-card > div:first-child,
.wallet-item > div:first-child,
.participant-balance-card > div {
  display: grid;
  gap: 3px;
}

.room-balance-card small,
.room-balance-card span,
.wallet-item span,
.participant-balance-card span,
.participant-balance-card small,
.wallet-policy-strip span,
.wallet-policy-strip small {
  color: var(--muted);
  font-size: 12px;
}

.room-balance-card > div:first-child > strong {
  font-size: 24px;
}

.room-balance-actions,
.wallet-batch-toolbar,
.wallet-item > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.wallet-summary-grid > div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-radius: 14px;
  background: var(--surface-2);
}

.wallet-summary-grid span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-summary-grid small {
  color: var(--muted);
  font-size: 11px;
}

.history-deposit-totals {
  display: grid;
  gap: 2px;
  text-align: right;
}

.history-deposit-totals span {
  color: var(--muted);
  font-size: 12px;
}

.notification-button {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}

.notification-list {
  display: grid;
  gap: 9px;
}

.notification-item {
  display: flex;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.notification-item > div {
  display: grid;
  gap: 3px;
}

.notification-item span,
.notification-item small {
  color: var(--muted);
  font-size: 12px;
}

.notification-item.rejected {
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
}

.wallet-summary-grid strong {
  font-size: 21px;
}

.wallet-policy-strip {
  justify-content: space-between;
  margin-bottom: 18px;
}

.wallet-policy-strip > div {
  display: grid;
  gap: 3px;
}

.wallet-queues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wallet-list,
.participant-balance-list,
.ledger-list {
  display: grid;
  gap: 9px;
}

.wallet-item {
  flex-wrap: wrap;
}

.wallet-item > div:first-child {
  flex: 1;
  min-width: 150px;
}

.wallet-item > div:last-child {
  flex: 1 0 100%;
  justify-content: flex-end;
}

.batch-payment-list .wallet-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(180px, 0.8fr);
}

.batch-payment-list .wallet-item > div:last-child {
  flex: initial;
  justify-content: initial;
}

.field.compact {
  gap: 4px;
}

.field.compact label {
  font-size: 11px;
}

.wallet-problem-list .wallet-item {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
}

.wallet-batch-toolbar {
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 750;
}

.balance-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.balance-account-card {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-2);
}

.balance-account-card small {
  color: var(--muted);
}

.participant-balance-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.balance-ledger {
  margin-top: 15px;
}

.balance-ledger summary {
  cursor: pointer;
  font-weight: 800;
}

.ledger-list {
  margin-top: 10px;
}

.ledger-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-list > div > span {
  display: grid;
  gap: 2px;
}

.positive { color: var(--green); }
.negative { color: var(--red); }

.payment-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.payment-source-card {
  cursor: pointer;
}

.payment-source-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-source-card > span {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 3px 10px;
  height: 100%;
  padding: 15px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.payment-source-card svg {
  grid-row: 1 / span 2;
  width: 24px;
}

.payment-source-card small {
  color: var(--muted);
}

.payment-source-card input:checked + span {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 18%, transparent);
}

.payment-source-card input:disabled + span {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 760px) {
  .wallet-summary-grid,
  .wallet-queues,
  .payment-source-grid {
    grid-template-columns: 1fr;
  }

  .batch-payment-list .wallet-item {
    grid-template-columns: 1fr auto;
  }

  .batch-payment-list .wallet-item > div:last-child {
    grid-column: 1 / -1;
  }

  .room-balance-card,
  .wallet-policy-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .participant-balance-card {
    grid-template-columns: auto 1fr;
  }

  .participant-balance-card > strong,
  .participant-balance-card > button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .patch-assistant,
  .validation-card {
    grid-template-columns: 1fr;
  }

  .patch-assistant > span {
    display: none;
  }

  .patch-suggestions,
  .validation-actions,
  .settlement-actions {
    justify-content: stretch;
  }

  .patch-suggestions .button,
  .validation-actions .button,
  .settlement-actions .button {
    flex: 1;
  }

  .voucher-check-grid {
    grid-template-columns: 1fr;
  }

  .settlement-progress > div:first-child {
    display: grid;
  }

  .payment-destination-card {
    grid-template-columns: auto 1fr;
  }

  .payment-destination-card .button {
    grid-column: 1 / -1;
  }

  .obs-overlay {
    gap: 10px;
    width: calc(100vw - 20px);
    margin: 10px;
  }

  .overlay-market {
    padding: 15px;
  }

  .overlay-join {
    width: 140px;
    padding: 10px;
  }

  .overlay-join #overlay-qr {
    width: 110px;
    min-height: 110px;
  }

  .overlay-foot {
    gap: 8px;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .top-actions .icon-button {
    display: none;
  }

  .page-heading {
    gap: 10px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.reconciliation-toolbar,
.reconciliation-score,
.participant-prize,
.comparison-flow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reconciliation-toolbar {
  justify-content: space-between;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.reconciliation-toolbar > div,
.participant-prize > div:first-child {
  display: grid;
  gap: 3px;
}

.reconciliation-toolbar span,
.participant-prize span,
.reconciliation-score small {
  color: var(--muted);
  font-size: 12px;
}

.comparison-flow {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.comparison-flow span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
}

.reconciliation-score {
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}

.reconciliation-score > strong {
  font-size: 24px;
}

.reconciliation-score > span {
  flex: 1;
  min-width: 180px;
  font-weight: 750;
}

.participant-history-card {
  flex-wrap: wrap;
}

.participant-prize {
  flex: 1 0 100%;
  justify-content: space-between;
  padding: 12px;
  border-radius: 13px;
  background: var(--surface-2);
}

.participant-prize > div:last-child {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.participant-prize.is-problem,
.issue-line {
  color: var(--red);
}

@media (max-width: 760px) {
  .reconciliation-toolbar,
  .participant-prize {
    align-items: stretch;
    flex-direction: column;
  }
}
