:root {
  --bg: #f5f4f0;
  --panel: #ffffff;
  --panel-strong: #f2f3ef;
  --ink: #1a1f1e;
  --muted: #6f7470;
  --line: #dcdfda;
  --gold: #b89b6a;
  --gold-dark: #736044;
  --teal: #005c61;
  --teal-strong: #00464a;
  --sage: #7f958a;
  --clay: #bd8f7f;
  --paper: #fbfaf6;
  --stone: #ebe7df;
  --sidebar: #111818;
  --sidebar-soft: #182322;
  --danger: #a33f32;
  --success: #247052;
  --shadow: 0 14px 34px rgba(24, 31, 29, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body.auth-locked .app-shell {
  display: none;
}

body.app-active .landing-page {
  display: none;
}

.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #f7fbf6;
  background:
    radial-gradient(circle at 73% 22%, rgba(180, 155, 106, 0.28), transparent 24%),
    radial-gradient(circle at 50% 44%, rgba(0, 92, 97, 0.34), transparent 36%),
    linear-gradient(115deg, #0a0f0f 0%, #15201f 48%, #080908 100%);
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.18));
  transform: perspective(900px) rotateX(58deg) translateY(-22%);
  transform-origin: top center;
}

.landing-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 32%, rgba(0, 0, 0, 0.32) 75%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 16% 84%, rgba(0, 0, 0, 0.76));
}

.landing-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.landing-nav,
.landing-hero,
.landing-band,
.landing-modules {
  position: relative;
  z-index: 2;
}

.landing-nav {
  min-height: 104px;
  padding: 28px clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.landing-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #111818;
  background: #ffd900;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(255, 217, 0, 0.36);
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
}

.landing-links a,
.landing-login-btn,
.landing-secondary {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
}

.landing-links .landing-showcase-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(0, 229, 255, 0.58);
  border-radius: 999px;
  color: #eaffff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.24), rgba(141, 124, 255, 0.18));
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.18);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.landing-links .landing-showcase-cta:hover,
.landing-links .landing-showcase-cta:focus-visible {
  border-color: rgba(0, 229, 255, 0.95);
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.32);
  transform: translateY(-1px);
  outline: 0;
}

.landing-login-btn {
  min-height: 42px;
  padding: 0 18px;
  color: #111818;
  background: #ffd900;
  border: 0;
}

.landing-hero {
  min-height: calc(100vh - 104px);
  padding: clamp(34px, 5vw, 78px) clamp(22px, 5vw, 72px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.landing-eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #ffd900;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 148px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:nth-child(3) {
  color: #ffe9b2;
}

.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.landing-primary,
.landing-secondary {
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-primary {
  border: 0;
  color: #101414;
  background: #ffd900;
  font-weight: 900;
}

.landing-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-proof {
  width: min(560px, 100%);
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 17, 16, 0.56);
  backdrop-filter: blur(18px);
}

.hero-proof div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  font-size: 28px;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: min(680px, 72vh);
}

.visual-orbit {
  position: absolute;
  inset: 4% 2% 8%;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(185, 255, 239, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 46px rgba(0, 92, 97, 0.18);
  animation: orbitSpin 18s linear infinite;
}

.ring-a {
  width: 76%;
  aspect-ratio: 1;
}

.ring-b {
  width: 55%;
  aspect-ratio: 1;
  animation-duration: 13s;
  animation-direction: reverse;
  transform: rotateX(62deg);
}

.ring-c {
  width: 94%;
  aspect-ratio: 1;
  animation-duration: 26s;
  transform: rotateZ(18deg);
}

@keyframes orbitSpin {
  to {
    rotate: 360deg;
  }
}

.core-node,
.workflow-node,
.hero-console {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 17, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.core-node {
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.86), transparent 13%),
    radial-gradient(circle, rgba(255, 217, 0, 0.92), rgba(0, 92, 97, 0.42) 58%, rgba(3, 7, 7, 0.88));
  box-shadow: 0 0 86px rgba(255, 217, 0, 0.34);
}

.core-node strong {
  font-size: 34px;
}

.core-node span,
.workflow-node span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.workflow-node {
  position: absolute;
  width: 136px;
  min-height: 82px;
  padding: 16px;
}

.workflow-node strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.node-a { left: 7%; top: 18%; }
.node-b { right: 9%; top: 12%; }
.node-c { right: 5%; bottom: 22%; }
.node-d { left: 14%; bottom: 14%; }
.node-e { left: 42%; bottom: 2%; }

.hero-console {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: min(420px, 92%);
  padding: 18px;
}

.console-topline,
.console-row {
  display: grid;
  grid-template-columns: 132px 1fr 42px;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.console-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 800;
}

.console-row {
  margin: 14px 0;
}

.console-row i {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.console-row i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66ffe2, #ffd900);
}

.landing-band,
.landing-modules {
  padding: clamp(70px, 9vw, 120px) clamp(22px, 5vw, 72px);
  background: #fbfaf6;
  color: #101414;
}

.landing-band h2,
.landing-modules h2 {
  max-width: 900px;
  margin: 0 0 36px;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-strip article,
.module-grid article {
  border: 1px solid rgba(16, 20, 20, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
}

.workflow-strip article {
  min-height: 220px;
  padding: 24px;
}

.workflow-strip span {
  display: block;
  color: #b89b6a;
  font-weight: 900;
  margin-bottom: 38px;
}

.workflow-strip strong,
.module-grid strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.workflow-strip p,
.module-grid p {
  color: #575757;
  line-height: 1.75;
}

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

.module-grid article {
  overflow: hidden;
}

.module-grid img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}

.module-grid div {
  padding: 22px;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 8, 0.74);
  backdrop-filter: blur(18px);
}

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

