@font-face {
  font-family: "A050-邯郸空心手拼音体";
  src: url("./fonts/ctfont-001.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "aamaozhaoshaonu";
  src: url("./fonts/aamaozhaoshaonu.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "aameiyujiancha";
  src: url("./fonts/aameiyujiancha.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aa新华惊马体";
  src: url("./fonts/ctfont-002.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aura點陣宋";
  src: url("./fonts/ctfont-003.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "douyuzhuiguangti";
  src: url("./fonts/douyuzhuiguangti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "gongfanshouxiezhuanjiti";
  src: url("./fonts/gongfanshouxiezhuanjiti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "hanyizhuziguozhiruantang";
  src: url("./fonts/hanyizhuziguozhiruantang.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liu Jian Mao Cao";
  src: url("./fonts/LiuJianMaoCao-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ma Shan Zheng";
  src: url("./fonts/MaShanZheng-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MF Candy";
  src: url("./fonts/ctfont-004.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "qingkongnuanyangnailaoti";
  src: url("./fonts/qingkongnuanyangnailaoti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ruimeijiazhangqingpingyingbikaishu";
  src: url("./fonts/ruimeijiazhangqingpingyingbikaishu.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "sanjixiyangmanyouti";
  src: url("./fonts/sanjixiyangmanyouti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "shangshoubiaoheiti";
  src: url("./fonts/shangshoubiaoheiti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "shanhaichaowanxingqiuw";
  src: url("./fonts/shanhaichaowanxingqiuw.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "shanhaixingchenheiw";
  src: url("./fonts/shanhaixingchenheiw.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "shanhaixuanwuti";
  src: url("./fonts/shanhaixuanwuti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "wendaomeihuati";
  src: url("./fonts/wendaomeihuati.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "xiangqiaolaiwanlingganti";
  src: url("./fonts/xiangqiaolaiwanlingganti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "yutaixiantangpingti";
  src: url("./fonts/yutaixiantangpingti.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "zaozigongfangshutiaoshaonian";
  src: url("./fonts/zaozigongfangshutiaoshaonian.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "zaozigongfangyuanqipaopao";
  src: url("./fonts/zaozigongfangyuanqipaopao.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZCOOL KuaiLe";
  src: url("./fonts/ZCOOLKuaiLe-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZCOOL QingKe HuangYou";
  src: url("./fonts/ZCOOLQingKeHuangYou-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "三极浪涛简体";
  src: url("./fonts/ctfont-005.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "三极童画简体";
  src: url("./fonts/ctfont-006.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "当黄昏化作海湾";
  src: url("./fonts/ctfont-007.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "念念清欢体";
  src: url("./fonts/ctfont-008.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "汉仪咪咪体简";
  src: url("./fonts/ctfont-009.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "汉仪喵魂漫画体";
  src: url("./fonts/ctfont-010.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "汉仪大吉兔";
  src: url("./fonts/ctfont-011.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "汉仪暴漫体";
  src: url("./fonts/ctfont-012.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "汉仪立黑简";
  src: url("./fonts/ctfont-013.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "软萌小果冻";
  src: url("./fonts/ctfont-014.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --bg: #edf3ee;
  --bg-deep: #dfeae3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #f6faf7;
  --border: rgba(22, 40, 31, 0.08);
  --text: #17231d;
  --text-soft: #5f6d66;
  --brand: #1f7a4f;
  --brand-deep: #145536;
  --brand-soft: #e6f3ea;
  --shadow-lg: 0 28px 70px rgba(28, 50, 38, 0.12);
  --shadow-md: 0 16px 36px rgba(28, 50, 38, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ffffff;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(31, 122, 79, 0.45);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow--light::before {
  background: rgba(255, 255, 255, 0.6);
}

.shell {
  position: relative;
  min-height: 100vh;
  padding-bottom: 104px;
}

.shell-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 28px;
  background: rgba(248, 251, 248, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.shell-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  align-items: center;
  justify-items: center;
  border-radius: 15px;
  padding: 8px;
  background: linear-gradient(135deg, #1f7a4f, #0f3d28);
  box-shadow: var(--shadow-md);
}

.brand-mark span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sub-brand {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.06);
}

.site-nav button,
.font-buttons button,
.choice-chip,
.tab-btn {
  background: rgba(240, 246, 241, 0.95);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 11px 16px;
  transition: 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.08);
}

.site-nav button:hover,
.font-buttons button:hover,
.choice-chip:hover,
.tab-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.site-nav button.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(31, 122, 79, 0.2);
}

.site-nav__logout {
  background: rgba(24, 36, 29, 0.06) !important;
  color: #243129 !important;
}

.mobile-nav {
  display: none;
}

.shell-main {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.hero-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}

.hero-page--full {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-mask {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(180deg, rgba(12, 23, 18, 0.46), rgba(12, 23, 18, 0.3));
}

.hero-layout,
.auth-layout,
.content-shell {
  width: min(1240px, 100%);
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.2fr) 320px;
}

.auth-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 420px);
}

.content-shell {
  grid-template-columns: 320px minmax(0, 1fr);
}

.hero-card,
.hero-sidecard,
.auth-card,
.auth-intro,
.guide-card,
.article-card,
.toolbar-card,
.canvas-card,
.asset-card,
.ai-panel,
.poster-card,
.studio-header-card,
.profile-head,
.profile-stat-card,
.content-card,
.content-sidecard,
.home-copy,
.home-visual {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
}

.hero-card {
  padding: 44px;
  color: #102018;
}

.hero-card h1,
.home-copy h2,
.article-card h2,
.content-sidecard h2,
.profile-head h2,
.studio-header-card h2,
.auth-intro h2 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-card--wide p,
.home-copy p,
.article-card p,
.auth-intro p,
.content-sidecard p {
  line-height: 1.88;
  color: #20302a;
}

.home-page--overlay {
  min-height: calc(100vh - 120px);
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.home-page__overlay {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(180deg, rgba(8, 18, 14, 0.36), rgba(8, 18, 14, 0.52));
}

.home-overlay-copy {
  width: min(820px, 100%);
  color: #ffffff;
}

.home-overlay-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.home-overlay-copy p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.88;
  font-size: 17px;
}

.ghost-btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-sidecard,
.auth-intro,
.content-sidecard {
  padding: 28px;
}

.hero-sidecard {
  display: grid;
  gap: 14px;
}

.hero-sidecard__item {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.hero-sidecard__item span,
.profile-stat-card span {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-sidecard__item strong,
.profile-stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.auth-card {
  width: 100%;
  padding: 30px;
}

.auth-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-card__top h3 {
  margin: 8px 0 0;
  font-size: 28px;
}

.auth-card__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 122, 79, 0.18), rgba(20, 85, 54, 0.32));
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-brand-panel {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 34, 24, 0.62), rgba(16, 34, 24, 0.42));
  color: #ffffff;
}

.auth-brand-panel__badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.auth-brand-panel__title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-brand-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-btn.is-active,
.choice-chip.is-active,
.font-buttons button.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  box-shadow: none;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #33433d;
  font-weight: 600;
}

.auth-form input,
.search-input,
textarea,
.ai-form input {
  width: 100%;
  border: 1px solid rgba(23, 35, 29, 0.1);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.auth-help,
.muted-text,
.mini-label,
.guide-meta {
  color: var(--text-soft);
  font-size: 13px;
}

.auth-feature-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-feature {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-deep);
  font-weight: 700;
}

.auth-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.auth-trust-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.auth-trust-card span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
}

.auth-trust-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, #2d9b62, var(--brand-deep));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 122, 79, 0.22);
}

.secondary-btn {
  background: rgba(238, 243, 239, 0.92);
  color: #25342d;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.full-width-btn {
  width: 100%;
}

.home-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 26px;
  align-items: stretch;
}

.home-page {
  display: grid;
  gap: 24px;
}

.home-copy,
.home-visual {
  padding: 30px;
}

.home-copy h2 {
  font-size: clamp(28px, 3.4vw, 46px);
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.home-stat-card,
.home-feature-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(23, 35, 29, 0.06);
}

.home-stat-card span,
.home-feature-card .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.home-stat-card span {
  font-size: 12px;
  color: var(--text-soft);
}

.home-stat-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}

.home-visual {
  position: relative;
  overflow: hidden;
}

.home-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 22px;
}

.home-visual__badge {
  position: absolute;
  left: 30px;
  bottom: 30px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.home-visual__badge span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

.home-visual__badge strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.home-visual__quote {
  position: absolute;
  right: 24px;
  top: 24px;
  width: min(260px, calc(100% - 48px));
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 31, 23, 0.52);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

.home-visual__quote span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.home-visual__quote p {
  margin: 8px 0 0;
  line-height: 1.75;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-feature-card h3 {
  margin: 10px 0 10px;
  font-size: 22px;
}

.home-feature-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.article-card,
.content-card {
  padding: 30px;
  line-height: 1.95;
}

.about-page,
.profile-page {
  display: grid;
  gap: 24px;
}

.article-card h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.article-card h3 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-card ul,
.article-card ol {
  padding-left: 22px;
}

.article-card li {
  margin-bottom: 8px;
}

.about-sidecard {
  position: sticky;
  top: 104px;
  align-self: start;
}

.about-nav-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.about-nav-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-deep);
  font-weight: 700;
  text-align: left;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.about-nav-item.is-active {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
}

.about-section-block {
  scroll-margin-top: 110px;
}

.about-section-block + .about-section-block {
  margin-top: 28px;
}

.about-section-block h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-principle-card,
.profile-summary-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.about-principle-card h3 {
  margin: 10px 0;
  font-size: 22px;
}

.about-principle-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.guide-card {
  padding: 22px 24px;
  margin-bottom: 20px;
}

.guide-card--centered {
  min-height: calc(100vh - 220px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.guide-card--centered .guide-options,
.guide-card--centered .guide-actions {
  justify-content: center;
}

.guide-card--docked {
  position: sticky;
  top: 96px;
  z-index: 5;
}

.guide-card h3 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.5;
}

.guide-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.guide-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.studio-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.studio-sidecolumn {
  display: grid;
  gap: 18px;
  align-self: start;
}

.toolbar-card,
.canvas-card,
.asset-card,
.ai-panel {
  padding: 22px;
}

.toolbar-card {
  position: sticky;
  top: 104px;
}

.toolbar-card__header {
  margin-bottom: 16px;
}

.toolbar-card h3,
.asset-card h3,
.profile-head h2,
.profile-stat-card strong {
  margin: 6px 0 0;
}

.toolbar-list {
  display: grid;
  gap: 12px;
}

.tool-btn {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 250, 247, 1), rgba(237, 246, 240, 1));
  color: var(--brand-deep);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.08);
}

.tool-btn.is-active,
.mobile-tool-btn.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 122, 79, 0.22);
}

.tool-btn.is-active .tool-btn__hint,
.mobile-tool-btn.is-active small {
  color: rgba(255, 255, 255, 0.82);
}

.tool-btn__label {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.tool-btn__hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-soft);
}

.font-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 35, 29, 0.06);
}

.font-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.panel-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.panel-switch button {
  min-height: 42px;
  border-radius: 16px;
  background: #f3f3f1;
  color: #5a5a57;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.panel-switch button.is-active {
  background: #111111;
  color: #ffffff;
}

.canvas-card {
  min-height: 100%;
  position: relative;
}

.studio-header-card {
  padding: 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(246, 250, 247, 0.95), rgba(255, 255, 255, 0.88));
}

.studio-header-card h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.studio-header-card p,
.gallery-tip {
  margin: 0;
  line-height: 1.8;
  color: var(--text-soft);
}

.studio-header-actions {
  margin-top: 16px;
}

.studio-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.studio-status-chip {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(23, 35, 29, 0.06);
}

.studio-status-chip span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
}

.studio-status-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
}

.canvas-toolbar-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(239, 246, 241, 0.9);
  color: var(--brand-deep);
}

.canvas-toolbar-hint__main {
  display: grid;
  gap: 4px;
}

.canvas-toolbar-hint__main strong {
  font-size: 15px;
}

.canvas-toolbar-hint__main span,
.canvas-toolbar-hint__side {
  color: var(--text-soft);
  font-size: 13px;
}

.canvas-toolbar-hint__side {
  white-space: nowrap;
}

.canvas-stage {
  display: flex;
  justify-content: center;
  padding: 14px 0 22px;
}

.canvas-stage .canvas-container {
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 44px rgba(26, 42, 32, 0.18);
}

.canvas-stage .canvas-container.canvas-container--touch-scroll,
.canvas-stage .canvas-container.canvas-container--touch-scroll .upper-canvas,
.canvas-stage .canvas-container.canvas-container--touch-scroll .lower-canvas {
  touch-action: pan-y !important;
}

.canvas-stage .canvas-container:not(.canvas-container--touch-scroll) .upper-canvas,
.canvas-stage .canvas-container:not(.canvas-container--touch-scroll) .lower-canvas {
  touch-action: none !important;
}

.canvas-stage .canvas-container canvas {
  width: min(100%, 360px);
  height: auto;
}

.canvas-stage .canvas-container .upper-canvas {
  background: transparent !important;
}

.canvas-stage .canvas-container .lower-canvas {
  background: transparent;
}

.studio-actions {
  display: flex;
  justify-content: center;
}

.creation-help-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(31, 122, 79, 0.28);
}

.creation-help-btn.is-pulsing {
  animation: helpPulse 1.2s ease-in-out infinite;
}

.creation-help-panel {
  position: absolute;
  top: 78px;
  right: 18px;
  z-index: 4;
  width: min(420px, calc(100% - 36px));
  padding: 18px 18px 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.creation-help-panel p {
  margin: 0 0 12px;
  line-height: 1.78;
  color: #20302a;
}

.creation-help-panel__lead {
  margin: 6px 0 12px;
  padding-right: 46px;
  font-weight: 700;
}

.creation-help-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(16, 33, 24, 0.08);
}

@keyframes helpPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.mobile-studio-dock {
  display: none;
}

.mobile-tool-btn {
  border-radius: 18px;
  padding: 14px 10px;
  background: rgba(240, 246, 241, 0.95);
  color: var(--brand-deep);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.08);
}

.mobile-tool-btn span,
.mobile-tool-btn small {
  display: block;
}

.mobile-tool-btn span {
  font-weight: 800;
}

.mobile-tool-btn small {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-soft);
}

.asset-card {
  position: sticky;
  top: 396px;
  min-height: 420px;
  max-height: calc(100vh - 414px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.asset-card__header,
.section-title-row,
.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.asset-card__header {
  margin-bottom: 14px;
}

.asset-panel-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.asset-panel-content::-webkit-scrollbar {
  width: 10px;
}

.asset-panel-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(31, 122, 79, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.asset-panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.asset-grid,
.poster-grid,
.gallery-grid {
  display: grid;
  gap: 12px;
}

.asset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asset-tile,
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(248, 251, 249, 0.9);
  border: 1px solid rgba(23, 35, 29, 0.08);
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.asset-tile:hover,
.gallery-item:hover,
.poster-thumb-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.asset-tile img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.details-box {
  margin-top: 14px;
}

.details-box summary {
  cursor: pointer;
  color: var(--brand-deep);
  font-weight: 700;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 2px solid rgba(23, 35, 29, 0.08);
}

.text-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.text-color-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(23, 35, 29, 0.12);
}

.panel-subtitle {
  margin-top: 14px;
}

#sticker-search-empty {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f4f2;
}

.ai-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(31, 122, 79, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(246, 250, 247, 0.96), rgba(255, 255, 255, 0.9));
}

.ai-panel__hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-panel__badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 122, 79, 0.12);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-panel__center {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-panel__avatar-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(31, 122, 79, 0.22);
}

.ai-panel__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ai-panel__intro {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.ai-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ai-quick-btn {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(240, 246, 241, 0.98);
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.08);
}

.ai-panel__body {
  max-height: 300px;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 8px 4px 12px 0;
}

.ai-message {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-message--bot {
  margin-right: 26px;
  background: linear-gradient(180deg, rgba(232, 246, 236, 1), rgba(244, 250, 246, 1));
  color: #173125;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.08);
}

.ai-message--user {
  margin-left: 26px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
}

.ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.ai-form input {
  min-height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.profile-hero {
  margin-bottom: 18px;
}

.profile-head,
.profile-stat-card {
  padding: 24px;
}

.profile-head {
  flex: 1;
}

.profile-head__note {
  margin-top: 14px;
  max-width: 680px;
  line-height: 1.85;
  color: var(--text-soft);
}

.profile-stat-card {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.profile-summary-card span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
}

.profile-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.4;
}

.poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  justify-content: start;
  align-items: start;
}

.poster-grid--folder {
  grid-template-columns: repeat(auto-fill, minmax(148px, 148px));
}

.poster-card {
  width: 180px;
  padding: 10px;
}

.poster-thumb-btn {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  background: #f8fafc;
}

.poster-thumb-btn img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.poster-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.profile-section-intro {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.profile-folder-card {
  position: relative;
  padding: 20px 18px 16px;
  border-radius: 22px;
  background: #f3f3f3;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.profile-folder-card + .profile-folder-card {
  margin-top: 22px;
}

.profile-folder-card__header {
  display: block;
  margin-bottom: 12px;
}

.profile-folder-card__header h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.02em;
}

.profile-folder-card__meta {
  margin-top: 4px;
  color: #8d8d8d;
  font-size: 13px;
}

.poster-grid--folder {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

.poster-card--folder {
  width: auto;
  padding: 0;
}

.poster-thumb-btn--folder {
  border-radius: 0;
  background: #dfdfdf;
}

.poster-thumb-btn--folder img {
  aspect-ratio: 1.18 / 1;
}

.gallery-page {
  display: grid;
  gap: 18px;
}

.assistant-page {
  display: grid;
  gap: 20px;
}

.assistant-hero-card,
.assistant-panel {
  padding: 26px 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.assistant-panel {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.assistant-panel__center {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 18px;
}

.assistant-panel__avatar {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(31, 122, 79, 0.22);
}

.assistant-panel__title {
  font-size: 28px;
  font-weight: 800;
}

.assistant-panel__intro {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.assistant-panel__messages {
  min-height: 280px;
}

.gallery-actions {
  display: flex;
  justify-content: center;
}

.studio-header-card--gallery {
  padding: 26px 28px;
  background:
    radial-gradient(circle at top right, rgba(31, 122, 79, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(246, 250, 247, 0.96), rgba(255, 255, 255, 0.9));
}

.gallery-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-meta-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.gallery-meta-card span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
}

.gallery-meta-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
}

.gallery-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
}

.gallery-item img {
  aspect-ratio: 9 / 16;
}

.gallery-item__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(17, 30, 23, 0.58);
  color: #ffffff;
  text-align: left;
  backdrop-filter: blur(8px);
}

.gallery-item__meta strong {
  font-size: 13px;
  line-height: 1.4;
}

.gallery-item__meta small {
  color: rgba(255, 255, 255, 0.76);
}

.empty-state {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  color: var(--text-soft);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(31, 122, 79, 0.1), transparent 28%),
    #ffffff;
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.modal-card--large {
  width: min(760px, 100%);
}

.modal-card--save {
  padding-top: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #eef2f7;
  border-radius: 999px;
  padding: 8px 12px;
}

.modal-card textarea {
  min-height: 140px;
  margin: 14px 0;
}

.modal-card textarea.save-field__textarea {
  min-height: 260px;
  margin: 0;
  width: 100%;
}

.modal-eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-intro {
  margin: 10px 0 0;
  line-height: 1.8;
  color: var(--text-soft);
}

.save-modal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.save-preview-card,
.save-form-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(246, 250, 247, 0.92);
}

.save-form-card {
  display: grid;
  align-content: start;
}

.save-preview-image {
  width: 100%;
  margin-top: 10px;
  border-radius: 18px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #edf2ee;
}

.save-field {
  display: grid;
  gap: 8px;
  color: #33433d;
  font-weight: 700;
}

.save-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 16px;
  font-size: 12px;
  color: var(--text-soft);
}

.save-form-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(246, 250, 247, 0), rgba(246, 250, 247, 0.92) 28%);
}

.visibility-box {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.visibility-box--card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.visibility-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.preview-image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 18px;
  background: #f8fafc;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  background: rgba(17, 28, 22, 0.92);
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
}

.center-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 240;
  max-width: min(86vw, 420px);
  background: rgba(17, 28, 22, 0.94);
  color: #ffffff;
  border-radius: 18px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.35);
}

@media (max-width: 1180px) {
  .studio-page {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .asset-card,
  .ai-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .auth-layout,
  .content-shell,
  .home-section,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .content-sidecard {
    order: -1;
  }

  .about-principles,
  .profile-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page--overlay,
  .home-page__overlay {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .shell {
    padding-bottom: 108px;
  }

  .shell-main {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .shell-header {
    padding: 16px 14px;
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(var(--nav-count, 5), minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: rgba(252, 254, 252, 0.94);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
  }

  .mobile-nav button {
    padding: 12px 8px;
    border-radius: 16px;
    background: rgba(240, 246, 241, 0.95);
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-nav button.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #ffffff;
  }

  .hero-mask {
    padding: 18px;
  }

  .hero-card,
  .auth-card,
  .auth-intro,
  .guide-card,
  .article-card,
  .toolbar-card,
  .canvas-card,
  .asset-card,
  .ai-panel,
  .profile-head,
  .profile-stat-card,
  .content-card,
  .content-sidecard,
  .home-copy,
  .home-visual {
    border-radius: 22px;
  }

  .hero-card,
  .auth-card,
  .auth-intro,
  .home-copy,
  .home-visual,
  .article-card,
  .content-sidecard,
  .content-card {
    padding: 22px;
  }

  .profile-hero {
    flex-direction: column;
  }

  .home-stat-grid,
  .studio-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-stat-card {
    width: 100%;
    min-width: 0;
  }

  .auth-trust-grid {
    grid-template-columns: 1fr;
  }

  .studio-page {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .canvas-card {
    order: 1;
  }

  .toolbar-card {
    order: 2;
    position: static;
    padding: 16px;
  }

  .toolbar-card {
    display: none;
  }

  .guide-card--docked {
    position: static;
  }

  .guide-card--centered {
    min-height: auto;
    justify-items: stretch;
    text-align: left;
  }

  .guide-card--centered .guide-options,
  .guide-card--centered .guide-actions {
    justify-content: flex-start;
  }

  .toolbar-card__header {
    margin-bottom: 12px;
  }

  .toolbar-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tool-btn {
    min-height: 88px;
    padding: 14px;
  }

  .font-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-card {
    order: 3;
    position: static;
    max-height: none;
  }

  .ai-panel {
    order: 1;
    position: static;
  }

  .studio-sidecolumn {
    order: 2;
  }

  .mobile-studio-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 6px 0 18px;
  }

  .creation-help-btn {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
  }

  .creation-help-panel {
    top: 70px;
    right: 14px;
    width: calc(100% - 28px);
  }

  .canvas-card--mobile-priority .studio-header-card,
  .canvas-card--mobile-priority .canvas-toolbar-hint {
    display: none;
  }

  .gallery-grid,
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-card h1,
  .home-copy h2,
  .article-card h2,
  .content-sidecard h2,
  .auth-intro h2 {
    font-size: 30px;
  }

  .guide-actions,
  .ai-form,
  .hero-actions {
    flex-direction: column;
  }

  .toolbar-list,
  .font-buttons,
  .asset-grid,
  .gallery-grid,
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stat-grid,
  .studio-status-strip {
    grid-template-columns: 1fr;
  }

  .gallery-overview,
  .save-modal-layout {
    grid-template-columns: 1fr;
  }

  .modal-mask {
    align-items: flex-start;
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    margin-top: 8px;
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .save-preview-card {
    display: none;
  }

  .save-form-card {
    padding: 14px;
  }

  .modal-card textarea {
    min-height: 120px;
  }

  .modal-card textarea.save-field__textarea {
    min-height: 220px;
  }

  .studio-page--poster-v0 {
    padding: 8px 8px 18px;
    gap: 8px;
  }

  .studio-page--poster-v0 .studio-page__headline h2 {
    font-size: 26px;
  }

  .studio-page--poster-v0 .studio-page__headline p {
    max-width: 300px;
    font-size: 13px;
  }

  .studio-page--poster-v0 .canvas-card--v2 {
    min-height: calc(100dvh - 462px);
  }

  .studio-page--poster-v0 .canvas-stage--v2 {
    min-height: calc(100dvh - 480px);
  }

  .studio-page--poster-v0 .canvas-stage--v2 .canvas-container {
    width: min(100%, 248px);
  }

  .studio-page--poster-v0 .canvas-stage--v2 .canvas-container canvas {
    max-height: 42vh;
  }

  .studio-page--poster-v0 .mobile-studio-dock--v2 .mobile-tool-btn {
    min-height: 56px;
    font-size: 10px;
  }

  .studio-page--poster-v0 .asset-card--sheet .asset-grid,
  .studio-page--poster-v0 .asset-card--sheet .asset-grid--dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbox-scroll-row--fonts {
    grid-auto-columns: 84px;
  }


  .ai-quick-grid,
  .text-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-principles,
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .canvas-toolbar-hint {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-form {
    grid-template-columns: 1fr;
  }

  .home-visual__quote {
    position: static;
    width: auto;
    margin-top: 16px;
  }

  .mobile-nav button {
    font-size: 11px;
  }

  .canvas-stage {
    padding: 6px 0 18px;
  }

  .mobile-studio-dock {
    position: sticky;
    bottom: 82px;
    z-index: 8;
    padding: 10px;
    border-radius: 24px;
    background: rgba(250, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
  }

  .canvas-stage .canvas-container canvas {
    width: min(100%, 320px);
  }

  .home-page__overlay {
    padding: 22px;
  }

  .home-overlay-copy h2 {
    font-size: 34px;
  }
}

/* V2 layout overrides */
.shell--immersive {
  background: #ffffff;
}

.shell-menu-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 45;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.88);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.shell-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.shell--page-home::after {
  content: "";
  position: fixed;
  top: 86px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(17, 17, 17, 0.32);
  z-index: 44;
}

.shell--page-profile::after {
  content: "";
  position: fixed;
  top: 86px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(17, 17, 17, 0.32);
  z-index: 44;
}

.shell-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 42;
  background: rgba(15, 15, 15, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.shell-drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shell-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 43;
  width: min(320px, 86vw);
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.16);
}

.shell-drawer.is-open {
  transform: translateX(0);
}

.shell-drawer__header,
.shell-drawer__links {
  display: grid;
  gap: 12px;
}

.shell-drawer__header {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 18px;
}

.shell-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.shell-drawer__links button {
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.shell-drawer__links button.is-active,
.primary-btn--dark {
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.secondary-btn--light {
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.12);
}

.v2-landing,
.v2-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  background: #dcdcdc;
  overflow: hidden;
}

.v2-phone-shell {
  width: min(100vw, 382px);
  height: min(100vh, 820px);
  border-radius: 34px;
  background: #f3f1ed;
  box-shadow: 0 28px 64px rgba(17, 24, 39, 0.2);
  overflow: hidden;
  position: relative;
}

.v2-phone-shell--landing {
  background: #111111;
}

.v2-phone-shell--auth {
  background: #ebe8e3;
}

.v2-landing__visual,
.v2-auth__visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.v2-landing__visual {
  position: absolute;
  inset: 0;
}

.v2-auth__visual {
  position: absolute;
  inset: 0 0 54% 0;
}

.v2-landing__visual-image,
.v2-auth__visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.v2-landing__visual-image {
  object-position: center center;
}

.v2-auth__visual-image {
  object-fit: cover;
  object-position: center 90%;
}

.v2-landing__visual-scrim,
.v2-auth__visual-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center top, rgba(0, 0, 0, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.28), rgba(7, 7, 7, 0.5));
}

.v2-landing__brand-wrap {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(80%, 260px);
}

.v2-landing__brand {
  color: #ffffff;
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.v2-landing__avatar {
  width: 92px;
  height: 92px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.18);
}

.v2-landing__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  min-height: 43%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 28px 30px;
  border-radius: 0 0 34px 34px;
  background: #ffffff;
}

.v2-landing__panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -154px;
  width: 182%;
  height: 246px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffffff;
}

.v2-landing__panel > * {
  position: relative;
  z-index: 1;
}

.v2-landing__welcome {
  font-size: clamp(34px, 7.6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  color: #444444;
  margin-top: 34px;
  margin-bottom: 8px;
}

.v2-landing__panel p {
  margin: 0;
  text-align: center;
  color: #6a6a6a;
  line-height: 1.6;
  font-size: 13px;
}

.v2-landing__cta {
  width: 100%;
  margin-top: 26px;
  min-height: 56px;
  border-radius: 999px;
  font-size: 16px;
}

.v2-auth__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  min-height: 61%;
  display: flex;
  flex-direction: column;
  padding: 74px 38px 34px;
  border-radius: 0 126px 34px 34px;
  background: #ffffff;
  box-shadow: none;
  overflow: auto;
}

.v2-auth__panel > * {
  position: relative;
  z-index: 1;
}

.v2-auth__heading {
  margin-bottom: 22px;
  text-align: left;
}

.v2-auth__title {
  font-size: clamp(42px, 11vw, 60px);
  line-height: 0.94;
  font-weight: 900;
  color: #343434;
  letter-spacing: -0.04em;
}

.v2-auth__heading p {
  margin: 8px 0 0;
  color: #ababab;
  font-size: 13px;
}

.v2-auth__tabs {
  display: flex;
  width: 100%;
  margin-bottom: 18px;
  flex-shrink: 0;
  gap: 10px;
}

.v2-auth__tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  color: #707070;
  box-shadow: none;
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 700;
}

.v2-auth__tab.is-active {
  background: #111111;
  color: #ffffff;
}

.v2-auth__form {
  gap: 14px;
  display: grid;
  flex: 1;
  align-content: start;
}

.v2-auth__field {
  position: relative;
  display: block;
}

.v2-auth__field input {
  min-height: 56px;
  border: none;
  border-radius: 14px;
  background: #f3f3f3;
  padding: 0 54px 0 48px;
  color: #3e3e3e;
  box-shadow: none;
  font-size: 16px;
  width: 100%;
}

.v2-auth__field input::placeholder {
  color: #9b9b9b;
}

.v2-auth__field-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #7a7a7a;
  pointer-events: none;
}

.v2-auth__field-icon--user,
.v2-auth__field-icon--lock {
  left: 16px;
  width: 18px;
  height: 18px;
}

.v2-auth__field-icon--user::before,
.v2-auth__field-icon--user::after,
.v2-auth__field-icon--lock::before,
.v2-auth__field-icon--lock::after,
.v2-auth__field-icon--eye::before,
.v2-auth__field-icon--eye::after {
  content: "";
  position: absolute;
}

.v2-auth__field-icon--user::before {
  left: 4px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.v2-auth__field-icon--user::after {
  left: 1px;
  bottom: 0;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.v2-auth__field-icon--lock::before {
  left: 4px;
  top: 1px;
  width: 8px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.v2-auth__field-icon--lock::after {
  left: 2px;
  bottom: 1px;
  width: 12px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.v2-auth__field-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: transparent;
  padding: 0;
}

.v2-auth__field-icon--eye {
  left: 50%;
  width: 18px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.v2-auth__field-icon--eye::before {
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 100% / 88%;
}

.v2-auth__field-icon--eye::after {
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.v2-auth__link {
  justify-self: start;
  margin-top: -2px;
  padding: 0;
  background: transparent;
  color: #8e8e8e;
  font-size: 13px;
}

.v2-auth__submit {
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  border-radius: 999px;
  font-size: 16px;
}

.v2-home {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.v2-home__hero {
  min-height: 100vh;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.v2-home__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 688px);
  margin: 92px 18px 0;
  padding: 24px 34px 30px 22px;
  border-radius: 0 0 26px 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.08);
}

.v2-home__copy h2 {
  margin: 0 0 34px;
  font-size: clamp(40px, 5.3vw, 74px);
  font-weight: 900;
  line-height: 1;
  color: #111111;
  letter-spacing: -0.05em;
}

.v2-home__copy p {
  max-width: 32ch;
  margin: 0;
  padding-right: 14px;
  line-height: 1.78;
  color: #29322d;
  font-size: 15px;
}

.v2-home__copy p + p {
  margin-top: 10px;
}

.v2-home__copy .hero-actions {
  margin-top: 64px;
}

.v2-home__bottom {
  position: absolute;
  inset: 0;
  overflow: hidden;
  min-height: 100vh;
}

.v2-home__bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.v2-home--overlay-copy .v2-home__copy {
  width: min(100%, 700px);
  margin: 104px 18px 0;
  padding: 0 40px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v2-home--overlay-copy .v2-home__copy h2 {
  color: #111111;
  text-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.v2-home--overlay-copy .v2-home__copy p {
  max-width: 31ch;
  color: rgba(17, 17, 17, 0.92);
  text-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

.v2-home--overlay-copy .secondary-btn--light {
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  box-shadow:
    inset 0 0 0 1px rgba(17, 24, 39, 0.12),
    0 12px 24px rgba(17, 24, 39, 0.12);
}

.v2-about {
  display: grid;
  gap: 0;
  min-height: 100vh;
}

.v2-about__hero {
  position: relative;
  min-height: 300px;
  border-radius: 0;
  overflow: hidden;
  background: #dfe7eb;
}

.v2-about__hero img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: brightness(0.72);
}

.v2-about__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 24, 0.1), rgba(12, 18, 24, 0.28));
}

.v2-about__hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #ffffff;
  text-align: center;
}

.v2-about__hero-copy h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.content-shell--about-v2 {
  grid-template-columns: minmax(0, 1fr) 58px;
  grid-template-areas: "article nav";
  gap: 8px;
  align-items: start;
  margin-top: 0;
}

.about-sidecard--v2 {
  grid-area: nav;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 6px 0 0 6px;
  position: sticky;
  top: 98px;
  align-self: start;
  justify-self: end;
  width: 100%;
  max-width: 58px;
  border-left: 1px solid rgba(17, 24, 39, 0.12);
  min-height: calc(100vh - 132px);
}

.article-card--v2 {
  grid-area: article;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  padding: 28px 16px 36px 20px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.05);
  border-top: none;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.06);
  backdrop-filter: none;
  border-radius: 0 0 30px 30px;
}

.v2-about__menu-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.88);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.v2-about__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.about-nav-list {
  gap: 14px;
  margin-top: 0;
}

.about-nav-item {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #7b7b7b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  width: 100%;
  box-shadow: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.about-nav-item.is-active {
  background: transparent;
  color: #111111;
  box-shadow: none;
}

.about-section-block {
  scroll-margin-top: 116px;
}

.about-section-block + .about-section-block {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.about-section-block h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.3;
  color: #111111;
}

.article-card--v2 p {
  margin: 0;
  color: #3f454c;
  line-height: 1.92;
  font-size: 14px;
}

.about-paragraph + .about-paragraph {
  margin-top: 12px;
}

.about-paragraph--bullet {
  position: relative;
  padding-left: 18px;
  margin-top: 22px;
  color: #111111;
}

.about-paragraph--bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #111111;
  transform: translateY(-50%);
}

.about-paragraph--labelled {
  line-height: 1.92;
}

.about-paragraph--bullet strong,
.about-paragraph--labelled strong {
  color: #111111;
  font-weight: 800;
}

.profile-page--v2 {
  gap: 20px;
  padding: 156px 16px 40px;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.profile-hero--v2 {
  display: grid;
  gap: 14px;
}

.profile-head--v2 {
  background: #ffffff;
  padding: 0;
  box-shadow: none;
  border: none;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.profile-name {
  font-size: clamp(34px, 6.2vw, 46px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  color: #111111;
  line-height: 1.02;
  padding: 0 2px;
}

.profile-chip {
  display: inline-flex;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #111111;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.content-card--v2 {
  background: #ffffff;
  box-shadow: none;
  border: none;
}

.profile-library {
  padding: 16px 0 0;
}

.profile-library__summary {
  margin-bottom: 0;
  color: #6f6f6f;
  font-size: 14px;
  padding: 0 2px;
}

.profile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item--profile {
  border-radius: 18px;
  background: #ececec;
  border: none;
  box-shadow: none;
}

.profile-gallery-btn {
  width: 100%;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}

.profile-gallery-btn img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.gallery-page--v2 {
  min-height: 100vh;
}

.gallery-stage,
.gallery-frame {
  position: relative;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
}

.gallery-frame {
  display: grid;
  place-items: center;
  background: #0c0d10;
}

.gallery-frame__image {
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  object-fit: contain;
}

.gallery-frame__top {
  position: absolute;
  top: 18px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-frame__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-frame__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.gallery-home-btn,
.gallery-complete-btn {
  min-width: 46px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.62);
  color: #ffffff;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.16);
}

.gallery-next-btn,
.gallery-prev-btn {
  position: fixed;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.5);
  color: #ffffff;
  font-size: 26px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.gallery-next-btn {
  right: 14px;
}

.gallery-prev-btn {
  left: 14px;
}

.gallery-next-btn span,
.gallery-prev-btn span {
  display: block;
  line-height: 1;
  transform: translateX(1px);
}

.gallery-stage__loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #111111;
}

.studio-page--v2 {
  display: grid;
  gap: 10px;
  min-height: calc(100vh - 20px);
  padding: 10px 8px 18px;
}

.studio-page--ai-open .studio-page__workspace,
.studio-page--ai-open .mobile-studio-dock--v2,
.studio-page--ai-open .asset-card--sheet {
  opacity: 0.28;
  filter: grayscale(0.32) blur(1.4px);
  pointer-events: none;
}

.studio-page--guide-locked .studio-page__workspace,
.studio-page--guide-locked .studio-status-strip--v2,
.studio-page--guide-locked .mobile-studio-dock--v2,
.studio-page--guide-locked .asset-card--sheet,
.studio-page--guide-locked .studio-page__topbar,
.studio-page--guide-locked .ai-fab-wrap {
  pointer-events: none;
}

.studio-page__topbar,
.studio-page__headline,
.studio-status-strip--v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-page__headline {
  align-items: flex-start;
}

.studio-page__headline--guided {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.studio-page__headline--guided .guide-card {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}

.studio-page--v2 {
  gap: 8px;
}

.studio-page--v2 .guide-card,
.studio-page--v2 .guide-card.guide-card--guided.guide-card--centered {
  min-height: auto;
  align-content: start;
  padding: 13px 16px;
  margin: 4px 0 0;
  border-radius: 20px;
}

.studio-page--v2 .guide-card .guide-meta {
  margin-bottom: 2px;
}

.studio-page--v2 #guide-title {
  margin: 4px 0;
  font-size: 16px;
  line-height: 1.45;
}

.studio-page--v2 #guide-description {
  font-size: 12.5px;
  line-height: 1.45;
}

.studio-page--v2 .guide-actions {
  margin-top: 12px;
  gap: 10px;
}

.studio-page--v2 .guide-actions .primary-btn,
.studio-page--v2 .guide-actions .secondary-btn {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.studio-page--v2 .canvas-card--v2 {
  padding: 10px;
  border-radius: 24px;
}

.studio-page--v2.studio-page--guide-active .canvas-stage--v2 {
  min-height: 0;
  padding: 0;
}

.studio-page--v2.studio-page--guide-active .canvas-card--v2 {
  width: min(100%, 248px);
  margin: 0 auto;
}

.studio-page--v2.studio-page--guide-active .canvas-stage--v2 .canvas-container {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 300 / 534;
}

.studio-page--v2.studio-page--guide-active .canvas-stage--v2 .canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.studio-page__headline h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 4.4vw, 28px);
}

.studio-page__headline p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 14px;
}

.studio-back-btn,
.studio-done-btn {
  min-width: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
}

.studio-page__brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.creation-help-btn--inline {
  position: static;
  flex-shrink: 0;
}

.studio-page__workspace {
  position: relative;
  z-index: 2;
}

.canvas-card--v2 {
  background: linear-gradient(180deg, #f2f0eb 0%, #efe9df 100%);
  padding: 14px;
  border-radius: 30px;
}

.canvas-stage--v2 {
  justify-content: center;
  padding: 0;
}

.canvas-stage--v2 .canvas-container {
  border-radius: 26px;
  box-shadow: 0 28px 50px rgba(17, 24, 39, 0.22);
}

.mobile-studio-dock--v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mobile-studio-dock--v2 .mobile-tool-btn {
  background: #ffffff;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
  gap: 4px;
  padding: 10px 6px;
}

.mobile-studio-dock--v2 .mobile-tool-btn.is-active {
  background: #111111;
  color: #ffffff;
}

.mobile-tool-btn__icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 2px;
  border-radius: 6px;
  border: 2px solid currentColor;
  position: relative;
}

.mobile-tool-btn__icon--text::before,
.mobile-tool-btn__icon--text::after,
.mobile-tool-btn__icon--sticker::before,
.mobile-tool-btn__icon--color::before,
.mobile-tool-btn__icon--image::before {
  content: "";
  position: absolute;
}

.mobile-tool-btn__icon--text::before {
  left: 4px;
  right: 4px;
  top: 4px;
  height: 2px;
  background: currentColor;
}

.mobile-tool-btn__icon--text::after {
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: 4px;
  border-left: 2px solid currentColor;
}

.mobile-tool-btn__icon--sticker::before {
  inset: 3px;
  border-radius: 50%;
  border: 2px dashed currentColor;
}

.mobile-tool-btn__icon--color::before {
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
}

.mobile-tool-btn__icon--image::before {
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 8px;
  background: linear-gradient(135deg, transparent 0 30%, currentColor 31% 55%, transparent 56% 100%);
}

.asset-card--sheet {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  transform: none;
  transition: none;
  max-height: none;
  min-height: 0;
  background: rgba(255, 255, 255, 0.98);
  pointer-events: auto;
}

.asset-card--sheet .asset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asset-card--sheet .asset-grid--dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asset-card--sheet .asset-tile {
  border-radius: 16px;
}

.studio-page--poster-v0 {
  min-height: 100dvh;
  padding: 8px 10px 14px;
  gap: 8px;
  background: #f2efea;
}

.studio-page--poster-v0 .studio-page__topbar {
  align-items: center;
  margin-bottom: 2px;
}

.studio-page--poster-v0 .studio-complete-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 46;
  min-width: 68px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
  font-size: 13px;
}

.studio-page--poster-v0 .studio-nav-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 46;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.88);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.studio-page--poster-v0 .studio-nav-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.studio-page--poster-v0 .studio-page__headline {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  margin-top: 40px;
  margin-bottom: 0;
  padding: 0 6px;
}

.studio-page__headline-copy {
  position: relative;
}

.studio-page--poster-v0 .studio-page__headline-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.studio-page--poster-v0 .studio-page__headline h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.studio-page--poster-v0 .studio-page__headline p {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.studio-page--poster-v0 .creation-help-btn--pill {
  position: absolute;
  top: 24px;
  right: 0;
  left: auto;
  bottom: auto;
  width: 34px;
  height: auto;
  min-height: 108px;
  padding: 14px 7px;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16);
  z-index: 4;
}

.studio-page--poster-v0 .creation-help-btn__icon {
  font-size: 16px;
  line-height: 1;
}

.studio-page--poster-v0 .creation-help-btn__text {
  writing-mode: vertical-rl;
  letter-spacing: 3px;
}

.studio-page--poster-v0 .creation-help-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
  max-height: 82vh;
  overflow-y: auto;
  padding: 30px 26px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.32);
  z-index: 60;
}

