@font-face {
  font-family: "Sora EDGE";
  src: url("assets/fonts/Sora-Variable.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171713;
  --muted: #726d63;
  --line: #ded9ce;
  --line-strong: #c9c1b2;
  --surface: #fffefa;
  --surface-soft: #f3f0e8;
  --surface-raised: #ffffff;
  --canvas: #efede7;
  --sidebar: #0d0e0c;
  --sidebar-soft: #1a1b17;
  --topbar: rgba(255, 254, 250, .92);
  --accent: #bd9650;
  --accent-strong: #987225;
  --accent-soft: #f1e5cc;
  --accent-contrast: #17140e;
  --positive: #137c69;
  --negative: #c25158;
  --warning: #b17d26;
  --blue: #4e71a4;
  --shadow: 0 10px 30px rgba(33, 29, 20, .05);
  --font-body: Inter, "Segoe UI", Arial, sans-serif;
  --font-display: "Sora EDGE", Inter, "Segoe UI", Arial, sans-serif;
  font-family: var(--font-body);
  font-synthesis: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f0e6;
  --muted: #aaa398;
  --line: #34342e;
  --line-strong: #4a493f;
  --surface: #181916;
  --surface-soft: #21221e;
  --surface-raised: #1d1e1a;
  --canvas: #0e0f0d;
  --sidebar: #090a09;
  --sidebar-soft: #191a16;
  --topbar: rgba(14, 15, 13, .9);
  --accent: #d2ad66;
  --accent-strong: #e0bd76;
  --accent-soft: #3a301f;
  --accent-contrast: #17140e;
  --positive: #55b9a0;
  --negative: #df747a;
  --warning: #d2a34f;
  --blue: #82a5d6;
  --shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  transition: color .18s ease, background .18s ease;
}

h1,
h2,
h3,
.public-brand strong,
.brand-copy strong,
.landing-promise,
.kpi-card strong,
.insight-card strong,
.stats-summary strong,
.bankroll-summary-item strong,
.bookmaker-summary strong {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-booting > .public-site,
.is-booting > .app-shell { visibility: hidden; }

.app-shell { min-height: 100vh; }

.public-site {
  --landing-ink: #f8f3e7;
  --landing-muted: #b8b2a7;
  --landing-dark: #0b0d0c;
  --landing-panel: #151814;
  --landing-light: #f1efe8;
  --landing-gold: #d2ad66;
  --landing-mint: #58bea9;
  min-height: 100vh;
  color: var(--landing-ink);
  background: var(--landing-dark);
}

.public-site[hidden] { display: none; }
.public-site button { letter-spacing: 0; }

.public-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 0 clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: var(--landing-ink);
  background: rgba(7, 9, 8, .9);
  backdrop-filter: blur(14px);
}

.public-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.public-brand > span:last-child { display: grid; gap: 1px; }
.public-brand strong { font-size: 16px; font-weight: 700; }
.public-brand small { color: #98958c; font-size: 10px; }

.public-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.public-nav button,
.public-nav a,
.public-footer > button {
  padding: 0;
  border: 0;
  color: #c7c2b7;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
.public-nav button:hover,
.public-nav a:hover,
.public-footer > button:hover { color: #fff; }

.public-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.public-login-button,
.public-signup-button,
.landing-primary,
.landing-secondary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.public-login-button { border: 1px solid rgba(255, 255, 255, .24); color: #f9f5ea; background: rgba(255, 255, 255, .04); }
.public-login-button:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .09); }
.public-signup-button,
.landing-primary { border: 1px solid #d2ad66; color: #16130d; background: #d2ad66; }
.public-signup-button:hover,
.landing-primary:hover { border-color: #e4c37f; background: #e4c37f; }

.public-main { padding: 0; }
.landing-hero {
  position: relative;
  display: flex;
  min-height: min(680px, calc(100svh - 92px));
  align-items: center;
  overflow: hidden;
  padding: 116px clamp(24px, 7vw, 110px) 54px;
  background: #10130f;
}
.landing-hero::before { position: absolute; inset: 0 auto 0 0; z-index: 1; width: 54%; background: rgba(5, 8, 6, .66); content: ""; }
.landing-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .94; filter: saturate(.92) contrast(1.06); }
.landing-hero-shade { position: absolute; inset: 0; background: rgba(4, 7, 5, .2); }
.landing-hero-content { position: relative; z-index: 2; width: min(560px, 100%); text-shadow: 0 2px 22px #050705; }
.landing-kicker,
.landing-section-heading > p,
.landing-product-copy > p:first-child,
.landing-security > div > p,
.landing-final > div > p {
  margin: 0 0 12px;
  color: var(--landing-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.landing-hero h1 { margin: 0; font-size: 76px; line-height: .88; }
.landing-promise { margin: 18px 0 10px; color: #fff; font-size: 32px; font-weight: 760; line-height: 1.1; }
.landing-lead { width: min(520px, 100%); margin: 0; color: #d6d1c6; font-size: 15px; line-height: 1.55; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.landing-actions > button { min-height: 46px; padding: 0 21px; }
.landing-secondary { border: 1px solid rgba(255, 255, 255, .32); color: #fff; background: rgba(9, 12, 10, .44); }
.landing-secondary:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); }
.landing-secondary svg { width: 16px; height: 16px; }
.landing-proof-row { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; color: #bcb7ad; font-size: 11px; text-shadow: none; }
.landing-proof-row span { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .2); }
.landing-proof-row span:first-child { padding-left: 0; border-left: 0; }
.landing-proof-row strong { color: #fff; font-size: 13px; }

.landing-story { color: #f8f3e7; background: #10130f; }
.landing-product,
.landing-benefits,
.landing-steps { padding: 76px clamp(24px, 7vw, 110px); }
.landing-product { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(560px, 1.28fr); align-items: center; gap: clamp(46px, 6vw, 96px); color: #f8f3e7; background: #121512; }
.landing-product-copy { max-width: 500px; }
.landing-product-copy h2 { margin: 0; font-size: 41px; line-height: 1.06; }
.landing-product-lead { margin: 20px 0 0; color: #aca89e; font-size: 14px; line-height: 1.65; }
.landing-feature-list { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.landing-feature-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid #333731; }
.landing-feature-list li:last-child { border-bottom: 1px solid #333731; }
.landing-feature-list li > span { color: var(--landing-gold); font-size: 10px; font-weight: 800; }
.landing-feature-list strong { display: block; font-size: 14px; }
.landing-feature-list small { display: block; margin-top: 4px; color: #99968e; font-size: 11px; line-height: 1.45; }
.landing-product-frame { position: relative; margin: 0; overflow: hidden; border: 1px solid #3d423a; border-radius: 7px; background: #0b0d0c; box-shadow: 0 28px 64px rgba(0, 0, 0, .36); }
.landing-product-frame::before { position: absolute; inset: 0; z-index: 1; border: 1px solid rgba(255, 255, 255, .06); border-radius: inherit; content: ""; pointer-events: none; }
.landing-product-frame img { display: block; width: 100%; height: auto; }
.landing-product-frame figcaption { position: absolute; right: 12px; bottom: 10px; z-index: 2; padding: 5px 8px; border: 1px solid #3b4039; border-radius: 4px; color: #c6c1b7; background: rgba(11, 13, 12, .92); font-size: 8px; text-transform: uppercase; }
.landing-benefits { border-top: 1px solid #2f342e; background: #10130f; }
.landing-section-heading { display: grid; max-width: 680px; gap: 0; }
.landing-section-heading h2 { margin: 0; font-size: 39px; line-height: 1.08; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
.benefit-grid article { position: relative; min-height: 190px; padding: 26px; border: 1px solid #343a33; border-top: 2px solid var(--landing-gold); border-radius: 7px; background: #181b18; box-shadow: 0 18px 42px rgba(0, 0, 0, .22); }
.benefit-grid article:nth-child(2) { border-top-color: var(--landing-mint); }
.benefit-grid svg { width: 26px; height: 26px; margin: 18px 0 28px; color: var(--landing-gold); }
.benefit-grid article:nth-child(2) svg { color: var(--landing-mint); }
.benefit-index { position: absolute; top: 20px; right: 20px; color: #777b74; font-size: 10px; font-weight: 750; }
.benefit-grid h3 { margin: 0 0 9px; font-size: 20px; }
.benefit-grid p { max-width: 340px; margin: 0; color: #aaa69d; font-size: 12px; line-height: 1.55; }

.landing-sources { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(500px, 1.6fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding: 26px clamp(24px, 7vw, 110px); border-top: 1px solid #343932; border-bottom: 1px solid #343932; background: #0d100e; box-shadow: 0 18px 46px rgba(0, 0, 0, .2); }
.landing-scan-copy { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px; }
.landing-scan-copy > span:last-child { display: grid; gap: 3px; }
.landing-scan-copy small { color: var(--landing-mint); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.landing-scan-copy strong { color: #f7f2e8; font-family: var(--font-display); font-size: 15px; }
.landing-scan-copy em { color: #96958d; font-size: 10px; font-style: normal; }
.landing-scan-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #3d5a51; border-radius: 50%; color: var(--landing-mint); background: #15201c; box-shadow: 0 0 0 7px rgba(88, 190, 169, .05); }
.landing-scan-icon svg { width: 25px; height: 25px; }
.landing-logo-row { display: grid; grid-template-columns: repeat(7, minmax(64px, 1fr)); gap: 8px; }
.landing-logo-tile { display: grid; min-height: 62px; place-items: center; padding: 9px; border: 1px solid #d8d4ca; border-radius: 6px; background: #f0eee7; box-shadow: 0 9px 22px rgba(0, 0, 0, .16); }
.landing-logo-tile img { max-width: 76px; max-height: 34px; opacity: .96; }
.landing-logo-tile.is-unibet img { max-height: 38px; }

.landing-steps { position: relative; border-top: 1px solid #2f3833; color: #f8f3e7; background: #151d19; }
.landing-steps .landing-section-heading { max-width: 760px; }
.landing-steps ol { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 38px 0 0; padding: 0; list-style: none; counter-reset: none; }
.landing-steps ol::before { position: absolute; top: 40px; right: 11%; left: 11%; height: 1px; background: #46564e; content: ""; }
.landing-steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; min-height: 116px; padding: 23px; border: 1px solid #3a4942; border-radius: 7px; background: #1c2722; box-shadow: 0 16px 34px rgba(0, 0, 0, .15); }
.landing-steps li > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--landing-gold); border-radius: 50%; color: var(--landing-gold); font-size: 11px; font-weight: 800; }
.landing-steps strong { display: block; margin: 3px 0 7px; font-size: 15px; }
.landing-steps li p { margin: 0; color: #aebcb6; font-size: 11px; line-height: 1.5; }

.landing-security { display: grid; grid-template-columns: 64px minmax(300px, .9fr) minmax(520px, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 54px); padding: 44px clamp(24px, 7vw, 110px); border-top: 1px solid #31423b; border-bottom: 1px solid #31423b; color: #f8f3e7; background: #10130f; box-shadow: inset 4px 0 0 var(--landing-mint); }
.security-mark { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #3f766a; border-radius: 50%; color: var(--landing-mint); background: #14241f; }
.security-mark svg { width: 26px; height: 26px; }
.landing-security > div > p { margin-bottom: 8px; color: var(--landing-mint); }
.landing-security h2 { max-width: 620px; margin: 0; font-size: 29px; line-height: 1.12; }
.security-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; overflow: hidden; padding: 0; border: 1px solid #343d37; border-radius: 7px; background: #171b18; list-style: none; }
.security-points li { display: grid; align-content: center; min-height: 78px; padding: 15px 18px; border-left: 1px solid #343d37; }
.security-points li:first-child { border-left: 0; }
.security-points strong { color: var(--landing-mint); font-size: 11px; text-transform: uppercase; }
.security-points span { margin-top: 5px; color: #aaa69d; font-size: 10px; line-height: 1.45; }

.landing-final { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 34px; padding: 50px clamp(24px, 7vw, 110px); text-align: left; background: #171a16; }
.landing-final h2 { max-width: 760px; margin: 0; font-size: 34px; line-height: 1.08; }
.landing-final .landing-primary { min-height: 46px; padding: 0 22px; }

.public-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 24px clamp(24px, 5vw, 76px); border-top: 1px solid #2d302c; color: #f6f1e7; background: #090b09; }
.public-footer > button { justify-self: end; }
.public-footer-links { display: flex; align-items: center; justify-content: center; gap: 20px; }
.public-footer-links button,
.public-footer-links a { padding: 0; border: 0; color: #87847c; background: transparent; cursor: pointer; font-size: 10px; text-decoration: none; }
.public-footer-links button:hover,
.public-footer-links a:hover { color: #f6f1e7; }

.extension-install-page { padding-top: 72px; background: #0b0d0c; }
.extension-install-page[hidden] { display: none; }
.install-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr);
  min-height: 610px;
  align-items: center;
  gap: clamp(44px, 7vw, 116px);
  padding: clamp(68px, 8vw, 118px) clamp(24px, 7vw, 110px);
  border-bottom: 1px solid #2c302b;
  background:
    linear-gradient(90deg, rgba(210, 173, 102, .06) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(rgba(210, 173, 102, .045) 1px, transparent 1px) 0 0 / 86px 86px,
    radial-gradient(circle at 72% 38%, rgba(75, 152, 132, .15), transparent 34%),
    #0b0d0c;
}
.install-hero-copy { max-width: 620px; }
.install-back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 46px; color: #918e86; font-size: 11px; font-weight: 700; text-decoration: none; }
.install-back-link:hover { color: #f6f1e7; }
.install-back-link svg { width: 15px; height: 15px; }
.install-hero h1 { max-width: 690px; margin: 14px 0 20px; color: #f8f3e7; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.01; letter-spacing: 0; }
.install-lead { max-width: 570px; margin: 0; color: #b8b2a7; font-size: 16px; line-height: 1.65; }
.install-download-row { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.install-download-row > span { color: #827f77; font-size: 10px; }
.install-download-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid #d2ad66; border-radius: 6px; color: #16130d; background: #d2ad66; font-size: 12px; font-weight: 800; text-decoration: none; }
.install-download-button:hover { border-color: #e4c37f; background: #e4c37f; }
.install-download-button svg { width: 18px; height: 18px; }
.install-flow { overflow: hidden; border: 1px solid #394039; border-radius: 8px; background: rgba(21, 24, 20, .96); box-shadow: 0 28px 80px rgba(0, 0, 0, .3); }
.install-flow-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 20px; border-bottom: 1px solid #30352f; }
.install-flow-head > span:nth-child(2) { display: grid; gap: 3px; }
.install-flow-head small { color: #87847c; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.install-flow-head strong { font-family: var(--font-display); font-size: 15px; }
.install-flow-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(88, 190, 169, .4); border-radius: 50%; color: #58bea9; background: rgba(88, 190, 169, .08); }
.install-flow-icon svg { width: 23px; height: 23px; }
.install-live { display: inline-flex; align-items: center; gap: 7px; color: #77cab8; font-size: 10px; font-style: normal; font-weight: 750; }
.install-live i { width: 7px; height: 7px; border-radius: 50%; background: #58bea9; box-shadow: 0 0 0 5px rgba(88, 190, 169, .09); }
.install-flow-sites { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 22px 20px; }
.install-flow-sites > span { display: grid; min-height: 64px; place-items: center; border: 1px solid #30352f; border-radius: 6px; background: #111310; }
.install-flow-sites img { width: auto; max-width: 52px; height: auto; max-height: 32px; object-fit: contain; }
.install-flow-sites .is-unibet { background: #f6f4ee; }
.install-flow-route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; padding: 14px 20px; border-block: 1px solid #30352f; color: #b8b2a7; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.install-flow-route i { height: 1px; background: linear-gradient(90deg, #d2ad66, #58bea9); }
.install-flow-result { display: grid; grid-template-columns: 1fr 1fr; }
.install-flow-result > span { display: grid; gap: 5px; min-height: 92px; align-content: center; padding: 20px; }
.install-flow-result > span + span { border-left: 1px solid #30352f; }
.install-flow-result small { color: #87847c; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.install-flow-result strong { color: #f6f1e7; font-family: var(--font-display); font-size: 15px; }


.install-guide { padding: 74px clamp(24px, 7vw, 110px) 84px; color: #f6f1e7; background: #141714; }
.install-guide > header { display: flex; align-items: end; justify-content: space-between; gap: 26px; padding-bottom: 32px; border-bottom: 1px solid #343934; }
.install-guide h2 { max-width: 700px; margin: 12px 0 0; font-size: 38px; line-height: 1.08; }
.install-guide > header > span { color: #8e8b83; font-size: 10px; }
.install-step-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.install-step-list li { min-height: 225px; padding: 28px 22px; border-bottom: 1px solid #343934; }
.install-step-list li + li { border-left: 1px solid #343934; }
.install-step-list > li > span { color: #d2ad66; font-family: var(--font-display); font-size: 11px; font-weight: 750; }
.install-step-list div { display: grid; gap: 12px; margin-top: 56px; }
.install-step-list strong { font-family: var(--font-display); font-size: 16px; line-height: 1.25; }
.install-step-list p { margin: 0; color: #aaa69e; font-size: 11px; line-height: 1.55; }
.install-step-list code { padding: 2px 4px; color: #f2d58f; background: #24231d; }

.install-finish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); align-items: center; gap: clamp(50px, 9vw, 150px); padding: 74px clamp(24px, 7vw, 110px); color: #171713; background: #acd5cb; }
.install-finish-main { max-width: 660px; }
.install-finish h2 { margin: 12px 0 15px; font-size: 42px; line-height: 1.05; }
.install-finish-main > p:not(.landing-kicker) { max-width: 570px; margin: 0; color: #33554d; line-height: 1.6; }
.install-finish .landing-primary { margin-top: 26px; }
.install-trust-list { margin: 0; padding: 0; border-top: 1px solid rgba(22, 63, 53, .25); list-style: none; }
.install-trust-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 76px; border-bottom: 1px solid rgba(22, 63, 53, .25); }
.install-trust-list svg { width: 23px; height: 23px; color: #1f6555; }
.install-trust-list span { display: grid; gap: 4px; }
.install-trust-list strong { font-family: var(--font-display); font-size: 12px; }
.install-trust-list small { color: #3f6c61; font-size: 10px; }

.extension-install-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.extension-install-link:hover { color: var(--accent-strong); }
.extension-install-link svg { width: 14px; height: 14px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 228px;
  flex-direction: column;
  padding: 22px 14px 18px;
  color: #f7f1e5;
  background: var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 24px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  background: transparent;
}
.brand-mark img { display: block; width: 100%; height: 100%; }

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.brand-copy small { color: #9d988d; font-size: 11px; }

.main-nav { display: grid; gap: 5px; }

.nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #aaa69c;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .15s ease, background .15s ease;
}

.nav-item:hover { color: #f8f3e8; background: rgba(210,173,102,.08); }
.nav-item.is-active { color: #fff9ec; background: rgba(210,173,102,.14); }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-item.is-active svg { color: var(--accent); }
.admin-nav { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0 0 6px 6px; }
.admin-nav[hidden] { display: none; }

.sidebar-footer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
  padding: 13px 10px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #d9d4c8;
}

.sidebar-footer span:last-child { display: grid; gap: 2px; }
.sidebar-footer strong { font-size: 11px; font-weight: 650; }
.sidebar-footer small { color: #918d84; font-size: 10px; }
.privacy-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--accent); }

.workspace { min-height: 100vh; margin-left: 228px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
  backdrop-filter: blur(10px);
}

.topbar-title p,
.section-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.topbar-title p { color: var(--muted); }
.topbar-title p:empty { display: none; }
.section-kicker { color: var(--accent-strong); }

.topbar-title h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.range-control {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(48px, auto));
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}
.range-control[hidden] { display: none; }

.range-control button {
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.range-control button.is-active { color: var(--ink); background: var(--surface-raised); box-shadow: 0 1px 5px rgba(20,18,12,.1); }

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.icon-button svg { width: 17px; height: 17px; }
.icon-button.small { width: 32px; height: 32px; }
.icon-button:disabled { opacity: .4; cursor: default; }
.account-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.account-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.account-button.is-authenticated { border-color: color-mix(in srgb, var(--positive) 55%, var(--line)); }
.account-button svg { width: 16px; height: 16px; color: var(--accent-strong); }
.theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: block; }

main { padding: 30px clamp(18px, 3vw, 42px) 56px; }
.view { display: none; }
.view.is-active { display: block; animation: view-in .18s ease; }

@keyframes view-in { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.view-intro,
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.view-intro h2,
.section-header h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.section-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.freshness, .panel-meta { color: var(--muted); font-size: 12px; }
.overview-meta { justify-content: flex-end; min-height: 16px; margin-bottom: 10px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

#overview-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.kpi-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kpi-card {
  min-width: 0;
  padding: 17px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.kpi-card .label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.kpi-card strong { display: block; overflow-wrap: anywhere; font-size: clamp(20px, 2vw, 27px); line-height: 1; }
.kpi-card small { display: block; min-height: 16px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.value-positive { color: var(--positive) !important; }
.value-negative { color: var(--negative) !important; }

.overview-grid,
.stats-grid,
.bankroll-grid,
.analysis-split {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: stretch;
}

.panel,
.table-panel,
.filter-bar {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bets-filter-bar { grid-template-columns: minmax(240px, 1fr) 160px 180px 160px; }

.panel { min-width: 0; padding: 20px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header h3 { margin: 0; font-size: 16px; }
.performance-panel .panel-header { align-items: center; }
.overview-chart-navigation { display: flex; align-items: center; gap: 7px; }
.overview-chart-navigation .panel-meta { min-width: 190px; text-align: center; }
.overview-period-button { width: 28px; height: 28px; }
.overview-period-button[hidden] { display: none; }
.chart-wrap { position: relative; min-height: 280px; }
.line-chart { display: block; width: 100%; height: 280px; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.chart-area { fill: var(--accent-soft); stroke: none; }
.chart-label { fill: var(--muted); stroke: none; font-size: 11px; }
.empty-chart { fill: var(--muted); stroke: none; font-size: 13px; }

.bookmaker-bars { display: grid; gap: 17px; }
.bookmaker-row { display: grid; gap: 7px; }
.bookmaker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.bookmaker-heading span:last-child { font-weight: 750; }
.bookmaker-identity { display: flex; min-width: 0; align-items: center; gap: 9px; font-weight: 700; }
.bookmaker-identity > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookmaker-summary-logo,
.bookmaker-summary-fallback {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.bookmaker-summary-logo img { width: 100%; height: 100%; object-fit: contain; }
.bookmaker-summary-fallback { color: var(--ink); background: var(--surface-soft); font-size: 11px; font-weight: 800; }
.bookmaker-track { position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-soft); }
.bookmaker-fill { display: block; height: 100%; border-radius: inherit; background: var(--positive); }
.bookmaker-fill.negative { margin-left: auto; background: var(--negative); }
.bookmaker-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }

.insights-section,
.analysis-table-section,
.analysis-split,
.movements-section { margin-top: 30px; }
.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.insight-card {
  position: relative;
  min-width: 0;
  min-height: 136px;
  padding: 20px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--record-accent) 34%, var(--line));
  border-radius: 7px;
  overflow: hidden;
  background: color-mix(in srgb, var(--record-accent) 7%, var(--surface));
  box-shadow: var(--shadow);
}
.insight-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--record-accent); content: ""; }
.insight-card.record-month { --record-accent: var(--accent); }
.insight-card.record-profit { --record-accent: var(--positive); }
.insight-card.record-odds { --record-accent: var(--blue); }
.insight-card.record-streak { --record-accent: var(--warning); }
.insight-card.warning { border-color: var(--negative); }
.insight-card .insight-label { color: var(--record-accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.insight-card strong { display: block; margin: 11px 0 7px; font-size: 21px; line-height: 1.1; }
.insight-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.insight-card .insight-meta { margin-bottom: 4px; color: var(--ink); font-weight: 700; }

.secondary-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.secondary-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.secondary-button svg { width: 16px; height: 16px; }
.secondary-button:disabled { opacity: .45; cursor: default; }

.active-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto 32px;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 7px 8px 7px 13px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--accent-soft);
}
.active-filter[hidden] { display: none; }
.active-filter-copy { display: flex; align-items: baseline; gap: 8px; }
.active-filter-copy span { color: var(--accent-strong); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.active-filter-copy strong { font-size: 13px; }
.active-filter .filter-summary { justify-content: flex-end; }

.stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.stats-summary > div { display: grid; min-width: 0; gap: 5px; padding: 16px 18px; border-left: 1px solid var(--line); }
.stats-summary > div:first-child { border-left: 0; }
.stats-summary span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.stats-summary strong { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: none;
}

.filter-bar label:not(.search-field) { display: grid; gap: 5px; }
.filter-bar label > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.filter-bar input,
.filter-bar select,
.money-input input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
}
.filter-bar input:focus,
.filter-bar select:focus,
.money-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.filter-bar select { padding: 0 32px 0 10px; }
.filter-summary { display: flex; min-height: 38px; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 11px; }
.filter-summary strong { color: var(--ink); font-size: 13px; }
.search-field { position: relative; display: flex; align-items: flex-end; }
.search-field input { padding: 0 12px 0 38px; }
.search-field svg { position: absolute; left: 12px; bottom: 11px; width: 16px; height: 16px; color: var(--muted); }

.table-panel { overflow: hidden; box-shadow: none; }
.table-panel.flush { border-radius: 0; }
.table-summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.table-summary strong { font-size: 12px; }
.table-summary span { color: var(--muted); font-size: 11px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 750; text-align: left; text-transform: uppercase; white-space: nowrap; }
th button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; text-transform: inherit; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.bets-table tbody tr { cursor: pointer; }
.bets-table tbody tr:hover { background: var(--surface-soft); }
.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-cell { white-space: nowrap; color: var(--muted); }
.bet-cell { min-width: 260px; max-width: 430px; }
.bet-cell strong, .bet-cell span { display: block; }
.bet-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.bet-cell span { margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.site-badge, .status-badge, .flow-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 4px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.site-badge { color: var(--ink); background: var(--accent-soft); }
.status-badge.won { color: var(--positive); background: color-mix(in srgb, var(--positive) 14%, transparent); }
.status-badge.lost { color: var(--negative); background: color-mix(in srgb, var(--negative) 14%, transparent); }
.status-badge.void { color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, transparent); }
.status-badge.pending { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.flow-badge.deposit { color: var(--positive); background: color-mix(in srgb, var(--positive) 14%, transparent); }
.flow-badge.withdrawal { color: var(--negative); background: color-mix(in srgb, var(--negative) 14%, transparent); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.bets-toolbar {
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bet-filter { display: grid; min-width: 0; gap: 7px; }
.bet-filter > span { color: var(--accent-strong); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.edge-select { position: relative; min-width: 0; }
.edge-select-native { display: none; }
.edge-select-trigger {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: var(--surface-raised);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.edge-select-trigger:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong)); background: var(--surface-soft); }
.edge-select-trigger:focus-visible,
.edge-select-trigger[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.edge-select-trigger > span { display: flex; min-width: 0; align-items: center; gap: 9px; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.edge-select-trigger > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted); transition: transform .16s ease; }
.edge-select-trigger[aria-expanded="true"] > svg { color: var(--accent); transform: rotate(180deg); }
.edge-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 35;
  max-height: 292px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  overflow-y: auto;
  background: var(--surface-raised);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}
.edge-select-menu[hidden] { display: none; }
.edge-select-option {
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}
.edge-select-option:hover,
.edge-select-option:focus-visible { outline: none; background: var(--surface-soft); }
.edge-select-option.is-selected { color: var(--accent-strong); background: var(--accent-soft); font-weight: 750; }
.edge-select-option-content { display: flex; min-width: 0; align-items: center; gap: 9px; }
.edge-select-option > svg { width: 15px; height: 15px; flex: 0 0 auto; color: transparent; }
.edge-select-option.is-selected > svg { color: var(--accent); }
.filter-bookmaker-logo { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.filter-bookmaker-logo img { width: 100%; height: 100%; object-fit: contain; }
.filter-status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.filter-status-dot.won { background: var(--positive); }
.filter-status-dot.lost { background: var(--negative); }
.filter-status-dot.void { background: var(--warning); }
.filter-status-dot.pending { background: var(--blue); }
.bets-filter-controls { display: grid; grid-template-columns: repeat(3, minmax(132px, 1fr)); gap: 9px; }
.bets-history-panel { overflow: hidden; }
.bets-history-summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
}
.bets-history-summary > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 16px; }
.bets-history-summary strong { font-size: 16px; }
.bets-history-summary span { color: var(--muted); font-size: 11px; }
.bets-history-summary #bet-filter-result { color: var(--ink); font-weight: 700; }
.bets-history-summary #bet-odds-result { color: var(--positive); }
.bets-history-summary #bet-odds-result.has-missing { color: var(--negative); }
.bets-history { display: grid; gap: 18px; padding: 18px 0 4px; }
.bet-history-year,
.bet-history-month { min-width: 0; }
.bet-history-year > summary,
.bet-history-month > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style-position: inside;
}
.bet-history-year > summary::marker { content: ""; }
.bet-history-month > summary::marker { color: var(--accent); }
.bet-history-year > summary {
  min-height: 68px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.bet-history-year > summary:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.bet-history-year[open] > summary { margin-bottom: 12px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.bet-year-title { display: grid; gap: 2px; }
.bet-year-title small { color: var(--accent-strong); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bet-year-title strong { font-size: 23px; line-height: 1; }
.bet-year-end { display: flex; align-items: center; gap: 16px; }
.bet-year-end > svg { width: 20px; height: 20px; color: var(--muted); transition: color .15s ease, transform .16s ease; }
.bet-history-year[open] .bet-year-end > svg { color: var(--accent); transform: rotate(90deg); }
.bet-history-year-body { display: grid; gap: 12px; }
.bet-history-month {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bet-history-month > summary { min-height: 52px; padding: 0 16px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); font-size: 15px; font-weight: 750; text-transform: capitalize; }
.bet-history-month-body { display: grid; }
.bet-group-summary { display: inline-flex; align-items: baseline; gap: 12px; margin-left: auto; font-size: 10px; font-weight: 600; }
.bet-group-summary > span { color: var(--muted); }
.bet-group-summary > strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.bet-history-week { border-top: 1px solid var(--line); }
.bet-history-week > header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 750;
}
.bet-history-list { display: grid; }
.bet-history-item {
  --bet-state: var(--line-strong);
  display: grid;
  min-width: 0;
  grid-template-columns: 48px 108px minmax(220px, 1fr) minmax(330px, .9fr) auto;
  align-items: center;
  gap: 15px;
  padding: 13px 16px 13px 13px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--bet-state);
  cursor: pointer;
  background: var(--surface);
  transition: background .15s ease, border-color .15s ease;
}
.bet-history-item:last-child { border-bottom: 0; }
.bet-history-item:hover,
.bet-history-item:focus-visible { outline: none; background: color-mix(in srgb, var(--bet-state) 5%, var(--surface)); }
.bet-history-item.won { --bet-state: var(--positive); }
.bet-history-item.lost { --bet-state: var(--negative); }
.bet-history-item.void { --bet-state: var(--warning); }
.bet-history-item.pending { --bet-state: var(--blue); }
.bet-history-date { display: grid; place-items: center; gap: 1px; color: var(--muted); text-align: center; text-transform: capitalize; }
.bet-history-date strong { color: var(--ink); font-size: 19px; line-height: 1; }
.bet-history-date span { font-size: 9px; }
.bet-history-date small { margin-top: 3px; font-size: 9px; }
.bet-history-bookmaker { display: flex; min-width: 0; align-items: center; gap: 8px; }
.bet-history-bookmaker > span:last-child { overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bet-bookmaker-logo,
.bet-bookmaker-fallback { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; background: #fff; }
.bet-bookmaker-logo img { width: 100%; height: 100%; object-fit: contain; }
.bet-bookmaker-fallback { color: var(--ink); background: var(--surface-soft); font-size: 11px; font-weight: 800; }
.bet-history-copy { display: grid; min-width: 0; gap: 3px; }
.bet-history-copy > span { color: var(--accent-strong); font-size: 9px; font-weight: 750; }
.bet-history-copy > strong,
.bet-history-copy > p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bet-history-copy > strong { font-size: 12px; }
.bet-history-copy > p { margin: 0; color: var(--muted); font-size: 11px; }
.bet-history-values { display: grid; grid-template-columns: repeat(4, minmax(68px, 1fr)); gap: 8px; }
.bet-history-values > div { display: grid; min-width: 0; gap: 3px; }
.bet-history-values span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bet-history-values strong { overflow: hidden; font-size: 11px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.bet-odds-value.is-missing strong { color: var(--negative); font-size: 10px; font-weight: 750; }
.bet-history-item > .status-badge { justify-self: end; }

.stats-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); }
.monthly-panel .panel-header { align-items: center; }
.month-navigation { display: flex; align-items: center; gap: 6px; }
.month-navigation .icon-button[hidden] { display: none; }
.month-window-label { min-width: 156px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; text-transform: capitalize; }
.monthly-chart { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-color: var(--line-strong) transparent; }
.monthly-chart.is-daily { overflow-x: hidden; }
.monthly-plot-frame { display: grid; min-width: 560px; height: 300px; grid-template-columns: 58px minmax(0, 1fr); }
.monthly-plot-frame.is-daily { min-width: 0; }
.monthly-y-axis { position: relative; height: 262px; }
.monthly-y-axis span { position: absolute; right: 10px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; transform: translateY(-50%); white-space: nowrap; }
.monthly-y-axis span:first-child { transform: none; }
.monthly-y-axis span:last-child { transform: translateY(-100%); }
.monthly-bars-area { position: relative; min-width: 0; height: 300px; }
.monthly-grid-layer { position: absolute; inset: 0 0 38px; }
.monthly-grid-html { position: absolute; right: 0; left: 0; border-top: 1px solid var(--line); }
.monthly-grid-html.zero { border-top-color: var(--line-strong); border-top-width: 1.5px; }
.monthly-columns { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--period-count, 12), minmax(36px, 1fr)); }
.monthly-plot-frame.is-daily .monthly-columns { grid-template-columns: repeat(var(--period-count), minmax(0, 1fr)); }
.monthly-plot-frame.is-centered { min-width: 0; }
.monthly-columns.is-centered { right: auto; left: 50%; width: min(100%, calc(var(--period-count) * var(--centered-column-width, 78px))); transform: translateX(-50%); }
.monthly-column { display: grid; min-width: 0; grid-template-rows: minmax(0, 1fr) 38px; }
.monthly-column-plot { position: relative; min-height: 0; }
.monthly-bar-html { position: absolute; left: 29%; width: 42%; min-height: 2px; border-radius: 3px; }
.monthly-bar-html.positive { background: var(--positive); }
.monthly-bar-html.negative { background: var(--negative); }
.monthly-bar-html.neutral { background: var(--line-strong); opacity: .55; }
.monthly-value-html { position: absolute; left: 50%; z-index: 2; width: max-content; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.monthly-value-html.positive { color: var(--positive); }
.monthly-value-html.negative { color: var(--negative); }
.monthly-value-html.is-collision-hidden { visibility: hidden; }
.monthly-month-html { align-self: center; color: var(--muted); font-size: 11px; font-weight: 650; text-align: center; text-transform: capitalize; }
.monthly-empty-state { display: grid; min-height: 250px; place-items: center; color: var(--muted); }

.outcome-panel { align-self: stretch; padding: 18px; }
.outcome-panel .panel-header { margin-bottom: 12px; }
.outcome-panel .panel-header h3 { font-size: 15px; }
.outcome-chart { display: grid; min-height: 0; place-items: center; }
.donut-wrap { display: grid; width: 100%; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 18px; }
.donut { width: 108px; height: 108px; }
.donut circle { fill: none; stroke-width: 15; transform: rotate(-90deg); transform-origin: 50% 50%; }
.donut .track { stroke: var(--surface-soft); }
.donut text { fill: var(--ink); stroke: none; font-weight: 800; text-anchor: middle; }
.donut tspan { fill: var(--muted); font-size: 9px; font-weight: 600; }
.legend { display: grid; gap: 7px; }
.legend-row { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 10px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }
.legend-label { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 6px; }
.legend-label small { color: var(--muted); font-size: 8px; }
.legend-row strong { font-variant-numeric: tabular-nums; }
.stats-highlights { display: grid; gap: 12px; margin-top: 16px; }
.stats-bookmaker-feature {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.stats-bookmaker-feature > span { color: var(--accent-strong); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.stats-feature-content { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.stats-feature-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.stats-feature-identity > strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.stats-feature-logo,
.stats-feature-fallback { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; color: var(--ink); background: #fff; font-size: 14px; font-weight: 800; }
.stats-feature-logo img { width: 100%; height: 100%; object-fit: contain; }
.stats-feature-result { display: grid; flex: 0 0 auto; gap: 2px; text-align: right; }
.stats-feature-result strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.stats-feature-result small { color: var(--muted); font-size: 8px; }
.stats-highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats-highlight {
  --highlight-tone: var(--line-strong);
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 11px 10px;
  border: 1px solid color-mix(in srgb, var(--highlight-tone) 30%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--highlight-tone) 4%, var(--surface));
}
.stats-highlight.positive { --highlight-tone: var(--positive); }
.stats-highlight.negative { --highlight-tone: var(--negative); }
.stats-highlight.accent { --highlight-tone: var(--accent); }
.stats-highlight > span { min-height: 20px; color: var(--muted); font-size: 8px; font-weight: 750; line-height: 1.2; text-transform: uppercase; }
.stats-highlight > strong { color: var(--highlight-tone); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-highlight > strong small { margin-left: 3px; color: var(--muted); font-size: 8px; font-weight: 650; }

.analysis-table td:first-child { font-weight: 700; }
.stats-bookmaker-cell { display: inline-flex; min-width: 0; align-items: center; gap: 9px; }
.stats-bookmaker-logo,
.stats-bookmaker-fallback { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; background: #fff; }
.stats-bookmaker-logo img { width: 100%; height: 100%; object-fit: contain; }
.stats-bookmaker-fallback { color: var(--ink); background: var(--surface-soft); font-size: 10px; font-weight: 800; }
.stats-bookmaker-cell strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.stats-section-disclosure { margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-section-summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}
.stats-section-summary::-webkit-details-marker { display: none; }
.stats-section-summary h2 { margin: 0; font-size: 22px; }
.stats-section-summary > span { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.stats-section-summary small { font-size: 10px; font-weight: 700; }
.stats-section-summary svg { width: 19px; height: 19px; transition: color .16s ease, transform .16s ease; }
.stats-section-disclosure[open] .stats-section-summary svg { color: var(--accent); transform: rotate(180deg); }
.stats-section-body { padding: 2px 0 18px; }
.sport-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sport-group {
  --sport-tone: var(--line-strong);
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sport-tone);
  border-radius: 7px;
  background: color-mix(in srgb, var(--sport-tone) 4%, var(--surface));
  box-shadow: var(--shadow);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.sport-group.result-positive { --sport-tone: var(--positive); }
.sport-group.result-negative { --sport-tone: var(--negative); }
.sport-group:hover { transform: translateY(-1px); }
.sport-group[open] { grid-column: 1 / -1; transform: none; }
.sport-group.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.sport-summary { display: grid; min-height: 66px; grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(84px, 110px)) 22px; align-items: center; gap: 18px; padding: 0 18px; cursor: pointer; list-style: none; }
.sport-summary::-webkit-details-marker { display: none; }
.sport-summary:hover { background: var(--surface-soft); }
.sport-title { display: grid; gap: 4px; }
.sport-name { display: flex; min-width: 0; align-items: center; gap: 9px; }
.sport-name strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sport-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--sport-tone) 35%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--sport-tone) 10%, var(--surface)); font-size: 15px; }
.sport-title small { color: var(--muted); font-size: 10px; font-weight: 500; }
.summary-metric { display: grid; gap: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.summary-metric small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.summary-metric strong { font-size: 12px; }
.sport-chevron { width: 17px; height: 17px; color: var(--muted); transition: transform .16s ease; }
.sport-group[open] .sport-chevron { transform: rotate(90deg); }
.sport-content { padding: 16px 18px 18px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.sport-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.sport-actions > strong { font-size: 12px; }
.secondary-button.is-selected { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.market-accordion { display: grid; gap: 8px; }
.market-group { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.market-group.is-active { border-color: var(--accent); }
.market-summary { display: grid; min-height: 50px; grid-template-columns: minmax(170px, 1fr) 90px 110px 100px 18px; align-items: center; gap: 14px; padding: 0 14px; cursor: pointer; list-style: none; }
.market-summary::-webkit-details-marker { display: none; }
.market-summary:hover { background: var(--surface-soft); }
.market-summary > strong { font-size: 12px; }
.market-summary > span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.market-chevron { width: 15px; height: 15px; color: var(--muted); transition: transform .16s ease; }
.market-group[open] .market-chevron { transform: rotate(90deg); }
.market-details { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)) auto; align-items: end; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.market-details > div { display: grid; gap: 4px; }
.market-details > div span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.market-details > div strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.odds-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.odds-card {
  --odds-tone: var(--line-strong);
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--odds-tone) 35%, var(--line));
  border-radius: 7px;
  overflow: hidden;
  background: color-mix(in srgb, var(--odds-tone) 5%, var(--surface));
  box-shadow: var(--shadow);
}
.odds-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--odds-tone); content: ""; }
.odds-card.positive { --odds-tone: var(--positive); }
.odds-card.negative { --odds-tone: var(--negative); }
.odds-card header { display: flex; min-height: 36px; align-items: flex-start; justify-content: space-between; gap: 8px; }
.odds-card header small { color: var(--muted); font-size: 9px; }
.odds-card h3 { margin: 0; font-size: 15px; line-height: 1.15; }
.odds-card-result { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.odds-card-result span { color: var(--muted); font-size: 9px; font-weight: 750; }
.odds-card-result strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.odds-rate-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 8px; }
.odds-rate-summary strong { margin-left: 2px; color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.odds-rate-compare { position: relative; height: 7px; margin-top: 8px; border-radius: 4px; background: var(--surface-soft); }
.odds-rate-fill { display: block; height: 100%; border-radius: inherit; background: var(--odds-tone); opacity: .85; }
.odds-rate-marker { position: absolute; top: -3px; width: 2px; height: 13px; border-radius: 1px; background: var(--ink); transform: translateX(-1px); }
.rank-list { border-top: 1px solid var(--line); }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 48px; border-bottom: 1px solid var(--line); }
.rank-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row span { color: var(--muted); font-size: 11px; }
.rank-row .rank-value { min-width: 84px; font-weight: 750; text-align: right; }
.analysis-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bankroll-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bankroll-summary-item { display: grid; min-width: 0; gap: 7px; padding: 18px 20px; border-left: 1px solid var(--line); }
.bankroll-summary-item:first-child { border-left: 0; }
.bankroll-summary-item strong { overflow: hidden; font-size: 24px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.bankroll-summary-item span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bankroll-summary-item.primary strong { color: var(--accent-strong); }
.bankroll-summary-item.negative strong { color: var(--negative); }
.bankroll-grid { grid-template-columns: minmax(320px, .85fr) minmax(0, 1.35fr); }
.bankroll-grid .panel-header { align-items: center; margin-bottom: 14px; }
.bankroll-grid .panel-header h2 { margin: 0; font-size: 18px; }
.bankroll-allocation { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 20px; min-height: 180px; }
.allocation-chart { position: relative; display: grid; width: 148px; height: 148px; place-items: center; border-radius: 50%; }
.allocation-chart::before { position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); content: ""; }
.allocation-chart > span { position: relative; z-index: 1; display: grid; max-width: 94px; gap: 3px; text-align: center; }
.allocation-chart strong { overflow: hidden; font-size: 15px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.allocation-chart small { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.allocation-legend { display: grid; min-width: 0; gap: 7px; }
.allocation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 28px; }
.allocation-row::before { position: absolute; width: 3px; height: 22px; border-radius: 2px; background: var(--allocation-color); content: ""; }
.allocation-row { position: relative; padding-left: 10px; }
.allocation-identity,
.balance-identity,
.movement-account,
.movement-route > span { display: flex; min-width: 0; align-items: center; gap: 8px; }
.allocation-identity > span:last-child,
.balance-identity > span:last-child,
.movement-account > span:last-child,
.movement-route > span > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allocation-row strong { font-size: 10px; font-variant-numeric: tabular-nums; }
.allocation-logo,
.bankroll-account-logo,
.movement-account-logo,
.movement-row-logo { display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); overflow: hidden; background: #fff; }
.allocation-logo { width: 24px; height: 24px; border-radius: 5px; }
.bankroll-account-logo { width: 32px; height: 32px; border-radius: 6px; }
.movement-account-logo { width: 25px; height: 25px; border-radius: 5px; }
.movement-row-logo { width: 27px; height: 27px; border-radius: 5px; }
.allocation-logo img,
.bankroll-account-logo img,
.movement-account-logo img,
.movement-row-logo img { width: 100%; height: 100%; object-fit: contain; }
.allocation-logo.external,
.bankroll-account-logo.external,
.movement-account-logo.external,
.movement-row-logo.external { color: var(--accent-strong); background: var(--accent-soft); }
.allocation-logo svg,
.bankroll-account-logo svg,
.movement-account-logo svg,
.movement-row-logo svg { width: 58%; height: 58%; }
.allocation-empty { display: grid; grid-column: 1 / -1; min-height: 180px; place-items: center; align-content: center; gap: 5px; color: var(--muted); text-align: center; }
.allocation-empty strong { color: var(--ink); font-size: 14px; }
.allocation-empty span { font-size: 10px; }
.bankroll-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 16px; }
.bankroll-metrics > div { display: grid; min-width: 0; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.bankroll-metrics span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.bankroll-metrics strong { overflow: hidden; font-size: 12px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.balance-list { display: grid; }
.balance-row { display: grid; grid-template-columns: minmax(150px, 1fr) 64px 132px; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.balance-row:last-child { border-bottom: 0; }
.balance-identity { font-size: 12px; font-weight: 700; }
.balance-share { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }
.money-input { position: relative; }
.money-input input { padding: 0 28px 0 10px; text-align: right; font-variant-numeric: tabular-nums; }
.money-input span { position: absolute; top: 10px; right: 10px; color: var(--muted); font-size: 12px; }
.movements-section { margin-top: 28px; }
.movements-section .section-header { align-items: center; margin-bottom: 12px; }
.movement-tabs,
.cash-type-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.movement-tabs button,
.cash-type-switch button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.movement-tabs button.is-active,
.cash-type-switch button.is-active { color: var(--ink); background: var(--surface-raised); box-shadow: 0 1px 5px rgba(0, 0, 0, .12); }
.movement-form { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.movement-pane { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 16px; }
.movement-pane[hidden] { display: none; }
.transfer-pane { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; }
.transfer-arrow { width: 20px; height: 20px; color: var(--accent-strong); }
.movement-account-field { display: grid; min-width: 0; gap: 6px; }
.movement-account-field > span,
.movement-form label > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.account-picker { display: flex; min-width: 0; gap: 6px; overflow-x: auto; padding: 1px 1px 3px; scrollbar-width: thin; }
.account-picker button { display: inline-flex; min-width: 0; height: 38px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 5px 9px 5px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 10px; font-weight: 700; }
.account-picker button:hover { border-color: var(--line-strong); color: var(--ink); }
.account-picker button.is-active { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent); }
.account-picker button > span:last-child { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movement-fields { display: grid; grid-template-columns: 140px 150px minmax(180px, 1fr) auto; align-items: end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.movement-form label { display: grid; gap: 5px; }
.movement-form input,
.movement-form select,
.balance-row input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
}
.movement-form input:focus,
.movement-form select:focus,
.balance-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.movement-form .money-input input { padding-right: 28px; }
.primary-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--accent-contrast);
  background: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.primary-button:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.primary-button svg { width: 16px; height: 16px; }
.primary-button:disabled { cursor: default; opacity: .72; }
.movement-list { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.movement-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 110px minmax(80px, .65fr) 32px; align-items: center; gap: 14px; min-height: 58px; border-bottom: 1px solid var(--line); }
.movement-row time { color: var(--muted); font-size: 9px; }
.movement-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.movement-route { display: flex; min-width: 0; align-items: center; gap: 7px; }
.movement-route > span { font-size: 10px; font-weight: 700; }
.movement-route > svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--accent-strong); }
.movement-account { font-size: 10px; font-weight: 700; }
.movement-amount { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.movement-row-note { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.flow-badge.transfer { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.movement-empty { padding: 26px 0; color: var(--muted); font-size: 10px; text-align: center; }
.table-icon-button { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; }
.table-icon-button:hover { color: var(--negative); background: color-mix(in srgb, var(--negative) 13%, transparent); }
.table-icon-button svg { width: 15px; height: 15px; }

.bookmaker-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr)) minmax(180px, 1.35fr);
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.bookmaker-summary > div {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: baseline;
  gap: 8px;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}
.bookmaker-summary > div:first-child { border-left: 0; }
.bookmaker-summary strong { font-size: 23px; line-height: 1; white-space: nowrap; }
.bookmaker-summary span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.onboarding-panel {
  display: grid;
  gap: 20px;
  margin: 4px 0 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: var(--surface);
}
.onboarding-panel[hidden] { display: none; }
.onboarding-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.onboarding-heading { display: grid; gap: 4px; }
.onboarding-heading h2 { margin: 0; font-size: 18px; }
.onboarding-heading > span { color: var(--accent-strong); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.onboarding-progress { display: grid; gap: 7px; }
.onboarding-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 700; }
.onboarding-progress > div strong { color: var(--ink); font-size: 10px; }
.onboarding-progress-track { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: var(--surface-soft); }
.onboarding-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--positive); transition: width .2s ease; }
.onboarding-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.onboarding-steps::before { position: absolute; top: 15px; right: 10%; left: 10%; height: 1px; background: var(--line-strong); content: ""; }
.onboarding-step {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 7px 8px 9px;
  border-radius: 6px;
}
.onboarding-step.is-active { background: var(--accent-soft); }
.onboarding-step-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 800;
}
.onboarding-step.is-active .onboarding-step-index { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.onboarding-step.is-complete .onboarding-step-index { border-color: var(--positive); color: var(--surface); background: var(--positive); }
.onboarding-step-index svg { width: 13px; height: 13px; }
.onboarding-step-copy { display: grid; min-width: 0; gap: 3px; padding-top: 2px; }
.onboarding-step-copy strong { font-size: 11px; }
.onboarding-step-copy span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.onboarding-step.is-complete .onboarding-step-copy strong { color: var(--muted); }
.onboarding-next { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.onboarding-next-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--accent-contrast); background: var(--accent); }
.onboarding-next-icon svg { width: 15px; height: 15px; }
.onboarding-next-copy { display: grid; gap: 3px; }
.onboarding-next-copy strong { font-size: 12px; }
.onboarding-next-copy span { color: var(--accent-strong); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.onboarding-next-copy small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.onboarding-next .primary-button { flex: 0 0 auto; }
.connections-section { margin-top: 0; }
.bookmaker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.bookmaker-toolbar p { margin: 0; color: var(--muted); font-size: 10px; }
.bookmaker-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.connection-card {
  min-width: 0;
  padding: 16px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.connection-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.connector-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.connector-logo,
.catalog-logo {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.connector-logo img,
.catalog-logo img { width: 100%; height: 100%; object-fit: contain; }
.connector-identity div { display: grid; min-width: 0; gap: 2px; }
.connector-identity strong { font-size: 15px; line-height: 1.2; }
.connector-identity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.connection-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.connection-status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); content: ""; }
.connection-status.connected { color: var(--positive); }
.connection-status.connected::before { background: var(--positive); }
.connection-status.fresh { color: var(--positive); }
.connection-status.fresh::before { background: var(--positive); }
.connection-status.stale { color: var(--warning); }
.connection-status.stale::before { background: var(--warning); }
.connection-status.error { color: var(--negative); }
.connection-status.error::before { background: var(--negative); }
.connection-status.never { color: var(--muted); }
.connection-status.never::before { background: var(--line-strong); }
.connection-status.syncing { color: var(--blue); }
.connection-status.syncing::before { background: var(--blue); animation: status-pulse 1.2s ease-in-out infinite; }
.connection-status.attention { color: var(--negative); }
.connection-status.attention::before { background: var(--negative); }
.connection-status.unverified { color: var(--warning); }
.connection-status.unverified::before { background: var(--warning); }
.connection-status.beta { color: var(--blue); }
.connection-status.beta::before { background: var(--blue); }
.connection-status.planned { color: var(--muted); }
.connection-status.planned::before { background: var(--line-strong); }
.connection-card-state { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.connection-card-state .table-icon-button:hover { color: var(--ink); background: var(--surface-soft); }
.connection-meta {
  display: grid;
  grid-template-columns: .9fr .7fr 1.4fr;
  gap: 14px;
  margin: 15px 0 13px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.connection-meta div { display: grid; min-width: 0; gap: 4px; }
.connection-meta span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.connection-meta strong { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.connection-actions { display: flex; min-height: 36px; align-items: center; justify-content: flex-end; gap: 12px; }
.connection-actions button { flex: 0 0 auto; }
.connection-button-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.connector-roadmap { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.connector-roadmap.beta { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.connection-error { margin: 0 0 12px; color: var(--negative); font-size: 10px; line-height: 1.45; }
.connection-warning { margin: 0 0 12px; color: var(--accent); font-size: 10px; line-height: 1.45; }
.sync-history-disclosure {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sync-history-disclosure > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}
.sync-history-disclosure > summary::-webkit-details-marker { display: none; }
.sync-history-disclosure > summary svg { width: 17px; height: 17px; color: var(--muted); transition: transform .18s ease; }
.sync-history-disclosure[open] > summary svg { transform: rotate(180deg); }
.sync-history-section { padding-bottom: 14px; }
.sync-status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; }
.sync-status-badge::before { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); content: ""; }
.sync-status-badge.success { color: var(--positive); }
.sync-status-badge.success::before { background: var(--positive); }
.sync-status-badge.failed { color: var(--negative); }
.sync-status-badge.failed::before { background: var(--negative); }
.sync-status-badge.running { color: var(--blue); }
.sync-status-badge.running::before { background: var(--blue); }
@keyframes status-pulse { 50% { opacity: .35; } }

.drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(13,28,23,.35); }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(460px, 100%); height: 100%; overflow-y: auto; padding: 24px; background: var(--surface); box-shadow: -18px 0 50px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .22s ease; }
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-panel h2 { margin: 0; font-size: 20px; }
.drawer-content { padding-top: 8px; }
.detail-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--muted); font-size: 11px; }
.detail-row dd { margin: 0; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }

.help-panel { width: min(480px, 100%); }
.help-content { display: grid; gap: 24px; padding-top: 22px; }
.help-content h3 { margin: 0; font-size: 14px; }
.help-start { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.help-start ol { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.help-start li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 11px; }
.help-start li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 50%;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 800;
}
.help-start li div,
.help-page-list button > span:last-child,
.help-privacy span { display: grid; min-width: 0; gap: 3px; }
.help-start strong,
.help-page-list strong,
.help-privacy strong { font-size: 11px; }
.help-start small,
.help-page-list small,
.help-privacy small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.help-section { display: grid; gap: 12px; }
.help-page-list { display: grid; border-top: 1px solid var(--line); }
.help-page-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.help-page-list button:hover { color: var(--accent-strong); background: var(--accent-soft); }
.help-page-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; color: var(--accent-strong); background: var(--accent-soft); font-size: 15px; font-weight: 800; }
.help-definitions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.help-definitions dl div { min-width: 0; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
.help-definitions dl div:nth-child(even) { padding-right: 0; padding-left: 10px; border-left: 1px solid var(--line); }
.help-definitions dt { margin-bottom: 4px; font-size: 10px; font-weight: 800; }
.help-definitions dd { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.help-privacy { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.help-privacy svg { width: 21px; height: 21px; color: var(--positive); }

.auth-modal { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.auth-modal.is-open { visibility: visible; opacity: 1; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 6, .72); backdrop-filter: blur(3px); }
.auth-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  transform: translate(-50%, calc(-50% + 8px));
  transition: transform .18s ease;
}
.auth-modal.is-open .auth-dialog { transform: translate(-50%, -50%); }
.auth-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.auth-dialog > header h2 { margin: 0; font-size: 19px; }
.auth-dialog .account-content { gap: 16px; padding: 18px 22px 20px; }
.account-content { display: grid; gap: 22px; padding-top: 22px; }
.account-loading { padding: 30px 0; color: var(--muted); text-align: center; }
.account-intro { display: grid; gap: 7px; }
.account-intro h3 { margin: 0; font-size: 18px; }
.account-intro p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}
.auth-tabs button { border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.auth-tabs button.is-active { color: var(--ink); background: var(--surface-raised); box-shadow: 0 1px 5px rgba(20,18,12,.1); }
.account-form { display: grid; gap: 14px; }
.account-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.account-form input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
}
.account-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.account-form .primary-button { width: 100%; margin-top: 2px; }
.account-link-button { border: 0; padding: 2px; color: var(--accent-strong); background: transparent; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; text-align: center; }
.account-link-button:hover { text-decoration: underline; }
.account-form-note { margin: -4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.account-error { margin: 0; padding: 10px 12px; border-left: 2px solid var(--negative); color: var(--negative); background: color-mix(in srgb, var(--negative) 7%, transparent); font-size: 10px; line-height: 1.45; }
.danger-setting strong { color: var(--negative); }
.danger-button { border-color: color-mix(in srgb, var(--negative) 55%, var(--line)); color: var(--negative); }
.danger-button:hover { border-color: var(--negative); background: color-mix(in srgb, var(--negative) 9%, var(--surface)); }
.account-delete-form { display: grid; gap: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--negative) 45%, var(--line)); border-radius: 7px; background: color-mix(in srgb, var(--negative) 5%, var(--surface)); }
.account-delete-form > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-delete-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.account-delete-form input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: var(--surface); }
.account-delete-form input:focus { border-color: var(--negative); box-shadow: 0 0 0 3px color-mix(in srgb, var(--negative) 12%, transparent); }
.account-delete-form > div { display: flex; justify-content: flex-end; gap: 8px; }
.danger-confirm-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--negative); border-radius: 6px; color: #fff; background: var(--negative); cursor: pointer; font-size: 11px; font-weight: 750; }
.danger-confirm-button:disabled { opacity: .6; cursor: default; }

.legal-modal { position: fixed; inset: 0; z-index: 92; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.legal-modal.is-open { visibility: visible; opacity: 1; }
.legal-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 6, .76); backdrop-filter: blur(4px); }
.legal-dialog { position: absolute; top: 50%; left: 50%; width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface-raised); box-shadow: 0 30px 90px rgba(0, 0, 0, .42); transform: translate(-50%, calc(-50% + 8px)); transition: transform .18s ease; }
.legal-modal.is-open .legal-dialog { transform: translate(-50%, -50%); }
.legal-dialog > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.legal-dialog h2 { margin: 0; font-size: 20px; }
.legal-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 24px 26px; }
.legal-content .legal-notice { grid-column: 1 / -1; margin: 0 0 4px; padding: 10px 12px; border-left: 2px solid var(--accent); color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.legal-content section { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.legal-content section:nth-of-type(even) { padding-right: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.legal-content h3 { margin: 0 0 8px; font-size: 12px; }
.legal-content p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.account-security {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.account-security svg { width: 20px; height: 20px; color: var(--positive); }
.account-security div { display: grid; gap: 3px; }
.account-security strong { font-size: 11px; }
.account-security span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-identity { display: grid; min-width: 0; gap: 3px; }
.account-identity strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.account-identity span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-section { display: grid; gap: 12px; }
.account-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.account-section-header div { display: grid; gap: 3px; }
.account-section-header h3 { margin: 0; font-size: 14px; }
.account-section-header span { color: var(--muted); font-size: 9px; }
.extension-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.extension-state-copy { display: grid; min-width: 0; gap: 3px; }
.extension-state-copy strong { font-size: 11px; }
.extension-state-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.extension-state-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 750; white-space: nowrap; }
.extension-state-badge::before { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); content: ""; }
.extension-state-badge.connected { color: var(--positive); }
.extension-state-badge.connected::before { background: var(--positive); }
.pairing-progress { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent-soft); }
.pairing-progress strong { font-size: 12px; }
.pairing-progress span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.pairing-code { font-variant-numeric: tabular-nums; font-size: 20px !important; font-weight: 800; letter-spacing: 2px; color: var(--ink) !important; }
.device-list { display: grid; }
.device-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.device-row:first-child { border-top: 1px solid var(--line); }
.device-copy { display: grid; min-width: 0; gap: 3px; }
.device-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.device-copy span { color: var(--muted); font-size: 9px; }
.account-actions { display: flex; justify-content: flex-end; padding-top: 4px; }

.account-settings { width: min(1160px, 100%); margin: 0 auto; }

.admin-view { width: min(1440px, 100%); margin: 0 auto; }
.admin-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}
.admin-kpi { display: grid; min-width: 0; gap: 7px; padding: 18px 20px; }
.admin-kpi + .admin-kpi { border-left: 1px solid var(--line); }
.admin-kpi > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-kpi strong { overflow: hidden; font-family: var(--font-display); font-size: 25px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.admin-kpi small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-kpi strong.warning { color: var(--warning); }
.admin-kpi strong.positive { color: var(--positive); }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); gap: 18px; }
.admin-overview-grid .panel { min-height: 320px; }
.admin-overview-grid .panel-header h2 { margin: 0; font-size: 17px; }
.admin-registration-chart { display: grid; grid-template-columns: repeat(30, minmax(5px, 1fr)); align-items: end; gap: 4px; height: 230px; padding-top: 18px; }
.admin-registration-day { display: grid; grid-template-rows: 16px minmax(0, 1fr) 17px; align-items: end; gap: 5px; height: 100%; min-width: 0; text-align: center; }
.admin-registration-day > span { color: var(--ink); font-size: 8px; font-weight: 750; }
.admin-registration-day > div { position: relative; height: 100%; border-bottom: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface-soft) 72%, transparent); }
.admin-registration-day i { position: absolute; right: 1px; bottom: 0; left: 1px; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.admin-registration-day small { overflow: visible; color: var(--muted); font-size: 8px; white-space: nowrap; }
.admin-bookmakers { display: grid; align-content: start; }
.admin-bookmaker-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-bookmaker-row:first-child { border-top: 0; }
.admin-bookmaker-logo,
.admin-bookmaker-fallback { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.admin-bookmaker-logo { padding: 4px; }
.admin-bookmaker-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.admin-bookmaker-fallback { color: var(--accent-strong); font-weight: 800; }
.admin-bookmaker-copy { display: grid; min-width: 0; gap: 6px; }
.admin-bookmaker-copy > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-bookmaker-copy strong { font-size: 11px; }
.admin-bookmaker-copy span,
.admin-bookmaker-copy small { color: var(--muted); font-size: 8px; }
.admin-bookmaker-track { height: 4px; overflow: hidden; border-radius: 4px; background: var(--surface-soft); }
.admin-bookmaker-track i { display: block; height: 100%; border-radius: inherit; background: var(--positive); }
.admin-users-section { margin-top: 20px; border-top: 1px solid var(--line); }
.admin-users-header { align-items: center; margin: 0; padding: 20px 0 14px; }
.admin-users-header > div { display: flex; align-items: baseline; gap: 10px; }
.admin-search { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 7px; width: min(270px, 100%); height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); }
.admin-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.admin-search svg { width: 16px; height: 16px; color: var(--muted); }
.admin-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.admin-user-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); box-shadow: var(--shadow); }
.admin-user-table { width: 100%; min-width: 840px; border-collapse: collapse; }
.admin-user-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; }
.admin-user-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; vertical-align: middle; }
.admin-user-table tr:last-child td { border-bottom: 0; }
.admin-user-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 36%, transparent); }
.admin-user-table td > strong { color: var(--ink); }
.admin-user-identity { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.admin-user-identity > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 6px; color: var(--accent-strong); background: var(--accent-soft); font-family: var(--font-display); font-weight: 800; }
.admin-user-identity > div { display: grid; min-width: 0; gap: 3px; }
.admin-user-identity strong,
.admin-user-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-identity strong { color: var(--ink); font-size: 11px; }
.admin-user-identity small { color: var(--muted); font-size: 8px; }
.admin-activity { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 750; }
.admin-activity i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.admin-activity.active { color: var(--positive); }
.admin-activity.active i { background: var(--positive); }
.admin-activity.recent { color: var(--accent-strong); }
.admin-activity.recent i { background: var(--accent); }
.admin-cell-detail { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.admin-extension-count { color: var(--muted); }
.admin-extension-count.connected { display: inline-grid; min-width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--positive); background: color-mix(in srgb, var(--positive) 10%, transparent); font-weight: 800; }
.settings-profile { display: grid; grid-template-columns: 54px minmax(220px, 1fr) auto 194px; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.settings-profile-copy { display: grid; min-width: 0; gap: 5px; }
.settings-profile-copy > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.settings-profile-name { display: flex; min-width: 0; align-items: center; gap: 10px; }
.settings-profile h2 { margin: 0; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.settings-profile-name .extension-state-badge { flex: 0 0 auto; }
.settings-avatar { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 7px; color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent); font-size: 17px; font-weight: 850; }
.settings-profile-meta { display: grid; grid-template-columns: repeat(2, minmax(94px, 1fr)); margin: 0; }
.settings-profile-meta div { padding: 1px 22px; border-left: 1px solid var(--line); }
.settings-profile-meta dt { margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.settings-profile-meta dd { margin: 0; font-size: 12px; font-weight: 800; white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; margin-top: 14px; }
.settings-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.settings-panel > header { display: flex; min-height: 26px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.settings-panel > header h2 { margin: 0; font-size: 15px; }
.settings-panel > header > span { color: var(--muted); font-size: 9px; }
.theme-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.theme-settings button { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; font-weight: 750; }
.theme-settings button:hover { border-color: var(--accent); }
.theme-settings button.is-active { color: var(--ink); background: var(--surface-raised); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.theme-settings svg { width: 15px; height: 15px; }
.settings-panel > header > .extension-state-badge { color: var(--muted); font-size: 9px; }
.settings-panel > header > .extension-state-badge.connected { color: var(--positive); }
.settings-extension-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); gap: 0; }
.extension-primary { display: grid; align-content: start; gap: 14px; padding-right: 24px; }
.settings-extension-layout .extension-state { display: grid; grid-template-columns: 44px minmax(0, 1fr); justify-content: start; min-height: 58px; padding: 4px 0; border: 0; }
.extension-state-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.extension-state-icon.is-connected { border-color: color-mix(in srgb, var(--positive) 35%, var(--line)); color: var(--positive); background: color-mix(in srgb, var(--positive) 8%, var(--surface)); }
.extension-state-icon svg { width: 20px; height: 20px; }
.settings-extension-layout .extension-state-copy { align-content: center; }
.settings-extension-layout .extension-state-copy strong { font-size: 13px; }
.settings-extension-layout .extension-state-copy span { font-size: 9px; }
.settings-extension-layout .primary-button { justify-self: start; }
.authorized-devices { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.authorized-devices-heading { display: flex; align-items: center; justify-content: space-between; min-height: 32px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.authorized-devices-heading strong { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--surface-soft); font-size: 9px; }
.empty-state.compact { padding: 20px 10px; }
.security-setting-list { display: grid; border-top: 1px solid var(--line); }
.security-setting-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; border-bottom: 1px solid var(--line); }
.security-setting-row > svg { width: 17px; height: 17px; color: var(--muted); }
.security-setting-row strong { font-size: 11px; }
.security-setting-row .secondary-button { min-height: 34px; padding: 0 10px; font-size: 9px; }
.security-setting-row.danger-setting > svg { color: var(--negative); }
.settings-signed-out { display: grid; max-width: 380px; justify-items: center; gap: 10px; margin: 80px auto 0; text-align: center; }
.settings-signed-out h2 { margin: 6px 0 0; font-size: 20px; }
.settings-signed-out p { margin: 0 0 8px; color: var(--muted); font-size: 10px; }

.catalog-modal { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.catalog-modal.is-open { visibility: visible; opacity: 1; }
.catalog-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 6, .72); backdrop-filter: blur(3px); }
.catalog-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-raised);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  transform: translate(-50%, calc(-50% + 8px));
  transition: transform .18s ease;
}
.catalog-modal.is-open .catalog-dialog { transform: translate(-50%, -50%); }
.catalog-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.catalog-dialog-header h2 { margin: 0; font-size: 21px; }
.catalog-dialog-header > div { display: grid; gap: 4px; }
.catalog-dialog-header > div > span { color: var(--muted); font-size: 11px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.catalog-search { position: relative; flex: 1 1 300px; }
.catalog-search svg { position: absolute; top: 10px; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.catalog-search input { width: 100%; height: 36px; padding: 0 12px 0 35px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: var(--surface); font: inherit; font-size: 11px; }
.catalog-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.catalog-filters { display: flex; flex: 0 0 auto; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.catalog-filters button { min-width: 74px; padding: 0 9px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.catalog-filters button.is-active { color: var(--ink); background: var(--surface-raised); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.catalog-list { min-height: 180px; overflow-y: auto; padding: 0 22px; }
.catalog-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 88px 86px; align-items: center; gap: 12px; min-height: 72px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.catalog-row:last-child { border-bottom: 0; }
.catalog-logo { width: 38px; height: 38px; }
.catalog-bookmaker-copy { display: grid; min-width: 0; gap: 4px; }
.catalog-bookmaker-copy > div { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.catalog-bookmaker-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-bookmaker-copy span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.catalog-bookmaker-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 750; white-space: nowrap; }
.catalog-status::before { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); content: ""; }
.catalog-status.live { color: var(--positive); }
.catalog-status.live::before { background: var(--positive); }
.catalog-status.beta { color: var(--blue); }
.catalog-status.beta::before { background: var(--blue); }
.catalog-row > button { width: 86px; padding: 0 8px; }
.catalog-source { padding: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 9px; line-height: 1.45; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: min(360px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 6px; color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.empty-state { padding: 34px 18px; color: var(--muted); text-align: center; }

@media (max-width: 1180px) {
  .admin-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-kpi:nth-child(4) { border-left: 0; }
  .admin-kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-bookmakers { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .admin-bookmaker-row:nth-child(2) { border-top: 0; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #overview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid, .stats-grid, .bankroll-grid { grid-template-columns: 1fr; }
  .odds-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bet-history-item { grid-template-columns: 48px 98px minmax(0, 1fr) auto; }
  .bet-history-values { grid-column: 3 / -1; grid-row: 2; }
  .bet-history-item > .status-badge { grid-column: 4; grid-row: 1; }
}

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

@media (max-width: 820px) {
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-kpi:nth-child(odd) { border-left: 0; }
  .admin-kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .admin-kpi:nth-child(4) { border-left: 1px solid var(--line); }
  .admin-registration-chart { gap: 2px; }
  .admin-bookmakers { grid-template-columns: 1fr; }
  .admin-bookmaker-row:nth-child(2) { border-top: 1px solid var(--line); }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 12px 0;
  }
  .brand { padding: 0 2px 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-copy small, .sidebar-footer { display: none; }
  .main-nav { display: grid; min-width: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .nav-item { justify-content: center; min-width: 0; min-height: 38px; padding: 0 6px; border-radius: 5px 5px 0 0; }
  .nav-item svg { width: 16px; height: 16px; }
  .nav-item span { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .workspace { margin-left: 0; }
  .topbar { top: 88px; min-height: 66px; padding: 9px 14px; }
  .topbar-title p { display: none; }
  .topbar-title h1 { font-size: 17px; }
  .range-control { grid-template-columns: repeat(4, 42px); }
  .range-control button { font-size: 10px; }
  main { padding: 22px 14px 42px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .bets-filter-bar { grid-template-columns: 1fr 1fr; }
  .bets-filter-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bet-history-item { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 10px; }
  .bet-history-bookmaker { grid-column: 2; }
  .bet-history-copy { grid-column: 2 / -1; }
  .bet-history-values { grid-column: 2 / -1; grid-row: auto; }
  .bet-history-item > .status-badge { grid-column: 3; grid-row: 1; }
  .active-filter { grid-template-columns: minmax(0, 1fr) auto 32px; }
  .stats-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-summary > div:nth-child(odd) { border-left: 0; }
  .stats-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filter-summary { grid-column: 1 / -1; justify-content: flex-start; }
  .search-field { grid-column: 1 / -1; }
  .analysis-split { grid-template-columns: 1fr; }
  .sport-breakdown { grid-template-columns: 1fr; }
  .settings-grid,
  .settings-extension-layout { grid-template-columns: 1fr; }
  .settings-profile { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .settings-profile > .theme-settings { grid-column: 2 / -1; }
  .extension-primary { padding-right: 0; }
  .authorized-devices { margin-top: 4px; padding-top: 14px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .sport-group[open] { grid-column: auto; }
  .sport-summary { grid-template-columns: minmax(130px, 1fr) 60px 104px 74px 18px; gap: 10px; }
  .market-summary { grid-template-columns: minmax(140px, 1fr) 74px 104px 84px 18px; gap: 8px; }
  .market-details { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
  .market-details > .secondary-button { grid-column: 1 / -1; justify-content: center; }
  .odds-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bankroll-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bankroll-summary-item:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .bankroll-summary-item:nth-child(4) { border-top: 1px solid var(--line); }
  .movement-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movement-note { grid-column: 1 / -1; }
  .movement-row { grid-template-columns: 76px minmax(0, 1fr) 100px 32px; }
  .movement-row-note { display: none; }
  .connection-grid { grid-template-columns: 1fr; }
  .bookmaker-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bookmaker-summary > div:nth-child(odd) { border-left: 0; }
  .bookmaker-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .onboarding-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-steps::before { display: none; }
}

@media (max-width: 560px) {
  .admin-users-header { align-items: stretch; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-registration-chart { height: 200px; }
  .admin-registration-day small { display: none; }
  .settings-profile { grid-template-columns: 46px minmax(0, 1fr); gap: 14px 12px; padding: 16px; }
  .settings-profile-name { align-items: flex-start; flex-direction: column; gap: 5px; }
  .settings-profile-meta { grid-column: 1 / -1; width: 100%; border-top: 1px solid var(--line); }
  .settings-profile-meta div { padding: 12px 10px 0 0; border-left: 0; }
  .settings-profile-meta div + div { padding-right: 0; padding-left: 10px; border-left: 1px solid var(--line); }
  .settings-profile > .theme-settings { grid-column: 1 / -1; }
  .settings-avatar { width: 44px; height: 44px; font-size: 15px; }
  .settings-panel { padding: 16px; }
  .security-setting-row { align-items: center; gap: 8px; padding: 10px 0; }
  .security-setting-row .secondary-button { padding: 0 8px; }
  .brand-copy strong { font-size: 14px; }
  .topbar { gap: 8px; }
  .topbar-title { min-width: 82px; }
  .topbar-title h1 { font-size: 15px; }
  .range-control { grid-template-columns: repeat(4, 37px); height: 34px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions > #refresh-data { display: none; }
  .account-button { width: 34px; padding: 0; justify-content: center; }
  .account-button span { display: none; }
  .view-intro h2, .section-header h2 { font-size: 19px; }
  .freshness { max-width: 130px; text-align: right; }
  .kpi-grid, #overview-kpis, .kpi-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi-grid > .kpi-card:last-child:nth-child(odd) { grid-column: span 2; }
  .kpi-card { padding: 14px; }
  .kpi-card strong { font-size: 21px; }
  .overview-grid, .stats-grid, .bankroll-grid { gap: 10px; }
  .panel { padding: 16px; }
  .performance-panel .panel-header { align-items: flex-start; flex-direction: column; }
  .overview-chart-navigation { width: 100%; justify-content: space-between; }
  .overview-chart-navigation .panel-meta { min-width: 0; flex: 1; }
  .chart-wrap, .line-chart { min-height: 230px; height: 230px; }
  .insight-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .bets-filter-bar { grid-template-columns: 1fr; }
  .bets-toolbar { padding: 12px; }
  .bets-filter-controls { grid-template-columns: 1fr; }
  .bet-filter { grid-template-columns: 82px minmax(0, 1fr); align-items: center; }
  .bet-history-year > summary { min-height: 60px; padding-right: 12px; padding-left: 12px; }
  .bet-year-title strong { font-size: 19px; }
  .bet-history-month > summary { padding-right: 12px; padding-left: 12px; }
  .bet-history-week > header { align-items: flex-start; flex-direction: column; gap: 3px; padding: 8px 12px; }
  .bet-history-week > header .bet-group-summary { margin-left: 0; }
  .bet-history-item { padding: 12px 10px 12px 8px; }
  .bet-history-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
  .active-filter { grid-template-columns: minmax(0, 1fr) 32px; gap: 6px 10px; }
  .stats-summary > div { padding: 14px 12px; }
  .stats-summary strong { font-size: 19px; }
  .active-filter .filter-summary { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .stats-section-summary h2 { font-size: 19px; }
  .odds-card-grid { grid-template-columns: 1fr; }
  .filter-summary { grid-column: auto; }
  .search-field { grid-column: auto; }
  .filter-bar label:not(.search-field) { grid-template-columns: 72px 1fr; align-items: center; }
  .bankroll-summary-item { padding: 14px 12px; }
  .bankroll-summary-item strong { font-size: 19px; }
  .bankroll-allocation { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .allocation-chart { width: 112px; height: 112px; }
  .allocation-chart::before { inset: 18px; }
  .allocation-chart strong { font-size: 12px; }
  .bankroll-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-row { grid-template-columns: minmax(0, 1fr) 120px; gap: 5px 10px; padding: 8px 0; }
  .balance-share { grid-column: 1; grid-row: 2; text-align: left; }
  .balance-row > .money-input { grid-column: 2; grid-row: 1 / span 2; }
  .movements-section .section-header { align-items: stretch; flex-direction: column; }
  .movement-tabs { width: 100%; }
  .movement-tabs button { flex: 1; }
  .movement-pane,
  .transfer-pane { grid-template-columns: 1fr; align-items: stretch; }
  .cash-type-switch { width: 100%; }
  .cash-type-switch button { flex: 1; }
  .transfer-arrow { margin: 0 auto; transform: rotate(90deg); }
  .movement-fields { grid-template-columns: 1fr; }
  .movement-note { grid-column: auto; }
  .movement-row { grid-template-columns: 68px minmax(0, 1fr) 30px; gap: 9px; padding: 8px 0; }
  .movement-main { align-items: flex-start; flex-direction: column; gap: 5px; }
  .movement-amount { grid-column: 2; grid-row: 2; text-align: left; }
  .movement-row > .table-icon-button { grid-column: 3; grid-row: 1 / span 2; }
  .connection-card { padding: 16px; }
  .bookmaker-summary > div { min-height: 62px; padding: 14px 12px; }
  .bookmaker-summary strong { font-size: 19px; }
  .bookmaker-toolbar p { display: none; }
  .bookmaker-toolbar { justify-content: flex-end; }
  .connection-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-meta > :last-child { grid-column: 1 / -1; }
  .connection-button-group { width: 100%; justify-content: stretch; }
  .connection-button-group .secondary-button { flex: 1; justify-content: center; }
  .onboarding-panel { padding: 16px; }
  .onboarding-header { align-items: flex-start; }
  .onboarding-next .primary-button { width: 100%; justify-content: center; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .onboarding-steps::before { display: none; }
  .onboarding-step { min-height: 48px; }
  .onboarding-next { grid-template-columns: 30px minmax(0, 1fr); }
  .onboarding-next .primary-button { grid-column: 1 / -1; }
  .catalog-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .catalog-dialog-header { padding: 17px 16px 14px; }
  .catalog-dialog-header > div > span { display: none; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; padding: 12px 16px; }
  .catalog-search { flex-basis: auto; }
  .catalog-filters { width: 100%; }
  .catalog-filters button { flex: 1; min-width: 0; }
  .catalog-list { padding: 0 16px; }
  .catalog-row { grid-template-columns: 38px minmax(0, 1fr) 76px; gap: 9px; }
  .catalog-row .catalog-status { display: none; }
  .catalog-row > button { width: 76px; }
  .catalog-bookmaker-copy span { display: none; }
  .catalog-source { padding-right: 16px; padding-left: 16px; }
  .monthly-panel .panel-header { align-items: flex-start; flex-direction: column; }
  .month-navigation { width: 100%; justify-content: space-between; }
  .month-window-label { flex: 1; min-width: 0; }
  .monthly-chart { min-height: 250px; }
  .monthly-plot-frame { min-width: 650px; height: 280px; }
  .monthly-y-axis { height: 242px; }
  .monthly-bars-area { height: 280px; }
  .donut-wrap { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .donut { width: 84px; height: 84px; }
  .stats-feature-content { align-items: flex-start; flex-direction: column; }
  .stats-feature-result { align-items: baseline; grid-template-columns: auto auto; gap: 7px; text-align: left; }
  .stats-highlight-grid { gap: 6px; }
  .stats-highlight { padding: 9px 7px; }
  .stats-highlight > strong { font-size: 13px; }
  .sport-summary { grid-template-columns: minmax(105px, 1fr) 92px 18px; gap: 8px; padding-right: 12px; padding-left: 12px; }
  .sport-summary > :nth-child(2),
  .sport-summary > :nth-child(4) { display: none; }
  .sport-content { padding: 12px; }
  .sport-actions { align-items: stretch; flex-direction: column; }
  .sport-actions .secondary-button { justify-content: center; }
  .market-summary { grid-template-columns: minmax(105px, 1fr) 92px 18px; gap: 8px; padding-right: 10px; padding-left: 10px; }
  .market-summary > :nth-child(2),
  .market-summary > :nth-child(4) { display: none; }
  .market-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-row { grid-template-columns: 92px 1fr; }
}

@media (max-width: 900px) {
  .public-header { grid-template-columns: 1fr auto; min-height: 72px; padding: 0 22px; }
  .public-nav { display: none; }
  .landing-hero { min-height: 78svh; padding: 118px 28px 58px; }
  .landing-hero::before { width: 72%; background: rgba(5, 8, 6, .64); }
  .landing-hero h1 { font-size: 70px; }
  .landing-promise { font-size: 31px; }
  .landing-lead { font-size: 14px; }
  .landing-product { grid-template-columns: 1fr; padding: 68px 28px; }
  .landing-product-copy { max-width: 620px; }
  .landing-product-frame { max-width: 820px; }
  .landing-benefits,
  .landing-steps { padding: 68px 28px; }
  .landing-section-heading h2 { font-size: 37px; }
  .landing-sources { grid-template-columns: 1fr; gap: 22px; padding: 26px 28px; }
  .landing-security { grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding: 44px 28px; }
  .security-mark { width: 58px; height: 58px; }
  .landing-security h2 { font-size: 30px; }
  .security-points { grid-column: 1 / -1; }
  .landing-final { grid-template-columns: 1fr; }
  .landing-final h2 { font-size: 34px; }
  .install-hero { grid-template-columns: 1fr; gap: 44px; padding: 112px 28px 70px; }
  .install-back-link { margin-bottom: 30px; }
  .install-flow { max-width: 720px; }
  .install-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-step-list li { min-height: 190px; border-left: 0 !important; border-right: 1px solid #343934; }
  .install-step-list li:nth-child(even) { border-right: 0; }
  .install-step-list div { margin-top: 34px; }
  .install-finish { grid-template-columns: 1fr; gap: 42px; padding: 64px 28px; }
}

@media (max-width: 560px) {
  .public-header { padding: 0 16px; }
  .public-header .brand-mark { width: 30px; height: 30px; }
  .public-brand small { display: none; }
  .public-signup-button { display: none; }
  .public-login-button { min-height: 36px; padding: 0 12px; }
  .landing-hero { min-height: auto; padding: 104px 20px 40px; }
  .landing-hero::before { width: 100%; background: rgba(5, 8, 6, .66); }
  .landing-hero-media { object-position: 30% top; opacity: .65; }
  .landing-hero-shade { background: rgba(4, 7, 5, .42); }
  .landing-hero h1 { font-size: 57px; }
  .landing-promise { margin-top: 14px; font-size: 27px; }
  .landing-lead { font-size: 13px; line-height: 1.55; }
  .landing-actions { align-items: stretch; flex-direction: column; margin-top: 24px; }
  .landing-actions > button { width: 100%; }
  .landing-proof-row { gap: 8px 0; margin-top: 22px; }
  .landing-proof-row span { padding: 0 10px; }
  .landing-scan-copy { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; }
  .landing-scan-icon { width: 46px; height: 46px; }
  .landing-scan-copy strong { font-size: 14px; }
  .landing-product { gap: 36px; padding: 54px 20px; }
  .landing-product-copy h2 { font-size: 34px; }
  .landing-product-lead { font-size: 13px; }
  .landing-benefits,
  .landing-steps { padding: 54px 20px; }
  .landing-section-heading h2 { font-size: 32px; }
  .benefit-grid { margin-top: 30px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 178px; padding: 24px 20px; }
  .benefit-grid svg { margin: 22px 0 18px; }
  .landing-steps ol { grid-template-columns: 1fr; gap: 9px; margin-top: 30px; }
  .landing-steps ol::before { top: 34px; right: auto; bottom: 34px; left: 37px; width: 1px; height: auto; }
  .landing-steps li { min-height: 104px; padding: 20px; }
  .landing-logo-row { grid-template-columns: repeat(7, minmax(34px, 1fr)); gap: 4px; }
  .landing-logo-row span { min-height: 44px; padding: 5px; }
  .landing-logo-row img { max-width: 48px; max-height: 26px; }
  .landing-security { grid-template-columns: 1fr; padding: 42px 20px; }
  .landing-security h2 { font-size: 28px; }
  .security-points { grid-template-columns: 1fr; grid-column: 1; }
  .security-points li { min-height: 66px; border-top: 1px solid #343d37; border-left: 0; }
  .security-points li:first-child { border-top: 0; }
  .landing-final { padding: 46px 20px; }
  .landing-final h2 { font-size: 30px; }
  .public-footer { grid-template-columns: 1fr auto; padding: 24px 20px; }
  .public-footer-links { display: none; }
  .extension-install-page { padding-top: 72px; }
  .install-hero { min-height: auto; padding: 92px 20px 54px; }
  .install-hero h1 { font-size: 39px; }
  .install-lead { font-size: 14px; }
  .install-download-row { align-items: stretch; flex-direction: column; }
  .install-download-button { width: 100%; }
  .install-flow-head { grid-template-columns: 42px minmax(0, 1fr); padding: 16px; }
  .install-flow-icon { width: 42px; height: 42px; }
  .install-live { display: none; }
  .install-flow-sites { gap: 5px; padding: 16px; }
  .install-flow-sites > span { min-height: 48px; }
  .install-flow-sites img { max-width: 38px; max-height: 24px; }
  .install-flow-route { display: none; }
  .install-flow-result { grid-template-columns: 1fr; }
  .install-flow-result > span { min-height: 75px; padding: 16px; }
  .install-flow-result > span + span { border-top: 1px solid #30352f; border-left: 0; }
  .install-guide { padding: 52px 20px 60px; }
  .install-guide > header { align-items: flex-start; flex-direction: column; }
  .install-guide h2 { font-size: 30px; }
  .install-step-list { grid-template-columns: 1fr; }
  .install-step-list li { min-height: 0; padding: 24px 8px; border-right: 0; }
  .install-step-list div { margin-top: 20px; }
  .install-finish { padding: 52px 20px; }
  .install-finish h2 { font-size: 32px; }
  .legal-content { grid-template-columns: 1fr; padding: 16px 18px 20px; }
  .legal-dialog > header { padding: 18px; }
  .legal-content section,
  .legal-content section:nth-of-type(even) { padding: 15px 0; border-left: 0; }
  .account-delete-form > div { align-items: stretch; flex-direction: column; }
}

@media (max-height: 650px) {
  .landing-hero { min-height: auto; padding-top: 104px; padding-bottom: 34px; }
  .landing-hero h1 { font-size: 58px; }
  .landing-promise { margin-top: 14px; font-size: 28px; }
  .landing-lead { font-size: 13px; line-height: 1.5; }
  .landing-actions { margin-top: 20px; }
  .landing-actions > button { min-height: 40px; }
  .landing-proof-row { margin-top: 18px; }
}

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