/* Mobile presentation only; desktop variables and layout remain untouched. */
.tz-mobile-only, .tz-tablet-navigation, .tz-bottom-nav { display: none; }
@media (min-width: 768px) and (max-width: 1050px) { .tz-tablet-navigation { display: grid; } }
.app-header .brand-mark .tz-brand-inverse { display: none; }
.tz-mobile-more { display: block; }
@media (max-width: 767px) {
  :root {
    --tz-bg: #F3F5F4;
    --tz-surface: #FFFFFF;
    --tz-surface2: #F7F9F8;
    --tz-border: #E2E8E5;
    --tz-text: #1B2A24;
    --tz-text2: #33433C;
    --tz-muted: #55655E;
    --tz-primary: #2C6A4F;
    --tz-on-primary: #FFFFFF;
    --tz-primary-soft: #E6F2EA;
    --tz-primary-ink: #1E4A37;
    --tz-pos: #1E6B45;
    --tz-pos-bg: #E6F2EA;
    --tz-neg: #A3460F;
    --tz-neg-bg: #FBEDE4;
    --tz-loss: #B42318;
    --tz-loss-bg: #FDECEA;
    --tz-pend: #8A4B0B;
    --tz-pend-bg: #FFF4E5;
    --tz-info: #1F4E8C;
    --tz-info-bg: #EEF3FB;
    --tz-market-over: #4B2F9E;
    --tz-market-over-bg: #EFEAFB;
    --tz-market-btts: #0B5D5D;
    --tz-market-btts-bg: #E0F2F1;
    --tz-market-home: #7E2453;
    --tz-market-home-bg: #F9E6F0;
    --tz-market-over15-bg: #ECF0DF;
    --tz-market-over15: #425424;
    --tz-market-over35-bg: #F2E9F5;
    --tz-market-over35: #653B78;
    --tz-market-away_win-bg: #EFE9F3;
    --tz-market-away_win: #5D3F72;
    --tz-market-home_o15-bg: #ECEBF7;
    --tz-market-home_o15: #514C84;
    --tz-market-away_o05-bg: #E3F2EB;
    --tz-market-away_o05: #235D46;
    --tz-market-away_o15-bg: #E8F1E4;
    --tz-market-away_o15: #35562C;
    --tz-market-corners_o105-bg: #F3F0D9;
    --tz-market-corners_o105: #615717;
    --tz-nav-bg: #FFFFFF;
    --tz-scrim: rgba(27,42,36,.45);
    --tz-dis-bg: #F1F3F2;
    --tz-dis-fg: #5F6B66;
    --tz-last-win: #2C6A4F;
    --tz-last-loss: #D9822B;
    --tz-last-refund: #C9CFCC;
    --tz-shadow: rgba(0,0,0,.14);
    --tz-sheet-shadow: rgba(0,0,0,.28);
  }
  :root[data-theme="dark"] {
    --tz-bg: #0E1412;
    --tz-surface: #161E1B;
    --tz-surface2: #1B2521;
    --tz-border: #2A3631;
    --tz-text: #E8EFEB;
    --tz-text2: #C9D4CE;
    --tz-muted: #9EAEA6;
    --tz-primary: #5DB58C;
    --tz-on-primary: #0A1A12;
    --tz-primary-soft: #1C3529;
    --tz-primary-ink: #9ADBB9;
    --tz-pos: #72D29E;
    --tz-pos-bg: #16301F;
    --tz-neg: #F2A36F;
    --tz-neg-bg: #3A2417;
    --tz-loss: #FF8C82;
    --tz-loss-bg: #3B1D1A;
    --tz-pend: #F0C27A;
    --tz-pend-bg: #362A16;
    --tz-info: #93BDF5;
    --tz-info-bg: #172538;
    --tz-market-over: #C6B8F7;
    --tz-market-over-bg: #29224A;
    --tz-market-btts: #8ADCD5;
    --tz-market-btts-bg: #10302E;
    --tz-market-home: #F2A9CB;
    --tz-market-home-bg: #3A1C2B;
    --tz-market-over15-bg: #2A3617;
    --tz-market-over15: #D1E0B8;
    --tz-market-over35-bg: #2B1933;
    --tz-market-over35: #D3BBDD;
    --tz-market-away_win-bg: #281B31;
    --tz-market-away_win: #CFBDDB;
    --tz-market-home_o15-bg: #1E1C31;
    --tz-market-home_o15: #C1BEDA;
    --tz-market-away_o05-bg: #15382A;
    --tz-market-away_o05: #B5E3D1;
    --tz-market-away_o15-bg: #1F331A;
    --tz-market-away_o15: #C3DCBC;
    --tz-market-corners_o105-bg: #393413;
    --tz-market-corners_o105: #E8E0B0;
    --tz-nav-bg: #121916;
    --tz-scrim: rgba(0,0,0,.6);
    --tz-dis-bg: #202A26;
    --tz-dis-fg: #8A9993;
    --tz-last-win: #72D29E;
    --tz-last-loss: #C2662A;
    --tz-last-refund: #4A5751;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
      --tz-bg: #0E1412;
      --tz-surface: #161E1B;
      --tz-surface2: #1B2521;
      --tz-border: #2A3631;
      --tz-text: #E8EFEB;
      --tz-text2: #C9D4CE;
      --tz-muted: #9EAEA6;
      --tz-primary: #5DB58C;
      --tz-on-primary: #0A1A12;
      --tz-primary-soft: #1C3529;
      --tz-primary-ink: #9ADBB9;
      --tz-pos: #72D29E;
      --tz-pos-bg: #16301F;
      --tz-neg: #F2A36F;
      --tz-neg-bg: #3A2417;
      --tz-loss: #FF8C82;
      --tz-loss-bg: #3B1D1A;
      --tz-pend: #F0C27A;
      --tz-pend-bg: #362A16;
      --tz-info: #93BDF5;
      --tz-info-bg: #172538;
      --tz-market-over: #C6B8F7;
      --tz-market-over-bg: #29224A;
      --tz-market-btts: #8ADCD5;
      --tz-market-btts-bg: #10302E;
      --tz-market-home: #F2A9CB;
      --tz-market-home-bg: #3A1C2B;
      --tz-market-over15-bg: #2A3617;
      --tz-market-over15: #D1E0B8;
      --tz-market-over35-bg: #2B1933;
      --tz-market-over35: #D3BBDD;
      --tz-market-away_win-bg: #281B31;
      --tz-market-away_win: #CFBDDB;
      --tz-market-home_o15-bg: #1E1C31;
      --tz-market-home_o15: #C1BEDA;
      --tz-market-away_o05-bg: #15382A;
      --tz-market-away_o05: #B5E3D1;
      --tz-market-away_o15-bg: #1F331A;
      --tz-market-away_o15: #C3DCBC;
      --tz-market-corners_o105-bg: #393413;
      --tz-market-corners_o105: #E8E0B0;
      --tz-nav-bg: #121916;
      --tz-scrim: rgba(0,0,0,.6);
      --tz-dis-bg: #202A26;
      --tz-dis-fg: #8A9993;
      --tz-last-win: #72D29E;
      --tz-last-loss: #C2662A;
      --tz-last-refund: #4A5751;
    }
  }
  :root { --background: var(--tz-bg); --foreground: var(--tz-text); --card: var(--tz-surface); --primary: var(--tz-primary); --border: var(--tz-border); --readable-muted: var(--tz-muted); }
  html { background: var(--tz-bg); }
  body { background: var(--tz-bg); color: var(--tz-text); }
  .app-shell, .access-action-capture { width: 100%; min-width: 0; background: var(--tz-bg); color: var(--tz-text); }
  .tz-mobile-only { display: block; }
  .tz-desktop-only { display: none !important; }
  .app-header.app-header--feedback {
    height: 56px; min-height: 56px; padding: 0 16px; gap: 8px;
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
    background: var(--tz-surface); border-bottom: 1px solid var(--tz-border);
  }
  .app-header .brand { min-height: 44px; min-width: 0; gap: 10px; }
  .app-header .brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--tz-primary); flex: 0 0 32px; }
  .app-header .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
  :root[data-theme="dark"] .app-header .brand-mark img:not(.tz-brand-inverse) { display: none; }
  :root[data-theme="dark"] .app-header .brand-mark .tz-brand-inverse { display: block; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .app-header .brand-mark img:not(.tz-brand-inverse) { display: none; }
    :root:not([data-theme]) .app-header .brand-mark .tz-brand-inverse { display: block; }
  }
  .app-header .brand-word { font-size: 1.0625rem; font-weight: 800; line-height: 1; color: var(--tz-text); }
  .app-header .brand-word > span, .app-header .main-nav,
  .app-header .guide-header-link, .app-header .feedback-header-button,
  .app-header .admin-header-link { display: none !important; }
  .app-header .header-right { width: 44px; min-width: 44px; margin: 0; gap: 0; }
  .app-header .account-link { width: 44px; height: 44px; padding: 0; margin: 0; justify-content: center; border: 0; background: transparent; color: var(--tz-text2); }
  .app-header .account-link > span:not(.account-avatar), .app-header .account-link > svg { display: none; }
  .app-header .account-avatar { width: 44px; height: 44px; border: 0; background: transparent; color: var(--tz-text2); }
  .app-header .account-avatar svg { width: 24px; height: 24px; }
  .main-content { width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 20px 16px 100px; }
  .user-guide-links { display: none !important; }
  .app-footer { padding: 16px 16px 108px; margin: 0; max-width: 100%; color: var(--tz-muted); border-color: var(--tz-border); background: var(--tz-bg); }
  .app-footer a { min-width: 44px; color: var(--tz-primary-ink); min-height: 44px; display: inline-flex; align-items: center; }
  .app-footer .odds-information-warning { font-size: .8125rem; color: var(--tz-text2); overflow-wrap: anywhere; }
  .mobile-nav.tz-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%;
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0;
    min-height: 84px; height: auto; padding: 6px 0 max(22px,env(safe-area-inset-bottom));
    background: var(--tz-nav-bg); border-top: 1px solid var(--tz-border); z-index: 40;
  }
  .tz-bottom-nav > a {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    min-width: 0; min-height: 56px; padding: 0 1px; gap: 4px; margin: 0;
    border: 0; background: transparent; color: var(--tz-muted); text-decoration: none;
    font-size: .6875rem; font-weight: 500; line-height: 16px;
  }
  .tz-bottom-nav .tz-nav-pill { width: 56px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
  .tz-bottom-nav .tz-nav-pill svg { width: 22px; height: 22px; stroke-width: 2; }
  .tz-bottom-nav > a.active { color: var(--tz-primary-ink); font-weight: 700; background: transparent; }
  .tz-bottom-nav > a.active .tz-nav-pill { background: var(--tz-primary-soft); }
  .page-heading { margin: 0 0 20px; min-width: 0; flex-wrap: wrap; gap: 12px; }
  .page-heading h1, .module-heading h1, .tz-mobile-title { font-size: 1.625rem; line-height: 1.2; font-weight: 800; letter-spacing: -.4px; color: var(--tz-text); }
  .page-heading p, .module-heading p { font-size: .8125rem; line-height: 1.5; color: var(--tz-text2); }
  .eyebrow, .tz-mobile-kicker { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tz-muted); }
  .eyebrow .tiny-line { display: none; }
  .tz-mobile-tabs { display: flex; min-width: 0; padding: 4px; border: 1px solid var(--tz-border); border-radius: 12px; background: var(--tz-surface2); }
  .tz-mobile-tabs > :is(a,button) { min-width: 0; flex: 1; min-height: 44px; padding: 8px 4px; border-radius: 9px; color: var(--tz-muted); font-size: .8125rem; text-align: center; font-weight: 500; }
  .tz-mobile-tabs > .active { background: var(--tz-surface); color: var(--tz-text); font-weight: 700; box-shadow: 0 1px 3px var(--tz-shadow); }
  .tz-mobile-chips { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; min-width: 0; padding: 2px 0; scrollbar-width: none; }
  .tz-mobile-chips > :is(a,button) { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tz-border); background: var(--tz-surface); color: var(--tz-text2); font-size: .8125rem; font-weight: 600; }
  .tz-mobile-chips > .active { background: var(--tz-primary); color: var(--tz-on-primary); border-color: var(--tz-primary); }
  .tz-mobile-card { border: 1px solid var(--tz-border); border-radius: 16px; padding: 12px 14px; background: var(--tz-surface); color: var(--tz-text); }
  .tz-mobile-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .tz-mobile-summary > div { min-width: 0; border: 1px solid var(--tz-border); border-radius: 12px; padding: 10px 12px; background: var(--tz-surface); }
  .tz-mobile-summary small { font-size: .75rem; color: var(--tz-muted); }
  .tz-mobile-summary strong { display: block; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
  .tz-mobile-scrim { position: fixed; inset: 0; z-index: 60; background: var(--tz-scrim); border: 0; }
  .tz-mobile-sheet { position: fixed; z-index: 61; inset: 44px 0 0; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; background: var(--tz-surface); color: var(--tz-text); overflow: hidden; }
  .tz-mobile-sheet-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
  .tz-mobile-sheet-footer { flex: 0 0 auto; padding: 12px 16px max(16px,env(safe-area-inset-bottom)); background: var(--tz-surface); border-top: 1px solid var(--tz-border); }
  .tz-mobile-sheet-footer > button { width: 100%; }
  .tz-mobile-sheet-footer > button + button { margin-top: 8px; }
  .app-shell :is(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--tz-primary); outline-offset: 3px; }
  .tz-mobile-more h1 { margin: 6px 0 20px; }
  .tz-more-group { margin: 0 0 16px; }
  .tz-more-group h2 { margin: 0 4px 8px; font-size: .75rem; letter-spacing: 1.5px; font-weight: 700; color: var(--tz-muted); }
  .tz-more-group > div { background: var(--tz-surface); border: 1px solid var(--tz-border); border-radius: 16px; overflow: hidden; }
  .tz-more-group a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; color: var(--tz-text); font-size: .9375rem; font-weight: 600; text-decoration: none; }
  .tz-more-group a + a { border-top: 1px solid var(--tz-border); }
  .tz-more-group a > svg:first-child { width: 20px; height: 20px; flex: 0 0 20px; color: var(--tz-primary-ink); }
  .tz-more-group a > span { min-width: 0; }
  .tz-more-group a > small { margin-left: auto; font-size: .8125rem; font-weight: 400; color: var(--tz-muted); text-align: right; }
  .tz-more-group a > svg:last-child { width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; color: var(--tz-muted); }
  .tz-more-group a:has(small) > svg:last-child { margin-left: 0; }
  .app-shell :is(button,input,select,textarea) { font-variant-numeric: tabular-nums; }
  .app-shell :is(button,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden])) { min-height: 44px; }
  .app-shell :is(button,[role=button]) { min-width: 44px; }
  .app-shell button:disabled { opacity: 1; color: var(--tz-dis-fg); background: var(--tz-dis-bg); }
  .app-shell input, .app-shell select, .app-shell textarea { background: var(--tz-surface2); color: var(--tz-text); border-color: var(--tz-border); max-width: 100%; }
  .app-shell .primary-button { background: var(--tz-primary); color: var(--tz-on-primary); border-color: var(--tz-primary); }
  .app-shell :is(.positive,.green-text) { color: var(--tz-pos); }
  .app-shell :is(.negative,.orange-text) { color: var(--tz-neg); }
  [data-slot="dialog-overlay"] { background: var(--tz-scrim); }
  [data-slot="dialog-content"] { background: var(--tz-surface); color: var(--tz-text); border-color: var(--tz-border); max-height: calc(100dvh - 32px); overflow-y: auto; }
  [data-slot="dialog-content"] :is(button,[role=button]) { min-width: 44px; min-height: 44px; }
  [data-slot="dropdown-menu-content"], .personal-nav-menu, .ranking-nav-menu { background: var(--tz-surface); color: var(--tz-text); border-color: var(--tz-border); max-width: calc(100vw - 32px); }
  [data-slot="dropdown-menu-item"] { min-height: 44px; }
  .admin-console { min-width: 0; max-width: calc(100% + 32px); }
  .admin-console-main, .admin-console-section, .admin-console-card { min-width: 0; max-width: 100%; }
  .admin-console :is(.admin-console-table-wrap,.admin-console-table-scroll,.table-wrap,.admin-table-wrap,.results-table-wrap,.data-table-wrap) { overflow-x: auto; max-width: 100%; min-width: 0; }
  .admin-console :is(.admin-console-menu,.admin-console-subnav) { max-width: 100%; }
  .admin-console :is(.admin-console-card-heading,.admin-console-section-heading) { flex-wrap: wrap; }
  .admin-console :is(input,select,textarea) { min-width: 0; }
  .tz-mobile-sheet, [data-slot="dialog-content"] { -webkit-overflow-scrolling: touch; }
  @media (prefers-reduced-motion: no-preference) {
    .tz-mobile-sheet { animation: tz-sheet-in .18s ease-out; }
    @keyframes tz-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  }
}

@media (max-width: 767px) {
  .mobile-nav.tz-tablet-navigation { display: none !important; }
}