.auth-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.auth-brand {
  color: var(--ink);
  margin-bottom: 24px;
}

.mode-switch {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #191816;
  color: #fffaf0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #cfc5b5;
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item,
.ghost-btn,
.primary-btn,
.text-btn,
.icon-btn,
.chip-btn {
  border: 0;
}

.nav-item {
  text-align: left;
  color: #e8dfd0;
  background: transparent;
  padding: 12px 14px;
}

.nav-item.active,
.nav-item:hover {
  background: #2a2824;
  color: #fff;
}

.role-panel {
  margin-top: auto;
  padding: 16px;
  background: #24221f;
  display: grid;
  gap: 10px;
}

.user-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #24221f;
  color: #fffaf0;
}

.user-panel span {
  color: #cfc5b5;
  font-size: 13px;
}

.user-panel .ghost-btn {
  background: #191816;
  color: #fffaf0;
  border-color: #4b463d;
}

.role-panel label {
  color: #cfc5b5;
  font-size: 13px;
}

.role-panel select {
  width: 100%;
  border: 1px solid #4b463d;
  color: #fff;
  background: #191816;
  padding: 10px;
}

.role-panel p {
  margin: 0;
  color: #cfc5b5;
  font-size: 13px;
  line-height: 1.5;
}

.main {
  padding: 32px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.top-actions,
.dialog-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.text-btn,
.chip-btn {
  min-height: 40px;
  padding: 0 16px;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
}

.ghost-btn {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.text-btn {
  background: transparent;
  color: var(--gold-dark);
  padding-inline: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 22px;
}

.chip-btn {
  background: var(--panel-strong);
  color: var(--ink);
}

.chip-btn.active {
  background: var(--ink);
  color: #fff;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.asset-card,
.project-row {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 18px;
}

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

.toolbar {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 12px;
  margin-bottom: 16px;
}

.compact-toolbar {
  grid-template-columns: 1fr 180px;
}

.toolbar input,
.toolbar select,
.batchbar select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 11px 12px;
}

.batchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.batchbar select {
  width: 220px;
}

.workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
}

.project-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding-right: 4px;
}

.project-row {
  width: 100%;
  text-align: left;
  padding: 14px;
}

.project-row.active {
  outline: 2px solid var(--gold);
}

.project-row strong,
.list-item strong,
.asset-card strong {
  display: block;
}

.meta,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.status-pill,
.auth-pill,
.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.auth-pill.public_case,
.auth-pill.ciid {
  background: #e9ddc8;
  color: #69491f;
}

.auth-pill.private {
  background: #eee8df;
}

.risk-pill {
  background: #f1d6d0;
  color: var(--danger);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.detail-cell {
  padding: 12px;
  background: #faf7f0;
  border: 1px solid var(--line);
}

.detail-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.status-flow {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
}

.file-table th,
.file-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  vertical-align: top;
}

.file-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

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

.list-item {
  padding: 12px;
  background: #faf7f0;
  border: 1px solid var(--line);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.asset-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.asset-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.asset-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.asset-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  background: #eee7dc;
  color: var(--muted);
  overflow: hidden;
}

.asset-preview img,
.preview-body img,
.preview-body video {
  max-width: 100%;
  max-height: 70vh;
}

.asset-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.matrix {
  overflow: auto;
}

.matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.matrix th,
.matrix td {
  border: 1px solid var(--line);
  padding: 11px;
  text-align: left;
}

.matrix th {
  background: var(--panel-strong);
}

.empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  background: #faf7f0;
}

.compact-empty {
  min-height: 120px;
  padding: 16px;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(25, 24, 22, 0.46);
}

.dialog-card {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}

.preview-card {
  width: min(940px, calc(100vw - 32px));
}

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

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

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

.form-grid .full {
  grid-column: 1 / -1;
}

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

.field-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.field-label select,
#changeRequestInput {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 11px 12px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  margin-bottom: 16px;
  border: 1px dashed var(--gold);
  background: #fbf7ef;
  color: var(--muted);
  text-align: center;
}

.drop-zone.compact {
  min-height: 112px;
}

