/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./inter-cyrillic-wght-normal-DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./inter-greek-ext-wght-normal-DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./inter-greek-wght-normal-CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./inter-vietnamese-wght-normal-CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./inter-latin-ext-wght-normal-DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./inter-latin-wght-normal-Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  color-scheme: light;
  --font: "Inter Variable", system-ui, sans-serif;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --row-height: 44px;
  --titlebar-height: 52px;
  --sidebar-width: 216px;
  --sidebar-collapsed: 60px;
  --side-width: clamp(340px, 30vw, 520px);
  --log-height: 180px;
  --transition: 140ms ease;

  --bg-app: #eef1f5;
  --bg-chrome: #e6eaf0;
  --bg-panel: #ffffff;
  --bg-subtle: #f4f6f9;
  --bg-hover: #e9edf2;
  --bg-active: #dde3eb;
  --bg-focus: #d6dde7;
  --bg-input: #f1f4f8;
  --bg-overlay: rgb(10 10 12 / 0.36);
  --text: #0a0a0c;
  --text-muted: #5d6879;
  --text-faint: #8d98a8;
  --accent: #0a0a0c;
  --accent-text: #f7fafc;
  --accent-hover: #2a2f38;
  --accent-soft: #e3e8ef;
  --success: #1f9d61;
  --warning: #d48a0a;
  --danger: #d33a3a;
  --danger-soft: #fbe9e9;
  --progress: #3a6ff0;
  --shadow: 0 12px 40px rgb(15 23 42 / 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-app: #0f1115;
    --bg-chrome: #13161b;
    --bg-panel: #181b21;
    --bg-subtle: #1e2229;
    --bg-hover: #242932;
    --bg-active: #2c323c;
    --bg-focus: #333a45;
    --bg-input: #20242b;
    --bg-overlay: rgb(0 0 0 / 0.55);
    --text: #f2f5fa;
    --text-muted: #a3aebd;
    --text-faint: #6f7a8a;
    --accent: #f2f5fa;
    --accent-text: #0a0a0c;
    --accent-hover: #c2ccdb;
    --accent-soft: #262b34;
    --danger-soft: #3a1f22;
    --shadow: 0 12px 40px rgb(0 0 0 / 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-app: #0f1115;
  --bg-chrome: #13161b;
  --bg-panel: #181b21;
  --bg-subtle: #1e2229;
  --bg-hover: #242932;
  --bg-active: #2c323c;
  --bg-focus: #333a45;
  --bg-input: #20242b;
  --bg-overlay: rgb(0 0 0 / 0.55);
  --text: #f2f5fa;
  --text-muted: #a3aebd;
  --text-faint: #6f7a8a;
  --accent: #f2f5fa;
  --accent-text: #0a0a0c;
  --accent-hover: #c2ccdb;
  --accent-soft: #262b34;
  --danger-soft: #3a1f22;
  --shadow: 0 12px 40px rgb(0 0 0 / 0.5);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg-app);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus,
:focus-visible {
  outline: none;
}

* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color var(--transition);
}

*:hover {
  scrollbar-color: var(--bg-active) transparent;
}

.muted {
  color: var(--text-muted);
}

.strong {
  font-weight: 600;
}

.truncate {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.boot {
  display: grid;
  place-items: center;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must override component animations */
    animation-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must override component transitions */
    transition-duration: 0.01ms !important;
  }
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-m);
  font-weight: 550;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition),
    opacity var(--transition);
}

.button:disabled {
  opacity: 0.45;
}

.button--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button--primary:hover:not(:disabled),
.button--primary:focus-visible {
  background: var(--accent-hover);
}

.button--secondary {
  background: var(--bg-input);
}

.button--secondary:hover:not(:disabled),
.button--secondary:focus-visible {
  background: var(--bg-active);
}

.button--ghost {
  background: transparent;
  color: var(--text-muted);
}

.button--ghost:hover:not(:disabled),
.button--ghost:focus-visible {
  background: var(--bg-hover);
  color: var(--text);
}

