/* Shared look for the calculators and tool pages. Brand colors come from <body data-platform="...">.
   Light and dark share one neutral surface palette; only the surfaces, text and lines change between modes. */

:root,
:root[data-theme="light"] {
  --bg:#f5f5f5; --card:#fff; --ink:#222; --muted:#5f5f5f; --line:#e3e3e3;
  --in-bg:#fff; --in-border:#8c8c8c; --stat-bg:#fafafa; --stat-line:#ececec;
  --good:#176a2d; --good-bg:#e8f5ec; --good-line:#bfe3cb; --good-label:#1e5a2e; --bad:#c92a2a; --warn:#a14f00;
  --warn-bg:#fff6e0; --warn-line:#f0d9a0; --ph:#767676;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#141414; --card:#232323; --ink:#f4f4f4; --muted:#c8c8c8; --line:#454545;
    --in-bg:#121212; --in-border:#8a8a8a; --stat-bg:#2d2d2d; --stat-line:#4a4a4a;
    --good:#7fe0a0; --good-bg:#12301c; --good-line:#1f5a35; --good-label:#a8e6bd; --bad:#ff8787; --warn:#ffb15c;
    --warn-bg:#2b2210; --warn-line:#5c4417; --ph:#9a9a9a;
  }
}
:root[data-theme="dark"] {
  --bg:#141414; --card:#232323; --ink:#f4f4f4; --muted:#c8c8c8; --line:#454545;
  --in-bg:#121212; --in-border:#8a8a8a; --stat-bg:#2d2d2d; --stat-line:#4a4a4a;
  --good:#7fe0a0; --good-bg:#12301c; --good-line:#1f5a35; --good-label:#a8e6bd; --bad:#ff8787; --warn:#ffb15c;
  --warn-bg:#2b2210; --warn-line:#5c4417; --ph:#9a9a9a;
}

