:root {
  color-scheme: light;
  --bg: #fff6ed;
  --card: rgba(255, 255, 255, 0.86);
  --ink: #43251f;
  --muted: #8c6f63;
  --brand: #ef7354;
  --brand-dark: #b74d37;
  --soft: #ffe1d1;
  --line: rgba(149, 91, 66, 0.18);
  --shadow: 0 18px 45px rgba(104, 60, 40, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, #ffe4d2 0, transparent 36%),
    radial-gradient(circle at 100% 20%, #fff0be 0, transparent 28%),
    linear-gradient(180deg, var(--bg), #fffaf3);
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px 42px;
}

.hero {
  padding: 0 2px 8px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 7.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-brand img {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(183, 77, 55, 0.18);
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.main-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 10px 0 14px;
}

.home-guide {
  margin: 12px 0 18px;
}

.home-guide-title {
  margin: 6px 0 14px;
}

.home-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-month-stats {
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.home-stats span {
  padding: 6px 9px;
  border: 1px solid rgba(149, 91, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.home-guide-title h2 {
  margin: 9px 0 0;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quick-action-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-height: 74px;
  margin: 0;
  padding: 13px 46px 13px 14px;
  border: 1px solid rgba(149, 91, 66, 0.16);
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 216, 107, 0.24), transparent 28%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(104, 60, 40, 0.09);
  text-align: left;
}

.quick-action-card::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: 20px;
  transform: translateY(-50%);
}

.quick-action-card.primary {
  grid-column: auto;
  min-height: 78px;
  padding-right: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 216, 107, 0.48), transparent 28%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 58%, #ff9b68);
  box-shadow: 0 15px 32px rgba(183, 77, 55, 0.2);
}

.quick-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  min-width: 34px;
  height: 36px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 247, 234, 0.84);
  font-size: 12px;
  font-weight: 900;
}

.quick-action-card b,
.quick-action-card em {
  display: block;
}

.quick-action-card b {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.22;
}

.quick-action-card em {
  margin-top: 5px;
  padding-right: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.quick-action-card.primary .quick-no {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
}

.quick-action-card.primary em {
  color: rgba(255, 248, 241, 0.9);
}

.main-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(149, 91, 66, 0.16);
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 216, 107, 0.32), transparent 26%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(104, 60, 40, 0.1);
  text-align: left;
}

.main-tab::after {
  content: "›";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: 24px;
  line-height: 1;
}

.main-tab b,
.main-tab span {
  display: block;
}

.main-tab b {
  font-size: 20px;
  line-height: 1.2;
}

.main-tab span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.main-tab.active {
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 216, 107, 0.52), transparent 28%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 58%, #ff9b68);
}

.main-tab.active span {
  color: rgba(255, 248, 241, 0.88);
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px -4px 12px;
  padding: max(8px, env(safe-area-inset-top)) 4px 10px;
  background: linear-gradient(180deg, rgba(255, 246, 237, 0.96), rgba(255, 246, 237, 0.82));
  backdrop-filter: blur(10px);
}

.page-topbar h2 {
  order: 1;
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.inner-topbar {
  margin-top: -4px;
}

.page-topbar-actions {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.back-home-button {
  order: 2;
  margin-left: auto;
  width: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(104, 60, 40, 0.08);
  font-size: 14px;
}

.page-topbar-actions .back-home-button {
  order: initial;
  margin-left: 0;
}

.mini-button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

body.subpage-mode .hero,
body.subpage-mode .home-guide,
body.subpage-mode .main-tabs {
  display: none;
}

.main-panel {
  display: block;
}

.sub-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 12px;
}

.sub-tab {
  margin: 0;
  padding: 11px 8px;
  border: 1px solid rgba(149, 91, 66, 0.14);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
  font-size: 13px;
}

.sub-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.sub-panel {
  display: none;
}

.sub-panel.active {
  display: block;
}

body.sample-focus-mode #workHubPanel > .sub-tabs,
body.sample-focus-mode #samplesTool > .section-title,
body.sample-focus-mode #samplesTool > .hint {
  display: none;
}

body.sample-focus-mode #samplesTool {
  margin-top: 0;
}

.sample-sub-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255, 236, 220, 0.58);
}

.sample-sub-tab {
  margin: 0;
  padding: 12px 8px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.sample-sub-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 8px 18px rgba(183, 77, 55, 0.14);
}

.sample-sub-panel {
  display: none;
}

.sample-sub-panel.active {
  display: block;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 8px 0 12px;
}

.tool-tab {
  position: relative;
  margin: 0;
  padding: 13px 12px 12px;
  border: 1px solid rgba(149, 91, 66, 0.16);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
  text-align: left;
}

.tool-tab b,
.tool-tab span {
  display: block;
}

.tool-tab b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.tool-tab span {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}

