:root {
  color-scheme: dark;
  --wc-mint: #BDFEEB;
  --wc-dark-green: #03362B;
  --wc-blue: #577FFF;
  --wc-olive: #807A00;
  --wc-white: #FFFFFF;
  --wc-black: var(--wc-dark-green);
  --wc-cream: var(--wc-mint);
  --wc-muted: rgba(255, 255, 255, 0.72);
  --wc-line: rgba(189, 254, 235, 0.24);
  --wc-panel: rgba(1, 35, 28, 0.78);
  --wc-panel-strong: rgba(1, 28, 22, 0.94);
  --wc-purple: var(--wc-blue);
  --wc-lavender: var(--wc-mint);
  --wc-lime: var(--wc-mint);
  --wc-teal: var(--wc-mint);
  --wc-sky: var(--wc-blue);
  --wc-red: var(--wc-olive);
  --wc-orange: var(--wc-olive);
  --wc-pink: var(--wc-blue);
  --wc-gold: var(--wc-olive);
  --wc-green: var(--wc-dark-green);
  --wc-radius: 8px;
  --wc-shadow: 0 24px 90px rgba(1, 19, 15, 0.42);
  --wc-font-display: "Arial Black", Impact, "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --wc-font-body: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: var(--wc-white);
  --muted: var(--wc-muted);
  --subtle: rgba(255, 255, 255, 0.56);
  --charcoal: var(--wc-dark-green);
  --panel: var(--wc-panel);
  --panel-strong: var(--wc-panel-strong);
  --line: var(--wc-line);
  --teal: var(--wc-teal);
  --teal-soft: rgba(189, 254, 235, 0.14);
  --gold: var(--wc-gold);
  --gold-soft: rgba(128, 122, 0, 0.18);
  --electric: var(--wc-blue);
  --magenta: var(--wc-pink);
  --green: var(--wc-mint);
  --green-soft: rgba(189, 254, 235, 0.14);
  --amber: var(--wc-olive);
  --amber-soft: rgba(128, 122, 0, 0.15);
  --coral: var(--wc-blue);
  --coral-soft: rgba(87, 127, 255, 0.15);
  --violet: var(--wc-lavender);
  --violet-soft: rgba(169, 130, 255, 0.14);
  --shadow: var(--wc-shadow);
  --radius: var(--wc-radius);
  font-family: var(--wc-font-body);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--wc-black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--wc-white);
  background:
    linear-gradient(135deg, rgba(189, 254, 235, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(87, 127, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #011c16, var(--wc-dark-green) 54%, #010d0a);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.wc-backdrop,
.backdrop,
.library-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 54, 43, 0.94), rgba(3, 54, 43, 0.52), rgba(3, 54, 43, 0.9)),
    url("../img/stadium-intelligence-backdrop.png") center / cover no-repeat;
  filter: saturate(1.2) contrast(1.04);
}

.wc-backdrop::after,
.backdrop::after,
.library-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(87, 127, 255, 0.2), transparent 34%),
    linear-gradient(45deg, transparent 48%, rgba(189, 254, 235, 0.12) 49%, transparent 51%),
    linear-gradient(rgba(189, 254, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 254, 235, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.72), transparent 92%);
}

.wc-shell,
.app-shell,
.library-shell {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
}

.wc-glass,
.topbar,
.status-strip,
.view-tabs,
.match-rail,
.analysis-board,
.saved-layout,
.account-panel,
.library-top,
.group-tabs,
.team-panel,
.detail-panel,
.status-card,
.back-link,
.page-card,
.floating-save {
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: var(--wc-panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--wc-shadow);
}

.local-clock-card {
  display: grid;
  gap: 3px;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(189, 254, 235, 0.24);
  border-radius: var(--wc-radius);
  color: var(--wc-white);
  background:
    linear-gradient(135deg, rgba(87, 127, 255, 0.18), rgba(128, 122, 0, 0.14)),
    rgba(1, 28, 22, 0.66);
}

.local-clock-card.compact {
  min-width: 174px;
  min-height: 48px;
  margin-bottom: 0;
}

