:root {
  --accent-hue: 191;
  --accent: hsl(var(--accent-hue) 50% 36%);
  --accent-aaa-bg: hsl(var(--accent-hue) 58% 24%);
  --accent-strong: hsl(var(--accent-hue) 56% 28%);
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #f0f0f0;
  --border: color-mix(in srgb, rgb(0 0 0 / 13%) 62%, rgb(255 255 255 / 54%));
  --border-accent: color-mix(in srgb, var(--accent) 38%, var(--border));
  --border-danger: color-mix(in srgb, #ef4444 44%, var(--border));
  --border-hover: color-mix(in srgb, rgb(0 0 0 / 24%) 64%, rgb(255 255 255 / 48%));
  --border-warning: color-mix(in srgb, #d97706 38%, var(--border));
  --code-bg: hsl(var(--accent-hue) 55% 91%);
  --desktop-titlebar-height: 0px;
  --font-family-app: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-app: 14px;
  --glass-panel-shadow: inset 0 1px 0 rgb(255 255 255 / 58%), inset 0 -1px 0 rgb(0 0 0 / 3%), var(--shadow-soft);
  --notification-error-bg: rgb(207 34 46 / 10%);
  --notification-error-fg: #cf222e;
  --notification-info-bg: rgb(9 105 218 / 10%);
  --notification-info-fg: #0969da;
  --notification-success-bg: rgb(26 127 55 / 10%);
  --notification-success-fg: #1a7f37;
  --notification-warning-bg: rgb(191 135 0 / 12%);
  --notification-warning-fg: #9a6700;
  --shell-gutter: 8px;
  --shadow-soft: 0 18px 56px rgb(15 23 42 / 9%);
  --surface-elevated: #ffffff;
  --surface-muted: #f0f0f0;
  --success-bg: hsl(var(--accent-hue) 50% 36% / 14%);
  --success-text: var(--accent-strong);
  --text-muted: rgb(17 17 17 / 55%);
  --text-primary: #111111;
  --text-secondary: rgb(17 17 17 / 75%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  color-scheme: light;
  font-family: var(--font-family-app);
}

:root[data-desktop-shell="macos"] {
  --desktop-titlebar-height: 22px;
}

:root[data-theme="dark"] {
  --accent: hsl(var(--accent-hue) 74% 66%);
  --accent-aaa-bg: hsl(var(--accent-hue) 64% 24%);
  --accent-strong: hsl(var(--accent-hue) 75% 72%);
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --border: color-mix(in srgb, rgb(255 255 255 / 15%) 78%, rgb(255 255 255 / 32%));
  --border-hover: color-mix(in srgb, rgb(255 255 255 / 28%) 76%, rgb(255 255 255 / 44%));
  --code-bg: hsl(var(--accent-hue) 18% 6%);
  --glass-panel-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), inset 0 -1px 0 rgb(0 0 0 / 28%), var(--shadow-soft);
  --notification-error-bg: rgb(255 123 114 / 13%);
  --notification-error-fg: #ff7b72;
  --notification-info-bg: rgb(88 166 255 / 13%);
  --notification-info-fg: #58a6ff;
  --notification-success-bg: rgb(86 211 100 / 13%);
  --notification-success-fg: #56d364;
  --notification-warning-bg: rgb(210 153 34 / 15%);
  --notification-warning-fg: #d29922;
  --shadow-soft: 0 26px 84px rgb(0 0 0 / 46%);
  --surface-elevated: #151515;
  --surface-muted: #202020;
  --success-bg: hsl(var(--accent-hue) 74% 66% / 12%);
  --success-text: var(--accent);
  --text-muted: rgb(255 255 255 / 40%);
  --text-primary: #ffffff;
  --text-secondary: rgb(255 255 255 / 70%);
  color-scheme: dark;
}

:root[data-contrast="medium"] {
  --bg-secondary: #f3f3f3;
  --bg-tertiary: #e8e8e8;
  --border: color-mix(in srgb, rgb(0 0 0 / 26%) 74%, rgb(255 255 255 / 36%));
  --border-hover: color-mix(in srgb, rgb(0 0 0 / 40%) 80%, rgb(255 255 255 / 32%));
  --surface-elevated: #ffffff;
  --surface-muted: #e8e8e8;
  --text-muted: rgb(0 0 0 / 68%);
  --text-secondary: rgb(0 0 0 / 84%);
}

:root[data-theme="dark"][data-contrast="medium"] {
  --bg-primary: #050505;
  --bg-secondary: #0b0b0b;
  --bg-tertiary: #141414;
  --border: color-mix(in srgb, rgb(255 255 255 / 24%) 80%, rgb(255 255 255 / 44%));
  --border-hover: color-mix(in srgb, rgb(255 255 255 / 38%) 82%, rgb(255 255 255 / 52%));
  --glass-panel-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), inset 0 -1px 0 rgb(0 0 0 / 30%), var(--shadow-soft);
  --shadow-soft: 0 28px 88px rgb(0 0 0 / 52%);
  --surface-elevated: #101010;
  --surface-muted: #181818;
  --text-muted: rgb(255 255 255 / 58%);
  --text-secondary: rgb(255 255 255 / 82%);
}

:root[data-contrast="high"] {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f4f4;
  --border: rgb(0 0 0 / 48%);
  --border-hover: #000000;
  --code-bg: #ffffff;
  --glass-panel-shadow: inset 0 0 0 1px rgb(0 0 0 / 18%);
  --shadow-soft: 0 18px 56px rgb(0 0 0 / 18%);
  --surface-elevated: #ffffff;
  --surface-muted: #ffffff;
  --text-muted: #333333;
  --text-primary: #000000;
  --text-secondary: #000000;
}

:root[data-theme="dark"][data-contrast="high"] {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #050505;
  --border: rgb(255 255 255 / 56%);
  --border-hover: #ffffff;
  --code-bg: #000000;
  --glass-panel-shadow: inset 0 0 0 1px rgb(255 255 255 / 24%);
  --shadow-soft: 0 24px 80px rgb(0 0 0 / 72%);
  --surface-elevated: #000000;
  --surface-muted: #050505;
  --text-muted: #d6d6d6;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
}

:root[data-borders="hidden"] {
  --border: transparent;
  --border-accent: transparent;
  --border-danger: transparent;
  --border-hover: transparent;
  --border-warning: transparent;
  --glass-panel-shadow: none;
}

:root[data-borders="hidden"] :where(
  .machine-rail,
  .app-sidebar,
  .app-inset,
  .desktop-status-bar,
  .app-global-tooltip,
  .confirm-modal,
  .loading-brand-overlay,
  .popover-menu,
  .workspace-header,
  button,
  input,
  select,
  textarea,
  [class*="badge"],
  [class*="button"],
  [class*="card"],
  [class*="control"],
  [class*="dot"],
  [class*="entry"],
  [class*="item"],
  [class*="loading"],
  [class*="mark"],
  [class*="menu"],
  [class*="modal"],
  [class*="orb"],
  [class*="panel"],
  [class*="pill"],
  [class*="popover"],
  [class*="preview"],
  [class*="row"],
  [class*="selector"],
  [class*="surface"],
  [class*="switch"],
  [class*="tag"],
  [class*="tooltip"]
) {
  border-color: transparent !important;
  box-shadow: none !important;
  outline-color: transparent !important;
}

:root[data-borders="hidden"] *,
:root[data-borders="hidden"] *::before,
:root[data-borders="hidden"] *::after {
  border-color: transparent !important;
  outline-color: transparent !important;
}

:root[data-borders="hidden"] [data-tooltip]::after {
  border-color: transparent !important;
  box-shadow: none !important;
}

:root[data-borders="hidden"] .desktop-status-bar span:not(.status-dot)::before {
  color: transparent !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(ellipse at top left, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 36%),
    var(--bg-secondary);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-family-app);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  font-size: var(--font-size-app);
}

