:root {
  --green: #008574;
  --green-dark: #00685e;
  --ink: #153c3b;
  --text: #273f40;
  --muted: #647970;
  --line: #e4eeeb;
  --bg: #f4f9f7;
  --white: #fff;
  --pale: #e9f6f1;
  --shadow: 0 8px 30px #163c3710;
  --radius: 20px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #63c6b5;
  outline-offset: 3px;
}
button {
  border: 0;
}
button svg,
a svg {
  pointer-events: none;
}
svg.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.3;
}
h2 {
  font-size: 20px;
  color: var(--ink);
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
p {
  line-height: 1.7;
}
small {
  color: var(--muted);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: #fff;
  z-index: 20;
}
.skip-link:focus {
  top: 8px;
}
.app-shell {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 42px 25px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -1.6px;
  color: #104744;
  display: block;
}
.wordmark span {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  color: #839594;
  font-weight: 400;
  margin-top: 9px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 36px 0 26px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.workspace small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.workspace-avatar {
  background: #def3eb;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green);
}
.desktop-nav {
  display: grid;
  gap: 9px;
}
.nav-item {
  padding: 14px 19px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 12px;
  color: #6e8382;
  font-size: 14px;
  font-weight: 500;
}
.nav-item.active {
  color: var(--green);
  background: #e8f6f0;
  font-weight: 700;
}
.nav-item.active:after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-note {
  margin-top: auto;
  font-size: 11px;
  color: var(--green-dark);
  padding: 22px 10px 0;
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00a888;
  display: inline-block;
  margin-right: 4px;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 81px;
  padding: 0 46px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffffa8;
}
.topbar-label {
  font-size: 12px;
  color: #83918d;
  letter-spacing: 1px;
  flex: 1;
}
.environment-pill {
  font-size: 10px;
  letter-spacing: 0.3px;
  background: #eaf4ef;
  color: #5b7c70;
  border: 1px solid #dfebe4;
  border-radius: 30px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-link {
  height: 31px;
  width: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9ede4;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}
.mobile-brand {
  display: none;
}
main {
  max-width: 1220px;
  margin: auto;
  padding: 35px 46px 22px;
  min-height: calc(100vh - 142px);
  outline: none;
}
.page-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  min-height: 42px;
  transition:
    background 0.18s,
    transform 0.18s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: #00806f;
  transform: translateY(-1px);
}
.btn.secondary {
  color: var(--green);
  background: #e9f6ef;
}
.btn.secondary:hover {
  background: #d8eee3;
}
.btn.outline {
  background: white;
  color: var(--green);
  border: 1px solid #bee1d5;
}
.btn.danger {
  background: #fff1ee;
  color: #ba4e41;
}
.btn.small {
  padding: 8px 12px;
  min-height: 34px;
  font-size: 11px;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.hero {
  min-height: 270px;
  border-radius: 24px;
  background: linear-gradient(118deg, #006c5e, #05927c 63%, #6fc7a0);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 36px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 28px #126d6020;
}
.hero:before {
  content: '';
  position: absolute;
  width: 470px;
  height: 470px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  right: -170px;
  top: -220px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 55%;
}
.hero-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: #bbe2d4;
  display: flex;
  gap: 7px;
  align-items: center;
}
.hero h2 {
  font-size: 31px;
  line-height: 1.45;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
  margin: 16px 0 9px;
}
.hero p {
  font-size: 12px;
  color: #c3e5d9;
  max-width: 280px;
}
.hero .btn {
  margin-top: 22px;
  background: white;
  color: #087360;
  padding: 12px 20px;
}
.hero-art {
  width: 46%;
  height: 275px;
  position: absolute;
  right: 5px;
  bottom: -14px;
  transform: rotate(-5deg);
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
  gap: 15px;
}
.section-heading h2 {
  font-size: 17px;
}
.text-link {
  font-size: 11px;
  font-weight: 500;
  color: #6e8780;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 6px 0;
}
.text-link svg {
  height: 15px;
  width: 15px;
}
.section-subtitle {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 10px;
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.scene-card {
  border: 1px solid #e4eeeb;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: block;
  position: relative;
}
.scene-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.scene-art {
  height: 120px;
  background: var(--scene-bg, #e9f5ef);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.scene-art:after {
  content: '';
  position: absolute;
  width: 115px;
  height: 115px;
  right: -26px;
  top: -26px;
  border: 1px solid #ffffff7f;
  border-radius: 50%;
}
.scene-art > svg {
  height: 105px;
  width: 170px;
}
.scene-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}
.scene-description h3 {
  font-size: 13px;
}
.scene-description p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.scene-description > svg {
  width: 16px;
  height: 16px;
  color: #91a6a0;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  overflow: hidden;
  padding: 10px 5px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: white;
  padding: 15px 5px;
  color: #28534b;
  font-size: 11px;
  border-radius: 10px;
  min-height: 105px;
}
.tool-card:hover {
  background: #f2f8f4;
}
.tool-card svg {
  width: 26px;
  height: 26px;
}
.tool-card small {
  font-size: 9px;
  border-radius: 20px;
  padding: 3px 7px;
  background: #f3f5f3;
  color: #8d9a92;
  margin-top: -2px;
}
.home-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.empty-inline {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.empty-inline svg {
  width: 32px;
  height: 32px;
  color: #b0c7bc;
}
.empty-inline h3 {
  font-size: 13px;
}
.empty-inline p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 12px;
}
.card-head h2 {
  font-size: 15px;
}
.flow-note {
  background: #edf4ef;
  border: 1px solid #deeae1;
  border-radius: 18px;
  padding: 20px;
}
.flow-note h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
.flow-note p {
  font-size: 11px;
  color: #658177;
}
.flow-steps {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  font-size: 10px;
  align-items: center;
  color: #557b6e;
}
.flow-steps span {
  background: white;
  padding: 6px;
  border-radius: 6px;
}
.app-footer {
  padding: 20px 46px 26px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9aaba4;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.bottom-nav {
  display: none;
}
.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.search-box {
  position: relative;
  flex: 1;
}
.search-box svg {
  position: absolute;
  left: 15px;
  top: 13px;
  width: 19px;
  height: 19px;
  color: #91a39b;
}
.search-box input {
  padding-left: 45px;
  background: #fff;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 2px 0 5px;
}
.chip {
  font-size: 12px;
  color: #7b8c83;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 8px 15px;
  border-radius: 25px;
}
.chip.active {
  color: var(--green);
  background: #e1f1e8;
  border-color: #d1e8db;
  font-weight: 600;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  display: block;
  border: 1px solid var(--line);
  background: white;
  padding: 21px;
  border-radius: 17px;
  transition: box-shadow 0.2s;
}
.project-card:hover {
  box-shadow: var(--shadow);
}
.project-card-top {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.project-icon {
  width: 47px;
  height: 47px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e9f5ee;
  color: #259b7e;
  flex-shrink: 0;
}
.project-card h3 {
  font-size: 15px;
  word-break: break-word;
}
.project-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.project-card-footer {
  border-top: 1px solid #eef3ef;
  padding-top: 13px;
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #7f968b;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  background: #eff4f0;
  border-radius: 5px;
  color: #789080;
  font-size: 10px;
  white-space: nowrap;
}
.badge.green {
  background: #e8f5ed;
  color: #248f6b;
}
.badge.amber {
  background: #fff5df;
  color: #a97826;
}
.badge.gray {
  background: #eef1f2;
  color: #76858b;
}
.empty-state {
  text-align: center;
  padding: 55px 22px;
  border: 1px dashed #d4e6d9;
  border-radius: 20px;
  background: #ffffffa1;
}
.empty-state .empty-icon {
  width: 68px;
  height: 68px;
  background: #e9f4ed;
  border-radius: 20px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #74b59b;
}
.empty-icon svg {
  width: 30px;
  height: 30px;
}
.empty-state h2 {
  font-size: 19px;
}
.empty-state p {
  max-width: 340px;
  margin: 10px auto 23px;
  font-size: 12px;
  color: var(--muted);
}
.loading-state {
  padding: 90px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #cfe6d9;
  border-top-color: #059a81;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #748c80;
  margin-bottom: 20px;
  background: transparent;
  padding: 0;
}
.back-link svg {
  width: 16px;
  height: 16px;
}
.detail-top {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-start;
}
.detail-top h1 {
  font-size: 27px;
}
.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.details-list dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.details-list dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.details-list .wide {
  grid-column: 1/-1;
}
.notice {
  padding: 14px 16px;
  border: 1px solid #dfeade;
  border-radius: 12px;
  background: #f1f7ef;
  font-size: 11px;
  line-height: 1.7;
  color: #658363;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.notice svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}
.notice.amber {
  background: #fff8e8;
  border-color: #f1e9cf;
  color: #917948;
}
.notice.blue {
  background: #edf5f7;
  border-color: #e0edf0;
  color: #5b7d86;
}
.notice.error {
  background: #fff2ef;
  border-color: #f4dbd5;
  color: #af5845;
}
.work-card {
  overflow: hidden;
  padding: 0;
}
.work-thumbnail {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #edf4ef;
}
.work-thumbnail iframe {
  pointer-events: none;
  width: 100%;
  height: 100%;
  border: 0;
}
.work-thumbnail .mini-design {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  border: 1px solid #ffffff55;
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  padding: 20px;
  overflow: hidden;
}
.work-info {
  padding: 17px;
}
.work-info h3 {
  font-size: 14px;
}
.work-info p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 10px;
  color: #8ca092;
}
.scene-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scene-choice {
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.scene-choice svg {
  color: var(--green);
}
.scene-choice:hover {
  background: #edf6ef;
  border-color: #acd9c6;
}
.form-card {
  max-width: 790px;
  margin: 0 auto;
}
.form-section {
  border: 1px solid var(--line);
  background: white;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 17px;
}
.form-section h2 {
  font-size: 16px;
  margin-bottom: 6px;
}
.section-explainer {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: #416152;
}
.field label .optional {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  width: 100%;
  border: 1px solid #dfe9e3;
  border-radius: 9px;
  min-height: 43px;
  padding: 11px 12px;
  color: #2f5143;
  background: #fcfefc;
  outline-offset: 1px;
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: #a6b3ab;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
}
.field input[type='color'] {
  height: 44px;
  padding: 5px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #718676;
}
.checkbox input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 8px 0 18px;
}
.inline-error {
  font-size: 11px;
  color: #b55140;
  line-height: 1.7;
  margin: 9px 0;
  min-height: 0;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 20px;
}
.canvas-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background-color: #eaf1ec;
  background-image: radial-gradient(#d2dfd5 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid #dce8df;
  border-radius: 17px;
  padding: 25px;
}
.design-canvas {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  box-shadow: 0 12px 30px #20382b1c;
  overflow: hidden;
  border-radius: 2px;
}
.design-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 10px;
  color: var(--muted);
}
.editor-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 19px;
}
.editor-panel h2 {
  font-size: 15px;
  margin-bottom: 18px;
}
.editor-panel .field {
  margin-bottom: 15px;
}
.editor-panel .field-grid {
  gap: 12px;
}
.editor-panel .btn {
  width: 100%;
  margin-top: 9px;
}
.editor-panel .notice {
  font-size: 10px;
  padding: 11px;
  margin-top: 13px;
}
.version-list {
  display: grid;
  gap: 10px;
}
.version-item {
  padding: 16px;
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.version-circle {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  background: #e7f5ed;
}
.version-text {
  flex: 1;
  min-width: 0;
}
.version-text h3 {
  font-size: 12px;
}
.version-text p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 25px;
}
.account-avatar {
  height: 64px;
  width: 64px;
  border-radius: 19px;
  background: #e2f4e9;
  display: grid;
  place-items: center;
  color: #0a8c71;
  font-size: 24px;
  font-weight: 700;
}
.account-card h2 {
  font-size: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.stat {
  padding: 21px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
}
.stat strong {
  display: block;
  font-size: 27px;
  color: var(--green-dark);
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.settings-list {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  overflow: hidden;
}
.settings-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 18px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  color: #416452;
  font-size: 12px;
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-row span {
  flex: 1;
}
.settings-row small {
  font-size: 10px;
}
.settings-row:hover {
  background: #f8fbf8;
}
dialog {
  border: 0;
  border-radius: 21px;
  padding: 0;
  max-width: 550px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 80px #062f2740;
  color: var(--text);
}
dialog::backdrop {
  background: #082b2666;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px 17px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
}
.close-modal {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #f1f5f1;
  color: #698374;
  font-size: 22px;
  font-weight: 300;
}
.modal-body {
  padding: 23px 24px;
  max-height: 70vh;
  overflow: auto;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.modal-body > .notice {
  margin-bottom: 20px;
}
.modal-body > .field {
  margin: 16px 0;
}
.modal-body .field-grid {
  gap: 16px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #174c3d;
  color: white;
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 30px #0935222e;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  max-width: calc(100% - 30px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.error-illustration {
  font-size: 36px;
  color: #bc8569;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.download-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfe7d9;
  background: #f0f8f2;
  border-radius: 12px;
  padding: 15px;
  margin-top: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.metadata-block {
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #748b7b;
  padding: 13px;
  background: #f6f9f5;
  border-radius: 10px;
  margin: 15px 0;
}
.asset-empty {
  border: 1px dashed #d3e4d8;
  border-radius: 10px;
  padding: 17px;
  text-align: center;
  color: #859b8b;
  font-size: 11px;
  line-height: 1.8;
}
.scene-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--green);
}
.help-list {
  padding-left: 18px;
  color: #718978;
  font-size: 11px;
  line-height: 1.9;
}
.draft-notice {
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
  color: #869b8d;
  margin-top: 13px;
}
.tools-banner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-top: 22px;
}
.tool-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.tool-icon {
  width: 50px;
  height: 50px;
  background: #e7f4ec;
  color: var(--green);
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.compact-scene .scene-art {
  height: 110px;
}
@media (min-width: 1450px) {
  main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .hero {
    min-height: 290px;
  }
  .scene-art {
    height: 142px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 35px 18px 22px;
  }
  .wordmark {
    font-size: 28px;
  }
  main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .hero {
    padding: 26px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero-art {
    right: -25px;
    width: 49%;
  }
  .scene-description {
    padding: 12px;
  }
  .scene-description p {
    font-size: 9px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 14px;
  }
  .home-bottom {
    grid-template-columns: 1fr;
  }
  .flow-note {
    display: none;
  }
  .app-footer {
    padding: 20px 30px;
  }
  .app-footer span {
    display: none;
  }
}
@media (max-width: 780px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 63px;
    padding: 0 22px;
    background: #ffffffa6;
  }
  .topbar-label {
    display: none;
  }
  .mobile-brand {
    display: block;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--ink);
    flex: 1;
  }
  .environment-pill {
    font-size: 9px;
    padding: 5px 7px;
  }
  .profile-link {
    display: none;
  }
  main {
    padding: 25px 22px 26px;
    min-height: calc(100vh - 190px);
  }
  h1 {
    font-size: 29px;
  }
  .page-heading {
    margin-bottom: 21px;
  }
  .subtitle {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero {
    min-height: 245px;
    padding: 25px;
    border-radius: 20px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero-copy {
    width: 60%;
  }
  .hero-art {
    width: 45%;
    height: 240px;
    right: 0;
  }
  .hero p {
    font-size: 11px;
  }
  .hero .btn {
    font-size: 11px;
    padding: 11px 14px;
  }
  .hero-kicker {
    font-size: 8px;
  }
  .scene-grid {
    gap: 12px;
  }
  .scene-art {
    height: 100px;
  }
  .scene-art > svg {
    width: 140px;
    height: 92px;
  }
  .scene-description {
    padding: 12px;
  }
  .scene-description p {
    display: none;
  }
  .scene-description h3 {
    font-size: 12px;
  }
  .tools-grid {
    padding: 6px 3px;
  }
  .tool-card {
    font-size: 10px;
    padding: 10px 2px;
    min-height: 95px;
    gap: 7px;
  }
  .tool-card small {
    font-size: 8px;
    padding: 3px 4px;
  }
  .tool-card svg {
    width: 24px;
    height: 24px;
  }
  .section-heading {
    margin-top: 25px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-subtitle {
    display: none;
  }
  .bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffffed;
    backdrop-filter: blur(14px);
    border-top: 1px solid #e5eee5;
    padding: 8px 8px calc(9px + env(safe-area-inset-bottom));
    z-index: 10;
  }
  .bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    font-size: 10px;
    border-radius: 10px;
  }
  .bottom-nav .nav-item.active {
    background: transparent;
  }
  .bottom-nav .nav-item.active:after {
    display: none;
  }
  .bottom-nav .nav-item svg {
    width: 23px;
    height: 23px;
  }
  .app-footer {
    padding: 10px 22px 93px;
    justify-content: center;
    font-size: 8px;
  }
  #toast {
    bottom: 95px;
  }
  .project-grid {
    gap: 12px;
  }
  .project-card {
    padding: 17px;
  }
  .project-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .project-card h3 {
    font-size: 13px;
  }
  .project-card-top {
    gap: 10px;
  }
  .project-card-footer {
    font-size: 9px;
  }
  .details-list {
    gap: 18px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .canvas-area {
    min-height: 370px;
    max-height: 540px;
  }
  .design-canvas {
    max-width: 280px;
  }
  .editor-panel {
    padding: 20px;
  }
  .editor-panel .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .editor-panel > .field {
    margin-bottom: 18px;
  }
  .field-grid {
    gap: 16px;
  }
  .form-section {
    padding: 21px;
  }
  .page-heading > .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .detail-top {
    flex-wrap: wrap;
  }
  .detail-top .button-row {
    margin-top: 5px;
  }
  .tools-banner {
    align-items: flex-start;
  }
  .scene-select {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  main {
    padding: 23px 17px;
  }
  .topbar {
    padding: 0 18px;
  }
  .hero {
    min-height: 231px;
    padding: 22px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-copy {
    width: 68%;
  }
  .hero-art {
    width: 52%;
    right: -34px;
    height: 220px;
    opacity: 0.88;
  }
  .hero p {
    max-width: 200px;
    font-size: 10px;
  }
  .hero-kicker {
    font-size: 8px;
  }
  .hero .btn {
    margin-top: 18px;
  }
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .scene-art {
    height: 103px;
  }
  .scene-description p {
    display: block;
    font-size: 9px;
  }
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 7px;
    gap: 4px;
  }
  .tool-card {
    padding: 14px 4px;
    min-height: 99px;
    background: #f6f9f6;
  }
  .tool-card small {
    font-size: 8px;
  }
  .home-bottom {
    gap: 0;
  }
  .card {
    padding: 19px;
  }
  .card-head h2 {
    font-size: 14px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 19px;
  }
  .project-card h3 {
    font-size: 15px;
  }
  .project-card-footer {
    font-size: 10px;
  }
  .project-card p {
    font-size: 11px;
  }
  .search-row {
    gap: 8px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading {
    gap: 10px;
  }
  .details-list {
    grid-template-columns: 1fr 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .form-section {
    padding: 19px;
  }
  .form-actions {
    position: sticky;
    bottom: 74px;
    background: #f4f9f7ef;
    border-top: 1px solid #e2ece4;
    backdrop-filter: blur(5px);
    padding: 12px 0;
    margin-top: 0;
    z-index: 5;
  }
  .form-actions .btn {
    flex: 1;
  }
  .canvas-area {
    min-height: 330px;
    padding: 22px;
  }
  .editor-panel .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat span {
    font-size: 10px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-body .field-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions .btn {
    flex: 1;
  }
  .version-item {
    padding: 13px;
    gap: 10px;
  }
  .version-item .btn {
    font-size: 10px;
    padding: 8px;
  }
  .version-text p {
    font-size: 9px;
  }
  .tools-banner {
    flex-direction: column;
    gap: 15px;
  }
  .detail-top h1 {
    font-size: 25px;
  }
  .notice {
    font-size: 10px;
  }
  .work-thumbnail {
    height: 150px;
  }
  .scene-select {
    gap: 8px;
  }
  .scene-choice {
    font-size: 10px;
  }
  .section-heading .text-link {
    font-size: 10px;
  }
  .account-card {
    padding: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.preview-warning {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  gap: 13px;
  background: #fcf8e9;
  color: #917948;
  text-align: center;
  font-size: 12px;
}
.preview-warning svg {
  width: 28px;
  height: 28px;
}
.preview-warning p {
  font-size: 11px;
}
.preview-warning small {
  font-size: 10px;
  color: #a69570;
}
[hidden] {
  display: none !important;
}

/* Scene-first workflows. The six common entries remain a 3 × 2 grid on phones. */
.home-scenes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-secondary {
  background: #ffffff26 !important;
  color: white !important;
  border: 1px solid #ffffff55;
}
.hero .button-row {
  margin-top: 20px;
}
.hero .button-row .btn {
  margin-top: 0;
}
.extra-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.extra-scene {
  padding: 15px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  min-height: 108px;
}
.extra-scene .icon {
  color: #7aa59b;
}
.extra-scene span {
  font-size: 12px;
  font-weight: 600;
}
.extra-scene small {
  font-size: 10px;
  color: #728981;
}
.all-scenes,
.manual-fallback {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: white;
  margin: 20px 0;
}
summary {
  cursor: pointer;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}
summary:focus-visible {
  outline: 3px solid #0c9785;
  outline-offset: 4px;
  border-radius: 5px;
}
.optional-section[open] summary,
.manual-fallback[open] summary {
  margin-bottom: 18px;
}
.workflow-steps {
  display: flex;
  gap: 9px;
  margin: 6px 0 22px;
  font-size: 11px;
  color: var(--muted);
}
.workflow-steps span {
  flex: 1;
  background: #eaf0ed;
  padding: 12px 6px;
  border-radius: 10px;
  text-align: center;
}
.workflow-steps .active {
  background: #dff3ec;
  color: #006c5d;
  font-weight: 700;
}
.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section-title-row h2 {
  font-size: 19px;
}
.upload-section {
  border-color: #cfe5de;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.source-asset {
  margin: 0;
  background: #f5faf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.source-asset img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  background: #eaf1ee;
}
.source-asset figcaption {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.source-asset strong {
  font-size: 12px;
  color: #306856;
}
.source-asset small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.source-asset button {
  text-align: left;
  font-size: 11px;
  color: var(--green);
  min-height: 32px;
}
.asset-placeholder {
  grid-column: 1/-1;
  margin: 0 0 12px;
  padding: 30px 12px;
  border: 1px dashed #b9d8cd;
  border-radius: 12px;
  background: #f5faf8;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #497667;
}
.asset-placeholder small {
  font-size: 11px;
  color: var(--muted);
}
.upload-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  border: 1px solid #aed4c6;
  border-radius: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  background: #f0faf5;
  cursor: pointer;
  margin-top: 12px;
}
.upload-control input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.upload-control:focus-within {
  outline: 3px solid #0c9785;
  outline-offset: 3px;
}
#upload-status {
  margin: 10px 0 0;
}
.poster-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 20px -3px;
  padding: 3px 3px 9px;
  scroll-snap-type: x proximity;
}
.poster-tab {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 46px;
  border: 1px solid #d9e8e1;
  border-radius: 12px;
  padding: 12px 16px;
  background: #f7faf8;
  color: #557a6d;
  font-size: 13px;
  scroll-snap-align: start;
}
.poster-tab.active {
  background: #008574;
  color: #fff;
  border-color: #008574;
}
.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 15px 0 20px;
}
.scene-result {
  border: 1px solid #cfe5de;
  border-radius: 20px;
  background: white;
  padding: 24px;
}
.no-ai-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 14px;
  border: 1px dashed #bbdacc;
  border-radius: 14px;
  background: #f6fbf8;
  padding: 24px;
  color: #5d8877;
  text-align: center;
}
.no-ai-result > .icon {
  height: 36px;
  width: 36px;
}
.no-ai-result p {
  max-width: 390px;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.brief-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.brief-facts div {
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.brief-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.brief-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-state {
  margin: 17px 0 0;
  font-size: 12px;
  color: #817045;
  line-height: 1.8;
}
#task-feedback .notice {
  margin-top: 16px;
}
@media (max-width: 480px) {
  .home-scenes {
    gap: 9px;
  }
  .home-scenes .scene-art,
  .compact-scene .scene-art {
    height: 76px;
  }
  .home-scenes .scene-art > svg {
    width: 110px;
    height: 72px;
    max-width: 100%;
  }
  .home-scenes .scene-description {
    padding: 10px 4px;
    justify-content: center;
    text-align: center;
  }
  .home-scenes .scene-description h3 {
    font-size: 11px;
    white-space: nowrap;
  }
  .home-scenes .scene-description p,
  .home-scenes .scene-description > .icon {
    display: none;
  }
  .hero .button-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
  }
  .hero .button-row .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .hero {
    min-height: 278px;
  }
  .scene-result {
    padding: 19px;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .result-assets .source-asset img {
    height: 210px;
  }
  .manual-fallback {
    padding: 16px;
  }
  .extra-scene {
    padding: 13px 5px;
  }
  .extra-scene span {
    font-size: 11px;
  }
  input:not([type='checkbox']):not([type='radio']),
  select,
  textarea {
    font-size: 16px;
  }
  .form-actions .btn {
    font-size: 12px;
  }
  .workflow-steps {
    font-size: 10px;
    gap: 5px;
  }
  .brief-facts {
    gap: 12px;
  }
}
