/* ===== H1 fonts: tiny self-hosted subsets (Figtree 650 = 9 KB, Instrument Serif Italic = 12 KB), preloaded in <head> ===== */
@font-face{font-family:"H1 Sans";src:url(../fonts/h1-sans.woff2) format("woff2");font-weight:650;font-style:normal;font-display:swap}
@font-face{font-family:"H1 Serif";src:url(../fonts/h1-serif-it.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
/* metric-matched fallbacks: when the web font swaps in, the heading box barely changes (layout shift ~0) */
@font-face{font-family:"H1 Sans Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold");font-weight:650;size-adjust:94.3%;ascent-override:100.7%;descent-override:26.5%;line-gap-override:0%}
@font-face{font-family:"H1 Serif Fallback";src:local("Times New Roman Italic"),local("TimesNewRomanPS-ItalicMT"),local("Liberation Serif Italic");font-style:italic;size-adjust:85.4%;ascent-override:115.9%;descent-override:36.3%;line-gap-override:0%}
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --text: #17181c;
  --text-soft: #4b4f59;
  --text-faint: #8a8f9a;
  --border: #e4e6eb;
  --green: #008c45;
  --red: #cd212a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 17, 20, .05), 0 8px 24px rgba(16, 17, 20, .06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* night mode */
html[data-theme="dark"] {
  --bg: #111214;
  --bg-soft: #17181b;
  --surface: #1c1e22;
  --text: #e9eaee;
  --text-soft: #b3b7c0;
  --text-faint: #7d828c;
  --border: #2d3037;
  --green: #2fae6b;
  --red: #e05258;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
:root { color-scheme: light; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.container-narrow.seo-content { max-width: 1080px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: .5px;
  background: var(--text); color: var(--bg); border-radius: var(--radius-sm);
  width: 34px; height: 34px; display: grid; place-items: center;
}
.brand-name { font-size: 16px; font-weight: 700; line-height: 1.15; }
.brand-name em { font-style: normal; display: block; font-weight: 400; color: var(--text-soft); font-size: 12px; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-size: 14px; transition: color .15s ease; }
.site-nav a:hover { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  background: transparent; color: var(--text-soft);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 560px) { .site-nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--green); background: rgba(0, 140, 69, .08);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-family: "H1 Sans", "H1 Sans Fallback", sans-serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.5px; font-weight: 700; text-align:center; text-wrap: balance; min-height: 1.12em;  } /* min-height reserves the line box -> no layout shift */
.hero-sub { margin-top: 16px; max-width: 720px; color: var(--text); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 20px; list-style: none; margin-top: 28px; flex-wrap: wrap; }
.hero-points li { font-size: 13px; color: var(--text-faint); padding-left: 18px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none;
  padding: 12px 40px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { width: 60%; background: radial-gradient(#35BA0F, #039c00); color: var(--bg); }
.btn-primary:hover { background: #fff; color: #039c03; border-color: #039c00; box-shadow: 0 6px 16px rgba(16, 17, 20, .18); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-small { padding: 7px 14px; font-size: 13px; background: transparent; color: var(--text); border-color: var(--border); }
.btn-small:hover { border-color: var(--text); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Cards & tool ---------- */
.tool-section { padding: 48px 0 64px; }
.tool-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; letter-spacing: -.2px; }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 34px; padding: 0 12px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8f9a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.field input:focus, .field select:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(4, 230, 91, 0.08); }
.field input.invalid, .field select.invalid { border-color: var(--red); }
.date-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.1fr; gap: 8px; }

/* round gender selector */
.gender-round { display: flex; gap: 24px; padding: 2px 0; }
.g-option { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.g-option input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.g-circle {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 600; letter-spacing: .5px;
  color: var(--text-soft); background: transparent;
  border: 1.5px solid var(--border);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.g-option:hover .g-circle { border-color: var(--text-faint); }
.g-option input:checked + .g-circle { background: var(--green); color: var(--bg); border-color: var(--text); }
.g-option input:active + .g-circle { transform: scale(.94); }
.g-option input:focus-visible + .g-circle { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 35%, transparent); }
.g-caption { font-size: 12px; color: var(--text-faint); }
.g-option input:checked ~ .g-caption { color: var(--text-soft); }

.field-error { display: block; min-height: 18px; margin-top: 4px; font-size: 12px; color: var(--red); }
.form-error {
  background: rgba(205, 33, 42, .07); color: var(--red);
  font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm); margin: 4px 0 10px;
}
.form-hint { margin-top: 12px; font-size: 12px; color: var(--text-faint); text-align: center; }
.form-hint.local { color: #8a6d1a; }

/* Result */
.tool-result { position: sticky; top: 84px; }
@media (max-width: 860px) { .tool-result { position: static; } }
.result-empty {
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 32px 20px; text-align: center; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px;
}
.result-empty strong { color: var(--text-soft); }

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; flex-wrap: wrap;
}
.cf-code {
  font-family: var(--font-mono); font-size: clamp(18px, 3vw, 24px); font-weight: 700;
  letter-spacing: 2px; color: var(--text);
}
.breakdown { list-style: none; margin-top: 18px; }
.breakdown li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-size: 14px; color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.breakdown li:last-child { border-bottom: none; }
.breakdown li i { font-style: normal; color: var(--text-faint); font-size: 12px; }
.breakdown code { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: 1.5px; color: var(--text); }
.result-note { margin-top: 14px; font-size: 12px; color: var(--text-faint); }

/* ---------- Sections ---------- */
.section-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.4px; text-align: center; }
.section-sub { text-align: center; color: var(--text-soft); margin: 8px auto 0; max-width: 560px; }

.how-section { padding: 64px 0; background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step-number {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--green);
  background: rgba(0, 140, 69, .1); border-radius: 6px; padding: 3px 8px; display: inline-block; margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-soft); }

.faq-section { padding: 64px 0 72px; }
.faq-section .container-narrow { max-width: 1080px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-top: 12px; background: var(--surface); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--text-faint); flex: none;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; font-size: 14px; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-inner p { font-size: 13px; color: var(--text-soft); }
.footer-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

/* ===== v2: reference UI ===== */
.header-inner{height:64px;gap:16px}
.brand{font-weight:700;font-size:16px;letter-spacing:-.2px}
.site-nav{display:flex;align-items:center;gap:26px;margin:0 auto}
.site-nav>a,.more>button{color:var(--text-soft);font:inherit;font-size:14px;background:none;border:0;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px;padding:8px 0}
.site-nav>a:hover,.more>button:hover{color:var(--text)}
.more{position:relative}
.more-menu{position:absolute;top:calc(100% + 8px);right:-12px;min-width:210px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:6px;display:none}
.more.open .more-menu{display:block}
.more-menu a{display:block;padding:9px 12px;border-radius:var(--radius-sm);color:var(--text-soft);text-decoration:none;font-size:14px}
.more-menu a:hover{background:var(--bg-soft);color:var(--text)}
.icon-btn{width:38px;height:38px;display:grid;place-items:center;background:var(--surface);color:var(--text-soft);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer}
.icon-btn:hover{color:var(--text);border-color:var(--text-faint)}
.icon-sun{display:none}.icon-moon{display:block}html[data-theme=dark] .icon-sun{display:block}html[data-theme=dark] .icon-moon{display:none}
.menu-btn{display:none}.header-right{display:flex;gap:8px}
@media(max-width:820px){
 .menu-btn{display:grid}
 .site-nav{display:none;position:absolute;top:64px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--bg);border-bottom:1px solid var(--border);padding:8px 20px 16px;margin:0}
 .site-nav.open{display:flex}.site-nav>a,.more>button{padding:12px 0;width:100%}
 .more-menu{position:static;display:block;box-shadow:none;border:0;padding:0 0 0 12px;min-width:0}
}
/* hero */
.hero{position:relative;overflow:hidden;padding:56px 0 48px}
.hero>.container{position:relative;z-index:1}
.container-tool{max-width:760px}
.hero-head{text-align:center;margin-bottom:28px}
.hero-sub{margin:14px auto 0}
/* removed entrance animations on h1 / hero-sub / tool-form: they hid the LCP element (slower LCP) */
@keyframes rise{from{opacity:0;transform:translateY(14px)}}
@media(prefers-reduced-motion:reduce){.tool-result.show{animation:none!important}}
/* form */
.tool-form{padding:28px;margin:0 auto}
.field{margin-bottom:18px;border:0;min-width:0}
.field label,.field legend{display:block;font-size:14px;font-weight:600;color:var(--text);margin-bottom:8px;padding:0}
.field input[type=text],.field input[type=date]{height:48px;border-radius:10px}
.field input[type=date]{padding-right:10px;color-scheme:inherit}
.field input::placeholder{color:var(--text-faint)}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seg label{margin:0;cursor:pointer;position:relative}
.seg input{position:absolute;opacity:0}
.seg span{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border:1px solid var(--border);border-radius:10px;font-size:15px;font-weight:500;color:var(--text-soft);transition:border-color .15s,color .15s}
.seg span::before{content:"";width:14px;height:14px;border-radius:50%;border:1.5px solid var(--text-faint)}
.seg input:checked+span{border-color:var(--text);color:var(--text);font-weight:600}
.seg input:checked+span::before{border:4px solid var(--text)}
.seg input:focus-visible+span{box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 35%,transparent)}
.field-error{min-height:0}.field-error:empty{display:none}
.form-actions{display:flex;gap:12px;margin-top:6px;flex-wrap:wrap}
.form-actions .btn{border-radius:999px;padding:13px 24px}
.btn:focus-visible,.icon-btn:focus-visible,.site-nav a:focus-visible,.more>button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
/* result */
.tool-result{position:static;margin:20px auto 0}
.tool-result.show{animation:rise .45s ease both}
.tool-links{margin:22px auto 0;text-align:center;font-size:15px;color:var(--text-soft);max-width:640px}
.tool-links a,.prose a,.faq-item a{color:var(--text);font-weight:600;text-underline-offset:3px}
/* pages */
.page{padding:56px 0 72px}.prose h1{font-size:clamp(28px,4vw,38px);letter-spacing:-.5px;margin-bottom:12px}
.prose h2{font-size:19px;margin:28px 0 8px}.prose p,.prose li{color:var(--text-soft);font-size:16px;margin-bottom:10px}
.prose .lead{font-size:18px}.prose .note{font-size:13px;color:var(--text-faint)}.prose ul{padding-left:20px}
.contact-card{margin:20px 0}.contact-card h2:first-child{margin-top:0}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a{font-size:13px;color:var(--text-soft);text-decoration:none}.footer-links a:hover{color:var(--text)}
.how-section,.faq-section{scroll-margin-top:64px}

