.gtpw-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--gt-line); }
.gtpw-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 14px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--gt-muted); cursor: pointer; }
.gtpw-tab[aria-selected="true"] { color: var(--gt-ink); border-bottom-color: var(--gt-accent); }
.gtpw-tab:focus-visible, .gtpw-chip:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gtpw-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 14px; font-size: 14px; }
.gtpw-presets-l { font-weight: 600; }
.gtpw-chip { appearance: none; font: inherit; font-size: 13px; padding: 6px 10px; min-height: 36px; border: 1px solid var(--gt-line); border-radius: 999px; background: var(--gt-field); color: var(--gt-ink); cursor: pointer; }
.gtpw-chip:hover { border-color: var(--gt-accent); }
.gtpw-src { font-size: 13px; color: var(--gt-muted); }
.gtpw-outs { display: grid; gap: 8px; margin-bottom: 16px; min-height: 52px; }
.gtpw-row { display: flex; gap: 8px; }
.gtpw-out { flex: 1; min-width: 0; height: 52px; padding: 0 14px; font: 500 18px/1 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .4px; color: var(--gt-ink); background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; }
.gtpw-copy { min-width: 96px; height: 52px; }
.gtpw-err { margin: 0; min-height: 52px; display: flex; align-items: center; color: #c0392b; font-weight: 600; }
.gtpw-meter { height: 8px; border-radius: 4px; background: var(--gt-line); overflow: hidden; }
.gtpw-bar { height: 100%; width: 0; background: #c0392b; transition: width .25s ease, background-color .25s ease; }
.gtpw-bar[data-level="1"] { background: #d35400; }
.gtpw-bar[data-level="2"] { background: #b7791f; }
.gtpw-bar[data-level="3"], .gtpw-bar[data-level="4"] { background: #1e8449; }
.gtpw-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 12px; font-size: 14px; color: var(--gt-muted); }
.gtpw-meta b { color: var(--gt-ink); }
.gtpw-crack { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 6px; }
.gtpw-crack caption { text-align: left; font-weight: 600; font-size: 15px; padding: 0 0 4px; }
.gtpw-crack th, .gtpw-crack td { padding: 6px 8px; border-top: 1px solid var(--gt-line); text-align: left; vertical-align: top; }
.gtpw-crack thead th { border-top: 0; font-size: 13px; color: var(--gt-muted); font-weight: 600; }
.gtpw-crack tbody th { font-weight: 400; }
.gtpw-crack td { white-space: nowrap; font-weight: 600; text-align: right; }
.gtpw-crack thead th:last-child { text-align: right; }
.gtpw-assume { font-size: 13px; color: var(--gt-muted); margin: 0 0 16px; }
.gtpw-assume summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.gtpw-assume p { margin: 4px 0 0; line-height: 1.5; }
.gtpw-num { display: grid; grid-template-columns: auto 1fr 76px; align-items: center; gap: 4px 12px; margin: 0 0 12px; }
.gtpw-num label { font-size: 15px; font-weight: 600; }
.gtpw-range { width: 100%; height: 32px; margin: 0; accent-color: var(--gt-accent); cursor: pointer; }
.gtpw-n, .gtpw-sep, .gtpw-count { height: 40px; padding: 0 8px; font: inherit; font-size: 15px; color: var(--gt-ink); background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; }
.gtpw-n { width: 76px; }
.gtpw-row2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 15px; }
.gtpw-row2 label { font-weight: 600; }
.gtpw-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0 16px; border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.gtpw-types legend { font-weight: 600; font-size: 15px; margin-bottom: 2px; padding: 0; }
.gtpw-types label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gtpw-types input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gt-accent); cursor: pointer; }
.gtpw-attr { font-size: 13px; color: var(--gt-muted); margin: 0 0 12px; }
.gtpw-note { font-size: 13px; color: var(--gt-muted); margin: 0 0 8px; min-height: 0; }
.gtpw-note:empty { display: none; }
.gtpw .gtpw-gen { width: 100%; font-size: 16px; }
.gtpw .gtpw-gen:disabled { opacity: .5; cursor: not-allowed; }
.gtpw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .gtpw-bar { transition: none; } }
/* Narrow phones: the value gets the full width, Copy goes underneath; the crack table stacks */
@media (max-width: 440px) {
	.gtpw-row { flex-wrap: wrap; }
	.gtpw-out { flex: 1 0 100%; font-size: 17px; letter-spacing: 0; padding: 0 12px; }
	.gtpw-copy { flex: 1 0 100%; height: 48px; }
	.gtpw-meta { flex-direction: column; }
	.gtpw-crack td { white-space: normal; }
	.gtpw-tab { padding: 10px 10px; }
}
.gtpw .gtpw-gen { margin: 0 0 18px; }
.gtpw-crack { margin-top: 2px; }
