/* Differences from ../style.css only. The dark parts use Arco's own tokens (--arco-*), scoped to .arco. */
.brand-arco { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.top-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.top-nav a { font: .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); text-decoration: none; padding: 8px 0; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--fg); text-decoration: underline; }
@media (max-width: 900px) {
  .top-nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { white-space: nowrap; }
}

.hero { min-height: 0; padding-top: 168px; }
.hero-main { align-items: center; padding-bottom: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 56px; }
.hero-copy { position: static; margin: 0; max-width: 34rem; }
.hero-copy h1 { font-size: clamp(2.6rem, 4.4vw, 4.8rem); letter-spacing: -.02em; line-height: 1.04; margin-bottom: .35em; }
.hero-copy .lead { max-width: 30rem; }
.hero-copy .mono-h { margin-bottom: 18px; }
.hero + .section { padding-top: 6rem; }
@media (max-width: 900px) { .hero-main { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 136px; } }
@media (max-width: 700px) { .hero + .section { padding-top: 5rem; } }
.quiet { max-width: 30rem; text-transform: none; letter-spacing: .02em; line-height: 2; }
.hero-mock { min-width: 0; }
.mock-note, .small-print { font: .66rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); max-width: 52rem; margin: 14px 0 0; }
.small-print code { text-transform: none; letter-spacing: 0; }
.lead-sub { max-width: 44rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--faint); background: var(--card); color: var(--fg); text-decoration: none; font: .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--sel); border-color: var(--sel); color: var(--sel-fg); }
.btn.primary:hover { filter: brightness(1.1); }
.sub { max-width: 40rem; }
.src { font: .66rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; max-width: 56rem; margin-top: 1.4em; }
.src code { text-transform: none; letter-spacing: 0; }
.small { font-size: .9rem; }
.cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; margin-top: 3rem; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.site-footer p { margin: 0; max-width: 64rem; }
.site-footer a { color: inherit; }

/* ---------- Arco dark scope: real token names and values from tokens.css ---------- */
.arco {
  color-scheme: dark;
  --arco-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arco-font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --arco-text-xs: 11px; --arco-text-sm: 12.5px; --arco-text-md: 14px; --arco-text-lg: 16px; --arco-text-xl: 20px;
  --arco-space-xs: 4px; --arco-space-s: 8px; --arco-space-m: 12px; --arco-space-l: 16px; --arco-space-xl: 24px;
  --arco-radius-s: 6px; --arco-radius-m: 10px; --arco-radius-l: 14px; --arco-radius-window: 12px;
  --arco-ease: cubic-bezier(0.32, 0.72, 0, 1); --arco-dur-fast: 140ms; --arco-dur-med: 240ms;
  --arco-bg-desktop: #0d0d0f; --arco-bg-surface-solid: #1a1a1c; --arco-bg-sunk: #0e0e10; --arco-bg-elevated: #28282c;
  --arco-bg-hover: rgba(255, 255, 255, 0.06); --arco-bg-active: rgba(255, 255, 255, 0.1);
  --arco-text-primary: #ececee; --arco-text-secondary: #a8a8ae; --arco-text-tertiary: #717178; --arco-text-inverted: #121214;
  --arco-accent: #7c9dff; --arco-accent-strong: #5b82ff; --arco-accent-soft: rgba(124, 157, 255, 0.16);
  --arco-success: #58c98b; --arco-warning: #e5b567; --arco-danger: #e5737d; --arco-danger-soft: rgba(229, 115, 125, 0.14);
  --arco-border: rgba(255, 255, 255, 0.09); --arco-border-strong: rgba(255, 255, 255, 0.16);
  font-family: var(--arco-font-ui); font-size: var(--arco-text-md); line-height: 1.45; color: var(--arco-text-primary);
}
.arco *:focus-visible { outline: 2px solid var(--arco-accent); outline-offset: 2px; }
.arco .dim { color: var(--arco-text-secondary); }
.arco p { margin: 0; }
.arco code { background: none; color: inherit; padding: 0; }

