:root {
  --ink: #102019;
  --muted: #68776f;
  --line: #d9e1db;
  --paper: #f5f7f3;
  --lime: #c8ff3d;
  --white: #fff;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, textarea, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }

header {
  height: 66px; padding: 0 max(22px, calc((100vw - 1180px) / 2));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(245,247,243,.92); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand-icon { width: 32px; height: 32px; padding: 6px; border-radius: 8px; display: block; position: relative; background: var(--ink); }
.brand-icon i { width: 7px; height: 7px; position: absolute; border: 2px solid var(--lime); border-radius: 2px; }
.brand-icon i:nth-child(1) { top: 6px; left: 6px; }
.brand-icon i:nth-child(2) { top: 6px; right: 6px; }
.brand-icon i:nth-child(3) { bottom: 6px; left: 6px; }
.brand-icon b { width: 3px; height: 3px; position: absolute; background: var(--lime); border-radius: 1px; }
.brand-icon b:nth-of-type(1) { right: 7px; bottom: 7px; }
.brand-icon b:nth-of-type(2) { right: 12px; bottom: 12px; }
.module-nav { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.module-nav button, .module-nav a { min-height: 32px; padding: 0 13px; display: flex; align-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; text-decoration: none; }
.module-nav button.active, .module-nav a.active { background: var(--ink); color: white; }
.privacy { color: #496052; background: #e8eee8; border-radius: 99px; padding: 8px 12px; font-size: 11px; }
.privacy { justify-self: end; }
.privacy::first-letter { color: #54a057; }

main { width: min(1180px, calc(100% - 44px)); margin: 58px auto 80px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.eyebrow { color: var(--muted); font: 700 10px ui-monospace, monospace; letter-spacing: .13em; }
h1 { max-width: 740px; margin: 10px 0 0; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.06em; }
.intro > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { min-height: 40px; padding: 0 16px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: #526159; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tabs button.active, .tabs a.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.format-note { margin: -2px 0 12px; padding: 10px 12px; border: 1px solid #d8dfbd; border-radius: 8px; background: #f6f9e8; color: #59604b; font-size: 10px; line-height: 1.45; }
.privacy-banner { margin: 0 0 12px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #d4e2d4; border-radius: 9px; background: #eaf3e8; color: #3f5b48; font-size: 11px; }
.privacy-banner strong { color: #284a35; white-space: nowrap; }

.workspace {
  min-height: 590px; display: grid; grid-template-columns: 1.28fr .72fr;
  overflow: hidden; background: var(--white); border: 1px solid #cbd5ce;
  border-radius: 16px; box-shadow: 0 22px 60px rgba(28,47,37,.09);
}
.editor { padding: 36px 40px; }
.tool-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.tool-heading > div { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #eeffc5; font-size: 20px; }
.tool-heading h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.025em; }
.tool-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.form { padding: 28px 0; display: grid; gap: 17px; }
.two { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .custom-grid label > span { color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .09em; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #cbd5ce;
  border-radius: 8px; outline: 0; background: #fbfcfa; color: var(--ink);
}
.field textarea { min-height: 132px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #687c6f; box-shadow: 0 0 0 3px #edf2ed; background: white; }
.example-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: -8px; color: var(--muted); font-size: 10px; }
.example-row button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--ink); font-size: 9px; font-weight: 700; }
.mode-switch { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #f5f7f4; }
.mode-switch button { flex: 1; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; }
.mode-switch button.active { background: var(--ink); color: white; }
.check { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 44px; color: #536159; font-size: 12px; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }

.customize { padding-top: 20px; border-top: 1px solid var(--line); }
.customize h3 { margin: 0 0 15px; font-size: 12px; }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.custom-grid label { min-height: 62px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; }
.custom-grid label div { display: flex; align-items: center; justify-content: space-between; }
.custom-grid input[type="color"] { width: 27px; height: 27px; padding: 0; border: 0; background: none; }
.custom-grid code { color: var(--muted); font-size: 10px; }
.logo-control { grid-column: 1 / -1; cursor: pointer; }
.logo-control input { display: none; }
.logo-control b { font-size: 11px; font-weight: 700; }

.preview { padding: 36px; display: flex; align-items: center; justify-content: center; background: #edf1ec; border-left: 1px solid var(--line); }
.preview-inner { width: 100%; text-align: center; }
.preview-label { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .11em; }
.preview-label i { padding: 4px 7px; border-radius: 99px; background: #dcead9; color: #32723c; font-style: normal; letter-spacing: 0; }
.qr-card { width: min(100%, 320px); margin: auto; padding: 16px; border-radius: 13px; background: white; box-shadow: 0 8px 24px rgba(28,47,37,.08); }
.qr-card canvas { width: 100% !important; height: auto !important; display: block; }
.barcode-card { min-height: 230px; display: flex; align-items: center; justify-content: center; overflow: auto; }
.barcode-card canvas { max-width: 100%; height: auto; display: block; }
.preview-note { color: var(--muted); font-size: 10px; margin: 14px 0; }
.preview-loading { min-height: 280px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 11px; }
.encoding-preview pre { min-height: 260px; max-height: 430px; margin: 0; padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; white-space: pre-wrap; word-break: break-word; }
.encoding-downloads { grid-template-columns: 1fr; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.downloads button, .copy, .primary {
  min-height: 40px; border: 1px solid #c6d0c9; border-radius: 7px; background: white;
  color: var(--ink); font-size: 10px; font-weight: 750;
}
.copy, .primary { width: 100%; margin-top: 8px; background: var(--ink); border-color: var(--ink); color: white; }
.primary { min-height: 46px; margin: 0; font-size: 12px; }
.secondary { min-height: 42px; padding: 0 14px; border: 1px solid #c6d0c9; border-radius: 7px; background: white; color: var(--ink); font-size: 10px; font-weight: 750; }
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.file-action { min-height: 42px; display: flex; align-items: center; justify-content: center; border: 1px dashed #a5b1a9; border-radius: 7px; background: #fafbf9; color: var(--ink); font-size: 10px; font-weight: 750; cursor: pointer; }
.file-action input { display: none; }
.file-action small { margin-left: 5px; color: var(--muted); font-weight: 400; }

.drop {
  min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; border: 1px dashed #97a69d; border-radius: 12px; background: #f8faf7; cursor: pointer;
}
.drop:hover { border-color: var(--ink); background: #f1ffd0; }
.drop input { display: none; }
.drop b:first-of-type { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: white; border: 1px solid var(--line); font-size: 21px; }
.drop strong { margin-top: 5px; font-size: 13px; }
.drop small { color: var(--muted); font-size: 10px; }
.camera-frame { min-height: 320px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #0b100d; }
.camera-frame video { width: 100%; height: 100%; min-height: 320px; display: block; object-fit: cover; }
.camera-guide { width: min(62%, 250px); aspect-ratio: 1; position: absolute; border: 2px solid var(--lime); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.22); pointer-events: none; }
.camera-guide::before, .camera-guide::after { content: ""; position: absolute; inset: 16%; border-top: 1px solid rgba(200,255,61,.42); border-bottom: 1px solid rgba(200,255,61,.42); }
.camera-guide::after { inset: 16% 49%; border: 0; border-left: 1px solid rgba(200,255,61,.42); }
.camera-actions { grid-template-columns: 1fr 1fr; }
.camera-status { margin: -7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.result, .error { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.result header { height: auto; padding: 0; border: 0; background: none; }
.result header span { padding: 5px 7px; border-radius: 99px; background: #e5f3e2; color: #34713c; font: 700 9px ui-monospace, monospace; }
.result header button { border: 0; background: none; font-size: 10px; }
.result pre { max-height: 150px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 12px 0; padding: 11px; border-radius: 6px; background: #f5f7f4; font: 11px/1.5 ui-monospace, monospace; text-align: left; }
.result a { color: var(--ink); font-size: 10px; font-weight: 700; }
.error { color: #8d3b30; background: #fff1ef; font-size: 11px; }
.scan-warning { margin: 10px 0 0; padding: 9px 10px; border-radius: 6px; background: #fff4d9; color: #7b5b18; font-size: 10px; line-height: 1.45; text-align: left; }
.scan-warning.danger { background: #fff0ed; color: #8d3b30; }
.domain-line { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfa; text-align: left; }
.domain-line span { display: block; color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .09em; }
.domain-line strong { display: block; margin-top: 4px; font-size: 12px; word-break: break-all; }
.validation { margin-top: -7px; padding: 10px 12px; border-radius: 7px; background: #edf5eb; color: #397044; font-size: 10px; line-height: 1.45; }
.validation.invalid { background: #fff1ef; color: #8d3b30; }
.validation strong { display: block; margin-bottom: 2px; font-size: 11px; }
.result-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.result-meta span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 9px; }
.check-output { min-height: 98px; padding: 18px; border-radius: 10px; background: var(--ink); color: white; }
.check-output span { display: block; color: #a8b8ae; font: 700 9px ui-monospace, monospace; letter-spacing: .1em; }
.check-output strong { display: block; margin-top: 8px; color: var(--lime); font-size: 30px; letter-spacing: .04em; }
.check-output p { margin: 6px 0 0; color: #c0cbc4; font-size: 10px; }

.batch-info { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.batch-info strong { color: var(--ink); font-size: 16px; }
.batch-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.batch-grid div { padding: 10px; overflow: hidden; background: white; border-radius: 9px; text-align: center; }
.batch-grid canvas { width: 86px !important; height: 86px !important; }
.batch-grid span { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.batch-help { margin: -8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.guide { margin-top: 18px; padding: 32px 36px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.guide-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.guide-head span { color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .12em; }
.guide-head h2 { margin: 8px 0 9px; font-size: 25px; letter-spacing: -.035em; }
.guide-head p { max-width: 760px; margin: 0; color: #526159; font-size: 12px; line-height: 1.65; }
.guide-private { min-width: 190px; padding: 11px 12px; border-radius: 8px; background: #eaf3e8; color: #3f5b48; font-size: 10px; line-height: 1.45; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 42px; padding-top: 26px; }
.guide-block h3 { margin: 0 0 12px; font-size: 12px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; margin: 9px 0; color: #536159; font-size: 11px; line-height: 1.5; counter-increment: step; }
.steps li::before { content: counter(step); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 9px; font-weight: 800; }
.guide-card { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; color: #536159; font-size: 10px; line-height: 1.55; }
.guide-card strong { display: block; margin-bottom: 4px; color: var(--ink); }
.faq-list details { padding: 9px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 700; }
.faq-list p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.related { display: flex; flex-wrap: wrap; gap: 7px; }
.related button, .related a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--ink); font-size: 9px; font-weight: 700; text-decoration: none; }
.tool-articles { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tool-articles h3 { margin-bottom: 8px; }
.tool-articles a { display: block; margin: 6px 0; color: #42594c; font-size: 10px; line-height: 1.45; text-decoration: none; }
.tool-articles a:hover { text-decoration: underline; }
.nojs-hint { margin: 28px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; color: var(--muted); font-size: 11px; line-height: 1.5; }
.site-catalog { margin-top: 18px; padding: 34px 36px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.catalog-head h2 { margin: 8px 0; font-size: 27px; letter-spacing: -.04em; }
.catalog-head p { margin: 0; color: var(--muted); font-size: 12px; }
.catalog-grid { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; gap: 18px; margin-top: 26px; }
.catalog-grid section { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; }
.catalog-grid h3, .guide-links h3 { margin: 0 0 12px; font-size: 13px; }
.catalog-links { display: grid; gap: 7px; }
.catalog-links a, .guide-links a { color: #3f5448; font-size: 10px; line-height: 1.4; text-decoration: none; }
.catalog-links a:hover, .guide-links a:hover { color: var(--ink); text-decoration: underline; }
.guide-links { margin-top: 18px; padding: 18px; display: flex; gap: 9px 18px; flex-wrap: wrap; border-radius: 10px; background: #eff4ed; }
.guide-links h3 { width: 100%; }
.guide-links .guide-all-link { margin-left: auto; color: var(--ink); font-weight: 800; }
.site-footer { width: min(1180px, calc(100% - 44px)); margin: -42px auto 28px; padding-top: 22px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer > a { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer > span { justify-self: end; }
.site-ad-rail { display: none; }
.site-ad-banner {
  width: min(1180px, calc(100% - 44px));
  min-height: 118px;
  margin: -52px auto 70px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}
.site-ad-banner > span, .site-ad-rail > span {
  display: block;
  margin: 0 12px 9px;
  color: #849087;
  font: 700 8px ui-monospace, monospace;
  letter-spacing: .12em;
  text-align: center;
}
.site-ad-banner .adsbygoogle { min-height: 82px; }
.site-ad-banner.ad-unavailable { display: none; }

.content-page main { max-width: 920px; }
.breadcrumbs { margin-bottom: 22px; color: var(--muted); font-size: 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.article-shell { padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 22px 60px rgba(28,47,37,.07); }
.article-shell h1 { max-width: 820px; font-size: clamp(36px, 6vw, 58px); }
.article-lead { margin: 20px 0 30px; color: #4f6257; font-size: 15px; line-height: 1.7; }
.article-meta { display: flex; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 10px; }
.article-body { color: #405248; font-size: 13px; line-height: 1.75; }
.article-body h2 { margin: 34px 0 10px; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.article-body h3 { margin: 24px 0 8px; color: var(--ink); font-size: 15px; }
.article-body p, .article-body ul, .article-body ol { margin: 10px 0; }
.article-body li { margin: 6px 0; }
.article-callout { margin: 24px 0; padding: 16px 18px; border-left: 3px solid var(--lime); border-radius: 0 8px 8px 0; background: #f3f8e8; }
.article-tools { margin-top: 34px; padding: 20px; border-radius: 10px; background: var(--ink); color: white; }
.article-tools h2 { margin-top: 0; color: white; }
.article-tools a { display: inline-flex; margin: 5px 7px 0 0; padding: 9px 11px; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 800; text-decoration: none; }
.article-primary-cta { display: inline-flex; min-height: 42px; margin-bottom: 8px; padding: 0 16px; align-items: center; border-radius: 7px; background: var(--ink); color: white; font-size: 11px; font-weight: 800; text-decoration: none; }
.related-articles { margin-top: 34px; padding-top: 25px; display: grid; gap: 9px; border-top: 1px solid var(--line); }
.related-articles h2 { margin: 0 0 5px; }
.related-articles a { color: #3f584a; font-size: 12px; font-weight: 700; text-decoration: none; }
.related-articles a:hover { text-decoration: underline; }
.blog-index main { width: min(1180px, calc(100% - 44px)); }
.blog-hero { padding: clamp(30px, 6vw, 70px); border-radius: 18px; background: var(--ink); color: white; }
.blog-hero .eyebrow { color: #aabdaf; }
.blog-hero h1 { max-width: 900px; }
.blog-hero > p { max-width: 680px; margin: 22px 0 0; color: #c3d0c7; font-size: 14px; line-height: 1.65; }
.blog-jumps { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.blog-jumps a { padding: 9px 12px; border-radius: 99px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 800; text-decoration: none; }
.blog-category { margin-top: 42px; scroll-margin-top: 20px; }
.blog-category-head { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 18px; }
.blog-category-head .eyebrow { grid-column: 1 / -1; }
.blog-category-head h2 { margin: 7px 0 0; font-size: 30px; letter-spacing: -.04em; }
.blog-category-head p { margin: 0; color: var(--muted); font-size: 11px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.blog-card { min-height: 260px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: white; }
.blog-card > span { color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.blog-card h2 { margin: 11px 0 9px; font-size: 18px; line-height: 1.18; letter-spacing: -.025em; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card p { margin: 0 0 20px; color: #526159; font-size: 11px; line-height: 1.6; }
.blog-card > div { margin-top: auto; display: flex; gap: 7px; }
.blog-card > div a { min-height: 36px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 9px; font-weight: 800; text-decoration: none; }
.blog-card .read-link { border: 1px solid var(--line); color: var(--ink); }
.blog-card .tool-link { background: var(--ink); color: white; }
.print-sheet { display: none; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  header { padding: 0 14px; }
  header { grid-template-columns: 1fr auto; }
  .module-nav { order: 3; grid-column: 1 / -1; position: absolute; top: 72px; left: 12px; right: 12px; }
  .module-nav button, .module-nav a { flex: 1; justify-content: center; padding: 0 7px; }
  .privacy { font-size: 0; }
  .privacy::after { content: "● Local only"; font-size: 10px; }
  main { width: min(100% - 20px, 620px); margin-top: 82px; }
  .intro { display: block; }
  h1 { font-size: clamp(34px, 11vw, 46px); line-height: 1.02; }
  .intro > p { margin-top: 15px; }
  .tabs { margin-right: -10px; padding-right: 10px; scroll-snap-type: x proximity; }
  .tabs button, .tabs a { min-height: 44px; scroll-snap-align: start; }
  .privacy-banner { align-items: start; flex-direction: column; gap: 4px; }
  .workspace { grid-template-columns: 1fr; }
  .editor { padding: 26px 20px; }
  .tool-heading { align-items: flex-start; padding-bottom: 22px; }
  .form { padding: 22px 0; }
  .field input, .field textarea, .field select { min-height: 48px; font-size: 16px; }
  .field textarea { min-height: 150px; }
  .example-row button, .related button, .related a { min-height: 36px; padding-inline: 12px; display: inline-flex; align-items: center; }
  .mode-switch button, .downloads button, .copy, .secondary, .primary { min-height: 46px; }
  .preview { min-height: 340px; padding: 26px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .encoding-preview pre { min-height: 220px; max-height: 55vh; }
  .drop { min-height: 220px; }
  .camera-frame, .camera-frame video { min-height: min(68vh, 430px); }
  .result pre { max-height: 240px; }
  .two { grid-template-columns: 1fr; }
  .guide { padding: 24px 20px; }
  .guide-head { display: block; }
  .guide-private { margin-top: 16px; }
  .guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .action-row { grid-template-columns: 1fr; }
  .camera-actions { grid-template-columns: 1fr 1fr; }
  .batch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: 1fr; }
  .site-catalog { padding: 24px 20px; }
  .site-footer { width: min(100% - 24px, 620px); margin-top: -40px; grid-template-columns: 1fr auto; }
  .site-footer > span { display: none; }
  .article-shell { padding: 26px 20px; }
  .blog-index main { width: min(100% - 20px, 620px); }
  .blog-hero { padding: 34px 22px; }
  .blog-category-head { display: block; }
  .blog-category-head p { margin-top: 7px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { min-height: 0; }
  .site-ad-banner { width: min(100% - 24px, 620px); margin-top: -52px; margin-bottom: 62px; }
}

@media (max-width: 420px) {
  .brand { font-size: 17px; }
  .brand-icon { width: 30px; height: 30px; }
  .module-nav button, .module-nav a { font-size: 10px; }
  main { margin-bottom: 44px; }
  .intro { margin-bottom: 24px; }
  .editor, .preview { padding-left: 16px; padding-right: 16px; }
  .custom-grid { grid-template-columns: 1fr; }
  .logo-control { grid-column: auto; }
  .downloads { gap: 5px; }
  .camera-guide { width: 68%; }
  .site-ad-banner { margin-top: -18px; margin-bottom: 58px; }
}

@media (min-width: 1440px) {
  body.ad-enabled > main,
  body.ad-enabled > .site-ad-banner,
  body.ad-enabled > .site-footer {
    width: min(1080px, calc(100% - 360px));
    margin-left: max(30px, calc((100vw - 1360px) / 2));
    margin-right: 0;
  }
  .site-ad-rail {
    width: 250px;
    min-height: 600px;
    max-height: calc(100vh - 116px);
    padding-top: 18px;
    display: block;
    position: absolute;
    z-index: 5;
    top: 88px;
    left: max(1140px, calc((100vw - 1360px) / 2 + 1110px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.72);
  }
  .site-ad-rail .adsbygoogle { min-height: 560px; }
  .site-ad-rail.ad-unavailable { display: none; }
  .site-ad-rail:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
}

@media print {
  .site-ad-rail, .site-ad-banner { display: none !important; }
  body > header, body > main { display: none !important; }
  .print-sheet { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8mm; padding: 8mm; background: white; }
  .print-label { min-height: 54mm; padding: 5mm; display: flex; flex-direction: column; align-items: center; justify-content: center; border: .25mm solid #bbb; break-inside: avoid; text-align: center; }
  .print-label canvas { max-width: 100%; max-height: 39mm; }
  .print-label span { margin-top: 3mm; color: #111; font: 9pt Arial, sans-serif; word-break: break-all; }
}
