
:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #17191c;
  --muted: #66707b;
  --line: #dfe3e7;
  --line-strong: #c8ced4;
  --accent: #176b5b;
  --accent-hover: #115347;
  --danger: #b42318;
  --focus: #2878c8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 58px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: stretch; justify-content: space-between; gap: 20px; }
.topbar-primary { min-width: 0; display: flex; align-items: stretch; gap: 32px; overflow: hidden; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 6px; font-size: 13px; }
.admin-nav { min-width: 0; display: flex; align-items: stretch; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { position: relative; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a[aria-current="page"] { color: var(--accent); }
.admin-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); content: ""; }
.account { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.account-dot { width: 7px; height: 7px; border-radius: 50%; background: #238636; flex: none; }
#account-email { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 1180px; margin: 0 auto; padding: 54px 32px 80px; }
.state-page { min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.state-page h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.state-page p { margin: 0; }
.loader { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-right-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace { width: 100%; }
.page-heading { min-height: 72px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; font-size: 30px; line-height: 1.15; }
h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.button { min-height: 38px; border: 1px solid transparent; border-radius: 6px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; transition: background-color .15s, border-color .15s, color .15s; }
.button:disabled { cursor: wait; opacity: .62; }
.primary { background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.secondary:hover:not(:disabled) { background: #eef1f3; }
.summary { margin-top: 34px; padding: 14px 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.summary strong { color: var(--ink); font-size: 20px; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
table { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: fixed; }
th, td { height: 54px; padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
th { height: 42px; background: #f0f2f4; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
th:nth-child(1) { width: 34%; }
th:nth-child(2) { width: 22%; }
th:nth-child(3) { width: 26%; }
th:nth-child(4) { width: 18%; }
tbody tr:last-child td { border-bottom: 0; }
td { overflow-wrap: anywhere; }
.key-prefix { font-family: "SFMono-Regular", Consolas, monospace; color: #39414a; font-size: 12px; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.action-button { min-width: 54px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.action-button:hover { background: #eef1f3; color: var(--ink); }
.action-button.danger:hover { background: #fff1f0; color: var(--danger); }
.empty-state { min-height: 160px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
dialog { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 8px; padding: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(20, 27, 33, .18); }
dialog::backdrop { background: rgba(25, 30, 35, .42); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.icon-button:hover { background: #eef1f3; color: var(--ink); }
label { display: grid; gap: 7px; margin-top: 18px; color: #39414a; font-size: 12px; font-weight: 700; }
input { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 11px; background: #fff; color: var(--ink); font-size: 14px; }
select { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 34px 8px 11px; background: #fff; color: var(--ink); font-size: 13px; }
input:focus, select:focus, button:focus-visible, a:focus-visible { border-color: var(--focus); outline: 2px solid rgba(40, 120, 200, .18); outline-offset: 1px; }
.dialog-actions { margin-top: 26px; display: flex; justify-content: flex-end; gap: 8px; }
.form-error { margin: 14px 0 0; color: var(--danger); font-size: 12px; }
.secret-warning { color: var(--danger); font-size: 13px; font-weight: 700; }
.secret-value { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.secret-value code { min-height: 42px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: #f3f5f6; overflow-wrap: anywhere; font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #20252a; color: #fff; box-shadow: 0 12px 32px rgba(20, 27, 33, .2); font-size: 13px; }
.resource-summary { margin-top: 34px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); }
.resource-summary > div { min-height: 76px; padding: 15px 18px; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 5px; }
.resource-summary > div:last-child { border-right: 0; }
.resource-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.resource-summary strong { font-size: 22px; font-weight: 700; }
.resource-toolbar { padding: 18px 0 14px; display: grid; grid-template-columns: minmax(220px, 1fr) 160px 160px auto; align-items: center; gap: 10px; }
.filter-field { display: block; margin: 0; }
.visible-count { justify-self: end; color: var(--muted); font-size: 12px; white-space: nowrap; }
.resource-table { min-width: 920px; }
.resource-table th:nth-child(1) { width: 30%; }
.resource-table th:nth-child(2) { width: 11%; }
.resource-table th:nth-child(3) { width: 12%; }
.resource-table th:nth-child(4) { width: 14%; }
.resource-table th:nth-child(5) { width: 13%; }
.resource-table th:nth-child(6) { width: 20%; }
.resource-table td { height: 64px; }
.resource-name { width: 100%; border: 0; padding: 0; display: grid; gap: 4px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.resource-name strong { font-size: 13px; }
.resource-name span { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.resource-name:hover strong { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-healthy { color: #176b3a; }
.status-healthy .status-dot { background: #238636; }
.status-degraded { color: #8a5a00; }
.status-degraded .status-dot { background: #b7791f; }
.status-unavailable { color: var(--danger); }
.status-unavailable .status-dot { background: var(--danger); }
.status-unknown { color: var(--muted); }
.observed-cell { color: var(--muted); font-size: 12px; }
.resource-dialog { width: min(580px, calc(100vw - 32px)); }
.resource-description { margin: -8px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.resource-details { margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 145px minmax(0, 1fr); }
.resource-details dt, .resource-details dd { min-height: 42px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.resource-details dt { padding-right: 16px; color: var(--muted); font-weight: 700; }
.resource-details dd { color: var(--ink); }
.capability-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.capability-list span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #f3f5f6; color: #39414a; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .topbar { height: auto; min-height: 96px; padding: 0 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 54px 42px; gap: 0 14px; }
  .topbar-primary { display: contents; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand > span:last-child { display: none; }
  .admin-nav { grid-column: 1 / -1; grid-row: 2; gap: 20px; border-top: 1px solid var(--line); }
  .admin-nav a { min-height: 42px; white-space: nowrap; }
  .account { grid-column: 2; grid-row: 1; justify-self: end; }
  #account-email { max-width: 180px; }
  main { padding: 34px 16px 60px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .button { align-self: flex-start; }
  h1 { font-size: 25px; }
  dialog { padding: 20px; }
  .secret-value { grid-template-columns: 1fr; }
  .toast { right: 16px; bottom: 16px; }
  .resource-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-summary > div:nth-child(2) { border-right: 0; }
  .resource-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .resource-toolbar { grid-template-columns: 1fr 1fr; }
  .resource-toolbar .filter-field:first-child { grid-column: 1 / -1; }
  .visible-count { grid-column: 1 / -1; justify-self: start; }
  .resource-details { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


.connectors-main { max-width: 1280px; }
.page-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.connector-summary { margin-top: 32px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); }
.connector-summary button { min-height: 78px; border: 0; border-right: 1px solid var(--line); padding: 14px 18px; display: grid; align-content: center; gap: 4px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.connector-summary button:last-child { border-right: 0; }
.connector-summary button:hover { background: #f5f7f7; color: var(--ink); }
.connector-summary button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--accent); color: var(--accent); }
.connector-summary span { font-size: 11px; font-weight: 700; }
.connector-summary strong { color: var(--ink); font-size: 22px; }
.connector-toolbar { padding: 18px 0 14px; display: grid; grid-template-columns: minmax(210px, 1fr) repeat(4, 172px) auto auto; align-items: center; gap: 9px; }
.connector-toolbar .filter-field { margin: 0; }
.connector-toolbar input, .connector-toolbar select { height: 38px; }
.text-button { min-height: 34px; border: 0; padding: 5px 7px; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.inline-alert { margin: 14px 0; min-height: 42px; border: 1px solid var(--line-strong); border-left: 3px solid var(--focus); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f5f9fd; color: #294d70; font-size: 12px; line-height: 1.45; }
.danger-alert { border-left-color: var(--danger); background: #fff5f4; color: var(--danger); }
.connector-table { min-width: 1080px; }
.connector-table th:nth-child(1) { width: 25%; }
.connector-table th:nth-child(2) { width: 11%; }
.connector-table th:nth-child(3) { width: 16%; }
.connector-table th:nth-child(4) { width: 16%; }
.connector-table th:nth-child(5) { width: 15%; }
.connector-table th:nth-child(6) { width: 11%; }
.connector-table th:nth-child(7) { width: 6%; }
.connector-table td { height: 68px; }
.connector-identity { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.connector-logo { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; overflow: hidden; background: #f3f5f6; color: #39414a; font-size: 12px; font-weight: 800; }
.connector-logo img { width: 100%; height: 100%; object-fit: contain; }
.connector-name-button { width: 100%; border: 0; padding: 0; display: grid; gap: 3px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.connector-name-button strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.connector-name-button:hover strong { color: var(--accent); }
.connector-subline { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.skill-indicator { flex: none; color: var(--accent); font-weight: 700; }
.skill-indicator.invalid { color: var(--danger); }
.capability-labels { display: flex; flex-wrap: wrap; gap: 5px; }
.capability-label { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; background: #f3f5f6; color: #39414a; font-size: 10px; font-weight: 700; }
.capability-label.high_impact { border-color: #e6b8b4; background: #fff3f2; color: var(--danger); }
.connection-copy { display: grid; gap: 3px; }
.connection-copy span { color: var(--ink); font-size: 12px; }
.connection-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-stack { display: grid; gap: 3px; }
.status-support { color: var(--muted); font-size: 10px; }
.row-menu-trigger { width: 34px; height: 34px; border: 0; border-radius: 5px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; font-weight: 700; }
.row-menu-trigger:hover { background: #eef1f3; color: var(--ink); }
.row-menu-trigger.menu-open { background: #eef1f3; color: var(--ink); }
.row-menu-content { position: fixed; inset: auto; min-width: 148px; max-width: calc(100vw - 16px); margin: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px; background: var(--surface); box-shadow: 0 12px 28px rgba(20, 27, 33, .15); }
.row-menu-content:popover-open { display: grid; }
.row-menu-content button { min-height: 34px; border: 0; border-radius: 4px; padding: 7px 9px; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; text-align: left; }
.row-menu-content button:hover { background: #eef1f3; }
.row-menu-content button.danger { color: var(--danger); }
.connector-empty { min-height: 240px; display: grid; place-items: center; align-content: center; gap: 11px; color: var(--muted); text-align: center; }
.connector-empty p { margin: 0; font-size: 13px; font-weight: 700; }
.empty-mark { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; display: grid; place-items: center; color: var(--accent); font-size: 14px; font-weight: 800; }
.connector-dialog { width: min(980px, calc(100vw - 32px)); max-height: min(860px, calc(100vh - 32px)); padding: 0; overflow: hidden; }
.connector-dialog form { min-height: min(720px, calc(100vh - 32px)); max-height: min(860px, calc(100vh - 32px)); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.connector-dialog-header { padding: 22px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.step-nav { padding: 0 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step-nav button { min-height: 48px; border: 0; border-bottom: 2px solid transparent; padding: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.step-nav button span { width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.step-nav button[aria-current="step"] { border-bottom-color: var(--accent); color: var(--accent); }
.step-nav button[aria-current="step"] span { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-nav button:disabled { cursor: not-allowed; opacity: .45; }
.connector-dialog-body { min-height: 0; padding: 4px 24px 24px; overflow-y: auto; }
.step-pane { padding-top: 4px; }
.step-pane h3 { margin: 0; font-size: 15px; }
.form-grid { display: grid; gap: 0 16px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.connector-dialog label { margin-top: 16px; }
.connector-dialog textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 11px; resize: vertical; background: #fff; color: var(--ink); font: inherit; font-size: 13px; letter-spacing: 0; line-height: 1.5; }
.connector-dialog textarea:focus { border-color: var(--focus); outline: 2px solid rgba(40, 120, 200, .18); outline-offset: 1px; }
.field-note { color: var(--muted); font-size: 10px; font-weight: 400; }
.related-fieldset { margin: 20px 0 0; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.related-fieldset legend { padding: 0 5px; color: #39414a; font-size: 12px; font-weight: 700; }
.checkbox-list { max-height: 126px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; }
.checkbox-list label { margin: 0; display: flex; align-items: center; gap: 7px; font-weight: 500; }
.checkbox-list input { width: 16px; height: 16px; }
.muted-copy { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-command-row, .skill-toolbar, .review-heading { margin-top: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tool-table-wrap { margin-top: 16px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); overflow-x: auto; }
.tool-table { min-width: 640px; table-layout: fixed; }
.tool-table th:nth-child(1) { width: 50%; }
.tool-table th:nth-child(2), .tool-table th:nth-child(3) { width: 25%; }
.tool-table td { height: 58px; }
.tool-name { display: grid; gap: 3px; }
.tool-name code { font-size: 11px; }
.tool-name span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tool-table select { height: 34px; font-size: 11px; }
.compact-empty { min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.section-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.skill-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.danger-secondary { border-color: #e5b8b4; background: #fff; color: var(--danger); }
.danger-secondary:hover { background: #fff1f0; }
.skill-icon-button { border: 1px solid var(--line-strong); font-size: 16px; }
.skill-tabs { margin-top: 18px; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.skill-tabs button { min-height: 38px; border: 0; border-bottom: 2px solid transparent; padding: 7px 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.skill-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.skill-source-panel { height: 330px; border: 1px solid var(--line-strong); border-radius: 0 0 6px 6px; display: grid; grid-template-columns: 42px minmax(0, 1fr); overflow: hidden; background: #f4f6f7; }
.skill-source-panel pre { margin: 0; padding: 12px 9px; overflow: hidden; color: #929ba4; background: #eef1f3; font: 12px/1.55 "SFMono-Regular", Consolas, monospace; text-align: right; user-select: none; }
.skill-source-panel textarea { height: 100%; border: 0; border-radius: 0; margin: 0; padding: 12px; resize: none; outline: 0; background: #fff; font: 12px/1.55 "SFMono-Regular", Consolas, monospace; white-space: pre; }
.skill-source-panel.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(23, 107, 91, .16); }
.skill-preview { min-height: 330px; max-height: 330px; border: 1px solid var(--line-strong); border-radius: 0 0 6px 6px; padding: 18px 20px; overflow: auto; background: #fff; font-size: 13px; line-height: 1.6; }
.skill-preview h1 { font-size: 22px; }
.skill-preview h2 { margin-top: 22px; font-size: 18px; }
.skill-preview h3 { margin-top: 18px; font-size: 15px; }
.skill-preview pre { padding: 11px; overflow: auto; background: #f3f5f6; }
.skill-preview code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.skill-preview img { display: none; }
.skill-image-label { color: var(--muted); }
.review-details { margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.review-details dt, .review-details dd { min-height: 42px; margin: 0; border-bottom: 1px solid var(--line); padding: 11px 0; font-size: 12px; overflow-wrap: anywhere; }
.review-details dt { padding-right: 16px; color: var(--muted); font-weight: 700; }
.publish-blockers { margin-top: 18px; display: grid; gap: 7px; }
.publish-blocker { min-height: 36px; border-left: 3px solid #b7791f; padding: 8px 10px; background: #fff8e8; color: #7a5100; font-size: 12px; }
.publish-ready { border-left-color: #238636; background: #f1f8f3; color: #176b3a; }
.publish-command { margin-top: 20px; display: flex; justify-content: flex-end; }
.connector-dialog-footer { border-top: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8f9fa; }
.connector-dialog-footer > div { display: flex; gap: 8px; }
@media (min-width: 960px) {
  .skill-tabs { display: none; }
  .skill-source-panel, .skill-preview { width: 50%; min-height: 350px; max-height: 350px; margin-top: 18px; display: inline-grid; vertical-align: top; }
  .skill-preview { display: inline-block; margin-left: -5px; border-left: 0; border-radius: 0 6px 6px 0; }
  .skill-preview[hidden] { display: inline-block !important; }
  .skill-source-panel[hidden] { display: inline-grid !important; }
  .skill-source-panel { border-radius: 6px 0 0 6px; }
}
@media (max-width: 1080px) {
  .connector-toolbar { grid-template-columns: minmax(210px, 1fr) repeat(2, minmax(180px, 1fr)); }
  .visible-count { justify-self: start; }
}
@media (max-width: 680px) {
  .connector-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connector-summary button:nth-child(2) { border-right: 0; }
  .connector-summary button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .connector-toolbar { grid-template-columns: 1fr 1fr; }
  .connector-toolbar .search-field { grid-column: 1 / -1; }
  .connector-toolbar .auth-field { grid-column: 1 / -1; }
  .connector-toolbar .visible-count { grid-column: 1 / -1; }
  .connector-toolbar #clear-filters { justify-self: start; }
  .connector-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .connector-dialog form { min-height: 100dvh; max-height: 100dvh; }
  .connector-dialog-header { padding: 18px 16px 14px; }
  .step-nav { padding: 0 8px; overflow-x: auto; grid-template-columns: repeat(5, minmax(78px, 1fr)); }
  .step-nav button { min-height: 52px; display: grid; place-items: center; gap: 2px; }
  .connector-dialog-body { padding: 4px 16px 20px; }
  .two-columns, .checkbox-list { grid-template-columns: 1fr; }
  .section-command-row, .skill-toolbar, .review-heading { align-items: stretch; flex-direction: column; }
  .skill-actions { justify-content: flex-start; }
  .review-details { grid-template-columns: 120px minmax(0, 1fr); }
  .connector-dialog-footer { padding: 12px 16px; }
  .connector-dialog-footer > div { min-width: 0; }
  .connector-dialog-footer .button { padding: 8px 10px; }
  .connector-table-wrap { overflow: visible; border-top: 1px solid var(--line-strong); }
  .connector-table { min-width: 0; table-layout: auto; }
  .connector-table thead { display: none; }
  .connector-table tbody, .connector-table tr { display: block; }
  .connector-table tbody tr { position: relative; border-bottom: 1px solid var(--line-strong); padding: 13px 48px 13px 14px; background: var(--surface); }
  .connector-table tbody td { width: 100%; height: auto; border: 0; padding: 5px 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 8px; }
  .connector-table tbody td::before { color: var(--muted); content: attr(data-label); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .connector-table tbody td:first-child { display: block; padding-bottom: 9px; }
  .connector-table tbody td:first-child::before, .connector-table tbody td:last-child::before { content: none; }
  .connector-table tbody td:last-child { position: absolute; top: 10px; right: 10px; width: 34px; display: block; padding: 0; }
  .connector-table .connector-identity { grid-template-columns: 34px minmax(0, 1fr); }
  .connector-table .capability-labels, .connector-table .connection-copy, .connector-table .status-stack { min-width: 0; }
}


.data-main { max-width: 1380px; }
.data-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.data-summary { margin-top: 28px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); }
.data-summary > div { min-height: 72px; padding: 14px 18px; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 4px; }
.data-summary > div:last-child { border-right: 0; }
.data-summary span, .upload-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.data-summary strong { font-size: 21px; }
.data-toolbar { padding: 16px 0 12px; display: grid; grid-template-columns: minmax(240px, 1fr) auto 34px; align-items: center; gap: 10px; }
.data-icon-button { border: 1px solid var(--line-strong); background: var(--surface); }
.data-browser { min-height: 590px; border: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(290px, 36%) minmax(0, 1fr); background: var(--surface); }
.tree-pane { min-width: 0; border-right: 1px solid var(--line-strong); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pane-heading { min-height: 52px; border-bottom: 1px solid var(--line); padding: 9px 12px 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pane-heading h2 { font-size: 14px; }
.data-tree { min-height: 0; padding: 8px; overflow: auto; }
.tree-row { min-width: 0; }
.tree-item { width: 100%; height: 34px; border: 0; border-radius: 5px; padding: 0 9px; display: grid; grid-template-columns: 14px 22px minmax(0, 1fr); align-items: center; gap: 4px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.tree-item:hover { background: #f0f3f3; }
.tree-item[aria-selected="true"] { background: #e6f1ee; color: var(--accent); }
.tree-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tree-caret { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; transition: transform .12s; }
.tree-item[aria-expanded="true"] .tree-caret { transform: rotate(90deg); }
.tree-item:not([aria-expanded]) .tree-caret { visibility: hidden; }
.tree-kind { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; background: #eef1f3; color: #56616b; font-size: 9px; font-weight: 800; }
.tree-item[data-kind="directory"] .tree-kind { background: #e8f3ef; color: var(--accent); }
.tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.data-empty, .detail-empty { min-height: 360px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); text-align: center; }
.data-empty strong { font-size: 13px; }
.detail-pane { min-width: 0; }
.detail-empty-mark { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; display: grid; place-items: center; color: var(--accent); font-size: 15px; font-weight: 800; }
.detail-empty h2 { color: var(--muted); font-size: 15px; }
.detail-heading { min-height: 96px; border-bottom: 1px solid var(--line); padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-title { min-width: 0; }
.detail-title h2 { overflow-wrap: anywhere; font-size: 18px; }
.detail-path { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--muted); font: 11px/1.45 "SFMono-Regular", Consolas, monospace; }
.detail-actions { display: flex; flex: none; gap: 4px; }
.detail-command { border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; }
.detail-command.danger { color: var(--danger); }
.detail-command:hover { border-color: var(--line-strong); }
.entry-facts { margin: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-facts > div { min-height: 60px; border-right: 1px solid var(--line); padding: 11px 16px; display: grid; align-content: center; gap: 4px; }
.entry-facts > div:last-child { border-right: 0; }
.entry-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.entry-facts dd { margin: 0; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.directory-detail { min-height: 350px; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--muted); }
.directory-detail strong { color: var(--ink); font-size: 32px; }
.file-detail { min-height: 420px; }
.preview-state { min-height: 390px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); text-align: center; }
.text-editor { min-height: 420px; display: grid; grid-template-rows: 48px minmax(0, 1fr); }
.editor-toolbar { border-bottom: 1px solid var(--line); padding: 7px 12px 7px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-toolbar span { color: var(--muted); font-size: 11px; font-weight: 700; }
#file-content { width: 100%; min-height: 370px; border: 0; padding: 16px 18px; resize: vertical; outline: 0; color: var(--ink); background: #fff; font: 12px/1.55 "SFMono-Regular", Consolas, monospace; tab-size: 2; }
.data-dialog textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 11px; resize: vertical; font: 12px/1.5 "SFMono-Regular", Consolas, monospace; }
.dialog-context { margin: 14px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.upload-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.upload-summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr; }
.upload-summary > div { min-width: 0; min-height: 64px; border-right: 1px solid var(--line); padding: 10px 12px; display: grid; align-content: center; gap: 4px; }
.upload-summary > div:last-child { border-right: 0; }
.upload-summary strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.upload-conflicts, .upload-rejected, .upload-progress { margin-top: 18px; }
.upload-section-heading { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 12px; }
.upload-section-heading span { color: var(--muted); }
.path-list { max-height: 132px; border: 1px solid var(--line); overflow-y: auto; background: #f7f8f9; }
.path-list > div { min-height: 30px; border-bottom: 1px solid var(--line); padding: 7px 9px; overflow-wrap: anywhere; color: #39414a; font: 10px/1.45 "SFMono-Regular", Consolas, monospace; }
.path-list > div:last-child { border-bottom: 0; }
.path-list .failed { color: var(--danger); }
.path-list .completed { color: #176b3a; }
.conflict-choice { margin: 12px 0 0; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.conflict-choice legend { margin-bottom: 7px; color: #39414a; font-size: 11px; font-weight: 700; }
.conflict-choice label { margin: 0; display: flex; grid-template-columns: 16px auto; align-items: center; gap: 6px; font-weight: 600; }
.conflict-choice input { width: 16px; height: 16px; }
.upload-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.upload-progress progress { width: 100%; height: 8px; margin: 8px 0; accent-color: var(--accent); }
@media (max-width: 820px) {
  .data-browser { min-height: 0; grid-template-columns: 1fr; }
  .tree-pane { min-height: 310px; max-height: 45dvh; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .detail-pane { min-height: 430px; }
}
@media (max-width: 680px) {
  .data-primary-actions { justify-content: flex-start; }
  .data-primary-actions .button { padding: 8px 10px; }
  .data-summary > div { padding: 12px; }
  .data-toolbar { grid-template-columns: minmax(0, 1fr) 34px; }
  .data-toolbar .visible-count { grid-column: 1 / -1; grid-row: 2; }
  .detail-heading { padding: 15px 14px; flex-direction: column; }
  .detail-actions { width: 100%; }
  .entry-facts > div { padding: 10px; }
  .entry-facts dd { overflow: visible; text-overflow: clip; white-space: normal; }
  .upload-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .upload-summary { grid-template-columns: 1fr 1fr; }
  .upload-summary > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .upload-summary > div:nth-child(2) { border-right: 1px solid var(--line); }
}
