/* ===== Mã Bưu Chính — phong cách "tem thư hiện đại" ===== */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d7;
  --card: #fffdf8;
  --ink: #1b2230;
  --ink-2: #4a5263;
  --ink-3: #7b8292;
  --line: #e2d9c6;
  --line-2: #d3c8b0;
  --red: #c8372d;
  --red-ink: #a72a21;
  --red-soft: #f8e1dc;
  --blue: #1f4e8c;
  --blue-soft: #dfe8f5;
  --focus: #1f4e8c;
  --hl: #ffe08a;
  --shadow: 0 1px 2px rgba(27, 34, 48, .06), 0 8px 24px -12px rgba(27, 34, 48, .18);
  --r1: #2f6f9f; --r2: #3d8b6e; --r3: #b07a24; --r4: #b8473b; --r5: #7a4fa3; --r6: #4b8a2f;
  --radius: 14px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171e; --paper-2: #1a1e27; --card: #1e232d; --ink: #eef0f4; --ink-2: #b9bfcc; --ink-3: #8a91a0;
    --line: #2c3240; --line-2: #3a4152; --red: #ef6a5c; --red-ink: #ff8a7d; --red-soft: #3a2220; --blue: #7fa8e6;
    --blue-soft: #1f2b40; --focus: #9cc0ff; --hl: #6b5512; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    --r1: #5b9bd0; --r2: #5cb592; --r3: #d6a24a; --r4: #e07466; --r5: #a885d0; --r6: #7fb85e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14171e; --paper-2: #1a1e27; --card: #1e232d; --ink: #eef0f4; --ink-2: #b9bfcc; --ink-3: #8a91a0;
  --line: #2c3240; --line-2: #3a4152; --red: #ef6a5c; --red-ink: #ff8a7d; --red-soft: #3a2220; --blue: #7fa8e6;
  --blue-soft: #1f2b40; --focus: #9cc0ff; --hl: #6b5512; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  --r1: #5b9bd0; --r2: #5cb592; --r3: #d6a24a; --r4: #e07466; --r5: #a885d0; --r6: #7fb85e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0 0 .5rem; font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 2.5rem 0 1rem; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.code { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 1px; }
kbd { font-family: var(--mono); font-size: .8em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; background: var(--card); }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-3); letter-spacing: .02em; margin-top: -3px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a, .icon-btn { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 8px 10px; border-radius: 10px; border: 0; background: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red-ink); }
.top-search { flex: 1; max-width: 360px; margin-left: 12px; }
.top-search .field { height: 40px; font-size: .95rem; }
@media (max-width: 860px) { .nav .hide-sm { display: none; } }
@media (max-width: 640px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .brand small { display: none; }
}

/* ---- Search field ---- */
.search { position: relative; }
.field {
  width: 100%; height: 64px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--card);
  color: var(--ink); font: inherit; font-size: 1.15rem; padding: 0 52px 0 52px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent), var(--shadow); }
.search .s-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.top-search .s-icon { left: 12px; }
.top-search .field { padding: 0 12px 0 38px; border-radius: 12px; border-width: 1.5px; box-shadow: none; }
.search .kbd-hint { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .8rem; }
.search .clear-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: var(--paper-2); color: var(--ink-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: none; font-size: 18px; line-height: 1; }
.search.has-value .clear-btn { display: block; }
.search.has-value .kbd-hint { display: none; }

.listbox { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; margin: 0; list-style: none; z-index: 30; max-height: 70vh; overflow: auto; display: none; }
.listbox.open { display: block; }
.listbox li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.listbox li[aria-selected="true"], .listbox li:hover { background: var(--paper-2); }
.listbox .lb-code { font-family: var(--mono); font-weight: 600; color: var(--red-ink); min-width: 56px; }
.listbox .lb-sub { color: var(--ink-3); font-size: .82rem; display: block; line-height: 1.3; }
.listbox .lb-empty { color: var(--ink-3); cursor: default; }
.listbox .lb-note { cursor: default; font-size: .85rem; color: var(--ink); background: var(--blue-soft); border-radius: 8px; margin: 2px 2px 6px; }
/* Chrome/Safari tự vẽ nút ✕ cho input type=search → trùng với nút xoá của site */
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

