[hidden] { display: none !important; }
.navigation nav a.nav-bag { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
input, select, textarea { max-width: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.holiday-extra { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; margin-top: 44px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; }
.holiday-extra h3 { font: 30px Georgia, serif; margin-top: 12px; }
.holiday-extra p:not(.eyebrow) { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.accessory-showcase { display: flex; justify-content: space-around; gap: 20px; }
.accessory-showcase img { mix-blend-mode: multiply; width: 90px; height: 90px; object-fit: contain; }
.accessory-showcase figcaption { text-align: center; font-size: 11px; margin-top: 12px; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.faq-layout h2 { margin-top: 15px; }
.faq-layout > div > p:not(.eyebrow) { color: var(--muted); margin-top: 20px; line-height: 1.7; font-size: 14px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 22px 28px 22px 0; font-size: 16px; color: var(--green); list-style: none; position: relative; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; font-size: 22px; top: 17px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { font-size: 14px; color: var(--muted); line-height: 1.8; padding-bottom: 22px; }
.workspace, .purchase-flow { padding-block: 30px 64px; }
.flow-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.flow-heading h1 { font-size: clamp(30px, 3.2vw, 46px); margin-top: 10px; }
.flow-heading .eyebrow { margin-top: 16px; color: var(--gold); font-size: 9px; }
.back-link { font-size: 12px; display: inline-block; padding-block: 8px; color: var(--muted); }
.journey { display: flex; list-style: none; padding: 0; margin: 0 0 8px; gap: 24px; font-size: 11px; text-align: center; }
.journey li { color: var(--muted); min-width: 64px; }
.journey li > span { display: grid; place-items: center; border: 1px solid var(--line); width: 29px; height: 29px; border-radius: 50%; margin: 0 auto 9px; font-size: 13px; }
.journey li[aria-current='step'] { color: var(--green); font-weight: 650; }
.journey li[aria-current='step'] > span { color: var(--paper-light); background: var(--green); border-color: var(--green); }
.service-notice, .notice { border: 1px solid #dfc8a7; background: #f7ead6; border-radius: 12px; padding: 16px 20px; font-size: 12px; line-height: 1.6; margin-bottom: 24px; }
.service-notice { display: flex; gap: 24px; align-items: center; }
.service-notice > strong { color: #75471f; flex-shrink: 0; }
.service-notice p { color: #725c40; max-width: 950px; }
.notice-error { background: #f9e8df; border-color: #c39b82; color: #7e3225; }
.workspace-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 28px; align-items: start; }
.preview-column { position: sticky; top: 24px; }
.art-board { background: var(--paper-light); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); position: relative; min-height: 500px; }
.art-empty { position: relative; min-height: 620px; display: grid; place-items: center; padding: 40px; text-align: center; }
.art-empty > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.art-empty > div { position: relative; }
.art-empty h2 { font-size: 44px; margin-block: 18px; }
.art-empty p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.art-empty .button { margin-top: 30px; font-size: 14px; }
.portrait-result { min-height: 620px; padding: 35px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.portrait-result > img { max-height: 570px; object-fit: contain; width: 100%; mix-blend-mode: multiply; border-radius: 14px; }
.portrait-result figcaption { position: relative; text-align: center; display: grid; gap: 10px; padding-top: 14px; }
.portrait-result figcaption > span:last-child { color: var(--muted); font-size: 11px; }
.portrait-name { font: italic 38px Georgia, serif; color: var(--green); word-break: break-word; text-align: center; max-width: 100%; }
.preview-label { position: absolute; z-index: 1; top: 18px; left: 18px; font-size: 10px; padding: 8px 12px; border-radius: 20px; background: #fff9f1ed; color: #7f5427; border: 1px solid #dfc8a7; }
.zoom-button { position: absolute; z-index: 2; top: 18px; right: 18px; padding: 8px 12px; min-height: 34px; font-size: 11px; background: var(--paper-light); border: 1px solid var(--line); color: var(--green); border-radius: 20px; }
.preview-watermark { position: absolute; top: 48%; left: 0; right: 0; transform: rotate(-25deg); color: #fffdf1b8; font: italic clamp(32px, 4vw, 60px) Georgia, serif; text-align: center; text-shadow: 0 1px 6px #664b3560; pointer-events: none; }
.preview-footnote { font-size: 11px; line-height: 1.6; color: var(--muted); text-align: center; max-width: 550px; margin: 14px auto 0; }
.photo-comparison { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 24px; }
.photo-comparison > div { text-align: center; font-size: 11px; color: var(--muted); }
.photo-comparison img { width: 88px; height: 100px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.photo-comparison > span { color: var(--gold); font-size: 28px; }
.studio-form { display: grid; gap: 20px; min-width: 0; }
.control-card { margin: 0; padding: 18px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-light); }
.control-card > legend { font-size: 17px; font-weight: 650; letter-spacing: -.025em; color: var(--green); padding-right: 8px; }
.control-number { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #f3e0c7; color: #885628; margin-right: 8px; font-size: 14px; }
.upload-area { padding: 18px; text-align: center; border: 1px dashed #cdb391; border-radius: 12px; }
.upload-area.dragging { background: #efe4d2; border-color: var(--green); }
.upload-button { display: flex; flex-direction: column; align-items: center; cursor: pointer; gap: 8px; padding: 12px; color: var(--green); font-size: 12px; }
.upload-button > span:first-child { font-size: 30px; line-height: 1; }
.upload-button strong { font-size: 15px; }
.upload-area p { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.upload-area:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 4px; }
.upload-summary { display: flex; align-items: center; gap: 16px; }
.upload-summary > img { width: 72px; height: 80px; object-fit: cover; border-radius: 10px; }
.upload-summary strong { font-size: 13px; overflow-wrap: anywhere; }
.upload-summary p { font-size: 11px; margin-top: 6px; color: var(--muted); }
.upload-summary .text-link { margin-top: 4px; min-height: 34px; font-size: 11px; cursor: pointer; }
.text-button { padding: 10px 0; min-height: 40px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; font-size: 12px; }
.control-card input[type='text'] { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #d9c7ae; background: #fffcf7; color: var(--ink); font-size: 17px; }
.field-help { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.image-option, .accessory-option { display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; padding: 8px; border: 1px solid var(--line); border-radius: 13px; text-align: center; cursor: pointer; min-width: 0; }
.image-option input, .accessory-option input { position: absolute; bottom: 12px; left: 8px; width: 12px; height: 12px; margin: 0; accent-color: var(--green); }
.image-option img { width: 100%; height: 132px; object-fit: contain; mix-blend-mode: multiply; }
.image-option > span { font-size: 10px; line-height: 1.5; padding: 10px 0 0 12px; min-height: 37px; display: grid; place-items: center; }
.image-option:has(input:checked), .accessory-option:has(input:checked) { outline: 1px solid var(--green); border-color: var(--green); background: #f3eddf; }
.image-option:has(input:focus-visible), .accessory-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.accessory-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.accessory-option > img, .no-extra { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.no-extra { display: grid; place-items: center; font-size: 36px; color: var(--gold); font-family: Georgia, serif; }
.accessory-option > span:last-child { font-size: 10px; line-height: 1.4; min-height: 40px; display: grid; place-items: center; padding: 10px 0 0 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); position: relative; }
.switch-row strong { display: block; font-size: 13px; color: var(--green); }
.switch-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.switch-row > input { width: 1px; height: 1px; opacity: 0; position: absolute; right: 12px; }
.switch-track { width: 44px; height: 26px; background: #d7ccba; border-radius: 30px; flex-shrink: 0; padding: 3px; }
.switch-track::after { content: ''; display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-light); }
.switch-row input:checked + .switch-track { background: var(--green); }
.switch-row input:checked + .switch-track::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch-track { outline: 3px solid var(--gold); outline-offset: 4px; }
.studio-actions { text-align: center; }
.studio-actions > .button { width: 100%; font-size: 17px; }
.button:disabled, .button-unavailable { background: #e4ddd2; color: #807666; cursor: not-allowed; }
.processing-panel { position: absolute; inset: 0; z-index: 3; background: #fff9f1f2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.processing-panel h2 { font-size: 30px; margin-block: 24px 12px; }
.processing-panel p { font-size: 13px; color: var(--muted); }
.loading-ring { width: 42px; height: 42px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: portrait-spin 1.2s linear infinite; }
@keyframes portrait-spin { to { transform: rotate(360deg); } }
.portrait-dialog { width: min(800px, 92vw); max-height: 90dvh; border: 1px solid var(--line); background: var(--paper-light); border-radius: 20px; padding: 48px 24px 24px; }
.portrait-dialog::backdrop { background: #10251fe0; }
.portrait-dialog .close-button { position: absolute; right: 10px; top: 10px; }
.portrait-dialog img { max-height: 76dvh; width: 100%; object-fit: contain; }
body:has(.portrait-dialog[open]) { overflow: hidden; }
.confirmation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.confirmation-art { padding: 36px; min-height: 0; }
.confirmation-art > img { max-height: 620px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.confirmation-art .portrait-name { margin-block: 14px 8px; }
.confirmation-summary { padding-right: 30px; }
.confirmation-summary h2 { margin-top: 16px; font-size: 42px; }
.confirmation-summary > p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 20px; }
.design-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; border-block: 1px solid var(--line); margin-block: 28px; padding-block: 24px; font-size: 13px; line-height: 1.5; }
.design-details dt { color: var(--muted); }
.design-details dd { color: var(--green); margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.confirmation-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.confirmation-check input { margin-top: 5px; accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.confirmation-summary > .button { width: 100%; font-size: 16px; }
.format-intro { text-align: center; margin-block: 44px; }
.format-intro p { margin-top: 16px; color: var(--muted); }
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.format-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-light); align-items: center; }
.format-art { position: relative; }
.format-art > img, .ornament-card > img { width: 100%; min-height: 300px; height: 100%; object-fit: cover; border-radius: 12px; }
.format-art > img { object-fit: contain; mix-blend-mode: multiply; }
.format-copy h2 { font-size: 32px; margin-block: 18px; }
.format-copy > p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.format-copy p.format-price { font-size: 30px; font-weight: 650; color: var(--green); margin-block: 10px 18px; }
.product-label { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 7px 12px; background: #e9e6ca; color: var(--green); border-radius: 20px; }
.benefits { padding-left: 17px; margin-block: 18px 24px; font-size: 12px; line-height: 1.8; }
.benefits li { margin-top: 12px; }
.format-copy > .button { width: 100%; font-size: 12px; padding: 14px 18px; gap: 10px; }
.format-copy > .button > span { font-size: 24px; }
.format-copy .field-help { font-size: 10px; }
.format-art .preview-watermark { font-size: 28px; }
.empty-state { text-align: center; padding: 70px 20px 100px; }
.empty-state h2 { margin-top: 20px; }
.empty-state p:not(.eyebrow) { margin-block: 20px 30px; line-height: 1.8; color: var(--muted); }
.checkout-preview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; padding-block: 50px 80px; }
.checkout-preview h2 { margin-top: 20px; }
.checkout-preview > div > p:not(.eyebrow) { font-size: 15px; line-height: 1.8; color: var(--muted); margin-block: 24px; max-width: 480px; }
.order-preview { border: 1px solid var(--line); padding: 32px; border-radius: 20px; background: var(--paper-light); }
.order-preview > img { width: 100px; height: 120px; object-fit: contain; border-radius: 8px; margin-bottom: 20px; }
.order-total { display: flex; justify-content: space-between; color: var(--green); font-size: 20px; }
.content-page { max-width: 800px; margin: 60px auto 90px; line-height: 1.8; }
.content-page h1 { font-size: 42px; margin-bottom: 30px; }
.content-page h2 { font-size: 26px; margin-block: 30px 16px; }
.content-page p { margin-block: 16px; }
.content-page form { display: grid; gap: 12px; }
.content-page input, .content-page textarea, .empty-state input { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-light); font: inherit; }
.content-page label { margin-top: 12px; font-size: 14px; color: var(--green); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 32px; }
.catalog-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.catalog-card h2 { font-size: 24px; margin-block: 16px 10px; }
.cart-section { padding-block: 44px 80px; }
.cart-section h1 { font-size: 42px; margin-bottom: 32px; }
.cart-line { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.cart-line img { width: 100px; height: 120px; object-fit: contain; }
.cart-line h2 { font: 24px Georgia, serif; }
.cart-line dl { margin-block: 12px; font-size: 12px; line-height: 1.6; }
.cart-line dt { color: var(--muted); }
.cart-line dd { margin: 0 0 8px; }
.cart-line a { text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.cart-summary { margin: 32px 0 0 auto; max-width: 380px; text-align: right; }
.cart-summary p { margin-block: 18px; }
.cart-summary .button { width: 100%; }
@media (max-width: 1180px) {
  .workspace-layout { gap: 20px; grid-template-columns: 1fr 1fr; }
  .art-empty, .portrait-result { min-height: 540px; }
  .portrait-result { padding: 25px; }
  .image-option img { height: 110px; }
  .image-option > span { font-size: 9px; }
  .format-grid { gap: 20px; }
  .format-card { grid-template-columns: 1fr; }
  .format-art > img, .ornament-card > img { min-height: 0; max-height: 350px; object-fit: contain; }
}
@media (max-width: 800px) {
  .navigation nav a.nav-bag { display: inline-flex; }
  .flow-heading { display: block; }
  .journey { justify-content: flex-start; margin-top: 24px; }
  .workspace-layout { grid-template-columns: 1fr; }
  .preview-column { position: static; }
  .art-empty, .portrait-result { min-height: 420px; }
  .portrait-result > img { max-height: 440px; }
  .control-card { padding: 20px; }
  .image-option img { height: 155px; }
  .image-option > span { font-size: 12px; }
  .accessory-option > span:last-child { font-size: 12px; }
  .service-notice { align-items: flex-start; gap: 8px; flex-direction: column; }
  .confirmation-layout { grid-template-columns: 1fr; gap: 30px; }
  .confirmation-summary { padding-right: 0; }
  .confirmation-art > img { max-height: 460px; }
  .checkout-preview { grid-template-columns: 1fr; gap: 32px; }
  .holiday-extra, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .flow-heading h1 { font-size: 34px; }
  .workspace, .purchase-flow { padding-block: 20px 40px; }
  .journey { gap: 24px; font-size: 10px; }
  .art-empty { padding: 20px; }
  .art-empty h2 { font-size: 36px; }
  .art-board { border-radius: 18px; min-height: 0; }
  .portrait-result { padding: 42px 18px 24px; }
  .portrait-name { font-size: 32px; }
  .photo-comparison { margin-bottom: 4px; }
  .control-card { padding: 16px; }
  .control-card > legend { font-size: 16px; }
  .image-option img { height: 112px; }
  .image-option > span { font-size: 10px; }
  .accessory-option { padding: 5px; }
  .accessory-option > img, .no-extra { width: 50px; height: 50px; }
  .accessory-option > span:last-child { font-size: 9px; }
  .studio-actions { position: sticky; bottom: 0; z-index: 4; background: var(--paper); padding: 12px 0 6px; }
  .studio-actions .text-button { min-height: 32px; font-size: 11px; padding-block: 5px; }
  .format-grid { grid-template-columns: 1fr; }
  .format-card { grid-template-columns: .85fr 1fr; padding: 16px; gap: 16px; }
  .format-copy h2 { font-size: 25px; }
  .benefits { font-size: 11px; }
  .format-intro { margin-block: 32px; }
  .format-intro h2 { font-size: 29px; }
  .format-intro p { font-size: 13px; }
  .format-art .preview-watermark { font-size: 20px; }
  .confirmation-summary h2 { font-size: 36px; }
  .design-details { font-size: 12px; }
  .holiday-extra { padding: 24px; margin-top: 32px; }
  .accessory-showcase { gap: 12px; }
  .accessory-showcase img { width: 70px; height: 70px; }
  .faq-list summary { font-size: 15px; }
  .footer-links { justify-content: center; }
  .content-page { margin-block: 36px 60px; }
  .cart-line { grid-template-columns: 70px 1fr; gap: 16px; }
  .cart-line img { width: 70px; height: 85px; }
  .cart-line > p { grid-column: 2; }
}
@media (max-width: 360px) {
  .format-card { grid-template-columns: 1fr; }
  .control-card > legend { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .loading-ring { animation: none; } }