/* Updated premium tool styling */
.tool-form{border-radius:22px;overflow:hidden;padding:0 0 10px;}
.tool-form:before{content:"Calcolo Codice Fiscale";display:block;padding:18px 28px;background:linear-gradient(135deg,#35BA0F,#039C00);color:#fff;font-size:20px;font-weight:700;text-align:center;}
.tool-form > *{margin-left:28px;margin-right:28px;}
.tool-form > .form-row:first-of-type{margin-top:28px;}
.tool-ad{height:100%;max-width:728px;margin:0 auto;text-align:center;border:1px dashed var(--border);display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--text-faint);}
/* AD SPACE: 88px reserved above the buttons (ad code is commented out in index.html) */
.tool-ad-space{height:88px;width:100%;margin:0 auto;overflow:hidden}
/* buttons are outside the card border */
.container-tool>.form-actions{justify-content:center;margin:0 auto}
@media(max-width:560px){.site-nav{display:none;position:absolute;top:60px;left:20px;right:20px;background:var(--surface);padding:18px;border:1px solid var(--border);border-radius:16px;}.site-nav.open{display:flex;flex-direction:column;}.more-menu{display:none!important}.more.open .more-menu{display:flex!important;flex-direction:column;}.hero h1{text-align:center;font-size:30px;min-height:2.24em}.tool-form > *{margin-left:18px;margin-right:18px}}

/* SEO content area (demo) */
.seo-content h3{font-size:19px;font-weight:600;letter-spacing:-.2px;margin:30px 0 8px}
.seo-content p,.seo-content li{color:var(--text);font-size:16px;line-height:1.75;margin-bottom:12px}
.seo-content ul{padding-left:22px;margin-bottom:12px}
.seo-content a{color:var(--text);font-weight:600;text-underline-offset:3px}
.seo-content .section-sub{margin-bottom:8px}
.seo-content table{width:100%;margin:20px 0 28px;border:1px solid var(--border);border-radius:var(--radius);border-spacing:0;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.seo-content th,.seo-content td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border);font-size:15px;line-height:1.6}
.seo-content thead th{background:var(--bg-soft);color:var(--text);font-weight:700}
.seo-content tbody tr:last-child th,.seo-content tbody tr:last-child td{border-bottom:0}
.seo-content tbody tr:nth-child(even){background:var(--bg-soft)}
.seo-content tbody tr:hover{background:color-mix(in srgb,var(--green) 5%,var(--surface))}
@media(max-width:560px){.seo-content table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.seo-content th,.seo-content td{padding:10px 12px;font-size:14px}}