.drop-zone strong {
  color: var(--ink);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pending-files {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.preview-body {
  display: grid;
  place-items: center;
  min-height: 280px;
  background: #f5efe5;
  padding: 18px;
  text-align: center;
}

.warning {
  color: var(--danger);
}

.floorplan-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.floorplan-layout.bottom {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  margin-top: 18px;
}

.floorplan-control {
  align-self: start;
}

.flow-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: #faf7f0;
  margin-bottom: 14px;
}

.flow-card h3 {
  margin-bottom: 12px;
}

.task-status {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.task-step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}

.task-step.active {
  color: var(--gold-dark);
  border-color: #d2af7b;
}

.task-step.done {
  color: var(--success);
}

.floorplan-canvas-wrap {
  min-height: 460px;
  overflow: hidden;
  background:
    linear-gradient(#eee7dc 1px, transparent 1px),
    linear-gradient(90deg, #eee7dc 1px, transparent 1px),
    #fbf8f1;
  background-size: 28px 28px;
  border: 1px solid var(--line);
}

#floorplanCanvas {
  width: 100%;
  min-height: 460px;
  display: block;
}

.room-shape {
  fill: rgba(255, 253, 248, 0.92);
  stroke: #2e2b25;
  stroke-width: 4;
}

.room-shape.selected {
  fill: #f4ead9;
  stroke: var(--gold);
}

.wall-line {
  stroke: #1d1c19;
  stroke-width: 8;
  stroke-linecap: square;
}

.door-symbol,
.window-symbol {
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 4;
}

.furniture-shape {
  fill: #d8c5a7;
  stroke: #806035;
  stroke-width: 2;
  cursor: move;
}

.furniture-shape.selected {
  fill: #b78a45;
}

.annotation-text {
  fill: #3b3832;
  font-size: 17px;
  font-weight: 600;
  pointer-events: none;
}

.measure-text {
  fill: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.room-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.room-edit-card {
  border: 1px solid var(--line);
  background: #faf7f0;
  padding: 10px;
}

.room-edit-card input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  padding: 8px;
}

.floorplan-columns {
  box-shadow: none;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.solution-card {
  border: 1px solid var(--line);
  background: #faf7f0;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.solution-card.active {
  outline: 2px solid var(--gold);
}

.solution-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.render-workbench {
  margin-top: 18px;
}

.render-workbench-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.render-source-preview {
  min-height: 240px;
  background: #f4efe5;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.render-source-preview img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

.render-source-preview > span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 8px;
  background: rgba(25, 24, 22, 0.74);
  color: #fff;
  font-size: 12px;
}

.prompt-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #faf7f0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  max-height: 220px;
  overflow: auto;
}

.prompt-preview strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

.prompt-preview p {
  margin-bottom: 8px;
}

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

.render-result-grid > .empty-state {
  grid-column: 1 / -1;
}

.render-card {
  border: 1px solid var(--line);
  background: #faf7f0;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.render-card.favorite {
  outline: 2px solid var(--gold);
}

.render-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee7dc;
}

.render-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.render-history-title {
  margin-top: 18px;
}

.render-history-list {
  display: grid;
  gap: 10px;
}

.render-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #faf7f0;
}

.version-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.version-item {
  border-left: 3px solid var(--line);
  padding: 10px 0 10px 12px;
}

.version-item.active {
  border-left-color: var(--gold);
}

.download-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
}

.quotation-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.quotation-control {
  align-self: start;
}

.mapping-grid {
  display: grid;
  gap: 8px;
}

.mapping-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.mapping-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px;
}

.product-library {
  max-height: 460px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px 90px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #faf7f0;
}

.product-row strong {
  display: block;
}

.quotation-result-panel {
  overflow: hidden;
}

.quotation-table-scroll {
  overflow: auto;
}

.quotation-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.quotation-table th,
.quotation-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.quotation-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: #faf7f0;
}

.quotation-table input,
.quotation-table select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px;
}

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

.presentation-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.presentation-control {
  align-self: start;
}

.rendering-list,
.template-list,
.slide-outline {
  display: grid;
  gap: 10px;
}

.rendering-item,
.template-card,
.slide-row {
  border: 1px solid var(--line);
  background: #faf7f0;
  padding: 12px;
}

.rendering-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rendering-thumb {
  width: 76px;
  aspect-ratio: 4 / 3;
  background: #ece3d6;
  object-fit: cover;
}

.template-card {
  display: grid;
  gap: 8px;
}

.template-card.active {
  outline: 2px solid var(--gold);
}

.template-swatch {
  display: flex;
  gap: 6px;
}

.template-swatch span {
  width: 28px;
  height: 18px;
  border: 1px solid var(--line);
}

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

.slide-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px;
}

.slide-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.slide-preview {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slide-preview.cover {
  color: #fff;
}

.slide-preview h3 {
  font-size: 24px;
  margin: 0;
}

.slide-preview p {
  color: inherit;
  line-height: 1.6;
  margin: 0;
}

.slide-preview img {
  max-width: 100%;
  max-height: 150px;
  object-fit: cover;
}

.content-editor {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.content-editor textarea,
.content-editor input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
}

.content-block {
  border: 1px solid var(--line);
  background: #faf7f0;
  padding: 12px;
}

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

.screen-card {
  padding: 16px;
  background: #191816;
  color: #fffaf0;
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.screen-card span {
  color: #d8c5a7;
}

.screen-card strong {
  font-size: 28px;
}

.summary-cell {
  padding: 14px;
  border: 1px solid var(--line);
  background: #faf7f0;
}

.summary-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-cell strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.mvp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  background: #fffdf8;
  border-left: 5px solid #3f6f78;
}

.mvp-hero h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.mvp-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mvp-step {
  min-height: 132px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(29, 28, 25, 0.05);
}

.mvp-step:hover {
  border-color: #3f6f78;
  transform: translateY(-1px);
}

.mvp-step strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #3f6f78;
  color: #fff;
}

.mvp-step span {
  font-weight: 700;
}

.mvp-step small {
  color: var(--muted);
  line-height: 1.5;
}

.app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  background:
    linear-gradient(90deg, var(--sidebar) 0 252px, transparent 252px),
    var(--bg);
}

.sidebar {
  padding: 28px 0 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 180px),
    linear-gradient(180deg, #101716, #141c1b);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  gap: 26px;
}

.brand,
.user-panel,
.role-panel {
  margin-inline: 24px;
}

.brand-mark {
  background: transparent;
  color: #ffffff;
  width: 28px;
  height: 36px;
  font-size: 28px;
  letter-spacing: 0.12em;
}

.brand strong {
  font-size: 30px;
  letter-spacing: 0.13em;
  line-height: 1;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.05em;
}

.nav {
  gap: 2px;
}

.nav::before {
  content: "MVP 工作流程";
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  padding: 8px 28px 10px;
}

.nav-item {
  position: relative;
  min-height: 48px;
  padding: 0 28px;
  color: rgba(255, 255, 255, 0.78);
  border-left: 3px solid transparent;
  font-size: 15px;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(90deg, rgba(0, 92, 97, 0.82), rgba(0, 92, 97, 0.48));
  border-left-color: #8cc6be;
  color: #ffffff;
}

