/* ═══════════════════════════════════════════════════════════════
   AgencyOS — workspace-integrations-v5.css
   V5 Blue: Workspace Settings (#tab-settings) and API Integrations
   (#tab-api-integrations). Everything below the "reference rules"
   marker is copied from the approved reference v4.css (.ws*, .int*,
   .dep*, .sourcePicker/.sourceMenu/.version*, .btn, .pageHead) with
   `.aos` → `.v5p` so it is fully scoped to these two pages.
   ═══════════════════════════════════════════════════════════════ */
.v5p {
  --bg: var(--st-bg); --surface: var(--st-surface); --surface-2: var(--st-surface-2);
  --ink: var(--st-ink); --text: var(--st-ink); --muted: var(--st-muted); --line: var(--st-line);
  --primary: var(--st-primary); --primary-2: var(--st-primary-2); --teal: var(--st-teal); --shadow: var(--st-shadow);
  --teal-soft: var(--st-soft); --orange-soft: var(--st-soft);
  color: var(--st-ink); font-family: var(--app-font, Inter, 'Outfit', system-ui, sans-serif); font-size: 16px; line-height: 1.55;
}
.v5p *, .v5p *::before, .v5p *::after { box-sizing: border-box; }
.v5p h1, .v5p h2, .v5p h3, .v5p p { margin: 0; }
.v5p h1 { font-size: 36px; line-height: 1.12; letter-spacing: -.02em; }
.v5p h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.015em; }
.v5p h3 { font-size: 17px; }
.v5p svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.v5p button, .v5p input, .v5p select, .v5p textarea { font: inherit; }
.v5p code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* the two legacy panels become plain V5 canvases */
#tab-settings.tab-panel, #tab-api-integrations.tab-panel { background: var(--st-bg); }
#tab-settings > .tab-panel-inner, #tab-api-integrations > .tab-panel-inner { width: 100%; max-width: none; padding: 24px; }
#tab-settings .ws5-legacy { display: none !important; }