.tool-tab.active {
  color: #fff8f1;
  border-color: rgba(239, 115, 84, 0.45);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 216, 107, 0.55), transparent 28%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 58%, #ff9b68);
  box-shadow: 0 12px 24px rgba(183, 77, 55, 0.18);
}

.tool-tab.active b {
  color: #fff;
}

.flow-steps-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 14px;
  padding: 12px 10px;
  border: 1px solid rgba(149, 91, 66, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 238, 224, 0.62));
  box-shadow: 0 10px 22px rgba(104, 60, 40, 0.08);
}

.flow-steps-card::before {
  content: none;
  position: absolute;
  left: 36px;
  right: 36px;
  top: 29px;
  height: 3px;
  border-radius: 999px;
  background: rgba(151, 136, 128, 0.18);
}

.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 7px 2px 6px;
  border-radius: 15px;
  color: #aaa09a;
  background: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #8b7a72;
  background: #eee6df;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 0 3px rgba(255, 250, 246, 0.88);
}

.flow-step b {
  display: block;
  margin-top: 0;
  font-size: 10px;
  line-height: 1.08;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.flow-step.current {
  color: #8f321f;
  background: linear-gradient(180deg, rgba(255, 219, 199, 0.98), rgba(255, 169, 132, 0.9));
  box-shadow: 0 10px 22px rgba(183, 77, 55, 0.2);
}

.flow-step.current span {
  background: linear-gradient(135deg, #91311f, #e35735);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 15px rgba(145, 49, 31, 0.28);
}

.flow-step.current b {
  font-weight: 900;
}

.flow-step.future {
  opacity: 0.78;
}

.flow-step.future::after {
  content: "筹备中";
  display: block;
  margin-top: 0;
  color: #a58b7e;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.flow-step.current::after {
  content: none;
}

.roughcut-panel {
  gap: 14px;
}

.roughcut-test-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8f321f;
  background: rgba(255, 226, 204, 0.72);
  border: 1px solid rgba(227, 87, 53, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.roughcut-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.roughcut-control label,
.roughcut-source-row label {
  display: grid;
  gap: 6px;
}

.roughcut-control span,
.roughcut-source-row span {
  color: #7a6155;
  font-size: 12px;
  font-weight: 900;
}

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

.roughcut-voice-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 250, 246, 0.96), rgba(255, 239, 222, 0.82));
  border: 1px solid rgba(149, 91, 66, 0.14);
}

.roughcut-voice-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.roughcut-voice-head div {
  display: grid;
  gap: 3px;
}

.roughcut-voice-head b {
  color: #4d3227;
  font-size: 15px;
}

.roughcut-voice-head span {
  color: #8b6b5c;
  font-size: 12px;
  line-height: 1.45;
}

.roughcut-voice-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9b3f29;
  background: rgba(237, 114, 73, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.voice-preset-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.voice-preset-card {
  min-height: auto;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgba(149, 91, 66, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  color: #684332;
  text-align: left;
}

.voice-preset-card span {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 232, 197, 0.75);
  color: #9b3f29;
  font-size: 10px;
  font-weight: 900;
}

.voice-preset-card b,
.voice-preset-card small {
  display: block;
}

.voice-preset-card b {
  font-size: 14px;
  color: #4d3227;
}

.voice-preset-card small {
  margin-top: 3px;
  color: #8b6b5c;
  font-size: 11px;
  line-height: 1.35;
}

.voice-preset-card.active {
  border-color: rgba(39, 166, 100, 0.58);
  background: linear-gradient(135deg, rgba(232, 250, 238, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 8px 18px rgba(39, 166, 100, 0.14);
}

.voiceover-panel-card {
  display: grid;
  gap: 14px;
}
.voice-tool-tabs { display: flex; gap: 10px; margin: 12px 0; }
.voice-tool-tabs button { flex: 1; padding: 13px 8px; border-radius: 14px; background: #f6ede5; color: #795743; border: 1px solid #dfc8b5; font-size: 15px; }
.voice-tool-tabs button[aria-selected="true"] { background: #854a30; color: #fff; border-color: #854a30; }
.voice-tool-page[hidden] { display: none !important; }

.voice-clone-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 20px;
  border: 1px solid rgba(146, 95, 62, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 139, 0.35), transparent 32%),
    linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(255, 239, 223, 0.78));
}

.voice-clone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-clone-status b {
  color: #4d3227;
  font-size: 16px;
}

.voice-clone-status span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9b3f29;
  background: rgba(237, 114, 73, 0.13);
  font-size: 11px;
  font-weight: 900;
}

.voice-clone-card p,
.voice-clone-card ol {
  margin: 0;
  color: #765749;
  font-size: 13px;
  line-height: 1.65;
}

.voice-clone-card ol {
  padding-left: 20px;
}

.voiceover-subtitle {
  margin-top: 4px;
}

.voice-consent-notice {
  padding: 12px;
  border: 1px solid rgba(146, 95, 62, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}
.voice-consent-notice summary {
  cursor: pointer;
  color: #654331;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 0;
}
.voice-consent-notice[open] summary { margin-bottom: 10px; }
.voice-consent-notice li + li { margin-top: 10px; }
.voiceover-panel-card .voice-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
}
.voice-consent-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0;
  accent-color: #8b5035;
}
#voiceCloneContactBtn:disabled { opacity: 0.5; cursor: not-allowed; }

