:root {
  --bg: #ece8df;
  --shell: #f5f1e8;
  --panel: #fffdf7;
  --panel-2: #f8f4eb;
  --ink: #1f2429;
  --text: #34383c;
  --muted: #77736a;
  --soft: #9b9589;
  --line: #d9d1c4;
  --line-soft: #e7e1d7;
  --nav: #1f252b;
  --nav-2: #2b3239;
  --blue: #2469a8;
  --blue-soft: #e8f0f8;
  --teal: #327f72;
  --amber: #9a682e;
  --red: #a64c42;
  --zone-a: #4A90D9;
  --zone-a-stroke: #2268A8;
  --zone-b: #E6A93D;
  --zone-b-stroke: #A66F13;
  --zone-c: #8A7CF6;
  --zone-c-stroke: #5A4BC8;
  --zone-d: #8B9299;
  --zone-d-stroke: #5F6670;
  --radius: 7px;
  --shadow: 0 1px 0 rgba(31, 36, 41, .04), 0 10px 26px rgba(70, 58, 38, .07);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 13px;
  line-height: 1.46;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.login-page {
  min-height: 100dvh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 42px);
  overflow: auto;
  background:
    radial-gradient(circle at 80% 76%, rgba(80, 128, 116, .26), transparent 28%),
    radial-gradient(circle at 74% 30%, rgba(174, 164, 139, .20), transparent 32%),
    linear-gradient(118deg, #fffaf0 0%, #f4efe5 48%, #d7e1d8 100%);
}

.login-shell {
  position: relative;
  width: min(1240px, 100%);
  min-height: calc(100dvh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(360px, 410px);
  grid-template-rows: minmax(0, 1fr);
  column-gap: clamp(48px, 7vw, 92px);
  align-items: center;
}

.login-brand {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  z-index: 2;
}

.login-brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #162221;
  color: #ffdc8a;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-brand strong {
  display: block;
  color: #0f1f1d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.login-brand p {
  margin: 3px 0 0;
  color: #817b72;
  font-size: 12px;
  line-height: 1.25;
}

.login-hero {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 24px;
  z-index: 1;
}

.login-grid {
  position: absolute;
  left: 45px;
  top: -74px;
  width: min(580px, 82vw);
  height: 520px;
  z-index: -1;
  background:
    linear-gradient(rgba(22, 34, 33, .072) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 34, 33, .072) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.64) 64%, transparent 100%);
  pointer-events: none;
}

.login-hero h1 {
  max-width: 710px;
  margin: 0;
  color: #20262b;
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 920;
  line-height: 1.05;
  letter-spacing: 0;
}

.login-hero > p {
  max-width: 710px;
  margin: 0;
  color: #5f625f;
  font-size: 19px;
  font-weight: 560;
  line-height: 1.58;
}

.login-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 132px));
  gap: 13px;
  margin-top: 14px;
}

.login-feature-cards article {
  min-height: 80px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(196, 185, 170, .92);
  border-radius: 8px;
  background: rgba(255, 253, 247, .58);
  box-shadow: 0 12px 32px rgba(55, 47, 34, .05);
}

.login-feature-cards strong {
  color: #192325;
  font-size: 25px;
  font-weight: 910;
  line-height: 1.1;
}

.login-feature-cards span {
  color: #77736a;
  font-size: 13px;
  font-weight: 650;
}

.login-panel {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: center;
  gap: 24px;
  width: 100%;
  padding: 31px 28px 28px;
  border: 1px solid rgba(217, 209, 196, .98);
  border-radius: 8px;
  background: rgba(255, 253, 247, .88);
  box-shadow: 0 22px 72px rgba(31, 36, 41, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-panel-copy {
  display: grid;
  gap: 8px;
}

.login-panel-copy h2 {
  margin: 0;
  color: #20262b;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
}

.login-panel-copy p {
  margin: 0;
  color: #66716c;
  font-size: 14px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 14px;
}

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

.login-form input {
  min-height: 46px;
  min-width: 0;
  border: 1px solid #cfc4b4;
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 253, 247, .76);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.login-form input:focus {
  outline: 2px solid rgba(39, 106, 165, .22);
  border-color: #6ba2ca;
}

.login-error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #e7b4a9;
  border-radius: 7px;
  background: #fff1ee;
  color: #943928;
  font-size: 13px;
}

.login-form button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 14px;
  font-weight: 820;
  border-color: #172322;
  background: #162f2b;
  color: #fffdf7;
}

.login-support {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.app {
  --project-width: 260px;
  --agent-width: 280px;
  position: relative;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 64px var(--project-width) minmax(0, 1fr) var(--agent-width);
  grid-template-rows: 58px minmax(0, 1fr);
}

.jimei-boot-gate {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .62), rgba(236, 232, 223, .78)),
    rgba(245, 241, 232, .72);
  backdrop-filter: blur(16px) saturate(.96);
  -webkit-backdrop-filter: blur(16px) saturate(.96);
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s ease, visibility .22s ease;
}

.jimei-live-ready .jimei-boot-gate {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  /* 加载完后关掉全屏 backdrop-filter 与不停的进度动画，否则它们一直占用合成/光栅，空闲也吃 CPU */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.jimei-live-ready .jimei-boot-loader b i {
  animation: none;
}

.jimei-boot-loader {
  width: min(360px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--ink);
  text-align: center;
}

.jimei-boot-loader > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff8ec;
  background: linear-gradient(180deg, #242b31, #1b2025);
  font-size: 18px;
  font-weight: 780;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 28px rgba(31, 36, 41, .16);
}

.jimei-boot-loader strong {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 780;
}

.jimei-boot-loader p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
}

.jimei-boot-loader em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.jimei-boot-loader b {
  position: relative;
  width: min(240px, 70vw);
  height: 2px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 36, 41, .10);
}

.jimei-boot-loader b i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(36, 105, 168, 0), rgba(36, 105, 168, .86), rgba(50, 127, 114, .72));
  animation: jimeiBootLine 1.35s cubic-bezier(.42, 0, .18, 1) infinite;
}

@keyframes jimeiBootLine {
  from { transform: translateX(-110%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  .jimei-boot-gate {
    transition: none;
  }

  .jimei-boot-loader b i {
    animation: none;
    width: 100%;
    opacity: .72;
  }
}

.topbar {
  position: relative;
  z-index: 130;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #d8d1c6;
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 17px;
}

.brand span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff8ec;
  background: linear-gradient(180deg, #242b31, #1b2025);
  font-size: 14px;
  font-weight: 780;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.brand strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
}

.role-strip {
  justify-self: end;
  display: flex;
  gap: 6px;
  align-items: center;
  padding-right: 16px;
}

.account-strip {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border-color: #d7ccc0;
  background: #fffdf7;
  color: #4f6172;
}

.account-trigger span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover {
  position: absolute;
  top: calc(100% - 8px);
  right: 16px;
  z-index: 120;
  width: min(240px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 16px 36px rgba(31, 36, 41, .16);
}

.account-popover[hidden] {
  display: none;
}

.account-popover > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.account-popover > strong {
  color: var(--ink);
  font-size: 14px;
}

.account-popover button {
  width: 100%;
  justify-content: flex-start;
}

.mobile-account-button {
  display: none;
}

.topbar-copilot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 32px;
}

.topbar-copilot.is-active {
  gap: 0;
}

.topbar-copilot.is-active .topbar-copilot-input {
  display: none;
}

.topbar-copilot-input {
  width: 232px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  padding: 0 12px;
}

.topbar-copilot-input::placeholder {
  color: #7b8790;
}

.topbar-copilot-input:hover {
  border-color: #c8beb0;
}

.topbar-copilot-input:focus {
  border-color: #9db8d1;
  box-shadow: 0 0 0 2px rgba(143, 180, 207, .18);
}

.left-nav {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px 8px;
  border-right: 1px solid #30363d;
  background: var(--nav);
}

.left-nav a {
  position: relative;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px 0;
  border-radius: 7px;
  color: rgba(245, 241, 232, .58);
  text-decoration: none;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}

.left-nav a .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.left-nav a.active {
  background: rgba(255,255,255,.16);
  color: #fff9ed;
  box-shadow: none;
}

.left-nav a.active .icon {
  color: #d7e5f1;
}

.project-list {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  height: calc(100dvh - 58px);
  min-height: 0;
  overflow: auto;
  padding: 16px 16px 18px;
  border-right: 0;
  background: var(--shell);
}

.project-list::after {
  content: none;
}

.mobile-backdrop {
  display: none;
}

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

.panel-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-resizer {
  position: absolute;
  top: 58px;
  bottom: 0;
  width: 12px;
  z-index: 4;
  cursor: col-resize;
  background: transparent;
  touch-action: none;
}

.project-resizer { left: calc(64px + var(--project-width) - 6px); }
.agent-resizer { right: calc(var(--agent-width) - 6px); }

.app.project-collapsed {
  --project-width: 0px;
  grid-template-columns: 64px 0 minmax(0, 1fr) var(--agent-width);
}

.app.agent-collapsed {
  --agent-width: 0px;
  grid-template-columns: 64px var(--project-width) minmax(0, 1fr) 0;
}

.app.project-collapsed.agent-collapsed {
  grid-template-columns: 64px 0 minmax(0, 1fr) 0;
}

.app.project-collapsed .project-resizer {
  left: 58px;
}

.panel-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: transparent;
}

.panel-resizer:hover::before,
.panel-resizer:active::before,
.is-resizing .panel-resizer::before {
  left: 4px;
  width: 3px;
  border-radius: 999px;
  background: #8fb4cf;
}

.agent-collapsed .agent-resizer {
  right: 0;
}

.project-collapsed .project-list {
  display: none;
}

button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #1f5f98;
  border-radius: 7px;
  background: #276aa5;
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(31, 36, 41, .08);
  cursor: pointer;
}

button:disabled {
  border-color: #d6d0c5;
  background: #ece7dc;
  color: #8b857b;
  box-shadow: none;
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(35, 100, 155, .55);
  outline-offset: 2px;
}

button .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.1;
}