.studio-page--poster-v0 .creation-help-panel__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 20px;
  background: rgba(16, 33, 24, 0.10);
}

.studio-page--poster-v0 .creation-help-panel__lead {
  margin: 34px 0 18px;
  padding-right: 46px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.studio-page--poster-v0 .creation-help-panel p {
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 16px;
}

.studio-page--poster-v0 .studio-page__workspace {
  padding-top: 0;
  margin-bottom: 2px;
}

.studio-page--guided-poster .guide-card {
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
}

.studio-page--guided-poster .guide-card--centered {
  position: static;
  inset: auto;
  z-index: auto;
  min-height: auto;
  margin: 0 0 10px;
  align-content: start;
  text-align: center;
}

.studio-page--guided-poster .guide-card--docked {
  position: static;
  top: auto;
  z-index: 1;
}

.studio-page--guided-poster .guide-card h3 {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.4;
}

.studio-page--guided-poster .guide-meta {
  font-size: 10px;
}

.studio-page--guided-poster .guide-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.studio-page--guided-poster .guide-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.studio-page--guided-poster .guide-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.studio-page--guided-poster .guide-actions .primary-btn,
.studio-page--guided-poster .guide-actions .secondary-btn {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 12px;
}

.studio-page--guided-poster.studio-page--guide-active .canvas-stage--v2 {
  min-height: 0;
}

.studio-page--guided-poster.studio-page--guide-active .canvas-stage--v2 .canvas-container {
  width: min(100%, calc(34vh * 300 / 534));
}

.studio-page--guided-poster.studio-page--guide-active .canvas-stage--v2 .canvas-container canvas {
  max-height: none;
}

.studio-page--poster-v0 .canvas-card--v2 {
  position: relative;
  display: block;
  min-height: 0;
  width: min(100%, 274px);
  margin: 0 auto;
  padding: 10px 10px 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, #eeebe4 0%, #e8e2d8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(17, 24, 39, 0.06),
    0 18px 30px rgba(17, 24, 39, 0.08);
  overflow: visible;
}

.canvas-center-guide {
  position: absolute;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
}

.canvas-center-guide.is-hidden {
  opacity: 0;
}

.canvas-center-guide__line {
  position: absolute;
  background: rgba(37, 99, 235, 0.85);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.canvas-center-guide__line.is-active {
  opacity: 1;
}

.canvas-center-guide__line--vertical {
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.canvas-center-guide__line--horizontal {
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.canvas-center-guide__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.canvas-center-guide__dot.is-active {
  opacity: 1;
}

.studio-page--poster-v0 .canvas-stage--v2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.studio-page--poster-v0 .canvas-stage--v2 .canvas-container {
  width: min(100%, 228px);
  margin: 0 auto;
  height: auto !important;
  aspect-ratio: 300 / 534;
  border-radius: 22px;
  box-shadow:
    0 28px 52px rgba(17, 24, 39, 0.22),
    0 0 0 1px rgba(17, 24, 39, 0.08);
}

.studio-page--poster-v0 .canvas-stage--v2 .canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
}

.studio-page--poster-v0 .mobile-studio-dock--v2 {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.studio-page--poster-v0 .mobile-studio-dock--v2 .mobile-tool-btn {
  min-height: 50px;
  border-radius: 16px;
  padding: 8px 4px 7px;
  font-size: 10px;
  line-height: 1.25;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.studio-page--poster-v0 .mobile-studio-dock--v2 .mobile-tool-btn small {
  display: none;
}

.studio-page--poster-v0 .mobile-tool-btn__icon {
  width: 16px;
  height: 16px;
  margin-bottom: 4px;
}

.studio-page--poster-v0 .asset-card--sheet {
  margin-top: 4px;
  min-height: 0;
  max-height: none;
  padding: 12px 12px calc(10px + env(safe-area-inset-bottom));
  border-radius: 22px;
  background: #050505;
  color: #ffffff;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.studio-page--poster-v0 .asset-card__expander {
  display: grid;
  gap: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-page--poster-v0 .asset-card__expander.hidden {
  display: none;
}

.studio-page--poster-v0 .asset-card--fixed-page .asset-card__header--sheet {
  margin-bottom: 8px;
}

.studio-page--poster-v0 .asset-card--fixed-page .asset-panel-content {
  max-height: min(31dvh, 270px);
  overflow-y: auto;
  padding-top: 2px;
  padding-right: 2px;
}

.studio-page--poster-v0 .mobile-studio-dock--inline {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sticker-panel {
  display: grid;
  gap: 10px;
}

.sticker-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 308px;
  overflow-y: auto;
  padding-right: 2px;
}

.sticker-panel__grid::-webkit-scrollbar {
  width: 8px;
}

.sticker-panel__grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.sticker-panel .asset-tile {
  border-radius: 10px;
  background: #141414;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sticker-panel .asset-tile img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 6px;
}

.toolbox-text-entry {
  display: block;
}

.toolbox-text-head {
  display: grid;
  gap: 10px;
}

.toolbox-text-head__title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.toolbox-text-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

.toolbox-text-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.toolbox-text-input--multiline {
  min-height: 64px;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}

.toolbox-tab-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 18px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.toolbox-tab-btn {
  min-height: 30px;
  padding: 0 0 8px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.toolbox-tab-btn.is-active {
  background: transparent;
  color: #d9ff3f;
  border-bottom-color: #d9ff3f;
}

.toolbox-stage-card {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.toolbox-stage-card--simple {
  display: grid;
  gap: 14px;
}

.toolbox-section {
  display: grid;
  gap: 8px;
}

.toolbox-section__title {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.toolbox-mini-title {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.toolbox-font-preview-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.toolbox-font-preview {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.toolbox-font-preview.is-accent {
  color: #f1ff6d;
}

.toolbox-scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, max-content);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.toolbox-scroll-row--fonts {
  grid-auto-columns: 92px;
}

.toolbox-scroll-row--colors {
  grid-auto-columns: 42px;
}

.toolbox-scroll-row--brush {
  grid-auto-columns: 68px;
}

.toolbox-color-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 38px;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 6px;
  align-items: center;
}

.toolbox-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toolbox-pill-row--single {
  grid-template-columns: 1fr;
}

.toolbox-pill-btn {
  min-height: 38px;
  border-radius: 999px;
  background: #111111;
  color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.toolbox-pill-btn.is-active {
  background: #ffffff;
  color: #111111;
}

.toolbox-font-chip,
.toolbox-action-chip,
.toolbox-control-row button {
  min-height: 42px;
  border-radius: 16px;
  background: #f3f2ee;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.toolbox-font-chip {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  padding: 10px 8px;
}

.toolbox-font-chip--dark {
  min-height: 60px;
  background: #111111;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.toolbox-font-chip__preview {
  font-size: 18px;
  line-height: 1;
}

.toolbox-font-chip small {
  font-size: 11px;
  color: #5b5b57;
}

.toolbox-font-chip--dark small {
  color: rgba(255, 255, 255, 0.6);
}

.toolbox-control-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.toolbox-control-row--align {
  margin-top: 0;
}

.toolbox-control-row--style {
  margin-top: 0;
}

.toolbox-action-chip.is-active,
.toolbox-control-row button.is-active,
.toolbox-font-chip.is-active,
.studio-page--poster-v0 .mobile-tool-btn.is-active {
  background: #111111;
  color: #ffffff;
}

.toolbox-action-chip.is-active small,
.toolbox-font-chip.is-active small {
  color: rgba(255, 255, 255, 0.8);
}

.toolbox-icon-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 10px 0 6px;
}

.toolbox-icon-btn {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
}

.toolbox-icon-btn.is-active {
  color: #ffffff;
}

.toolbox-icon-btn__glyph {
  font-size: 34px;
  line-height: 1;
  color: currentColor;
}

.toolbox-icon-btn__glyph.is-bold {
  font-weight: 800;
}

.toolbox-icon-btn__glyph.is-italic {
  font-style: italic;
}

.toolbox-icon-btn__glyph.is-underline {
  text-decoration: underline;
}

.toolbox-icon-btn__glyph--shadow-soft {
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.28);
}

.toolbox-icon-btn__glyph--shadow-strong {
  text-shadow: 0 6px 18px rgba(255, 255, 255, 0.42);
}

.toolbox-icon-btn small {
  font-size: 11px;
  color: inherit;
}

.toolbox-slider-block {
  margin-top: 14px;
}

.toolbox-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.toolbox-slider-shell {
  padding: 12px 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.toolbox-slider-shell__label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.toolbox-slider {
  width: 100%;
  accent-color: #ffffff;
}

.toolbox-slider--dark {
  accent-color: #ffffff;
}

.text-color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.text-color-swatch.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.text-color-swatch--clear {
  position: relative;
  background: transparent;
}

.text-color-swatch--clear::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.text-color-swatch--clear::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 15px;
  height: 2px;
  background: rgba(255, 82, 82, 0.95);
  transform: rotate(-35deg);
}

.studio-page--poster-v0 .asset-card__header--sheet {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-page--poster-v0 .asset-card__header--sheet h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.1;
  color: #ffffff;
}

.studio-page--poster-v0 .font-buttons,
.studio-page--poster-v0 .color-grid,
.studio-page--poster-v0 .text-color-grid,
.studio-page--poster-v0 .asset-grid,
.studio-page--poster-v0 .asset-card--sheet .asset-grid--dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.studio-page--poster-v0 .font-buttons button,
.studio-page--poster-v0 .color-swatch,
.studio-page--poster-v0 .asset-tile {
  border-radius: 16px;
}

.studio-page--poster-v0 .panel-switch {
  gap: 8px;
  margin: 8px 0 12px;
}

.studio-page--poster-v0 .panel-switch button,
.studio-page--poster-v0 .font-buttons button {
  min-height: 46px;
  padding: 8px 6px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.25;
  background: #111111;
  color: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.studio-page--poster-v0 .font-buttons button.is-active,
.studio-page--poster-v0 .panel-switch button.is-active,
.studio-page--poster-v0 .full-width-btn.is-active {
  background: #ffffff;
  color: #111111;
}

.studio-page--poster-v0 .mobile-tool-btn {
  background: #ffffff;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.studio-page--poster-v0 .mobile-tool-btn.is-active {
  background: #eef3d0;
  color: #111111;
  box-shadow: inset 0 0 0 2px #b8c76a;
}

.studio-page--poster-v0 .mini-label,
.studio-page--poster-v0 .muted-text,
.studio-page--poster-v0 #sticker-search-empty {
  color: rgba(255, 255, 255, 0.6);
}

.studio-page--poster-v0 .mobile-tool-btn span,
.studio-page--poster-v0 .mobile-tool-btn small {
  color: #111111;
}

.studio-page--poster-v0 .toolbox-tab-row--dark {
  margin-top: 14px;
}

.studio-page--poster-v0 .toolbox-tab-btn--dark {
  font-size: 12px;
}

.studio-page--poster-v0 .toolbox-stage-card--dark {
  margin-top: 10px;
}

.studio-page--poster-v0 .toolbox-stage-card--simple {
  margin-top: 10px;
  gap: 12px;
}

.studio-page--poster-v0 .toolbox-font-chip {
  min-height: 62px;
  padding: 8px 6px;
  border-radius: 12px;
}

.studio-page--poster-v0 .toolbox-font-chip__preview {
  font-size: 18px;
}

.studio-page--poster-v0 .toolbox-icon-btn__glyph {
  font-size: 30px;
}

.studio-page--poster-v0 .toolbox-color-row {
  gap: 10px;
  grid-auto-columns: 34px;
}

.studio-page--poster-v0 .toolbox-pill-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.toolbox-pill-row--brush-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-bottom: 12px;
}

.studio-page--poster-v0 .toolbox-pill-btn {
  min-height: 36px;
  font-size: 12px;
}

.studio-page--poster-v0 .toolbox-slider-shell {
  margin-bottom: 10px;
}

.studio-page--poster-v0 .sticker-panel__grid {
  max-height: 324px;
}

.studio-page--poster-v0 .sticker-panel .asset-tile {
  border-radius: 8px;
}

.studio-page--poster-v0 .sticker-panel .asset-tile img {
  padding: 4px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-page--poster-v0 .text-color-swatch {
  width: 32px;
  height: 32px;
}

.studio-page--poster-v0 .asset-grid .asset-tile,
.studio-page--poster-v0 .sticker-panel .asset-tile {
  min-height: 72px;
}

.studio-page--poster-v0 .asset-grid .asset-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-page--poster-v0 .canvas-stage--v2 .canvas-container.canvas-container--touch-scroll,
.studio-page--poster-v0 .canvas-stage--v2 .canvas-container.canvas-container--touch-scroll .upper-canvas,
.studio-page--poster-v0 .canvas-stage--v2 .canvas-container.canvas-container--touch-scroll .lower-canvas {
  touch-action: pan-y !important;
}

.studio-page--poster-v0 .canvas-stage--v2 .canvas-container:not(.canvas-container--touch-scroll) .upper-canvas,
.studio-page--poster-v0 .canvas-stage--v2 .canvas-container:not(.canvas-container--touch-scroll) .lower-canvas {
  touch-action: none !important;
}

.studio-page--poster-v0 .canvas-stage--v2 .canvas-container canvas,
.studio-page--poster-v0 .canvas-stage--v2 .upper-canvas,
.studio-page--poster-v0 .canvas-stage--v2 .lower-canvas {
  -ms-touch-action: auto;
}

.studio-page--poster-v0 .toolbox-font-preview {
  font-size: 18px;
}

.studio-page--poster-v0 .toolbox-font-preview-strip {
  gap: 12px;
}

.studio-page--poster-v0 .toolbox-scroll-row--fonts-dark {
  grid-auto-columns: 82px;
}

.studio-page--poster-v0 .toolbox-slider-block {
  margin-top: 12px;
}

.studio-page--poster-v0 .toolbox-slider-label {
  margin-bottom: 6px;
}

.studio-page--poster-v0 .toolbox-slider {
  height: 18px;
}

.studio-page--poster-v0 .toolbox-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.studio-page--poster-v0 .toolbox-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  color: #ffffff;
  background: #ffffff;
}

.studio-page--poster-v0 .asset-tile img {
  aspect-ratio: 1 / 1;
}

.studio-page--poster-v0 .search-input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: #f4f4f2;
}

.studio-page--poster-v0 .asset-panel-content {
  padding-right: 2px;
}

.studio-page--poster-v0 .toolbox-tab-row {
  margin-top: 10px;
}

.studio-page--poster-v0 .toolbox-tab-btn {
  min-height: 36px;
  font-size: 11px;
}

.studio-page--poster-v0 .toolbox-stage-card {
  padding: 10px;
  border-radius: 18px;
}

.studio-page--poster-v0 .toolbox-font-chip {
  min-height: 66px;
  padding: 8px 6px;
  border-radius: 14px;
}

.studio-page--poster-v0 .toolbox-font-chip__preview {
  font-size: 17px;
}

.studio-page--poster-v0 .toolbox-font-chip small {
  font-size: 10px;
}

.studio-page--poster-v0 .toolbox-action-chip,
.studio-page--poster-v0 .toolbox-control-row button {
  min-height: 40px;
  border-radius: 14px;
  font-size: 12px;
}

.studio-page--poster-v0 .sticker-panel__grid {
  max-height: 286px;
}

.studio-page--poster-v0 .mini-label {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.studio-page--poster-v0 .muted-text {
  font-size: 12px;
  line-height: 1.55;
}

.studio-page--poster-v0 #sticker-search-empty {
  font-size: 12px;
  line-height: 1.45;
}

.asset-card--sheet.asset-card--open {
  transform: translateY(0);
  pointer-events: auto;
}

.asset-card__header--sheet {
  align-items: center;
}

.font-buttons button.is-active,
.text-color-swatch.is-selected {
  background: #111111;
  color: #ffffff;
}

.text-color-swatch.is-selected {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

.ai-fab-wrap {
  position: fixed;
  right: 16px;
  bottom: 110px;
  z-index: 38;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.ai-fab-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  animation: aiBreath 1.8s ease-in-out infinite;
}

.ai-fab-btn::before,
.ai-fab-btn::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.ai-fab-btn::before {
  inset: -10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0) 72%);
  filter: blur(6px);
  opacity: 0.9;
  animation: aiGlowPulse 1.8s ease-in-out infinite;
}

.ai-fab-btn::after {
  inset: -16px;
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.5),
    0 0 44px rgba(255, 255, 255, 0.28);
  opacity: 0.78;
  animation: aiGlowPulse 1.8s ease-in-out infinite;
}

.ai-fab-btn img,
.ai-drawer__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.ai-fab-hint {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.ai-drawer-mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 48;
  background: rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ai-drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ai-drawer {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 49;
  min-height: 58vh;
  max-height: 65vh;
  padding: 18px 16px 14px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 249, 248, 0.9)),
    rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(22px);
  box-shadow:
    0 28px 56px rgba(17, 24, 39, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  transform: translateY(calc(100% + 20px));
  transition: transform 0.24s ease;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
}

.ai-drawer.is-open {
  transform: translateY(0);
}

.guide-card--centered {
  position: fixed;
  inset: 88px 18px auto 18px;
  z-index: 44;
  min-height: auto;
  padding: 24px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 56px rgba(17, 24, 39, 0.24);
}

.guide-card--centered .guide-options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-card--centered .guide-actions {
  width: 100%;
}

.ai-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.ai-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.ai-drawer__intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ai-drawer__intro-copy {
  flex: 1;
}

.ai-drawer__intro-copy strong {
  display: block;
  font-size: 15px;
  font-size: 15px;
}

.ai-drawer .ai-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 0;
}

.ai-drawer .ai-quick-btn {
  min-height: 30px;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 10px;
  background: rgba(245, 245, 244, 0.92);
  color: #1f2937;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.ai-drawer .ai-panel__body {
  max-height: none;
  min-height: 200px;
  gap: 8px;
  padding: 4px 2px 8px 0;
}

.ai-drawer .ai-message {
  max-width: calc(100% - 20px);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 14px;
}

.ai-drawer .ai-message--bot {
  margin-right: auto;
  background: linear-gradient(180deg, rgba(242, 242, 241, 1), rgba(248, 248, 247, 1));
  color: #111827;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.ai-drawer .ai-message--user {
  margin-left: auto;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.ai-drawer .ai-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ai-drawer .ai-form input {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.ai-drawer .ai-form .primary-btn {
  min-width: 72px;
  min-height: 48px;
  border-radius: 999px;
}

.gallery-next-btn::before,
.gallery-prev-btn::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  filter: blur(4px);
  z-index: -1;
}

@keyframes aiBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes aiGlowPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .content-shell--about-v2 {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 6px;
  }

  .about-sidecard--v2 {
    top: 90px;
    min-height: calc(100vh - 108px);
    max-width: 54px;
    padding-left: 4px;
    border-left: 1px solid rgba(17, 24, 39, 0.1);
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .v2-landing,
  .v2-auth {
    padding: 0;
  }

  .v2-phone-shell {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .v2-landing__panel {
    min-height: 43%;
    padding-top: 22px;
    border-radius: 0 0 28px 28px;
  }

  .v2-landing__panel::before {
    top: -138px;
    width: 188%;
    height: 222px;
  }

  .v2-landing__welcome {
    margin-top: 28px;
  }

  .v2-auth__panel {
    min-height: 61%;
    padding: 68px 26px 30px;
    border-radius: 0 112px 28px 28px;
  }

  .shell-main {
    width: calc(100% - 12px);
  }

  .v2-home__hero {
    min-height: 100dvh;
  }

  .v2-home__copy {
    width: calc(100% - 24px);
    margin: 88px 12px 0;
    padding: 22px 26px 26px 18px;
    border-radius: 0 0 22px 22px;
  }

  .v2-home__copy h2 {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 30px;
  }

  .v2-home__copy p {
    max-width: 29ch;
    padding-right: 10px;
    font-size: 14px;
    line-height: 1.7;
  }

  .v2-home__copy .hero-actions {
    margin-top: 56px;
  }

  .v2-home__bottom {
    min-height: 100dvh;
  }

  .v2-home--overlay-copy .v2-home__copy {
    margin: 98px 12px 0;
    padding-right: 18px;
  }

  .v2-home--overlay-copy .v2-home__copy p {
    max-width: 27ch;
  }

  .v2-about__hero {
    min-height: 220px;
    border-radius: 0;
  }

  .v2-about__hero img {
    min-height: 220px;
  }

  .v2-about__menu-btn {
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .content-shell--about-v2 {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 4px;
  }

  .about-sidecard--v2 {
    top: 84px;
    min-height: calc(100vh - 98px);
    max-width: 48px;
    padding-left: 2px;
  }

  .about-nav-item {
    font-size: 10px;
    line-height: 1.35;
  }

  .article-card--v2 {
    padding: 22px 10px 30px 14px;
    border-radius: 0 0 24px 24px;
  }

  .article-card--v2 {
    padding: 20px 18px 28px;
    border-radius: 0 0 24px 24px;
  }

  .profile-stage {
    height: auto;
  }

  .profile-page--v2 {
    padding: 156px 14px 40px;
  }

  .profile-stage__avatar {
    height: 132px;
    border-radius: 22px;
  }

  .poster-grid--folder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-status-strip--v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-grid--folder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-grid--folder .poster-card {
    width: 100%;
  }

  .guide-card--centered {
    inset: 96px 12px auto 12px;
  }

  .guide-card--centered .guide-options {
    grid-template-columns: 1fr;
  }

  .ai-drawer {
    min-height: 60vh;
  }

  .studio-page--guided-poster .guide-card--centered {
    inset: 100px 10px auto 10px;
    min-height: calc(100dvh - 238px);
  }

  .ai-fab-btn {
    width: 56px;
    height: 56px;
  }

  .ai-fab-wrap {
    right: 12px;
    bottom: 104px;
  }

  .studio-page__headline {
    gap: 8px;
  }

  .mobile-studio-dock--v2 .mobile-tool-btn small {
    display: none;
  }
}

/* ===== V7: 强制 AI 对话面板 ===== */
#forced-ai-root .forced-ai-mask {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.forced-ai-panel {
  display: flex;
  flex-direction: column;
  width: min(680px, 96vw);
  height: min(82dvh, 760px);
  min-height: 70dvh;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.35);
  overflow: hidden;
}

.forced-ai-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(232, 246, 236, 1), rgba(255, 255, 255, 1));
}

.forced-ai-panel__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.forced-ai-panel__title {
  display: grid;
  gap: 2px;
}

.forced-ai-panel__title strong {
  font-size: 16px;
}

.forced-ai-panel__title span {
  font-size: 12px;
  color: var(--text-soft);
}

.forced-ai-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.forced-ai-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.forced-ai-msg--user {
  justify-content: flex-end;
}

.forced-ai-msg__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.forced-ai-msg__bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.7;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  background: linear-gradient(180deg, rgba(232, 246, 236, 1), rgba(244, 250, 246, 1));
  color: #173125;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 79, 0.08);
  animation: forced-ai-in 0.28s ease;
}

.forced-ai-msg__bubble--user {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  box-shadow: none;
}

@keyframes forced-ai-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forced-ai-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 2px 8px;
}

