:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #252b28; background: #f6f7f5; font-size: 14px; line-height: 1.6;
  --ink: #252b28; --muted: #68716b; --line: #e4e8e1; --green: #526443;
  --soft: #eef2e9; --amber: #98641f; --red: #ab423d; --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-weight: 550; cursor: pointer; transition: background .16s, border-color .16s; }
button:hover { background: #f3f5ef; border-color: #a9b79e; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--green); border-color: var(--green); color: white; }
button.primary:hover { background: #3e5033; }
button.dangerous-start { color: var(--red); border-color: #dfbbb8; background: #fff9f8; }
button.dangerous-start:disabled { color: #786d6a; background: #f3f1ef; }
button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a4b48d; outline-offset: 3px; }
input, textarea, select { display: block; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #d9dfd6; border-radius: 8px; background: #fff; color: var(--ink); }
/* Keep the native menu and keyboard behavior; normalize the closed control. */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; color-scheme: light;
  min-height: 44px; line-height: 1.5; padding: 10px 38px 10px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2368716b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
select:not(:disabled):hover { border-color: #a9b79e; }
select:disabled { background-color: #f2f4ef; color: #7b837b; cursor: not-allowed; opacity: 1; }
select option, select optgroup { color: #252b28; background: #fff; }
select option:disabled { color: #7b837b; }
@media (forced-colors: active) {
  select:not([multiple]):not([size]) { -webkit-appearance: auto; appearance: auto; background-image: none; }
}
input::placeholder, textarea::placeholder { color: #7b837b; }
input[type=checkbox] { display: inline-block; width: 16px; min-height: 16px; accent-color: var(--green); vertical-align: middle; margin-right: 7px; }
textarea { resize: vertical; min-height: 126px; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; background: #fafbf9; }
label { display: block; color: #4b554e; font-size: 13px; font-weight: 550; margin: 15px 0 0; }
label input, label select, label textarea { margin-top: 6px; font-weight: 400; }
p { margin: 8px 0 16px; }
h1, h2, h3 { margin: 0; line-height: 1.35; letter-spacing: -.025em; }
h1 { font-size: 29px; font-weight: 680; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
a { color: var(--green); text-underline-offset: 3px; }
small, .muted { color: var(--muted); }
code { font: 12px/1.7 ui-monospace, SFMono-Regular, monospace; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 240px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 8px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 222px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; padding: 28px 16px 18px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 9px 29px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #eef0e5; border-radius: 11px; color: #617047; }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 1.9; }
.brand strong { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -.4px; }
.brand small { font-size: 10px; letter-spacing: 2.6px; }
.workspace-label { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; font-size: 12px; }
.workspace-label span { display: flex; gap: 7px; align-items: center; }
.workspace-label > span:first-child { min-width: 0; }
#active-project-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.nav-label { color: #717b71; font-size: 10px; letter-spacing: 1.3px; margin: 18px 12px 9px; }
.nav-button { display: flex; justify-content: flex-start; width: 100%; gap: 12px; color: #667065; border: 0; border-radius: 7px; background: transparent; margin: 4px 0; min-height: 43px; padding: 10px 13px; font-size: 13px; font-weight: 500; }
.nav-button:hover { background: #f5f7f2; }
.nav-button[aria-current=page] { color: #445b32; background: #edf2e7; font-weight: 650; }
.nav-button[aria-current=page]::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #607a43; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 22px 10px 0; }
.local-note { font-size: 11px; margin: 16px 0 0; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #6c8657; display: inline-block; flex-shrink: 0; }
.app-main { margin-left: 222px; }
.topbar { height: 70px; padding: 0 36px; border-bottom: 1px solid var(--line); background: #fcfdfb; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #727b73; }
.breadcrumbs strong { color: var(--ink); font-weight: 550; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.search-trigger { min-height: 34px; width: 215px; font-weight: 400; justify-content: flex-start; font-size: 12px; background: #f5f7f2; border-color: var(--line); color: #737c71; }
kbd { font: 10px/1.4 inherit; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: auto; color: var(--muted); }
.avatar { border-radius: 50%; width: 31px; height: 31px; display: grid; place-items: center; font-size: 11px; color: #596445; background: #e8ecdf; border: 1px solid #dce2d1; }
.connection { display: flex; gap: 7px; align-items: center; font-size: 11px; color: #5b665b; white-space: nowrap; }
.connection.offline .dot { background: #b87339; }
.page-content { max-width: 1620px; padding: 30px 36px 48px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.page-heading p { margin: 8px 0 0; font-size: 13px; }
.eyebrow { color: #718163; font-size: 10px; letter-spacing: 1.7px; font-weight: 600; display: block; margin-bottom: 9px; }
.heading-actions { display: flex; gap: 9px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; }
.next-card { position: relative; padding: 27px 29px; border: 1px solid #dce3d0; border-radius: var(--radius); background: #f0f3e9; display: flex; flex-direction: column; min-height: 264px; }
.section-kicker { display: flex; align-items: center; gap: 7px; color: #596c47; font-size: 11px; font-weight: 650; letter-spacing: .2px; }
.next-card h2 { font-size: 25px; margin-top: 20px; }
.next-card p { color: #66735d; font-size: 13px; margin: 10px 0 16px; max-width: 560px; }
.next-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.task-meta { font-size: 11px; color: #637157; display: flex; gap: 14px; }
.task-meta span { display: flex; align-items: center; gap: 5px; }
.robot-card { position: relative; border: 1px solid #20281d; background: #000; color: #edf1e7; border-radius: var(--radius); overflow: hidden; min-height: 264px; }
.robot-card-header { padding: 20px 20px 0; display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 2; }
.robot-card-header strong { font-size: 14px; }
.robot-card-header small { display: block; font-size: 9px; color: #a4ae9a; margin-top: 5px; letter-spacing: .8px; }
.robot-image { width: 435px; height: 325px; object-fit: cover; object-position: center; position: absolute; right: -75px; top: -6px; }
.robot-card-bottom { position: absolute; left: 20px; bottom: 19px; z-index: 2; font-size: 11px; line-height: 1.85; }
.robot-card-bottom span { display: block; color: #a4ae9a; font-size: 10px; }
.robot-card .pill { color: #d1dbbd; background: #2c3424; }
.pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 500; background: #f0f2ef; color: #657061; line-height: 1.6; }
.pill.success, .pill.passed, .pill.confirmed, .pill.verified { color: #466332; background: #edf4e6; }
.pill.failed, .pill.interrupted, .pill.error { color: #a4433e; background: #faeeec; }
.pill.needs_confirmation, .pill.insufficient_evidence, .pill.warning { color: #92631f; background: #fbf2df; }
.pill.running, .pill.ready { color: #436a7f; background: #eaf2f5; }
.metrics-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 27px; padding: 21px 2px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 0 23px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.stat:last-child { border: 0; }
.stat-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: #f5f7f1; color: #778665; flex-shrink: 0; }
.stat-icon.amber { color: #a68349; background: #fbf6ec; }
.stat small { display: block; font-size: 11px; }
.stat strong { display: block; font-size: 25px; line-height: 1.5; font-weight: 620; letter-spacing: -.5px; }
.stat strong em { font-size: 12px; font-style: normal; color: #6f796c; font-weight: 400; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.panel-header { padding: 20px 23px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.panel-header h2 { font-size: 15px; }
.panel-header small { font-size: 11px; }
.panel-header button { padding: 0; min-height: 28px; font-size: 11px; }
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 9px 19px 25px; }
.journey-step { position: relative; border: 0; padding: 0 8px; background: transparent; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; border-radius: 8px; font-size: 11px; }
.journey-step:hover { background: #f6f8f2; }
.journey-step::after { content: ''; position: absolute; top: 16px; left: 48px; width: calc(100% - 50px); height: 1px; background: #e2e7dc; }
.journey-step:last-child::after { display: none; }
.step-number { display: grid; place-items: center; border: 1px solid #dfe4d8; border-radius: 50%; color: #7d8974; height: 32px; width: 32px; font: 11px ui-monospace, monospace; background: #fafbf8; }
.journey-step.current .step-number { color: #fff; background: #63784d; border-color: #63784d; }
.journey-step small { font-size: 10px; font-weight: 400; color: #687460; }
.overview-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 23px; }
.task-row { display: flex; text-align: left; border: 0; border-top: 1px solid #eff1ec; border-radius: 0; padding: 15px 22px; gap: 13px; width: 100%; font-weight: 400; }
.task-row .row-icon { display: grid; place-items: center; width: 31px; height: 31px; color: #7d886e; border-radius: 8px; background: #f4f6f0; flex-shrink: 0; }
.task-row .row-text { flex: 1; min-width: 0; }
.task-row strong { font-size: 12px; display: block; font-weight: 550; }
.task-row small { font-size: 10px; display: block; margin-top: 3px; white-space: normal; }
.task-row > .icon { width: 15px; color: #7a8471; }
.empty-state { margin: 10px 22px 22px; padding: 22px 12px; text-align: center; color: #74806b; font-size: 12px; border: 1px dashed #dce3d4; border-radius: 9px; }
.empty-state strong { display: block; color: #4e5a48; margin: 8px 0; }
.footer-note { font-size: 10px; color: #78826f; display: flex; justify-content: space-between; gap: 10px; padding: 22px 0 0; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.workspace-layout > * { min-width: 0; }
.view-panel { min-width: 0; }
.view-panel > .card { margin-bottom: 20px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card > h2 { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; }
.card > h2 .icon { color: #768960; }
.card > p { font-size: 12px; line-height: 1.8; }
.card > button { margin: 16px 7px 0 0; }
.download-link { display: inline-block; margin: 16px 0 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; text-decoration: none; }
.download-link:hover { background: #f2f6eb; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.form-grid > * { min-width: 0; }
.advanced { margin: 20px 0 3px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdfb; padding: 0 14px 12px; }
.advanced:not([open]) { padding-bottom: 0; }
summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 12px; color: #68755b; }
.advanced label { margin-top: 10px; }
.component-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; margin-bottom: 13px; }
.section-title { margin: 25px 0 3px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 13px; }
.inline-note { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; padding: 13px 15px; border-radius: 8px; background: #f6f8f1; color: #687858; margin: 15px 0; line-height: 1.8; }
.inline-note.warning { background: #fbf7ed; color: #886d3e; }
.context-rail { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 17px; }
.context-rail .card { padding: 20px; }
.rail-kicker { font-size: 10px; letter-spacing: 1px; color: #76866a; margin-bottom: 12px; }
.context-rail h3 { font-size: 14px; margin-bottom: 12px; }
.context-rail p, .context-rail li { color: #66705f; font-size: 12px; line-height: 1.85; }
.context-rail ol, .context-rail ul { padding-left: 20px; margin: 10px 0 15px; }
.context-rail li { margin: 9px 0; padding-left: 3px; }
.context-rail .acceptance { border-top: 1px solid var(--line); padding-top: 14px; }
.status { white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.8 ui-monospace, SFMono-Regular, monospace; background: #f5f7f2; color: #4f5d48; padding: 14px; border: 1px solid #e6eadf; border-radius: 8px; max-height: 390px; overflow: auto; min-width: 0; }
.result-summary { font-size: 12px; color: #526046; line-height: 1.8; overflow-wrap: anywhere; }
.result-summary .pill { margin-bottom: 9px; }
.result-summary ul { padding-left: 18px; margin: 9px 0; }
.metric-chart { width: 100%; height: 145px; background: #f6f8f1; border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; }
.toast { position: fixed; bottom: 25px; left: calc(50% + 111px); transform: translateX(-50%); padding: 11px 19px; border: 1px solid #d7e0cb; border-radius: 10px; background: #fff; box-shadow: 0 7px 25px #26321818; z-index: 60; font-size: 12px; max-width: 75vw; display: flex; align-items: center; gap: 11px; }
.toast.error { border-color: #e0bfb9; color: #983f39; }
.toast button { min-height: 24px; padding: 0 3px; }
.list-select { margin-top: 8px; }
.result-card { border-left: 3px solid #87996a; }
.context-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.context-links button { font-size: 11px; padding: 6px 9px; min-height: 32px; }
.mobile-toggle, .mobile-scrim { display: none; }
.all-task-list { margin-top: 20px; }
.notice-bar { margin-bottom: 18px; }
.notice-bar button { margin-left: auto; font-size: 11px; min-height: 28px; padding: 2px 9px; }
.workspace-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 17px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.workspace-tabs button { min-height: 36px; border-color: transparent; background: transparent; font-size: 12px; color: #68735f; padding: 8px 13px; }
.workspace-tabs button[aria-selected=true] { background: #eaf0e2; color: #435b30; font-weight: 650; }
.workspace-tabs button:hover { background: #f0f4e9; }
.view-panel > .inline-note { margin-top: 0; }
@media(min-width:1380px) {
  .workspace-layout { grid-template-columns: 180px minmax(0,1fr) 235px; gap: 20px; }
  .workspace-layout > div { grid-column: 2; grid-row: 1; }
  .workspace-layout .context-rail { display: contents; }
  .workspace-layout #task-context { grid-column: 1; grid-row: 1; position: sticky; top: 20px; padding: 17px; }
  .workspace-layout .result-card { grid-column: 3; grid-row: 1; position: sticky; top: 20px; padding: 18px; }
  .workspace-layout .context-rail h3 { font-size: 13px; }
  .workspace-layout .context-rail .rail-kicker { font-size: 9px; letter-spacing: .4px; }
  .workspace-layout .context-rail .inline-note { padding: 10px; }
}
@media(min-width:1600px) { .page-content { padding-top: 40px; } .hero-grid { grid-template-columns: 1.65fr 1fr; } .next-card { min-height: 285px; } .robot-image { width: 345px; height: 277px; top: 22px; right: 30px; } }
@media(max-width:1200px) { .sidebar { width: 196px; padding-left: 12px; padding-right: 12px; } .app-main { margin-left: 196px; } .page-content { padding: 25px; } .topbar { padding: 0 25px; } .hero-grid { grid-template-columns: 1.3fr 1fr; } .task-meta { gap: 7px; font-size: 10px; } .stat { padding: 0 15px; gap: 9px; } .workspace-layout { grid-template-columns: minmax(0, 1fr) 245px; } .search-trigger { width: 180px; } .robot-image { right: -23px; width: 260px; } .next-card { padding: 23px; } .next-card h2 { font-size: 22px; } }
@media(max-width:1000px) { .workspace-layout { grid-template-columns: 1fr; } .context-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; } .hero-grid { grid-template-columns: minmax(0, 1fr); } .robot-card { display: none; } .stat-icon { display: none; } .topbar-actions { gap: 12px; } .search-trigger { width: 160px; } .connection { display: none; } .overview-bottom { grid-template-columns: 1fr; } .journey { padding-left: 10px; padding-right: 10px; } .journey-step { padding: 0 4px; font-size: 10px; } .journey-step small { font-size: 9px; } .heading-actions .ghost { display: none; } .task-meta { font-size: 11px; } }
@media(max-width:700px) {
  :root { font-size: 16px; } .sidebar { transform: translateX(-100%); width: 232px; transition: transform .2s; padding-top: 23px; }
  body.nav-open .sidebar { transform: translateX(0); } body.nav-open .mobile-scrim { display: block; position: fixed; inset: 0; background: #1b241849; z-index: 35; border: 0; border-radius: 0; }
  .app-main { margin-left: 0; } .topbar { height: 61px; padding: 0 16px; gap: 10px; } .mobile-toggle { display: inline-flex; padding: 8px; min-height: 38px; }
  .breadcrumbs { gap: 8px; font-size: 11px; flex: 1; } .breadcrumbs > span { display: none; } .search-trigger { width: 36px; min-height: 36px; padding: 8px; } .search-trigger span, .search-trigger kbd { display: none; } .avatar { display: none; }
  .page-content { padding: 23px 16px 30px; } h1 { font-size: 24px; } .page-heading { align-items: flex-start; gap: 10px; } .page-heading p { font-size: 12px; max-width: 230px; } .heading-actions button { font-size: 11px; padding: 8px 10px; }
  .eyebrow { font-size: 9px; } .next-card { padding: 22px; min-height: 265px; } .next-card h2 { font-size: 23px; } .next-card p { font-size: 13px; } .next-card-footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  .metrics-strip { grid-template-columns: 1fr 1fr; row-gap: 22px; padding: 18px 0; margin-bottom: 20px; } .stat { padding: 0 21px; } .stat:nth-child(2) { border-right: 0; } .stat strong { font-size: 25px; }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 21px; padding: 7px 18px 22px; } .journey-step { font-size: 12px; padding-left: 4px; } .journey-step small { font-size: 10px; } .journey-step:nth-child(3)::after { display: none; }
  .panel-header { padding: 18px; } .panel-header small { font-size: 10px; } .task-row { padding: 15px 18px; } .task-row strong { font-size: 13px; } .task-row small { font-size: 11px; }
  .footer-note { flex-direction: column; font-size: 10px; } .card { padding: 20px; } .card > p { font-size: 13px; } .form-grid { grid-template-columns: 1fr; } .component-grid { grid-template-columns: 1fr 1fr; } label { font-size: 13px; } input, select { font-size: 16px; }
  .card > button { min-height: 44px; } .context-rail { grid-template-columns: 1fr; } .toast { left: 50%; width: calc(100% - 32px); max-width: none; bottom: 15px; } .dangerous-start { display: none !important; }
  .skip-link { left: 14px; } .section-kicker { font-size: 11px; } .heading-actions { flex-shrink: 0; } .pill { font-size: 10px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Project-scoped 3D workspace and visual assembly records. */
.visual-toolbar,.visual-actions,.visual-bottom,.editor-heading,.editor-section-title { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.visual-toolbar { margin-bottom:16px; flex-wrap:wrap; }
.visual-toolbar strong { display:block; font-size:13px; margin-top:7px; }
.visual-actions { flex-wrap:wrap; gap:8px; }
.visual-actions input { width:230px; margin:0; }
.visual-model-note { display:flex; align-items:center; gap:12px; padding:13px 17px; background:#f1f3e9; border:1px solid #dde3ce; color:#677457; font-size:12px; border-radius:12px 12px 0 0; }
.visual-host { background:#fafbf7; border:1px solid var(--line); border-top:0; min-height:300px; overflow:hidden; border-radius:0 0 12px 12px; }
.color-studio-frame { width:100%; height:850px; border:0; display:block; background:#f8f9f6; }
.visual-bottom { align-items:stretch; margin-top:16px; }
.selected-part,.visual-versions { flex:1; min-width:0; background:white; border:1px solid var(--line); padding:21px; border-radius:12px; }
.selected-part strong,.selected-part small,.visual-versions small { display:block; margin:10px 0; overflow-wrap:anywhere; }
.selected-part strong { font-size:17px; }
.selected-part small,.visual-versions small { font-size:11px; color:var(--muted); line-height:1.7; }
.visual-versions label { margin:0 0 9px; }
.visual-versions button { margin-right:6px; }
.workspace-layout.wide-workspace { display:block; }
.workspace-layout.wide-workspace>.context-rail { display:grid; grid-template-columns:1fr 1fr; position:static; }
.workspace-layout.wide-workspace #task-context,.workspace-layout.wide-workspace .result-card { grid-column:auto; grid-row:auto; position:static; }
.editor-heading { margin:23px 0; align-items:flex-start; }
.editor-heading p { font-size:12px; color:var(--muted); margin-top:8px; }
.editor-heading button,.editor-section-title button { flex-shrink:0; }
.editor-section-title { margin:25px 0 12px; }
.editor-section-title h3 { font-size:15px; margin:0; }
.editor-section-title .count { font-size:11px; background:#eff2e8; border-radius:6px; padding:3px 7px; color:#6d7c5a; margin-left:5px; }
.assembly-progress { display:flex; gap:5px; height:5px; margin:8px 0 12px; }
.assembly-progress span { flex:1; background:#e8eae4; border-radius:3px; }
.assembly-progress .passed { background:#899c63; }.assembly-progress .failed { background:#bf7263; }.assembly-progress .blocked { background:#c69a50; }
.assembly-check { display:flex; align-items:flex-start; gap:14px; padding:18px 0; border-bottom:1px solid var(--line); }
.check-number { display:grid; place-items:center; width:30px; height:30px; border:1px solid #e0e5d6; border-radius:50%; background:#f6f8f1; color:#84906f; font-size:11px; flex-shrink:0; margin-top:4px; }
.check-fields { flex:1; min-width:0; }.check-fields>input { font-weight:600; }
.check-controls { display:flex; flex-wrap:wrap; gap:9px; margin:8px 0; }.check-controls select { flex:1; min-width:150px; margin:0; }.check-controls select:first-child { flex:0 0 152px; }
.check-fields textarea { min-height:62px; margin-bottom:0; }.check-fields small { display:block; font-size:11px; color:var(--muted); margin-top:8px; }
.row-remove { padding:5px 9px; border:0; background:transparent; color:#a18d7e; font-size:18px; min-width:32px; }.row-remove:hover { background:#f9efea; color:#ae5c46; }
.editor-empty { padding:28px 15px; background:#f8f9f4; border:1px dashed #dbe1d2; border-radius:8px; text-align:center; color:#8a9480; font-size:12px; margin:15px 0; }
.table-scroll { overflow-x:auto; max-width:100%; padding-bottom:6px; }
.editor-table { width:100%; border-collapse:collapse; min-width:630px; font-size:12px; }.editor-table th { text-align:left; font-size:11px; font-weight:500; color:#7d8875; background:#f4f6ee; padding:11px 9px; white-space:nowrap; }.editor-table td { padding:12px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.editor-table input,.editor-table select { margin:0 0 6px; padding:9px 10px; min-height:38px; font-size:12px; }.editor-table td:nth-child(2) { width:94px; }.editor-table td:last-child { width:35px; }
.joint-table { min-width:780px; }.joint-table td:first-child { width:165px; }.joint-table td:nth-child(3) { width:108px; }.joint-table td:nth-child(4) { width:104px; }.limits-inputs { display:flex; align-items:center; gap:7px; }.limits-inputs input { min-width:78px; }.limits-inputs span { color:#94a17f; }
.joint-range { height:4px; background:#e5e9db; border-radius:4px; position:relative; margin:6px 8px; }.joint-range i { position:absolute; width:8px; height:8px; top:-2px; margin-left:-4px; border-radius:50%; background:#809565; }
.imu-editor { display:flex; gap:24px; align-items:center; margin:25px 0; border:1px solid var(--line); background:#fafbf7; padding:18px; border-radius:10px; }.imu-axis { text-align:center; flex:0 0 120px; }.imu-axis svg { width:115px; height:95px; fill:#7b8970; font-size:10px; }.imu-axis small { font-size:10px; color:#94a087; }.imu-fields { flex:1; min-width:0; }.imu-fields .form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
@media(max-width:1000px) { .visual-bottom { flex-direction:column; }.visual-toolbar { align-items:flex-start; }.imu-fields .form-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:700px) { .visual-toolbar,.editor-heading { align-items:stretch; flex-direction:column; }.visual-actions { display:grid; grid-template-columns:1fr 1fr; }.visual-actions input { width:100%; grid-column:1 / -1; }.visual-model-note { align-items:flex-start; line-height:1.8; font-size:11px; }.visual-model-note .pill { flex-shrink:0; }.workspace-layout.wide-workspace>.context-rail { grid-template-columns:1fr; }.check-number { display:none; }.assembly-check { gap:5px; }.check-controls { flex-direction:column; }.check-controls select:first-child { flex:auto; }.imu-editor { flex-direction:column; gap:8px; align-items:stretch; }.imu-axis { flex-basis:auto; }.editor-table input,.editor-table select { font-size:16px; } }

#assembly-editor textarea,#calibration-editor textarea { min-height:72px; }

/* Installation walkthrough shares the same reference model and project evidence. */
.sidebar { overflow-y:auto; }
.installation-layout { display:grid; grid-template-columns:310px minmax(0,1fr); gap:20px; align-items:start; }
.installation-layout>* { min-width:0; }
#guide-stage-column { grid-column:2; grid-row:1; }
#guide-install-panel,#guide-physics-panel { grid-column:1; grid-row:1; }
.installation-steps { display:flex; flex-direction:column; margin-bottom:16px; padding:9px; border:1px solid var(--line); border-radius:12px; background:white; }
.installation-steps button { justify-content:flex-start; text-align:left; background:transparent; border:0; padding:10px; font-size:12px; }
.installation-steps button span { font:11px ui-monospace,monospace; color:#879578; width:25px; flex-shrink:0; }
.installation-steps button[aria-current=step] { background:#edf2e7; color:#445b32; }
.installation-steps button strong { font-weight:550; }
.guide-instruction { padding:20px; }
.guide-instruction ol,#guide-physics-panel ol { padding-left:20px; font-size:12px; line-height:1.9; }
.guide-instruction li { margin:12px 0; }
.guide-instruction strong,.guide-instruction p { font-size:12px; }
.guide-step-actions { display:flex; gap:8px; margin-top:15px; }
.guide-stage-toolbar { display:flex; align-items:center; gap:25px; justify-content:space-between; border:1px solid var(--line); border-bottom:0; border-radius:12px 12px 0 0; background:#fff; padding:14px 18px; }
.guide-stage-toolbar label { margin:0; min-width:0; flex:1; font-size:12px; }
.guide-stage-toolbar input[type=range],#sim-scrub { accent-color:var(--green); border:0; padding:0; height:32px; }
.guide-model { background:#eef0eb; min-height:460px; }
.installation-frame { display:block; border:0; width:100%; height:540px; }
.guide-model-note { margin:0; padding:12px 16px; border:1px solid var(--line); border-radius:0 0 12px 12px; font-size:10px; color:var(--muted); background:#fff; }
#guide-part-details { margin-top:15px; }
#guide-part-count { color:var(--muted); font-size:11px; margin-left:10px; }
.guide-parts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:365px; overflow:auto; }
.guide-parts button { display:block; text-align:left; padding:12px; min-width:0; }
.guide-parts button strong { font-size:12px; font-weight:550; display:block; margin:5px 0; }
.guide-parts button small { display:block; font-size:10px; overflow-wrap:anywhere; }
.part-kind { color:#79876d; font-size:10px; background:#f0f3e9; padding:2px 5px; border-radius:4px; }
.installation-layout.configuring { display:block; }
.builder-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr); gap:20px; }
.builder-grid>* { min-width:0; }
.builder-grid .card { margin-bottom:20px; }
.builder-grid .visual-actions { margin-top:20px; }
#build-specs .pill { margin:12px 0; display:table; }
#build-specs dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; font-size:12px; }
#build-specs dd { margin:0; }
#build-specs dt { color:var(--muted); }
#build-specs p,#build-result { font-size:12px; line-height:1.8; }
#wire-diagram svg { display:block; width:100%; max-width:920px; margin:auto; }
#sim-time { font:12px ui-monospace,monospace; }
#guide-physics-panel hr { border:0; border-top:1px solid var(--line); margin:25px 0; }
@media(max-width:1150px) { .installation-layout { grid-template-columns:260px minmax(0,1fr); gap:15px; }.guide-stage-toolbar { flex-direction:column; align-items:stretch; gap:10px; }.builder-grid { grid-template-columns:1fr; } }
@media(max-width:850px) { .installation-layout { display:flex; flex-direction:column; }.installation-layout>* { width:100%; }#guide-stage-column { order:-1; }.installation-steps { display:grid; grid-template-columns:1fr 1fr; }.installation-frame { height:460px; }.guide-stage-toolbar { flex-direction:row; } }
@media(max-width:480px) { .guide-stage-toolbar { flex-direction:column; }.guide-parts { grid-template-columns:1fr; }.installation-frame { height:400px; }.guide-model { min-height:400px; }.installation-steps { grid-template-columns:1fr; }#wire-diagram { overflow-x:auto; }#wire-diagram svg { min-width:650px; } }
@media(min-width:851px) { #guide-stage-column.simulation-stage { position:sticky; top:18px; } }

/* Recipe experiments share the workbench's calm, evidence-first forms. */
.pipeline-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:24px 0;gap:8px}
.pipeline-steps li {display:flex;flex-direction:column;gap:8px;padding:14px 12px;border:1px solid var(--line,#dce2d5);border-radius:10px;font-size:12px;background:#f6f8f2}
.pipeline-steps b {font-size:19px;color:#647650;font-weight:500}
.pipeline-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:18px 0}
.pipeline-facts div {min-width:0}
.pipeline-facts dt {font-size:11px;color:#65705f;margin-bottom:5px}
.pipeline-facts dd {margin:0;font-weight:600;overflow-wrap:anywhere}
.pipeline-ready,.pipeline-blocked {padding:20px;border:1px solid #d8e2ce;border-radius:12px;background:#f7f9f4;margin:16px 0;overflow-wrap:anywhere}
.pipeline-blocked {border-color:#e2ccb1;background:#faf5ee}
.pipeline-blocked li {white-space:pre-wrap;font-size:12px}
.pipeline-log {max-height:300px;overflow:auto;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}
#pipeline-progress {width:100%;height:6px;accent-color:#748a59;margin:16px 0}
.pipeline-download {display:inline-flex;align-items:center;padding:10px 14px;border:1px solid #cdd8c3;border-radius:8px;text-decoration:none;color:#415534;background:white;font-size:12px}
.pipeline-download:hover {background:#e9efdf}
#card-pipeline pre {max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:560px){.pipeline-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-facts{grid-template-columns:1fr}.pipeline-ready,.pipeline-blocked{padding:14px}}
#card-pipeline .field-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#card-pipeline .visual-actions {justify-content:flex-start;gap:10px}
#card-pipeline .visual-actions button {margin:0}
@media(max-width:560px){#card-pipeline .field-grid {grid-template-columns:1fr}}

/* Servo debug console: URT2 straight from the browser; the service never opens this port. */
#card-servodebug .sd-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}
#card-servodebug .sd-actions {display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0 0}
#card-servodebug .sd-actions button {margin:0}
#card-servodebug .sd-actions .sd-check {margin:0;display:flex;align-items:center;font-size:12px;white-space:nowrap}
#card-servodebug .sd-actions .muted {margin:0}
button.sd-estop {color:#fff;background:var(--red);border-color:var(--red)}
button.sd-estop:hover {background:#96382f;border-color:#96382f}
button.sd-estop:disabled {background:#f3f1ef;border-color:var(--line);color:#786d6a}
button.sd-mini {min-height:30px;padding:3px 10px;font-size:11px}
.sd-telemetry {display:grid;grid-template-columns:minmax(170px,1fr) minmax(230px,1.5fr);gap:10px 26px;margin:18px 0 4px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:#fafbf7}
.sd-position {font:680 34px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center;color:#526443}
.sd-position-deg {text-align:center;color:var(--muted);font-size:13px;margin-bottom:10px}
.sd-kv {display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:4px 0;border-bottom:1px dashed var(--line);font-size:12.5px;min-width:0}
.sd-kv:last-child {border-bottom:0}
.sd-kv .k {color:var(--muted);flex-shrink:0}
.sd-kv .v {font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600;overflow-wrap:anywhere;text-align:right}
.sd-status-bits span {display:inline-block;border:1px solid var(--line);border-radius:5px;padding:1px 7px;font-size:11px;margin:2px 3px 2px 0;color:var(--muted);font-weight:400}
.sd-status-bits span.hit {color:var(--red);border-color:#dfbbb8;background:#faeeec}
.sd-cols {display:grid;grid-template-columns:1fr 1fr;gap:0 26px}
.sd-cols .section-title {margin-top:18px}
#sd-goal-range {accent-color:var(--green);border:0;padding:0;height:32px;margin-top:12px}
.sd-log {max-height:230px;overflow:auto;font:11px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;background:#f5f7f2;border:1px solid #e6eadf;border-radius:8px;padding:10px 13px;white-space:pre-wrap;overflow-wrap:anywhere}
.sd-log .t {color:var(--muted)}
.sd-log .err {color:var(--red)}
.sd-table {width:100%;border-collapse:collapse;font-size:12px;min-width:620px}
.sd-table th {text-align:left;font-size:11px;font-weight:500;color:#7d8875;background:#f4f6ee;padding:9px;white-space:nowrap}
.sd-table td {padding:8px 9px;border-bottom:1px solid var(--line);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.sd-table td:first-child {font-weight:700;color:#526443}
.sd-table .sd-noanswer {color:var(--red)}
.sd-row-actions {display:flex;gap:6px}
@media(max-width:1000px) {.sd-cols {grid-template-columns:1fr}.sd-telemetry {grid-template-columns:1fr}}
@media(max-width:700px) {#card-servodebug .sd-fields {grid-template-columns:1fr}.sd-position {font-size:28px}}
