:root {
  --bg: #f4f3f7;
  --surface: #ffffff;
  --surface-2: #f8f7fb;
  --ink: #16131d;
  --muted: #736e7d;
  --line: #e7e3ec;
  --purple: #7c3aed;
  --purple-2: #a855f7;
  --purple-soft: #efe7ff;
  --lime: #c9ff3f;
  --danger: #d13f53;
  --shadow: 0 22px 60px rgba(27, 18, 49, 0.09);
  --shadow-soft: 0 12px 32px rgba(27, 18, 49, 0.06);
  --rail: 236px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(183, 151, 255, .16), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.side-rail {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 22px;
  border-right: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 10% 10%, rgba(124,58,237,.22), transparent 35%),
    #0e0c13;
  color: #fff;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 24px;
  color: inherit;
  text-decoration: none;
}
.brand-lockup img { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 10px 24px rgba(124,58,237,.28); }
.brand-lockup span { display: grid; gap: 1px; }
.brand-lockup b { font-size: 20px; letter-spacing: -.4px; }
.brand-lockup small { color: #9d95aa; font-size: 11px; letter-spacing: 1.2px; }
.primary-nav { display: grid; gap: 8px; margin-top: 8px; }
.nav-item {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 15px;
  padding: 0 14px;
  background: transparent;
  color: #aaa3b5;
  font-weight: 760;
  text-align: left;
  transition: .2s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: linear-gradient(135deg, #6e36dc, #9c50ef); box-shadow: 0 12px 24px rgba(124,58,237,.28); }
.nav-icon { width: 22px; font-size: 18px; text-align: center; }
.rail-credit {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.rail-credit span { color: #948d9f; font-size: 12px; }
.rail-credit strong { font-size: 24px; }
.rail-credit button { width: max-content; border: 0; padding: 0; background: transparent; color: #cdb9ff; font-size: 12px; }
.rail-version { margin: 14px 6px 0; color: #686171; font-size: 10px; }

.workspace { min-height: 100vh; margin-left: var(--rail); padding: 0 44px 80px; }
.workspace-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  margin: 0 -44px 28px;
  padding: 16px 44px;
  border-bottom: 1px solid rgba(221,216,229,.75);
  background: rgba(244,243,247,.82);
  backdrop-filter: blur(20px);
}
.workspace-kicker { margin: 0 0 4px; color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: 1.8px; }
.workspace-header h1 { margin: 0; font-size: 25px; letter-spacing: -.7px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.sync-pill { display: flex; align-items: center; gap: 7px; border: 1px solid #dcd6e5; border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.7); color: #5d5766; font-size: 12px; font-weight: 700; }
.sync-pill i { width: 7px; height: 7px; border-radius: 50%; background: #37c779; box-shadow: 0 0 0 4px rgba(55,199,121,.12); }
.ghost-button, .member-button, .secondary-button, .primary-button {
  min-height: 42px;
  border-radius: 13px;
  padding: 0 17px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.82); color: #494351; }
.member-button { border: 0; background: #17131e; color: #fff; }
.primary-button { border: 0; background: linear-gradient(135deg, #6f36e3, #a553f4); color: #fff; box-shadow: 0 12px 24px rgba(124,58,237,.2); }
.secondary-button { border: 1px solid var(--line); background: #fff; color: #37313f; }
.secondary-button.light { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; }
.primary-button:hover, .secondary-button:hover, .ghost-button:hover, .member-button:hover { transform: translateY(-1px); }
.primary-button.wide { width: 100%; }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }

.page-view { display: none; width: min(100%, 1500px); margin: 0 auto; animation: page-in .24s ease; }
.page-view.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.create-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
  gap: 28px;
  overflow: hidden;
  border-radius: 34px;
  padding: 52px;
  background:
    radial-gradient(circle at 80% 10%, rgba(162,101,255,.45), transparent 35%),
    linear-gradient(135deg, #12101a 0%, #1e1731 58%, #6536bd 100%);
  color: #fff;
  box-shadow: 0 28px 70px rgba(20,12,39,.2);
}
.create-hero:before { content: ""; position: absolute; left: 45%; top: -80%; width: 1px; height: 250%; background: linear-gradient(transparent,rgba(255,255,255,.14),transparent); transform: rotate(32deg); }
.hero-copy { position: relative; z-index: 2; align-self: center; }
.hero-label { display: inline-flex; width: max-content; border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.11); color: #d8c7ff; font-size: 10px; font-weight: 900; letter-spacing: 1.8px; }
.hero-label.dark { background: var(--purple-soft); color: #6d28d9; }
.hero-copy h2 { margin: 24px 0 18px; font-size: clamp(42px, 5vw, 72px); line-height: 1.05; letter-spacing: -3.6px; }
.hero-copy p { max-width: 620px; margin: 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.hero-metrics { display: flex; gap: 34px; margin-top: 36px; }
.hero-metrics span { display: grid; gap: 3px; }
.hero-metrics b { font-size: 18px; }
.hero-metrics small { color: rgba(255,255,255,.48); font-size: 11px; }
.hero-gallery { position: relative; min-height: 360px; align-self: center; perspective: 1200px; }
.hero-card { position: absolute; margin: 0; overflow: hidden; border: 4px solid rgba(255,255,255,.84); border-radius: 25px; background: #2b2435; box-shadow: 0 24px 50px rgba(0,0,0,.34); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 13px; background: linear-gradient(transparent, rgba(11,8,16,.84)); font-size: 12px; font-weight: 800; }
.hero-card-main { z-index: 3; left: 22%; top: 4%; width: 48%; height: 92%; transform: rotateY(-5deg); }
.hero-card-top { z-index: 2; right: 0; top: 3%; width: 33%; height: 48%; transform: rotate(7deg) translateZ(-20px); }
.hero-card-bottom { z-index: 2; left: 0; bottom: 5%; width: 33%; height: 48%; transform: rotate(-8deg) translateZ(-20px); }

.section-block { margin-top: 56px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.section-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.8px; }
.section-heading p { grid-column: 2; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.section-index { color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; }
.segmented, .feature-filter { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.74); }
.segmented button, .feature-filter button { flex: 0 0 auto; min-width: 62px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.segmented button.active, .feature-filter button.active { background: #17131e; color: #fff; box-shadow: 0 7px 16px rgba(22,19,29,.14); }
.template-grid { columns: 4 240px; column-gap: 18px; }
.template-card { position: relative; display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-soft); transition: .2s ease; }
.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.template-media { position: relative; display: block; }
.template-media img { width: 100%; aspect-ratio: 4 / 5; display: block; object-fit: cover; background: #eeeaf3; }
.template-badge { position: absolute; left: 11px; top: 11px; border-radius: 999px; padding: 5px 9px; background: rgba(15,12,20,.72); color: #fff; font-size: 10px; font-weight: 780; backdrop-filter: blur(8px); }
.template-body { display: block; padding: 15px; }
.template-body h3 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.template-body p { min-height: 38px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tag-row span { border-radius: 999px; padding: 4px 7px; background: #f0eaff; color: #6d28d9; font-size: 10px; font-weight: 780; }
.template-action { width: 100%; height: 42px; margin-top: 13px; border: 0; border-radius: 13px; background: linear-gradient(135deg,#6f36e3,#a553f4); color: #fff; font-size: 12px; font-weight: 850; }
.template-skeleton { height: 360px; display: inline-block; width: 100%; margin-bottom: 18px; border-radius: 23px; background: linear-gradient(90deg,#ebe8ef,#f5f3f7,#ebe8ef); background-size: 200% 100%; animation: skeleton 1.4s infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }

.text-studio { padding: 28px; border: 1px solid #e0d7ee; border-radius: 28px; background: linear-gradient(145deg,#fff,#faf7ff); box-shadow: var(--shadow-soft); }
.ai-chip, .count-chip { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg,#6f36e3,#a553f4); color: #fff; font-size: 12px; font-weight: 900; }
.count-chip { min-width: 64px; padding: 0 12px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); gap: 22px; }
.studio-inputs, .studio-preview { min-width: 0; }
.upload-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compact-upload { position: relative; min-height: 92px; display: flex; align-items: center; gap: 12px; overflow: hidden; border: 1px dashed #cfc0ea; border-radius: 16px; padding: 12px; background: rgba(255,255,255,.82); cursor: pointer; }
.compact-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.compact-upload img { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 11px; object-fit: cover; }
.compact-upload span { display: grid; gap: 5px; pointer-events: none; }
.compact-upload b { font-size: 13px; }
.compact-upload small { color: var(--muted); font-size: 10px; }
.field-label { display: block; margin: 18px 0 7px; color: #494252; font-size: 12px; font-weight: 800; }
.studio-inputs textarea { width: 100%; min-height: 122px; resize: vertical; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; color: var(--ink); line-height: 1.65; }
.studio-inputs textarea:focus, .supplement-input:focus, .journal-fields input:focus, .tool-input:focus { outline: 3px solid rgba(124,58,237,.11); border-color: #a78bfa; }
.style-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.selected-style { display: flex; align-items: center; gap: 8px; border-radius: 11px; padding: 8px 11px; background: var(--purple-soft); color: #6d28d9; font-size: 11px; font-weight: 800; }
.selected-style button { border: 0; background: transparent; color: inherit; font-size: 16px; }
.supplement-input, .tool-input { width: 100%; height: 43px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; color: var(--ink); }
.studio-preview { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: #efedf2; }
.studio-preview > img { width: 100%; height: 100%; max-height: 670px; object-fit: contain; display: block; }
.preview-empty { display: grid; justify-items: center; gap: 8px; color: #8d8794; text-align: center; }
.preview-empty span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--purple); font-size: 22px; box-shadow: var(--shadow-soft); }
.preview-empty b { color: #4a4450; font-size: 14px; }
.preview-empty small { font-size: 11px; }
.preview-actions { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(15,12,20,.72); backdrop-filter: blur(14px); }
.preview-actions button { flex: 1; height: 38px; border: 0; border-radius: 10px; background: #fff; color: #25202b; font-size: 12px; font-weight: 800; }

.journal-hero { display: grid; grid-template-columns: minmax(360px,.8fr) minmax(0,1.2fr); gap: 50px; align-items: center; padding: 18px 3vw 46px; }
.journal-cover { position: relative; max-width: 500px; padding: 16px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); transform: rotate(-2deg); }
.journal-cover:after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(23,19,30,.08); border-radius: 23px; pointer-events: none; }
.journal-cover img { width: 100%; aspect-ratio: 1/1; display: block; border-radius: 20px; object-fit: cover; }
.journal-intro h2 { margin: 20px 0 14px; font-size: clamp(38px,4.5vw,68px); line-height: 1.08; letter-spacing: -3px; }
.journal-intro p { max-width: 690px; color: var(--muted); line-height: 1.8; }
.journal-intro ul { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.journal-intro li { position: relative; padding-left: 22px; color: #4b4552; font-size: 13px; }
.journal-intro li:before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 900; }
.journal-workbench { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.journal-dropzone { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed #bdacd9; border-radius: 18px; background: #fbf9ff; color: #584d67; cursor: pointer; }
.journal-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.journal-dropzone > span { color: var(--purple); font-size: 28px; }
.journal-dropzone b { font-size: 14px; }
.journal-dropzone small { color: var(--muted); font-size: 11px; }
.journal-thumbs { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; margin-top: 14px; }
.journal-thumb { position: relative; overflow: hidden; border-radius: 13px; background: #eeeaf3; aspect-ratio: 1/1; }
.journal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.journal-thumb b { position: absolute; left: 6px; top: 6px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: rgba(15,12,20,.72); color: #fff; font-size: 9px; }
.journal-fields { display: flex; gap: 12px; margin: 18px 0; }
.journal-fields label { display: grid; gap: 6px; }
.journal-fields label.grow { flex: 1; }
.journal-fields span { color: #5c5564; font-size: 11px; font-weight: 800; }
.journal-fields input { height: 44px; min-width: 180px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--ink); background: #fff; }
.journal-result { display: grid; grid-template-columns: minmax(260px,430px) 1fr; gap: 24px; align-items: center; margin-top: 24px; padding: 20px; border-radius: 22px; background: #f8f5ff; }
.journal-result img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-soft); }
.journal-result h3 { font-size: 28px; }
.journal-result p { color: var(--muted); line-height: 1.75; }

.fun-hero { min-height: 290px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 40px 46px; border-radius: 32px; background: linear-gradient(135deg,#131018,#211532 62%,#6f39cb); color: #fff; box-shadow: var(--shadow); }
.fun-hero h2 { margin: 20px 0 10px; font-size: clamp(38px,5vw,68px); line-height: 1.08; letter-spacing: -3px; }
.fun-hero p { max-width: 640px; color: rgba(255,255,255,.64); line-height: 1.75; }
.fun-orbit { position: relative; width: 210px; height: 210px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.fun-orbit:before, .fun-orbit:after { content: ""; position: absolute; inset: 23px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: rotate(60deg) scaleY(.38); }
.fun-orbit:after { transform: rotate(-60deg) scaleY(.38); }
.fun-orbit b { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 26px; background: linear-gradient(135deg,#7040df,#ba6cff); font-size: 42px; box-shadow: 0 16px 32px rgba(112,64,223,.42); }
.fun-orbit span { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px var(--lime); animation: orbit 6s linear infinite; }
@keyframes orbit { from { transform: rotate(0deg) translateX(94px) rotate(0deg); } to { transform: rotate(360deg) translateX(94px) rotate(-360deg); } }
.feature-filter { width: max-content; max-width: 100%; margin: 28px 0 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.feature-card { position: relative; min-height: 330px; overflow: hidden; border: 0; border-radius: 23px; padding: 0; background: #fff; box-shadow: var(--shadow-soft); text-align: left; transition: .22s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card img { width: 100%; height: 224px; display: block; object-fit: cover; background: #ece9f0; transition: transform .35s ease; }
.feature-card:hover img { transform: scale(1.025); }
.feature-card-body { padding: 15px 16px 17px; }
.feature-card h3 { margin: 0; font-size: 17px; }
.feature-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feature-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.feature-card-meta span { color: var(--purple); font-size: 10px; font-weight: 850; }
.feature-card-meta b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #17131e; color: #fff; }
.feature-card-featured:before { content: "推荐"; position: absolute; z-index: 2; left: 11px; top: 11px; border-radius: 999px; padding: 5px 8px; background: #caff44; color: #16131d; font-size: 9px; font-weight: 900; }

.rotary-console { margin-top: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 32px; padding: 24px 24px 30px; background: linear-gradient(155deg,rgba(255,255,255,.96),rgba(239,234,247,.9)); box-shadow: var(--shadow); }
.rotary-deck { position: relative; height: 510px; overflow: hidden; perspective: 1300px; transform-style: preserve-3d; }
.rotary-card { position: absolute; left: 50%; top: 18px; width: min(360px,36vw); min-height: 450px; opacity: 0; pointer-events: none; transform-origin: center center; transition: transform .36s cubic-bezier(.2,.75,.2,1), opacity .28s ease, filter .28s ease; }
.rotary-card:hover { box-shadow: var(--shadow); }
.rotary-card img { height: 330px; }
.rotary-card.is-active { z-index: 5; opacity: 1; pointer-events: auto; transform: translateX(-50%) translateZ(70px) rotateY(0deg) scale(1); }
.rotary-card.is-active:hover { transform: translateX(-50%) translateZ(76px) scale(1.012); }
.rotary-card.is-prev { z-index: 3; opacity: .74; pointer-events: auto; filter: saturate(.72); transform: translateX(calc(-50% - 330px)) translateZ(-120px) rotateY(22deg) scale(.86); }
.rotary-card.is-next { z-index: 3; opacity: .74; pointer-events: auto; filter: saturate(.72); transform: translateX(calc(-50% + 330px)) translateZ(-120px) rotateY(-22deg) scale(.86); }
.rotary-card.is-far-prev { z-index: 1; opacity: .18; transform: translateX(calc(-50% - 560px)) translateZ(-260px) rotateY(34deg) scale(.72); }
.rotary-card.is-far-next { z-index: 1; opacity: .18; transform: translateX(calc(-50% + 560px)) translateZ(-260px) rotateY(-34deg) scale(.72); }
.rotary-card.is-hidden { opacity: 0; transform: translateX(-50%) translateZ(-500px) scale(.55); }
.rotary-position { width: max-content; margin: -2px auto 12px; border-radius: 999px; padding: 5px 10px; background: #e9e3ef; color: #706979; font-size: 10px; font-weight: 900; letter-spacing: .8px; }
.rotary-controls { display: grid; grid-template-columns: 54px 150px 54px; align-items: center; justify-content: center; gap: 22px; }
.rotary-step { width: 52px; height: 52px; border: 1px solid #d9d2df; border-radius: 18px; background: rgba(255,255,255,.88); color: #302a36; font-size: 30px; box-shadow: 0 10px 22px rgba(34,25,48,.08); }
.rotary-knob { position: relative; width: 144px; height: 96px; display: grid; place-items: center; border: 0; background: transparent; color: #3d3744; font-size: 10px; font-weight: 900; }
.rotary-knob i { position: relative; width: 78px; height: 78px; display: block; border: 8px solid #5c5960; border-radius: 50%; background: radial-gradient(circle at 32% 26%,#d8d7d9 0 7%,#8a898d 22%,#333236 59%,#111114 100%); box-shadow: inset 0 0 0 2px #aaa9ac, inset 0 -12px 22px rgba(0,0,0,.44), 0 13px 22px rgba(35,29,42,.28); }
.rotary-knob i:after { content: ""; position: absolute; left: 50%; top: 8px; width: 5px; height: 20px; border-radius: 99px; background: #ff6245; box-shadow: 0 0 0 2px rgba(70,31,22,.22); transform: translateX(-50%) rotate(20deg); transform-origin: 50% 31px; }
.rotary-knob span { position: absolute; left: 0; right: 0; bottom: -4px; }
.rotary-hint { margin: 13px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.chat-page { min-height: calc(100vh - 150px); display: grid; grid-template-rows: auto minmax(360px,1fr) auto auto; gap: 14px; padding: 34px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(150deg,#fff 0%,#faf8ff 58%,#eee6ff 100%); box-shadow: var(--shadow-soft); }
.chat-page-header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.chat-page-header h2 { margin: 15px 0 6px; font-size: clamp(34px,4vw,54px); letter-spacing: -2px; }
.chat-page-header p { margin: 0; color: var(--muted); line-height: 1.65; }
.chat-online { display: flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 11px; background: #e8fff1; color: #188c50; font-size: 11px; font-weight: 900; }
.chat-online i { width: 7px; height: 7px; border-radius: 50%; background: #2fd179; box-shadow: 0 0 0 4px rgba(47,209,121,.14); }
.chat-box-page { max-height: none; align-content: start; overflow: auto; border: 1px solid #e4deea; border-radius: 22px; padding: 20px; background: rgba(255,255,255,.78); }
.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; border: 1px solid #ddd5e5; border-radius: 20px; padding: 9px; background: #fff; box-shadow: 0 12px 28px rgba(31,22,45,.07); }
.chat-composer .tool-input { min-height: 54px; max-height: 150px; resize: vertical; margin: 0; border: 0; padding: 15px; background: transparent; line-height: 1.55; }
.chat-composer .tool-input:focus { outline: 0; }
.chat-send { min-width: 82px; height: 52px; border: 0; border-radius: 15px; background: linear-gradient(135deg,#6f36e3,#a553f4); color: #fff; font-weight: 900; }
.chat-send:disabled { opacity: .55; }
.chat-note { margin: 0; color: #8b8492; font-size: 10px; text-align: center; }

.works-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 36px 0 24px; }
.works-hero h2 { margin: 14px 0 8px; font-size: clamp(42px,5vw,68px); letter-spacing: -3px; }
.works-hero p { margin: 0; color: var(--muted); }
.works-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; color: var(--muted); font-size: 12px; }
.works-grid { columns: 5 220px; column-gap: 16px; }
.work-card { display: inline-block; width: 100%; margin-bottom: 16px; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; }
.work-card img { width: 100%; display: block; background: #efecf2; }
.work-card span { display: block; padding: 11px 12px; overflow: hidden; color: #514a58; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 50px; border: 1px dashed #cec5d8; border-radius: 22px; color: var(--muted); text-align: center; background: #fff; }

.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-top: 18px; }
.settings-card { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-soft); }
.settings-card h3 { margin: 0 0 10px; font-size: 20px; }
.settings-card p { color: var(--muted); line-height: 1.75; }
.settings-card a { color: var(--purple); font-weight: 800; }
.account-card { grid-column: 1/-1; min-height: 150px; display: flex; align-items: center; gap: 18px; color: #fff; background: linear-gradient(135deg,#17131e,#352052 64%,#7b3ee1); }
.account-card h2 { margin: 0; font-size: 28px; }
.account-card p { margin: 6px 0 0; color: rgba(255,255,255,.58); }
.account-card > strong { margin-left: auto; font-size: 24px; }
.settings-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg,#7140e1,#c271ff); font-size: 28px; font-weight: 900; }

.back-button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: #fff; color: #453e4c; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(340px, .78fr) minmax(460px, 1.22fr); gap: 34px; align-items: start; margin-top: 22px; }
.detail-cover { position: sticky; top: 120px; margin: 0; overflow: hidden; border-radius: 28px; background: #1a1620; box-shadow: var(--shadow); }
.detail-cover img { width: 100%; max-height: 730px; aspect-ratio: 4/5; display: block; object-fit: cover; }
.detail-cover figcaption { position: absolute; right: 13px; bottom: 13px; border-radius: 999px; padding: 7px 11px; background: rgba(17,13,23,.72); color: #fff; font-size: 10px; font-weight: 800; }
.detail-panel { padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.detail-panel h2 { margin: 20px 0 8px; font-size: 38px; letter-spacing: -1.4px; }
.detail-panel > p { color: var(--muted); line-height: 1.75; }
.detail-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0; }
.detail-steps span { min-height: 82px; display: grid; align-content: center; gap: 5px; border-radius: 15px; padding: 12px; background: #f6f3fa; color: #574f60; font-size: 11px; line-height: 1.5; }
.detail-steps b { color: var(--purple); font-size: 10px; }
.detail-steps i { font-style: normal; }
.portrait-upload { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #bdacd9; border-radius: 19px; background: #faf8ff; cursor: pointer; }
.portrait-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.portrait-upload > div { display: grid; justify-items: center; gap: 6px; color: #504758; }
.portrait-upload > div span { color: var(--purple); font-size: 30px; }
.portrait-upload small { color: var(--muted); }
.portrait-upload img { width: 100%; max-height: 520px; object-fit: contain; }
.generation-result { margin-top: 18px; overflow: hidden; border-radius: 18px; background: #17131e; }
.generation-result img { width: 100%; max-height: 720px; display: block; object-fit: contain; }
.generation-result > div { display: flex; gap: 8px; padding: 10px; }
.generation-result button { flex: 1; height: 40px; border: 0; border-radius: 11px; background: #fff; color: #2a2430; font-weight: 800; }

.overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: end center; padding: 24px; background: rgba(13,10,18,.62); backdrop-filter: blur(8px); }
.dialog { width: min(100%,1080px); max-height: 88vh; overflow: auto; border-radius: 30px; padding: 24px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.3); animation: dialog-in .22s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.dialog > header { position: sticky; z-index: 2; top: -24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -24px -24px 18px; padding: 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.dialog > header h2 { margin: 8px 0 0; font-size: 28px; }
.dialog > header > button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0edf3; color: #4b4453; font-size: 23px; }
.style-categories { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.style-categories button { flex: 0 0 auto; height: 35px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 800; }
.style-categories button.active { border-color: #17131e; background: #17131e; color: #fff; }
.style-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.style-card { position: relative; overflow: hidden; border: 3px solid transparent; border-radius: 14px; background: #eeeaf3; padding: 0; }
.style-card.selected { border-color: var(--purple); }
.style-card img { width: 100%; aspect-ratio: 1/1; display: block; object-fit: cover; }
.style-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 8px 8px; background: linear-gradient(transparent,rgba(11,8,15,.82)); color: #fff; font-size: 10px; font-weight: 800; text-align: left; }
.member-dialog { width: min(100%,840px); }
.member-balance { display: grid; gap: 5px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg,#17131e,#352052 70%,#7b3ee1); color: #fff; }
.member-balance span, .member-balance small { color: rgba(255,255,255,.58); }
.member-balance strong { font-size: 32px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.plan-card { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.plan-card h3 { margin: 0 0 6px; }
.plan-card p { min-height: 54px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.plan-card strong { display: block; color: var(--purple); font-size: 18px; }
.member-note { color: var(--muted); font-size: 11px; text-align: center; }

.feature-drawer-wrap { position: fixed; z-index: 110; inset: 0; }
.drawer-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(13,10,18,.56); backdrop-filter: blur(6px); }
.feature-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(100%,620px); overflow: auto; background: #f7f5fa; box-shadow: -30px 0 80px rgba(17,10,30,.26); animation: drawer-in .25s ease; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.feature-drawer > header { position: sticky; z-index: 5; top: 0; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(224,218,230,.8); background: rgba(247,245,250,.9); backdrop-filter: blur(18px); text-align: center; font-weight: 900; color: var(--purple); }
.feature-drawer > header button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #514a59; font-size: 20px; }
#featureDrawerBody { padding: 20px 24px 60px; }
.tool-hero { position: relative; min-height: 270px; display: flex; align-items: end; overflow: hidden; border-radius: 24px; padding: 24px; color: #fff; background: #1b1722; }
.tool-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.tool-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%,rgba(13,10,18,.88)); }
.tool-hero > div { position: relative; z-index: 2; }
.tool-hero h2 { margin: 6px 0; font-size: 34px; }
.tool-hero p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.55; }
.tool-panel { margin-top: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-soft); }
.tool-panel h3 { margin: 0 0 13px; font-size: 17px; }
.tool-panel p { color: var(--muted); line-height: 1.65; font-size: 12px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-field { display: grid; gap: 6px; }
.tool-field > span { color: #5c5563; font-size: 11px; font-weight: 800; }
.tool-field input, .tool-field select, .tool-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; background: #fff; color: var(--ink); }
.tool-field textarea { min-height: 100px; resize: vertical; }
.tool-upload { position: relative; min-height: 110px; display: grid; place-items: center; border: 1px dashed #beafd6; border-radius: 14px; background: #faf8ff; color: #61576d; text-align: center; }
.tool-upload input { position: absolute; inset: 0; opacity: 0; }
.tool-upload img { width: 100%; height: 170px; object-fit: contain; border-radius: 12px; }
.inventory-upload img { object-fit: cover; }
.inventory-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.inventory-panel-heading h3 { margin-bottom: 4px; }
.inventory-panel-heading p { margin: 0; }
.inventory-panel-heading > strong { min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #caff44; color: #17131e; font-size: 18px; }
.inventory-draft-card { display: grid; grid-template-columns: 150px 1fr; gap: 16px; margin-top: 16px; padding: 14px; border-radius: 16px; background: #f2f5e9; }
.inventory-draft-card > img { width: 150px; height: 170px; object-fit: cover; border: 7px solid #fff; border-radius: 26px 19px 30px 16px; box-shadow: 0 13px 28px rgba(28,34,45,.13); transform: rotate(-2deg); }
.inventory-draft-card .tool-field { margin-bottom: 10px; }
.inventory-draft-card .tool-button { width: 100%; }
.inventory-web-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.inventory-web-item { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 11px; min-width: 0; padding: 9px; border: 1px solid #ece6f0; border-radius: 15px; background: #faf9f5; }
.inventory-web-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 13px; }
.inventory-web-item div { min-width: 0; }
.inventory-web-item strong,.inventory-web-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-web-item strong { font-size: 12px; }
.inventory-web-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.inventory-web-item button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; color: #7c7384; background: rgba(255,255,255,.86); }
.inventory-checklist { margin-top: 16px; padding: 18px; border-radius: 18px; color: #fff; background: #17213a; }
.inventory-checklist h3 { color: #caff44; }
.inventory-checklist > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.inventory-checklist label { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.07); font-size: 11px; }
.inventory-checklist input { accent-color: #caff44; }
.inventory-checklist p { margin-bottom: 0; color: rgba(255,255,255,.62); }
.tool-button { width: 100%; min-height: 45px; margin-top: 12px; border: 0; border-radius: 13px; background: linear-gradient(135deg,#6f36e3,#a553f4); color: #fff; font-weight: 900; }
.tool-button:disabled { opacity: .6; cursor: wait; }
.salary-display { padding: 24px; border-radius: 20px; background: #17131e; color: #fff; text-align: center; }
.salary-display small { color: #a39bab; }
.salary-display strong { display: block; margin: 9px 0; color: var(--lime); font-size: 44px; font-variant-numeric: tabular-nums; }
.salary-display span { color: #bcb4c4; font-size: 12px; }
.timer-display { display: grid; justify-items: center; padding: 28px; border-radius: 20px; background: url("/assets/web/scenes/focus-study.jpg") center/cover; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.timer-display strong { font-size: 56px; font-variant-numeric: tabular-nums; }
.chat-box { max-height: 430px; overflow: auto; display: grid; gap: 10px; padding: 10px 0; }
.chat-message { max-width: 88%; border-radius: 15px; padding: 11px 13px; line-height: 1.65; white-space: pre-wrap; }
.chat-message.user { justify-self: end; background: var(--purple); color: #fff; }
.chat-message.assistant { justify-self: start; background: #f1edf6; color: #332d39; }
.result-card { margin-top: 14px; padding: 17px; border-radius: 17px; background: #f2edff; color: #3f354b; line-height: 1.7; }
.result-card img { width: 100%; border-radius: 14px; margin-bottom: 12px; }
.resume-frames { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 12px; }
.resume-frames img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: #ece8f0; }
.air-status { display: grid; gap: 9px; margin-top: 12px; }
.air-status span { border-radius: 11px; padding: 10px; background: #f2eff5; color: #716979; font-size: 12px; }
.air-status span.active { background: #fff0e5; color: #d35d24; font-weight: 800; }
.listen-scene { position: relative; min-height: 330px; overflow: hidden; border-radius: 20px; background: url("/assets/web/fun/listen-card.jpg") center/cover; }
.listen-scene:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent,rgba(4,19,56,.75)); }
.listen-copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.listen-copy h3 { margin: 0 0 4px; font-size: 28px; }
.listen-copy p { margin: 0; color: rgba(255,255,255,.7); }
.rain-layer { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.raindrop { position: absolute; top: -30px; width: 1px; height: 24px; background: rgba(196,222,255,.75); animation: rain linear infinite; }
@keyframes rain { to { transform: translate3d(-45px,390px,0); } }

.mobile-nav { display: none; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; max-width: min(90vw,540px); padding: 11px 16px; border-radius: 12px; background: rgba(22,18,28,.92); color: #fff; font-size: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1260px) {
  :root { --rail: 206px; }
  .workspace { padding-left: 30px; padding-right: 30px; }
  .workspace-header { margin-left: -30px; margin-right: -30px; padding-left: 30px; padding-right: 30px; }
  .create-hero { grid-template-columns: 1fr 420px; padding: 40px; }
  .hero-copy h2 { font-size: 54px; }
  .feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .style-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  :root { --rail: 80px; }
  .side-rail { align-items: center; padding-left: 10px; padding-right: 10px; }
  .brand-lockup span, .nav-item > span:last-child, .rail-credit, .rail-version { display: none; }
  .brand-lockup { padding-left: 0; padding-right: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .create-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-gallery { min-height: 330px; }
  .hero-copy h2 { font-size: 50px; }
  .studio-grid, .journal-hero, .detail-layout { grid-template-columns: 1fr; }
  .journal-cover { max-width: 560px; margin: auto; }
  .detail-cover { position: static; max-width: 580px; margin: auto; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .style-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  :root { --rail: 0px; }
  body { background: #f7f6f9; }
  .side-rail { display: none; }
  .workspace { margin: 0; padding: 0 14px 96px; }
  .workspace-header { min-height: 78px; margin: 0 -14px 16px; padding: 14px 16px; }
  .workspace-header h1 { font-size: 20px; }
  .workspace-kicker, .sync-pill, .header-actions .ghost-button { display: none; }
  .member-button { min-height: 38px; }
  .create-hero { min-height: 570px; padding: 26px 22px; border-radius: 24px; }
  .create-hero:before { display: none; }
  .hero-copy h2 { margin-top: 18px; font-size: 42px; letter-spacing: -2.2px; }
  .hero-copy p { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-metrics { gap: 22px; margin-top: 24px; }
  .hero-gallery { min-height: 260px; }
  .hero-card-main { left: 25%; width: 50%; }
  .hero-card-top, .hero-card-bottom { width: 36%; }
  .section-block { margin-top: 38px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > div:first-child { width: 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .template-grid { columns: 2 145px; column-gap: 10px; }
  .template-card { margin-bottom: 10px; border-radius: 17px; }
  .template-body { padding: 12px; }
  .template-body h3 { font-size: 14px; }
  .template-body p { min-height: 34px; font-size: 10px; }
  .tag-row { display: none; }
  .template-action { height: 38px; font-size: 11px; }
  .text-studio, .journal-workbench { padding: 18px; border-radius: 22px; }
  .studio-grid { gap: 14px; }
  .upload-pair { grid-template-columns: 1fr; }
  .studio-preview { min-height: 360px; }
  .journal-hero { gap: 28px; padding: 8px 0 20px; }
  .journal-cover { max-width: 88vw; }
  .journal-intro h2 { font-size: 40px; letter-spacing: -2px; }
  .journal-fields { flex-direction: column; }
  .journal-fields input { width: 100%; }
  .journal-thumbs { grid-template-columns: repeat(4,1fr); }
  .journal-result { grid-template-columns: 1fr; }
  .fun-hero { min-height: 360px; padding: 28px 22px; border-radius: 24px; }
  .fun-hero h2 { font-size: 40px; }
  .fun-orbit { width: 130px; height: 130px; opacity: .7; position: absolute; right: 16px; bottom: 8px; }
  .fun-orbit span { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-card { min-height: 250px; border-radius: 17px; }
  .feature-card img { height: 160px; }
  .feature-card-body { padding: 12px; }
  .feature-card h3 { font-size: 14px; }
  .feature-card p { display: none; }
  .works-grid { columns: 2 145px; column-gap: 10px; }
  .settings-grid { grid-template-columns: 1fr; }
  .account-card { flex-wrap: wrap; }
  .account-card > strong { width: 100%; margin: 0; }
  .detail-panel { padding: 20px; }
  .detail-panel h2 { font-size: 30px; }
  .detail-steps { grid-template-columns: 1fr; }
  .detail-steps span { min-height: 58px; }
  .portrait-upload { min-height: 210px; }
  .rotary-console { margin-top: 14px; border-radius: 24px; padding: 14px 10px 22px; }
  .rotary-deck { height: 440px; }
  .rotary-card { top: 10px; width: min(286px,76vw); min-height: 390px; border-radius: 21px; }
  .rotary-card img { height: 285px; }
  .rotary-card.is-prev { transform: translateX(calc(-50% - 235px)) translateZ(-120px) rotateY(24deg) scale(.84); }
  .rotary-card.is-next { transform: translateX(calc(-50% + 235px)) translateZ(-120px) rotateY(-24deg) scale(.84); }
  .rotary-card.is-far-prev { transform: translateX(calc(-50% - 390px)) translateZ(-260px) rotateY(34deg) scale(.7); }
  .rotary-card.is-far-next { transform: translateX(calc(-50% + 390px)) translateZ(-260px) rotateY(-34deg) scale(.7); }
  .rotary-controls { grid-template-columns: 48px 132px 48px; gap: 15px; }
  .rotary-step { width: 48px; height: 48px; border-radius: 16px; }
  .rotary-knob { width: 130px; }
  .chat-page { min-height: calc(100vh - 190px); grid-template-rows: auto minmax(300px,1fr) auto auto; padding: 20px 14px; border-radius: 24px; }
  .chat-page-header h2 { font-size: 34px; }
  .chat-page-header p { font-size: 12px; }
  .chat-box-page { padding: 13px; }
  .chat-composer { grid-template-columns: 1fr 64px; }
  .chat-send { min-width: 64px; }
  .mobile-nav { position: fixed; z-index: 80; left: 10px; right: 10px; bottom: max(10px,env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); min-height: 66px; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; padding: 5px; background: rgba(255,255,255,.88); box-shadow: 0 14px 40px rgba(30,20,48,.17); backdrop-filter: blur(20px); }
  .mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; border-radius: 16px; background: transparent; color: #77707e; font-size: 9px; font-weight: 800; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.active { background: var(--purple-soft); color: var(--purple); }
  .overlay { padding: 0; align-items: end; }
  .dialog { max-height: 86vh; border-radius: 25px 25px 0 0; padding: 16px; }
  .dialog > header { top: -16px; margin: -16px -16px 14px; padding: 17px 16px; }
  .style-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .plan-grid { grid-template-columns: 1fr; }
  .feature-drawer { width: 100%; }
  #featureDrawerBody { padding: 14px 16px 80px; }
  .tool-hero { min-height: 230px; }
  .tool-row { grid-template-columns: 1fr; }
  .toast { bottom: 92px; }
}

body.platform-ios .side-rail,
body.platform-ios .workspace-header,
body.platform-ios .mobile-nav { display: none !important; }
body.platform-ios .workspace { margin-left: 0; padding: 18px clamp(14px,3vw,34px) 28px; }
body.platform-ios .page-view { width: min(100%,1500px); }

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