.voiceover-panel-card label {
  display: grid;
  gap: 8px;
  color: #6c4a3a;
  font-size: 13px;
  font-weight: 900;
}

.voiceover-panel-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(120, 78, 55, 0.18);
  border-radius: 18px;
  padding: 13px;
  color: #4d3227;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.65;
  resize: vertical;
}

.voiceover-result-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(39, 166, 100, 0.18);
  background: linear-gradient(135deg, rgba(238, 252, 243, 0.94), rgba(255, 255, 255, 0.92));
}

.voiceover-result-card h3 {
  margin: 0;
  color: #315b3c;
  font-size: 16px;
}

.voiceover-result-card audio {
  width: 100%;
}

.roughcut-shot-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 250, 246, 0.86);
  border: 1px solid rgba(149, 91, 66, 0.13);
}

.roughcut-shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.roughcut-shot-head b {
  color: #4d3227;
  font-size: 14px;
}

.roughcut-shot-head span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(237, 114, 73, 0.12);
  color: #9b3f29;
  font-size: 11px;
  font-weight: 900;
}

.roughcut-warning {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 12px;
  color: #8f321f;
  background: rgba(255, 232, 197, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.roughcut-source-row {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 10px;
  margin-top: 10px;
}

.roughcut-source-row label:first-child {
  grid-column: 1 / -1;
}

.roughcut-source-row input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(149, 91, 66, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #684332;
  font-size: 12px;
}

.roughcut-output-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 250, 246, 0.94);
  border: 1px solid rgba(149, 91, 66, 0.13);
}

.roughcut-output-card video {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 18px;
  background: #19120f;
}

.roughcut-next-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.roughcut-next-actions button {
  min-height: 44px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(135deg, #2fbf71, #159c5a);
  box-shadow: 0 10px 20px rgba(47, 191, 113, 0.22);
}

.full-width-action {
  width: 100%;
  margin-top: 10px;
}

.field-tip {
  display: block;
  margin-top: 6px;
  color: #9a7258;
  font-size: 12px;
  line-height: 1.5;
}

.linked-sample-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 138, 73, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 250, 223, 0.9), rgba(255, 250, 246, 0.88));
  box-shadow: 0 10px 22px rgba(88, 116, 57, 0.08);
}

.linked-sample-banner b,
.linked-sample-banner span {
  display: block;
}

.linked-sample-banner b {
  color: #5f7a34;
  font-size: 14px;
}

.linked-sample-banner span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.linked-sample-banner .text-button {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 9px;
  color: #5f7a34;
  font-size: 12px;
  box-shadow: none;
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: block;
}

#toolsPanel.tool-result-mode .tool-tabs,
#toolsPanel.tool-result-mode .tool-panel,
#toolsPanel.tool-script-mode .tool-tabs,
#toolsPanel.tool-script-mode .tool-panel,
#toolsPanel.tool-upload-mode .tool-tabs,
#toolsPanel.tool-upload-mode .tool-panel:not(#roughcutTool) {
  display: none;
}

#toolsPanel.tool-upload-mode #roughcutTool {
  display: block;
}

#productResult.product-copy-only > .card:not(#productCopyCard) {
  display: none;
}

.sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.save-work-button,
.script-work-button {
  margin-top: 10px;
  color: var(--brand-dark);
  border: 1px solid rgba(183, 77, 55, 0.22);
  background: #fff7f0;
  box-shadow: none;
}

.script-work-button {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #3cbf86, #6fd79e);
  box-shadow: 0 10px 22px rgba(60, 191, 134, 0.22);
}

.works-panel .section-title {
  margin-bottom: 8px;
}

.work-list {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.work-stage-group {
  display: grid;
  gap: 10px;
}

.work-stage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 225, 209, 0.82), rgba(255, 250, 246, 0.92));
  border: 1px solid rgba(239, 115, 84, 0.16);
}

.work-stage-title h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 15px;
}

.work-stage-title span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.work-stage-list {
  display: grid;
  gap: 10px;
}

.work-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf6;
}

.work-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}

.work-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: 12px;
  font-weight: 800;
}

.work-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.work-actions button,
.shoot-script-card button {
  margin-top: 0;
  padding: 11px 10px;
  border-radius: 14px;
  font-size: 13px;
}

.work-actions .danger-lite {
  color: #9f3f2f;
  border-color: rgba(159, 63, 47, 0.18);
  background: rgba(255, 241, 232, 0.82);
}

