:root {
  --ink: #000;
  --paper: #fff;
  --fine: #222;
  --hair: 1px solid #000;
  --bar: 10px solid #000;
  --mid: 5px solid #000;
  --font: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --head-h: 104px;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); }

.top { flex: 0 0 auto; background: var(--ink); color: var(--paper); padding: 12px 16px 10px; }
.top h1 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; }
.top p { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.tabs { flex: 0 0 auto; display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: var(--mid); background: var(--paper); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; border: 0; border-right: var(--hair); background: var(--paper); color: var(--ink);
  font: 800 .85rem/1 var(--font); text-transform: uppercase; letter-spacing: .03em;
  padding: 12px 14px; min-height: 44px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.track {
  flex: 1 1 auto; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

.panel {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  overflow-y: auto; overscroll-behavior-y: contain; padding: 16px 16px 28px;
}

.label { border: 3px solid var(--ink); padding: 10px 12px 14px; max-width: 460px; margin: 0 auto; }
.label h2 { margin: 0; font-size: 2.3rem; font-weight: 900; line-height: .95; letter-spacing: -.02em; }
.label .sub { margin: 4px 0 0; font-weight: 600; }
.label .bar { border: 0; border-top: var(--bar); margin: 8px -12px 6px; }
.label .mid { border: 0; border-top: var(--mid); margin: 8px -12px 6px; }

.label h3 { margin: 6px 0 2px; font-size: 1.05rem; font-weight: 900; }

.big { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 2px 0; }
.big span { font-size: 1.2rem; font-weight: 900; }
.big b { font-size: 2.8rem; font-weight: 900; line-height: 1; }

.row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: var(--hair); }
.row:last-child { border-bottom: 0; }
.row span { flex: 1 1 auto; }
.row b { flex: 0 0 auto; font-weight: 900; text-align: right; }
.row.in { padding-left: 14px; }
.row.hi { background: var(--ink); color: var(--paper); margin: 0 -12px; padding: 7px 12px; }

.grid4 { width: 100%; border-collapse: collapse; margin: 4px 0; font-size: .95rem; }
.grid4 th, .grid4 td { padding: 6px 4px; border-bottom: var(--hair); text-align: right; }
.grid4 th:first-child, .grid4 td:first-child { text-align: left; }
.grid4 thead th { border-bottom: var(--mid); font-weight: 900; }
.grid4 td { font-weight: 700; }
.grid4 td:first-child { font-weight: 600; }

.list { margin: 4px 0; padding: 0; list-style: none; }
.list li { padding: 5px 0; border-bottom: var(--hair); }
.list li:last-child { border-bottom: 0; }

.fine { font-size: .8rem; color: var(--fine); margin: 6px 0 0; }
p { margin: 6px 0; }

.go { display: block; margin: 8px 0 0; padding: 12px 14px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 900; font-size: 1.05rem; text-decoration: none; text-transform: uppercase; text-align: center; }
.go.alt { background: var(--paper); color: var(--ink); }

.hint { text-align: center; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 0; }

.nav { display: none; }

@media (min-width: 900px) {
  :root { --cols: 2; }
  .top { padding: 16px 24px 12px; }
  .top h1 { font-size: 34px; }
  .tabs { justify-content: center; }
  .panel { flex-basis: calc(100% / var(--cols)); padding: 24px 20px 40px; }
  .nav { display: flex; position: fixed; bottom: 18px; right: 18px; gap: 8px; }
  .nav button { width: 48px; height: 48px; border: 3px solid var(--ink); background: var(--paper); font: 900 1.4rem/1 var(--font); cursor: pointer; }
  .nav button:hover { background: var(--ink); color: var(--paper); }
}
@media (min-width: 1300px) { :root { --cols: 3; } }

@media print {
  body { display: block; height: auto; overflow: visible; }
  .tabs, .nav, .hint { display: none; }
  .track { display: block; overflow: visible; }
  .panel { overflow: visible; break-inside: avoid; }
}

.seg { display: flex; border: 2px solid var(--ink); margin: 6px 0; }
.seg button { flex: 1 1 0; min-height: 44px; border: 0; border-right: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 800 .9rem/1.1 var(--font); padding: 6px 4px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.chk { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; }
.chk input { width: 22px; height: 22px; accent-color: #000; margin: 0; flex: 0 0 auto; }

.card { border: 2px solid var(--ink); padding: 8px 10px; margin: 8px 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.card-h b { font-weight: 900; }
.x { width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--paper); font: 900 1.3rem/1 var(--font); cursor: pointer; }

.flds { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.fld { display: flex; flex-direction: column; flex: 1 1 90px; min-width: 0; }
.fld.wide { flex-basis: 100%; margin: 6px 0; }
.fld span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.fld input, .fld select { width: 100%; min-height: 44px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 700 1.05rem var(--font); padding: 6px 8px; -webkit-appearance: none; appearance: none; }
.fld select { background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 26px; }
.fld input:focus, .fld select:focus, .seg button:focus-visible, .go:focus-visible { outline: 3px solid #000; outline-offset: 2px; }

.inl { display: flex; flex-direction: column; margin: 4px 0; }
.inl > span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.step { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.step button { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--paper); font: 900 1.3rem/1 var(--font); cursor: pointer; }
.step b { font-size: 1.2rem; font-weight: 900; min-width: 1.5em; text-align: center; }

button.go { width: 100%; cursor: pointer; font-family: var(--font); }

.panel::-webkit-scrollbar { width: 26px; }
.panel::-webkit-scrollbar-track { background: #fff; border-left: 3px solid #000; border-radius: 0; }
.panel::-webkit-scrollbar-thumb { background: #000; border: 0; border-left: 3px solid #000; border-radius: 0; min-height: 66px; }
.panel::-webkit-scrollbar-button { display: none; }
@supports (-moz-appearance: none) { .panel { scrollbar-width: auto; scrollbar-color: #000 #fff; } }


.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { min-width: 0; }
.tel { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; color: #fff; text-decoration: none; border: 2px solid #fff; padding: 6px 8px; line-height: 1.05; }
.tel b { font-size: 17px; font-weight: 900; letter-spacing: .01em; }
.tel span { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; margin-top: 3px; }
@media (max-width: 420px) { .top h1 { font-size: 21px; } }
@media (min-width: 900px) { .tel b { font-size: 22px; } .tel span { font-size: 13.5px; } }

.fld textarea { width: 100%; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 600 1rem/1.4 var(--font); padding: 8px; resize: vertical; -webkit-appearance: none; appearance: none; }
.fld textarea:focus { outline: 3px solid #000; outline-offset: 2px; }
.fld input[type="email"], .fld input[type="tel"], .fld input[type="text"] { font-size: 16px; }
.cg-msg { margin: 0; }
.cg-msg.on { border: 3px solid #000; padding: 10px 12px; margin: 8px 0; font-weight: 700; }
.cg-msg.bad { background: #000; color: #fff; }
form .go { margin-top: 10px; }
[hidden] { display: none !important; }

@media (max-width: 899px) {
  .panel { scrollbar-width: none; }
  .panel::-webkit-scrollbar { display: none; width: 0; }
}

html.lg { font-size: 20px; }
html.lg .label { max-width: 560px; }
.top .brand { flex: 1 1 auto; }
.spec { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 44px; margin: 0 -4px 0 -6px; padding: 0 4px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.spec svg { display: block; width: 56px; height: auto; }
.spec:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 420px) { .top { gap: 8px; } .spec { width: 52px; } .spec svg { width: 46px; } }
@media (min-width: 900px) { .spec { width: 92px; height: 56px; } .spec svg { width: 84px; } }
@media (max-width: 420px) {
  .top { padding: 10px 12px; gap: 6px; }
  .top h1 { font-size: 19px; }
  .top p { font-size: 12px; }
  .spec { width: 46px; margin: 0 -2px 0 -4px; padding: 0 2px; }
  .spec svg { width: 42px; }
  .tel { padding: 4px 6px; }
  .tel b { font-size: 15px; }
  .tel span { font-size: 10px; }
}


.note { margin: 10px 0 4px; border: 3px solid #000; }
.note-h { margin: 0; padding: 6px 10px; background: #000; color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.note p:not(.note-h) { margin: 0; padding: 10px 12px; font-weight: 600; line-height: 1.45; }

.sp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: end; }
.top .brand { display: contents; }
.top h1 { grid-column: 2; grid-row: 1; align-self: end; }
.top p { grid-column: 2; grid-row: 2; align-self: start; }
.tel { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.spec { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; display: grid; grid-template-rows: subgrid; width: 72px; height: auto; margin: 0 -2px 0 -4px; padding: 0 2px; }
.spec svg { width: 100%; }
.spec .sp-top { grid-row: 1; align-self: end; display: block; height: auto; }
.spec .sp-ref { grid-row: 2; align-self: start; display: block; height: auto; margin-top: 1px; overflow: visible; }
@media (max-width: 420px) { .top { column-gap: 6px; } .spec { width: 56px; } .spec svg { width: 100%; } }
@media (min-width: 900px) { .spec { width: 104px; height: auto; } .spec svg { width: 100%; } }

.row span { min-width: 0; }
.row b { flex: 0 1 auto; max-width: 62%; overflow-wrap: anywhere; }

.row.act b s { font-weight: 700; margin-right: 6px; text-decoration-thickness: 3px; }
.pm { display: flex; flex-wrap: wrap; column-gap: 18px; margin: 4px 0; }
.pinfo { margin: 2px 0 6px; }
.pinfo.warn { background: #000; color: #fff; padding: 6px 8px; font-weight: 700; }
.est-eff { margin: 2px 0 8px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; text-align: right; }
.est-eff:empty { display: none; }

.flds { align-items: stretch; }
.flds .fld { justify-content: flex-end; }
.flds .fld span { line-height: 1.15; margin-bottom: 3px; }
.est-today .today { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 0; }
.est-today .today span { font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.est-today .today b { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.est-today .fine { margin: 2px 0 8px; text-align: right; }
.note.sm { margin: 4px 0 8px; border-width: 2px; }
.note.sm .note-h { font-size: .72rem; padding: 4px 8px; }
.note.sm p:not(.note-h) { padding: 6px 8px; font-size: .95rem; }
.pm .chk u { text-decoration-thickness: 2px; text-underline-offset: 2px; }
#cg.is-rep #cg-help, #cg.is-rep .cg-in h3:not(.cg-first):not(.lib-h) { display: none; }
.cg-lib h3 { display: block !important; margin-top: 10px; }
.lib-g { margin: 8px 0 12px; }
.lib-t { margin: 8px 0 0; font-weight: 900; }
.grid4.lib td { font-weight: 700; vertical-align: top; }
.grid4.lib td .fine { font-weight: 500; }
.flag { background: #000; color: #fff; padding: 0 4px; font-size: .75rem; text-transform: uppercase; }

.cites { margin: 8px 0 0; font-size: .8rem; font-weight: 600; line-height: 1.45; color: #c00; }
.cites a { color: #c00; text-underline-offset: 2px; }
.tp-link { margin: 10px 0 2px; font-weight: 800; }
.est-bbf:empty { display: none; }
.bbf li { line-height: 1.35; }
.bbf li b { font-weight: 900; }
.bbf .fine { display: inline-block; margin: 2px 0 0; }
.steps { margin: 4px 0; padding: 0 0 0 1.5em; }
.steps li { padding: 5px 0 5px 2px; border-bottom: var(--hair); }
.steps li:last-child { border-bottom: 0; }
.src { margin: 4px 0; padding: 0 0 0 1.7em; }
.src li { padding: 5px 0; border-bottom: var(--hair); font-weight: 700; }
.src li:last-child { border-bottom: 0; }
.src li span { display: block; font-size: .75rem; font-weight: 500; color: var(--fine); overflow-wrap: anywhere; }
.eth { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.eth-mark { flex: 0 0 auto; width: 44px; height: 44px; }
.eth-mark svg { display: block; width: 44px; height: 44px; overflow: visible; }
.eth-t { margin: 0; display: flex; flex-direction: column; line-height: 1.05; }
.eth-t b { font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; }
.eth-t span { margin-top: 3px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ai-ts { margin: 8px 0 0; min-height: 65px; }
.ai-say { margin: 8px 0 0; font-weight: 700; }
.ai-say:empty { display: none; }
.ai-log { margin: 8px 0 0; }
.ai-log:empty { display: none; }
.ai-msg { border-top: var(--hair); padding: 8px 0; }
.ai-msg b { display: block; font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ai-msg p { margin: 2px 0 0; overflow-wrap: anywhere; }
.ai-msg.me p { font-weight: 600; }
button.go:disabled { opacity: .45; cursor: default; }
.eth-mark { width: 60px; height: 60px; padding: 6px; margin: -4px 2px -4px -6px; }
.eth-mark svg { width: 48px; height: 48px; }
.ai-ts-h { margin: 10px 0 0; font-weight: 800; }
.ai-meter { margin: 10px 0 0; }
.ai-meter b { display: block; font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ai-meter span { display: block; height: 14px; margin-top: 3px; border: 2px solid var(--ink); background: var(--paper); }
.ai-meter i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s; }
.code-row { align-items: flex-end; }
.code-row .go { width: auto; flex: 0 0 auto; margin: 0; min-height: 44px; padding: 8px 16px; }
.covers { margin: 0 0 8px; }
.covers li { padding: 3px 0 3px 12px; position: relative; font-size: .9rem; }
.covers li::before { content: "+"; position: absolute; left: 0; font-weight: 900; }
.covers li.fine::before { content: ""; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0; font-weight: 700; }
.path b { font-weight: 900; }
.path span { font-weight: 900; }
a.go { cursor: pointer; }
#port-out h3 { margin-top: 10px; }