.topbar .chrome-toggle {
  width: 32px;
  min-height: 30px;
  justify-content: center;
  padding: 0;
  border-color: rgba(217, 209, 196, .78);
  background: #fffdf7;
  color: #5b6670;
  box-shadow: none;
}

.topbar .chrome-toggle.is-active {
  border-color: #1f5f98;
  background: #23649b;
  color: #fff;
}

.topbar .chrome-toggle:hover {
  border-color: #9db8d1;
  background: #eef6fc;
  color: #245f92;
}

.topbar .chrome-toggle.is-active:hover {
  border-color: #174c78;
  background: #1d5a8e;
  color: #fff;
}

.brand .chrome-toggle {
  margin-left: 2px;
}

.topbar-copilot .copilot-send {
  min-height: 30px;
  justify-content: center;
  padding: 0;
  border-radius: 7px;
  border-color: rgba(31, 95, 152, .45);
  background: #fffdf7;
  color: #245f92;
  box-shadow: none;
}

.topbar-copilot .copilot-send {
  width: 32px;
}

.topbar-copilot.is-active .copilot-send {
  width: 32px;
  min-height: 30px;
  border-color: #1f5f98;
  background: #23649b;
  color: #fff;
  box-shadow: 0 1px 2px rgba(31, 36, 41, .12);
}

.topbar-copilot .copilot-send:hover {
  border-color: #78a8cf;
  background: #eef6fc;
  color: #245f92;
}

.topbar-copilot.is-active .copilot-send:hover {
  border-color: #174c78;
  background: #1d5a8e;
  color: #fff;
}

.topbar .chrome-toggle .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.topbar-copilot .copilot-send .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.topbar-copilot.is-active .copilot-send .icon {
  width: 16px;
  height: 16px;
}

.project {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 11px 42px 11px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255, 253, 247, .72);
  color: var(--text);
  cursor: pointer;
}

.project-main {
  min-width: 0;
}

.project.active {
  border-color: #93afd1;
  background: #fbfdff;
  box-shadow: 0 9px 22px rgba(36, 105, 168, .11);
}

.project b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.project b .icon {
  width: 14px;
  height: 14px;
  color: #607080;
}

.project span,
.project em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.project-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  opacity: 0;
  transition: opacity .14s ease;
}

.project:hover .project-actions,
.project:focus-within .project-actions,
.project.active .project-actions,
.project-actions.is-open {
  opacity: 1;
}

.project-menu-trigger {
  width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid rgba(126, 140, 154, .24);
  border-radius: 8px;
  background: rgba(255, 253, 247, .92);
  color: #566372;
  box-shadow: 0 1px 1px rgba(31, 36, 41, .05);
  font-size: 18px;
  font-weight: 860;
  line-height: 1;
}

.project-menu-trigger:hover,
.project-menu-trigger:focus-visible {
  border-color: #aac3dc;
  background: #fff;
  color: #245f92;
}

.project-menu {
  position: absolute;
  top: 34px;
  right: 0;
  width: 126px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf7;
  box-shadow: 0 12px 22px rgba(31, 36, 41, .14);
}

.project-menu button {
  min-height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  font-size: 12px;
  font-weight: 720;
}

.project-menu button:hover,
.project-menu button:focus-visible {
  background: #f3efe7;
  outline: 0;
}

.project-menu .project-menu-danger {
  color: #9a4d45;
}

.project-editor,
.project-confirm {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(126, 140, 154, .16);
  cursor: default;
}

.project-editor label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.project-editor input {
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(126, 140, 154, .28);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.project-editor[data-error]::after {
  content: attr(data-error);
  color: #9a4d45;
  font-size: 11px;
}

.project-editor div,
.project-confirm div {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.project-editor button,
.project-confirm button {
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(126, 140, 154, .28);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}

.project-editor button[type="submit"],
.project-confirm [data-confirm-archive] {
  border-color: #8fb0cf;
  background: #eef6ff;
  color: #235b8b;
}

.project-confirm strong {
  color: var(--ink);
  font-size: 12px;
}

.project-confirm span {
  line-height: 1.45;
}

.project-empty {
  cursor: default;
}

.project-empty b {
  display: block;
}

.workspace {
  position: relative;
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 20px 24px;
  background:
    linear-gradient(90deg, rgba(31,36,41,.025) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, #f6f2e9, #f2eee5);
}

.workspace::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(242, 238, 229, 0), rgba(121, 106, 82, .08));
}

.workspace::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(121, 106, 82, .08), rgba(242, 238, 229, 0));
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 13px;
}

.label {
  color: #647284;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .04em;
}

.workspace h1 {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 780;
}

.workspace-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workspace-tabs {
  max-width: 100%;
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-tabs label {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #656b70;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.workspace-tabs label .icon {
  width: 14px;
  height: 14px;
  color: #607080;
}

.workspace-tabs label span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.workspace-tabs label b {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.18;
  font-weight: 720;
  white-space: nowrap;
}

.workspace-tabs label small {
  display: none;
  color: #8a857d;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 620;
  white-space: nowrap;
}

#tab-overview:focus-visible ~ .workspace-tabs label[for="tab-overview"] {
  outline: 2px solid #8fb4cf;
  outline-offset: 2px;
}

#tab-overview:checked ~ .workspace-tabs label[for="tab-overview"] {
  border-color: #c7d4de;
  background: #fbfdff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(31, 36, 41, .07);
}

#tab-overview:checked ~ .workspace-tabs label[for="tab-overview"] .icon {
  color: #2469a8;
}

.tab-panel {
  height: 100%;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
}

.overview-panel {
  container-type: inline-size;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  overflow: hidden;
}

#tab-overview:checked ~ .tab-panels .overview-panel {
  display: grid;
  align-content: stretch;
}

.tab-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.status-stack {
  display: flex;
  align-items: start;
  gap: 7px;
}

.status-stack span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,253,247,.82);
  color: #4b535a;
  font-size: 12px;
  font-weight: 680;
}

.status-stack .icon {
  width: 14px;
  height: 14px;
  color: #617284;
}

.status-stack b {
  font: inherit;
}

.mobile-status {
  display: none;
}

.jimei-proposal-shell {
  flex: 0 0 auto;
  min-width: 0;
  display: grid;
  gap: 0;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .86);
  box-shadow: 0 1px 0 rgba(31, 36, 41, .03);
}

.workspace.is-upload-empty .jimei-proposal-shell {
  overflow: visible;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.jimei-proposal-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
}

.jimei-proposal-summary-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.jimei-proposal-summary-main strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.jimei-proposal-summary-main strong > span[data-proposal-summary-title],
.jimei-proposal-summary-main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jimei-proposal-summary-main em {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.jimei-version-history-summary {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.jimei-title-downloads {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.jimei-proposal-details {
  min-width: 0;
  display: grid;
  gap: 0;
}

.jimei-proposal-shell .jimei-drawing-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

/* 已有图纸且当前没有上传任务时，隐藏上传卡（改展示图纸/分析）。上传新版进行中/失败
   （data-upload-mode=uploading|failed）时必须显示，否则 re-upload 的进度/错误会被藏掉。 */
.jimei-proposal-shell .jimei-drawing-card[data-state="current"]:not([data-upload-mode="uploading"]):not([data-upload-mode="failed"]) {
  display: none;
}

.jimei-drawing-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .78);
  box-shadow: 0 1px 0 rgba(31, 36, 41, .03);
}

.workspace.is-upload-empty .workspace-tabs,
.workspace.is-analysis-pending .workspace-tabs,
.workspace.is-upload-empty .tab-panels,
.workspace.is-analysis-pending .tab-panels,
.overview-panel.is-upload-empty .jimei-readiness,
.overview-panel.is-upload-empty .canvas-card,
.overview-panel.is-upload-empty .detail-grid {
  display: none;
}

.workspace.is-upload-empty .jimei-drawing-card {
  grid-template-columns: 1fr;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.jimei-upload-dropzone {
  display: none;
}

.workspace.is-upload-empty .jimei-upload-dropzone {
  min-height: 390px;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px;
  border: 1px dashed #9db8d1;
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .84);
  box-shadow: 0 10px 24px rgba(31, 36, 41, .06);
  cursor: pointer;
  text-align: center;
}

.workspace.is-upload-empty .jimei-upload-dropzone[data-dragging="true"] {
  border-color: #2469a8;
  background: #f2f7fb;
}

.jimei-upload-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.jimei-upload-dropzone span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf3fa;
  color: #2469a8;
  font-size: 12px;
  font-weight: 760;
}

.jimei-upload-dropzone strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
}

.jimei-upload-dropzone em {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.6;
}

.jimei-upload-dropzone b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid #1f5f98;
  border-radius: 7px;
  background: #276aa5;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.workspace.is-upload-empty .jimei-drawing-actions {
  display: none;
}

.workspace.is-upload-empty .jimei-drawing-card > em[data-s1-action-status] {
  justify-self: center;
  max-width: 560px;
  text-align: center;
}

.jimei-analysis-panel {
  display: none;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workspace.is-analysis-pending .jimei-analysis-panel {
  display: block;
}

.jimei-analysis-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 10px 10px;
  background: #fffdf7;
}

.jimei-analysis-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #1f5f98;
  border-radius: 7px;
  background: #276aa5;
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.jimei-analysis-action:disabled {
  opacity: .58;
  cursor: wait;
}

.jimei-drawing-card > em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.jimei-reanalysis-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 36, 41, .36);
}

.jimei-reanalysis-dialog {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  display: grid;
  gap: 14px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffdf7;
  padding: 16px;
  box-shadow: 0 22px 60px rgba(31, 36, 41, .22);
}

.jimei-reanalysis-head,
.jimei-reanalysis-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jimei-reanalysis-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.jimei-icon-button {
  width: 32px;
  min-height: 32px;
  justify-content: center;
  padding: 0;
  border-color: var(--line);
  background: #fffaf0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.jimei-reanalysis-options {
  display: grid;
  gap: 8px;
}

.jimei-reanalysis-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
  cursor: pointer;
}

.jimei-reanalysis-option input {
  margin-top: 3px;
}

.jimei-reanalysis-option span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jimei-reanalysis-option strong {
  color: var(--ink);
  font-size: 13px;
}

