/* Jadus — white pages, Jadus blue for actions and highlights, soft blue-grey tiles for product photos. Mobile first. */
:root {
  --blue: #041EB4;
  --blue-2: #0a2ad6;
  --ink: #0b1020;
  --grey: #5b6275;
  --soft: #f2f4fb;
  --line: #e3e6f0;
  --paper: #ffffff;
  --ok: #16a34a;
  --cjk: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Hiragino Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans JP";
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, var(--cjk), sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, var(--cjk), sans-serif;
  --gutter: max(18px, env(safe-area-inset-left, 0px));
  --gutter-r: max(18px, env(safe-area-inset-right, 0px));
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; overflow-x: hidden; overflow-x: clip; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 26px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
main { padding-bottom: 24px; }

/* buttons */
.btn { appearance: none; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; height: 46px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--body); cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue-2); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.light { background: #fff; color: var(--blue); border-color: #fff; }
.btn.ghost.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.ghost.light:hover { background: rgba(255,255,255,.12); }
.link { appearance: none; background: none; border: 0; padding: 0; color: var(--blue); font: 600 13px var(--body); cursor: pointer; }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
/* Only an app saved to the home screen draws under the status bar; in a browser some Android phones report a big top inset and left a blank strip. */
@media (display-mode: standalone) { .hdr { padding-top: env(safe-area-inset-top, 0px); } }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--blue); line-height: 1; }
.logo img { display: block; height: 24px; width: auto; }
.logo small { display: block; white-space: nowrap; font-family: var(--body); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }
.desk { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu nav { position: absolute; right: 0; top: 48px; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; width: min(300px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px rgba(11,16,32,.12); padding: 8px; display: flex; flex-direction: column; }
.menu nav a { padding: 12px; border-radius: 10px; font-weight: 500; }
.menu nav a:hover { background: var(--soft); }
.menu nav a.menu-cta { background: var(--blue); color: #fff; text-align: center; margin-top: 6px; border-radius: 999px; }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 8px; }
.hero > * { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--soft); border-radius: 999px; padding: 6px 12px; }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.hero h1 { font-size: 42px; line-height: 1.02; letter-spacing: -0.03em; margin: 16px 0 0; }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 9px; background: var(--blue); opacity: .14; transform-origin: left; animation: uline 1.1s .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes uline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-copy p { color: var(--grey); font-size: 16px; margin: 14px 0 22px; max-width: 470px; }
.wall { contain: paint; max-width: 100%; height: 312px; display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.wall .col { display: flex; gap: 10px; width: max-content; animation: wallX 60s linear infinite; }
.wall .col.r { animation-direction: reverse; }
.wall:hover .col { animation-play-state: paused; }
@keyframes wallX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wallY { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile { position: relative; flex: none; width: 94px; height: 94px; border-radius: 14px; overflow: hidden; background: var(--soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile b { display: none; }

/* stats */
.stats { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.stats div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.stats div:last-child { border-bottom: 0; }
.stats b { font-family: var(--display); font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stats span { color: var(--grey); font-size: 14px; line-height: 1.45; }

/* blocks */
.block { padding-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.block-light { padding-top: 28px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 18px; }
.page-title { font-size: 32px; }
.page-sub { color: var(--grey); max-width: 640px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.more { color: var(--blue); font-weight: 600; font-size: 14px; }

/* tabs and chips */
.tabs, .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r); }
.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.tabs button, .chips a { flex: none; appearance: none; background: #fff; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font: 500 14px var(--body); color: var(--ink); display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"], .chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabpanel { display: flex; flex-direction: column; gap: 16px; animation: fadeup .4s ease both; }
.tabpanel[hidden] { display: none; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #c9cfe3; box-shadow: 0 10px 24px rgba(11,16,32,.06); }
.card .ph { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card strong { padding: 10px 12px 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.card .meta { padding: 2px 12px 0; font-size: 12px; color: var(--grey); }
.card em { padding: 6px 12px 12px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--blue); }

/* logo service */
.logo-sec { background: var(--blue); color: #fff; border-radius: 22px; overflow: hidden; display: grid; }
.logo-sec img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.logo-sec > div { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.logo-sec p { opacity: .88; font-size: 15px; }

/* series */
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.serie { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--soft); }
.serie img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.serie:hover img { transform: scale(1.05); }
.serie span { position: absolute; inset: auto 0 0 0; padding: 12px; background: linear-gradient(rgba(4,30,180,0), rgba(4,30,180,.82)); color: #fff; display: flex; flex-direction: column; gap: 2px; }
.serie b { font-family: var(--display); font-size: 16px; line-height: 1.2; }
.serie small { font-size: 12px; opacity: .85; display: none; }

/* call to action */
.cta-panel { background: var(--soft); border-radius: 22px; padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; }
.cta-panel p { color: var(--grey); }

/* series and about hero */
.band-dark { background: var(--soft); border-bottom: 1px solid var(--line); }
.series-hero { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.series-hero h1 { font-size: 32px; margin: 8px 0 10px; }
.series-hero p { color: var(--grey); margin-bottom: 18px; max-width: 560px; }
.series-hero img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* catalogue */
.cat-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; }
.hd h2 { font-size: 20px; }
.hd a { color: var(--blue); font-weight: 600; font-size: 14px; }
.empty { border: 1px dashed #c9cfe3; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; color: var(--grey); }

/* product page */
.crumbs { font-size: 13px; color: var(--grey); }
.crumbs a { color: var(--blue); }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.g-main { border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.g-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--soft); cursor: pointer; }
.g-thumbs button[aria-current="true"] { border-color: var(--blue); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info { display: flex; flex-direction: column; gap: 14px; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--grey); }
.specs dd { margin: 0; }
.vars-wrap { margin-top: 20px; overflow-x: auto; }
.vars { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.vars th { text-align: left; font-weight: 600; color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.vars td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 13px; color: var(--grey); }
.also { font-size: 14px; color: var(--grey); }
.also a { color: var(--blue); font-weight: 600; }

/* dental kit builder */
.kit { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.kit h2 { font-size: 20px; }
.kit fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kit legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.opts input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.opts input:disabled + span { opacity: .35; text-decoration: line-through; }
.opts input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* quote */
.quote { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.picked { background: var(--soft); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.picked[hidden] { display: none; }
.picked h2 { font-size: 16px; }
.picked ul { margin: 0; padding-left: 18px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: 400 16px var(--body); color: var(--ink); background: #fff; border: 1px solid #cfd4e2; border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4,30,180,.15); }
.sent { background: var(--soft); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sent[hidden] { display: none; }
.contact-cards { display: grid; gap: 10px; margin-top: 12px; }

/* about */
.prose { max-width: 720px; }
.prose ul { margin: 0; padding-left: 20px; color: var(--grey); display: flex; flex-direction: column; gap: 6px; }
.prose h2 { font-size: 22px; margin-top: 8px; }

/* footer */
.ftr { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 36px calc(110px + env(safe-area-inset-bottom, 0px)); color: var(--grey); font-size: 14px; }
.ftr-in { display: flex; flex-direction: column; gap: 18px; }
.ftr-cols { display: grid; gap: 22px; }
.ftr h3 { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.ftr p { margin-bottom: 6px; }
.ftr a { color: var(--ink); }
.ftr-small { font-size: 12px; }

/* sticky contact bar (phone) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.bar-in { display: flex; gap: 6px; }
.bar a { flex: 1 1 auto; height: 44px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11.5px; padding: 0 8px; min-width: 0; white-space: nowrap; font-weight: 600; color: var(--ink); }
.bar a.q { flex: 1 1 auto; background: var(--blue); border-color: var(--blue); color: #fff; }

@media (min-width: 760px) {
  h2 { font-size: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { flex-direction: column; gap: 4px; padding: 22px 20px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stats div:last-child { border-right: 0; }
  .stats b { font-size: 34px; }
  .series { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .serie small { display: block; }
  .series-hero { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .series-hero h1 { font-size: 44px; }
  .logo-sec { grid-template-columns: 1fr 1fr; align-items: center; }
  .logo-sec img { height: 100%; aspect-ratio: auto; }
  .logo-sec > div { padding: 44px; }
  .cta-panel { padding: 44px; }
  .ftr-cols { grid-template-columns: 2fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .block-light:has(.gallery) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .block-light:has(.gallery) .crumbs, .block-light:has(.gallery) .hd, .block-light:has(.gallery) .grid { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .desk { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--grey); }
  .desk a:hover { color: var(--ink); }
  .desk a.menu-cta { background: var(--blue); color: #fff; height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; }
  .menu { display: none; }
  .hdr-in { height: 72px; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-top: 56px; }
  .hero h1 { font-size: 68px; }
  .hero-copy p { font-size: 18px; }
  .wall { height: 540px; flex-direction: row; gap: 12px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
  .wall .col { flex: 1; flex-direction: column; width: auto; animation-name: wallY; }
  .tile { width: 100%; height: auto; aspect-ratio: 1; }
  .tile b { display: block; position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.92); border-radius: 6px; padding: 3px 6px; width: max-content; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .block { padding-top: 72px; }
  .bar { display: none; }
  .ftr { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* language switcher */
.hdr-end { display: flex; align-items: center; gap: 4px; }
.lang { position: relative; }
.lang summary { list-style: none; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--grey); border-bottom: 1.5px solid var(--grey); transform: translateY(-2px) rotate(45deg); margin-left: 4px; }
.lang nav { position: absolute; right: 0; top: 44px; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px rgba(11,16,32,.12); padding: 6px; display: flex; flex-direction: column; z-index: 40; }
.lang nav a { padding: 10px 12px; border-radius: 8px; font-size: 14px; display: flex; justify-content: space-between; }
.lang nav a:hover { background: var(--soft); }
.lang nav a[aria-current] { background: var(--soft); font-weight: 600; }
.lang nav a[aria-current]::after { content: "✓"; color: var(--blue); }
:lang(zh-Hant) .lang summary, :lang(zh-Hans) .lang summary, :lang(ko) .lang summary, :lang(ja) .lang summary { font-size: 13px; }
:lang(zh-Hant) h1, :lang(zh-Hans) h1, :lang(ja) h1, :lang(ko) h1, :lang(zh-Hant) h2, :lang(zh-Hans) h2, :lang(ja) h2, :lang(ko) h2 { letter-spacing: 0; line-height: 1.25; }
:lang(zh-Hant) body, :lang(zh-Hans) body, :lang(ja) body { line-break: strict; }
:lang(ko) body { word-break: keep-all; }

/* guides */
.guides { display: grid; gap: 14px; margin-top: 18px; }
.guide-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.guide-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; background: var(--soft); }
.guide-card span { display: flex; flex-direction: column; gap: 6px; }
.guide-card b { font-family: var(--display); font-size: 18px; line-height: 1.25; }
.guide-card small { color: var(--grey); font-size: 14px; }
.guide-card em { font-style: normal; color: var(--blue); font-weight: 600; font-size: 14px; }
.article { max-width: 760px; }
.article .prose { margin: 18px 0 24px; }
.prose .lead { font-size: 18px; color: var(--ink); }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose p { margin: 0 0 12px; color: #2b3142; }
.prose ul { margin: 0 0 12px; padding-left: 20px; color: #2b3142; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; white-space: nowrap; }
@media (min-width: 760px) { .guides { grid-template-columns: 1fr 1fr; } .prose table { display: table; } }

.lang summary, .lang-name { gap: 8px; }
.lang-name { display: inline-flex; align-items: center; }
.flag { width: 20px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(11,16,32,.12); object-fit: cover; }
.flag.badge { display: inline-grid; place-items: center; background: var(--soft); color: var(--ink); font-size: 10px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 1px var(--line); }
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 20px; }
.clients h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.clients ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.clients li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.clients li span { color: var(--grey); text-align: right; white-space: nowrap; }
.clients li b { font-weight: 600; }
.showroom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 20px 0 12px; }
.showroom img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
@media (min-width: 900px) { .showroom { grid-template-columns: repeat(8, 1fr); gap: 8px; } }

/* partner hotels: two slow rows scrolling in opposite directions */
.marq { margin-top: 20px; display: grid; gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq-row { overflow: hidden; }
.marq-track { display: flex; gap: 10px; width: max-content; animation: wallX 60s linear infinite; }
.marq-row.rev .marq-track { animation-direction: reverse; animation-duration: 70s; }
.marq:hover .marq-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; font-size: 13.5px; }
.chip b { font-weight: 600; }
.chip small { color: var(--grey); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .marq-track { animation: none; flex-wrap: wrap; width: auto; } .marq-track .chip[aria-hidden] { display: none; } }
.badge { flex: none; width: 128px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 0; }
.badge img, .badge i { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; }
.badge i { display: grid; place-items: center; font: 600 24px var(--display); font-style: normal; color: var(--blue); background: var(--soft); letter-spacing: .02em; }
.badge b { font-size: 13px; font-weight: 600; line-height: 1.25; }
.badge small { color: var(--grey); font-size: 12px; }
.marq.gray .badge img { filter: grayscale(1) contrast(1.05); opacity: .85; transition: filter .2s, opacity .2s; }
.marq.gray .badge:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .marq-track .badge[aria-hidden] { display: none; } }

/* showroom photos: two scrolling rows, natural widths */
.gal { gap: 12px; }
.gal .marq-track { gap: 12px; animation-duration: 80s; }
.gal .rev .marq-track { animation-duration: 95s; }
.gal img { height: 220px; width: auto; border-radius: 14px; object-fit: cover; }
@media (min-width: 900px) { .gal img { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .gal img[aria-hidden] { display: none; } .gal .marq-track { overflow-x: auto; flex-wrap: nowrap; width: auto; } }

/* contact bar: three big buttons on phones */
.bar a { font-size: 14px; flex: 1 1 0; }
.bar a.q { flex: 1.5 1 0; }

/* desktop: products dropdown, current page, floating chat */
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: "▾"; font-size: 11px; }
.dd-menu { position: absolute; top: calc(100% + 12px); left: -14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(11,16,32,.12); padding: 8px; display: flex; flex-direction: column; min-width: 240px; z-index: 60; }
.dd-menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.dd-menu a:hover { background: var(--soft); }
.desk [aria-current="page"] { color: var(--ink); font-weight: 600; }
.fab { display: none; }

/* sheets (chat + quote): bottom sheet on phones, centred card on desktop */
html.sheet-open { overflow: hidden; }
.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -10px 40px rgba(11,16,32,.2); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(11,16,32,.45); }
.sheet form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sh-top { display: flex; align-items: center; gap: 12px; padding: 16px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.sh-top h2 { flex: 1; font-size: 21px; }
.sh-x { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 999px; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
.sh-body { overflow-y: auto; min-height: 0; flex: 1; padding: 16px max(20px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.sh-sec { display: flex; flex-direction: column; gap: 10px; }
.sh-sec h3, .sheet [data-qs-done] h3 { font-size: 17px; letter-spacing: -0.01em; }
.sh-p { color: var(--grey); font-size: 14px; }
.sh-p a { text-decoration: underline; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app { appearance: none; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 14px 4px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 14px/1.2 var(--body); cursor: pointer; }
.app:active { transform: scale(.98); }
.app-dot { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: #fff; font: 700 16px/1 var(--body); }
.app-dot.viber { background: #7360f2; } .app-dot.wa { background: #1faa55; } .app-dot.msg { background: #0a7cff; }
.sh-tip { background: #e8f6ee; color: #11683a; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.sh-or { display: flex; align-items: center; gap: 10px; color: var(--grey); font-size: 13px; text-align: center; }
.sh-or::before, .sh-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sh-two { display: grid; gap: 10px; }
.sh-two > * { min-width: 0; }
.sheet .field input { font-size: 16px; }
.sh-err { color: #c2231b; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sh-opt { color: var(--grey); font-weight: 400; font-size: 13px; font-family: var(--body); letter-spacing: 0; }
.sh-picked ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-picked li { background: var(--soft); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.sh-picked li::before { content: "✓ "; color: var(--blue); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { position: relative; cursor: pointer; }
.sh-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sh-chip > input + span { display: inline-flex; align-items: center; min-height: 40px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 13px; font-size: 14px; }
.sh-chip input:checked + span { border-color: var(--blue); background: #e8ebfb; color: var(--blue); font-weight: 600; }
.sh-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.sh-foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); }
.sh-foot .btn { height: 50px; padding: 0 26px; font-size: 15px; }
.sh-tick { width: 52px; height: 52px; border-radius: 999px; background: #e8f6ee; color: #11683a; display: grid; place-items: center; font-size: 26px; }
.sh-sum { margin: 0; white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 12px 14px; font: 14px/1.5 var(--body); }
#chat-sheet .sh-body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 560px) { .sh-two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) {
  .sheet { margin: auto; width: min(560px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 48px)); border-radius: 20px; box-shadow: 0 24px 60px rgba(11,16,32,.25); }
  #chat-sheet { width: min(440px, calc(100% - 32px)); }
}
@media (min-width: 1000px) {
  .fab { display: inline-flex; position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 15px/1 var(--body); box-shadow: 0 8px 24px rgba(11,16,32,.14); cursor: pointer; }
}
@media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: sheetUp .22s ease-out; } @keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } } }
.sh-tick.fail { background: #fdecea; color: #c2231b; font-weight: 700; }

/* contact icons: real app logos on their brand colour, phone in green */
.ic { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px; color: #fff; }
.ic svg { width: 20px; height: 20px; }
.ic-phone { background: #16a34a; } .ic-phone svg { width: 18px; height: 18px; }
.ic-viber { background: #7360f2; }
.ic-wa { background: #25d366; }
.ic-msg { background: linear-gradient(200deg, #00b2ff, #006aff); }
.ic.sm { width: 22px; height: 22px; } .ic.sm svg { width: 13px; height: 13px; }
.app .ic { width: 40px; height: 40px; } .app .ic svg { width: 22px; height: 22px; }
.bar-in { align-items: center; gap: 8px; }
.bar a.ib { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; }
.bar a.ib .ic { width: 44px; height: 44px; } .bar a.ib .ic svg { width: 23px; height: 23px; }
.bar a.q { flex: 1 1 auto; font-size: 15px; }
.fab { gap: 4px; padding-left: 12px; }
.fab .ic.sm:last-of-type { margin-right: 6px; }
.p-actions .btn.ghost .ic.sm { margin-right: -2px; }
.ic-link { display: inline-flex; align-items: center; gap: 8px; }
.ftr-apps { display: flex; gap: 10px; }

/* chat nudge bubble */
.nudge { position: fixed; z-index: 39; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(11,16,32,.18); padding: 6px 6px 6px 12px; max-width: calc(100% - 24px); }
.nudge-b { appearance: none; border: 0; background: none; display: flex; align-items: center; gap: 4px; font: 600 14px/1.3 var(--body); color: var(--ink); cursor: pointer; padding: 6px 0; text-align: left; }
.nudge-b span { margin-left: 6px; }
.nudge-x { appearance: none; border: 0; background: var(--soft); width: 30px; height: 30px; border-radius: 999px; font-size: 18px; line-height: 1; color: var(--grey); cursor: pointer; flex: none; }
@media (prefers-reduced-motion: no-preference) { .nudge:not([hidden]) { animation: sheetUp .3s ease-out; } }
@media (min-width: 1000px) { .nudge { right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 1000px) { .nudge .ic { display: none; } .nudge-b span { margin-left: 0; } }

/* sheets glide up from the bottom-right corner on desktop (no centred box, no dark page) */
@media (min-width: 760px) {
  .sheet { position: fixed; inset: auto calc(24px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) auto; margin: 0; width: 420px; max-width: calc(100% - 48px); max-height: min(720px, calc(100dvh - 48px)); transform-origin: 100% 100%; box-shadow: 0 20px 60px rgba(11,16,32,.22), 0 0 0 1px var(--line); }
  #chat-sheet { width: 380px; }
  .sheet::backdrop { background: transparent; }
  .sh-two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheetIn .32s cubic-bezier(.2,.8,.2,1); }
  .sheet[open]::backdrop { animation: fadeIn .32s ease-out; }
  @keyframes sheetIn { from { transform: translateY(32px) scale(.97); opacity: 0; } }
  @keyframes fadeIn { from { opacity: 0; } }
}

/* fan contact button, bottom-right where the right thumb rests */
.fan { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; z-index: 45; }
.fan { transition: opacity .2s; }
.fan.fan-off { opacity: 0; pointer-events: none; }
.fan-main { position: relative; z-index: 2; width: 60px; height: 60px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(4,30,180,.38); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.fan-main svg { width: 26px; height: 26px; }
.fan-main > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .2s, transform .25s; }
.fan-shut { opacity: 0; transform: rotate(-90deg); }
.fan.open .fan-open { opacity: 0; transform: rotate(90deg); }
.fan.open .fan-shut { opacity: 1; transform: none; }
.fan-i { position: absolute; z-index: 1; left: 6px; top: 6px; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translate(0, 0) scale(.4); transition: transform .3s cubic-bezier(.2,.9,.25,1.25) var(--d), opacity .2s var(--d); box-shadow: 0 6px 18px rgba(11,16,32,.22); }
.fan-i .ic { width: 48px; height: 48px; } .fan-i .ic svg { width: 24px; height: 24px; }
.fan.open .fan-i { opacity: 1; pointer-events: auto; transform: translate(var(--x), var(--y)) scale(1); }
.ic-quote { background: var(--blue); }
.fan-q small { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 12px/1 var(--body); color: var(--ink); background: var(--paper); border-radius: 6px; padding: 3px 6px; box-shadow: 0 2px 8px rgba(11,16,32,.12); }
.fan-scrim { position: fixed; inset: 0; z-index: 0; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.fan.open .fan-scrim { opacity: 1; pointer-events: auto; }
html.sheet-open .fan { display: none; }
.ftr { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.nudge { right: calc(88px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 104px); }
@media (min-width: 1000px) { .fan { right: calc(28px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } .nudge { right: calc(100px + env(safe-area-inset-right, 0px)); bottom: calc(34px + env(safe-area-inset-bottom, 0px)); } .ftr { padding-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .fan-i, .fan-main, .fan-main > span, .fan-scrim { transition: none; } }

/* quote sheet v3: four apps, request first, then how to reply */
.apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.app { font-size: 12.5px; padding: 12px 2px 10px; border-radius: 12px; }
.app .ic { width: 38px; height: 38px; } .app .ic svg { width: 21px; height: 21px; }
.ic-mail { background: #5b6275; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sheet .field textarea { min-height: 64px; }
.sh-via .sh-chip > input + span { gap: 7px; padding-left: 8px; }
.sh-chip input:checked + span .ic { box-shadow: 0 0 0 2px #fff; }
.sh-foot .btn svg { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100% - 32px); background: #11683a; color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(11,16,32,.25); }

/* Quote sheet, option A (11-14): one screen; tapping an app sends; leaving a number is the fallback. */
#quote-sheet [data-qs-main] { gap: 14px; }
#quote-sheet .sh-sec { gap: 8px; }
#quote-sheet .sh-sec h3 { font-size: 13.5px; font-weight: 600; color: var(--grey); letter-spacing: 0; }
#quote-sheet .sh-chips { gap: 7px; }
#quote-sheet .sh-chip > input + span { min-height: 36px; padding: 6px 12px; border-radius: 999px; }
#quote-sheet textarea { min-height: 44px; height: 44px; resize: vertical; }
.sh-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.sh-seg label { position: relative; cursor: pointer; border-left: 1.5px solid var(--line); }
.sh-seg label:first-child { border-left: 0; }
.sh-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sh-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: 6px 4px; font-size: 13.5px; line-height: 1.25; }
.sh-seg input:checked + span { background: #e8ebfb; color: var(--blue); font-weight: 600; }
.sh-seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }
/* Smaller app tiles everywhere (Steven: icons were too big). */
.apps { gap: 6px; }
.app { padding: 8px 2px 7px; gap: 4px; font-size: 12px; border-radius: 12px; }
.app .ic { width: 28px; height: 28px; } .app .ic svg { width: 16px; height: 16px; }
.sh-link { appearance: none; border: 0; background: none; padding: 2px 0; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 500 14px/1.35 var(--body); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; }
.sh-call { display: flex; flex-direction: column; gap: 6px; }
.sh-callrow { display: flex; gap: 8px; align-items: stretch; }
.sh-callrow .field { flex: 1 1 0; min-width: 0; position: relative; margin: 0; }
.sh-callrow .field .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.sh-callrow input { padding-left: 42px; height: 48px; width: 100%; }
.sh-callrow .btn { height: 48px; padding: 0 18px; white-space: nowrap; border-radius: 12px; }
.sh-fine { font-size: 12.5px; }
#quote-sheet [data-qs-main] > * { flex-shrink: 0; }
.sh-deskh { font-size: 13.5px; font-weight: 600; color: var(--grey); margin: 0 0 2px; }
/* Computers: "ask on Viber/WhatsApp" goes nowhere useful, the quote button covers it. */
@media (hover: hover) and (pointer: fine) { .p-actions [data-chat] { display: none; } }

/* ---------- Computers: quote list (11-14) ---------- */
.card-w { position: relative; display: flex; }
.card-w > .card { flex: 1; }
.hdr-tel, .qn { display: none; }
/* + Add to list: always visible, on phones too. */
.card-add { display: block; position: absolute; z-index: 2; top: 10px; right: 10px; min-height: 40px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 0 14px; font: 600 13px/1.2 var(--body); cursor: pointer; box-shadow: 0 2px 8px rgba(11,16,32,.1); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.card-add[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .fan, .nudge { display: none !important; }
  .qn:not([hidden]) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .hdr-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--grey); font-size: 12px; line-height: 1.2; margin-right: 6px; }
  .hdr-tel b { display: block; color: var(--ink); font-size: 13px; }
}
.qd { position: fixed; inset: 0 0 0 auto; margin: 0; width: 440px; max-width: 100vw; height: 100dvh; max-height: none; border: 0; border-left: 1px solid var(--line); padding: 0; background: var(--paper); color: var(--ink); transition: width .3s ease; overflow: hidden; }
.qd[open] { animation: qdIn .25s ease; }
@keyframes qdIn { from { transform: translateX(100%); } to { transform: none; } }
.qd::backdrop { background: rgba(10,14,40,.35); }
.qd.wide { width: min(920px, 100vw); }
.qd-f { display: flex; flex-direction: column; height: 100%; }
.qd-top { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.qd-top h2 { flex: 1; margin: 0; font-size: 18px; }
.qd-wbtn, .qd-sbtn { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 5px 10px; font: 500 12px/1.2 var(--body); color: var(--ink); cursor: pointer; }
.qd-body { flex: 1; min-height: 0; padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.qd-body > * { flex-shrink: 0; }
.qd-direct { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.qd-direct div { flex: 1; min-width: 0; }
.qd-direct b { display: block; font-size: 13px; }
.qd-direct span:not(.ic) { color: var(--grey); font-size: 12px; }
.qd-qrpop { position: absolute; right: 8px; top: calc(100% + 6px); z-index: 3; display: flex; gap: 10px; align-items: center; width: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px rgba(11,16,32,.15); font-size: 12px; color: var(--grey); }
.qd-lbl { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--grey); }
.qd-seeall { border: 0; background: none; color: var(--blue); font: 600 12px var(--body); margin-left: 6px; cursor: pointer; padding: 0; }
.qd-items { height: 176px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.qd-items .qd-empty { margin: auto; text-align: center; color: var(--grey); font-size: 13px; padding: 0 16px; }
.qd-it { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.qd-it .th { width: 36px; height: 36px; border-radius: 6px; background: var(--soft) center/cover; flex: none; }
.qd-it .nm { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qd-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.qd-qty button { border: 0; background: none; width: 26px; height: 28px; cursor: pointer; color: var(--ink); }
.qd-qty input { width: 52px; border: 0; background: none; text-align: center; height: 28px; font: 13px var(--body); color: var(--ink); }
.qd-rm { border: 0; background: none; color: var(--grey); font: 12px var(--body); cursor: pointer; padding: 0 2px; }
.qd-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.qd-tabs button { border: 0; background: none; padding: 8px 0; font: 13px var(--body); color: var(--grey); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.qd-tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.qd-pane { height: 150px; }
.qd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qd-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qd-l { font-size: 12px; font-weight: 600; color: var(--grey); }
.qd-in { width: 100%; height: 36px; border: 1px solid #cfd4e2; border-radius: 10px; padding: 0 11px; background: #fff; font: 13px var(--body); color: var(--ink); }
textarea.qd-in { height: 92px; padding: 8px 11px; resize: none; line-height: 1.45; }
.qd-in:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.qd-more { display: flex; flex-direction: column; gap: 8px; }
.qd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qd-dd { position: relative; }
.qd-ddb { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.qd-ddb .ph { color: #8a90a2; }
.qd-ddb i { font-style: normal; font-size: 11px; color: var(--ink); }
.qd-ddm { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 4; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 8px 24px rgba(11,16,32,.15); max-height: 240px; overflow: auto; }
.qd-ddm button { display: flex; width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 7px; font: 13px var(--body); color: var(--ink); cursor: pointer; }
.qd-ddm button:hover { background: var(--soft); }
.qd-ddm button[aria-selected="true"] { background: #eceef2; }
.qd-ddm button[aria-selected="true"]::after { content: "✓"; margin-left: auto; }
.qd-err { margin: 0; color: #c62828; font-size: 12px; }
.qd-foot { border-top: 1px solid var(--line); padding: 12px 20px 16px; }
.qd-foot .btn { width: 100%; height: 44px; justify-content: center; border-radius: 10px; }
.qd-foot .btn svg { width: 17px; height: 17px; }
.qd-foot p { margin: 8px 0 0; font-size: 12px; color: var(--grey); }
.qd-done h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.qd-done > p { margin: 0; color: var(--grey); font-size: 13px; }
.qd-code { font: 600 22px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; background: var(--soft); border-radius: 10px; padding: 12px; text-align: center; }
.qd-apps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.qd-scan { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.qd-scan b { display: block; font-size: 13px; }
.qd-scan span { color: var(--grey); font-size: 12px; }
/* Expanded: products on the left, details on the right. */
.qd.wide [data-qd-main] { display: grid; grid-template-columns: 1fr 380px; grid-template-rows: auto auto auto 1fr; column-gap: 20px; row-gap: 14px; align-content: start; }
.qd.wide .qd-direct { grid-column: 2; grid-row: 1; }
.qd.wide .qd-itemsw { grid-column: 1; grid-row: 1 / span 5; display: flex; flex-direction: column; min-height: 0; }
.qd.wide .qd-items { flex: 1; height: auto; }
.qd.wide .qd-tabs { grid-column: 2; grid-row: 2; }
.qd.wide .qd-pane { grid-column: 2; grid-row: 3; }
.qd.wide .qd-err, .qd.wide .hp { grid-column: 2; }
.qd.wide .qd-seeall { display: none; }

/* Phones and tablets: the same quote list as a bottom sheet (Steven 11-14: phones also need the 4 details + code). */
.qd-mob { display: none; }
@media (hover: none), (pointer: coarse) {
  .qd { inset: auto 0 0 0; width: 100%; max-width: none; height: min(680px, 92dvh); border: 0; border-radius: 16px 16px 0 0; }
  .qd[open] { animation: qdUp .25s ease; }
  .qd-wbtn, .qd-seeall, [data-qd-qr], .qd-qrpop, .qd-scan { display: none !important; }
  .qd-mob { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; text-decoration: none; font-size: 13px; }
  .qd-direct { gap: 8px; padding: 8px 10px; }
  .qd-direct div span { display: none; }
  .qd-top { padding: 14px 16px; }
  .qd-body { padding: 12px 16px; gap: 12px; }
  .qd-itemsw { flex: 1 1 auto !important; min-height: 96px; display: flex; flex-direction: column; }
  .qd-items { flex: 1; height: auto; min-height: 0; }
  .qd-pane { height: 180px; }
  .qd-in { height: 40px; font-size: 16px; }
  textarea.qd-in { height: 124px; font-size: 16px; line-height: 1.4; }
  .qd-qty input { font-size: 16px; width: 48px; }
  .qd-ddm { top: auto; bottom: calc(100% + 4px); }
  .qd-ddm button { padding: 10px 12px; font-size: 15px; }
  .qd-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .qd-foot p { display: none; }
  .qd-ddb .ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .qd-row > *, .qd-grid > * { min-width: 0; }
}
@media (hover: none) and (max-height: 760px), (pointer: coarse) and (max-height: 760px) {
  .qd-pane { height: 150px; }
  textarea.qd-in { height: 92px; }
  .qd-body { gap: 10px; }
}
@keyframes qdUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* factory videos */
.factory video, .logo-sec video, .ship video { display: block; width: 100%; max-width: 100%; background: var(--soft); object-fit: cover; }
.factory video { border-radius: var(--radius); aspect-ratio: 4 / 5; }
.factory .v-wide { display: none; }
.factory-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.factory-facts b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.factory-facts span { color: var(--grey); font-size: 13px; line-height: 1.4; }
.logo-sec video { aspect-ratio: 16 / 11; }
.ship { display: grid; gap: 18px; }
.ship > div { display: flex; flex-direction: column; gap: 10px; }
.ship video { border-radius: var(--radius); aspect-ratio: 4 / 5; max-height: 560px; }
@media (min-width: 760px) {
  .factory .v-wide { display: block; aspect-ratio: 16 / 9; }
  .factory .v-tall { display: none; }
  .logo-sec video { height: 100%; aspect-ratio: auto; }
  .ship { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 48px; }
}
.factory-hd { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) {
  .factory-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 20px; align-items: start; }
  .factory-sec .factory { grid-column: 2; grid-row: 1 / 3; }
  .factory-sec .factory-hd, .factory-sec .factory-facts { grid-column: 1; }
  .factory-sec .factory-facts { grid-template-columns: 1fr; gap: 14px; }
}

/* contact rows: whole row taps to call / chat / email / map */
.contact-cards .cc { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; gap: 12px; color: var(--ink); background: #fff; }
a.cc:active { background: var(--soft); }
a.cc:hover { border-color: #c9cfe3; }
.cc .ic-pin, .cc .ic-clock { background: var(--soft); color: var(--ink); }
.cc-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.cc-t small { color: var(--grey); font-size: 12px; }
.cc-t b { font-weight: 600; overflow-wrap: anywhere; }
.cc > .ic { opacity: 1; }
.cc:has(.cc-apps) > .ic { display: none; }
.cc-apps { display: flex; gap: 8px; flex: none; }
.cc-apps .ic { width: 40px; height: 40px; }
.cc-go { flex: none; font-style: normal; font-size: 22px; line-height: 1; color: var(--grey); }

/* bot check box: hidden unless Cloudflare asks for a click */
#ts-box { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1000; display: none; }
#ts-box.on { display: block; }

/* Number of products on the floating "My list" button. */
.fan-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5483b; color: #fff; border: 2px solid var(--paper); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }

/* Phone menu open: the page behind stays still, the menu scrolls. */
html.menu-open { overflow: hidden; }
html.menu-open body { overflow: hidden; }
html.menu-open .fan, html.menu-open .nudge { display: none !important; }

/* Chat nudge: a speech bubble that grows out of the chat button (tail points at it, vertically centred on it). */
.nudge { right: calc(94px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 18px; max-width: calc(100% - 110px); box-shadow: 0 8px 24px rgba(11,16,32,.16); }
.nudge::after { content: ""; position: absolute; right: -8px; bottom: 22px; width: 14px; height: 14px; background: var(--paper); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0 3px 0 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.nudge-b { gap: 6px; font-size: 13.5px; }
@media (min-width: 1000px) { .nudge { right: calc(100px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }
/* Catalogue and category pages: tighter vertical rhythm on phones (title, one line of intro, chips, first row of products). */
.page-sub { font-size: 15px; line-height: 1.45; }
.block-light:has(> .page-title) { padding-top: 20px; gap: 10px; }
.page-title { font-size: 28px; }
.block-light:has(> .page-title) .chips { margin-top: 4px; }
.block-light:has(> .page-title) .cat-sec { padding-top: 0; gap: 10px; }
.block-light:has(> .page-title) .hd { padding-top: 8px; }
@media (min-width: 700px) { .page-title { font-size: 32px; } .block-light:has(> .page-title) { gap: 14px; } }
.bed-custom { margin: 16px 0 0; padding: 14px 16px; background: var(--soft); border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.bed-custom b { display: block; color: var(--blue); margin-bottom: 2px; }
.unit-sw { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; }
.unit-sw button { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--grey); font: 500 14px var(--body); min-width: 52px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.unit-sw button.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 2px rgba(11, 16, 32, .12); }
.unit-sw button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.vars-fit td small.fin { display: block; font-size: 12px; color: #8a90a2; margin-top: 2px; }
.fit-note { margin: 8px 0 0; font-size: 13px; color: var(--grey); }
.measure { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.measure summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; min-height: 48px; box-sizing: border-box; font-weight: 600; color: var(--blue); -webkit-tap-highlight-color: transparent; }
.measure summary::-webkit-details-marker { display: none; }
.measure summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 400; }
.measure[open] summary::after { content: "\2212"; }
.measure-b { padding: 0 16px 16px; font-size: 15px; line-height: 1.55; }
.measure-b svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 4px; }
.measure-b ol { margin: 6px 0 0; padding-left: 20px; }
.measure-b li { margin: 4px 0; }
.measure-tip { margin: 10px 0 0; background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--grey); }
/* 11-27: list icon in the header (phones and tablets), red count */
.hdr-list { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; margin-right: 6px; border-radius: 12px; background: var(--soft); color: var(--blue); font: 600 13px var(--body); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.hdr-n:not([hidden]) { position: absolute; top: -7px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e5483b; color: #fff; border: 2px solid var(--paper); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-sizing: content-box; }
@media (max-width: 430px) { .lang .lang-lbl { display: none; } .lang summary { padding: 0 8px; } }
@media (min-width: 1000px) { .hdr-list { display: none; } }
/* 11-27: card "+ Add" button, in-stock tag, product bottom bar (phones), home "how to get a price" */
.card-w .card { padding-bottom: 52px; }
.card-w .card-add { position: absolute; z-index: 3; left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; background: var(--soft); color: var(--blue); font: 600 14px var(--body); padding: 0; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.card-w .card-add i { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; color: inherit; font: 600 18px/1 var(--body); font-style: normal; display: inline; }
.card-w .card-add.on { background: var(--blue); color: #fff; }
.card-w .card-add.on i { background: none; font-size: 15px; }
.card { position: relative; }
.stock { position: absolute; z-index: 1; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #e7f6ec; color: #17733a; font-size: 11.5px; font-weight: 700; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1fa34a; }
.stock-p { position: static; width: fit-content; margin: 0 0 10px; font-size: 13px; padding: 5px 10px; }
.p-bar { display: none; }
@media (max-width: 759px) {
  .p-bar { display: flex; gap: 8px; position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11,16,32,.06); }
  .p-bar .btn { height: 48px; margin: 0; flex: 1; justify-content: center; }
  .p-bar .btn.ghost { flex: 0 0 auto; padding: 0 14px; gap: 4px; }
  html.has-pbar main { padding-bottom: 76px; }
  html.has-pbar .fan, html.has-pbar .nudge, html.has-pbar .p-actions { display: none; } /* phones: the bottom bar is the only contact row on product pages */
  html.sheet-open .p-bar { display: none; }
}
.how { list-style: none; margin: 18px 0 0; padding: 14px 16px; background: var(--soft); border-radius: 16px; display: grid; gap: 10px; max-width: 520px; }
.how .how-h { font-weight: 700; font-size: 16px; color: var(--ink); }
.how li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink); }
.how li i { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.pb-t { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.pb-t small { font-size: 11.5px; font-weight: 500; opacity: .85; margin-top: 2px; }
.p-bar .pb-in { display: none; }
.p-bar .btn.on { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.p-bar .btn.on .pb-add { display: none; }
.p-bar .btn.on .pb-in { display: flex; }
.book { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); font-size: 14.5px; line-height: 1.55; }
.book b { display: block; color: var(--ink); font-size: 15px; }
.book p { margin: 4px 0 12px; color: var(--grey); }
.book .book-btn { margin: 0; height: 44px; }
/* 11-27: compact home hero */
.how-row { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; box-sizing: border-box; gap: 6px; padding: 10px 8px; margin-top: 16px; max-width: 520px; }
.how-row li { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; flex-direction: column; align-items: center; text-align: center; gap: 5px; font-size: 13px; line-height: 1.3; }
.how-row li i { flex: 0 0 auto; width: 26px; }
.hero-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; box-sizing: border-box; gap: 8px; margin-top: 14px; max-width: 520px; }
.hero-btns .btn { margin: 0; justify-content: center; padding: 0 10px; white-space: nowrap; }
@media (max-width: 430px) { .logo small { font-size: 8.5px; letter-spacing: .1em; } .logo img { height: 21px; } }
/* quote list in sight: header button, sticky bar, product strip */
.hdr-list.has { box-shadow: inset 0 0 0 1.5px var(--blue); }
.hdr-list.bump { animation: qbump .45s ease; }
@keyframes qbump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.qbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 8px 10px 8px 16px; box-sizing: border-box; border-radius: 16px; background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(4,30,180,.35); text-decoration: none; max-width: 520px; margin: 0 auto; }
.qbar b { display: block; font-size: 15px; }
.qbar small { display: block; font-size: 12px; opacity: .85; }
.qbar-go { flex: 0 0 auto; background: #fff; color: var(--blue); border-radius: 11px; padding: 10px 14px; font-weight: 800; font-size: 14px; }
.qbar[hidden], .p-strip[hidden] { display: none; }
html.has-qbar .fan, html.has-qbar .nudge { display: none; }
html.has-qbar main { padding-bottom: 84px; }
.p-strip { display: none; }
@media (max-width: 759px) {
  .p-strip:not([hidden]) { display: flex; position: fixed; z-index: 44; left: 0; right: 0; bottom: calc(69px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; align-items: center; padding: 10px 16px; background: #eef1fd; border-top: 1px solid #d9e0fb; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }
  html.has-pstrip main { padding-bottom: 118px; }
  html.sheet-open .p-strip { display: none; }
}
html.sheet-open .qbar { display: none; }
@media (max-width: 380px) {
  .logo img { height: 18px; } .logo small { font-size: 7.5px; letter-spacing: .06em; }
  .hdr-end { gap: 6px; }
  .lang summary { padding: 0 6px; } .lang summary svg, .lang summary::after { display: none; }
  .hdr-list { padding: 0 8px; margin-right: 4px; font-size: 12px; }
}
.p-bar .pb-goq { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: none; gap: 6px; flex: 1 1 0; }
.p-bar .pb-goq .pb-n { background: #fff; color: var(--blue); }
.p-bar .pb-goq[hidden], .p-bar [data-chat][hidden] { display: none; }
.pb-n:not([hidden]) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5483b; color: #fff; font-size: 12px; font-weight: 700; box-sizing: border-box; }
/* 11-27: duvet cover page, two paths (new insert by bed / already have an insert) */
.dc-new, .dc-have { margin-top: 20px; }
.dc-new > b, .dc-have > b { display: block; font-size: 16px; color: var(--ink); }
.dc-new > p, .dc-have > p { margin: 4px 0 10px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.dc-list { border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; background: #fff; }
.dc-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dc-row:last-child { border-bottom: 0; }
.dc-t { flex: 1; min-width: 0; }
.dc-t b { display: block; font-size: 15px; color: var(--ink); }
.dc-t small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--grey); }
.dc-add { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: 600 14px var(--body); cursor: pointer; }
.dc-add i { font-style: normal; margin-right: 2px; }
.dc-add:active { background: var(--soft); }
.dc-own { margin-top: 10px; width: 100%; justify-content: center; }

/* Visit-counting notice: bottom bar, one button, remembered in this browser. */
.notice { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; background: #0b1020; color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.notice[hidden] { display: none; }
.notice p { margin: 0; flex: 1; }
.notice a { color: #fff; text-decoration: underline; }
.notice button { border: 0; border-radius: 10px; background: #fff; color: #0b1020; font: 700 14px inherit; font-family: inherit; min-height: 44px; padding: 0 16px; cursor: pointer; }
/* 11-29 (T11): while the notice shows, everything pinned to the bottom moves up above it (site.js sets --nh = its height + gap). */
html.has-notice body { padding-bottom: var(--nh, 0px); }
html.has-notice .bar, html.has-notice .p-bar { bottom: var(--nh, 0px); }
html.has-notice .lp-foot { bottom: calc(var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }
html.has-notice .qbar { bottom: calc(12px + var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }
html.has-notice .p-strip:not([hidden]) { bottom: calc(69px + var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }
html.has-notice .fab { bottom: calc(24px + var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }
html.has-notice .fan { bottom: calc(18px + var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }
html.has-notice .nudge { bottom: calc(76px + var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }
html.has-notice .toast, html.has-notice #ts-box { bottom: calc(96px + var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }
html.has-notice .lp-toast { bottom: calc(110px + var(--nh, 0px) + env(safe-area-inset-bottom, 0px)); }

/* 11-28: task pages (the quote list) have no site footer; on phones the footer is short (no blurb, series in one line). */
.bare .ftr { display: none; }
@media (max-width: 699px) {
  .ftr { padding-top: 24px; }
  .ftr-desc { display: none; }
  .ftr { font-size: 13px; }
  .ftr p { margin-bottom: 4px; }
  .ftr-cols { gap: 16px; }
  .ftr-series p { display: inline-block; margin: 0 14px 6px 0; }
}

/* 11-28 catalogue: search box, and the category chips stay under the header while scrolling. */
.psearch { position: relative; }
.psearch input { width: 100%; box-sizing: border-box; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: 16px var(--body); color: var(--ink); background: #fff; -webkit-appearance: none; }
.psearch input:focus { outline: none; border-color: var(--blue); }
.psr { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(11,16,32,.12); padding: 6px; max-height: 60vh; overflow: auto; }
.psr[hidden] { display: none; }
.psr a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.psr a:active, .psr a:hover { background: #f2f4fb; }
.psr img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.psr p { margin: 8px; color: var(--grey); font-size: 14px; }
.block-light > .chips { position: sticky; top: 62px; z-index: 20; background: var(--paper); padding-block: 8px; margin-block: -8px; }
@media (min-width: 900px) { .block-light > .chips { top: 72px; } }