/* ---- Hero ---- */
.hero { padding: 48px 0 24px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--red-ink); background: var(--red-soft); padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 640px; margin-bottom: 24px; }
.hero .search { max-width: 760px; }
.postmark { position: absolute; right: -10px; top: -18px; width: 210px; height: 210px; opacity: .9; pointer-events: none; color: var(--red); }
@media (max-width: 900px) { .postmark { display: none; } }
.hero-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; max-width: 760px; }
.chip, .btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; min-height: 40px;
}
.chip:hover, .btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
select.chip { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.examples { color: var(--ink-3); font-size: .88rem; }
.examples button { border: 0; background: none; color: var(--blue); font: inherit; cursor: pointer; padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Result cards ---- */
.results-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; color: var(--ink-2); font-size: .92rem; min-height: 1.5em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px;
  display: flex; flex-direction: column; gap: 2px; transition: transform .12s, box-shadow .12s, border-color .12s; min-width: 0;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-1px); }
.card .c-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copy-code {
  font-family: var(--mono); font-weight: 600; font-size: 1.65rem; color: var(--red-ink); background: none; border: 0; padding: 0; cursor: copy;
  letter-spacing: .06em; line-height: 1.2; display: inline-flex; align-items: center; gap: 8px; border-radius: 6px;
}
.copy-code:hover { color: var(--red); }
.copy-code .ic { opacity: 0; transition: opacity .12s; color: var(--ink-3); }
.card:hover .copy-code .ic, .copy-code:focus-visible .ic { opacity: 1; }
@media (hover: none) { .copy-code .ic { opacity: .7; } }
.card .c-name { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.card .c-name::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .copy-code { position: relative; z-index: 1; }
.card .c-prov { color: var(--ink-3); font-size: .85rem; }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.tag.t-xa { background: color-mix(in srgb, var(--r2) 16%, transparent); color: var(--r2); }
.tag.t-dac-khu { background: var(--red-soft); color: var(--red-ink); }
.more-row { text-align: center; margin: 18px 0 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.cards > .empty, .cards > .notice { grid-column: 1 / -1; }
.empty p { margin: 0 0 10px; }
.empty p:last-child { margin: 0; }
.empty-ex { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---- Sections ---- */
.section { padding-top: 8px; padding-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.region { margin-bottom: 22px; }
.region h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .95rem; }
.region h3 .dot { width: 12px; height: 12px; border-radius: 4px; }
.prov-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0; }
.prov-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.prov-list a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.prov-list a span { color: var(--ink-3); font-weight: 500; font-size: .82rem; }

.prov-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 36px; align-items: start; }
.prov-aside { position: sticky; top: 84px; }
.prov-aside .legend { display: none; }
@media (max-width: 860px) { .prov-layout { grid-template-columns: 1fr; } .prov-aside { display: none; } }

/* ---- Tile map ---- */
.tilemap { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.tilemap a rect { transition: transform .12s, filter .12s; transform-box: fill-box; transform-origin: center; }
.tilemap a:hover rect, .tilemap a:focus rect { filter: brightness(1.12); transform: scale(1.06); }
.tilemap a:focus { outline: none; }
.tilemap a:focus-visible rect { stroke: var(--focus); stroke-width: 3; }
.tilemap text { font-family: var(--font); font-size: 10.5px; font-weight: 700; fill: #fff; pointer-events: none; }
.tilemap .current rect { stroke: var(--ink); stroke-width: 3; }
.tilemap .dim rect { opacity: .35; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-2); margin-top: 12px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---- Feature tiles ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: block; }
.feature:hover { box-shadow: var(--shadow); color: var(--ink); }
.feature .f-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-ink); margin-bottom: 10px; }
.feature b { display: block; margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: .92rem; margin: 0; }

/* ---- Prose / FAQ ---- */
.prose { max-width: 760px; }
.prose li { margin-bottom: .4rem; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; max-width: 760px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink-3); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-bottom: 14px; color: var(--ink-2); }

/* ---- Breadcrumb ---- */
.crumbs { font-size: .88rem; color: var(--ink-3); margin: 22px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red-ink); text-decoration: underline; }