.user-panel,
.role-panel {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.main {
  padding: 28px 32px 34px;
  background:
    radial-gradient(circle at 84% 8%, rgba(189, 143, 127, 0.1), transparent 240px),
    linear-gradient(180deg, var(--paper) 0, #f6f5f1 300px, #f4f3ef 100%);
}

.topbar {
  min-height: 58px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26, 31, 30, 0.08);
}

.top-actions {
  flex-shrink: 0;
  justify-content: flex-end;
}

.topbar h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.04em;
}

.primary-btn {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 92, 97, 0.18);
}

.primary-btn:hover {
  background: var(--teal-strong);
}

.ghost-btn {
  background: #fff;
  border: 1px solid #cfd6d2;
  color: #27403f;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.text-btn {
  color: var(--teal);
}

.chip-btn,
.status-pill,
.auth-pill,
.risk-pill {
  border-radius: 999px;
}

.panel,
.metric-card,
.asset-card,
.project-row {
  border-color: rgba(26, 31, 30, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 31, 29, 0.04);
}

.panel {
  padding: 20px;
}

.panel-title {
  min-height: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26, 31, 30, 0.08);
  margin-bottom: 18px;
}

.panel-title h2 {
  line-height: 1.25;
}

.studio-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.studio-overview h2 {
  margin-bottom: 6px;
  font-size: 27px;
}

.mvp-flow {
  align-items: center;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 20px;
}

.mvp-step {
  position: relative;
  min-height: 56px;
  padding: 0 18px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  border-bottom: 2px solid #c8ceca;
  background: transparent;
  box-shadow: none;
}

.mvp-step:hover {
  border-color: var(--teal);
  transform: none;
}

.mvp-step strong {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #adb8b3;
  color: #2b3937;
}

.mvp-step:first-child strong,
.mvp-step:first-child {
  border-color: var(--teal);
}

.mvp-step:first-child strong {
  background: var(--teal);
  color: #fff;
}

.mvp-step:nth-child(2):hover {
  border-color: var(--sage);
}

.mvp-step:nth-child(3):hover {
  border-color: var(--clay);
}

.mvp-step:nth-child(4):hover {
  border-color: var(--gold);
}

.mvp-step span {
  color: #243331;
  font-size: 14px;
}

