:root {
  --ink: #111416;
  --paper: #f3f5f2;
  --surface: #ffffff;
  --soft: #e7eae6;
  --line: #c7cdc7;
  --muted: #606762;
  --accent: #ef4938;
  --accent-2: #4d83e6;
  --accent-3: #4db879;
  --warning: #e8b92e;
  --danger: #d94335;
  --topbar: 62px;
  --sidebar: 228px;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body[data-theme="forge"] {
  --accent: #36a96a;
  --accent-2: #ef4938;
  --accent-3: #4d83e6;
  --paper: #f1f5f0;
}

body[data-theme="pixel"] {
  --accent: #4d83e6;
  --accent-2: #ef4938;
  --accent-3: #e8b92e;
  --paper: #f2f5fa;
}

body[data-theme="moyu"] {
  --accent: #e8b92e;
  --accent-2: #4d83e6;
  --accent-3: #4db879;
  --paper: #f5f3ec;
}

body[data-theme="syntrix"] {
  --accent: #1d6f5f;
  --accent-2: #ef4938;
  --accent-3: #4d83e6;
  --paper: #eef3f1;
}

body[data-theme="mindora"] {
  --accent: #b64b6c;
  --accent-2: #4d83e6;
  --accent-3: #4db879;
  --paper: #f7f2f3;
}

button,
input,
select,
textarea { font: inherit; letter-spacing: 0; }

button,
a,
input,
select,
textarea { color: inherit; }

button,
a[href] { cursor: pointer; }

a { text-decoration: none; }

img { display: block; max-width: 100%; }

h1,
h2,
h3,
p,
figure,
dl,
dd,
pre { margin: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: var(--topbar);
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) auto;
  align-items: center;
  background: rgba(243, 245, 242, 0.96);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(12px);
}

.product-brand {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--ink);
  font-size: 17px;
  font-weight: 760;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.brand-mark i { background: var(--ink); }
.brand-mark i:nth-child(2) { background: var(--accent); }
.brand-mark i:nth-child(3) { background: var(--accent-2); }
.brand-mark i:nth-child(4) { background: var(--accent-3); }

.product-nav {
  min-width: 0;
  padding: 0 20px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-nav::-webkit-scrollbar { display: none; }
.product-nav a { padding: 21px 0 18px; border-bottom: 3px solid transparent; }
.product-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.product-nav a:hover,
.product-nav a:focus-visible { color: var(--accent); }

.byteon-link {
  height: 100%;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 740;
  text-transform: uppercase;
}

.app-shell {
  min-height: calc(100svh - var(--topbar));
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  padding: 22px 18px;
  border-right: 1px solid var(--ink);
  background: var(--surface);
}

.sidebar-label,
.section-label,
.eyebrow,
.metric-label,
.table-head,
.chip {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 760;
  text-transform: uppercase;
}

.sidebar-label,
.section-label,
.metric-label { color: var(--muted); }

.sidebar-block + .sidebar-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sidebar-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sidebar-list li {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--soft);
  font-size: 13px;
}

.sidebar-list button {
  width: 100%;
  min-height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.sidebar-list button:hover,
.sidebar-list button[aria-pressed="true"] { color: var(--accent); }

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 18%, transparent);
}

.status-dot.busy { background: var(--warning); }
.status-dot.off { background: var(--line); box-shadow: none; }

.main {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 44px) 44px;
}

.page-heading {
  min-height: 106px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
}

.page-heading h1 {
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 730;
}

.page-heading > div:first-child {
  min-width: 340px;
  flex: 1 1 420px;
}