:root[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 78% 64% at top left,
      hsl(var(--accent-hue) 96% 22% / 62%) 0%,
      hsl(var(--accent-hue) 92% 18% / 34%) 34%,
      transparent 58%),
    radial-gradient(ellipse 72% 62% at bottom right,
      hsl(var(--accent-hue) 90% 16% / 38%) 0%,
      hsl(var(--accent-hue) 84% 12% / 20%) 38%,
      transparent 66%),
    radial-gradient(ellipse 66% 54% at bottom left,
      hsl(var(--accent-hue) 90% 15% / 30%) 0%,
      hsl(var(--accent-hue) 80% 11% / 16%) 38%,
      transparent 68%),
    linear-gradient(135deg,
      color-mix(in srgb, hsl(var(--accent-hue) 92% 16%) 44%, var(--bg-secondary)) 0%,
      color-mix(in srgb, hsl(var(--accent-hue) 80% 12%) 14%, var(--bg-secondary)) 48%,
      color-mix(in srgb, var(--accent) 6%, var(--bg-primary)) 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

code {
  background: var(--code-bg);
  border-radius: 6px;
  color: var(--accent-strong);
  font-size: 0.82em;
  padding: 2px 5px;
}

.app-shell {
  display: grid;
  column-gap: 8px;
  grid-template-columns: 72px var(--sidebar-width, 302px) 6px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  padding: calc(var(--shell-gutter) + var(--desktop-titlebar-height)) var(--shell-gutter) var(--shell-gutter);
  row-gap: 8px;
}

.app-shell.machine-rail-collapsed {
  grid-template-columns: var(--sidebar-width, 302px) 6px minmax(0, 1fr);
}

.desktop-titlebar-tagline {
  display: none;
}

:root[data-desktop-shell="macos"] .desktop-titlebar-tagline {
  align-items: center;
  color: var(--accent);
  display: flex;
  font-family: var(--font-family-app);
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 600;
  height: 24px;
  justify-content: center;
  left: 136px;
  line-height: 1;
  pointer-events: none;
  position: fixed;
  right: 116px;
  top: 0;
  transform: translateY(3.5px);
  z-index: 20;
}

.screenshot-capture-notification-stack {
  display: grid;
  gap: 8px;
  left: 50%;
  max-width: min(840px, calc(100vw - 48px));
  position: fixed;
  top: calc(var(--desktop-titlebar-height) + 10px);
  transform: translateX(-50%);
  width: max-content;
  z-index: 40;
}

.screenshot-capture-notification {
  align-items: center;
  background: color-mix(in srgb, var(--surface-elevated) 94%, transparent);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  box-shadow: var(--glass-panel-shadow);
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  max-width: min(720px, calc(100vw - 48px));
  padding: 8px 10px 8px 14px;
  width: 100%;
}

.screenshot-capture-notification .screenshot-info-icon {
  align-items: center;
  align-self: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-muted));
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.screenshot-capture-notification > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.screenshot-capture-notification strong {
  color: var(--text-primary);
  font-size: 0.78rem;
  line-height: 1.2;
}

.screenshot-capture-notification span {
  font-size: 0.74rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screenshot-capture-notification .screenshot-file-path-line {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

.screenshot-capture-notification .screenshot-file-path-label {
  color: var(--text-primary);
  flex: 0 0 auto;
  font-weight: 800;
  overflow: visible;
}

.screenshot-capture-notification .screenshot-path-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  flex: 1 1 auto;
  font: inherit;
  min-width: 0;
  padding: 0;
  text-decoration: underline;
  overflow-wrap: anywhere;
  text-align: left;
}

.screenshot-capture-notification .screenshot-dismiss-button {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 1.1rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  width: 38px;
}

.screenshot-capture-notification .screenshot-dismiss-button:hover,
.screenshot-capture-notification .screenshot-dismiss-button:focus-visible {
  border-color: var(--border-accent);
  color: var(--accent);
  outline: none;
}

.machine-rail,
.app-sidebar,
.app-inset {
  background: color-mix(in srgb, var(--surface-elevated) 96%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--glass-panel-shadow);
  min-height: 0;
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.machine-rail,
.app-sidebar,
.app-inset {
  grid-row: 1;
}

.machine-rail {
  align-content: start;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 12px 8px;
}

.app-shell > .app-sidebar {
  grid-column: 2;
}

.app-shell > .sidebar-resize-handle {
  grid-column: 3;
}

.app-shell > .app-inset {
  grid-column: 4;
}

.app-shell.machine-rail-collapsed > .app-sidebar {
  grid-column: 1;
}

.app-shell.machine-rail-collapsed > .sidebar-resize-handle {
  grid-column: 2;
}

.app-shell.machine-rail-collapsed > .app-inset {
  grid-column: 3;
}

.sidebar-resize-handle {
  align-self: stretch;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: col-resize;
  grid-row: 1;
  margin: 0;
  min-height: 0;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle:focus-visible,
.resizing-sidebar .sidebar-resize-handle {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  outline: none;
}

.resizing-sidebar,
.resizing-sidebar * {
  cursor: col-resize;
  user-select: none;
}

.machine-orb,
.client-folder-orb {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text-secondary);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  padding: 0;
  width: 48px;
}

.machine-orb span {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.machine-orb.active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--border-accent);
  color: var(--accent);
}

.client-folder-orb {
  border-radius: 14px;
  font-size: 1.35rem;
}

.app-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.sidebar-header,
.sidebar-footer {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.brand-lockup,
.sidebar-titlebar,
.sidebar-history-controls,
.icon-switch,
.sidebar-mode-tabs,
.theme-control-heading,
.appearance-panel-tab,
.header-title,
.header-center-controls,
.header-actions,
.workspace-search,
.version-pill,
.surface-link,
.object-list li,
.path-actions,
.file-entry,
.file-entry-row,
.preview-header,
.toggle-row,
.install-row {
  align-items: center;
  display: flex;
}

.brand-lockup {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  gap: 12px;
  padding: 2px 4px;
}

.brand-lockup:hover,
.brand-lockup:focus-visible {
  color: var(--accent);
  outline: none;
}

.sidebar-titlebar {
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.brand-lockup strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.terminal-mark {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 15%, #0a0a0a);
  border: 1px solid var(--border-accent);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand-icon {
  background: transparent;
  border: 0;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 24%));
  height: 44px;
  width: 44px;
}

.brand-icon-bg {
  fill: #000000;
}

.brand-icon-glow {
  fill: color-mix(in srgb, #66d9f2 22%, transparent);
}

.brand-icon-ring {
  fill: none;
  stroke: #66d9f2;
  stroke-opacity: 0.36;
  stroke-width: 18;
}

.brand-icon-glyph {
  fill: #8ce8ff;
}

.sidebar-history-controls {
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 2px;
  padding: 2px;
}

.sidebar-history-controls button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  width: 26px;
}

.icon-switch {
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 2px;
  padding: 2px;
}

.icon-switch button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  gap: 4px;
  height: 28px;
  justify-content: center;
  min-width: 32px;
  padding: 0 8px;
}

.icon-switch button span {
  display: none;
}

.icon-switch button.active,
.icon-switch button:hover,
.icon-switch button:focus-visible {
  background: var(--surface-elevated);
  color: var(--accent);
  outline: none;
}

.sidebar-history-controls button:hover:not(:disabled),
.sidebar-history-controls button:focus-visible {
  background: var(--surface-elevated);
  color: var(--text-primary);
  outline: none;
}

.sidebar-history-controls svg {
  height: 18px;
  stroke-width: 2.4;
  width: 18px;
}

.sidebar-content {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 10px 12px;
}

.sidebar-mode-tabs {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 4px;
  margin: 0 6px 12px;
  padding: 4px;
}

.sidebar-mode-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  flex: 1 1 0;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 10px;
  text-transform: uppercase;
}