.button--danger {
  background: var(--danger);
  color: #fff;
}

.button--danger:hover:not(:disabled),
.button--danger:focus-visible {
  background: color-mix(in srgb, var(--danger) 85%, #000);
}

.icon-button,
.icon-slot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
}

.icon-button {
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-muted);
  transition:
    background var(--transition),
    color var(--transition);
}

.icon-button:hover:not(:disabled),
.icon-button:focus-visible,
.icon-button.is-active {
  background: var(--bg-hover);
  color: var(--text);
}

.icon-button--danger:hover:not(:disabled),
.icon-button--danger:focus-visible {
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-button--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.icon-button--primary:hover:not(:disabled),
.icon-button--primary:focus-visible {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.icon-button:disabled {
  opacity: 0.3;
}

.action-slots {
  display: flex;
  gap: var(--space-1);
  justify-content: flex-end;
}

.spinner {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  opacity: 0.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.field__hint {
  font-size: 12px;
  color: var(--text-faint);
}

.field__error {
  font-size: 12px;
  color: var(--danger);
}

.input {
  width: 100%;
  height: 38px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-m);
  background: var(--bg-input);
  transition: background var(--transition);
}

.input::placeholder {
  color: var(--text-faint);
}

.input:hover {
  background: var(--bg-hover);
}

.input:focus,
.input:focus-visible {
  background: var(--bg-focus);
}

.field--invalid .input {
  background: var(--danger-soft);
}

.input--multiline {
  height: auto;
  padding: var(--space-2) var(--space-3);
  resize: none;
  white-space: pre;
  overflow-x: auto;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.input-row {
  display: flex;
  gap: var(--space-2);
  min-width: 0;
}

.input-row > :first-child {
  flex: 1;
  min-width: 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: var(--space-3);
}

.select {
  position: relative;
}

.select__control {
  appearance: none;
  padding-right: var(--space-6);
}

.select__icon {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  translate: 0 -50%;
  pointer-events: none;
  color: var(--text-muted);
}

.switch-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.switch-field.is-disabled {
  opacity: 0.55;
}

.switch-field__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.switch-field__text small {
  color: var(--text-faint);
  font-size: 12px;
}

.switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-active);
  transition: background var(--transition);
}

.switch:focus-visible {
  background: var(--bg-focus);
}

.switch[aria-checked="true"] {
  background: var(--accent);
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-panel);
  transition: translate var(--transition);
}

.switch[aria-checked="true"] .switch__thumb {
  translate: 16px 0;
}

.segmented {
  margin: 0;
  border: 0;
  min-width: 0;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-m);
  background: var(--bg-input);
}

.segmented__item {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 550;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition);
}

.segmented__item > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.segmented__item:hover,
.segmented__item:has(input:focus-visible) {
  color: var(--text);
  background: var(--bg-hover);
}

.segmented__item.is-selected {
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.modal {
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow);
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
}

.modal--small {
  width: min(420px, calc(100vw - 48px));
}

.modal::backdrop {
  background: var(--bg-overlay);
}

.modal__surface {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4) var(--space-2) var(--space-5);
}

.modal__header h2 {
  font-size: 16px;
  font-weight: 650;
}

.modal__body {
  padding: var(--space-3) var(--space-5) var(--space-5);
  overflow: auto;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5) var(--space-5);
}

.toasts {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(380px, calc(100vw - 48px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease;
  word-break: break-word;
}

.toast > span {
  flex: 1;
}

.toast--success svg:first-child {
  color: var(--success);
}

.toast--error svg:first-child {
  color: var(--danger);
}

.toast--info svg:first-child {
  color: var(--progress);
}

.toast__close {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-muted);
}

.toast__close:hover,
.toast__close:focus-visible {
  background: var(--bg-hover);
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--text-faint);
}

.status-dot--progress {
  background: var(--progress);
  animation: pulse 1.4s ease-in-out infinite;
}

.status-dot--success {
  background: var(--success);
}

.status-dot--warning {
  background: var(--warning);
}

