
.tool { margin-top: 24px; padding: 18px 20px 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--r3); }
.tool > h2 { margin: 0 0 12px; }
.toolform { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; gap: 12px 16px; margin: 0 0 4px; }
.toolform .wide { grid-column: 1 / -1; }
.toolform label, .codebox label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.toolform select, .toolform input { display: block; width: 100%; min-height: 44px; padding: 8px 10px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r1); }
.toolform .go { align-self: end; }
.toolform button, .tool .copy { min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent);
  color: var(--accent-ink); font-size: 15px; font-weight: 600; }
.toolform button:hover, .tool .copy:hover { filter: brightness(1.06); }
.tool-nojs { margin: 0 0 8px; max-width: 68ch; font-size: 15px; color: var(--mute); }
.tool-nojs a { color: var(--ink); }
.toolout { margin-top: 12px; }
.toolsel { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--mute); }
.toolout .keyfacts { margin-top: 12px; }
.toolout .keyfacts dd { font-size: clamp(21px, 4.4vw, 25px); }
.calcline { margin: 14px 0 0; max-width: 68ch; }
.calclinks { margin: 4px 0 0; }
.calclinks a { display: inline-block; padding: 10px 0; color: var(--ink); font-weight: 600; }
.caveats { margin: 18px 0 6px; font-size: 15px; }

.verdict { margin: 14px 0 0; padding: 14px 16px 4px; background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--line-strong); border-radius: var(--r2); }
.verdict.ok { border-left-color: var(--accent); }
.verdict.warn { border-left-color: var(--warn); }
.verdict p { margin: 0 0 10px; max-width: 68ch; }
.verdict .vhead { font-weight: 700; }
.verdict .vlabel { margin-bottom: 4px; font-weight: 600; color: var(--warn); }
.verdict ul { margin: 0 0 10px; padding-left: 20px; }
.verdict li { margin: 0 0 6px; max-width: 66ch; }
.verdict a { display: inline-block; padding: 10px 0; margin: -8px 0 -6px; color: var(--ink); font-weight: 600; }
.toolout > .meta { margin: 12px 0 2px; max-width: 68ch; }

.paytable .sub { display: block; font-size: 12px; color: var(--mute); }
.cmpall th[scope=row] { white-space: nowrap; }
.cmp { table-layout: fixed; }
.cmp thead th:first-child { width: 30%; }
.cmp th[scope=row] { font-weight: 600; }
.cmp td a, .feedtable td a { display: inline; padding: 0; margin: 0; text-decoration: underline; }
.cmp thead th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.cmp thead th:first-child { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.cmp td { overflow-wrap: anywhere; }

.codebox { margin: 16px 0 0; }
.codebox textarea { display: block; width: 100%; min-height: 64px; padding: 10px 12px; resize: vertical; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r1); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.codebox p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; min-height: 44px; }
.copied { font-size: 14px; color: var(--accent); }
.previewh { margin: 22px 0 8px; font-size: 16px; }
.tgw-preview { margin: 0 0 4px; }
details > summary { padding: 10px 0; cursor: pointer; font-weight: 600; }
details .tablewrap { margin-top: 8px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.tgw { --tgw-ink: #19332c; --tgw-mute: #5c6b64; --tgw-line: #dfe5dc; --tgw-accent: #087557; --tgw-bg: #fffefb;
  color-scheme: light; color: var(--tgw-ink); background: var(--tgw-bg); font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.tgw { margin: 0; padding: 12px 14px; }
div.tgw { max-width: 520px; padding: 12px 14px; border: 1px solid var(--tgw-line); border-radius: 12px; }
.tgw a { color: var(--tgw-ink); }
.tgw-head { margin: 0 0 4px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.tgw-head a { color: var(--tgw-accent); text-decoration: none; }
.tgw-head a:hover { text-decoration: underline; }
.tgw-list { list-style: none; margin: 0; padding: 0; }
.tgw-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 0; border-bottom: 1px solid var(--tgw-line); }
.tgw-t { font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.tgw-t:hover { text-decoration: underline; }
.tgw-pay { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tgw-sub { grid-column: 1 / -1; font-size: 13px; color: var(--tgw-mute); }
.tgw-foot { margin: 8px 0 0; font-size: 14px; }
.tgw-foot a { display: inline-block; padding: 6px 0; color: var(--tgw-accent); font-weight: 650; }
.tgw-note { margin: 2px 0 0; font-size: 12px; color: var(--tgw-mute); }

@media (max-width: 600px) {
  .tool { padding: 16px 14px 10px; }
  .cmp thead th:first-child { width: 34%; }
  .tgw-list li { grid-template-columns: minmax(0, 1fr); }
  .tgw-pay { text-align: left; }
}

.scene { margin: 14px 0 20px; }
.scene img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 14px; background: #e3f5e8; }