.sidebar-mode-tabs button.active,
.sidebar-mode-tabs button:hover,
.sidebar-mode-tabs button:focus-visible {
  background: var(--surface-elevated);
  color: var(--accent);
  outline: none;
}

.conversation-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 6px;
}

.new-session-button {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  color: var(--accent);
  font-weight: 900;
  padding: 10px 12px;
}

.repo-session-selector {
  display: grid;
  gap: 7px;
}

.selector-with-stepper {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.repo-session-selector .selector-step-button,
.selector-step-button {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  height: 40px;
  justify-content: center;
}

.selector-step-button {
  padding: 0;
  width: 40px;
}

.selector-step-button:hover:not(:disabled),
.selector-step-button:focus-visible {
  border-color: var(--border-accent);
  color: var(--accent);
  outline: none;
}

.selector-step-button svg {
  height: 18px;
  stroke-width: 2.5;
  width: 18px;
}

.repo-selector-heading {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.repo-selector-row {
  align-items: center;
}

.repo-session-selector select {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  min-height: 40px;
  min-width: 0;
  padding: 8px;
  width: 100%;
}

.session-history-list .surface-link {
  min-height: 46px;
}

.empty-sidebar-state {
  color: var(--text-muted);
  margin: 8px;
}

.sidebar-group {
  margin-bottom: 14px;
}

.sidebar-group h2,
.sidebar-footer p,
.eyebrow {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 11px 8px 5px;
  text-transform: uppercase;
}

.sidebar-top-link,
.sidebar-group ul,
.object-list,
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.surface-link {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text-secondary);
  gap: 9px;
  min-height: 32px;
  padding: 5px 8px;
  text-align: left;
  width: 100%;
}

.surface-link:hover,
.surface-link:focus-visible {
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
  outline: none;
}

.surface-link.active {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--text-primary);
}

.surface-link.active:hover,
.surface-link.active:focus-visible {
  background: color-mix(in srgb, var(--accent) 19%, transparent);
}

.surface-icon {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.surface-icon svg {
  height: 17px;
  stroke-width: 2.25;
  width: 17px;
}

.surface-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.surface-title-row {
  align-items: baseline;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.surface-copy small,
.metric-card small,
.planned-home small,
.install-row small,
.file-entry small {
  color: var(--text-muted);
}

.surface-copy strong {
  font-size: 1em;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.surface-count {
  color: var(--text-muted);
  flex: 0 0 auto;
  font-size: 0.84em;
  font-weight: 700;
}

.vault-padlock {
  align-items: center;
  background: color-mix(in srgb, #d97706 13%, transparent);
  border: 1px solid var(--border-warning);
  border-radius: 999px;
  color: #b45309;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 4px;
  padding: 5px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.vault-padlock svg {
  height: 14px;
  stroke-width: 2.6;
  width: 14px;
}

.vault-padlock.compact {
  font-size: 0.66rem;
  padding: 3px 6px;
}

.vault-padlock[data-vault-state="unlocked"] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--border-accent);
  color: var(--accent);
}

.sidebar-group h2 {
  font-size: max(12.5px, 0.84em);
}

.surface-link.active .surface-copy strong {
  font-weight: 700;
}

.surface-link em {
  background: var(--surface-muted);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  padding: 3px 7px;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 0;
}

.appearance-segmented-control {
  background: var(--surface-muted);
  border: 0;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  min-inline-size: 0;
  padding: 4px;
}

.appearance-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  font-size: 1em;
  overflow: hidden;
}

.appearance-panel-tab {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 1em;
  gap: 8px;
  justify-content: center;
  padding: 0.8em 1em;
  text-transform: uppercase;
  width: 100%;
}

.appearance-chevron {
  color: var(--accent);
  height: 20px;
  stroke-width: 2.6;
  width: 20px;
}

.appearance-panel-tab:hover,
.appearance-panel-tab:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  outline: none;
}

.appearance-panel-body {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.9em;
  padding: 1em;
}

.appearance-panel.collapsed .appearance-panel-tab {
  border-radius: 0;
}

.theme-hue-control,
.contrast-control,
.font-size-control,
.font-control {
  display: grid;
  gap: 8px;
}

.theme-control-heading {
  gap: 8px;
  justify-content: flex-start;
}

.hue-label-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.theme-control-heading label,
.contrast-control legend,
.font-size-control label,
.font-control span {
  color: var(--text-muted);
  font-size: 0.86em;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contrast-control {
  border: 0;
  margin: 0;
  padding: 0;
}

.theme-option,
.contrast-options button {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.86em;
  font-weight: 900;
  min-height: 2.75em;
  padding: 0.55em 0.5em;
  text-transform: uppercase;
}

.theme-option:hover,
.theme-option:focus-visible,
.theme-option.active,
.contrast-options button:hover,
.contrast-options button:focus-visible,
.contrast-options button.active {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-elevated));
  border-color: var(--border-accent);
  color: var(--accent);
  outline: none;
}

.hue-number-input {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-primary);
  font-size: 0.95em;
  font-weight: 800;
  min-width: 0;
  padding: 5px 6px;
  width: 58px;
}

.icon-reset-button {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.icon-reset-button svg {
  height: 15px;
  width: 15px;
}

.theme-hue-control input[type="range"],
.font-size-control input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
}

.range-labels {
  border: 0;
  color: var(--text-muted);
  display: grid;
  font-size: 0.82em;
  font-weight: 900;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.range-labels button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  padding: 3px 0;
  text-align: center;
}

.range-labels button:hover,
.range-labels button:focus-visible,
.range-labels button.active {
  color: var(--accent);
  outline: none;
}

.font-control select {
  appearance: none;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  min-height: 40px;
  min-width: 0;
  padding: 9px 10px;
  width: 100%;
}

.font-selector-row {
  align-items: center;
}