.status-dot--danger {
  background: var(--danger);
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.origin-icon {
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6);
  text-align: center;
  margin: auto;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.empty-state__title {
  font-weight: 600;
}

.empty-state__hint {
  max-width: 360px;
  color: var(--text-muted);
}

.progress {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--progress);
  transition: width 300ms ease;
}

.progress--indeterminate .progress__bar {
  width: 30%;
  animation: indeterminate 1.2s ease-in-out infinite;
}

@keyframes indeterminate {
  from {
    left: -30%;
  }
  to {
    left: 100%;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--bg-subtle);
  min-width: 0;
}

.stat__value {
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat--accent {
  background: var(--accent);
  color: var(--accent-text);
}

.stat--accent .stat__label {
  color: inherit;
  opacity: 0.75;
}

.stat--muted .stat__value {
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  gap: var(--space-1);
  overflow: hidden;
}

.chip {
  flex: none;
  padding: 2px var(--space-2);
  border-radius: var(--radius-s);
  background: var(--bg-subtle);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.table {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.table__grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-collapse: collapse;
}

.table__grid thead {
  display: block;
}

.table__head,
.table__row {
  display: grid;
  grid-template-columns: var(--table-columns);
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-3);
}

.table__head {
  height: 36px;
  border-radius: var(--radius-s);
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.table__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.table__row {
  flex: none;
  height: var(--row-height);
  border-radius: var(--radius-s);
  transition: background var(--transition);
}

.table__row:hover {
  background: var(--bg-subtle);
}

.table__row--interactive {
  cursor: default;
}

.table__cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.table__cell--end {
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}

.table__cell--center {
  justify-content: center;
}

.table__state {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.table__state > td {
  display: flex;
  justify-content: center;
}

th.table__cell {
  font-weight: inherit;
}

td.table__cell,
th.table__cell {
  padding: 0;
}

.table__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-1) 0 var(--space-3);
  font-size: 12px;
  color: var(--text-muted);
}

.table__pager {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tag-editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tag-editor__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
}

.tag-editor__equals {
  color: var(--text-faint);
  font-family: ui-monospace, monospace;
}

.secret-row {
  align-items: center;
}

.secret-row > :first-child {
  flex: 0 0 auto;
}

.secret-row > :nth-child(2) {
  flex: 1;
  min-width: 0;
}
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--titlebar-height) minmax(0, 1fr);
  grid-template-areas:
    "titlebar titlebar"
    "sidebar content";
  height: 100%;
  background: var(--bg-chrome);
  transition: grid-template-columns 180ms ease;
}

.shell--log {
  grid-template-rows: var(--titlebar-height) minmax(0, 1fr) var(--log-height);
  grid-template-areas:
    "titlebar titlebar"
    "sidebar content"
    "sidebar log";
}

.shell--collapsed {
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
}

.titlebar {
  grid-area: titlebar;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-3) 0 14px;
  background: transparent;
}

.titlebar__logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.titlebar__name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.titlebar__page {
  color: var(--text-faint);
  font-size: 13px;
}

.titlebar__page::before {
  content: "/";
  margin-right: var(--space-3);
}

.titlebar__actions {
  margin-left: auto;
  display: flex;
  gap: var(--space-1);
}

.sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-2) var(--space-3);
  background: transparent;
  overflow: hidden;
}

.sidebar__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
  padding: 0 var(--space-3) 0 13px;
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--text-muted);
  font-weight: 550;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition);
}

.sidebar__item:hover,
.sidebar__item:focus-visible {
  background: var(--bg-hover);
  color: var(--text);
}

.sidebar__item.is-active {
  background: var(--bg-panel);
  color: var(--text);
}

.sidebar__badge {
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--progress);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 20px;
  text-align: center;
}

.shell--collapsed .sidebar__label {
  display: none;
}

.shell--collapsed .sidebar__badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  line-height: 16px;
  font-size: 10px;
  padding: 0 4px;
}

.content {
  grid-area: content;
  min-height: 0;
  min-width: 0;
  padding: 0 var(--space-3) var(--space-3) 0;
}