.local-clock-card span,
.local-clock-card small {
  color: var(--wc-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.local-clock-card strong {
  color: var(--wc-mint);
  font-family: var(--wc-font-display);
  font-size: 1.05rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.wc-kicker,
.eyebrow,
.strip-label {
  margin: 0;
  color: var(--wc-lime);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wc-display,
h1 {
  font-family: var(--wc-font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.wc-wordmark {
  display: inline-grid;
  gap: 2px;
  color: var(--wc-white);
  font-family: var(--wc-font-display);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.wc-wordmark small {
  color: var(--wc-lime);
  font-family: var(--wc-font-body);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.wc-mark {
  display: grid;
  min-width: 112px;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(189, 254, 235, 0.24);
  border-radius: var(--wc-radius);
  background:
    linear-gradient(135deg, rgba(3, 54, 43, 0.94), rgba(87, 127, 255, 0.78) 48%, rgba(128, 122, 0, 0.9)),
    var(--wc-black);
  box-shadow: inset 0 -18px 45px rgba(0, 0, 0, 0.24);
}

.wc-mark span {
  color: var(--wc-white);
  font-family: var(--wc-font-display);
  font-size: 1rem;
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
}

.wc-tab-stage {
  width: min(1520px, calc(100% - 32px));
  margin: 18px auto 14px;
}

.app-shell .wc-tab-stage {
  width: 100%;
  margin: 0 0 14px;
}

.wc-tab-dock {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-height: 110px;
  padding: 8px;
  border: 1px solid rgba(189, 254, 235, 0.26);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(189, 254, 235, 0.12), rgba(87, 127, 255, 0.045) 45%, rgba(128, 122, 0, 0.1)),
    rgba(3, 54, 43, 0.72);
  backdrop-filter: blur(30px) saturate(1.22);
  box-shadow:
    0 28px 90px rgba(1, 20, 16, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wc-mode-tab {
  --tab-a: var(--wc-dark-green);
  --tab-b: var(--wc-blue);
  --tab-c: var(--wc-mint);
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 92px;
  align-items: center;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid rgba(189, 254, 235, 0.16);
  border-radius: 24px;
  color: var(--wc-white);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(3, 54, 43, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -28px 42px rgba(1, 20, 16, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.wc-mode-tab::before {
  display: none;
  content: none;
}

.wc-mode-tab::after {
  position: absolute;
  inset: 1px;
  border-radius: 25px;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 28%, transparent 64%, rgba(255, 255, 255, 0.09)),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--tab-b) 16%, transparent), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.wc-mode-tab:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tab-c) 62%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(3, 54, 43, 0.6);
}

.wc-mode-tab.is-active {
  border-color: color-mix(in srgb, var(--tab-c) 76%, rgba(255, 255, 255, 0.32));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--tab-a) 84%, transparent), color-mix(in srgb, var(--tab-b) 24%, transparent) 52%, color-mix(in srgb, var(--wc-olive) 22%, transparent)),
    rgba(3, 54, 43, 0.82);
  box-shadow:
    0 18px 58px color-mix(in srgb, var(--tab-c) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -34px 58px rgba(1, 20, 16, 0.28);
}

.wc-mode-tab.is-active::before {
  display: none;
  animation: none;
}

.wc-mode-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 5px;
}

.wc-mode-kicker {
  color: var(--tab-c);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wc-mode-tab strong {
  overflow-wrap: anywhere;
  font-family: var(--wc-font-display);
  font-size: 1.18rem;
  line-height: 0.92;
  text-transform: uppercase;
  transition: font-size 220ms ease, color 180ms ease;
}

.wc-mode-tab small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.wc-mode-tab.is-active strong {
  color: var(--wc-white);
  font-size: 2.45rem;
  line-height: 0.86;
}

.wc-mode-tab.is-active small {
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.wc-mode-tab--today {
  --tab-a: var(--wc-dark-green);
  --tab-b: var(--wc-olive);
  --tab-c: var(--wc-mint);
}

.wc-mode-tab--tournament {
  --tab-a: var(--wc-dark-green);
  --tab-b: var(--wc-blue);
  --tab-c: var(--wc-mint);
}

.wc-mode-tab--library {
  --tab-a: var(--wc-dark-green);
  --tab-b: var(--wc-gold);
  --tab-c: var(--wc-lime);
}

@keyframes wcLensDrift {
  0%,
  100% {
    transform: translate3d(-12px, 0, 0) rotate(-12deg) scale(0.98);
  }

  50% {
    transform: translate3d(22px, 8px, 0) rotate(6deg) scale(1.04);
  }
}

.wc-nav {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.wc-nav-item,
.tab-button,
.back-link,
.group-button,
.team-button,
.primary-button,
.secondary-button,
.ghost-icon,
.account-pill {
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  color: var(--wc-white);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.wc-nav-item:hover,
.tab-button:hover,
.back-link:hover,
.group-button:hover,
.team-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-icon:hover,
.account-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(189, 254, 235, 0.52);
  background: rgba(87, 127, 255, 0.14);
}

.wc-nav-item.active,
.tab-button.active,
.group-button.active,
.team-button.active {
  border-color: rgba(189, 254, 235, 0.72);
  background:
    linear-gradient(135deg, rgba(3, 54, 43, 0.56), rgba(87, 127, 255, 0.16), rgba(128, 122, 0, 0.18)),
    rgba(255, 255, 255, 0.065);
}

.wc-input,
input[type="search"],
input[type="date"] {
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  color: var(--wc-white);
  background: rgba(255, 255, 255, 0.075);
  outline: 0;
}

.wc-input:focus,
input[type="search"]:focus,
input[type="date"]:focus {
  border-color: rgba(189, 254, 235, 0.72);
  box-shadow: 0 0 0 3px rgba(189, 254, 235, 0.13);
}

.wc-stripe {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wc-dark-green), var(--wc-olive), var(--wc-mint), var(--wc-blue));
}

.floating-save {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  color: var(--wc-white);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(128, 122, 0, 0.24), rgba(87, 127, 255, 0.16)),
    var(--wc-panel-strong);
}

.floating-save span:first-child {
  color: var(--wc-mint);
  font-size: 1.55rem;
}

.floating-save strong {
  font-size: 0.84rem;
}

.app-layout {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  min-width: 0;
}

.app-main .app-shell,
.app-main .library-shell,
.app-main .page-shell,
.app-main .match-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.app-main .app-shell {
  padding: 28px 28px 42px 24px;
}

.app-main .library-shell {
  padding: 24px 28px 36px 24px;
}

.app-main .page-shell,
.app-main .match-shell {
  padding: 24px 28px 42px 24px;
}

.wc-sidebar {
  --sidebar-width: 248px;
  --sidebar-collapsed-width: 76px;
  position: sticky;
  top: 0;
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  height: 100vh;
  z-index: 20;
  border-right: 1px solid rgba(189, 254, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(87, 127, 255, 0.08), rgba(3, 54, 43, 0.52) 42%, rgba(1, 28, 22, 0.96)),
    rgba(3, 54, 43, 0.88);
  backdrop-filter: blur(20px) saturate(1.08);
  transition:
    width 220ms ease,
    flex-basis 220ms ease;
}

.wc-sidebar.is-collapsed {
  flex-basis: var(--sidebar-collapsed-width);
  width: var(--sidebar-collapsed-width);
  overflow: visible;
}

html.wc-sidebar-boot-collapsed #appSidebar {
  flex-basis: var(--sidebar-collapsed-width);
  width: var(--sidebar-collapsed-width);
}

html.wc-sidebar-boot-collapsed #appSidebar,
html.wc-sidebar-boot-collapsed #appSidebar *,
.wc-sidebar.is-transition-suppressed,
.wc-sidebar.is-transition-suppressed * {
  transition: none !important;
}

html.wc-sidebar-boot-collapsed #appSidebar .wc-sidebar__brand,
html.wc-sidebar-boot-collapsed #appSidebar .wc-sidebar-link__copy,
html.wc-sidebar-boot-collapsed #appSidebar .wc-sidebar-saved__label {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
}

html.wc-sidebar-boot-collapsed #appSidebar .wc-sidebar__header {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-inline: 0;
}

html.wc-sidebar-boot-collapsed #appSidebar .wc-sidebar-link {
  justify-content: center;
  gap: 0;
  padding-inline: 8px;
}

html.wc-sidebar-boot-collapsed #appSidebar .wc-sidebar__inner {
  padding-inline: 12px;
}

