:root {
  color-scheme: light;
  --ink: #211d19;
  --muted: #665e55;
  --paper: #fbf8f2;
  --line: #e2d9cd;
  --orange: #ff6a13;
  --orange-dark: #a03706;
  --orange-pale: #ffe3ce;
  --topbar-height: 68px;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: #ece8df; color: var(--ink); }
button, textarea { font: inherit; }
button, a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c7511c; outline-offset: 3px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 25; top: 8px; left: 8px; padding: 12px; background: white; color: var(--ink); }

.topbar {
  height: var(--topbar-height); padding: 0 clamp(16px, 3vw, 50px); background: #fdfbf7;
  border-bottom: 1px solid #dcd4c8; position: relative; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; width: 164px; height: 52px; }
.brand img { width: 100%; height: auto; mix-blend-mode: multiply; margin-inline-start: -11px; }
.topbar-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(12px, 2.4vw, 40px); }
.topbar-nav a {
  display: flex; align-items: center; border-bottom: 2px solid transparent; text-decoration: none;
  color: #54493f; font-size: 13px; font-weight: 710; white-space: nowrap;
}
.topbar-nav a:hover { color: var(--ink); }
.topbar-nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--ink); }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 13px; }
.review-button {
  min-height: 39px; display: flex; gap: 9px; align-items: center; padding: 5px 9px 5px 12px;
  border: 1px solid #625346; border-radius: 6px; background: transparent; font-weight: 720; font-size: 13px; white-space: nowrap;
}
.review-button:hover { background: #eee7dc; }
.review-count {
  min-width: 21px; min-height: 21px; display: grid; place-items: center;
  background: var(--orange-pale); color: #823000; border-radius: 4px; font-variant-numeric: tabular-nums;
}

.workspace {
  --workspace-height: max(655px, calc(100svh - var(--topbar-height) - 46px));
  width: min(1720px, 100%); margin: 0 auto; padding: 22px 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(310px, 1fr); gap: 18px;
}
.scene {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0; height: var(--workspace-height); background: #211e19; color: #faf4e9;
  overflow: hidden; border: 1px solid #392f26; border-radius: 15px;
}
.scene-header {
  background: #26211b; position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 19px 20px 16px; border-bottom: 1px solid #554536;
}
.scene-lift { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; color: #ffbb8d; font-size: 11px; font-weight: 720; letter-spacing: .06em; }
.scene-lift > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.scene-header h1 { margin: 0; font-size: clamp(23px, 2.4vw, 39px); line-height: 1.02; letter-spacing: -.05em; font-weight: 780; }
.scene-project { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-bottom: 8px; }
.scene-project .scene-lift { margin: 0; }
.manufacturer-trigger {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; min-height: 30px; padding: 4px 8px;
  border: 1px solid #6f5641; border-radius: 5px; background: #312820; color: #ebd7c4; font-size: 11px; text-align: left;
}
.manufacturer-trigger:hover { background: #472f20; border-color: #be805b; }
.manufacturer-trigger strong { color: #fff5e9; font-size: 11px; }
.manufacturer-chevron {
  width: 7px; height: 7px; flex: 0 0 7px; margin: -3px 2px 0 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.locations { flex-shrink: 0; display: flex; gap: 4px; padding: 4px; border-radius: 7px; background: #15120f; }
.location-button {
  border: 1px solid transparent; border-radius: 5px; min-height: 35px; padding: 6px 8px; white-space: nowrap;
  background: transparent; color: #eaddcd; font-size: 11px; font-weight: 700;
}
.location-button:hover { background: #3d2e22; }
.location-button[aria-pressed="true"] { background: #4b2b19; border-color: #7f5034; color: #ffd1b1; }
.model-stage {
  position: relative; isolation: isolate; min-width: 0; min-height: 430px; overflow: hidden;
  background: radial-gradient(ellipse at 46% 40%, #3b322a, #201b17 60%, #161311 100%);
}
.model-canvas { position: absolute; inset: 0; }
.model-canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.model-canvas canvas:active { cursor: grabbing; }
.model-message {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); width: max-content; max-width: calc(100% - 45px);
  background: #262019dd; padding: 11px 13px; border: 1px solid #8f7054; border-radius: 6px;
  font-size: 13px; line-height: 1.4; color: #f3dec9; text-align: center; pointer-events: none; overflow-wrap: anywhere;
}
.reset-view {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 7px; align-items: center;
  border: 1px solid #9d866c; border-radius: 5px; background: #282019df; color: #fcf1e3;
  min-height: 34px; padding: 4px 8px; font-size: 11px; font-weight: 670;
}
.reset-view:hover:not(:disabled) { background: #563c29; }
.reset-view:disabled { opacity: .55; }
.reset-view span:first-child { font-size: 18px; line-height: 1; }
.model-hint {
  position: absolute; bottom: 10px; left: 14px; margin: 0; max-width: calc(100% - 28px);
  border-radius: 4px; padding: 5px 7px; font-size: 11px; color: #f3e2d0; background: #211914d6; pointer-events: none;
}
.model-hint-touch { display: none; }
@media (pointer: coarse) {
  .model-hint-pointer { display: none; }
  .model-hint-touch { display: block; }
}
.scene-footer {
  display: flex; gap: 12px; align-items: center; min-width: 0;
  padding: 12px 14px; background: #26211b; border-top: 1px solid #554536;
}
.equipment-label { color: #d9bfa7; font-size: 11px; font-weight: 700; white-space: nowrap; }
.equipment-tabs { min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px 3px; }
.equipment-tab {
  flex-shrink: 0; min-height: 34px; padding: 5px 8px; border-radius: 5px; border: 1px solid #776451;
  background: #2a2119; color: #faecdb; font-size: 11px; font-weight: 650; white-space: nowrap;
}
.equipment-tab:hover { background: #4d3524; }
.equipment-tab[aria-pressed="true"] { border-color: var(--orange); background: #472b1b; color: #ffbf91; }

.tools-panel {
  min-width: 0; min-height: min(var(--workspace-height), 540px);
  background: var(--paper); border: 1px solid #d6ccbf; border-radius: 15px; overflow: hidden;
  display: flex; flex-direction: column; height: var(--workspace-height);
}
.panel-switch {
  display: flex; gap: 6px; align-items: center; padding: 9px 12px;
  border-bottom: 1px solid var(--line); background: #f4eee5;
}
.panel-switch button {
  min-height: 35px; border: 1px solid transparent; background: transparent; border-radius: 6px;
  padding: 4px 10px; color: #675748; font-size: 12px; font-weight: 730;
}
.panel-switch button:hover { background: #eee4d8; }
.panel-switch button[aria-pressed="true"] { border-color: #dbccbc; background: #fffaf3; color: #312115; }
.equipment-editor { padding: clamp(16px, 2.1vw, 29px); overflow: auto; }
.eyebrow {
  margin: 0 0 7px; color: var(--orange-dark); font-size: 11px; font-weight: 760; letter-spacing: .045em;
}
.editor-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 39px); line-height: 1.04; letter-spacing: -.05em; font-weight: 785; }
.equipment-detail { margin: 9px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.field-label { display: block; margin: 0 0 8px; font-size: 13px; color: #382a1d; font-weight: 730; }
.equipment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.option {
  min-width: 0; min-height: 42px; padding: 5px 8px; text-align: left;
  border: 1px solid #d3c2b0; border-radius: 6px; background: #fffdf9; color: #31251b;
  font-size: 13px; font-weight: 700; line-height: 1.25;
}
.option:hover { background: #ffefe1; }
.option[aria-pressed="true"] { border-color: #de692e; background: #ffe3ce; color: #722c0c; }
.notes-label { margin-top: 22px; }
#equipment-note {
  width: 100%; resize: vertical; min-height: 85px; max-height: 235px; line-height: 1.46;
  padding: 10px 11px; border: 1px solid #d3c2b0; border-radius: 6px; background: #fffdf9; color: var(--ink); font-size: 14px;
}
#equipment-note::placeholder { color: #786b5f; }
.save-button {
  width: 100%; min-height: 44px; margin-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 12px; border: 0; border-radius: 6px; background: var(--orange); color: #28180f; font-weight: 780; font-size: 13px;
}
.save-button:hover:not(:disabled) { background: #ff8244; }
.save-button:disabled { background: #e9ded1; color: #66574a; }
.editor-footer { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 12px; }
.editor-footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.38; }
.ask-button {
  border: 0; background: transparent; color: #85380f; padding: 4px 0; min-height: 31px; font-size: 11px;
  display: flex; gap: 5px; align-items: center; font-weight: 750;
}
.ask-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.agent-panel { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.open-assistant { font-size: 11px; font-weight: 760; color: #85380f; text-decoration: none; }
.open-assistant:hover { text-decoration: underline; }
.examples { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.checks { margin-top: 8px; border: 1px solid #e1d6c8; border-radius: 7px; padding: 7px 9px; background: #fffdf8; font-size: 12px; }
.checks summary { cursor: pointer; font-weight: 750; color: #783817; }
.check { margin: 7px 0 3px; padding: 5px 0 0; border-top: 1px solid #eee4d7; overflow-wrap: anywhere; }
.check p { margin: 4px 0 0; color: #5e5144; line-height: 1.45; }

body[data-page="assistant"] .workspace {
  width: min(1180px, 100%); grid-template-columns: minmax(220px, .46fr) minmax(0, 1fr);
}
.project-context { background: #f4eee4; border: 1px solid #d9cbbb; border-radius: 15px; padding: 20px; align-self: start; }
.context-heading h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.045em; }
.context-heading p:not(.eyebrow) { margin: 0; color: #685748; font-size: 12px; line-height: 1.45; }
.context-entries { margin: 16px 0 12px; border-top: 1px solid #ddcdbc; }
.context-entry {
  padding: 9px 0; border-bottom: 1px solid #ddcdbc; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 4px 8px; font-size: 12px; line-height: 1.35;
}
.context-entry span { color: #863509; }
.context-empty { font-size: 12px; color: #6a5846; }
.context-configure {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; min-height: 38px; align-items: center;
  padding: 7px 9px; border-radius: 6px; border: 1px solid #ab896a; text-decoration: none;
  color: #5c321b; background: #fbf6ec; font-size: 12px; font-weight: 750;
}
.context-configure:hover { background: #ffe5d1; }
.agent-header {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  padding: 16px 16px 13px; border-bottom: 1px solid var(--line);
}
.agent-mark {
  width: 35px; height: 35px; border-radius: 8px;
  display: grid; place-items: center; background: var(--orange-pale); color: #a13b06; font-size: 22px;
}
.agent-header h2 { margin: 0; font-size: 19px; font-weight: 780; letter-spacing: -.045em; }
.agent-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.2; }
.icon-button {
  width: 34px; height: 34px; border-radius: 6px; border: 0; background: transparent;
  font-size: 24px; font-weight: 400; line-height: 1;
}
.icon-button:hover { background: #e8dfd4; }
.agent-scroll {
  position: relative; min-height: 70px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-color: #b5a495 transparent; padding: 15px 16px 13px;
}
.agent-intro { margin: 0 0 11px; font-size: 13px; line-height: 1.55; color: #42382f; }
.example {
  display: inline-flex; gap: 12px; align-items: center; min-height: 34px; padding: 5px 9px;
  background: #f9eee2; border: 1px solid #ead6c6; border-radius: 5px; color: #873500;
  font-size: 12px; font-weight: 720;
}
.example:hover { background: #ffdfc8; }
.conversation-turn { margin-top: 13px; display: flow-root; overflow-wrap: anywhere; }
.message-user, .message-agent, .message-error { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; }
.message-user {
  border-radius: 9px 9px 2px 9px; background: #eae3d9; margin-left: 22px; padding: 9px 11px;
}
.message-agent {
  padding: 9px 11px; background: #fffdfa; border: 1px solid var(--line); border-radius: 9px 9px 9px 2px;
}
.message-pending { color: #814015; background: #fff2e7; }
.message-error { color: #922a23; padding: 8px 0; }
.message-files { margin: 0 0 7px 23px; font-size: 10px; color: var(--muted); }
.draft-heading { margin: 12px 0 6px; font-size: 11px; font-weight: 760; color: #783817; }
.draft-card {
  border: 1px solid #e6c5ad; border-radius: 8px; background: #fffaf5;
  padding: 10px; margin-bottom: 7px;
}
.draft-title { display: flex; gap: 5px 8px; flex-wrap: wrap; align-items: baseline; line-height: 1.25; }
.draft-title strong { font-size: 13px; }
.draft-title span { color: #8a3407; font-size: 11px; font-weight: 720; }
.draft-note { color: #5d4f43; line-height: 1.45; font-size: 11px; margin: 5px 0; }
.draft-controls { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.apply-button, .send-button, .dialog-done {
  border: 0; border-radius: 5px; background: var(--orange); color: #23140a; font-weight: 760;
}
.apply-button { min-height: 31px; padding: 5px 9px; font-size: 11px; }
.apply-button:hover, .send-button:not(:disabled):hover, .dialog-done:hover { background: #ff873f; }
.dismiss-button, .scope-remove {
  border: 0; background: transparent; color: var(--muted); padding: 5px;
  min-height: 34px; font-size: 11px; text-decoration: underline; text-underline-offset: 2px;
}
.dismiss-button:hover, .scope-remove:hover { color: #92362a; }
.draft-status { display: inline-block; margin-top: 5px; color: #69503d; font-size: 11px; font-weight: 680; }

.agent-composer { border-top: 1px solid var(--line); padding: 11px 15px; margin-top: auto; }
.agent-composer form { border-radius: 8px; border: 1px solid #c9baab; background: #fffcf8; }
.agent-composer form:focus-within { border-color: #d67c47; }
#message {
  display: block; width: 100%; min-height: 46px; max-height: 175px; resize: vertical;
  border: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--ink);
  padding: 9px 10px 5px; line-height: 1.38; font-size: 13px;
}
#message:focus { outline: none; }
#message::placeholder { color: #796c60; }
.compose-actions { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 4px 5px 5px; }
.attach-button {
  min-height: 32px; display: flex; gap: 5px; align-items: center; padding: 4px 6px;
  color: #5e4b3b; font-size: 11px; font-weight: 700; cursor: pointer;
}
.attach-button:hover { color: #a53600; }
.attach-button:has(+ #equipment-file:focus-visible) { outline: 2px solid #ff8b43; outline-offset: 1px; }
.plus { font-size: 15px; color: var(--orange-dark); }
.send-button { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 9px; font-size: 11px; }
.send-button:disabled { color: #66594e; background: #e8dfd3; }
.send-button span[aria-hidden] { font-size: 14px; }
.agent-note { margin: 7px 0 0; font-size: 10px; color: #6b5d50; line-height: 1.35; }
.attachments:empty { display: none; }
.attachments { display: grid; gap: 5px; margin-bottom: 7px; max-height: 112px; overflow: auto; }
.attachment {
  min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 1px solid #e1d5c8; border-radius: 5px; background: #f1eae0; padding: 5px 7px;
}
.attachment-info { min-width: 0; display: grid; gap: 2px; }
.attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 680; font-size: 11px; }
.attachment-state { color: var(--muted); font-size: 10px; }
.attachment-error .attachment-state { color: #922a23; }
.attachment-remove { min-width: 28px; min-height: 28px; border-radius: 4px; border: 0; background: transparent; font-size: 16px; }
.attachment-remove:hover { background: #e5d8ca; }

#scope-review {
  width: min(660px, calc(100% - 24px)); max-height: calc(100% - 30px);
  padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 70px #0f090690; overflow: auto;
}
#scope-review::backdrop { background: #16110ccc; backdrop-filter: blur(4px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 21px 23px 12px; }
.dialog-lift { margin: 0 0 4px; color: var(--orange-dark); font-size: 11px; font-weight: 770; }
.dialog-header h2 { margin: 0; font-size: 25px; letter-spacing: -.045em; }
.dialog-intro { margin: 0; color: var(--muted); padding: 0 23px 13px; font-size: 13px; line-height: 1.5; }
#scope-list { margin: 0 23px; border-top: 1px solid var(--line); }
.scope-empty { padding: 22px 5px; font-size: 13px; color: var(--muted); }
.scope-row {
  display: grid; grid-template-columns: minmax(130px, 1fr) minmax(88px, .55fr) auto;
  align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.scope-row h3 { margin: 0; font-size: 14px; }
.scope-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.42; overflow-wrap: anywhere; }
.scope-row .scope-note { color: #54483d; font-size: 12px; }
.scope-state strong { color: #913d0d; font-size: 12px; }
.dialog-footer { padding: 17px 23px; display: flex; justify-content: flex-end; }
.dialog-done { min-height: 38px; padding: 7px 13px; font-size: 13px; }
.notice {
  position: fixed; z-index: 6; bottom: 23px; left: 50%; transform: translate(-50%, 20px);
  width: max-content; max-width: calc(100% - 30px); border: 1px solid #8b552f;
  background: #2d1d14; color: #fff7eb; border-radius: 7px;
  opacity: 0; padding: 8px 13px; pointer-events: none; font-size: 12px; transition: opacity .18s, transform .18s;
}
.notice-visible { opacity: 1; transform: translate(-50%, 0); }


.agent-welcome { padding: 9px 0; }
body[data-page="assistant"] .agent-welcome { padding: 15px 0 0; }
body[data-page="assistant"] .agent-intro { max-width: 510px; font-size: 15px; }
body[data-page="assistant"] .agent-header { padding: 17px 20px 15px; }
body[data-page="assistant"] .agent-header h2 { font-size: 23px; }
body[data-page="assistant"] .agent-scroll { padding: 14px 20px 16px; }
body[data-page="assistant"] .agent-composer { padding: 13px 20px; }
body[data-page="assistant"] .message-user { margin-left: 56px; }
body[data-page="assistant"] .message-agent { margin-right: 34px; }
body[data-page="assistant"] .message-user, body[data-page="assistant"] .message-agent { font-size: 14px; }

.context-manufacturer-trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px;
  padding: 8px 10px; min-height: 42px; border: 1px solid #d4c1ac; border-radius: 6px;
  background: #fcf8f1; color: #685343; text-align: left; font-size: 11px;
}
.context-manufacturer-trigger:hover { border-color: #bb7c52; background: #fff2e6; }
.context-manufacturer-name { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.context-manufacturer-name strong { color: #39271b; font-size: 12px; overflow-wrap: anywhere; }

.manufacturer-dialog {
  width: min(640px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0;
  border: 1px solid #d5c7b5; border-radius: 15px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 75px #1109059c; overflow: auto;
}
.manufacturer-dialog::backdrop { background: #17110bcc; backdrop-filter: blur(4px); }
.manufacturer-dialog-heading { padding: 23px 24px 16px; }
.manufacturer-dialog-lift {
  display: flex; align-items: center; gap: 7px; margin: 0 0 7px; color: #8b350f; font-size: 11px; font-weight: 760; letter-spacing: .04em;
}
.manufacturer-dialog-lift > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.manufacturer-dialog-heading h2 { margin: 0; font-size: clamp(22px, 5.5vw, 30px); line-height: 1.09; letter-spacing: -.04em; }
#manufacturer-intro { max-width: 490px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.46; }
.manufacturer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 24px 17px; }
.manufacturer-option {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 3px 8px;
  min-height: 54px; min-width: 0;
  padding: 8px 10px; border: 1px solid #d6c6b5; border-radius: 7px;
  background: #fffcf8; color: #332417; text-align: left; font-size: 13px; font-weight: 730;
}
.manufacturer-option::after {
  content: ''; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 13px; height: 13px;
  border: 1px solid #a59383; border-radius: 50%; background: #fffdf9;
}
.manufacturer-option:hover { border-color: #c5865f; background: #fff2e6; }
.manufacturer-option[aria-pressed="true"] { border-color: #ce622e; background: #ffe4cf; color: #5e290f; }
.manufacturer-option[aria-pressed="true"]::after { border: 4px solid #b9440b; background: #fff9f1; }
.manufacturer-short {
  grid-column: 1; grid-row: 2; min-width: 0; color: #6e5848; font-size: 10px; font-weight: 650; overflow-wrap: anywhere;
}
.manufacturer-option[aria-pressed="true"] .manufacturer-short { color: #6d2b11; }
.manufacturer-name { grid-column: 1; grid-row: 1; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.manufacturer-legacy {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 24px 15px; padding: 9px 10px;
  border-radius: 6px; background: #f3eade; color: #614a39; font-size: 12px; line-height: 1.4;
}
.manufacturer-legacy input { flex: 0 0 auto; margin: 1px 0 0; accent-color: #ae400c; }
.manufacturer-dialog-footer {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  border-top: 1px solid var(--line); background: #f5efe6; padding: 13px 24px;
}
.manufacturer-cancel, .manufacturer-continue {
  min-height: 39px; padding: 7px 11px; border-radius: 6px; font-size: 13px; font-weight: 730;
}
.manufacturer-cancel { border: 1px solid #cbb9a8; background: #fffaf4; color: #523b2b; }
.manufacturer-cancel:hover { background: #f2e7da; }
.manufacturer-continue {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid transparent; background: var(--orange); color: #2c1a10;
}
.manufacturer-continue:hover:not(:disabled) { background: #ff8544; }
[dir="rtl"] .manufacturer-continue [aria-hidden="true"] { transform: scaleX(-1); }
.manufacturer-continue:disabled { background: #e8ddd0; color: #6c5b4d; }
.scope-manufacturer { margin: 8px 0 0; color: #84370f; font-size: 12px; font-weight: 730; }

@media (max-width: 1050px) {
  .scene-header { align-items: flex-start; flex-direction: column; }
  .workspace { gap: 12px; padding: 14px 15px 16px; }
}
@media (max-width: 760px) {
  :root { --topbar-height: 86px; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 52px 33px; column-gap: 8px; row-gap: 0; padding: 0 10px; }
  .brand { width: min(116px, 100%); height: 41px; }
  .brand img { margin-inline-start: -6px; }
  .topbar-nav { grid-row: 2; grid-column: 1 / -1; align-self: stretch; gap: 25px; }
  .topbar-nav a { font-size: 12px; }
  .topbar-actions { grid-row: 1; grid-column: 2; gap: 5px; }
  .review-button { min-height: 35px; padding: 4px 5px 4px 8px; font-size: 12px; }
  .workspace, body[data-page="assistant"] .workspace {
    grid-template-columns: minmax(0, 1fr); padding: 10px 9px 12px; gap: 10px;
  }
  .scene { height: auto; grid-template-rows: auto clamp(280px, 83vw, 470px) auto; border-radius: 10px; }
  .scene-header { padding: 12px 11px 10px; }
  .scene-header h1 { font-size: 27px; }
  .location-button { min-height: 36px; padding-inline: 7px; }
  .model-stage { min-height: 0; }
  .model-hint { bottom: 6px; left: 6px; font-size: 10px; }
  .scene-footer { padding: 7px; gap: 5px; }
  .equipment-label { display: none; }
  .equipment-tab { min-height: 37px; }
  .tools-panel { min-height: 430px; height: auto; border-radius: 10px; }
  body[data-page="assistant"] .tools-panel { grid-row: 1; min-height: min(640px, calc(100svh - 108px)); height: max(530px, calc(100svh - 108px)); }
  .agent-panel { min-height: 370px; max-height: 76svh; }
  body[data-page="assistant"] .agent-panel { max-height: none; }
  .equipment-editor { padding: 16px; }
  #equipment-note, #message { font-size: 16px; }
  .dialog-header, .dialog-intro, .dialog-footer { padding-left: 15px; padding-right: 15px; }
  #scope-list { margin: 0 15px; }
  .scope-row { grid-template-columns: minmax(0, 1fr) minmax(67px, .6fr) auto; gap: 7px; }
  .scope-row h3 { font-size: 13px; }
  .manufacturer-dialog { width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .manufacturer-dialog-heading { padding: 17px 14px 13px; }
  .manufacturer-options { gap: 6px; padding: 0 14px 14px; }
  .manufacturer-option { column-gap: 6px; min-height: 50px; padding: 6px 7px; font-size: 12px; }
  .manufacturer-option::after { width: 12px; height: 12px; }
  .manufacturer-legacy { margin: 0 14px 12px; }
  .manufacturer-dialog-footer { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