.work-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.sample-form {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(149, 91, 66, 0.14);
  border-radius: 20px;
  background: rgba(255, 250, 246, 0.72);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.idle-publish-box {
  margin-top: 4px;
  padding: 12px;
  border: 1px dashed rgba(239, 115, 84, 0.34);
  border-radius: 18px;
  background: rgba(255, 247, 238, 0.82);
}

.idle-fields {
  display: none;
  margin-top: 10px;
}

.idle-fields.active {
  display: grid;
  gap: 10px;
}

.idle-product-preview {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 138, 73, 0.16);
  border-radius: 18px;
  background: rgba(248, 255, 236, 0.72);
}

.idle-product-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.idle-product-preview-head b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idle-product-preview-head span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #5f7a34;
  background: #eff9dc;
  font-size: 11px;
  font-weight: 800;
}

.idle-product-meta {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 14px;
  color: #5b654c;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.idle-product-meta p {
  margin: 0;
  word-break: break-word;
}

.idle-product-meta b {
  color: #39422d;
}

.idle-product-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.idle-product-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sample-list {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.sample-stage-group {
  display: grid;
  gap: 10px;
}

.sample-stage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  color: inherit;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 225, 209, 0.82), rgba(255, 250, 246, 0.92));
  border: 1px solid rgba(239, 115, 84, 0.16);
  box-shadow: none;
  text-align: left;
}

.sample-stage-title h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--brand-dark);
  font-size: 15px;
}

.sample-stage-title .stage-count {
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.stage-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1;
  text-align: center;
  transform-origin: 50% 50%;
  transition: transform 0.18s ease;
}

.sample-stage-group:not(.collapsed) .stage-caret {
  transform: rotate(90deg);
}

.sample-stage-group.collapsed .sample-stage-list {
  display: none;
}

.sample-empty {
  margin: 2px 4px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 246, 0.7);
}

.sample-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf6;
}

.sample-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}

.sample-head {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.sample-code {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #5f7a34;
  background: rgba(240, 250, 223, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.sample-brief {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.idle-mini-cover {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(105, 70, 45, 0.08);
}

.sample-brief-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.sample-brief-main b {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idle-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #7c4b00;
  background: rgba(255, 221, 142, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.idle-sample-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 138, 73, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 219, 128, 0.26), transparent 30%),
    rgba(255, 252, 245, 0.92);
}

.idle-category-filters {
  display: flex;
  gap: 8px;
  margin: 10px -2px 12px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.idle-category-filters button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(111, 138, 73, 0.16);
  border-radius: 999px;
  color: #637047;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.idle-category-filters button.active {
  color: #fff;
  border-color: rgba(109, 139, 56, 0.86);
  background: linear-gradient(135deg, #71933b, #9abf55);
  box-shadow: 0 8px 18px rgba(110, 144, 54, 0.18);
}

.idle-product-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 138, 73, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 219, 128, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 255, 235, 0.9));
  box-shadow: 0 14px 28px rgba(105, 70, 45, 0.07);
}

.idle-product-group-head {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.idle-product-group-head em {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7c4b00;
  background: rgba(255, 226, 156, 0.76);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.idle-product-group-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.idle-product-group.expanded .idle-product-group-head em {
  color: #5f7a34;
  background: rgba(239, 249, 220, 0.94);
}

.idle-group-items {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(111, 138, 73, 0.18);
}

.idle-sample-card.compact {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.idle-sample-cover {
  width: 72px;
  height: 72px;
  float: left;
  margin: 0 10px 6px 0;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(105, 70, 45, 0.08);
}

.idle-empty-cover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b58a52;
  font-size: 12px;
  font-weight: 900;
}

.idle-sample-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.idle-sample-title b {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.idle-sample-title span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #5f7a34;
  background: rgba(240, 250, 223, 0.9);
  font-size: 11px;
  font-weight: 800;
}

.idle-sample-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.idle-actions {
  justify-content: flex-start;
}

.sample-brief-main em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-suggestion-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 138, 73, 0.18);
  border-radius: 18px;
  background: rgba(248, 255, 236, 0.74);
}

.today-suggestion-card b {
  display: block;
  color: #5f7a34;
  font-size: 14px;
}

.today-suggestion-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.today-suggestion-card span {
  margin-right: 6px;
  color: #5f7a34;
  font-weight: 800;
}

.sample-next {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #6f4b28;
  background: rgba(255, 240, 190, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
}

.sample-actions button {
  margin-top: 0;
  width: auto;
  min-width: 72px;
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 12px;
}

.sample-actions .primary-lite {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 8px 18px rgba(183, 77, 55, 0.15);
}

@media (max-width: 420px) {
  .form-two-col {
    grid-template-columns: 1fr;
  }

  .sample-item {
    grid-template-columns: 1fr;
  }

  .sample-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: stretch;
  }

  .sample-actions button {
    width: 100%;
    min-width: 0;
  }
}

.shoot-script-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 236, 222, 0.45);
}

