:root {
  --brand-paper: #f7f3ec;
  --brand-surface: #fffefa;
  --brand-surface-2: #f2ede5;
  --brand-border: #e5ddd3;
  --brand-ink: #231f20;
  --brand-muted: #6f6965;
  --brand-red: #7a1916;
  --brand-red-dark: #52100f;
  --brand-red-soft: #fae9e6;
  --brand-gold: #b88a2d;
  --brand-green: #168a55;
  --brand-shadow: 0 14px 38px -28px rgba(71, 35, 23, .48);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand-paper: #13110e; --brand-surface: #1c1915; --brand-surface-2: #25211a;
  --brand-border: #332d24; --brand-ink: #f2ede3; --brand-muted: #a99d89;
  --brand-red-soft: #3a1f17; --brand-gold: #d9ac3f; --brand-green: #6ec18f;
  --brand-shadow: 0 14px 38px -28px rgba(0, 0, 0, .8);
} }
:root[data-theme="dark"] {
  --brand-paper: #13110e; --brand-surface: #1c1915; --brand-surface-2: #25211a;
  --brand-border: #332d24; --brand-ink: #f2ede3; --brand-muted: #a99d89;
  --brand-red-soft: #3a1f17; --brand-gold: #d9ac3f; --brand-green: #6ec18f;
  --brand-shadow: 0 14px 38px -28px rgba(0, 0, 0, .8);
}

