:root {
  --paper: #fff;
  --ink: #000;
  --line: #000;
  --line-soft: rgba(0, 0, 0, 0.16);
  --muted: rgba(0, 0, 0, 0.62);
  --mist: #f6f6f3;
  --danger: #7c1010;
  --radius: 4px;
  --space: 16px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

#app {
  height: 100%;
  overflow: hidden;
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea,
.button {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

button:hover,
.button:hover {
  background: var(--mist);
  color: var(--ink);
  border-color: var(--line);
}

select:hover,
input:hover,
textarea:hover {
  background: var(--mist);
  color: var(--ink);
  border-color: var(--line);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

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

.invert {
  background: var(--ink);
  color: var(--paper);
}

.invert:hover {
  background: #1f1f1f;
  color: var(--paper);
}

.ghost {
  background: transparent;
}

.danger {
  color: var(--danger);
  border-color: var(--danger);
}

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

.app-shell {
  width: min(1280px, calc(100vw - 24px));
  height: 100%;
  margin: 0 auto;
  position: relative;
  padding-bottom: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.06;
}

.app-shell::before {
  width: 560px;
  height: 180px;
  right: -180px;
  top: 92px;
  transform: rotate(-22deg);
}

.app-shell::after {
  width: 360px;
  height: 116px;
  left: -150px;
  bottom: 70px;
  transform: rotate(28deg);
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 12px 0;
}

.app-main {
  min-height: 0;
  overflow: hidden;
}

.page-home,
.page-scroll {
  height: 100%;
  min-height: 0;
}

.page-home {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.page-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.brand-cluster,
.brand,
.top-actions,
.toolbar-row,
.toolbar-group,
.actions-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.version,
.eyebrow,
.mono,
.meta-pill,
.lang-switch,
.pill,
.stat-line,
.subtle-line,
.path-line,
.detail-metadata,
.workspace-option .workspace-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.version,
.lang-switch,
.eyebrow,
.meta-pill,
.pill {
  font-size: 12px;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch select {
  height: 34px;
  padding: 0 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

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

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
  gap: 14px;
  align-items: stretch;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.home-hero > * {
  min-width: 0;
}

.ascii-banner {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ascii-banner pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(11px, 1.18vw, 16px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: pre;
}

.workspace-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1.44fr);
  gap: 16px;
  align-items: stretch;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.workspace-panel > * {
  min-width: 0;
}

.workspace-hero {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.workspace-hero p {
  margin: 0;
}

.workspace-hero h1 {
  margin: 0;
  min-width: 0;
  font-size: 26px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-path {
  display: block;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}

.workspace-path:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-panel,
.detail-panel,
.workspace-option,
.manager-row,
.empty-state,
.status-box,
.section-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.page-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 750;
}

.muted,
.help-text,
.workspace-option .workspace-time,
.status-box small {
  color: var(--muted);
}

.filter-panel,
.form-grid,
.stack,
.modal-stack {
  display: grid;
  gap: 12px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.filter-row-main {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.filter-row-compact {
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.3fr) minmax(92px, 0.22fr) auto auto;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label,
.section-heading small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
}

.workspace-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  min-width: 0;
}

.path-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.workspace-combo button {
  min-width: 64px;
}

.path-picker button {
  min-width: 64px;
}

.field textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

.list-grid,
.shared-grid,
.workspace-list,
.manager-list,
.settings-provider-list,
.check-grid {
  display: grid;
  gap: 10px;
}

.agent-picker {
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}

.agent-picker-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.agent-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.agent-pill input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.agent-pill span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.agent-pill input:checked + span {
  background: var(--ink);
  color: var(--paper);
}

.agent-pill:hover span {
  background: var(--mist);
}

.agent-pill:hover input:checked + span {
  background: var(--ink);
  color: var(--paper);
}

.agent-pill input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.agent-more {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 8px;
  align-self: flex-start;
}

.agent-more-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  align-self: flex-start;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.agent-more summary {
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.agent-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.section-heading,
.page-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.home-list-head {
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.home-list-head > div:first-child {
  min-width: 116px;
}

.home-list-controls {
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.session-search {
  flex: 0 1 300px;
  min-width: 220px;
}

.session-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
}

.home-provider-strip {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.home-provider-strip .agent-picker {
  flex-wrap: nowrap;
  overflow: hidden;
}

.list-grid,
.shared-grid {
  margin-top: 18px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.provider-section {
  border-top: 1px solid var(--line);
}

.provider-section summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.session-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.session-row {
  display: grid;
  gap: 10px;
  align-items: start;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.session-row:hover {
  background: #f7f7f7;
}

.session-row-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.session-info {
  min-width: 0;
}

.session-title-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.session-title {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.session-workspace {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  opacity: 0.72;
  min-width: 0;
}

.session-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  min-width: 0;
}

.session-id-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  opacity: 0.82;
}

.shared-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
}

.meta-dot {
  opacity: 0.45;
  font-size: 10px;
}

.meta-item {
  white-space: nowrap;
  opacity: 0.82;
}

.shared-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.shared-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.05fr) minmax(0, 0.82fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.shared-row:hover {
  background: var(--ink);
  color: var(--paper);
}

.shared-row > * {
  min-width: 0;
}

.binding-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.session-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

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

.msg-item {
  border: 1px solid var(--line);
}

.msg-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.msg-role {
  font-weight: 700;
  text-transform: uppercase;
}

.msg-body {
  padding: 12px;
  overflow-wrap: anywhere;
}

.tool-block,
.thinking-block {
  border-left: 4px solid var(--line);
  padding: 8px 10px;
  margin: 8px 0;
}

.block-label {
  display: block;
  margin-bottom: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.session-group,
.detail-layout,
.shared-layout,
.manager-layout {
  display: grid;
  gap: 16px;
}

.session-group header,
.section-panel header,
.detail-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.manager-row,
.workspace-option {
  padding: 12px;
}

.workspace-option:hover,
.manager-row:hover {
  background: var(--mist);
}

.workspace-switch-list {
  max-height: min(48vh, 420px);
  overflow: auto;
}

.workspace-switch-list .workspace-switch-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  justify-content: stretch;
  min-height: 58px;
  padding: 8px;
}

.workspace-option-main {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  justify-content: stretch;
  padding: 0 4px;
  border: 0;
  background: transparent;
  text-align: left;
}

.workspace-option-main:hover {
  background: transparent;
}

.workspace-delete {
  min-width: 56px;
  align-self: center;
}

.workspace-option-head,
.manager-row-head,
.detail-metadata,
.session-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-switch-list .workspace-option-head {
  align-items: center;
  line-height: 1.2;
}

.workspace-switch-list .workspace-option-head strong,
.workspace-switch-list .workspace-time {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
}

.workspace-option-path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.2;
}

.workspace-option h3,
.modal-card h3 {
  margin: 0;
  font-size: 16px;
}

.path-line {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.session-actions,
.modal-actions,
.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.msg-body p {
  margin: 0;
}

.inline-code {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fafafa;
}

.empty-state,
.status-box {
  padding: 18px;
}

.session-results {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
}

.success-callout {
  display: grid;
  gap: 4px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.verify-block {
  margin-top: 14px;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  margin-top: 18px;
}

.shared-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  margin-top: 18px;
}

.manager-layout {
  grid-template-columns: 1fr;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.workspace-list,
.manager-list {
  max-height: 360px;
  overflow: auto;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input,
.settings-provider-list input {
  width: 16px;
  height: 16px;
}

.detail-panel,
.section-panel {
  padding: 16px;
}

.settings-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.settings-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.settings-copy strong {
  font-size: 14px;
}

.settings-copy span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.settings-row select {
  min-width: 136px;
  height: 34px;
  padding: 0 8px;
}

.settings-row input[type="number"] {
  width: 110px;
  height: 34px;
  padding: 0 8px;
}

.settings-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.settings-check:hover {
  background: var(--ink);
  color: var(--paper);
}

.settings-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.settings-provider-list {
  max-height: 280px;
  overflow: auto;
}

.settings-agent-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 420px;
}

.manager-row {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

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

.manager-row-head label {
  display: flex;
  align-items: start;
  gap: 10px;
}

.manager-row-head input {
  margin-top: 3px;
}

.manager-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.manager-section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 16px;
}

.modal-card {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head p,
.modal-card p {
  margin: 0;
}

.loading-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 40;
  background: rgba(255, 255, 255, 0.72);
}

.loading-layer.active {
  display: grid;
}

.loading-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-right-color: transparent;
  animation: spin 0.9s linear infinite;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 45;
}

.toast {
  min-width: 260px;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.toast.error {
  border-color: var(--danger);
}

.toast h4,
.toast p {
  margin: 0;
}

.toast h4 {
  margin-bottom: 6px;
  font-size: 14px;
}

.manager-stats {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

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

@media (max-width: 860px) {
  .detail-layout,
  .shared-layout,
  .manager-layout,
  .home-hero,
  .workspace-panel,
  .filter-row-main,
  .filter-row-compact {
    grid-template-columns: 1fr;
  }

  .workspace-hero {
    padding-left: 0;
    border-left: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 16px, 1280px);
  }

  .topbar,
  .page-title,
  .session-header,
  .section-heading,
  .workspace-option-head,
  .detail-metadata {
    flex-direction: column;
    align-items: start;
  }

  .top-actions {
    justify-content: start;
  }

  .home-provider-strip {
    justify-content: start;
  }

  .workspace-combo,
  .path-picker,
  .session-row-main,
  .shared-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: start;
    margin-top: 8px;
  }

  .session-title,
  .session-workspace {
    white-space: normal;
  }

  .settings-provider-item {
    grid-template-columns: auto 1fr;
  }
}