.shot-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.65;
  font-size: 13px;
}

.shot-card {
  margin: 10px 0;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(149, 91, 66, 0.12);
}

.shot-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.shot-card p {
  margin: 6px 0;
  line-height: 1.65;
  font-size: 13px;
}

.shot-line {
  color: var(--ink);
  background: rgba(255, 246, 237, 0.86);
  border-left: 3px solid var(--brand);
  padding: 8px 10px;
  border-radius: 12px;
}

.bonus-note {
  color: #6f8a49;
}

.shot-group {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(149, 91, 66, 0.12);
}

.tree-summary {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,225,209,.7));
  border: 1px solid rgba(149, 91, 66, 0.14);
}

.tree-summary b {
  color: var(--brand-dark);
}

.cockpit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.cockpit-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  padding: 7px 9px;
  border: 1px solid rgba(149, 91, 66, 0.12);
  border-radius: 999px;
  background: #fffaf6;
}

.cockpit-card b {
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1;
}

.cockpit-card span {
  font-size: 11px;
  font-weight: 800;
}

.cockpit-card em {
  display: none;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.tree-panel-card {
  overflow: hidden;
}

.growth-tree-view {
  text-align: center;
}

.tree-scene {
  position: relative;
  height: 230px;
  margin: 10px 0 16px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 222, 112, 0.92) 0 20px, transparent 21px),
    radial-gradient(circle at 72% 72%, rgba(119, 170, 84, 0.24), transparent 34%),
    linear-gradient(180deg, #fff1d5 0%, #eaf8df 62%, #d9edc7 100%);
}

.tree-scene::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -28px;
  height: 76px;
  border-radius: 50%;
  background: rgba(130, 172, 86, 0.34);
}

.pine-tree {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 142px;
  height: 168px;
  transform: translateX(-50%);
  transform-origin: bottom center;
  animation: tree-sway 3.6s ease-in-out infinite;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.pine-top,
.pine-mid,
.pine-low {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
  border-bottom: 72px solid #5f9a47;
  filter: drop-shadow(0 8px 10px rgba(76, 112, 48, 0.12));
}

.pine-top { top: 8px; border-left-width: 34px; border-right-width: 34px; border-bottom-color: #6dbb53; }
.pine-mid { top: 42px; border-left-width: 48px; border-right-width: 48px; border-bottom-color: #5da047; }
.pine-low { top: 80px; border-left-width: 62px; border-right-width: 62px; border-bottom-color: #4d8d3d; }

.pine-trunk {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #9a6943;
}

.squirrel-home {
  position: absolute;
  left: 50%;
  top: 92px;
  width: 30px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px 999px 12px 12px;
  background: rgba(83, 54, 33, 0.92);
  opacity: 0;
}

.tree-seed {
  position: absolute;
  left: 50%;
  bottom: 47px;
  width: 30px;
  height: 20px;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 54% 46% 58% 42%;
  background:
    radial-gradient(circle at 34% 34%, rgba(255, 242, 194, 0.8), transparent 26%),
    linear-gradient(135deg, #8e5c35, #c8894c 62%, #6c4228);
  box-shadow: 0 10px 18px rgba(72, 91, 47, 0.18);
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.tree-seed::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 12px;
  height: 8px;
  border-radius: 999px 999px 999px 0;
  background: #75aa52;
  transform: rotate(22deg);
  opacity: 0;
}

.tiny-squirrel {
  position: absolute;
  right: 25%;
  bottom: 42px;
  width: 44px;
  height: 33px;
  border-radius: 56% 48% 48% 52%;
  background:
    radial-gradient(circle at 74% 34%, #2e2018 0 2px, transparent 3px),
    radial-gradient(circle at 88% 48%, #f5d1a1 0 4px, transparent 5px),
    linear-gradient(135deg, #b86f31, #df9851 58%, #8d4f25);
  box-shadow: 0 8px 16px rgba(104, 60, 40, 0.14);
  animation: squirrel-bob 2.8s ease-in-out infinite;
}

.tiny-squirrel::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -13px;
  width: 34px;
  height: 40px;
  border: 8px solid #b96d2f;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.tiny-squirrel::after {
  content: "";
  position: absolute;
  right: 5px;
  top: -5px;
  width: 12px;
  height: 10px;
  border-radius: 50%;
  background: #a85e2a;
}

.growth-tree-view[data-stage="seed"] .pine-tree { opacity: 0; transform: translateX(-50%) scale(0.08); }
.growth-tree-view[data-stage="seed"] .tree-seed { opacity: 1; }
.growth-tree-view[data-stage="sprout"] .tree-seed {
  opacity: 1;
  transform: translateX(-50%) rotate(-4deg) scale(0.84);
}
.growth-tree-view[data-stage="sprout"] .tree-seed::after { opacity: 1; }
.growth-tree-view:not([data-stage="seed"]):not([data-stage="sprout"]) .tree-seed { opacity: 0; }
.growth-tree-view[data-stage="sprout"] .pine-tree { transform: translateX(-50%) scale(0.38); }
.growth-tree-view[data-stage="leaf"] .pine-tree { transform: translateX(-50%) scale(0.56); }
.growth-tree-view[data-stage="root"] .pine-tree { transform: translateX(-50%) scale(0.74); }
.growth-tree-view[data-stage="tree"] .pine-tree { transform: translateX(-50%) scale(0.9); }
.growth-tree-view[data-stage="forest"] .pine-tree { transform: translateX(-50%) scale(1); }
.growth-tree-view[data-stage="tree"] .squirrel-home,
.growth-tree-view[data-stage="forest"] .squirrel-home { opacity: 1; }

.tree-progress {
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(149, 91, 66, 0.12);
  overflow: hidden;
}

.tree-progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #73b755, #a6d96a);
  transition: width 0.5s ease;
}

@keyframes tree-sway {
  0%, 100% { rotate: -1deg; }
  50% { rotate: 1.5deg; }
}

@keyframes squirrel-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tree-scene {
  height: auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1.28;
  margin-left: auto;
  margin-right: auto;
  background: #f7ecd9;
  box-shadow: inset 0 0 0 1px rgba(149, 91, 66, 0.12);
}

.tree-scene::after,
.pine-tree,
.tree-seed,
.tiny-squirrel {
  display: none;
}

.growth-stage-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform-origin: 50% 58%;
  background: #f7ecd9;
  animation: stage-breathe 5.6s ease-in-out infinite;
}

.growth-season-layer {
  display: none;
}

.growth-season-layer::before,
.growth-season-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.growth-tree-view[data-time="morning"] .growth-season-layer::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 236, 164, 0.45), transparent 34%),
    linear-gradient(180deg, rgba(255, 248, 220, 0.18), rgba(255, 255, 255, 0.02));
  mix-blend-mode: soft-light;
}

.growth-tree-view[data-time="evening"] .growth-season-layer::before {
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 169, 112, 0.38), transparent 36%),
    linear-gradient(180deg, rgba(142, 93, 142, 0.16), rgba(255, 153, 93, 0.12));
  mix-blend-mode: soft-light;
}

