:root {
  color-scheme: light;
  --bg: #faf8fc;
  --ink: #26212d;
  --muted: #655d70;
  --purple: #693b91;
  --purple-dark: #4d256d;
  --line: #e6dfeb;
  --paper: #fff;
  --soft: #f1e9f7;
  --radius: 22px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; line-height: 1.6; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.18; word-break: keep-all; }
p { word-break: keep-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8f52bc; outline-offset: 4px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .75rem; background: #fff; }
.shell { width: min(100% - 80px, 1200px); margin-inline: auto; }
.site-header { background: #fdfbfe; border-bottom: 1px solid #eee9f0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-actions > * { white-space: nowrap; }
.account-action { padding-inline: 12px; }
.account-status { padding: 0 0 9px; color: var(--purple-dark); font-size: .86rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.32rem; letter-spacing: -.055em; white-space: nowrap; }
.brand-icon { position: relative; display: block; width: 34px; height: 34px; border-radius: 12px; background: #ede3f5; flex: none; }
.brand-icon i, .brand-icon b { background: #794aa0; position: absolute; transform: rotate(var(--tilt, 0deg)); }
.brand-icon i { width: 4px; height: 6px; border-radius: 50%; }
.brand-icon i:nth-child(1) { left: 7px; top: 13px; --tilt: -30deg; }
.brand-icon i:nth-child(2) { left: 12px; top: 9px; --tilt: -15deg; }
.brand-icon i:nth-child(3) { left: 18px; top: 9px; --tilt: 14deg; }
.brand-icon i:nth-child(4) { left: 23px; top: 13px; --tilt: 29deg; }
.brand-icon b { top: 17px; left: 11px; width: 12px; height: 9px; border-radius: 65% 65% 53% 53%; }
.nav, .footer-inner nav { display: flex; gap: 2.15rem; align-items: center; }
.nav a, .footer-inner nav a { font-size: .94rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.nav a:hover, .footer-inner nav a:hover, .nav a[aria-current="page"] { color: var(--purple-dark); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .4em; }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; font-size: .92rem; line-height: 1.25; text-align: center; color: var(--ink); background: none; transition: background-color 160ms, border-color 160ms, color 160ms, box-shadow 160ms; }
.button-primary, .button-header { color: #fff; background: var(--purple); }
.button-header { padding-inline: 19px; }
.button-primary:hover:not(:disabled), .button-header:hover { background: var(--purple-dark); }
.button-primary:disabled { opacity: .49; cursor: default; }
.button-outline { background: #fff; border-color: #dfd5e7; color: var(--purple-dark); }
.button-outline:hover { background: #f3eaf9; border-color: #c8b3d7; }
.button-text { color: var(--purple-dark); }
.button-text:hover { background: #e4d5ee; }
.page { min-height: 55vh; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 505px; margin-top: 30px; overflow: hidden; border-radius: 28px; background: #efe5f5; }
.hero-image { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 69%; height: 100%; object-fit: cover; object-position: 57% center; mask-image: linear-gradient(to right, transparent, #000 22%); }
.hero-copy { position: relative; z-index: 1; max-width: 610px; padding: 55px 0 56px clamp(28px, 5vw, 75px); }
.eyebrow { margin-bottom: 22px; color: #603c77; font-size: .9rem; letter-spacing: .025em; font-weight: 750; }
.eyebrow span { margin-right: 6px; font-size: 1.1em; }
.hero h1 { font-size: clamp(3.15rem, 5.5vw, 5rem); font-weight: 850; letter-spacing: -.087em; line-height: 1.06; }
.hero h1 em { display: inline-block; margin-top: .06em; color: #623684; font-style: normal; }
.hero-description { margin-top: 25px; color: #554864; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.75; }
.hero-actions { display: flex; gap: 8px; margin-top: 26px; }
.hero-actions .button-primary { min-height: 49px; padding-inline: 22px; box-shadow: 0 5px 13px #6e3f9222; }
.hero-note { margin-top: 11px; color: #665772; font-size: .84rem; }
.hero-credit { position: absolute; z-index: 2; right: 23px; bottom: 22px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; background: #fff; box-shadow: 0 8px 22px #25152f1c; border-radius: 50px; font-size: .82rem; font-weight: 750; }
.hero-credit:hover { background: #fbf5ff; }
.credit-image { width: 29px; height: 29px; border-radius: 50%; background: #9e9d7b url("./assets/art-oil.webp") center / cover; }
.section-space { margin-top: 66px; }
.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin-bottom: 22px; }
.section-heading h2, .process-panel h2 { font-size: clamp(1.7rem, 3vw, 2.38rem); letter-spacing: -.067em; }
.section-heading p { margin-top: 7px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-card { overflow: hidden; padding: 0; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; }
.gallery-card:hover { border-color: #b99ace; box-shadow: 0 7px 20px #432b6312; }
.gallery-card img { aspect-ratio: 1 / 1; object-fit: cover; background: #e5d8ec; }
.card-label { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding: 12px 15px; }
.card-label strong { font-size: 1.04rem; letter-spacing: -.035em; }
.card-label small { color: var(--muted); font-size: .82rem; text-align: right; }
.process-panel { padding: 34px 36px 38px; background: #f2eaf7; border-radius: var(--radius); }
.process-grid { margin: 25px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.process-grid li { display: flex; gap: 14px; align-items: flex-start; }
.process-grid li > span, .step { display: inline-grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 10px; background: #e5d4f0; color: var(--purple-dark); font-size: .9rem; font-weight: 800; }
.process-grid h3 { margin: 2px 0 5px; font-size: 1.08rem; }
.process-grid p { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-card { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) 40%; gap: 12px; padding: 27px; background: #f2eaf7; border-radius: var(--radius); }
.product-card:first-child { background: #f4eced; }
.product-card h3 { font-size: 1.4rem; letter-spacing: -.055em; }
.product-card p { margin-top: 8px; color: var(--muted); }
.product-card strong { display: block; margin: 11px 0 13px; color: var(--purple-dark); }
.product-card img { object-fit: cover; aspect-ratio: 1; border-radius: 12px; }
.product-card-print img { object-position: 87.5% center; }
.home-products { margin-bottom: 70px; }
.page-inner { padding: 44px 0 75px; }
.page-heading { padding: 30px 35px; margin-bottom: 25px; border-radius: 20px; background: #eee3f4; }
.page-heading h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 850; letter-spacing: -.075em; }
.page-heading p { margin-top: 10px; color: #5d4d6b; }
.gallery-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 5px 0 22px; }
.gallery-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gallery-modes .filter { display: inline-flex; align-items: center; line-height: 1.25; }
.gallery-reference { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 14px; border-radius: 14px; background: var(--soft); }
.gallery-reference img { width: 65px; height: 65px; flex: none; object-fit: cover; border-radius: 9px; }
.gallery-reference h2 { margin-bottom: 4px; font-size: 1.1rem; letter-spacing: -.035em; }
.gallery-reference p { color: var(--muted); font-size: .9rem; }
.gallery-filter select { min-height: 44px; margin: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 8px 18px; border-radius: 100px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.filter:hover, .filter[aria-pressed=true], .filter[aria-current=page] { color: var(--purple-dark); background: #ede0f5; border-color: #cfb8e0; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: 16px 22px; }
.style-card, .upload-card, .edition-card { grid-column: 1; min-width: 0; }
.studio-card { padding: 23px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.studio-card h2, .faq h2 { font-size: 1.26rem; letter-spacing: -.043em; }
.studio-card h2:has(.step) { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.style-collections { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.style-collections .filter { padding-inline: 11px; font-size: .86rem; }
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.style-option { display: flex; align-items: center; gap: 8px; min-height: 57px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-size: .875rem; font-weight: 700; text-align: left; word-break: keep-all; }
.style-option img { width: 35px; height: 35px; border-radius: 7px; object-fit: cover; flex: none; }
.style-option:hover, .style-option[aria-pressed=true] { border-color: #9f75b9; background: #f5ecfa; color: var(--purple-dark); }
.style-option[aria-pressed=true] { box-shadow: inset 0 0 0 1px #9f75b9; }
.style-compare-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--purple-dark); font-size: .88rem; font-weight: 750; text-decoration: underline; text-underline-offset: .2em; }
.dropzone { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fbf7fd; border: 1px dashed #c9afd9; border-radius: 14px; }
.dropzone.is-dragging { background: #ecdcf7; border-color: var(--purple-dark); }
.upload-icon, #photo-thumb { width: 66px; height: 66px; border-radius: 11px; flex: none; }
.upload-icon { display: grid; place-items: center; background: #ede0f4; color: var(--purple-dark); font-size: 1.6rem; font-weight: 550; }
#photo-thumb { object-fit: cover; }
#file-note, .field-hint { color: var(--muted); font-size: .86rem; margin-top: 7px; }
#file-note { overflow-wrap: anywhere; }
.field-error { color: #a5214a; font-size: .9rem; margin-top: 7px; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-card { display: flex; align-items: center; gap: 8px; padding: 11px 9px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio-card:has(input:checked) { background: #f5ecfa; border-color: #9f75b9; }
.radio-card input { accent-color: var(--purple); flex: none; margin: 0; }
.radio-card strong, .order-summary strong { display: block; font-size: .95rem; line-height: 1.35; }
.radio-card small, .order-summary small { color: var(--muted); font-size: .79rem; line-height: 1.35; display: block; }
.radio-card b { margin-left: auto; color: var(--purple-dark); font-size: .82rem; white-space: nowrap; }
.print-options { display: grid; gap: 10px; margin-top: 15px; }
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.print-options label { font-size: .87rem; font-weight: 700; min-width: 0; }
select { display: block; width: 100%; min-height: 43px; margin-top: 5px; padding: 5px 31px 5px 11px; border: 1px solid var(--line); border-radius: 9px; appearance: none; color: var(--ink); background: linear-gradient(45deg, transparent 50%, #6a5278 50%) right 16px center / 5px 5px no-repeat, linear-gradient(135deg,#6a5278 50%, transparent 50%) right 11px center / 5px 5px no-repeat, #fff; }
.order-summary { margin-top: 18px; padding: 13px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
#summary-price { color: var(--purple-dark); font-size: 1.14rem; white-space: nowrap; }
.order-button { width: 100%; }
.preview-card { grid-row: 1 / span 3; grid-column: 2; position: sticky; top: 18px; min-width: 0; scroll-margin-top: 12px; }
.show-size { display: none; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.preview-heading p { margin-top: 5px; font-size: .85rem; color: var(--muted); }
.preview-stage { container-type: inline-size; position: relative; display: flex; align-items: center; justify-content: center; gap: 7%; padding: 18px; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 45% 5%, #f3eaf5, #e2d4e9); min-height: 235px; aspect-ratio: 1.07; }
.preview-picture { width: 75%; max-height: 100%; aspect-ratio: 1; overflow: hidden; border: 4px solid #fff; box-shadow: 0 9px 19px #41245338; }
.preview-picture img { width: 100%; height: 100%; object-fit: cover; }
.preview-stage[data-generated-portrait="true"][data-edition="digital"] .preview-picture img { object-fit: contain; }
.preview-stage[data-edition="print"] .preview-picture { width: var(--print-width); aspect-ratio: var(--print-ratio); border-width: 2px; }
.preview-stage[data-frame="oak"] .preview-picture { border: clamp(4px, 1.9cqw, 9px) solid #b08056; }
.preview-stage[data-frame="walnut"] .preview-picture { border: clamp(4px, 1.9cqw, 9px) solid #5c4035; }
.preview-stage[data-paper="gloss"] .preview-picture { position: relative; }
.preview-stage[data-paper="gloss"] .preview-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(132deg, #fff3, transparent 41%); pointer-events: none; }
.paper-reference { display: none; place-items: center; background: #fff; color: var(--muted); width: var(--paper-width); aspect-ratio: 21 / 29.7; box-shadow: 0 4px 10px #41245326; font-size: clamp(.66rem, 4cqw, .82rem); }
.preview-stage[data-edition="print"] .paper-reference { display: grid; }
.download-button { margin-top: 12px; }
.print-guide { margin-top: 22px; }
.print-guide > p { margin: 8px 0 16px; color: var(--muted); }
.print-guide a, .policy-copy a, #checkout-policy a, .business-info a {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: .17em;
}
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 9px; border-bottom: 1px solid var(--line); }
thead { background: var(--soft); color: var(--purple-dark); }
.print-guide th, .print-guide td { word-break: keep-all; }
.guide-page { max-width: 850px; }
.guide-content ul { padding-left: 21px; color: var(--muted); margin-bottom: 0; }
.policy-copy p { color: var(--muted); margin-top: .65rem; }
.policy-copy p + h2 { margin-top: 1.6rem; }
.faq { margin: 26px 0; }
.faq h2 { margin-bottom: 12px; }
.faq details { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-block: 8px; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { margin: 9px 0 3px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #f3edf7; }
.footer-inner { padding-block: 24px 77px; }
.footer-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-inner nav { flex-wrap: wrap; }
.footer-inner nav a[aria-current="page"] { color: var(--purple-dark); text-decoration: underline; text-underline-offset: .3em; }
.business-info { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.business-info dl { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; margin: 0; }
.business-info dl div { display: flex; flex-wrap: wrap; gap: 0 .55rem; min-width: 0; }
.business-info dt { color: var(--ink); font-weight: 750; }
.business-info dd { margin: 0; overflow-wrap: anywhere; }
.checkout-business { font-size: .81rem; }
dialog { width: min(100% - 28px, 670px); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 16px 80px #21152948; }
dialog::backdrop { background: #23152e99; }
.dialog-inner { padding: 23px; }
.dialog-title { padding-right: 42px; margin-bottom: 15px; }
.dialog-title h2 { font-size: 1.5rem; letter-spacing: -.045em; }
.dialog-title p { margin-top: 5px; color: var(--muted); }
.close-button { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--soft); color: var(--purple-dark); font-size: 1.6rem; line-height: 1; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compare-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 11px; }
.compare-grid figcaption { color: var(--muted); margin-top: 4px; font-size: .85rem; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 16px; }
.gallery-navigation { display: flex; gap: 5px; }
#checkout-dialog { width: min(100% - 28px, 470px); }
#checkout-policy a { display: inline-flex; align-items: center; min-height: 34px; white-space: nowrap; }
#account-dialog { width: min(100% - 28px, 390px); }
#kakao-login { display: inline-flex; border-radius: 6px; }
#kakao-login img { width: 183px; max-width: 100%; height: auto; }
.checkout-preview { width: 76px; height: 90px; object-fit: cover; border-radius: 9px; margin-bottom: 10px; }
.checkout-receipt { margin-bottom: 8px; color: var(--purple-dark); font-weight: 750; }
.checkout-options { margin: 0; }
.checkout-options div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.checkout-options dt { color: var(--muted); flex: none; }
.checkout-options dd { margin: 0; font-weight: 750; text-align: right; }
.checkout-inner .order-button { margin-top: 9px; }
@media (max-width: 1050px) {
  .hero { min-height: 450px; }
  .radio-grid { grid-template-columns: 1fr; }
  .card-label { display: block; }
  .card-label small { display: block; text-align: left; margin-top: 2px; }
}
@media (max-width: 790px) {
  .shell { width: calc(100% - 42px); }
  .header-inner { min-height: 67px; gap: 12px; }
  .nav { gap: .9rem; }
  .hero { min-height: 410px; margin-top: 18px; }
  .hero h1 { font-size: clamp(2.8rem, 6vw, 3.5rem); }
  .hero-copy { padding-left: 25px; }
  .hero-image { width: 74%; object-position: 66% center; mask-image: linear-gradient(to right, transparent, #000 36%); }
  .hero-credit { right: 14px; bottom: 14px; }
  .section-space { margin-top: 48px; }
  .studio-grid { gap: 14px; }
  .studio-card { padding: 16px; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 9px; }
  .brand { font-size: 1.16rem; gap: 7px; }
  .brand-icon { width: 34px; height: 34px; }
  .nav { grid-row: 2; grid-column: 1 / -1; gap: 22px; min-height: 45px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .header-actions { grid-row: 1; grid-column: 2; gap: 6px; }
  .header-actions .button { min-height: 44px; }
  .button-header { padding-inline: 12px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; border-radius: 19px; }
  .hero-copy { padding: 30px 19px 14px; max-width: none; }
  .hero h1 { font-size: clamp(2.6rem, 9.8vw, 4.1rem); }
  .eyebrow { margin-bottom: 13px; font-size: .85rem; }
  .hero-description { margin-top: 15px; font-size: 1rem; }
  .hero-actions { margin-top: 17px; gap: 3px; }
  .hero-actions .button { padding-inline: 11px; }
  .hero-image { position: relative; order: 1; width: 100%; height: auto; aspect-ratio: 1.54; object-position: 54% 54%; mask-image: linear-gradient(to bottom, transparent, #000 15%); }
  .hero-credit { padding: 4px 9px 4px 4px; }
  .section-space { margin-top: 34px; }
  .section-heading { align-items: flex-start; margin-bottom: 15px; gap: 8px; }
  .section-heading p { font-size: .92rem; }
  .section-heading .button { min-height: 44px; flex: none; font-size: .83rem; padding: 7px 9px; }
  .gallery-grid, .gallery-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-card { border-radius: 12px; }
  .card-label { padding: 8px 10px; }
  .card-label strong { font-size: .98rem; }
  .process-panel { padding: 22px 18px; }
  .process-grid, .product-grid { grid-template-columns: 1fr; gap: 15px; }
  .product-card { padding: 16px; }
  .home-products { margin-bottom: 36px; }
  .page-inner { padding: 20px 0 35px; }
  .page-heading { padding: 21px 15px; margin-bottom: 16px; }
  .studio-grid { display: flex; flex-direction: column; }
  .studio-grid .studio-card { width: 100%; }
  .preview-card { position: static; }
  .show-size { display: flex; justify-self: start; }
  .style-grid, .radio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-card { display: grid; grid-template-columns: auto 1fr; gap: 5px; }
  .radio-card b { grid-column: 2; margin-left: 0; }
  .preview-stage { min-height: 200px; aspect-ratio: 1.28; }
  .print-guide th, .print-guide td { font-size: .86rem; padding: 8px 4px; }
  .footer-inner { padding-top: 19px; }
  .footer-navigation { flex-direction: column; align-items: flex-start; }
  .footer-inner nav { gap: 8px 16px; }
  .dialog-inner { padding: 16px; }
  .dialog-actions .button { padding-inline: 9px; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 22px); }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 7px; font-size: .82rem; }
  .section-heading { flex-direction: column; }
  .nav { gap: 15px; }
  .card-label { padding-inline: 8px; }
  .style-option img { width: 30px; height: 30px; }
  .style-collections .filter { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.support-launcher, .support-panel {
  --support-edge: clamp(12px, 2.8vw, 30px);
  --support-bottom: max(15px, env(safe-area-inset-bottom));
  position: fixed;
  right: max(var(--support-edge), env(safe-area-inset-right));
  z-index: 5;
}
.support-launcher {
  min-height: 51px;
  bottom: var(--support-bottom);
  gap: 9px;
  padding: 6px 15px 6px 7px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 5px 17px #3e245640;
}
.support-launcher .brand-icon { border-radius: 50%; }
.support-panel {
  bottom: calc(var(--support-bottom) + 62px);
  width: min(390px, calc(100% - var(--support-edge) * 2));
  height: min(560px, calc(100vh - var(--support-bottom) - 76px));
  height: min(560px, calc(100dvh - var(--support-bottom) - 76px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fdfbfe;
  box-shadow: 0 12px 48px #2c15353d;
}
.support-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.support-header h2 { flex: 1; font-size: 1.04rem; letter-spacing: -.045em; }
.support-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--purple-dark);
  font-size: 1.55rem;
  line-height: 1;
}
.support-close:hover { background: var(--soft); }
.support-conversation, .support-faq { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.support-scroll, .support-faq-groups { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.support-messages { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; }
.support-message {
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.support-reply {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-top-left-radius: 5px;
  background: #fff;
}
.support-question {
  align-self: flex-end;
  border-top-right-radius: 5px;
  background: var(--purple);
  color: #fff;
}
.support-link {
  display: inline-block;
  margin-top: 7px;
  color: var(--purple-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.support-shortcuts { padding: 3px 12px 11px; }
.support-faq-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.support-faq-heading h3 { color: var(--ink); font-size: .85rem; }
.support-faq-heading button {
  min-height: 36px;
  padding-inline: 4px;
  border: 0;
  background: transparent;
  color: var(--purple-dark);
  font-size: .82rem;
  font-weight: 750;
}
.support-faq-heading button:hover { text-decoration: underline; }
.support-quick-questions { display: flex; flex-wrap: wrap; gap: 5px; }
.support-faq-button {
  min-height: 37px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--purple-dark);
  font-size: .84rem;
  line-height: 1.35;
  text-align: left;
  word-break: keep-all;
}
.support-faq-button:hover { border-color: #b99ace; background: var(--soft); }
.support-faq > .support-faq-heading { padding: 6px 14px; }
.support-faq-groups { padding: 0 14px 12px; }
.support-faq-groups details { margin-bottom: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.support-faq-groups summary { padding: 9px 11px; color: var(--purple-dark); font-size: .9rem; font-weight: 750; cursor: pointer; }
.support-faq-groups .support-faq-button { display: block; width: calc(100% - 16px); margin: 0 8px 6px; }
.support-composer { flex: none; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.support-form { display: flex; align-items: center; gap: 7px; }
.support-form input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #d6c9df;
  border-radius: 10px;
  color: var(--ink);
  font-size: 16px;
  background: #fff;
}
.support-form .button { min-height: 44px; flex: none; padding-inline: 11px; }
.support-composer p { margin-top: 5px; color: var(--muted); font-size: .72rem; }
@media (max-height: 480px) {
  .support-panel { bottom: var(--support-bottom); height: calc(100dvh - var(--support-bottom) - 12px); }
}
