@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #3e1e42;
  --ink-soft: #6f5a68;
  --muted: #9b8c94;
  --cream: #fffaf5;
  --card: rgba(255, 255, 255, .86);
  --line: #eadbd6;
  --lavender: #7c3f7e;
  --lavender-dark: #5d2d60;
  --peach: #f6c9ad;
  --peach-soft: #fff0e8;
  --display-font: 'Noto Serif SC', 'Songti SC', serif;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--cream); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.mobile-app { width: min(100vw, 720px); margin: 0 auto; padding: 22px 24px 110px; background: radial-gradient(circle at 85% 8%, #fff1e6 0, transparent 28%), var(--cream); }
.mobile-app.my-mode { min-height: 100vh; padding-top: 30px; }
.mobile-app.my-mode .app-header { display: none; }
.mobile-app.my-mode > #renderBtn, .mobile-app.my-mode > #moreSettings { display: none; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.profile-wrap { position: relative; }
.profile-menu:not([hidden]) { position: absolute; top: calc(100% + 8px); right: 0; z-index: 8; display: grid; min-width: 132px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(62,30,66,.16); }
.profile-menu a, .profile-menu button { border: 0; padding: 10px 13px; color: var(--ink-soft); background: #fff; font-size: 11px; text-align: left; text-decoration: none; }
.profile-menu a:hover, .profile-menu button:hover { color: var(--lavender); background: #fff6fb; }
.membership-dialog { width: min(92vw, 620px); border: 1px solid #f0d9cf; border-radius: 22px; padding: 24px; color: var(--ink); background: #fffaf7; box-shadow: 0 24px 70px rgba(62,30,66,.25); }
.membership-dialog::backdrop, .auth-dialog::backdrop { background: rgba(49,25,49,.36); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; color: var(--muted); background: transparent; font-size: 24px; }
.dialog-kicker { margin: 0 0 4px; color: #a3789b; font: 500 9px/1 'DM Mono', monospace; letter-spacing: .14em; }
.membership-dialog h2 { margin: 0; font: 700 24px/1.2 var(--display-font); }
.dialog-copy { margin: 8px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.membership-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.membership-plan { display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; background: #fff; }
.membership-plan.featured { border-color: var(--lavender); box-shadow: 0 8px 18px rgba(124,63,126,.12); }
.membership-plan b { font-size: 12px; }
.membership-plan strong { color: var(--lavender); font-size: 24px; }
.membership-plan strong small { color: var(--muted); font-size: 10px; font-weight: 400; }
.membership-plan span { min-height: 34px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.membership-plan button { border: 0; border-radius: 999px; padding: 9px 6px; color: #fff; background: var(--lavender); font-size: 10px; font-weight: 700; }
.membership-status { min-height: 18px; margin: 13px 0 0; color: var(--lavender); text-align: center; font-size: 10px; }
.auth-dialog { width: min(92vw, 390px); border: 1px solid #f0d9cf; border-radius: 22px; padding: 25px; color: var(--ink); background: #fffaf7; box-shadow: 0 24px 70px rgba(62,30,66,.25); }
.auth-dialog h2 { margin: 0; font: 700 25px/1.2 var(--display-font); }
.auth-form { display: grid; gap: 12px; margin-top: 18px; }
.auth-form label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.auth-form input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; color: var(--ink); background: #fff; outline: none; font-size: 12px; }
.auth-form input:focus { border-color: var(--lavender); box-shadow: 0 0 0 3px rgba(124,63,126,.1); }
.auth-submit { border: 0; border-radius: 999px; padding: 12px; color: #fff; background: linear-gradient(135deg, var(--lavender), var(--lavender-dark)); font-size: 12px; font-weight: 800; }
.auth-mode-switch { display: block; margin: 12px auto 0; border: 0; color: var(--lavender); background: transparent; font-size: 11px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 13px; background: #fff1e5; box-shadow: 0 7px 16px rgba(62,30,66,.15); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-overline { margin: 0 0 3px; color: #a37e9e; font: 500 9px 'DM Mono', monospace; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--ink); font-size: 24px; letter-spacing: -.06em; }
.profile-button { display: flex; align-items: center; justify-content: space-between; width: 116px; height: 58px; border: 1px solid #f2dfd4; border-radius: 999px; padding: 6px 15px 6px 7px; color: var(--ink); background: #fff0e5; box-shadow: none; }
.profile-button img { display: block; width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 8px rgba(62,30,66,.1); }
.profile-chevron { position: static; color: var(--ink-soft); font-size: 25px; line-height: 1; transform: translateY(-2px); }
.hero-card { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; min-height: 290px; margin-bottom: 28px; padding: 27px 24px; overflow: hidden; border: 1px solid #f2d6c4; border-radius: 23px; background: linear-gradient(135deg, #fff0e4, #fff8f0); box-shadow: 0 18px 34px rgba(142,86,88,.09); }
.hero-card::before { position: absolute; inset: 0; content: ''; pointer-events: none; opacity: .5; background: radial-gradient(ellipse 25px 10px at 7% 8%, rgba(255,255,255,.8) 0 55%, transparent 60%), radial-gradient(ellipse 23px 9px at 11% 13%, rgba(255,255,255,.56) 0 55%, transparent 60%), radial-gradient(ellipse 22px 9px at 93% 88%, rgba(246,201,173,.46) 0 55%, transparent 60%), radial-gradient(ellipse 25px 10px at 90% 92%, rgba(246,201,173,.3) 0 55%, transparent 60%); }
.hero-card > * { position: relative; z-index: 1; }
.hero-copy { min-width: 0; }
.hero-kicker { display: none; margin-bottom: 13px; color: #9c6e89; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.hero-copy h2 { margin-bottom: 19px; color: var(--ink); font: 700 clamp(21px, 4vw, 34px)/1.35 var(--display-font); letter-spacing: -.06em; }
.hero-copy h2 span { white-space: nowrap; }
.hero-benefit { display: flex; align-items: center; gap: 9px; margin: 12px 0; }
.hero-benefit > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #f5cbb8; border-radius: 50%; color: var(--lavender); background: #fff7ef; font-size: 17px; }
.hero-benefit > span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.hero-benefit b, .hero-benefit small { display: block; }
.hero-benefit b { font-size: 12px; }
.hero-benefit small { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }
.hero-preview { position: relative; display: grid; place-items: center; min-width: 0; }
.hero-reference, #previewCanvas { width: min(100%, 220px); height: auto; object-fit: cover; border: 4px solid #fff; border-radius: 18px; background: #f2cfbc; box-shadow: 0 12px 22px rgba(80,38,62,.22); }
.hero-reference { border: 0; border-radius: 0; aspect-ratio: 292 / 450; box-shadow: none; }
#previewCanvas { aspect-ratio: 3 / 4; }
.hero-reference { display: block; }
#previewCanvas { display: none; touch-action: none; cursor: grab; }
#previewCanvas.dragging { cursor: grabbing; }
.hero-preview.has-template .hero-reference { display: none; }
.hero-preview.has-template #previewCanvas, .hero-preview.has-video #previewCanvas { display: block; }
.hero-preview:not(.has-template) .ratio-pill { display: none; }
.ratio-pill { position: absolute; right: 0; bottom: 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; padding: 6px 9px; color: #fff; background: rgba(69,34,66,.72); font: 10px 'DM Mono', monospace; }
.section-block { margin-bottom: 22px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title-row h2 { margin-bottom: 0; font: 700 22px/1.2 var(--display-font); letter-spacing: -.05em; }
.section-title-row h2::before { display: inline-block; width: 5px; height: 30px; margin-right: 10px; border-radius: 999px; content: ''; vertical-align: -5px; background: var(--lavender); }
.section-title-row span { color: var(--lavender); font-size: 11px; }
.category-tabs { display: flex; gap: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; padding: 0; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 1 0 0; min-width: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 10px 8px; color: var(--ink-soft); background: transparent; font-size: 12px; white-space: nowrap; }
.category-tab:last-child { border-right: 0; }
.category-tab.active { border-color: var(--lavender); color: #fff; background: var(--lavender); box-shadow: 0 7px 13px rgba(124,63,126,.16); }
.template-grid { display: flex; gap: 10px; overflow-x: auto; margin: 2px -24px 0; padding: 6px 24px 10px; scrollbar-width: none; }
.template-grid::-webkit-scrollbar { display: none; }
.template-card { position: relative; display: flex; flex: 0 0 132px; min-height: 174px; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; text-align: center; box-shadow: 0 5px 14px rgba(75,35,59,.06); }
.template-card::before { display: block; height: 126px; content: ''; background-image: linear-gradient(145deg, rgba(123,63,126,.04), rgba(35,19,32,.22)), var(--template-image); background-position: center; background-size: cover; }
.template-card::after { display: none; }
.template-card.active { border: 2px solid var(--lavender); box-shadow: 0 7px 17px rgba(124,63,126,.17); }
.template-card.active::after { position: absolute; top: 8px; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid #fff; border-radius: 999px; content: '✓'; color: #fff; background: var(--lavender); box-shadow: 0 3px 8px rgba(35,18,38,.22); font-size: 15px; font-weight: 800; }
.template-card > * { position: relative; z-index: 1; }
.template-card::before { flex: 0 0 126px; }
.template-card-title { display: flex; min-height: 27px; align-items: center; justify-content: center; padding: 5px 8px 0; font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; }
.template-card small { display: none; }
.template-card.active .template-card-title { color: #fff; background: var(--lavender); }
.template-card.active small { color: rgba(255,255,255,.8); background: var(--lavender); }
.template-card.locked { cursor: not-allowed; filter: grayscale(.82); opacity: .66; }
.template-card.locked::after { position: absolute; top: 8px; right: 8px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; content: '🔒'; background: rgba(62,30,66,.68); font-size: 12px; }
.template-coming-soon { align-self: stretch; display: grid; min-width: 138px; min-height: 190px; place-items: center; padding: 16px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.38); font-size: 13px; text-align: center; }
.my-page { padding-bottom: 20px; }
.my-page-heading { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 18px; }
.my-page-kicker { margin: 0 0 4px; color: #a3789b; font: 500 9px/1 'DM Mono', monospace; letter-spacing: .14em; }
.my-page-heading h2 { margin: 0; font: 700 30px/1.2 var(--display-font); }
.my-page-heading small { color: var(--muted); font-size: 11px; }
.my-page-avatar { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #f0d9cf; border-radius: 50%; background: #fff0e5; }
.my-page-avatar img { width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.member-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; border: 1px solid #e9cddd; border-radius: 20px; padding: 20px; color: #fff; background: linear-gradient(135deg, #7c3f7e, #5d2d60); box-shadow: 0 12px 24px rgba(93,45,96,.2); }
.member-summary-card div { display: grid; gap: 5px; }
.member-label { color: #ead3e7; font-size: 10px; }.member-summary-card strong { font: 700 23px/1.1 var(--display-font); }.member-summary-card small { color: #f3e6f1; font-size: 10px; }.member-summary-card button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 9px 12px; color: #fff; background: rgba(255,255,255,.12); font-size: 10px; font-weight: 700; }
.my-page-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }.my-page-stats div { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 15px; padding: 14px 8px; text-align: center; background: rgba(255,255,255,.72); }.my-page-stats b { color: var(--lavender); font-size: 21px; }.my-page-stats small { color: var(--muted); font-size: 9px; }
.my-page-list { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.8); }.my-page-list button { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; width: 100%; gap: 10px; border: 0; border-bottom: 1px solid #f0e5e1; padding: 15px; color: var(--ink); background: transparent; text-align: left; }.my-page-list button:last-child { border-bottom: 0; }.my-page-list button:hover { background: #fff6fb; }.my-row-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: var(--lavender); background: #f8e9f3; }.my-page-list b, .my-page-list small { display: block; }.my-page-list b { font-size: 12px; }.my-page-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }.my-page-list i { color: var(--muted); font-size: 22px; font-style: normal; text-align: right; }.logout-button { width: 100%; margin-top: 14px; border: 1px solid #eadbd6; border-radius: 13px; padding: 12px; color: #9a707f; background: rgba(255,255,255,.66); font-size: 11px; }
.template-lock { position: absolute; right: 5px; bottom: 28px; left: 5px; z-index: 2; border-radius: 999px; padding: 4px 2px; color: #fff; background: rgba(62,30,66,.72); font-size: 8px; line-height: 1; }
.upload-card, .form-card, .copy-assistant-card, .result-card { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 7px 18px rgba(90,48,65,.06); }
.upload-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-color: #f0d9cf; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,246,242,.92)); }
.upload-copy { min-width: 0; }
.upload-heading { display: flex; align-items: center; gap: 10px; }
.upload-heading-icon, .assistant-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; overflow: hidden; border: 1px solid #f1d5ca; border-radius: 11px; background: #fff7f0; box-shadow: 0 5px 12px rgba(87,43,70,.1); }
.upload-heading-icon img, .assistant-icon img { width: 100%; height: 100%; object-fit: cover; }
.upload-kicker { margin: 0 0 3px; color: #a3789b; font: 500 8px/1 'DM Mono', monospace; letter-spacing: .14em; }
.upload-copy h2 { margin: 0; font: 700 18px/1.2 var(--display-font); letter-spacing: -.04em; }
.upload-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.upload-copy .upload-kicker { margin: 0 0 3px; color: #a3789b; font: 500 8px/1 'DM Mono', monospace; letter-spacing: .14em; }
.upload-action-wrap { position: relative; flex: 0 0 166px; }
.upload-action { display: flex; width: 100%; min-height: 76px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #d8bfd2; border-radius: 15px; padding: 10px 12px; color: var(--ink); background: #fff8fb; text-align: left; cursor: pointer; box-shadow: 0 5px 12px rgba(95,42,89,.06); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.upload-action:hover, .upload-action:focus-visible { border-color: var(--lavender); outline: none; box-shadow: 0 0 0 3px rgba(124,63,126,.1), 0 7px 14px rgba(95,42,89,.1); }
.upload-action.dragover { border-color: var(--lavender); background: #f9eef8; box-shadow: 0 0 0 4px rgba(124,63,126,.1); }
.upload-action:active { transform: translateY(1px); }
.upload-action-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--lavender); background: #f8e9f3; }
.upload-action-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.upload-action b, .upload-action small { display: block; }
.upload-action b { font-size: 12px; line-height: 1.2; }
.upload-action small { max-width: 142px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-card { padding: 4px 20px; }
.copy-assistant-card { padding: 20px 20px 16px; border-color: #f0d9cf; border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,246,242,.94)); box-shadow: 0 12px 24px rgba(90,48,65,.07); }
.compact-assistant-heading { margin-bottom: 4px; padding-bottom: 12px; }
.compact-assistant-heading h2 { margin: 0; font: 700 20px/1.2 var(--display-font); letter-spacing: -.04em; }
.compact-assistant-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.source-name-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px 0 5px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.source-name-row input { width: 100%; border: 1px solid #f0e0dc; border-radius: 10px; outline: none; padding: 9px 11px; color: var(--ink); background: #fffaf7; font-size: 12px; }
.source-name-row input:focus { border-color: #bb83ae; box-shadow: 0 0 0 3px rgba(187,131,174,.12); }
.assistant-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; padding-bottom: 15px; border-bottom: 1px solid #f0e5e1; }
.assistant-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.assistant-kicker { margin: 0 0 4px; color: #a3789b; font: 500 9px/1 'DM Mono', monospace; letter-spacing: .14em; }
.assistant-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.router-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dec5d8; border-radius: 999px; padding: 7px 9px; color: var(--lavender); background: #fff6fb; font-size: 10px; white-space: nowrap; }
.router-badge i { width: 6px; height: 6px; border-radius: 50%; background: #65af83; box-shadow: 0 0 0 3px rgba(101,175,131,.12); }
.copy-assistant-card .input-block { padding: 18px 0; }
.copy-assistant-card .input-label { margin-bottom: 9px; font-size: 18px; }
.copy-assistant-card .input-label-main { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.copy-assistant-card .input-label .inline-ai-button { flex: 0 0 auto; margin-left: 8px; border: 1px solid #dec5d8; border-radius: 999px; padding: 6px 9px; color: var(--lavender); background: #fff6fb; font: 700 10px/1 'Noto Sans SC', sans-serif; white-space: nowrap; }
.copy-assistant-card .input-label .inline-ai-button:hover, .copy-assistant-card .input-label .inline-ai-button:focus-visible { border-color: var(--lavender); outline: none; box-shadow: 0 0 0 3px rgba(124,63,126,.1); }
.copy-assistant-card .input-label .inline-ai-button:disabled { opacity: .55; cursor: wait; }
.copy-assistant-card .input-label i { width: 18px; height: 18px; border-color: #aa9aa2; color: #8d7a85; font: 600 12px/1 'Noto Sans SC', sans-serif; }
.copy-assistant-card textarea, .copy-assistant-card input { width: 100%; border: 1px solid #f0e0dc; border-radius: 12px; outline: none; padding: 11px 13px; color: var(--ink); background: #fffaf7; font-size: 13px; resize: vertical; }
.copy-assistant-card textarea { min-height: 54px; line-height: 1.5; resize: none; }
.copy-assistant-card textarea:focus, .copy-assistant-card input:focus { border-color: #bb83ae; box-shadow: 0 0 0 3px rgba(187,131,174,.12); }
.copy-assistant-card .input-block + .input-block { border-top: 1px solid #f0e5e1; }
.copy-assistant-card .input-label em { color: var(--muted); }
.assist-button { width: 100%; min-height: 46px; margin: 4px 0 4px; border: 0; border-radius: 13px; padding: 12px; color: #fff; background: linear-gradient(135deg, #7c3f7e, #582758); box-shadow: 0 8px 16px rgba(94,42,89,.18); font-size: 13px; font-weight: 700; }
.assist-button:disabled { opacity: .55; cursor: wait; }
.ai-assist-details { border-top: 1px solid #f0e5e1; padding-top: 10px; }
.ai-assist-details summary, .output-details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: var(--lavender); }
.ai-assist-details summary::-webkit-details-marker, .output-details summary::-webkit-details-marker { display: none; }
.ai-assist-details summary > span { display: grid; gap: 2px; }
.ai-assist-details summary b { font-size: 12px; }
.ai-assist-details summary small { color: var(--muted); font-size: 10px; }
.ai-assist-details summary > i { border: 1px solid #dec5d8; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-style: normal; }
.ai-source-fields { margin-top: 3px; }
.generated-fields { margin-top: 5px; border-top: 1px solid #f0e5e1; }
.alias-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alias-suggestion { border: 1px solid #dec5d8; border-radius: 999px; padding: 6px 9px; color: var(--lavender); background: #fff6fb; font-size: 10px; }
.input-block { display: block; padding: 18px 0; }
.input-block + .input-block { border-top: 1px solid #f0e5e1; }
.input-label { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ink); font: 700 18px/1.25 var(--display-font); }
.input-label i { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #a795a0; border-radius: 50%; color: #8d7a85; font-size: 10px; font-style: normal; }
.input-label em { margin-left: auto; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; }
.input-block input { width: 100%; border: 1px solid #f0e0dc; border-radius: 13px; outline: none; padding: 13px 14px; color: var(--ink); background: #fffaf7; font-size: 13px; }
.input-block input:focus { border-color: #bb83ae; box-shadow: 0 0 0 3px rgba(187,131,174,.12); }
.more-settings { margin: 8px 0 16px; color: var(--ink-soft); font-size: 11px; }
.more-settings summary { cursor: pointer; color: var(--lavender); }
.settings-grid { display: grid; grid-template-columns: 90px 1fr; gap: 10px; margin-top: 12px; }
.settings-grid label { display: grid; gap: 5px; }
.settings-grid input, .custom-background, .screen-settings input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--ink); background: #fff; font-size: 11px; }
.custom-background { display: block; margin-top: 10px; }
.custom-background input { display: block; margin-top: 6px; }
.custom-background small { display: block; margin-top: 5px; color: var(--muted); }
.screen-settings { display: grid; grid-template-columns: 1fr repeat(4, 1fr); gap: 6px; align-items: center; margin-top: 10px; }
.screen-settings span { color: var(--muted); }
.settings-subtitle { margin-top: 14px; color: var(--ink); font-size: 13px; font-weight: 800; }
.variation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.variation-grid label { display: grid; gap: 4px; }
.variation-grid input[type='range'] { width: 100%; accent-color: var(--lavender); }
.check-control { display: flex !important; align-items: center; gap: 6px; align-self: end; min-height: 32px; }
.check-control input { accent-color: var(--lavender); }
.secondary-action { border: 1px solid #dec5d8; border-radius: 9px; padding: 8px; color: var(--lavender); background: #fff6fb; font-size: 11px; }
.secondary-action:active { transform: translateY(1px); }
.settings-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.watermark-control { display: grid; grid-template-columns: auto 1fr; gap: 4px 7px; align-items: center; margin-top: 14px; color: var(--ink-soft); font-size: 11px; }
.watermark-control input { accent-color: var(--lavender); }
.watermark-control small { grid-column: 2; color: var(--muted); font-size: 9px; }
.marker-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.marker-form input, .marker-form select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--ink); background: #fff; font-size: 11px; }
.marker-form input { grid-column: 1 / -1; }
.marker-form .secondary-action { min-height: 34px; }
.marker-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.marker-chip { display: flex; align-items: center; gap: 5px; border: 1px solid #dec5d8; border-radius: 999px; padding: 5px 8px; color: var(--lavender); background: #fff6fb; font-size: 10px; }
.marker-chip button { border: 0; padding: 0; color: #b66a88; background: transparent; font-size: 12px; line-height: 1; }
.generate-button, .preview-button { width: 100%; border-radius: 999px; }
.generate-button { border: 1px solid #643063; padding: 16px; color: #fff; background: linear-gradient(135deg, #7c3f7e, #582758); box-shadow: 0 10px 22px rgba(94,42,89,.23); font: 800 20px/1.2 var(--display-font); letter-spacing: -.03em; }
.generate-button span { margin-right: 8px; color: #ffd5ba; }
.generate-button:disabled { opacity: .55; cursor: wait; }
.preview-button { margin-top: 9px; border: 1px solid var(--line); padding: 11px; color: var(--lavender); background: #fff; font-size: 12px; }
.status { min-height: 18px; margin: 10px 2px 16px; color: var(--muted); text-align: center; font-size: 10px; }
.status.error { color: #b74949; }.status.success { color: #438567; }
.result-card { padding: 16px 18px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; }
.result-heading h2 { margin: 0; font-size: 17px; }
.result-heading button { border: 0; color: var(--lavender); background: transparent; font-size: 12px; }
#copyOutput { min-height: 66px; margin: 12px 0 0; color: var(--ink-soft); white-space: pre-wrap; font: 11px/1.7 'DM Mono', monospace; }
.download-link { display: block; margin-top: 10px; border-radius: 10px; padding: 10px; color: #fff; background: #438567; text-align: center; text-decoration: none; font-size: 11px; }
.gif-link { background: #7c3f7e; }
.live-link { background: #b45e7f; }
.output-details { display: none; margin: 18px 0 0; color: var(--ink-soft); font-size: 11px; scroll-margin-top: 16px; }
.output-details.has-output { display: block; }
.mobile-app.creation-mode { min-height: 100vh; padding-top: 30px; }
.mobile-app.creation-mode .hero-card, .mobile-app.creation-mode .scene-section, .mobile-app.creation-mode .upload-card, .mobile-app.creation-mode .copy-assistant-card, .mobile-app.creation-mode .more-settings, .mobile-app.creation-mode > #renderBtn { display: none; }
.creation-mode .creation-workspace { margin-top: 0; }.creation-mode .creation-heading { margin-bottom: 16px; }.creation-mode .creation-heading h2 { font-size: 30px; }.creation-mode .creation-heading p { margin-bottom: 4px; color: #a3789b; font: 500 9px/1 'DM Mono', monospace; letter-spacing: .14em; }.creation-mode .task-card { border: 0; padding: 20px; color: #fff; background: linear-gradient(135deg, #7c3f7e, #5d2d60); }.creation-mode .task-card .task-meta b { color: #fff; font-size: 20px; }.creation-mode .task-card .task-meta small, .creation-mode .task-progress small { color: #ead3e7; }.creation-mode .task-progress li::before { background: rgba(255,255,255,.5); }.creation-mode .task-progress li.done::before, .creation-mode .task-progress li.active::before { background: #fff; }.creation-mode .task-progress li > span { color: var(--lavender); background: #fff; }.creation-mode .result-card { border-color: #e9cddd; }.works-card, .usage-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.84); box-shadow: 0 7px 18px rgba(90,48,65,.06); }.works-card .section-title-row, .usage-card .section-title-row { margin-bottom: 10px; }.works-card .section-title-row h2, .usage-card .section-title-row h2 { font-size: 20px; }.empty-works { padding: 20px 8px; color: var(--muted); font-size: 11px; text-align: center; }.work-item { display: flex; align-items: center; gap: 12px; border-top: 1px solid #f0e5e1; padding: 12px 0; }.work-thumb { width: 70px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--peach-soft); }.work-info { display: grid; flex: 1; gap: 4px; }.work-info b { font-size: 12px; }.work-info small { color: var(--muted); font-size: 10px; }.work-status { border-radius: 999px; padding: 5px 8px; color: var(--lavender); background: #f8e9f3; font-size: 9px; }.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.usage-grid div { display: grid; gap: 5px; text-align: center; }.usage-grid b { color: var(--lavender); font-size: 20px; }.usage-grid small, .usage-card p { color: var(--muted); font-size: 9px; }.usage-card p { margin: 14px 0 0; text-align: center; }
.creation-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.creation-heading p { margin: 0 0 2px; color: #a3789b; font: 500 9px/1 'DM Mono', monospace; letter-spacing: .14em; }
.creation-heading h2 { margin: 0; font: 700 24px/1.2 var(--display-font); letter-spacing: -.05em; }
.task-status { border: 1px solid #dec5d8; border-radius: 999px; padding: 7px 10px; color: var(--muted); background: #fff; font-size: 10px; }
.task-status.active { color: var(--lavender); background: #fff6fb; }
.task-status.done { color: #438567; border-color: #cfe7d8; background: #f3fbf5; }
.task-card { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px 13px; background: rgba(255,255,255,.86); box-shadow: 0 7px 18px rgba(90,48,65,.06); }
.task-meta { display: grid; gap: 3px; padding-bottom: 11px; border-bottom: 1px solid #f0e5e1; }
.task-meta b { color: var(--ink); font-size: 13px; }
.task-meta small { color: var(--muted); font-size: 10px; }
.task-progress { display: grid; gap: 0; margin: 0; padding: 12px 0 0; list-style: none; }
.task-progress li { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 9px; min-height: 44px; color: var(--muted); }
.task-progress li:not(:last-child)::after { position: absolute; top: 25px; bottom: 0; left: 12px; width: 1px; content: ''; background: #e8dcd9; }
.task-progress li > span { position: relative; z-index: 1; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #decfd0; border-radius: 50%; color: var(--muted); background: #fff; font-size: 10px; font-weight: 800; }
.task-progress li > div { display: grid; align-content: start; gap: 2px; padding-top: 2px; }
.task-progress li b { color: var(--ink-soft); font-size: 11px; }
.task-progress li small { font-size: 9px; }
.task-progress li.active > span { border-color: var(--lavender); color: #fff; background: var(--lavender); box-shadow: 0 3px 8px rgba(124,63,126,.2); }
.task-progress li.active b { color: var(--lavender); }
.task-progress li.done > span { border-color: #438567; color: #fff; background: #438567; }
.task-progress li.done b { color: #438567; }
.task-progress li.error > span { border-color: #b74949; color: #fff; background: #b74949; }
.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: space-around; gap: 0; min-height: 76px; padding: 9px 28px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #eadbd6; background: rgba(255,250,247,.96); box-shadow: 0 -8px 24px rgba(90,48,65,.08); backdrop-filter: blur(16px); }
.nav-item { display: grid; justify-items: center; gap: 4px; min-width: 64px; color: #a99aa2; text-decoration: none; font-size: 11px; font-weight: 600; }
.nav-item:first-child { color: var(--lavender); }
.nav-item span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; font-size: 21px; line-height: 1; }.nav-item span svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }.nav-item.active { color: var(--ink); }.nav-item.active span { color: #fff; background: var(--lavender); box-shadow: 0 6px 12px rgba(124,63,126,.2); }
.hidden-media { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .mobile-app { padding-top: 34px; } .bottom-nav { position: static; margin-top: 24px; border: 0; background: transparent; } }
@media (max-width: 470px) { .mobile-app { padding-top: 16px; padding-right: 16px; padding-left: 16px; } .app-header { margin-bottom: 16px; } .brand-lockup { gap: 9px; } .brand-mark { width: 32px; height: 32px; border-radius: 9px; } h1 { font-size: 20px; } .profile-button { width: 94px; height: 46px; padding-right: 10px; } .profile-button img { width: 36px; height: 36px; } .profile-chevron { font-size: 21px; } .hero-card { grid-template-columns: minmax(0, 1.35fr) minmax(138px, .9fr); gap: 8px; min-height: 252px; padding: 18px; border-radius: 16px; } .hero-copy h2 { max-width: 215px; font-size: 22px; line-height: 1.3; letter-spacing: -.08em; } .hero-copy h2::after { display: block; width: 150px; height: 2px; margin-top: 4px; border-radius: 999px; content: ''; background: #f3aa86; } .hero-preview { align-self: center; } .hero-reference, #previewCanvas { width: min(100%, 150px); } #previewCanvas { border-width: 2px; border-radius: 12px; } .hero-benefit { gap: 7px; margin: 10px 0; } .hero-benefit > span { flex: 0 0 25px; width: 25px; height: 25px; } .hero-benefit > span svg { width: 15px; height: 15px; } .hero-benefit b { font-size: 11px; } .hero-benefit small { font-size: 8px; } .scene-section { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; } .section-title-row { grid-column: 1; margin-bottom: 0; } .section-title-row h2 { font-size: 20px; white-space: nowrap; } .section-title-row h2::before { width: 4px; height: 24px; margin-right: 8px; } .section-title-row > span { display: none; } .category-tabs { grid-column: 2; min-width: 0; } .category-tab { padding: 9px 4px; font-size: 11px; } .template-grid { grid-column: 1 / -1; gap: 8px; margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; } .template-card { flex-basis: 88px; min-height: 148px; border-radius: 12px; } .template-card::before { flex-basis: 118px; height: 118px; } .template-card.active::after { top: 7px; right: 6px; width: 24px; height: 24px; font-size: 13px; } .template-card-title { min-height: 24px; padding: 4px 4px 0; font-size: 9px; } .template-card small { display: none; } .upload-card { align-items: center; flex-direction: row; gap: 10px; padding: 15px; } .upload-copy { min-width: 0; } .upload-copy h2 { font-size: 16px; } .upload-copy p { line-height: 1.4; } .upload-action-wrap { flex-basis: 145px; } .upload-action { min-height: 70px; gap: 7px; padding-right: 8px; padding-left: 8px; } .upload-action-icon { width: 28px; height: 28px; background: transparent; } .upload-action b { font-size: 10px; } .upload-action small { max-width: 90px; font-size: 8px; } .bottom-nav { padding-right: 20px; padding-left: 20px; } }
@media (max-width: 620px) { .membership-plans { grid-template-columns: 1fr; } .membership-plan span { min-height: 0; } }
@media (max-width: 360px) { .hero-card { grid-template-columns: 1fr; } .hero-preview { order: -1; justify-self: end; } .hero-copy h2 span { white-space: normal; } }
.work-downloads{display:flex;flex-wrap:wrap;gap:5px}.work-downloads a{border-radius:999px;padding:4px 7px;color:#fff;background:var(--lavender);font-size:8px;text-decoration:none}
.work-downloads button{border:0;border-radius:999px;padding:4px 7px;color:var(--lavender);background:#f8e9f3;font-size:8px}.copy-style-select{margin-bottom:7px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;color:var(--ink-soft);background:#fff;font-size:10px}