.growth-tree-view[data-season="spring"] .growth-season-layer::after {
  background:
    linear-gradient(135deg, rgba(255, 191, 204, 0.16), transparent 42%),
    radial-gradient(circle at 12% 72%, rgba(133, 194, 122, 0.16), transparent 32%);
}

.growth-tree-view[data-season="summer"] .growth-season-layer::after {
  background:
    linear-gradient(135deg, rgba(255, 225, 115, 0.14), transparent 46%),
    radial-gradient(circle at 82% 70%, rgba(72, 154, 80, 0.16), transparent 34%);
}

.growth-tree-view[data-season="autumn"] .growth-season-layer::after {
  background:
    linear-gradient(135deg, rgba(214, 118, 54, 0.18), transparent 48%),
    radial-gradient(circle at 18% 72%, rgba(250, 174, 78, 0.16), transparent 32%);
}

.growth-tree-view[data-season="winter"] .growth-season-layer::after {
  background:
    linear-gradient(180deg, rgba(219, 238, 255, 0.24), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.22), transparent 32%);
}

.growth-env-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 10px;
}

.growth-env-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #6f5035;
  background: rgba(255, 247, 234, 0.88);
  border: 1px solid rgba(149, 91, 66, 0.12);
  font-size: 12px;
  font-weight: 800;
}

@keyframes stage-breathe {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.035); filter: saturate(1.06) brightness(1.015); }
}

@media (max-width: 380px) {
  .tool-tabs {
    gap: 6px;
  }
  .tool-tab {
    padding: 10px 7px 9px;
    border-radius: 16px;
  }
  .tool-tab b {
    font-size: 13px;
  }
  .tool-tab span {
    font-size: 8.5px;
  }
}

.card {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

label span {
  display: block;
  margin-bottom: 8px;
}

textarea,
select,
.access-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  font: inherit;
  line-height: 1.55;
  outline: none;
  color: var(--ink);
  background: #fffaf6;
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  text-align: center;
  text-align-last: center;
  font-weight: 700;
  background:
    linear-gradient(45deg, transparent 50%, var(--brand-dark) 50%) right 17px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--brand-dark) 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
    #fffaf6;
}

textarea:focus,
select:focus,
.access-input:focus {
  border-color: rgba(239, 115, 84, 0.75);
  box-shadow: 0 0 0 4px rgba(239, 115, 84, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.form-grid label {
  margin-bottom: 0;
  text-align: center;
}

.form-grid label span {
  color: var(--muted);
  font-size: 13px;
}

button {
  position: relative;
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff9b68);
  box-shadow: 0 12px 26px rgba(239, 115, 84, 0.28);
  overflow: hidden;
}

button > span {
  position: relative;
  z-index: 1;
}

button.loading-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, rgba(20, 184, 116, 0.62), rgba(80, 220, 150, 0.76));
  transition: width 0.45s ease;
}

