/* TinyWeb — home / theme catalogue */
@font-face{font-family:OfflineThai;src:url('NotoSansThai-Regular.ttf') format('truetype');font-display:swap;font-weight:100 900}
:root{--bg:#f3f8f4;--card:#fff;--ink:#12352d;--muted:#566d63;--line:#dce9df;--blue:#268357;--blue-soft:#dff2e4;--green:#06C755;--warm:#FF6B3D;
  --font:"Noto Sans Thai","Outfit",OfflineThai,sans-serif;--display:"Outfit","Prompt","Noto Sans Thai",OfflineThai,sans-serif;--max:1240px;--pad:max(20px,calc((100vw - var(--max))/2));--r:16px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:120px}
body{margin:0;background:var(--bg);color:var(--ink);font:16.5px/1.6 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid #268357;outline-offset:3px}
.ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.skip{position:absolute;left:12px;top:-80px;z-index:200;background:#fff;padding:10px 14px;border-radius:8px}
.skip:focus{top:10px}

/* ---------- header ---------- */
.hb-top{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:28px;height:64px;padding:0 var(--pad);background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.hb-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:21px;letter-spacing:-.01em}
.hb-logo img{width:30px;height:30px}
.hb-logo small{font-weight:400;font-size:13.5px;color:var(--muted);border-left:1px solid var(--line);padding-left:10px;margin-left:2px}
.hb-nav{display:flex;gap:22px;font-size:15.5px;color:var(--muted)}
.hb-nav a:hover{color:var(--ink)}
.hb-top .tw-cta{margin:0 0 0 auto}

/* small call / LINE buttons (same look as inside themes) */
.tw-cta{display:flex;flex-wrap:wrap;gap:8px}
.tw-btn{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px 0 11px;border-radius:99px;font:700 14.5px/1 var(--font);white-space:nowrap;transition:filter .2s}
.tw-btn:hover{filter:brightness(1.08)}
.tw-btn svg{width:19px;height:19px;flex:none}
.tw-btn.call{background:var(--ink);color:#fff}
.tw-btn.call svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}
.tw-btn.line{background:var(--green);color:#fff}

/* ---------- hero ---------- */
.hb-hero{padding:46px var(--pad) 34px;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:end}
.hb-hero h1{font-size:clamp(30px,3.4vw,46px);line-height:1.18;letter-spacing:-.025em;margin:0 0 12px;font-weight:700;max-width:18ch}
.hb-hero p{margin:0;color:var(--muted);font-size:18.5px;max-width:46ch}
.hb-search{position:relative;margin-top:26px;max-width:560px}
.hb-search .ic{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:var(--muted);width:20px;height:20px}
.hb-search input{width:100%;height:56px;border-radius:14px;border:1px solid var(--line);background:var(--card);padding:0 18px 0 50px;font-size:17.5px;box-shadow:0 6px 24px #12352d0d}
.hb-search input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}
.hb-try{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:14.5px;color:var(--muted);align-items:center}
.hb-try button{border:1px solid var(--line);background:var(--card);border-radius:99px;padding:5px 12px;cursor:pointer;font-size:14.5px}
.hb-try button:hover{border-color:var(--ink)}
.hb-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;justify-self:end;width:min(100%,420px)}
.hb-facts div{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.hb-facts b{display:block;font-size:29px;line-height:1.1;letter-spacing:-.02em}
.hb-facts span{font-size:14.5px;color:var(--muted)}

/* ---------- section heads ---------- */
.hb-sec{padding:34px var(--pad)}
.hb-sec-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.hb-sec-head h2{font-size:clamp(22px,2.2vw,28px);margin:0;letter-spacing:-.015em;line-height:1.25}
.hb-sec-head p{margin:4px 0 0;color:var(--muted);font-size:15.5px}

/* ---------- theme of the month ---------- */
.hb-month{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(24px,4vw,56px);background:var(--card);border:1px solid var(--line);border-radius:24px;padding:clamp(18px,2.4vw,30px);align-items:center}
.hb-frame{border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#e6f1e9;box-shadow:0 24px 50px #12352d17}
.hb-frame-bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;background:#eff6f1;border-bottom:1px solid var(--line)}
.hb-frame-bar i{width:10px;height:10px;border-radius:50%;background:#c8dccf}
.hb-frame-bar span{margin-left:12px;font-size:13px;color:var(--muted);background:#fff;border-radius:6px;padding:3px 10px;flex:1;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-frame-view{height:clamp(260px,30vw,400px);overflow:hidden;position:relative;display:block}
.hb-frame-view img{width:100%;animation:hb-scroll 22s ease-in-out infinite alternate}
.hb-frame:hover .hb-frame-view img{animation-play-state:paused}
@keyframes hb-scroll{0%,8%{transform:translateY(0)}92%,100%{transform:translateY(calc(-100% + clamp(260px,30vw,400px)))}}
.hb-month-badge{display:inline-flex;align-items:center;gap:8px;background:#FFF0EA;color:#B8401A;font-size:14.5px;font-weight:700;padding:6px 12px;border-radius:99px;margin-bottom:14px}
.hb-month-badge:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--warm)}
.hb-month h3{font-size:clamp(26px,2.6vw,34px);line-height:1.15;letter-spacing:-.02em;margin:0 0 4px}
.hb-month .biz{color:var(--muted);font-size:15.5px;margin:0 0 14px}
.hb-month .desc{margin:0 0 16px}
.hb-hl{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:8px;font-size:15.5px}
.hb-hl li{display:flex;gap:10px;align-items:flex-start}
.hb-hl .ic{color:var(--blue);margin-top:2px}
.hb-swatch{display:flex;align-items:center;gap:6px;margin-bottom:20px;font-size:14px;color:var(--muted)}
.hb-swatch i{width:18px;height:18px;border-radius:50%;border:1px solid #0000001a}
.hb-swatch span{margin-left:6px}
.hb-actions{display:flex;flex-wrap:wrap;gap:10px}
.hb-btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;font-weight:700;font-size:15.5px;background:var(--blue);color:#fff;border:1px solid var(--blue);cursor:pointer}
.hb-btn:hover{filter:brightness(1.08)}
.hb-btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.hb-btn.ghost:hover{border-color:var(--ink);filter:none}
.hb-past{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:14.5px;color:var(--muted)}
.hb-past a{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:99px;padding:4px 12px 4px 4px;background:var(--card);color:var(--ink)}
.hb-past a img{width:24px;height:24px;border-radius:50%;object-fit:cover;object-position:top}
.hb-past a:hover{border-color:var(--ink)}

/* ---------- catalogue toolbar ---------- */
.hb-tools{position:sticky;top:64px;z-index:40;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);margin:0 calc(var(--pad) * -1);padding:12px var(--pad);border-bottom:1px solid transparent;transition:border-color .2s}
.hb-tools.stuck{border-color:var(--line)}
.hb-cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.hb-cats::-webkit-scrollbar{display:none}
.hb-cats button{flex:none;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--card);cursor:pointer;font-size:15.5px;white-space:nowrap}
.hb-cats button em{font-style:normal;font-size:13.5px;color:var(--muted);background:var(--bg);border-radius:99px;padding:1px 7px}
.hb-cats button:hover{border-color:var(--ink)}
.hb-cats button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.hb-cats button[aria-pressed=true] em{background:#ffffff26;color:#fff}
.hb-filter{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap;font-size:15px}
.hb-filter label{display:flex;align-items:center;gap:8px;color:var(--muted)}
.hb-filter select{height:36px;border-radius:10px;border:1px solid var(--line);background:var(--card);padding:0 32px 0 12px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6573' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:16px;color:var(--ink);cursor:pointer}
.hb-filter select.on{border-color:var(--blue);background-color:var(--blue-soft)}
.hb-count{margin-left:auto;color:var(--muted)}
.hb-count b{color:var(--ink)}
.hb-clear{border:0;background:none;color:var(--blue);font-weight:700;cursor:pointer;padding:4px 2px}
.hb-clear[hidden]{display:none}

/* ---------- cards ---------- */
.hb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;margin-top:18px}
.hb-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:box-shadow .3s,transform .3s,border-color .3s}
.hb-card:hover{box-shadow:0 18px 40px #12352d14;transform:translateY(-2px);border-color:#c8dccf}
.hb-thumb{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#e6f1e9}
.hb-thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 0;transition:object-position 5.5s ease-in-out}
.hb-card:hover .hb-thumb img{object-position:50% 100%}
.hb-thumb .ph{position:absolute;inset:0;display:grid;place-items:center;font-size:48px;font-weight:700;color:#b3c8bb}
.hb-badges{position:absolute;left:10px;top:10px;display:flex;gap:6px}
.hb-badges span{font-size:13px;font-weight:700;padding:4px 9px;border-radius:99px;background:#fff;box-shadow:0 2px 8px #0000001f}
.hb-badges .new{background:var(--blue);color:#fff}
.hb-badges .month{background:var(--warm);color:#fff}
.hb-body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
.hb-body small{font-size:13.5px;color:var(--muted);display:flex;gap:6px}
.hb-body h3{font-size:18.5px;line-height:1.3;margin:3px 0 10px;letter-spacing:-.01em}
.hb-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}
.hb-chips span{font-size:13px;padding:3px 8px;border-radius:6px;background:var(--bg);color:#2c4a41}
.hb-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.hb-dots{display:flex;align-items:center}
.hb-dots i{width:15px;height:15px;border-radius:50%;border:2px solid #fff;margin-left:-4px;box-shadow:0 0 0 1px #0000000f}
.hb-dots i:first-child{margin-left:0}
.hb-dots span{font-size:13px;color:var(--muted);margin-left:6px}
.hb-view{display:inline-flex;align-items:center;gap:4px;font-size:14.5px;font-weight:700;color:var(--blue)}
.hb-view .ic{width:15px;height:15px;transition:transform .2s}
.hb-card:hover .hb-view .ic{transform:translateX(3px)}
.hb-more{display:flex;justify-content:center;margin-top:26px}

/* ---------- empty state ---------- */
.hb-empty{background:var(--card);border:1px dashed #c8dccf;border-radius:var(--r);padding:30px;margin-top:18px;text-align:center}
.hb-empty h3{margin:0 0 6px;font-size:22px}
.hb-empty p{margin:0 auto 16px;color:var(--muted);max-width:52ch}
.hb-empty .tw-cta{justify-content:center;margin-bottom:6px}
.hb-empty .hb-grid{text-align:left;margin-top:26px}
.hb-empty h4{margin:28px 0 0;font-size:15.5px;color:var(--muted);font-weight:400;text-align:left}

/* ---------- included ---------- */
.hb-incl{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.hb-incl div{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;font-size:15px;line-height:1.45}
.hb-incl .ic{width:22px;height:22px;color:var(--blue);margin-bottom:10px;display:block}
.hb-incl b{display:block;font-size:15.5px;margin-bottom:2px}
.hb-incl span{color:var(--muted)}

/* ---------- footer ---------- */
.hb-foot-site{margin-top:30px;padding:30px var(--pad) 40px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;font-size:14.5px;color:var(--muted)}
.hb-foot-site .hb-logo{color:var(--ink);font-size:18.5px}

@media (max-width:1000px){.hb-incl{grid-template-columns:repeat(3,1fr)}}
@media (max-width:860px){
  .hb-nav{display:none}
  .hb-hero{grid-template-columns:1fr;padding-top:30px}
  .hb-facts{justify-self:stretch;width:100%;grid-template-columns:repeat(4,1fr)}
  .hb-facts b{font-size:22px}
  .hb-month{grid-template-columns:1fr}
}
@media (max-width:600px){
  .hb-logo small{display:none}
  .hb-top{gap:12px;height:58px}
  .hb-tools{top:58px}
  .hb-top .tw-btn{width:38px;padding:0;justify-content:center;font-size:0;gap:0}
  .hb-facts{grid-template-columns:repeat(2,1fr)}
  .hb-grid{grid-template-columns:1fr 1fr;gap:10px}
  .hb-body{padding:10px 11px 12px}
  .hb-body h3{font-size:16.5px}
  .hb-chips{display:none}
  .hb-dots span{display:none}
  .hb-incl{grid-template-columns:1fr 1fr}
  .hb-count{margin-left:0;width:100%}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hb-frame-view img{animation:none}.hb-thumb img{transition:none}}
.hb-thumb img{position:relative;z-index:1}
.hb-thumb .hb-badges{z-index:2}
@media (min-width:861px){.hb-cats{flex-wrap:wrap;overflow:visible}}

/* ---------- colour chips ---------- */
.hb-colors{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.hb-colors .lbl{font-size:15px;color:var(--muted)}
.hb-colors [data-colors]{display:flex;gap:6px;flex-wrap:wrap}
.hb-colors button{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 11px 0 9px;border-radius:99px;border:1px solid var(--line);background:var(--card);font-size:14.5px;cursor:pointer;white-space:nowrap}
.hb-colors button i{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 1px #0000001a}
.hb-colors button em{font-style:normal;font-size:13px;color:var(--muted)}
.hb-colors button:hover:not(:disabled){border-color:var(--ink)}
.hb-colors button[aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);font-weight:700}
.hb-colors button:disabled{opacity:.4;cursor:default}
.hb-color-note{font-size:14px;color:var(--muted)}
.hb-dots.match i{border-radius:4px;width:16px;height:16px;margin-left:2px;border:0;box-shadow:0 0 0 1px #0000001a}
.hb-dots.match i:first-child{margin-left:0}
.hb-dots.match span{color:var(--ink);font-weight:700;margin-left:8px}
@media (max-width:600px){
  .hb-colors{flex-wrap:nowrap}
  .hb-colors [data-colors]{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .hb-colors [data-colors]::-webkit-scrollbar{display:none}
  .hb-color-note{display:none}
  .hb-dots.match span{display:inline;font-size:13px}
}
.hb-cats button:disabled{opacity:.4;cursor:default}
.hb-cats button:disabled:hover{border-color:var(--line)}
.hb-colors .lbl{white-space:nowrap}

/* ---------- language switch ---------- */
.hb-lang{display:flex;border:1px solid var(--line);border-radius:99px;padding:3px;background:var(--card);margin-left:auto}
.hb-lang button{border:0;background:transparent;border-radius:99px;padding:5px 11px;font:700 14px var(--font);color:var(--muted);cursor:pointer}
.hb-lang button[aria-pressed=true]{background:var(--ink);color:#fff}
.hb-top .hb-lang+.tw-cta{margin-left:0}
.hb-langs{display:flex;gap:4px}
.hb-langs span{font-size:12.5px;font-weight:700;letter-spacing:.04em;padding:2px 6px;border-radius:5px;border:1px solid var(--line);color:var(--muted)}
@media (max-width:600px){.hb-lang button{padding:5px 8px}}
.hb-thumb .hb-langs{position:absolute;right:10px;top:10px;z-index:2;display:flex;gap:4px}
.hb-thumb .hb-langs span{background:#fff;color:var(--ink);border:0;box-shadow:0 2px 8px #0000001f;font-size:12.5px;padding:4px 7px;border-radius:99px}
.hb-view{white-space:nowrap;flex:none}
.hb-dots.match span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}

/* ---------- v009: website type picker, type badges, sales codes ---------- */
.hb-typehead h3{font-size:22px;margin:6px 0 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hb-typehead span{font-size:14.5px;font-weight:700;padding:5px 12px;border-radius:99px;background:#dff2e4;color:#268357}
.hb-types{display:grid;grid-template-columns:.7fr 1fr 1fr 1fr;gap:12px;margin-bottom:22px}
.hb-types button{position:relative;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;gap:4px 12px;align-items:center;text-align:left;padding:16px 18px;border-radius:18px;border:1.5px solid #dce9df;background:#eff9f2;color:#12352d;font:inherit;cursor:pointer;transition:.2s}
.hb-types button:hover{border-color:#9dc9ac}
.hb-types button[aria-pressed=true]{border-color:#268357;background:#fff;box-shadow:0 10px 26px #2683571f}
.hb-types .box{grid-row:span 2;width:26px;height:26px;border-radius:7px;border:2px solid #12352d;display:grid;place-items:center}
.hb-types button[aria-pressed=true] .box{background:#268357;border-color:#268357}
.hb-types button[aria-pressed=true] .box:after{content:'';width:11px;height:6px;border:solid #fff;border-width:0 0 2.5px 2.5px;transform:rotate(-45deg) translate(1px,-1px)}
.hb-types .pic{display:none}
.hb-types b{font-size:20px}
.hb-types small{grid-column:2;font-size:14px;opacity:.72;line-height:1.4}
.hb-types em{grid-row:1/span 2;grid-column:3;font-style:normal;font-weight:800;font-size:22px;color:#268357}
.hb-badges .type{background:#12352ddd;color:#fff}
.hb-badges .type.t-biz{background:#268357}
.hb-badges .type.t-cat{background:#06C755}
.hb-code{display:block;font:700 13px/1.3 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.02em;color:#268357;margin-bottom:2px}
.hb-chips .n{background:#12352d;color:#fff}
@media(max-width:900px){.hb-types{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.hb-types{grid-template-columns:1fr}}

/* ---------- v009.2: floating filter bar, dropdowns, shelves, list view ---------- */
.hb-types,.hb-typehead,.hb-tools{display:none}
.hb-bar{position:sticky;top:64px;z-index:40;display:flex;align-items:center;gap:10px;margin:0 calc(var(--pad) * -1);padding:10px var(--pad);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s}
.hb-bar.stuck{border-color:var(--line);box-shadow:0 8px 20px #12352d0d}
.hb-seg{display:flex;gap:2px;padding:3px;border-radius:12px;background:var(--card);border:1px solid var(--line);flex:none}
.hb-seg button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:0;border-radius:9px;background:transparent;font:inherit;font-size:15.5px;cursor:pointer;color:var(--ink);white-space:nowrap}
.hb-seg button em{font-style:normal;font-size:13px;color:var(--muted)}
.hb-seg button[aria-pressed=true]{background:var(--ink);color:#fff}
.hb-seg button[aria-pressed=true] em{color:#ffffffaa}
.hb-more-f{display:flex;align-items:center;gap:8px}
.hb-dd{position:relative}
.hb-ddbtn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 10px 0 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);font:inherit;font-size:15.5px;cursor:pointer;color:var(--ink);white-space:nowrap;max-width:240px}
.hb-ddbtn b{font-weight:700;overflow:hidden;text-overflow:ellipsis}
.hb-ddbtn b:not(:empty):before{content:': ';font-weight:400}
.hb-ddbtn.on{border-color:var(--blue);background:var(--blue-soft)}
.hb-ddbtn:hover{border-color:var(--ink)}
.hb-ddbtn .chev{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s;flex:none}
.hb-ddbtn[aria-expanded=true] .chev{transform:rotate(180deg)}
.hb-ddbtn .cur{width:12px;height:12px;border-radius:50%}
.hb-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:60;min-width:250px;max-height:min(60vh,440px);overflow:auto;padding:6px;border-radius:14px;background:var(--card);border:1px solid var(--line);box-shadow:0 22px 50px #12352d26}
.hb-pop[data-pop=color]{min-width:300px}
.hb-dd[data-dd=sort] .hb-pop{left:auto;right:0;min-width:200px}
.hb-pop button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-radius:9px;background:transparent;font:inherit;font-size:15.5px;text-align:left;cursor:pointer;color:var(--ink)}
.hb-pop button span{flex:1}
.hb-pop button em{font-style:normal;font-size:13.5px;color:var(--muted)}
.hb-pop button:hover:not([disabled]){background:var(--bg)}
.hb-pop button[aria-pressed=true]{background:var(--blue-soft);color:var(--blue);font-weight:700}
.hb-pop button[disabled]{opacity:.38;cursor:default}
.hb-pop .sw{width:16px;height:16px;border-radius:50%;flex:none;box-shadow:0 0 0 1px #0000001a}
.hb-pop .sw.all{background:conic-gradient(#2F6FD0,#3E8E4E,#E0B33A,#C8692B,#D2405F,#7B4FC0,#2F6FD0)}
.hb-pop-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.hb-pop-note{margin:6px 8px 4px;font-size:13.5px;color:var(--muted);line-height:1.45}
.hb-bar-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.hb-icbtn{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card);cursor:pointer;color:var(--ink)}
.hb-icbtn .ic{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.hb-icbtn.on,.hb-icbtn[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.hb-viewt{display:flex;gap:4px}
.hb-qbox{display:flex;align-items:center}
.hb-qbox input{width:0;opacity:0;padding:0;border:0;height:40px;transition:width .25s,opacity .2s,padding .25s;border-radius:12px 0 0 12px;font:inherit;font-size:15.5px;background:var(--card);color:var(--ink)}
.hb-bar.qopen .hb-qbox input{width:200px;opacity:1;padding:0 12px;border:1px solid var(--line);border-right:0}
.hb-bar.qopen .hb-qbox .hb-icbtn{border-radius:0 12px 12px 0}
.hb-mfilter,.hb-sheet-head,.hb-sheet-done{display:none}
.hb-active{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 0;font-size:15px}
.hb-active[hidden]{display:none}
.hb-found{margin-right:6px;color:var(--muted)}
.hb-found b{color:var(--ink)}
.hb-active [data-rm]{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 10px 0 12px;border-radius:8px;border:1px solid var(--line);background:var(--card);font:inherit;font-size:14.5px;cursor:pointer;color:var(--ink)}
.hb-active [data-rm] i{width:11px;height:11px;border-radius:50%}
.hb-active [data-rm] span{font-size:17.5px;line-height:1;color:var(--muted)}
.hb-active [data-rm]:hover{border-color:var(--ink)}
.hb-clearall{border:0;background:none;font:inherit;font-size:14.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;color:var(--ink);padding:0 4px}
.hb-shelf{margin-top:34px}
.hb-shelf-head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap}
.hb-shelf-head h3{margin:0;font-size:24px;letter-spacing:-.01em}
.hb-shelf-head p{margin:3px 0 0;font-size:15px;color:var(--muted)}
.hb-shelf-head .hb-btn{height:38px;font-size:15px}
.hb-shelf-head .hb-btn .ic{width:16px;height:16px}
.hb-shelf-grid{grid-template-columns:repeat(4,1fr)}
/* list view */
.hb-grid.as-list{grid-template-columns:1fr;gap:14px}
.hb-row{display:grid;grid-template-columns:minmax(220px,300px) 1fr 220px;align-items:stretch}
.hb-row .hb-thumb{aspect-ratio:auto;min-height:190px}
.hb-row .hb-body{padding:18px 22px;border-right:1px solid var(--line)}
.hb-row .hb-body h3{font-size:21px;margin:2px 0 4px}
.hb-hls{margin:12px 0 0;padding:0 0 0 18px;font-size:15px;color:#2c4a41;display:grid;gap:4px}
.hb-side{display:flex;flex-direction:column;gap:10px;padding:18px;justify-content:center}
.hb-side .hb-chips{margin:0}
.hb-side .hb-btn{height:40px;justify-content:center;font-size:15px}
.hb-side .hb-btn .ic{width:17px;height:17px}
@media (max-width:1100px){.hb-shelf-grid{grid-template-columns:repeat(2,1fr)}.hb-row{grid-template-columns:240px 1fr}.hb-side{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;border-top:1px solid var(--line)}.hb-row .hb-body{border-right:0}}
@media (max-width:980px){
  .hb-bar{top:58px;gap:8px}
  .hb-seg{overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
  .hb-seg::-webkit-scrollbar{display:none}
  .hb-viewt,.hb-qbox{display:none}
  .hb-mfilter{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--card);font:inherit;font-size:15.5px;cursor:pointer;color:var(--ink);white-space:nowrap}
  .hb-mfilter .ic{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .hb-mfilter b{min-width:18px;height:18px;border-radius:99px;background:var(--blue);color:#fff;font-size:13px;display:none;place-items:center}
  .hb-mfilter.on b{display:inline-grid}
  .hb-more-f{display:none}
  .hb-bar.sheet .hb-more-f{display:flex;flex-direction:column;align-items:stretch;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:200;max-height:82vh;overflow:auto;padding:16px 18px calc(18px + env(safe-area-inset-bottom));background:var(--card);border-radius:22px 22px 0 0;box-shadow:0 -20px 60px #12352d40}
  .hb-bar.sheet:before{content:'';position:fixed;inset:0;z-index:199;background:#12352d80}
  .hb-sheet-head{display:flex;justify-content:space-between;align-items:center;font-size:18.5px}
  .hb-sheet-head button{border:0;background:none;font-size:31px;line-height:1;cursor:pointer;color:var(--ink)}
  .hb-bar.sheet .hb-ddbtn{width:100%;max-width:none;justify-content:space-between}
  .hb-bar.sheet .hb-ddbtn .chev{margin-left:auto}
  .hb-bar.sheet .hb-pop{position:static;box-shadow:none;margin-top:6px;max-height:none;min-width:0}
  .hb-sheet-done{display:flex;justify-content:center;height:48px;margin-top:4px}
  body.hb-noscroll{overflow:hidden}
}
@media (max-width:640px){.hb-shelf-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin-inline:calc(var(--pad) * -1);padding:0 var(--pad) 6px;scrollbar-width:none}.hb-shelf-grid .hb-card{flex:0 0 72%;scroll-snap-align:start}.hb-row{grid-template-columns:1fr}.hb-row .hb-thumb{min-height:0;aspect-ratio:16/10}}
.hb-more [data-more][hidden],[data-grid][hidden],[data-shelves][hidden]{display:none}
.hb-row .hb-thumb{aspect-ratio:16/11;min-height:0;align-self:center;margin:14px;border-radius:12px}
.hb-bar.sheet{z-index:120}
.hb-bar.sheet .hb-sheet-done{position:sticky;bottom:0}
@media (max-width:640px){.hb-row .hb-thumb{margin:0;border-radius:0}}
.hb-ddbtn b:not(:empty):before{content:":";margin:0 5px 0 -4px;font-weight:400}

/* ---------- v009.3: compact top ---------- */
.hb-hero{padding:34px var(--pad) 18px;grid-template-columns:1fr minmax(340px,520px);gap:28px 48px;align-items:end}
.hb-hero h1{font-size:clamp(30px,3vw,42px);max-width:none;margin-bottom:6px}
.hb-hero p{font-size:17px}
.hb-stats{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:14px!important;font-size:15px!important}
.hb-stats>span{display:inline-flex;gap:5px;align-items:baseline}
.hb-stats b{color:var(--ink);font-size:16.5px}
.hb-hero-q .hb-search{margin-top:0;max-width:none}
.hb-hero-q .hb-search input{height:50px}
.hb-facts{display:none}
.hb-sec-month{padding-top:14px;padding-bottom:10px}
.hb-month{grid-template-columns:240px 1fr auto;gap:24px;padding:14px;border-radius:20px}
.hb-month .hb-frame{box-shadow:0 10px 26px #12352d14;border-radius:12px}
.hb-month .hb-frame-bar{height:20px;padding:0 8px;gap:4px}
.hb-month .hb-frame-bar i{width:6px;height:6px}
.hb-month .hb-frame-view{height:136px}
.hb-month-badge{margin-bottom:8px;font-size:13.5px;padding:4px 10px}
.hb-month h3{font-size:26px;margin:0 0 2px}
.hb-month .biz{margin:0 0 6px;font-size:14.5px}
.hb-month .desc{margin:0;font-size:15.5px;color:#2c4a41;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:62ch}
.hb-month-act{display:flex;flex-direction:column;align-items:flex-end;gap:10px;padding-right:8px}
.hb-month .hb-swatch{margin:0}
.hb-month .hb-swatch i{width:14px;height:14px}
.hb-month .hb-actions .hb-btn{height:40px}
.hb-month .hb-past{margin:0;font-size:13.5px}
.hb-month .hb-past a{padding:2px 10px 2px 2px;font-size:13.5px}
.hb-month .hb-past a img{width:20px;height:20px}
#themes{padding-top:26px}
#themes .hb-sec-head{margin-bottom:8px}
#themes .hb-sec-head h2{font-size:26px}
.hb-foot .hb-langs{margin-left:auto;margin-right:10px}
.hb-side-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
@media (max-width:1100px){.hb-month{grid-template-columns:200px 1fr}.hb-month-act{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:0}}
@media (max-width:860px){.hb-hero{grid-template-columns:1fr;padding-top:22px}.hb-month{grid-template-columns:1fr}.hb-month .hb-frame{display:none}}
.hb-stats{gap:4px 14px}.hb-stats>span{white-space:nowrap}
@media (max-width:860px){.hb-month .hb-past,.hb-month .hb-swatch{display:none}.hb-month .desc{-webkit-line-clamp:2}.hb-hero h1{font-size:27px}}

/* v015: card footer stays on one line even with three languages */
.hb-foot{flex-wrap:nowrap;gap:8px}.hb-foot .hb-dots{min-width:0;overflow:hidden}.hb-foot .hb-langs{flex:none;margin-right:0}.hb-foot .hb-langs span{padding:2px 5px;font-size:12px}.hb-foot .hb-view{flex:none;white-space:nowrap}

/* v018: larger, easier-to-read type (body 17px, nothing under 12px) */
.hb-hero p{font-size:17.5px}
.hb-stats{font-size:15px!important}.hb-stats b{font-size:17px}
.hb-shelf-head h3{font-size:25px}.hb-shelf-head p{font-size:15px}
#themes .hb-sec-head h2{font-size:27px}
.hb-seg button,.hb-ddbtn{font-size:15.5px}.hb-seg button em{font-size:13px}
.hb-pop button{font-size:15.5px}
.hb-card h3{font-size:19px;line-height:1.3}
.hb-chips span{font-size:13.5px;padding:5px 10px}
.hb-code{font-size:13px!important}