/* ═══ reference rules ═══ */
.v5p .pageHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.v5p .eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.v5p .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 14px;
  font-weight: 600;
  text-decoration: none;
}
.v5p .btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 26%, transparent);
}
:root:not([data-theme="light"]) .v5p .btn,
.v5p .welcome.dark .btn {
  background: #2c261f;
  border-color: #51453b;
  color: #fff6ef;
}
:root:not([data-theme="light"]) .v5p .btn.primary,
.v5p .welcome.dark .btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #20110c;
  border-color: transparent;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 30%, transparent);
}
.v5p .btn.danger {
  color: #b22020;
}
.v5p .toolbar > .btn { flex: 0 0 auto; }
.v5p .empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.v5p .workspaceToolFlow .btn { width: 100%; }
.v5p .manifestActions .btn { min-height: 25px; padding: 4px 7px; font-size: 10px; }
.v5p .compactImagePanel > .btn { width: 100%; min-height: 34px; font-size: 11px; }
@media (max-width: 720px) {
  .v5p .pageHead {
    flex-direction: column;
    align-items: stretch;
  }
}
.v5p .topActions .btn,
.v5p .workspaceActions .btn {
  min-height: 42px;
}
.v5p .versionHeaderRow .btn { min-height: 34px; width: 100%; padding: 6px 8px; font-size: 10px; }
.v5p .versionActions .btn { min-width: 112px; }
.v5p .versionMenuRow { display:flex; align-items:center; gap:6px; width:100%; }
.v5p .versionMenuRow .versionSelectAction { flex:1; min-width:0; display:flex; align-items:center; justify-content:space-between; padding:7px 6px; border:0; border-radius:6px; background:transparent; color:var(--text); font:inherit; font-size:11px; text-align:left; cursor:pointer; }
.v5p .versionMenuRow .versionSelectAction:hover { background:var(--surface-2); }
.v5p .versionMenuRow .versionCopyAction { flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; padding:0; border:1px solid var(--line); border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; }
.v5p .versionMenuRow .versionCopyAction:hover { color:var(--accent); border-color:var(--accent); background:var(--surface-2); }
.v5p .versionMenuRow .versionCopyAction svg { width:14px; height:14px; }
.v5p .pageWorkspaceBar .btn { min-height:30px; padding:6px 10px; font-size:11px; }
.v5p .versionList { display: grid; gap: 6px; }
.v5p .versionButtons .btn {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 11px;
}
.v5p .actionStrip .btn.primary {
  margin-right: auto;
}
:root:not([data-theme="light"]) .v5p .btn.primary,
.v5p .welcome.palette-blue.dark .btn.primary {
  background: linear-gradient(135deg, #17c7df, #47e282);
  color: #061014;
  box-shadow: 0 12px 30px rgba(23, 199, 223, 0.22);
}
:root:not([data-theme="light"]) .v5p .btn:not(.primary),
.v5p .welcome.palette-blue.dark .btn:not(.primary) {
  background: #101820;
  border-color: #253b46;
  color: #d9fbf6;
}
:root:not([data-theme="light"]) .v5p .btn:not(.primary):hover,
.v5p .welcome.palette-blue.dark .btn:not(.primary):hover {
  background: #122733;
  border-color: rgba(23, 199, 223, 0.42);
  color: #17c7df;
}
.v5p .versionMenuRow { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 4px; align-items: center; }
.v5p .versionSelectAction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.v5p .versionSelectAction:hover { background: var(--surface-2); }
.v5p .versionSelectAction small { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 700; }
.v5p .versionSelectAction small.current { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.v5p .versionCopyAction {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, transform .12s ease;
}
.v5p .versionCopyAction:hover { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); transform: scale(1.06); }
.v5p .versionCopyAction svg { width: 15px; height: 15px; }
.v5p .previewVersionLinksMenu .versionMenuRow {
  margin: 0 8px;
  padding: 2px;
  border-radius: 12px;
  transition: background-color .12s ease;
}
.v5p .previewVersionLinksMenu .versionMenuRow:first-of-type { margin-top: 8px; }
.v5p .previewVersionLinksMenu .versionMenuRow:last-child { margin-bottom: 8px; }
.v5p .versionMenuRow.selected { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.v5p .versionSelectAction { height: 44px; gap: 10px; justify-content: flex-start; }
.v5p .versionSelectAction:hover { background: transparent; }
.v5p .versionMenuRow:hover { background: var(--surface-2); }
.v5p .versionMenuRow.selected:hover { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.v5p .vBadge {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.v5p .versionMenuRow.selected .vBadge { background: var(--primary); color: #fff; }
.v5p .versionSelectAction small { margin-left: auto; }
.v5p .previewVersionLinksMenu .versionMenuRow:nth-of-type(n) { }
.v5p .vTag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.v5p .versionMenuRow.selected .vTag { background: var(--primary); color: #fff; }
.v5p .versionList {
  display: grid;
  gap: 4px;
  max-height: min(340px, 55vh);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scrollbar-color: color-mix(in srgb, var(--primary) 50%, transparent) transparent;
}
.v5p .versionList:hover { scrollbar-width: thin; }
.v5p .versionList::-webkit-scrollbar { width: 0; }
.v5p .versionList:hover::-webkit-scrollbar { width: 6px; }
.v5p .versionList::-webkit-scrollbar-track { background: transparent; }
.v5p .versionList::-webkit-scrollbar-thumb { border-radius: 999px; background: color-mix(in srgb, var(--primary) 45%, transparent); }
.v5p .versionList .versionMenuRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 4px 4px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.v5p .versionList .versionMenuRow.selected { border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); }
.v5p .versionList .versionSelectAction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 4px 0 0;
  border: 0;
  background: transparent;
}
.v5p .versionList .versionSelectAction small {
  margin-left: 0;
  min-width: 58px;
  padding: 3px 10px;
  text-align: center;
}
.v5p .versionList .versionCopyAction { width: 36px; height: 36px; border-radius: 10px; }
.v5p .versionList {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  padding: 8px 4px 8px 8px;
}
.v5p .versionList:hover {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 45%, transparent) transparent;
}
.v5p .versionList::-webkit-scrollbar,
.v5p .versionList:hover::-webkit-scrollbar { width: 6px; }
.v5p .versionList::-webkit-scrollbar-thumb { background: transparent; }
.v5p .versionList:hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 45%, transparent); }
.v5p .vTag {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.v5p .versionMenuRow.selected .vTag {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
}
.v5p .versionList .versionSelectAction small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color .15s ease, background-color .15s ease;
}
.v5p .versionList .versionMenuRow:hover .versionSelectAction small:not(.current) { color: var(--primary); }
.v5p .versionList .versionSelectAction small.current {
  background: color-mix(in srgb, var(--teal) 13%, var(--surface));
  color: var(--teal);
}
.v5p .versionList .versionSelectAction small.current::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.v5p .sourcePicker { position: relative; flex: 0 0 auto; }
.v5p .sourcePicker > button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  height: 38px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.v5p .sourcePicker > button > span { flex: 1; text-align: left; white-space: nowrap; }
.v5p .sourcePicker > button > svg:first-child {
  box-sizing: content-box;
  width: 15px;
  height: 15px;
  padding: 5px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
}
.v5p .sourcePicker > button > svg:last-child { width: 14px; height: 14px; color: var(--muted); transition: transform .2s ease; }
.v5p .sourcePicker > button:hover,
.v5p .sourcePicker > button.open {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.v5p .sourcePicker > button.open > svg:last-child { transform: rotate(180deg); }
.v5p .sourceMenu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  width: 280px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 42, 52, .18);
  animation: profileMenuIn .14s ease-out;
}
.v5p .convertPageSourceRow:nth-last-child(-n+2) .sourceMenu { top: auto; bottom: 100%; margin: 0 0 8px; }
.v5p .sourceMenu .versionList { max-height: min(280px, 45vh); }
.v5p .sourceMenu .versionList .versionMenuRow { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .v5p .sourcePicker,
  .v5p .sourcePicker > button { width: 100%; }
  .v5p .sourceMenu { width: 100%; }
}
.v5p .wsIdentity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.v5p .wsBack {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.v5p .wsBack svg { width: 18px; height: 18px; transition: transform .15s ease; }
.v5p .wsBack:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  color: var(--primary);
  background: var(--orange-soft);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 16%, transparent);
}
.v5p .wsBack:hover svg { transform: translateX(-2px); }
.v5p .wsBack:active { transform: scale(.95); }
.v5p .wsTitleBlock { display: grid; gap: 4px; min-width: 0; }
.v5p .wsTitleRow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v5p .wsTitleRow h1 { margin: 0; font-size: 24px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5p .wsPlatform {
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.v5p .wsSubRow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.v5p .wsSubRow i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .55; }
.v5p .wsCode { color: var(--text); font-variant-numeric: tabular-nums; }
.v5p .wsActions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.v5p .wsCopy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.v5p .wsCopy svg { width: 16px; height: 16px; color: var(--muted); transition: color .15s ease; }
.v5p .wsCopy:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); color: var(--primary); background: var(--orange-soft); }
.v5p .wsCopy:hover svg { color: var(--primary); }
.v5p .wsStatus { position: relative; }
.v5p .wsStatusBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.v5p .wsStatusBtn > span { flex: 1; text-align: left; white-space: nowrap; }
.v5p .wsStatusBtn > svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s ease; }
.v5p .wsStatusBtn:hover,
.v5p .wsStatusBtn.open { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.v5p .wsStatusBtn.open > svg { transform: rotate(180deg); }
.v5p .wsDot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px color-mix(in srgb, var(--muted) 18%, transparent); }
.v5p .wsDot[data-tone="Awaiting approval"] { background: #d99a1f; box-shadow: 0 0 0 3px rgba(217, 154, 31, .18); }
.v5p .wsDot[data-tone="Client approval"] { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.v5p .wsDot[data-tone="Client revision"] { background: #e0575b; box-shadow: 0 0 0 3px rgba(224, 87, 91, .18); }
.v5p .wsDot[data-tone="Completed"] { background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.v5p .wsStatusMenu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  width: 260px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 42, 52, .18);
  animation: profileMenuIn .14s ease-out;
}
.v5p .wsStatusHead {
  display: grid;
  gap: 2px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 60%, var(--surface));
}
.v5p .wsStatusHead strong { font-size: 14px; }
.v5p .wsStatusHead small { color: var(--muted); font-size: 12px; }
.v5p .wsStatusList { display: grid; gap: 2px; padding: 8px; }
.v5p .wsStatusList button {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.v5p .wsStatusList button:hover { background: var(--surface-2); }
.v5p .wsStatusList button.selected { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); color: var(--primary); }
.v5p .wsStatusList button em { display: grid; place-items: center; }
.v5p .wsStatusList button em svg { width: 16px; height: 16px; stroke-width: 2.4; }
@media (max-width: 900px) {
  .v5p .wsActions { flex-wrap: wrap; }
  .v5p .wsStatus { flex: 1 1 200px; }
  .v5p .wsStatusBtn { width: 100%; }
  .v5p .wsStatusMenu { right: auto; left: 0; }
}
.v5p .wsIdentity { gap: 16px; }
.v5p .wsBack {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border-color: var(--line);
}
.v5p .wsDivider { flex: 0 0 1px; align-self: stretch; margin: 4px 0; background: var(--line); }
.v5p .wsAvatar {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}
.v5p .wsTitleBlock { gap: 6px; }
.v5p .wsTitleRow h1 { font-size: 22px; letter-spacing: -.01em; }
.v5p .wsPlatform {
  padding: 2px 9px;
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.v5p .wsSubRow { gap: 8px; font-size: 12.5px; }
.v5p .wsClient { color: var(--muted); font-weight: 600; }
.v5p .wsClient::after { content: ""; display: inline-block; width: 3px; height: 3px; margin-left: 8px; border-radius: 50%; background: var(--muted); opacity: .5; vertical-align: middle; }
.v5p .wsCode {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .v5p .wsDivider,
  .v5p .wsAvatar { display: none; }
}
.v5p .wsIdentity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.v5p .wsBack {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--primary);
  cursor: pointer;
  box-shadow: none;
  transition: background-color .15s ease, transform .15s ease;
}
.v5p .wsBack svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .15s ease; }
.v5p .wsBack:hover { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); box-shadow: none; }
.v5p .wsBack:hover svg { transform: translateX(-2px); }
.v5p .wsBack:active { transform: scale(.94); }
.v5p .wsTitleBlock { display: grid; gap: 7px; min-width: 0; }
.v5p .wsTitleBlock > h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v5p .wsMeta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.v5p .wsClient { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.v5p .wsBadge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.v5p .wsBadge.accent {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--line));
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  color: var(--primary);
}
.v5p .skHead .btn svg { width: 16px; height: 16px; }
.v5p .mcpActions .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.v5p .wsCard,
.v5p .wsSection { display: grid; gap: 14px; }
.v5p .wsCard { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 18px; }
.v5p .wsGrid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.v5p .wsField { display: grid; gap: 8px; min-width: 0; }
.v5p .wsLabel { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v5p .wsInput {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
  color: var(--ink); font-size: 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.v5p .wsInput:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.v5p .wsPicker,
.v5p .wsPicker > button { width: 100%; }
.v5p .wsPicker > button { height: 44px; }
.v5p .wsPicker .sourceMenu { left: 0; right: 0; width: auto; }
.v5p .wsActionsRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v5p .wsLeft,
.v5p .wsRight { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v5p .wsLeft small { color: var(--muted); font-size: 12.5px; }
.v5p .wsFacts { display: grid; gap: 8px; margin: 0 0 24px; padding: 4px 4px 0; }
.v5p .wsFacts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 13.5px; }
.v5p .wsFacts dt { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v5p .wsFacts dd { margin: 0; line-height: 1.55; }
.v5p .wsPill {
  display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700;
}
.v5p .wsPill.good { background: color-mix(in srgb, var(--teal) 12%, var(--surface)); border-color: color-mix(in srgb, var(--teal) 32%, var(--line)); color: var(--teal); }
.v5p .wsPill.info { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); color: var(--primary); }
.v5p .wsSection { margin-bottom: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.v5p .wsSectionHead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.v5p .wsSectionHead h2 { margin: 0; font-size: 15px; letter-spacing: .02em; }
.v5p .wsSectionHead span { color: var(--muted); font-size: 12.5px; }
.v5p .wsCards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v5p .wsMini { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.v5p .wsMini strong { font-size: 14.5px; line-height: 1.4; }
.v5p .wsMini small,
.v5p .wsMini code { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.v5p .wsNote { margin: 0; color: var(--muted); font-size: 13px; }
.v5p .wsCheck { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.v5p .wsCheck i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 35%, var(--surface)); transition: background-color .2s ease; }
.v5p .wsCheck i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.v5p .wsCheck.on i { background: var(--teal); }
.v5p .wsCheck.on i::after { transform: translateX(16px); }
.v5p .wsDiag {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer;
}
.v5p .wsDiag svg { width: 14px; height: 14px; transition: transform .2s ease; }
.v5p .wsDiag.open svg { transform: rotate(90deg); }
.v5p .wsDiagBody { display: grid; gap: 6px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.v5p .wsThemeRow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v5p .wsThemeBtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.v5p .wsThemeBtn svg { width: 17px; height: 17px; }
.v5p .wsThemeBtn:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.v5p .wsThemeBtn.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.v5p .wsNoteBox { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.v5p .wsAccount { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.v5p .wsAccount > div:first-child { display: grid; gap: 4px; min-width: 0; }
.v5p .wsAccount strong { font-size: 14.5px; }
.v5p .wsAccount small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.v5p .wsAccountName { display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .v5p .wsCards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .v5p .wsGrid2,
  .v5p .wsThemeRow,
  .v5p .wsCards4 { grid-template-columns: 1fr; }
  .v5p .wsFacts > div { grid-template-columns: 1fr; gap: 2px; }
  .v5p .wsAccount { flex-direction: column; align-items: stretch; }
}
.v5p .intTabs { display: flex; gap: 8px; margin-bottom: 26px; }
.v5p .intTabs button {
  height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.v5p .intTabs button:hover:not(.active) { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.v5p .intTabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.v5p .intSection { display: grid; gap: 12px; margin-bottom: 34px; }
.v5p .intSection h2 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.v5p .intSection > p { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.6; max-width: 960px; }
.v5p .intBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.v5p .intBar > span { font-size: 14px; font-weight: 600; }
.v5p .intAdd { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); border-radius: 12px; background: var(--surface); }
.v5p .intAdd input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 14px; outline: none; }
.v5p .intAdd input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.v5p .intList { display: grid; gap: 10px; }
.v5p .intEmpty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13.5px; text-align: center; }
.v5p .intRowWrap { display: grid; gap: 8px; }
.v5p .intRow {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.v5p .intRow:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: var(--shadow); }
.v5p .intDot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: .5; }
.v5p .intDot.on { background: var(--teal); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.v5p .intInfo { display: grid; gap: 3px; flex: 1; min-width: 0; }
.v5p .intInfo strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v5p .intInfo small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.v5p .intActions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.v5p .intActions .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.v5p .intDanger { color: #c07a12; border-color: color-mix(in srgb, #d99a1f 55%, var(--line)); }
.v5p .intDanger:hover:not(:disabled) { background: rgba(217, 154, 31, .1); }
.v5p .intDanger:disabled { opacity: .45; cursor: not-allowed; }
.v5p .intPill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap;
}
.v5p .intPill.good { background: color-mix(in srgb, var(--teal) 13%, var(--surface)); color: var(--teal); }
.v5p .intPill.warn { background: rgba(217, 154, 31, .13); color: #8a5a00; }
.v5p .intPill.bad { background: rgba(214, 69, 69, .12); color: #d64545; }
.v5p .intResult {
  display: grid; gap: 4px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line)); border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 8%, var(--surface)); font-size: 13px;
}
.v5p .intResult strong { color: var(--teal); font-size: 13.5px; }
.v5p .depHead,
.v5p .depRow { display: grid; grid-template-columns: minmax(0, 1.4fr) 120px 150px 150px 100px; align-items: center; gap: 14px; padding: 12px 16px; }
.v5p .depHead { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v5p .depRow { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.v5p .depRow .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
@media (max-width: 1100px) {
  .v5p .intRow { flex-wrap: wrap; }
  .v5p .intActions { flex-basis: 100%; justify-content: flex-start; }
  .v5p .depHead { display: none; }
  .v5p .depRow { grid-template-columns: minmax(0, 1fr) auto; }
  .v5p .depRow > span:nth-child(2),
  .v5p .depRow > span:nth-child(3) { display: none; }
}
.v5p .actPicker .sourceMenu { left: 0; right: auto; width: 240px; }
.v5p .secPicker .sourceMenu { left: 0; right: auto; width: 240px; }
.v5p .secPicker .vTag { text-transform: capitalize; }
.v5p .platPicker .sourceMenu { left: 0; right: 0; width: auto; }
.v5p .convertActionRow .btn { min-width: 150px; height: 44px; }
.v5p .sourceMenu,
.v5p .wsStatusMenu {
  max-height: min(340px, 62vh); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 14%, transparent), 0 4px 12px rgba(15, 30, 40, .1);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.v5p .sourceMenu button { text-align: left; }
.v5p .sourcePicker > button { max-width: 100%; }
.v5p .sourcePicker > button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v5p .sourceMenu button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.v5p .vTag,
.v5p .wsPill,
.v5p .intPill,
.v5p .wsBadge {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; width: max-content; max-width: 100%;
  line-height: 1.25; white-space: nowrap; vertical-align: middle;
}
.v5p .vTag,
.v5p .wsPill,
.v5p .intPill { padding-block: 3px; }
.v5p .wsPill svg,
.v5p .intPill svg { width: 13px; height: 13px; flex: 0 0 13px; }
@keyframes profileMenuIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ additions for real-data states the reference demo does not show ═══ */
.v5p .wsSr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.v5p .wsError { border-color: rgba(214, 69, 69, .4); background: rgba(214, 69, 69, .06); color: #d64545; }
.v5p .wsError .btn { margin-left: 8px; color: var(--ink); }
.v5p .wsPill.warn { background: rgba(217, 154, 31, .12); border-color: rgba(217, 154, 31, .35); color: #8a5a00; }
.v5p .wsPill.bad { background: rgba(214, 69, 69, .1); border-color: rgba(214, 69, 69, .35); color: #d64545; }
.v5p .wsUnsaved { color: var(--muted); font-size: 12.5px; }
.v5p .wsActions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v5p .wsSection { display: grid; }
.v5p .wsDiagDet > summary { list-style: none; cursor: pointer; }
.v5p .wsDiagDet > summary::-webkit-details-marker { display: none; }
.v5p .wsDiagDet[open] > summary svg { transform: rotate(90deg); }
.v5p .wsDiagGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.v5p .wsDiagGrid > div { display: grid; gap: 4px; align-content: start; }
.v5p .wsDiagGrid strong { color: var(--ink); font-size: 13.5px; }
.v5p .wsDiagGrid small { color: var(--muted); font-size: 12px; }
.v5p .wsTable { width: 100%; border-collapse: collapse; font-size: 13px; }
.v5p .wsTable th { text-align: left; padding: 8px 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.v5p .wsTable td { padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.v5p .wsRowOff td { color: var(--muted); }
.v5p .wsAdd { display: flex; gap: 10px; align-items: center; }
.v5p .wsAdd input { flex: 1; min-width: 0; }
.v5p .wsPicker { width: 100%; }
.v5p .btn:disabled { opacity: .5; cursor: default; }
.v5p .pageHead p { color: var(--muted); }

/* ═══ Integrations: forms, hints and states the reference demo omits ═══ */
.v5p .intForm { display: grid; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-top: 10px; }
.v5p .intFormTitle { margin: 0; font-size: 14px; font-weight: 700; }
.v5p .intGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v5p .intHint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.v5p .intCheck { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.v5p .intCheck input { width: 16px; height: 16px; accent-color: var(--primary); }
.v5p .intFormActions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v5p .intForm .wsInput, .v5p .intForm select.wsInput, .v5p .intForm textarea.wsInput { width: 100%; }
.v5p .intForm textarea.wsInput { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.v5p .intForm select.wsInput { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667b84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.v5p .intError { border-color: rgba(214, 69, 69, .4); background: rgba(214, 69, 69, .06); color: #d64545; }
.v5p .intResult { margin-top: 8px; }
.v5p .intRowWrap > .intHint { padding: 0 8px 8px 62px; }
.v5p .depMeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; margin: 0; padding: 4px 8px 12px 62px; }
.v5p .depMeta > div { display: grid; gap: 2px; min-width: 0; }
.v5p .depMeta dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v5p .depMeta dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.v5p .depTabs { margin-top: 4px; }
.v5p .intAdd { flex-wrap: wrap; }
.v5p .intAdd input { flex: 1 1 220px; }
@media (max-width: 700px) { .v5p .intGrid { grid-template-columns: 1fr; } }

/* ── Workspace Settings pickers (Active model / Effort): clean listbox instead of pill rows ── */
.v5p .wsPicker { position: relative; }
.v5p .wsPicker > button { border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.v5p .wsPicker > button.open, .v5p .wsPicker > button:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.v5p .wsPicker > button .wsChev, .v5p .wsPicker > button > svg:last-child { transition: transform .18s ease; }
.v5p .wsPicker > button.open > svg:last-child { transform: rotate(180deg); }
.v5p .wsPicker .sourceMenu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; padding: 6px; max-height: 300px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 44px rgba(10, 30, 40, .22);
  scrollbar-width: thin; animation: wsMenuIn .14s ease;
}
@keyframes wsMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.v5p .wsPicker .versionList { display: grid; gap: 2px; padding: 0; margin: 0; border: 0; background: none; }
.v5p .wsPicker .versionMenuRow { display: block; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.v5p .wsPicker .versionSelectAction {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-family: inherit;
}
.v5p .wsPicker .versionMenuRow:hover, .v5p .wsPicker .versionSelectAction:hover { background: var(--surface-2); }
.v5p .wsPicker .versionMenuRow.selected, .v5p .wsPicker .versionMenuRow.selected .versionSelectAction { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.v5p .wsPicker .vTag { padding: 0; border: 0; border-radius: 0; background: none !important; color: var(--ink) !important; font: 600 14px/1.3 inherit; font-family: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5p .wsPicker .versionMenuRow.selected .vTag { color: var(--primary) !important; font-weight: 700; }
.v5p .wsPicker .versionSelectAction small { display: none; }
.v5p .wsPicker .versionSelectAction small.current { display: block; width: 18px; height: 18px; padding: 0; background: none; font-size: 0; }
.v5p .wsPicker .versionSelectAction small.current::after { content: ""; display: block; width: 18px; height: 18px; background-color: var(--primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.v5p .wsPicker .versionMenuRow .versionSelectAction small:not(.current) { display: none !important; }
.v5p .wsPicker .versionMenuRow .versionSelectAction small.current { display: block !important; }

/* Integrations → AI Generation Policy form (reuses the intAdd input look). */
.v5p .intGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; align-items: end; }
.v5p .intField { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v5p .intField input:not([type=checkbox]), .v5p .intField select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; outline: 0; }
.v5p .intField input:focus, .v5p .intField select:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.v5p .intToggle { flex-direction: row; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }

.v5p .intIcon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 8px; background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
