@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --panel: #ffffff;
  --panel-soft: #fafaf8;
  --sidebar: #f0f0ed;
  --hover: #e9e9e5;
  --active: #e3e3de;
  --border: #deded8;
  --border-strong: #cbc9c1;
  --text: #1f201d;
  --text-2: #5f615a;
  --muted: #8a8c83;
  --faint: #b3b4ad;
  --accent: #ee6c2c;
  --accent-strong: #d85618;
  --accent-soft: rgba(238, 108, 44, .11);
  --purple: #7967ee;
  --purple-soft: rgba(121, 103, 238, .1);
  --blue: #3478d4;
  --blue-soft: rgba(52, 120, 212, .1);
  --green: #218764;
  --green-soft: rgba(33, 135, 100, .1);
  --yellow: #b97919;
  --red: #cb4545;
  --shadow-sm: 0 1px 2px rgba(25, 25, 22, .04), 0 4px 14px rgba(25, 25, 22, .04);
  --shadow-md: 0 14px 42px rgba(26, 26, 23, .1);
  --shadow-lg: 0 28px 90px rgba(26, 26, 23, .16);
  font-family: "DM Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181917;
  --panel: #212220;
  --panel-soft: #262724;
  --sidebar: #1b1c1a;
  --hover: #292a27;
  --active: #30312e;
  --border: #393a36;
  --border-strong: #4a4b46;
  --text: #ecece8;
  --text-2: #b5b6af;
  --muted: #85877f;
  --faint: #64665f;
  --accent: #fa7e41;
  --accent-strong: #ff9160;
  --accent-soft: rgba(250, 126, 65, .12);
  --purple: #a294ff;
  --purple-soft: rgba(162, 148, 255, .12);
  --blue: #71a7ed;
  --blue-soft: rgba(113, 167, 237, .12);
  --green: #5ac59c;
  --green-soft: rgba(90, 197, 156, .12);
  --yellow: #e3a84f;
  --red: #f07474;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18), 0 4px 14px rgba(0, 0, 0, .12);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, .28);
  --shadow-lg: 0 30px 100px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; }
