/* Generated from legacy styles.css: settings surface and provider/model management. */



.settings-page-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(20, 28, 38, 0.18);
  backdrop-filter: none;
  animation: rise-in 220ms ease;
}

.app-shell.is-settings-open .preview-webview {
  visibility: hidden;
  pointer-events: none;
}

.settings-page,
.settings-panel,
.provider-card,
.settings-empty-state {
  border: 1px solid var(--seg-border);
  box-shadow: none;
}

.settings-page {
  --settings-nav-width: 220px;
  width: min(100%, 1320px);
  height: min(calc(100dvh - 64px), 860px);
  max-height: min(calc(100dvh - 64px), 860px);
  border-color: var(--seg-border);
  border-radius: var(--seg-radius-md);
  background: var(--seg-shell);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  position: relative;
  will-change: transform;
}

@media (min-width: 1101px) {
  .settings-page::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--settings-nav-width);
    z-index: 1;
    width: 1px;
    background: var(--seg-border);
    pointer-events: none;
  }
}

.settings-panel,
.provider-card,
.settings-empty-state {
  border-radius: var(--seg-radius-sm);
}

.settings-page-header,
.settings-page-actions,
.settings-section-header,
.settings-actions-row,
.settings-inline-actions,
.provider-card-header,
.provider-card-statuses,
.settings-project-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-page-header {
  justify-content: flex-end;
  padding: 14px 16px 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.settings-page.is-dragging .settings-page-header,
.settings-page-overlay.is-dragging-settings-page {
  cursor: grabbing;
}

body.is-dragging-settings-page {
  cursor: grabbing;
  user-select: none;
}

.settings-page-close-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #66798b;
  cursor: pointer;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.settings-page-close-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-page-close-button:hover {
  color: #1c364b;
  transform: translateY(-1px);
}

.settings-page-close-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
  color: var(--color-accent-strong);
}

.settings-page-header h2,
.settings-section-header h3,
.provider-card h4,
.settings-empty-state h3 {
  margin: 0;
  color: #182532;
  letter-spacing: -0.03em;
}

.settings-page-copy,
.settings-section-header p,
.provider-card-copy,
.settings-helper-text,
.settings-empty-state p,
.provider-model-empty,
.provider-model-chip span,
.settings-project-chip span {
  margin: 0;
  color: #5b6f82;
  line-height: 1.55;
}

.settings-page-body,
.settings-page-shell {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--settings-nav-width) minmax(0, 1fr);
}

.settings-page-nav,
.settings-page-primary-nav {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 20px 14px 24px 18px;
  border-right: 0;
  background: #f7f7f4;
  display: grid;
  align-content: start;
  gap: 20px;
}

.settings-nav-item {
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(166, 186, 208, 0.36);
  background: rgba(255, 255, 255, 0.72);
  color: #41586d;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.settings-nav-item small {
  color: #7e92a6;
}

.settings-nav-item.is-active {
  background: #ffffff;
  border-color: rgba(95, 146, 194, 0.7);
  color: #1a3d5e;
}

.settings-nav-item:disabled {
  cursor: default;
  opacity: 0.66;
}

.settings-primary-nav-group {
  display: grid;
  gap: 10px;
}

.settings-primary-nav-group-label {
  margin: 0;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--seg-text-3);
}

.settings-primary-nav-group-items {
  display: grid;
  gap: 4px;
}

.settings-primary-nav-item {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #55697d;
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.settings-primary-nav-item:hover {
  border-color: rgba(163, 171, 180, 0.42);
  background: rgba(33, 43, 54, 0.04);
  color: #23384b;
}

.settings-primary-nav-item:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
  border-color: rgba(143, 153, 164, 0.52);
  background: rgba(33, 43, 54, 0.06);
  color: #182532;
}

.settings-primary-nav-item.is-active {
  border-color: transparent;
  background: var(--semantic-sidebar-tree-row-surface-active);
  color: #182532;
}

.settings-primary-nav-item:disabled {
  cursor: default;
  opacity: 0.66;
}

.settings-primary-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.82;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.settings-primary-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-primary-nav-copy {
  min-width: 0;
  display: block;
}

.settings-primary-nav-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.settings-primary-nav-item:hover .settings-primary-nav-icon,
.settings-primary-nav-item:focus-visible .settings-primary-nav-icon,
.settings-primary-nav-item.is-active .settings-primary-nav-icon {
  opacity: 1;
  color: var(--semantic-sidebar-tree-row-leading-active);
}

.settings-page-content,
.settings-page-main {
  position: relative;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  padding: 18px 20px 24px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.settings-toast-region {
  position: absolute;
  top: 18px;
  right: 56px;
  z-index: 8;
  width: min(360px, calc(100% - 104px));
  pointer-events: none;
}

.settings-page-main.is-services {
  overflow: hidden;
}

.settings-banner {
  padding: 12px 14px;
  border: 1px solid rgba(166, 186, 208, 0.42);
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.settings-toast-region .settings-banner {
  pointer-events: auto;
  box-shadow: var(--shadow-md);
}

.settings-banner.is-success {
  border-color: rgba(78, 146, 102, 0.36);
  color: #245c3a;
  background: #f4fbf6;
}

.settings-banner.is-error {
  border-color: rgba(197, 97, 78, 0.3);
  color: #8f3127;
  background: #fff6f3;
}

.settings-banner-text {
  min-width: 0;
}

.settings-banner-dismiss {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--seg-radius-xs);
  background: transparent;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 160ms ease,
    background 160ms ease;
}

.settings-banner-dismiss svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-banner-dismiss:hover,
.settings-banner-dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.settings-banner-dismiss:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.settings-empty-state,
.settings-panel {
  padding: 18px;
  background: var(--seg-panel);
  display: grid;
  gap: 16px;
}

.settings-project-chip {
  padding: 10px 12px;
  border: 1px solid rgba(163, 184, 205, 0.42);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 2px;
}

.settings-section-header {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.settings-section-header p {
  max-width: 520px;
}

.mcp-server-configuration-header {
  gap: 16px;
}

.mcp-server-configuration-header-side {
  min-width: min(100%, 560px);
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.mcp-server-configuration-header-side p {
  max-width: 520px;
}

.mcp-server-configuration-actions {
  flex: 0 0 auto;
  margin-left: 0;
}

.mcp-config-import-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--surface-overlay);
}

.mcp-config-import-modal {
  width: min(100%, 640px);
  max-height: min(100%, 680px);
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 22px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

.mcp-config-import-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mcp-config-import-header h3 {
  margin: 4px 0 0;
}

.mcp-config-import-example {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: rgba(255, 255, 255, 0.58);
}

.mcp-config-import-example summary {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--seg-text-2);
  font-size: 13px;
  font-weight: 600;
}

.mcp-config-import-example pre {
  margin: 0;
  padding: 0 12px 12px;
  overflow: auto;
  color: var(--seg-text-1);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.mcp-config-import-warnings {
  display: grid;
  gap: 6px;
  color: var(--seg-warning-text);
  font-size: 12px;
}

.mcp-config-import-actions {
  justify-content: flex-end;
}

.settings-field-grid,
.provider-grid {
  display: grid;
  gap: 14px;
}

.settings-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.settings-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #304355;
  letter-spacing: 0.01em;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--mix-seg-border-96-transparent-4);
  background: var(--seg-panel);
  color: var(--seg-text-1);
}

.settings-field textarea {
  min-height: 120px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  font: inherit;
}

.provider-model-picker {
  position: relative;
  min-width: 0;
}

.provider-model-picker-button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--mix-seg-border-96-transparent-4);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.provider-model-picker-button:hover,
.provider-model-picker-button:focus-visible,
.provider-model-picker-button.is-open {
  border-color: rgba(95, 146, 194, 0.62);
  box-shadow: 0 0 0 1px rgba(95, 146, 194, 0.12);
}

.provider-model-picker-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.provider-model-picker-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-model-picker-value.is-empty {
  color: var(--seg-text-3);
}

.provider-model-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  width: min(560px, calc(100vw - 96px));
  height: min(360px, calc(100dvh - 200px));
  max-height: 360px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(166, 186, 208, 0.48);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-dropdown-menu-surface);
  box-shadow: 0 22px 48px rgba(31, 48, 66, 0.16);
}

.settings-field:nth-child(even) .provider-model-picker-panel {
  right: 0;
  left: auto;
}

.provider-model-picker-search-row {
  display: block;
}

.provider-model-picker-search {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: #ffffff;
  color: var(--seg-text-1);
  font: inherit;
  outline: none;
}

.provider-model-picker-search::placeholder {
  color: var(--seg-text-3);
}

.provider-model-picker-search:focus {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  box-shadow: inset 0 0 0 1px var(--mix-seg-accent-16-transparent-84);
}

.provider-model-picker-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
}

.provider-model-picker-provider-list,
.provider-model-picker-model-list {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  display: grid;
  align-content: start;
  gap: 6px;
}

.provider-model-picker-provider {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--seg-radius-xs);
  background: transparent;
  color: #314353;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.provider-model-picker-provider:hover,
.provider-model-picker-provider:focus-visible,
.provider-model-picker-provider.is-active {
  border-color: rgba(125, 154, 184, 0.28);
  background: #eef4fa;
  color: #123a5a;
}

.provider-model-picker-model {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--seg-radius-xs);
  background: transparent;
  color: #314353;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.provider-model-picker-model:hover,
.provider-model-picker-model:focus-visible {
  border-color: rgba(95, 146, 194, 0.48);
  background: #eef4fa;
  color: #123a5a;
}

.provider-model-picker-provider-name,
.provider-model-picker-model-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.provider-model-picker-empty {
  margin: 0;
  padding: 14px;
  border-radius: var(--seg-radius-xs);
  background: rgba(238, 244, 250, 0.72);
  color: #607488;
  font-size: 13px;
  line-height: 1.5;
}

.mcp-tools-policy-panel {
  display: grid;
  gap: 14px;
}

.mcp-tools-policy-list {
  display: grid;
  gap: 12px;
}