.forced-ai-option-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 122, 79, 0.35);
  border-radius: 14px;
  background: #ffffff;
  color: var(--brand-deep, #1f7a4f);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.forced-ai-option-btn:hover {
  background: rgba(232, 246, 236, 1);
  transform: translateY(-1px);
}

.forced-ai-option-btn--start {
  grid-column: 1 / -1;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
}

@media (max-width: 640px) {
  #forced-ai-root .forced-ai-mask {
    padding: 10px;
  }

  .forced-ai-panel {
    width: 100%;
    height: min(88dvh, 100%);
  }

  .forced-ai-msg__bubble {
    max-width: 88%;
  }
}

/* ===== V7: 导航模式下工具栏首屏可见 ===== */
.studio-page--guided-poster .studio-page__headline {
  margin-top: 6px;
  gap: 4px;
}

.studio-page--guided-poster .studio-page__headline h2 {
  font-size: 20px;
}

.studio-page--guided-poster .studio-page__headline p {
  display: none;
}

.studio-page--guided-poster .guide-card {
  padding: 10px 14px;
}

.studio-page--guided-poster .guide-card h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0;
}

.studio-page--guided-poster .guide-card .guide-meta {
  font-size: 12px;
}

.studio-page--guided-poster .guide-card p {
  font-size: 12px;
  margin: 2px 0;
}