button.loading-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: progress-shine 1.4s ease-in-out infinite;
}

@keyframes progress-shine {
  to { transform: translateX(100%); }
}

button:disabled {
  opacity: 0.88;
}

.secondary {
  color: var(--brand-dark);
  background: var(--soft);
  box-shadow: none;
}

.ghost-button {
  color: var(--brand-dark);
  background: rgba(255, 250, 246, 0.92);
  border: 1px solid rgba(239, 115, 84, 0.24);
  box-shadow: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider span {
  padding: 0 4px;
}

.clear-button {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(239, 115, 84, 0.26);
  border-radius: 999px;
  color: #9f3f2f;
  background: linear-gradient(135deg, rgba(255, 225, 209, 0.95), rgba(255, 241, 232, 0.95));
  box-shadow: 0 8px 18px rgba(239, 115, 84, 0.12);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
}

.input-helper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.input-helper-row .clear-button {
  margin-top: 0;
}

.example-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(67, 37, 31, 0.28);
  backdrop-filter: blur(6px);
}

.example-modal.hidden {
  display: none;
}

.example-modal-card {
  position: relative;
  width: min(100%, 440px);
  max-height: min(82vh, 680px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(149, 91, 66, 0.2);
  border-radius: 26px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 24px 70px rgba(104, 60, 40, 0.22);
}

.example-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff3eb;
  box-shadow: none;
}

.example-modal-card h2 {
  margin: 10px 0 12px;
  font-size: 21px;
}

.example-body {
  color: var(--ink);
  line-height: 1.7;
}

.example-body ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.example-good,
.example-bad {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #fff6ef;
  border: 1px solid rgba(239, 115, 84, 0.18);
}

.example-good b,
.example-bad b {
  color: var(--brand-dark);
}

.example-good p,
.example-bad p {
  margin: 6px 0 0;
  color: var(--muted);
  word-break: break-all;
}

.example-good code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--brand-dark);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button-row button {
  padding: 13px 12px;
  font-size: 15px;
}

.result-actions-card {
  border-color: rgba(239, 115, 84, 0.22);
  box-shadow: 0 18px 38px rgba(137, 73, 47, 0.14);
}

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

.result-action-grid button {
  margin-top: 0;
  padding: 13px 10px;
  font-size: 14px;
}

.result-action-grid button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.compact-title {
  margin-top: 18px;
}

.step-card {
  min-height: 56vh;
}

.step-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.step-back {
  width: auto;
  min-width: 96px;
  margin-top: 0;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.step-reason-tags {
  margin-top: 18px;
}

.step-preview {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fffaf6;
  border: 1px solid var(--line);
}

.step-preview b {
  display: block;
  color: var(--brand-dark);
  font-size: 14px;
}

.step-preview p {
  margin: 6px 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.step-primary {
  margin-top: 22px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 12px 24px rgba(183, 77, 55, 0.18);
}

.regenerate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.regenerate-row select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(185, 94, 67, 0.22);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  outline: none;
}

.regenerate-row button {
  min-width: 112px;
  margin-top: 0;
  padding: 12px 14px;
  white-space: nowrap;
}

.feedback-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 239, 0.82));
}

.inline-feedback {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.inline-feedback h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.feedback-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.feedback-row button {
  margin-top: 0;
  padding: 11px 8px;
  border-radius: 15px;
  font-size: 13px;
  white-space: nowrap;
}

.feedback-row button.selected {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 8px 18px rgba(183, 77, 55, 0.16);
}

.hint, .meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.points-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: rgba(255, 225, 209, 0.48);
  text-align: center;
  font-weight: 700;
}

.recharge-card {
  border-color: rgba(239, 115, 84, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 239, 0.86));
}

.recharge-mode .tool-tabs,
.recharge-mode .main-tabs,
.recharge-mode .main-panel,
.recharge-mode .tool-panel,
.recharge-mode #result,
.recharge-mode #productResult,
.recharge-mode #linkedSampleBanner,
.recharge-mode #status {
  display: none;
}

.recharge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recharge-header .section-title {
  margin-bottom: 0;
}

.wechat-box,
.account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(239, 115, 84, 0.38);
  border-radius: 18px;
  background: rgba(255, 250, 246, 0.76);
}

.wechat-box span,
.account-box span {
  color: var(--muted);
  font-size: 13px;
}

