/* Settings center styles are split from style.css to keep the main stylesheet manageable. */
.modal.wide.settings-center-modal { width: min(1560px, calc(100vw - 16px)); max-height: min(95vh, 940px); padding: 0; overflow: hidden; background: #f7fafc; box-shadow: 0 28px 90px rgba(15,23,42,.22); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.settings-center-modal header { padding: 16px 18px 10px; margin: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid #e2e8f0; }
.settings-center-modal header .modal-note { margin: 4px 0 0; }
.settings-summary-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px 16px; background: linear-gradient(180deg, #fff, #f8fafc); border-bottom: 1px solid #e2e8f0; }
.settings-summary-pill { min-width: 0; min-height: 34px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; padding: 6px 9px; display: grid; gap: 1px; }
.settings-summary-pill b { color: #64748b; font-size: 10px; text-transform: uppercase; letter-spacing: 0; }
.settings-summary-pill em { min-width: 0; color: #0f172a; font-size: 12px; font-style: normal; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-summary-pill.ready { border-color: #99f6e4; background: #f0fdfa; }
.settings-summary-pill.warn { border-color: #fed7aa; background: #fff7ed; }
.settings-summary-pill.strong { border-color: #bae6fd; background: #f0f9ff; }
.settings-center { min-height: 0; display: grid; grid-template-columns: 172px minmax(0, 1fr); overflow: hidden; }
.settings-tabs { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-right: 1px solid #e2e8f0; background: linear-gradient(180deg, #eef4f7, #f8fafc); }
.settings-tab { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: transparent; color: #475569; border-radius: 10px; min-height: 42px; padding: 0 10px 0 12px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.settings-tab small { min-width: 22px; min-height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(15,23,42,.06); color: #64748b; font-size: 10px; font-weight: 900; padding: 0 6px; }
.settings-tab:hover { background: #fff; color: #0f172a; }
.settings-tab.active { background: #fff; border-color: #cbd5e1; color: #0f766e; box-shadow: 0 8px 18px rgba(15,23,42,.06); transform: translateX(2px); }
.settings-tab.active small { background: #ccfbf1; color: #0f766e; }
.settings-panels { min-width: 0; overflow: auto; padding: 16px; scrollbar-width: thin; }
.settings-panel { display: none; animation: fadeIn .16s ease both; }
.settings-panel.active { display: block; }
.settings-panel[data-settings-panel="model"].active { display: grid; gap: 14px; }
.settings-panel.model-settings-panel.active { gap: 10px; }
.model-settings-overview { min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #dbe4f0; border-radius: 14px; background: #fff; padding: 8px 14px; box-shadow: 0 8px 22px rgba(15,23,42,.035); }
.model-settings-overview span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid #ccfbf1; border-radius: 999px; background: #ecfdf5; color: #0f766e; padding: 0 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.model-settings-overview h3 { margin: 4px 0 0; color: #0f172a; font-size: 16px; }
.model-settings-overview p { margin: 2px 0 0; color: #64748b; font-size: 12px; line-height: 1.35; }
.settings-page-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; border: 1px solid #dbe4f0; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f8fbfb); padding: 14px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.045); }
.settings-process-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -4px 0 14px; }
.settings-process-strip.compact { margin-top: -2px; }
.settings-process-strip span { min-width: 0; min-height: 62px; border: 1px solid #dbe4f0; border-radius: 14px; background: linear-gradient(180deg, #fff, #f8fafc); display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-content: center; padding: 9px 10px; box-shadow: 0 8px 22px rgba(15,23,42,.035); }
.settings-process-strip b { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 9px; background: #ecfdf5; color: #0f766e; display: grid; place-items: center; font-size: 12px; font-weight: 950; box-shadow: inset 0 0 0 1px #ccfbf1; }
.settings-process-strip strong { min-width: 0; color: #0f172a; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-process-strip small { min-width: 0; color: #64748b; font-size: 10.5px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-page-intro span,
.settings-editor-head span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid #ccfbf1; border-radius: 999px; background: #ecfdf5; color: #0f766e; padding: 0 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.settings-page-intro h3,
.settings-editor-head h3 { margin: 6px 0 0; color: #0f172a; font-size: 16px; }
.settings-page-intro p,
.settings-editor-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.settings-page-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 340px; }
.settings-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.settings-panel-head.compact { margin-top: 18px; }
.settings-panel-head h3 { margin: 0; font-size: 15px; color: #0f172a; }
.settings-panel-head p { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.settings-provider-workbench,
.settings-dual-pane,
.settings-split-pane { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1.8fr); gap: 14px; align-items: stretch; }
.settings-provider-workbench { height: min(53vh, 560px); min-height: 460px; }
.model-connection-workbench { grid-template-columns: minmax(292px, 340px) minmax(0, 1fr); gap: 12px; height: min(68vh, 660px); min-height: 540px; }
.settings-provider-rail,
.settings-list-pane,
.settings-editor-card { min-width: 0; border: 1px solid #dbe4f0; border-radius: 16px; background: rgba(255,255,255,.9); padding: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.045); }
.settings-provider-rail,
.settings-list-pane { display: grid; gap: 10px; align-content: start; max-height: none; overflow: auto; scrollbar-width: thin; }
.settings-provider-rail { max-height: none; overflow: hidden; grid-template-rows: auto auto auto auto minmax(92px, 1fr); }
.model-provider-rail { grid-template-rows: auto auto auto minmax(0, 1fr); gap: 8px; padding: 10px; }
.settings-editor-card { background: linear-gradient(180deg, #ffffff, #f8fbfb); }
.provider-editor-card { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); align-self: stretch; overflow: hidden; }
.settings-editor-scroll { min-height: 0; overflow: auto; padding: 12px 3px 2px 0; scrollbar-width: thin; }
.settings-editor-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.settings-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.settings-center-modal button { font-family: inherit; }
.settings-center-modal .primary-lite-btn,
.settings-center-modal .settings-savebar button:first-child,
.settings-center-modal .settings-editor-actions .primary-lite-btn {
  min-height: 36px;
  border: 1px solid #0f766e;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,118,110,.14);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.settings-center-modal .primary-lite-btn:hover,
.settings-center-modal .settings-savebar button:first-child:hover,
.settings-center-modal .settings-editor-actions .primary-lite-btn:hover {
  border-color: #115e59;
  background: #115e59;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15,118,110,.18);
  transform: translateY(-1px);
}
.settings-center-modal .secondary-btn,
.settings-center-modal .settings-card-actions button,
.settings-center-modal .settings-card-menu summary,
.settings-center-modal .settings-editor-actions button,
.settings-center-modal .settings-savebar button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.settings-center-modal .secondary-btn:hover,
.settings-center-modal .settings-card-actions button:hover,
.settings-center-modal .settings-card-menu summary:hover,
.settings-center-modal .settings-editor-actions button:hover,
.settings-center-modal .settings-savebar button:hover {
  border-color: #14b8a6;
  background: #f0fdfa;
  color: #0f766e;
  box-shadow: 0 8px 18px rgba(15,118,110,.08);
  transform: translateY(-1px);
}
.settings-center-modal .settings-card-actions .danger,
.settings-center-modal button.danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff;
}
.settings-center-modal .settings-card-actions .danger:hover,
.settings-center-modal button.danger:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.settings-center-modal button:focus-visible,
.settings-center-modal .settings-card-menu summary:focus-visible {
  outline: 2px solid rgba(20,184,166,.42);
  outline-offset: 2px;
}
.settings-center-modal button:disabled {
  opacity: .62;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.settings-editor-actions button,
.settings-savebar button { min-height: 38px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; font-weight: 850; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.settings-editor-actions button:hover,
.settings-savebar button:hover { border-color: #14b8a6; background: #f0fdfa; color: #0f766e; box-shadow: 0 8px 18px rgba(15,118,110,.08); transform: translateY(-1px); }
.settings-editor-actions button:focus-visible,
.settings-savebar button:focus-visible { outline: 2px solid rgba(20,184,166,.42); outline-offset: 2px; }
.settings-editor-actions button:disabled,
.settings-savebar button:disabled { opacity: .62; cursor: wait; transform: none; box-shadow: none; }
.settings-editor-actions .primary-lite-btn,
.settings-savebar button:first-child { border-color: #0f766e; background: #0f766e; color: #fff; box-shadow: 0 10px 24px rgba(15,118,110,.14); }
.settings-editor-actions .primary-lite-btn:hover,
.settings-savebar button:first-child:hover { border-color: #115e59; background: #115e59; color: #fff; box-shadow: 0 14px 30px rgba(15,118,110,.18); }
.provider-editor-actions { justify-content: flex-end; border-top: 1px solid #e2e8f0; padding-top: 12px; }
.model-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.manual-provider-row { border: 1px solid #ccfbf1; border-radius: 14px; background: linear-gradient(180deg, #f0fdfa, #fff); padding: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
.manual-provider-row > div { min-width: 0; display: grid; gap: 3px; }
.manual-provider-row strong { color: #0f172a; font-size: 13px; font-weight: 900; }
.manual-provider-row small { color: #64748b; font-size: 10.5px; line-height: 1.32; font-weight: 700; }
.model-add-row .settings-compact-field { gap: 4px; }
.model-add-row #addProviderBtn { min-width: 96px; min-height: 34px; border-radius: 10px; }
.settings-template-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.settings-template-shelf button { min-width: 0; min-height: 66px; border: 1px solid #dbe4f0; border-radius: 12px; background: linear-gradient(180deg, #fff, #f8fafc); color: #334155; padding: 9px; text-align: left; display: grid; align-content: center; gap: 3px; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.settings-template-shelf button:hover { border-color: #99f6e4; background: #f0fdfa; box-shadow: 0 10px 22px rgba(15,118,110,.08); transform: translateY(-1px); }
.settings-template-shelf button.active { border-color: #0f766e; background: #ecfdf5; box-shadow: inset 0 0 0 1px rgba(15,118,110,.14); }
.settings-template-shelf b { min-width: 0; color: #0f172a; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-template-shelf span { min-width: 0; color: #64748b; font-size: 10.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.settings-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.settings-head-actions .compact { min-height: 32px; border-radius: 9px; padding-inline: 10px; font-size: 12px; font-weight: 850; }
.settings-rail-head { display: grid; gap: 2px; }
.settings-rail-head.with-gap { margin-top: 8px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.settings-rail-head strong { color: #0f172a; font-size: 13px; }
.settings-rail-head small { color: #64748b; font-size: 11px; }
.settings-compact-field { display: grid; gap: 6px; color: #334155; font-size: 11px; font-weight: 850; }
.settings-compact-field select { width: 100%; min-height: 34px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; padding: 0 10px; font: inherit; font-weight: 750; }
.provider-add-card { border: 1px solid #ccfbf1; border-radius: 14px; background: linear-gradient(180deg, #f0fdfa, #ffffff 78%); padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 132px; grid-template-areas: "head action" "select select" "presets presets"; gap: 7px 8px; align-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
.provider-connect-card { background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 58%, #eff6ff 100%); border-color: #a7f3d0; }
.provider-add-card > div:first-child { grid-area: head; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; }
.provider-add-card .settings-compact-field { grid-area: select; }
.provider-add-card > div:first-child span { width: fit-content; min-height: 19px; display: inline-grid; place-items: center; border-radius: 999px; background: #fff; color: #0f766e; border: 1px solid #99f6e4; padding: 0 7px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.provider-add-card > div:first-child strong { min-width: 0; color: #0f172a; font-size: 13px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-add-card > div:first-child small { grid-column: 1 / -1; color: #64748b; font-size: 10.5px; line-height: 1.28; }
.provider-add-card #addProviderBtn { grid-area: action; min-height: 34px; align-self: center; }
.provider-list-tools { display: grid; gap: 7px; }
.settings-list-tools { margin-bottom: 2px; }
.provider-list-tools input { width: 100%; min-height: 34px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 700; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.provider-list-tools input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.provider-filter-row { min-height: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border: 1px solid #dbe4f0; border-radius: 10px; background: #f1f5f9; padding: 3px; }
.provider-filter-row button { min-width: 0; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: 11px; font-weight: 850; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.provider-filter-row button:hover { color: #0f766e; background: rgba(255,255,255,.72); }
.provider-filter-row button.active { background: #fff; color: #0f766e; box-shadow: 0 4px 10px rgba(15,23,42,.06); }
.provider-list-head { min-width: 0; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #e2e8f0; padding-top: 8px; }
.provider-list-head > div { min-width: 0; display: grid; gap: 2px; }
.provider-list-head strong { color: #0f172a; font-size: 12px; font-weight: 900; }
.provider-list-head small { min-width: 0; color: #64748b; font-size: 10.5px; font-weight: 650; line-height: 1.25; }
.provider-list-head span { flex: 0 0 auto; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; padding: 0 8px; font-size: 10px; font-weight: 900; }
.primary-lite-btn { min-height: 36px; border-radius: 10px; border: 1px solid #0f766e; background: #0f766e; color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(15,118,110,.14); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-lite-btn:hover { background: #115e59; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(15,118,110,.18); }
.provider-list { min-height: 0; overflow: auto; align-content: start; padding-right: 2px; scrollbar-width: thin; }
.provider-list .empty-list { min-height: 88px; display: grid; place-items: center; }
.provider-checklist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.settings-editor-scroll .provider-checklist { margin-top: 0; }
.provider-checklist span { min-width: 0; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 8px; display: grid; gap: 3px; }
.provider-checklist b { color: #334155; font-size: 11px; font-weight: 900; }
.provider-checklist em { min-width: 0; color: #64748b; font-size: 10.5px; font-style: normal; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-checklist span.ready { border-color: #99f6e4; background: #f0fdfa; }
.provider-checklist span.ready b { color: #0f766e; }
.provider-checklist span.warn { border-color: #fed7aa; background: #fff7ed; }
.provider-checklist span.warn b { color: #c2410c; }
.provider-readiness-meter { height: 5px; margin-top: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.provider-readiness-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f97316, #14b8a6); transition: width .22s ease; }
.settings-grid, .settings-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; border: 1px solid #e2e8f0; background: rgba(255,255,255,.72); border-radius: 14px; padding: 12px; }
.settings-route-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.model-routing-card { padding: 14px; }
.embedded-routing-card { margin-top: 12px; padding: 12px; box-shadow: none; background: #fff; }
.embedded-routing-card .settings-route-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.model-routing-card .settings-panel-head.compact { margin-top: 0; margin-bottom: 0; }
.model-routing-card .settings-route-grid { margin-top: 10px; }
.provider-form-grid { border: 0; background: transparent; border-radius: 0; padding: 0; }
.model-connection-form { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-wide { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.settings-grid label, .settings-route-grid label, .settings-wide { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; color: #334155; }
.settings-grid input, .settings-grid textarea, .settings-grid select, .settings-route-grid input, .settings-route-grid select, .settings-wide textarea, .settings-wide input { width: 100%; min-height: 38px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; padding: 9px 10px; font: inherit; font-weight: 600; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.settings-grid input:focus, .settings-grid textarea:focus, .settings-grid select:focus, .settings-route-grid input:focus, .settings-route-grid select:focus, .settings-wide textarea:focus, .settings-wide input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.settings-grid input.settings-field-error,
.settings-grid textarea.settings-field-error,
.settings-wide textarea.settings-field-error,
.settings-wide input.settings-field-error { border-color: #fb923c; background: #fff7ed; box-shadow: 0 0 0 2px rgba(251,146,60,.12); }
.provider-advanced-headers { margin-top: -2px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; padding: 0; overflow: hidden; }
.provider-advanced-headers summary { min-height: 34px; display: flex; align-items: center; padding: 0 10px; color: #475569; font-size: 12px; font-weight: 850; cursor: pointer; list-style: none; }
.provider-advanced-headers summary::-webkit-details-marker { display: none; }
.provider-advanced-headers summary::after { content: "+"; margin-left: auto; color: #0f766e; font-weight: 950; }
.provider-advanced-headers[open] summary { border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.provider-advanced-headers[open] summary::after { content: "-"; }
.provider-advanced-headers label { padding: 10px; }
.provider-model-manager { border: 1px solid #dbe4f0; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #f8fafc); padding: 10px; gap: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.provider-model-manager-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.provider-model-manager-head > div:first-child { min-width: 0; display: grid; gap: 2px; }
.provider-model-manager-head strong { color: #0f172a; font-size: 12px; font-weight: 950; }
.provider-model-manager-head small { color: #64748b; font-size: 10.5px; font-weight: 700; line-height: 1.32; }
.provider-model-manager-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.provider-model-manager-actions button { min-height: 32px; padding-inline: 10px; font-size: 11px; }
.provider-model-fetch-status { min-height: 28px; display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #64748b; padding: 0 9px; font-size: 11px; font-weight: 750; }
.provider-model-fetch-status.success { border-color: #99f6e4; background: #ecfdf5; color: #0f766e; }
.provider-model-fetch-status.error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.provider-model-fetch-status.warn { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.provider-model-fetch-status.info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.provider-model-dropdown { position: relative; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; overflow: visible; }
.provider-model-dropdown summary { min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 10px; color: #0f172a; font-size: 12px; font-weight: 900; cursor: pointer; list-style: none; }
.provider-model-dropdown summary::-webkit-details-marker { display: none; }
.provider-model-dropdown summary::after { content: "⌄"; color: #0f766e; font-size: 14px; font-weight: 950; transition: transform .18s ease; }
.provider-model-dropdown[open] summary { border-bottom: 1px solid #e2e8f0; border-radius: 12px 12px 0 0; background: #f8fafc; }
.provider-model-dropdown[open] summary::after { transform: rotate(180deg); }
.provider-model-dropdown summary span,
.provider-model-dropdown summary strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-model-dropdown summary span { color: #0f766e; font-size: 11px; }
.provider-model-dropdown summary strong { color: #334155; font-size: 11px; text-align: right; }
.provider-model-picker { display: none; }
.provider-model-dropdown[open] .provider-model-picker { position: absolute; z-index: 30; left: -1px; right: -1px; top: calc(100% + 6px); display: block; min-height: 44px; max-height: min(28vh, 240px); overflow: auto; padding: 7px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(15, 23, 42, .18); scrollbar-width: thin; }
.provider-model-dropdown-list { display: grid; gap: 6px; }
.provider-model-empty { min-height: 42px; display: grid; place-items: center; border: 1px dashed #cbd5e1; border-radius: 10px; background: rgba(255,255,255,.74); color: #64748b; font-size: 11px; font-weight: 750; }
.provider-model-option { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; padding: 5px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.provider-model-option.active { border-color: #14b8a6; background: #f0fdfa; box-shadow: inset 3px 0 0 #0f766e; }
.provider-model-option > button:first-child { min-width: 0; min-height: 30px; border: 0; background: transparent; color: #334155; padding: 0 4px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px; align-items: center; text-align: left; cursor: pointer; }
.provider-model-option > button:first-child span { width: 16px; height: 16px; border: 1px solid #cbd5e1; border-radius: 5px; display: grid; place-items: center; color: #fff; background: #fff; font-size: 10px; font-weight: 950; }
.provider-model-option.active > button:first-child span { border-color: #0f766e; background: #0f766e; }
.provider-model-option strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; color: #0f172a; font-size: 11px; line-height: 1.3; font-weight: 850; }
.provider-model-option .secondary-btn { min-width: 46px; min-height: 30px; padding: 0 8px; font-size: 11px; border-radius: 8px; }
.model-route-grid label { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 9px; }
.embedded-routing-card .model-route-grid label { display: flex; flex-direction: column; gap: 5px; padding: 7px; }
.embedded-routing-card .settings-route-grid input,
.embedded-routing-card .settings-route-grid select { min-height: 30px; padding: 5px 8px; font-size: 12px; }
.model-route-grid label > select { min-height: 34px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; padding: 0 9px; font-size: 12px; font-weight: 850; }
.model-route-manual-input[hidden] { display: none; }
.model-route-manual-input { min-height: 34px; }
.embedded-routing-card .model-route-grid label > span { font-size: 12px; }
.embedded-routing-card .model-route-grid label > em { display: none; }
.model-route-grid label > span { color: #0f172a; font-size: 13px; font-weight: 900; }
.model-route-grid label > small { color: #64748b; font-size: 10.5px; font-weight: 750; margin-top: -2px; }
.model-route-grid label > em { min-width: 0; min-height: 22px; display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; color: #64748b; padding: 0 8px; font-size: 10px; font-style: normal; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-route-grid label > em.ready { border-color: #99f6e4; background: #ecfdf5; color: #0f766e; }
.model-route-grid label > em.warn { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.route-test-btn { min-height: 30px; border-radius: 9px; border: 1px solid #dbe4f0; background: #fff; color: #334155; font-size: 11px; font-weight: 850; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.route-test-btn:hover { border-color: #14b8a6; background: #f0fdfa; color: #0f766e; box-shadow: 0 8px 18px rgba(15,118,110,.08); }
.route-test-btn:disabled { opacity: .62; cursor: wait; box-shadow: none; }
.generation-grid { background: #fff; }
.settings-inline-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.settings-card-list { display: grid; gap: 8px; }
.settings-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #e2e8f0; background: rgba(255,255,255,.9); border-radius: 12px; padding: 10px 12px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease; }
.settings-card[role="button"] { cursor: pointer; }
.settings-card:hover { border-color: #99f6e4; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.settings-card[role="button"]:focus-visible { outline: 2px solid rgba(20,184,166,.45); outline-offset: 2px; }
.settings-card.active { border-color: #14b8a6; background: #f0fdfa; box-shadow: inset 3px 0 0 #0f766e, 0 12px 26px rgba(15,118,110,.08); }
.settings-card.editing { box-shadow: inset 3px 0 0 #0f766e, 0 14px 30px rgba(15,118,110,.12); }
.settings-card.muted { opacity: .68; background: #f8fafc; }
.settings-card-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 900; color: #0f172a; }
.settings-card-title > span:first-child:not(.settings-badge):not(.provider-avatar) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-card-title small { color: #64748b; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-avatar { width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; background: linear-gradient(180deg, #0f766e, #14b8a6); color: #fff; font-size: 11px; font-weight: 950; box-shadow: 0 6px 14px rgba(15,118,110,.16); }
.settings-badge { flex: 0 0 auto; min-height: 20px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid #cbd5e1; background: #f8fafc; color: #475569; padding: 0 7px; font-size: 10px; font-weight: 900; }
.settings-badge.ready { border-color: #99f6e4; background: #ccfbf1; color: #0f766e; }
.settings-badge.strong { border-color: #bae6fd; background: #e0f2fe; color: #0369a1; }
.settings-badge.muted { border-color: #e2e8f0; background: #f1f5f9; color: #64748b; }
.settings-badge.warn { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.settings-card p { margin: 4px 0 0; color: #64748b; font-size: 11px; line-height: 1.35; }
.settings-card-meta-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.settings-mini-chip { min-height: 20px; display: inline-grid; place-items: center; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; color: #64748b; padding: 0 7px; font-size: 10px; font-weight: 850; }
.settings-mini-chip.ready { border-color: #99f6e4; background: #ecfdf5; color: #0f766e; }
.settings-mini-chip.warn { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.settings-mini-chip.info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.settings-mini-chip.muted { color: #64748b; }
.settings-card-actions { display: flex; align-items: center; gap: 6px; }
.settings-card-actions button { min-height: 32px; padding: 0 9px; border-radius: 9px; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-weight: 800; cursor: pointer; }
.settings-card-actions button:hover { border-color: #14b8a6; color: #0f766e; }
.settings-card-actions button:disabled { opacity: .62; cursor: wait; }
.settings-card-actions button.primary-action { border-color: rgba(15,118,110,.35); background: #ecfdf5; color: #0f766e; }
.settings-card-actions button.primary-action:hover { border-color: #0f766e; background: #ccfbf1; color: #115e59; }
.settings-card-actions .danger { border-color: #fecaca; color: #b91c1c; }
.provider-card { grid-template-columns: 1fr; align-items: stretch; }
.provider-card .settings-card-actions { display: grid; grid-template-columns: 1.2fr .85fr .85fr; align-items: stretch; }
.provider-card .settings-card-actions button { min-width: 0; min-height: 30px; padding: 0 6px; font-size: 11px; }
.settings-card-menu { position: relative; min-width: 0; }
.settings-card-menu summary { min-height: 30px; display: grid; place-items: center; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #334155; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.settings-card-menu summary::-webkit-details-marker { display: none; }
.settings-card-menu summary:hover { border-color: #14b8a6; color: #0f766e; }
.settings-card-menu[open] summary { border-color: #14b8a6; background: #f0fdfa; color: #0f766e; }
.settings-card-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 138px; display: grid; gap: 6px; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; padding: 7px; box-shadow: 0 18px 36px rgba(15,23,42,.16); }
.settings-card-menu > div button { justify-content: start; width: 100%; min-height: 30px; text-align: left; }
.provider-card.ready { border-color: #ccfbf1; }
.provider-card.warn { border-color: #fed7aa; background: #fffdf9; }
.provider-card.muted { opacity: .72; }
.skill-card p,
.subagent-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.compact-cards .settings-card { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 9px; }
.compact-cards .settings-card-actions { width: 100%; margin-top: 4px; display: grid; grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr)); gap: 5px; }
.compact-cards .settings-card-actions button { min-width: 0; min-height: 28px; font-size: 11px; padding: 0 7px; }
.compact-cards .settings-card-actions button:nth-child(4) { grid-column: 1 / -1; }
.compact-cards .settings-card-actions .danger { opacity: .82; }
.skill-card,
.subagent-card { position: relative; }
.skill-card::before,
.subagent-card::before { content: ""; position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 999px; background: #14b8a6; opacity: .55; }
.skill-card.muted::before,
.subagent-card.muted::before { background: #94a3b8; }
.settings-row-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #e2e8f0; background: #fff; border-radius: 12px; padding: 12px; }
.settings-row-toggle strong { display: block; color: #0f172a; }
.settings-row-toggle small { display: block; margin-top: 3px; color: #64748b; }
.inline-toggle.compact { min-width: 96px; min-height: 34px; align-self: start; justify-content: space-between; }
.settings-savebar { padding: 12px 16px; margin: 0; border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.97); grid-template-columns: 150px 150px minmax(0, 1fr); align-items: center; box-shadow: 0 -10px 24px rgba(15,23,42,.05); }
.settings-savebar button { min-width: 0; min-height: 38px; padding: 0 14px; }
.settings-test-log { min-width: 0; color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-test-log.success { color: #0f766e; font-weight: 850; }
.settings-test-log.error { color: #b91c1c; font-weight: 850; }
.settings-test-log.info { color: #2563eb; font-weight: 800; }
.settings-center-modal .empty-list { border: 1px dashed #cbd5e1; border-radius: 12px; background: rgba(255,255,255,.74); color: #64748b; padding: 14px; text-align: center; font-weight: 750; }
.hidden-file-input { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skill-import-card { display: grid; gap: 10px; border: 1px solid #bfdbfe; border-radius: 16px; background: linear-gradient(135deg, #eff6ff, #ffffff 54%, #ecfdf5); padding: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.skill-import-card > div:first-child { display: grid; gap: 4px; min-width: 0; }
.skill-import-card > div:first-child span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; padding: 0 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.skill-import-card > div:first-child strong { color: #0f172a; font-size: 13px; font-weight: 900; }
.skill-import-card > div:first-child small { color: #64748b; font-size: 11px; line-height: 1.35; font-weight: 700; }
.skill-import-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.skill-import-actions button { min-height: 34px; }
.skill-compat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.skill-compat-row span { min-width: 0; border: 1px solid #dbeafe; border-radius: 10px; background: rgba(255,255,255,.76); padding: 7px; display: grid; gap: 2px; }
.skill-compat-row b { min-width: 0; color: #0f172a; font-size: 10.5px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-compat-row em { min-width: 0; color: #64748b; font-size: 9.5px; font-style: normal; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-popular-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid rgba(191,219,254,.8); padding-top: 2px; }
.skill-popular-row strong { color: #334155; font-size: 11px; font-weight: 900; margin-right: 2px; }
.skill-popular-row span { min-height: 20px; display: inline-grid; place-items: center; border: 1px solid #dbeafe; border-radius: 999px; background: rgba(255,255,255,.74); color: #2563eb; padding: 0 7px; font-size: 10px; font-weight: 850; }
.skill-import-status { border: 1px solid #e2e8f0; border-radius: 10px; background: rgba(255,255,255,.76); color: #475569; padding: 8px 10px; font-size: 11px; font-weight: 750; line-height: 1.35; }
.skill-import-status.success { border-color: #99f6e4; background: #ecfdf5; color: #0f766e; }
.skill-import-status.error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.skill-import-status.info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.skill-manual-card { border: 1px solid #dbe4f0; border-radius: 12px; background: rgba(255,255,255,.82); overflow: hidden; }
.skill-manual-card summary { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #334155; font-size: 12px; font-weight: 900; cursor: pointer; list-style: none; }
.skill-manual-card summary::-webkit-details-marker { display: none; }
.skill-manual-card summary::after { content: "+"; margin-left: auto; color: #0f766e; font-weight: 950; }
.skill-manual-card[open] summary { border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.skill-manual-card[open] summary::after { content: "-"; }
.skill-manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.skill-manual-grid label { min-width: 0; display: grid; gap: 5px; color: #334155; font-size: 11px; font-weight: 850; }
.skill-manual-grid input,
.skill-manual-grid textarea { width: 100%; min-height: 34px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; padding: 8px 10px; font: inherit; font-size: 12px; font-weight: 650; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.skill-manual-grid textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.skill-manual-grid input:focus,
.skill-manual-grid textarea:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.skill-manual-grid .settings-wide { grid-column: 1 / -1; }
.skill-manual-grid .inline-toggle.compact { min-width: 0; align-self: stretch; margin: 0; }
.skill-manual-grid #addSkillBtn { min-height: 34px; align-self: end; }
.settings-empty-state { display: grid; gap: 4px; }
.settings-empty-state strong { color: #334155; font-size: 12px; }
.settings-empty-state span { color: #64748b; font-size: 11px; line-height: 1.4; font-weight: 650; }
.settings-advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-advanced-card { min-width: 0; border: 1px solid #dbe4f0; border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fbfb); padding: 13px; display: grid; gap: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.045); }
.settings-advanced-card > div:first-child { display: grid; gap: 3px; }
.settings-advanced-card > div:first-child span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid #ccfbf1; border-radius: 999px; background: #ecfdf5; color: #0f766e; padding: 0 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.settings-advanced-card h3 { margin: 0; color: #0f172a; font-size: 15px; }
.settings-advanced-card p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.settings-advanced-card textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.45; }
.settings-advanced-card.danger-zone { background: #fff7ed; border-color: #fed7aa; align-content: start; }
.settings-advanced-card.danger-zone > div:first-child span { background: #ffedd5; border-color: #fed7aa; color: #c2410c; }

.infrastructure-workbench { display: grid; gap: 14px; }
.infrastructure-section { min-width: 0; display: grid; gap: 10px; border-top: 1px solid #dbe4f0; padding-top: 14px; }
.infrastructure-section:first-child { border-top: 0; padding-top: 0; }
.infrastructure-head-actions { display: flex; align-items: center; gap: 7px; }
.infrastructure-head-actions > span { min-width: 28px; min-height: 24px; display: inline-grid; place-items: center; border: 1px solid #cbd5e1; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 11px; font-weight: 900; }
.infrastructure-head-actions button { min-height: 34px; padding-inline: 11px; }
.infrastructure-split { min-width: 0; display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 12px; align-items: start; }
.infrastructure-card-list { min-width: 0; max-height: 390px; display: grid; gap: 7px; overflow: auto; padding-right: 3px; }
.infrastructure-list-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; padding: 7px; }
.infrastructure-list-item.active { border-color: #5eead4; box-shadow: 0 0 0 2px rgba(20,184,166,.1); }
.infrastructure-list-item.ready { border-left: 3px solid #14b8a6; }
.infrastructure-list-item.unreachable,
.infrastructure-list-item.blocked { border-left: 3px solid #ef4444; }
.infrastructure-list-item.muted { opacity: .72; }
.infrastructure-list-item > button:last-child { min-width: 54px; min-height: 32px; padding: 0 9px; }
.infrastructure-item-main { min-width: 0; display: grid; gap: 3px; border: 0; background: transparent; color: inherit; padding: 2px 4px; text-align: left; box-shadow: none; }
.infrastructure-item-main:hover { transform: none; background: #f8fafc; }
.infrastructure-item-main strong,
.infrastructure-item-main span,
.infrastructure-item-main small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.infrastructure-item-main strong { color: #0f172a; font-size: 12.5px; font-weight: 900; }
.infrastructure-item-main span { color: #475569; font-size: 10.5px; font-weight: 750; }
.infrastructure-item-main small { color: #64748b; font-size: 10px; font-weight: 700; }
.infrastructure-editor { min-width: 0; display: grid; gap: 10px; border: 1px solid #dbe4f0; border-radius: 14px; background: #f8fbfb; padding: 11px; }
.infrastructure-editor .settings-grid { align-items: start; }
.infrastructure-editor label > small { min-width: 0; color: #64748b; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.infrastructure-editor textarea { resize: vertical; line-height: 1.45; }
.infrastructure-editor-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.infrastructure-notice { min-width: 0; min-height: 0; color: #0f766e; font-size: 10.5px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.infrastructure-notice:empty { display: none; }
.automation-run-list { display: grid; gap: 5px; }
.automation-run-list > span { min-width: 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; border-top: 1px solid #e2e8f0; padding-top: 6px; }
.automation-run-list b { color: #334155; font-size: 10.5px; }
.automation-run-list em { min-width: 0; color: #64748b; font-size: 10px; font-style: normal; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .settings-advanced-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .modal.wide.settings-center-modal { width: min(96vw, 680px); }
  .settings-summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .settings-summary-pill { padding: 7px 9px; }
  .settings-center { display: block; height: auto; min-height: 0; max-height: min(72vh, 720px); overflow: auto; }
  .settings-tabs { position: sticky; top: 0; z-index: 2; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e2e8f0; padding: 10px; }
  .settings-tab { flex: 0 0 auto; text-align: center; transform: none !important; }
  .settings-panels { overflow: visible; padding: 12px; }
  .settings-page-intro,
  .model-settings-overview,
  .settings-process-strip,
  .settings-provider-workbench,
  .settings-dual-pane,
  .settings-editor-head { grid-template-columns: 1fr; }
  .model-add-row { grid-template-columns: 1fr; }
  .provider-model-manager-head,
  .provider-model-manager-actions,
  .skill-manual-grid { grid-template-columns: 1fr; }
  .provider-model-manager-actions { justify-content: stretch; }
  .provider-model-manager-actions button { width: 100%; }
  .provider-checklist,
  .settings-template-shelf,
  .settings-route-grid { grid-template-columns: 1fr; }
  .settings-provider-rail,
  .settings-list-pane { max-height: none; }
  .settings-provider-rail { overflow: visible; grid-template-rows: auto; }
  .provider-add-card { grid-template-columns: 1fr; grid-template-areas: "head" "select" "presets" "action"; }
  .provider-add-card #addProviderBtn { width: 100%; }
  .skill-import-actions { grid-template-columns: 1fr; }
  .skill-compat-row { grid-template-columns: 1fr; }
  .provider-list { overflow: visible; }
  .infrastructure-split { grid-template-columns: 1fr; }
  .infrastructure-card-list { max-height: 280px; }
  .settings-provider-workbench { height: auto; min-height: 0; }
  .provider-editor-card { max-height: none; overflow: visible; }
  .settings-editor-scroll { overflow: visible; padding-right: 0; }
  .settings-page-status { justify-content: flex-start; max-width: none; }
  .settings-grid,
  .settings-route-grid { grid-template-columns: 1fr; }
  .embedded-routing-card .model-route-grid label { grid-template-columns: 1fr; }
  .settings-savebar { grid-template-columns: 1fr; }
  .settings-card { grid-template-columns: 1fr; align-items: stretch; }
  .settings-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-card .settings-card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .infrastructure-head-actions { display: grid; grid-template-columns: auto 1fr 1fr; width: 100%; }
  .infrastructure-editor-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