.jimei-reanalysis-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.jimei-reanalysis-fields {
  display: grid;
  gap: 10px;
}

.jimei-reanalysis-fields[hidden] {
  display: none;
}

.jimei-reanalysis-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.jimei-reanalysis-fields select,
.jimei-reanalysis-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.jimei-reanalysis-fields select {
  min-height: 34px;
  padding: 0 9px;
}

.jimei-reanalysis-fields textarea {
  min-height: 96px;
  resize: vertical;
  padding: 9px;
  line-height: 1.5;
}

.jimei-reanalysis-error {
  margin: 0;
  border: 1px solid #e0a199;
  border-radius: 7px;
  background: #fff2ef;
  color: #9d2f24;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}

.jimei-reanalysis-actions {
  justify-content: flex-end;
}

.jimei-reanalysis-actions button[type="button"] {
  border-color: var(--line);
  background: #fffaf0;
  color: var(--ink);
}

.jimei-analysis-report-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 36, 41, .34);
  backdrop-filter: blur(8px);
}

.jimei-analysis-report-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf7;
  box-shadow: 0 24px 60px rgba(31, 36, 41, .2);
}

.jimei-analysis-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbf8ef;
}

.jimei-analysis-report-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.jimei-analysis-report-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.jimei-analysis-report-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 20px;
}

.jimei-analysis-report-empty,
.jimei-analysis-report-error {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.jimei-analysis-report-error {
  border-color: #e0b2aa;
  background: #fff2ef;
  color: #9d352d;
}

.jimei-markdown-report {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.jimei-markdown-report > :first-child {
  margin-top: 0;
}

.jimei-markdown-report h1,
.jimei-markdown-report h2,
.jimei-markdown-report h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  line-height: 1.35;
}

.jimei-markdown-report h1 {
  font-size: 20px;
}

.jimei-markdown-report h2 {
  font-size: 16px;
}

.jimei-markdown-report h3 {
  font-size: 14px;
}

.jimei-markdown-report p,
.jimei-markdown-report ul,
.jimei-markdown-report ol,
.jimei-markdown-report blockquote,
.jimei-markdown-report table {
  margin: 0 0 12px;
}

.jimei-markdown-report ul,
.jimei-markdown-report ol {
  padding-left: 20px;
}

.jimei-markdown-report blockquote {
  padding: 8px 10px;
  border-left: 3px solid #c9473d;
  border-radius: 0 7px 7px 0;
  background: #fff4eb;
  color: #6b4b33;
}

.jimei-markdown-report table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  white-space: nowrap;
}

.jimei-markdown-report th,
.jimei-markdown-report td {
  padding: 7px 9px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.jimei-markdown-report th {
  background: #f2eee5;
  font-weight: 760;
}

.jimei-markdown-report code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #f2eee5;
  color: #4d3b28;
  font-size: .92em;
}

.jimei-drawing-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}

.jimei-drawing-actions button,
.jimei-file-picker b {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.jimei-drawing-actions button:disabled,
.jimei-file-picker[data-disabled="true"] b {
  color: var(--muted);
  opacity: .58;
  cursor: not-allowed;
}

.jimei-drawing-actions .jimei-analysis-report-button {
  min-width: 126px;
  border-color: #1f5f98;
  background: #276aa5;
  color: #fffdf7;
  box-shadow: 0 1px 0 rgba(31, 36, 41, .07);
}

.jimei-drawing-actions .jimei-analysis-report-button .icon {
  width: 14px;
  height: 14px;
}

.jimei-drawing-actions .jimei-analysis-report-button:disabled {
  border-color: #d8d0c7;
  background: #e5ded6;
  color: #827a72;
  box-shadow: none;
}

.jimei-file-picker {
  position: relative;
  min-width: 0;
  display: grid;
}

.jimei-file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.jimei-file-picker input[type="file"]:disabled {
  cursor: not-allowed;
}

.jimei-file-picker b {
  min-width: 0;
  height: 30px;
  padding: 0 9px;
}

.jimei-file-picker:focus-within b {
  border-color: #9db8d1;
  box-shadow: 0 0 0 2px rgba(143, 180, 207, .18);
}

.jimei-drawing-card > em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jimei-upload-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.jimei-upload-progress[hidden] {
  display: none;
}

.jimei-upload-progress span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.jimei-upload-progress span b,
.jimei-upload-progress span em {
  font-style: normal;
}

.jimei-upload-progress span b {
  color: var(--ink);
}

.jimei-upload-progress > i {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf1;
}

.jimei-upload-progress > i b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #276aa5;
  transition: width .18s ease;
}

.jimei-upload-progress[data-indeterminate="true"] > i b {
  animation: jimeiUploadIndeterminate 1s ease-in-out infinite;
}

.jimei-upload-progress[data-failed="true"] span b,
.jimei-upload-progress[data-failed="true"] span em {
  color: #9b4d2e;
}

.jimei-upload-progress[data-failed="true"] > i {
  background: #f0d5c8;
}

.jimei-upload-progress[data-failed="true"] > i b {
  width: 100%;
  background: #b65f3a;
}

.jimei-upload-error {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  justify-items: start;
  padding: 10px 11px;
  border: 1px solid #d7a183;
  border-radius: 7px;
  background: #fff7f0;
  color: #6f351f;
  text-align: left;
}

.jimei-upload-error[hidden] {
  display: none;
}

.workspace.is-upload-empty .jimei-upload-error {
  justify-self: center;
  width: min(560px, 100%);
  margin-top: 2px;
}

.jimei-upload-error strong {
  color: #76351d;
  font-size: 13px;
  font-weight: 790;
}

.jimei-upload-error p {
  margin: 0;
  color: #7f4a32;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.55;
}

.jimei-upload-error button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #9b4d2e;
  border-radius: 7px;
  background: #9b4d2e;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.jimei-upload-error button:focus-visible {
  box-shadow: 0 0 0 2px rgba(155, 77, 46, .2);
  outline: 0;
}

/* P0-2: 上传开始后，上传区原地切换成居中任务态（文件名+阶段+百分比+进度条），
   不再保留一大块空 dropzone、也不把真实进度挤到底部。 */
.jimei-drawing-card[data-upload-mode="uploading"] .jimei-upload-progress,
.jimei-drawing-card[data-upload-mode="uploaded"] .jimei-upload-progress,
.jimei-drawing-card[data-upload-mode="analysis_running"] .jimei-upload-progress {
  min-height: 390px;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 36px;
  border: 1px dashed #9db8d1;
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .9);
  box-shadow: 0 10px 24px rgba(31, 36, 41, .06);
  text-align: center;
}

.jimei-upload-progress-file {
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
}

.jimei-upload-progress-file:empty {
  display: none;
}

.jimei-drawing-card[data-upload-mode="uploading"] .jimei-upload-progress span,
.jimei-drawing-card[data-upload-mode="uploaded"] .jimei-upload-progress span,
.jimei-drawing-card[data-upload-mode="analysis_running"] .jimei-upload-progress span,
.jimei-drawing-card[data-upload-mode="uploading"] .jimei-upload-progress > i,
.jimei-drawing-card[data-upload-mode="uploaded"] .jimei-upload-progress > i,
.jimei-drawing-card[data-upload-mode="analysis_running"] .jimei-upload-progress > i {
  width: min(420px, 100%);
}

.jimei-drawing-card[data-upload-mode="failed"] .jimei-upload-error {
  min-height: 390px;
  align-content: center;
  justify-items: center;
  justify-self: stretch;
  width: 100%;
  text-align: center;
}

.jimei-title-downloads a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf7;
  color: #255f8e;
  text-decoration: none;
}

.jimei-title-downloads a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.jimei-title-downloads a .icon {
  width: 14px;
  height: 14px;
}

.jimei-title-downloads a:focus-visible {
  border-color: #9db8d1;
  box-shadow: 0 0 0 2px rgba(143, 180, 207, .18);
  outline: 0;
}

.jimei-version-history-list:not(:empty) {
  padding: 7px 10px 9px;
  border-top: 1px solid var(--line-soft);
}

.jimei-checkpoint-summary {
  min-width: 0;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.jimei-checkpoint-summary span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jimei-checkpoint-summary b {
  flex: 0 0 auto;
  color: #386b96;
  font: inherit;
  font-weight: 780;
}

.jimei-checkpoint-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  margin-top: 0;
  padding: 0;
  border-top: 0;
}

.jimei-checkpoint-row {
  min-width: 0;
  min-height: 28px;
  display: grid;
  grid-template-columns: 40px minmax(88px, max-content) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
  border-radius: 6px;
}

.jimei-checkpoint-row[data-current="true"] {
  background: #f4f9fd;
}

.jimei-checkpoint-row b,
.jimei-checkpoint-row em,
.jimei-checkpoint-row time,
.jimei-checkpoint-more {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jimei-checkpoint-row b {
  font-weight: 760;
}

.jimei-checkpoint-row em,
.jimei-checkpoint-row time,
.jimei-checkpoint-more {
  color: var(--muted);
  font-style: normal;
  font-weight: 680;
}

.jimei-checkpoint-type {
  min-width: 0;
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef4f8;
  color: #386b96;
  font-size: 11px;
  font-weight: 780;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jimei-checkpoint-more {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 7px 0 55px;
}

.jimei-drawing-card > em[data-s1-action-status] {
  grid-column: 1 / -1;
}

.jimei-readiness {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 8px 12px;
  align-items: center;
  margin: -2px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,247,.82);
  box-shadow: 0 1px 0 rgba(31,36,41,.03);
}

.jimei-readiness-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.jimei-readiness-main strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.jimei-readiness-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
}

.jimei-readiness-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  overflow: hidden;
}

.jimei-readiness-metrics span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-right: 1px solid var(--line-soft);
  background: #fffdf7;
}

.jimei-readiness-metrics span:last-child {
  border-right: 0;
}

.jimei-readiness-metrics b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jimei-readiness-metrics em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.jimei-readiness-blockers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jimei-blocker,
.jimei-ready-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(154, 104, 46, .34);
  border-radius: 999px;
  background: #fff8eb;
  color: #785021;
  font-size: 11px;
  font-weight: 700;
}

