:root {
  color-scheme: light;
  --ink: #17233a;
  --muted: #58677c;
  --blue: #2459d3;
  --line: #e1e6ef;
  --light: #f7f9fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: var(--blue); text-underline-offset: 4px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #779bfa; outline-offset: 4px; }
.wrap { width: min(100% - 48px, 960px); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 12px; z-index: 2; padding: 10px 16px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { flex-shrink: 0; }
.languages { display: flex; align-items: center; gap: 4px; font-size: 14px; flex-shrink: 0; }
.languages a, .languages span { padding: 9px 12px; border-radius: 7px; }
.languages span { background: #eff4ff; color: var(--blue); font-weight: 600; }
.languages a { color: var(--muted); text-decoration: none; }
.languages a:hover { background: var(--light); color: var(--blue); }
.intro { padding: 58px 0 32px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--blue); font-size: 11px; letter-spacing: 1.6px; font-weight: 700; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; letter-spacing: -1.8px; font-weight: 750; }
.lead { margin: 0; font-size: 17px; color: var(--muted); }
.generator { border: 1px solid var(--line); border-radius: 16px; padding: 28px 28px 0; box-shadow: 0 8px 32px #17233a06; }
.controls { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.quantity-line { display: flex; align-items: center; gap: 14px; }
input { width: 100px; min-height: 46px; padding: 8px 12px; border: 1px solid #a9b5c6; border-radius: 7px; background: #fff; color: var(--ink); }
input[aria-invalid="true"] { border-color: #b62636; }
#quantity-hint { color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; border: 1px solid transparent; border-radius: 7px; padding: 10px 18px; font-size: 14px; font-weight: 650; cursor: pointer; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #1748b9; }
.secondary { background: #fff; color: var(--ink); border-color: #c6cfdd; }
.secondary:hover:not(:disabled) { background: #edf3ff; border-color: #9ab2ea; }
.button:disabled { cursor: not-allowed; color: #717d8f; background: #f0f2f6; border-color: var(--line); }
.error { min-height: 24px; margin: 8px 0 12px; color: #b12636; font-size: 13px; }
.results-panel { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--light); border-bottom: 1px solid var(--line); }
.results-header h2 { font-size: 14px; margin: 0; font-weight: 650; }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty-state { margin: 0; min-height: 144px; padding: 38px 16px; text-align: center; font-size: 14px; color: var(--muted); }
.empty-state span { display: block; margin-top: 4px; color: #718096; font-size: 12px; }
.results { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; overscroll-behavior-y: contain; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 18px; border-bottom: 1px solid #edf0f5; }
.result-row:last-child { border-bottom: 0; }
.result-row code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.copy-one { min-height: 44px; padding: 8px 12px; font-size: 12px; background: #fff; color: var(--blue); border-color: transparent; }
.copy-one:hover { background: #eff4ff; }
.results-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.local-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.local-note .dot { color: #2b8070; }
.status { min-height: 24px; margin: 10px 0; font-size: 13px; color: #22694f; }
.status.is-error { color: #b12636; }
.guide { display: grid; grid-template-columns: 1fr 1.8fr; gap: 72px; padding: 60px 0; }
.guide h2 { margin: 0 0 18px; font-size: 23px; line-height: 1.4; letter-spacing: -0.5px; }
.guide h3 { margin: 0 0 6px; font-size: 15px; font-weight: 650; }
.guide p, .guide li { color: var(--muted); font-size: 14px; line-height: 1.8; }
.how-to .eyebrow { color: var(--blue); font-size: 11px; }
.how-to ol { margin: 0; padding-left: 21px; }
.how-to li { padding-left: 5px; margin-bottom: 10px; }
.how-to li::marker { color: var(--blue); font-weight: 700; }
.how-to strong { color: var(--ink); font-weight: 600; }
.faq article + article { margin-top: 20px; }
.faq p { margin: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer span { font-weight: 650; color: var(--ink); }
.site-footer p { margin: 0; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 76px; gap: 8px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand img { width: 25px; height: 25px; }
  .languages { font-size: 12px; gap: 0; }
  .languages a, .languages span { padding: 10px 9px; }
  .intro { padding: 36px 0 26px; }
  h1 { letter-spacing: -1px; }
  .lead { font-size: 15px; }
  .generator { padding: 18px 16px 0; border-radius: 12px; }
  .controls { flex-direction: column; align-items: stretch; gap: 18px; }
  .quantity-line { justify-content: space-between; }
  .primary { width: 100%; }
  .results-header, .results-footer { padding: 12px; }
  .result-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px; }
  .result-row code { font-size: 13px; }
  .copy-one { justify-self: end; border-color: var(--line); }
  .results-footer { flex-wrap: wrap; }
  .results-footer .secondary { margin-left: auto; }
  .local-note { font-size: 11px; }
  .empty-state { padding: 30px 12px; }
  .guide { grid-template-columns: 1fr; gap: 32px; padding: 38px 0; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