.page-heading p {
  flex: 0 1 470px;
  max-width: 480px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.page-actions {
  flex: 0 0 auto;
  padding-top: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.button,
.icon-button,
.segmented button,
.tag-button {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 740;
}

.button.primary { background: var(--ink); color: #fff; }
.button.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.button:disabled { cursor: not-allowed; opacity: 0.5; }

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
}

.chip {
  min-height: 25px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.chip.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}

.metric {
  min-width: 0;
  min-height: 88px;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }
.metric strong { display: block; margin-top: 9px; font-size: 23px; line-height: 1; }

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 0;
  border-bottom: 1px solid var(--ink);
}

.panel {
  min-width: 0;
  padding: 24px 0;
}

.panel + .panel {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.panel-header {
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h2 {
  font-size: 17px;
  line-height: 1.2;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 4px;
  outline: none;
  background: var(--surface);
}

.field,
.select { height: 40px; padding: 0 11px; }
.textarea { min-height: 138px; padding: 12px; resize: vertical; }
.field:focus,
.select:focus,
.textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tag-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

.tag-button {
  min-height: 29px;
  padding: 0 9px;
  border-color: var(--line);
  font-size: 11px;
}

.tag-button:hover,
.tag-button:focus-visible,
.tag-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.system-visual {
  position: relative;
  min-height: 230px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
}

.system-visual img { width: 100%; height: 100%; object-fit: cover; }
.system-visual .scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 48%, color-mix(in srgb, var(--accent) 50%, transparent) 50%, transparent 52%);
  background-size: 100% 80px;
  opacity: 0;
  pointer-events: none;
}
.system-visual.is-running .scan { opacity: 0.45; animation: scan 1.4s linear infinite; }

@keyframes scan { to { background-position-y: 80px; } }

.timeline,
.queue-list,
.model-list,
.source-list,
.history-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.queue-list li,
.model-row,
.source-row,
.history-row {
  min-height: 54px;
  padding: 10px 0;
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--soft);
}

.timeline li { grid-template-columns: 72px 12px minmax(0, 1fr); }
.timeline time { color: var(--muted); font-size: 11px; }
.timeline strong { display: block; font-size: 13px; }
.timeline span:last-child { color: var(--muted); font-size: 12px; }

.queue-list li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.queue-index { color: var(--muted); font-size: 11px; }
.queue-list strong { display: block; font-size: 13px; }
.queue-list small { color: var(--muted); }

.empty-state {
  min-height: 154px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-top: 1px solid var(--soft);
  text-align: center;
}

.footer {
  min-height: 90px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

/* Forge */
.builder-grid {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 230px;
  min-height: 590px;
  border-bottom: 1px solid var(--ink);
}

.node-palette,
.inspector { padding: 22px 18px; }
.node-palette { border-right: 1px solid var(--line); }
.inspector { border-left: 1px solid var(--line); }

.palette-button {
  width: 100%;
  min-height: 54px;
  margin-top: 9px;
  padding: 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  text-align: left;
}

.palette-button:hover { border-color: var(--accent); }
.node-icon { width: 27px; height: 27px; display: grid; place-items: center; background: var(--soft); font-weight: 800; }
.palette-button strong { display: block; font-size: 12px; }
.palette-button small { color: var(--muted); }

.workflow-canvas {
  position: relative;
  min-width: 0;
  overflow: auto;
  background-color: #edf2ed;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.canvas-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  min-width: 560px;
  min-height: 56px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(237, 242, 237, 0.94);
  border-bottom: 1px solid var(--line);
}

.workflow-stage { position: relative; min-width: 650px; min-height: 530px; }
.workflow-node {
  position: absolute;
  width: 170px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 22%, transparent);
}
.workflow-node[data-state="running"] { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }
.workflow-node[data-state="done"] .node-state { background: var(--accent-3); }
.workflow-node button { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.workflow-node strong { display: block; }
.workflow-node small { color: var(--muted); }
.node-state { width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--line); }
.connector { position: absolute; height: 2px; transform-origin: left center; background: var(--ink); }

.inspector-fields { margin-top: 16px; display: grid; gap: 13px; }
.run-log { margin-top: 18px; max-height: 225px; overflow: auto; font: 12px/1.55 Consolas, monospace; }
.run-log div { padding: 5px 0; border-bottom: 1px solid var(--soft); }

/* Pixel */
.pixel-workspace {
  min-height: 610px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  border-bottom: 1px solid var(--ink);
}