.jimei-ready-chip {
  border-color: rgba(50, 127, 114, .30);
  background: #eef8f4;
  color: #286a5f;
}

.canvas-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 28vw, 420px);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 0;
}

.drawing,
.proposal-editor,
.module,
.agent {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drawing {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-self: stretch;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.drawing-head,
.proposal-editor-head,
.sheet-title,
.module-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbf8f1;
}

.drawing-head {
  min-width: 0;
  min-height: 45px;
}

.drawing-head strong,
.proposal-editor-head strong,
.sheet-title strong,
.module-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.drawing-head .icon,
.proposal-editor-head .icon,
.sheet-title .icon,
.module-title .icon {
  width: 15px;
  height: 15px;
  color: #5d6873;
}

.module:nth-child(2) .module-title .icon { color: var(--amber); }

.drawing-head span,
.sheet-title span,
.module-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.proposal-editor {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-self: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}

.proposal-editor-head {
  min-height: 45px;
}

.proposal-editor-switch,
.review-mode-tabs {
  display: inline-flex;
  gap: 4px;
}

.proposal-editor-switch button,
.review-mode-tabs button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #5f6770;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.proposal-editor-switch button.is-active,
.review-mode-tabs button.is-active {
  border-color: #20262b;
  background: #20262b;
  color: #fff8ec;
}

.review-panel-content,
.floor-zone-list {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.proposal-editor-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: none;
  overflow: auto;
  padding: 14px;
  background: #fffdf7;
}

.zone-review-hero,
.zone-review-section,
.zone-review-block {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.zone-review-hero {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.zone-review-floor {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.zone-review-title-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.zone-review-title-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 820;
  line-height: 1.2;
}

.zone-review-title-row em {
  color: #475058;
  font-size: 17px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.2;
}

.zone-review-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(50, 127, 114, .24);
  border-radius: 999px;
  background: #eef8f4;
  color: #286a5f;
}

.zone-review-status.is-pending {
  border-color: rgba(186, 125, 25, .34);
  background: #fff7dc;
  color: #806017;
}

.zone-review-status.is-excluded {
  border-color: rgba(95, 102, 112, .24);
  background: #f2f3f2;
  color: #596169;
}

.zone-review-status b {
  font-size: 13px;
  font-weight: 800;
}

.zone-review-status-icon {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #d09118;
  color: #fffdf7;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.zone-review-block {
  padding: 10px 0 0;
  border-top: 1px solid var(--line-soft);
}

.zone-review-block h3,
.zone-review-actions h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: bold;
}

.zone-review-copy {
  display: grid;
  gap: 6px;
}

.zone-review-copy p {
  margin: 0;
  color: #3f474e;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.55;
}

.zone-confirm-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.zone-confirm-option {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: #ffffff;
  color: #35404a;
  font-size: 13px;
  font-weight: 790;
  cursor: pointer;
}

.zone-confirm-option:last-child {
  border-right: 0;
}

.zone-confirm-option.is-selected {
  background: #226fa8;
  color: #ffffff;
}

.zone-confirm-option:not(.is-selected):hover {
  background: #f5f8fa;
}

.zone-confirm-option:disabled {
  cursor: default;
  opacity: 1;
}

.pending-review-nav {
  padding: 10px 0 0;
  border-top: 1px solid var(--line-soft);
}

.pending-review-nav-status {
  margin: 0;
  color: #5c666d;
  font-size: 12px;
  font-weight: 760;
}

.pending-review-nav-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pending-review-nav-button {
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: #2f3941;
  font-size: 12px;
  font-weight: 790;
  cursor: pointer;
}

.pending-review-nav-button:hover:not(:disabled) {
  border-color: rgba(34, 111, 168, .36);
  background: #f5f9fc;
  color: #226fa8;
}

.pending-review-nav-button:disabled {
  color: #9aa2a8;
  cursor: default;
  background: #f7f5ef;
}

.proposal-editor-section {
  display: grid;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.proposal-editor-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.proposal-editor-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: bold;
}

.proposal-editor-fields,
.zoning-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.proposal-editor-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.proposal-editor-controls-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proposal-editor-control {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.proposal-editor-control input,
.proposal-editor-control select {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.proposal-editor-control input[type="checkbox"] {
  width: 28px;
  justify-self: start;
  accent-color: #23649b;
}

.proposal-editor-control input:focus,
.proposal-editor-control select:focus {
  border-color: #7faecf;
  box-shadow: 0 0 0 2px rgba(36, 105, 168, .12);
  outline: 0;
}

.proposal-editor-control em {
  min-height: 14px;
  color: var(--soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.proposal-editor-save-state {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 0 8px;
  border: 1px solid rgba(50, 127, 114, .25);
  border-radius: 999px;
  background: #eef8f4;
  color: #286a5f;
  font-size: 11px;
  font-weight: 760;
}

.proposal-editor-save-state[data-busy="true"] {
  border-color: rgba(154, 104, 46, .28);
  background: #fff7e7;
  color: #785021;
}

.proposal-editor-field {
  min-width: 0;
  min-height: 42px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fffdf7;
}

.proposal-editor-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.proposal-editor-field b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-export-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
}

.budget-export-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.budget-export-head h3,
.budget-export-history h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.budget-export-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f3ea;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.budget-export-status.is-ready {
  border-color: rgba(50, 127, 114, .24);
  background: #edf8f3;
  color: #2d7466;
}

.budget-export-status.is-blocked {
  border-color: rgba(181, 131, 32, .28);
  background: #fff8df;
  color: #8a6117;
}

.budget-export-status.is-running {
  border-color: rgba(35, 100, 155, .24);
  background: #eef6ff;
  color: #23649b;
}

.budget-export-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.budget-export-summary[data-error="true"] {
  color: #9d3b31;
}

.budget-export-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.budget-export-actions button,
.budget-export-actions a {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.budget-export-actions > :only-child {
  grid-column: 1 / -1;
}

.budget-export-actions button:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.budget-export-actions .budget-export-primary,
.budget-export-actions button:first-child {
  border-color: #23649b;
  background: #23649b;
  color: #ffffff;
}

.budget-export-progress {
  min-width: 0;
  display: grid;
  gap: 0;
}

.budget-export-confirm {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(181, 131, 32, .28);
  border-radius: 8px;
  background: #fff8df;
}

.budget-export-confirm p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.budget-export-confirm-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.budget-export-confirm-actions button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.budget-export-confirm-actions button:first-child {
  border-color: #23649b;
  background: #23649b;
  color: #ffffff;
}

.budget-export-confirm-actions button:nth-child(2) {
  border-color: rgba(157, 59, 49, .26);
  color: #9d3b31;
}

.budget-export-confirm-actions button:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.budget-export-regenerate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 27, 36, .42);
}

.budget-export-regenerate {
  min-width: 0;
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(35, 100, 155, .24);
  border-radius: 8px;
  background: #f8fbfe;
  box-shadow: 0 24px 70px rgba(20, 27, 36, .28);
}

.budget-export-regenerate-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.budget-export-regenerate-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.budget-export-regenerate-head button,
.budget-export-regenerate-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.budget-export-regenerate-options {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.budget-export-method.is-hidden {
  display: none;
}

.budget-export-method-title {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .02em;
}

.budget-export-regenerate-option {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.budget-export-regenerate-option.is-selected {
  border-color: #23649b;
  box-shadow: 0 0 0 2px rgba(35, 100, 155, .10);
}

.budget-export-regenerate-option input {
  margin-top: 2px;
}

.budget-export-regenerate-option span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.budget-export-regenerate-option b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.budget-export-regenerate-option small,
.budget-export-regenerate-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.4;
}

.budget-export-regenerate-prompt {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.budget-export-regenerate-prompt.is-hidden {
  display: none;
}

.budget-export-regenerate-prompt span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.budget-export-regenerate-prompt textarea {
  min-width: 0;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.budget-export-regenerate-error {
  margin: 0;
  color: #9d3b31;
  font-size: 12px;
  font-weight: 760;
}

.budget-export-regenerate-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.budget-export-regenerate-actions .budget-export-primary {
  border-color: #23649b;
  background: #23649b;
  color: #ffffff;
}

.budget-export-regenerate-actions button:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.budget-export-history {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
}

.budget-export-history-list {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.budget-export-history-row {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #ffffff;
}

.budget-export-history-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-export-history-row a,
.budget-export-history-row button {
  border: 0;
  background: transparent;
  color: #23649b;
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

.budget-export-history-row button:disabled {
  color: #8a6117;
}

.budget-export-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.floor-zone-row {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.floor-zone-row.is-selected {
  border-color: rgba(35, 100, 155, .32);
  background: #eef5fa;
}

.floor-zone-row b,
.floor-zone-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-zone-row b {
  font-size: 13px;
  font-weight: 780;
}

.floor-zone-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.jimei-comment-region-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #12a35d;
  color: #fff;
  font-size: 11px;
  font-weight: 820;
}

.comment-region-editor .selected-zone-edit {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 0;
  padding-top: 10px;
}

.comment-region-editor .selected-zone-edit-field {
  grid-column: 1 / -1;
  gap: 7px;
}

.comment-region-editor .comment-region-opinion-field {
  margin-top: 2px;
}

.comment-region-editor .selected-zone-edit-field > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: bold;
}

.comment-region-editor .selected-zone-edit-field input,
.comment-region-editor .selected-zone-edit-field textarea {
  font-size: 13px;
  font-weight: normal;
  line-height: 1.5;
}

.comment-region-editor .selected-zone-edit-field:not(.comment-region-opinion-field) input {
  max-width: 180px;
}

.comment-region-editor input[readonly] {
  color: var(--ink);
  background: #faf7ef;
}

.comment-region-editor .selected-zone-edit-actions {
  margin-top: -2px;
}

.comment-region-editor .comment-region-delete-button {
  border-color: #e4c7bf;
  background: #fffaf8;
  color: #b44a35;
}

.comment-region-editor .comment-region-delete-button:hover:not(:disabled),
.comment-region-editor .comment-region-delete-button:focus-visible {
  border-color: #cf8f82;
  background: #fff2ee;
}

.proposal-system-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proposal-system-toggles span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #b7cfdd;
  border-radius: 999px;
  background: #eff8fc;
  color: #1f536c;
  font-size: 12px;
  font-weight: 760;
}

.proposal-visual {
  position: relative;
  margin: 0;
  min-height: 0;
  height: 390px;
  overflow: hidden;
  background: #f7f7f4;
}

.proposal-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform-origin: 0 0;
  will-change: transform;
}

.proposal-visual.is-cad {
  height: clamp(360px, calc(100dvh - 420px), 520px);
  background: #f7f7f4;
}

.drawing .proposal-visual.is-cad {
  height: auto;
}

.proposal-visual.is-cad img {
  height: 100%;
  object-fit: contain;
}

.proposal-visual.is-loading,
.proposal-visual.is-error {
  height: 390px;
  background: #f7f7f4;
}

.proposal-visual.is-cad.is-loading {
  height: clamp(360px, calc(100dvh - 420px), 520px);
}

.proposal-visual.is-loading img,
.proposal-visual.is-error img {
  display: none;
}

.proposal-visual.is-cad.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 253, 247, .72);
}

.proposal-visual.is-cad.is-loading::after {
  content: none;
}

.proposal-visual.is-error {
  background-color: #faf6ee;
}

.jimei-zone-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  transform-origin: 0 0;
  will-change: transform;
}

.jimei-zone-overlay .zone-fill,
.jimei-zone-overlay .zone-boundary,
.jimei-zone-overlay .zone-selected {
  pointer-events: none;
  transition: fill-opacity .16s ease, opacity .12s ease, stroke-width .16s ease;
}

.jimei-zone-label-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.jimei-zone-overlay .zone-fill.is-hovered {
  fill-opacity: .1;
}

.jimei-zone-overlay .zone-boundary.is-hovered {
  stroke-width: 3;
}

.jimei-zone-overlay .zone-hitarea {
  cursor: pointer;
  pointer-events: fill;
  outline: none;
}

.jimei-zone-overlay .zone-hitarea:focus-visible {
  stroke: #122033;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.jimei-zone-overlay .zone-selected {
  filter: drop-shadow(0 0 2px rgba(31, 36, 41, .18));
}

.jimei-zone-overlay .zone-selected-halo {
  filter: none;
}

.jimei-zone-overlay .comment-region-frame {
  fill: transparent;
  stroke: #12a35d;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: fill .14s ease, stroke-width .14s ease;
}

.jimei-zone-overlay .comment-region-frame.is-hovered {
  fill: rgba(18, 163, 93, .07);
  stroke-width: 4;
}

.jimei-zone-overlay .comment-region-frame.is-selected {
  fill: rgba(18, 163, 93, .10);
  stroke-width: 4;
}

.jimei-zone-overlay .comment-region-frame.is-preview {
  stroke-dasharray: 7 5;
}

.jimei-zone-overlay .comment-region-hitarea {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  pointer-events: fill;
  outline: none;
}

.jimei-zone-overlay .comment-region-hitarea:focus-visible,
.jimei-zone-overlay .comment-region-selected {
  fill: none;
  stroke: #0f7d49;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(18, 163, 93, .35));
  pointer-events: none;
}

.proposal-visual.is-comment-region-drawing {
  cursor: crosshair;
}

.jimei-zone-label-layer .zone-label,
.jimei-zone-label-layer .comment-region-label {
  position: absolute;
  transform: translate(var(--zone-label-shift-x, -50%), -50%);
  opacity: 0;
  color: #17202a;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .9),
    1px 0 0 rgba(255, 255, 255, .86),
    0 -1px 0 rgba(255, 255, 255, .78),
    -1px 0 0 rgba(255, 255, 255, .78),
    0 0 3px rgba(255, 255, 255, .9);
  white-space: nowrap;
  transition: opacity .12s ease;
}

.jimei-zone-label-layer .zone-label.is-hovered,
.jimei-zone-label-layer .zone-label.is-selected {
  opacity: 1;
}

.jimei-zone-label-layer .comment-region-label {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #12a35d;
  color: #fff;
  font-size: 13px;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(19, 36, 27, .26);
}

.jimei-zone-label-layer .comment-region-label.is-hovered,
.jimei-zone-label-layer .comment-region-label.is-selected {
  opacity: 1;
  transform: translate(var(--zone-label-shift-x, -50%), -50%) scale(1.08);
}

.proposal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,15,18,.18), rgba(12,15,18,0) 32%, rgba(12,15,18,.16)),
    linear-gradient(90deg, rgba(12,15,18,.10), rgba(12,15,18,0) 28%, rgba(12,15,18,.08));
}