/* Brand: light values first, then the same brand with dark-mode ink and tint. */
body[data-platform="shopee"] { --pill-ink:#c2300d; --hf:'Prompt',sans-serif; --band:linear-gradient(180deg,#e94b25,#d63c16); --band-border:0; --accent:#ee4d2d; --accent-ink:#c2300d; --tint:#fff5f2; }
body[data-platform="lazada"] { --pill-ink:#6d28d9; --hf:'Kanit',sans-serif; --band:linear-gradient(135deg,#e0127a,#7b2fd6 55%,#2f62e8); --band-border:0; --accent:#8b3fd9; --accent-ink:#6d28d9; --tint:#f6f0ff; }
body[data-platform="tiktok"] { --pill-ink:#c8123a; --hf:'Noto Sans Thai',sans-serif; --band:#0b0b0f; --band-border:4px solid #fe2c55; --accent:#fe2c55; --accent-ink:#c8123a; --tint:#fff0f3; }
body[data-platform="thaimart"] { --pill-ink:#b3151f; --hf:'Mitr',sans-serif; --band:linear-gradient(180deg,#d4202c,#b3151f); --band-border:0; --accent:#d4202c; --accent-ink:#b3151f; --tint:#fff2f2; }
body[data-platform="tools"] { --pill-ink:#0b5f58; --hf:'Prompt',sans-serif; --band:linear-gradient(180deg,#0f766e,#0b5f58); --band-border:0; --accent:#0f766e; --accent-ink:#0b5f58; --tint:#ecfaf8; }

:root[data-theme="dark"] body[data-platform="shopee"] { --accent-ink:#ff8a65; --tint:#2c1a14; }
:root[data-theme="dark"] body[data-platform="lazada"] { --accent-ink:#c4a1ff; --tint:#22183a; }
:root[data-theme="dark"] body[data-platform="tiktok"] { --accent-ink:#ff6b86; --tint:#2a1219; }
:root[data-theme="dark"] body[data-platform="thaimart"] { --accent-ink:#ff7b82; --tint:#2c1517; }
:root[data-theme="dark"] body[data-platform="tools"] { --accent-ink:#5eead4; --tint:#0f2a28; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-platform="shopee"] { --accent-ink:#ff8a65; --tint:#2c1a14; }
  :root:not([data-theme="light"]) body[data-platform="lazada"] { --accent-ink:#c4a1ff; --tint:#22183a; }
  :root:not([data-theme="light"]) body[data-platform="tiktok"] { --accent-ink:#ff6b86; --tint:#2a1219; }
  :root:not([data-theme="light"]) body[data-platform="thaimart"] { --accent-ink:#ff7b82; --tint:#2c1517; }
  :root:not([data-theme="light"]) body[data-platform="tools"] { --accent-ink:#5eead4; --tint:#0f2a28; }
}

:root[data-theme="dark"] body[data-platform="shopee"] { --band:linear-gradient(180deg,#c2381a,#a42e12); }
:root[data-theme="dark"] body[data-platform="lazada"] { --band:linear-gradient(135deg,#b80f66,#6a27c0 55%,#2551c9); }
:root[data-theme="dark"] body[data-platform="thaimart"] { --band:linear-gradient(180deg,#a8121c,#8c0f18); }
:root[data-theme="dark"] body[data-platform="tools"] { --band:linear-gradient(180deg,#0b5f58,#0a4a44); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-platform="shopee"] { --band:linear-gradient(180deg,#c2381a,#a42e12); }
  :root:not([data-theme="light"]) body[data-platform="lazada"] { --band:linear-gradient(135deg,#b80f66,#6a27c0 55%,#2551c9); }
  :root:not([data-theme="light"]) body[data-platform="thaimart"] { --band:linear-gradient(180deg,#a8121c,#8c0f18); }
  :root:not([data-theme="light"]) body[data-platform="tools"] { --band:linear-gradient(180deg,#0b5f58,#0a4a44); }
}

* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 "Noto Sans Thai", system-ui, sans-serif; }
a { color:var(--accent-ink); text-underline-offset:3px; }
:focus-visible { outline:3px solid #3b82f6; outline-offset:2px; }
[hidden] { display:none !important; }

/* Header: brand band with logo, nav, theme switch and platform tabs */
.site-head { background:var(--band); border-bottom:var(--band-border); color:#fff; }
.head-in { max-width:760px; margin:0 auto; padding:12px 16px 14px; }
.head-top { display:flex; align-items:center; justify-content:space-between; gap:10px 16px; margin-bottom:6px; }
.logo { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font:700 22px var(--hf); }
.logo-img { width:36px; height:36px; border-radius:10px; flex:none; }
.wm { font-weight:800; letter-spacing:-.01em; }
.wm i { font-style:normal; font-weight:500; }
.theme-btn { min-height:44px; padding:0 14px; border:1.5px solid #ffffffd9; border-radius:999px; background:#00000026; color:#fff; font:700 14px/1 "Noto Sans Thai", sans-serif; cursor:pointer; }
.theme-btn:hover { background:#00000040; }
.tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.tab { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:6px 10px; border-radius:12px; background:#00000033; color:#fff; text-decoration:none; font:700 17px var(--hf); }
.tab[aria-current] { background:var(--bg); color:var(--accent-ink); }
.badge { width:26px; height:26px; border-radius:7px; display:flex; align-items:center; justify-content:center; flex:none; font-size:14px; font-weight:700; color:#fff; }
.badge.shopee { background:#ee4d2d; }
.badge.lazada { background:linear-gradient(135deg,#ee2a7b,#8b3fd9 55%,#3f6cf2); }
.badge.tiktok { background:#000; box-shadow:2px 0 0 #fe2c55, -2px 0 0 #25f4ee; }
.badge.thaimart { background:#d4202c; }
.tab:not([aria-current]) .badge:not(.tiktok) { box-shadow:0 0 0 2px #fff; }
@media (min-width:700px) {
  .head-in:has(.tabs) { padding-bottom:0; }
  .tabs { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; align-items:end; }
  .tab { min-height:44px; border-radius:12px 12px 0 0; font-size:19px; }
  .tab[aria-current] { min-height:52px; }
}

/* Content */
main { max-width:760px; margin:0 auto; padding:20px 16px 48px; }
.title-row { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.title-badge { width:44px; height:44px; border-radius:14px; flex:none; display:flex; align-items:center; justify-content:center; color:#fff; font:700 26px var(--hf); }
.title-badge.shopee { background:#ee4d2d; }
.title-badge.lazada { background:linear-gradient(135deg,#ee2a7b,#8b3fd9 55%,#3f6cf2); }
.title-badge.tiktok { background:#000; box-shadow:2px 0 0 #fe2c55, -2px 0 0 #25f4ee; }
.title-badge.thaimart { background:#d4202c; }
.title-badge.tools { background:#0f766e; }
@media (min-width:700px) { .title-badge { width:56px; height:56px; } }
h1 { font:700 1.4rem/1.3 var(--hf); margin:0; }
h1 .pf { color:var(--accent-ink); }
@media (min-width:700px) { h1 { font-size:1.65rem; } }
.sub { color:var(--muted); margin:2px 0 0; font-size:.92rem; }
.lede { color:var(--muted); margin:0 0 16px; }
h2 { font:600 1.15rem var(--hf); margin:0 0 12px; }
.card { background:var(--card); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:8px; padding:16px; margin-bottom:12px; }
@media (min-width:700px) { .card { padding:20px; } }
.grid { display:grid; grid-template-columns:1fr; gap:14px 20px; }
@media (min-width:600px) { .grid { grid-template-columns:1fr 1fr; } }
label { display:block; font-size:.9rem; font-weight:600; color:var(--ink); margin-bottom:4px; }
input, select { width:100%; height:48px; padding:0 12px; font:inherit; font-size:1.05rem; color:var(--ink); background:var(--in-bg); border:1.5px solid var(--in-border); border-radius:6px; }

.result { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; text-align:center; }
.result > div { background:var(--stat-bg); border:1px solid var(--stat-line); border-radius:8px; padding:12px 8px; }
.result > div:has(> b.pos) { background:var(--good-bg); border-color:var(--good-line); }
.result > div:has(> b.pos) span { color:var(--good-label); }
.result div b { display:block; font:700 1.35rem var(--hf); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.result div span { color:var(--muted); font-size:.82rem; }
.pos { color:var(--good); } .neg { color:var(--bad); } .warn { color:var(--warn); }
@media (max-width:520px) { .result { grid-template-columns:repeat(2,minmax(0,1fr)); } .result > div:nth-child(2) { grid-column:1 / -1; order:-1; } .result > div:nth-child(2) b { font-size:1.9rem; } }
.need { margin:14px 0 0; padding:12px 16px; border-radius:8px; text-align:center; background:var(--tint); border:1px dashed var(--accent); }
.need b { font:700 1.6rem var(--hf); color:var(--accent-ink); }

.cta { display:flex; align-items:center; justify-content:center; text-align:center; min-height:56px; padding:8px 12px; border-radius:8px; background:var(--card); border:2px solid var(--accent); color:var(--accent-ink); text-decoration:none; font:600 1.05rem var(--hf); margin-bottom:20px; }
.chips-title { margin:0 0 8px; font-size:.9rem; font-weight:600; color:var(--muted); }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.chips a { min-height:44px; display:inline-flex; align-items:center; padding:0 16px; border-radius:999px; border:1.5px solid var(--accent); background:var(--card); color:var(--accent-ink); text-decoration:none; font-weight:600; font-size:.95rem; }
.fine { color:var(--muted); font-size:.9rem; }
.foot { border-top:1px solid var(--line); padding-top:16px; text-align:center; font-size:.88rem; color:var(--muted); }
.foot a { color:var(--ink); }
button.link { background:none; border:0; padding:0; font:inherit; color:var(--accent-ink); text-decoration:underline; cursor:pointer; min-height:44px; }

/* Thai line breaking: avoid a single syllable alone on the last line */
p, li, .fine, .sub, .need { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

/* Main navigation (same on every page) and the platform switch that only the profit calculators show */
.main-nav { display:flex; flex-wrap:wrap; gap:4px 6px; margin:0 -4px 12px; }
.main-nav a { color:#fff; text-decoration:none; font-weight:700; font-size:15px; min-height:40px; padding:0 14px; border-radius:999px; display:inline-flex; align-items:center; }
.main-nav a:hover { background:#00000033; }
.main-nav a[aria-current] { background:#fff; color:var(--pill-ink); }
.plat-label { margin:0 0 6px; font-size:14px; font-weight:700; color:#fff; }
.back-btn { display:inline-flex; align-items:center; min-height:44px; margin:0 0 8px; font-weight:600; }

/* Results: numbers first */
.result > div { padding:14px 8px; }
.result div b { font-size:1.6rem; font-weight:700; color:var(--ink); }
.result div b.pos { color:var(--good); } .result div b.neg { color:var(--bad); } .result div b.warn { color:var(--warn); }
.result > div:nth-child(2) { border-color:var(--accent); border-width:2px; }
.result div span { font-size:.85rem; }
@media (max-width:520px) { .result div b { font-size:1.4rem; } }
.hint { margin:0 0 12px; font-weight:600; }
.hint:empty { display:none; }

/* Form help */
input::placeholder { color:var(--ph); opacity:1; }
.req { color:var(--bad); font-weight:700; }
.req-note { margin:-4px 0 12px; }
.err { margin:4px 0 0; color:var(--bad); font-size:.85rem; font-weight:600; }
input[aria-invalid="true"] { border-color:var(--bad); border-width:2px; }
.other-field { margin-top:10px; }

/* Warnings: visible but not shouting */
.callout { text-align:center; margin:12px 0; padding:10px 14px; border-radius:8px; background:var(--warn-bg); border:1px solid var(--warn-line); border-left:6px solid var(--warn); color:var(--ink); font-size:.95rem; }
.callout b { font-weight:700; }
.chip-link { display:inline-flex; align-items:center; min-height:36px; margin:8px 0 0; padding:0 14px; border:1.5px solid var(--warn); border-radius:999px; color:var(--ink); font-size:.85rem; font-weight:600; text-decoration:none; }
.chip-link:not([hidden]) { display:flex; width:max-content; max-width:100%; margin-left:auto; margin-right:auto; }
.chip-link:hover { background:var(--warn-line); }
li.unv::marker { color:var(--warn); }
.unv-text { display:inline-block; margin-right:6px; padding:0 8px; border-radius:999px; background:var(--warn-bg); border:1px solid var(--warn-line); color:var(--warn); font-weight:700; font-size:.85em; cursor:help; position:relative; }
.unv-text:hover::after, .unv-text:focus::after { content:attr(data-tip); position:absolute; left:0; top:100%; margin-top:6px; z-index:5; width:max-content; max-width:min(320px,80vw); padding:6px 10px; border-radius:6px; background:var(--ink); color:var(--bg); font-size:.8rem; font-weight:600; }
.src-chip { display:inline-block; margin-left:4px; padding:1px 8px; border:1px solid var(--line); border-radius:999px; font-size:.78rem; text-decoration:none; }
.privacy-note, .note-box { margin:0 0 12px; padding:10px 14px; border-left:4px solid var(--accent); border-radius:6px; background:var(--tint); font-size:.9rem; }
.sub b { color:var(--ink); }
.note-box { margin:16px 0; padding:12px 16px; font-size:.95rem; }
.note-box p { margin:0 0 6px; }
.note-box p:last-child { margin:0; }
.sub a { font-weight:600; }

/* Three-column shell on wide screens: tools on the left, calculator in the middle, saved results on the right */
.shell { max-width:760px; }
.center { min-width:0; }
.rail { display:none; }
.hist { margin-top:16px; padding:16px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.hist h2 { font-size:1.05rem; margin:0 0 6px; }
.hist-list { list-style:none; margin:10px 0 4px; padding:0; }
.hist-list li { padding:10px 0; border-top:1px solid var(--line); font-size:.9rem; overflow-wrap:anywhere; }
.hist-top { color:var(--muted); font-size:.8rem; font-weight:600; }
.btn-save { display:block; margin:12px auto 0; min-height:44px; padding:0 18px; border-radius:999px; border:1.5px solid var(--accent); background:var(--card); color:var(--accent-ink); font:700 .95rem "Noto Sans Thai", sans-serif; cursor:pointer; }
.btn-save:hover:not(:disabled) { background:var(--tint); }
.btn-save:disabled { opacity:.5; cursor:not-allowed; }
.rail-title { margin:0 0 8px; font-size:.8rem; font-weight:700; color:var(--muted); letter-spacing:.02em; }
.rail a { display:block; margin-bottom:8px; padding:10px 12px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink); text-decoration:none; }
.rail a b { display:block; font-size:.95rem; }
.rail a small { display:block; color:var(--muted); font-size:.78rem; line-height:1.4; }
.rail a:hover { border-left-color:var(--accent); }
.rail a[aria-current] { border-left-color:var(--accent); background:var(--tint); }
@media (min-width:1280px) {
  main.shell { max-width:1280px; display:grid; grid-template-columns:220px minmax(0,760px) 220px; gap:0 24px; justify-content:center; align-items:start; }
  .rail, .hist { position:sticky; top:16px; margin-top:0; }
  .rail { display:block; }
  .hist { max-height:calc(100vh - 32px); overflow:auto; }
  .chips-title, .chips { display:none; }
}

/* Creator gear: Bento blocks */
.bento-head { margin-bottom:6px; }
.bento-why { margin:0 0 8px; }
.bento-look { margin:0 0 12px; }
.bento-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.bento-grid:empty { display:none; }
.bento-prod { display:flex; flex-direction:column; justify-content:flex-end; gap:4px; min-height:110px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--tint); color:var(--ink); text-decoration:none; overflow:hidden; }
.bento-prod.big { grid-column:span 2; min-height:150px; }
.bento-prod b { font-size:.95rem; line-height:1.4; }
.bento-prod .meta { color:var(--muted); font-size:.82rem; }
.bento-prod img { width:100%; max-height:120px; object-fit:cover; border-radius:8px; }
.bento-prod:hover { border-color:var(--accent); }
.more-dots { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; grid-column:1 / -1; border:1.5px solid var(--accent); border-radius:999px; background:var(--card); color:var(--accent-ink); font-weight:700; text-decoration:none; }
.more-dots .dots { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--accent); color:#fff; font-size:1.2rem; line-height:1; }
.sortbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 12px; font-weight:600; }
.sortbar button { min-height:40px; padding:0 14px; border:1.5px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); font:600 .9rem "Noto Sans Thai", sans-serif; cursor:pointer; }
.sortbar button[aria-pressed="true"] { background:var(--accent); border-color:var(--accent); color:#fff; }
@media (min-width:700px) { .bento-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .bento-prod.big { grid-column:span 2; grid-row:span 2; } }

/* Recommended-products banner on the affiliate page */
.promo { margin:16px 0; padding:14px 16px; border:1px solid var(--line); border-left:6px solid var(--accent); border-radius:8px; background:var(--card); }
.promo h2 { font-size:1.05rem; margin:0 0 8px; }
.promo-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; }

/* Gear page: category cards laid out as a Bento grid (3 per row on wide screens) */
main.wide { max-width:1100px; }
.gear-grid { display:grid; gap:14px; grid-template-columns:minmax(0,1fr); }
.gear-grid > .bento { display:flex; flex-direction:column; margin:0; }
.gear-grid .bento-grid { margin-top:auto; }
@media (min-width:640px) { .gear-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:960px) { .gear-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.gear-grid .bento-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.gear-grid .more-dots { grid-column:1 / -1; }

/* Result highlight + calculate button (spinner while "working") */
@keyframes flash { 0% { background:var(--warn-bg); box-shadow:0 0 0 6px var(--warn-bg); } 100% { background:transparent; box-shadow:0 0 0 6px transparent; } }
.flash { animation:flash 1.4s ease-out; border-radius:6px; }
.btn-calc { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:48px; margin-top:16px; border:0; border-radius:999px; background:var(--band); color:#fff; font:700 1rem "Noto Sans Thai", sans-serif; cursor:pointer; }
.btn-calc:hover:not(:disabled) { filter:brightness(1.08); }
.btn-calc:disabled { cursor:progress; opacity:.85; }
.btn-calc .spin, .pill .spin { display:none; width:18px; height:18px; border:3px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; }
.btn-calc.busy .spin, .pill.busy .spin { display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .flash { animation:none; background:var(--warn-bg); } .btn-calc .spin, .pill .spin { animation:none; } }

/* Pill buttons in the history box */
.pill { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; margin-top:6px; padding:0 18px; border:1.5px solid var(--accent-ink); border-radius:999px; background:var(--card); color:var(--accent-ink); font:700 .9rem "Noto Sans Thai", sans-serif; cursor:pointer; }
.pill:hover:not(:disabled) { background:var(--tint); }
.pill:disabled { cursor:progress; opacity:.85; }
.pill .spin { width:14px; height:14px; border-width:2.5px; }
.pill.quiet { border-color:var(--line); color:var(--muted); }

/* Home page: neutral hero band with the how-to steps, then the platform picker */
.hero { padding:8px 0 4px; }
.hero h1 { margin:0 0 8px; font:700 1.6rem/1.3 var(--hf); color:#fff; }
.hero p { margin:0; font-size:1rem; color:#ffffffe6; }
.steps { list-style:none; margin:16px 0 0; padding:0 0 18px; display:grid; gap:8px; }
.steps li { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:12px; background:#00000033; color:#fff; }
.steps li b { width:32px; height:32px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; background:#fff; color:var(--accent-ink); font:700 16px var(--hf); }
.steps strong { display:block; font-size:1rem; }
.steps span { font-size:.9rem; line-height:1.4; }
@media (min-width:700px) {
  .hero h1 { font-size:2rem; }
  .steps { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
}
.pick-title { margin:0 0 12px; font:700 1.25rem/1.3 var(--hf); }
.pick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:8px; }
.pick-card { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-height:132px; padding:16px; border:1px solid var(--line); border-top:5px solid var(--accent); border-radius:14px; background:var(--card); color:var(--ink); text-decoration:none; }
.pick-card:hover { box-shadow:0 4px 14px #0000001f; }
.pick-card .badge { width:40px; height:40px; border-radius:12px; font-size:20px; }
.pick-card b { font:700 1.15rem var(--hf); }
.pick-card small { color:var(--muted); font-size:.85rem; line-height:1.4; }
.pick-card.shopee { border-top-color:#ee4d2d; }
.pick-card.lazada { border-top-color:#8b3fd9; }
.pick-card.tiktok { border-top-color:#fe2c55; }
.pick-card.thaimart { border-top-color:#d4202c; }
.tool-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
@media (max-width:560px) { .tool-grid { grid-template-columns:1fr; } }
.tool-grid a { display:block; padding:12px 14px; border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:10px; background:var(--card); color:var(--ink); text-decoration:none; }
.tool-grid a:hover { background:var(--tint); }
.tool-grid b { display:block; }
.tool-grid small { color:var(--muted); font-size:.82rem; line-height:1.4; }
@media (min-width:700px) { .pick { grid-template-columns:repeat(4,minmax(0,1fr)); } }
