@font-face{font-family:Manrope;src:url('/fonts/manrope-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Manrope;src:url('/fonts/manrope-latin-600-normal.woff2') format('woff2');font-weight:600;font-display:swap}@font-face{font-family:Manrope;src:url('/fonts/manrope-latin-800-normal.woff2') format('woff2');font-weight:800;font-display:swap}

:root {
  --ink: #172131; --muted: #586273; --surface: #f6f8fc;
  --line: #dbe1eb; --accent: #2458e6; --stage: #202735;
  --radius: 8px; --danger: #a32132; --success: #216448;
  color-scheme: light; font-family: Manrope, Arial, sans-serif;
  color: var(--ink); background: var(--surface); font-size: 16px; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; color: #536079; background: #e6eaf2; }
button:not(:disabled):active { transform: translateY(1px); }
:where(button,a,input,select,summary,canvas):focus-visible { outline: 3px solid #2458e6; outline-offset: 4px; }
.stage :focus-visible { outline-color: #f0b744; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: #c9d7ff; color: var(--ink); }
input { caret-color: var(--accent); }
input::placeholder { color: #657184; opacity: 1; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
p { line-height: 1.6; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin-bottom: 10px; text-wrap: balance; }
h2 { font-size: 1.125rem; letter-spacing: -.02em; font-weight: 800; margin-bottom: 22px; }
h3 { font-size: .9375rem; font-weight: 800; margin-bottom: 8px; }
.skip-link { position: fixed; left: 20px; top: -80px; padding: 12px 18px; background: white; z-index: 20; }
.skip-link:focus { top: 12px; }
.header { height: 76px; padding: 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: white; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.brand svg { width: 34px; height: 34px; stroke: none; }
.brand span { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-left: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.privacy { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.privacy svg { width: 17px; height: 17px; }
main { max-width: 1180px; margin: auto; padding: 0 36px; }
.workflow-nav { border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.workflow-nav ol { list-style: none; display: flex; padding: 0; margin: 0; gap: 44px; }
.workflow-nav li { position: relative; }
.workflow-nav button { display: flex; align-items: center; gap: 10px; padding: 20px 0 18px; min-height: 76px; background: transparent; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.workflow-nav button[aria-current] { color: var(--accent); border-color: var(--accent); }
.workflow-nav button:disabled { background: transparent; color: #778195; }
.step-number { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #acb8ca; border-radius: 50%; font-size: 12px; font-variant-numeric: tabular-nums; }
[aria-current] .step-number { background: var(--accent); border-color: var(--accent); color: white; }
.workflow-nav .complete .step-number { background: #e7eefb; border-color: #b7c8f2; color: var(--accent); }
.intro { margin-bottom: 34px; }
.intro p { font-size: 15px; color: var(--muted); margin-bottom: 0; max-width: 66ch; }
.requirements-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 80px; max-width: 920px; }
.destination, .spec-column, .editor, .tools-rail, .export { min-width: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
input[type=number],input[type=search],select { width: 100%; min-height: 48px; border: 1px solid #bdc8d9; border-radius: var(--radius); background: white; padding: 0 12px; color: var(--ink); font-size: 15px; }
input[aria-invalid=true] { border-color: var(--danger); }
select { padding-right: 28px; }
input[type=search] { padding-left: 40px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; top: 15px; left: 13px; color: var(--muted); width: 18px; height: 18px; }
.quick-countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.quick-countries button { background: #e9eef9; color: #314263; font-size: 13px; padding: 10px 15px; border-radius: 6px; min-height: 44px; }
.quick-countries button.active { background: var(--accent); color: white; }
.field-hint, .field-error { font-size: 13px; margin: 8px 0; }
.field-hint { color: var(--muted); }
.field-error { color: var(--danger); }
.preset-summary { padding: 0; }
.tag { display: inline-block; color: #315992; background: #e7eefb; font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 4px; }
.tag.custom { color: #775012; background: #f8eed8; }
.preset-summary h3 { font-size: 2.25rem; letter-spacing: -.03em; margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.preset-summary p { font-size: 14px; color: var(--muted); margin-bottom: 12px; max-width: 52ch; }
.preset-summary a { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }
.preset-summary a svg { width: 14px; height: 14px; }
#checked { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 8px; }
summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
details[open]>summary::after { transform: rotate(225deg); }
.custom-fields { padding-bottom: 12px; }
.custom-fields label:first-child { margin-top: 4px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair label { margin-top: 14px !important; }
.destination-note { display: flex; gap: 10px; margin-top: 16px; color: var(--muted); }
.destination-note svg { width: 18px; height: 18px; margin-top: 3px; }
.destination-note p { font-size: 12px; margin: 0; }
.primary,.secondary { min-height: 48px; border-radius: var(--radius); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; transition: background-color 150ms ease-out; }
.primary { background: var(--accent); color: white; }
.primary:not(:disabled):hover { background: #1947c5; }
.secondary { background: white; color: var(--ink); border: 1px solid #bdc8d9; width: 100%; }
.secondary:not(:disabled):hover { background: #edf1fa; }
.text-button { background: transparent; color: var(--accent); padding: 8px 0; font-size: 13px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.text-button:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { background: transparent; }
.text-button svg { width: 17px; height: 17px; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; }
.step-actions p { font-size: 13px; color: var(--muted); margin: 0; }
.next-action { display: flex; align-items: center; gap: 20px; }
.next-action>span { font-size: 13px; color: var(--muted); }
.selection-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin: -10px 0 20px; padding-bottom: 10px; font-size: 13px; }
.selection-summary>span { font-weight: 600; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 32px; align-items: start; }
.editor-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 10px; gap: 12px; }
.editor-top h2 { margin: 0; }
.stage { background: var(--stage); min-height: 460px; border-radius: 16px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 28px 60px; overflow: hidden; }
.stage.dragover { outline: 3px solid #849fe9; outline-offset: 4px; }
.stage-meta { position: absolute; left: 20px; right: 20px; top: 18px; display: flex; gap: 12px; justify-content: space-between; color: #c0c8d8; font-size: 12px; }
.stage-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-meta span:last-child { white-space: nowrap; }
.frame { max-width: 100%; line-height: 0; box-shadow: 0 10px 28px #0a101a70; display: flex; justify-content: center; }
.frame canvas { max-width: 100%; height: auto; width: 100%; touch-action: none; cursor: grab; display: block; }
.frame canvas:active { cursor: grabbing; }
.empty { color: #f2f5ff; text-align: center; padding: 20px 0; }
.upload-symbol { width: 70px; height: 70px; margin: 0 auto 20px; display: grid; place-items: center; color: #a8bce9; }
.upload-symbol svg { width: 58px; height: 58px; stroke-width: 1.6; }
.empty h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; margin-bottom: 12px; }
.empty p { font-size: 14px; color: #bec8dc; margin-bottom: 24px; }
.empty>span { display: block; margin-top: 18px; font-size: 12px; color: #b6c0d2; line-height: 1.5; }
.stage-bottom { position: absolute; bottom: 10px; left: 20px; right: 20px; display: flex; gap: 12px; justify-content: space-between; align-items: center; color: #c0c8d8; font-size: 12px; min-height: 40px; }
.guide-toggle { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 400; margin: 0; white-space: nowrap; min-height: 44px; }
.guide-toggle input { accent-color: #9db6ff; width: 16px; height: 16px; }
.photo-help { margin-top: 54px; }
.photo-help h2 { margin-bottom: 18px; }
.photo-help ul { padding: 0 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.photo-help li { padding-left: 4px; margin-bottom: 16px; }
.privacy-note { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; display: flex; gap: 12px; color: var(--muted); }
.privacy-note p { font-size: 13px; margin: 0; }
.privacy-note svg { margin-top: 2px; width: 18px; }
#photo-tools { padding-top: 8px; }
.mobile-tool-nav { display: none; }
.adjustment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adjustment-head h3 { margin: 0; }
.sliders label { margin: 12px 0; }
.sliders label>span { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.sliders output { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.sliders input { width: 100%; accent-color: var(--accent); height: 44px; margin: 2px 0 0; cursor: pointer; }
.align-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.align-row>div { display: flex; gap: 7px; }
.align-row button { min-height: 44px; min-width: 44px; background: white; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font-size: 12px; padding: 0 10px; color: var(--ink); }
.align-row svg { width: 17px; height: 17px; }
.background-controls { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 6px; }
.muted { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.ai-button { justify-content: flex-start; font-size: 13px; padding: 12px; }
.ai-button svg { color: var(--accent); width: 18px; height: 18px; }
.ai-button>span { font-size: 12px; background: #edf1fd; color: var(--accent); padding: 2px 5px; border-radius: 4px; margin-left: auto; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 12px; }
.swatches button,.custom-color { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid #a7b3c6; position: relative; background: var(--swatch); margin: 0; display: grid; place-items: center; cursor: pointer; }
.swatches button.selected { outline: 2px solid var(--accent); outline-offset: 3px; }
.swatches>span { font-size: 12px; color: var(--muted); }
.custom-color { overflow: hidden; background: white; }
.custom-color:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.custom-color input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.custom-color svg { width: 16px; height: 16px; pointer-events: none; }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0; }
.editing-note { background: #edf1f8; color: #4c5b73; font-size: 12px; line-height: 1.6; padding: 14px; border-radius: 8px; margin-top: 16px; }
.inline-warning { background: #faf0d8; color: #735009; padding: 12px 14px; border-radius: 8px; font-size: 13px; margin: 12px 0 0; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
.preview-stage { background: #e8edf5; border-radius: 16px; min-height: 450px; padding: 36px; display: flex; align-items: center; justify-content: center; }
.preview-stage canvas { max-width: 100%; max-height: 430px; width: auto; height: auto; object-fit: contain; box-shadow: 0 12px 32px #17213122; }
.review-image>p { font-size: 12px; color: var(--muted); text-align: center; margin: 16px 0 4px; }
.review-image>.text-button { display: flex; margin: auto; }
.export h2 { margin-bottom: 8px; }
.file-details { margin: 24px 0; }
.file-details>div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.file-details dt { color: var(--muted); flex-shrink: 0; }
.file-details dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.file-details dd.error { color: var(--danger); }
.download { width: 100%; margin-top: 16px; }
.download svg { width: 18px; height: 18px; }
.success-note { background: #e8f3ec; color: var(--success); font-size: 13px; padding: 12px; margin: 12px 0 0; border-radius: 8px; }
.submission-note { margin-top: 28px; }
.submission-note h3 { font-size: 13px; }
.submission-note p { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.submission-note a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.photo-check { font-size: 13px; color: var(--muted); margin-top: 14px; }
.photo-check summary { color: var(--ink); }
.photo-check ul { padding-left: 18px; line-height: 1.6; }
.photo-check li { margin-bottom: 6px; }
.photo-check p { font-size: 12px; }
.status { font-size: 13px; color: var(--muted); margin: 20px 0 0; overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.error { color: var(--danger); padding: 12px 14px; background: #fae9eb; border-radius: 8px; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; margin-top: 36px; color: var(--muted); font-size: 12px; }
.busy-overlay { position: absolute; inset: 0; background: #202735f5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 28px; color: #f2f5ff; }
.busy-overlay strong { font-size: 15px; font-weight: 600; }
.busy-overlay p { font-size: 13px; color: #bac6db; margin: 0; }
.spinner { height: 30px; width: 30px; border: 2px solid #586887; border-top-color: #adc1ff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 950px) {
  .header { padding: 0 24px; }
  main { padding: 0 24px; }
  .requirements-layout { gap: 40px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 24px; }
  .review-layout { gap: 30px; grid-template-columns: minmax(0,1fr) 320px; }
  .stage { min-height: 430px; padding-left: 20px; padding-right: 20px; }
  .stage-bottom { font-size: 12px; }
  .stage-bottom>span { max-width: 125px; }
  .align-row>div { gap: 5px; }
  .preview-stage { min-height: 380px; padding: 24px; }
}
@media (max-width: 700px) {
  .header { height: 64px; padding: 0 18px; }
  .brand { font-size: 22px; }
  .brand svg { width: 30px; height: 30px; }
  .brand span { display: none; }
  .privacy { font-size: 12px; max-width: 146px; gap: 6px; line-height: 1.4; }
  .privacy svg { width: 15px; height: 15px; }
  main { padding: 0 18px; }
  .workflow-nav { margin-bottom: 24px; }
  .workflow-nav ol { justify-content: space-between; gap: 8px; }
  .workflow-nav button { font-size: 12px; gap: 6px; min-height: 64px; padding: 14px 0 12px; }
  .step-number { width: 22px; height: 22px; font-size: 12px; }
  h1 { font-size: 1.625rem; margin-bottom: 8px; }
  h2 { font-size: 1rem; margin-bottom: 16px; }
  .intro { margin-bottom: 24px; }
  .intro p { font-size: 14px; }
  .requirements-layout { grid-template-columns: 1fr; gap: 28px; }
  .spec-column { border-top: 1px solid var(--line); padding-top: 24px; }
  .spec-column>h2 { margin-bottom: 14px; }
  .preset-summary h3 { font-size: 1.875rem; margin: 10px 0; }
  .preset-summary p { font-size: 13px; }
  .destination label:first-of-type { margin-top: 0; }
  input[type=number],input[type=search],select { font-size: 16px; }
  .quick-countries { gap: 8px; margin: 12px 0 18px; }
  .quick-countries button { flex: 1; padding: 10px; }
  .step-actions { position: sticky; bottom: 0; z-index: 4; background: var(--surface); margin: 24px -18px 0; padding: 14px 18px max(14px, env(safe-area-inset-bottom)); gap: 16px; }
  #panel-1>.step-actions { flex-direction: column; gap: 10px; }
  #panel-1>.step-actions .primary { width: 100%; }
  #requirements-hint { font-size: 12px; text-align: center; }
  .next-action { margin-left: auto; gap: 0; }
  .next-action>span { display: none; }
  .step-actions .primary { min-height: 48px; padding: 12px 16px; }
  .back-button { font-size: 12px; }
  .back-button svg { width: 15px; }
  .selection-summary { font-size: 12px; margin-bottom: 8px; gap: 12px; }
  .selection-summary>span { line-height: 1.5; }
  .selection-summary .text-button { font-size: 12px; max-width: 114px; text-align: right; flex-shrink: 0; }
  .editor-layout { display: flex; flex-direction: column; gap: 16px; }
  .editor { width: 100%; }
  body.has-photo .editor-layout { height: calc(100svh - 88px); min-height: 480px; gap: 12px; }
  body.has-photo .editor { flex-shrink: 0; background: var(--surface); padding-top: 8px; }
  body.has-photo .tools-rail { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 4px 12px; scrollbar-color: #acb8ca var(--surface); }
  body.has-photo #panel-2>.step-actions { margin-top: 0; }
  .editor-top { margin-bottom: 4px; }
  .editor-top h2 { font-size: 14px; }
  .stage { min-height: 350px; border-radius: 12px; padding: 42px 20px 56px; }
  body.has-photo .stage { height: min(360px, 42svh); min-height: 250px; }
  body.has-photo .frame { width: auto !important; max-height: 100%; max-width: 100%; box-shadow: none; }
  body.has-photo .frame canvas { width: auto; max-width: 100%; max-height: calc(min(360px, 42svh) - 98px); object-fit: contain; }
  .stage-meta { left: 14px; right: 14px; top: 15px; font-size: 12px; }
  .stage-meta span:first-child { max-width: 68%; }
  .stage-bottom { left: 14px; right: 14px; bottom: 5px; }
  .stage-bottom>span { max-width: 150px; }
  .guide-toggle { font-size: 12px; gap: 5px; }
  .empty { padding: 8px 0; }
  .upload-symbol { margin-bottom: 14px; width: 52px; height: 52px; }
  .upload-symbol svg { width: 48px; height: 48px; }
  .empty h3 { font-size: 20px; }
  .empty p { font-size: 13px; margin-bottom: 18px; }
  .empty>span { font-size: 12px; max-width: 260px; margin: 14px auto 0; }
  .tools-rail { width: 100%; }
  .photo-help { margin-top: 8px; }
  .photo-help li { margin-bottom: 10px; }
  .privacy-note { padding-top: 16px; margin-top: 18px; }
  #photo-tools { padding-top: 0; }
  .mobile-tool-nav { display: flex; border-bottom: 1px solid var(--line); gap: 24px; margin-top: 8px; margin-bottom: 0; }
  .mobile-tool-nav button { color: var(--muted); background: transparent; min-height: 48px; font-size: 14px; padding: 8px 0; border-bottom: 2px solid transparent; }
  .mobile-tool-nav button[aria-pressed=true] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
  #photo-tools[data-tool=crop] .background-controls, #photo-tools[data-tool=background] .adjustments { display: none; }
  .background-controls { margin-top: 0; padding-top: 8px; border-top: 0; }
  .sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .sliders label { margin: 8px 0; }
  .align-row { justify-content: space-between; margin-bottom: 6px; }
  .align-row>div { gap: 6px; }
  .inline-warning { font-size: 12px; margin-top: 8px; padding: 10px 12px; }
  .review-layout { grid-template-columns: 1fr; gap: 28px; }
  .preview-stage { min-height: 300px; padding: 24px; }
  .preview-stage canvas { max-height: 350px; }
  .review-image>p { font-size: 12px; }
  .export { padding-bottom: 8px; }
  .file-details { margin: 18px 0 24px; }
  .download { min-height: 52px; }
  footer { flex-direction: column; gap: 6px; margin-top: 28px; font-size: 12px; }
  .status { font-size: 12px; }
}
@media (max-width: 360px) {
  main { padding: 0 14px; }
  .header { padding: 0 14px; }
  .workflow-nav button { font-size: 12px; gap: 4px; }
  .step-number { width: 20px; height: 20px; }
  .stage-bottom>span { max-width: 110px; }
  .align-row { align-items: flex-start; flex-direction: column; }
  .step-actions { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  body.has-photo .editor-layout { height: auto; min-height: 0; }
  body.has-photo .tools-rail { flex: auto; overflow-y: visible; }
  body.has-photo .stage { height: 320px; }
  body.has-photo .frame canvas { max-height: 222px; }
  body.has-photo #panel-2>.step-actions { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