@keyframes jimeiVisualSkin {
  from { transform: translateX(-65%); }
  to { transform: translateX(65%); }
}

@keyframes jimeiUploadIndeterminate {
  0% { left: -30%; width: 28%; }
  50% { left: 38%; width: 34%; }
  100% { left: 100%; width: 28%; }
}

.proposal-visual.is-panning,
.proposal-visual.is-space-pan {
  cursor: grab;
}

.proposal-visual.is-panning {
  cursor: grabbing;
}

.drawing-viewport-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #fffdf7;
}

.drawing-viewport-button {
  position: relative;
  width: 32px;
  min-width: 32px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: #30373a;
  box-shadow: none;
  font-size: 12px;
  font-weight: 760;
}

.drawing-viewport-button .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.25;
}

.drawing-viewport-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  max-width: 144px;
  padding: 5px 7px;
  border: 1px solid rgba(31, 36, 41, .12);
  border-radius: 6px;
  background: rgba(31, 36, 41, .94);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 36, 41, .18);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .12s ease, transform .12s ease;
  white-space: nowrap;
}

.drawing-viewport-button:hover::after,
.drawing-viewport-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.drawing-viewport-button:hover:not(:disabled),
.drawing-viewport-button:focus-visible {
  border-color: #7faecf;
  background: #eef7fb;
}

.drawing-comment-region-toggle {
  width: auto;
  min-width: 0;
  gap: 5px;
  padding: 0 10px;
  color: #0f7d49;
  font-weight: 800;
}

.drawing-comment-region-toggle .icon {
  width: 14px;
  height: 14px;
}

.drawing-comment-region-toggle.is-active {
  border-color: #12a35d;
  background: rgba(18, 163, 93, .12);
  color: #0f7d49;
}

.drawing-comment-region-toggle.is-active:hover:not(:disabled),
.drawing-comment-region-toggle.is-active:focus-visible {
  border-color: #0e8f52;
  background: rgba(18, 163, 93, .16);
}

.drawing-viewport-button:disabled {
  opacity: .46;
  cursor: not-allowed;
}

.drawing-viewport-status {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.drawing-viewport-status b,
.drawing-viewport-status em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawing-viewport-status b {
  max-width: 180px;
  color: #30373a;
}

.drawing-viewport-status em {
  color: #6b737b;
  font-style: normal;
}

.selected-zone-inspector {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.7fr) auto;
  gap: 6px 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fbfff9;
}

.proposal-visual > .selected-zone-inspector {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 16px;
  left: 16px;
  border: 1px solid rgba(31, 95, 152, .22);
  border-radius: 10px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 10px 28px rgba(31, 36, 41, .16);
  backdrop-filter: blur(8px);
}

.selected-zone-title {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.selected-zone-name {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-zone-inspector > .jimei-empty-note {
  grid-column: 2 / -1;
  margin: 0;
}

.selected-zone-grid {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
}

.selected-zone-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: baseline;
  color: #30373a;
  font-size: 12px;
}

.selected-zone-field[data-selected-zone-field="risk"] {
  grid-column: 1 / -1;
}

.selected-zone-field[data-selected-zone-field="source_floor"] {
  display: none;
}

.selected-zone-field span {
  color: var(--muted);
  font-weight: 700;
}

.selected-zone-field em {
  min-width: 0;
  color: var(--ink);
  font-style: normal;
  font-weight: 720;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-zone-actions,
.selected-zone-edit-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.selected-zone-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
}

.selected-zone-edit-actions {
  grid-column: 1 / -1;
}

.selected-zone-actions button,
.selected-zone-edit-actions button {
  min-height: 30px;
  padding: 0 10px;
  box-shadow: none;
}

.jimei-zone-overlay [data-zone-edit-move-hitarea] {
  cursor: move;
  fill: transparent;
  pointer-events: fill;
  stroke: transparent;
}

.jimei-zone-overlay [data-zone-edit-handle] {
  cursor: grab;
  fill: #ffffff;
  stroke: #1769aa;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.jimei-zone-overlay [data-zone-edit-handle="edge"] {
  cursor: ew-resize;
  fill: #ffe6a8;
  stroke: #9a6400;
}

.jimei-zone-overlay [data-zone-edit-handle="vertex"] {
  cursor: grab;
  fill: #ffffff;
  stroke: #0f6f68;
}

.jimei-zone-overlay [data-zone-edit-anchor="n"],
.jimei-zone-overlay [data-zone-edit-anchor="s"] {
  cursor: ns-resize;
}

.jimei-zone-overlay [data-zone-edit-anchor="e"],
.jimei-zone-overlay [data-zone-edit-anchor="w"] {
  cursor: ew-resize;
}

.jimei-zone-overlay [data-zone-edit-anchor="nw"],
.jimei-zone-overlay [data-zone-edit-anchor="se"] {
  cursor: nwse-resize;
}

.jimei-zone-overlay [data-zone-edit-anchor="ne"],
.jimei-zone-overlay [data-zone-edit-anchor="sw"] {
  cursor: nesw-resize;
}

.proposal-visual.is-zone-geometry-dragging,
.proposal-visual.is-zone-geometry-dragging .jimei-zone-overlay,
.jimei-zone-overlay [data-zone-edit-handle].is-dragging,
.jimei-zone-overlay [data-zone-edit-move-hitarea].is-dragging {
  cursor: grabbing;
}

.jimei-zone-overlay [data-zone-edit-handle].is-dragging {
  fill: #e8f0ff;
}

.selected-zone-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.selected-zone-edit-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.selected-zone-edit-field input,
.selected-zone-edit-field select,
.selected-zone-edit-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 680;
}