.mvp-step small {
  display: block;
  grid-column: 2;
  font-size: 12px;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(236px, 0.82fr) minmax(380px, 1.38fr) minmax(262px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.insight-panel,
.scheme-panel,
.output-panel {
  min-height: 544px;
}

.client-profile {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.client-profile img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.client-profile strong,
.client-profile span {
  display: block;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-row span {
  padding: 6px 10px;
  background: #f0f2ef;
  border-radius: 999px;
  color: #364542;
  font-size: 12px;
}

.tag-row span:nth-child(2n) {
  background: #eee7df;
  color: #5c4c3f;
}

.tag-row span:nth-child(3n) {
  background: #e8efeb;
  color: #31534b;
}

.tag-row span:nth-child(4n) {
  background: #f1e6e1;
  color: #6a473e;
}

.insight-list h3 {
  margin: 12px 0 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 31, 30, 0.08);
}

.insight-list ul {
  margin: 0;
  padding-left: 18px;
  color: #46504d;
  line-height: 1.55;
  font-size: 13px;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.budget-row span {
  padding: 10px;
  background: linear-gradient(135deg, #f8f7f3, #eee8df);
  border: 1px solid rgba(26, 31, 30, 0.08);
  border-radius: 6px;
  color: #34413f;
  font-size: 13px;
}

.budget-row span + span {
  background: linear-gradient(135deg, #f8f7f3, #e8efeb);
}

.scheme-hero {
  width: 100%;
  aspect-ratio: 16 / 6.6;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(26, 31, 30, 0.1);
}

.scheme-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  margin-top: 16px;
}

.floorplan-mini,
.scheme-preview-grid > div {
  min-width: 0;
}

.floorplan-mini img,
.material-board {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(26, 31, 30, 0.1);
  border-radius: 8px;
  background: #f6f5f1;
}

.scheme-actions {
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 31, 30, 0.08);
}

.output-list {
  display: grid;
  gap: 0;
}

.output-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 16px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26, 31, 30, 0.08);
  color: inherit;
}

.output-item:hover {
  color: var(--teal);
}

.output-item strong,
.output-item em {
  display: block;
  font-style: normal;
  min-width: 0;
}

.output-item small {
  float: right;
  color: var(--muted);
  font-weight: 500;
}

.output-item em {
  grid-column: 2;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid #9aa4a0;
}

.status-dot.done {
  background: var(--sage);
  border-color: var(--sage);
}

.status-dot.active {
  background: var(--teal);
  border-color: var(--teal);
}

.output-item:nth-child(3) .status-dot.active,
.output-item:nth-child(3) .status-dot.done {
  background: var(--clay);
  border-color: var(--clay);
}

.output-item:nth-child(4) .status-dot.active,
.output-item:nth-child(4) .status-dot.done {
  background: var(--gold);
  border-color: var(--gold);
}

.studio-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.list-item,
.detail-cell,
.flow-card,
.solution-card,
.product-row,
.rendering-item,
.template-card,
.slide-row,
.summary-cell,
.content-block,
.room-edit-card {
  background: #f8f8f5;
  border-color: rgba(26, 31, 30, 0.09);
  border-radius: 8px;
}

.project-row {
  border-radius: 8px;
}

.project-row.active,
.solution-card.active,
.template-card.active {
  outline: 2px solid var(--teal);
}

.toolbar input,
.toolbar select,
.batchbar select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.field-label select,
#changeRequestInput,
.quotation-table input,
.quotation-table select,
.slide-row input,
.content-editor textarea,
.content-editor input {
  border-radius: 6px;
  background: #fff;
  border-color: #d5dad6;
}

.floorplan-canvas-wrap {
  background:
    linear-gradient(#e7ebe6 1px, transparent 1px),
    linear-gradient(90deg, #e7ebe6 1px, transparent 1px),
    #fbfbf8;
}

.room-shape.selected {
  fill: #e8f1ef;
  stroke: var(--teal);
}

.door-symbol,
.window-symbol {
  stroke: var(--teal);
}

.furniture-shape {
  fill: #c9b48d;
  stroke: #67553a;
}

.slide-preview {
  border-radius: 8px;
}

@media (max-width: 1280px) {
  .main {
    padding-inline: 26px;
  }

  .studio-grid {
    grid-template-columns: minmax(224px, 0.78fr) minmax(340px, 1.25fr) minmax(236px, 0.9fr);
  }

  .mvp-step {
    padding-inline: 12px;
  }

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

@media (max-width: 1040px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 620px;
  }

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

  .app-shell {
    grid-template-columns: 1fr;
    background: var(--bg);
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .workspace,
  .two-column,
  .studio-grid,
  .studio-bottom,
  .scheme-preview-grid,
  .floorplan-layout,
  .floorplan-layout.bottom,
  .render-workbench-grid,
  .quotation-layout,
  .presentation-layout,
  .screen-grid,
  .metric-grid,
  .mvp-flow {
    grid-template-columns: 1fr;
  }

  .studio-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .insight-panel,
  .scheme-panel,
  .output-panel {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .landing-links {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    display: block;
  }

  .landing-links a {
    display: none;
  }

  .landing-links .landing-showcase-cta {
    width: 100%;
    display: inline-flex;
    margin-bottom: 10px;
    min-height: 44px;
    font-size: 14px;
  }

  .landing-login-btn {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15.8vw, 72px);
  }

  .hero-copy,
  .hero-lede {
    max-width: min(320px, calc(100vw - 56px));
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-proof,
  .workflow-strip,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 560px;
  }

  .visual-orbit {
    inset: 0 -34% 18% -34%;
  }

  .workflow-node {
    width: 118px;
    min-height: 72px;
    padding: 12px;
  }

  .node-a { left: 18%; top: 15%; }
  .node-b { right: 20%; top: 12%; }
  .node-c { right: 18%; bottom: 26%; }
  .node-d { left: 20%; bottom: 23%; }
  .node-e { left: 39%; bottom: 5%; }

  .hero-console {
    left: 0;
    right: 0;
    width: auto;
  }

  .console-row {
    grid-template-columns: 92px 1fr 34px;
  }

  .main {
    padding: 20px;
  }

  .topbar,
  .detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar,
  .compact-toolbar,
  .form-grid,
  .render-result-grid,
  .room-editor,
  .detail-grid,
  .quotation-summary,
  .product-row {
    grid-template-columns: 1fr;
  }

  .file-table {
    font-size: 13px;
  }
}

/* DAIC workbench theme */
:root {
  --daic-bg: #05060A;
  --daic-panel: #0B0D14;
  --daic-panel-soft: rgba(255, 255, 255, 0.055);
  --daic-text: #F3EFE6;
  --daic-muted: rgba(243, 239, 230, 0.62);
  --daic-line: rgba(255, 255, 255, 0.12);
  --daic-cyan: #2EF4FF;
  --daic-gold: #D8B66A;
  --daic-blue: #4D7CFF;
  --daic-danger: #FF5F7A;
}

body.app-active {
  color: var(--daic-text);
  background: var(--daic-bg);
}

body.app-active .app-shell {
  --bg: var(--daic-bg);
  --panel: var(--daic-panel);
  --panel-strong: #111521;
  --ink: var(--daic-text);
  --muted: var(--daic-muted);
  --line: var(--daic-line);
  --gold: var(--daic-gold);
  --teal: var(--daic-cyan);
  --teal-strong: #19c8d1;
  --paper: var(--daic-bg);
  --sidebar: #07080d;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(46, 244, 255, 0.1), transparent 270px),
    radial-gradient(circle at 16% 12%, rgba(216, 182, 106, 0.09), transparent 240px),
    linear-gradient(135deg, #05060A 0%, #070914 48%, #05060A 100%);
}

body.app-active .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 0 22px;
  background:
    linear-gradient(180deg, rgba(46, 244, 255, 0.07), transparent 220px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    #07080d;
  border-right: 1px solid var(--daic-line);
}

body.app-active .brand,
body.app-active .user-panel,
body.app-active .role-panel {
  margin-inline: 20px;
}

body.app-active .brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(46, 244, 255, 0.42);
  border-radius: 10px;
  color: var(--daic-cyan);
  background: rgba(46, 244, 255, 0.08);
  box-shadow: 0 0 24px rgba(46, 244, 255, 0.12);
  font-size: 22px;
  letter-spacing: 0;
}

body.app-active .brand strong {
  color: var(--daic-text);
  font-size: 26px;
  letter-spacing: 0.1em;
}

body.app-active .brand small,
body.app-active .muted,
body.app-active .meta,
body.app-active .panel-title span,
body.app-active .mvp-step small {
  color: var(--daic-muted);
}

body.app-active .nav::before {
  content: "AI 设计工作流";
  padding: 8px 24px 12px;
  color: rgba(243, 239, 230, 0.44);
}

body.app-active .nav-item {
  min-height: 46px;
  padding: 0 24px;
  color: rgba(243, 239, 230, 0.72);
  border-left: 3px solid transparent;
  background: transparent;
}

body.app-active .nav-item.active,
body.app-active .nav-item:hover {
  color: var(--daic-text);
  border-left-color: var(--daic-cyan);
  background:
    linear-gradient(90deg, rgba(46, 244, 255, 0.18), rgba(46, 244, 255, 0.035) 72%, transparent);
}

body.app-active .user-panel,
body.app-active .role-panel {
  color: var(--daic-text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--daic-line);
  border-radius: 12px;
}

body.app-active .role-panel label,
body.app-active .role-panel p,
body.app-active .user-panel span {
  color: var(--daic-muted);
}

body.app-active .main {
  min-width: 0;
  padding: 24px clamp(18px, 2.5vw, 34px) 36px;
  background:
    radial-gradient(circle at 95% 4%, rgba(122, 92, 255, 0.16), transparent 280px),
    radial-gradient(circle at 60% 0%, rgba(46, 244, 255, 0.065), transparent 300px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 260px);
}

body.app-active .topbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  margin-bottom: 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--daic-line);
}

.daic-topbar-heading {
  min-width: 0;
}

body.app-active .topbar h1 {
  margin: 2px 0 4px;
  color: var(--daic-text);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.15;
}

.daic-page-subtitle {
  margin: 0;
  color: var(--daic-muted);
  font-size: 13px;
  line-height: 1.5;
}

.daic-topbar-center {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(210px, 1fr);
  gap: 10px;
  min-width: 0;
}

.daic-project-chip,
.daic-global-search {
  min-width: 0;
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--daic-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--daic-text);
}

.daic-project-chip {
  text-align: left;
  cursor: pointer;
}

.daic-project-chip:hover {
  border-color: rgba(46, 244, 255, 0.55);
  box-shadow: 0 0 24px rgba(46, 244, 255, 0.08);
}

.daic-project-chip span,
.daic-global-search span {
  color: var(--daic-muted);
  font-size: 11px;
}

.daic-project-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.daic-global-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--daic-text);
  background: transparent;
  border: 0;
  outline: 0;
}