svg { display: block; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.view { min-height: 100vh; min-height: 100dvh; }
.view[hidden], [hidden] { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-button, .compact-brand { padding: 0; border: 0; background: transparent; cursor: pointer; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #ff8d48, #df571e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 5px 14px rgba(224,83,23,.23); }
.brand-mark svg { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.brand-copy { display: flex; align-items: baseline; gap: 6px; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.brand-copy small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.icon-button, .top-icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); background: var(--panel); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease; }
.icon-button:hover, .top-icon-button:hover { border-color: var(--border-strong); color: var(--text); background: var(--panel-soft); }
.icon-button:active, .top-icon-button:active { transform: scale(.96); }
.icon-button svg, .top-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-button .moon-icon { display: none; }
html[data-theme="dark"] .theme-button .sun-icon { display: none; }
html[data-theme="dark"] .theme-button .moon-icon { display: block; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > i { width: 22px; height: 1px; background: var(--accent); }
.primary-button, .secondary-button, .quiet-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.primary-button { border: 1px solid var(--accent); color: #fff; background: var(--accent); box-shadow: 0 7px 20px rgba(226, 86, 22, .18); }
.primary-button:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.secondary-button { border: 1px solid var(--border); color: var(--text); background: var(--panel); box-shadow: var(--shadow-sm); }
.secondary-button:hover { border-color: var(--border-strong); background: var(--panel-soft); }
.quiet-button { min-height: 34px; border: 1px solid var(--border); color: var(--text-2); background: transparent; }
.primary-button:active, .secondary-button:active, .quiet-button:active { transform: scale(.98); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Login */
.login-view { position: relative; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; background: var(--bg); }
.login-view::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000 0, transparent 46%, transparent 54%, #000 100%); }
.login-ambient { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.login-ambient-one { width: 620px; height: 620px; left: -300px; top: -260px; background: radial-gradient(circle, rgba(238,108,44,.12), transparent 68%); }
.login-ambient-two { width: 600px; height: 600px; right: -260px; bottom: -320px; background: radial-gradient(circle, rgba(121,103,238,.11), transparent 68%); }
.login-header { position: relative; z-index: 2; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 58px); }
.login-main { position: relative; z-index: 1; width: min(1080px, calc(100% - 48px)); flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: clamp(70px, 10vw, 145px); margin: 0 auto; padding: 46px 0 76px; }
.login-intro h1 { max-width: 590px; margin: 22px 0 20px; font-family: Manrope, sans-serif; font-size: clamp(44px, 5.2vw, 71px); font-weight: 700; line-height: 1.03; letter-spacing: -.058em; }
.login-intro h1 em { color: var(--accent); font-style: normal; }
.login-intro > p { max-width: 535px; margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.login-capabilities { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.login-capabilities span { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.login-capabilities svg { width: 17px; height: 17px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-card { padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--panel) 96%, transparent); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); }
.login-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-card-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: 13px; color: var(--accent); background: var(--accent-soft); }
.login-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-card h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.025em; }
.login-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 17px; }
.field > span, .modal legend { color: var(--text-2); font-size: 11px; font-weight: 700; }
.field input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--panel-soft); font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 20px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 11px; cursor: pointer; }
.check-label input { accent-color: var(--accent); }
.text-button { padding: 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.login-submit { width: 100%; }
.login-submit svg { margin-left: auto; }
.login-divider { height: 36px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.login-card > .secondary-button { width: 100%; }
.login-hint { margin: 15px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }
.login-footer { position: relative; z-index: 1; min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 58px); color: var(--muted); font-size: 10px; }
.login-footer > span:last-child { display: flex; gap: 18px; }
.login-footer a { text-decoration: none; }
.login-footer a:hover { color: var(--text); }

/* Shared topbar */
.app-topbar { position: sticky; z-index: 30; top: 0; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(18px); }
.top-nav { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); }
.top-nav button { padding: 6px 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.top-nav button:hover { color: var(--text); }
.top-nav button.active { color: var(--text); background: var(--panel); box-shadow: var(--shadow-sm); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.account-button { height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 5px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.account-button:hover { border-color: var(--border); background: var(--panel-soft); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(145deg, #686b63, #33352f); font-size: 10px; font-weight: 800; }
.account-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.account-copy strong { font-size: 11px; }
.account-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.account-button > svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.8; transition: transform .15s ease; }
.account-menu { position: fixed; z-index: 60; top: 57px; right: 28px; width: 174px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-md); }
.account-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px; border: 0; border-radius: 7px; color: var(--text-2); background: transparent; font-size: 11px; cursor: pointer; }
.account-menu button:hover { color: var(--text); background: var(--hover); }
.account-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Dashboard */
.dashboard-view { background: var(--bg); }
.dashboard-content { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 80px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.dashboard-heading h1 { margin: 12px 0 8px; font-family: Manrope, sans-serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.045em; }
.dashboard-heading p { margin: 0; color: var(--text-2); font-size: 13px; }
.workspace-status { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-sm); }
.status-summary { display: flex; align-items: center; gap: 11px; }
.status-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--green-soft); }
.workspace-status.disconnected .status-icon { color: var(--muted); background: var(--active); }
.workspace-status.connected { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.workspace-status.connected .status-icon { color: var(--green); background: var(--green-soft); }
.status-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.status-summary > div { display: flex; flex-direction: column; line-height: 1.25; }
.status-summary small, .status-meta small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.status-summary strong { margin-top: 3px; font-size: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 7px; padding: 4px 7px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.offline-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 7px; padding: 4px 7px; border-radius: 999px; color: var(--muted); background: var(--active); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.offline-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-pill i, .bridge-pill i, .bridge-mini i, .agent-identity small i, .sync-label i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); }
.status-meta { display: flex; align-items: center; gap: 25px; }
.status-meta > span { min-width: 100px; display: flex; flex-direction: column; gap: 3px; }
.status-meta strong { color: var(--text-2); font-size: 11px; }
.project-toolbar { min-height: 70px; display: flex; align-items: center; gap: 16px; margin-top: 19px; }
.search-field { width: 260px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.search-field svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.search-field input::placeholder { color: var(--muted); }
.filter-tabs { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.filter-tabs button { padding: 7px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-tabs button:hover { color: var(--text); background: var(--hover); }
.filter-tabs button.active { color: var(--text); background: var(--active); }
.filter-tabs span { margin-left: 4px; color: var(--muted); }
.sort-field { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.sort-field select { border: 0; outline: 0; color: var(--text-2); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-grid.demo-hidden .project-card[data-demo="true"],
.project-grid.demo-hidden .new-project-card { display: none; }
.source-empty { min-height: 390px; display: grid; grid-template-columns: 82px minmax(0, 590px); justify-content: center; gap: 24px; padding: 45px 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-sm); }
.source-empty-icon { position: relative; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; color: var(--muted); background: var(--active); }
.source-empty-icon > svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.source-empty-icon > i { position: absolute; right: 5px; bottom: 5px; width: 13px; height: 13px; border: 3px solid var(--panel); border-radius: 50%; background: var(--muted); }
.source-empty-copy h2 { margin: 9px 0 7px; font: 700 22px Manrope, sans-serif; letter-spacing: -.035em; }
.source-empty-copy > p { max-width: 570px; margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.expected-source { margin-top: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); }
.expected-source > header { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 11px; border-bottom: 1px solid var(--border); }
.expected-source > header span { color: var(--text-2); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.expected-source > header small { color: var(--muted); font-size: 7px; }
.source-tree-row { min-height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 11px; color: var(--text-2); font-size: 9px; }
.source-tree-row:hover { background: var(--hover); }
.source-tree-row svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.source-tree-row.indent-one { padding-left: 31px; }
.source-tree-row.indent-two { padding-left: 51px; color: var(--text); }
.source-tree-row.indent-two svg { color: #c5a642; }
.source-tree-row.muted { color: var(--muted); }
.source-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.source-empty-actions a { text-decoration: none; }
.connector-steps { display: grid; gap: 7px; margin-top: 20px; }
.connector-steps > span { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); }
.connector-steps > span > i { width: 25px; height: 25px; display: grid; place-items: center; flex: none; border-radius: 7px; color: var(--accent); background: var(--accent-soft); font-style: normal; font-size: 9px; font-weight: 800; }
.connector-steps > span > span { display: flex; flex-direction: column; }
.connector-steps strong { font-size: 9px; }
.connector-steps small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.demo-warning { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--yellow) 42%, var(--border)); border-radius: 10px; color: var(--yellow); background: color-mix(in srgb, var(--yellow) 8%, var(--panel)); }
.demo-warning > span { display: flex; align-items: center; gap: 9px; }
.demo-warning svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.demo-warning > span > span { display: flex; flex-direction: column; }
.demo-warning strong { color: var(--text); font-size: 9px; }
.demo-warning small { margin-top: 3px; color: var(--text-2); font-size: 8px; }
.demo-warning button { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); background: var(--panel); font-size: 8px; font-weight: 700; cursor: pointer; }
.demo-badge { align-self: flex-start; margin-bottom: 5px; padding: 2px 5px; border-radius: 4px; color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, transparent); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-sm); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.project-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-open { width: 100%; display: block; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.project-preview { position: relative; height: 158px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); background: #eceeea; }
html[data-theme="dark"] .project-preview { background: #171816; }
.project-preview::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -25px 40px rgba(20,20,18,.05); pointer-events: none; }
.project-preview > svg { width: 100%; height: 100%; }
.api-project-preview { background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--green) 14%, var(--panel)), var(--panel-soft)); }
.api-board-mark { position: relative; width: 124px; height: 86px; display: grid; place-items: center; border: 2px solid #3f826b; border-radius: 10px; color: #d6ab45; background: #164a3f; box-shadow: 0 13px 28px rgba(15,45,37,.23); transform: rotate(-2deg); }
.api-board-mark > svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.api-board-mark i { position: absolute; width: 10px; height: 10px; border: 2px solid #dbb34d; border-radius: 50%; background: #143b34; }.api-board-mark i:nth-of-type(1) { top: 8px; left: 8px; }.api-board-mark i:nth-of-type(2) { top: 8px; right: 8px; }.api-board-mark i:nth-of-type(3) { right: 8px; bottom: 8px; }.api-board-mark i:nth-of-type(4) { bottom: 8px; left: 8px; }
.api-badge { align-self: flex-start; margin-bottom: 5px; padding: 2px 5px; border-radius: 4px; color: var(--green); background: var(--green-soft); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mini-grid { stroke: #dbddd7; stroke-width: 1; }
html[data-theme="dark"] .mini-grid { stroke: #292b27; }
.mini-wire { fill: none; stroke: #4d996e; stroke-width: 2.2; }
.mini-part { fill: #f9faf7; stroke: #686b64; stroke-width: 1.5; }
html[data-theme="dark"] .mini-part { fill: #242622; stroke: #858880; }
.mini-pin { fill: var(--accent); }
.preview-pcb { background: #dfe2de; }
.mini-trace { fill: none; stroke: #f1b947; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }
.mini-pad { fill: #d5a43c; stroke: #ffe082; stroke-width: 1.5; }
.mini-ic { fill: #191d1d; stroke: #abb5ae; }
.preview-led { background: radial-gradient(circle at 50% 36%, #252a27, #131513 72%); }
.led-board { position: relative; width: 188px; height: 118px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 17px 24px; border: 1px solid #314b41; border-radius: 7px; background: #153a30; transform: perspective(500px) rotateX(4deg) rotateZ(-2deg); box-shadow: 0 16px 35px rgba(0,0,0,.3); }
.led-board i { border-radius: 3px; background: #271e1a; box-shadow: inset 0 0 0 2px #5e4c40; }
.led-board i:nth-child(3n+1) { box-shadow: inset 0 0 0 2px #5e4c40, 0 0 12px rgba(255,96,55,.4); background: #f15f38; }
.led-board i:nth-child(4n+2) { box-shadow: inset 0 0 0 2px #3d5667, 0 0 12px rgba(68,153,237,.35); background: #4a9fe8; }
.led-board b { position: absolute; width: 18px; height: 34px; left: -8px; top: 42px; border-radius: 3px; background: #b5b8b0; }
.project-body { display: block; padding: 16px; }
.project-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-title-line > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.project-title-line strong { overflow: hidden; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.project-title-line small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.project-menu { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 6px; color: var(--muted); }
.project-menu svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.project-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 17px; color: var(--text-2); font-size: 9px; }
.project-stats > span { display: flex; align-items: center; gap: 4px; }
.project-stats svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.project-health { margin-left: auto; font-weight: 700; }
.project-health i { width: 6px; height: 6px; border-radius: 50%; }
.project-health.good { color: var(--green); }.project-health.good i { background: var(--green); }
.project-health.warn { color: var(--yellow); }.project-health.warn i { background: var(--yellow); }
.project-health.neutral { color: var(--muted); }.project-health.neutral i { background: var(--muted); }
.project-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.avatar-stack { display: flex; }
.avatar-stack i { width: 23px; height: 23px; display: grid; place-items: center; margin-left: -4px; border: 2px solid var(--panel); border-radius: 50%; color: #fff; background: #55584f; font-style: normal; font-size: 7px; font-weight: 800; }
.avatar-stack i:first-child { margin-left: 0; background: var(--accent); }
.new-project-card { min-height: 308px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--muted); background: transparent; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.new-project-card:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.new-project-card > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 7px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.new-project-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.new-project-card strong { font-size: 12px; }.new-project-card small { font-size: 9px; }
.empty-projects { padding: 60px; color: var(--muted); text-align: center; }
.empty-projects svg { width: 28px; height: 28px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-projects h2 { margin: 12px 0 4px; color: var(--text); font-size: 15px; }.empty-projects p { margin: 0; font-size: 11px; }

/* IDE shell */
.ide-view { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: var(--bg); }
.ide-topbar { position: relative; z-index: 40; height: 56px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--panel); }
.ide-top-start, .ide-top-actions { min-width: 0; display: flex; align-items: center; gap: 9px; }
.ide-top-actions { justify-content: flex-end; }
.compact-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; }.compact-brand .brand-mark svg { width: 18px; height: 18px; }
.compact-brand .brand-copy strong { font-size: 13px; }.compact-brand .brand-copy small { font-size: 8px; }
.top-separator { width: 1px; height: 23px; margin: 0 3px; background: var(--border); }
.back-button { display: flex; align-items: center; gap: 4px; padding: 6px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.back-button:hover { color: var(--text); background: var(--hover); }
.back-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.breadcrumb-separator { color: var(--faint); }
.project-crumb { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.project-crumb strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.project-crumb small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.bridge-pill { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--green); background: var(--panel-soft); font-size: 9px; font-weight: 700; }
.bridge-pill.demo-bridge { color: var(--yellow); }
.bridge-pill small { padding-left: 6px; border-left: 1px solid var(--border); color: var(--muted); }
.top-icon-button { width: 32px; height: 32px; border-color: transparent; background: transparent; }.top-icon-button svg { width: 16px; height: 16px; }
.ide-avatar { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; color: #fff; background: #50534c; font-size: 9px; font-weight: 800; cursor: pointer; }
.mobile-pane-switch { display: none; }
.ide-body { height: calc(100% - 56px); min-height: 0; display: grid; grid-template-columns: 50px 238px minmax(0, 1fr); }
.ide-body.context-closed { grid-template-columns: 50px 0 minmax(0,1fr); }
.activity-rail { position: relative; z-index: 20; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border); background: #20211f; color: #a8aba3; }
html[data-theme="dark"] .activity-rail { background: #141513; }
.rail-main, .rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; }
.rail-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #9b9e96; background: transparent; cursor: pointer; }
.rail-button:hover { color: #fff; background: rgba(255,255,255,.07); }
.rail-button.active { color: #fff; background: rgba(255,255,255,.1); }
.rail-button.active::before { content: ""; position: absolute; left: -4px; width: 3px; height: 23px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rail-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.rail-badge { position: absolute; top: 5px; right: 4px; min-width: 14px; height: 14px; display: grid; place-items: center; padding: 0 3px; border: 2px solid #20211f; border-radius: 999px; color: #fff; background: var(--accent); font-size: 7px; font-weight: 800; }
.context-sidebar { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border); background: var(--sidebar); transition: opacity .16s ease; }
.ide-body.context-closed .context-sidebar { visibility: hidden; opacity: 0; }
.context-header { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 0 13px; border-bottom: 1px solid var(--border); }
.context-header > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.18; }
.context-header small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.context-header strong { overflow: hidden; margin-top: 4px; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.context-header button, .context-footer button, .context-reopen { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }
.context-header button:hover, .context-footer button:hover, .context-reopen:hover { color: var(--text); background: var(--hover); }
.context-header svg, .context-footer svg, .context-reopen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.context-content { min-height: 0; flex: 1; overflow: auto; padding: 8px; }
.context-content::-webkit-scrollbar, .chat-scroll::-webkit-scrollbar { width: 8px; }.context-content::-webkit-scrollbar-thumb, .chat-scroll::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: var(--border-strong); background-clip: padding-box; }
.context-footer { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 5px 11px; border-top: 1px solid var(--border); }
.bridge-mini { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--green); }
.bridge-mini.demo-bridge { color: var(--yellow); }
.rail-button:disabled { opacity: .28; cursor: not-allowed; }
.rail-button:disabled:hover { color: var(--muted); background: transparent; }
.bridge-mini > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }.bridge-mini strong { overflow: hidden; color: var(--text-2); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }.bridge-mini small { color: var(--muted); font-size: 7px; }
.context-reopen { position: absolute; z-index: 31; top: 68px; left: 58px; display: none; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow-sm); }
.ide-body.context-closed .context-reopen { display: grid; }
.ide-workspace { --preview-size: 58%; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(300px, var(--preview-size)) 6px minmax(320px, 1fr); overflow: hidden; }
.preview-pane, .chat-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel); }
.pane-header { height: 46px; flex: none; display: flex; align-items: center; border-bottom: 1px solid var(--border); background: var(--panel); }
.preview-header { justify-content: space-between; gap: 8px; padding: 0 8px 0 10px; }
.preview-tabs { height: 100%; min-width: 0; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }.preview-tabs::-webkit-scrollbar { display: none; }
.preview-tabs button { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; color: var(--muted); background: transparent; font-size: 9px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.preview-tabs button:hover { color: var(--text); }.preview-tabs button.active { color: var(--text); }
.preview-tabs button.active::after { content: ""; position: absolute; right: 8px; bottom: 0; left: 8px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.tab-dot { width: 7px; height: 7px; border-radius: 2px; }.schematic-dot { background: var(--green); }.pcb-dot { background: #c2922f; }.component-dot { background: var(--blue); }.pdf-dot { background: var(--red); }
.preview-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.preview-tools button { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.preview-tools button:hover { color: var(--text); background: var(--hover); }
.preview-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sync-label { display: flex; align-items: center; gap: 5px; margin-right: 5px; color: var(--green); font-size: 8px; font-weight: 800; text-transform: uppercase; }.sync-label i { width: 5px; height: 5px; }
.sync-label.demo-sync { color: var(--yellow); }
.zoom-value { width: 35px; color: var(--muted); font-size: 8px; text-align: right; }
.preview-stage { position: relative; min-height: 0; flex: 1; overflow: hidden; background: #e9ebe7; }
html[data-theme="dark"] .preview-stage { background: #151614; }
.preview-view { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; overflow: auto; }.preview-view.active { display: flex; }
.zoom-target { transform: scale(var(--zoom, 1)); transform-origin: center; transition: transform .16s ease; }
.canvas-grid { position: absolute; inset: 0; opacity: .75; background-image: radial-gradient(#c8cbc3 .7px, transparent .7px); background-size: 13px 13px; }
.api-live-view { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; overflow: auto; padding: 24px; background: var(--bg); }
.api-live-loading { max-width: 430px; color: var(--text-2); text-align: center; }
.api-live-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 16px; color: var(--accent); background: var(--accent-soft); }
.api-live-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.api-live-loading h2 { margin: 0 0 7px; color: var(--text); font: 700 17px Manrope, sans-serif; }
.api-live-loading p { margin: 0; font-size: 10px; line-height: 1.6; }
#api-render-image { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-md); }
#ide-view.api-mode .preview-view { display: none !important; }
html[data-theme="dark"] .canvas-grid { opacity: .42; background-image: radial-gradient(#4d5049 .7px, transparent .7px); }
.schematic-canvas { position: relative; width: min(96%, 1120px); height: auto; max-height: 94%; }
.sch-sheet rect { fill: #fcfcf8; stroke: #a8aaa3; stroke-width: 1.4; }.sch-sheet path { fill: none; stroke: #a8aaa3; stroke-width: 1; }.sch-sheet text { fill: #73766f; font: 10px "DM Sans", sans-serif; }
html[data-theme="dark"] .sch-sheet rect { fill: #20221f; stroke: #5b5e56; } html[data-theme="dark"] .sch-sheet path { stroke: #5b5e56; } html[data-theme="dark"] .sch-sheet text { fill: #8c8f87; }
.sch-wire { fill: none; stroke: #277555; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: round; }.sch-junction { fill: #277555; }
html[data-theme="dark"] .sch-wire { stroke: #54a982; } html[data-theme="dark"] .sch-junction { fill: #54a982; }
.sch-component rect { fill: #fff; stroke: #555952; stroke-width: 1.7; }.sch-component path { fill: none; stroke: #555952; stroke-width: 1.7; }.sch-component text { fill: #454841; font: 11px "DM Sans", sans-serif; }.sch-component .ref { fill: #2d302a; font-weight: 800; text-anchor: middle; }.sch-component .value { fill: #2e302c; font-size: 13px; font-weight: 800; text-anchor: middle; }.sch-component .subvalue { fill: #7f8279; font-size: 8px; font-weight: 700; text-anchor: middle; }.sch-component .pins text { font-size: 8px; }
html[data-theme="dark"] .sch-component rect { fill: #292b27; stroke: #a3a69d; } html[data-theme="dark"] .sch-component path { stroke: #a3a69d; } html[data-theme="dark"] .sch-component text, html[data-theme="dark"] .sch-component .ref, html[data-theme="dark"] .sch-component .value { fill: #d8dad4; } html[data-theme="dark"] .sch-component .subvalue { fill: #92958c; }
.sch-power { fill: none; stroke: #555952; stroke-width: 1.7; }.sch-power text { fill: #555952; font: 11px "DM Sans", sans-serif; font-weight: 800; }.sch-label rect { fill: #ebf5ef; stroke: #277555; }.sch-label text { fill: #277555; font: 9px "DM Sans", sans-serif; font-weight: 800; text-anchor: middle; }.change-highlight rect { fill: rgba(238,108,44,.05); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 5; }.change-highlight text { fill: var(--accent); font: 9px "DM Sans", sans-serif; text-anchor: end; }
.change-highlight.pulse rect { animation: highlight-pulse 1.2s ease 2; }
@keyframes highlight-pulse { 50% { fill: rgba(238,108,44,.2); stroke-width: 3; } }
.canvas-note { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 10px; color: #767a71; font-size: 8px; }
.pcb-view { background: radial-gradient(circle at 50% 40%, #dfe2dd, #c8ccc6); }.pcb-stage { width: min(92%, 960px); }.pcb-stage svg { width: 100%; height: auto; max-height: 84vh; }
html[data-theme="dark"] .pcb-view { background: radial-gradient(circle at 50% 40%, #222521, #121411); }
.board-grid { fill: none; stroke: #5b8b7c; stroke-width: .6; opacity: .22; }.mounts circle { fill: #0d2823; stroke: #c5a84c; stroke-width: 5; }.copper { fill: none; stroke-linecap: round; stroke-linejoin: round; }.copper-top { stroke: #e7ac38; stroke-width: 7; opacity: .92; }.copper-bottom { stroke: #c24e57; stroke-width: 5; opacity: .76; }.pads circle { fill: #d8a943; stroke: #ffe4a0; stroke-width: 2; }.ic-body { fill: #171a19; stroke: #838a84; stroke-width: 2; }.ic-pins { stroke: #c5b273; stroke-width: 8; }.pcb-parts text { fill: #e2e5df; font: 11px "DM Sans", sans-serif; font-weight: 800; text-anchor: middle; }.sensor-body { fill: #1f2422; stroke: #89938c; stroke-width: 2; }.sensor-body circle, .sensor-body path { fill: none; stroke: #bbc1bb; stroke-width: 2; }.usb path:first-child { fill: #b5b9b4; stroke: #e6e8e4; }.usb path:last-child { fill: #202321; stroke: #777d78; }.silk { fill: none; stroke: #e4e9df; stroke-width: 1.5; opacity: .8; }.silk text { fill: #e4e9df; stroke: none; font: 10px "DM Sans", sans-serif; letter-spacing: .08em; }
.layer-legend { position: absolute; left: 13px; bottom: 12px; display: flex; gap: 12px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); background: color-mix(in srgb, var(--panel) 88%, transparent); font-size: 7px; box-shadow: var(--shadow-sm); }.layer-legend span { display: flex; align-items: center; gap: 4px; }.layer-legend i { width: 7px; height: 7px; border-radius: 2px; }.top-layer { background: #e7ac38; }.bottom-layer { background: #c24e57; }.silk-layer { border: 1px solid #aaa; background: #eee; }
.component-view, .pdf-view { align-items: flex-start; padding: 28px; background: #e6e8e3; }
html[data-theme="dark"] .component-view, html[data-theme="dark"] .pdf-view { background: #151714; }
.component-sheet { width: min(880px, 95%); padding: 30px; border: 1px solid #d4d7d0; border-radius: 5px; color: #242720; background: #fff; box-shadow: 0 15px 45px rgba(26,30,23,.16); }
.sheet-title { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid #22251f; }.sheet-title h2 { margin: 7px 0 0; font: 700 25px Manrope, sans-serif; letter-spacing: -.04em; }.revision-badge { padding: 5px 8px; border: 1px solid #d2d5ce; border-radius: 5px; color: #696d64; font-size: 8px; font-weight: 800; }
.bom-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 20px 0; overflow: hidden; border: 1px solid #e2e4df; border-radius: 7px; background: #e2e4df; }.bom-summary span { display: flex; flex-direction: column; gap: 5px; padding: 13px; background: #f8f9f6; }.bom-summary small { color: #858981; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }.bom-summary strong { font-size: 15px; }.green-text { color: #218764; }
.bom-table { width: 100%; border-collapse: collapse; font-size: 9px; }.bom-table th { padding: 9px 8px; border-bottom: 1px solid #d9dcd5; color: #777b72; background: #f5f6f3; font-size: 7px; text-align: left; text-transform: uppercase; letter-spacing: .05em; }.bom-table td { padding: 10px 8px; border-bottom: 1px solid #eceee9; color: #4d5149; }.bom-table td b { color: #262a23; }.stock { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }.stock i { width: 5px; height: 5px; border-radius: 50%; }.stock.ok { color: #218764; }.stock.ok i { background: #218764; }.stock.low { color: #b97919; }.stock.low i { background: #b97919; }
.pdf-sheet { width: min(650px, 94%); min-height: 842px; padding: 34px 40px; color: #242720; background: #fff; box-shadow: 0 18px 55px rgba(23,28,20,.2); }.pdf-sheet > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #d9dcd5; color: #777b73; font-size: 7px; font-weight: 800; letter-spacing: .13em; }.pdf-brand { display: flex; align-items: center; gap: 7px; color: #20231e; font: 800 11px Manrope, sans-serif; letter-spacing: -.02em; }.pdf-brand i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #ee6c2c; }.pdf-brand svg { width: 12px; height: 12px; fill: currentColor; }.pdf-title { padding: 38px 0 26px; }.pdf-title > span { color: #ee6c2c; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.pdf-title h2 { margin: 8px 0 5px; font: 700 30px Manrope, sans-serif; letter-spacing: -.045em; }.pdf-title p { margin: 0; color: #74786f; font-size: 10px; }.pdf-meta { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 30px; padding: 13px 0; border-top: 1px solid #e4e6e1; border-bottom: 1px solid #e4e6e1; }.pdf-meta span { display: flex; flex-direction: column; gap: 4px; }.pdf-meta small { color: #92968d; font-size: 7px; text-transform: uppercase; }.pdf-meta b { font-size: 9px; }.pdf-meta .approved { color: #218764; }.pdf-sheet h3 { margin: 21px 0 8px; font: 700 12px Manrope, sans-serif; }.pdf-sheet > p { margin: 0; color: #5c6057; font-size: 9px; line-height: 1.7; }.pdf-checks { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }.pdf-checks span { display: grid; grid-template-columns: 20px 1fr; align-items: center; padding: 10px; border: 1px solid #e2e5df; border-radius: 6px; background: #fafbf8; }.pdf-checks svg { grid-row: 1 / 3; width: 15px; height: 15px; fill: none; stroke: #218764; stroke-width: 2; }.pdf-checks b { font-size: 8px; }.pdf-checks small { color: #858980; font-size: 7px; }.pdf-diagram { padding: 10px; border: 1px solid #e2e5df; border-radius: 6px; background: #fafbf8; }.pdf-diagram svg { width: 100%; }.pdf-diagram g { fill: #fff; stroke: #6c7167; stroke-width: 1.4; }.pdf-diagram path { fill: none; stroke: #218764; }.pdf-diagram text { fill: #41463d; stroke: none; font: 7px "DM Sans", sans-serif; text-anchor: middle; }.pdf-sheet > footer { display: flex; justify-content: space-between; margin-top: 38px; padding-top: 12px; border-top: 1px solid #e2e5df; color: #979a93; font-size: 7px; }
.preview-statusbar { height: 23px; flex: none; display: flex; align-items: center; gap: 13px; padding: 0 10px; border-top: 1px solid var(--border); color: var(--muted); background: var(--panel); font-size: 7px; }.preview-statusbar > span { display: flex; align-items: center; gap: 4px; }.status-spacer { flex: 1; }.status-ok { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }.status-demo { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.splitter { position: relative; z-index: 12; width: 6px; display: grid; place-items: center; cursor: col-resize; background: var(--bg); transition: background .15s ease; touch-action: none; }.splitter::before { content: ""; position: absolute; inset: 0 -3px; }.splitter span { width: 1px; height: 100%; background: var(--border-strong); transition: width .15s ease, background .15s ease; }.splitter:hover span, .splitter.dragging span, .splitter:focus-visible span { width: 3px; background: var(--accent); }

/* Chat */
.chat-pane { border-left: 0; }
.chat-header { justify-content: space-between; padding: 0 10px 0 12px; }
.agent-identity { display: flex; align-items: center; gap: 9px; }.agent-mark { position: relative; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(145deg, var(--purple), #5b49ce); }.agent-mark > svg { width: 16px; height: 16px; fill: currentColor; }.agent-mark > i { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border: 2px solid var(--panel); border-radius: 50%; background: var(--green); }.agent-identity > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }.agent-identity strong { font-size: 10px; }.agent-identity small { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font-size: 7px; }.agent-identity small i { width: 4px; height: 4px; color: var(--green); }
.chat-more { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }.chat-more:hover { color: var(--text); background: var(--hover); }.chat-more svg { width: 16px; height: 16px; fill: currentColor; }
.chat-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px clamp(13px, 2.2vw, 25px) 24px; scroll-behavior: smooth; }
.chat-day { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; color: var(--muted); font-size: 7px; text-transform: uppercase; }.chat-day::before, .chat-day::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.message { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 22px; }.message-avatar { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 8px; }.agent-avatar { color: var(--purple); background: var(--purple-soft); }.agent-avatar svg { width: 15px; height: 15px; fill: currentColor; }.user-avatar { color: #fff; background: #55584f; font-size: 7px; font-weight: 800; }.message-content { min-width: 0; flex: 1; }.message-author { height: 20px; display: flex; align-items: flex-start; gap: 6px; }.message-author strong { font-size: 9px; }.message-author span { color: var(--muted); font-size: 7px; }.message p { margin: 4px 0 10px; color: var(--text-2); font-size: 10px; line-height: 1.65; }.message p strong { color: var(--text); }.user-message { justify-content: flex-end; margin-left: 12%; }.user-message .message-author { justify-content: flex-end; }.user-bubble { padding: 9px 11px; border-radius: 10px 2px 10px 10px; color: var(--text); background: var(--active); font-size: 10px; line-height: 1.55; }
.analysis-card { overflow: hidden; margin: 10px 0; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); }.analysis-card header { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; border-bottom: 1px solid var(--border); }.analysis-card header span { display: flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 700; }.analysis-card header svg { width: 13px; height: 13px; fill: none; stroke: var(--green); stroke-width: 2; }.analysis-card header small { color: var(--muted); font-size: 7px; }.analysis-card > div { display: grid; grid-template-columns: repeat(3,1fr); }.analysis-card > div span { display: flex; align-items: center; gap: 4px; padding: 9px; border-right: 1px solid var(--border); color: var(--muted); font-size: 7px; }.analysis-card > div span:last-child { border: 0; }.analysis-card > div b { color: var(--text); font-size: 10px; }.green-dot, .orange-dot, .blue-dot { width: 5px; height: 5px; border-radius: 50%; }.green-dot { background: var(--green); }.orange-dot { background: var(--accent); }.blue-dot { background: var(--blue); }
.activity-card { overflow: hidden; margin: 7px 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); }.activity-line { min-height: 43px; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-bottom: 1px solid var(--border); }.activity-line:last-child { border: 0; }.activity-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 6px; color: var(--purple); background: var(--purple-soft); }.activity-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }.activity-line > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }.activity-line b { font-size: 8px; }.activity-line small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }.activity-check { color: var(--green); }.activity-check svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }.activity-card.running .activity-check { width: 11px; height: 11px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }.activity-card.running .activity-check svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.change-card { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); }.change-file { width: 27px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 5px; color: var(--green); background: var(--green-soft); }.change-file svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }.change-card > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }.change-card b { overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }.change-card small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }.change-card button { padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); background: var(--panel); font-size: 7px; font-weight: 700; cursor: pointer; }.change-card button:hover { border-color: var(--accent); color: var(--accent); }
.typing-dots { display: inline-flex; gap: 3px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); }.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }.typing-dots i:nth-child(2) { animation-delay: .15s; }.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-3px); opacity: 1; } }
.chat-jump { position: relative; z-index: 3; height: 0; text-align: center; }.chat-jump button { transform: translateY(-33px); padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: var(--panel); box-shadow: var(--shadow-sm); font-size: 8px; cursor: pointer; }
.composer-zone { flex: none; padding: 8px 10px 6px; border-top: 1px solid var(--border); background: var(--panel); }.composer { padding: 7px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--panel-soft); box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }.composer textarea { width: 100%; max-height: 110px; resize: none; padding: 4px 5px 7px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 10px; line-height: 1.45; }.composer textarea::placeholder { color: var(--muted); }.composer-controls, .composer-controls > div { display: flex; align-items: center; justify-content: space-between; gap: 4px; }.composer-icon { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }.composer-icon:hover { color: var(--text); background: var(--hover); }.composer-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }.access-pill { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 7px; font-weight: 700; }.access-pill svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }.model-button { display: flex; align-items: center; gap: 3px; padding: 5px 6px; border: 0; border-radius: 6px; color: var(--text-2); background: transparent; font-size: 7px; font-weight: 700; cursor: pointer; }.model-button:hover { background: var(--hover); }.model-button svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(90deg); }.send-button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #fff; background: var(--accent); cursor: pointer; }.send-button:hover { background: var(--accent-strong); }.send-button:disabled { color: var(--muted); background: var(--active); cursor: default; }.send-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.composer-hint { margin: 5px 0 0; color: var(--muted); font-size: 7px; text-align: center; }.composer-hint kbd { padding: 1px 3px; border: 1px solid var(--border); border-radius: 3px; font: inherit; }

/* Context panels */
.context-section { margin-bottom: 7px; }.context-section-title { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 6px 5px; border: 0; color: var(--muted); background: transparent; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }.context-section-title svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(90deg); }.tree-row, .context-list-row { width: 100%; min-height: 29px; display: flex; align-items: center; gap: 6px; padding: 0 7px; border: 0; border-radius: 6px; color: var(--text-2); background: transparent; font-size: 9px; text-align: left; cursor: pointer; }.tree-row:hover, .context-list-row:hover { color: var(--text); background: var(--hover); }.tree-row.active, .context-list-row.active { color: var(--text); background: var(--active); }.tree-row.indent { padding-left: 22px; }.tree-row svg, .context-list-row svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; }.tree-row .file-schematic { color: var(--green); }.tree-row .file-pcb { color: #c2922f; }.tree-row .file-pdf { color: var(--red); }.tree-row > span, .context-list-row > span { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.tree-row small, .context-list-row small { color: var(--muted); font-size: 7px; }.context-search { height: 30px; display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); }.context-search svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 1.7; }.context-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 8px; }.component-row { min-height: 44px; }.component-thumb { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 5px; color: var(--blue); background: var(--panel); }.component-thumb svg { width: 16px; height: 16px; }.component-row > span { display: flex; flex-direction: column; }.component-row b { font-size: 8px; }.component-row small { margin-top: 3px; }.net-swatch { width: 13px; height: 3px; flex: none; border-radius: 3px; background: var(--green); }.net-swatch.power { background: var(--red); }.net-swatch.bus { background: var(--blue); }.count-badge { min-width: 19px; padding: 2px 4px; border-radius: 999px; color: var(--muted); background: var(--panel); font-size: 7px; text-align: center; }.check-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 10px; }.check-summary span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 3px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); }.check-summary b { font-size: 13px; }.check-summary small { color: var(--muted); font-size: 6px; text-transform: uppercase; }.check-summary .ok b { color: var(--green); }.check-summary .warn b { color: var(--yellow); }.issue-row { align-items: flex-start; padding-top: 7px; padding-bottom: 7px; }.issue-dot { width: 7px; height: 7px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--yellow); }.issue-row > span { display: flex; flex-direction: column; white-space: normal; }.issue-row b { font-size: 8px; }.issue-row small { margin-top: 3px; line-height: 1.35; }.timeline { position: relative; padding: 5px 4px 5px 17px; }.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 8px; width: 1px; background: var(--border-strong); }.timeline-item { position: relative; margin-bottom: 14px; }.timeline-item::before { content: ""; position: absolute; top: 3px; left: -13px; width: 7px; height: 7px; border: 2px solid var(--sidebar); border-radius: 50%; background: var(--muted); }.timeline-item.current::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }.timeline-item b { display: block; font-size: 8px; }.timeline-item p { margin: 3px 0; color: var(--text-2); font-size: 8px; line-height: 1.4; }.timeline-item small { color: var(--muted); font-size: 7px; }.export-button { min-height: 45px; }.export-button > svg { width: 18px; height: 18px; color: var(--red); }.export-button > span { display: flex; flex-direction: column; }.export-button b { font-size: 8px; }.export-button small { margin-top: 3px; }.setting-row { min-height: 43px; }.setting-row > span { display: flex; flex-direction: column; }.setting-row b { font-size: 8px; }.setting-row small { margin-top: 3px; }.toggle { width: 27px; height: 16px; flex: none; padding: 2px; border-radius: 999px; background: var(--border-strong); }.toggle i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s ease; }.toggle.on { background: var(--green); }.toggle.on i { transform: translateX(11px); }

/* Dialog and toast */
.modal { width: min(470px, calc(100% - 30px)); padding: 0; border: 1px solid var(--border); border-radius: 15px; color: var(--text); background: var(--panel); box-shadow: var(--shadow-lg); }.modal::backdrop { background: rgba(18,19,17,.5); backdrop-filter: blur(3px); }.modal form { padding: 22px; }.modal header { display: flex; align-items: center; gap: 12px; }.modal-icon { width: 41px; height: 41px; display: grid; place-items: center; flex: none; border-radius: 11px; color: var(--accent); background: var(--accent-soft); }.modal-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }.modal h2 { margin: 0; font: 700 17px Manrope, sans-serif; letter-spacing: -.025em; }.modal header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.modal-close { width: 29px; height: 29px; display: grid; place-items: center; margin-left: auto; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }.modal-close:hover { color: var(--text); background: var(--hover); }.modal-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }.modal .field { margin: 23px 0 18px; }.modal fieldset { display: grid; gap: 7px; padding: 0; border: 0; }.modal legend { margin-bottom: 8px; }.source-option { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }.source-option:hover, .source-option.active { border-color: var(--accent); background: var(--accent-soft); }.source-option input { position: absolute; opacity: 0; }.source-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 7px; color: var(--text-2); background: var(--panel-soft); }.source-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }.source-option > span:nth-child(3) { flex: 1; display: flex; flex-direction: column; }.source-option b { font-size: 9px; }.source-option small { margin-top: 3px; color: var(--muted); font-size: 8px; }.source-option > i { width: 13px; height: 13px; border: 1px solid var(--border-strong); border-radius: 50%; }.source-option.active > i { border: 4px solid var(--accent); }.modal footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--border); }.modal footer button { min-height: 36px; }
.pairing-card { padding: 22px; }
.pairing-status { min-height: 58px; display: flex; align-items: center; gap: 11px; margin-top: 22px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); }
.pairing-spinner { width: 20px; height: 20px; flex: none; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.pairing-status > span:last-child { display: flex; flex-direction: column; }
.pairing-status strong { font-size: 9px; }.pairing-status small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.pairing-code { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-top: 22px; padding: 15px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.pairing-code small { grid-column: 1 / 3; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pairing-code strong { margin-top: 6px; font: 800 29px Manrope, sans-serif; letter-spacing: .08em; }
.pairing-code button { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); background: var(--panel); font-size: 8px; font-weight: 700; cursor: pointer; }
.pairing-instructions { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.pairing-instructions li { display: flex; align-items: flex-start; gap: 9px; }
.pairing-instructions li > span { width: 21px; height: 21px; display: grid; place-items: center; flex: none; border-radius: 6px; color: var(--text-2); background: var(--active); font-size: 8px; font-weight: 800; }
.pairing-instructions p { margin: 2px 0 0; color: var(--text-2); font-size: 9px; line-height: 1.5; }.pairing-instructions a { color: var(--accent); font-weight: 700; }.pairing-instructions code { padding: 1px 4px; border-radius: 3px; background: var(--active); font-size: 8px; }
.pairing-card footer a { text-decoration: none; }
.toast-region { position: fixed; z-index: 100; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }.toast { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--panel); box-shadow: var(--shadow-md); font-size: 9px; animation: toast-in .2s ease; }.toast svg { width: 15px; height: 15px; fill: none; stroke: var(--green); stroke-width: 2; }.toast.out { opacity: 0; transform: translateY(5px); transition: .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ide-body { grid-template-columns: 48px 215px minmax(0,1fr); }
  .ide-workspace { --preview-size: 54%; grid-template-columns: minmax(260px,var(--preview-size)) 6px minmax(300px,1fr); }
  .compact-brand .brand-copy { display: none; }
}

@media (max-width: 840px) {
  .login-main { grid-template-columns: 1fr; gap: 38px; padding-top: 20px; }.login-intro { text-align: center; }.login-intro h1, .login-intro > p { margin-right: auto; margin-left: auto; }.login-capabilities { justify-content: center; }.login-card { width: min(420px,100%); margin: 0 auto; }
  .app-topbar { grid-template-columns: 1fr auto; padding: 0 16px; }.top-nav { display: none; }
  .dashboard-content { width: min(100% - 32px,1200px); padding-top: 38px; }.workspace-status { align-items: flex-start; }.status-meta { gap: 12px; }.status-meta > span { min-width: auto; }
  .project-toolbar { flex-wrap: wrap; }.search-field { width: 100%; }.filter-tabs { margin-right: auto; }
  .ide-topbar { grid-template-columns: minmax(0,1fr) auto; }.ide-top-middle { display: none; }.ide-body { grid-template-columns: 46px 0 minmax(0,1fr); }.context-sidebar { visibility: hidden; opacity: 0; }.context-reopen { display: grid; left: 53px; }.ide-body.context-open-mobile .context-sidebar { position: fixed; z-index: 32; top: 56px; bottom: 0; left: 46px; width: 245px; visibility: visible; opacity: 1; box-shadow: var(--shadow-md); }.ide-body.context-open-mobile .context-reopen { display: none; }
}

@media (max-width: 680px) {
  .login-view::before { display: none; }.login-header { height: 64px; padding: 0 16px; }.login-main { width: min(100% - 28px,520px); padding: 34px 0 55px; }.login-intro h1 { margin-top: 16px; font-size: 39px; }.login-intro > p { font-size: 14px; }.login-capabilities { gap: 10px 16px; }.login-card { padding: 22px; }.login-footer { padding: 0 16px; }
  .app-topbar { height: 58px; }.account-copy, .account-button > svg { display: none; }.account-button { padding: 0; }.dashboard-content { padding: 30px 0 55px; }.dashboard-heading { align-items: flex-start; flex-direction: column; }.workspace-status { flex-direction: column; }.status-meta { width: 100%; justify-content: space-between; }.status-meta > span:nth-child(2) { display: none; }.project-grid { grid-template-columns: 1fr; }.project-preview { height: 145px; }.sort-field { display: none; }.source-empty { grid-template-columns: 1fr; padding: 24px 18px; }.source-empty-icon { width: 52px; height: 52px; border-radius: 14px; }.source-empty-icon > svg { width: 25px; height: 25px; }.expected-source > header { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 7px; padding-bottom: 7px; }.demo-warning { align-items: flex-start; flex-direction: column; }
  .ide-topbar { height: 52px; padding: 0 7px; }.ide-body { height: calc(100% - 52px); grid-template-columns: 42px 0 minmax(0,1fr); }.activity-rail { grid-column: 1; }.rail-button { width: 36px; height: 39px; }.rail-button svg { width: 18px; height: 18px; }.ide-top-start .compact-brand, .top-separator, .back-button span, .breadcrumb-separator, .project-crumb small, .top-icon-button:first-of-type { display: none; }.project-crumb strong { max-width: 125px; }.ide-top-actions { gap: 4px; }.mobile-pane-switch { display: flex; padding: 2px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-soft); }.mobile-pane-switch button { padding: 4px 7px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 700; }.mobile-pane-switch button.active { color: var(--text); background: var(--panel); box-shadow: var(--shadow-sm); }.ide-avatar { display: none; }.ide-body.context-open-mobile .context-sidebar { top: 52px; left: 42px; }
  .ide-workspace { grid-template-columns: minmax(0,1fr); }.splitter { display: none; }.preview-pane, .chat-pane { grid-column: 1; grid-row: 1; }.chat-pane { display: none; }.ide-workspace.mobile-chat .preview-pane { display: none; }.ide-workspace.mobile-chat .chat-pane { display: flex; }.preview-header { padding-left: 5px; }.preview-tabs button { padding: 0 7px; }.preview-tabs button .tab-dot { display: none; }.preview-tools .sync-label, .preview-tools .zoom-value { display: none; }.component-view, .pdf-view { padding: 14px; }.component-sheet { min-width: 690px; }.pdf-sheet { min-width: 520px; }.chat-scroll { padding-right: 15px; padding-left: 15px; }.context-reopen { top: 59px; left: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