.selected-zone-edit-field input,
.selected-zone-edit-field select {
  height: 32px;
  padding: 0 9px;
}

.selected-zone-edit-field textarea {
  resize: vertical;
  min-height: 54px;
  padding: 8px 9px;
}

.selected-zone-save-button {
  border-color: #1f5f98;
  background: #23649b;
  color: #fff;
}

.selected-zone-edit-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 720;
}

.proposal-visual.is-cad::after {
  background: linear-gradient(180deg, rgba(247,247,244,.1), rgba(247,247,244,0));
}

.visual-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 7px;
  background: rgba(31, 36, 41, .68);
  color: #fffdf7;
  font-size: 12px;
  font-weight: 720;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}

.label-basement { left: 24px; bottom: 54px; }
.label-equipment { right: 22px; bottom: 54px; }
.label-shaft { left: 49%; top: 38px; transform: translateX(-50%); }
.label-ground { right: 24px; bottom: 16px; }

.config-list {
  display: block;
  padding: 0;
}

.config-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fffdf7;
}

.config-row:last-child {
  border-bottom: 0;
}

.config-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.42;
}

.config-row b {
  min-width: 0;
  color: #252b2d;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 660;
  overflow-wrap: anywhere;
}

.system-config-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 8px;
  padding: 0;
  overflow: hidden;
}

.system-config-page.is-single-section {
  grid-template-rows: minmax(0, 1fr);
}

.app.is-system-config {
  --project-width: 0px;
  --agent-width: 0px;
}

.app.is-system-config .project-list,
.app.is-system-config .project-resizer,
.app.is-system-config .agent,
.app.is-system-config .agent-resizer {
  display: none !important;
}

.workspace.is-system-config .workspace-tabs,
.workspace.is-system-config .jimei-proposal-shell,
.workspace.is-system-config .jimei-drawing-card,
.workspace.is-system-config .jimei-analysis-panel,
.workspace.is-system-config .tab-panels > :not([data-route-page]) {
  display: none !important;
}

.workspace.is-system-config .status-stack {
  display: none;
}

.workspace.is-system-config .workspace-head {
  margin-bottom: 8px;
}

.system-config-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
}

.system-config-summary-strip {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid #cbd8df;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 252, 253, .92), rgba(255, 253, 247, .88));
  overflow: hidden;
}

.system-config-summary-title {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.system-config-summary-title span,
.system-config-item-type {
  color: var(--blue);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
}

.system-config-summary-title strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 820;
}

.system-config-summary-title p,
.system-config-section-head p,
.system-config-item p {
  margin: 0;
  color: var(--muted);
}

.system-config-summary-strip .system-config-ref-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line-soft);
}

.system-config-summary-strip .config-row {
  min-height: 54px;
  align-content: center;
  border-bottom: 0;
  border-right: 1px solid var(--line-soft);
}

.system-config-summary-strip .config-row:last-child {
  border-right: 0;
}

.system-config-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .82);
}

.system-config-tab {
  min-width: 138px;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.system-config-tab[aria-pressed="true"] {
  background: #23649b;
  color: #fffdf7;
  box-shadow: 0 1px 0 rgba(31, 36, 41, .08);
}

.system-config-section {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .82);
  box-shadow: 0 1px 0 rgba(31, 36, 41, .03);
  overflow: hidden;
}

.system-config-management {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.system-config-section-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.system-config-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.system-config-section-head p {
  margin-top: 4px;
  font-size: 12px;
}

.system-config-section > .jimei-empty-note {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
}

.system-config-ref-list {
  display: grid;
  gap: 0;
}

.system-config-ref-list .config-row {
  background: rgba(255, 253, 247, .74);
}

.system-config-ref-list .config-row b {
  text-align: right;
}

.system-config-two-pane {
  display: grid;
  grid-template-columns: minmax(240px, 28%) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.system-config-item-list {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line-soft);
  overflow: auto;
}

.system-config-item {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 253, 247, .68);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.system-config-item.has-action {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px;
}

.system-config-item-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.system-config-item:last-child {
  border-bottom: 0;
}

.system-config-item[aria-pressed="true"] {
  background: rgba(232, 240, 248, .95);
  box-shadow: inset 3px 0 0 var(--blue);
}

.system-config-item strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.system-config-item p {
  display: none;
  line-height: 1.35;
}

.system-config-source-file {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 620;
}

.system-config-source-file span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-config-source-download {
  flex: 0 0 auto;
  color: #23649b;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid rgba(35, 100, 155, .2);
  border-radius: 5px;
  background: rgba(255, 253, 247, .78);
  cursor: pointer;
}

.system-config-item code {
  display: none;
}

.system-config-action {
  align-self: center;
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 112px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(248, 244, 235, .9);
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}

.system-config-action small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.system-config-preview {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(255, 253, 247, .58);
  overflow: hidden;
}

.system-config-preview-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.system-config-preview-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.system-config-preview-head span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 780;
}

.system-config-preview-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.system-config-preview-head code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.system-config-preview-body {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  color: #252b2d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.system-config-preview-body.is-editable {
  cursor: text;
}

.system-config-editor {
  width: 100%;
  height: 100%;
  resize: none;
  border: 1px solid var(--line);
  border-width: 0;
  border-radius: 0;
  color: #252b2d;
  background: #fff;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.system-config-editor.is-browsing {
  background: transparent;
  cursor: text;
}

.system-config-document-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
}

.system-config-sop-controls {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  background: rgba(248, 252, 253, .76);
}

.system-config-version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 253, 247, .9);
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.system-config-sop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.system-config-file-input {
  max-width: 260px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}

.system-config-reference {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .76);
  overflow: hidden;
}

.system-config-reference summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 780;
}

.system-config-reference .system-config-section {
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.settings-page {
  overflow: auto;
}

.settings-grid {
  min-width: 0;
  width: min(100%, 760px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  align-content: start;
}

.settings-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .84);
  box-shadow: 0 1px 0 rgba(31, 36, 41, .03);
}

.settings-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.settings-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.settings-card-head p,
.settings-integration-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-password-form {
  display: grid;
  gap: 10px;
}

.settings-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.settings-field input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: inherit;
}

.settings-field input:focus {
  outline: 2px solid rgba(35, 100, 155, .18);
  border-color: #23649b;
}

.settings-actions {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 2px;
}

.primary-action,
.secondary-action {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-weight: 780;
}

.primary-action {
  color: #fffdf7;
  background: #23649b;
  border-color: #23649b;
}

.secondary-action {
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  background: rgba(248, 244, 235, .9);
}

.settings-message {
  color: #2c6b4f;
  font-size: 12px;
  font-weight: 740;
}

.settings-message.is-error {
  color: #a33a2f;
}

.settings-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(248, 244, 235, .9);
  font-size: 12px;
  font-weight: 780;
}