html { scroll-behavior: smooth; }
body { background: var(--brand-paper); color: var(--brand-ink); }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button, select, input { min-height: 44px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-gold) 70%, white); outline-offset: 3px; }
.icon, .title-icon { width: 1.15em; height: 1.15em; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.title-icon { margin-right: .38em; color: var(--brand-gold); width: 1.25em; height: 1.25em; }

.brand, .seo-brand { font-weight: 900 !important; }
.brand { color: var(--ink) !important; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand .seal { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 50%; font-size: 1rem; font-weight: 700; line-height: 1; }
.seal, .seo-seal {
  background: linear-gradient(145deg, #9c211b, var(--brand-red-dark)) !important;
  box-shadow: 0 0 0 3px rgba(184, 138, 45, .2) !important;
}
.brand-seal { position: relative; overflow: hidden; background: radial-gradient(circle at 35% 30%, #c4472a, #821914 55%, #4b100f) !important; }
.brand-seal::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(247, 216, 139, .68); border-radius: 50%; }
.brand-seal::after { content: "✦"; position: absolute; right: 2px; top: 0; color: #f5ca68; font-size: .55rem; }
.brand-seal span { position: relative; z-index: 1; color: #ffe6a9; text-shadow: 0 1px 3px #4c0b08; }
.ghost, .back, .seo-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card, .pcard, .seo-table-wrap {
  box-shadow: var(--brand-shadow);
}

/* Desktop shell matched to the approved concept */
.bar { max-width: 1400px !important; min-height: 70px; }
.header-nav { display: flex; align-self: stretch; align-items: center; gap: 28px; margin-inline: auto;
  position: static !important; max-height: none !important; overflow: visible !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.header-nav a { position: relative; color: var(--ink-2); font-size: .88rem; font-weight: 700; text-decoration: none; }
.header-nav a:hover { color: var(--red); }
.header-nav a:nth-child(2) { color: var(--red); }
.header-nav a:nth-child(2)::after { content: ""; position: absolute; inset: auto 0 -24px; height: 3px; border-radius: 4px; background: var(--red); }
.bar-actions { display: none; }
.mobile-search { display: none; }
main { max-width: 1400px !important; }
.layout { grid-template-columns: 280px minmax(0, 1fr) !important; gap: 28px !important; }
#nav { top: 88px !important; padding: 12px !important; }
#find { min-height: 46px; padding-inline: 14px !important; }
.market-filters { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; margin: 8px 0 7px; }
.market-filters button { min-height: 38px; padding: 6px 5px; border: 1px solid transparent; border-radius: 9px; background: var(--sunk); color: var(--ink-2); font: inherit; font-size: .72rem; cursor: pointer; }
.market-filters button[aria-pressed="true"] { background: var(--red); color: white; }
.mk { min-height: 44px; align-items: center !important; }
.context-bar { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0 4px 10px; color: var(--ink-3); font-size: .74rem; }
.context-bar strong { color: var(--ink); }
.context-bar time { margin-left: auto; }

.hero-frame { border-radius: 18px !important; box-shadow: 0 22px 46px -28px rgba(75, 10, 10, .85) !important; }
.hero-card { padding: 24px 26px 22px !important;
  background-image: linear-gradient(90deg, rgba(104, 15, 13, .98) 0%, rgba(104, 15, 13, .94) 45%, rgba(82, 10, 9, .72) 100%), url("/static/hero-thai-temple.png") !important;
  background-position: center, right bottom !important; background-size: cover, auto 100% !important; background-repeat: no-repeat !important; }
.hero-card::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.46;
  background-image: linear-gradient(90deg, rgba(255,218,139,.15) 1px, transparent 1px), linear-gradient(rgba(255,218,139,.1) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: linear-gradient(to right, transparent 0, #000 72%, transparent 100%); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card::before { display: none; }
.hero-card .headline { align-items: center !important; }
.hero-card h1 { display: flex; align-items: center; gap: 12px; }
.hero-card h1 .flag { display: inline-grid; place-items: center; width: 52px; height: 40px; margin: 0; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(244,217,152,.3); font-size: 1.65rem; box-shadow: inset 0 1px rgba(255,255,255,.12); }
.hero-card h1 { font-size: 1.85rem !important; }
.hero-card .range { margin-bottom: 12px !important; }
.hero-card .lead { max-width: 88ch; margin-bottom: 14px !important; line-height: 1.65 !important;
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-card .clock { display: grid !important; grid-template-columns: minmax(210px, 1fr) auto; margin-bottom: 0 !important; }
.hero-card .blk { padding: 17px 18px 13px !important; }
.hero-card .setline { display: flex !important; gap: 12px 26px; align-items: center; }
.hero-card .kindgroup { width: auto !important; }
/* The divider between 2 ตัว and 3 ตัว dangled on the left of a lone second row whenever the
   set wrapped (narrow desktop, big lead coins). The "2 ตัว/3 ตัว" labels already separate
   the groups, so the hero drops it. */
.hero-card .kindgroup + .kindgroup { border-left: 0 !important; padding-left: 0 !important; }
.hero-card .coin { font-size: 1.35rem; }
.hero-card .note { margin-top: 9px !important; }
/* In the flow, right-aligned — absolutely positioned it sat on top of the note text
   whenever the note ran long enough to reach the buttons. */
.hero-card .tools { justify-content: flex-end; margin-top: 10px; }
.hero-card .round .icon { margin-right: 3px; color: var(--hero-gold-2); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.hero-picks { display: block; }
.hero-records { display: flex; gap: 8px; flex-wrap: wrap; }
/* Side by side only when the main column can fit the clock AND three lead coins per row;
   below that (sidebar eats ~340px) the picks wrapped one coin per line, so stack instead. */
@media (min-width: 1200px) {
  .hero-grid { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 18px; align-items: stretch; margin-bottom: 14px; }
  /* No draw time on file (e.g. ฮานอย HD/VISA/ST): the picks take the whole row instead
     of squeezing into the column sized for the clock. */
  .hero-grid.no-clock { grid-template-columns: 1fr; }
  .hero-grid .clock { display: flex !important; flex-direction: column; align-items: stretch; height: 100%; padding: 16px !important; }
  .hero-grid .clock .when { margin-bottom: 14px; }
  .hero-grid .clock .cd { margin-left: 0 !important; justify-content: space-between; }
  .hero-grid .clock .cd div { flex: 1; }
  .hero-picks .blk:last-of-type { margin-bottom: 10px; }
}

.quick-nav { top: 78px; padding: 5px; margin-bottom: 18px; }
.quick-nav a { font-size: .82rem; }
.quick-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.quick-nav a .icon { width: 1rem; height: 1rem; }
.card { border-radius: 14px !important; }
.section-head h2 { margin-bottom: 2px !important; }

.gurus { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 10px !important; }
.guru { min-width: 0; padding: 13px 12px !important; background: var(--card) !important; }
.guru .who { display: block !important; }
.guru .mark { width: 43px !important; height: 43px !important; margin-bottom: 8px; border-radius: 50% !important; display: block; flex: none; background-color: #52100f !important; background-image: url("/static/expert-medallions.png") !important; background-repeat: no-repeat !important; background-size: 300% 200% !important; box-shadow: 0 3px 7px rgba(77, 15, 10, .22), inset 0 0 0 1px rgba(255, 228, 152, .55); }
.guru .medallion-0 { background-position: 0 0 !important; }
.guru .medallion-1 { background-position: 50% 0 !important; }
.guru .medallion-2 { background-position: 100% 0 !important; }
.guru .medallion-3 { background-position: 0 100% !important; }
.guru .medallion-4 { background-position: 50% 100% !important; }
.guru .medallion-5 { background-position: 100% 100% !important; }
.guru h3 { font-size: .88rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guru .style { min-height: 2.7em; margin-bottom: 9px !important; font-size: .76rem !important; line-height: 1.55; }
.guru .accuracy { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; margin: 0 0 8px; color: var(--ink-3); font-size: .75rem; }
.guru .accuracy b { color: var(--green); font-family: "Space Grotesk", ui-monospace, monospace; font-size: .92rem; }
.guru .row { gap: 5px !important; margin-bottom: 9px; }
.guru .k { width: 100% !important; font-size: .8rem; }
.guru .g { padding: 3px 8px !important; font-size: .9rem !important; background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 15%, var(--line)); color: var(--red); }
.guru .badge { padding: 4px 6px; font-size: .72rem; line-height: 1.45; }
.guru .record-badge { display: grid; gap: 3px; width: 100%; margin-top: 2px; padding: 7px 8px 6px; border: 1px solid var(--line-2); border-radius: 11px; background: linear-gradient(135deg, color-mix(in srgb, var(--red-soft) 55%, var(--card)), var(--card)); color: var(--ink-2); font-size: .66rem; line-height: 1.25; }
.guru .record-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; white-space: nowrap; }
.guru .record-main b { color: var(--ink); font-size: .7rem; }
.guru .record-main strong { color: var(--red); font-family: "Space Grotesk", ui-monospace, monospace; font-size: .78rem; }
.guru .record-base { padding-top: 4px; border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent); color: var(--ink-3); font-size: .62rem; }
.guru .record-badge.win { border-color: color-mix(in srgb, var(--green) 44%, var(--line-2)); background: linear-gradient(135deg, var(--green-soft), var(--card)); }
.guru .record-badge.win .record-main strong { color: var(--green); }
.guru .tools { display: none; }

.leader-table th, .leader-table td { padding-block: 10px; }
.leader-table tbody tr:hover { background: color-mix(in srgb, var(--red-soft) 50%, transparent); }
.leader-table td:first-child { width: 45px; }
.leader-table td:nth-child(2) { width: 28%; }
.rank-dot { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--sunk); font-size: .72rem; font-weight: 800; }
.rank-1 { background: #f0bf31; color: #6b4300; }
.rank-2 { background: #c3c8ce; color: #41464c; }
.rank-3 { background: #c97d43; color: white; }
.history-details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none; }
.history-details > summary::-webkit-details-marker { display: none; }
.history-details > summary span { color: var(--red); font-size: .78rem; }

#statistics .card { margin-bottom: 0; }
#statistics .chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
#statistics .chip { padding: 8px 5px; text-align: center; background: var(--red-soft); }
#statistics .chip b, #statistics .chip i { display: block; margin: 0; }

/* Main responsive application */
.quick-nav {
  position: sticky;
  top: 64px;
  z-index: 19;
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 13px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav a {
  flex: 1 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.quick-nav a:first-child { background: var(--red); color: white; }
.section-anchor { scroll-margin-top: 126px; }
.section-head { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.section-link { color: var(--red); font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

.market-button {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  box-shadow: var(--shadow);
}
.market-button span { float: right; color: var(--red); }
.market-dialog {
  width: min(560px, 100%);
  max-height: min(88dvh, 780px);
  margin: auto 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 -24px 70px rgba(35, 31, 32, .22);
}
.market-dialog::backdrop { background: rgba(24, 18, 16, .55); backdrop-filter: blur(3px); }
.market-sheet { display: flex; flex-direction: column; max-height: 88dvh; }
.sheet-grip { width: 46px; height: 5px; margin: 10px auto 3px; border-radius: 9px; background: var(--line-2); }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px 8px; }
.sheet-head h2 { margin: 0; font-size: 1.25rem; }
.sheet-close { margin-left: auto; width: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.45rem; cursor: pointer; }
.sheet-search { margin: 4px 18px 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--sunk); color: var(--ink); font: inherit; }
.sheet-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 18px 8px; }
.sheet-filters button { min-height: 42px; border: 0; border-radius: 10px; background: var(--sunk); color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; }
.sheet-filters button[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: 0 5px 12px -8px rgba(120,25,22,.8); }
.sheet-list { overflow: auto; padding: 0 12px 20px; }
.sheet-group { padding: 12px 8px 5px; color: var(--ink-3); font-size: .72rem; font-weight: 700; }
.sheet-market { display: flex; width: 100%; align-items: center; gap: 9px; min-height: 48px; padding: 8px 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sheet-market b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-market small { margin-left: auto; color: var(--ink-3); }
.sheet-market[aria-current="true"] { border-radius: 10px; background: var(--red-soft); color: var(--red); }

.mobile-dock { display: none; }

/* Shared content / SEO routes */
.seo-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--brand-surface) 92%, transparent) !important; backdrop-filter: blur(14px); }
.seo-bar { max-width: 1120px !important; min-height: 64px; }
.seo-nav { align-items: center; }
.seo-nav a.current { background: var(--brand-red) !important; color: white !important; }
.seo-hero {
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 22px;
  border: 1px solid rgba(184, 138, 45, .45);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--brand-red), var(--brand-red-dark));
  color: #fff8eb;
  box-shadow: 0 22px 50px -30px rgba(82, 16, 15, .8);
}
.seo-hero h1 { margin: 0 0 8px; color: white; line-height: 1.35; }
.seo-hero p { max-width: 72ch; margin: 6px 0; color: #f4dec0; }
.seo-section {
  margin: 18px 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow);
}
.seo-section h2:first-child { margin-top: 0; }
.seo-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.seo-stat { padding: 14px; border: 1px solid var(--brand-border); border-radius: 12px; background: var(--brand-surface-2); }
.seo-stat { color: var(--brand-muted); }
.seo-stat b { display: block; color: var(--brand-red); font-size: 1.25rem; }
.seo-table-wrap { background: var(--brand-surface); }

/* Leaderboard and share-card routes */
.podium { grid-template-columns: repeat(3, 1fr) !important; }
.pcard { background: var(--surface) !important; }
.pcard .rate { font-size: 1.65rem !important; }
.leader-progress { height: 8px; margin: 8px 0; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.leader-progress > i { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.route-dock { display: none; }

@media (max-width: 900px) {
  body { padding-bottom: 78px; }
  main { padding-left: 14px !important; padding-right: 14px !important; }
  .layout { grid-template-columns: minmax(0, 1fr) !important; }
  #picker { display: none !important; }
  .header-nav { display: none; }
  .bar-actions.open { display: flex; }
  .context-bar { display: none; }
  .market-button { display: block; }
  .market-dialog { width: 100vw; max-width: none; margin: auto 0 0; }
  .ghost, .back, .seo-nav a { min-height: 44px; }
  .quick-nav { top: 60px; margin-inline: -4px; }
  .mobile-dock, .route-dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid var(--brand-border);
    background: color-mix(in srgb, var(--brand-surface) 94%, transparent);
    backdrop-filter: blur(16px);
  }
  .mobile-dock a, .route-dock a {
    min-height: 48px;
    display: grid;
    place-items: center;
    gap: 1px;
    color: var(--brand-muted);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-dock a b, .route-dock a b { font-size: 1.05rem; line-height: 1; }
  .mobile-dock a.current, .route-dock a.current { color: var(--brand-red); }
  footer { padding-bottom: 94px !important; }
  .seo-nav { display: none; }
  .seo-stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .bar { min-height: 60px; }
  .hero-card { padding: 19px 14px 16px !important; }
  .hero-card h1 { font-size: 1.32rem !important; }
  .hero-card h1 .flag { width: 40px; height: 32px; border-radius: 7px; font-size: 1.35rem; }
  .hero-card .lead { font-size: .84rem !important; }
  .hero-card .lead {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
  .hero-card .clock { grid-template-columns: minmax(0, 1fr) !important; padding: 10px !important; }
  .hero-card .cd { width: 100%; margin-left: 0 !important; justify-content: space-between; }
  .hero-card .cd div { min-width: 0 !important; flex: 1; padding-inline: 5px !important; }
  .coin { min-width: 56px !important; padding: 11px 12px !important; }
  .hero-card .setline { display: flex !important; }
  .hero-card .kindgroup { display: grid !important; grid-template-columns: 36px repeat(3, minmax(0, 1fr)); width: 100% !important; }
  .hero-card .kindgroup + .kindgroup { margin-top: 8px; }
  .hero-card .coin { min-width: 0 !important; width: 100%; padding-inline: 6px !important; }
  .hero-card .tools { position: static; }
  .hero-card { background-size: auto 100%, auto 68% !important; background-position: center, right bottom !important; }
  .hero-card::after { display: none; }
  .hero-card > .lead, .hero-card .blk + .blk, .hero-card .blk + .blk + div, .hero-card .note, .hero-card .tools { display: none !important; }
  .hero-card .blk { margin-bottom: 0 !important; }
  .quick-nav { position: static; margin-top: 10px; margin-bottom: 12px; padding: 5px; }
  .quick-nav a { min-width: 62px; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: .66rem; }
  .quick-nav a .icon { width: 1.1rem; height: 1.1rem; }
  .card { padding: 17px 15px !important; }
  .gurus { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  .guru { padding: 13px 12px !important; }
  .guru .style { min-height: 2.3em; }
  .guru .mark { width: 46px !important; height: 46px !important; }
  .podium { grid-template-columns: 1fr !important; }
  .leader-table th:nth-child(4), .leader-table th:nth-child(5),
  .leader-table td:nth-child(4), .leader-table td:nth-child(5) { display: none; }
  #statistics .chips { grid-template-columns: repeat(5, minmax(54px, 1fr)); overflow-x: auto; }
  .seo-table-wrap.mobile-cards { border: 0; box-shadow: none; overflow: visible; }
  .mobile-cards table, .mobile-cards tbody, .mobile-cards tr, .mobile-cards td { display: block; width: 100%; }
  .mobile-cards thead { display: none; }
  .mobile-cards tr { margin-bottom: 10px; padding: 11px 13px; border: 1px solid var(--brand-border); border-radius: 12px; background: var(--brand-surface); box-shadow: var(--brand-shadow); }
  .mobile-cards td { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border: 0; white-space: normal; text-align: right; }
  .mobile-cards td::before { content: attr(data-label); flex: 0 0 42%; color: var(--brand-muted); font-size: .78rem; text-align: left; }
}

@media (max-width: 560px) {
  .mobile-search { width: 38px; height: 38px; min-height: 38px; display: grid; place-items: center; flex: none; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--ink); }
  .mobile-search .icon { width: 1.2rem; height: 1.2rem; }
  #theme { display: none !important; }
  .menu-toggle { width: 38px !important; height: 38px !important; }
  .bar-actions #themeMenu { display: inline-flex; }
}

@media (max-width: 430px) {
  .brand { font-size: 1.08rem !important; }
  .gurus { grid-template-columns: 1fr 1fr !important; }
  .guru h3 { font-size: .9rem !important; }
  .guru .tools { display: none; }
  .setname { font-size: .74rem !important; }
}

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