@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f4ed;
  --ink: #203c33;
  --ink-soft: #526058;
  --muted: #8c9187;
  --line: #dedfd4;
  --acid: #e4edaa;
  --white: #fffef9;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea, select { color: inherit; }
button { border: 0; }
button:disabled { cursor: wait; opacity: .56; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #729561; outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #729561; outline-offset: 2px; }

.topbar {
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 35px; height: 38px; position: relative; display: block; border: 1.5px solid var(--ink); border-radius: 1px; transform: skewY(-8deg); }
.brand-mark::before { content: ""; width: 14px; height: 36px; position: absolute; left: 11px; top: -1px; border-left: 1.5px solid var(--ink); }
.brand-mark span:first-child { position: absolute; left: 0; right: 0; top: 13px; border-top: 1.5px solid var(--ink); }
.brand-mark span:nth-child(2) { position: absolute; width: 11px; height: 11px; bottom: 0; right: 0; background: var(--acid); border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); }
.brand-mark span:nth-child(3) { position: absolute; right: -4px; top: -5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); border: 2px solid var(--paper); }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-copy strong { font-size: 22px; font-weight: 650; letter-spacing: .7px; line-height: 1.1; }
.brand-copy > span { font-size: 8px; font-weight: 600; letter-spacing: 2.7px; }
.brand-dot { color: #8b965c; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.studio-tag { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.studio-tag i { width: 5px; height: 5px; background: #8fa36b; border-radius: 50%; }
.account-button { font-size: 12px; padding: 10px 19px; border: 1px solid #ccd1c4; border-radius: 99px; background: transparent; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.account-button:hover { border-color: var(--ink); background: var(--white); }
.settings { position: relative; z-index: 10; }
.settings > summary { list-style: none; cursor: pointer; width: 28px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 2px; border-radius: 50%; }
.settings > summary::-webkit-details-marker { display: none; }
.settings-panel { position: absolute; width: 320px; right: 0; top: 48px; background: var(--white); border: 1px solid var(--line); padding: 22px; border-radius: 14px; box-shadow: 0 18px 50px #203c331f; }
.settings-title { display: block; margin-bottom: 11px; font-size: 13px; font-weight: 600; }
.service-switch { display: flex; gap: 5px; padding: 4px; background: #efefe7; border-radius: 7px; }
.service-switch button { flex: 1; padding: 9px 4px; background: transparent; border-radius: 5px; font-size: 12px; }
.service-switch button[aria-pressed="true"], .service-switch button.active, .service-switch button.selected { background: var(--ink); color: var(--white); }
.settings-panel > p { font-size: 11px; line-height: 1.9; color: var(--ink-soft); margin: 13px 0 18px; }
.prompt-details { border-top: 1px solid var(--line); padding-top: 14px; }
.prompt-details summary { list-style: none; font-size: 12px; cursor: pointer; display: flex; justify-content: space-between; }
.prompt-details summary::-webkit-details-marker { display: none; }
.prompt-details pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 11px; line-height: 1.8; max-height: 260px; overflow-y: auto; margin-top: 13px; background: #f3f3eb; border-radius: 6px; padding: 11px; color: var(--ink-soft); }
.studio-link { display: flex; justify-content: space-between; margin-top: 16px; font-size: 11px; color: var(--ink-soft); }

.main-content { width: min(1320px, calc(100% - 96px)); margin: 0 auto; }
.intro { display: flex; align-items: center; justify-content: space-between; padding: 42px 0 33px; gap: 20px; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 2.2px; margin: 0; color: #738172; line-height: 1.5; }
.intro .eyebrow { display: flex; align-items: center; gap: 9px; font-size: 8px; }
.intro .eyebrow > span { width: 16px; height: 1px; background: #81916e; }
.intro h1 { font-family: var(--serif); font-size: clamp(31px, 3.1vw, 45px); font-weight: 500; line-height: 1.35; letter-spacing: -.5px; margin: 12px 0 13px; }
.intro h1 > span { color: #7c8969; }
.intro-description { margin: 0; color: #6d766c; font-size: 12px; line-height: 1.8; }
.intro-seal { width: 93px; height: 93px; border: 1px solid #bdc6ad; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-right: 12px; transform: rotate(10deg); flex-shrink: 0; }
.intro-seal strong { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: 2px; }
.intro-seal span { font-size: 5px; letter-spacing: 1.4px; color: #879178; }

.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 366px; gap: 26px; align-items: start; }
.workspace { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.heading-icon { font-size: 17px; color: #8c9a76; }
.preview-heading { margin-bottom: 13px; min-height: 25px; }
.preview-badge { border: 1px solid #d1d8c7; border-radius: 99px; padding: 5px 10px; color: #6b775f; font-size: 9px; line-height: 1.4; text-align: right; }
.preview-canvas { position: relative; aspect-ratio: 4 / 3; background: #e2e1d7; border-radius: 12px; overflow: hidden; isolation: isolate; --compare-position: 50%; }
.canvas-image, .empty-room-image { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; display: block; }
.canvas-image { object-fit: contain; }
.base-image { z-index: 0; }
.result-image { z-index: 1; clip-path: inset(0 calc(100% - var(--compare-position)) 0 0); }
.preview-canvas.is-result .result-image { clip-path: none; }
.preview-empty { position: absolute; inset: 0; }
.empty-room-image { filter: saturate(.8); }
.empty-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #14291f65 0, transparent 35%, #1a30240a 70%, #172b1f22 100%); }
.sample-label { position: absolute; top: 19px; left: 19px; font-size: 9px; letter-spacing: .6px; color: #fffefa; background: #273b326b; backdrop-filter: blur(12px); border: 1px solid #fff3; border-radius: 99px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; }
.sample-label i { width: 4px; height: 4px; background: #e4edaa; border-radius: 50%; }
.empty-invitation { position: absolute; left: 50%; top: 49%; transform: translate(-50%, -50%); text-align: center; color: #fffef5; padding: 26px 24px 20px; width: min(77%, 280px); background: #263c3169; border: 1px solid #ffffef45; border-radius: 10px; backdrop-filter: blur(9px); box-shadow: 0 10px 35px #142a1926; }
.empty-icon { width: 46px; height: 46px; border: 1px solid #fff7; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 13px; color: #e4edaa; }
.empty-invitation h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: .7px; line-height: 1.6; margin: 0 0 6px; }
.empty-invitation p { font-size: 10px; margin: 0 0 21px; color: #f0f0dfc4; letter-spacing: 1px; }
.canvas-upload { background: #fafbef; color: #2b4637; border: 1px solid #ffffff40; border-radius: 99px; padding: 10px 17px; font-size: 11px; display: inline-flex; gap: 15px; align-items: center; }
.canvas-upload:hover { background: var(--acid); }
.canvas-upload span { font-size: 17px; line-height: 1; }
.sample-button { display: block; margin: 9px auto 0; padding: 6px 10px; background: transparent; color: #f3f5e3d6; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #f3f5e345; }
.sample-button:hover { color: var(--acid); text-decoration-color: var(--acid); }
.canvas-caption { position: absolute; bottom: 23px; left: 24px; color: #fffefbd6; font-size: 7px; letter-spacing: 1.8px; }
.comparison-line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--compare-position); transform: translateX(-50%); width: 2px; background: #fff; box-shadow: 0 0 7px #203c3333; pointer-events: none; }
.comparison-line > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fffef9; color: var(--ink); border-radius: 50%; width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 12px #203c3338; white-space: nowrap; }
.preview-status { z-index: 3; position: absolute; inset: 0; background: #203c33ce; backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 20px; color: var(--white); }
.preview-status strong { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.preview-status > span:last-child { font-size: 12px; color: #ecefe2c7; max-width: 330px; line-height: 1.8; }
.status-spinner { width: 38px; height: 38px; border: 1px solid #e4edaa4a; border-right: 2px solid var(--acid); border-radius: 50%; margin-bottom: 24px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.compare-control { margin-top: 17px; }
.compare-control > label { display: flex; justify-content: space-between; gap: 9px; color: #7d8775; font-size: 10px; margin-bottom: 4px; }
.compare-control strong { font-weight: 400; font-size: 9px; }
.compare-control input { width: 100%; margin: 7px 0; accent-color: var(--ink); cursor: ew-resize; }
.workspace-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 16px; font-size: 10px; color: #7a8574; line-height: 1.8; }
.workspace-meta > span:first-child { display: flex; gap: 5px; align-items: flex-start; }
.workspace-meta svg { margin-top: 1px; }
#mode-indicator { color: #8c9588; text-align: right; max-width: 44%; }
.result-actions { display: flex; gap: 10px; margin-top: 22px; align-items: stretch; }
.download-button, .continue-button { display: flex; justify-content: center; align-items: center; gap: 26px; border-radius: 7px; min-height: 45px; font-size: 12px; padding: 10px 20px; }
.download-button { color: var(--white); background: var(--ink); }
.continue-button { background: transparent; border: 1px solid #c9d1bd; }
.continue-button:hover { background: var(--white); }
.canvas-footnote { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--line); margin-top: 27px; padding-top: 23px; }
.footnote-number { color: #919987; font-size: 10px; letter-spacing: .8px; align-self: flex-start; margin-top: 3px; }
.canvas-footnote p { color: #516347; font-family: var(--serif); font-size: 16px; margin: 0; line-height: 1.7; }
.canvas-footnote p > span { display: block; color: #8e9588; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10px; margin-top: 4px; }
.footnote-arrow { margin-left: auto; font-size: 26px; color: #9aa48b; padding-right: 6px; }

.design-panel { padding: 24px; background: var(--white); border: 1px solid #e4e5d9; border-radius: 14px; box-shadow: 0 5px 15px #35473503; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.panel-heading .eyebrow { font-size: 7px; letter-spacing: 1.8px; color: #91967f; }
.panel-heading h2 { font-size: 19px; font-family: var(--serif); font-weight: 500; margin: 7px 0 0; }
.panel-spark { font-size: 31px; color: #9caa78; font-weight: 300; }
.project-switch { padding: 4px; background: #f1f2e9; border-radius: 8px; display: flex; gap: 4px; margin-bottom: 23px; }
.project-switch button { width: 50%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 5px; background: transparent; color: #859078; font-size: 12px; transition: background .15s, color .15s; }
.project-switch button[aria-pressed="true"], .project-switch button.selected, .project-switch button.active { background: var(--ink); color: #f8faed; box-shadow: 0 2px 3px #203c331a; }
.control-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; gap: 7px; }
.control-label label, .control-label h3 { display: flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 500; margin: 0; }
.step-number { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d6dccb; border-radius: 50%; font-size: 9px; color: #879472; font-family: Georgia, serif; font-weight: 400; }
.optional-tag { font-size: 9px; color: #97a087; }
.upload-zone { position: relative; border: 1px dashed #bcc7ac; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 114px; padding: 15px 10px 13px; text-align: center; background: #f9faf3; transition: border-color .15s, background .15s; cursor: pointer; }
.upload-zone:hover, .upload-zone.is-dragging, .upload-zone.dragging, .upload-zone.drag-over { border-color: #7c986b; background: #eff3e4; }
.upload-zone > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon { margin-bottom: 8px; color: #85946c; }
.upload-zone strong { font-size: 11px; font-weight: 500; }
.upload-zone > span:last-child { font-size: 8px; color: #a0a78f; margin-top: 6px; line-height: 1.6; }
.photo-file { display: flex; justify-content: space-between; gap: 7px; align-items: center; margin: 8px 1px 10px; min-height: 12px; font-size: 8px; color: #a1a792; }
.photo-file > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.photo-file button { background: transparent; font-size: 8px; padding: 1px 0; color: #8b927c; white-space: nowrap; }
.photo-file button > span { font-size: 12px; margin-left: 3px; }
.input-type-switch { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.input-type-switch button { border: 1px solid #e6e7dc; border-radius: 99px; padding: 6px 10px; font-size: 9px; background: transparent; color: #879078; }
.input-type-switch button[aria-pressed="true"], .input-type-switch button.selected, .input-type-switch button.active { border-color: #bdc8a8; background: #f0f4e5; color: #5b724b; }
.space-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.space-field > label { font-size: 10px; color: #7a846f; }
.select-wrapper { flex: 1; position: relative; max-width: 211px; }
.select-wrapper > select { appearance: none; width: 100%; background: #fffef9; border: 1px solid #e1e5d7; border-radius: 6px; padding: 8px 29px 8px 11px; font-size: 11px; color: #68775b; cursor: pointer; }
.select-wrapper > span { position: absolute; right: 11px; top: 4px; font-size: 18px; pointer-events: none; color: #a2ac95; }
.style-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.style-sticker { position: relative; background: var(--white); border: 1px solid #e2e4d8; padding: 5px 5px 7px; border-radius: 8px; min-width: 0; overflow: hidden; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.style-sticker:hover { border-color: #b4c398; transform: translateY(-2px); }
.style-sticker[aria-pressed="true"], .style-sticker.selected, .style-sticker.is-selected, .style-sticker.active { border-color: #859964; background: #f0f4e5; box-shadow: 0 0 0 1px #a5b58533; }
.sticker-name { font-size: 10px; display: block; margin: 7px 2px 4px; font-weight: 500; line-height: 1.2; }
.sticker-tags { font-size: 7px; color: #9aa087; display: block; margin: 0 2px; letter-spacing: .1px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sticker-check { display: none; position: absolute; top: 9px; right: 9px; border-radius: 50%; width: 13px; height: 13px; line-height: 13px; text-align: center; background: #e4edaa; color: #35532e; font-size: 8px; box-shadow: 0 1px 4px #203c3321; }
.style-sticker[aria-pressed="true"] .sticker-check, .style-sticker.selected .sticker-check, .style-sticker.is-selected .sticker-check, .style-sticker.active .sticker-check { display: block; }
.sticker-art { display: block; position: relative; height: 44px; width: 100%; border-radius: 4px; overflow: hidden; isolation: isolate; background-color: #ded5c2; background-image: linear-gradient(90deg, transparent 0 74%, #62544460 74% 76%, transparent 76%), linear-gradient(0deg, #cbb993 0 21%, #e4dccf 21% 100%); box-shadow: inset 0 0 15px #34342f13; }
.sticker-art::before { content: ""; position: absolute; width: 45%; height: 25%; bottom: 16%; left: 19%; border-radius: 4px 4px 1px 1px; background: #b5ad92; box-shadow: -2px 2px 4px #4b44302e, 0 -6px 0 -4px #7e8166; transform: skewY(1deg); }
.sticker-art::after { content: ""; position: absolute; width: 16%; height: 55%; right: 8%; top: 8%; background: linear-gradient(90deg, #746c5826 48%, #696d5255 48% 54%, #746c5814 54%), linear-gradient(0deg, #a4a27766 48%, #74755280 48% 53%, #e4e5ce 53%); border: 2px solid #94866c; box-shadow: -13px 27px 12px #fff6; transform: skewY(-3deg); }
.sticker-art[data-style="industrial"] { background: linear-gradient(90deg, transparent 73%, #343b3766 74% 77%, transparent 78%), linear-gradient(0deg, #969086 0 22%, #b5b2a8 22% 88%, #464944 88% 90%, #b5b2a8 90%); }
.sticker-art[data-style="industrial"]::before { background: #655647; box-shadow: 0 -5px 0 -3px #393c37, -2px 2px 3px #36332960; }
.sticker-art[data-style="industrial"]::after { border-color: #434b45; background: linear-gradient(90deg, #c6cbbc 45%, #424a4159 45% 55%, #a3b5a0 55%); }
.sticker-art[data-style="rustic"] { background: linear-gradient(90deg, transparent 72%, #a48e7170 73% 75%, transparent 76%), linear-gradient(0deg, #bbaa82 0 21%, #e3e2cd 21% 100%); }
.sticker-art[data-style="rustic"]::before { background: repeating-linear-gradient(90deg, #929d788c 0 5px, #c7c4a7 5px 6px); box-shadow: -5px 0 0 -3px #7a9464, -2px 2px 4px #4b44302e; }
.sticker-art[data-style="rustic"]::after { background: linear-gradient(90deg, #c9d1b1aa 44%, #cab996 44% 57%, #c9d1b1aa 57%); border-color: #c6b496; }
.sticker-art[data-style="minimal"] { background: linear-gradient(90deg, transparent 76%, #b8b8aa66 77% 78%, transparent 79%), linear-gradient(0deg, #d5d3c6 0 21%, #ecece0 21% 100%); }
.sticker-art[data-style="minimal"]::before { width: 51%; background: #d6d6ca; box-shadow: 0 1px 3px #787e6c3a; border-radius: 1px; }
.sticker-art[data-style="minimal"]::after { background: #d1d7c9; border: 1px solid #8f9584; width: 15%; }
.sticker-art[data-style="warm"] { background: linear-gradient(90deg, transparent 76%, #ae977269 77% 79%, transparent 80%), linear-gradient(0deg, #c5a77b 0 22%, #ebe3cc 22% 100%); }
.sticker-art[data-style="warm"]::before { background: #d2c3a0; box-shadow: -2px 2px 3px #5d513b29, 2px -3px 0 -2px #b4a27a; }
.sticker-art[data-style="warm"]::after { background: #d8d5b2; border-color: #bb9f6a; box-shadow: -16px 13px 20px #fff3b259; }
.sticker-art[data-style="wabi"] { background: radial-gradient(ellipse at 47% 14%, #e2d8c355, transparent 60%), linear-gradient(0deg, #beb097 0 21%, #ccc0a9 21% 100%); }
.sticker-art[data-style="wabi"]::before { background: #b0a390; border-radius: 13px 13px 4px 4px; box-shadow: -2px 2px 3px #5d513b29; }
.sticker-art[data-style="wabi"]::after { border-color: #8b806e; background: #d4d7b78c; border-radius: 14px 14px 0 0; }
.sticker-art[data-style="classic"] { background: linear-gradient(90deg, transparent 8%, #9b95754d 9% 10%, transparent 11% 48%, #9b95754d 49% 50%, transparent 51% 76%, #9b95754d 77% 78%, transparent 79%), linear-gradient(0deg, #a7aa92 0 21%, #e4dfce 21% 88%, #bdbaa5 88% 90%, #e4dfce 90%); }
.sticker-art[data-style="classic"]::before { background: #8c9880; box-shadow: 0 0 0 1px #b19e71, -2px 2px 3px #5d513b29; border-radius: 5px 5px 1px 1px; }
.sticker-art[data-style="classic"]::after { background: #d3d7bfb0; border: 2px solid #a39368; border-radius: 12px 12px 0 0; }
.instruction-field { margin-top: 22px; }
.instruction-field > label { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #6d7c60; margin-bottom: 8px; }
.instruction-field > label > span { color: #a2a88f; font-size: 8px; }
.instruction-field textarea { display: block; width: 100%; padding: 10px 11px; border: 1px solid #e1e5d7; background: #fffef9; border-radius: 7px; resize: vertical; min-height: 63px; max-height: 240px; font-size: 10px; line-height: 1.7; }
.instruction-field textarea::placeholder { color: #a1a891; }
.generation-section { margin-top: 19px; }
.generate-button { background: var(--ink); color: #f6f9e9; padding: 16px 17px; border-radius: 7px; width: 100%; min-height: 51px; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: background .15s; }
.generate-button svg { color: var(--acid); }
#generate { justify-content: center; letter-spacing: .4px; }
.generate-button:hover:not(:disabled) { background: #38593d; }
.generation-note { font-size: 8px; color: #9ba48b; text-align: center; margin: 10px 0 0; line-height: 1.6; }
.error-message { color: #a34c30; border: 1px solid #e8cabc; background: #fff6ef; border-radius: 6px; padding: 9px 11px; font-size: 10px; line-height: 1.7; margin: 0 0 12px; overflow-wrap: anywhere; }

.footer { width: min(1320px, calc(100% - 96px)); margin: 49px auto 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 0 26px; color: #939a87; font-size: 9px; }
.footer > span:last-child { font-size: 7px; letter-spacing: 1.5px; white-space: nowrap; }
.footer i { font-style: normal; padding: 0 7px; }
.notice { position: fixed; left: 50%; bottom: 29px; transform: translate(-50%, 12px); background: #203c33; color: #fafbef; border-radius: 99px; padding: 12px 20px; font-size: 12px; max-width: min(90vw, 520px); width: max-content; box-shadow: 0 6px 22px #203c3333; z-index: 40; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; line-height: 1.8; text-align: center; }
.notice.visible, .notice.show, .notice.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.login-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: min(440px, calc(100% - 32px)); color: var(--ink); background: var(--white); box-shadow: 0 22px 100px #182c2555; }
.login-dialog::backdrop { background: #203c336a; backdrop-filter: blur(4px); }
.login-dialog form { position: relative; }
.dialog-close { position: absolute; right: -10px; top: -13px; width: 33px; height: 33px; background: transparent; font-size: 24px; font-weight: 300; color: #7b8c6f; }
.login-dialog h2 { font-size: 24px; font-family: var(--serif); font-weight: 500; line-height: 1.5; margin: 11px 0; }
.dialog-intro { margin: 0 0 23px; font-size: 12px; color: #88937b; line-height: 1.8; }
.login-dialog label { display: block; font-size: 12px; margin: 18px 0 8px; }
.login-dialog label span { color: #9aa58e; font-size: 10px; margin-left: 8px; }
.login-dialog input { padding: 13px 12px; border: 1px solid #dbe1ce; border-radius: 6px; width: 100%; min-width: 0; background: #fafbf4; font-size: 13px; }
.login-dialog input::placeholder { color: #a0ab96; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row button { flex-shrink: 0; padding: 11px 14px; background: #e8eddc; color: #63784e; font-size: 11px; border-radius: 6px; }
#login-note { font-size: 11px; line-height: 1.8; color: #a34c30; min-height: 10px; margin: 13px 0; }
.dialog-footnote { font-size: 10px; color: #98a28c; line-height: 1.8; margin: 15px 0 0; }
.noscript-message { text-align: center; padding: 20px; background: #e4edaa; font-size: 14px; }

@media (min-width: 1600px) {
  .studio-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; }
  .design-panel { padding: 28px; }
  .sticker-art { height: 51px; }
}

@media (max-width: 1100px) {
  .topbar, .main-content, .footer { width: calc(100% - 56px); }
  .studio-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  .design-panel { padding: 21px; }
  .intro { padding-top: 34px; }
  .preview-canvas { aspect-ratio: 3 / 4; }
  .empty-room-image { object-position: 55% 50%; }
  .canvas-footnote { margin-top: 20px; }
  .workspace-meta { flex-direction: column; gap: 4px; font-size: 9px; }
  #mode-indicator { max-width: none; text-align: left; margin-left: 20px; }
}

@media (max-width: 820px) {
  .topbar { height: 82px; }
  .topbar, .main-content, .footer { width: calc(100% - 44px); }
  .studio-tag { display: none; }
  .intro h1 { font-size: 34px; }
  .intro { padding: 28px 0; }
  .intro-seal { width: 75px; height: 75px; margin: 0; }
  .intro-seal strong { font-size: 13px; }
  .intro-seal span { font-size: 4px; letter-spacing: 1px; }
  .studio-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .preview-canvas { aspect-ratio: 4 / 3; }
  .workspace-meta { flex-direction: row; font-size: 9px; }
  #mode-indicator { max-width: 43%; text-align: right; margin-left: 0; }
  .canvas-footnote { display: none; }
  .design-panel { padding: 24px 24px 35px; }
  .panel-heading { margin-bottom: 19px; }
  .style-list { gap: 11px; }
  .sticker-art { height: 71px; }
  .sticker-name { font-size: 12px; margin-top: 9px; }
  .sticker-tags { font-size: 9px; margin-bottom: 3px; }
  .control-label label, .control-label h3 { font-size: 13px; }
  .upload-zone { min-height: 117px; }
  .upload-zone strong { font-size: 12px; }
  .upload-zone > span:last-child { font-size: 10px; }
  .photo-file { font-size: 10px; margin-top: 10px; }
  .photo-file button { font-size: 10px; }
  .input-type-switch button { font-size: 11px; padding: 7px 12px; }
  .space-field > label { font-size: 12px; }
  .select-wrapper > select { font-size: 13px; }
  .instruction-field > label { font-size: 12px; }
  .instruction-field > label > span { font-size: 10px; }
  .instruction-field textarea { font-size: 13px; padding: 12px; min-height: 78px; }
  .generation-section { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 12px max(22px, calc((100% - 720px) / 2)) calc(9px + env(safe-area-inset-bottom)); margin: 0; background: #f5f4edf2; border-top: 1px solid #dfe3d2; backdrop-filter: blur(16px); box-shadow: 0 -8px 24px #203c3307; }
  .generate-button { min-height: 51px; font-size: 14px; }
  .generation-section .generate-button { max-width: 720px; margin: 0 auto; }
  .generation-section .error-message { max-width: 720px; margin-left: auto; margin-right: auto; max-height: 85px; overflow-y: auto; }
  .generation-note { font-size: 10px; margin-top: 12px; }
  .generation-section .generation-note { margin-top: 7px; }
  .footer { margin-top: 30px; padding-bottom: 125px; }
  .notice { bottom: calc(115px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .topbar, .main-content, .footer { width: calc(100% - 32px); }
  .topbar { height: 74px; }
  .brand { gap: 9px; }
  .brand-mark { width: 28px; height: 31px; }
  .brand-mark::before { height: 29px; left: 9px; }
  .brand-mark span:first-child { top: 11px; }
  .brand-mark span:nth-child(2) { width: 9px; height: 9px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy > span { font-size: 6px; letter-spacing: 2.3px; }
  .topbar-actions { gap: 9px; }
  .account-button { padding: 8px 13px; font-size: 10px; max-width: 115px; }
  .settings-panel { max-width: calc(100vw - 32px); width: 295px; top: 45px; }
  .intro { padding: 21px 0 19px; align-items: flex-start; gap: 0; }
  .intro .eyebrow { font-size: 6px; letter-spacing: 1.1px; gap: 7px; }
  .intro .eyebrow > span { width: 12px; }
  .intro h1 { font-size: 29px; margin: 8px 0 8px; line-height: 1.35; letter-spacing: -.8px; }
  .intro h1 > span { display: block; }
  .intro-description { font-size: 11px; max-width: 276px; line-height: 1.75; }
  .intro-seal { width: 64px; height: 64px; gap: 5px; margin-top: 21px; margin-left: -24px; }
  .intro-seal strong { font-size: 11px; letter-spacing: 1px; }
  .intro-seal span { font-size: 3px; letter-spacing: .8px; }
  .studio-layout { gap: 21px; }
  .section-heading h2 { font-size: 12px; }
  .preview-badge { font-size: 8px; max-width: 54%; padding: 4px 8px; }
  .preview-heading { margin-bottom: 10px; }
  .preview-canvas { border-radius: 9px; }
  .sample-label { font-size: 7px; top: 12px; left: 12px; padding: 6px 8px; }
  .empty-invitation { width: 216px; padding: 14px 17px 12px; top: 53%; }
  .empty-icon { width: 30px; height: 30px; margin-bottom: 7px; }
  .empty-icon svg { width: 22px; height: 22px; }
  .empty-invitation h3 { font-size: 17px; }
  .empty-invitation p { font-size: 8px; margin-bottom: 9px; }
  .canvas-upload { font-size: 10px; padding: 8px 14px; gap: 12px; }
  .canvas-upload span { font-size: 14px; }
  .sample-button { font-size: 8px; padding: 5px 8px; margin-top: 6px; }
  .canvas-caption { bottom: 14px; left: 15px; font-size: 5px; letter-spacing: 1.1px; }
  .workspace-meta { flex-direction: column; gap: 4px; margin-top: 12px; font-size: 9px; }
  #mode-indicator { max-width: none; text-align: left; margin-left: 19px; }
  .design-panel { padding: 21px 18px 33px; border-radius: 11px; }
  .panel-heading h2 { font-size: 19px; }
  .panel-spark { font-size: 28px; }
  .project-switch { margin-bottom: 22px; }
  .project-switch button { padding: 11px; font-size: 13px; }
  .space-field { margin-bottom: 22px; }
  .select-wrapper { max-width: 68%; }
  .style-list { gap: 8px; }
  .sticker-art { height: 48px; }
  .sticker-name { font-size: 10px; margin: 8px 2px 5px; }
  .sticker-tags { font-size: 7px; }
  .optional-tag { font-size: 9px; }
  .generation-section { margin: 0; padding-left: 16px; padding-right: 16px; }
  .generation-note { font-size: 9px; }
  .result-actions { margin-top: 16px; }
  .download-button, .continue-button { flex: 1; font-size: 11px; gap: 15px; padding: 10px; min-height: 43px; }
  .footer { margin-top: 25px; padding: 20px 0 124px; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 9px; }
  .footer > span:last-child { font-size: 6px; }
  .login-dialog { padding: 26px 23px; }
  .login-dialog h2 { font-size: 22px; }
  .login-dialog input { font-size: 16px; }
  .instruction-field textarea, .select-wrapper > select { font-size: 16px; }
  .instruction-field textarea { min-height: 83px; font-size: 16px; }
  .instruction-field textarea::placeholder { font-size: 12px; }
  .select-wrapper > select { font-size: 16px; padding-top: 6px; padding-bottom: 6px; }
  .code-row button { padding: 10px; font-size: 10px; }
}

@media (max-width: 360px) {
  .topbar, .main-content, .footer { width: calc(100% - 28px); }
  .brand-copy strong { font-size: 16px; }
  .brand-copy > span { font-size: 5px; letter-spacing: 2px; }
  .brand-mark { width: 25px; height: 28px; }
  .brand-mark::before { height: 26px; }
  .topbar-actions { gap: 4px; }
  .account-button { max-width: 96px; padding: 7px 11px; }
  .intro h1 { font-size: 27px; }
  .intro-description { max-width: 230px; }
  .intro-seal { width: 54px; height: 54px; margin-left: -30px; }
  .intro-seal strong { font-size: 10px; }
  .intro-seal span { font-size: 2px; }
  .empty-invitation { padding: 11px 14px 10px; width: 198px; top: 54%; }
  .empty-icon { width: 26px; height: 26px; margin-bottom: 6px; }
  .empty-invitation h3 { font-size: 16px; }
  .empty-invitation p { margin-bottom: 6px; }
  .canvas-upload { padding: 7px 13px; }
  .sample-button { padding-top: 4px; padding-bottom: 4px; }
  .canvas-caption { font-size: 4px; }
  .design-panel { padding: 19px 15px 30px; }
  .sticker-art { height: 40px; }
  .sticker-tags { font-size: 6px; letter-spacing: -.1px; }
  .control-label label, .control-label h3 { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Keep translated text aligned with the original visual hierarchy. */
.intro h1 > .i18n-inline { color: inherit; }
.intro-seal strong .i18n-inline { font-size: inherit; letter-spacing: inherit; color: inherit; }
.canvas-upload .i18n-inline { font-size: inherit; line-height: inherit; }
.canvas-footnote p > .i18n-inline { display: inline; color: inherit; font: inherit; margin: 0; }
.instruction-field > label > .i18n-inline, .login-dialog label .i18n-inline { color: inherit; font-size: inherit; margin: 0; }
.voice-input-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.voice-input { display: inline-flex; flex: none; align-items: center; gap: 5px; border: 1px solid #d7dfcc; border-radius: 99px; padding: 7px 10px; font-size: 10px; background: transparent; }
.voice-input:hover { background: #eef1e6; }
.voice-input.is-listening { color: #fffef9; background: #203c33; border-color: #203c33; }
.voice-note { font-size: 9px; line-height: 1.6; color: #859078; }
html[lang="en"] .brand-copy strong { font-size: 20px; letter-spacing: -.5px; }
html[lang="en"] .intro h1 { font-size: clamp(28px, 2.7vw, 39px); }
html[lang="en"] .intro-seal strong { font-size: 10px; letter-spacing: .3px; text-align: center; }
html[lang="en"] .empty-invitation h3 { font-size: 20px; }
html[lang="en"] .sticker-name { font-size: 11px; }
html[lang="en"] .sticker-tags { font-size: 8px; }
@media (max-width: 820px) {
 .topbar { min-height: 82px; height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
 .topbar-actions { margin-left: auto; gap: 8px; }
 .voice-input { font-size: 11px; min-height: 36px; }
 .voice-note { font-size: 10px; }
}
@media (max-width: 520px) {
 .topbar { gap: 8px; padding: 12px 0; }
 .topbar-actions { flex: 1 1 100%; justify-content: flex-end; gap: 8px; }
 .topbar .account-button { padding: 7px 10px; max-width: 145px; }
 .topbar .language-switch { margin-right: auto; }
 html[lang="en"] .intro h1 { font-size: 27px; }
 html[lang="en"] .intro-seal { display: none; }
 html[lang="en"] .intro-description { max-width: 100%; }
 html[lang="en"] .empty-invitation { width: 238px; }
 html[lang="en"] .empty-invitation h3 { font-size: 17px; }
 html[lang="en"] .style-list { gap: 8px; }
 .voice-input-row { align-items: flex-start; }
}