.wc-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 18px 20px;
  overflow: hidden auto;
}

.wc-sidebar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(189, 254, 235, 0.1);
}

.wc-sidebar__toggle {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(189, 254, 235, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.wc-sidebar__toggle:hover {
  color: var(--wc-white);
  border-color: rgba(189, 254, 235, 0.28);
  background: rgba(189, 254, 235, 0.08);
}

.wc-sidebar__toggle:focus-visible {
  outline: 2px solid rgba(189, 254, 235, 0.45);
  outline-offset: 2px;
}

.wc-sidebar__toggle-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  transition: transform 220ms ease;
}

.wc-sidebar__toggle-icon svg {
  width: 16px;
  height: 16px;
}

.wc-sidebar.is-collapsed .wc-sidebar__toggle-icon {
  transform: rotate(180deg);
}

.wc-sidebar__brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.wc-sidebar__mark {
  flex: 0 0 auto;
  color: var(--wc-mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.wc-sidebar__brand {
  margin: 0;
  color: var(--wc-white);
  font-family: var(--wc-font-body);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    max-width 220ms ease;
  max-width: 180px;
}

.wc-sidebar__brand-sub {
  display: none;
}

.wc-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wc-sidebar-link {
  --tab-c: var(--wc-mint);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.wc-sidebar-link:hover {
  color: var(--wc-white);
  background: rgba(255, 255, 255, 0.05);
}

.wc-sidebar-link.is-active {
  color: var(--wc-white);
  background: rgba(189, 254, 235, 0.08);
  box-shadow: inset 3px 0 0 var(--tab-c);
}

.wc-sidebar-link__icon {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 160ms ease;
}

.wc-sidebar-link__icon svg {
  width: 18px;
  height: 18px;
}

.wc-sidebar-link:hover .wc-sidebar-link__icon,
.wc-sidebar-link.is-active .wc-sidebar-link__icon {
  color: var(--tab-c);
}

.wc-sidebar-link__copy {
  min-width: 0;
  overflow: hidden;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    max-width 220ms ease;
  max-width: 180px;
}

.wc-sidebar-link strong {
  display: block;
  overflow: hidden;
  font-family: var(--wc-font-body);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-sidebar-link small {
  display: none;
}

.wc-sidebar-link--today {
  --tab-c: var(--wc-mint);
}

.wc-sidebar-link--tournament {
  --tab-c: #9ec0ff;
}

.wc-sidebar-link--library {
  --tab-c: var(--wc-mint);
}

.wc-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(189, 254, 235, 0.1);
}

.wc-sidebar-account {
  min-width: 0;
}

.wc-sidebar-saved {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.wc-sidebar-saved:hover {
  color: rgba(255, 255, 255, 0.88);
}

.wc-sidebar-saved__icon {
  color: rgba(189, 254, 235, 0.65);
  font-size: 0.82rem;
  line-height: 1;
}

.wc-sidebar-saved__count {
  color: var(--wc-white);
  font-weight: 800;
}

.wc-sidebar-saved__label {
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    max-width 220ms ease;
  max-width: 160px;
}

.wc-sidebar.is-collapsed .wc-sidebar__inner {
  padding-inline: 12px;
  overflow: visible;
}

.wc-sidebar.is-collapsed .wc-sidebar__header {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-inline: 0;
}

.wc-sidebar.is-collapsed .wc-sidebar__brand-block {
  justify-content: center;
  width: 100%;
}

.wc-sidebar.is-collapsed .wc-sidebar__brand {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
}

.wc-sidebar.is-collapsed .wc-sidebar-link {
  justify-content: center;
  gap: 0;
  padding-inline: 8px;
}

.wc-sidebar.is-collapsed .wc-sidebar-link__copy,
.wc-sidebar.is-collapsed .wc-sidebar-saved__label {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
}

.wc-sidebar.is-collapsed .wc-sidebar-saved {
  justify-content: center;
  padding-inline: 8px;
}

.wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-action__label,
.wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-action__text {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
  overflow: hidden;
}

.wc-sidebar.is-collapsed [data-sidebar-tip] {
  position: relative;
}

.wc-sidebar.is-collapsed [data-sidebar-tip]::after {
  content: attr(data-sidebar-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 60;
  padding: 6px 10px;
  border: 1px solid rgba(189, 254, 235, 0.2);
  border-radius: 8px;
  color: var(--wc-white);
  background: rgba(1, 28, 22, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 150ms ease,
    visibility 150ms ease,
    transform 150ms ease;
}

.wc-sidebar.is-collapsed [data-sidebar-tip]:hover::after,
.wc-sidebar.is-collapsed [data-sidebar-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.wc-sidebar-mobile-trigger {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 105;
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(189, 254, 235, 0.18);
  border-radius: 12px;
  color: var(--wc-white);
  background: rgba(3, 54, 43, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.wc-sidebar-mobile-trigger:focus-visible {
  outline: 2px solid rgba(189, 254, 235, 0.45);
  outline-offset: 2px;
}

.wc-sidebar-mobile-trigger[hidden] {
  display: none !important;
}

.wc-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  border: 0;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
}

.wc-sidebar-backdrop[hidden] {
  display: none;
}

body.wc-sidebar-drawer-active {
  overflow: hidden;
}

.auth-dock--sidebar .sidebar-action__icon {
  display: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
}

.auth-dock--sidebar .sidebar-action__icon svg {
  width: 18px;
  height: 18px;
}

.auth-dock--sidebar .sidebar-action__label,
.auth-dock--sidebar .sidebar-action__text {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    max-width 220ms ease;
  max-width: 200px;
  overflow: hidden;
}

.auth-dock--sidebar .sidebar-auth-action {
  gap: 0;
}

.auth-dock--sidebar .sidebar-action__text {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.auth-dock--sidebar .sidebar-action__text span {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-dock--sidebar .sidebar-action__text small {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
}

.wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-auth-action {
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin-inline: auto;
  padding: 0;
}

.wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-action__icon {
  display: grid;
}

.wc-sidebar.is-collapsed .auth-dock--sidebar .auth-user-chip {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin-inline: auto;
  padding: 0;
}

.auth-dock {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: var(--wc-panel-strong);
  box-shadow: var(--wc-shadow);
  backdrop-filter: blur(24px);
}

.auth-dock .primary-button,
.auth-dock .secondary-button {
  min-height: 42px;
  padding: 0 14px;
}

.auth-dock--sidebar {
  position: static;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-dock--sidebar .primary-button,
.auth-dock--sidebar .secondary-button,
.auth-dock--sidebar .auth-user-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 750;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.auth-dock--sidebar .secondary-button {
  border: 1px solid rgba(189, 254, 235, 0.14);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.auth-dock--sidebar .secondary-button:hover {
  border-color: rgba(189, 254, 235, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.auth-dock--sidebar .primary-button {
  border: 1px solid rgba(75, 212, 199, 0.42);
  color: var(--wc-white);
  background: var(--teal-soft);
}

.auth-dock--sidebar .primary-button:hover {
  border-color: rgba(189, 254, 235, 0.52);
  background: rgba(189, 254, 235, 0.18);
}

.auth-dock--sidebar .auth-user-chip {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(189, 254, 235, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-dock--sidebar .auth-user-chip span {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-dock--sidebar .auth-user-chip small {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
}

.auth-dock--sidebar [data-auth-logout] {
  width: 100%;
}

.auth-user-chip {
  display: grid;
  gap: 2px;
  min-width: 144px;
  padding: 9px 12px;
  border: 1px solid rgba(189, 254, 235, 0.24);
  border-radius: var(--wc-radius);
  color: var(--wc-white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.auth-user-chip span {
  font-weight: 950;
}

.auth-user-chip small {
  color: var(--wc-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-shell {
  display: grid;
  width: min(640px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
  place-items: center;
}

.auth-shell--wide {
  width: min(860px, calc(100% - 32px));
}

.auth-card,
.verify-panel,
.auth-note {
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: var(--wc-panel);
  box-shadow: var(--wc-shadow);
  backdrop-filter: blur(24px);
}

.auth-card {
  width: 100%;
  padding: clamp(20px, 4vw, 34px);
}

.auth-card .back-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-bottom: 22px;
  padding: 0 12px;
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 9vw, 5.4rem);
}

.auth-copy,
.auth-switch {
  color: var(--wc-muted);
}

.auth-switch a {
  color: var(--wc-mint);
  font-weight: 900;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span,

.auth-form .wc-input {
  min-height: 48px;
  padding: 0 12px;
}

.auth-submit {
  min-height: 50px;
  margin-top: 4px;
}

.auth-resend-button {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 14px;
}





.verify-panel,
.auth-note {
  margin-top: 22px;
  padding: 18px;
}

.auth-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--wc-muted);
  font-weight: 800;
}

.auth-status[data-status="success"] {
  color: var(--wc-mint);
}

.auth-status[data-status="error"] {
  color: #ffb4a8;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.auth-actions .primary-button,
.auth-actions .secondary-button {
  min-height: 44px;
  padding: 0 14px;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.account-summary-grid article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(189, 254, 235, 0.24);
  border-radius: var(--wc-radius);
  background: rgba(255, 255, 255, 0.055);
}

.account-summary-grid span {
  color: var(--wc-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary-grid strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 1.3rem;
}

.account-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.account-data-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 170px;
  padding: 16px;
  border: 1px solid rgba(189, 254, 235, 0.24);
  border-radius: var(--wc-radius);
  background: rgba(255, 255, 255, 0.045);
}

.account-data-card h2 {
  font-size: 1rem;
}

.account-data-card p {
  color: var(--wc-muted);
}

.account-data-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-data-card li {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(189, 254, 235, 0.16);
}

.account-data-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-data-card span {
  color: var(--wc-muted);
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .app-layout {
    flex-direction: row;
  }

  .wc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    flex: none;
    width: min(280px, 86vw);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    z-index: 110;
    border-right: 1px solid rgba(189, 254, 235, 0.12);
    border-bottom: 0;
  }

  .wc-sidebar.is-drawer-open {
    transform: translateX(0);
  }

  .wc-sidebar.is-collapsed {
    flex-basis: auto;
    width: min(280px, 86vw);
  }

  .wc-sidebar.is-collapsed .wc-sidebar__brand,
  .wc-sidebar.is-collapsed .wc-sidebar-link__copy,
  .wc-sidebar.is-collapsed .wc-sidebar-saved__label,
  .wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-action__label,
  .wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-action__text {
    max-width: 180px;
    opacity: 1;
    transform: none;
  }

  .wc-sidebar.is-collapsed .wc-sidebar-link {
    justify-content: flex-start;
    gap: 12px;
    padding-inline: 10px;
  }

  .wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-auth-action,
  .wc-sidebar.is-collapsed .auth-dock--sidebar .auth-user-chip {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    margin-inline: 0;
    padding: 0 14px;
  }

  .wc-sidebar.is-collapsed .auth-dock--sidebar .sidebar-action__icon {
    display: none;
  }

  .wc-sidebar.is-collapsed [data-sidebar-tip]::after {
    display: none;
  }

  .wc-sidebar-mobile-trigger {
    display: grid;
  }

  .app-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding-top: 54px;
  }

  .wc-sidebar__inner {
    height: 100%;
    padding: 22px 18px 20px;
  }

  .wc-sidebar__footer {
    margin-top: auto;
  }

  .auth-dock--sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .auth-dock--sidebar .primary-button,
  .auth-dock--sidebar .secondary-button,
  .auth-dock--sidebar [data-auth-logout] {
    flex: 1 1 calc(50% - 4px);
    width: auto;
  }

  .wc-shell,
  .app-shell,
  .library-shell {
    width: min(100% - 18px, 1520px);
  }

  .app-main .app-shell,
  .app-main .library-shell,
  .app-main .page-shell,
  .app-main .match-shell {
    width: 100%;
    padding-inline: 14px;
  }

  .wc-tab-stage {
    width: min(100% - 18px, 1520px);
    margin-top: 10px;
  }

  .app-shell .wc-tab-stage {
    width: 100%;
    margin-top: 0;
  }

  .wc-tab-dock {
    min-height: 104px;
    gap: 7px;
    overflow-x: auto;
    padding: 7px;
    border-radius: 28px;
    scroll-snap-type: x mandatory;
  }

  .wc-mode-tab {
    flex: 0 0 46%;
    min-width: 142px;
    min-height: 74px;
    padding: 13px 14px;
    border-radius: 23px;
    scroll-snap-align: start;
  }

  .wc-mode-tab::after {
    border-radius: 21px;
  }

  .wc-mode-tab.is-active {
    flex-basis: 46%;
    min-height: 74px;
  }

  .wc-mode-tab.is-active strong {
    font-size: 1.72rem;
  }

  .wc-nav {
    gap: 6px;
  }

  .floating-save {
    right: 12px;
    bottom: 12px;
    min-height: 52px;
    padding: 0 14px;
  }
}