.settings-integration-body {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .system-config-summary-strip,
  .system-config-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .system-config-summary-strip .system-config-ref-list {
    grid-template-columns: 1fr;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .system-config-summary-strip .config-row {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .system-config-summary-strip .config-row:last-child {
    border-bottom: 0;
  }

  .system-config-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-config-two-pane {
    grid-template-columns: 1fr;
  }

  .system-config-item-list {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .system-config-action {
    grid-row: auto;
    grid-column: 1;
    justify-items: start;
    width: 100%;
  }

}

@media (max-width: 767px) {
  .system-config-page {
    padding: 0;
  }

  .system-config-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-config-tab {
    min-width: 0;
  }
}

.jimei-floor-strip {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: min(52%, 420px);
  gap: 6px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.jimei-floor-strip .jimei-empty-note {
  margin: 0;
  white-space: nowrap;
}

.jimei-floor-button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border-color: var(--line);
  background: #fffdf7;
  color: #4f5963;
  box-shadow: none;
}

.jimei-floor-button.is-active {
  border-color: #1f5f98;
  background: #23649b;
  color: #fff;
}

.jimei-floor-button[data-status="retryable_failed"],
.jimei-floor-button[data-status="failed"] {
  border-color: rgba(166, 76, 66, .45);
  color: var(--red);
}

.jimei-timeline,
.jimei-analysis-stages {
  display: grid;
  gap: 0;
  padding: 8px 10px 10px;
  background: #fffdf7;
}

@container (max-width: 920px) {
  .proposal-visual {
    height: 310px;
  }
}

@container (max-width: 680px) {
  .proposal-editor-fields,
  .zoning-review-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.jimei-timeline-row,
.jimei-analysis-stage {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-bottom: 1px solid var(--line-soft);
  color: #30373a;
  font-size: 12px;
}

.jimei-timeline-row,
.jimei-analysis-stage {
  position: relative;
  min-height: 36px;
  margin: 0 -2px;
  padding: 0 8px;
  border-radius: 6px;
}

.jimei-timeline-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.jimei-analysis-stage {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.jimei-timeline-row:last-child,
.jimei-analysis-stage:last-child {
  border-bottom: 0;
}

.jimei-timeline-row b,
.jimei-analysis-stage b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jimei-timeline-row em,
.jimei-analysis-stage em {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.jimei-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #327f72;
}

.jimei-timeline-row[data-status="succeeded"] b,
.jimei-analysis-stage[data-status="succeeded"] b {
  color: #596064;
  font-weight: 650;
}

.jimei-timeline-row[data-status="succeeded"] em,
.jimei-analysis-stage[data-status="succeeded"] em {
  color: #8a867d;
}

.jimei-timeline-row[data-status="queued"],
.jimei-analysis-stage[data-status="queued"],
.jimei-timeline-row[data-status="blocked"],
.jimei-analysis-stage[data-status="blocked"] {
  background: #fff7e8;
}

.jimei-timeline-row[data-status="queued"] em,
.jimei-analysis-stage[data-status="queued"] em,
.jimei-timeline-row[data-status="blocked"] em,
.jimei-analysis-stage[data-status="blocked"] em {
  color: var(--amber);
}

.jimei-timeline-row[data-status="queued"] .jimei-dot,
.jimei-analysis-stage[data-status="queued"] .jimei-dot {
  background: var(--amber);
}

.jimei-timeline-row[data-status="running"],
.jimei-analysis-stage[data-status="running"] {
  background: var(--blue-soft);
}

.jimei-timeline-row[data-status="running"] em,
.jimei-analysis-stage[data-status="running"] em {
  color: var(--blue);
}

.jimei-timeline-row[data-status="running"] .jimei-dot,
.jimei-analysis-stage[data-status="running"] .jimei-dot {
  background: var(--blue);
  position: relative;
}

/* 脉冲改用合成属性(transform/opacity)：box-shadow 只在初始光栅化一次，之后由合成器缩放/淡出，
   不再每帧重绘，避免分析/报价进行时圆点持续吃 CPU */
.jimei-timeline-row[data-status="running"] .jimei-dot::after,
.jimei-analysis-stage[data-status="running"] .jimei-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(36, 105, 168, .38);
  animation: jimei-status-pulse 1.15s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

.jimei-timeline-row[data-status="blocked"] .jimei-dot,
.jimei-analysis-stage[data-status="blocked"] .jimei-dot {
  background: var(--amber);
}

.jimei-timeline-row[data-status="retryable_failed"],
.jimei-timeline-row[data-status="failed"],
.jimei-analysis-stage[data-status="failed"] {
  background: #fff0ed;
}

.jimei-timeline-row[data-status="retryable_failed"] em,
.jimei-timeline-row[data-status="failed"] em,
.jimei-analysis-stage[data-status="failed"] em {
  color: var(--red);
}

.jimei-timeline-row[data-status="retryable_failed"] .jimei-dot,
.jimei-timeline-row[data-status="failed"] .jimei-dot,
.jimei-analysis-stage[data-status="failed"] .jimei-dot {
  background: var(--red);
}

@keyframes jimei-status-pulse {
  0% {
    transform: scale(.7);
    opacity: .7;
  }
  70% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jimei-timeline-row[data-status="running"] .jimei-dot::after,
  .jimei-analysis-stage[data-status="running"] .jimei-dot::after {
    animation: none;
    opacity: 0;
  }
}

.jimei-mark {
  min-width: 58px;
  height: 22px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.jimei-mark-hvac { background: #23836B; }
.jimei-mark-pending { background: #F2C94C; color: #2D2207; }
.jimei-mark-excluded { background: #7C8792; }
.jimei-mark-outdoor { background: #9AA3AA; }

.jimei-empty-note {
  margin: 0;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

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

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

tr:last-child th,
tr:last-child td { border-bottom: 0; }

th {
  width: 70px;
  color: var(--muted);
  background: #faf6ef;
  font-size: 12px;
  font-weight: 720;
}

td {
  color: #252b2d;
  font-size: 13px;
  font-weight: 650;
}

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

.module ul {
  margin: 0;
  padding: 12px 24px 14px;
}

.module li {
  margin: 6px 0;
  color: #30373a;
  font-size: 13px;
  font-weight: 610;
}

.module p {
  margin: 0;
  padding: 13px 14px 15px;
  color: #384044;
  font-size: 13px;
  font-weight: 610;
}

.agent {
  position: sticky;
  top: 58px;
  grid-column: 4;
  grid-row: 2;
  align-self: start;
  height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  box-shadow: none;
  background: #fbf8f1;
}

.agent::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  bottom: 0;
  width: 12px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(121, 106, 82, 0), rgba(121, 106, 82, .16));
}

.agent-head {
  position: relative;
  z-index: 1;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbf8f1;
  box-shadow: none;
}

.agent-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
}

.agent h2 .icon { color: #4f6172; }
.agent h2 span { min-width: 0; }
.agent p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.agent-collapsed .agent {
  display: none;
}

.agent-thread {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 16px 14px;
}

.bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.bubble-row.user {
  justify-content: flex-end;
}

.bubble-row.assistant {
  justify-content: flex-start;
}

.avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf7;
  color: #5f6870;
}

.avatar .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.assistant-avatar {
  border-color: #c8d6e5;
  background: #f4f8fb;
  color: #4f6172;
}

.bubble {
  position: relative;
  max-width: 78%;
  padding: 9px 11px;
  border: 0;
  color: #34383c;
  font-size: 13px;
  line-height: 1.46;
  font-weight: 560;
  box-shadow: none;
}

.bubble-row.user .bubble {
  border-radius: 13px 13px 4px 13px;
  background: rgba(255,253,247,.82);
  box-shadow: inset 0 0 0 1px rgba(217,209,196,.52);
}

.bubble-row.assistant .bubble {
  border-radius: 13px 13px 13px 4px;
  background: rgba(244,248,251,.90);
  box-shadow: inset 0 0 0 1px rgba(143,180,207,.34);
}

.bubble span {
  display: block;
  margin-bottom: 4px;
  color: #4f6172;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 720;
}

.assistant-action-card {
  display: grid;
  gap: 7px;
  min-width: min(260px, 100%);
}

.assistant-action-card strong {
  color: #26323d;
  font-size: 13px;
  font-weight: 780;
}

.assistant-action-card p,
.assistant-action-card em {
  margin: 0;
  color: #4b5560;
  font-size: 12px;
  line-height: 1.48;
  font-style: normal;
}

.assistant-action-card[data-status="failed"] em {
  color: #9a382f;
}

.assistant-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.assistant-action-buttons button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(77, 91, 105, .22);
  border-radius: 6px;
  background: #fffdf7;
  color: #4b5560;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.assistant-action-buttons button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.assistant-action-buttons .assistant-action-primary {
  border-color: rgba(40, 112, 162, .34);
  background: #2f6f96;
  color: #fff;
}

.agent-compose {
  margin-top: auto;
  padding: 12px 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbf8f1;
  box-shadow: none;
}

.compose-box {
  position: relative;
  min-height: 104px;
  padding: 12px 12px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: #817b72;
  font-size: 12px;
  font-weight: 600;
}

.compose-input {
  width: 100%;
  min-height: 44px;
  max-height: 110px;
  overflow: auto;
  outline: none;
  border: 0;
  padding: 0;
  background: transparent;
  resize: none;
  box-sizing: border-box;
  font: inherit;
  white-space: pre-wrap;
}

.compose-input::placeholder {
  color: #817b72;
}

.compose-input:disabled {
  cursor: not-allowed;
}

.compose-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.compose-tool,
.compose-send {
  width: 28px;
  height: 28px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #687078;
  box-shadow: none;
}

.compose-send {
  width: 30px;
  margin-left: auto;
  color: #fff;
  border-color: #1f5f98;
  background: #276aa5;
}

.compose-input {
  color: var(--ink);
  line-height: 1.42;
}

.compose-box .icon {
  width: 14px;
  height: 14px;
}

/* P0-3 webchat：失败用户泡泡（失败原因留在泡泡内）、方案作用域工作中 ...、面板级错误 */
.bubble[data-send-status="sending"] {
  opacity: .65;
}

.bubble[data-send-status="failed"] {
  border: 1px solid #d7a183;
}

.bubble-fail {
  display: block;
  margin-top: 4px;
  color: #9b4d2e;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.bubble.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.bubble.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa3ab;
  animation: jimeiTyping 1s infinite ease-in-out;
}

.bubble.typing i:nth-child(2) {
  animation-delay: .15s;
}

.bubble.typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes jimeiTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.agent-panel-error {
  margin: 4px 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff7f0;
  color: #7f4a32;
  font-size: 12px;
  font-weight: 620;
}

@media (max-width: 1080px) {
  .login-page {
    align-items: flex-start;
    justify-content: center;
    padding: 30px 22px;
  }

  .login-shell {
    width: 100%;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 34px;
    justify-items: center;
  }

  .login-brand {
    position: relative;
    justify-self: start;
  }

  .login-hero,
  .login-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .login-hero {
    width: min(720px, 100%);
    justify-items: center;
    text-align: center;
  }

  .login-grid {
    left: 50%;
    top: -46px;
    transform: translateX(-50%);
    width: min(600px, 92vw);
  }

  .login-hero > p {
    max-width: 590px;
  }

  .login-feature-cards {
    justify-content: center;
  }

  .login-panel {
    width: min(410px, 100%);
  }
}

@media (max-width: 767px) {
  .login-page {
    padding: 22px 16px;
  }

  .login-shell {
    gap: 28px;
  }

  .login-brand {
    justify-self: center;
  }

  .login-hero {
    gap: 18px;
  }

  .login-hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .login-hero > p {
    font-size: 16px;
    line-height: 1.58;
  }

  .login-feature-cards {
    width: min(420px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 6px;
  }

  .login-feature-cards article {
    min-height: 72px;
    padding: 10px 9px;
  }

  .login-feature-cards strong {
    font-size: 22px;
  }

  .login-feature-cards span {
    font-size: 12px;
  }

  .login-panel {
    padding: 24px 20px 22px;
  }

  .login-panel-copy h2 {
    font-size: 25px;
  }
}

@media (max-width: 1199px) {
  .app,
  .app.agent-collapsed {
    --agent-width: 360px;
    grid-template-columns: 64px var(--project-width) minmax(0, 1fr);
  }

  .app.project-collapsed,
  .app.project-collapsed.agent-collapsed {
    grid-template-columns: 64px 0 minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .workspace {
    grid-column: 3;
  }

  .agent {
    position: fixed;
    z-index: 30;
    top: 58px;
    right: 0;
    width: min(360px, calc(100vw - 64px));
    height: calc(100dvh - 58px);
    border-left: 1px solid var(--line);
    background: #fbf8f1;
  }

  .agent::before {
    display: none;
  }

  .agent-resizer {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .proposal-visual {
    height: clamp(280px, 38vw, 390px);
  }

  .proposal-visual.is-cad {
    height: clamp(320px, 48vw, 460px);
  }
}

@media (max-width: 767px) {
  html {
    height: auto;
    overflow: auto;
  }

  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app,
  .app.project-collapsed,
  .app.agent-collapsed,
  .app.project-collapsed.agent-collapsed {
    --mobile-nav-height: 58px;
    --mobile-copilot-height: 58px;
    --mobile-safe-bottom: 0px;
    --mobile-bottom-stack: calc(var(--mobile-nav-height) + var(--mobile-copilot-height) + var(--mobile-safe-bottom));
    --client-drawer-transform: translateX(calc(100% + 16px));
    --copilot-drawer-transform: translateY(calc(100% + var(--mobile-bottom-stack)));
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    display: block;
  }

  .app.drawer-ready.client-drawer-open {
    --client-drawer-transform: translateX(0);
  }

  .app.drawer-ready.copilot-drawer-open {
    --copilot-drawer-transform: translateY(0);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 8px 10px;
    backdrop-filter: none;
  }

  .brand {
    min-width: 0;
    padding-left: 0;
    gap: 8px;
  }

  .brand span {
    width: 28px;
    height: 28px;
  }

  .brand strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-account-button {
    margin-left: auto;
    display: grid;
    grid-template-columns: 16px minmax(0, auto);
    gap: 5px;
    align-items: center;
    width: auto;
    max-width: 126px;
    min-height: 30px;
    padding: 0 8px;
    border-color: #d7ccc0;
    background: #fffdf7;
    color: #4f6172;
  }

  .mobile-account-button b {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand .chrome-toggle {
    margin-left: 0;
  }

  .role-strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
    z-index: 70;
    justify-self: stretch;
    display: block;
    width: 100vw;
    min-height: var(--mobile-copilot-height);
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 247, .96);
    backdrop-filter: blur(18px);
  }

  .account-strip {
    display: none;
  }

  .account-popover {
    top: 46px;
    right: 10px;
  }

  .topbar-copilot {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: center;
  }

  .topbar-copilot-input {
    width: auto;
    min-width: 0;
    height: 40px;
    max-width: none;
    font-size: 14px;
  }

  .topbar-copilot.is-active {
    width: 100%;
    gap: 8px;
  }

  .topbar-copilot.is-active .topbar-copilot-input {
    display: block;
  }

  .topbar-copilot .copilot-send,
  .topbar-copilot.is-active .copilot-send {
    width: 40px;
    min-height: 40px;
  }

  .left-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    min-height: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
    padding: 6px 8px calc(6px + var(--mobile-safe-bottom));
    border-right: 0;
    border-top: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
  }

  .left-nav a {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
  }

  .project-list {
    position: fixed;
    display: block;
    top: 54px;
    left: 8px;
    right: 8px;
    bottom: calc(var(--mobile-bottom-stack) + 8px);
    z-index: 55;
    overflow: auto;
    padding: 13px 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(31, 36, 41, .18);
    pointer-events: none;
    transform: var(--client-drawer-transform);
  }

  .app.project-collapsed .project-list {
    display: block;
  }

  .drawer-ready .project-list {
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
  }

  .app.drawer-ready.client-drawer-open .project-list {
    pointer-events: auto;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(18, 21, 24, .42);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  .app.drawer-ready.client-drawer-open .mobile-backdrop,
  .app.drawer-ready.copilot-drawer-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .project-resizer,
  .agent-resizer {
    display: none;
  }

  .workspace {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 14px 10px calc(var(--mobile-bottom-stack) + 18px);
    background: linear-gradient(180deg, #f6f2e9, #f2eee5);
  }

  .workspace::before,
  .workspace::after {
    display: none;
  }

  .workspace-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    margin-bottom: 12px;
  }

  .workspace-head > div:first-child {
    display: contents;
  }

  .workspace h1 {
    grid-column: 1 / -1;
    font-size: 20px;
  }

  .workspace-subtitle {
    grid-column: 1;
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-stack {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
    max-width: 100%;
    display: inline-flex;
    gap: 0;
    overflow: hidden;
    padding-bottom: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,253,247,.78);
  }

  .status-stack span {
    min-height: 22px;
    flex: 0 0 auto;
    gap: 0;
    padding: 0 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .status-stack span + span {
    border-left: 1px solid var(--line-soft);
  }

  .status-stack .icon,
  .desktop-status {
    display: none;
  }

  .mobile-status {
    display: inline;
  }

  .jimei-proposal-shell {
    margin-bottom: 8px;
  }

  .jimei-proposal-summary {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .workspace-tabs {
    display: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .workspace-tabs label {
    flex: 0 0 auto;
  }

  .tab-panels,
  .tab-panel,
  .canvas-card,
  .drawing,
  .proposal-editor,
  .module {
    min-width: 0;
    max-width: 100%;
  }

  .tab-panel {
    height: auto;
    overflow: visible;
  }

  .canvas-card {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .proposal-editor-controls,
  .proposal-editor-controls-compact,
  .proposal-editor-fields,
  .zoning-review-list {
    grid-template-columns: 1fr;
  }

  .proposal-editor-body {
    max-height: none;
    overflow: visible;
  }

  .proposal-editor-switch button,
  .review-mode-tabs button,
  .proposal-zone-chip,
  .proposal-editor-control input,
  .proposal-editor-control select {
    min-height: 44px;
  }

  .proposal-editor-control input,
  .proposal-editor-control select,
  .selected-zone-edit-field input,
  .selected-zone-edit-field select,
  .selected-zone-edit-field textarea {
    font-size: 16px;
  }

  .selected-zone-edit-field input,
  .selected-zone-edit-field select {
    min-height: 44px;
  }

  .selected-zone-edit-field textarea {
    min-height: 72px;
  }

  .jimei-drawing-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .drawing-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    justify-items: start;
    justify-content: flex-start;
    row-gap: 8px;
  }

  .drawing-head .jimei-floor-strip {
    grid-column: 1;
    flex: none;
    justify-content: flex-start;
    max-width: 100%;
    margin-left: 0;
    width: 100%;
  }

  .jimei-drawing-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .jimei-analysis-report-button {
    flex: 1 1 100%;
  }

  .jimei-file-picker,
  .jimei-drawing-actions > button:not(.jimei-analysis-report-button) {
    flex: 1 1 0;
  }

  .jimei-analysis-report-backdrop {
    padding: 10px;
  }

  .jimei-analysis-report-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }

  .jimei-checkpoint-summary {
    justify-self: stretch;
    justify-content: space-between;
    padding: 0;
  }

  .jimei-checkpoint-row {
    min-height: auto;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 7px;
  }

  .jimei-checkpoint-row em {
    grid-column: 2;
  }

  .jimei-checkpoint-row time {
    grid-column: 2;
  }

  .drawing-head,
  .sheet-title,
  .module-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .proposal-visual {
    height: 258px;
  }

  .proposal-visual.is-cad {
    height: 300px;
  }

  .drawing .proposal-visual.is-cad {
    height: 300px;
  }

  .drawing-viewport-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    align-items: center;
    padding-right: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .drawing-viewport-toolbar::-webkit-scrollbar {
    display: none;
  }

  .drawing-viewport-button {
    flex: 0 0 auto;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    white-space: nowrap;
  }

  .drawing-viewport-status {
    flex: 0 0 auto;
    min-width: max-content;
    margin-left: 4px;
    white-space: nowrap;
  }

  .selected-zone-inspector {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 0;
  }

  .selected-zone-grid,
  .selected-zone-actions,
  .selected-zone-edit,
  .selected-zone-inspector > .jimei-empty-note {
    grid-column: 1;
    grid-row: auto;
  }

  .selected-zone-grid,
  .selected-zone-edit {
    grid-template-columns: 1fr;
  }

  .selected-zone-actions {
    justify-self: stretch;
  }

  .selected-zone-actions button {
    width: 100%;
  }

  .proposal-visual > .selected-zone-inspector {
    right: 8px;
    bottom: 8px;
    left: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    padding: 8px;
    border-radius: 9px;
  }

  .proposal-visual > .selected-zone-inspector .selected-zone-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .proposal-visual > .selected-zone-inspector .selected-zone-field {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .proposal-visual > .selected-zone-inspector .selected-zone-field[data-selected-zone-field="risk"],
  .proposal-visual > .selected-zone-inspector .selected-zone-field[data-selected-zone-field="service_boundary"],
  .proposal-visual > .selected-zone-inspector .selected-zone-field[data-selected-zone-field="source_floor"] {
    display: none;
  }

  .proposal-visual > .selected-zone-inspector .selected-zone-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .proposal-visual > .selected-zone-inspector .selected-zone-actions button {
    width: auto;
    min-width: 76px;
  }

  .visual-label {
    min-height: 24px;
    padding: 0 7px;
    font-size: 11px;
  }

  .label-basement { left: 12px; bottom: 44px; }
  .label-equipment { right: 12px; bottom: 44px; }
  .label-shaft { top: 22px; }
  .label-ground { right: 12px; bottom: 12px; }

  .config-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
  }

  .agent {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(var(--mobile-bottom-stack) + 8px);
    top: auto;
    z-index: 60;
    width: auto;
    height: min(64dvh, 620px);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(31, 36, 41, .22);
    display: flex;
    pointer-events: none;
    transform: var(--copilot-drawer-transform);
  }

  .app.agent-collapsed .agent {
    display: flex;
  }

  .drawer-ready .agent {
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
  }

  .app.drawer-ready.copilot-drawer-open .agent {
    pointer-events: auto;
  }

  .agent-head {
    padding: 13px 14px;
  }

  .agent-thread {
    padding: 14px 12px;
  }

  .bubble {
    max-width: 82%;
  }

  .agent-compose {
    display: none;
  }
}

/* 全局轻提示：用于把"分析中无法上传/重分析"等阻塞原因显示给用户（status 行可能不可见时的兜底） */
.jimei-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  z-index: 9999;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(31, 36, 41, .95);
  color: #fff8ec;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.jimei-toast[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

.jimei-toast[data-kind="warn"] {
  background: rgba(154, 104, 46, .96);
}

/* 预算表历史行：名称 + 版本信息(时间/范围/计入区域/基于哪版分析) + 改名/删除 */
.budget-export-history-row { align-items: center; }
.budget-export-history-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}
.budget-export-history-row .budget-export-history-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}
.budget-export-history-row .budget-export-history-meta,
.budget-export-history-row .budget-export-history-prompt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.budget-export-history-row .budget-export-history-prompt { font-weight: 500; }
.budget-export-history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.budget-export-history-row .budget-export-confirm-text {
  color: #9a682e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.budget-export-history-row .budget-export-danger { color: #b3401f; }
.budget-export-rename-input {
  width: 130px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}