.studio-page--guided-poster .guide-actions {
  margin-top: 8px;
}

.studio-page--guided-poster .guide-actions .primary-btn,
.studio-page--guided-poster .guide-actions .secondary-btn {
  min-height: 36px;
}

.studio-page--guided-poster.studio-page--guide-active .canvas-stage--v2 {
  min-height: auto;
}

.studio-page--guided-poster.studio-page--guide-active .canvas-stage--v2 .canvas-container canvas {
  max-height: none;
}

/* 紧凑顶栏：标题与完成/导航按钮同行 */
.studio-page__topbar--compact {
  align-items: center;
  gap: 10px;
}

.studio-page__topbar--compact .studio-page__title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.3;
}

.studio-page__tip {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
}

/* 引导卡片更紧凑（版本二/四） */
.studio-page--guided-poster .guide-card {
  padding: 8px 12px;
}

.studio-page--guided-poster .guide-card h3,
.studio-page--guided-poster #guide-title {
  font-size: 13px;
  line-height: 1.4;
  margin: 2px 0;
}

.studio-page--guided-poster #guide-description {
  font-size: 11.5px;
  margin: 1px 0;
}

.studio-page--guided-poster .guide-card p {
  font-size: 11.5px;
  margin: 1px 0;
}

.studio-page--guided-poster .guide-card .guide-meta {
  font-size: 11px;
}