.pixel-controls,
.pixel-history { padding: 22px 18px; }
.pixel-controls { border-right: 1px solid var(--line); }
.pixel-history { border-left: 1px solid var(--line); }
.control-stack { margin-top: 15px; display: grid; gap: 17px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented button { min-height: 34px; border-radius: 0; border-right: 0; font-size: 11px; }
.segmented button:first-child { border-radius: 4px 0 0 4px; }
.segmented button:last-child { border-right: 1px solid var(--ink); border-radius: 0 4px 4px 0; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.swatches { display: flex; gap: 7px; }
.swatch { width: 28px; height: 28px; border: 2px solid transparent; border-radius: 50%; background: var(--swatch); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--surface); }
.range { width: 100%; accent-color: var(--accent); }

.pixel-canvas-wrap {
  min-width: 0;
  padding: 28px;
  display: grid;
  place-items: center;
  background: #15191d;
}
.pixel-canvas-frame { width: min(100%, 720px); }
.pixel-canvas-frame canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border: 1px solid #727a82;
  background: #111416;
  image-rendering: pixelated;
}
.canvas-caption { margin-top: 10px; display: flex; justify-content: space-between; color: #c7cdc7; font-size: 11px; }
.history-row { grid-template-columns: 58px minmax(0, 1fr); }
.history-row img { width: 58px; height: 43px; object-fit: cover; border: 1px solid var(--ink); }
.history-row strong { display: block; font-size: 12px; }
.history-row small { color: var(--muted); }

/* Moyu */
.lab-workspace {
  min-height: 600px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
}
.tool-tabs { padding: 22px 18px; border-right: 1px solid var(--line); }
.tool-button {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--soft);
  background: transparent;
  text-align: left;
}
.tool-button[aria-pressed="true"] { color: var(--accent-2); font-weight: 750; }
.code-workbench { min-width: 0; padding: 22px; }
.workbench-toolbar { min-height: 48px; display: flex; justify-content: space-between; gap: 12px; }
.toolbar-group { display: flex; gap: 7px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.editor-pane { min-width: 0; }
.editor-pane + .editor-pane { border-left: 1px solid var(--ink); }
.editor-title { min-height: 36px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.code-input,
.code-output {
  width: 100%;
  min-height: 410px;
  margin: 0;
  padding: 16px;
  border: 0;
  outline: 0;
  background: #15191d;
  color: #eef1ed;
  font: 13px/1.65 Consolas, "SFMono-Regular", monospace;
  white-space: pre-wrap;
  overflow: auto;
  resize: none;
}
.output-ok { color: #86d7a6; }
.output-error { color: #ff8177; }

/* Syntrix */
.router-workspace {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
  border-bottom: 1px solid var(--ink);
}
.routing-table { padding-right: 24px; border-right: 1px solid var(--line); }
.route-inspector { padding-left: 24px; }
.model-row { grid-template-columns: minmax(0, 1fr) 90px 90px 86px; }
.model-row.table-head { min-height: 38px; color: var(--muted); }
.model-row strong { font-size: 13px; }
.model-row small { color: var(--muted); }
.model-row > span { min-width: 0; }
.model-row > span:first-child strong,
.model-row > span:first-child small { display: block; }
button.model-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--soft);
  background: transparent;
  text-align: left;
}
button.model-row:hover,
button.model-row:focus-visible { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.model-bar { height: 6px; background: var(--soft); }
.model-bar i { display: block; height: 100%; background: var(--accent); }
.route-visual { margin-top: 18px; height: 220px; overflow: hidden; border: 1px solid var(--ink); background: #0e1e19; }
.route-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.decision-list { margin: 16px 0 0; padding: 0; list-style: none; }
.decision-list li { padding: 11px 0; display: grid; grid-template-columns: 70px 1fr; gap: 10px; border-bottom: 1px solid var(--soft); font-size: 12px; }
.decision-list span { color: var(--muted); }

/* Mindora */
.knowledge-workspace {
  min-height: 620px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
}
.knowledge-sources { padding: 22px 18px; border-right: 1px solid var(--line); }
.source-row { grid-template-columns: 30px minmax(0, 1fr); }
.source-row button { display: contents; }
.source-index { width: 28px; height: 28px; display: grid; place-items: center; background: var(--soft); font-size: 10px; font-weight: 800; }
.source-row strong { display: block; font-size: 12px; }
.source-row small { color: var(--muted); }
.assistant-pane { min-width: 0; padding: 22px clamp(18px, 4vw, 50px); }
.chat-stream { min-height: 390px; max-height: 480px; overflow: auto; }
.message { max-width: 760px; padding: 16px 0; border-bottom: 1px solid var(--soft); }
.message.user { margin-left: auto; color: var(--muted); }
.message-label { margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.message p + p { margin-top: 10px; }
.citation { margin-top: 12px; display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; }
.ask-bar { position: sticky; bottom: 0; padding-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; background: var(--paper); }

.toast {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  transform: translateY(150%);
  transition: transform 180ms ease;
}
.toast.show { transform: translateY(0); }

@media (max-width: 1060px) {
  :root { --sidebar: 190px; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel + .panel { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .builder-grid { grid-template-columns: 150px minmax(0, 1fr); }
  .inspector { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .pixel-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .pixel-history { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .history-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .page-heading { flex-wrap: wrap; }
  .page-heading > div:first-child { min-width: 280px; }
  .page-heading > p { order: 3; flex-basis: 100%; padding-top: 0; padding-bottom: 18px; }
}

@media (max-width: 780px) {
  :root { --topbar: auto; --sidebar: 100%; }
  .topbar { position: relative; height: auto; grid-template-columns: 1fr auto; }
  .product-brand { min-height: 58px; border-right: 0; }
  .product-nav { grid-column: 1 / -1; grid-row: 2; padding: 0 16px; border-top: 1px solid var(--line); }
  .product-nav a { padding: 14px 0 11px; }
  .byteon-link { grid-column: 2; grid-row: 1; min-height: 58px; }
  .app-shell { display: block; }
  .sidebar { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .sidebar-block + .sidebar-block { margin-top: 12px; padding-top: 12px; }
  .sidebar-list { display: flex; gap: 14px; overflow-x: auto; }
  .sidebar-list li { min-width: max-content; border-bottom: 0; }
  .main { padding: 22px 16px 34px; }
  .page-heading { min-height: 0; padding-bottom: 22px; display: block; }
  .page-heading > div:first-child { min-width: 0; }
  .page-heading p { padding-top: 12px; }
  .page-actions { padding-top: 16px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .builder-grid,
  .pixel-workspace,
  .lab-workspace,
  .router-workspace,
  .knowledge-workspace { display: block; min-height: 0; }
  .node-palette,
  .pixel-controls,
  .tool-tabs,
  .knowledge-sources { border-right: 0; border-bottom: 1px solid var(--line); }
  .palette-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .palette-button { margin-top: 0; }
  .workflow-canvas { height: 560px; }
  .pixel-history,
  .inspector { border-left: 0; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-pane + .editor-pane { border-left: 0; border-top: 1px solid var(--ink); }
  .code-input,
  .code-output { min-height: 280px; }
  .routing-table { padding-right: 0; border-right: 0; }
  .route-inspector { padding: 24px 0 0; border-top: 1px solid var(--line); }
  .assistant-pane { padding: 20px 0; }
  .chat-stream { min-height: 360px; }
}

@media (max-width: 520px) {
  .byteon-link span { display: none; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .command-row,
  .ask-bar { grid-template-columns: 1fr; }
  .palette-list { grid-template-columns: 1fr; }
  .pixel-canvas-wrap { padding: 16px; }
  .history-list { grid-template-columns: 1fr; }
  .model-row { grid-template-columns: minmax(0, 1fr) 70px 64px; }
  .model-row > :nth-child(3) { display: none; }
  .footer { display: block; }
  .footer p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