.mcp-tool-policy-card {
  padding: 12px 14px;
  border: 1px solid var(--seg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 14px;
  align-items: center;
}

.mcp-tool-policy-card.is-expanded {
  align-items: start;
}

.mcp-tool-policy-main {
  min-width: 0;
}

.mcp-tool-policy-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mcp-tool-policy-toggle {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  flex: 1 1 auto;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

.mcp-tool-policy-toggle:hover .mcp-tool-policy-title,
.mcp-tool-policy-toggle:focus-visible .mcp-tool-policy-title {
  color: #153a5f;
}

.mcp-tool-policy-toggle:focus-visible {
  outline: 2px solid rgba(58, 116, 176, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.mcp-tool-policy-toggle-icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: #41586f;
  display: inline-flex;
  flex: 0 0 auto;
}

.mcp-tool-policy-toggle-icon svg {
  width: 14px;
  height: 14px;
}

.mcp-tool-policy-title-group {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mcp-tool-policy-title {
  margin: 0;
  color: var(--seg-text-1);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mcp-tool-policy-heading code {
  color: #5f7285;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  word-break: break-word;
}

.mcp-tool-policy-details p {
  margin: 0;
  color: var(--seg-text-2);
  font-size: 13px;
  line-height: 1.45;
}

.mcp-tool-policy-select select {
  width: 100%;
}

.mcp-tool-policy-details {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(163, 184, 205, 0.32);
}

.mcp-tool-policy-schema {
  display: grid;
  gap: 8px;
}

.mcp-tool-policy-details-label {
  color: #41586f;
  font-size: 12px;
  font-weight: 600;
}

.mcp-tool-policy-details pre {
  max-height: 240px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(163, 184, 205, 0.42);
  background: rgba(246, 249, 252, 0.9);
  color: #26394b;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.settings-field input::placeholder,
.settings-field textarea::placeholder {
  color: #8da0b4;
}

.settings-checkbox-field {
  align-content: start;
}

.settings-checkbox-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.settings-actions-row {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.settings-helper-text {
  max-width: 560px;
}

.settings-inline-actions {
  margin-left: auto;
}

.settings-services-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.settings-prompts-shell {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "library slots"
    "library detail";
  gap: 14px 18px;
}

.settings-prompts-shell.is-sidebar-hosted {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "slots"
    "detail";
}

.settings-page-main.prompt-presets-page-main {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.settings-page-main.prompt-presets-page-main > .settings-prompts-shell {
  flex: 1 1 auto;
  height: auto;
}

.settings-prompts-shell > .settings-prompts-layout {
  display: contents;
}

.settings-service-list-panel,
.settings-service-detail-panel,
.settings-default-layout,
.settings-general-layout,
.settings-appearance-layout,
.settings-developer-layout,
.settings-archive-layout {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

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

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

.settings-service-list-panel.mcp-servers-list-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.settings-provider-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.settings-provider-search-row .secondary-button {
  min-width: 86px;
  white-space: nowrap;
}

.settings-about-panel {
  gap: 0;
}

.settings-about-row,
.settings-about-toggle-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.settings-about-version-row {
  min-height: 82px;
}

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

.settings-about-copy h3 {
  margin: 0;
  color: var(--seg-text-1);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 650;
}

.settings-about-copy p,
.settings-about-description {
  margin: 0;
  color: var(--seg-text-2);
  font-size: 14px;
  line-height: 1.45;
}

.settings-about-title {
  color: var(--seg-text-1);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 640;
}

.settings-about-divider {
  height: 1px;
  margin: 16px 0 18px;
  background: var(--seg-border);
}

.settings-about-check-button {
  flex: 0 0 auto;
  min-width: 148px;
}

.settings-about-toggle-row {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.settings-about-toggle-row:disabled {
  cursor: default;
  opacity: 0.62;
}

.settings-about-toggle-row:focus-visible {
  outline: 2px solid var(--mix-seg-accent-42-seg-border-58);
  outline-offset: 6px;
}

.settings-about-toggle-row.is-active .settings-toggle-control {
  border-color: var(--seg-accent);
  background: var(--seg-accent);
}

.settings-about-toggle-row.is-active .settings-toggle-thumb {
  transform: translateX(20px);
}

.settings-about-status {
  margin: 18px 0 0;
  color: var(--seg-text-2);
  font-size: 13px;
  line-height: 1.45;
}

.settings-about-status.is-success {
  color: var(--seg-success-text);
}

.settings-about-status.is-error {
  color: var(--seg-danger-text);
}

.settings-storage-panel {
  gap: 16px;
}

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

.settings-storage-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--mix-seg-panel-muted-72-seg-panel-28);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

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

.settings-storage-copy strong {
  color: var(--seg-text-1);
  font-size: 14px;
  line-height: 1.3;
}

.settings-storage-copy span {
  color: var(--seg-text-2);
  font-size: 13px;
  line-height: 1.4;
}

.settings-storage-copy code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--seg-text-1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}

.settings-storage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-prompt-library-panel {
  grid-area: library;
  grid-template-rows: auto minmax(0, 1fr);
}

.settings-prompt-detail-panel {
  grid-area: detail;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}

.settings-service-list-panel.is-prompt-list-only {
  grid-template-rows: minmax(0, 1fr);
}

.settings-service-list-body {
  min-height: 0;
  overflow: hidden;
}

.mcp-servers-search-row {
  min-width: 0;
  margin-right: 4px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: rgba(255, 255, 255, 0.88);
}

.mcp-servers-search-row svg {
  width: 15px;
  height: 15px;
  color: var(--seg-text-3);
  stroke-width: 2;
}

.mcp-servers-search-row input {
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--seg-text-1);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.mcp-servers-search-row input::placeholder {
  color: var(--seg-text-3);
}

.mcp-servers-search-row:focus-within {
  border-color: var(--mix-seg-accent-42-seg-border-58);
  box-shadow: 0 0 0 3px var(--mix-seg-accent-12-transparent-88);
}

.mcp-servers-search-row button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mcp-servers-search-row button:hover,
.mcp-servers-search-row button:focus-visible {
  background: rgba(33, 51, 72, 0.08);
  color: var(--seg-text-1);
  outline: none;
}

.settings-service-list {
  min-height: 0;
  height: 100%;
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 4px;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
}

.settings-service-list-empty-state {
  min-height: 100%;
  align-content: center;
}

.mcp-servers-list-stack {
  align-content: start;
}

.mcp-servers-list-stack .settings-service-list-empty-state {
  min-height: auto;
}

.mcp-servers-new-button {
  min-height: 56px;
  place-items: center;
}

.mcp-servers-new-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.mcp-server-sidebar-row {
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--seg-border);
  border-radius: 8px;
  background: var(--mix-seg-panel-muted-72-seg-panel-28);
  color: var(--seg-text-1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.mcp-server-sidebar-row:hover,
.mcp-server-sidebar-row:focus-visible,
.mcp-server-sidebar-row.is-active {
  border-color: var(--mix-seg-accent-42-seg-border-58);
  background: var(--mix-seg-accent-soft-72-seg-panel-28);
  color: var(--seg-text-1);
  outline: none;
}

.mcp-server-sidebar-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mcp-server-sidebar-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--seg-text-1);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.mcp-server-sidebar-status {
  width: 8px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--seg-text-3);
  color: transparent;
}

.mcp-server-sidebar-status.is-enabled {
  background: var(--seg-success);
}

.mcp-server-sidebar-source,
.mcp-server-source-chip {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: #ecfdf5;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.mcp-server-sidebar-source {
  min-height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mcp-server-detail-panel {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding-right: 0;
  align-content: stretch;
  gap: 0;
}

.mcp-server-detail-shell {
  width: min(100%, 1120px);
  min-width: 0;
  min-height: 0;
  height: 100%;
  justify-self: center;
  display: grid;
}

.mcp-server-main-column {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  display: grid;
  align-content: start;
  gap: 14px;
}

.mcp-overview-card,
.mcp-config-card {
  min-width: 0;
  border: 1px solid var(--seg-border);
  border-radius: 10px;
  background: var(--seg-panel);
  box-shadow: none;
}

.mcp-overview-card {
  padding: 16px;
}

.mcp-overview-header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.mcp-overview-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.mcp-overview-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mcp-overview-copy h3 {
  margin: 0;
  color: var(--seg-text-1);
  font-size: 18px;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: 0;
}

.mcp-overview-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--seg-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.mcp-config-card-header h3 {
  margin: 0;
  color: var(--seg-text-1);
  letter-spacing: 0;
}

.mcp-config-card {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.mcp-editor-stack {
  display: grid;
  gap: 0;
}

.mcp-editor-section {
  min-width: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--seg-border);
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
  row-gap: 10px;
}

.mcp-editor-section > :not(h3) {
  grid-column: 2;
}

.mcp-editor-section + .mcp-editor-section {
  padding-top: 14px;
}

.mcp-editor-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mcp-editor-section h3 {
  margin: 0;
  color: var(--seg-text-1);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0;
}

.mcp-editor-section input,
.mcp-editor-section select {
  width: 100%;
}

.mcp-transport-segmented-control {
  min-width: 0;
  min-height: 44px;
  padding: 2px;
  border: 1px solid var(--mix-seg-border-96-transparent-4);
  border-radius: 8px;
  background: var(--mix-seg-panel-muted-72-seg-panel-28);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.mcp-transport-segment {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.mcp-transport-segment:hover,
.mcp-transport-segment:focus-visible {
  color: var(--seg-text-1);
  outline: none;
}

.mcp-transport-segment:focus-visible {
  box-shadow: 0 0 0 2px var(--mix-seg-accent-32-seg-border-68);
}

.mcp-transport-segment.is-active {
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: 0 1px 2px rgba(19, 33, 48, 0.12);
}

.mcp-line-editor,
.mcp-key-value-editor {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.mcp-line-editor-row,
.mcp-key-value-editor-row {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-items: center;
}

.mcp-line-editor-row {
  grid-template-columns: minmax(0, 1fr) 30px;
}

.mcp-key-value-editor-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px;
}

.mcp-editor-remove-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--seg-radius-xs);
  background: transparent;
  color: var(--seg-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mcp-editor-remove-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mcp-editor-remove-button:hover,
.mcp-editor-remove-button:focus-visible {
  background: var(--mix-seg-danger-8-seg-panel-92);
  color: var(--seg-danger-text);
  outline: none;
}

.mcp-editor-remove-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.mcp-editor-add-button {
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--seg-radius-xs);
  background: var(--seg-panel-muted);
  color: var(--seg-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.mcp-editor-add-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.mcp-editor-add-button:hover,
.mcp-editor-add-button:focus-visible {
  border-color: var(--mix-seg-accent-32-seg-border-68);
  background: var(--mix-seg-accent-soft-72-seg-panel-28);
  color: var(--seg-accent-strong);
  outline: none;
}

.mcp-config-card-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mcp-config-card-header h3 {
  font-size: 16px;
  font-weight: 720;
  line-height: 1.25;
}

.mcp-config-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.mcp-config-grid .settings-field {
  min-width: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--seg-border);
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
}

.mcp-config-grid .settings-field + .settings-field {
  padding-top: 12px;
}

.mcp-config-grid .settings-field:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mcp-config-grid .settings-field-label {
  align-self: center;
}

.mcp-config-grid .mcp-field-wide {
  grid-column: 1 / -1;
}

.mcp-enabled-field {
  min-height: auto;
  justify-content: initial;
}

.mcp-config-grid .settings-checkbox-field input {
  justify-self: start;
}

.mcp-tool-policy-card-shell {
  padding: 0;
  overflow: hidden;
}

.mcp-tool-policy-card-shell .mcp-tools-policy-panel {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.mcp-server-form-footer {
  min-width: 0;
  align-items: center;
  padding-bottom: 2px;
}

.mcp-server-form-actions {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mcp-server-form-actions .primary-button,
.mcp-server-form-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
}

.mcp-server-form-actions .primary-button svg,
.mcp-server-form-actions .secondary-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
}

@media (max-width: 1180px) {
  .mcp-server-detail-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .mcp-overview-header,
  .mcp-config-card-header,
  .mcp-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcp-config-grid .settings-field,
  .mcp-editor-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcp-editor-section > :not(h3) {
    grid-column: auto;
  }

  .mcp-config-grid .settings-field {
    align-items: stretch;
  }

  .mcp-config-grid .settings-field-label {
    align-self: auto;
  }

  .mcp-server-form-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

.settings-page-main.mcp-servers-page-main {
  padding: 0 20px 72px;
  background: #ffffff;
}

.settings-services-layout.mcp-servers-page-layout {
  gap: 24px;
}

.settings-service-list-panel.mcp-servers-list-panel {
  padding-top: 18px;
}

.mcp-server-sidebar-row {
  min-height: 44px;
  padding: 7px 10px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
}

.mcp-server-sidebar-row:hover,
.mcp-server-sidebar-row:focus-visible,
.mcp-server-sidebar-row.is-active {
  border-color: transparent;
  background: #f7f6f4;
}

.mcp-server-sidebar-row:hover .mcp-server-sidebar-name,
.mcp-server-sidebar-row:focus-visible .mcp-server-sidebar-name,
.mcp-server-sidebar-row.is-active .mcp-server-sidebar-name {
  color: #0f766e;
}

.mcp-server-sidebar-name {
  color: #202020;
  font-size: 15px;
  font-weight: 690;
}

.mcp-server-sidebar-status {
  width: 7px;
  height: 7px;
  background: #c7c2bc;
}

.mcp-servers-new-button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 7px 10px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: #202020;
  box-shadow: none;
}

.global-skills-new-menu-shell.mcp-servers-new-menu-shell {
  justify-self: stretch;
  width: 100%;
}

.global-skills-new-button.mcp-servers-new-button {
  justify-self: stretch;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 8px;
}

.mcp-servers-new-button:hover,
.mcp-servers-new-button:focus-visible,
.mcp-servers-new-button.is-active,
.global-skills-new-button.mcp-servers-new-button:hover,
.global-skills-new-button.mcp-servers-new-button:focus-visible,
.global-skills-new-button.mcp-servers-new-button.is-open,
.global-skills-new-button.mcp-servers-new-button.is-active {
  border-color: transparent;
  background: #f7f6f4;
  color: #0f766e;
  box-shadow: none;
  outline: none;
  transform: none;
}

.mcp-server-detail-panel {
  background: #ffffff;
}

.mcp-server-detail-shell {
  width: min(700px, calc(100% - 32px));
}

.mcp-server-main-column {
  gap: 28px;
  padding: 28px 0 72px;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.mcp-server-main-column::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mcp-overview-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mcp-overview-header {
  gap: 16px;
}

.mcp-overview-identity {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.mcp-overview-copy {
  gap: 8px;
}

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

.mcp-server-source-chip {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.mcp-overview-copy h3 {
  color: #202020;
  font-size: 27px;
  font-weight: 690;
  line-height: 1.14;
}

.mcp-overview-copy p {
  max-width: 620px;
  color: #77736d;
  font-size: 17px;
  line-height: 1.42;
}

.mcp-config-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 10px;
}

.mcp-config-card-header {
  justify-content: flex-start;
}

.mcp-config-card-header h3 {
  color: #202020;
  font-size: 17px;
  font-weight: 680;
}

.mcp-config-grid,
.mcp-editor-stack {
  overflow: hidden;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
}

.mcp-config-grid .settings-field,
.mcp-editor-section {
  min-height: 52px;
  padding: 8px 14px;
  border-bottom: 1px solid #eceae7;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  column-gap: 18px;
}

.mcp-config-grid .settings-field + .settings-field,
.mcp-editor-section + .mcp-editor-section {
  padding-top: 8px;
}

.mcp-editor-section:last-child,
.mcp-config-grid .settings-field:last-child {
  border-bottom: 0;
}

.mcp-config-grid .settings-field-label,
.mcp-editor-section h3 {
  color: #77736d;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: 0;
}

.mcp-config-grid .settings-field input,
.mcp-config-grid .settings-field select,
.mcp-editor-section input,
.mcp-editor-section select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #e9e7e4;
  border-radius: 8px;
  background: #ffffff;
  color: #242321;
  font-size: 14px;
}

.mcp-config-grid .settings-field input::placeholder,
.mcp-editor-section input::placeholder {
  color: #918d88;
}

.mcp-config-grid .settings-checkbox-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.mcp-transport-segmented-control {
  min-height: 34px;
  padding: 2px;
  border-color: #e9e7e4;
  border-radius: 8px;
  background: #f7f6f4;
}

.mcp-transport-segmented-control.is-connector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mcp-transport-segment {
  min-height: 28px;
  border-radius: 6px;
  color: #77736d;
  font-size: 14px;
  font-weight: 650;
}

.mcp-transport-segment:hover,
.mcp-transport-segment:focus-visible {
  color: #242321;
}

.mcp-transport-segment.is-active {
  background: #ffffff;
  color: #202020;
  box-shadow: 0 1px 3px rgba(41, 37, 36, 0.14);
}

.mcp-transport-segment:disabled {
  cursor: default;
  opacity: 0.7;
}

.mcp-line-editor,
.mcp-key-value-editor {
  gap: 8px;
}

.mcp-line-editor-row,
.mcp-key-value-editor-row {
  gap: 8px;
}

.mcp-editor-remove-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #9a958f;
}

.mcp-editor-remove-button:hover,
.mcp-editor-remove-button:focus-visible {
  background: rgba(41, 37, 36, 0.045);
  color: #ef4444;
}

.mcp-editor-add-button {
  min-height: 28px;
  border-radius: 7px;
  background: #f7f6f4;
  color: #77736d;
  font-size: 14px;
  font-weight: 520;
}

.mcp-editor-add-button:hover,
.mcp-editor-add-button:focus-visible {
  border-color: transparent;
  background: #efeeeb;
  color: #242321;
}

.mcp-tool-policy-card-shell {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mcp-tool-policy-card-shell .mcp-tools-policy-panel {
  padding: 0;
  gap: 10px;
}

.mcp-tool-policy-card-shell .settings-section-header h3 {
  color: #202020;
  font-size: 17px;
  font-weight: 680;
}

.mcp-tools-policy-list {
  overflow: hidden;
  gap: 0;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
}

.mcp-tool-policy-card {
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mcp-tool-policy-card + .mcp-tool-policy-card {
  border-top: 1px solid #eceae7;
}

.mcp-tool-policy-card:hover,
.mcp-tool-policy-card:focus-within,
.mcp-tool-policy-card.is-expanded {
  background: rgba(41, 37, 36, 0.035);
}

.mcp-tool-policy-title {
  color: #242321;
  font-size: 15px;
  font-weight: 680;
}

.mcp-tool-policy-toggle:hover .mcp-tool-policy-title,
.mcp-tool-policy-toggle:focus-visible .mcp-tool-policy-title {
  color: #0f766e;
}

.mcp-tool-policy-heading code,
.mcp-tool-policy-details p {
  color: #7a7671;
}

.mcp-tool-policy-select select {
  min-height: 34px;
  border: 1px solid #e9e7e4;
  border-radius: 8px;
  background: #ffffff;
  color: #242321;
  font-size: 14px;
}

.mcp-tool-policy-details {
  border-top-color: #f1efec;
}

.mcp-tool-policy-details pre {
  border-color: #eceae7;
  border-radius: 8px;
  background: #faf9f7;
  color: #34312d;
}

@media (max-width: 860px) {
  .settings-page-main.mcp-servers-page-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mcp-server-detail-shell {
    width: 100%;
  }

  .mcp-server-main-column {
    padding-top: 18px;
  }

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

  .mcp-config-grid .settings-field,
  .mcp-editor-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcp-editor-section > :not(h3) {
    grid-column: auto;
  }
}

.settings-service-item,
.settings-detail-hero,
.settings-detail-meta-card {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel);
  box-shadow: none;
}

.settings-service-item {
  width: 100%;
  padding: 14px;
  border-radius: var(--seg-radius-xs);
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
  color: var(--seg-text-2);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.settings-service-item:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 146, 194, 0.6);
  background: #ffffff;
  color: var(--seg-text-1);
}

.settings-service-item.is-active {
  background: #e7f2fb;
  border-color: rgba(95, 146, 194, 0.7);
}

.settings-service-item-header,
.settings-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-service-item-title,
.settings-detail-hero-title,
.provider-row-title {
  min-width: 0;
  display: flex;
  gap: 10px;
}

.settings-service-item-title {
  flex: 1 1 auto;
  align-items: center;
}

.settings-detail-hero-title,
.provider-row-title {
  align-items: flex-start;
}

.settings-detail-hero-title > div,
.provider-row-title > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.settings-service-item strong,
.settings-detail-meta-card strong {
  color: #1b2f43;
}

.settings-service-item-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-logo {
  position: relative;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--seg-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.provider-logo.is-large {
  width: 36px;
  height: 36px;
}

.provider-logo-fallback {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.provider-logo.is-large .provider-logo-fallback {
  font-size: 14px;
}

.provider-logo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: transparent;
}

.provider-logo-image[hidden] {
  display: none;
}

.settings-status-indicator {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.settings-status-indicator svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-status-indicator.is-connected {
  color: #2f8a57;
}

.settings-status-indicator.is-disconnected {
  color: #8da0b4;
}

.provider-detail-card {
  padding: 18px;
  gap: 0;
}

.provider-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.provider-detail-header h3 {
  margin: 0;
  color: #141719;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.provider-detail-header p {
  margin: 6px 0 0;
  color: #5e666f;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.provider-detail-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9aa4ad;
  box-shadow: 0 0 0 2px rgba(154, 164, 173, 0.12);
  flex: 0 0 auto;
}

.provider-detail-status-dot.is-connected {
  background: #13a53f;
  box-shadow: 0 0 0 2px rgba(19, 165, 63, 0.12);
}

.provider-detail-divider {
  height: 1px;
  margin: 16px 0 14px;
  background: var(--seg-border);
}

.provider-detail-body {
  display: grid;
  gap: 14px;
}

.provider-detail-field {
  display: grid;
  gap: 8px;
}

.provider-radio-stack {
  display: grid;
  gap: 9px;
}

.provider-radio-option {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f252b;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
}

.provider-radio-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #747d86;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
}

.provider-radio-option input:checked {
  border-color: #2a2a28;
  background: #2a2a28;
}

.provider-radio-option input:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.provider-method-select {
  max-width: 340px;
}

.provider-key-field {
  gap: 6px;
}

.provider-key-input-wrap {
  position: relative;
  display: block;
}

.provider-key-input-wrap input {
  width: 100%;
  padding-right: 42px;
}

.provider-key-visibility-button {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #87909a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.provider-key-visibility-button:hover {
  background: rgba(27, 47, 67, 0.06);
  color: #3b4651;
}

.provider-key-visibility-button svg,
.provider-advanced-settings summary svg {
  width: 16px;
  height: 16px;
}

.provider-detail-helper {
  margin: 0;
  color: #c19783;
  font-size: 13px;
  line-height: 1.55;
}

.provider-account-summary {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.provider-account-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #68717a;
  font-size: 13px;
  line-height: 1.45;
}

.provider-account-summary-row strong {
  color: #1f252b;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.provider-advanced-settings {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: #ffffff;
  overflow: hidden;
}

.provider-advanced-settings summary {
  min-height: 44px;
  padding: 0 12px;
  color: #1f252b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.provider-advanced-settings summary::-webkit-details-marker {
  display: none;
}

.provider-advanced-settings[open] summary svg {
  transform: rotate(180deg);
}

.provider-advanced-settings-body {
  padding: 0 12px 12px;
  display: grid;
  gap: 8px;
}

.provider-detail-footer {
  margin: 16px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--seg-border);
  display: flex;
  justify-content: flex-end;
}

.settings-service-item-copy,
.settings-detail-hero p,
.settings-detail-meta-card p {
  margin: 0;
  color: #5b6f82;
  line-height: 1.55;
}

.settings-prompt-list,
.settings-prompt-group,
.settings-prompt-group-list {
  display: grid;
  gap: 12px;
}

.settings-prompt-group-label {
  margin: 0;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a99a8;
}

.settings-prompt-item-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-prompt-library {
  align-content: start;
  gap: 8px;
}

.prompt-presets-navigator-bar {
  align-items: center;
}

.prompt-presets-navigator-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-presets-open-button,
.prompt-presets-install-button,
.prompt-presets-new-button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prompt-presets-open-button {
  max-width: 160px;
}

.prompt-presets-open-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-presets-open-button svg,
.prompt-presets-install-button svg,
.prompt-presets-new-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.prompt-presets-tree-body {
  min-height: 0;
  overflow: hidden;
}

.prompt-presets-tree {
  height: 100%;
}

.prompt-tree-folder .skill-tree-row {
  font-weight: 600;
}

.prompt-tree-file .skill-tree-row {
  padding-right: 6px;
}

.prompt-tree-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--seg-panel-muted);
  color: var(--seg-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.prompt-tree-row-badges {
  margin-left: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.prompt-tree-row-badges .settings-badge {
  min-height: 18px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.prompt-tree-file .prompt-tree-delete-button {
  opacity: 1;
  pointer-events: auto;
}

.prompt-tree-empty {
  padding: 2px 8px 6px 26px;
  font-size: 12px;
}

.settings-prompt-slots-panel {
  grid-area: slots;
  gap: 0;
  padding: 12px;
  border-color: rgba(196, 205, 214, 0.72);
  border-radius: var(--seg-radius-sm);
  background: #fcfbf8;
  box-shadow: 0 8px 24px rgba(22, 34, 48, 0.03);
}

.settings-prompt-section-bar,
.settings-prompt-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-prompt-section-bar h3,
.settings-prompt-editor-header h3 {
  margin: 0;
  color: #182532;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.settings-prompt-editor-meta {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.settings-prompt-assignment-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.settings-prompt-assignment-row {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.settings-prompt-assignment-row + .settings-prompt-assignment-row {
  border-top: 0;
}

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

.settings-prompt-assignment-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--seg-text-1);
  letter-spacing: -0.01em;
}

.settings-prompt-assignment-note {
  font-size: 11px;
  line-height: 1.35;
  color: #728392;
  white-space: nowrap;
}

.settings-prompt-assignment-control {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

.settings-prompt-assignment-actions {
  min-width: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.settings-prompt-assignment-control select {
  width: clamp(220px, 18vw, 360px);
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(195, 204, 214, 0.82);
  border-radius: var(--seg-radius-xs);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 37, 50, 0.08);
}

.settings-prompt-assignment-actions .secondary-button {
  min-width: 78px;
  min-height: 36px;
  border-color: rgba(195, 204, 214, 0.82);
  background: #ffffff;
  color: #33485d;
  box-shadow: 0 1px 2px rgba(24, 37, 50, 0.08);
}

.settings-prompt-assignment-actions .secondary-button:hover,
.settings-prompt-assignment-actions .secondary-button:focus-visible {
  background: #ffffff;
  color: #162536;
}

.settings-prompt-assignment-actions .secondary-button:disabled,
.settings-prompt-assignment-control select:disabled {
  box-shadow: none;
}

.settings-prompt-status-copy {
  max-width: 520px;
}

.settings-prompt-library-item {
  gap: 10px;
  padding: 12px;
}

.settings-prompt-library-item .settings-service-item-header {
  align-items: center;
}

.settings-prompt-library-item strong {
  font-size: 14px;
  line-height: 1.3;
}

.settings-prompt-editor-panel {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 12px;
}

.settings-prompt-editor-field {
  min-height: 0;
  height: 100%;
  display: grid;
  gap: 0;
}

.settings-prompt-editor-toolbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-prompt-editor-toolbar .settings-inline-actions {
  margin-left: 0;
}

.settings-prompt-editor-mode-switch {
  min-height: 34px;
  padding: 3px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: var(--seg-panel-muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.settings-prompt-editor-mode-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-2);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.settings-prompt-editor-mode-button:hover,
.settings-prompt-editor-mode-button:focus-visible {
  background: #ffffff;
  color: var(--seg-text-1);
}

.settings-prompt-editor-mode-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.settings-prompt-editor-mode-button.is-active {
  background: #ffffff;
  color: var(--seg-text-1);
  box-shadow: 0 1px 2px rgba(24, 37, 50, 0.08);
}

.settings-prompt-name-input {
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #182532;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.settings-prompt-name-input:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.settings-prompt-editor {
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 14px 16px;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  resize: none;
}

.settings-prompt-preview-surface {
  min-height: 0;
  height: 100%;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 16px 18px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: #ffffff;
  color: var(--seg-text-1);
}

.settings-prompt-markdown-preview {
  color: var(--seg-text-1);
  font-size: 14px;
  line-height: 1.7;
}

.settings-prompt-markdown-preview h1 {
  font-size: 20px;
}

.settings-prompt-markdown-preview h2 {
  font-size: 18px;
}

.settings-prompt-preview-empty {
  margin: 0;
  color: var(--seg-text-3);
  font-size: 13px;
  line-height: 1.5;
}

.settings-prompt-source-path {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-search-field input {
  width: 100%;
}

.settings-service-detail-panel {
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

@media (max-width: 1280px) {
  .settings-prompts-layout,
  .settings-services-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-field-grid,
  .provider-grid,
  .settings-detail-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .settings-prompts-shell {
    overflow: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "library"
      "slots"
      "detail";
  }

  .settings-about-row,
  .settings-about-toggle-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-about-check-button {
    width: 100%;
  }

  .settings-storage-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .settings-storage-actions {
    width: 100%;
    justify-content: stretch;
  }

  .settings-storage-actions .secondary-button {
    flex: 1 1 0;
  }

  .settings-prompt-section-bar,
  .settings-prompt-editor-header {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-prompt-assignment-list {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-prompt-assignment-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .settings-prompt-assignment-control {
    width: 100%;
  }

  .settings-prompt-assignment-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .settings-prompt-assignment-control select {
    width: 100%;
    min-width: 0;
  }
}

.settings-detail-hero {
  padding: 18px;
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel);
}

.settings-detail-hero h3 {
  margin: 0;
  color: #182532;
  letter-spacing: -0.03em;
}

.settings-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-detail-meta-card {
  padding: 16px;
  border-radius: var(--seg-radius-xs);
  color: var(--seg-text-2);
  display: grid;
  gap: 6px;
}

.settings-detail-meta-card strong {
  font-size: 15px;
}

.settings-detail-empty-state {
  min-height: 100%;
  align-content: center;
}

.provider-card {
  padding: 16px;
  background: var(--seg-panel);
  display: grid;
  gap: 14px;
}

.provider-card.is-muted {
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 100%);
}

.provider-card-header {
  justify-content: space-between;
  align-items: flex-start;
}

.provider-card h4 {
  font-size: 18px;
  line-height: 1.15;
}

.provider-card-statuses {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.settings-badge,
.provider-model-chip {
  border: 1px solid rgba(166, 186, 208, 0.42);
  background: rgba(255, 255, 255, 0.86);
}

.settings-badge {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: #4b6074;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.provider-model-strip {
  display: grid;
  gap: 8px;
}

.provider-model-chip {
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}

.provider-model-chip strong {
  color: #1d3144;
  font-size: 13px;
}

.settings-page-content {
  position: relative;
}

.settings-section-summary,
.provider-row,
.provider-row-heading,
.provider-row-statuses,
.provider-row-actions,
.model-row-heading,
.model-row-statuses,
.provider-connect-header {
  display: flex;
  gap: 12px;
}

.settings-section-summary {
  flex-wrap: wrap;
}

.settings-summary-card,
.provider-row,
.model-row,
.provider-connect-modal {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel);
  box-shadow: none;
}

.settings-summary-card {
  min-width: 180px;
  flex: 1 1 220px;
  padding: 16px;
  border-radius: var(--seg-radius-xs);
  color: var(--seg-text-2);
  display: grid;
  gap: 6px;
}

.settings-summary-card strong {
  font-size: 28px;
  color: #1b2f43;
  letter-spacing: -0.04em;
}

.provider-list,
.model-list,
.provider-connect-body {
  display: grid;
  gap: 14px;
}

.provider-row,
.model-row {
  padding: 16px 18px;
  border-radius: var(--seg-radius-sm);
}

.provider-row {
  align-items: flex-start;
  justify-content: space-between;
}

.provider-row.is-muted {
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 100%);
}

.provider-row-main,
.model-row-main {
  min-width: 0;
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
}

.provider-row-heading,
.model-row-heading,
.provider-connect-header {
  align-items: flex-start;
  justify-content: space-between;
}

.provider-row h4,
.model-row h4,
.provider-connect-header h3 {
  margin: 0;
  color: #182532;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.provider-row-statuses,
.model-row-statuses {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.provider-row-copy,
.model-row-copy,
.provider-connect-header p,
.settings-summary-card p {
  margin: 0;
  color: #5b6f82;
  line-height: 1.6;
}

.settings-toggle-card {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel);
  color: #1b2f43;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  box-shadow: none;
}

.settings-toggle-card:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 146, 194, 0.62);
  box-shadow: 0 14px 34px rgba(46, 81, 118, 0.06);
}

.settings-toggle-card:focus-visible {
  outline: none;
  border-color: rgba(15, 103, 170, 0.72);
  box-shadow: 0 0 0 1px rgba(15, 103, 170, 0.12);
}

.settings-toggle-card.is-active {
  border-color: rgba(79, 116, 200, 0.22);
  background: var(--seg-accent-soft);
}

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

.settings-toggle-copy strong {
  color: #182532;
  font-size: 15px;
}

.settings-toggle-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-toggle-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #57718a;
}

.settings-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-toggle-copy small {
  color: #5b6f82;
  line-height: 1.55;
}

.settings-toggle-control {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border: 1px solid var(--seg-border);
  border-radius: 999px;
  background: #d7dde6;
}

.settings-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  transition: transform 160ms ease;
}

.settings-toggle-card.is-active .settings-toggle-control {
  border-color: rgba(79, 116, 200, 0.26);
  background: var(--seg-accent);
}

.settings-toggle-card.is-active .settings-toggle-thumb {
  transform: translateX(20px);
}

.settings-color-mode-group {
  display: flex;
  gap: 8px;
}

.settings-theme-palette-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-theme-palette-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel);
  color: var(--seg-text-2);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.settings-theme-palette-option:hover,
.settings-theme-palette-option:focus-visible {
  border-color: var(--mix-seg-accent-22-seg-border-78);
  background: var(--mix-seg-panel-muted-72-seg-panel-28);
  color: var(--seg-text-1);
}

.settings-theme-palette-option.is-active {
  border-color: var(--mix-seg-accent-28-seg-border-72);
  background: var(--mix-seg-accent-soft-74-seg-panel-26);
  color: var(--seg-text-1);
}

.settings-theme-palette-swatch {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--mix-seg-panel-muted-74-seg-panel-26);
  box-shadow: inset 0 0 0 1px var(--mix-seg-border-84-transparent-16);
}

.settings-theme-palette-swatch span {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.settings-theme-palette-swatch.is-terra span:nth-child(1) {
  background: #d46b63;
}

.settings-theme-palette-swatch.is-terra span:nth-child(2) {
  background: #fca5a5;
}

.settings-theme-palette-swatch.is-terra span:nth-child(3) {
  background: #fafaf9;
}

.settings-theme-palette-swatch.is-sage span:nth-child(1) {
  background: #0f766e;
}

.settings-theme-palette-swatch.is-sage span:nth-child(2) {
  background: #2dd4bf;
}

.settings-theme-palette-swatch.is-sage span:nth-child(3) {
  background: #f8fafc;
}

.settings-theme-palette-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.settings-theme-palette-copy strong {
  color: currentColor;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.settings-theme-palette-copy small {
  color: var(--seg-text-3);
  line-height: 1.5;
}

.settings-theme-palette-option.is-active .settings-theme-palette-copy small {
  color: var(--seg-text-2);
}

.settings-color-mode-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.settings-color-mode-option:hover {
  border-color: var(--color-border-default);
  color: var(--color-text-primary);
}

.settings-color-mode-option.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.settings-theme-config-meta,
.settings-theme-config-preview,
.settings-theme-config-path {
  display: grid;
  gap: 8px;
}

.settings-theme-config-path,
.settings-theme-token-card,
.settings-theme-config-preview textarea {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
}

.settings-theme-config-path {
  padding: 14px;
  background: var(--mix-seg-panel-muted-72-seg-panel-28);
}

.settings-theme-config-path code,
.settings-theme-token-name,
.settings-theme-color-input {
  font-family: var(--font-mono);
  font-size: 12px;
}

.settings-theme-config-error {
  color: var(--seg-danger-text);
}

.settings-theme-config-preview textarea {
  min-height: 240px;
  width: 100%;
  padding: 14px;
  resize: vertical;
  background: var(--mix-seg-shell-88-seg-panel-12);
  color: var(--seg-text-1);
  line-height: 1.55;
}

.settings-theme-token-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.settings-theme-token-panel {
  padding: 12px;
  gap: 10px;
}

.settings-theme-token-panel .settings-section-header {
  gap: 8px;
}

.settings-theme-token-panel .settings-section-header h3 {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.settings-theme-token-card {
  min-height: 38px;
  padding: 8px;
  background: var(--settings-theme-token-bg);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 520px);
  align-items: center;
  gap: 10px;
}

.settings-theme-token-card.is-customized {
  border-color: var(--settings-theme-token-custom-border);
  background: var(--settings-theme-token-custom-bg);
}

.settings-theme-token-copy,
.settings-theme-token-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-theme-token-copy {
  min-width: 0;
}

.settings-theme-token-copy strong {
  min-width: 92px;
  color: var(--seg-text-1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.settings-theme-token-name {
  min-width: 0;
  color: var(--seg-text-3);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-theme-token-controls {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.settings-theme-token-mode {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(88px, 96px);
  align-items: center;
  gap: 7px;
}

.settings-theme-token-mode span {
  color: var(--seg-text-3);
  font-size: 11px;
  font-weight: 700;
}

.settings-theme-color-picker {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.settings-theme-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.settings-theme-color-picker::-webkit-color-swatch {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
}

.settings-theme-color-input {
  min-width: 0;
  min-height: 28px;
  width: 96px;
  padding: 4px 7px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: var(--settings-theme-token-code-bg);
  color: var(--seg-text-1);
  text-align: center;
}

.settings-theme-color-input:focus-visible {
  border-color: rgba(79, 116, 200, 0.38);
  box-shadow: inset 0 0 0 1px rgba(79, 116, 200, 0.12);
  outline: none;
}

.settings-theme-token-reset {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-theme-token-reset svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 720px) {
  .settings-theme-token-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
  }

  .settings-theme-token-copy {
    justify-content: space-between;
  }

  .settings-theme-token-controls {
    justify-content: space-between;
  }

  .settings-theme-token-mode {
    grid-template-columns: auto auto minmax(84px, 1fr);
  }
}

.settings-color-mode-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.settings-color-mode-option.is-active .settings-color-mode-icon {
  opacity: 1;
}

.provider-row-models,
.model-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-row-actions {
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.settings-badge.is-highlight {
  border-color: rgba(95, 146, 194, 0.7);
  background: #e7f2fb;
  color: #1a3d5e;
}

.settings-badge.is-warning {
  border-color: rgba(184, 134, 11, 0.35);
  background: #fff7df;
  color: #8a5a00;
}

.settings-archive-list {
  display: grid;
  gap: 12px;
}

.settings-archive-item {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel);
  box-shadow: none;
  padding: 16px 18px;
  border-radius: var(--seg-radius-sm);
  display: grid;
  gap: 14px;
}

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

.settings-archive-heading,
.settings-archive-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #5b6f82;
  line-height: 1.5;
}

.settings-archive-meta span {
  min-width: 0;
}

.settings-archive-badge {
  flex: 0 0 auto;
}

.provider-connect-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 28, 38, 0.18);
  backdrop-filter: none;
}

.provider-connect-modal {
  width: min(100%, 560px);
  max-height: min(100%, 520px);
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 22px;
  border-radius: var(--seg-radius-sm);
  display: grid;
  gap: 18px;
}

.provider-connect-header {
  align-items: flex-start;
}

.provider-connect-body {
  grid-template-columns: 1fr;
}

.label,
.turn-meta,
.trace-item-label,
.trace-item-status,
.assistant-section-label,
.assistant-header time,
.workspace-group-header,
.project-row-meta,
.settings-helper-text {
  color: var(--ui-text-3);
}

.sidebar-action,
.sidebar-toggle-button.is-sidebar,
.sidebar-toggle-button.is-top-menu,
.top-menu-view-button,
.canvas-top-menu-button,
.sidebar-settings,
.row-action,
.composer-utility-chip,
.composer-selector-button,
.terminal-panel-toggle-button,
.terminal-tab-close,
.terminal-panel-create,
.settings-page-close-button {
  border-radius: var(--ui-radius-xs);
}

.sidebar-toggle-button.is-top-menu,
.session-tab,
.canvas-top-menu-button,
.right-sidebar-filter-chip,
.settings-badge,
.git-branch-badge,
.trace-item-status {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ui-text-2);
  box-shadow: none;
}

.session-tab.is-active,
.canvas-top-menu-button.is-active,
.right-sidebar-filter-chip.is-active,
.settings-badge.is-highlight {
  background: rgba(29, 110, 255, 0.12);
  color: var(--ui-accent-strong);
}

.assistant-shell,
.empty-state,
.composer-menu-panel,
.composer-utility-git-branch-panel,
.git-branch-create-dialog,
.right-sidebar-change-row,
.right-sidebar-metric,
.right-sidebar-diff-hunk,
.terminal-surface {
  border-radius: var(--ui-radius-md);
}

.settings-service-item:hover,
.settings-toggle-card:hover,
.settings-page-close-button:hover {
  transform: translateY(-1px);
}

.settings-page-header h2,
.assistant-header h3,
.right-sidebar-panel-copy h3 {
  text-wrap: balance;
}

.panel-toolbar-copy strong,
.workspace-group-header strong,
.assistant-header h3,
.right-sidebar-panel-copy h3,
.session-canvas-top-menu-copy strong,
.settings-page-header h2,
.settings-section-header h3,
.provider-row h4,
.model-row h4,
.provider-connect-header h3 {
  color: var(--seg-text-1);
}

.label,
.turn-meta,
.trace-item-label,
.trace-item-status,
.assistant-section-label,
.assistant-header time,
.workspace-group-header,
.project-row-meta,
.settings-helper-text,
.settings-page-copy,
.settings-section-header p,
.provider-row-copy,
.model-row-copy,
.right-sidebar-status-copy,
.right-sidebar-status-summary,
.right-sidebar-metric-label,
.right-sidebar-section p {
  color: var(--seg-text-3);
}

.sidebar-toggle-button.is-rail,
.activity-rail-bottom .terminal-panel-toggle-button,
.top-menu-view-button,
.sidebar-action,
.sidebar-toggle-button.is-sidebar,
.sidebar-settings,
.row-action,
.terminal-tab-close,
.terminal-panel-create,
.terminal-panel-toggle-button,
.settings-page-close-button {
  border: 1px solid transparent;
  border-radius: var(--seg-radius-xs);
  background: transparent;
  box-shadow: none;
  color: var(--seg-text-2);
}

.sidebar-toggle-button.is-top-menu,
.session-tab,
.canvas-top-menu-button,
.right-sidebar-filter-chip,
.settings-badge,
.git-branch-badge,
.trace-item-status,
.composer-utility-chip,
.composer-selector-button,
.composer-attachment-chip,
.composer-menu-option,
.terminal-tab,
.right-sidebar-metric,
.right-sidebar-change-row,
.right-sidebar-diff-hunk {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: var(--seg-panel);
  color: var(--seg-text-2);
  box-shadow: none;
}

.sidebar-toggle-button.is-top-menu:hover,
.sidebar-toggle-button.is-top-menu:focus-visible,
.session-tab:hover,
.session-tab:focus-visible,
.canvas-top-menu-button:hover,
.canvas-top-menu-button:focus-visible,
.right-sidebar-filter-chip:hover,
.right-sidebar-filter-chip:focus-visible,
.composer-selector-button:hover,
.composer-selector-button:focus-visible,
.composer-menu-option:hover,
.composer-menu-option:focus-visible {
  border-color: var(--seg-border);
  background: #ffffff;
  color: var(--seg-text-1);
  box-shadow: none;
}

.session-tab.is-active,
.canvas-top-menu-button.is-active,
.right-sidebar-filter-chip.is-active,
.settings-badge.is-highlight,
.composer-menu-option.is-selected,
.terminal-tab.is-active {
  border-color: rgba(79, 116, 200, 0.22);
  background: var(--seg-accent-soft);
  color: var(--seg-accent-strong);
}

.settings-badge.is-plugin {
  border-color: rgba(15, 118, 110, 0.22);
  background: #ecfdf5;
  color: #0f766e;
}

.assistant-shell,
.assistant-section,
.empty-state,
.git-branch-create-dialog {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel);
  box-shadow: none;
}

.composer-menu-panel,
.composer-utility-git-branch-panel {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-dropdown-menu-surface);
  box-shadow: none;
}

.right-sidebar-search-field input,
.settings-field input,
.settings-field select,
.settings-field textarea,
.git-branch-create-field input {
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: #ffffff;
  box-shadow: none;
}

.right-sidebar-search-field input:focus-visible,
.settings-field input:focus-visible,
.settings-field select:focus-visible,
.settings-field textarea:focus-visible,
.git-branch-create-field input:focus-visible {
  border-color: rgba(79, 116, 200, 0.38);
  box-shadow: inset 0 0 0 1px rgba(79, 116, 200, 0.12);
  outline: none;
}

.right-sidebar-change-type.is-renamed,
.settings-badge.is-warning,
.context-pressure-indicator.is-medium {
  color: var(--seg-warning);
}

.settings-page-overlay,
.provider-connect-overlay,
.git-branch-create-overlay {
  background: rgba(20, 28, 38, 0.18);
  backdrop-filter: none;
}

/* Keep standalone icon buttons aligned to the sidebar toggle footprint. */

.sidebar-action,
.sidebar-toggle-button.is-sidebar,
.sidebar-toggle-button.is-top-menu,
.top-menu-view-button,
.sidebar-settings,
.row-action,
.project-row-action,
.skill-tree-row-action,
.canvas-region-top-menu-add-button,
.terminal-panel-toggle-button,
.terminal-panel-create,
.settings-page-close-button,
.composer-selector-button.is-icon-only,
.composer-actions .primary-button.is-icon-only {
  width: var(--icon-button-size);
  min-width: var(--icon-button-size);
  height: var(--icon-button-size);
  min-height: var(--icon-button-size);
  padding: 0;
}

/* Keep icon-only controls on Accent States, even when legacy chrome rules differ by surface. */

.window-control,
.sidebar-action,
.sidebar-toggle-button.is-sidebar,
.sidebar-toggle-button.is-rail,
.sidebar-settings,
.row-action,
.project-row-action,
.skill-tree-row-action,
.canvas-region-top-menu .session-tab-close,
.canvas-region-top-menu .sidebar-toggle-button.is-top-menu,
.canvas-region-top-menu-add-button,
.terminal-panel-toggle-button,
.activity-rail-bottom .terminal-panel-toggle-button,
.terminal-tab-close,
.terminal-panel-create,
.settings-page-close-button,
.session-canvas-top-menu .canvas-top-menu-editor-launch-button,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button,
.composer .composer-selector-button.is-icon-only,
.composer .composer-actions .primary-button.is-icon-only {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon);
}

.window-control:hover,
.window-control:focus-visible,
.window-control.is-close:hover,
.window-control.is-close:focus-visible,
.sidebar-action:hover,
.sidebar-action:focus-visible,
.sidebar-toggle-button.is-sidebar:hover,
.sidebar-toggle-button.is-sidebar:focus-visible,
.sidebar-toggle-button.is-rail:hover,
.sidebar-toggle-button.is-rail:focus-visible,
.sidebar-settings:hover,
.sidebar-settings:focus-visible,
.row-action:hover,
.row-action:focus-visible,
.project-row-action:hover,
.project-row-action:focus-visible,
.skill-tree-row-action:hover,
.skill-tree-row-action:focus-visible,
.canvas-region-top-menu .session-tab-close:hover,
.canvas-region-top-menu .session-tab-close:focus-visible,
.canvas-region-top-menu .sidebar-toggle-button.is-top-menu:hover,
.canvas-region-top-menu .sidebar-toggle-button.is-top-menu:focus-visible,
.canvas-region-top-menu-add-button:hover,
.canvas-region-top-menu-add-button:focus-visible,
.terminal-panel-toggle-button:hover,
.terminal-panel-toggle-button:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button:hover,
.activity-rail-bottom .terminal-panel-toggle-button:focus-visible,
.terminal-tab-close:hover,
.terminal-tab-close:focus-visible,
.terminal-panel-create:hover,
.terminal-panel-create:focus-visible,
.settings-page-close-button:hover,
.settings-page-close-button:focus-visible,
.session-canvas-top-menu .canvas-top-menu-editor-launch-button:hover,
.session-canvas-top-menu .canvas-top-menu-editor-launch-button:focus-visible,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button:hover,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button:focus-visible,
.composer .composer-selector-button.is-icon-only:not(:disabled):hover,
.composer .composer-selector-button.is-icon-only:not(:disabled):focus-visible,
.composer .composer-actions .primary-button.is-icon-only:not(:disabled):hover,
.composer .composer-actions .primary-button.is-icon-only:not(:disabled):focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon-hover);
  transform: none;
}

.sidebar-toggle-button.is-sidebar.is-active,
.sidebar-toggle-button.is-sidebar.is-active:hover,
.sidebar-toggle-button.is-sidebar.is-active:focus-visible,
.sidebar-toggle-button.is-rail.is-active,
.sidebar-toggle-button.is-rail.is-active:hover,
.sidebar-toggle-button.is-rail.is-active:focus-visible,
.sidebar-settings.is-active,
.sidebar-settings.is-active:hover,
.sidebar-settings.is-active:focus-visible,
.terminal-panel-toggle-button.is-active,
.terminal-panel-toggle-button.is-active:hover,
.terminal-panel-toggle-button.is-active:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button.is-active,
.activity-rail-bottom .terminal-panel-toggle-button.is-active:hover,
.activity-rail-bottom .terminal-panel-toggle-button.is-active:focus-visible,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button.is-active,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button.is-active:hover,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button.is-active:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon-active);
  transform: none;
}

.session-canvas-top-menu .canvas-top-menu-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: var(--seg-radius-xs);
  background: transparent;
  color: var(--seg-text-2);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  gap: 8px;
  transform: none;
}

.session-canvas-top-menu .canvas-top-menu-button:hover,
.session-canvas-top-menu .canvas-top-menu-button:focus-visible,
.session-canvas-top-menu .canvas-top-menu-button.is-active,
.session-canvas-top-menu .canvas-top-menu-button[aria-expanded="true"] {
  border-color: transparent;
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
  box-shadow: none;
  transform: none;
}

.session-canvas-top-menu .canvas-top-menu-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.session-canvas-top-menu .canvas-top-menu-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.session-canvas-top-menu .canvas-top-menu-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.session-canvas-top-menu .external-editor-split-button {
  display: inline-flex;
  align-items: center;
  border-radius: var(--seg-radius-xs);
}

.session-canvas-top-menu .canvas-top-menu-editor-launch-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: var(--seg-radius-xs) 0 0 var(--seg-radius-xs);
}

.session-canvas-top-menu .canvas-top-menu-editor-menu-button {
  width: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 0 var(--seg-radius-xs) var(--seg-radius-xs) 0;
}

.session-canvas-top-menu .canvas-top-menu-editor-menu-button::before {
  top: 9px;
  bottom: 9px;
  background: var(--seg-border);
}

.session-canvas-top-menu .canvas-top-menu-editor-launch-button:hover + .canvas-top-menu-editor-menu-button::before,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button:hover::before,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button:focus-visible::before,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button.is-active::before {
  background: var(--seg-composer-button-text);
  opacity: 0.28;
}

.session-canvas-top-menu .canvas-top-menu-permission-trigger,
.session-canvas-top-menu .canvas-top-menu-mcp-trigger,
.session-canvas-top-menu .canvas-top-menu-skill-trigger {
  max-width: min(180px, 24vw);
}

.session-canvas-top-menu .canvas-top-menu-git-trigger {
  gap: 8px;
}

.canvas-top-menu-selector-panel,
.canvas-top-menu-quick-panel {
  border-radius: var(--semantic-dropdown-menu-radius, var(--seg-radius-md));
  background: var(--seg-dropdown-menu-surface);
  box-shadow: 0 14px 34px rgba(46, 81, 118, 0.12);
}

.canvas-top-menu-selector-panel .composer-menu-option:not(:hover):not(:focus-visible):not(.is-selected) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

/* Sage / Teal & Slate theme overrides */

.settings-page-overlay,
.provider-connect-overlay,
.git-branch-create-overlay {
  background: var(--surface-overlay);
}

.settings-page {
  border: 1px solid var(--seg-border);
  background: var(--seg-shell);
  box-shadow: var(--shadow-md);
}

.settings-page-nav,
.settings-page-primary-nav {
  background: var(--seg-shell);
  color: var(--seg-text-1);
}

.settings-page-header h2,
.settings-section-header h3,
.provider-card h4,
.settings-empty-state h3,
.settings-toggle-copy strong {
  color: var(--seg-text-1);
}

.settings-primary-nav-group-label,
.settings-helper-text,
.settings-page-copy,
.settings-section-header p,
.provider-row-copy,
.provider-model-empty,
.settings-toggle-copy small {
  color: var(--seg-text-3);
}

.settings-primary-nav-item {
  color: var(--semantic-sidebar-tree-row-text);
}

.settings-primary-nav-item:hover,
.settings-primary-nav-item:focus-visible {
  border-color: transparent;
  background: var(--semantic-sidebar-tree-row-surface-active);
  color: var(--semantic-sidebar-tree-row-text-active);
}

.settings-primary-nav-item.is-active {
  border-color: transparent;
  background: var(--semantic-sidebar-tree-row-surface-active);
  color: var(--semantic-sidebar-tree-row-text-active);
}

.settings-page-close-button:hover,
.settings-page-close-button:focus-visible {
  color: var(--semantic-accent-icon-hover);
}

.settings-banner,
.settings-panel,
.provider-card,
.settings-empty-state,
.settings-toggle-card {
  border: 1px solid var(--seg-border);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: none;
}

.settings-toggle-card:hover {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  box-shadow: none;
}

.settings-toggle-card:focus-visible {
  border-color: var(--mix-seg-accent-42-seg-border-58);
  box-shadow: none;
}

.settings-toggle-card.is-active {
  border-color: var(--mix-seg-accent-32-seg-border-68);
  background: var(--mix-seg-accent-soft-74-seg-panel-26);
}

.settings-toggle-icon {
  color: var(--seg-text-2);
}

.settings-toggle-control {
  border-color: var(--seg-border);
  background: var(--mix-seg-border-72-seg-panel-28);
}

.settings-toggle-thumb {
  background: var(--seg-panel);
}

.settings-toggle-card.is-active .settings-toggle-control {
  border-color: var(--seg-accent);
  background: var(--seg-accent);
}

/* Obsidian-style settings rows */

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) {
  padding: 34px clamp(28px, 4vw, 56px) 42px;
  justify-items: start;
  gap: 28px;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) > .settings-default-layout,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) > .settings-general-layout,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) > .settings-appearance-layout,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) > .settings-developer-layout,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) > .settings-archive-layout {
  width: min(100%, 900px);
  gap: 28px;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main)
  .settings-panel:not(.settings-about-panel):not(.settings-theme-token-panel):not(.provider-detail-card) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 12px;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main)
  .settings-panel:not(.settings-about-panel):not(.settings-theme-token-panel):not(.provider-detail-card)
  > .settings-section-header {
  display: grid;
  justify-content: stretch;
  gap: 4px;
  padding: 0 2px;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main)
  .settings-panel:not(.settings-about-panel):not(.settings-theme-token-panel):not(.provider-detail-card)
  > .settings-section-header
  .label {
  display: none;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main)
  .settings-panel:not(.settings-about-panel):not(.settings-theme-token-panel):not(.provider-detail-card)
  > .settings-section-header
  h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main)
  .settings-panel:not(.settings-about-panel):not(.settings-theme-token-panel):not(.provider-detail-card)
  > .settings-section-header
  p {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.45;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field-grid,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-actions-row,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-color-mode-group,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-theme-palette-group,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-theme-config-meta,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-theme-config-preview {
  padding: 0 24px;
  border: 0;
  border-radius: var(--seg-radius-sm);
  background: var(--mix-seg-panel-72-seg-panel-muted-28);
  box-shadow: none;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field {
  min-height: 72px;
  padding: 16px 0;
  border-bottom: 1px solid var(--seg-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 16px 32px;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field:last-child {
  border-bottom: 0;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field-label {
  color: var(--seg-text-1);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field input,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field select,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field textarea,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .provider-model-picker {
  width: min(100%, 320px);
  justify-self: end;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .provider-model-picker-panel {
  right: 0;
  left: auto;
  width: min(560px, calc(100vw - var(--settings-nav-width) - 112px));
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-field textarea {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-actions-row {
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-actions-row .settings-helper-text {
  max-width: 560px;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary {
  display: grid;
  gap: 0;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary > .settings-toggle-card,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary > .settings-summary-card {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--seg-border);
  border-radius: 0;
  background: transparent;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary > :last-child {
  border-bottom: 0;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main)
  .settings-panel:not(.settings-about-panel):not(.settings-theme-token-panel):not(.provider-detail-card)
  > .settings-toggle-card {
  padding: 18px 24px;
  border: 0;
  border-radius: var(--seg-radius-sm);
  background: var(--mix-seg-panel-72-seg-panel-muted-28);
  box-shadow: none;
  transform: none;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-toggle-card:hover,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-toggle-card:focus-visible,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-toggle-card.is-active {
  border-color: transparent;
  background: var(--mix-seg-panel-72-seg-panel-muted-28);
  box-shadow: none;
  transform: none;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary .settings-toggle-card:hover,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary .settings-toggle-card:focus-visible,
.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-section-summary .settings-toggle-card.is-active {
  background: transparent;
}

.settings-page-main:not(.is-services):not(.prompt-presets-page-main) .settings-helper-text {
  padding: 0 2px;
}

/* Connections hub */

.connections-page,
.connections-page-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.connections-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--seg-shell);
}

.shell-top-menu.connections-top-menu.is-three-column {
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
}

.connections-top-menu-content {
  grid-column: 2;
  min-width: 0;
  width: max-content;
  max-width: calc(100vw - var(--window-controls-canvas-clearance) - 24px);
  justify-self: center;
  justify-content: center;
}

.connections-top-menu .shell-top-menu-trailing {
  grid-column: 3;
  grid-row: 1;
}

.connections-top-menu-inner {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.connections-tab-list {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-app-region: no-drag;
}

.connections-tab-list::-webkit-scrollbar {
  display: none;
}

.connections-tab {
  min-width: 0;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--seg-text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  -webkit-app-region: no-drag;
}

.connections-tab small {
  color: var(--seg-text-3);
  font-size: 12px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.connections-tab:hover,
.connections-tab:focus-visible {
  background: var(--semantic-sidebar-tree-row-surface-hover);
  color: var(--seg-text-1);
  outline: none;
}

.connections-tab.is-active {
  background: var(--semantic-sidebar-tree-row-surface-active);
  color: var(--seg-text-1);
}

.connections-tab.is-active small {
  color: var(--seg-text-2);
}

.connections-search-control {
  min-width: 180px;
  width: min(280px, 34vw);
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--seg-border);
  border-radius: 8px;
  background: var(--seg-panel-muted);
  color: var(--seg-text-2);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  -webkit-app-region: no-drag;
}

.connections-search-control svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.connections-search-control input {
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--seg-text-1);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.connections-search-control input::placeholder {
  color: var(--seg-text-3);
}

.connections-search-control button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.connections-search-control button:hover,
.connections-search-control button:focus-visible {
  background: var(--semantic-sidebar-tree-row-surface-hover);
  color: var(--seg-text-1);
  outline: none;
}

.connections-page-main {
  overflow: hidden;
}

.connections-page-main > .plugins-page,
.connections-page-main > .connectors-page,
.connections-page-main > .mcp-servers-page {
  height: 100%;
  background: transparent;
}

.plugins-page.is-embedded,
.mcp-servers-page.is-embedded {
  grid-template-rows: minmax(0, 1fr);
}

.connectors-sidebar.is-search-external {
  grid-template-rows: minmax(0, 1fr);
}

.sidebar-view-mcp.is-search-external .skills-tree-root {
  flex: 1 1 auto;
}

/* Platform connectors */

.connectors-page,
.connectors-page-main {
  min-height: 0;
  height: 100%;
}

.connectors-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.connectors-page-main {
  flex: 1 1 auto;
  overflow: hidden;
}

.settings-services-layout.connectors-page-layout {
  min-height: 0;
  height: 100%;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
}

.settings-service-list-panel.connectors-list-panel {
  min-height: 0;
  padding-top: 18px;
  grid-template-rows: auto minmax(0, 1fr);
}

.connectors-sidebar {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.connectors-list-stack {
  gap: 4px;
}

.connectors-list-row {
  width: 100%;
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #202020;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.connectors-list-row:hover,
.connectors-list-row:focus-visible,
.connectors-list-row.is-active {
  border-color: transparent;
  background: #f7f6f4;
  outline: none;
}

.connectors-list-row:hover .connectors-list-copy strong,
.connectors-list-row:focus-visible .connectors-list-copy strong,
.connectors-list-row.is-active .connectors-list-copy strong {
  color: #0f766e;
}

.connectors-list-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.connectors-list-copy strong,
.connectors-list-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connectors-list-copy strong {
  color: #202020;
  font-size: 15px;
  font-weight: 690;
}

.connectors-list-copy span {
  color: #77736d;
  font-size: 12px;
  font-weight: 560;
}

.connectors-icon-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0;
}

.connectors-icon-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connectors-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c7c2bc;
}

.connectors-status-dot.is-connected,
.connectors-status-badge.is-connected svg {
  color: #0f766e;
}

.connectors-status-dot.is-connected {
  background: #0f766e;
}

.connectors-status-dot.is-pending {
  background: #d97706;
}

.connectors-status-dot.is-error {
  background: #dc2626;
}

.connectors-status-dot.is-unavailable {
  background: #78716c;
}

.connectors-detail-panel {
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}

.connectors-detail-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 0;
  height: 100%;
  margin: 0 auto;
  padding: 30px 0 72px;
  overflow: auto;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  display: grid;
  align-content: start;
  gap: 28px;
}

.connectors-detail-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.connectors-detail-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.connectors-detail-header .connectors-icon-mark {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

.connectors-detail-header h1 {
  margin: 8px 0 8px;
  color: #202020;
  font-size: 27px;
  line-height: 1.14;
  font-weight: 690;
  letter-spacing: 0;
}

.connectors-detail-header p {
  max-width: 650px;
  margin: 0;
  color: #77736d;
  font-size: 16px;
  line-height: 1.45;
}

.connectors-status-badge {
  width: fit-content;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #eceae7;
  border-radius: 999px;
  background: #ffffff;
  color: #77736d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 690;
}

.connectors-status-badge svg {
  width: 14px;
  height: 14px;
}

.connectors-status-badge.is-pending {
  color: #b45309;
}

.connectors-status-badge.is-error {
  color: #dc2626;
}

.connectors-detail-section {
  display: grid;
  gap: 10px;
}

.connectors-detail-section h2 {
  margin: 0;
  color: #202020;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 680;
}

.connectors-detail-table {
  overflow: hidden;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
}

.connectors-detail-table div {
  min-height: 52px;
  padding: 10px 14px;
  border-bottom: 1px solid #eceae7;
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.connectors-detail-table div:last-child {
  border-bottom: 0;
}

.connectors-detail-table span {
  color: #77736d;
  font-size: 15px;
  font-weight: 520;
}

.connectors-detail-table strong {
  min-width: 0;
  color: #242321;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 560;
  word-break: break-word;
}

.connectors-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.connectors-setup-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
}

.connectors-setup-steps {
  margin: 0;
  padding-left: 20px;
  color: #504c47;
  font-size: 14px;
  line-height: 1.65;
}

.connectors-callback-url-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2ded8;
  border-radius: 8px;
  background: #faf9f7;
}

.connectors-callback-url-card span {
  color: #77736d;
  font-size: 13px;
  font-weight: 650;
}

.connectors-callback-url-card code {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #eceae7;
  border-radius: 6px;
  background: #ffffff;
  color: #242321;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.connectors-key-field {
  width: min(420px, 100%);
}

.connectors-key-field small {
  color: #77736d;
  font-size: 12px;
  line-height: 1.35;
}

.connectors-action-note {
  color: #77736d;
  font-size: 13px;
  line-height: 1.4;
}

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

.connectors-review-list li {
  padding: 10px 12px;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #faf9f7;
  color: #504c47;
  font-size: 14px;
  line-height: 1.4;
}

/* Plugins marketplace */

.plugins-page,
.plugins-page-main {
  min-width: 0;
  min-height: 0;
}

.plugins-page {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--seg-shell);
}

.plugins-page-main {
  overflow: hidden;
  position: relative;
}

.plugins-page-layout {
  grid-template-columns: minmax(340px, 0.36fr) minmax(0, 1fr);
}

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

.plugins-market-panel,
.plugins-detail-panel {
  min-width: 0;
}

.plugins-market-toolbar {
  display: grid;
  gap: 12px;
}

.plugins-search-field {
  width: 100%;
}

.plugins-category-filter,
.plugins-list-meta,
.plugins-review-list,
.plugins-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plugins-category-filter .settings-badge {
  cursor: pointer;
}

.plugins-list-meta {
  margin-top: 12px;
  color: var(--seg-text-3);
  font-size: 12px;
}

.plugins-detail-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.plugins-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.plugins-tool-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel-muted);
  display: grid;
  gap: 8px;
}

.plugins-tool-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.plugins-tool-row strong,
.plugins-tool-row span,
.plugins-tool-row p,
.plugins-review-list span,
.plugins-runtime-code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.plugins-tool-row span,
.plugins-tool-row p,
.plugins-review-list span {
  color: var(--seg-text-3);
}

.plugins-tool-row p {
  margin: 0;
  line-height: 1.45;
}

.plugins-review-list {
  align-items: flex-start;
}

.plugins-review-list span {
  padding: 8px 10px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel-muted);
  font-size: 12px;
  line-height: 1.35;
}

.plugins-runtime-code {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel-muted);
  color: var(--seg-text-1);
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
}

.plugins-config-grid {
  grid-template-columns: minmax(0, 1fr);
}

.plugins-config-card {
  padding: 14px;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  gap: 14px;
}

.plugins-config-fields {
  display: grid;
  gap: 12px;
}

.plugins-config-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #6f6a64;
  font-size: 12px;
  font-weight: 650;
}

.plugins-config-field-label {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plugins-config-required {
  padding: 3px 6px;
  border: 1px solid rgba(197, 78, 78, 0.2);
  border-radius: 6px;
  background: rgba(197, 78, 78, 0.08);
  color: #8f3127;
  font-size: 11px;
  line-height: 1;
}

.plugins-config-field input {
  min-height: 36px;
  width: 100%;
  min-width: 0;
  border: 1px solid #dad4cd;
  border-radius: 8px;
  background: #ffffff;
  color: #2b2926;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.plugins-config-field input:focus {
  border-color: #202020;
  outline: none;
}

.plugins-config-field small {
  color: #8a8580;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
}

.plugins-config-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plugins-config-actions > span {
  min-width: min(320px, 100%);
  flex: 1 1 auto;
  color: #77736d;
  font-size: 13px;
  line-height: 1.4;
}

.plugins-page {
  background: #ffffff;
  color: var(--seg-text-1);
}

.plugins-top-menu {
  min-height: 48px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(41, 37, 36, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.plugins-top-menu-actions-shell {
  min-width: 0;
  justify-content: flex-end;
}

.plugins-top-menu-leading {
  min-width: 0;
}

.plugins-detail-breadcrumb {
  min-width: 0;
  max-width: 100%;
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a8680;
  font-size: 14px;
  line-height: 1;
}

.plugins-detail-breadcrumb button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a8680;
  cursor: pointer;
  font: inherit;
}

.plugins-detail-breadcrumb button:hover,
.plugins-detail-breadcrumb button:focus-visible {
  color: #202020;
  outline: none;
}

.plugins-detail-breadcrumb svg {
  width: 14px;
  height: 14px;
  color: #a6a19a;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-detail-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  color: #202020;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugins-top-menu-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.plugins-top-menu-button,
.plugins-top-menu-icon-button,
.plugins-top-menu-try-button {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(41, 37, 36, 0.04);
  color: var(--seg-text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.plugins-top-menu-button {
  gap: 6px;
  padding: 0 10px;
}

.plugins-top-menu-try-button {
  gap: 6px;
  padding: 0 12px;
  background: #202020;
  color: #ffffff;
  font-weight: 650;
}

.plugins-top-menu-icon-button {
  width: 28px;
  padding: 0;
  background: transparent;
  color: var(--seg-text-3);
}

.plugins-top-menu-button svg,
.plugins-top-menu-icon-button svg,
.plugins-top-menu-try-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-top-menu-button:hover,
.plugins-top-menu-button:focus-visible,
.plugins-top-menu-icon-button:hover,
.plugins-top-menu-icon-button:focus-visible,
.plugins-top-menu-try-button:hover,
.plugins-top-menu-try-button:focus-visible {
  background: rgba(41, 37, 36, 0.08);
  color: var(--seg-text-1);
  outline: none;
}

.plugins-top-menu-try-button:hover,
.plugins-top-menu-try-button:focus-visible {
  background: #101010;
  color: #ffffff;
}

.plugins-top-menu-button:disabled {
  cursor: default;
  opacity: 0.48;
}

.plugins-top-menu-try-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.plugins-page-main {
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 0 20px 72px;
  background: #ffffff;
  display: block;
}

.plugins-page-main > .settings-banner {
  width: min(920px, calc(100% - 32px));
  margin: 16px auto 0;
  border-radius: 10px;
}

.plugins-marketplace-shell {
  width: min(920px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  justify-items: center;
  gap: 28px;
}

.plugins-marketplace-shell.is-detail-view {
  width: min(700px, calc(100% - 32px));
  margin-top: 28px;
  justify-items: stretch;
  gap: 34px;
}

.plugins-marketplace-header {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 24px;
}

.plugins-marketplace-header h1 {
  margin: 0;
  color: #1f1f1f;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: center;
}

.plugins-filter-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.plugins-search-control,
.plugins-select-control {
  min-width: 0;
  height: 34px;
  border: 1px solid #e9e7e4;
  border-radius: 10px;
  background: #ffffff;
  color: #74706b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plugins-search-control {
  flex: 1 1 360px;
  padding: 0 12px;
}

.plugins-search-control svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #7a7772;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-search-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #242321;
  font: inherit;
  font-size: 14px;
}

.plugins-search-control input::placeholder {
  color: #918d88;
}

.plugins-select-control {
  position: relative;
  flex: 0 0 auto;
  padding: 0 8px 0 12px;
  background: #f7f6f4;
}

.plugins-select-control select {
  min-width: 0;
  max-width: 158px;
  height: 100%;
  padding: 0 18px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #242321;
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
}

.plugins-select-control.is-category select {
  max-width: 96px;
}

.plugins-select-control svg {
  position: absolute;
  right: 8px;
  width: 14px;
  height: 14px;
  color: #76726d;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-directory {
  width: min(560px, 100%);
  display: grid;
  gap: 30px;
}

.plugins-directory-section {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.plugins-directory-section-header {
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eceae7;
}

.plugins-directory-section-header h2 {
  margin: 0;
  color: #22211f;
  font-size: 18px;
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: 0;
}

.plugins-directory-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 18px;
}

.plugins-market-item {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
}

.plugins-market-item-main {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.plugins-market-item-main:hover,
.plugins-market-item-main:focus-visible,
.plugins-market-item.is-active .plugins-market-item-main {
  outline: none;
}

.plugins-market-item-main:hover .plugins-market-item-copy strong,
.plugins-market-item-main:focus-visible .plugins-market-item-copy strong,
.plugins-market-item.is-active .plugins-market-item-copy strong {
  color: #0f766e;
}

.plugins-market-item-visual {
  position: relative;
  width: 48px;
  height: 36px;
  overflow: hidden;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
  display: inline-flex;
}

.plugins-market-item-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plugins-market-item-visual-mark {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: inline-flex;
}

.plugins-market-item-visual-mark .plugins-icon-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 8px;
  box-shadow: 0 2px 8px rgba(41, 37, 36, 0.18);
}

.plugins-market-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.plugins-market-item-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #202020;
  font-size: 15px;
  font-weight: 690;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.plugins-market-item-copy span {
  min-width: 0;
  overflow: hidden;
  color: #7b7772;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugins-market-item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8b8b8;
}

.plugins-market-item-status > svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-market-install-button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f1f1f0;
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.plugins-market-install-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.plugins-market-install-button:hover,
.plugins-market-install-button:focus-visible {
  background: #202020;
  color: #ffffff;
  outline: none;
}

.plugins-market-install-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.plugins-icon-mark {
  width: 28px;
  height: 28px;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
  color: #202020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.plugins-icon-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plugins-icon-mark.is-code {
  color: #111111;
}

.plugins-icon-mark.is-browser {
  color: #4285f4;
  background: #f6f9ff;
}

.plugins-icon-mark.is-git {
  color: #111111;
  background: #fafafa;
}

.plugins-icon-mark.is-database {
  color: #188038;
  background: #edf8f2;
}

.plugins-icon-mark.is-docs {
  color: #d88913;
  background: #fff8e8;
}

.plugins-icon-mark.is-automation {
  color: #6e4c9e;
  background: #f4f0fb;
}

.plugins-icon-mark.is-design {
  color: #e0658b;
  background: #fff0f5;
}

.plugins-icon-glyph,
.plugins-icon-initials {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugins-directory-empty-state,
.plugins-loading-state {
  width: min(560px, 100%);
  justify-self: center;
  border-radius: 12px;
}

.plugins-management-detail {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
  display: grid;
  gap: 28px;
}

.plugins-detail-header {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.plugins-detail-header .plugins-icon-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(41, 37, 36, 0.08);
}

.plugins-detail-header h1 {
  margin: 14px 0 0;
  color: #202020;
  font-size: 27px;
  font-weight: 690;
  line-height: 1.14;
  letter-spacing: 0;
}

.plugins-detail-header p {
  max-width: 620px;
  margin: 0;
  color: #77736d;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
}

.plugins-tag-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plugins-detail-description {
  max-width: 650px;
  margin: 0 0 2px 0;
  color: #2f2d2a;
  font-size: 17px;
  line-height: 1.5;
}

.plugins-screenshot-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plugins-screenshot-grid img {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
}

.plugins-detail-section {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.plugins-detail-section h2 {
  margin: 0;
  color: #202020;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.2;
}

.plugins-included-card,
.plugins-info-table {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
}

.plugins-included-row {
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px 18px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.plugins-included-row:hover,
.plugins-included-row:focus-visible,
.plugins-included-row.is-expanded {
  background: rgba(41, 37, 36, 0.035);
  outline: none;
}

.plugins-included-item + .plugins-included-item,
.plugins-info-table div + div {
  border-top: 1px solid #eceae7;
}

.plugins-included-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #eceae7;
  border-radius: 999px;
  color: #77736d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plugins-included-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-included-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.plugins-included-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #242321;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugins-included-copy span {
  min-width: 0;
  overflow: hidden;
  color: #7a7671;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugins-toggle {
  width: 32px;
  height: 20px;
  padding: 2px;
  border-radius: 999px;
  background: #e6e4e1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.plugins-toggle span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(41, 37, 36, 0.2);
}

.plugins-toggle.is-on {
  justify-content: flex-end;
  background: #3b9cff;
}

.plugins-included-chevron {
  width: 18px;
  height: 18px;
  color: #8a8580;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease;
}

.plugins-included-row.is-expanded .plugins-included-chevron {
  transform: rotate(180deg);
}

.plugins-included-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-included-detail {
  padding: 0 14px 14px 62px;
  border-top: 1px solid #f1efec;
  background: rgba(250, 249, 247, 0.72);
}

.plugins-included-detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.plugins-included-detail-grid div {
  min-width: 0;
  padding-top: 12px;
  display: grid;
  gap: 4px;
}

.plugins-included-detail-grid .is-wide {
  grid-column: 1 / -1;
}

.plugins-included-detail-grid dt {
  color: #8a8580;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-transform: uppercase;
}

.plugins-included-detail-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #34312d;
  font-size: 13px;
  line-height: 1.45;
}

.plugins-connector-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.plugins-connector-empty {
  margin: 14px 0 0;
  color: #77736d;
  font-size: 13px;
  line-height: 1.45;
}

.plugins-connector-key-field {
  min-width: min(280px, 100%);
  display: grid;
  gap: 6px;
  color: #6f6a64;
  font-size: 12px;
  font-weight: 650;
}

.plugins-connector-key-field input {
  min-height: 34px;
  width: 100%;
  border: 1px solid #dad4cd;
  border-radius: 8px;
  background: #ffffff;
  color: #2b2926;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

.plugins-connector-key-field input:focus {
  border-color: #202020;
  outline: none;
}

.plugins-info-table div {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
}

.plugins-info-table span {
  color: #77736d;
  font-size: 15px;
}

.plugins-info-table strong {
  min-width: 0;
  overflow: hidden;
  color: #2b2926;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugins-info-table strong.plugins-brand-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plugins-brand-color span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(42, 40, 36, 0.14);
  border-radius: 4px;
}

.plugins-info-link {
  width: fit-content;
  max-width: 100%;
  color: #3b9cff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.35;
  text-decoration: none;
}

.plugins-info-link:hover,
.plugins-info-link:focus-visible {
  color: #1677e8;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.plugins-info-link-text {
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

.plugins-info-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-detail-actions {
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #eceae7;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.plugins-detail-install-button,
.plugins-detail-uninstall-button,
.plugins-detail-action-status {
  min-height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  line-height: 1;
}

.plugins-detail-install-button {
  padding: 0 14px;
  border: 1px solid #202020;
  background: #202020;
  color: #ffffff;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.plugins-detail-install-button:hover,
.plugins-detail-install-button:focus-visible {
  border-color: #101010;
  background: #101010;
  outline: none;
}

.plugins-detail-install-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.plugins-detail-uninstall-button {
  padding: 0 12px;
  border: 1px solid rgba(197, 78, 78, 0.28);
  background: rgba(197, 78, 78, 0.08);
  color: #8f3127;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.plugins-detail-uninstall-button:hover,
.plugins-detail-uninstall-button:focus-visible {
  border-color: rgba(197, 78, 78, 0.42);
  background: rgba(197, 78, 78, 0.14);
  color: #76251e;
  outline: none;
}

.plugins-detail-uninstall-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.plugins-detail-action-status {
  padding: 0 12px;
  border: 1px solid rgba(59, 156, 255, 0.2);
  background: rgba(59, 156, 255, 0.08);
  color: #1f6fb8;
}

.plugins-detail-install-button svg,
.plugins-detail-uninstall-button svg,
.plugins-detail-action-status svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.plugins-detail-hero {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  background: #ffffff;
}

.settings-field small {
  color: var(--seg-text-3);
  line-height: 1.4;
}

.settings-badge.is-danger {
  border-color: rgba(197, 78, 78, 0.28);
  background: rgba(197, 78, 78, 0.1);
  color: #8f3127;
}

.secondary-button.is-danger {
  color: #8f3127;
}

.sidebar-toggle-button.is-rail.is-collapsed {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--semantic-accent-icon);
  transform: none;
}

.sidebar-toggle-button.is-rail.is-collapsed:hover,
.sidebar-toggle-button.is-rail.is-collapsed:focus-visible {
  border-color: transparent;
  background: var(--mix-seg-accent-soft-72-seg-panel-28);
  box-shadow: none;
  color: var(--semantic-accent-icon-hover);
  transform: none;
}

.sidebar-toggle-button.is-rail.is-expanded,
.sidebar-toggle-button.is-rail.is-expanded:hover,
.sidebar-toggle-button.is-rail.is-expanded:focus-visible {
  border-color: transparent;
  background: var(--mix-seg-accent-soft-68-seg-panel-32);
  box-shadow: none;
  color: var(--semantic-accent-icon-active);
  transform: none;
}

@media (max-width: 1100px) {
  .settings-services-layout.connectors-page-layout,
  .plugins-page-layout,
  .plugins-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .settings-service-list-panel.connectors-list-panel {
    padding-top: 10px;
  }

  .connectors-page-main {
    padding: 0 12px 48px;
  }

  .connectors-detail-shell {
    width: 100%;
    padding-top: 22px;
  }

  .connectors-detail-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .connectors-detail-header h1 {
    font-size: 24px;
  }

  .connectors-detail-table div {
    grid-template-columns: minmax(84px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
  }

  .plugins-page-main {
    padding: 0 12px 48px;
  }

  .plugins-marketplace-shell,
  .plugins-page-main > .settings-banner {
    width: 100%;
  }

  .plugins-marketplace-shell {
    margin-top: 28px;
  }

  .plugins-marketplace-shell.is-detail-view {
    width: 100%;
    margin-top: 22px;
  }

  .plugins-filter-row {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .plugins-search-control {
    flex-basis: 100%;
  }

  .plugins-select-control {
    flex: 1 1 160px;
  }

  .plugins-directory-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }

  .plugins-top-menu-actions {
    gap: 4px;
  }

  .plugins-top-menu-button span {
    display: none;
  }

  .plugins-top-menu-button {
    width: 28px;
    padding: 0;
  }

  .plugins-detail-breadcrumb {
    max-width: 100%;
    font-size: 13px;
  }

  .plugins-top-menu-try-button {
    width: 28px;
    padding: 0;
  }

  .plugins-top-menu-try-button span {
    display: none;
  }

  .plugins-detail-header h1 {
    font-size: 24px;
  }

  .plugins-detail-header p {
    font-size: 17px;
  }

  .plugins-screenshot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plugins-included-row {
    grid-template-columns: 34px minmax(0, 1fr) 32px 18px;
    padding: 10px;
  }

  .plugins-included-detail {
    padding: 0 12px 12px 54px;
  }

  .plugins-included-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plugins-info-table div {
    grid-template-columns: minmax(84px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
  }
}