.studio-page--guided-poster .guide-actions {
  margin-top: 4px;
}

.studio-page--guided-poster .guide-actions .primary-btn,
.studio-page--guided-poster .guide-actions .secondary-btn {
  min-height: 30px;
}

/* 强制 AI 对话气泡紧凑化 */
.forced-ai-panel__body {
  gap: 8px;
}

.forced-ai-msg {
  gap: 8px;
}

.forced-ai-msg__avatar {
  width: 26px;
  height: 26px;
}

.forced-ai-msg__bubble {
  max-width: 86%;
  padding: 8px 11px;
  border-radius: 13px;
  line-height: 1.55;
  font-size: 13px;
}

.forced-ai-options {
  gap: 8px;
}

.forced-ai-option-btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.forced-ai-option-btn--full {
  grid-column: 1 / -1;
}

/* 悬浮 AI 抽屉气泡紧凑化 */
.ai-drawer {
  gap: 10px;
  padding: 14px 14px 12px;
}

.ai-drawer__avatar {
  width: 40px;
  height: 40px;
}

.ai-drawer__intro-copy strong {
  font-size: 13px;
}

.ai-drawer .ai-message {
  padding: 6px 10px;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: 12px;
}

.ai-drawer .ai-panel__body {
  gap: 6px;
}