.win { background: var(--arco-bg-surface-solid); border: 1px solid var(--arco-border); border-radius: var(--arco-radius-window); box-shadow: 0 24px 64px rgba(31, 42, 34, .35), 0 2px 8px rgba(31, 42, 34, .2); overflow: hidden; min-width: 0; }
.win-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--arco-border); background: #121214; font-size: var(--arco-text-sm); color: var(--arco-text-secondary); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--arco-bg-active); }
.dots i:first-child { background: var(--arco-danger); } .dots i:nth-child(2) { background: var(--arco-warning); } .dots i:nth-child(3) { background: var(--arco-success); }
.win-title { color: var(--arco-text-primary); font-weight: 600; }
.win-state { margin-left: auto; font: 11px/1 var(--arco-font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--arco-accent); }
.win-body { padding: 14px; display: grid; gap: 12px; align-content: start; }


/* demo layout */
.demo { margin-top: 2rem; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.chat { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--arco-border); }
.log { height: 440px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.feedpane { min-width: 0; background: var(--arco-bg-desktop); display: flex; flex-direction: column; }
.pane-h { padding: 10px 14px; font: 11px/1 var(--arco-font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--arco-text-tertiary); display: flex; justify-content: space-between; border-bottom: 1px solid var(--arco-border); }
.feed-list { height: 440px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.empty { color: var(--arco-text-tertiary); font-size: var(--arco-text-sm); }
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .chat { border-right: 0; border-bottom: 1px solid var(--arco-border); }
  .log { height: 300px; }
  .feed-list { height: 480px; }
}

.msg { display: flex; gap: 8px; max-width: 100%; }
.msg.user { justify-content: flex-end; }
.msg .bub { padding: 8px 12px; border-radius: var(--arco-radius-l); font-size: var(--arco-text-md); max-width: 92%; overflow-wrap: anywhere; }
.msg.user .bub { background: var(--arco-accent-soft); color: var(--arco-text-primary); border-bottom-right-radius: 4px; }
.msg.agent .bub { background: var(--arco-bg-elevated); border-bottom-left-radius: 4px; }
.av { position: relative; flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 8px; background: #121214; border: 1px solid var(--arco-border-strong); display: block; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msg.note { display: block; }
.note { font: 11px/1.4 var(--arco-font-mono); color: var(--arco-text-tertiary); padding-left: 32px; }
.note.done { color: var(--arco-success); }
.note.done::before { content: "\2713  "; }
.note.pending::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--arco-accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--arco-accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--arco-border); }
.chip-btn { font: inherit; font-size: var(--arco-text-sm); min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--arco-border-strong); background: var(--arco-bg-elevated); color: var(--arco-text-primary); cursor: pointer; transition: background var(--arco-dur-fast) var(--arco-ease), border-color var(--arco-dur-fast) var(--arco-ease); }
.chip-btn:hover { background: var(--arco-bg-active); }
.chip-btn[aria-pressed="true"] { border-color: var(--arco-accent); background: var(--arco-accent-soft); color: var(--arco-accent); }
.chip-btn.replay { margin-left: auto; background: none; color: var(--arco-text-secondary); }
.composer { display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; padding: 4px 4px 4px 12px; border-radius: var(--arco-radius-l); border: 1px solid var(--arco-border); background: var(--arco-bg-sunk); }
.composer input { flex: 1; min-width: 0; background: none; border: 0; color: var(--arco-text-tertiary); font: inherit; font-size: var(--arco-text-sm); padding: 8px 0; }
.composer input::placeholder { color: var(--arco-text-tertiary); }
.send { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--arco-bg-active); color: var(--arco-text-tertiary); }

/* skeleton */
.skel { border: 1px solid var(--arco-border); border-radius: var(--arco-radius-l); padding: 14px; display: grid; gap: 10px; background: var(--arco-bg-elevated); }
.skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(100deg, var(--arco-bg-active) 30%, rgba(255,255,255,.2) 50%, var(--arco-bg-active) 70%) 0 0 / 220% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:nth-child(1) { width: 40%; } .skel i:nth-child(2) { height: 46px; } .skel i:nth-child(3) { width: 70%; }
@keyframes shimmer { to { background-position: -120% 0; } }

