/* TRW Free Passport Photo Maker. Every selector is scoped to .trw-pp. */
.trw-pp {
	--p-ink: #17302a; --p-muted: #50655e; --p-green: #0b7a52; --p-green-deep: #075a3c; --p-gold: #f2b52c;
	--p-wash: #edf5f0; --p-line: #cddcd4; --p-danger: #a8231b; --p-warn: #fff5d9;
	--p-font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
	font-family: var(--p-font); color: var(--p-ink); font-size: 16px; line-height: 1.5; max-width: 860px; margin: 0 auto 2.5em; text-align: left;
}
.trw-pp *, .trw-pp *::before, .trw-pp *::after { box-sizing: border-box; }
.trw-pp [hidden] { display: none !important; }
.trw-pp p { margin: 0; }
.trw-pp .trw-pp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trw-pp .trw-pp-title { font-family: var(--p-font); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--p-ink); margin: 0 0 6px; padding: 0; }
.trw-pp .trw-pp-lede { color: var(--p-muted); font-size: 1.05rem; margin-bottom: 12px; }
.trw-pp .trw-pp-privacy { display: inline-flex; align-items: center; gap: 8px; background: var(--p-wash); color: var(--p-green-deep); border-radius: 999px; padding: 7px 14px 7px 12px; font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.trw-pp .trw-pp-privacy svg { flex: none; }
.trw-pp .trw-pp-card { background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 16px; margin-top: 14px; }
@media (min-width: 700px) { .trw-pp .trw-pp-card { padding: 20px 24px; } }
.trw-pp .trw-pp-h { display: flex; align-items: center; gap: 10px; font-family: var(--p-font); font-size: 1.15rem; font-weight: 800; color: var(--p-ink); margin: 0 0 12px; padding: 0; }
.trw-pp [data-stage="out"] .trw-pp-h:not(:first-child) { margin-top: 26px; }
.trw-pp .trw-pp-h span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--p-green); color: #fff; font-size: 0.9rem; flex: none; }
.trw-pp .trw-pp-h4 { font-family: var(--p-font); font-size: 1rem; font-weight: 800; margin: 18px 0 8px; padding: 0; color: var(--p-ink); }
.trw-pp select.trw-pp-input, .trw-pp input.trw-pp-input { display: block; width: 100%; min-height: 48px; margin: 0; padding: 8px 12px; border: 2px solid var(--p-line); border-radius: 12px; background: #fff; color: var(--p-ink); font: inherit; font-size: 16px; box-shadow: none; }
.trw-pp .trw-pp-input:focus { border-color: var(--p-green); outline: none; }
.trw-pp .trw-pp-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.trw-pp .trw-pp-custom label, .trw-pp .trw-pp-dl label { margin: 0; font-weight: 700; font-size: 0.9rem; }
.trw-pp .trw-pp-custom label span, .trw-pp .trw-pp-dl label span { display: block; margin-bottom: 4px; }
.trw-pp .trw-pp-custom .trw-pp-msg { grid-column: 1 / -1; }
.trw-pp .trw-pp-rule { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--p-wash); }
.trw-pp .trw-pp-rule.is-off { background: #fde8e6; color: #5c120d; }
.trw-pp .trw-pp-rule.is-caution { background: var(--p-warn); }
.trw-pp .trw-pp-rule > * + * { margin-top: 10px; }
.trw-pp .trw-pp-rule-badge { display: inline-block; font-weight: 800; font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,0.08); }
.trw-pp dl.trw-pp-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 0.95rem; }
.trw-pp dl.trw-pp-facts dt { font-weight: 700; color: var(--p-muted); }
.trw-pp dl.trw-pp-facts dd { margin: 0; }
.trw-pp ul.trw-pp-notes { margin: 0; padding-left: 1.2em; font-size: 0.93rem; }
.trw-pp ul.trw-pp-notes li { margin: 0 0 4px; }
.trw-pp .trw-pp-source { font-size: 0.86rem; color: var(--p-muted); }
.trw-pp .trw-pp-source a { color: var(--p-green-deep); font-weight: 700; }
.trw-pp .trw-pp-warn { font-size: 0.9rem; font-weight: 700; color: #5a4300; }
.trw-pp .trw-pp-drop { border: 2px dashed #9dbdae; border-radius: 16px; background: var(--p-wash); padding: 24px 16px; text-align: center; }
.trw-pp .trw-pp-drop.is-over { background: #dcefe4; border-color: var(--p-green); }
.trw-pp .trw-pp-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.trw-pp .trw-pp-hint { margin-top: 10px; color: var(--p-muted); font-size: 0.92rem; }
.trw-pp .trw-pp-btn, .trw-pp button.trw-pp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; margin: 0; width: auto;
	border: 2px solid transparent; border-radius: 12px; font-family: var(--p-font); font-size: 1rem; font-weight: 700; line-height: 1.2;
	text-transform: none; letter-spacing: 0; text-decoration: none; text-shadow: none; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.trw-pp button.trw-pp-btn--primary { background: var(--p-green); color: #fff; }
.trw-pp button.trw-pp-btn--primary:hover { background: var(--p-green-deep); color: #fff; }
.trw-pp button.trw-pp-btn--secondary { background: #fff; color: var(--p-green-deep); border-color: var(--p-green); }
.trw-pp button.trw-pp-btn--secondary:hover { background: var(--p-wash); color: var(--p-green-deep); }
.trw-pp button.trw-pp-btn--ghost { background: transparent; color: var(--p-muted); border-color: var(--p-line); }
.trw-pp button.trw-pp-btn--ghost:hover { background: var(--p-wash); color: var(--p-ink); }
.trw-pp button.trw-pp-btn--big { min-height: 60px; padding: 14px 30px; font-size: 1.15rem; border-radius: 14px; }
.trw-pp button.trw-pp-btn--wide { width: 100%; margin-top: 10px; }
.trw-pp button:focus-visible, .trw-pp a:focus-visible, .trw-pp input:focus-visible, .trw-pp select:focus-visible, .trw-pp canvas:focus-visible { outline: 3px solid var(--p-gold); outline-offset: 2px; }
.trw-pp .trw-pp-msg { margin-top: 10px; font-size: 0.95rem; }
.trw-pp .trw-pp-msg:empty { display: none; }
.trw-pp .trw-pp-msg.is-error { background: #fde8e6; color: #7a1712; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.trw-pp .trw-pp-msg.is-warn { background: var(--p-warn); color: #5a4300; padding: 10px 14px; border-radius: 10px; }
.trw-pp .trw-pp-msg.is-ok { color: var(--p-green-deep); font-weight: 700; }
.trw-pp .trw-pp-help { color: var(--p-muted); font-size: 0.88rem; margin-top: 6px; }
.trw-pp ol.trw-pp-steps { margin: 0 0 12px; padding-left: 1.3em; font-size: 0.95rem; }
.trw-pp ol.trw-pp-steps li { margin-bottom: 4px; }
.trw-pp .trw-pp-editor-wrap { display: flex; justify-content: center; background: #2a3632; border-radius: 12px; padding: 10px; }
.trw-pp canvas.trw-pp-editor { display: block; touch-action: none; cursor: grab; max-width: 100%; background: #fff; }
.trw-pp .trw-pp-measure { margin-top: 8px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.trw-pp .trw-pp-measure.is-ok { color: var(--p-green-deep); }
.trw-pp .trw-pp-measure.is-bad { color: var(--p-danger); }
.trw-pp .trw-pp-tools { display: grid; gap: 12px; margin-top: 12px; }
.trw-pp .trw-pp-zoom { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; }
.trw-pp button.trw-pp-icon { width: 48px; height: 48px; min-height: 48px; padding: 0; margin: 0; border: 2px solid var(--p-line); border-radius: 12px; background: #fff; color: var(--p-green-deep); font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: none; }
.trw-pp input[type="range"] { width: 100%; height: 36px; margin: 0; accent-color: var(--p-green); }
.trw-pp .trw-pp-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trw-pp .trw-pp-row > * { flex: 1 1 160px; }
.trw-pp .trw-pp-tilt span, .trw-pp .trw-pp-tol span { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.92rem; }
.trw-pp .trw-pp-tilt, .trw-pp .trw-pp-tol { display: block; margin: 0; }
.trw-pp .trw-pp-note { padding: 10px 12px; border-radius: 10px; background: var(--p-wash); color: var(--p-green-deep); font-size: 0.92rem; }
.trw-pp .trw-pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trw-pp .trw-pp-chips label { position: relative; margin: 0; cursor: pointer; }
.trw-pp .trw-pp-chips > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.trw-pp .trw-pp-chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--p-line); border-radius: 12px; font-weight: 700; font-size: 0.92rem; background: #fff; }
.trw-pp .trw-pp-chips > label > input:checked + span { border-color: var(--p-green); background: var(--p-wash); }
.trw-pp .trw-pp-chips input[type="color"] { width: 32px; height: 26px; padding: 0; border: 1px solid var(--p-line); border-radius: 6px; }
.trw-pp ul.trw-pp-checks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.trw-pp .trw-pp-check { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: #f6f8f7; margin: 0; }
.trw-pp .trw-pp-check strong { display: block; }
.trw-pp .trw-pp-check p { font-size: 0.9rem; color: #33493f; }
.trw-pp .trw-pp-check-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; color: #fff; }
.trw-pp .trw-pp-check.is-good .trw-pp-check-icon { background: var(--p-green); }
.trw-pp .trw-pp-check.is-warn .trw-pp-check-icon { background: #c88a00; }
.trw-pp .trw-pp-check.is-bad .trw-pp-check-icon { background: var(--p-danger); }
.trw-pp .trw-pp-check.is-info .trw-pp-check-icon { background: #5b6d66; }
.trw-pp .trw-pp-ba { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: flex-end; }
.trw-pp .trw-pp-ba figure { margin: 0; text-align: center; }
.trw-pp .trw-pp-ba canvas { display: block; max-width: 100%; height: auto; max-height: 260px; }
.trw-pp .trw-pp-ba figcaption { font-weight: 700; font-size: 0.9rem; color: var(--p-muted); margin-top: 6px; }
.trw-pp .trw-pp-shadow { box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.trw-pp .trw-pp-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.trw-pp label.trw-pp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 6px 0 0; font-weight: 600; cursor: pointer; }
.trw-pp label.trw-pp-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--p-green); }
.trw-pp .trw-pp-sheet-wrap { display: flex; justify-content: center; background: #eef1ef; border-radius: 12px; padding: 14px; margin: 10px 0; }
.trw-pp .trw-pp-sheet-wrap canvas { display: block; max-width: 100%; height: auto; background: #fff; }
.trw-pp .trw-pp-print { padding: 10px 12px; border-radius: 10px; background: var(--p-warn); color: #4a3700; font-size: 0.92rem; margin-bottom: 12px; }
.trw-pp .trw-pp-content { margin-top: 44px; }
.trw-pp .trw-pp-content section { margin-bottom: 30px; }
.trw-pp .trw-pp-content h2 { font-family: var(--p-font); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); font-weight: 800; color: var(--p-ink); margin: 0 0 12px; }
.trw-pp .trw-pp-content p, .trw-pp .trw-pp-content li { font-size: 1.02rem; line-height: 1.65; }
.trw-pp .trw-pp-content ol { padding-left: 1.4em; }
.trw-pp .trw-pp-table-wrap { overflow-x: auto; margin-top: 12px; }
.trw-pp table.trw-pp-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.88rem; border: 0; }
.trw-pp table.trw-pp-table th, .trw-pp table.trw-pp-table td { padding: 8px; border: 0; border-bottom: 1px solid var(--p-line); text-align: left; vertical-align: top; background: none; }
.trw-pp table.trw-pp-table th { background: var(--p-wash); }
.trw-pp table.trw-pp-table a { color: var(--p-green-deep); font-weight: 700; }