/* 作品保存弹窗：无可见范围选项时加大输入框；有选项时缩小输入框让“完成”按钮上移 */
.modal-card--save-roomy textarea.save-field__textarea {
  min-height: 320px;
}

.modal-card--save-visibility textarea.save-field__textarea {
  min-height: 140px;
}

/* ===== V9: 布局与视觉修订 ===== */

/* 1. 顶部按钮回到页面流内、适当缩小（所有海报创作版本一致，仅移动端） */
@media (max-width: 640px) {
.studio-page--poster-v0 .studio-page__topbar--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: max(0px, env(safe-area-inset-top));
  margin-bottom: 0;
}

.studio-page--poster-v0 .studio-complete-btn {
  position: static;
  top: auto;
  left: auto;
  min-width: 60px;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.studio-page--poster-v0 .studio-nav-btn {
  position: static;
  top: auto;
  right: auto;
  width: 40px;
  height: 40px;
  min-width: 40px;
  gap: 4px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14);
}

.studio-page--poster-v0 .studio-nav-btn span {
  width: 15px;
}

/* 1+2+3. 底部工具栏固定在视口底部，四个工具按钮位置恒定、首屏可见 */
.studio-page--poster-v0 {
  padding-bottom: 108px;
}

.studio-page--poster-v0 .asset-card--sheet {
  position: fixed;
  left: 10px;
  right: 10px;
  top: auto;
  bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 40;
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  padding: 10px 12px 10px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

/* 工具箱内容：向上推拉的抽屉，最多占据约半屏 */
.studio-page--poster-v0 .asset-card__expander {
  position: relative;
  margin-bottom: 8px;
  padding-top: 6px;
  padding-bottom: 8px;
}

.studio-page--poster-v0 .asset-card--fixed-page .asset-panel-content {
  max-height: min(44dvh, 420px);
  overflow-y: auto;
  padding-top: 26px;
}

.asset-panel-collapse-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.asset-panel-collapse-btn__arrow {
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}
}