/* cards */
.acard { background: var(--arco-bg-elevated); border: 1px solid var(--arco-border); border-radius: var(--arco-radius-l); padding: 14px; display: grid; gap: 10px; min-width: 0; text-align: left; }
.acard.pop { animation: pop var(--arco-dur-med) var(--arco-ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.acard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.acard-h h4 { margin: 0; font-size: var(--arco-text-md); font-weight: 600; letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; }
.acard .type { flex: none; font: 10.5px/1 var(--arco-font-mono); color: var(--arco-accent); background: var(--arco-accent-soft); padding: 4px 7px; border-radius: var(--arco-radius-s); }
.acard .big { font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.peek summary { cursor: pointer; font: 11px/1.4 var(--arco-font-mono); color: var(--arco-text-tertiary); list-style: none; padding: 4px 0; display: inline-block; }
.peek summary::-webkit-details-marker { display: none; }
.peek summary::before { content: "+ "; }
.peek[open] summary::before { content: "\2212  "; }
.peek summary:hover { color: var(--arco-text-secondary); }
.spec, .term { margin: 6px 0 0; padding: 10px 12px; background: var(--arco-bg-desktop); color: var(--arco-text-secondary); border: 1px solid var(--arco-border); border-radius: var(--arco-radius-m); font: 11.5px/1.5 var(--arco-font-mono); max-height: 220px; overflow: auto; white-space: pre; }
.term { margin: 0; color: var(--arco-success); }
.term.code { color: var(--arco-text-primary); }

.prog { height: 6px; border-radius: 3px; background: var(--arco-bg-active); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--arco-accent); border-radius: 3px; transition: width var(--arco-dur-med) var(--arco-ease); }
.count, .tasks .count { font-size: var(--arco-text-sm); margin-top: 6px; }
.task-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.task-list li { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-height: 36px; }
.task-list input { width: 18px; height: 18px; accent-color: var(--arco-accent); flex: none; margin: 0; }
.task-list label { flex: 1 1 8rem; cursor: pointer; padding: 6px 0; min-width: 0; overflow-wrap: anywhere; }
.task-list input:checked + label { color: var(--arco-text-tertiary); text-decoration: line-through; }
.pri { font: 10px/1 var(--arco-font-mono); text-transform: uppercase; padding: 3px 6px; border-radius: 5px; background: var(--arco-bg-active); color: var(--arco-text-secondary); }
.pri.high { background: var(--arco-danger-soft); color: var(--arco-danger); }
.due { font: 11px/1 var(--arco-font-mono); }

.stat-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.delta { font-size: var(--arco-text-sm); font-weight: 600; }
.delta.up { color: var(--arco-success); } .delta.down { color: var(--arco-danger); }
.stat .dim { font-size: var(--arco-text-sm); margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin-top: 10px; }
.bars span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.bars i { display: block; width: 100%; height: calc(var(--h) * .72); background: linear-gradient(var(--arco-accent), var(--arco-accent-strong)); border-radius: 5px 5px 2px 2px; transform-origin: bottom; animation: grow var(--arco-dur-med) var(--arco-ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes grow { from { transform: scaleY(0); } }
.bars em { font: normal 10px/1 var(--arco-font-mono); color: var(--arco-text-tertiary); }

.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-ic { color: var(--arco-warning); flex: none; }
.wx-meta { font-size: var(--arco-text-sm); margin-top: 6px; }
.wx-fc { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--arco-border); display: flex; gap: 8px; }
.wx-fc li { flex: 1; display: grid; justify-items: center; gap: 4px; font-size: var(--arco-text-sm); color: var(--arco-text-secondary); }
.wx-fc b { color: var(--arco-text-primary); }

.cal-days { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-days span { padding: 6px 0 8px; border-radius: var(--arco-radius-m); display: grid; gap: 2px; justify-items: center; }
.cal-days small { font: 10px/1 var(--arco-font-mono); color: var(--arco-text-tertiary); text-transform: uppercase; }
.cal-days b { font-weight: 600; font-size: var(--arco-text-md); }
.cal-days .sel { background: var(--arco-accent); color: var(--arco-text-inverted); }
.cal-days .sel small { color: inherit; opacity: .8; }
.cal-days u { width: 4px; height: 4px; border-radius: 50%; background: var(--arco-accent); text-decoration: none; }
.cal-days .sel u { background: var(--arco-text-inverted); }
.events { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.events li { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-left: 3px solid var(--arco-accent); background: var(--arco-bg-hover); border-radius: 0 var(--arco-radius-s) var(--arco-radius-s) 0; font-size: var(--arco-text-sm); flex-wrap: wrap; }
.events li.warning { border-color: var(--arco-warning); } .events li.success { border-color: var(--arco-success); }
.events .dim { font: 11px/1 var(--arco-font-mono); min-width: 5.5em; }
.events b { font-weight: 550; }

.form { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label { font-size: var(--arco-text-sm); color: var(--arco-text-secondary); }
.field input[type=text], .field input[type=number], .field select, .field textarea { font: inherit; font-size: var(--arco-text-md); color: var(--arco-text-primary); background: var(--arco-bg-sunk); border: 1px solid var(--arco-border-strong); border-radius: var(--arco-radius-m); padding: 9px 10px; min-height: 40px; width: 100%; min-width: 0; }
.field input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--arco-accent); }
.field:has(input[type=checkbox]) { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.field:has(input[type=checkbox]) label { order: 2; }
.arco-btn { font: inherit; font-weight: 600; font-size: var(--arco-text-md); min-height: 44px; padding: 0 16px; border-radius: var(--arco-radius-m); border: 0; background: var(--arco-accent); color: var(--arco-text-inverted); cursor: pointer; justify-self: start; transition: background var(--arco-dur-fast) var(--arco-ease); }
.arco-btn:hover { background: var(--arco-accent-strong); }
.form-status { font-size: var(--arco-text-sm); min-height: 1.2em; }
.form-status.ok { color: var(--arco-success); } .form-status.bad { color: var(--arco-danger); }

.text { font-size: var(--arco-text-md); }
.text.muted { color: var(--arco-text-secondary); }
.music { display: flex; align-items: center; gap: 12px; }
.music-wrap { display: grid; gap: 6px; }
.art { width: 46px; height: 46px; border-radius: var(--arco-radius-m); background: linear-gradient(135deg, var(--arco-accent), #e879a8); flex: none; }
.music-meta { display: grid; flex: 1; min-width: 0; } .music-meta span { font-size: var(--arco-text-sm); }
.play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--arco-border-strong); background: var(--arco-bg-hover); color: var(--arco-text-primary); display: grid; place-items: center; cursor: pointer; }
.times { display: flex; justify-content: space-between; font: 11px/1 var(--arco-font-mono); }

/* post in feed */
.feed-posts { gap: 18px; background: var(--arco-bg-desktop); }
.post { display: grid; gap: 8px; }
.post-h { display: flex; align-items: center; gap: 8px; font-size: var(--arco-text-sm); }
.post-h .av { margin-top: 0; }
.post-t { color: var(--arco-text-secondary); font-size: var(--arco-text-md); }

/* gallery */
.gstage { margin-top: 2rem; padding: 16px; border-radius: var(--arco-radius-window); background: var(--arco-bg-desktop); border: 1px solid var(--arco-border); box-shadow: 0 24px 64px rgba(31, 42, 34, .3); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .gstage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gstage { grid-template-columns: minmax(0, 1fr); padding: 12px; } }
.status-list { margin-top: 2.5rem; max-width: 56rem; }

/* flow */
.flow { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.flow li { position: relative; background: var(--card); border-radius: 22px; padding: 18px; box-shadow: 0 1px 0 var(--faint), 0 18px 40px -28px var(--shadow); }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -11px; top: 22px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: .7rem/1 var(--mono); color: var(--muted); }
.flow .n { font: .66rem/1 var(--mono); letter-spacing: .14em; color: var(--muted); display: block; margin-bottom: 10px; }
.flow h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: .6em; }
.flow p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow li::after { display: none; } }
@media (max-width: 640px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.code-cols .panel h3 { font-size: 1.25rem; }
pre { max-width: 100%; }

.grid-cards { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-cards li { background: var(--card); border-radius: 28px; padding: 24px; box-shadow: 0 1px 0 var(--faint), 0 18px 40px -28px var(--shadow); min-width: 0; }
.grid-cards h3 { margin-bottom: .6em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.grid-cards p { margin: 0 0 .6em; color: var(--muted); font-size: .96rem; }
.grid-cards p.src { margin: .8em 0 0; }
@media (max-width: 1000px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: minmax(0, 1fr); } .grid-cards li { padding: 20px; } }

.notes { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 14px; color: var(--muted); font-size: .96rem; }
.notes b { color: var(--fg); }
.notes code { font-size: .8em; }
.side .notes { max-width: 26rem; }

/* tokens */
.tsw { margin-top: 2.5rem; }
.tsw + .tsw { margin-top: 1.5rem; }
.sw-h { font: .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 12px; }
.tsw ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tsw li { display: grid; gap: 4px; min-width: 0; font-size: .8rem; }
.tsw li code { font-size: .68rem; background: none; padding: 0; color: var(--fg); }
.tsw .dim { font: .68rem/1.3 var(--mono); color: var(--muted); }
.sw-chip { display: block; height: 52px; border-radius: 14px; border: 1px solid var(--faint); box-shadow: 0 1px 0 var(--faint); }
.scale { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: .96rem; }
.scale b { color: var(--fg); }
.tok-cols .panel h3 { font-size: 1.25rem; }

/* shell */
.desk { border-radius: 24px; padding: 20px 20px 16px; background: radial-gradient(120% 90% at 20% 0%, rgba(124, 157, 255, .22), transparent 60%), var(--arco-bg-desktop); display: grid; gap: 22px; box-shadow: 0 24px 64px rgba(31, 42, 34, .3); }
.desk-win { background: var(--arco-bg-surface-solid); border: 1px solid var(--arco-border); border-radius: var(--arco-radius-window); box-shadow: 0 24px 64px rgba(0, 0, 0, .55); overflow: hidden; max-width: 420px; justify-self: center; width: 100%; }
.desk-body { padding: 14px; }
.dock { justify-self: center; display: flex; gap: 8px; padding: 8px 10px; border-radius: 18px; background: rgba(18, 18, 20, .78); border: 1px solid var(--arco-border); backdrop-filter: saturate(160%) blur(22px); max-width: 100%; overflow: hidden; }
.dock span { display: grid; justify-items: center; gap: 4px; font: 9.5px/1 var(--arco-font-mono); color: var(--arco-text-secondary); min-width: 0; }
.dock i { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .06); position: relative; display: block; }
.dock i::after { content: ""; position: absolute; inset: 11px; border-radius: 6px; background: var(--c); }
@media (max-width: 420px) { .dock { gap: 4px; padding: 8px 6px; } .dock i { width: 32px; height: 32px; } .dock i::after { inset: 9px; } }
.form-status:empty { display: none; }

/* ---------- Light-surface theme for the cards (no enclosing window) ----------
   Same --arco-* names, light values that sit on the page background. Accent stays #7c9dff for fills;
   --arco-accent-ink is a darker blue used only for text on light. */
.arco {
  color-scheme: light;
  --arco-bg-desktop: var(--code-bg); --arco-bg-surface-solid: var(--card); --arco-bg-sunk: var(--bg); --arco-bg-elevated: var(--card);
  --arco-bg-hover: rgba(31, 42, 34, .06); --arco-bg-active: rgba(31, 42, 34, .1);
  --arco-text-primary: var(--fg); --arco-text-secondary: var(--muted); --arco-text-tertiary: #7b8175; --arco-text-inverted: #121214;
  --arco-accent: #7c9dff; --arco-accent-strong: #5b82ff; --arco-accent-soft: rgba(124, 157, 255, .22); --arco-accent-ink: #2b51c7;
  --arco-success: #2f8a5b; --arco-warning: #9a6a12; --arco-danger: #c24450; --arco-danger-soft: rgba(194, 68, 80, .12);
  --arco-border: var(--faint); --arco-border-strong: rgba(31, 42, 34, .28);
  --arco-radius-l: 20px;
}
.arco *:focus-visible { outline-color: var(--focus); }
.win { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.win-top { background: none; padding: 0 0 10px; border-bottom: 1px solid var(--faint); }
.win-top .dots { display: none; }
.win-title { font: .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.win-state { color: var(--arco-accent-ink); }
.win-body { padding: 14px 0 0; }
.feed-posts { background: none; }
.feedpane { background: none; }
.chat { border-right-color: var(--faint); }
.demo-grid { gap: 0; margin-top: 4px; }
.log { padding: 14px 18px 14px 0; }
.feed-list { padding: 14px 0 14px 18px; }
.pane-h { padding: 10px 0 10px 18px; border-bottom-color: var(--faint); }
.chips { padding: 10px 18px 10px 0; border-top-color: var(--faint); }
.composer { margin: 0 18px 4px 0; background: var(--card); }
@media (max-width: 900px) {
  .chat { border-bottom-color: var(--faint); }
  .log { padding-right: 0; } .chips { padding-right: 0; } .composer { margin-right: 0; }
  .feed-list { padding-left: 0; } .pane-h { padding-left: 0; }
}
.acard { background: var(--card); box-shadow: 0 1px 0 var(--faint), 0 18px 40px -28px var(--shadow); }
.acard .type { color: var(--arco-accent-ink); }
.chip-btn[aria-pressed="true"] { color: var(--arco-accent-ink); border-color: var(--arco-accent-ink); }
.msg.agent .bub { background: var(--pill); }
.msg.user .bub { background: var(--arco-accent-soft); }
.av { background-color: var(--card); }
.skel { background: var(--card); }
.skel i { background: linear-gradient(100deg, var(--pill) 30%, rgba(255,255,255,.85) 50%, var(--pill) 70%) 0 0 / 220% 100%; }
.spec, .term { background: var(--code-bg); }
.term { color: var(--accent); }
.term.code { color: var(--fg); }
.field input[type=text], .field input[type=number], .field select, .field textarea { background: var(--bg); }
.form-status.ok { color: var(--arco-success); }
.play { background: var(--bg); }
.gstage { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.desk { background: var(--card); border: 1px solid var(--faint); box-shadow: 0 1px 0 var(--faint), 0 18px 40px -28px var(--shadow); }
.desk-win { background: var(--bg); box-shadow: none; }
.desk-win .win-top { padding: 10px 14px; }
.dock { background: var(--pill); border-color: var(--faint); backdrop-filter: none; }
.dock i { background: var(--card); }
.dock span { color: var(--muted); }
.cal-days .sel { color: var(--arco-text-inverted); }
@media (max-width: 640px) { .gstage { padding: 0; } }

/* Kamiji orbs (arco-orb.js). The CSS circle with two eye pills shows until the WebGL orb has drawn its first frame. */
.orbi, .brand-orb { position: relative; display: block; border-radius: 50%; --tint: #ffd23f; background: radial-gradient(circle at 34% 28%, #fff9 0, #fff0 42%), var(--tint); }
.orbi { position: absolute; inset: 2px; }
.brand-orb { flex: none; width: 40px; height: 40px; margin: -4px 0; background: radial-gradient(circle at 34% 28%, #fff8 0, #fff0 40%), conic-gradient(from 210deg, #f06282, #f5b942, #6bd68a, #2ec4d8, #6b46c1, #f06282); }
.orbi::before, .orbi::after, .brand-orb::before, .brand-orb::after { content: ""; position: absolute; top: 31%; width: 15%; height: 34%; border-radius: 999px; background: #1d2a20; }
.orbi::before, .brand-orb::before { left: 30%; }
.orbi::after, .brand-orb::after { right: 30%; }
.arco-orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arco-orb.is-live { background: none; }
.arco-orb.is-live::before, .arco-orb.is-live::after { display: none; }