.wechat-box strong,
.account-box strong {
  color: var(--brand-dark);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.account-box strong {
  max-width: 70%;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 15px;
  letter-spacing: 0;
}

.compact-button {
  margin-top: 10px;
  padding: 11px 14px;
  font-size: 14px;
}

.recharge-action {
  margin-top: 12px;
}

.back-button {
  width: auto;
  display: inline-flex;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(183, 77, 55, 0.26);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 8px 18px rgba(183, 77, 55, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.recharge-tip {
  text-align: center;
}

.step-title {
  display: block;
  margin-top: 14px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.qr-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(239, 115, 84, 0.2);
  border-radius: 22px;
  background: rgba(255, 250, 246, 0.8);
  text-align: center;
}

.qr-card .step-title {
  margin-top: 0;
}

.qr-card img {
  display: block;
  width: min(66vw, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 12px auto 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(104, 60, 40, 0.1);
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: rgba(255, 225, 209, 0.8);
}

.hidden { display: none; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  font-size: 13px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

h3 {
  margin: 8px 0 12px;
  font-size: 17px;
  line-height: 1.45;
}

.content-box, .copy-box {
  white-space: pre-wrap;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: #fffaf6;
  border: 1px solid var(--line);
  line-height: 1.7;
}

.copy-box {
  font-family: inherit;
  font-size: 15px;
}

.editable-hint {
  margin: -2px 0 8px;
  font-size: 12px;
}

.editable-output {
  outline: none;
  cursor: text;
  border-style: dashed;
  border-color: rgba(183, 77, 55, 0.22);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.editable-output:focus {
  border-color: rgba(227, 87, 53, 0.55);
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgba(255, 183, 137, 0.18);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff1e8;
  color: var(--brand-dark);
  font-size: 13px;
}

.selectable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.point-tag {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.point-tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.point-tag span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(149, 91, 66, 0.16);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fffaf6;
  font-size: 13px;
  font-weight: 800;
}

.point-tag.hot span {
  color: #9f3f2f;
  border-color: rgba(239, 115, 84, 0.34);
  background: rgba(255, 225, 209, 0.9);
}

.point-tag.warm span {
  color: #9c6128;
  background: rgba(255, 240, 190, 0.78);
}

.point-tag input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 8px 18px rgba(183, 77, 55, 0.18);
}

.point-tag.disabled span {
  color: rgba(140, 111, 99, 0.55);
  border-color: rgba(149, 91, 66, 0.08);
  background: rgba(255, 250, 246, 0.46);
  box-shadow: none;
}

.point-tag.locked span {
  position: relative;
}

.tag-block {
  margin-top: 16px;
}

.tag-block h3 {
  margin: 0;
  font-size: 15px;
}

.product-options {
  margin-top: 16px;
}

.product-title-box {
  margin-top: 14px;
}

.stack {
  display: grid;
  gap: 10px;
}

.opening {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fffaf6;
  border: 1px solid var(--line);
}

.opening b {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: 13px;
}

ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.warn {
  background: rgba(255, 245, 219, 0.88);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 220, 198, 0.95), transparent 36%),
    linear-gradient(180deg, rgba(255, 246, 237, 0.96), rgba(255, 250, 243, 0.98));
}

.auth-gate.hidden {
  display: none;
}

.auth-card {
  width: min(100%, 420px);
  padding: 34px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 246, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(255, 216, 107, 0.2), transparent 45%);
  box-shadow:
    0 24px 60px rgba(104, 60, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: center;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 32px 32px 32px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.58) 0 12%, transparent 13%),
    radial-gradient(circle at 72% 75%, rgba(255, 216, 107, 0.55) 0 15%, transparent 16%),
    linear-gradient(145deg, #ffb36f 0%, #ff7b5c 48%, #c24d39 100%);
  box-shadow:
    0 20px 38px rgba(239, 115, 84, 0.34),
    0 0 0 8px rgba(255, 225, 209, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: rotate(-4deg);
}

.brand-logo {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 34px;
  object-fit: cover;
  box-shadow:
    0 20px 38px rgba(239, 115, 84, 0.28),
    0 0 0 8px rgba(255, 225, 209, 0.58);
}

.brand-face {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.06));
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.12em;
  text-shadow: 0 3px 10px rgba(90, 35, 24, 0.18);
  transform: rotate(4deg);
}

.brand-dot {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff7df;
  box-shadow: -20px 2px 0 rgba(255, 247, 223, 0.9);
}

.brand-spark {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #ffd86b;
  box-shadow: 0 0 0 4px rgba(255, 216, 107, 0.18);
}

.spark-one {
  width: 9px;
  height: 9px;
  right: -3px;
  top: 12px;
}

.spark-two {
  width: 6px;
  height: 6px;
  left: 10px;
  bottom: 3px;
}

.brand-title {
  display: inline-block;
  margin: 0 0 8px;
  color: transparent;
  background: linear-gradient(100deg, #7a3327 0%, #ef7354 42%, #ff9b68 72%, #9b3f30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(42px, 13vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 12px 28px rgba(239, 115, 84, 0.18);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.access-input {
  margin-top: 16px;
  text-align: center;
}

.member-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.text-button {
  width: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 800;
}