@media (min-width: 641px) {
  .asset-panel-collapse-btn {
    display: none;
  }
}

/* 画板尽量占满工具栏之上的空间，让工具栏贴近画板底部（仅移动端） */
@media (max-width: 640px) {
  .studio-page--poster-v0 {
    padding: 8px 8px 108px;
  }

  .studio-page--poster-v0 .canvas-card--v2 {
    width: min(100%, 292px);
  }

  .studio-page--poster-v0 .canvas-card--v2,
  .studio-page--poster-v0 .canvas-stage--v2 {
    min-height: 0;
  }

  .studio-page--poster-v0 .canvas-stage--v2 .canvas-container {
    width: min(100%, 268px, calc((100dvh - 248px) * 300 / 534));
    min-width: 170px;
  }

  .studio-page--poster-v0 .canvas-stage--v2 .canvas-container canvas {
    max-height: none;
  }
}

/* 3. 版本二/四：画板规则与版本零三五保持一致（引导卡随页面滚动，工具栏固定可见，仅移动端） */
@media (max-width: 640px) {
  .studio-page--guided-poster.studio-page--guide-active .canvas-stage--v2 .canvas-container {
    width: min(100%, 268px, calc((100dvh - 248px) * 300 / 534));
    min-width: 170px;
  }

  /* AI 悬浮球缩小并上移，避免影响底部工具栏 */
  .ai-fab-wrap {
    right: 8px;
    bottom: auto;
    top: 50dvh;
    gap: 4px;
  }

  .ai-fab-btn,
  .ai-fab-btn img {
    width: 44px;
    height: 44px;
  }

  .ai-fab-hint {
    min-height: 20px;
    padding: 0 8px;
    font-size: 10px;
  }
}

