:root {
  color-scheme: light;
  --ink: #171a16;
  --ink-2: #3f463d;
  --muted: #747c71;
  --line: #e1ded6;
  --paper: #f4f2ec;
  --panel: #fffefa;
  --panel-2: #f8f6f0;
  --forest: #17251d;
  --forest-2: #203429;
  --lime: #c9f25e;
  --lime-deep: #9fd332;
  --warm: #b47c51;
  --danger: #b94b42;
  --shadow: 0 18px 50px rgba(48, 43, 32, .08);
  --radius: 18px;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.hidden { display: none !important; }
::selection { background: var(--lime); color: var(--forest); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfcac0; border-radius: 99px; }

.boot-screen { position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; gap: 18px; background: var(--forest); color: #fff; text-align: center; transition: opacity .35s ease; }
.boot-screen.done { opacity: 0; pointer-events: none; }
.boot-screen p { margin: 0; color: #c7d0c7; letter-spacing: .12em; font-size: 12px; }
.boot-mark { display: flex; gap: 7px; align-items: end; justify-content: center; height: 34px; }
.boot-mark span { width: 7px; height: 20px; background: var(--lime); border-radius: 4px; animation: bootPulse 1s ease-in-out infinite; }
.boot-mark span:nth-child(2) { height: 32px; animation-delay: .12s; }
.boot-mark span:nth-child(3) { height: 25px; animation-delay: .24s; }
@keyframes bootPulse { 0%, 100% { transform: scaleY(.55); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }

.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.primary-button, .ghost-button, .small-button, .danger-button, .glass-button, .link-button { border: 0; border-radius: 11px; transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease; }
.primary-button { min-height: 44px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--forest); color: #fff; font-weight: 700; }
.primary-button i { font-style: normal; color: var(--lime); font-size: 18px; }
.primary-button:hover { transform: translateY(-1px); background: #254031; }
.primary-button:disabled, .small-button:disabled { opacity: .45; cursor: wait; transform: none; }
.ghost-button { min-height: 42px; padding: 0 17px; background: transparent; border: 1px solid var(--line); font-weight: 650; }
.ghost-button:hover { background: #fff; border-color: #b8b3a9; }
.small-button { min-height: 34px; padding: 0 13px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.small-button:hover { border-color: #aeb2a6; background: #fff; }
.danger-button { min-height: 34px; padding: 0 13px; background: #fff4f1; border: 1px solid #e8c4bf; color: var(--danger); font-size: 12px; font-weight: 700; }
.link-button { padding: 0; background: none; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.link-button:hover { color: #000; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; border-radius: 50%; font-size: 20px; line-height: 1; }
.icon-button:hover { background: var(--panel-2); }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: #81966f; box-shadow: 0 0 0 3px rgba(159, 211, 50, .12); }
label { display: grid; gap: 6px; color: var(--ink-2); font-size: 12px; font-weight: 650; }
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel-2); color: var(--ink-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.good { border-color: #b5d98f; background: #eef8e5; color: #416724; }
.badge.warn { border-color: #e4c794; background: #fff7e8; color: #805b19; }
.badge.bad { border-color: #e3b7b1; background: #fff2f0; color: var(--danger); }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); background: var(--forest); }
.auth-visual { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 5vw, 72px); color: #fff; background: radial-gradient(circle at 70% 20%, rgba(201, 242, 94, .14), transparent 28%), radial-gradient(circle at 20% 78%, rgba(180, 124, 81, .22), transparent 35%), linear-gradient(135deg, #17251d, #0e1712 70%); }
.auth-visual::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; right: -28%; top: 4%; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 130px rgba(255,255,255,.015); }
.auth-visual::after { content: ""; position: absolute; width: 300px; height: 460px; right: 16%; bottom: -12%; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.01)); clip-path: polygon(0 20%, 30% 0, 100% 8%, 100% 100%, 0 100%); opacity: .55; }
.brand-lockup { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--lime); color: var(--forest); font-family: var(--serif); font-size: 25px; font-weight: 900; }
.brand-lockup strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand-lockup span { display: block; margin-top: 1px; color: #9eaaa1; font-size: 10px; letter-spacing: .08em; }
.auth-copy { position: relative; z-index: 2; max-width: 660px; margin: auto 0; padding: 7vh 0 6vh; }
.auth-copy .eyebrow { color: var(--lime); }
.auth-copy h1 { margin: 20px 0 22px; font-family: var(--serif); font-size: clamp(48px, 6.3vw, 92px); font-weight: 600; line-height: 1.07; letter-spacing: -.045em; }
.auth-copy p { max-width: 520px; margin: 0; color: #b9c2ba; font-size: 15px; line-height: 1.9; }
.auth-features { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 660px; }
.auth-features div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 15px; }
.auth-features b { display: block; color: var(--lime); font-size: 18px; font-family: var(--serif); }
.auth-features span { color: #aeb9b0; font-size: 10px; }
.auth-note { position: relative; z-index: 2; margin-top: auto; padding-top: 36px; color: #77857a; font-size: 10px; letter-spacing: .08em; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px; background: #f2efe8; }
.auth-card { width: min(440px, 100%); }
.auth-mobile-brand { display: none; }
.auth-tabs { display: flex; gap: 22px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.auth-tabs button { position: relative; padding: 0 2px 14px; border: 0; background: transparent; color: #8b9188; font-size: 16px; font-weight: 700; }
.auth-tabs button.active { color: var(--ink); }
.auth-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--forest); }
.auth-form { display: grid; gap: 16px; }
.form-heading h2 { margin: 0 0 5px; font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.form-heading p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.subtle-label span { color: var(--muted); font-weight: 400; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.edition-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edition-picker button { display: grid; gap: 3px; padding: 15px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.edition-picker button b { font-size: 13px; }
.edition-picker button span { color: var(--muted); font-size: 10px; }
.edition-picker button.active { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #f7fae9; }
.legal-hint { color: var(--muted); font-size: 10px; text-align: center; }
.sms-panel { display: grid; gap: 12px; margin-top: 20px; padding: 16px; background: #eae7df; border-radius: 13px; }
.sms-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sms-heading b { font-size: 12px; }
.sms-heading span { color: var(--muted); font-size: 10px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.split-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.auth-foot { width: min(440px, 100%); margin: 28px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.auth-foot a { text-decoration: underline; text-underline-offset: 3px; }
.app { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 17px; background: var(--forest); color: #fff; overflow: auto; }
.brand-lockup.compact { padding: 0 7px 22px; }
.brand-lockup.compact .brand-symbol { width: 34px; height: 34px; border-radius: 10px; font-size: 22px; }
.brand-lockup.compact strong { font-size: 14px; }
.workspace-card { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.045); color: #fff; text-align: left; }
.workspace-card:hover { background: rgba(255,255,255,.08); }
.workspace-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(201,242,94,.14); color: var(--lime); font-family: var(--serif); font-size: 17px; font-weight: 800; }
.workspace-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.workspace-card small { display: block; color: #8c9c90; font-size: 9px; }
.workspace-card i { color: #819085; font-style: normal; }
.side-nav { display: grid; gap: 3px; margin-top: 25px; }
.side-nav p { margin: 17px 10px 6px; color: #6e7f74; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.side-nav button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #aebbb1; text-align: left; font-size: 12px; font-weight: 650; }
.side-nav button:hover { background: rgba(255,255,255,.055); color: #fff; }
.side-nav button.active { background: var(--lime); color: var(--forest); }
.side-nav button em { margin-left: auto; padding: 1px 6px; border-radius: 99px; background: rgba(0,0,0,.08); font-style: normal; font-size: 9px; }
.nav-icon { width: 18px; font-size: 16px; text-align: center; opacity: .9; }
.sidebar-foot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 16px 5px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot span { min-width: 0; flex: 1; }
.sidebar-foot b { display: block; font-size: 10px; font-weight: 650; }
.sidebar-foot small { display: block; overflow: hidden; color: #738178; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.health-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #8c978b; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.health-dot.good { background: var(--lime); box-shadow: 0 0 0 4px rgba(201,242,94,.12); }
.health-dot.bad { background: #f0786a; }
.sidebar-foot .icon-button { width: 30px; height: 30px; border-color: rgba(255,255,255,.1); color: #9caaa0; font-size: 15px; }

.main { min-width: 0; padding: 0 clamp(18px, 3.2vw, 48px) 54px; }
.topbar { position: sticky; top: 0; z-index: 60; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 calc(clamp(18px, 3.2vw, 48px) * -1); padding: 16px clamp(18px, 3.2vw, 48px); background: rgba(244, 242, 236, .91); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(225,222,214,.8); }
.breadcrumb span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.breadcrumb h1 { margin: 1px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.025em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.project-select-wrap { display: flex; align-items: center; gap: 8px; padding: 5px 7px 5px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.project-select-wrap span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.project-select-wrap select { width: min(240px, 24vw); padding: 4px 2px; border: 0; background: transparent; font-size: 11px; font-weight: 700; box-shadow: none; }
.avatar-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--forest); color: var(--lime); font-family: var(--serif); font-weight: 800; }
.global-notice { margin: 18px 0 0; padding: 12px 16px; border: 1px solid #e4c794; border-radius: 12px; background: #fff8e8; color: #775418; font-size: 12px; }
.global-notice.bad { border-color: #e3b7b1; background: #fff2f0; color: var(--danger); }
.loading-bar { position: fixed; z-index: 400; left: 0; right: 0; top: 0; height: 2px; background: transparent; pointer-events: none; }
.loading-bar.active::after { content: ""; display: block; width: 38%; height: 100%; background: var(--lime-deep); animation: loadingSlide 1.1s ease-in-out infinite; }
@keyframes loadingSlide { from { transform: translateX(-120%); } to { transform: translateX(360%); } }
.view { display: none; padding-top: 26px; animation: viewIn .28s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-card { position: relative; overflow: hidden; min-height: 268px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: center; gap: 30px; padding: clamp(30px, 4.5vw, 58px); border-radius: 24px; background: radial-gradient(circle at 78% 30%, rgba(201,242,94,.13), transparent 23%), linear-gradient(125deg, #17251d, #294535); color: #fff; box-shadow: 0 22px 55px rgba(23,37,29,.18); }
.hero-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -180px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-card .eyebrow { color: var(--lime); }
.hero-card h2 { max-width: 620px; margin: 13px 0 12px; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.hero-card p { max-width: 590px; color: #b7c2b9; font-size: 13px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-card .primary-button { background: var(--lime); color: var(--forest); }
.hero-card .primary-button i { color: var(--forest); }
.hero-card .ghost-button { border-color: rgba(255,255,255,.2); color: #e9eee9; }
.hero-card .ghost-button:hover { background: rgba(255,255,255,.08); }
.hero-orbit { position: relative; width: min(260px, 24vw); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(201,242,94,.22); border-radius: 50%; transform: rotate(55deg) scaleX(.55); }
.hero-orbit::after { transform: rotate(-35deg) scaleY(.55); }
.hero-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 15px rgba(201,242,94,.8); }
.hero-orbit i:nth-child(1) { left: 8%; top: 34%; }
.hero-orbit i:nth-child(2) { right: 13%; top: 17%; }
.hero-orbit i:nth-child(3) { right: 23%; bottom: 6%; }
.hero-orbit b { font-family: var(--serif); font-size: clamp(58px, 7vw, 92px); font-weight: 500; color: var(--lime); line-height: 1; }
.hero-orbit span { position: absolute; bottom: 26%; color: #91a295; font-size: 9px; letter-spacing: .1em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 15px; }
.metric-card { position: relative; min-height: 122px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 6px 22px rgba(48,43,32,.035); }
.metric-card span { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-card b { display: block; margin-top: 13px; font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.metric-card small { display: block; margin-top: 8px; color: #969b91; font-size: 9px; }
.metric-card::after { content: ""; position: absolute; width: 54px; height: 54px; right: -22px; top: -22px; border-radius: 50%; background: #f2f1e8; }
.metric-card.accent { background: var(--lime); border-color: var(--lime); }
.metric-card.accent span, .metric-card.accent small { color: #587221; }
.metric-card.accent::after { background: rgba(255,255,255,.24); }
.content-grid { display: grid; gap: 15px; margin-top: 15px; }
.content-grid.two-one { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 6px 22px rgba(48,43,32,.035); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-head h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 6px 0 22px; }
.section-head h2 { margin: 7px 0 4px; font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.035em; }
.section-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card-list { display: grid; gap: 8px; }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.project-card:hover { border-color: #a9b29d; background: #fbfcf5; }
.project-card b { display: block; font-size: 13px; }
.project-card span { color: var(--muted); font-size: 10px; }
.project-card .project-state { display: flex; align-items: center; gap: 8px; }
.steps-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; gap: 1px; padding: 13px; border-radius: 11px; background: var(--panel-2); }
.steps-list b { color: #aab0a5; font-family: var(--serif); font-size: 18px; }
.steps-list span { font-size: 11px; font-weight: 700; }
.steps-list small { color: var(--muted); font-size: 9px; }
.steps-list li.done { background: #f0f7e5; }
.steps-list li.done b { color: var(--lime-deep); }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.usage-card { padding: 13px; border-radius: 10px; background: var(--panel-2); }
.usage-card b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.usage-card span { color: var(--muted); font-size: 9px; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; padding: 0 0 15px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 10px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item > i { width: 7px; height: 7px; margin-top: 6px; border: 2px solid var(--panel); border-radius: 50%; background: #aab4a0; box-shadow: 0 0 0 1px #c9cec2; }
.timeline-item b { display: block; font-size: 11px; font-weight: 650; }
.timeline-item small { display: block; color: var(--muted); font-size: 9px; }
.timeline-item time { color: #9ba196; font-size: 9px; white-space: nowrap; }
.timeline.compact .timeline-item { padding-bottom: 12px; }
.toolbar-panel { padding: 13px; margin-bottom: 13px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar input { max-width: 340px; }
.toolbar select { max-width: 150px; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: left; white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid #ece9e2; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfbf6; }
td b { display: block; font-size: 12px; }
td small { display: block; color: var(--muted); font-size: 9px; }
td code { color: #596451; font-size: 10px; }
.row-actions { display: flex; gap: 5px; white-space: nowrap; }
.row-actions button { padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 9px; font-weight: 700; }
.row-actions button:hover { border-color: #aab09f; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 65px 24px; text-align: center; border: 1px dashed #d2cec4; border-radius: var(--radius); background: rgba(255,255,255,.45); }
.empty-state b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.empty-state p { max-width: 500px; margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.floorplan-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); }
.plan-panel { padding-bottom: 12px; }
.floorplan-canvas { min-height: 430px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background-color: #f7f4ec; background-image: linear-gradient(#e8e4da 1px, transparent 1px), linear-gradient(90deg, #e8e4da 1px, transparent 1px); background-size: 22px 22px; }
.floorplan-canvas svg { width: 100%; height: 100%; min-height: 430px; }
.space-list, .wall-list { display: grid; gap: 7px; }
.space-item, .wall-item { display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.space-index { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #f0f5e7; color: #658438; font-family: var(--serif); font-weight: 700; }
.space-item b, .wall-item b { display: block; font-size: 11px; }
.space-item small, .wall-item small { display: block; color: var(--muted); font-size: 9px; }
.space-item code, .wall-item code { color: var(--muted); font-size: 8px; }
.wall-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall-item { grid-template-columns: minmax(0, 1fr) auto; }
.opening-pill { display: inline-flex; margin: 3px 3px 0 0; padding: 2px 6px; border-radius: 99px; background: #eef3e6; color: #607a3c; font-size: 8px; }

.upload-panel { display: grid; gap: 13px; }
.upload-dropzone { position: relative; min-height: 285px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 28px; border: 1px dashed #bfc4b6; border-radius: 15px; background: linear-gradient(145deg, #fbfaf5, #f1f3e9); text-align: center; transition: border-color .2s, background .2s; }
.upload-dropzone.dragover { border-color: var(--forest); background: #f3f8e5; }
.upload-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; }
.upload-dropzone h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.upload-dropzone p { margin: 0; color: var(--muted); font-size: 10px; }
.upload-dropzone small { max-width: 100%; overflow: hidden; color: #758a60; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.upload-dropzone button { position: relative; z-index: 4; }
.upload-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); font-size: 28px; }
.upload-actions { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.job-progress { min-height: 190px; display: grid; align-content: center; padding: 18px; border-radius: 13px; background: var(--panel-2); }
.job-idle { color: var(--muted); font-size: 11px; text-align: center; }
.job-stage { display: grid; gap: 8px; }
.job-stage-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e4e1d8; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime-deep), var(--forest)); transition: width .4s ease; }
.job-steps { display: grid; gap: 5px; margin-top: 8px; }
.job-steps span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.job-steps span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d1d4ca; }
.job-steps span.done { color: var(--ink-2); }
.job-steps span.done::before { background: var(--lime-deep); }
.job-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 8px; }
.job-meta code { color: #5b6654; }
.file-list { display: grid; gap: 7px; }
.file-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.file-type { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #f1f4e9; color: #5e783c; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.file-item b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-item small { display: block; color: var(--muted); font-size: 9px; }
.file-actions { display: flex; gap: 5px; }
.analysis-empty { padding: 38px; border: 1px dashed #d5d0c5; border-radius: 12px; color: var(--muted); font-size: 11px; text-align: center; }
.analysis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.analysis-pill { padding: 12px; border-radius: 10px; background: var(--panel-2); }
.analysis-pill b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.analysis-pill span { color: var(--muted); font-size: 9px; }
.design-layout { display: grid; grid-template-columns: 255px minmax(330px, .9fr) minmax(0, 1.3fr); gap: 13px; }
.design-controls { display: grid; gap: 13px; align-content: start; }
.design-controls output { float: right; color: var(--forest); font-weight: 800; }
input[type="range"] { height: 6px; padding: 0; border: 0; border-radius: 99px; background: #e2dfd6; accent-color: var(--forest); }
.check-line { display: flex; align-items: center; gap: 8px; }
.check-line input { width: 16px; height: 16px; accent-color: var(--forest); }
.mini-result { min-height: 35px; color: var(--muted); font-size: 9px; }
.design-summary { min-height: 360px; }
.design-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.design-stat { padding: 11px; border-radius: 10px; background: var(--panel-2); }
.design-stat b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.design-stat span { color: var(--muted); font-size: 8px; }
.cabinet-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.cabinet-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
.cabinet-thumb { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #e5d8c4, #b8956c); }
.cabinet-item b { display: block; font-size: 10px; }
.cabinet-item small { display: block; color: var(--muted); font-size: 8px; }
.design-inspector { min-width: 0; }
.code-view { max-height: 390px; margin: 0; padding: 14px; overflow: auto; border-radius: 10px; background: #1b211c; color: #c9d8c6; font-size: 10px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.code-view.tall { max-height: 68vh; }
.compact-grid { grid-template-columns: repeat(3, 1fr); }
.export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.quote-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quote-line { padding: 11px; border-radius: 9px; background: var(--panel-2); }
.quote-line b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.quote-line span { color: var(--muted); font-size: 9px; }
.quote-total { grid-column: 1 / -1; padding: 16px; border-radius: 11px; background: var(--forest); color: #fff; }
.quote-total b { display: block; color: var(--lime); font-family: var(--serif); font-size: 38px; font-weight: 500; }
.quote-total span { color: #9faf9f; font-size: 9px; }
.workspace-overview { display: grid; grid-template-columns: 1.1fr 1.4fr .8fr; gap: 13px; margin-bottom: 13px; }
.workspace-hero, .workspace-capabilities, .workspace-seats { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.workspace-hero { background: var(--forest); color: #fff; }
.workspace-hero h3 { margin: 8px 0 4px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.workspace-hero p { margin: 0; color: #9eafa1; font-size: 10px; }
.capability-grid { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.capability-grid span { padding: 4px 8px; border-radius: 99px; background: #f0f5e7; color: #557338; font-size: 9px; }
.capability-grid span.off { background: #f1f0eb; color: #9b9d95; text-decoration: line-through; }
.member-list, .invite-list, .session-list { display: grid; gap: 7px; }
.member-item, .invite-item, .session-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.member-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #eef2e5; color: #506c33; font-family: var(--serif); font-weight: 800; }
.member-item b, .invite-item b, .session-item b { display: block; font-size: 11px; }
.member-item small, .invite-item small, .session-item small { display: block; color: var(--muted); font-size: 9px; }
.edition-panel { display: grid; gap: 9px; }
.edition-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.edition-switch button { padding: 15px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.edition-switch button.active { border-color: var(--forest); background: #f4f9e7; box-shadow: inset 0 0 0 1px var(--forest); }
.edition-switch b { display: block; font-size: 12px; }
.edition-switch span { color: var(--muted); font-size: 8px; }
.seat-bar { height: 8px; overflow: hidden; border-radius: 99px; background: #e2e0d8; }
.seat-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lime-deep); }
.agent-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 13px; }
.agent-panel { min-height: 620px; display: flex; flex-direction: column; }
.agent-messages { flex: 1; display: grid; align-content: start; gap: 11px; max-height: 430px; overflow: auto; padding: 12px; background: var(--panel-2); border-radius: 13px; }
.agent-message { max-width: 82%; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.agent-message.user { justify-self: end; background: var(--forest); color: #fff; border-color: var(--forest); }
.agent-message b { display: block; margin-bottom: 4px; color: var(--lime-deep); font-size: 9px; }
.agent-message.user b { color: var(--lime); }
.agent-message p { margin: 0; font-size: 11px; white-space: pre-wrap; }
.agent-form { display: grid; gap: 8px; margin-top: 12px; }
.agent-form > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.agent-form > div span { color: var(--muted); font-size: 8px; }
.session-item { grid-template-columns: minmax(0, 1fr); cursor: pointer; }
.session-item.active { border-color: #9eb585; background: #f7faef; }
.session-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.api-layout { display: grid; grid-template-columns: minmax(260px, .58fr) minmax(0, 1.42fr); gap: 13px; min-height: 640px; }
.api-nav { padding: 12px; align-self: start; position: sticky; top: 104px; max-height: calc(100vh - 124px); overflow: auto; }
.api-nav > input { margin-bottom: 9px; }
.api-groups { display: grid; gap: 7px; }
.api-group summary { padding: 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 10px; font-weight: 750; list-style: none; }
.api-group summary::-webkit-details-marker { display: none; }
.api-group summary::before { content: "›"; display: inline-block; width: 14px; color: #92998d; transition: transform .15s; }
.api-group[open] summary::before { transform: rotate(90deg); }
.api-group[open] summary { background: var(--panel-2); }
.api-endpoint { width: 100%; display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 6px; align-items: start; padding: 7px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.api-endpoint:hover, .api-endpoint.active { background: #f2f5e9; }
.api-endpoint code { overflow: hidden; color: #586354; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.api-endpoint b { display: block; overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.method-pill { display: inline-flex; justify-content: center; padding: 2px 4px; border-radius: 4px; background: #e8efe0; color: #547233; font-size: 7px; font-weight: 900; }
.method-pill.post { background: #e8f1fa; color: #2f668c; }
.method-pill.put, .method-pill.patch { background: #fff4df; color: #8a5c10; }
.method-pill.delete { background: #feecea; color: #9e4038; }
.api-workbench { min-width: 0; }
.api-intro { display: grid; place-content: center; justify-items: center; min-height: 510px; text-align: center; }
.api-intro h3 { margin: 12px 0 4px; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.api-intro p { max-width: 420px; margin: 0; color: var(--muted); font-size: 11px; }
.api-endpoint-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.api-endpoint-head code { flex: 1; min-width: 180px; color: var(--ink); font-size: 12px; font-weight: 700; }
.api-tools { display: flex; gap: 5px; }
.api-summary { margin: 10px 0 16px; color: var(--muted); font-size: 10px; }
.api-form-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 12px; }
.api-param { display: grid; gap: 4px; margin-bottom: 8px; }
.api-param label { font-size: 9px; }
.api-param small { color: var(--muted); font-size: 8px; }
.api-param input, .api-param select { padding: 8px 9px; font-size: 10px; }
.api-response-head { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.api-response-head span:last-child { color: #7f8d77; }
.space-view { padding-top: 14px; }
.space-stage { position: relative; min-height: 690px; height: calc(100vh - 118px); overflow: hidden; border-radius: 22px; background: #15211a; box-shadow: 0 30px 70px rgba(23,37,29,.22); color: #fff; }
.space-renderer, .space-renderer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.space-loading { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 16px; background: radial-gradient(circle at 50% 42%, #263d2e, #111c15); transition: opacity .3s; }
.space-loading.done { opacity: 0; pointer-events: none; }
.space-loading p { margin: 0; color: #9fb0a2; font-size: 10px; letter-spacing: .15em; }
.space-topline { position: absolute; z-index: 10; left: 27px; right: 27px; top: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; pointer-events: none; }
.space-topline h2 { margin: 5px 0 1px; font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.space-topline p { margin: 0; color: #bdc8bd; font-size: 10px; text-shadow: 0 2px 9px rgba(0,0,0,.6); }
.space-topline .eyebrow { color: var(--lime); }
.space-modes { display: flex; padding: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(13,21,16,.58); backdrop-filter: blur(12px); pointer-events: auto; }
.space-modes button { padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; color: #bfc9c0; font-size: 10px; font-weight: 700; }
.space-modes button.active { background: var(--lime); color: var(--forest); }
.space-light-presets { position: absolute; z-index: 10; right: 27px; top: 98px; display: flex; align-items: center; gap: 3px; padding: 5px 6px 5px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(13,21,16,.55); backdrop-filter: blur(12px); }
.space-light-presets span { margin-right: 5px; color: #9caa9f; font-size: 8px; }
.space-light-presets button { padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: #bcc7be; font-size: 8px; }
.space-light-presets button.active { background: rgba(255,255,255,.14); color: #fff; }
.space-hud { position: absolute; z-index: 10; left: 27px; bottom: 24px; display: grid; gap: 9px; pointer-events: none; }
.key-hint { display: flex; align-items: center; gap: 4px; color: #c0cbc1; font-size: 8px; text-shadow: 0 1px 5px rgba(0,0,0,.6); }
.key-hint kbd { min-width: 20px; padding: 3px 5px; border: 1px solid rgba(255,255,255,.24); border-radius: 4px; background: rgba(9,15,11,.48); color: #fff; font-size: 8px; text-align: center; }
.key-hint .mouse-hint { margin-left: 8px; color: #94a297; }
.space-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.space-stats span { padding: 5px 8px; border-radius: 6px; background: rgba(11,18,13,.52); color: #b8c3ba; font-size: 8px; backdrop-filter: blur(8px); }
.space-controls { position: absolute; z-index: 10; right: 27px; bottom: 24px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.space-controls .primary-button { min-height: 38px; padding: 0 15px; background: var(--lime); color: var(--forest); font-size: 10px; }
.glass-button { min-height: 38px; padding: 0 13px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,17,12,.48); color: #e8eee8; font-size: 9px; backdrop-filter: blur(10px); }
.glass-button:hover { background: rgba(255,255,255,.12); }
.space-hotspots { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.space-hotspot { position: absolute; display: grid; justify-items: center; gap: 4px; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; transition: opacity .2s; }
.space-hotspot i { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,242,94,.18), 0 0 16px rgba(201,242,94,.55); }
.space-hotspot span { padding: 3px 7px; border-radius: 5px; background: rgba(10,16,12,.67); color: #fff; font-size: 8px; white-space: nowrap; backdrop-filter: blur(6px); }
.space-hotspot.cabinet i { background: #ffd991; }
.space-hotspot:hover span { background: var(--lime); color: var(--forest); }
.space-caption { position: absolute; z-index: 9; left: 50%; bottom: 90px; transform: translateX(-50%); padding: 10px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 99px; background: rgba(10,16,12,.62); color: #fff; font-family: var(--serif); font-size: 13px; letter-spacing: .04em; backdrop-filter: blur(10px); white-space: nowrap; }
.space-error { position: absolute; z-index: 30; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; background: rgba(9,15,11,.92); text-align: center; }
.space-error b { color: #ffd6cf; font-family: var(--serif); font-size: 25px; }
.space-error p { max-width: 550px; color: #aab6ab; font-size: 10px; }
.space-inspector { position: absolute; z-index: 15; right: 25px; top: 145px; width: 270px; padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(14,23,17,.85); backdrop-filter: blur(18px); color: #eef3ee; }
.space-inspector h3 { margin: 4px 0; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.space-inspector p { margin: 0; color: #9eaea1; font-size: 9px; }
.space-inspector button { position: absolute; right: 8px; top: 8px; }
.space-inspector .inspector-rows { display: grid; gap: 6px; margin-top: 12px; }
.space-inspector .inspector-rows span { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); color: #a8b5a9; font-size: 9px; }
.space-inspector .inspector-rows b { color: #fff; font-weight: 600; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(13,20,16,.55); backdrop-filter: blur(10px); }
.modal-card { width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 24px; border-radius: 18px; background: var(--panel); box-shadow: 0 30px 90px rgba(10,17,12,.3); }
.modal-card.wide { width: min(900px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.modal-head h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 600; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-form label:first-child, .modal-form label:last-child { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.choice-list { display: grid; gap: 8px; }
.choice-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.choice-item:hover { border-color: #8eaa74; background: #f8fbef; }
.choice-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #eef4e3; color: #587537; font-family: var(--serif); font-weight: 800; }
.choice-item b { display: block; font-size: 11px; }
.choice-item small { display: block; color: var(--muted); font-size: 8px; }
.choice-item i { color: var(--muted); font-style: normal; font-size: 10px; }
.toast-stack { position: fixed; z-index: 600; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(350px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(23,37,29,.95); color: #fff; box-shadow: 0 14px 40px rgba(10,17,12,.24); font-size: 11px; animation: toastIn .22s ease; backdrop-filter: blur(12px); }
.toast.bad { background: rgba(112,37,32,.96); }
.toast small { display: block; margin-top: 2px; color: #bbc7ba; font-size: 8px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .design-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .design-inspector { grid-column: 1 / -1; }
  .workspace-overview { grid-template-columns: 1fr 1fr; }
  .workspace-seats { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; background: #f2efe8; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 24px; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; font-family: var(--serif); font-size: 21px; font-weight: 700; }
  .auth-mobile-brand span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--forest); color: var(--lime); font-weight: 900; }
  .app { display: block; }
  .sidebar { position: fixed; z-index: 100; left: -250px; width: 238px; transition: left .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.2); }
  .sidebar.open { left: 0; }
  .main { padding: 0 17px 40px; }
  .topbar { min-height: 76px; margin: 0 -17px; padding: 12px 17px; }
  .project-select-wrap { display: none; }
  .content-grid.two-one, .floorplan-grid, .agent-layout, .workspace-overview { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; padding: 30px; }
  .hero-orbit { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .design-layout { grid-template-columns: 1fr; }
  .design-inspector { grid-column: auto; }
  .api-layout { grid-template-columns: 1fr; }
  .api-nav { position: static; max-height: 300px; }
  .space-stage { min-height: 620px; height: calc(100vh - 110px); }
  .space-inspector { right: 15px; top: 135px; width: 220px; }
  .modal-form { grid-template-columns: 1fr; }
  .modal-form label { grid-column: auto !important; }
}
@media (max-width: 620px) {
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 105px; padding: 14px; }
  .metric-card b { font-size: 29px; }
  .usage-grid, .analysis-grid, .design-stats { grid-template-columns: 1fr 1fr; }
  .wall-list { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar input, .toolbar select { max-width: none; flex: 1 1 100%; }
  .space-topline { left: 16px; right: 16px; top: 16px; }
  .space-topline h2 { font-size: 25px; }
  .space-modes { position: absolute; top: 68px; right: 0; }
  .space-light-presets { top: 115px; right: 0; }
  .space-hud { left: 16px; bottom: 72px; }
  .space-controls { left: 16px; right: 16px; bottom: 15px; justify-content: flex-start; }
  .space-controls button { flex: 1 1 auto; }
  .space-caption { bottom: 130px; max-width: 85vw; overflow: hidden; text-overflow: ellipsis; }
  .space-stats { max-width: 50vw; }
  .space-inspector { left: 16px; right: 16px; top: auto; bottom: 125px; width: auto; }
  .inline-fields, .upload-actions { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .table-scroll table { min-width: 720px; }
  .inspire-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ================= 20261027 增补：登录模式 / 通知 / 灵感 / 目录 / 安全 ================= */
.login-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.login-mode button { padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; transition: background .18s ease, color .18s ease; }
.login-mode button.active { background: var(--forest); color: #fff; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.code-row input { min-width: 0; }
.code-row .small-button { white-space: nowrap; }
.notif-button { position: relative; }
.notif-badge { position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1; }
label .subtle-label { color: var(--muted); font-size: 10px; font-weight: 400; }
.inspire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.inspire-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.inspire-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.inspire-cover { height: 130px; display: grid; place-items: center; background: #f1f4e9; color: #8aa06a; font-size: 30px; }
.inspire-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inspire-body { display: grid; gap: 4px; padding: 11px 12px 12px; }
.inspire-body b { font-size: 12px; }
.inspire-body small { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inspire-actions { display: flex; align-items: center; gap: 9px; margin-top: 3px; color: var(--muted); font-size: 10px; }
.inspire-actions .link-button { font-size: 10px; }
.catalog-list { display: grid; gap: 7px; }
.security-form { display: grid; gap: 12px; max-width: 430px; }
.session-list { grid-template-columns: minmax(0, 1fr) 26px; align-items: center; }
.session-list .analysis-empty { grid-column: 1 / -1; }
.session-delete { width: 26px; min-height: 26px; padding: 0; display: grid; place-items: center; border-radius: 8px; font-size: 14px; line-height: 1; }
.session-item { margin: 0; }