.logpanel {
  grid-area: log;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0 var(--space-3) var(--space-3) 0;
  border-radius: var(--radius-l);
  background: var(--bg-panel);
}

.logpanel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) var(--space-2) 0 var(--space-4);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.logpanel__body {
  flex: 1;
  overflow: auto;
  padding: var(--space-1) var(--space-4) var(--space-3);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.log-line {
  display: flex;
  gap: var(--space-3);
  padding: 1px 0;
}

.log-line time {
  flex: none;
  color: var(--text-faint);
}

.log-line--warn span {
  color: var(--warning);
}

.log-line--error span {
  color: var(--danger);
}

.page {
  display: flex;
  height: 100%;
  min-height: 0;
  gap: var(--space-3);
}

.page--split {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
  min-width: 0;
  padding: var(--space-5);
  border-radius: var(--radius-l);
  background: var(--bg-panel);
}

.panel--fill,
.run-panel {
  flex: 1;
}

.panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.panel__header > .segmented {
  flex-shrink: 0;
}

.panel__header > .segmented .segmented__item {
  flex: 1 0 auto;
}

.panel__title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.search-form {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.run-overview {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.run-overview__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.run-overview__title h3 {
  font-size: 15px;
  font-weight: 650;
}

.run-overview__title p,
.run-overview__caption {
  font-size: 12px;
}

.run-overview__error {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-m);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

.run-overview__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
}

.run-overview {
  container-type: inline-size;
}

@container (max-width: 720px) {
  .run-overview__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (max-width: 380px) {
  .run-overview__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.settings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
  min-height: 0;
  overflow: auto;
}

.mcp-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-m);
  background: var(--bg-subtle);
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list__item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-s);
  background: var(--bg-subtle);
  font-size: 13px;
}

.settings__group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.settings__group h3 {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 1000px) {
  .page--split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(560px, 1fr);
    height: auto;
    min-height: 100%;
  }

  .content {
    overflow-y: auto;
  }

  .search-form {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  :root {
    --titlebar-height: 48px;
    --log-height: 160px;
  }

  .shell--phone,
  .shell--phone.shell--log {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--titlebar-height) minmax(0, 1fr) auto 60px;
    grid-template-areas:
      "titlebar"
      "content"
      "log"
      "sidebar";
  }

  .shell--phone .sidebar {
    flex-direction: row;
    justify-content: space-around;
    padding: var(--space-1) var(--space-2);
  }

  .shell--phone .sidebar__item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    height: 52px;
    padding: 0;
    font-size: 11px;
  }

  .shell--phone .sidebar__label {
    display: block;
  }

  .shell--phone .sidebar__badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    min-width: 16px;
    line-height: 16px;
    font-size: 10px;
    padding: 0 4px;
  }

  .titlebar__page {
    display: none;
  }

  .content {
    padding: 0 var(--space-2) var(--space-2);
  }

  .logpanel {
    height: var(--log-height);
    margin: 0 var(--space-2) var(--space-2);
  }

  .panel {
    padding: var(--space-4);
    border-radius: var(--radius-m);
  }

  .panel__header {
    flex-wrap: wrap;
  }

  .toasts {
    right: var(--space-2);
    left: var(--space-2);
    bottom: 72px;
    width: auto;
  }
}

.auth {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-4);
  overflow: auto;
}

.auth__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: min(400px, 100%);
  padding: var(--space-6);
  border-radius: var(--radius-l);
  background: var(--bg-panel);
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.auth__logo {
  width: 28px;
  height: 28px;
}

.auth__title {
  margin: 0;
  font-size: 20px;
}

.auth__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  font-size: 12px;
}

.shell--side {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--side-width);
  grid-template-areas:
    "titlebar titlebar titlebar"
    "sidebar content side";
}

.shell--side.shell--collapsed {
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr) var(--side-width);
}

.shell--side.shell--log {
  grid-template-areas:
    "titlebar titlebar titlebar"
    "sidebar content side"
    "sidebar log side";
}