.app-inset {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.workspace-header {
  align-items: center;
  background: color-mix(in srgb, var(--surface-elevated) 94%, transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  min-height: 54px;
  padding: 8px 14px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.header-title {
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

.header-title p {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
}

.header-title h1 {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0;
}

.path-actions button,
.secondary-action {
  background: var(--surface-muted);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
}

.workspace-surface-icon {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.workspace-surface-icon svg {
  height: 23px;
  stroke-width: 2.2;
  width: 23px;
}

.header-center-controls {
  gap: 10px;
  left: 50%;
  max-width: min(560px, 48vw);
  min-width: 0;
  position: absolute;
  transform: translateX(-50%);
  width: min(560px, 48vw);
}

.header-actions {
  flex: 1 1 auto;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.header-actions > .header-icon-button,
.header-actions > .header-action-menu {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.workspace-search {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  flex: 1 1 auto;
  gap: 8px;
  min-width: 160px;
  padding: 8px 12px;
}

.command-trigger {
  justify-content: flex-start;
  max-width: none;
}

.command-trigger strong {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-history-controls {
  flex: 0 0 auto;
}

.workspace-search span,
.workspace-search input {
  color: var(--text-muted);
}

.workspace-search input {
  background: transparent;
  border: 0;
  min-width: 0;
  outline: none;
  width: 100%;
}

.version-pill {
  background: var(--surface-muted);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 11px;
  white-space: nowrap;
}

.header-action-menu {
  gap: 10px;
  position: relative;
}

.header-icon-button,
.profile-avatar-button {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 38px;
}

.header-icon-button:hover,
.header-icon-button:focus-visible,
.header-icon-button.active,
.profile-avatar-button:hover,
.profile-avatar-button:focus-visible,
.command-trigger:hover,
.command-trigger:focus-visible {
  border-color: var(--border-accent);
  color: var(--accent);
  outline: none;
}

.header-icon-button svg {
  height: 19px;
  width: 19px;
}

.profile-avatar-button {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-muted));
  color: var(--accent);
  font-weight: 900;
}

.notification-dot {
  background: var(--accent);
  border: 2px solid var(--border-accent);
  border-radius: 999px;
  height: 10px;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 10px;
}

.popover-menu {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgb(0 0 0 / 18%);
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 8;
}

.profile-menu {
  min-width: 240px;
}

.notifications-menu {
  min-width: 320px;
}

.signposts-tour {
  min-width: min(360px, 88vw);
}

.signposts-heading,
.signposts-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.signposts-heading span {
  background: var(--surface-muted);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 8px;
}

.signposts-tour code {
  overflow-wrap: anywhere;
}

.tour-missing-target {
  color: var(--notification-warning-fg) !important;
}

.notifications-menu-heading,
.notification-preview {
  align-items: center;
  display: flex;
}

.notifications-menu-heading {
  justify-content: space-between;
  padding: 2px 4px 6px;
}

.notifications-menu-heading span {
  background: var(--surface-muted);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.notification-preview {
  background: var(--notification-bg, transparent);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-accent);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  gap: 10px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.notification-preview:hover,
.notification-preview:focus-visible {
  border-color: var(--border-accent);
  outline: none;
}

.notification-preview > span {
  color: var(--notification-color, var(--accent));
}

.notification-preview strong,
.notification-preview small {
  display: block;
}

.notification-preview small {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.notification-preview.error,
.github-notification-card.error {
  --notification-color: var(--notification-error-fg);
  --notification-bg: var(--notification-error-bg);
}

.notification-preview.warning,
.github-notification-card.warning {
  --notification-color: var(--notification-warning-fg);
  --notification-bg: var(--notification-warning-bg);
}

.notification-preview.info,
.github-notification-card.info {
  --notification-color: var(--notification-info-fg);
  --notification-bg: var(--notification-info-bg);
}

.notification-preview.success,
.github-notification-card.success {
  --notification-color: var(--notification-success-fg);
  --notification-bg: var(--notification-success-bg);
}

.popover-menu button:not(.notification-preview),
.popover-menu a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
}

.popover-menu button:not(.notification-preview):hover:not(:disabled),
.popover-menu a:hover,
.popover-menu button:not(.notification-preview):focus-visible,
.popover-menu a:focus-visible {
  background: var(--surface-muted);
  color: var(--accent);
  outline: none;
}

.popover-menu p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.profile-menu-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 4px 6px 8px;
}

.menu-separator {
  border-top: 1px solid var(--border);
  margin: 2px 0;
}

.disabled-menu-item {
  opacity: 0.55;
}

.assistant-panel {
  background: color-mix(in srgb, var(--surface-elevated) 98%, transparent);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--glass-panel-shadow);
  display: grid;
  gap: 12px;
  max-width: 360px;
  padding: 16px;
  position: absolute;
  right: 14px;
  top: calc(100% + 10px);
  z-index: 7;
}

.assistant-panel p,
.assistant-message {
  color: var(--text-muted);
  margin: 0;
}

.assistant-message {
  background: var(--surface-muted);
  border-radius: 14px;
  padding: 12px;
}

.command-palette-backdrop {
  align-items: center;
  backdrop-filter: blur(8px) saturate(120%);
  background: rgb(0 0 0 / 34%);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 20;
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.command-palette-scrim {
  background: transparent;
  border: 0;
  inset: 0;
  padding: 0;
  position: absolute;
}

.command-palette {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 26px 90px rgb(0 0 0 / 32%);
  display: grid;
  gap: 12px;
  max-width: min(680px, calc(100vw - 32px));
  padding: 14px;
  position: relative;
  width: 100%;
}

.command-input-row {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.command-input-row input {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  flex: 1 1 auto;
  outline: none;
}

.command-palette ul,
.notification-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.command-palette button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.command-palette button:hover,
.command-palette button:focus-visible,
.command-palette button.active {
  background: var(--surface-muted);
  color: var(--accent);
  outline: none;
}

.command-palette small {
  color: var(--text-muted);
  display: block;
}

.workspace-scroll {
  display: grid;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
}

.surface-page {
  display: grid;
  gap: 16px;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.chat-surface {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.ai-sessions-surface {
  grid-template-columns: minmax(248px, 320px) minmax(0, 1fr);
}

.comms-surface {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.chat-thread-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  min-height: 620px;
  overflow: hidden;
}

.chat-thread-header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.chat-thread-header h2 {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.chat-message-list {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.chat-bubble {
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  max-width: min(680px, 90%);
  padding: 14px;
}

.chat-bubble.assistant {
  background: var(--surface-muted);
}

.chat-bubble.user {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  justify-self: end;
}

.chat-bubble p {
  color: var(--text-secondary);
  margin: 0;
}

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

.chat-bubble[data-sender-kind="system"],
.chat-bubble[data-sender-kind="worker"] {
  border-style: dashed;
}

.genui-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
}

.genui-card-invalid {
  border-color: var(--border-warning);
}

.genui-card h3 {
  margin: 0;
}

.genui-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 0;
}

.genui-card dt {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.genui-card dd {
  color: var(--text-secondary);
  margin: 0;
}

.genui-deferred {
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  padding-top: 8px;
}

.conversation-list-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.conversation-search {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 8px;
  margin: 14px;
  padding: 10px 12px;
}

.conversation-search input {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  min-width: 0;
  width: 100%;
}

.conversation-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 14px 14px;
}

.participant-strip,
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 0;
}

.participant-strip span,
.reaction-row span {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  gap: 6px;
  padding: 6px 9px;
}

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

.chat-composer {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.chat-composer.ai-composer {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.chat-composer textarea {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  min-height: 54px;
  padding: 12px;
  resize: vertical;
}

.chat-composer button {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 14px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  padding: 0 18px;
}

@media (max-width: 980px) {
  .ai-sessions-surface,
  .comms-surface {
    grid-template-columns: 1fr;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-composer button {
    justify-content: center;
    min-height: 44px;
  }
}

.hero-panel,
.panel,
.metric-card,
.planned-card,
.planned-home {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--glass-panel-shadow);
}

.hero-panel {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 58%),
    var(--surface-elevated);
  padding: clamp(24px, 5vw, 42px);
}

.vault-hero {
  display: grid;
  gap: 16px;
}

.vault-readiness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vault-readiness-strip li {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  gap: 6px;
  padding: 7px 10px;
}

.vault-readiness-strip strong {
  color: var(--accent);
  text-transform: uppercase;
}

.compact-hero h2 {
  font-size: clamp(3rem, 10vw, 5rem);
  letter-spacing: -0.08em;
  line-height: 0.95;
  margin: 0;
}

.metric-grid,
.planned-home-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card,
.planned-card,
.planned-home,
.panel {
  padding: 18px;
}

.settings-surface,
.settings-form {
  display: grid;
  gap: 16px;
}

.settings-form {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.settings-form label {
  display: grid;
  gap: 8px;
}

.settings-form span {
  color: var(--text-secondary);
  font-weight: 800;
}

.settings-form input,
.settings-form select {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-secondary);
  padding: 11px 12px;
}

.notification-list li {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.shortcut-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.shortcut-list li {
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.shortcut-list kbd {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 34px;
  padding: 4px 8px;
}

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

.notifications-hero {
  background:
    linear-gradient(135deg, var(--notification-bg, color-mix(in srgb, var(--accent) 10%, transparent)), transparent 62%),
    var(--surface-elevated);
}

.notification-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.notification-summary-strip span,
.notification-status-pill {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 10px;
}

.notification-summary-strip strong {
  color: var(--accent);
}

.github-notification-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.github-notification-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border-accent);
  border-radius: 18px;
  box-shadow: var(--glass-panel-shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px;
}

.github-notification-card.resolved {
  opacity: 0.78;
}

.notification-state-icon {
  align-items: center;
  background: var(--notification-bg, var(--success-bg));
  border-radius: 999px;
  color: var(--notification-color, var(--accent));
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.notification-state-icon svg {
  height: 20px;
  stroke-width: 2.5;
  width: 20px;
}

.notification-card-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.notification-card-body header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.notification-card-body h3,
.notification-card-body p {
  margin: 0;
}

.notification-card-body p {
  color: var(--text-secondary);
}

.notification-card-body small {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-actions .secondary-action {
  padding: 8px 10px;
}

.metric-card span,
.planned-home span,
.data-row.header-row,
.editable-row.header-row {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  margin: 8px 0 4px;
}

.planned-home {
  display: grid;
  gap: 8px;
}

.section-heading {
  margin-bottom: 16px;
  max-width: 860px;
}

.section-heading .eyebrow {
  margin: 0 0 9px;
}

.section-heading h2 {
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  line-height: 1.04;
  margin: 0 0 16px;
}

.section-heading p {
  margin: 0;
}

.section-heading p,
.empty-state {
  color: var(--text-secondary);
}

.split-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  max-width: none;
}

.object-list {
  display: grid;
  gap: 10px;
}

.object-list li {
  background: var(--surface-muted);
  border-radius: 14px;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.object-list li span:not(.path-actions) {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 9px;
}

.object-list li small {
  color: var(--text-muted);
}

.path-actions {
  gap: 4px;
  margin-left: auto;
}

.path-actions button {
  height: 30px;
  width: 30px;
}

.explorer-panel {
  min-height: calc(100vh - 116px);
}

.file-workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
}

.file-list-pane,
.file-list,
.file-preview,
.data-table,
.editable-table,
.installation-list {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.file-list-pane {
  max-height: 68vh;
  min-width: 260px;
  overflow: auto;
  resize: horizontal;
  width: clamp(280px, 24vw, 460px);
}

.file-list {
  align-content: start;
  display: grid;
  gap: 4px;
  height: 100%;
  list-style: none;
  margin: 0;
  min-height: 100%;
  overflow: auto;
  padding: 8px;
}

.file-entry-row {
  gap: 6px;
}

.file-entry {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text-secondary);
  flex: 1;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  text-align: left;
}

.file-entry:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text-primary);
}

.file-entry strong {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-entry {
  border: 1px dashed var(--border);
}

.file-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 68vh;
  min-width: 0;
  overflow: hidden;
}

.empty-preview {
  align-content: center;
  color: var(--text-muted);
  justify-content: center;
  padding: 24px;
}

.preview-header {
  border-bottom: 1px solid var(--border);
  gap: 16px;
  justify-content: space-between;
  padding: 12px;
}

.preview-header strong {
  word-break: break-word;
}

.toggle-row {
  color: var(--text-secondary);
  gap: 8px;
  white-space: nowrap;
}

.code-preview,
.markdown-preview {
  margin: 0;
  overflow: auto;
  padding: 16px;
}

.code-preview {
  background: var(--code-bg);
  color: var(--text-secondary);
}

.code-preview code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview p {
  margin: 0 0 0.75rem;
}

.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4 {
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.markdown-bullet {
  color: var(--text-secondary);
  padding-left: 1rem;
}

.notice,
.empty-state {
  border-radius: 14px;
  margin: 0;
  padding: 12px 14px;
}

.notice {
  background: var(--success-bg);
  color: var(--success-text);
}

.compact-notice {
  margin-bottom: 12px;
}

.apps-surface {
  align-content: start;
  display: grid;
  gap: 0;
}

.apps-surface .section-heading {
  margin-bottom: 18px;
}

.apps-surface > .app-subnav {
  margin-bottom: 18px;
}

.apps-surface > .app-subnav + .app-subnav {
  margin-bottom: 16px;
}

.pulse-workers-surface {
  display: grid;
  gap: 16px;
}

.pulse-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 64%),
    var(--surface-elevated);
}

.pulse-scope-strip,
.pulse-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pulse-scope-strip span,
.pulse-filter-row button {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  padding: 7px 10px;
}

.pulse-scope-strip strong {
  color: var(--accent);
  margin-right: 6px;
  text-transform: uppercase;
}

.pulse-kpi-grid,
.pulse-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pulse-overview-layout {
  grid-template-columns: minmax(0, 1fr);
}

.pulse-kpi-card {
  display: grid;
  gap: 8px;
}

.pulse-kpi-card span,
.pulse-chart-panel p,
.pulse-drilldown-panel p,
.pulse-actions-panel p {
  color: var(--text-secondary);
}

.pulse-kpi-card strong {
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.pulse-chart-heading {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
}

.pulse-chart-heading h4 {
  font-size: 1rem;
  margin: 0;
}

.pulse-chart-meta {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pulse-chart-meta span {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-muted));
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.pulse-chart-meta strong {
  color: var(--accent);
  font-size: 0.98rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pulse-chart-meta small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-attention-panel,
.pulse-chart-panel,
.pulse-activity-panel,
.pulse-drilldown-panel,
.pulse-actions-panel,
.pulse-filter-panel,
.pulse-trends-panel {
  display: grid;
  gap: 12px;
}

.pulse-chart-panel {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.pulse-attention-critical,
.pulse-status-blocked strong,
.pulse-status-failed strong {
  color: var(--notification-error-fg);
}

.pulse-attention-warning,
.pulse-status-needs_attention strong {
  color: var(--notification-warning-fg);
}

.pulse-attention-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.pulse-chart-placeholder {
  align-items: end;
  background:
    linear-gradient(180deg, transparent 24%, color-mix(in srgb, var(--border) 42%, transparent) 24% 25%, transparent 25% 49%, color-mix(in srgb, var(--border) 34%, transparent) 49% 50%, transparent 50% 74%, color-mix(in srgb, var(--border) 28%, transparent) 74% 75%, transparent 75%),
    var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 148px;
  overflow: hidden;
  padding: 28px 14px 12px;
  position: relative;
}

.pulse-chart-placeholder span {
  align-items: end;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 52%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
  border: 1px solid var(--border-accent);
  border-radius: 12px 12px 4px 4px;
  color: var(--accent-strong);
  display: flex;
  font-size: 0.75rem;
  font-weight: 900;
  justify-content: center;
  min-height: max(32px, var(--bar-height, calc(40px + var(--bar-index, 1) * 18px)));
  padding: 8px 4px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.pulse-chart-sparkline {
  height: 44%;
  inset: 16px 14px auto;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
  width: calc(100% - 28px);
  z-index: 2;
}

.pulse-chart-area {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
  stroke: none;
}

.pulse-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.pulse-chart-dot {
  fill: var(--surface-elevated);
  stroke: var(--accent);
  stroke-width: 1.4;
}

.pulse-chart-grid,
.pulse-filter-groups {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pulse-chart-stack {
  grid-template-columns: minmax(0, 1fr);
}

.pulse-filter-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 0;
  padding: 10px;
}

.pulse-filter-group legend {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 6px;
  text-transform: uppercase;
}

.pulse-quick-filter-row {
  justify-content: flex-end;
}

.pulse-chart-placeholder span:nth-child(2) { --bar-index: 3; }
.pulse-chart-placeholder span:nth-child(3) { --bar-index: 5; }
.pulse-chart-placeholder span:nth-child(4) { --bar-index: 2; }
.pulse-chart-placeholder span:nth-child(5) { --bar-index: 4; }
.pulse-chart-placeholder span:nth-child(6) { --bar-index: 3; }

.pulse-activity-table {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  overflow: hidden;
}

.pulse-activity-table thead,
.pulse-activity-table tbody {
  display: grid;
}

.pulse-activity-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 0.7fr 1fr 1.4fr 1fr 1.2fr 1.2fr;
  padding: 12px 14px;
}

.pulse-activity-row.selected {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.pulse-activity-row td {
  display: grid;
  gap: 3px;
}

.pulse-activity-row td span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.pulse-row-select {
  justify-self: start;
  padding: 4px 8px;
}

.pulse-activity-row + .pulse-activity-row {
  border-top: 1px solid var(--border);
}

.pulse-activity-row th,
.pulse-activity-row td {
  font-weight: inherit;
  text-align: left;
}

.pulse-activity-header {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse-actions-panel button,
.pulse-attention-panel button {
  justify-self: start;
}

.pulse-card-stream {
  display: none;
}

.pulse-event-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  display: grid;
  gap: 5px;
  padding: 12px;
  text-align: left;
}

.pulse-event-card.selected {
  border-color: var(--border-accent);
}

.pulse-event-card span,
.pulse-event-card small {
  color: var(--text-secondary);
}

.pulse-detail-drawer {
  border-left: 4px solid var(--border-accent);
}

.pulse-detail-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.pulse-detail-grid div {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.pulse-detail-grid dt {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse-detail-grid dd {
  color: var(--text-secondary);
  margin: 3px 0 0;
}

.apps-surface .compact-notice {
  margin-bottom: 0;
}

.data-table,
.editable-table,
.installation-list,
.managed-app-list {
  display: grid;
  overflow: hidden;
}

.managed-app-list {
  gap: 16px;
  margin-bottom: 16px;
  overflow: visible;
}

.managed-app-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 34%),
    var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%);
  min-width: 0;
  overflow: hidden;
  transition: background 140ms ease, border-color 140ms ease;
}

.managed-app-card.expanded {
  border-color: var(--border-accent);
}

.managed-app-card:hover,
.managed-app-card:focus-within {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 40%),
    var(--surface-muted);
}

.managed-app-summary {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
  position: relative;
  text-align: left;
  width: 100%;
}

.managed-app-summary:hover,
.managed-app-summary:focus-visible {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  outline: none;
}

.managed-app-title-block,
.app-meta {
  display: grid;
  min-width: 0;
}

.managed-app-title-block {
  gap: 0;
}

.managed-app-title-block .eyebrow {
  line-height: 1;
  margin: 0 0 8px;
}

.managed-app-title-block strong {
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.managed-app-title-block > span:last-child {
  color: var(--text-secondary);
  max-width: 72ch;
}

.managed-app-summary-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
  min-width: min(420px, 38vw);
}

.managed-summary-chip {
  align-items: center;
  align-content: center;
  background: color-mix(in srgb, var(--surface-elevated) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-grid;
  gap: 1px;
  justify-items: center;
  min-height: 58px;
  min-width: 118px;
  padding: 7px 12px;
  text-align: center;
}

.managed-summary-chip small {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.managed-summary-chip span {
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-app-chevron {
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.managed-app-card.expanded .managed-app-chevron {
  transform: rotate(180deg);
}

.managed-app-body {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
  position: relative;
  min-width: 0;
}

.managed-app-toolbar {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 16px;
  min-width: 0;
}

.managed-app-links,
.managed-app-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.managed-app-actions {
  justify-content: end;
  min-width: 0;
}

.managed-app-links a,
.origin-missing {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 1em;
  font-weight: 800;
  gap: 4px;
  max-width: 100%;
  padding: 4px 0;
  position: relative;
  text-decoration: none;
}

.managed-app-links a:hover,
.managed-app-links a:focus-visible {
  color: var(--accent);
  outline: none;
  text-decoration: underline;
}

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

.managed-app-details {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.managed-app-path {
  min-height: auto;
}

.managed-toggle,
.app-meta {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 7px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
}

.managed-toggle {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  text-transform: uppercase;
}

.managed-toggle-label {
  min-width: 0;
}

button.managed-toggle {
  cursor: pointer;
  text-align: left;
}

button.managed-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

button.managed-toggle:hover,
button.managed-toggle:focus-visible {
  border-color: var(--border-accent);
  outline: none;
}

.switch-track {
  background: color-mix(in srgb, #ef4444 18%, var(--surface-muted));
  border: 1px solid var(--border-danger);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
  width: 34px;
}

.switch-track span {
  background: #ef4444;
  border-radius: 50%;
  height: 14px;
  transform: translateX(0);
  transition: transform 140ms ease, background 140ms ease;
  width: 14px;
}

.switch-track.checked span {
  background: #22c55e;
  transform: translateX(14px);
}

.switch-track.checked {
  background: color-mix(in srgb, #22c55e 18%, var(--surface-muted));
  border-color: color-mix(in srgb, #22c55e 48%, var(--border));
}

.app-meta small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-meta strong {
  color: var(--text-primary);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-log-link {
  color: var(--text-primary);
  text-decoration: none;
}

.app-log-link:hover,
.app-log-link:focus-visible {
  border-color: var(--border-accent);
  outline: none;
}

.app-action-button {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-elevated));
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 0 12px;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.app-action-button span {
  align-items: center;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.app-action-button svg {
  flex: 0 0 auto;
}

.app-action-button:hover,
.app-action-button:focus-visible {
  background: var(--accent);
  border-color: var(--border-accent);
  color: var(--bg-primary);
  outline: none;
  transform: translateY(-1px);
}

.app-action-button.remove {
  background: color-mix(in srgb, #ef4444 12%, var(--surface-elevated));
  border-color: var(--border-danger);
  color: #ff8a8a;
}

.app-action-button.remove:hover,
.app-action-button.remove:focus-visible {
  background: #ef4444;
  border-color: var(--border-danger);
  color: white;
}

.app-action-button:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.app-terminal {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent),
    #050806;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: color-mix(in srgb, var(--accent) 78%, white);
  min-width: 0;
  overflow: hidden;
}

.app-terminal header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.app-terminal header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-terminal header span {
  flex: 0 0 auto;
  color: var(--text-muted);
  text-align: right;
}

.terminal-close-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.terminal-close-button:hover,
.terminal-close-button:focus-visible {
  border-color: var(--border-accent);
  color: var(--accent);
  outline: none;
}

.app-terminal pre {
  margin: 0;
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ansi-prompt { color: #7ee787; }
.ansi-fg-30,
.ansi-fg-90 { color: #8b949e; }
.ansi-fg-31,
.ansi-fg-91 { color: #ff7b72; }
.ansi-fg-32,
.ansi-fg-92 { color: #7ee787; }
.ansi-fg-33,
.ansi-fg-93 { color: #f2cc60; }
.ansi-fg-34,
.ansi-fg-94 { color: #79c0ff; }
.ansi-fg-35,
.ansi-fg-95 { color: #d2a8ff; }
.ansi-fg-36,
.ansi-fg-96 { color: #76e3ea; }
.ansi-fg-37,
.ansi-fg-97 { color: #f0f6fc; }

.modal-backdrop {
  align-items: center;
  background: rgb(0 0 0 / 62%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 100;
}

.confirm-modal {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  box-shadow: 0 24px 90px rgb(0 0 0 / 48%);
  display: grid;
  gap: 12px;
  max-width: 520px;
  padding: 22px;
  width: min(100%, 520px);
}

.confirm-modal h3,
.confirm-modal p {
  margin: 0;
}

.confirm-modal code {
  overflow-wrap: anywhere;
}

.confirm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  background: color-mix(in srgb, var(--surface-elevated) 94%, black);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
  border-radius: 10px;
  bottom: calc(100% + 8px);
  box-shadow: 0 18px 46px rgb(0 0 0 / 38%);
  color: var(--text-primary);
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 700;
  left: 50%;
  line-height: 1.35;
  max-width: min(320px, 72vw);
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  width: max-content;
  z-index: 1000;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.apps-surface [data-tooltip]::after {
  content: none;
}

.app-global-tooltip {
  background: color-mix(in srgb, var(--surface-elevated) 94%, black);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
  border-radius: 10px;
  box-shadow: 0 18px 46px rgb(0 0 0 / 38%);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  left: var(--tooltip-x);
  line-height: 1.35;
  max-width: min(440px, calc(100vw - 24px));
  overflow-wrap: anywhere;
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  text-align: left;
  top: var(--tooltip-y);
  width: max-content;
  z-index: 10000;
}

.app-global-tooltip.center {
  transform: translate(-50%, calc(-100% - 10px));
}

.app-global-tooltip.start {
  transform: translate(0, calc(-100% - 10px));
}

.app-global-tooltip.end {
  transform: translate(-100%, calc(-100% - 10px));
}

.data-row,
.editable-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

.data-row + .data-row,
.editable-row + .editable-row,
.install-row + .install-row {
  border-top: 1px solid var(--border);
}

.data-row span,
.editable-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editable-row input {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  min-width: 0;
  padding: 9px 10px;
}

.secondary-action {
  padding: 9px 12px;
}

.installation-list {
  margin-bottom: 12px;
}

.install-row {
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.install-row div {
  display: grid;
  flex: 1;
}

.toggle-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.toggle-pill.checked {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--border-accent);
  color: var(--accent);
}

.pill-tabs {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
}

.app-subnav {
  justify-self: start;
}

.recommended-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.recommended-app-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.recommended-app-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 40%),
    var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 16px;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.recommended-app-card:hover,
.recommended-app-card:focus-within {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 42%),
    color-mix(in srgb, var(--accent) 5%, var(--surface-muted));
  border-color: var(--border-accent);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}

.recommended-app-card strong {
  font-size: 1.05rem;
}

.recommended-app-title-link {
  color: var(--text-primary);
  display: inline-flex;
  text-decoration: none;
  width: fit-content;
}

.recommended-app-title-link:hover,
.recommended-app-title-link:focus-visible {
  color: var(--accent);
  outline: none;
  text-decoration: underline;
}

.recommended-app-card p {
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.os-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-icon-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.os-icon-list span,
.os-icon-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 1.12rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 24px;
  min-width: 24px;
  padding: 0;
}

.os-icon-list svg {
  display: block;
  height: 18px;
  width: 18px;
}

.platform-icon-list button {
  cursor: pointer;
}

.os-icon-list span:hover,
.os-icon-list span:focus-visible,
.os-icon-list button:hover,
.os-icon-list button:focus-visible {
  color: var(--accent);
  outline: none;
}

.pill-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 14px;
}

.pill-tabs button.active {
  background: var(--accent-aaa-bg);
  color: #ffffff;
}

.pill-tabs button:hover,
.pill-tabs button:focus-visible {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-elevated));
  color: var(--accent);
  outline: none;
}

.pill-tabs button.active:hover,
.pill-tabs button.active:focus-visible {
  background: var(--accent-aaa-bg);
  color: #ffffff;
}

.count-pill,
.repo-summary-strip span {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.repo-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.repo-card-grid,
.provider-grid,
.ai-provider-summary-grid,
.setup-card-grid,
.ai-app-grid,
.vault-card-grid,
.vault-device-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.repo-setup-card,
.provider-card,
.ai-provider-summary-card,
.setup-target-card,
.ai-app-card,
.vault-feature-card,
.vault-device-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
}

.repo-setup-card header,
.provider-card header,
.provider-card-header,
.setup-target-card header,
.ai-app-card header,
.repo-card-footer {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.repo-setup-card h3,
.provider-card h3,
.setup-target-card h3,
.ai-app-card h3,
.vault-device-card h3 {
  font-size: 1rem;
  margin: 0 0 5px;
}

.vault-feature-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vault-feature-card strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.vault-feature-card small {
  color: var(--text-muted);
}

.vault-step-list {
  color: var(--text-secondary);
  margin: 0;
  padding-left: 1.2rem;
}

.vault-setup-panel code {
  display: inline-block;
  margin-top: 10px;
}

.vault-cta {
  justify-self: start;
}

.vault-collection-list li {
  align-items: center;
}

.repo-setup-card code,
.repo-remotes code,
.setup-path-row code {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-secondary);
  display: block;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  padding: 5px 7px;
}

.repo-card-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.repo-card-meta span {
  background: var(--surface-elevated);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 9px;
}

.repo-card-meta small,
.repo-remotes span,
.provider-account-list small,
.setup-path-row small {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repo-card-meta strong,
.provider-account-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-remotes {
  display: grid;
  gap: 6px;
}

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

.setup-path-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.setup-path-row code {
  min-width: 0;
}

.status-pill {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.warn {
  background: color-mix(in srgb, #d97706 16%, transparent);
  border-color: color-mix(in srgb, #d97706 42%, transparent);
  color: #b45309;
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.repo-tags span {
  background: var(--surface-elevated);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 5px 8px;
}

.switch-control {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  gap: 8px;
}

.appearance-switch {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.appearance-switch strong {
  color: var(--text-muted);
  font-size: 0.86em;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-right: auto;
  text-transform: uppercase;
}

.app-loading-shell .loading-panel {
  overflow: hidden;
  position: relative;
}

.loading-brand-overlay {
  align-items: center;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  box-shadow: 0 18px 70px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-soft);
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  left: 50%;
  padding: 12px 18px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100vw - 48px);
  z-index: 20;
}

.loading-brand-mark {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-family: var(--font-family-app);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.loading-brand-chevron { color: var(--accent); }

.loading-brand-cursor {
  animation: loading-cursor-blink 0.95s steps(1, end) infinite;
  color: var(--accent);
}

.loading-brand-status {
  color: var(--text-primary);
  font-family: var(--font-family-app);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.loading-line,
.loading-pill,
.loading-orb,
.loading-logo,
.loading-icon,
.loading-search,
.loading-circle,
.loading-card,
.loading-panel-block,
.loading-dot {
  animation: loading-pulse 1.35s ease-in-out infinite;
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface-muted) 76%, transparent), color-mix(in srgb, var(--accent) 16%, var(--surface-elevated)), color-mix(in srgb, var(--surface-muted) 76%, transparent));
  background-size: 220% 100%;
  border: 1px solid var(--border);
  display: block;
}

.loading-line {
  border-radius: 999px;
  height: 14px;
  width: 100%;
}

.loading-line-wide { width: min(72%, 260px); }
.loading-line-short { width: 58%; }
.loading-line-hero { height: 34px; width: min(56%, 520px); }
.loading-titlebar { height: 10px; margin: 7px auto 0; width: min(42%, 520px); }

.loading-orb,
.loading-logo,
.loading-icon,
.loading-circle,
.loading-dot {
  border-radius: 999px;
  flex: 0 0 auto;
}

.loading-orb {
  height: 48px;
  width: 48px;
}

.loading-logo {
  border-radius: 11px;
  height: 44px;
  width: 44px;
}

.loading-icon,
.loading-circle {
  height: 34px;
  width: 34px;
}

.loading-dot {
  height: 8px;
  width: 8px;
}

.loading-pill,
.loading-search {
  border-radius: 999px;
  height: 40px;
  width: 100%;
}

.loading-sidebar-header,
.loading-workspace-header {
  align-items: center;
  display: flex;
  gap: 12px;
}

.loading-sidebar-header,
.loading-sidebar-footer,
.loading-list,
.loading-workspace-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.loading-list {
  padding-top: 0;
}

.loading-sidebar-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.loading-workspace-header .loading-search {
  flex: 1 1 auto;
  max-width: 560px;
}

.loading-workspace-body {
  align-content: start;
  gap: 18px;
  overflow: hidden;
}

.loading-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loading-card {
  border-radius: 18px;
  height: 128px;
}

.loading-panel-block {
  border-radius: 20px;
  height: 240px;
}

.loading-status-bar .loading-line {
  height: 10px;
  width: 96px;
}

@keyframes loading-pulse {
  0% { background-position: 120% 0; opacity: 0.52; }
  50% { opacity: 0.95; }
  100% { background-position: -120% 0; opacity: 0.52; }
}

@keyframes loading-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-line,
  .loading-pill,
  .loading-orb,
  .loading-logo,
  .loading-icon,
  .loading-search,
  .loading-circle,
  .loading-card,
  .loading-panel-block,
  .loading-dot,
  .loading-brand-cursor {
    animation: none;
  }
}

.desktop-status-bar {
  align-items: center;
  background: color-mix(in srgb, var(--surface-elevated) 96%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--glass-panel-shadow);
  color: var(--text-muted);
  display: flex;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  gap: 10px;
  grid-column: 1 / -1;
  grid-row: 2;
  height: 30px;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  padding: 0 12px;
  white-space: nowrap;
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.desktop-status-bar strong {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  line-height: 1;
  transform: translateY(3px);
}

.desktop-status-bar span:not(.status-dot) {
  align-items: center;
  display: inline-flex;
  line-height: 1;
  transform: translateY(3px);
}

.desktop-status-bar span:not(.status-dot)::before {
  color: var(--border-hover);
  content: "•";
  margin-right: 10px;
}

.desktop-status-bar .status-dot + strong + span::before {
  content: "";
  margin-right: 0;
}

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

.status-dot.warn {
  background: #d97706;
  box-shadow: 0 0 0 3px color-mix(in srgb, #d97706 16%, transparent);
}

.switch-control input {
  inline-size: 0;
  opacity: 0;
  position: absolute;
}

.switch-control span {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  height: 24px;
  position: relative;
  width: 44px;
}

.switch-control span::after {
  background: var(--text-muted);
  border-radius: 999px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: 2px;
  transition: transform 0.16s ease;
  width: 18px;
}

.switch-control input:checked + span {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: var(--border-accent);
}

.switch-control input:checked + span::after {
  background: var(--accent);
  transform: translateX(18px);
}

.ai-provider-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ai-provider-summary-card span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-provider-summary-card strong {
  color: var(--accent);
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.05em;
}

.ai-provider-summary-card small,
.provider-card p,
.provider-connection-hint {
  color: var(--text-secondary);
}

.ai-provider-catalog-panel,
.provider-section {
  display: grid;
  gap: 16px;
}

.provider-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto;
}

.provider-search {
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
}

.provider-search input {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.provider-search:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
}

.provider-filter-chips,
.provider-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.provider-filter-chips button,
.provider-chip,
.recommendation-badge,
.provider-health {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}

.provider-filter-chips button,
.provider-chip {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 9px;
}

.provider-filter-chips button.active {
  border-color: var(--border-accent);
  color: var(--accent);
}

.provider-filter-chips span {
  color: var(--text-muted);
}

.provider-section-heading h3 {
  margin: 0 0 4px;
}

.provider-card-recommended {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.provider-identity {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.provider-avatar {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 14px;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.provider-avatar-openai,
.provider-avatar-zai {
  background: color-mix(in srgb, var(--success-text) 12%, transparent);
  border-color: color-mix(in srgb, var(--success-text) 34%, transparent);
  color: var(--success-text);
}

.provider-avatar-cursor {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  color: var(--text-primary);
}

.provider-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-title-row h3 {
  margin: 0;
}

.recommendation-badge {
  background: color-mix(in srgb, var(--success-text) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--success-text) 38%, transparent);
  color: var(--success-text);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 7px;
  text-transform: uppercase;
}

.provider-count-stack {
  align-items: flex-end;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.provider-count-stack > strong {
  color: var(--accent);
  font-size: 1.8rem;
  letter-spacing: -0.06em;
}

.provider-health.ready {
  background: color-mix(in srgb, var(--success-text) 14%, transparent);
  border-color: color-mix(in srgb, var(--success-text) 38%, transparent);
  color: var(--success-text);
}

.provider-health.error {
  background: color-mix(in srgb, var(--notification-error-fg) 14%, transparent);
  border-color: color-mix(in srgb, var(--notification-error-fg) 38%, transparent);
  color: var(--notification-error-fg);
}

.provider-health.neutral {
  background: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text-muted);
}

.provider-connection-hint {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.84rem;
  margin: 0;
  padding: 10px;
}

.provider-actions {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.provider-actions button,
.provider-account-list button {
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  gap: 5px;
  padding: 7px 10px;
}

.provider-account-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.provider-account-list li {
  align-items: center;
  background: var(--surface-elevated);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1.5fr) auto auto auto auto auto;
  padding: 10px;
}

.provider-account-list span {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 8px;
}

.compact-empty {
  padding: 10px;
}

@media (max-width: 1100px) {
  .file-workspace {
    grid-template-columns: 1fr;
  }

  .managed-app-summary,
  .managed-app-toolbar,
  .provider-toolbar {
    grid-template-columns: 1fr;
  }

  .managed-app-summary-meta,
  .managed-app-actions {
    justify-content: start;
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .app-shell.machine-rail-collapsed {
    grid-template-columns: 1fr;
  }

  .machine-rail,
  .app-sidebar,
  .app-inset,
  .desktop-status-bar {
    grid-column: 1;
    grid-row: auto;
  }

  .app-shell > .app-sidebar,
  .app-shell > .app-inset,
  .app-shell.machine-rail-collapsed > .app-sidebar,
  .app-shell.machine-rail-collapsed > .app-inset {
    grid-column: 1;
  }

  .sidebar-resize-handle {
    display: none;
  }

  .desktop-status-bar {
    flex-wrap: wrap;
    white-space: normal;
  }

  .app-sidebar,
  .app-inset {
    min-height: auto;
  }

  .workspace-header,
  .header-center-controls,
  .header-actions,
  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .header-center-controls {
    max-width: none;
    position: static;
    transform: none;
    width: 100%;
  }

  .workspace-search {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .app-shell {
    --shell-gutter: 0px;
  }

  .app-sidebar,
  .app-inset {
    border-radius: 0;
  }

  .data-row,
  .editable-row,
  .managed-app-details,
  .pulse-overview-layout,
  .pulse-activity-row,
  .provider-account-list li {
    grid-template-columns: 1fr;
  }

  .pulse-chart-grid,
  .pulse-filter-groups {
    grid-template-columns: 1fr;
  }

  .pulse-chart-heading,
  .pulse-chart-meta {
    grid-template-columns: 1fr;
  }

  .pulse-chart-placeholder {
    min-height: 128px;
  }

  .pulse-activity-table {
    display: none;
  }

  .pulse-card-stream {
    display: grid;
    gap: 10px;
  }

  .pulse-activity-header {
    display: none;
  }

  .pulse-activity-row {
    background: var(--surface-elevated);
  }

  .pulse-activity-row td::before {
    color: var(--text-muted);
    content: attr(data-label) ": ";
    font-weight: 900;
  }

  .pulse-detail-drawer {
    border-left: 0;
    border-radius: 0;
    margin-inline: -16px;
  }

  .pulse-detail-drawer::before {
    color: var(--text-muted);
    content: "Full-screen sheet layout on small screens";
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .pill-tabs {
    width: 100%;
  }

  .repo-setup-card header,
  .provider-card header,
  .setup-target-card header,
  .ai-app-card header,
  .setup-path-row,
  .repo-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-path-row {
    grid-template-columns: 1fr;
  }
}
