@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Departure Mono";
  src: url("./fonts/DepartureMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/DepartureMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111111;
  --rail: #121313;
  --frame: #1a1a1a;
  --panel: #202020;
  --panel-deep: #151515;
  --panel-soft: #252525;
  --screen: #292929;
  --line: #363737;
  --line-soft: #292a2a;
  --text: #e8e8e3;
  --strong: #f1f1ec;
  --muted: #92948f;
  --dim: #70716e;
  --accent: #8b5cf6;
  --accent-strong: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Departure Mono", "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body.auth-required .shell {
  filter: blur(7px) brightness(0.58);
  pointer-events: none;
  user-select: none;
}

body.auth-required .auth-modal .modal-close {
  display: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
.rail-brand strong,
.brand-computer,
.rail-action,
.profile-chip,
.profile-menu-head strong,
.profile-menu button,
.model-mini,
.micro,
.workspace-bar h1,
.dock-head h2,
.icon-button,
.file-icon,
.file-row strong,
.file-row em,
.settings-table,
.table-head,
.setting-row,
.source-card strong,
.computer-title h2,
.computer-title p,
.screen-title,
.trace-node,
.timeline-card,
.status-pill,
.run-toggle,
.toggle-copy,
.support-submit {
  font-family: var(--font-display);
}

.source-card p,
.file-row small,
.profile-menu-head span,
.support-input {
  font-family: var(--font-body);
}

.shell {
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: var(--bg);
  transition: grid-template-columns 180ms ease;
}

.rail-collapsed .shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

.rail {
  height: 100vh;
  min-height: 0;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid #272828;
  background: var(--rail);
}

.rail-brand {
  height: 42px;
  margin: 8px 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rail-brand strong {
  overflow: hidden;
  color: #f2f2ed;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.collapse-button {
  width: 30px;
  height: 30px;
  position: relative;
  flex: 0 0 30px;
  border: 1px solid #343636;
  border-radius: 7px;
  background: #050606;
  cursor: pointer;
}

.collapse-button span,
.collapse-button::before,
.collapse-button::after {
  content: "";
  position: absolute;
  background: #e6e6e0;
}

.collapse-button span {
  left: 9px;
  top: 8px;
  width: 2px;
  height: 12px;
}

.collapse-button::before {
  left: 14px;
  top: 8px;
  width: 2px;
  height: 12px;
}

.collapse-button::after {
  right: 7px;
  top: 13px;
  width: 6px;
  height: 2px;
  opacity: 0.7;
}

.collapse-button.brand-computer {
  display: block;
  color: var(--accent-strong);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(139, 92, 246, 0.06);
}

.collapse-button.brand-computer .brand-screen,
.collapse-button.brand-computer::before,
.collapse-button.brand-computer::after,
.brand-eye,
.brand-mouth {
  position: absolute;
  display: block;
  background: transparent;
}

.collapse-button.brand-computer .brand-screen {
  left: 6px;
  top: 6px;
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.collapse-button.brand-computer::before {
  left: 10px;
  top: auto;
  bottom: 4px;
  width: 10px;
  height: 4px;
  border: 2px solid currentColor;
  border-top: 0;
}

.collapse-button.brand-computer::after {
  display: none;
}

.brand-eye,
.brand-mouth {
  z-index: 1;
  background: currentColor;
}

.brand-eye {
  top: 11px;
  width: 2px;
  height: 2px;
}

.brand-eye.left {
  left: 11px;
}

.brand-eye.right {
  left: 17px;
}

.brand-mouth {
  left: 13px;
  top: 15px;
  width: 5px;
  height: 2px;
}

.rail-collapsed .rail-brand {
  justify-content: center;
  margin-inline: 0;
}

.rail-collapsed .rail-brand strong {
  display: none;
}

.rail-collapsed .collapse-button:not(.brand-computer)::after {
  transform: rotate(180deg);
}

.feature-list {
  display: grid;
  gap: 8px;
}

.rail-action,
.profile-chip {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d9d9d3;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.rail-action {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  text-align: left;
}

.rail-action:hover,
.rail-action.active,
.profile-chip:hover {
  background: #222323;
}

.rail-action:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.rail-action:disabled:hover {
  background: transparent;
}

.rail-action em {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.rail-action:not(.active) em {
  color: #747672;
}

.rail-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 18px;
  color: #efefea;
}

.rail-icon::before,
.rail-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.nav-job::before {
  inset: 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-job::after {
  left: 4px;
  top: 8px;
  width: 10px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -4px 0 -1px currentColor, 4px 4px 0 -1px currentColor;
}

.nav-gmail::before {
  left: 4px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.nav-gmail::after {
  left: 4px;
  top: 9px;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.nav-support::before {
  left: 4px;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-support::after {
  left: 8px;
  top: 13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.rail-collapsed .rail-action {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.rail-collapsed .rail-action > span:not(.rail-icon),
.rail-collapsed .rail-action em,
.rail-collapsed .profile-chip > span:not(.avatar),
.rail-collapsed .profile-caret {
  display: none;
}

.rail-spacer {
  flex: 1 1 auto;
}

.profile-wrap {
  position: relative;
}

.profile-chip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  text-align: left;
}

.rail-collapsed .profile-chip {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.avatar {
  width: 28px;
  height: 28px;
  position: relative;
  display: block;
  border: 1px solid #3c3d3d;
  border-radius: 7px;
  background: #0a0a0a;
  color: var(--accent-strong);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(139, 92, 246, 0.06);
}

.avatar-letter {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.avatar-pc::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.avatar-pc::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 4px;
  width: 10px;
  height: 4px;
  border: 2px solid currentColor;
  border-top: 0;
}

.avatar-eye,
.avatar-mouth {
  position: absolute;
  z-index: 1;
  display: block;
  background: currentColor;
}

.avatar-eye {
  top: 10px;
  width: 2px;
  height: 2px;
}

.avatar-eye.left {
  left: 10px;
}

.avatar-eye.right {
  left: 16px;
}

.avatar-mouth {
  left: 12px;
  top: 14px;
  width: 5px;
  height: 2px;
}

.profile-caret {
  width: 8px;
  height: 8px;
  border-right: 1px solid #8f918d;
  border-bottom: 1px solid #8f918d;
  transform: rotate(45deg);
}

.profile-menu {
  position: absolute;
  left: 0;
  bottom: 50px;
  z-index: 20;
  width: 232px;
  display: none;
  border: 1px solid #343535;
  border-radius: 12px;
  background: #181818;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
  padding: 8px;
}

.profile-menu.open {
  display: block;
}

.rail-collapsed .profile-menu {
  left: 56px;
  bottom: 0;
}

.profile-menu-head {
  padding: 9px 10px 10px;
  border-bottom: 1px solid #2a2b2b;
  display: grid;
  gap: 3px;
}

.profile-menu-head strong {
  color: var(--strong);
  font-size: 13px;
}

.profile-menu-head span {
  color: var(--muted);
  font-size: 11px;
}

.profile-menu button {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #d7d7d1;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.profile-menu button:hover {
  background: #222323;
}

.profile-menu button[hidden] {
  display: none;
}

.menu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777a75;
}

.menu-dot.is-live {
  background: var(--accent);
}

.menu-dot.is-waiting {
  background: #a6a078;
}

.model-mini {
  margin: 7px 2px 0;
  padding: 8px;
  border: 1px solid #2f3030;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  color: #9c9e99;
  font-family: var(--font-display);
  font-size: 10px;
}

.model-mini em {
  color: var(--accent);
  font-style: normal;
}

.model-mini em:nth-of-type(4) {
  color: #a6a078;
}

.toast {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(139, 92, 246, 0.36);
  border-radius: 10px;
  padding: 10px 12px;
  color: #ecece6;
  background: #181818;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  font-family: var(--font-display);
  font-size: 11px;
}

.toast[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
}

.modal-shell[hidden] {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  border: 1px solid #343535;
  border-radius: 14px;
  padding: 14px;
  background: #181818;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.56);
}

.modal-card.wide {
  width: min(760px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2b2c2c;
}

.modal-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
}

.modal-close {
  width: 31px;
  height: 31px;
  border: 1px solid #343535;
  border-radius: 50%;
  background: #222323;
  color: #d6d6d0;
  cursor: pointer;
}

.auth-tabs {
  margin: 12px 0;
  padding: 4px;
  border: 1px solid #303131;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #121313;
}

.auth-tabs button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8f918d;
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--accent);
  background: #242126;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span,
.panel-label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input {
  height: 38px;
  border: 1px solid #343535;
  border-radius: 9px;
  outline: 0;
  padding: 0 10px;
  color: #ecece6;
  background: #111111;
}

.auth-form input:focus {
  border-color: rgba(139, 92, 246, 0.66);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.primary-action,
.secondary-action {
  height: 38px;
  border: 1px solid rgba(139, 92, 246, 0.54);
  border-radius: 9px;
  background: #242126;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-action {
  height: 30px;
  padding: 0 10px;
  border-color: #343535;
  color: #c9cac4;
  background: #202121;
}

.send-code-button {
  width: 100%;
  height: 36px;
}

.form-note,
.empty-copy,
.account-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-panel,
.history-panel {
  border: 1px solid #303131;
  border-radius: 10px;
  padding: 12px;
  background: #151515;
}

.account-panel strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--strong);
  font-family: var(--font-display);
  font-size: 13px;
}

.history-panel {
  margin-top: 10px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.history-list {
  max-height: 300px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.history-item {
  border: 1px solid #2e2f2f;
  border-radius: 8px;
  padding: 9px;
  background: #111111;
}

.history-item strong {
  display: block;
  overflow: hidden;
  color: #ecece6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 38px 14px 10px 16px;
  display: flex;
}

.workspace-window {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid #282929;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--frame);
  box-shadow: var(--shadow);
  padding: 14px;
}

.workspace-bar {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.micro {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--strong);
  line-height: 1.18;
  font-weight: 650;
}

h1 {
  font-size: 16px;
}

h2 {
  font-size: 15px;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  height: 24px;
  padding: 0 9px;
  border: 1px solid #333434;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  color: #939590;
  background: #171717;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}

.status-pill.live {
  color: var(--accent);
}

.status-pill.live::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.workspace-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 14px;
}

.context-dock,
.computer-surface {
  min-width: 0;
  min-height: 0;
  border: 1px solid #2c2d2d;
  border-radius: 12px;
  background: #181818;
}

.context-dock {
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.computer-surface {
  padding: 12px;
}

.dock-head,
.computer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  width: 31px;
  height: 31px;
  border: 1px solid #343535;
  border-radius: 50%;
  background: #2b2c2c;
  color: #d6d6d0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: #333434;
  border-color: #444545;
}

.support-new-chat {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.support-mode .support-new-chat {
  color: var(--accent);
  border-color: rgba(139, 92, 246, 0.48);
  background: #242126;
}

.source-card {
  flex: 0 0 auto;
  min-height: 70px;
  margin: 14px 0 11px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #383939;
  border-radius: 10px;
  background: var(--panel-deep);
}

.file-glyph {
  width: 40px;
  height: 40px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid #4a4b4b;
  border-radius: 8px;
  color: #ecece6;
}

.file-glyph span {
  width: 17px;
  height: 2px;
  background: currentColor;
}

.source-card strong,
.file-row strong,
.stage-caption strong {
  display: block;
  color: var(--strong);
  font-size: 13px;
  font-weight: 650;
}

.source-card p,
.file-row small,
.stage-caption span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.file-list {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
}

.file-row {
  min-height: 45px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.file-row:hover,
.file-row.selected {
  border-color: #393a3a;
  background: #262727;
}

.file-icon {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #454747;
  border-radius: 7px;
  color: #f0f0ea;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}

.file-row em {
  color: #8f918d;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.dock-fill {
  flex: 1 1 auto;
  min-height: 10px;
}

.settings-table {
  flex: 0 0 auto;
  border: 1px solid #333434;
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel-deep);
}

.table-head,
.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 16px;
  align-items: center;
  gap: 8px;
}

.table-head {
  min-height: 31px;
  padding: 0 10px;
  border-bottom: 1px solid #292a2a;
  color: #a7a9a3;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.table-head em {
  color: var(--accent);
  font-style: normal;
  text-align: right;
}

.setting-row {
  position: relative;
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid #292a2a;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.setting-row strong {
  overflow: hidden;
  color: #c9cac4;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-row .accent-text,
.accent-text {
  color: var(--accent);
}

.setting-row::after {
  content: "";
  justify-self: end;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777a75;
}

.setting-row:has(.accent-text)::after,
.setting-row:has(input:checked)::after {
  background: var(--accent);
}

.setting-row input {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.setting-row input[type="number"] {
  width: 48px;
  height: 22px;
  position: static;
  justify-self: end;
  border: 1px solid #343535;
  border-radius: 6px;
  outline: 0;
  padding: 0 5px;
  pointer-events: auto;
  opacity: 1;
  color: var(--strong);
  background: #111111;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.setting-row:has(input[type="number"]) strong {
  display: none;
}

.setting-row input[type="number"]:focus {
  border-color: rgba(139, 92, 246, 0.66);
}

.setting-row i {
  display: none;
}

.computer-panel {
  height: 100%;
  min-height: 0;
  padding: 16px;
  border: 1px solid #303131;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
}

.computer-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.computer-title h2 {
  color: var(--strong);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.computer-title p {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfcfca;
  font-size: 13px;
  font-weight: 650;
}

.computer-title i {
  padding-left: 10px;
  border-left: 1px solid #414242;
  color: #858782;
  font-style: normal;
  font-weight: 600;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.pixel-computer {
  width: 36px;
  height: 36px;
  position: relative;
  flex: 0 0 36px;
  border: 2px solid #e8e8e2;
  color: #e8e8e2;
}

.pixel-computer::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid currentColor;
}

.pixel-computer::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -8px;
  height: 6px;
  border: 2px solid currentColor;
  border-top: 0;
}

.pixel-computer span {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 10px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.progress-line {
  flex: 0 0 auto;
  height: 1px;
  margin: 17px 0 0;
  background: #3a3b3b;
}

.progress-line span {
  display: block;
  height: 1px;
  background: #d7d7d1;
}

.run-log {
  flex: 0 0 auto;
  margin: 12px 0 0;
  border: 1px solid #303131;
  border-radius: 10px;
  overflow: hidden;
  background: #181818;
}

.log-row {
  min-height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid #292a2a;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row p {
  min-width: 0;
  overflow: hidden;
  color: #bfc0bb;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-row time {
  color: #7c7e79;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.log-icon {
  width: 16px;
  height: 16px;
  position: relative;
  color: #9c9e99;
}

.log-icon::before,
.log-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.log-file::before {
  inset: 1px 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.log-file::after {
  left: 6px;
  top: 6px;
  width: 5px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 3px 0 currentColor;
}

.log-think::before {
  left: 3px;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.log-think::after {
  left: 7px;
  top: 7px;
  width: 2px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor, -4px 0 0 currentColor;
}

.log-wait::before {
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.log-wait::after {
  left: 7px;
  top: 7px;
  width: 6px;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: left center;
}

.log-row.done .log-icon,
.log-row.active .log-icon {
  color: #c9cac4;
}

.computer-stage {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.stage-caption {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #353636;
}

.screen {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #333434;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--screen);
}

.screen-title {
  position: relative;
  z-index: 2;
  height: 37px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #3b3c3c;
  color: #8d8f8b;
  font-size: 12px;
  font-weight: 700;
}

.trace-layer {
  position: absolute;
  left: 50%;
  top: 84px;
  z-index: 1;
  width: min(520px, calc(100% - 90px));
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  opacity: 0.48;
}

.trace-node {
  height: 24px;
  padding: 0 10px;
  border: 1px solid #424343;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  color: #9b9d98;
  background: rgba(20, 20, 20, 0.48);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.trace-node.active {
  color: #cfcfca;
  border-color: #525353;
}

.trace-line {
  height: 1px;
  min-width: 24px;
  background: #4a4b4b;
}

.ghost-terminal {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: rgba(177, 178, 173, 0.34);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
}

.empty-state {
  position: absolute;
  inset: 37px 0 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #8f918d;
  font-size: 12px;
  font-weight: 600;
}

.doc-icon {
  width: 44px;
  height: 48px;
  border: 2px solid #666866;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 11px 10px;
}

.doc-icon span {
  width: 18px;
  height: 2px;
  background: #72736f;
}

.run-control,
.support-console {
  flex: 0 0 58px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #383939;
  border-radius: 13px;
  background: #1b1b1b;
}

.run-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  align-items: center;
  gap: 8px;
}

.run-control[hidden] {
  display: none;
}

.run-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.run-led {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #777a75;
}

.run-control.is-running .run-led {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.run-copy strong {
  display: block;
  color: var(--strong);
  font-size: 13px;
  font-weight: 700;
}

.run-copy p {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-toggle {
  height: 38px;
  border: 1px solid #343535;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #222323;
  cursor: pointer;
}

.run-toggle span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #777a75;
}

.run-toggle strong {
  color: #d7d7d1;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.run-toggle[aria-pressed="true"] span {
  background: var(--accent);
}

.run-toggle[aria-pressed="true"] strong {
  color: var(--accent);
}

.support-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.support-console[hidden] {
  display: none;
}

.support-input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #cfcfca;
  font-size: 13px;
  font-weight: 600;
}

.support-input::placeholder {
  color: #737570;
}

.support-input::selection {
  background: rgba(139, 92, 246, 0.28);
}

.support-submit {
  width: 36px;
  height: 36px;
  border: 1px solid #343535;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #222323;
  cursor: pointer;
}

.support-submit span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #deded8;
}

.run-toggle:hover,
.support-submit:hover {
  background: #2b2c2c;
  border-color: #454646;
}

.support-mode .progress-line,
.support-mode .run-log,
.support-mode .stage-caption,
.support-mode .screen-title,
.support-mode .trace-layer,
.support-mode .ghost-terminal,
.support-mode .empty-state {
  display: none;
}

.support-mode .screen {
  border-top: 1px solid #333434;
  border-radius: 10px;
}

.support-mode .computer-stage {
  padding-top: 12px;
}

.support-mode .context-dock {
  display: none;
}

.support-mode .workspace-body {
  grid-template-columns: minmax(0, 1fr);
}

.support-mode .computer-surface {
  min-width: 0;
}

.support-view {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 22px;
}

.support-view[hidden],
.support-thinking[hidden],
.support-preview[hidden] {
  display: none;
}

.support-view.is-active {
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: stretch;
}

.support-answer {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 14px;
  color: #dfdfda;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.56;
  white-space: pre-wrap;
}

.support-answer strong {
  color: var(--accent);
  font-weight: 700;
}

.support-answer code {
  padding: 1px 5px;
  border: 1px solid #383939;
  border-radius: 5px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 12px;
  background: #181818;
}

.support-bullet {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px;
}

.support-bullet > span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
}

.support-bullet > em {
  color: inherit;
  font-style: normal;
}

.support-view.has-answer .support-answer {
  display: block;
}

.support-thinking {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #9c9e99;
  pointer-events: none;
}

.support-thinking p {
  color: #9c9e99;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.support-bot-icon {
  width: 48px;
  height: 48px;
  position: relative;
  color: var(--accent-strong);
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.24));
}

.support-bot-screen {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 30px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.support-bot-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 6px;
  width: 16px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
}

.support-bot-eye,
.support-bot-mouth {
  position: absolute;
  z-index: 1;
  display: block;
  background: currentColor;
}

.support-bot-eye {
  top: 17px;
  width: 3px;
  height: 3px;
}

.support-bot-eye.left {
  left: 18px;
}

.support-bot-eye.right {
  left: 28px;
}

.support-bot-mouth {
  left: 21px;
  top: 23px;
  width: 9px;
  height: 2px;
}

.support-console {
  width: min(560px, 100%);
  min-height: 58px;
  margin: 0;
  padding: 8px;
  border: 1px solid #3a3b3b;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  background: #171717;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.support-view.is-active .support-console {
  align-self: end;
  justify-self: center;
}

.support-console.has-images {
  grid-template-rows: auto 40px;
}

.support-preview {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 4px 4px;
}

.support-preview img {
  width: 46px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #3a3b3b;
  border-radius: 8px;
  object-fit: cover;
}

.support-attach,
.support-submit {
  width: 38px;
  height: 38px;
  border: 1px solid #343535;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #202121;
  cursor: pointer;
}

.support-attach:hover,
.support-submit:hover {
  background: #2b2c2c;
  border-color: #4a4b4b;
}

.support-attach svg {
  width: 18px;
  height: 18px;
  display: block;
}

.support-attach path {
  fill: none;
  stroke: #d8d8d2;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e0e0db;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.support-input::placeholder {
  color: #737570;
}

.support-input::selection {
  background: rgba(139, 92, 246, 0.28);
}

.support-submit span {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
}

.support-console.is-loading .support-submit span {
  border-radius: 50%;
  animation: supportPulse 820ms ease-in-out infinite;
}

@keyframes supportPulse {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.55;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  html,
  body {
    overflow: hidden;
  }

  .shell,
  .rail-collapsed .shell {
    min-height: 0;
    height: 100vh;
    grid-template-columns: 72px 1fr;
  }

  .rail {
    position: relative;
    top: auto;
  }

  .rail-brand {
    justify-content: center;
    margin-inline: 0;
  }

  .rail-brand strong,
  .rail-action > span:not(.rail-icon),
  .rail-action em,
  .profile-chip > span:not(.avatar),
  .profile-caret {
    display: none;
  }

  .rail-action,
  .profile-chip {
    justify-items: center;
    padding: 0;
  }

  .workspace {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .workspace-window {
    height: 100%;
    min-height: 0;
  }

  .workspace-body {
    min-height: 0;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .context-dock,
  .computer-surface,
  .computer-panel {
    height: auto;
    min-height: 0;
  }

  .screen {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .shell,
  .rail-collapsed .shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .rail {
    position: static;
    height: 64px;
    min-height: 0;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 8px;
    border-right: 0;
    border-bottom: 1px solid #262727;
  }

  .rail-brand {
    flex: 0 0 auto;
    margin: 0;
  }

  .feature-list {
    display: flex;
    gap: 8px;
    min-width: 0;
  }

  .rail-spacer,
  .profile-wrap {
    display: none;
  }

  .workspace {
    height: calc(100vh - 64px);
    min-height: 0;
    overflow: hidden;
    padding: 16px 12px;
  }

  .workspace-window {
    height: 100%;
    min-height: 0;
    padding: 12px;
  }

  .workspace-bar,
  .stage-caption,
  .computer-title p {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-bar {
    height: auto;
    gap: 10px;
  }

  .status-strip {
    flex-wrap: wrap;
  }

  .context-dock,
  .computer-surface {
    width: 100%;
  }

  .stage-caption {
    height: auto;
    padding: 12px 0;
    gap: 6px;
    align-items: start;
  }

  .computer-head {
    align-items: flex-start;
  }

  .computer-head .icon-button {
    display: none;
  }

  .support-mode .computer-head .support-new-chat {
    display: grid;
  }

  .computer-title {
    align-items: flex-start;
  }

  .computer-title p {
    gap: 6px;
  }

  .computer-title i {
    padding-left: 0;
    border-left: 0;
  }

  .table-head,
  .setting-row {
    grid-template-columns: minmax(0, 1fr) minmax(48px, auto) 10px;
    gap: 6px;
    padding-inline: 8px;
  }

  .setting-row span,
  .setting-row strong {
    min-width: 0;
  }

  .setting-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .setting-row strong {
    font-size: 9px;
  }

  .log-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .log-row time {
    display: none;
  }

  .screen {
    min-height: 260px;
  }

  .trace-layer,
  .ghost-terminal {
    display: none;
  }

  .run-control {
    grid-template-columns: 1fr;
    height: auto;
  }

  .support-console {
    grid-template-columns: minmax(0, 1fr) 36px;
  }
}