body.app-active .top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.daic-top-link {
  text-decoration: none;
}

.daic-showcase-link {
  border-color: rgba(216, 182, 106, 0.45) !important;
  color: var(--daic-gold) !important;
}

.daic-top-user {
  min-height: 44px;
  display: grid;
  align-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(216, 182, 106, 0.24);
  border-radius: 10px;
  background: rgba(216, 182, 106, 0.07);
}

.daic-top-user span {
  color: var(--daic-gold);
  font-size: 11px;
}

.daic-top-user strong {
  color: var(--daic-text);
  font-size: 13px;
}

body.app-active .panel,
body.app-active .metric-card,
body.app-active .asset-card,
body.app-active .project-row,
body.app-active .list-item,
body.app-active .detail-cell,
body.app-active .flow-card,
body.app-active .solution-card,
body.app-active .product-row,
body.app-active .rendering-item,
body.app-active .template-card,
body.app-active .slide-row,
body.app-active .summary-cell,
body.app-active .content-block,
body.app-active .room-edit-card {
  color: var(--daic-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.035)),
    var(--daic-panel);
  border: 1px solid var(--daic-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

body.app-active .panel-title {
  border-bottom: 1px solid var(--daic-line);
}

body.app-active .panel-title h2,
body.app-active .panel-title h3 {
  color: var(--daic-text);
}

body.app-active .studio-overview {
  padding: 24px;
  border: 1px solid rgba(46, 244, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 10%, rgba(46, 244, 255, 0.13), transparent 220px),
    radial-gradient(circle at 12% 0%, rgba(216, 182, 106, 0.08), transparent 220px),
    rgba(255, 255, 255, 0.04);
}

body.app-active .studio-overview h2 {
  color: var(--daic-text);
}

body.app-active .mvp-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.app-active .mvp-step {
  min-height: 112px;
  padding: 16px;
  grid-template-columns: 36px minmax(0, 1fr);
  border: 1px solid var(--daic-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

body.app-active .mvp-step:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 244, 255, 0.5);
  box-shadow: 0 0 26px rgba(46, 244, 255, 0.08);
}

body.app-active .mvp-step strong {
  color: #031114;
  background: var(--daic-cyan);
  border: 0;
  box-shadow: 0 0 20px rgba(46, 244, 255, 0.2);
}

body.app-active .mvp-step span {
  color: var(--daic-text);
}

body.app-active .mvp-step:nth-child(4) strong,
body.app-active .mvp-step:nth-child(5) strong {
  background: var(--daic-gold);
}

.daic-dashboard-metrics {
  margin: 0 0 18px;
}

body.app-active .metric-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
}

body.app-active .metric-card span,
body.app-active .metric-card small {
  color: var(--daic-muted);
}

body.app-active .metric-card strong {
  color: var(--daic-text);
  font-size: 30px;
}

.daic-quick-actions {
  margin-bottom: 18px;
}

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

body.app-active .studio-grid {
  grid-template-columns: minmax(250px, 0.85fr) minmax(360px, 1.25fr) minmax(280px, 0.9fr);
}

body.app-active .tag-row span {
  color: var(--daic-text);
  background: rgba(46, 244, 255, 0.075);
  border: 1px solid rgba(46, 244, 255, 0.18);
}

body.app-active .tag-row span:nth-child(2n) {
  background: rgba(216, 182, 106, 0.09);
  border-color: rgba(216, 182, 106, 0.22);
}

body.app-active .insight-list h3,
body.app-active .insight-list ul,
body.app-active .output-item,
body.app-active .output-item em,
body.app-active .output-item small {
  color: var(--daic-muted);
}

