/* =========================================================
   PlayGloba - phone view (screens up to 760px wide).
   Loads LAST on every page (page.tag, dashLayout.tag, adminLayout.tag),
   so it only re-dresses what the other sheets already lay out.
   Desktop is not touched: everything below sits inside one media query.

   The look: warm cream ground, white cards, one deep green accent,
   Bricolage Grotesque headings over DM Sans text, pill buttons, no shadows.
   Most of it comes from swapping the colour/font tokens; the rest are
   small layout fixes so pages feel like an app (bottom tab bar, sticky
   bars, swipeable rows, bottom-sheet pop-ups).
   ========================================================= */

/* Loaded with media="(max-width: 760px)", so desktops never wait for it.
   The "hidden on desktop" rules for phone-only pieces live in styles.css. */

@media (max-width: 760px) {

  /* ================= Tokens ================= */
  :root {
    --green: #1F5F4A;
    --green-dark: #174A39;
    --green-light: #3B7D66;
    --green-soft: #E3EBE6;
    --ink: #151513;
    --text: #3D3C38;
    --muted: #6B6A64;
    --line: #E4DFD4;
    --bg: #F6F4EF;
    --bg-soft: #EFECE4;

    --blue: #2F4A6B;   --blue-soft: #E2E7EE;
    --orange: #B4532A; --orange-soft: #F3E6DA;
    --purple: #5B4B8A; --purple-soft: #E8E4F0;
    --pink: #B3364A;   --pink-soft: #F5E3E5;
    --lime: #5E7A1F;   --lime-soft: #EAEEDB;
    --navy: #2F4A6B;

    --radius: 16px;
    --radius-lg: 22px;
    --shadow: none;
    --font: "DM Sans", system-ui, -apple-system, sans-serif;
    --display: "Bricolage Grotesque", Georgia, serif;

    --m-head: 60px;                                  /* site header height */
    --m-tab: 64px;                                   /* bottom tab bar height */
    --m-top: env(safe-area-inset-top, 0px);
    --m-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ================= Base ================= */
  body, body.dash-body { background: var(--bg); color: var(--text); font-size: 15px; }
  h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
  .container { padding: 0 20px; }

  /* Big headings: one calm weight everywhere */
  .hero h1, .page-hero h1, .profile-head h1, .page-title, .acct-main > h1, .order-title h1,
  .order-banner h1, .auth-aside h1, .post-head h1, .event-banner h1, .dash-top h1,
  .section-head h2, .pro-intro h2, .cta-band h2, .tl-group, .tl-h2, .tl-next h2, .sc-result h2 {
    font-weight: 600;
  }

  /* 16px text in every field, so iPhones don't zoom in when you tap one */
  .input, .field select, .field textarea, .f-input, .f-select, .search-field input, .search-field select,
  .msg-form textarea, .news-form input, .cp-input, .help-search .f-input, .coupon .input {
    font-size: 16px;
  }
  .input, .field select, .f-input, .f-select { min-height: 46px; border-radius: 12px; border-color: var(--line); }
  .field textarea { border-radius: 12px; border-color: var(--line); }
  .prefix { border-color: var(--line); border-radius: 12px 0 0 12px; }
  .prefix + .input { border-radius: 0 12px 12px 0; }

  /* ================= Buttons ================= */
  .btn { min-height: 46px; padding: 11px 20px; border-radius: 999px; font-size: 14.5px; }
  .btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13.5px; }
  .btn-lg { min-height: 52px; font-size: 15.5px; }
  .btn-outline { border-width: 1px; border-color: var(--line); color: var(--ink); background: #fff; }
  .btn-outline:hover { background: var(--bg-soft); }
  .btn-soft { background: var(--green-soft); color: var(--green); }
  .mini-btn { min-height: 38px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; }
  .icon-btn { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 22px; }
  .link-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }

  /* ================= Avatars: soft letter blocks ================= */
  .avatar { background: var(--green-soft); color: var(--green); font-family: var(--display); font-weight: 700; }
  .av-1 { background: #EFE8DC; color: #7A5A2E; }
  .av-2 { background: var(--green-soft); color: var(--green); }
  .av-3 { background: var(--blue-soft); color: var(--blue); }
  .av-4 { background: var(--purple-soft); color: var(--purple); }
  .av-5 { background: var(--pink-soft); color: var(--pink); }
  .av-6 { background: var(--lime-soft); color: var(--lime); }
  .r-card .avatar, .co-item .avatar, .lrow .avatar, .seat .avatar { border-radius: 14px; }
  .avatar-xl { width: 76px; height: 76px; font-size: 28px; border-radius: 22px; box-shadow: none; }

  /* ================= Cards: white on cream, no lines, no shadows ================= */
  .r-card, .live-card, .around-card, .feature-card, .level-card, .gear, .sport-tile, .stat-card,
  .loc-links a, .sport-bar, .sport-link, .help-topic, .contact-card, .post-card, .faq-item, .tl-faq,
  .tl-card, .tl-macro, .hy-card, .tl-calc, .tl-compare-row, .tl-sportlink, .sc-share,
  .info-item, .book-card, .organizer, .stat-strip div, .sport-level, .review-summary,
  .co-card, .pay-opt, .order-row, .acct-card, .acct-stat, .acct-user, .auth-card, .join-card,
  .panel, .kpi, .edit-card, .job-card, .adm-kpi, .ops-kpi, .preview-card, .week-day, .seat a,
  .empty, .pro-band, .cta-band, .post-cta, .order-banner, .aside-help {
    background: #fff; border-color: transparent; box-shadow: none; border-radius: 18px;
  }
  .r-card:hover, .live-card:hover, .order-row:hover, .acct-stat:hover, .sport-tile:hover, .post-card:hover {
    box-shadow: none; transform: none;
  }
  .acct-card.danger, .adm-danger { border-color: #EBC3CA; }
  .tl-card-soon { background: var(--bg-soft); }
  .hy-card-main { background: var(--green-soft); }
  .stat-strip div { padding: 12px; }

  /* Coloured tiles become white cards; the colour stays on the icon only */
  .feature-card[class*="tone-"], .role-card[class*="tone-"], .city-tile[class*="tone-"],
  .aside-card[class*="tone-"] {
    background: #fff; border-color: transparent;
  }
  .role-card[class*="tone-"] .btn { background: var(--green); color: #fff; }
  .feature-icon { background: var(--bg); border-radius: 14px; }

  /* Placeholder art becomes flat, quiet blocks */
  .thumb-court, .g-court { background: #EFE8DC; }
  .thumb-game, .g-turf { background: var(--green-soft); }
  .g-pool { background: var(--blue-soft); }
  .g-hall { background: var(--bg-soft); }
  .thumb { border-radius: 14px; }
  .thumb-logo, .hero-mark, .band-watermark { display: none; }
  .map-box { background: var(--bg-soft); border: 0; border-radius: 18px; }

  /* ================= Header ================= */
  .site-header { padding-top: var(--m-top); }
  .site-header::before { background: rgba(246, 244, 239, 0.94); }
  .header-inner { height: var(--m-head); }
  .brand-mark { display: none; }
  .brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; text-transform: lowercase; }
  .header-actions { gap: 4px; }
  .header-actions .acct-link { display: none; }          /* the tab bar has Account */

  /* Full-screen menu: same cream, big calm links */
  .main-nav {
    top: calc(var(--m-head) + var(--m-top)); background: var(--bg);
    padding: 8px 20px calc(24px + var(--m-tab) + var(--m-bottom));
  }
  .nav-link { font-family: var(--display); font-size: 20px; font-weight: 600; padding: 16px 0; border-bottom-color: var(--line); }
  .nav-menu { background: transparent; }
  .nav-menu a { font-size: 15.5px; padding: 12px; border-radius: 12px; }
  .nav-menu a:hover { background: #fff; color: var(--green); }
  .nav-menu-label { border-top-color: var(--line); }

  /* ================= Bottom tab bar ================= */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + var(--m-bottom));
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; padding: 0 2px; border-radius: 12px;
    font: 500 11px/1.2 var(--font); color: var(--muted); background: transparent; border: 0;
  }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .is-on { color: var(--green); font-weight: 600; }
  .tabbar .tb-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .tb-count {
    position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px;
    border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  /* Pages with their own bottom action (book bar, checkout) hide the tab bar */
  body:has(.mobile-cta) .tabbar,
  body:not(.dash-body):has(.checkout-wrap) .tabbar { display: none; }

  /* ================= Footer: short, above the tab bar ================= */
  .site-footer { background: var(--bg); border-top-color: var(--line); padding: 22px 0 calc(22px + var(--m-tab) + var(--m-bottom)); }
  .footer-grid { display: none; }
  .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links, .socials { margin-left: 0; gap: 18px; }
  .socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 20px; background: #fff; }

  /* ================= Swipeable rows (chips, tabs) ================= */
  .quick-sports, .cat-chips, .link-cloud, .adm-tabs, .hub-stats, .tabs, .xtabs, .acct-nav, .crumbs {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .quick-sports::-webkit-scrollbar, .cat-chips::-webkit-scrollbar, .link-cloud::-webkit-scrollbar,
  .adm-tabs::-webkit-scrollbar, .hub-stats::-webkit-scrollbar, .tabs::-webkit-scrollbar,
  .xtabs::-webkit-scrollbar, .acct-nav::-webkit-scrollbar, .crumbs::-webkit-scrollbar { display: none; }
  .quick-sports > *, .cat-chips > *, .link-cloud > *, .adm-tabs > *, .hub-stats > *, .tabs > *,
  .xtabs > *, .acct-nav > *, .crumbs > * { flex-shrink: 0; white-space: nowrap; }

  /* One pill style for every chip and tab; selected = filled green */
  .quick-sports a, .cat-chips a, .cat-chips button, .link-cloud a, .adm-tabs a, .tab, .xtab, .hub-stats a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; margin: 0;
    border: 1px solid var(--line); border-radius: 999px; background: transparent;
    font-size: 14px; font-weight: 500; color: var(--ink);
  }
  .quick-sports a.is-active, .cat-chips a.is-active, .cat-chips button.is-active, .link-cloud a.is-active,
  .adm-tabs a.is-active, .tab.is-active, .xtab.is-active {
    background: var(--green); border-color: var(--green); color: #fff; font-weight: 600;
  }
  .tabs, .xtabs { gap: 8px; border-bottom: 0; }
  .xtab small { background: var(--bg-soft); }
  .xtab.is-active small { background: rgba(255, 255, 255, .2); color: #fff; }

  /* Coaches / Venues switch on the SEO pages: a segmented control */
  .js-tabs .tab-bar { gap: 4px; padding: 4px; border: 0; border-radius: 999px; background: var(--bg-soft); }
  .tab-btn { flex: 1; min-height: 42px; padding: 0 10px; margin: 0; border: 0; border-radius: 999px; font-size: 14px; }
  .tab-btn[aria-selected="true"] { background: #fff; color: var(--ink); }

  /* ================= Home ================= */
  .hero { background: var(--bg); padding: 20px 0 6px; }
  .hero-visual, .script-note { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
  .hero h1 { font-size: 34px; line-height: 1.05; letter-spacing: -1px; }
  .hero-lead { margin-top: 12px; font-size: 15px; color: var(--muted); }
  .search-bar { margin-top: 20px; padding: 6px; gap: 0; border-radius: 18px; box-shadow: none; background: #fff; }
  .search-field { min-height: 50px; }
  .search-field:focus-within { border-radius: 12px; }
  .search-bar .btn { width: 100%; margin-top: 6px; }
  .hero-near { margin-top: 6px; }
  .hero-stats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 18px; }
  .hero-stats li { flex-shrink: 0; }

  .section { padding-top: 32px; }
  .section-last { padding-bottom: 32px; }
  .section-head { margin-bottom: 14px; align-items: baseline; }
  .section-head h2 { font-size: 21px; }
  .section-head h2 br { display: none; }

  .live-card { padding: 14px; gap: 14px; }
  .live-card strong { font-family: var(--display); font-weight: 600; }
  .live-icon { width: 48px; height: 48px; border-radius: 14px; }

  /* "One place for everything" cards: a swipeable row */
  .grid-5 { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
  .grid-5::-webkit-scrollbar { display: none; }
  .grid-5 > * { flex: 0 0 74%; scroll-snap-align: start; }
  .feature-card { min-height: 170px; }

  .steps { gap: 12px; }
  .step { gap: 16px; padding: 14px; border-radius: 18px; background: #fff; }
  .step-icon { width: 50px; height: 50px; border: 0; background: var(--green-soft); }
  .step-icon b { width: 22px; height: 22px; font-size: 11px; top: -6px; right: -6px; }
  .step p { max-width: none; }

  /* Sports: one swipeable row of soft tiles */
  .sports { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; padding-bottom: 2px; }
  .sports::-webkit-scrollbar { display: none; }
  .sports a { flex: 0 0 68px; font-size: 12px; gap: 8px; }
  .sport-ic { width: 58px; height: 58px; border-radius: 18px; }
  .sport-badge { border-radius: 22px; box-shadow: none; }

  .pro-band, .cta-band { padding: 22px 20px; gap: 20px; }

  /* ================= Page headers (lists, SEO pages, posts) ================= */
  .page-hero, .detail-hero, .post-head, .checkout-wrap, .auth-wrap { background: var(--bg); }
  .page-hero { padding: 16px 0 18px; }
  .page-hero h1 { font-size: 30px; line-height: 1.08; letter-spacing: -0.8px; }
  .page-hero .lead { color: var(--muted); font-size: 14.5px; }
  .page-hero .search-bar { margin-top: 16px; }
  .crumbs { margin-bottom: 10px; }
  .sport-hero { padding: 18px 0 20px; }

  /* ================= Lists ================= */
  .list-wrap { padding: 4px 0 32px; }
  /* Result count + Filters button stay at the top while you scroll */
  .results-bar {
    position: sticky; top: calc(var(--m-head) + var(--m-top)); z-index: 20;
    margin: 0 -20px 10px; padding: 10px 20px; background: var(--bg);
  }
  .results-bar h2 { font-size: 15px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
  .btn-filters { min-height: 40px; }
  .sort .f-select { min-height: 40px; }
  .results-grid { gap: 12px; }
  .r-card { padding: 14px; gap: 12px; }
  .r-card h3 { font-size: 16px; }
  .r-card-foot { border-top-style: solid; border-top-color: var(--bg); }
  .tag { background: var(--bg); border-color: transparent; border-radius: 999px; }
  .tag-sport { background: var(--green-soft); color: var(--green); }
  .chip { min-height: 34px; background: var(--green-soft); }
  .date-tile { border-radius: 14px; }
  .empty-ic { background: var(--bg); }

  /* Filters: bottom sheet over the tab bar */
  .filter-panel { top: 8vh; z-index: 80; background: #fff; border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(21, 21, 19, .14); }
  .filter-head h2 { font-size: 17px; }
  .filter-foot { padding-bottom: calc(12px + var(--m-bottom)); }
  .seg span { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 13.5px; }
  .seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
  .check { min-height: 40px; }

  /* Directory pages */
  .city-tiles, .sport-tiles, .loc-links, .sport-bars, .sport-links, .help-topics { grid-template-columns: 1fr; gap: 10px; }
  .city-tile { padding: 18px; border-radius: 18px; }
  .faq-item summary { min-height: 52px; }

  /* ================= Detail pages: coach, venue, player, event, game ================= */
  .detail-hero { padding: 12px 0 18px; }
  .profile-head { gap: 14px; }
  .profile-head h1 { font-size: 28px; line-height: 1.1; }
  .head-actions { gap: 8px; }
  .icon-pill { min-height: 40px; border-radius: 999px; border-color: var(--line); }
  .badge { border-color: var(--line); }
  .d-nav { top: calc(var(--m-head) + var(--m-top)); background: rgba(246, 244, 239, .96); border-bottom-color: var(--line); }
  .d-nav a { padding: 12px; }
  .detail-wrap { padding: 16px 0 32px; }
  .d-section { padding: 22px 0; scroll-margin-top: 120px; border-bottom-color: var(--line); }
  .d-section > h2 { font-size: 21px; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .info-item { padding: 12px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { border-radius: 18px; border-color: var(--line); }
  .plan-card.is-selected { border: 2px solid var(--green); box-shadow: none; }
  .plan-price { font-family: var(--display); font-weight: 600; }
  .week { display: flex; overflow-x: auto; scrollbar-width: none; }
  .week-day { flex: 0 0 104px; min-height: 0; }
  .gallery { border-radius: 22px; }
  .table-wrap { border-color: var(--line); border-radius: 14px; background: #fff; }
  .price-table th { background: var(--bg); }

  /* Day + time pickers (venue and coach booking) */
  .date-strip { gap: 8px; scrollbar-width: none; }
  .date-btn { width: 60px; padding: 10px 0; border: 0; border-radius: 16px; background: #fff; }
  .date-btn.is-selected { background: var(--green); }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot { min-height: 46px; border-radius: 12px; border-color: var(--line); background: transparent; }
  .slot.is-selected { background: #fff; border: 2px solid var(--green); color: var(--green); }
  .slot:disabled { background: transparent; border-style: dashed; color: var(--muted); }
  .picker-row > * { flex: 1 1 100%; }
  .picker-row .f-select { width: 100%; min-width: 0; }
  .cat-opt { border-radius: 14px; border-color: var(--line); }

  /* Sticky "Book" bar at the bottom of coach/venue pages */
  .mobile-cta { padding: 12px 20px calc(12px + var(--m-bottom)); border-top-color: var(--line); box-shadow: none; }
  .mobile-cta .price { font-size: 18px; color: var(--ink); }
  .mobile-cta .btn { min-height: 50px; padding: 0 28px; font-size: 15px; }
  body.has-mobile-cta { padding-bottom: calc(76px + var(--m-bottom)); }

  /* Event banner: flat colour instead of gradients */
  .event-banner { border-radius: 22px; padding: 22px 20px; }
  .event-banner.tone-green { background: var(--green); }
  .event-banner.tone-blue { background: var(--blue); }
  .event-banner.tone-orange { background: var(--orange); }
  .event-banner.tone-purple { background: var(--purple); }
  .event-banner.tone-pink { background: var(--pink); }
  .event-banner .banner-ic { opacity: .1; }

  .seat.seat-open { border-color: var(--line); background: transparent; }

  /* ================= Checkout + order ================= */
  .checkout-wrap { padding: 12px 0 32px; }
  .checkout-grid { gap: 14px; }
  .co-card { padding: 18px; }
  .pay-opt { border: 1.5px solid var(--line); }
  .pay-opt:has(input:checked) { border-color: var(--green); background: #fff; }

  .order-wrap { padding: 16px 20px 32px; }
  .order-banner { gap: 14px; padding: 26px 20px; }
  .order-banner .success-ic { width: 76px; height: 76px; background: var(--green); color: #fff; }
  .order-title h1 { font-size: 26px; }
  .order-actions { flex-direction: column; }
  .order-actions > *, .order-actions .btn { width: 100%; }

  /* ================= Login, join and other forms ================= */
  .auth-wrap { padding: 12px 0 32px; }
  .auth-card { padding: 22px 20px; }
  .auth-aside h1 { font-size: 26px; }
  .auth-people { display: none; }
  .seg-tabs { border-radius: 999px; }
  .seg-tabs button { min-height: 40px; border-radius: 999px; }
  .chip-opt span { min-height: 40px; }
  .chip-opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
  .chip-opt input:checked + span .ic { color: #fff; }
  .upload { border-radius: 16px; background: #fff; border-color: var(--line); }
  .sub-card { background: var(--bg); border-color: transparent; border-radius: 16px; }
  .join-wrap { padding: 12px 0 32px; }
  .join-card { padding: 20px; }
  /* Next / Submit stay reachable above the tab bar on long sign-up forms */
  .join-card .form-actions {
    position: sticky; bottom: calc(var(--m-tab) + var(--m-bottom)); z-index: 5;
    margin: 20px -20px -20px; padding: 14px 20px; background: #fff; border-radius: 0 0 18px 18px;
  }
  .join-card .form-actions .btn { flex: 1; }
  .join-side { background: #fff; border-color: transparent; }
  .switch span { background: #D5D0C5; }

  /* ================= Account ================= */
  .account-wrap { padding: 12px 20px 32px; gap: 14px; }
  .acct-side { gap: 10px; }
  .acct-user { display: none; }
  .acct-nav { gap: 8px; }
  .acct-nav form { display: flex; }
  .acct-nav a, .acct-nav button {
    min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
    background: transparent; font-size: 13.5px;
  }
  .acct-nav a.is-active { background: var(--green); border-color: var(--green); color: #fff; }
  .acct-nav a.is-active .badge { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }
  .acct-main > h1 { font-size: 28px; }
  .acct-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .acct-stat strong { font-weight: 600; }
  .acct-card { padding: 18px; }
  .acct-card.nudge { background: var(--green-soft); }
  .order-row { padding: 12px; }

  /* Messages */
  .msg-list { background: var(--bg); }
  .msg-bubble { border-radius: 18px 18px 18px 6px; border-color: transparent; }
  .msg.mine .msg-bubble { border-radius: 18px 18px 6px 18px; }
  .msg-form textarea { border-radius: 14px; border-color: var(--line); }
  .thread-head, .msg-form { border-color: var(--line); }

  /* ================= Free tools ================= */
  .tl-total { border-radius: 22px; }
  .tl-total-kcal, .tl-macro strong, .hy-card strong, .sc-points { font-family: var(--display); font-weight: 600; }
  .tl-drop { border: 2px dashed var(--green-light); border-radius: 22px; background: #fff; }
  .tl-chip span { min-height: 40px; display: inline-flex; align-items: center; border-color: var(--line); }
  .tl-chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
  .tl-scroll { border-color: var(--line); background: #fff; border-radius: 16px; }
  .tl-table th { background: var(--bg); }
  .tl-next { background: #fff; border-radius: 22px; }
  .sc-side { border-radius: 22px; box-shadow: none; }

  /* ================= Blog, help, 404 ================= */
  .post-head { padding: 18px 0 16px; }
  .post-head h1 { font-size: 30px; }
  .post-hero { border-radius: 22px; }
  .post-toc { background: #fff; border-color: transparent; border-radius: 16px; }
  .post-tip { border-radius: 16px; }

  /* ================= Pop-ups: bottom sheets ================= */
  .modal { align-items: flex-end; padding: 0; background: rgba(21, 21, 19, .4); }
  .modal-box {
    max-width: none; max-height: 88vh; border-radius: 22px 22px 0 0;
    padding: 22px 20px calc(22px + var(--m-bottom));
  }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .toast { bottom: calc(var(--m-tab) + 16px + var(--m-bottom)); border-radius: 999px; }

  /* ================= Partner dashboards + admin ================= */
  .dash-top {
    padding: calc(8px + var(--m-top)) 12px 8px 8px;
    background: rgba(246, 244, 239, .96); border-bottom-color: var(--line);
  }
  .dash-top h1 { font-size: 20px; }
  .dash-side { width: min(300px, 86vw); border-radius: 0 22px 22px 0; box-shadow: 10px 0 40px rgba(21, 21, 19, .16); }
  .dash-role { background: var(--bg); }
  .dash-nav a { min-height: 44px; border-radius: 12px; font-size: 14.5px; }
  .dash-nav a.is-active { background: var(--green); color: #fff; }
  .dash-content { padding: 14px 16px calc(28px + var(--m-tab) + var(--m-bottom)); gap: 14px; }
  .panel { padding: 16px; }
  .kpis, .adm-kpis, .ops-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi strong, .adm-kpi strong, .ops-kpi strong { font-family: var(--display); font-weight: 600; font-size: 22px; }
  .balance { background: var(--green); border-radius: 22px; }
  .edit-cards, .job-grid { grid-template-columns: 1fr; }
  .add-card { background: transparent; border-color: var(--line); }
  .sched-wrap { border-color: var(--line); background: #fff; }
  .sched .sh, .sched .st { background: var(--bg); }
  .table-tools > * { flex: 1 1 160px; }
  .table-tools .f-input, .table-tools .f-select { width: 100%; min-width: 0; }
  .adm-filters .field { flex: 1 1 100%; min-width: 0; }
  .adm-inline .input { max-width: none; flex: 1 1 100%; }
  .enquiry-msg, .reply { background: var(--bg); }
}
