:root {
  --ink: #0b0f14;
  --ink-2: #222a35;
  --muted: #697482;
  --line: #dfe3e8;
  --line-dark: #cbd1d9;
  --paper: #ffffff;
  --surface: #f3f5f6;
  --blue: #005bfe;
  --blue-soft: #eaf1ff;
  --green: #147a4b;
  --green-soft: #e2f4ea;
  --amber: #986300;
  --amber-soft: #fff1d5;
  --sidebar-width: 232px;
  --topbar-height: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--surface); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; }
button, a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 12px; background: var(--ink); color: white; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 24px 16px 18px; border-right: 1px solid var(--line); background: var(--paper); }
.sidebar-brand { padding: 3px 8px 22px; }
.sidebar-brand img { width: 146px; }
.sidebar-brand span { display: block; margin-top: 6px; color: #87909b; font-size: 9px; letter-spacing: .05em; }
.account-switcher { display: grid; grid-template-columns: 32px 1fr 18px; gap: 9px; align-items: center; margin-bottom: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.account-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--blue); color: white; font-size: 10px; font-weight: 800; }
.account-switcher b, .account-switcher small { display: block; }
.account-switcher b { font-size: 11px; }
.account-switcher small { margin-top: 2px; color: #89929d; font-size: 9px; }
.account-switcher button { border: 0; background: none; color: #7c8591; }
.product-nav { display: grid; gap: 3px; }
.product-nav button { position: relative; display: grid; grid-template-columns: 27px 1fr auto; gap: 10px; align-items: center; min-height: 42px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #596473; font-size: 12px; font-weight: 650; text-align: left; }
.product-nav button > span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #ccd2da; border-radius: 6px; color: #7b8490; font-size: 8px; font-weight: 800; }
.product-nav button > i { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 99px; background: #e6e9ed; color: #636d79; font-size: 8px; font-style: normal; }
.product-nav button:hover { background: #f1f3f5; color: var(--ink); }
.product-nav button.active { background: var(--blue-soft); color: var(--blue); }
.product-nav button.active > span { border-color: var(--blue); background: var(--blue); color: white; }
.fleet-summary { margin-top: auto; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8f9fa; }
.fleet-summary > div { display: flex; align-items: center; gap: 9px; }
.fleet-summary i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.fleet-summary b, .fleet-summary small { display: block; }
.fleet-summary b { font-size: 10px; }
.fleet-summary small { color: #8b949f; font-size: 9px; }
.fleet-summary button { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--blue); font-size: 10px; font-weight: 700; }
.user-card { display: flex; gap: 9px; align-items: center; margin-top: 12px; padding: 10px 7px 0; border-top: 1px solid var(--line); }
.user-card > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 9px; font-weight: 800; }
.user-card b, .user-card small { display: block; }
.user-card b { font-size: 10px; }
.user-card small { color: #89929d; font-size: 9px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; height: var(--topbar-height); align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.topbar p, .topbar h1 { margin: 0; }
.topbar > div:first-child p { color: #8a939e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.topbar h1 { margin-top: 2px; font-size: 18px; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-actions > p { margin-right: 6px; color: #8a939e; font-size: 10px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: #65707d; font-size: 11px; font-weight: 750; }
.notification-button { color: var(--blue); }
.site-link { padding: 8px 12px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; font-size: 10px; font-weight: 700; }

.view-panel { min-height: calc(100vh - var(--topbar-height)); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.page-heading h2, .page-heading p { margin: 0; }
.page-heading h2 { margin-bottom: 6px; font-size: 32px; letter-spacing: -.04em; }
.page-heading > div > p:last-child { color: var(--muted); }
.eyebrow { margin-bottom: 8px !important; color: var(--blue) !important; font-size: 9px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.primary-button, .secondary-button { min-height: 36px; padding: 0 15px; border-radius: 8px; font-size: 11px; font-weight: 750; }
.primary-button { border: 1px solid var(--blue); background: var(--blue); color: white; }
.secondary-button { border: 1px solid var(--line-dark); background: white; color: #566170; }

.overview-view, .list-view { padding: 42px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.metric-grid article > span, .metric-grid small { display: block; color: #7d8793; font-size: 10px; }
.metric-grid strong { display: block; margin: 18px 0 6px; font-size: 32px; letter-spacing: -.04em; }
.metric-grid strong span { color: #a0a8b2; font-size: 14px; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; margin-top: 14px; }
.dashboard-grid > article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.card-heading { display: flex; align-items: center; justify-content: space-between; }
.card-heading h3 { margin: 0; font-size: 14px; }
.card-heading button { border: 0; background: none; color: var(--blue); font-size: 10px; font-weight: 700; }
.card-heading > span { color: #8b949f; font-size: 9px; text-transform: uppercase; }
.activity-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.activity-card li { display: flex; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.activity-card li > i, .fleet-card dt i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #aeb5be; }
.activity-card i.blue { background: var(--blue); }
.activity-card i.green, .fleet-card i.green { background: var(--green); }
.activity-card i.amber, .fleet-card i.amber { background: #d58c00; }
.activity-card b, .activity-card small { display: block; }
.activity-card b { font-size: 11px; }
.activity-card small { margin-top: 3px; color: #89929e; font-size: 9px; }
.fleet-chart { display: grid; width: 148px; height: 148px; margin: 24px auto; place-items: center; border: 14px solid var(--green-soft); border-top-color: var(--green); border-right-color: var(--green); border-radius: 50%; transform: rotate(14deg); }
.fleet-chart > div { text-align: center; transform: rotate(-14deg); }
.fleet-chart strong, .fleet-chart span { display: block; }
.fleet-chart strong { font-size: 25px; }
.fleet-chart span { color: #8b949f; font-size: 9px; }
.fleet-card dl { margin: 0; }
.fleet-card dl div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.fleet-card dt { display: flex; align-items: center; gap: 7px; color: #717b88; font-size: 10px; }
.fleet-card dt i { margin-top: 0; }
.fleet-card dd { margin: 0; font-size: 10px; font-weight: 800; }

.experiences-view { overflow: hidden; background: #eef0f2; }
.builder-header { display: flex; height: 56px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: white; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #7a8491; font-size: 10px; }
.breadcrumbs strong { color: var(--ink); }
.breadcrumbs b { color: #b3bac3; }
.breadcrumbs em { margin-left: 4px; padding: 3px 7px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 8px; font-style: normal; font-weight: 750; }
.back-button { display: grid; width: 28px; height: 28px; margin-right: 3px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; }
.builder-actions { display: flex; gap: 8px; }
.builder { display: grid; grid-template-columns: 205px minmax(500px, 1fr) 280px; height: calc(100vh - var(--topbar-height) - 56px); min-height: 620px; }
.builder button { min-height: 44px; }
.views-panel, .inspector-panel { min-width: 0; overflow-y: auto; background: white; }
.views-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .panel-heading span { margin: 0; }
.panel-heading h2 { font-size: 11px; }
.panel-heading span { display: block; margin-top: 2px; color: #8c95a0; font-size: 8px; }
.panel-heading button { display: grid; width: 44px; place-items: center; border: 1px solid var(--line-dark); border-radius: 7px; background: white; color: var(--blue); font-size: 16px; }
.view-list { display: grid; gap: 4px; padding: 10px; }
.view-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; }
.view-item:hover { background: #f2f4f6; }
.view-item.active { border-color: #a9c2ff; background: var(--blue-soft); }
.view-index { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 6px; background: var(--ink); color: white; font-size: 8px; font-weight: 800; }
.view-copy { min-width: 0; }
.view-copy b, .view-copy small, .view-copy code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-copy b { font-size: 9px; }
.view-copy small { margin-top: 2px; color: #7b8591; font-size: 7px; }
.view-copy code { margin-top: 3px; color: #929ba6; font-size: 6px; }
.resource-panel { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); }
.panel-title, .resource-panel > h2 { margin: 0 0 10px; font-size: 10px; }
.resource-group + .resource-group { margin-top: 11px; }
.resource-group h3 { margin: 0 0 5px; color: #7b8591; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.resource-list { display: grid; gap: 3px; }
.resource-item { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 8px; text-align: left; }
.resource-item small { display: block; margin-top: 2px; overflow: hidden; color: #8b949f; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }

.canvas-workspace { display: grid; grid-template-rows: 52px minmax(0, 1fr); min-width: 0; }
.canvas-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 4px 14px; border-bottom: 1px solid var(--line); background: #f8f9fa; }
.mode-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.mode-tabs button { min-height: 36px; padding: 4px 9px; border: 0; border-radius: 4px; background: none; color: #7a8491; font-size: 8px; }
.mode-tabs button.active { background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.canvas-label { color: #8b949f; font-size: 8px; text-align: center; }
.canvas-tools { display: flex; gap: 4px; }
.canvas-tools button { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #65707d; font-size: 8px; }
.canvas-tools button.active { border-color: #a9c2ff; background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.canvas-stage { display: grid; min-height: 0; overflow: auto; place-items: center; padding: 34px; background: #e5e8eb; }
.builder-canvas { position: relative; width: min(94%, 820px); aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); color: white; box-shadow: 0 18px 42px rgba(20,27,36,.22); touch-action: none; }
.builder[data-profile="profile-portrait"] .builder-canvas { width: min(52%, 430px); aspect-ratio: 9 / 16; }
.grid-layer { position: absolute; inset: 0; }
.builder-grid { position: absolute; z-index: 1; min-width: 1px; min-height: 1px; overflow: visible; border: 1px solid #46515f; background: rgba(255,255,255,.04); color: white; cursor: move; touch-action: none; }
.builder-grid.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.builder-grid.is-hidden { border-style: dashed; opacity: .38; }
.builder-grid.is-locked { cursor: not-allowed; }
.builder-grid:focus-visible, .builder-component:focus-visible, .flow-node:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.grid-label { position: absolute; left: 0; bottom: 100%; display: none; max-width: 100%; padding: 3px 5px; background: var(--blue); font-size: 6px; white-space: nowrap; }
.builder-grid.selected .grid-label, .builder-grid:focus .grid-label { display: block; }
.grid-label b, .grid-label small { display: block; overflow: hidden; text-overflow: ellipsis; }
.grid-components { display: flex; height: 100%; gap: 5px; align-items: stretch; padding: 5px; }
.builder-component { flex: 1 1 0; min-width: 0; min-height: 44px; overflow: hidden; padding: 5px; border: 1px solid #46515f; border-radius: 5px; background: #11171f; color: white; text-align: left; }
.builder-component.selected { border-color: var(--blue); background: var(--blue); }
.builder-component span, .builder-component b, .builder-component small, .builder-component code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder-component .component-type { color: #8eaff8; font-size: 6px; letter-spacing: .06em; text-transform: uppercase; }
.builder-component b { margin-top: 3px; font-size: 8px; }
.builder-component small, .builder-component code { margin-top: 2px; color: #aab3bf; font-size: 5px; }
.builder-component.selected .component-type, .builder-component.selected small, .builder-component.selected code { color: white; }
.resize-handle { position: absolute; right: -17px; bottom: -17px; z-index: 3; width: 44px; min-height: 44px; overflow: hidden; border: 0; background: transparent; color: transparent; touch-action: none; }
.resize-handle::after { content: ""; position: absolute; right: 9px; bottom: 9px; width: 12px; height: 12px; border: 1px solid var(--blue); background: white; }
.builder-grid:not(.selected) .resize-handle { display: none; }
.empty-copy { margin: 0; color: #8b949f; font-size: 8px; }

.flow-canvas { width: min(94%, 900px); min-height: 520px; padding: 20px; border: 1px solid var(--line-dark); background: white; }
.flow-nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.flow-node { padding: 10px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; text-align: left; }
.flow-node.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.flow-node b, .flow-node code { display: block; }
.flow-node b { font-size: 9px; }
.flow-node code { margin-top: 4px; color: #7b8591; font-size: 6px; }
.flow-edges { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.flow-edge { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 3px 8px; padding: 9px; border-left: 3px solid var(--blue); background: #f3f5f6; }
.flow-edge .edge-kind { color: var(--blue); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.flow-edge b { font-size: 8px; }
.flow-edge code { grid-column: 2; color: #7b8591; font-size: 6px; }
.flow-target-label { grid-column: 2; color: #7b8591; font-size: 7px; }
.flow-target { display: block; width: 100%; margin-top: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); font-size: 8px; }

.inspector-panel { border-left: 1px solid var(--line); }
.builder-panel-section { padding: 14px; border-bottom: 1px solid var(--line); }
.palette-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.palette-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; align-items: center; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #596473; text-align: left; }
.palette-item:disabled { cursor: not-allowed; opacity: .5; }
.palette-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 5px; background: var(--ink); color: white; font-size: 6px; font-weight: 800; }
.palette-item b { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.selection-details { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px; margin: 0; font-size: 7px; }
.selection-details dt { color: #7b8591; }
.selection-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, "Cascadia Mono", monospace; }
.selection-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin-top: 12px; }
.selection-actions button, .wide-action, .manifest-actions button { padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #596473; font-size: 8px; }
.selection-actions button:disabled { cursor: not-allowed; opacity: .45; }
.selection-actions .danger-action { color: var(--ink); }
.wide-action { width: 100%; margin-top: 12px; }
.interaction-list { display: grid; gap: 6px; }
.interaction-item { padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.interaction-item span, .interaction-item b, .interaction-item code { display: block; }
.interaction-trigger { color: var(--blue); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.interaction-item b { margin-top: 3px; font-size: 8px; }
.interaction-item code { margin-top: 3px; color: #7b8591; font-size: 6px; }
.interaction-edit { margin-top: 7px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #596473; font-size: 7px; }
.inspector-subtitle { margin: 14px 0 7px; color: var(--ink); font-size: 9px; }
.component-property-form, .binding-form, .interaction-form, .idle-form, .resource-edit-form { display: grid; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.form-field, .resource-edit-form label { display: grid; gap: 4px; color: #7b8591; font-size: 7px; }
.form-field input, .form-field select, .form-field textarea, .resource-edit-form input { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 8px; }
.form-field textarea { resize: vertical; font-family: inherit; line-height: 1.45; }
.checkbox-field { display: flex; align-items: center; gap: 6px; }
.checkbox-field input { width: auto; }
.form-note { margin: 0; color: #7b8591; font-size: 7px; line-height: 1.45; }
.manifest-panel label { display: block; margin: 10px 0 5px; color: #7b8591; font-size: 7px; }
.manifest-panel input { width: 100%; color: #65707d; font-size: 7px; }
.manifest-panel textarea { width: 100%; resize: vertical; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8f9; color: #45505d; font: 6px/1.5 ui-monospace, "Cascadia Mono", monospace; }
.manifest-meta, .manifest-id { display: block; margin: 0; color: #7b8591; font-size: 7px; overflow-wrap: anywhere; }
.manifest-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
.manifest-errors { display: grid; gap: 3px; margin: 8px 0 0; padding: 0; color: #9a4d42; font-size: 7px; list-style: none; }
.manifest-errors li { overflow-wrap: anywhere; }
.manifest-errors code { display: block; margin-top: 2px; color: #7b8591; font-size: 6px; }
.manifest-errors .manifest-valid { color: #327151; }

#preview-dialog { width: min(92vw, 980px); padding: 0; border: 1px solid var(--line-dark); border-radius: 12px; background: white; color: var(--ink); box-shadow: 0 22px 70px rgba(20,27,36,.28); }
#preview-dialog::backdrop { background: rgba(11,15,20,.62); }
#preview-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#preview-dialog > header p, #preview-dialog > header h2 { margin: 0; }
#preview-dialog > header p { color: #7b8591; font-size: 8px; text-transform: uppercase; }
#preview-dialog > header h2 { margin-top: 2px; font-size: 14px; }
#preview-dialog > header button { min-width: 70px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--line); color: #65707d; font-size: 8px; }
.preview-toolbar div { display: flex; gap: 6px; }
.preview-toolbar button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 8px; }
#preview-surface { display: grid; min-height: 560px; place-items: center; padding: 28px; background: #e5e8eb; }
.preview-stage { position: relative; width: min(92%, 820px); aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); color: white; }
.preview-page-host, .preview-overlay-host, .preview-view-layer { position: absolute; inset: 0; }
.preview-overlay-host { pointer-events: none; }
.preview-overlay-layer { pointer-events: auto; background: rgba(10, 14, 20, .58); }
.preview-grid { position: absolute; display: flex; gap: 6px; align-items: stretch; }
.preview-component { display: grid; flex: 1; min-width: 0; place-items: center; padding: 8px; border: 1px solid #46515f; border-radius: 6px; background: #11171f; color: white; font: inherit; font-size: 10px; text-align: center; }
.preview-component:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.preview-component-button, .preview-component-navigation { cursor: pointer; background: var(--blue); border-color: var(--blue); }
.preview-component-shape { background: #263240; }
.preview-component-data-value { background: #17212b; font-variant-numeric: tabular-nums; }
.telemetry-panel { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.telemetry-panel h3 { margin: 0 0 7px; font-size: 9px; }
#telemetry-log { display: grid; max-height: 120px; gap: 3px; margin: 0; padding: 0; overflow-y: auto; color: #65707d; font: 7px/1.45 ui-monospace, "Cascadia Mono", monospace; list-style: none; }
.telemetry-empty { font-family: inherit; }
#telemetry-log { margin: 0; padding: 0; }

.filter-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.filter-bar input { min-width: 260px; margin-right: auto; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.filter-bar button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #66717e; font-size: 10px; }
.filter-bar button.active { border-color: var(--ink); background: var(--ink); color: white; }
.content-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.content-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }
.content-grid h3, .content-grid p { margin: 0; padding-inline: 14px; }
.content-grid h3 { padding-top: 13px; font-size: 11px; }
.content-grid p { padding-top: 4px; padding-bottom: 14px; color: #8a939f; font-size: 9px; }
.content-preview { display: grid; height: 150px; place-items: center; background: #e8ebef; }
.blue-block { background: var(--blue); color: white; font-size: 30px; font-weight: 800; }
.image-block { background: var(--ink); }
.image-block i { width: 60%; height: 44%; border: 1px solid #485463; border-radius: 8px; background: #202936; }
.data-block { display: flex; flex-direction: column; gap: 8px; padding: 30px; }
.data-block i { width: 100%; height: 9px; border-radius: 99px; background: #bfc7d0; }
.data-block i:nth-child(2) { width: 75%; background: var(--blue); }
.event-block span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 14px; background: white; color: var(--blue); font-size: 25px; font-weight: 800; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.summary-strip span { padding: 16px; border-left: 1px solid var(--line); color: #75808d; font-size: 10px; }
.summary-strip span:first-child { border-left: 0; }
.summary-strip b { margin-right: 5px; color: var(--ink); font-size: 18px; }
.data-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.data-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr .8fr .6fr; gap: 18px; align-items: center; padding: 15px 18px; border-top: 1px solid var(--line); color: #6c7784; font-size: 10px; }
.data-row:first-child { border-top: 0; }
.data-head { background: #f5f6f7; color: #8b949f; font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.data-row strong { color: var(--ink); }
.data-row em, .deployment-cards article > span { justify-self: start; padding: 4px 8px; border-radius: 99px; font-size: 8px; font-style: normal; font-weight: 750; }
.online { background: var(--green-soft); color: var(--green); }
.review { background: var(--amber-soft); color: var(--amber); }
.deployment-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.deployment-cards article { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.deployment-cards h3 { margin: 24px 0 6px; font-size: 15px; }
.deployment-cards p { margin: 0 0 24px; color: #7d8793; font-size: 10px; }
.deployment-cards article > div { display: flex; align-items: center; gap: 8px; color: #707b88; font-size: 9px; }
.deployment-cards article > div i { width: 40%; height: 4px; border-radius: 99px; background: var(--blue); }
.deployment-cards article > div i.partial { width: 25%; background: #d48a00; }
.deployment-cards article > div i.empty { width: 12%; background: #aab2bc; }
.scheduled { background: var(--blue-soft); color: var(--blue); }
.draft { background: #eef0f2; color: #66717e; }
.settings-layout { display: grid; grid-template-columns: 220px minmax(300px, 620px); gap: 20px; }
.settings-layout > nav, .settings-layout > section { border: 1px solid var(--line); border-radius: 13px; background: white; }
.settings-layout > nav { display: flex; flex-direction: column; align-self: start; padding: 10px; }
.settings-layout > nav button { padding: 10px; border: 0; border-radius: 7px; background: none; color: #66717e; font-size: 10px; text-align: left; }
.settings-layout > nav button.active { background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.settings-layout > section { padding: 24px; }
.settings-layout h3 { margin: 0 0 22px; font-size: 16px; }
.settings-layout label { display: block; margin-bottom: 16px; color: #737e8b; font-size: 9px; }
.settings-layout input, .settings-layout select { width: 100%; height: 36px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 10px; }
.settings-note { margin: 22px 0; padding: 14px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.settings-note b { color: var(--blue); font-size: 10px; }
.settings-note p { margin: 5px 0 0; color: #5d6b80; font-size: 9px; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 202px; }
  .builder { grid-template-columns: 185px minmax(420px, 1fr) 240px; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --sidebar-width: 72px; }
  .sidebar { padding-inline: 10px; }
  .sidebar-brand img { width: 48px; height: 40px; object-fit: contain; }
  .sidebar-brand span, .account-switcher > span:nth-child(2), .account-switcher button, .product-nav button { font-size: 0; }
  .account-switcher { grid-template-columns: 1fr; padding: 8px; }
  .account-mark { margin: auto; }
  .product-nav button { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .product-nav button > span { font-size: 8px; }
  .product-nav button > i { display: none; }
  .fleet-summary, .user-card div { display: none; }
  .user-card { justify-content: center; }
  .builder { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .views-panel { max-height: 440px; border-right: 0; border-bottom: 1px solid var(--line); }
  .view-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-panel { margin-top: 0; }
  .canvas-workspace { min-height: 680px; }
  .inspector-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 0; }
  .topbar-actions > p { display: none; }
  .deployment-cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .sidebar { position: sticky; top: 0; width: 100%; height: 62px; flex-direction: row; align-items: center; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { width: 112px; padding: 0; }
  .sidebar-brand img { width: 112px; height: auto; object-fit: initial; }
  .account-switcher, .fleet-summary, .user-card { display: none; }
  .product-nav { display: flex; flex: 1; justify-content: flex-end; gap: 2px; overflow-x: auto; }
  .product-nav button { min-width: 36px; min-height: 36px; }
  .workspace { margin-left: 0; }
  .topbar { top: 62px; padding-inline: 14px; }
  .topbar .site-link, .icon-button:first-of-type { display: none; }
  .overview-view, .list-view { padding: 24px 16px; }
  .page-heading { align-items: start; flex-direction: column; }
  .metric-grid, .dashboard-grid, .content-grid, .summary-strip, .settings-layout { grid-template-columns: 1fr; }
  .summary-strip span { border-left: 0; border-top: 1px solid var(--line); }
  .summary-strip span:first-child { border-top: 0; }
  .builder-header { align-items: center; padding-inline: 10px; }
  .breadcrumbs span, .breadcrumbs b, .breadcrumbs em { display: none; }
  .view-list, .inspector-panel { grid-template-columns: 1fr; }
  .canvas-workspace { min-height: 650px; }
  .canvas-toolbar { align-items: stretch; flex-wrap: wrap; height: auto; padding-block: 7px; }
  .canvas-label { display: none; }
  .canvas-tools { flex: 1; justify-content: flex-end; }
  .canvas-stage { padding: 16px; }
  .builder-canvas { width: 100%; }
  .builder[data-profile="profile-portrait"] .builder-canvas { width: min(72%, 430px); }
  #preview-surface { min-height: 420px; padding: 14px; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar input { min-width: 100%; height: 38px; }
  .data-row { grid-template-columns: 1.3fr .8fr; }
  .data-row span:nth-child(2), .data-row span:nth-child(3), .data-row span:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* The connected shell is safe before module startup; demo fixtures never masquerade as live fleet state. */
body[data-mode="connected"] .account-switcher,
body[data-mode="connected"] .fleet-summary,
body[data-mode="connected"] .user-card,
body[data-mode="connected"] .notification-button,
body[data-mode="connected"] .product-nav [data-view]:not([data-view="experiences"]),
body[data-mode="connected"] [data-panel]:not([data-panel="experiences"]),
body[data-mode="demo"] #point-control-root { display: none; }
.builder[hidden] { display: none; }
.point-control { margin: 16px 24px; padding: 16px; border: 1px solid #d8e0eb; border-radius: 8px; background: #fff; }
.point-control p { margin: 0 0 10px; overflow-wrap: anywhere; }
.point-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.point-controls label { display: grid; gap: 5px; font-size: 12px; }
.point-controls select, .point-controls button, .point-controls a { min-height: 36px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #243247; }
.point-controls select { min-width: 180px; }
#point-source, #point-diagnostics, #point-local-save { margin-top: 12px; font-size: 12px; }
button:disabled { cursor: not-allowed; opacity: .5; }
#discard-dialog { max-width: 520px; padding: 24px; border: 1px solid #cbd5e1; border-radius: 12px; }