body.app-active .budget-row span {
  color: var(--daic-text);
  background: rgba(216, 182, 106, 0.08);
  border-color: rgba(216, 182, 106, 0.2);
}

body.app-active .scheme-hero,
body.app-active .floorplan-mini img,
body.app-active .material-board {
  border-color: var(--daic-line);
  background: #111521;
}

body.app-active .output-item {
  border-bottom-color: var(--daic-line);
}

body.app-active .output-item:hover {
  color: var(--daic-cyan);
}

body.app-active .status-dot.done {
  background: var(--daic-gold);
  border-color: var(--daic-gold);
}

body.app-active .status-dot.active {
  background: var(--daic-cyan);
  border-color: var(--daic-cyan);
}

body.app-active .primary-btn,
body.app-active .ghost-btn,
body.app-active .text-btn,
body.app-active .chip-btn,
body.app-active .nav-item,
body.app-active .project-row,
body.app-active .output-item,
body.app-active .mvp-step {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

body.app-active .primary-btn {
  color: #031114;
  background: linear-gradient(135deg, var(--daic-cyan), #98fbff);
  border: 1px solid rgba(46, 244, 255, 0.8);
  box-shadow: 0 10px 24px rgba(46, 244, 255, 0.15);
}

body.app-active .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(46, 244, 255, 0.2);
}

body.app-active .ghost-btn,
body.app-active .chip-btn {
  color: var(--daic-text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--daic-line);
  box-shadow: none;
}

body.app-active .ghost-btn:hover,
body.app-active .chip-btn:hover,
body.app-active .chip-btn.active {
  color: var(--daic-text);
  border-color: rgba(216, 182, 106, 0.5);
  background: rgba(216, 182, 106, 0.09);
}

body.app-active .text-btn {
  color: var(--daic-cyan);
}

body.app-active input,
body.app-active select,
body.app-active textarea,
body.app-active .toolbar input,
body.app-active .toolbar select,
body.app-active .batchbar select,
body.app-active .form-grid input,
body.app-active .form-grid select,
body.app-active .form-grid textarea,
body.app-active .field-label select,
body.app-active #changeRequestInput,
body.app-active .quotation-table input,
body.app-active .quotation-table select,
body.app-active .slide-row input,
body.app-active .content-editor textarea,
body.app-active .content-editor input {
  color: var(--daic-text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--daic-line);
  border-radius: 8px;
}

body.app-active input::placeholder,
body.app-active textarea::placeholder {
  color: rgba(243, 239, 230, 0.38);
}

body.app-active select option {
  color: #111521;
}

body.app-active .toolbar,
body.app-active .batchbar {
  gap: 10px;
}

body.app-active .status-pill,
body.app-active .risk-pill,
body.app-active .auth-pill {
  color: var(--daic-text);
  background: rgba(46, 244, 255, 0.08);
  border: 1px solid rgba(46, 244, 255, 0.2);
}

body.app-active .flow-card,
body.app-active .solution-card,
body.app-active .room-edit-card,
body.app-active .prompt-preview,
body.app-active .render-card {
  color: var(--daic-text);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--daic-line);
}

body.app-active .flow-card h3,
body.app-active .solution-card strong,
body.app-active .prompt-preview strong,
body.app-active .render-card strong {
  color: var(--daic-text);
}

body.app-active .drop-zone {
  cursor: pointer;
  color: var(--daic-muted);
  background:
    radial-gradient(circle at 50% 0%, rgba(46, 244, 255, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(216, 182, 106, 0.42);
  border-radius: 10px;
}

body.app-active .drop-zone:hover {
  color: var(--daic-text);
  border-color: rgba(46, 244, 255, 0.62);
  background:
    radial-gradient(circle at 50% 0%, rgba(46, 244, 255, 0.18), transparent 48%),
    rgba(46, 244, 255, 0.055);
}

body.app-active .drop-zone strong {
  color: var(--daic-text);
}

body.app-active .drop-zone span {
  max-width: 260px;
  color: var(--daic-muted);
  line-height: 1.55;
}

body.app-active .daic-field-action {
  width: 100%;
  margin: -4px 0 12px;
}

body.app-active .empty-state,
body.app-active .compact-empty {
  color: var(--daic-muted);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
}

body.app-active .render-source-preview {
  color: var(--daic-muted);
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.04);
  border-color: var(--daic-line);
  border-radius: 10px;
}

body.app-active .render-source-preview img {
  background: #0b0d14;
}

body.app-active .render-result-grid {
  align-items: stretch;
}

body.app-active .render-card img {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.app-active .prompt-preview {
  max-height: none;
}

body.app-active .floorplan-canvas-wrap,
body.app-active .slide-preview,
body.app-active .screen-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #080b12;
  border-color: var(--daic-line);
}

body.app-active .room-shape.selected {
  fill: rgba(46, 244, 255, 0.1);
  stroke: var(--daic-cyan);
}

body.app-active .door-symbol,
body.app-active .window-symbol {
  stroke: var(--daic-cyan);
}

body.app-active .furniture-shape {
  fill: rgba(216, 182, 106, 0.7);
  stroke: var(--daic-gold);
}

body.app-active table,
body.app-active .quotation-table {
  color: var(--daic-text);
}

body.app-active th {
  color: var(--daic-muted);
  background: rgba(255, 255, 255, 0.045);
}

body.app-active td {
  border-color: var(--daic-line);
}

@media (max-width: 1280px) {
  body.app-active .topbar {
    grid-template-columns: 1fr;
  }

  body.app-active .top-actions {
    justify-content: flex-start;
  }

  body.app-active .mvp-flow,
  .daic-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-active .studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  body.app-active .app-shell {
    grid-template-columns: 1fr;
  }

  body.app-active .sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  body.app-active .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 18px;
  }

  body.app-active .nav::before {
    grid-column: 1 / -1;
    padding-inline: 0;
  }

  body.app-active .nav-item {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--daic-line);
    border-radius: 10px;
  }
}

