:root {
  --bg: #090c13;
  --surface: #101521;
  --surface-2: #151b29;
  --surface-3: #1a2232;
  --line: #252e40;
  --line-soft: #1d2534;
  --text: #f2f5f8;
  --muted: #909aae;
  --teal: #22c8bb;
  --teal-soft: rgba(34, 200, 187, 0.12);
  --amber: #f2a93b;
  --danger: #ff6b78;
  --sidebar: 188px;
  --topbar: 66px;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { min-width: 1180px; min-height: 720px; margin: 0; background: var(--bg); }
body { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: var(--topbar) calc(100vh - var(--topbar));
  min-height: 100vh;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
  background: #0d111b;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.brand {
  width: 248px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  color: #061918;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 10%, #7ff3e9 100%);
}
.brand strong { display: block; font-size:19px; letter-spacing: .2px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size:12px; }

.team-switcher, .queue-button, .icon-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  cursor: pointer;
}
.team-switcher { padding: 10px 13px; color: #cfd5de; }
.team-switcher span { margin-left: 13px; color: var(--muted); }
.global-search {
  display: flex;
  align-items: center;
  width: min(390px, 29vw);
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0e17;
}
.global-search span { padding-left: 13px; color: var(--muted); font-size:24px; }
.global-search input {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sync-status { color: #bec6d3; font-size:15px; }
.sync-status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.queue-button { padding: 8px 10px; color: #cbd2dd; }
.queue-button b { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 7px; border-radius: 5px; color: #06201d; background: var(--teal); }
.icon-button { position: relative; width: 37px; height: 37px; color: #cfd5df; }
.icon-button em { position: absolute; top: -6px; right: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size:12px; font-style: normal; background: #e84f5c; }
.avatar-stack { display: flex; align-items: center; padding-left: 7px; }
.avatar-stack span, .avatar-stack b, .avatar {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-left: -7px;
  border: 2px solid #0d111b;
  border-radius: 50%;
  color: #e6faf8;
  font-size:13px;
  background: #294f50;
}
.avatar-stack span:nth-child(2), .avatar.blue { background: #354b75; }
.avatar-stack span:nth-child(3), .avatar.pink { background: #74445c; }
.avatar-stack b { background: #252c3a; }

.sidebar {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  padding: 17px 8px 14px;
  border-right: 1px solid var(--line-soft);
  background: #0d111b;
}
.sidebar nav { display: grid; gap: 5px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #c9d0db;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.nav-item span { width: 19px; color: #aeb8c9; font-size:19px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--teal); border-color: rgba(34,200,187,.08); background: var(--teal-soft); }
.nav-item.active span { color: var(--teal); }
.storage-card { margin-top: auto; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.storage-card div { display: flex; justify-content: space-between; font-size:14px; }
.storage-card b { color: var(--teal); }
.storage-card progress { width: 100%; height: 5px; margin: 10px 0 6px; accent-color: var(--teal); }
.storage-card small { color: var(--muted); }

.main-content {
  grid-row: 2;
  min-width: 0;
  overflow: auto;
  outline: none;
  background:
    radial-gradient(circle at 75% -20%, rgba(28, 133, 128, .08), transparent 35%),
    var(--bg);
}
.page { min-height: 100%; padding: 28px; }
.page.compact { padding: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size:27px; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size:15px; }
.head-actions { display: flex; gap: 9px; }

.btn {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d8dee7;
  background: var(--surface-2);
  cursor: pointer;
}
.btn:hover { border-color: #3c485f; background: var(--surface-3); }
.btn.primary { border-color: var(--teal); color: #04211e; font-weight: 700; background: var(--teal); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffc5ca; border-color: rgba(255,107,120,.3); background: rgba(255,107,120,.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.metric-card, .panel, .project-card, .asset-card, .model-card, .task-row {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.metric-card { padding: 15px; }
.metric-card span { color: var(--muted); font-size:14px; }
.metric-card strong { display: block; margin-top: 7px; font-size:26px; }
.metric-card small { color: #6f7b90; }
.metric-card strong.teal { color: var(--teal); }
.metric-card strong.amber { color: var(--amber); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 19px 0 12px; }
.section-head h2 { margin: 0; font-size:18px; }
.section-head span, .section-head button { color: var(--muted); font-size:14px; }
.filter-row { display: flex; gap: 7px; }
.chip { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size:13px; }
.chip.active, .chip.teal { color: var(--teal); border-color: rgba(34,200,187,.35); background: var(--teal-soft); }
.chip.amber { color: var(--amber); border-color: rgba(242,169,59,.35); background: rgba(242,169,59,.09); }
.chip.danger { color: #ff9aa4; border-color: rgba(255,107,120,.35); background: rgba(255,107,120,.09); }
.chip.gray { color: #a5afbf; }

.project-grid { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 13px; }
.project-card { padding: 11px; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.project-card:hover { transform: translateY(-2px); border-color: rgba(34,200,187,.55); }
.project-thumb { display: grid; place-items: center; height: 132px; border-radius: 8px; font-size:63px; background: linear-gradient(145deg, #ecf7fa, #accbdb); }
.project-card:nth-child(2) .project-thumb { background: linear-gradient(145deg, #fff8df, #b9d39b); }
.project-card:nth-child(3) .project-thumb { background: linear-gradient(145deg, #fff5ed, #d8bda7); }
.project-card:nth-child(4) .project-thumb { background: linear-gradient(145deg, #e9f4ff, #9fc3e8); }
.project-card h3 { margin: 12px 0 8px; font-size:16px; }
.card-line { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size:13px; }
.progress-line { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; margin: 10px 0; }
.progress-line progress { width: 100%; height: 6px; accent-color: var(--teal); }
.progress-line small { color: #c6cdd8; }
.mini-avatars { display: flex; }
.mini-avatars span { display: grid; place-items: center; width: 24px; height: 24px; margin-right: -5px; border: 2px solid var(--surface); border-radius: 50%; font-size:12px; background: #35575a; }

.activity-layout { display: grid; grid-template-columns: 1fr 320px; gap: 14px; margin-top: 19px; }
.panel { padding: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.panel-title h2, .panel-title h3 { margin: 0; font-size:17px; }
.activity-list { display: grid; gap: 11px; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--line-soft); }
.activity-item:last-child { padding-bottom: 0; border-bottom: 0; }
.activity-item p { margin: 0 0 3px; font-size:14px; }
.activity-item small { color: var(--muted); }
.activity-item time { color: #69758a; font-size:12px; }

.project-detail { display: grid; grid-template-rows: auto auto 1fr; min-height: 100%; }
.project-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 14px; border-bottom: 1px solid var(--line-soft); }
.project-bar h1 { margin: 0; font-size:22px; }
.project-bar p { margin: 5px 0 0; color: var(--muted); font-size:13px; }
.tabs { display: flex; gap: 6px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(16,21,33,.7); }
.tab { padding: 13px 14px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.project-body { padding: 20px 24px 28px; }
.folder-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px; }
.folder { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.folder:hover { border-color: rgba(34,200,187,.4); }
.folder i { font-style: normal; font-size:27px; }
.folder strong { display: block; margin-top: 7px; font-size:14px; }
.folder small { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.image-tile { position: relative; overflow: hidden; min-height: 150px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, #dceff4, #91b3c5); cursor: pointer; }
.image-tile::before { content: attr(data-icon); display: grid; place-items: center; height: 115px; color: #24394a; font-size:48px; }
.image-tile footer { position: absolute; right: 0; bottom: 0; left: 0; padding: 8px; color: #dfe6ed; font-size:12px; background: rgba(7,10,16,.86); }
.actual-file { display: flex; align-items: stretch; justify-content: stretch; background: #121a27; }
.actual-file::before { display: none; }
.asset-image { width: 100%; height: 150px; object-fit: cover; background: #eef3f6; }
.asset-file-icon { display: grid; place-items: center; width: 100%; height: 150px; color: #17373a; font-weight: 800; font-size:24px; background: linear-gradient(145deg, #dff5f3, #8fc6c2); }
.actual-file footer { display: flex; align-items: center; gap: 8px; }
.actual-file footer span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actual-file footer a { color: var(--teal); text-decoration: none; }
.dropzone { display: grid; place-items: center; min-height: 150px; border: 1px dashed #3e4a5e; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.015); cursor: pointer; text-align: center; }
.dropzone:hover { border-color: var(--teal); color: var(--teal); }
.dropzone input { display: none; }

.generator-layout { display: grid; grid-template-columns: 330px minmax(570px, 1fr) 300px; height: calc(100vh - var(--topbar)); }
.generator-column { min-width: 0; overflow: auto; border-right: 1px solid var(--line); }
.generator-column:last-child { border-right: 0; }
.column-head { position: sticky; top: 0; z-index: 2; padding: 17px 18px; border-bottom: 1px solid var(--line); background: rgba(9,12,19,.96); }
.column-head h2 { margin: 0; font-size:19px; }
.chat-body { display: flex; flex-direction: column; min-height: calc(100vh - var(--topbar) - 59px); padding: 14px; }
.message { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.message.user { margin-left: 28px; background: #13232a; }
.message-head { display: flex; justify-content: space-between; margin-bottom: 9px; font-size:13px; }
.message-head time { color: #667388; }
.message p { margin: 7px 0 0; color: #d2d8e2; font-size:14px; line-height: 1.65; white-space: pre-wrap; }
.file-pill { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 8px; background: #1b2332; }
.file-pill b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #7756ba; }
.file-pill span { font-size:13px; }
.file-pill small { display: block; margin-top: 2px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-compose { margin-top: auto; padding-top: 12px; }
.chat-compose textarea { width: 100%; min-height: 78px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: #0b0f18; }
.chat-compose textarea:focus { border-color: rgba(34,200,187,.6); }
.running-note { margin-bottom: 8px; padding: 8px 10px; border: 1px solid rgba(34,200,187,.28); border-radius: 8px; color: var(--teal); font-size:13px; background: var(--teal-soft); }
.compose-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.upload-button { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); font-size:14px; }
.upload-button input { display: none; }

.planner { padding: 16px 18px 90px; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 18px; }
.step { position: relative; padding-top: 27px; color: #69758a; font-size:12px; text-align: center; }
.step::before { content: attr(data-step); position: absolute; top: 0; left: 50%; display: grid; place-items: center; width: 21px; height: 21px; transform: translateX(-50%); border: 1px solid #455066; border-radius: 50%; background: var(--surface); }
.step::after { content: ""; position: absolute; top: 10px; left: calc(50% + 15px); width: calc(100% - 30px); height: 1px; background: #364156; }
.step:last-child::after { display: none; }
.step.done, .step.active { color: #d7dee8; }
.step.done::before { content: "✓"; color: var(--teal); border-color: var(--teal); }
.step.active::before { color: #03211e; border-color: var(--teal); background: var(--teal); }
.planner-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 16px 0; }

.settings-stack { display: grid; gap: 10px; padding: 12px; }
.setting-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.setting-card header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size:14px; }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.tiny-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 5px; font-size:24px; background: linear-gradient(145deg, #e7f6f8, #aac5d6); }
.model-choice { display: flex; align-items: center; justify-content: space-between; }
.model-portrait { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 8px; font-size:45px; background: linear-gradient(145deg, #e7f4f8, #b9ccdb); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.field { display: flex; align-items: center; justify-content: space-between; padding: 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size:12px; background: #0c111b; }
.settings-stack > .btn { width: 100%; }

.asset-grid, .model-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.asset-card, .model-card { overflow: hidden; cursor: pointer; }
.asset-preview { display: grid; place-items: center; height: 145px; color: #29465a; font-size:56px; background: linear-gradient(145deg, #eef8f9, #aac6d6); }
.asset-card:nth-child(2n) .asset-preview { background: linear-gradient(145deg, #f7f2e9, #cebfa7); }
.asset-card section, .model-card section { padding: 11px; }
.asset-card h3, .model-card h3 { margin: 0 0 6px; font-size:14px; }
.asset-card p, .model-card p { margin: 0; color: var(--muted); font-size:12px; }
.model-preview { position: relative; display: grid; place-items: center; height: 190px; font-size:78px; background: linear-gradient(145deg, #e7f4f7, #b9cada); }
.license { position: absolute; top: 9px; right: 9px; padding: 4px 7px; border-radius: 99px; color: #0c2825; font-size:12px; background: #7fe3d8; }

.collector-grid { display: grid; grid-template-columns: 380px 1fr; gap: 14px; }
.collector-form { display: grid; gap: 10px; }
.collector-form label { color: var(--muted); font-size:13px; }
.collector-form input, .collector-form select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: #0b1019; }
.collector-actions { display: flex; gap: 8px; }
.collector-actions .btn { flex: 1; }
.collector-footnote { margin: 12px 0 0; color: #778090; font-size:14px; line-height: 1.65; }
.collector-session-live { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 13px 16px; border: 1px solid #bfe9d8; border-radius: 13px; background: #f2fbf7; }
.collector-session-live i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #25a66f; box-shadow: 0 0 0 5px rgba(37,166,111,.12); animation: collector-pulse 1.8s ease-in-out infinite; }
.collector-session-live div { display: grid; gap: 3px; }
.collector-session-live b { color: #163d30; font-size:15px; }
.collector-session-live span { color: #507266; font-size:14px; }
@keyframes collector-pulse { 50% { box-shadow: 0 0 0 9px rgba(37,166,111,0); } }
.download-inbox { min-height: 470px; }
.download-inbox .panel-title { align-items: flex-start; }
.download-inbox .panel-title small { display: block; max-width: 520px; margin-top: 5px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.download-list { display: grid; gap: 8px; max-height: 390px; overflow: auto; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #0c111a; }
.download-row div { min-width: 0; }
.download-row b { display: block; overflow: hidden; font-size:13px; text-overflow: ellipsis; white-space: nowrap; }
.download-row small { display: block; margin-top: 4px; color: var(--muted); font-size:12px; }
.download-row .btn { flex: 0 0 auto; padding: 7px 10px; font-size:12px; }
.job-error { color: #ff9aa4; }
.browser-mock { min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #eef1f4; }
.browser-bar { display: flex; align-items: center; gap: 9px; padding: 9px; color: #707989; background: #dfe4e9; }
.browser-bar span { color: #9aa3af; }
.browser-bar div { flex: 1; padding: 7px 10px; border-radius: 7px; color: #596476; background: white; font-size:12px; }
.browser-content { display: grid; place-items: center; height: 420px; color: #667385; text-align: center; }
.browser-content b { display: block; margin-bottom: 8px; color: #374355; font-size:20px; }

.task-list { display: grid; gap: 9px; }
.task-row { display: grid; grid-template-columns: 55px 1.4fr 1fr 110px 90px; gap: 13px; align-items: center; padding: 11px; }
.task-thumb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 7px; color: #27465c; font-size:27px; background: linear-gradient(145deg, #e9f7f9, #a8c8dc); }
.task-row h3 { margin: 0 0 5px; font-size:14px; }
.task-row p, .task-row small { margin: 0; color: var(--muted); font-size:12px; }
.task-progress progress { width: 100%; accent-color: var(--teal); }

.empty-state { display: grid; place-items: center; min-height: 480px; color: var(--muted); text-align: center; }
.empty-state b { display: block; margin-bottom: 8px; color: #dce2ea; font-size:20px; }
.empty-icon { margin-bottom: 12px; color: var(--teal); font-size:46px; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 20; padding: 11px 15px; border: 1px solid rgba(34,200,187,.3); border-radius: 9px; color: #dffaf7; background: #12302f; box-shadow: 0 18px 50px rgba(0,0,0,.35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { color: #ffe5e8; border-color: rgba(255,107,120,.45); background: #432027; }
.muted-copy { color: var(--muted); font-size:14px; line-height: 1.65; }
.data-note { margin-top: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: #cbd4df; font-size:13px; background: #0c111a; }
.category-row { flex-wrap: wrap; margin: 0 0 14px; }
.empty-inline { grid-column: 1 / -1; padding: 50px 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.upgrade-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.upgrade-list > div { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #0c111a; }
.upgrade-list b { color: var(--teal); }
.upgrade-list p { margin: 8px 0 0; color: var(--muted); font-size:14px; line-height: 1.65; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 30px; background: rgba(2,4,8,.78); }
.modal { width: min(620px, 95vw); padding: 19px; border: 1px solid #344057; border-radius: 13px; background: #111724; box-shadow: 0 30px 90px #000; }
.modal header { display: flex; justify-content: space-between; align-items: center; }
.modal h2 { margin: 0; font-size:19px; }
.modal-close { border: 0; color: var(--muted); background: none; cursor: pointer; font-size:22px; }
.modal form { display: grid; gap: 12px; margin-top: 16px; }
.modal label { display: grid; gap: 6px; color: var(--muted); font-size:13px; }
.modal input, .modal textarea, .modal select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: #0a0f18; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

@media (max-width: 1380px) {
  :root { --sidebar: 174px; }
  .generator-layout { grid-template-columns: 300px minmax(520px, 1fr) 278px; }
  .asset-grid, .model-grid { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Marvis-inspired light three-column workspace · v0.5 */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f4;
  --line: #e7e8ec;
  --line-soft: #eff0f3;
  --text: #202124;
  --muted: #7a7f89;
  --teal: #5d63e6;
  --teal-soft: rgba(93, 99, 230, .09);
  --amber: #e99a38;
  --danger: #e35762;
  --sidebar: 210px;
  --right-rail: 310px;
  --topbar: 68px;
  color-scheme: light;
}
html, body { min-width: 1200px; color: var(--text); background: var(--bg); }
.app-shell { grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--right-rail); }
.topbar { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: 0 2px 14px rgba(35,38,45,.04); backdrop-filter: blur(12px); }
.brand { width: 238px; }
.brand-mark { color: #fff; background: linear-gradient(145deg,#7c72f2,#4859d6); box-shadow: 0 8px 20px rgba(84,91,218,.24); }
.brand small { color: #969aa4; }
.team-switcher,.queue-button,.icon-button { color: #555a64; border-color: var(--line); background: #fff; }
.global-search { border-color: var(--line); background: #f6f7f9; }
.global-search input { color: var(--text); }
.top-actions { color: var(--text); }
.sync-status { color: #636873; }
.sync-status i { box-shadow: 0 0 0 4px rgba(62,183,128,.1); background: #3eb780; }
.queue-button b { color: #fff; background: var(--teal); }
.icon-button { color: #666b75; }
.avatar-stack span,.avatar-stack b,.avatar { color: #fff; border-color: #fff; background: #5d63e6; }
.sidebar { background: #fff; border-color: var(--line); padding: 18px 12px 16px; }
.sidebar nav { gap: 4px; }
.nav-item { padding: 12px 13px; color: #5f646d; border-radius: 10px; }
.nav-item span { color: #8a8e97; }
.nav-item:hover { background: #f5f6f8; }
.nav-item.active { color: #3439a7; border-color: transparent; background: #eeefff; }
.nav-item.active span { color: #5259d4; }
.storage-card { border-color: var(--line); background: #f8f8fb; }
.main-content { grid-column: 2; background: linear-gradient(180deg,#fafbfc 0,#f5f6f8 280px); }
.right-rail { grid-column: 3; grid-row: 2; min-width: 0; overflow-x: hidden; overflow-y: auto; padding: 22px 18px; border-left: 1px solid var(--line); background: #fff; }
.rail-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.rail-head small { color:#9a9eaa; font-size:12px; letter-spacing:1.5px; }
.rail-head h2 { margin:5px 0 0; font-size:19px; }
.rail-live { width:9px; height:9px; border-radius:50%; background:#c5c8ce; box-shadow:0 0 0 5px rgba(130,135,145,.08); }
.rail-live.online { background:#41bb82; box-shadow:0 0 0 5px rgba(65,187,130,.11); }
.rail-live.warning { background:#d9a044; box-shadow:0 0 0 5px rgba(217,160,68,.11); }
.rail-worker,.rail-current,.rail-log { margin-bottom:14px; padding:15px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.rail-worker header { display:flex; align-items:center; gap:9px; }
.rail-worker header>div { min-width:0; flex:1; }
.rail-worker header b,.rail-worker header small { display:block; }
.rail-worker header b { font-size:14px; }
.rail-worker header small { margin-top:3px; color:var(--muted); font-size:12px; }
.rail-worker>p[role="status"] { margin:12px 0 0; color:var(--muted); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.worker-avatar { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:#fff; font-size:14px; font-weight:700; background:linear-gradient(145deg,#5d63e6,#8e75e8); }
.rail-worker dl { display:grid; grid-template-columns:1fr 75px; gap:7px; margin:13px 0 0; }
.rail-worker dl div { min-width:0; padding:9px; border-radius:9px; background:#f7f7fa; }
.rail-worker dt { color:var(--muted); font-size:12px; }
.rail-worker dd { margin:5px 0 0; overflow:hidden; font-size:12px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.rail-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.rail-title h3 { margin:0; font-size:14px; }
.rail-title span,.rail-title button { color:var(--teal); border:0; background:none; font-size:12px; }
.current-task { display:flex; align-items:center; gap:9px; }
.current-task>div { min-width:0; }
.current-task b,.current-task small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.current-task b { font-size:13px; }
.current-task small { margin-top:4px; color:var(--muted); font-size:12px; }
.task-glyph { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; color:#4c52c6; background:#eef0ff; font-size:14px; }
.rail-current progress { width:100%; height:5px; margin:14px 0 5px; accent-color:var(--teal); }
.rail-current>p { margin:7px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.rail-empty { display:grid; place-items:center; gap:5px; min-height:100px; color:var(--muted); text-align:center; }
.rail-empty span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:#2e9e6a; background:#eaf8f1; }
.rail-empty b { color:#5c616b; font-size:12px; }
.rail-empty small { font-size:12px; }
.rail-empty.compact { min-height:55px; }
.rail-log article { display:grid; grid-template-columns:8px 1fr; gap:9px; padding:9px 0; border-bottom:1px solid var(--line-soft); }
.rail-log article:last-child { border-bottom:0; }
.rail-log article i { width:7px; height:7px; margin-top:3px; border-radius:50%; background:#e5a344; }
.rail-log article i.done { background:#3eb780; }
.rail-log article i.fail { background:var(--danger); }
.rail-log article b,.rail-log article small { display:block; }
.rail-log article b { font-size:12px; line-height:1.45; }
.rail-log article small { margin-top:3px; color:var(--muted); font-size:12px; }
.rail-tip { padding:15px; border-radius:14px; color:#fff; background:linear-gradient(145deg,#242b58,#4d4fb2); }
.rail-tip b { font-size:13px; }
.rail-tip p { margin:7px 0 0; color:#d9dcff; font-size:12px; line-height:1.6; }
.page { padding:25px 28px 45px; }
.page-head h1 { color:var(--text); }
.btn { color:#565b64; border-color:var(--line); background:#fff; }
.btn:hover { color:#30343b; border-color:#cbcdd5; background:#f8f8fa; }
.btn.primary { color:#fff; border-color:#555bdb; background:#5d63e6; box-shadow:0 7px 20px rgba(79,86,205,.18); }
.metric-card,.panel,.project-card,.asset-card,.model-card,.task-row { border-color:var(--line); background:#fff; box-shadow:0 6px 22px rgba(42,45,54,.035); }
.metric-card small { color:#a0a4ad; }
.chip { border-color:var(--line); }
.chip.active,.chip.teal { color:#4f55cf; border-color:#d9dcff; background:#f0f1ff; }
.chip.amber { color:#b66e16; border-color:#f5ddbd; background:#fff8ed; }
.chip.danger { color:#c34550; border-color:#f3cdd1; background:#fff3f4; }
.project-card:hover { border-color:#c8cafa; box-shadow:0 13px 32px rgba(54,58,130,.08); }
.mini-avatars span { color:#fff; border-color:#fff; background:#5d63e6; }
.assistant-hero { display:flex; align-items:center; justify-content:center; gap:18px; padding:18px 10px 15px; text-align:left; }
.assistant-orb { position:relative; display:grid; place-items:center; width:62px; height:62px; border-radius:21px; color:#fff; font-weight:850; background:linear-gradient(145deg,#9279ed,#5361dc); box-shadow:0 18px 40px rgba(94,86,210,.24); transform:rotate(-5deg); }
.assistant-orb:after { content:""; position:absolute; inset:8px; border:1px solid rgba(255,255,255,.34); border-radius:15px; }
.assistant-orb span { transform:rotate(5deg); }
.assistant-hero small { color:#858995; font-size:12px; letter-spacing:1.7px; }
.assistant-hero h1 { margin:6px 0 5px; font-size:27px; letter-spacing:-.4px; }
.assistant-hero p { margin:0; color:var(--muted); font-size:13px; }
.command-composer { width:min(780px,95%); margin:0 auto; padding:14px 15px 11px; border:1px solid #dedfe6; border-radius:17px; background:#fff; box-shadow:0 18px 45px rgba(45,48,60,.09); }
.command-composer textarea { width:100%; min-height:48px; resize:none; border:0; outline:0; color:var(--text); background:transparent; font-size:15px; line-height:1.6; }
.command-composer>div { display:flex; align-items:center; justify-content:space-between; gap:15px; padding-top:9px; border-top:1px solid var(--line-soft); }
.command-composer>div span { color:#9a9ea7; font-size:12px; }
.quick-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; width:min(780px,95%); margin:14px auto 22px; }
.quick-actions button { display:flex; align-items:center; gap:10px; padding:11px; color:var(--text); text-align:left; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; }
.quick-actions button:hover { border-color:#cfd1fb; box-shadow:0 7px 20px rgba(70,74,120,.06); }
.quick-actions b { display:grid; place-items:center; width:32px; height:32px; flex:0 0 auto; border-radius:9px; color:#5359d3; background:#eff0ff; }
.quick-actions span { font-size:12px; font-weight:700; }
.quick-actions small { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-weight:400; }
.production-board { margin:0 0 24px; padding:15px 18px 18px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.production-board .section-head { margin:0 0 14px; }
.production-board .section-head>div span { display:block; margin-top:4px; }
.production-flow { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.production-flow>em { color:#c8cbd2; font-style:normal; }
.flow-node { display:grid; grid-template-columns:32px 1fr; grid-template-rows:auto auto; flex:1; column-gap:9px; padding:11px; border:1px solid var(--line); border-radius:11px; background:#fafafd; }
.flow-node i { grid-row:1/3; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; color:#8b8f99; background:#eceef1; font-size:12px; font-style:normal; }
.flow-node b { font-size:12px; }
.flow-node small { margin-top:3px; color:var(--muted); font-size:12px; }
.flow-node.active { border-color:#d2d5ff; background:#f5f5ff; }
.flow-node.active i { color:#fff; background:#5d63e6; box-shadow:0 0 0 4px rgba(93,99,230,.09); }
.flow-node.done i { color:#2c9665; background:#e9f7f0; }
.project-heading { margin-top:0; }
.tabs { border-color:var(--line); background:rgba(255,255,255,.8); }
.folder { border-color:var(--line); background:#fff; }
.image-tile { border-color:var(--line); }
.actual-file { background:#f4f5f7; }
.column-head { border-color:var(--line); background:rgba(255,255,255,.96); }
.generator-column { border-color:var(--line); background:#fafbfc; }
.message.user { background:#f0f1ff; }
.message p { color:#4f545d; }
.file-pill { background:#f4f4f8; }
.chat-compose textarea { color:var(--text); border-color:var(--line); background:#fff; }
.step.done,.step.active { color:#555a64; }
.step::after { background:#dfe1e6; }
.step::before { border-color:#d7d9df; background:#fff; }
.step.active::before { color:#fff; }
.field,.collector-form input,.collector-form select,.download-row,.data-note,.upgrade-list>div { color:var(--text); border-color:var(--line); background:#fff; }
.empty-state b { color:#4c515a; }
.modal-backdrop { background:rgba(32,35,42,.38); backdrop-filter:blur(5px); }
.modal { border-color:var(--line); background:#fff; box-shadow:0 30px 90px rgba(31,34,44,.22); }
.modal input,.modal textarea,.modal select { color:var(--text); border-color:var(--line); background:#f8f8fa; }
.mode-change-note { grid-column:1/-1; margin:2px 0 0; color:#8a681f; font-size:12px; line-height:1.55; }
.toast { color:#fff; border-color:transparent; background:#2f345f; }
.generator-layout { grid-template-columns:300px minmax(510px,1fr) 270px; }
@media (max-width: 1660px) {
  .app-shell { grid-template-columns: var(--sidebar) minmax(0,1fr) 280px; }
  .right-rail { display:block; }
  body[data-view="generator"] .app-shell { grid-template-columns: var(--sidebar) minmax(0,1fr); }
  body[data-view="generator"] .right-rail { display:none; }
}
@media (max-width: 1380px) {
  :root { --sidebar: 178px; }
  .generator-layout { grid-template-columns:280px minmax(500px,1fr) 260px; }
}

/* Virtual production office · v0.6 */
.office-heading { width:min(1080px,100%); margin:22px auto 10px; }
.office-heading .section-head { margin:0; }
.office-heading .section-head > div > span { display:block; margin-top:5px; }
.office-summary { display:flex; align-items:center; gap:8px; margin-left:auto; }
.office-summary > span { min-width:62px; padding:8px 10px; color:#9296a0; border:1px solid #e5e6eb; border-radius:10px; background:#fff; font-size:12px; text-align:center; }
.office-summary b { display:block; margin-bottom:2px; color:#4e54ca; font-size:15px; }
.virtual-office { width:min(1080px,100%); margin:0 auto 15px; overflow:hidden; border:1px solid #e1e3e9; border-radius:20px; background:#fff; box-shadow:0 18px 48px rgba(38,43,61,.08); }
.office-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:13px 17px; border-bottom:1px solid #e8e9ed; background:rgba(255,255,255,.96); }
.office-toolbar > div { display:flex; align-items:center; gap:10px; min-width:0; }
.office-toolbar b { font-size:13px; }
.office-toolbar small { overflow:hidden; color:#9296a0; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.office-live { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#bfc3ca; box-shadow:0 0 0 5px rgba(120,125,135,.08); }
.office-live.online { background:#45ba80; box-shadow:0 0 0 5px rgba(69,186,128,.11); }
.office-view-button { padding:7px 10px; color:#656a75; border:1px solid #e1e2e7; border-radius:9px; background:#f8f8fa; font-size:12px; }
.office-floor { position:relative; isolation:isolate; display:grid; grid-template-columns:repeat(3,minmax(190px,1fr)); gap:58px 52px; min-height:500px; padding:74px 54px 58px; overflow:hidden; background-color:#eef0f3; background-image:linear-gradient(30deg,rgba(255,255,255,.65) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.65) 87.5%),linear-gradient(150deg,rgba(255,255,255,.65) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.65) 87.5%),linear-gradient(30deg,rgba(255,255,255,.65) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.65) 87.5%),linear-gradient(150deg,rgba(255,255,255,.65) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.65) 87.5%),linear-gradient(60deg,rgba(214,217,224,.55) 25%,transparent 25.5%,transparent 75%,rgba(214,217,224,.55) 75%); background-position:0 0,0 0,25px 43px,25px 43px,0 0; background-size:50px 86px; }
.office-floor::before { content:""; position:absolute; z-index:-1; top:0; left:0; right:0; height:48px; border-bottom:1px solid #dfe2e7; background:linear-gradient(180deg,#f9fafb,#eef0f3); box-shadow:0 10px 24px rgba(45,49,59,.05); }
.office-window { position:absolute; z-index:0; top:10px; width:150px; height:60px; border:6px solid #fff; border-bottom-width:8px; border-radius:5px; background:linear-gradient(160deg,#cce9f4 0 45%,#a8d4e4 45% 47%,#e9f6f8 47%); box-shadow:0 5px 14px rgba(47,73,88,.11); }
.office-window.window-one { left:20%; }
.office-window.window-two { right:20%; }
.office-window::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:4px; background:#fff; }
.office-window::after { content:""; position:absolute; left:0; right:0; top:50%; height:4px; background:#fff; }
.office-plant { position:absolute; z-index:1; top:56px; width:26px; height:42px; border-radius:0 0 8px 8px; background:#c79062; box-shadow:inset 0 5px rgba(102,64,37,.14); }
.office-plant::before,.office-plant::after { content:""; position:absolute; bottom:27px; width:21px; height:35px; border-radius:100% 10% 100% 10%; background:#5aa67a; transform-origin:bottom; }
.office-plant::before { left:-8px; transform:rotate(-26deg); }
.office-plant::after { right:-8px; transform:scaleX(-1) rotate(-26deg); background:#71b989; }
.office-plant.plant-one { left:24px; }
.office-plant.plant-two { right:24px; }
.office-station { --station:#6b69dd; --station-soft:#eeefff; position:relative; z-index:2; display:block; min-width:0; min-height:175px; padding:0; color:#343740; text-align:left; border:0; background:transparent; cursor:pointer; }
.office-station.violet { --station:#7269df; --station-soft:#eeedff; }
.office-station.blue { --station:#4b83d8; --station-soft:#eaf3ff; }
.office-station.purple { --station:#9a67d2; --station-soft:#f5ecff; }
.office-station.orange { --station:#df8b45; --station-soft:#fff1e5; }
.office-station.pink { --station:#d8698e; --station-soft:#ffedf3; }
.office-station.cyan { --station:#39a5ad; --station-soft:#e6f8f8; }
.office-station.green { --station:#4ca77b; --station-soft:#e8f7ef; }
.office-station::before { content:""; position:absolute; inset:19px 4px 0; z-index:-1; border:1px solid rgba(96,99,110,.09); border-radius:18px; background:rgba(255,255,255,.68); box-shadow:0 9px 24px rgba(57,61,76,.06); transition:.18s ease; }
.office-station:hover::before { border-color:color-mix(in srgb,var(--station) 35%,#fff); background:rgba(255,255,255,.9); transform:translateY(-3px); box-shadow:0 14px 30px rgba(57,61,76,.1); }
.office-station.active::before { border:2px solid var(--station); background:#fff; box-shadow:0 0 0 6px color-mix(in srgb,var(--station) 10%,transparent),0 18px 36px color-mix(in srgb,var(--station) 16%,transparent); }
.station-sign { position:absolute; z-index:6; top:0; left:16px; right:16px; display:flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid #e5e6eb; border-radius:10px; background:#fff; box-shadow:0 5px 14px rgba(47,50,62,.08); }
.station-sign > i { display:grid; place-items:center; width:22px; height:22px; flex:0 0 auto; border-radius:7px; color:#fff; background:var(--station); font-size:12px; font-style:normal; font-weight:800; }
.station-sign b { display:block; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.station-sign small { display:block; margin-left:auto; overflow:hidden; color:#9a9da6; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.station-state { margin-left:auto; padding:3px 6px; color:#8d919a; border-radius:10px; background:#f0f1f3; font-size:12px; white-space:nowrap; }
.office-station.active .station-state { color:#fff; background:var(--station); }
.office-station.done .station-state { color:#278057; background:#e4f5eb; }
.station-scene { position:relative; height:126px; margin:37px 15px 0; border-radius:14px; background:linear-gradient(180deg,var(--station-soft),rgba(255,255,255,.72)); overflow:hidden; }
.station-scene::after { content:""; position:absolute; left:11%; right:11%; bottom:11px; height:17px; border-radius:50%; background:rgba(56,58,67,.10); filter:blur(3px); }
.person { position:absolute; z-index:3; left:28%; bottom:29px; width:43px; height:73px; transform:translateX(-50%); }
.person .face { position:absolute; z-index:2; top:11px; left:9px; width:26px; height:27px; border-radius:46% 46% 50% 50%; background:#efbe99; box-shadow:inset -3px -2px rgba(156,91,52,.08); }
.person .face::before { content:"··"; position:absolute; left:7px; top:7px; color:#55463f; font-size:14px; letter-spacing:4px; }
.person .face::after { content:""; position:absolute; left:10px; bottom:5px; width:7px; height:3px; border-bottom:1px solid #a66e5b; border-radius:50%; }
.person .hair { position:absolute; z-index:3; top:4px; left:6px; width:31px; height:19px; border-radius:15px 15px 7px 7px; background:#39343a; transform:rotate(-4deg); }
.person .hair::after { content:""; position:absolute; right:-1px; bottom:-8px; width:7px; height:15px; border-radius:0 0 7px 7px; background:#39343a; }
.person .body { position:absolute; z-index:1; left:3px; bottom:0; width:38px; height:42px; border-radius:16px 16px 7px 7px; background:var(--station); }
.person .body::before,.person .body::after { content:""; position:absolute; top:12px; width:9px; height:28px; border-radius:6px; background:var(--station); }
.person .body::before { left:-5px; transform:rotate(18deg); }
.person .body::after { right:-5px; transform:rotate(-18deg); }
.chair { position:absolute; z-index:1; left:28%; bottom:16px; width:48px; height:58px; transform:translateX(-50%); border-radius:15px 15px 8px 8px; background:#4a4d58; }
.chair::after { content:""; position:absolute; left:21px; bottom:-14px; width:5px; height:18px; background:#555864; box-shadow:-13px 13px 0 -1px #555864,13px 13px 0 -1px #555864; }
.desk { position:absolute; z-index:4; right:8%; bottom:25px; width:118px; height:13px; border-radius:5px; background:#d8a171; box-shadow:0 4px 0 #b8794f; }
.desk::before,.desk::after { content:""; position:absolute; top:12px; width:8px; height:46px; border-radius:0 0 3px 3px; background:#9a6547; }
.desk::before { left:8px; }
.desk::after { right:8px; }
.monitor { position:absolute; z-index:5; right:27%; bottom:47px; width:54px; height:38px; border:4px solid #444956; border-radius:5px; background:linear-gradient(145deg,#ecf0ff,#8792eb); box-shadow:inset 0 0 0 2px rgba(255,255,255,.3); }
.monitor::before { content:""; position:absolute; left:21px; bottom:-12px; width:5px; height:9px; background:#505460; }
.monitor::after { content:""; position:absolute; left:12px; bottom:-15px; width:28px; height:4px; border-radius:4px; background:#505460; }
.office-station.active .monitor { animation:monitorPulse 1.8s ease-in-out infinite; }
.keyboard { position:absolute; z-index:5; right:19%; bottom:38px; width:42px; height:7px; border-radius:2px; background:#e9e9ec; box-shadow:0 2px 0 #b8bac1; transform:skewX(-16deg); }
.lamp { position:absolute; z-index:5; right:8%; bottom:41px; width:4px; height:38px; background:#59606b; transform:rotate(-7deg); transform-origin:bottom; }
.lamp::before { content:""; position:absolute; left:-10px; top:-4px; width:21px; height:12px; border-radius:12px 12px 3px 3px; background:var(--station); transform:rotate(8deg); }
.desk-front { position:absolute; z-index:5; right:18%; bottom:9px; width:58px; height:17px; border-radius:3px; color:#fff; background:var(--station); font-size:12px; font-weight:800; line-height:17px; text-align:center; letter-spacing:.4px; box-shadow:0 3px 0 color-mix(in srgb,var(--station) 72%,#222); }
.desk-front::after { content:"AI工作位"; }
.station-copy { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 17px 0; }
.station-copy b { font-size:12px; }
.station-copy small { color:#999da6; font-size:12px; }
.office-center { position:absolute; z-index:4; left:50%; top:50%; width:114px; height:62px; transform:translate(-50%,-43%); pointer-events:none; }
.meeting-table { display:grid; place-items:center; width:114px; height:62px; color:#fff; border:6px solid rgba(255,255,255,.7); border-radius:50%; background:linear-gradient(145deg,#555bd1,#8174e8); box-shadow:0 12px 20px rgba(67,69,139,.24); }
.meeting-table::before { content:""; position:absolute; z-index:-1; left:50%; bottom:-22px; width:15px; height:30px; transform:translateX(-50%); background:#7c6d65; }
.meeting-table b,.meeting-table small { display:block; text-align:center; }
.meeting-table b { font-size:12px; }
.meeting-table small { margin-top:3px; color:#dedfff; font-size:12px; }
@keyframes monitorPulse { 0%,100% { box-shadow:inset 0 0 0 2px rgba(255,255,255,.3),0 0 0 0 color-mix(in srgb,var(--station) 30%,transparent); } 50% { box-shadow:inset 0 0 0 2px rgba(255,255,255,.3),0 0 0 7px color-mix(in srgb,var(--station) 5%,transparent); } }
@media (max-width:1380px) {
  .office-floor { gap:55px 30px; padding-left:34px; padding-right:34px; }
  .office-center { transform:translate(-50%,-43%) scale(.88); }
}

/* 对标图墙：以图片为主，来源和评分始终与本地文件绑定。 */
.reference-board { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; align-items:start; }
.reference-board-card { overflow:hidden; min-width:0; border:1px solid #dedfe4; border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(35,38,48,.06); cursor:pointer; }
.reference-board-card:hover { border-color:#aeb1ba; box-shadow:0 12px 30px rgba(35,38,48,.1); }
.reference-board-card:focus-visible { outline:3px solid rgba(78,84,202,.28); outline-offset:3px; }
.reference-media { position:relative; aspect-ratio:1/1; overflow:hidden; background:#f1f2f4; }
.reference-media img { display:block; width:100%; height:100%; object-fit:cover; }
.reference-rank { position:absolute; top:10px; left:10px; padding:6px 8px; color:#fff; border-radius:7px; background:rgba(24,26,31,.86); font-size:12px; font-weight:750; backdrop-filter:blur(8px); }
.reference-score { position:absolute; top:10px; right:10px; display:grid; place-items:center; width:52px; height:52px; color:#17191e; border:1px solid rgba(255,255,255,.8); border-radius:50%; background:#f4d56c; font-size:21px; line-height:1; box-shadow:0 5px 15px rgba(36,31,15,.18); }
.reference-score small { margin-top:2px; font-size:12px; font-weight:700; }
.reference-copy { padding:12px 13px 11px; }
.reference-copy > div > span { color:#666a73; font-size:12px; }
.reference-copy h3 { min-height:38px; margin:4px 0 0; overflow:hidden; color:#202229; font-size:15px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.reference-copy p { min-height:44px; margin:9px 0 0; overflow:hidden; color:#696d76; font-size:12px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.reference-copy footer { display:flex; gap:8px; margin-top:11px; padding-top:10px; border-top:1px solid #eeeeF1; }
.reference-copy footer a { flex:1; min-height:34px; padding:8px 9px; color:#30333a; border:1px solid #dedfe4; border-radius:7px; background:#f8f8f9; font-size:12px; font-weight:700; text-align:center; text-decoration:none; }
.reference-copy footer a:last-child { color:#fff; border-color:#252831; background:#252831; }
.reference-missing { display:grid; place-items:center; height:100%; color:#777b84; font-size:13px; line-height:1.7; text-align:center; }
.reference-processing,.reference-error { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:13px 14px; border:1px solid #dcdee4; border-radius:10px; background:#fff; }
.reference-processing > i { width:10px; height:10px; flex:0 0 auto; border-radius:50%; background:#4e54ca; box-shadow:0 0 0 6px rgba(78,84,202,.1); animation:referencePulse 1.4s ease-in-out infinite; }
.reference-processing > div,.reference-error > span { min-width:0; flex:1; }
.reference-processing b,.reference-processing span { display:block; }
.reference-processing span,.reference-error span { margin-top:3px; color:#6f737c; font-size:12px; line-height:1.55; }
.reference-processing > strong { color:#4e54ca; font-size:18px; }
.reference-error { align-items:flex-start; border-color:#edc7c4; background:#fff9f8; }
.reference-error b { color:#a13b33; white-space:nowrap; }
.reference-error .btn { flex:0 0 auto; }
.reference-error-actions { display:flex; flex:0 0 auto; gap:8px; }
.reference-failure-details { flex:1; min-width:0; overflow-wrap:anywhere; }
.reference-failure-details details { margin-top:8px; font-size:12px; }
.reference-failure-details summary { cursor:pointer; width:fit-content; padding:4px 0; }
.reference-failure-details summary:focus-visible { outline:2px solid #4d4edb; outline-offset:3px; }
.reference-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:190px; padding:30px; color:#737780; border:1px dashed #cfd1d7; border-radius:12px; background:#fafafa; text-align:center; }
.reference-empty b { margin-bottom:7px; color:#2f3238; font-size:16px; }
.reference-empty span { max-width:520px; font-size:13px; line-height:1.6; }
@keyframes referencePulse { 50% { box-shadow:0 0 0 11px rgba(78,84,202,0); } }
@media (prefers-reduced-motion:reduce) { .reference-processing > i { animation:none; } }
@media (max-width:760px) {
  .reference-board { grid-template-columns:1fr; }
  .reference-error { flex-wrap:wrap; }
  .reference-error b,.reference-error span { width:100%; }
}

/* Collector navigation and recoverable failure states · v0.15.1 */
.collector-page-head { align-items:center; }
.collector-heading { display:flex; align-items:flex-start; gap:14px; min-width:0; }
.collector-back { min-width:96px; min-height:44px; padding:0 14px; color:#4f5560; border:1px solid #dedfe5; border-radius:10px; background:#fff; font-weight:700; cursor:pointer; }
.collector-back:hover { color:#3439a7; border-color:#c9cbf2; background:#f5f5ff; }
.collector-back:focus-visible,.collector-source-row .btn:focus-visible { outline:3px solid rgba(78,84,202,.24); outline-offset:2px; }
.collector-guidance { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 14px; padding:13px 15px; color:#f7f8fa; border-left:3px solid #e2a83c; border-radius:8px; background:#292d34; }
.collector-guidance > div:first-child { display:grid; gap:4px; min-width:0; }
.collector-guidance b { font-size:14px; }
.collector-guidance span { color:#d3d6dc; font-size:12px; line-height:1.55; }
.collector-guidance-error { color:#772d28; border:1px solid #edc7c4; border-left:4px solid #d85c51; background:#fff7f6; }
.collector-guidance-error span { color:#895d59; }
.collector-recovery-actions { display:flex!important; grid-auto-flow:column; gap:8px!important; flex:0 0 auto; }
.collector-recovery-actions .btn { min-height:40px; white-space:nowrap; }
.collector-session-failed { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:14px 0; padding:14px 16px; border:1px solid #efc7c3; border-radius:12px; background:#fff8f7; }
.collector-session-failed > div { display:grid; gap:4px; min-width:0; }
.collector-session-failed b { color:#a43b33; font-size:15px; }
.collector-session-failed span { color:#76504c; font-size:13px; line-height:1.55; }
.collector-session-failed small { overflow:hidden; color:#9a7773; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.collector-session-failed .btn { min-height:42px; flex:0 0 auto; }
.collector-source-list { display:grid; gap:8px; }
.collector-source-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fafafb; }
.collector-source-icon { display:grid; place-items:center; width:32px; height:32px; color:#fff; border-radius:50%; background:#5d63e6; font-size:12px; font-weight:800; }
.collector-source-row > div { display:grid; min-width:0; gap:3px; }
.collector-source-row b { font-size:13px; }
.collector-source-row small { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.collector-source-row time { color:#a0a4ad; font-size:12px; }
.collector-source-row .btn { min-height:38px; padding:7px 10px; font-size:12px; white-space:nowrap; }
.action-empty { display:flex; flex-direction:column; align-items:center; gap:14px; }
.action-empty .btn { min-height:42px; }
@media (max-width:1380px) {
  .collector-page-head { align-items:flex-start; }
  .collector-grid { grid-template-columns:minmax(340px,.9fr) minmax(420px,1.1fr); }
}

/* Reference-led generation workspace · v0.16 */
body[data-view="generator"] .app-shell { grid-template-columns:var(--sidebar) minmax(0,1fr); }
body[data-view="generator"] .right-rail { display:none; }
body[data-view="generator"] .main-content { overflow:hidden; }
.generator-page { overflow:hidden; }
.generator-focus-layout { grid-template-columns:300px minmax(0,1fr); width:100%; height:calc(100vh - var(--topbar)); overflow:hidden; }
.generator-focus-layout .generator-column { overscroll-behavior:contain; }
.generator-history-head { display:flex; align-items:center; gap:14px; min-height:68px; padding:12px 14px; }
.generator-history-head h2 { min-width:0; white-space:nowrap; }
.generator-back { min-width:94px; min-height:44px; padding-inline:12px; flex:0 0 auto; }
.generator-back:focus-visible { outline:3px solid rgba(78,84,202,.24); outline-offset:2px; }
.reference-prompt-workspace { background:#f5f6f8; }
.reference-workspace-head { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:68px; padding:12px 18px; }
.reference-workspace-head > div { display:grid; gap:3px; min-width:0; }
.reference-workspace-head h2 { font-size:20px; }
.reference-workspace-head > div > span { color:#818692; font-size:13px; }
.generator-settings-popover { position:relative; flex:0 0 auto; }
.generator-settings-popover > summary { min-height:42px; display:flex; align-items:center; padding:0 14px; border:1px solid #d9dce3; border-radius:9px; background:#fff; color:#4e535d; font-size:13px; font-weight:700; cursor:pointer; list-style:none; }
.generator-settings-popover > summary::-webkit-details-marker { display:none; }
.generator-settings-popover > summary::after { content:"⌄"; margin-left:9px; color:#9297a1; }
.generator-settings-popover[open] > summary { color:#3439a7; border-color:#c8caf1; background:#f6f6ff; }
.settings-popover-panel { position:absolute; z-index:12; top:50px; right:0; display:grid; gap:0; width:300px; padding:9px; border:1px solid #dfe1e7; border-radius:12px; background:#fff; box-shadow:0 18px 50px rgba(31,36,48,.16); }
.settings-popover-panel section { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:10px; border-bottom:1px solid #eef0f3; }
.settings-popover-panel section:last-child { border-bottom:0; }
.settings-popover-panel b { font-size:13px; }
.settings-popover-panel span { color:#858a94; font-size:12px; text-align:right; }
.reference-planner { max-width:1260px; margin:0 auto; padding:18px 22px 90px; }
.compact-steps { grid-template-columns:repeat(5,minmax(100px,1fr)); margin-bottom:14px; }
.reference-prompt-intro { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:14px; padding:16px 18px; border:1px solid #dee1e7; border-radius:12px; background:#fff; }
.reference-prompt-intro > div { display:grid; gap:5px; min-width:0; }
.reference-prompt-intro b { font-size:16px; }
.reference-prompt-intro span { color:#717782; font-size:13px; line-height:1.55; }
.reference-prompt-intro details { flex:0 0 auto; max-width:310px; }
.reference-prompt-intro summary { color:#4d53c5; font-size:12px; font-weight:700; cursor:pointer; }
.reference-prompt-intro p { margin:7px 0 0; color:#7a7f89; font-size:12px; line-height:1.55; }
.reference-prompt-list { display:grid; gap:14px; }
.reference-prompt-card { display:grid; grid-template-columns:230px minmax(0,1fr); min-height:320px; overflow:hidden; border:1px solid #dfe1e6; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(35,40,52,.045); }
.reference-prompt-card figure { position:relative; min-width:0; min-height:320px; margin:0; padding:12px; background:#eef0f3; }
.reference-prompt-card figure img { width:100%; height:100%; max-height:380px; object-fit:contain; border-radius:9px; background:#fff; }
.reference-prompt-card figcaption { position:absolute; left:20px; right:20px; bottom:20px; display:flex; align-items:center; gap:7px; padding:8px 10px; color:#fff; border-radius:8px; background:rgba(26,29,35,.86); backdrop-filter:blur(8px); }
.reference-prompt-card figcaption b { display:grid; place-items:center; width:24px; height:24px; border-radius:6px; background:#5d63e6; font-size:12px; }
.reference-prompt-card figcaption span { font-size:12px; font-weight:800; }
.reference-prompt-card figcaption small { margin-left:auto; color:#d7dae0; font-size:12px; }
.reference-prompt-card > section { display:flex; flex-direction:column; min-width:0; padding:16px; }
.reference-prompt-card > section > header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:9px; }
.reference-prompt-card header > div { min-width:0; }
.reference-prompt-card header span { color:#5d63e6; font-size:12px; font-weight:800; }
.reference-prompt-card h3 { overflow:hidden; margin:3px 0 0; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.reference-prompt-card header a { flex:0 0 auto; color:#666ccf; font-size:12px; text-decoration:none; }
.reference-visual-summary { margin:0 0 10px; color:#666c77; font-size:12px; line-height:1.6; }
.reference-prompt-card label { display:flex; flex:1; flex-direction:column; gap:6px; color:#565b65; font-size:12px; font-weight:700; }
.reference-prompt-card textarea { flex:1; width:100%; min-height:150px; padding:11px 12px; resize:vertical; color:#30343c; border:1px solid #dfe1e6; border-radius:9px; outline:none; background:#fafbfc; font-size:13px; line-height:1.65; }
.reference-prompt-card textarea:focus { border-color:#7479df; box-shadow:0 0 0 3px rgba(93,99,230,.12); background:#fff; }
.reference-prompt-card textarea:disabled { color:#9498a1; background:#f1f2f4; }
.reference-prompt-card footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
.reference-prompt-card footer span { color:#8a8f98; font-size:12px; }
.reference-prompt-card .btn { min-height:40px; }
.reference-generate-bar { position:sticky; z-index:5; bottom:0; align-items:center; justify-content:space-between; margin:18px -22px -90px; padding:14px 22px; border-top:1px solid #dfe1e6; background:rgba(255,255,255,.94); box-shadow:0 -10px 30px rgba(38,42,53,.08); backdrop-filter:blur(12px); }
.reference-generate-bar > span { color:#626772; font-size:13px; }
.reference-generate-bar .btn { min-width:220px; min-height:44px; }
.generator-page button:focus-visible,.generator-page summary:focus-visible,.generator-page a:focus-visible,.generator-page textarea:focus-visible { outline:2px solid #4d53c5; outline-offset:2px; }
@media (max-width:1380px) {
  .generator-focus-layout { grid-template-columns:270px minmax(0,1fr); }
  .reference-planner { padding-inline:16px; }
  .reference-prompt-card { grid-template-columns:190px minmax(0,1fr); }
  .reference-prompt-card figure { min-height:290px; }
}

/* Structured product facts and multimodal intake · v0.25 */
.product-profile-panel { margin:0 0 18px; padding:18px; border:1px solid #dfe1e7; border-radius:13px; background:#fff; box-shadow:0 8px 24px rgba(39,43,54,.04); }
.product-profile-panel > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:16px; }
.product-profile-panel > header > div:first-child { min-width:0; }
.product-profile-panel > header span { color:#565ccd; font-size:12px; font-weight:850; letter-spacing:.12em; }
.product-profile-panel h3 { margin:4px 0 0; color:#252a33; font-size:18px; }
.product-profile-panel header p { margin:5px 0 0; color:#747a85; font-size:12px; line-height:1.55; }
.product-profile-status { display:grid; flex:0 0 auto; min-width:82px; padding:9px 12px; border:1px solid #e0e2ef; border-radius:10px; background:#f8f8ff; text-align:right; }
.product-profile-status b { color:#4147b8; font-size:16px; }
.product-profile-status small { color:#7e8390; font-size:12px; }
.product-profile-panel form { display:grid; gap:12px; }
.product-profile-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.product-profile-panel label { display:grid; align-content:start; min-width:0; gap:6px; color:#555b66; font-size:12px; font-weight:750; }
.product-profile-panel label > span { color:#555b66; font-size:12px; font-weight:750; letter-spacing:0; }
.product-profile-panel input,.product-profile-panel select,.product-profile-panel textarea { width:100%; min-width:0; padding:9px 10px; color:#30353e; border:1px solid #dfe1e6; border-radius:8px; outline:0; background:#fafbfc; font:inherit; font-weight:500; line-height:1.5; resize:vertical; }
.product-profile-panel input,.product-profile-panel select { min-height:39px; }
.product-profile-panel textarea { min-height:72px; }
.product-profile-panel input:focus,.product-profile-panel select:focus,.product-profile-panel textarea:focus { border-color:#767ce3; box-shadow:0 0 0 3px rgba(93,99,230,.11); background:#fff; }
.product-profile-panel label > small { color:#8a8f99; font-size:12px; font-weight:500; line-height:1.45; }
.product-source-text textarea { min-height:92px; }
.product-profile-panel form > footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:12px; border-top:1px solid #eceef2; }
.product-profile-panel form > footer > div { display:flex; align-items:center; gap:8px; }
.product-profile-panel form > footer > div:first-child > span { color:#858a94; font-size:12px; }
.product-profile-upload { display:inline-flex!important; align-items:center; justify-content:center; min-height:40px; cursor:pointer; }
.product-profile-upload input { display:none; }
@media (max-width:1380px) { .product-profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) {
  .product-profile-grid { grid-template-columns:1fr; }
  .product-profile-panel form > footer { align-items:stretch; flex-direction:column; }
  .product-profile-panel form > footer > div { align-items:stretch; flex-direction:column; }
  .product-profile-panel form > footer .btn { width:100%; }
}

/* Model-library preparation, color three-views and consistent project return · v0.17 */
.project-context-back { display:inline-flex; align-items:center; min-height:40px; margin:0 0 14px; padding:0 13px; color:#4f5560; border:1px solid #d9dce3; border-radius:9px; background:#fff; font-size:13px; font-weight:750; cursor:pointer; }
.project-context-back:hover { color:#3439a7; border-color:#c9cbf2; background:#f6f6ff; }
.project-context-back:focus-visible,.asset-preview-button:focus-visible,.reference-preview-button:focus-visible,.model-candidate > button:focus-visible,.color-baseline-card > button:focus-visible { outline:3px solid rgba(78,84,202,.23); outline-offset:2px; }
.project-subpage-head { margin-top:0; }
.preparation-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:14px; padding:20px 22px; color:#fff; border-radius:14px; background:#22262e; }
.preparation-hero > div:first-child { display:grid; gap:5px; max-width:680px; }
.preparation-hero > div:first-child > span { color:#9da3ae; font-size:12px; font-weight:800; }
.preparation-hero h2 { margin:0; font-size:22px; letter-spacing:-.35px; }
.preparation-hero p { margin:0; color:#cdd0d6; font-size:13px; line-height:1.65; }
.preparation-actions { display:flex; flex:0 0 auto; gap:8px; }
.preparation-actions .btn { min-height:42px; }
.model-library-blocker { display:flex; align-items:center; gap:14px; margin-bottom:14px; padding:14px 16px; color:#7c4b12; border:1px solid #ecd09c; border-left:4px solid #d99b26; border-radius:11px; background:#fffaf0; }
.model-library-blocker b { flex:0 0 auto; font-size:14px; }
.model-library-blocker span { flex:1; color:#866632; font-size:12px; line-height:1.55; }
.model-library-blocker .btn { min-height:40px; }
.preparation-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:14px; align-items:start; }
.preparation-grid .panel { min-width:0; }
.preparation-grid .panel-title h3 { margin:0; font-size:16px; }
.preparation-grid .panel-title small { display:block; margin-top:3px; color:#8a8f98; font-size:12px; }
.product-facts ul,.outfit-completion ul { display:grid; gap:7px; margin:12px 0 0; padding:0; list-style:none; }
.product-facts li,.outfit-completion li { position:relative; padding-left:13px; color:#555b65; font-size:12px; line-height:1.55; }
.product-facts li::before,.outfit-completion li::before { position:absolute; left:0; top:.62em; width:5px; height:5px; border-radius:50%; background:#5d63e6; content:""; }
.product-facts details { margin-top:14px; padding-top:12px; border-top:1px solid #eceef2; }
.product-facts summary { color:#4e54ca; font-size:12px; font-weight:750; cursor:pointer; }
.color-chip-list { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 2px; }
.color-chip-list span { padding:6px 9px; color:#454a54; border:1px solid #dedfe5; border-radius:999px; background:#f8f9fa; font-size:12px; font-weight:700; }
.model-candidate-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; }
.model-picker-scroll { max-height:min(500px,58vh); margin-top:12px; padding:2px 6px 2px 2px; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; border-radius:11px; }
.model-picker-scroll:focus-visible { outline:3px solid rgba(78,84,202,.23); outline-offset:2px; }
.model-preparation-failure { margin-bottom:16px; padding:16px; border:1px solid #d8ac60; border-radius:11px; background:#fffaf0; color:#704514; overflow-wrap:anywhere; }
.model-preparation-failure h3 { margin:0 0 8px; font-size:16px; }
.model-preparation-failure p, .model-preparation-failure li { font-size:14px; line-height:1.65; }
.model-preparation-failure ul { margin:8px 0; padding-left:22px; }
.model-recovery-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:14px; }
.model-recovery-actions small { flex:1 1 160px; color:#535b6d; line-height:1.6; }
#manualModelPicker:focus-visible { outline:3px solid #4e54ca; outline-offset:3px; }
.project-stop-notice header { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; }
.project-stop-notice header small { color:#704514; }
.rail-paused { display:grid; gap:8px; padding-top:14px; color:#704514; overflow-wrap:anywhere; }
.rail-paused strong { font-size:14px; }
.rail-paused p { margin:0; color:#704514; line-height:1.6; }
.rail-paused small { line-height:1.6; }
.model-picker-scroll .model-candidate-grid { margin-top:0; }
.model-candidate { overflow:hidden; border:1px solid #e0e2e7; border-radius:11px; background:#fff; }
.model-candidate.selected { border-color:#6c72df; box-shadow:0 0 0 2px rgba(93,99,230,.11); }
.model-candidate > button { display:block; width:100%; height:180px; padding:0; border:0; background:#f0f1f3; cursor:zoom-in; }
.model-candidate img { width:100%; height:100%; object-fit:contain; }
.model-candidate footer { display:grid; gap:8px; padding:10px; }
.model-candidate footer > div { display:grid; min-width:0; gap:2px; }
.model-candidate footer b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.model-candidate footer span { color:#828791; font-size:12px; }
.model-candidate footer .btn { min-height:34px; padding:6px 8px; font-size:12px; }
.model-candidate footer .btn.confirmed:disabled { color:#3439a7; border-color:#cfd2fb; background:#eeeeff; opacity:1; }
.manual-selection-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding:11px 12px; color:#3439a7; border:1px solid #d9dbfb; border-radius:9px; background:#f7f7ff; }
.manual-selection-summary b { font-size:12px; }
.manual-selection-summary span { color:#6d7180; font-size:12px; text-align:right; }
.manual-selection-summary.pending { color:#744b14; border-color:#ead3a7; background:#fffaf1; }
.automatic-match-status { display:flex; align-items:center; gap:16px; min-height:174px; margin-top:14px; padding:22px; border:1px solid #e1e3e9; border-radius:12px; background:linear-gradient(135deg,#fafaff,#f5f6fb); }
.automatic-match-mark { position:relative; display:grid; flex:0 0 auto; place-items:center; width:62px; height:62px; border-radius:18px; background:#e8e9ff; }
.automatic-match-mark::before,.automatic-match-mark::after,.automatic-match-mark i::before,.automatic-match-mark i::after { position:absolute; width:7px; height:7px; border:2px solid #565ccd; content:""; }
.automatic-match-mark::before { left:15px; top:15px; border-right:0; border-bottom:0; }
.automatic-match-mark::after { right:15px; top:15px; border-left:0; border-bottom:0; }
.automatic-match-mark i::before { left:15px; bottom:15px; border-right:0; border-top:0; }
.automatic-match-mark i::after { right:15px; bottom:15px; border-left:0; border-top:0; }
.automatic-match-status.active .automatic-match-mark { animation:automatic-match-pulse 1.8s ease-in-out infinite; }
.automatic-match-status b { color:#2f3440; font-size:15px; }
.automatic-match-status p { margin:7px 0; color:#646a75; font-size:12px; line-height:1.6; }
.automatic-match-status small { color:#777d88; font-size:12px; }
.automatic-model-result { display:grid; grid-template-columns:minmax(150px,.72fr) minmax(0,1fr); gap:18px; min-height:196px; margin-top:14px; padding:12px; border:1px solid #dfe1e8; border-radius:12px; background:#fafbfc; }
.automatic-model-result > button { min-height:172px; padding:0; overflow:hidden; border:0; border-radius:9px; background:#eef0f3; cursor:zoom-in; }
.automatic-model-result img { width:100%; height:100%; max-height:260px; object-fit:contain; }
.automatic-model-result > div { display:flex; flex-direction:column; justify-content:center; min-width:0; padding:8px 8px 8px 0; }
.automatic-model-result small { color:#565ccd; font-size:12px; font-weight:800; }
.automatic-model-result h4 { margin:6px 0 0; font-size:17px; overflow-wrap:anywhere; }
.automatic-model-result p { margin:9px 0; color:#636975; font-size:12px; line-height:1.65; }
.automatic-model-result span { color:#838893; font-size:12px; }
.selection-reason.warning { border-left-color:#d99b26; background:#fffaf1; }
@keyframes automatic-match-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(86,92,205,.04); } 50% { box-shadow:0 0 0 9px rgba(86,92,205,.10); } }
@media (prefers-reduced-motion:reduce) { .automatic-match-status.active .automatic-match-mark { animation:none; } }
.selection-reason { margin-top:12px; padding:11px 12px; border-left:3px solid #5d63e6; border-radius:8px; background:#f6f6ff; }
.selection-reason b { font-size:12px; }
.selection-reason p,.outfit-rationale { margin:5px 0 0; color:#656b75; font-size:12px; line-height:1.6; }
.outfit-completion,.three-view-contract { min-height:220px; }
.view-contract { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
.view-contract span { display:grid; gap:4px; min-height:88px; padding:13px; border:1px solid #e1e3e8; border-radius:9px; background:#f7f8fa; }
.view-contract b { font-size:14px; }
.view-contract small { color:#7d828c; font-size:12px; line-height:1.45; }
.three-view-contract > p { margin:12px 0 0; color:#646a74; font-size:12px; line-height:1.55; }
.color-baseline-section,.legacy-drafts { margin-top:14px; }
.subsection-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:12px; }
.subsection-heading h3 { margin:0; font-size:16px; }
.subsection-heading p { margin:4px 0 0; color:#7d828c; font-size:12px; }
.subsection-heading > span { color:#6268cf; font-size:12px; font-weight:800; }
.color-baseline-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.color-baseline-card { overflow:hidden; border:1px solid #dfe1e6; border-radius:12px; background:#fff; }
.color-baseline-card > button { display:block; width:100%; height:320px; padding:0; border:0; background:#f2f3f5; cursor:zoom-in; }
.color-baseline-card img { width:100%; height:100%; object-fit:contain; }
.color-baseline-card footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; }
.color-baseline-card footer > div { display:grid; gap:3px; }
.color-baseline-card footer b { font-size:14px; }
.color-baseline-card footer span { color:#858a94; font-size:12px; }
.color-baseline-card footer a { color:#4d53c5; font-size:12px; font-weight:750; text-decoration:none; }
.workflow-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:8px; min-height:160px; padding:22px; border:1px dashed #cfd2d9; border-radius:11px; background:#fafafa; }
.workflow-empty b { font-size:15px; }
.workflow-empty span { color:#767c86; font-size:12px; line-height:1.55; }
.workflow-empty.compact { min-height:100px; }
.legacy-drafts { padding-top:18px; border-top:1px solid #e1e3e7; }
.asset-preview-button,.reference-preview-button { display:block; width:100%; height:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.reference-preview-button img { width:100%; height:100%; object-fit:cover; }
.asset-lightbox { padding:16px; overflow:hidden; }
.asset-preview-modal { display:flex; flex-direction:column; width:min(1280px,calc(100vw - 32px)); height:min(900px,calc(100dvh - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:16px; overflow:hidden; }
.asset-preview-modal > header { flex:0 0 auto; }
.asset-preview-modal header > div { min-width:0; }
.asset-preview-modal h2 { overflow-wrap:anywhere; }
.asset-preview-modal header span { display:block; margin-top:4px; color:#8a8f98; font-size:12px; }
.asset-preview-stage { display:grid; flex:1 1 auto; place-items:center; min-width:0; min-height:0; height:auto; padding:12px; overflow:hidden; background:#eef0f3; }
.asset-preview-stage img { width:100%; height:100%; min-width:0; min-height:0; max-width:100%; max-height:100%; object-fit:contain; box-shadow:0 6px 24px rgba(29,33,43,.12); }
.asset-preview-modal > footer { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px 0; }
.asset-preview-modal > footer span { color:#777d87; font-size:12px; }
.asset-preview-modal > footer a { text-decoration:none; }
.asset-preview-actions { display:flex; align-items:center; gap:8px; }
.model-carousel-stage { position:relative; overflow:hidden; touch-action:pan-y; user-select:none; }
.model-carousel-stage img { pointer-events:none; }
.model-carousel-arrow { position:absolute; z-index:2; top:50%; display:grid; place-items:center; width:46px; height:58px; padding:0; color:#fff; border:1px solid rgba(255,255,255,.45); border-radius:12px; background:rgba(30,34,43,.72); box-shadow:0 8px 24px rgba(24,27,35,.18); cursor:pointer; transform:translateY(-50%); }
.model-carousel-arrow.previous { left:18px; }
.model-carousel-arrow.next { right:18px; }
.model-carousel-arrow svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.model-carousel-arrow:hover:not(:disabled) { background:#4248bb; }
.model-carousel-arrow:focus-visible { outline:3px solid rgba(93,99,230,.32); outline-offset:3px; }
.model-carousel-arrow:disabled { opacity:.28; cursor:default; }
[data-preview-asset].asset-preview-located { outline:3px solid #4e54ca; outline-offset:-3px; }
.reference-view-original { flex-shrink:0; min-height:32px; padding:6px 8px; border:0; background:transparent; color:#4e54ca; cursor:pointer; }
.reference-view-original:focus-visible { outline:3px solid #4e54ca; outline-offset:2px; }
.preview-confirm-model { min-width:152px; }
.preview-confirm-model:disabled { color:#3439a7; border-color:#cfd2fb; background:#eeeeff; opacity:1; }
@media (max-width:1380px) {
  .preparation-grid { grid-template-columns:1fr; }
  .model-candidate-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .model-candidate > button { height:160px; }
  .color-baseline-card > button { height:280px; }
}
@media (max-width:720px) {
  .model-candidate-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .automatic-model-result { grid-template-columns:1fr; }
  .asset-lightbox { padding:8px; }
  .asset-preview-modal { width:calc(100vw - 16px); height:calc(100dvh - 16px); max-height:calc(100dvh - 16px); padding:10px; }
  .asset-preview-modal > footer { align-items:stretch; flex-direction:column; }
  .asset-preview-actions { width:100%; }
  .asset-preview-actions .btn { flex:1; }
  .model-carousel-arrow { width:44px; height:52px; }
}

/* Real planning evidence and collector explanation · v0.26 */
.real-plan-stages { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0; }
.real-plan-stage { display:grid; grid-template-columns:auto 1fr; gap:10px; min-width:0; padding:14px; border:1px solid #e1e3e8; border-radius:11px; background:#fff; }
.real-plan-stage > span { display:grid; place-items:center; width:30px; height:30px; color:#656b76; border-radius:8px; background:#eef0f3; font-size:12px; font-weight:850; }
.real-plan-stage > div { display:grid; min-width:0; gap:4px; }
.real-plan-stage b { font-size:13px; }
.real-plan-stage small { overflow:hidden; color:#818691; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.real-plan-stage > strong { grid-column:2; width:max-content; color:#8b9099; font-size:12px; }
.real-plan-stage.done { border-color:#cde8dc; background:#f7fcf9; }
.real-plan-stage.done > span { color:#167b58; background:#ddf5ea; }
.real-plan-stage.done > strong { color:#167b58; }
.real-plan-stage.active { border-color:#cfd2fb; box-shadow:0 0 0 2px rgba(93,99,230,.08); background:#f8f8ff; }
.real-plan-stage.active > span { color:#fff; background:#5d63e6; }
.real-plan-stage.active > strong { color:#484ec5; }
.planning-live-status { margin:10px 0 0; }
.real-plan-evidence { padding:16px; border:1px solid #e1e3e8; border-radius:13px; background:#fff; }
.real-plan-evidence > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:12px; }
.real-plan-evidence h3 { margin:0; font-size:16px; }
.real-plan-evidence p { margin:5px 0 0; color:#777d87; font-size:12px; line-height:1.55; }
.real-plan-evidence > header > span { flex:0 0 auto; padding:5px 8px; color:#555bc7; border-radius:999px; background:#eeeefe; font-size:12px; font-weight:800; }
.real-plan-evidence > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.real-plan-reference { display:grid; grid-template-columns:88px minmax(0,1fr); min-width:0; overflow:hidden; border:1px solid #e4e5e9; border-radius:10px; background:#fafbfc; }
.real-plan-reference > button { display:block; width:88px; min-height:88px; padding:0; border:0; background:#eceef2; cursor:zoom-in; }
.real-plan-reference img { width:100%; height:100%; object-fit:cover; }
.real-plan-reference > div { display:grid; align-content:center; min-width:0; gap:4px; padding:10px; }
.real-plan-reference span,.real-plan-reference small { color:#7d828c; font-size:12px; }
.real-plan-reference b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.collector-flow-guide { margin:0 0 14px; padding:16px; color:#fff; border-radius:13px; background:#232730; }
.collector-flow-guide > header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:14px; }
.collector-flow-guide header span { color:#aeb4bf; font-size:12px; font-weight:850; letter-spacing:.12em; }
.collector-flow-guide h2 { margin:5px 0 0; font-size:18px; }
.collector-flow-guide p { margin:5px 0 0; color:#cdd1d8; font-size:12px; line-height:1.55; }
.collector-flow-guide header strong { flex:0 0 auto; color:#cfd2ff; font-size:12px; }
.collector-flow-guide > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.collector-flow-guide article { display:grid; grid-template-columns:auto 1fr; gap:6px 9px; min-width:0; padding:11px; border:1px solid rgba(255,255,255,.11); border-radius:9px; background:rgba(255,255,255,.04); }
.collector-flow-guide article > span { grid-row:1/3; display:grid; place-items:center; width:28px; height:28px; color:#d8dafe; border-radius:7px; background:#4f55c9; font-size:12px; font-weight:850; }
.collector-flow-guide article b { font-size:12px; }
.collector-flow-guide article small { color:#b9bec7; font-size:12px; line-height:1.45; }
@media (max-width:1180px) {
  .real-plan-stages,.collector-flow-guide > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .real-plan-evidence > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .real-plan-stages,.real-plan-evidence > div,.collector-flow-guide > div { grid-template-columns:1fr; }
  .collector-flow-guide > header { flex-direction:column; }
}

/* Project information architecture · v0.18 */
.project-bar { align-items:flex-start; gap:18px; }
.project-bar > div:first-child { min-width:190px; }
.project-bar .head-actions { flex-wrap:wrap; justify-content:flex-end; }
.supporting-page-badge { align-self:center; padding:6px 9px; color:#747984; border:1px solid #dfe1e6; border-radius:999px; background:#f7f8fa; font-size:12px; font-weight:750; }
.model-baseline-section { margin-top:18px; padding-top:18px; border-top:1px solid #e1e3e7; }
.historical-baselines,.historical-results { margin-top:18px; padding:14px 0 0; border-top:1px solid #e1e3e7; }
.historical-baselines > summary,.historical-results > summary { width:max-content; color:#555bc7; font-size:12px; font-weight:750; cursor:pointer; }
.historical-baselines > p,.historical-results > p { margin:7px 0 12px; color:#7b808a; font-size:12px; }
.result-category-row .chip { display:inline-flex; align-items:center; gap:6px; }
.result-category-row .chip small { display:grid; place-items:center; min-width:18px; height:18px; padding:0 5px; color:#858a94; border-radius:999px; background:#eceef2; font-size:12px; }
.result-category-row .chip.active small { color:#fff; background:#686edf; }
.result-section-head { margin-top:2px; }
.result-section-head h3 { margin:0; font-size:16px; }
@media (max-width:1180px) {
  .project-bar { flex-direction:column; }
  .project-bar .head-actions { justify-content:flex-start; }
}