.sidepanel {
  grid-area: side;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  margin: 0 var(--space-3) var(--space-3) 0;
  border-radius: var(--radius-l);
  background: var(--bg-panel);
  overflow: hidden;
}

.sidepanel__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) 0;
}

.sidepanel__header .segmented {
  flex: 1;
  max-width: 320px;
}

.sidepanel__header .icon-button {
  margin-left: auto;
}

.sidepanel__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.browser {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.browser__bar .input {
  flex: 1;
  min-width: 0;
}

.browser__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-m);
  background: var(--bg-input);
  overflow: hidden;
}

.browser__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.browser__native,
.browser__remote {
  position: absolute;
  inset: 0;
}

.browser__frame {
  width: 100%;
  height: 100%;
  cursor: default;
  user-select: none;
}

.browser__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top left;
  pointer-events: none;
}

.browser__frame:focus {
  outline: none;
}

@media (max-width: 1000px) {
  .shell--side,
  .shell--side.shell--collapsed,
  .shell--side.shell--log {
    grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
    grid-template-areas:
      "titlebar titlebar"
      "sidebar side";
  }

  .shell--side .content,
  .shell--side .logpanel {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell--phone.shell--side {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--titlebar-height) minmax(0, 1fr) 60px;
    grid-template-areas:
      "titlebar"
      "side"
      "sidebar";
  }

  .sidepanel {
    margin: 0 var(--space-2) var(--space-2);
  }
}

.agent {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.agent__log {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-3);
}

.agent__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--text-muted);
}

.agent__intro p {
  margin: 0 0 var(--space-2);
  line-height: 1.5;
}

.agent__label {
  font-size: 12px;
  font-weight: 600;
}

.agent-playbook {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-m);
  background: var(--bg-subtle);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background var(--transition);
}

.agent-playbook:hover,
.agent-playbook:focus-visible {
  background: var(--bg-hover);
}

.agent-playbook span {
  font-size: 12px;
  color: var(--text-muted);
}

.agent-message {
  max-width: 92%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-m);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.agent-message--user,
.agent-message--error {
  white-space: pre-wrap;
}

.agent-message--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-text);
}

.agent-message--assistant {
  align-self: flex-start;
  background: var(--bg-subtle);
}

.agent-message--error {
  align-self: stretch;
  background: var(--danger-soft);
  color: var(--danger);
}

.agent-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-1);
  font-size: 12px;
  color: var(--text-muted);
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-m);
  background: var(--bg-subtle);
}

.agent-card.is-active {
  background: var(--accent-soft);
}

.agent-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.agent-card__answer {
  margin: 0;
  line-height: 1.5;
}

.agent-card__answer {
  font-size: 12px;
  color: var(--text-muted);
}

.agent-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.agent__composer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 var(--space-3) var(--space-3);
}

.agent__composer .input--multiline {
  resize: none;
  font-family: inherit;
  min-height: 0;
}

.agent__tools {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-1);
}

.markdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  line-height: 1.55;
}

.markdown > * {
  margin: 0;
}

.markdown ul,
.markdown ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 1.2em;
}

.markdown h3,
.markdown h4 {
  font-size: 13px;
  font-weight: 650;
}

.markdown strong {
  font-weight: 650;
}

.markdown code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-input);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.markdown pre {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-s);
  background: var(--bg-input);
  overflow-x: auto;
}

.markdown pre code {
  padding: 0;
  background: none;
}

.markdown blockquote {
  padding-left: var(--space-3);
  color: var(--text-muted);
  box-shadow: inset 2px 0 0 var(--bg-active);
}

.markdown a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.auth__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: 12px;
}

.auth__legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.auth__legal a:hover,
.auth__legal a:focus-visible {
  color: var(--text);
}

.panel__header > .button-row {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.panel__header > .button-row > .input {
  flex: 0 1 240px;
  min-width: 120px;
}

.two-factor__qr {
  width: 200px;
  height: 200px;
  padding: var(--space-2);
  border-radius: var(--radius-m);
  background: #fff;
  align-self: center;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}