@media (max-width: 720px) {
  body.app-active .main {
    padding: 16px;
  }

  body.app-active .topbar {
    gap: 12px;
  }

  .daic-topbar-center,
  .daic-action-grid,
  body.app-active .mvp-flow,
  body.app-active .metric-grid {
    grid-template-columns: 1fr;
  }

  body.app-active .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body.app-active .top-actions > *,
  body.app-active .top-actions .ghost-btn,
  body.app-active .top-actions .primary-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .daic-top-user {
    grid-column: 1 / -1;
  }

  body.app-active .nav {
    grid-template-columns: 1fr;
  }

  body.app-active .studio-overview,
  body.app-active .panel {
    padding: 16px;
  }
}

/* DAIC MVP usable panels */
.daic-mvp-panel {
  margin-top: 18px;
}

.daic-mvp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.daic-mvp-card,
.daic-mvp-content-output section,
.daic-mvp-slide-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--daic-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.daic-mvp-card.active {
  border-color: rgba(46, 244, 255, 0.58);
  box-shadow: 0 0 26px rgba(46, 244, 255, 0.1);
}

.daic-mvp-card span,
.daic-mvp-card p,
.daic-mvp-content-output p,
.daic-mvp-content-output li {
  color: var(--daic-muted);
  line-height: 1.6;
}

.daic-mvp-card h3,
.daic-mvp-content-output h3,
.daic-mvp-slide-grid strong {
  color: var(--daic-text);
}

.daic-mvp-table-wrap {
  width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--daic-line);
  border-radius: 12px;
}

.daic-mvp-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.daic-mvp-table th,
.daic-mvp-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--daic-text);
  text-align: left;
}

.daic-mvp-table th {
  color: var(--daic-muted);
}

.daic-mvp-table input {
  width: 92px;
}

.daic-mvp-slide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.daic-mvp-slide-grid article {
  min-height: 92px;
}

.daic-mvp-slide-grid span {
  display: block;
  color: var(--daic-cyan);
  margin-bottom: 8px;
}

.daic-mvp-content-output {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.daic-mvp-content-output pre {
  margin: 0;
  color: var(--daic-text);
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.7;
}

.daic-efficiency-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(216, 182, 106, 0.24);
  border-radius: 12px;
  background: rgba(216, 182, 106, 0.06);
}

.daic-efficiency-box strong {
  color: var(--daic-text);
}

.daic-efficiency-box span {
  color: var(--daic-muted);
}

/* DAIC v2 early-stage proposal workstation */
.daic-v2 .nav::before {
  content: "前期方案流程";
}

.daic-v2-status-grid {
  margin: 18px 0;
}

.daic-status-card {
  width: 100%;
  min-height: 108px;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.daic-status-card:hover,
.daic-status-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(46, 244, 255, 0.42);
  background: rgba(46, 244, 255, 0.06);
  outline: none;
}

.daic-status-card strong.is-stale {
  color: var(--daic-gold);
}

.daic-toast {
  position: fixed;
  z-index: 2000;
  right: 24px;
  bottom: 24px;
  width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(46, 244, 255, 0.35);
  border-radius: 10px;
  color: var(--daic-text);
  background: rgba(11, 13, 20, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.daic-toast[data-type="error"] {
  border-color: rgba(255, 95, 122, 0.48);
}

.daic-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.daic-v2-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.daic-v2-case-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--daic-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.daic-v2-case-card span {
  color: var(--daic-cyan);
  font-size: 12px;
}

.daic-v2-case-card h3 {
  color: var(--daic-text);
  margin: 0;
  font-size: 16px;
}

.daic-v2-case-card p,
.daic-v2-case-card small {
  color: var(--daic-muted);
  line-height: 1.55;
}

.daic-v2-case-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(46, 244, 255, 0.18);
  border-radius: 12px;
  background: rgba(46, 244, 255, 0.045);
}

.daic-v2-case-strip strong {
  display: block;
  color: var(--daic-text);
  margin-bottom: 4px;
}

.daic-v2-case-strip span {
  color: var(--daic-muted);
}

.daic-v2-client-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.daic-v2-upload-preview {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--daic-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  place-items: center;
  position: relative;
}

.daic-v2-upload-preview img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #080b12;
}

.daic-v2-upload-preview > span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--daic-text);
  background: rgba(5, 6, 10, 0.78);
  border: 1px solid var(--daic-line);
}

.daic-v2-output {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.daic-v2-output section,
.daic-v2-ppt-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--daic-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.daic-v2-output h3,
.daic-v2-ppt-grid strong {
  margin: 0 0 8px;
  color: var(--daic-text);
}

.daic-v2-output p,
.daic-v2-ppt-grid p {
  margin: 0;
  color: var(--daic-muted);
  line-height: 1.65;
}

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

.daic-v2-ppt-grid span {
  display: block;
  color: var(--daic-cyan);
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .daic-mvp-card-grid,
  .daic-mvp-slide-grid,
  .daic-efficiency-box,
  .daic-v2-case-grid,
  .daic-v2-case-strip,
  .daic-v2-client-grid,
  .daic-v2-ppt-grid {
    grid-template-columns: 1fr;
  }

  .daic-toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daic-status-card,
  .daic-toast {
    transition: none;
  }
}