/* 4. 登录/欢迎页：面板几何固定，文字与按钮上移（修复 iPhone 显示异常） */
.v2-phone-shell {
  height: min(100vh, 820px);
  height: min(100dvh, 820px);
}

.v2-landing__panel {
  top: 57%;
  bottom: 0;
  min-height: 0;
  padding-top: 16px;
  overflow-y: auto;
}

.v2-landing__welcome {
  margin-top: 4px;
  margin-bottom: 6px;
}

.v2-landing__cta {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .v2-phone-shell {
    height: 100vh;
    height: 100dvh;
  }

  .v2-landing__panel {
    min-height: 0;
    padding-top: 14px;
  }

  .v2-landing__welcome {
    margin-top: 2px;
  }
}

/* 5. 对话气泡按内容自适应，不浪费空间 */
.ai-drawer .ai-message,
.ai-message {
  width: fit-content;
  max-width: 86%;
}

.ai-message--user {
  margin-left: auto;
}

.ai-message--bot {
  margin-right: auto;
}

.ai-drawer .ai-message--user {
  padding: 8px 14px;
  font-size: 13.5px;
}

.forced-ai-msg__bubble {
  width: fit-content;
}

/* 6. 功能卡颜色：操作类功能卡绿色背景；“我已想好，开始创作”默认无色，全部用完后变绿 */
.forced-ai-option-btn--action {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
}

.forced-ai-option-btn--action:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.forced-ai-option-btn--plain {
  background: #ffffff;
  color: var(--brand-deep, #1f7a4f);
  border: 1px solid rgba(31, 122, 79, 0.35);
}

/* ===== V10: 布局修订 ===== */

/* 1. 操作指引按钮缩小（除版本一） */
.studio-page--poster-v0 .creation-help-btn--pill {
  top: 20px;
  width: 28px;
  height: auto;
  min-height: 100px;
  padding: 10px 6px;
  gap: 6px;
  font-size: 11px;
}

.studio-page--poster-v0 .creation-help-btn__icon {
  font-size: 13px;
  flex-shrink: 0;
}

.studio-page--poster-v0 .creation-help-btn__text {
  letter-spacing: 2px;
  line-height: 1;
  flex-shrink: 0;
}

/* 2. AI 悬浮标志缩小并移至画板左半边 */
.ai-fab-wrap {
  right: auto;
  left: 14px;
  gap: 6px;
}

.ai-fab-btn,
.ai-fab-btn img {
  width: 46px;
  height: 46px;
}

.ai-fab-hint {
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
}

@media (max-width: 640px) {
  .ai-fab-wrap {
    left: 8px;
    right: auto;
    top: 46dvh;
    bottom: auto;
  }

  .ai-fab-btn,
  .ai-fab-btn img {
    width: 38px;
    height: 38px;
  }
}

/* 3. 工具栏回到页面流内，紧贴画板底部；初始页单屏完整（仅移动端） */
@media (max-width: 640px) {
  .studio-page--poster-v0 {
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  }

  .studio-page--poster-v0 .asset-card--sheet {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 4px;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
  }

  .shell--page-studio {
    padding-bottom: 0;
  }

  .shell--page-studio .shell-main {
    padding-top: 0;
  }

  .studio-page--poster-v0 {
    min-height: 100dvh;
  }

  .studio-page--poster-v0 .studio-page__headline {
    margin-top: 8px;
  }

  .studio-page--poster-v0 .canvas-stage--v2 {
    min-height: 0;
  }

  .studio-page--guided-poster .guide-card--centered {
    min-height: 0;
  }

  .studio-page--poster-v0 .canvas-card--v2 {
    width: min(100%, 292px, calc((100dvh - 300px) * 300 / 534 + 22px));
    min-width: 175px;
  }

  .studio-page--guided-poster .canvas-card--v2,
  .studio-page--v2.studio-page--guide-active .canvas-card--v2 {
    width: min(100%, 248px, calc((100dvh - 330px) * 300 / 534 + 22px));
    min-width: 160px;
  }

  /* 工具面板改为悬浮在工具栏上方，不再撑高页面 */
  .studio-page--poster-v0 .asset-card--sheet {
    position: relative;
    overflow: visible;
  }

  .studio-page--poster-v0 .asset-card__expander {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    margin-bottom: 0;
    padding: 12px 12px 10px;
    border-bottom: none;
    background: #050505;
    border-radius: 22px;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
    z-index: 30;
  }

  .studio-page--poster-v0 .asset-card--fixed-page .asset-panel-content {
    max-height: min(38dvh, 320px);
  }
}

/* ===== V11: 顶栏标题绝对居中 ===== */
.studio-page__topbar--compact {
  position: relative;
}

.studio-page__topbar--compact .studio-page__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 60%;
  pointer-events: none;
}
