/* Toolinet Passport Photo Maker 2.0.0 */
.tpm-tool{--accent:#e84445;--action:#c9323a;--ink:#202c40;--muted:#626e82;--bg:#f7f8fb;--surface:#fff;--line:#e5e9f0;--shadow:0 12px 36px #202c4009;width:100%;color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:start}
.tpm-tool,.tpm-tool *{box-sizing:border-box}.tpm-tool [hidden]{display:none!important}.tpm-tool :is(button,input,select){font:inherit;letter-spacing:normal;text-transform:none}.tpm-tool :is(button,input,select,canvas):focus-visible{outline:3px solid #4285f4;outline-offset:3px}.tpm-tool h2,.tpm-tool h3,.tpm-tool p{margin:0}.tpm-tool h2{font:750 clamp(21px,3vw,28px)/1.25 system-ui;color:var(--ink)}.tpm-tool h3{font:700 16px/1.4 system-ui;color:var(--ink)}
.tpm-language{display:flex;justify-content:flex-end;margin-bottom:12px}.tpm-tool select{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;max-width:100%;min-height:44px;padding:9px 12px}.tpm-engine{border:1px solid var(--line);border-radius:24px;background:var(--surface);padding:28px;box-shadow:var(--shadow);min-width:0}.tpm-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.tpm-eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--action);display:block;margin-bottom:8px}.tpm-badge{background:#edf7f1;border:1px solid #d8ece0;color:#276644;padding:6px 11px;border-radius:30px;font-size:11px;font-weight:650;white-space:nowrap}.tpm-steps{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px;color:var(--muted);font-size:12px;font-weight:650}.tpm-steps span:not(:last-child):after{content:'›';margin-left:12px;color:#a3aab8}.tpm-drop{padding:22px;border:1.5px dashed #b9c3d2;border-radius:16px;background:var(--bg);text-align:center;transition:border-color .2s}.tpm-drop label{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;cursor:pointer}.tpm-drop strong{color:var(--action)}.tpm-drop span,.tpm-drop p{font-size:12px;color:var(--muted)}.tpm-drop input{display:block;width:100%;max-width:440px;margin:14px auto 8px;font-size:13px;color:var(--ink)}.tpm-drop input::file-selector-button{min-height:40px;background:var(--ink);color:var(--surface);padding:8px 14px;margin-right:10px;border:0;border-radius:8px;cursor:pointer}.tpm-drop.tpm-dragover{border-color:var(--action);background:#fbeff0}.tpm-file-info{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin-top:10px!important}.tpm-status{padding:12px 14px;border-radius:10px;background:var(--bg);border:1px solid var(--line);font-size:13px;margin-top:12px!important;overflow-wrap:anywhere}.tpm-status:empty,.tpm-file-info:empty{display:none}
.tpm-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);gap:28px;margin-top:26px}.tpm-workspace,.tpm-settings{min-width:0}.tpm-section-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:14px}.tpm-dimensions,.tpm-sheet-count{font-size:11px;color:var(--muted)}.tpm-stage{background:#e9edf3;background-image:linear-gradient(45deg,#e1e6ee 25%,transparent 25%),linear-gradient(-45deg,#e1e6ee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e1e6ee 75%),linear-gradient(-45deg,transparent 75%,#e1e6ee 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;min-height:390px;padding:28px 30px;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden}.tpm-empty{text-align:center;color:#66758b}.tpm-empty>span{font-size:64px;line-height:1.5;display:block;color:#8f9bb0}.tpm-empty p{font-size:13px;max-width:230px}.tpm-crop{position:relative;max-width:100%;flex-shrink:1;touch-action:none;box-shadow:0 0 0 1px #fff,0 10px 32px #202c4029;cursor:grab}.tpm-crop:active{cursor:grabbing}.tpm-tool .tpm-editor{display:block;width:100%;height:100%;border-radius:0;margin:0}.tpm-guide{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#fff;stroke-width:.5;stroke-dasharray:2 2;filter:drop-shadow(0 1px 1px #0008);pointer-events:none}.tpm-corner{position:absolute;width:16px;height:16px;border:3px solid #fff;background:var(--action);border-radius:3px;box-shadow:0 1px 4px #0005}.tpm-corner.tl{top:-7px;left:-7px;cursor:nwse-resize}.tpm-corner.tr{top:-7px;right:-7px;cursor:nesw-resize}.tpm-corner.bl{bottom:-7px;left:-7px;cursor:nesw-resize}.tpm-corner.br{bottom:-7px;right:-7px;cursor:nwse-resize}
.tpm-tool .tpm-hint{font-size:11px;color:var(--muted);line-height:1.6;margin:10px 0 14px}.tpm-edit-controls{padding:0;border:0;min-width:0;margin:18px 0 0}.tpm-edit-controls:disabled{opacity:.5}.tpm-field{display:block;min-width:0;margin:0 0 12px;font-size:12px;font-weight:650;color:var(--ink)}.tpm-field>span{display:block;margin-bottom:6px}.tpm-field input:not([type=range]),.tpm-field select{width:100%;height:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--bg);color:var(--ink);min-width:0;box-shadow:none;font-size:14px}.tpm-field input[aria-invalid=true]{border-color:var(--action)}.tpm-field input[type=range]{width:100%;min-width:0;padding:0;accent-color:var(--action);height:28px;cursor:pointer}.tpm-range-row{display:flex;align-items:center;gap:14px}.tpm-range-row .tpm-field{flex:1}.tpm-range-row output{font-size:12px;color:var(--muted);min-width:44px;text-align:right;font-variant-numeric:tabular-nums}.tpm-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin:3px 0 14px}.tpm-tool button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-size:12px;line-height:1.35;font-weight:650;color:var(--ink);background:var(--surface);cursor:pointer;box-shadow:none}.tpm-tool button:hover:enabled{border-color:var(--action);background:var(--bg)}.tpm-tool button:disabled{opacity:.45;cursor:not-allowed}.tpm-tool button.tpm-primary{background:var(--action);border-color:var(--action);color:#fff;min-height:48px;padding:12px 16px;font-size:13px}.tpm-tool button.tpm-primary:hover:enabled{background:#ae2630;color:#fff}.tpm-full{width:100%}.tpm-nudge{display:flex;align-items:center;gap:6px;margin-bottom:15px}.tpm-nudge>span{font-size:12px;color:var(--muted);margin-right:auto}.tpm-nudge button{min-width:38px;padding:8px}.tpm-nudge button span[data-i18n]{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.tpm-check{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer}.tpm-check input{accent-color:var(--action);width:17px;height:17px;margin:0}.tpm-settings>h3{margin-bottom:16px}.tpm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tpm-preview-wrap{padding:18px;background:var(--bg);border:1px solid var(--line);border-radius:14px;margin:18px 0}.tpm-preview-wrap h3{font-size:13px}.tpm-live{font-size:10px;color:#277249}.tpm-live:before{content:'●';margin-right:4px}.tpm-tool .tpm-preview{width:auto;height:auto;max-width:100%;max-height:200px;display:block;border-radius:0;margin:0 auto;border:1px solid var(--line);box-shadow:0 3px 12px #202c4010}.tpm-preview-empty{font-size:12px;color:var(--muted);padding:24px 0;text-align:center}.tpm-resolution{font-size:11px;color:var(--muted);text-align:center;margin-top:12px!important}.tpm-warning{color:#a65c14}.tpm-print{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:25px;margin-top:26px;padding:22px;background:var(--bg);border:1px solid var(--line);border-radius:14px}.tpm-print-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.tpm-sheet-wrap{display:flex;align-items:center;justify-content:center;min-height:165px;border:1px dashed #c5ccd7;border-radius:10px;padding:12px}.tpm-tool .tpm-sheet-preview{max-width:100%;max-height:190px;width:auto;height:auto;display:block;box-shadow:0 2px 8px #0002;margin:0;border-radius:0}.tpm-sheet-placeholder{color:var(--muted);font-size:11px;text-align:center}.tpm-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:22px}.tpm-bottom>span{font-size:11px;color:var(--muted);margin-left:auto}.tpm-footnote{color:var(--muted);font-size:11px;border-top:1px solid var(--line);padding-top:14px;margin-top:18px!important}
:root[data-theme=dark] .tpm-tool{--ink:#e9eef8;--muted:#b1bacc;--bg:#111827;--surface:#1b2536;--line:#334157;--shadow:0 12px 36px #0003;color-scheme:dark}
@media(max-width:760px){.tpm-layout{grid-template-columns:1fr;gap:22px}.tpm-stage{min-height:320px}.tpm-settings{border-top:1px solid var(--line);padding-top:22px}.tpm-preview-wrap{display:block}.tpm-tool .tpm-preview{max-height:240px}}
@media(max-width:480px){.tpm-engine{padding:16px;border-radius:18px}.tpm-top{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:18px}.tpm-badge{font-size:10px}.tpm-drop{padding:18px 12px}.tpm-stage{padding:24px;min-height:310px}.tpm-toolbar button{flex:1}.tpm-print{grid-template-columns:1fr;padding:16px;gap:18px}.tpm-sheet-wrap{max-width:180px;width:100%;margin:auto}.tpm-bottom>span{width:100%;margin:8px 0 0}.tpm-steps{font-size:11px;gap:7px}.tpm-steps span:not(:last-child):after{margin-left:7px}.tpm-section-heading{flex-wrap:wrap}}