/* ===== v4: hero background (soft blue left + warm glow right) and H1 style ===== */
.hero{background:
  radial-gradient(760px 620px at 4% 18%, rgba(140,190,255,.42), transparent 70%),
  radial-gradient(900px 680px at 96% 22%, rgba(255,212,138,.55), transparent 70%),
  radial-gradient(460px 320px at 66% 100%, rgba(255,226,170,.30), transparent 72%),
  var(--bg)}
html[data-theme=dark] .hero{background:
  radial-gradient(760px 620px at 4% 18%, rgba(59,130,246,.22), transparent 70%),
  radial-gradient(900px 680px at 96% 22%, rgba(245,158,11,.15), transparent 70%),
  radial-gradient(460px 320px at 66% 100%, rgba(245,158,11,.08), transparent 72%),
  var(--bg)}
/* H1: centered, sized to the 760px content column, black */
.hero h1{font-family:"H1 Sans","H1 Sans Fallback",Arial,sans-serif;font-weight:650;font-size:clamp(2.1rem,6.4vw,3.6rem);line-height:1.08;letter-spacing:-.035em;color:#000;text-align:center;max-width:100%;margin:0 auto;text-wrap:balance;min-height:2.16em} /* min-height = 2 lines reserved -> no layout shift */
html[data-theme=dark] .hero h1{color:var(--text)}
.hero h1 .h1-it{font-family:"H1 Serif","H1 Serif Fallback",Georgia,"Times New Roman",serif;font-style:italic;font-weight:400;font-size:1.1em;letter-spacing:-.01em;white-space:nowrap}
@media(max-width:360px){.hero h1{font-size:1.8rem}}

/* Omocodia variants block (added 2026-11-17) */
.omo-box { margin-top: 16px; border-top: 1px solid var(--border, #ddd); padding-top: 12px; }
.omo-box summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.omo-note { font-size: 14px; color: var(--text-soft); margin: 8px 0 12px; }
.omo-list { display: flex; flex-wrap: wrap; gap: 6px; }
.omo-list code { font-family: var(--font-mono, monospace); font-size: 12.5px; padding: 3px 7px; border: 1px solid var(--border, #ddd); border-radius: var(--radius-sm, 6px); }

/* Print sheet and barcode (added 2026-11-17) */
#print-sheet { display: none; }
#print-sheet .ps-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #17181c; padding-bottom: 8px; margin-bottom: 20px; font-size: 13px; }
#print-sheet .ps-brand { font-weight: 700; font-size: 16px; }
#print-sheet .ps-title { font-size: 20px; margin: 0 0 14px; }
#print-sheet .ps-code { font-family: var(--font-mono, monospace); font-size: 30px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
#print-sheet #ps-barcode { width: 100%; max-width: 430px; height: auto; margin-bottom: 18px; }
#print-sheet .ps-table { border-collapse: collapse; margin-bottom: 14px; }
#print-sheet .ps-table th { text-align: left; font-weight: 600; padding: 3px 18px 3px 0; color: #333; }
#print-sheet .ps-table td { padding: 3px 0; }
#print-sheet .ps-parts { font-family: var(--font-mono, monospace); font-size: 13px; color: #333; margin-bottom: 16px; }
#print-sheet .ps-note { font-size: 12px; color: #555; border-top: 1px solid #ccc; padding-top: 10px; }
@media print {
  body > * { display: none !important; }
  body > #print-sheet { display: block !important; background: #fff; color: #17181c; }
  @page { margin: 16mm; }
}

/* Homepage tool: 7px corners on the tool cards and buttons (2026-11-18) */
.home-tool .card, .home-tool .btn, .home-tool .seg span { border-radius: 7px; }

/* Language switch button in the header (2026-11-18) */
.lang-btn { width: auto; padding: 0 10px; font-size: 13px; font-weight: 700; text-decoration: none; }