/* ---- Stamp (ward page) ---- */
.ward-head { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 720px) { .ward-head { grid-template-columns: 1fr; } }
/* Răng cưa: các chấm màu nền giấy nằm trên mép; phần giữa bị .stamp-inner che */
.stamp {
  padding: 12px; text-align: center; min-width: 280px; position: relative;
  background: radial-gradient(circle, var(--paper) 5px, transparent 5.6px) -9px -9px / 18px 18px, var(--card);
  box-shadow: 0 10px 24px -14px rgba(27, 34, 48, .35);
}
.stamp-inner { background: var(--card); border: 2px solid var(--red); border-radius: 6px; padding: 14px 18px 12px; }
.stamp .s-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.stamp .s-code { font-family: var(--mono); font-weight: 600; font-size: clamp(2.8rem, 9vw, 3.8rem); line-height: 1.1; letter-spacing: .08em; color: var(--ink); margin: 4px 0 10px; }
.stamp .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stamp .btn { min-height: 36px; padding: 5px 12px; font-size: .85rem; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.envelope { font-family: var(--font); line-height: 1.75; border-left: 4px solid var(--red); padding-left: 16px; }
.envelope .z { font-family: var(--mono); font-weight: 600; background: var(--hl); padding: 0 4px; border-radius: 4px; }
.form-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.form-table th, .form-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.form-table th { color: var(--ink-2); font-weight: 600; width: 34%; }
.form-table td { font-weight: 600; }
.form-table tr:last-child th, .form-table tr:last-child td { border-bottom: 0; }
.mini-copy { border: 0; background: var(--paper-2); color: var(--ink-2); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; margin-left: 8px; }
.mini-copy:hover { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 120px; }
.stat b { display: block; font-size: 1.35rem; font-family: var(--mono); }
.stat span { font-size: .8rem; color: var(--ink-3); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.letters a { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .85rem; }
.letters a:hover { border-color: var(--red); color: var(--red-ink); }
.letter-h { font-family: var(--mono); color: var(--red-ink); font-size: 1rem; margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; scroll-margin-top: 80px; }
.filter-local { max-width: 420px; margin-bottom: 8px; }
.filter-local .field { height: 46px; font-size: 1rem; border-radius: 12px; padding-left: 42px; box-shadow: none; }
.filter-local .s-icon { left: 14px; }

[hidden] { display: none !important; }

/* ---- Batch tool ---- */
.drop { display: block; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 28px 16px; text-align: center; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
textarea.ta { width: 100%; min-height: 170px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: .95rem; padding: 12px 14px; resize: vertical; }
textarea.ta:focus { outline: none; border-color: var(--blue); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 520px; background: var(--card); }
.data-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.data-table th { position: sticky; top: 0; background: var(--paper-2); z-index: 1; font-weight: 700; }
.data-table td.new { background: color-mix(in srgb, var(--hl) 25%, transparent); font-weight: 600; }
.conf { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.conf.high { background: color-mix(in srgb, var(--r2) 18%, transparent); color: var(--r2); }
.conf.mid { background: color-mix(in srgb, var(--r3) 20%, transparent); color: var(--r3); }
.conf.low { background: var(--red-soft); color: var(--red-ink); }
.row-flex { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice { background: var(--blue-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }

/* ---- Toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 50; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Footer ---- */
.foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: .88rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot a { color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---- Điện thoại: đưa kết quả lên màn hình đầu ---- */
@media (max-width: 640px) {
  .hide-sm, .geo-note, .postmark { display: none !important; }
  .hero { padding: 18px 0 4px; }
  .hero-eyebrow { font-size: .7rem; padding: 3px 10px; margin-bottom: 10px; }
  .hero .lead { font-size: .98rem; margin-bottom: 14px; }
  .field { height: 56px; font-size: 1.05rem; padding-left: 46px; }
  .search .s-icon { left: 15px; }
  .hero-tools { gap: 8px; }
  .hero-tools .chip { font-size: .85rem; padding-top: 6px; padding-bottom: 6px; min-height: 38px; }
  .hero-tools button.chip { padding-left: 12px; padding-right: 12px; }
  .results-meta { margin-top: 16px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 12px; }
  .copy-code { font-size: 1.35rem; }
  .card .tag { display: none; }
  h2 { margin-top: 2rem; }
}
@media (max-width: 360px) { .cards { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .hero-tools, .stamp .actions, .mini-copy { display: none !important; } body { background: #fff; } }
