body {height:100dvh;overflow:hidden;display:grid;grid-template-columns:190px var(--chat-w, minmax(300px,0.85fr)) 6px minmax(420px,1fr);background:#fff;font-family:"Microsoft YaHei",system-ui,sans-serif;font-size:14px;}
.sidebar {position:relative;width:auto;height:100dvh;padding:25px 14px;background:#f6f7f7;border-right:1px solid #e4e7e5;}
.brand {font:600 19px "Microsoft YaHei",sans-serif;letter-spacing:0;gap:9px;}
.brandmark {font-size:22px;width:34px;height:36px;padding:0;display:grid;place-items:center;}
.nav-label {margin-top:38px;font-size:12px;}
.nav-step {padding:13px 10px;gap:10px;min-height:64px;}
.nav-step small {font-size:11px;letter-spacing:0;margin-top:5px;}
.nav-step:disabled {opacity:.45;cursor:default;}
.nav-step .number {width:22px;height:22px;font-size:12px;flex-shrink:0;}
.side-bottom {margin-top:auto;padding:15px 0 0;}
.chat-column,.workbench {min-width:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden;}
.chat-column {border-right:0;}
.column-resizer {position:relative;cursor:col-resize;background:#fbfcfb;border-left:1px solid #e4e7e5;border-right:1px solid #f0f2f1;touch-action:none;}
.column-resizer::after {content:"";position:absolute;top:0;bottom:0;left:2px;right:2px;border-radius:2px;transition:background .15s;}
.column-resizer:hover::after,.column-resizer:focus-visible::after {background:#d8e5da;}
.column-resizer:focus-visible {outline:none;}
body.column-resizing {cursor:col-resize;}
body.column-resizing * {user-select:none!important;}
body.column-resizing .column-resizer::after {background:#c2d5c6;}
.column-heading {height:65px;flex-shrink:0;padding:0 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eceeed;}
.column-heading h1 {font-size:16px;font-weight:600;margin:0;}
#messages {flex:1;overflow:auto;padding:30px 26px;scroll-behavior:smooth;}
.message {margin-bottom:26px;line-height:1.8;overflow-wrap:anywhere;}
.message b {font-size:12px;color:#818984;display:block;margin-bottom:8px;}
.message.user {display:flex;flex-direction:column;align-items:flex-end;}
.message.user b {display:none;}
.message.user .bubble {background:#eef3ef;border:1px solid #e2ebe4;padding:11px 15px;border-radius:14px 14px 4px 14px;max-width:86%;white-space:pre-wrap;}
.message-files {font-size:12px;color:#78857b;margin-top:8px;}
/* 助手回答按轻量 Markdown 渲染：段落、小标题、列表、引用、行内加粗/代码 */
.reply {font-size:14px;color:#2f3a33;}
.reply p {margin:0 0 10px;}
.reply>:last-child {margin-bottom:0;}
.reply h4 {margin:17px 0 6px;font-size:13.5px;font-weight:600;color:#2b3d33;letter-spacing:.01em;}
.reply h4:first-child {margin-top:0;}
.reply ul,.reply ol {margin:6px 0 12px;padding-left:1.4em;}
.reply li {margin:4px 0;padding-left:2px;}
.reply li::marker {color:#8a998f;}
.reply strong {color:#22352b;font-weight:600;}
.reply em {font-style:normal;color:#4c6154;}
.reply code {background:#f1f4f2;border-radius:4px;padding:1px 5px;font-size:12.5px;font-family:ui-monospace,Menlo,Consolas,monospace;}
.reply blockquote {margin:8px 0;padding:2px 0 2px 12px;border-left:2px solid #d5e0d6;color:#55685c;}
.reply hr {border:0;border-top:1px solid #e8ece9;margin:14px 0;}
.chat-empty {padding-top:12vh;}
.chat-empty h2 {font-size:22px;font-weight:500;}
.chat-empty p {color:#818984;line-height:1.8;}
.suggestion {background:white;border:1px solid #dce3df;border-radius:8px;padding:12px 16px;color:#36594c;margin-top:18px;}
.thinking {color:#5b776a;font-size:13px;}
#composer {flex-shrink:0;margin:0 20px 20px;padding:12px;border:1px solid #dce3df;border-radius:12px;box-shadow:0 3px 16px #24433305;background:white;}
#chat-input {border:0!important;box-shadow:none!important;resize:none;padding:5px;width:100%;min-height:72px;background:transparent;outline:none;}
.composer-actions {display:flex;justify-content:space-between;align-items:center;}
.upload-hint {font-size:10px;margin:8px 4px 0;color:#909791;}
#upload-feedback {margin:3px 4px 8px;font-size:12px;color:#80502b;white-space:pre-wrap;overflow-wrap:anywhere;max-height:5em;overflow:auto;}
.attachment {background:#f1f4f2;border:0;border-radius:5px;padding:6px;margin:3px;font-size:12px;max-width:100%;overflow-wrap:anywhere;}
.workspace {margin:0;background:#fcfcfb;}
.workspace main {padding:24px 24px 0;max-width:none;width:100%;margin:0;min-height:0;flex:1;display:flex;flex-direction:column;}
.page-top {margin:0 0 20px;align-items:center;flex-shrink:0;}
.page-top h1 {font:600 22px "Microsoft YaHei",sans-serif;letter-spacing:0;margin:0;}
#step-status {font-size:12px;color:#9a7844;}
#content {overflow:auto;flex:1;padding-bottom:16px;}
.panel {padding:20px;margin-bottom:14px;border:1px solid #e3e7e3;background:#fff;border-radius:9px;box-shadow:none;}
.panel h2 {font-family:inherit;font-size:15px;margin-bottom:18px;}
.columns {display:block;}
.form-grid {gap:17px 14px;}
.audience-field {grid-column:1/-1;min-width:0;}
.audience-controls {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:7px;}
.audience-controls input,.audience-controls select {min-width:0;}
.brief-reference {margin-top:16px;font-size:12px;color:var(--muted);line-height:1.7;}
.brief-reference summary {cursor:pointer;}
/* 布展估算：可折叠的分项表 */
.budget-estimate {margin-top:18px;padding:14px 16px;border:1px solid #e3e7e3;border-radius:8px;background:#fbfcfb;font-size:12px;color:#5c6a60;}
.budget-estimate summary {display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;cursor:pointer;list-style:none;}
.budget-estimate summary::-webkit-details-marker {display:none;}
.budget-estimate summary::before {content:"▸";color:#9aa79e;font-size:10px;transition:transform .15s;}
.budget-estimate[open] summary::before {transform:rotate(90deg);}
.budget-estimate summary b {font-size:15px;color:#2b3d33;font-weight:600;}
.budget-estimate summary small {color:#8a948d;font-size:11.5px;}
.budget-estimate table {width:100%;border-collapse:collapse;margin:12px 0 6px;font-size:12px;}
.budget-estimate th {text-align:left;font-weight:500;color:#8a948d;padding:4px 8px 6px 0;border-bottom:1px solid #e8ece9;}
.budget-estimate td {padding:6px 8px 6px 0;border-bottom:1px solid #f1f4f2;color:#3d4f45;}
.budget-estimate td:not(:first-child),.budget-estimate th:not(:first-child) {text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
.budget-gap {margin:8px 0 0;padding:6px 10px;background:#f2f6f3;border-radius:6px;color:#41574a;}
.warn-text {color:#8a5a2b;}
#ask-budget {margin-left:6px;}
.field {font-size:12px;gap:7px;}
input,select,textarea {background:#fff!important;border-color:#dfe4df!important;border-radius:6px!important;}
textarea {line-height:1.7;}
.button {font-size:13px;padding:10px 16px;border-radius:7px;}
.text-button {font-size:12px;}
.step-actions {display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:2px 0 18px;margin-top:2px;}
.step-actions p {margin:0;color:#a34e34;font-size:12px;flex:1;}
.step-actions #undo-edit {white-space:nowrap;}
.step-actions #undo-edit[disabled] {display:none;}
.cards {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.artifact-picture {height:150px;}
.artifact-info {padding:12px;}
.artifact h3 {font-size:14px;}
.graph {overflow-x:auto;}
#detail {width:min(600px, calc(100% - 24px));}
#detail h2 {margin-bottom:12px;}
.exhibit-label {margin:16px 0 0;}
.exhibit-label div {display:grid;grid-template-columns:4.5em minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;}
.exhibit-label dt {font-weight:600;}
.exhibit-label dd {margin:0;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere;}
.catalog-toolbar {flex-wrap:wrap;gap:8px;}
.catalog-toolbar input {width:100%;flex-basis:100%;}
.preview-tools {gap:10px;flex-wrap:wrap;}
.preview-tools>.hint {display:none;}
.unit {padding:16px;}
.unit-top {gap:8px;}
.exhibit-row {flex-wrap:wrap;}
.exhibit-row select {max-width:180px;}
.hall {height:360px;}
.notice,.hint {line-height:1.7;}
.score-ring {width:70px;height:70px;font-size:25px;}
.score-overall {gap:16px;}
.error-text {color:#ad4a34;}
#toast {z-index:200;}
button:disabled {cursor:default;opacity:.5;}
button:hover {transform:none;}
@media(max-width:1100px){body{grid-template-columns:155px var(--chat-w, minmax(265px,.8fr)) 6px minmax(350px,1fr);}.sidebar{padding:20px 8px}.brand{font-size:16px}.workspace main{padding:20px 15px 0}.column-heading{padding:0 18px}#messages{padding:24px 18px}#composer{margin:0 12px 14px}.panel{padding:15px}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}}
@media(max-width:800px){body{height:auto;min-height:100dvh;overflow:auto;grid-template-columns:1fr}.column-resizer{display:none}.sidebar{height:auto;padding:12px;position:static}.brand,.nav-label,.side-bottom{display:none}#steps{display:flex;gap:3px}.nav-step{flex:1;justify-content:center;padding:8px 3px;min-height:0;gap:5px;font-size:11px}.nav-step small{display:none}.nav-step .number{width:17px;height:17px}.chat-column{height:50dvh;border-bottom:1px solid #ddd}.workbench{height:80dvh}.column-heading{height:45px;min-height:45px}.chat-empty{padding-top:0}.chat-empty h2{font-size:18px}#messages{padding:16px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field.wide{grid-column:1/-1}}

/* —— 展陈预览：3D 视图与空间交互 —— */
.three-mount {width:100%;height:400px;position:relative;border-radius:4px;overflow:hidden;background:#f4f6ef;}
.three-mount canvas {display:block;}
.hall.three {height:420px;}
.stand.conflict {outline:2px solid #ff3b30;box-shadow:0 0 0 3px #ff3b3066;}
.conflict-badge {color:#b3261e;font-size:12px;font-weight:600;background:#fdeceb;padding:4px 10px;border-radius:12px;}
.ok-badge {color:#3f7d52;font-size:12px;font-weight:600;background:#e9f4ec;padding:4px 10px;border-radius:12px;}
.spatial-hint {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;}
.spatial-hint .hint {margin:0;}
.aux-item {position:absolute;transform:translate(-50%,-50%);font-size:10px;padding:3px 7px;background:#fff;border:1px dashed #b59a6b;border-radius:3px;color:#8a6d3b;pointer-events:none;}
.stand.aux-screen {width:40px;height:32px;font-size:8px;background:#e2e9d5;cursor:default;}
.aux-list {margin:8px 0;}
.aux-row {display:grid;grid-template-columns:minmax(0,1fr) 60px 60px 22px;gap:6px;align-items:center;font-size:11px;margin-bottom:6px;}
.aux-row input {padding:2px 0;}
.aux-add {display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
.aux-add .button {font-size:11px;padding:7px 10px;}

/* —— 移植：米制 2D 平面图与碰撞预警 —— */
.hall-svg { display: block; width: 100%; height: clamp(460px, 68vh, 860px); touch-action: none; user-select: none; background: #faf5eb; border-radius: 4px; }
/* 平面视图：画布铺满整块面板，去掉旧版 3D 透视容器尺寸 */
.hall.plan { display: block; min-height: 0; height: auto; padding: 0; background: #faf5eb; border: 0; overflow: hidden; }
.hall.plan .floor { width: 100%; height: auto; border: 0; background: none; box-shadow: none; transform: none; }
.hall.plan .floor:after { content: none; }
.hall-bg { cursor: default; }
.plan-zoom-bar { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: #ffffffee; border: 1px solid #e2dbc9; border-radius: 14px; font-size: 11px; color: #8a7a5c; box-shadow: 0 1px 5px #00000012; }
.plan-zoom-bar span { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.plan-zoom-bar button { border: 0; background: none; color: #9e2a2b; font-size: 11px; cursor: pointer; padding: 0; }
.plan-zoom-bar button:hover { text-decoration: underline; }
.plan-zoom-bar button[hidden] { display: none; }
.booth-node { cursor: grab; }
.booth-node:active { cursor: grabbing; }
.booth-node .rotate-handle { pointer-events: auto; cursor: crosshair; }
.aux-node { cursor: grab; }
/* —— 平面图纸 / 单元分区 —— */
.plan-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.plan-tools .button { font-size: 12px; padding: 8px 14px; }
.plan-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px; border: 1px dashed #ddd3bf; border-radius: 6px; background: #fdfaf3; font-size: 12px; color: #7c6a4d; }
.plan-status b { color: #6b5636; font-weight: 600; }
.plan-status span { color: #9a8b74; }
.plan-status.has-plan { border-style: solid; border-color: #b8cbb6; background: #f4f9f3; }
.plan-status.has-plan b { color: #3f6b4c; }
.plan-status .text-link { margin-left: auto; border: 0; background: none; color: #9e2a2b; font-size: 12px; cursor: pointer; padding: 0; }
.plan-status .text-link:hover { text-decoration: underline; }
.plan-status.stale { border-style: solid; border-color: #e8c68a; background: #fff8e8; color: #8a6216; margin-top: -2px; }
.plan-status.stale b { color: #8a6216; }
.unit-zone-fill { fill: #f6ecd6; fill-opacity: .5; stroke: #c9b48a; stroke-width: 1.4; stroke-dasharray: 7 5; }
.unit-zone-chip { fill: #fffaf0; stroke: #d9c49b; stroke-width: .9; }
.unit-zone-num { font-size: 11px; font-weight: 700; fill: #8a6d3b; }
.unit-zone-name { font-size: 10px; fill: #a58c60; }
.clearance-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-radius: 6px; font-size: 12px; margin-bottom: 10px; }
.clearance-banner.is-safe { background: #edf7f2; border: 1px solid #95ceb0; color: #1e593f; }
.clearance-banner.is-danger { background: #fff2f0; border: 1px solid #ffa39e; color: #a8071a; }
.clearance-banner span { opacity: 0.9; }
.hall.three { height: clamp(460px, 68vh, 860px); }
.three-mount { width: 100%; height: clamp(460px, 68vh, 860px); position: relative; border-radius: 6px; overflow: hidden; background: #14110f; }

/* —— 第 5 步：策展方案评审（总分 + 8 行维度，意见走左侧对话） —— */
.rubric-actions { display: flex; align-items: center; gap: 10px; }
.rubric-actions .button { font-size: 12px; padding: 8px 16px; }
.score-ring.good { border-color: #c9ddc9; color: #2f6b48; }
.score-ring.mid { border-color: #e7dcc0; color: #a07b3a; }
.score-ring.low { border-color: #f1d6cf; color: #a8452f; }
.bar.good span { background: #5c8a63; }
.bar.mid span { background: #b9985a; }
.bar.low span { background: #b6654a; }
.review-hero { display: flex; align-items: center; gap: 20px; padding: 4px 0 20px; border-bottom: 1px solid #eceee9; }
.review-hero-text { min-width: 0; }
.review-hero-text h3 { font-size: 20px; line-height: 1.35; margin: 0 0 7px; }
.review-focus { font-size: 12px; color: #8a6d3b; margin: 0 !important; }
.dim-list { list-style: none; margin: 4px 0 0; padding: 0; }
.dim { padding: 15px 0; border-bottom: 1px dashed #eef0eb; }
.dim:last-child { border-bottom: 0; }
.dim-line { display: flex; align-items: center; gap: 14px; }
.dim-name { flex: 0 0 150px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #33453c; }
.dim-track { flex: 1; height: 6px; border-radius: 4px; background: #f1f3ee; overflow: hidden; }
.dim-track i { display: block; height: 100%; border-radius: 4px; }
.dim-track i.good { background: #5c8a63; }
.dim-track i.mid { background: #b9985a; }
.dim-track i.low { background: #b6654a; }
.dim-score { flex: 0 0 34px; text-align: right; font: 600 16px/1 Inter, "Microsoft YaHei"; font-variant-numeric: tabular-nums; }
.dim-score.good { color: #2f6b48; }
.dim-score.mid { color: #a07b3a; }
.dim-score.low { color: #a8452f; }
.review-hint .term { text-decoration: underline dotted #b9c0b6; text-underline-offset: 3px; cursor: help; }
.review-hint { font-size: 11.5px; line-height: 1.7; color: #8b9690; background: #f8f9f6; border: 1px solid #eaede7; border-radius: 6px; padding: 9px 12px; margin: 16px 0 0 !important; }
@media (max-width: 760px) { .dim-name { flex-basis: 104px; } .dim-line { gap: 9px; } }
