@import url("/brand/fonts.css");
@import url("/workspace-sidebar-theme.css?v=1015cf5024b2");
:root {
  --ws-bg: #EBEFF5;
  --ws-surface: #ffffff;
  --ws-surface-2: #E3E8F0;
  --ws-text: #101522;
  --ws-text-2: #3E4658;
  --ws-text-3: #586179;
  --ws-line: #D7DCE5;
  --ws-line-strong: #B9C1CF;
  --ws-brand: #122F96;
  --ws-accent: #1B45D7;
  --ws-accent-hover: #122F96;
  --ws-accent-soft: #EDF0FE;
  --ws-warn: #8A5A06;
  --ws-warn-soft: #F7EFE2;
  --ws-danger: #C3372B;
  --ws-danger-soft: #F9EBEA;
  --ws-info: #1B45D7;
  --ws-info-soft: #EDF0FE;
  --ws-sidebar: 286px;
  --ws-topbar: 76px;
  --ws-font: "Switzer", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --iti-border-radius: 0;
  --iti-border-color: var(--ws-line);
  --iti-hover-color: var(--ws-surface-2);
}

* { box-sizing: border-box; }
html { background: var(--ws-bg); }
body.mg-workspace {
  margin: 0;
  min-width: 320px;
  background: var(--ws-bg);
  color: var(--ws-text);
  font: 14px/1.45 var(--ws-font);
  letter-spacing: 0;
}
body.mg-workspace .mgm-launch { top: 11px; right: 0; width: 44px; height: 40px; transform: none; border-radius: 0; box-shadow: none; }

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.mg-workspace .mga-chip,
.mg-workspace .mga-admin-btn { display: none !important; }

.ws-shell { min-height: 100vh; display: grid; grid-template-columns: var(--ws-sidebar) minmax(0, 1fr); }
.ws-nav-mfa-badge,
.mg-mfa-reminder {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ws-danger, #C3372B);
  color: #fff;
  font: 800 10px/1 var(--ws-font, sans-serif);
  text-decoration: none;
  vertical-align: super;
}
.ws-nav-disclosure {
  border-top: 1px solid rgba(255,255,255,.22);
  margin-top: 6px;
  padding-top: 6px;
}
.ws-nav-disclosure summary {
  align-items: center;
  color: #DBE1FC;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 750;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  padding: 0 10px;
}
.ws-nav-disclosure summary::-webkit-details-marker { display: none; }
.ws-nav-disclosure summary svg { height: 15px; transition: transform .16s ease; width: 15px; }
.ws-nav-disclosure[open] summary svg { transform: rotate(180deg); }
.ws-nav-disclosure-links { display: grid; gap: 3px; padding-bottom: 4px; }
.ws-nav-disclosure-links .ws-nav-link { padding-inline-start: 24px; }
.ws-assistant-button { margin-inline-end: 2px; white-space: nowrap; }
.ws-progressive-fields {
  border: 1px solid var(--ws-line);
  border-radius: 0;
  grid-column: 1 / -1;
  margin-top: 2px;
}
.ws-progressive-fields > summary {
  align-items: center;
  color: var(--ws-text);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 750;
  justify-content: space-between;
  list-style: none;
  min-height: 46px;
  padding: 0 13px;
}
.ws-progressive-fields > summary::-webkit-details-marker { display: none; }
.ws-progressive-fields > summary span {
  color: var(--ws-text-2);
  font-size: 12px;
  font-weight: 500;
}
.ws-progressive-fields[open] > summary { border-bottom: 1px solid var(--ws-line); }
.ws-progressive-fields .ws-form-grid { padding: 14px; }
.ws-frame { grid-column: 2; min-width: 0; }
.ws-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--ws-topbar);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ws-line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
body.ws-m-mounted .ws-topbar { padding-inline-end: 62px; }
.ws-icon-button.ws-mobile-menu { display: none; }
.ws-org-block { min-width: 0; }
.ws-org-block span { display: block; color: var(--ws-text-3); font-size: 10px; text-transform: uppercase; font-weight: 760; letter-spacing: .06em; }
.ws-org-block b { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ws-org-switcher { min-width: 180px; max-width: min(320px, 36vw); border: 0; background: transparent; color: var(--ws-text); font: inherit; font-size: 13px; font-weight: 700; }
.ws-top-spacer { flex: 1; }
.ws-search-button {
  width: min(320px, 33vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--ws-line);
  background: var(--ws-bg);
  color: var(--ws-text-3);
  cursor: pointer;
  text-align: left;
}
.ws-search-button:hover { border-color: var(--ws-line-strong); color: var(--ws-text-2); }
.ws-search-button svg { width: 16px; }
.ws-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ws-line);
  background: var(--ws-surface);
  cursor: pointer;
}
.ws-icon-button:hover { background: var(--ws-surface-2); border-color: var(--ws-line-strong); }
.ws-icon-button svg { width: 17px; height: 17px; }

.ws-main { max-width: 1440px; margin: 0 auto; padding: 28px 30px 64px; }
.ws-page-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.ws-page-head-main { min-width: 0; }
.ws-eyebrow { margin-bottom: 5px; color: var(--ws-text-3); font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .07em; }
.ws-page-head h1 { margin: 0; font-size: 32px; line-height: 1.13; font-weight: 720; }
.ws-page-head p { max-width: 680px; margin: 7px 0 0; color: var(--ws-text-2); }
.ws-page-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ws-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--ws-line-strong);
  background: var(--ws-surface);
  color: var(--ws-text);
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}
.ws-button:hover { background: var(--ws-surface-2); }
.ws-button-primary { border-color: var(--ws-accent); background: var(--ws-accent); color: #fff; }
.ws-button-primary:hover { border-color: var(--ws-accent-hover); background: var(--ws-accent-hover); }
.ws-button-danger { border-color: var(--ws-danger); color: var(--ws-danger); }
.ws-button svg { width: 16px; height: 16px; }
.ws-button[disabled] { opacity: .52; cursor: not-allowed; }
.ws-button[aria-disabled="true"] { opacity: .72; }

.ws-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-metric { min-height: 116px; padding: 18px 20px; border-inline-end: 1px solid var(--ws-line); }
.ws-metric:nth-child(4n) { border-inline-end: 0; }
.ws-metric:nth-child(n+5) { border-top: 1px solid var(--ws-line); }
.ws-metric-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ws-text-3); font-size: 12px; font-weight: 630; }
.ws-metric strong { display: block; margin-top: 14px; font-size: 28px; line-height: 1; font-weight: 720; }
.ws-metric .ws-metric-text { max-width: 100%; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.ws-metric small { display: block; margin-top: 9px; color: var(--ws-text-3); }
.ws-info {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ws-text-3);
  cursor: pointer;
}
.ws-info:hover { color: var(--ws-text); background: var(--ws-surface-2); }
.ws-info svg { width: 15px; height: 15px; }

.ws-section { margin-top: 24px; }
.ws-section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ws-section-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.ws-section-head a { margin-inline-start: auto; color: var(--ws-accent); font-size: 12px; font-weight: 650; text-decoration: none; }
.ws-grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.ws-home-grid { grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); }
.ws-table.ws-recent-table { min-width: 0; table-layout: fixed; }
.ws-recent-table th:nth-child(2) { width: 126px; }
.ws-recent-table th:nth-child(4) { width: 132px; }
.ws-recent-table .ws-table-primary > span { min-width: 0; }
.ws-recent-table .ws-table-primary b,
.ws-recent-table .ws-table-primary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-recent-table th:nth-child(3),
.ws-recent-table td:nth-child(3),
.ws-recent-table th:nth-child(5),
.ws-recent-table td:nth-child(5),
.ws-recent-table th:nth-child(6),
.ws-recent-table td:nth-child(6) { display: none; }
.ws-panel { border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-panel-head { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--ws-line); }
.ws-panel-head h2, .ws-panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.ws-panel-head .ws-info { margin-inline-start: auto; }
.ws-panel-action { margin-inline-start: auto; color: var(--ws-accent); font-size: 12px; font-weight: 650; text-decoration: none; }
.ws-panel-body { padding: 16px; }

.ws-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ws-table th { height: 42px; padding: 0 14px; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-3); text-align: left; font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; }
.ws-table td { height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--ws-line); vertical-align: middle; }
.ws-table tbody tr:last-child td { border-bottom: 0; }
.ws-table tbody tr:hover { background: #EBEFF5; }
.ws-table-primary { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.ws-client-monogram { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--ws-line); background: var(--ws-surface-2); font-size: 11px; font-weight: 800; }
.ws-client-monogram svg { width: 16px; height: 16px; }
.ws-table-primary b, .ws-table-primary span { display: block; }
.ws-table-primary b { font-size: 13px; }
.ws-table-primary span { margin-top: 2px; color: var(--ws-text-3); font-size: 11px; }
.ws-portfolio-holdings-table { min-width: 1180px; }
.ws-market-receipt { margin-inline-start: auto; color: var(--ws-text-3); font-size: 11px; font-weight: 620; }
.ws-live-price, .ws-live-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ws-live-weight { display: grid; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ws-live-weight b { font-size: 12px; }
.ws-live-weight small { color: var(--ws-text-3); font-size: 9px; }
.ws-price-checks .ws-panel-head { align-items: center; }
.ws-price-checks .ws-section-head { min-width: 0; margin-bottom: 0; }
.ws-control-note { margin: 3px 0 0; color: var(--ws-text-3); font-size: 11px; line-height: 1.4; }
.ws-price-check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ws-line); }
.ws-price-check-grid > div { min-width: 0; padding: 14px 18px; border-inline-end: 1px solid var(--ws-line); }
.ws-price-check-grid > div:last-child { border-inline-end: 0; }
.ws-price-check-grid span { display: block; color: var(--ws-text-3); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.ws-price-check-grid strong { display: block; margin-top: 5px; font-size: 14px; }
.ws-price-checks .ws-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 49px; padding: 8px 18px; border-top: 1px solid var(--ws-line); }
.ws-price-checks .ws-market-receipt { margin-inline-start: 0; }
.ws-price-actions { display: flex; align-items: center; gap: 8px; }
.ws-button-compact { min-height: 36px; padding: 7px 11px; }
.ws-button.is-loading svg { animation: ws-spin .8s linear infinite; }
.ws-price-difference { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.ws-price-difference.is-positive { color: var(--ws-accent); }
.ws-price-difference.is-negative { color: var(--ws-danger); }
.ws-price-difference.is-flat { color: var(--ws-text-3); }
.ws-price-source-note { display: block; max-width: 150px; margin-top: 3px; color: var(--ws-text-3); font-size: 9px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.ws-portfolio-holdings-table tr.is-price-stale [data-live-price],
.ws-portfolio-holdings-table tr.is-price-stale [data-live-value],
.ws-portfolio-holdings-table tr.is-price-stale [data-live-pnl] { background: var(--ws-warn-soft); }
.ws-live-expired { color: var(--ws-warn); font-size: 11px; font-weight: 700; white-space: nowrap; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-live-pending { display: inline-flex; align-items: center; gap: 6px; color: var(--ws-text-3); font-size: 11px; white-space: nowrap; }
.ws-loader-inline { width: 12px; height: 12px; border-width: 1px; }
.ws-inline-action { min-height: 30px; padding: 0; border: 0; border-bottom: 1px dotted currentColor; background: transparent; color: var(--ws-accent); font: inherit; font-size: 11px; font-weight: 680; cursor: pointer; }
.ws-inline-action:focus-visible { outline: 2px solid var(--ws-focus); outline-offset: 3px; }
.ws-inline-error { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--ws-danger); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-inline-error[hidden] { display: none; }
.ws-inline-error div { display: grid; gap: 3px; }
.ws-inline-error span { color: var(--ws-text-2); font-size: 12px; }
.ws-live-unavailable { color: var(--ws-text-3); font-size: 11px; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.ws-pnl { display: grid; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ws-pnl b { font-size: 12px; }
.ws-pnl small { color: inherit; font-size: 10px; }
.ws-pnl.is-positive, #ws-metric-portfolio-pnl.is-positive { color: var(--ws-accent); }
.ws-pnl.is-negative, #ws-metric-portfolio-pnl.is-negative { color: var(--ws-danger); }
.ws-pnl.is-flat, #ws-metric-portfolio-pnl.is-flat { color: var(--ws-text-2); }
.ws-status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border: 1px solid var(--ws-line); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.ws-status:before { content: ""; width: 6px; height: 6px; background: var(--ws-text-3); }
.ws-status-active { border-color: rgba(14,122,70,.35); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-status-active:before { background: var(--ws-accent); }
.ws-status-onboarding, .ws-status-invited { border-color: rgba(184,121,10,.45); background: var(--ws-warn-soft); color: var(--ws-warn); }
.ws-status-onboarding:before, .ws-status-invited:before { background: var(--ws-warn); }
.ws-status-suspended, .ws-status-closed { border-color: rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-status-suspended:before, .ws-status-closed:before { background: var(--ws-danger); }
.ws-status-archived { border-color: var(--ws-line-strong); background: var(--ws-surface-2); color: var(--ws-text-3); }
.ws-status-archived:before { background: var(--ws-text-3); }
.ws-progress { width: 110px; }
.ws-progress-track { height: 5px; background: #E3E8F0; }
.ws-progress-value { height: 100%; background: var(--ws-accent); }
.ws-progress small { display: block; margin-top: 5px; color: var(--ws-text-3); font-size: 10px; }

.ws-toolbar { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ws-line); border-bottom: 0; background: var(--ws-surface); }
.ws-search-input { position: relative; flex: 1; max-width: 420px; }
.ws-search-input svg { position: absolute; inset-inline-start: 11px; top: 50%; width: 16px; transform: translateY(-50%); color: var(--ws-text-3); pointer-events: none; }
.ws-search-input input { width: 100%; height: 36px; padding-block: 0; padding-inline: 36px 12px; border: 1px solid var(--ws-line); background: var(--ws-bg); color: var(--ws-text); outline: none; }
.ws-search-input input:focus { border-color: var(--ws-accent); background: #fff; }
.ws-select { height: 36px; min-width: 150px; padding: 0 34px 0 10px; border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); outline: none; }
.ws-select:focus { border-color: var(--ws-accent); }
.ws-count { margin-inline-start: auto; color: var(--ws-text-3); font-size: 12px; }
.ws-team-scopebar { min-height: 58px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-team-scopebar > .ws-info { margin-inline-start: 0; }
.ws-team-notification-setting { display: flex; align-items: center; gap: 5px; margin-inline-start: auto; }
.ws-team-notifications { display: flex; align-items: center; gap: 7px; color: var(--ws-text-3); font-size: 10px; font-weight: 700; white-space: nowrap; }
.ws-team-notifications .ws-select { min-width: 142px; }
.ws-team-notification-setting .ws-info { flex: 0 0 auto; }
.ws-segmented { display: inline-flex; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-segmented button { min-height: 34px; padding: 0 13px; border: 0; border-inline-end: 1px solid var(--ws-line); background: transparent; color: var(--ws-text-2); font: inherit; font-size: 12px; font-weight: 680; cursor: pointer; }
.ws-segmented button:last-child { border-inline-end: 0; }
.ws-segmented button.is-active { background: var(--ws-text); color: #fff; }
.ws-team-client .ws-select { min-width: 230px; }
.ws-team-table td:nth-child(2), .ws-team-table th:nth-child(2) { width: 184px; }
.ws-team-table td:last-child, .ws-team-table th:last-child { width: 116px; text-align: end; }
.ws-team-table .ws-member-role { width: 100%; min-width: 0; }
.ws-portal-team-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-team-directory-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 12px; border: 1px solid var(--ws-line); border-bottom: 0; background: var(--ws-surface); }
.ws-team-directory-toolbar[hidden] { display: none; }
.ws-team-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ws-text-3); font-size: 12px; }
.ws-team-loading[hidden] { display: none; }
.ws-access-review { margin-bottom: 18px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-access-review-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--ws-line); }
.ws-access-review-head h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.ws-access-review-head p { max-width: 760px; margin: 5px 0 0; color: var(--ws-text-3); font-size: 11px; line-height: 1.5; }
.ws-section-title { display: flex; align-items: center; gap: 7px; }
.ws-review-status { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border: 1px solid rgba(14,122,70,.35); background: #E7F2EC; color: #0E7A46; font-size: 10px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.ws-review-status.is-warning { border-color: rgba(184,121,10,.45); background: #F7EFE2; color: #8A5A06; }
.ws-access-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ws-line); }
.ws-access-metrics > div { min-width: 0; padding: 13px 16px; border-inline-end: 1px solid var(--ws-line); }
.ws-access-metrics > div:last-child { border-inline-end: 0; }
.ws-access-metrics span, .ws-access-metrics strong { display: block; }
.ws-access-metrics span { color: var(--ws-text-3); font-size: 10px; font-weight: 700; }
.ws-access-metrics strong { margin-top: 4px; font: 700 20px/1.2 var(--ws-mono); }
.ws-access-findings:empty { display: none; }
.ws-access-finding { min-height: 62px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--ws-line); }
.ws-access-finding:last-child { border-bottom: 0; }
.ws-access-finding-icon { width: 28px; height: 28px; display: grid; place-items: center; background: #F7EFE2; color: #8A5A06; }
.ws-access-finding-icon svg { width: 15px; }
.ws-access-finding b, .ws-access-finding small { display: block; }
.ws-access-finding b { font-size: 12px; }
.ws-access-finding small { margin-top: 3px; color: var(--ws-text-3); font-size: 10px; line-height: 1.4; }
.ws-access-finding .ws-button { min-height: 32px; padding: 0 10px; }
.ws-access-activity-section { margin-top: 18px; }
.ws-access-review.is-clear .ws-access-metrics,.ws-access-review.is-clear .ws-access-findings{display:none}
.ws-access-review.is-clear{padding-bottom:0}
.ws-table-manage{min-width:118px}
.ws-team-search{width:min(340px,100%)}
.ws-access-activity { border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-access-activity:empty { display: none; }
.ws-access-activity-row { min-height: 64px; display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ws-line); }
.ws-access-activity-row:last-child { border-bottom: 0; }
.ws-access-activity-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); }
.ws-access-activity-icon svg { width: 15px; }
.ws-access-activity-copy, .ws-access-activity-meta { min-width: 0; }
.ws-access-activity-copy b, .ws-access-activity-copy small, .ws-access-activity-meta b, .ws-access-activity-meta time { display: block; }
.ws-access-activity-copy b { font-size: 12px; }
.ws-access-activity-copy small { margin-top: 3px; color: var(--ws-text-3); font-size: 10px; line-height: 1.45; }
.ws-access-activity-meta { text-align: end; }
.ws-access-activity-meta b { max-width: 220px; overflow: hidden; color: var(--ws-text-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ws-access-activity-meta time { margin-top: 3px; color: var(--ws-text-3); font-size: 9px; }
.ws-load-more-row { display: flex; justify-content: center; padding-top: 10px; }
.ws-team-no-results { margin-top: 0; border-top: 0; }
.ws-team-directory-progress { display: flex; justify-content: center; min-height: 44px; padding: 10px 12px 0; }
.ws-team-directory-progress:has(button[hidden]) { min-height: 0; padding: 0; }
.ws-dialog-copy { margin: 0 0 14px; color: var(--ws-text-2); font-size: 13px; }
.ws-copy-row { display: flex; gap: 8px; }
.ws-copy-row input { min-width: 0; flex: 1; height: 40px; padding: 0 10px; border: 1px solid var(--ws-line); color: var(--ws-text-2); }
.ws-role-list { border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-role-row { min-height: 68px; display: grid; grid-template-columns: minmax(190px, 1fr) minmax(210px, auto) auto 38px; align-items: center; gap: 16px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--ws-line); }
.ws-role-row:last-child { border-bottom: 0; }
.ws-role-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.ws-role-identity > span:last-child { min-width: 0; }
.ws-role-identity b, .ws-role-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-role-identity b { font-size: 13px; }
.ws-role-identity small { margin-top: 2px; color: var(--ws-text-3); font-size: 10px; }
.ws-role-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); }
.ws-role-icon svg { width: 16px; }
.ws-role-summary { display: flex; justify-content: flex-end; gap: 14px; color: var(--ws-text-3); font-size: 11px; }
.ws-role-summary span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ws-role-summary svg { width: 14px; }
.ws-role-edit { width: 34px; height: 34px; }
.ws-role-locked { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ws-text-3); }
.ws-role-locked svg { width: 15px; }
.ws-role-name-field { min-height: 96px; }
.ws-role-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--ws-line); }
.ws-switch-field { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-inline-end: 1px solid var(--ws-line); cursor: pointer; }
.ws-switch-field:last-child { border-inline-end: 0; }
.ws-switch-field > span:first-child { min-width: 0; margin-inline-end: auto; }
.ws-switch-field b { display: block; font-size: 11px; }
.ws-switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.ws-switch { position: relative; width: 34px; height: 20px; flex: 0 0 auto; border: 1px solid var(--ws-line-strong); background: var(--ws-surface-2); transition: background .15s ease, border-color .15s ease; }
.ws-switch:after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--ws-text-3); transition: transform .15s ease, background .15s ease; }
.ws-switch-field input:checked + .ws-switch { border-color: var(--ws-accent); background: var(--ws-accent-soft); }
.ws-switch-field input:checked + .ws-switch:after { background: var(--ws-accent); transform: translateX(14px); }
.ws-switch-field input:focus-visible + .ws-switch { outline: 2px solid var(--ws-info); outline-offset: 2px; }
.ws-role-permission-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ws-role-permission-head h3 { margin: 0; font-size: 13px; }
.ws-role-permissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding: 6px 12px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-role-permissions .ws-check-field { min-height: 61px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.ws-role-permissions .ws-check-field small { max-width: 38ch; }
.ws-impact-preview { min-height: 48px; margin-top: 14px; padding: 11px 12px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); font-size: 11px; line-height: 1.5; }
.ws-impact-preview.is-warning { border-color: rgba(184,121,10,.45); background: #F7EFE2; color: #8A5A06; }
.ws-impact-preview b { color: var(--ws-text); }
.ws-client-access-matrix { border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-assignment-search { display: block; max-width: none; margin-bottom: 10px; }
.ws-assignment-no-results { min-height: 100px; display: grid; place-items: center; margin: 0; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-assignment-no-results[hidden] { display: none; }
.ws-client-access-row { border-bottom: 1px solid var(--ws-line); }
.ws-client-access-row:last-child { border-bottom: 0; }
.ws-client-access-head { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; background: var(--ws-surface-2); }
.ws-client-access-head label { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; font-weight: 750; cursor: pointer; }
.ws-client-access-head input { width: 16px; height: 16px; accent-color: var(--ws-accent); }
.ws-client-access-head small { margin-inline-start: auto; color: var(--ws-text-3); font-size: 10px; }
.ws-client-access-locked { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; }
.ws-client-access-locked svg { width: 15px; color: var(--ws-text-3); }
.ws-client-responsibilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; padding: 6px 13px; }
.ws-client-responsibilities[hidden] { display: none; }
.ws-client-responsibilities .ws-check-field { min-height: 52px; }
.ws-client-responsibilities .ws-check-field small { max-width: 42ch; }
.ws-load-disabled { pointer-events: none; opacity: .58; }
.ws-field-guidance { min-height: 34px; margin: 0 0 9px; color: var(--ws-text-3); font-size: 10px; line-height: 1.45; }
.ws-confirm-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ws-line); }
.ws-confirm-list li { position: relative; padding: 10px 10px 10px 27px; border-bottom: 1px solid var(--ws-line); color: var(--ws-text-2); font-size: 11px; line-height: 1.45; }
.ws-confirm-list li::before { content: ""; position: absolute; left: 10px; top: 16px; width: 7px; height: 7px; background: #B8790A; }
.ws-confirm-danger .ws-dialog-subtitle { color: var(--ws-danger); }
.ws-confirm-danger .ws-confirm-list li::before { background: var(--ws-danger); }
.ws-button-danger { border-color: #C3372B; background: #C3372B; color: #fff; }
.ws-button-danger:hover, .ws-button-danger:focus-visible { border-color: #9C2C22; background: #9C2C22; }

.ws-queue { display: grid; }
.ws-queue-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--ws-line); text-decoration: none; }
.ws-queue-item:last-child { border-bottom: 0; }
.ws-queue-item:hover { background: #EBEFF5; }
.ws-queue-icon { width: 26px; height: 26px; display: grid; place-items: center; background: var(--ws-warn-soft); color: var(--ws-warn); }
.ws-queue-icon svg { width: 14px; }
.ws-queue-item b, .ws-queue-item span { display: block; }
.ws-queue-item b { font-size: 12px; }
.ws-queue-item span { margin-top: 2px; color: var(--ws-text-3); font-size: 11px; }
.ws-queue-item > svg { width: 15px; color: var(--ws-text-3); }
.ws-queue-button { width: 100%; border: 0; background: transparent; color: inherit; text-align: start; cursor: pointer; }

.ws-client-command-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ws-client-command-grid a { min-width: 0; min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border-inline-end: 1px solid var(--ws-line); color: var(--ws-text-2); font-size: 12px; font-weight: 680; text-decoration: none; }
.ws-client-command-grid a:last-child { border-inline-end: 0; }
.ws-client-command-grid a:hover, .ws-client-command-grid a:focus-visible { background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-client-command-grid svg { width: 17px; height: 17px; flex: 0 0 auto; }
.ws-client-command-grid span { overflow-wrap: anywhere; }

.ws-portfolio-snapshot-list { display: grid; }
.ws-portfolio-snapshot-row { min-width: 0; min-height: 82px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(110px, .65fr) minmax(150px, .8fr) auto; gap: 16px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--ws-line); }
.ws-portfolio-snapshot-row:last-child { border-bottom: 0; }
.ws-portfolio-snapshot-row b, .ws-portfolio-snapshot-row small, .ws-portfolio-snapshot-value span { display: block; }
.ws-portfolio-snapshot-row b { font-size: 12px; }
.ws-portfolio-snapshot-row small { margin-top: 3px; color: var(--ws-text-3); font-size: 10px; }
.ws-portfolio-snapshot-value { min-width: 0; font-variant-numeric: tabular-nums; }
.ws-portfolio-snapshot-value span { font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.ws-portfolio-snapshot-row .ws-button { justify-self: end; }
.ws-portfolio-snapshot-head .ws-info { margin-inline-start: 0; }
.ws-portfolio-snapshot-head .ws-panel-action { margin-inline-start: auto; }

.ws-empty { min-height: 240px; display: grid; place-items: center; padding: 38px; text-align: center; }
.ws-empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); }
.ws-empty-icon svg { width: 21px; }
.ws-empty h2, .ws-empty h3 { margin: 0; font-size: 16px; }
.ws-empty p { max-width: 420px; margin: 7px auto 15px; color: var(--ws-text-3); font-size: 12px; }
.ws-empty-compact { min-height: 170px; padding: 24px; }

.ws-detail-head { display: flex; align-items: center; gap: 16px; }
.ws-detail-head .ws-client-monogram { width: 48px; height: 48px; font-size: 14px; }
.ws-breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--ws-text-3); font-size: 11px; }
.ws-breadcrumbs a { color: var(--ws-accent); text-decoration: none; }
.ws-detail-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: var(--ws-text-3); font-size: 12px; }
.ws-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ws-data-list { margin: 0; }
.ws-data-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--ws-line); }
.ws-data-row:last-child { border-bottom: 0; }
.ws-data-row dt { color: var(--ws-text-3); }
.ws-data-row dd { margin: 0; font-weight: 580; overflow-wrap: anywhere; }
.ws-chip-list { display: flex; gap: 7px; flex-wrap: wrap; }
.ws-chip { min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); font-size: 11px; }
.ws-button-block { width: 100%; margin-top: 14px; }
.ws-total-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; padding: 0; background: var(--ws-line); }
.ws-total-row { min-height: 76px; display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; background: var(--ws-surface); }
.ws-total-row span { color: var(--ws-text-3); font-size: 10px; font-weight: 760; }
.ws-total-row strong { margin-top: 5px; font-size: 18px; }
.ws-table-action { width: 32px; height: 32px; border-color: transparent; color: var(--ws-text-3); }
.ws-table-action:hover { color: var(--ws-accent); background: var(--ws-accent-soft); border-color: rgba(14,122,70,.35); }
.ws-table-action[data-revoke]:hover { color: var(--ws-danger); background: var(--ws-danger-soft); border-color: rgba(195,55,43,.4); }
.ws-table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 72px; }
.ws-mobile-cell-label { display: none; }
.ws-table-action-danger:hover { color: var(--ws-danger); background: var(--ws-danger-soft); border-color: rgba(195,55,43,.4); }

.ws-auth-state { min-height: calc(100vh - var(--ws-topbar)); display: grid; place-items: center; padding: 30px; }
.ws-auth-card { width: min(460px, 100%); border: 1px solid var(--ws-line); background: var(--ws-surface); padding: 26px; }
.ws-auth-card h1 { margin: 0; font-size: 22px; }
.ws-auth-card p { margin: 8px 0 18px; color: var(--ws-text-2); }
.ws-inline-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ws-loader { width: 22px; height: 22px; border: 2px solid var(--ws-line); border-top-color: var(--ws-accent); border-radius: 50%; animation: ws-spin .7s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-loading-row { min-height: 180px; display: grid; place-items: center; }

.ws-dialog { width: min(700px, calc(100vw - 30px)); max-height: min(820px, calc(100vh - 30px)); padding: 0; border: 1px solid var(--ws-line-strong); background: var(--ws-surface); color: var(--ws-text); overflow: auto; }
.ws-dialog-small { width: min(460px, calc(100vw - 30px)); }
.ws-dialog-wide { width: min(920px, calc(100vw - 30px)); }
.ws-dialog::backdrop { background: rgba(16,21,34,.48); }
.ws-dialog-head { min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--ws-line); }
.ws-dialog-head h2 { margin: 0; font-size: 17px; }
.ws-dialog-head .ws-icon-button { margin-inline-start: auto; border: 0; }
.ws-dialog-body { padding: 20px; }
.ws-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-import-summary { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); font-size: 13px; color: var(--ws-text-2); }
.ws-import-summary strong { color: var(--ws-text); }
.ws-import-status { font-size: 12px; font-weight: 700; }
.ws-import-status.is-valid { color: var(--ws-accent); }
.ws-import-status.is-error { color: var(--ws-danger); }
.ws-field-label { display: block; margin-bottom: 7px; color: var(--ws-text-2); font-size: 12px; font-weight: 700; }
.ws-value-mode { width: max-content; max-width: 100%; }
.ws-value-result { min-height: 42px; padding: 11px 13px; border-inline-start: 3px solid var(--ws-accent); background: var(--ws-surface-2); color: var(--ws-text-2); font-size: 13px; }
.ws-value-result strong { color: var(--ws-text); }
.ws-template-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-template-panel > div:first-child { display: grid; gap: 4px; }
.ws-template-panel b { font-size: 14px; }
.ws-template-panel span { color: var(--ws-text-2); font-size: 12px; }
.ws-template-actions { display: flex; gap: 8px; flex: none; }
.ws-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ws-field { min-height: 108px; display: grid; grid-template-rows: 18px 42px minmax(28px, auto) 18px; gap: 4px; align-content: start; }
.ws-field-full { grid-column: 1 / -1; }
.ws-field label { display: flex; align-items: baseline; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ws-text-2); }
.ws-required { color: var(--ws-danger); }
.ws-optional { margin-inline-start: auto; color: var(--ws-text-3); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.ws-field input, .ws-field select, .ws-field textarea { width: 100%; height: 42px; min-height: 42px; padding: 9px 11px; border: 1px solid var(--ws-line); background: #fff; color: var(--ws-text); outline: none; }
.ws-field textarea { min-height: 82px; resize: vertical; }
.ws-field-textarea { min-height: 148px; grid-template-rows: 18px 82px minmax(28px, auto) 18px; }
.ws-field input:focus, .ws-field select:focus, .ws-field textarea:focus { border-color: var(--ws-accent); }
.ws-field [aria-invalid="true"] { border-color: var(--ws-danger); }
.ws-field .iti { width: 100%; }
.ws-field .iti input { width: 100%; direction: ltr; text-align: start; }
.ws-dialog .iti__dropdown-content { z-index: 150; }
.ws-field small { color: var(--ws-text-3); font-size: 10px; line-height: 1.35; }
.ws-field-error { color: var(--ws-danger); font-size: 10px; line-height: 1.3; }
.ws-inline-retry { appearance: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.ws-inline-retry:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ws-asset-source-field { position: relative; min-height: 102px; grid-template-rows: 18px 42px minmax(28px, auto); }
.ws-asset-source-field .ws-field-label-actions { position: absolute; inset-block-start: -4px; inset-inline-end: 0; }
.ws-asset-source-field .ws-info { width: 26px; height: 26px; border: 0; }
.ws-asset-source-field .ws-segmented { width: max-content; max-width: 100%; }
.ws-asset-search-field { position: relative; min-height: 112px; z-index: 4; }
.ws-asset-combobox { position: relative; min-width: 0; }
.ws-asset-combobox input { padding-inline-end: 44px; }
.ws-asset-search-loader { position: absolute; inset-block-start: 10px; inset-inline-end: 12px; width: 20px; height: 20px; }
.ws-asset-results { position: absolute; inset: calc(100% + 3px) 0 auto; z-index: 12; max-height: 304px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ws-line-strong); background: var(--ws-surface); }
.ws-asset-results[hidden] { display: none; }
.ws-asset-result { width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); text-align: start; cursor: pointer; }
.ws-asset-result:last-child { border-bottom: 0; }
.ws-asset-result:hover, .ws-asset-result.is-active, .ws-asset-result[aria-selected="true"] { background: var(--ws-accent-soft); box-shadow: inset 3px 0 0 var(--ws-accent); }
.ws-asset-result.is-unverified { background: #F7EFE2; }
.ws-asset-result.is-unverified:hover, .ws-asset-result.is-unverified[aria-selected="true"] { background: #F0E4CE; box-shadow: inset 3px 0 0 #B8790A; }
.ws-asset-result > span { min-width: 0; display: grid; gap: 3px; }
.ws-asset-result b, .ws-asset-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-asset-result b { font-size: 12px; }
.ws-asset-result small { color: var(--ws-text-3); font-size: 10px; }
.ws-asset-result .ws-asset-identity { font-weight: 700; }
.ws-asset-result .ws-asset-identity.is-verified { color: var(--ws-accent); }
.ws-asset-result .ws-asset-identity.is-warning { color: #8A5A06; }
.ws-asset-result-meta { max-width: 230px; text-align: end; }
.ws-asset-result-meta b { font-variant-numeric: tabular-nums; }
.ws-asset-result-meta .is-positive, .ws-asset-return.is-positive { color: var(--ws-accent); }
.ws-asset-result-meta .is-negative, .ws-asset-return.is-negative { color: var(--ws-danger); }
.ws-asset-result-empty { min-height: 72px; display: grid; align-content: center; gap: 3px; padding: 12px; color: var(--ws-text-2); }
.ws-asset-result-empty b { font-size: 12px; }
.ws-asset-result-empty small { color: var(--ws-text-3); font-size: 10px; }
.ws-manual-asset-fields { min-width: 0; }
.ws-manual-asset-fields > .ws-form-grid { gap: 16px; }
.ws-asset-preview { min-width: 0; padding: 0; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-asset-preview[hidden] { display: none; }
.ws-asset-preview-head { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ws-line); }
.ws-asset-preview-head > div { min-width: 0; flex: 1; }
.ws-asset-preview-head h3 { margin: 3px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.ws-asset-preview-head p { margin: 2px 0 0; color: var(--ws-text-3); font-size: 10px; overflow-wrap: anywhere; }
.ws-market-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.ws-market-badges .ws-identity-info { width: 22px; height: 22px; border: 0; }
.ws-market-kind { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.ws-market-kind.is-proxy { border-color: rgba(184,121,10,.45); background: #F7EFE2; color: #8A5A06; }
.ws-identity-kind.is-verified { border-color: rgba(14,122,70,.4); background: #E7F2EC; color: #0E7A46; }
.ws-asset-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; border-bottom: 1px solid var(--ws-line); }
.ws-asset-preview-grid > div { min-width: 0; min-height: 76px; display: grid; align-content: center; gap: 4px; padding: 11px 14px; border-inline-end: 1px solid var(--ws-line); }
.ws-asset-preview-grid span, .ws-asset-preview-grid small { color: var(--ws-text-3); font-size: 9px; }
.ws-asset-preview-grid strong { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ws-asset-preview-grid > .ws-button { align-self: center; margin: 0 12px; white-space: nowrap; }
.ws-asset-chart { position: relative; height: 156px; margin: 14px 14px 0; border-bottom: 1px solid var(--ws-line); outline: none; touch-action: pan-y; }
.ws-asset-chart:focus-visible { outline: 2px solid var(--ws-focus); outline-offset: 2px; }
.ws-asset-chart svg { width: 100%; height: 150px; overflow: visible; }
.ws-asset-chart-line { fill: none; stroke: var(--ws-accent); stroke-width: 2.25; vector-effect: non-scaling-stroke; }
.ws-asset-chart-guide { stroke: var(--ws-text-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: .72; vector-effect: non-scaling-stroke; }
.ws-asset-chart-point { fill: var(--ws-surface); stroke: var(--ws-accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ws-asset-chart-tooltip { position: absolute; z-index: 2; max-width: 220px; padding: 7px 9px; border: 1px solid var(--ws-line-strong); background: var(--ws-text); color: #fff; font-size: 10px; line-height: 1.4; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.ws-asset-receipt { min-height: 36px; margin: 0; padding: 8px 14px 10px; color: var(--ws-text-3); font-size: 9px; line-height: 1.45; }
.ws-asset-receipt.is-warning { color: #8A5A06; }
.ws-form-errors { margin-bottom: 14px; padding: 11px 13px; border-inline-start: 3px solid var(--ws-danger); background: var(--ws-danger-soft); color: var(--ws-danger); font-size: 11px; }
.ws-form-errors b { color: var(--ws-text); }
.ws-form-errors ul { margin: 6px 0 0 17px; padding: 0; }
.ws-form-errors a { color: var(--ws-danger); font-weight: 650; }
.ws-check-field { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.ws-check-field input { width: 17px; height: 17px; accent-color: var(--ws-accent); }
.ws-check-field span, .ws-check-field b, .ws-check-field small { display: block; }
.ws-check-field b { font-size: 11px; }
.ws-check-field small { margin-top: 2px; color: var(--ws-text-3); font-size: 10px; }
.ws-dialog-subtitle { display: block; margin-top: 2px; color: var(--ws-text-3); font-size: 11px; }
.ws-field.ws-client-picker { min-width: 0; min-height: 0; display: block; margin: 0; padding: 0; border: 0; }
.ws-field.ws-client-picker[hidden] { display: none; }
.ws-client-picker legend { width: 100%; margin-bottom: 8px; color: var(--ws-text-2); font-size: 11px; font-weight: 750; }
.ws-client-picker legend span { margin-inline-start: 5px; color: var(--ws-text-3); font-weight: 500; }
.ws-client-picker > div { max-height: 260px; overflow: auto; border: 1px solid var(--ws-line); background: var(--ws-surface-2); padding: 3px 12px; }
.ws-client-picker > small { display: block; min-height: 30px; padding-top: 6px; color: var(--ws-text-3); font-size: 10px; }
.ws-client-picker .ws-check-field { min-height: 52px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ws-line); }
.ws-client-picker .ws-check-field input { width: 17px; height: 17px; min-height: 17px; flex: 0 0 auto; padding: 0; border: 0; }
.ws-client-picker .ws-check-field:last-child { border-bottom: 0; }
.ws-assignment-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 18px; }
.ws-callout .ws-check-field { flex: 1; padding: 0; }
.ws-form-error { min-height: 20px; margin-top: 13px; color: var(--ws-danger); font-size: 12px; }

.ws-onboarding-scope { min-height: 58px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-onboarding-client { display: flex; align-items: center; gap: 8px; color: var(--ws-text-3); font-size: 11px; font-weight: 700; }
.ws-onboarding-client .ws-select { min-width: 230px; }
.ws-onboarding-counts { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; color: var(--ws-text-3); font-size: 12px; }
.ws-onboarding-counts button { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 6px; border: 0; background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.ws-onboarding-counts button:hover { background: var(--ws-surface-2); color: var(--ws-text); }
.ws-onboarding-counts b { color: var(--ws-text); font-size: 16px; }
.ws-onboarding-next { min-height: 82px; display: flex; align-items: center; gap: 18px; margin: -6px 0 18px; padding: 14px 16px; border: 1px solid rgba(14,122,70,.35); border-inline-start: 4px solid var(--ws-accent); background: var(--ws-accent-soft); }
.ws-onboarding-next > div { min-width: 0; }
.ws-onboarding-next span { color: var(--ws-accent); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.ws-onboarding-next h2 { margin: 3px 0 2px; font-size: 16px; }
.ws-onboarding-next p { margin: 0; color: var(--ws-text-2); font-size: 12px; }
.ws-onboarding-next .ws-button { margin-inline-start: auto; flex: 0 0 auto; }
.ws-onboarding-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.ws-onboarding-stepper { display: grid; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-onboarding-stepper button { min-height: 66px; display: grid; grid-template-columns: 25px minmax(0, 1fr) 17px; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--ws-line); background: transparent; color: var(--ws-text-2); text-align: start; cursor: pointer; }
.ws-onboarding-stepper button:last-child { border-bottom: 0; }
.ws-onboarding-stepper button:hover { background: var(--ws-surface-2); }
.ws-onboarding-stepper button.is-active { box-shadow: inset 3px 0 0 var(--ws-accent); background: var(--ws-accent-soft); color: var(--ws-text); }
[dir="rtl"] .ws-onboarding-stepper button.is-active { box-shadow: inset -3px 0 0 var(--ws-accent); }
.ws-onboarding-stepper button > span, .ws-onboarding-stepper b, .ws-onboarding-stepper small { display: block; min-width: 0; }
.ws-onboarding-stepper b { font-size: 12px; }
.ws-onboarding-stepper small { margin-top: 2px; color: var(--ws-text-3); font-size: 10px; }
.ws-onboarding-stepper svg { width: 16px; height: 16px; color: var(--ws-line-strong); }
.ws-onboarding-stepper .is-complete svg { color: var(--ws-accent); }
.ws-onboarding-step-number { width: 24px; height: 24px; display: grid !important; place-items: center; border: 1px solid var(--ws-line-strong); color: var(--ws-text-3); font-size: 10px; font-weight: 800; }
.ws-onboarding-stepper .is-active .ws-onboarding-step-number { border-color: var(--ws-accent); background: var(--ws-accent); color: #fff; }
.ws-onboarding-form { min-width: 0; }
.ws-onboarding-form.is-loading { opacity: .58; pointer-events: none; }
.ws-onboarding-form .ws-panel-head { min-height: 65px; justify-content: space-between; }
.ws-onboarding-form .ws-panel-head > div > span { color: var(--ws-text-3); font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .055em; }
.ws-onboarding-form .ws-panel-head h2 { margin-top: 2px; font-size: 16px; }
.ws-onboarding-form .ws-panel-body { min-height: 270px; padding: 20px; }
.ws-onboarding-optional { margin-top: 16px; border-top: 1px solid var(--ws-line); }
.ws-onboarding-optional summary { display: flex; align-items: center; gap: 8px; padding: 14px 0 0; color: var(--ws-text-2); font-size: 12px; font-weight: 750; cursor: pointer; }
.ws-onboarding-optional summary span { color: var(--ws-text-3); font-size: 10px; font-weight: 650; }
.ws-onboarding-optional[open] summary { margin-bottom: 14px; }
.ws-onboarding-actions { min-height: 66px; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-onboarding-actions p { min-width: 0; margin: 0 auto 0 0; color: var(--ws-text-3); font-size: 11px; overflow-wrap: anywhere; }
[dir="rtl"] .ws-onboarding-actions p { margin: 0 0 0 auto; }
.ws-onboarding-checklist-note { margin: 0 0 10px; color: var(--ws-text-3); font-size: 11px; }
.ws-onboarding-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.ws-onboarding-checklist .ws-check-field { border-bottom: 1px solid var(--ws-line); }
.ws-onboarding-requirements { display: grid; margin-top: 14px; border: 1px solid var(--ws-line); }
.ws-requirement-row { min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto 180px; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--ws-line); }
.ws-requirement-row:last-child { border-bottom: 0; }
.ws-requirement-row b, .ws-requirement-row small { display: block; }
.ws-requirement-row b { font-size: 12px; }
.ws-requirement-row small { margin-top: 3px; color: var(--ws-text-3); font-size: 10px; }
.ws-requirement-row a { display: inline-block; margin-top: 4px; color: var(--ws-info); font-size: 10px; font-weight: 650; }
.ws-button-small { min-height: 34px; padding: 0 10px; font-size: 10px; }
.ws-callout-warning { display: flex; align-items: flex-start; gap: 9px; border-color: rgba(184,121,10,.45); background: #F7EFE2; }
.ws-callout-warning > svg { flex: 0 0 auto; color: #8A5A06; }
.ws-callout-warning p, .ws-callout-warning b, .ws-callout-warning span { display: block; margin: 0; }
.ws-callout-warning span { margin-top: 2px; color: var(--ws-text-2); }
.ws-onboarding-empty { margin-top: 0; }

.ws-popover {
  position: fixed;
  z-index: 120;
  width: min(300px, calc(100vw - 24px));
  padding: 12px 13px;
  border: 1px solid var(--ws-line-strong);
  background: var(--ws-surface);
  color: var(--ws-text-2);
  font-size: 12px;
}
.ws-popover b { display: block; margin-bottom: 4px; color: var(--ws-text); }
.ws-help-dialog { width: min(620px, 100vw); height: 100dvh; max-height: none; margin: 0; padding: 0; inset-block: 0; inset-inline: auto 0; border: 0; border-inline-start: 1px solid var(--ws-line-strong); background: var(--ws-surface); color: var(--ws-text); }
.ws-help-dialog::backdrop { background: rgba(16,21,34,.48); }
.ws-help-frame { height: 100%; display: flex; flex-direction: column; }
.ws-help-head { min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--ws-line); }
.ws-help-head > div { min-width: 0; }
.ws-help-head h2 { margin: 2px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.ws-help-kicker { color: var(--ws-accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ws-help-close { flex: none; margin-inline-start: auto; border: 0; font-size: 25px; line-height: 1; }
.ws-help-body { flex: 1; overflow: auto; padding: 22px 24px 48px; font-size: 14px; line-height: 1.65; }
.ws-help-body h1 { margin: 8px 0 10px; font-size: 28px; line-height: 1.15; }
.ws-help-body h2 { margin: 28px 0 7px; font-size: 19px; }
.ws-help-body h3 { margin: 22px 0 6px; font-size: 15px; }
.ws-help-body ol, .ws-help-body ul { padding-inline-start: 22px; }
.ws-help-body li { margin: 8px 0; }
.ws-help-body .help-kicker { color: var(--ws-accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ws-help-body .help-lead { color: var(--ws-text-2); font-size: 15px; }
.ws-help-body .help-note { margin: 20px 0; padding: 14px 16px; border-inline-start: 3px solid var(--ws-accent); background: var(--ws-accent-soft); }
.ws-help-status { margin: 0; color: var(--ws-text-2); }
.ws-help-status + .ws-button { margin-top: 14px; }
.ws-toast { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 130; max-width: 360px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(14,122,70,.35); background: var(--ws-accent-soft); color: var(--ws-accent); font-weight: 650; }
.ws-toast.is-error { border-color: rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-toast svg { width: 17px; }

.ws-sidebar-scrim { display: none; }
.ws-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ws-info); outline-offset: 2px; }

@media (max-width: 700px) {
  .ws-client-responsibilities { grid-template-columns: 1fr; }
  .ws-client-access-head { align-items: flex-start; flex-wrap: wrap; }
  .ws-client-access-head small { width: 100%; margin-inline-start: 26px; }
  .ws-help-dialog { width: 100vw; height: min(92dvh, 760px); inset-block: auto 0; border-inline: 0; border-top: 1px solid var(--ws-line-strong); }
  .ws-help-body { padding-inline: 18px; }
}

@media (max-width: 1050px) {
  .ws-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-metric { border-inline-end: 1px solid var(--ws-line); border-top: 0; }
  .ws-metric:nth-child(2n) { border-inline-end: 0; }
  .ws-metric:nth-child(n+3) { border-top: 1px solid var(--ws-line); }
  .ws-grid-2, .ws-detail-grid { grid-template-columns: 1fr; }
  .ws-client-command-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-client-command-grid a:nth-child(-n+3) { border-bottom: 1px solid var(--ws-line); }
  .ws-client-command-grid a:nth-child(3n) { border-inline-end: 0; }
  .ws-onboarding-layout { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .ws-portfolio-snapshot-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .ws-portfolio-snapshot-value { grid-column: 1 / -1; }
  .ws-portfolio-snapshot-row .ws-button { grid-column: 2; grid-row: 1; }
  .ws-asset-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-asset-preview-grid > div:nth-child(3) { border-inline-end: 0; }
  .ws-asset-preview-grid > .ws-button { grid-column: 1 / -1; width: auto; margin: 10px 12px; justify-content: center; }
  .ws-asset-result-meta { max-width: 42vw; }
  .ws-price-checks .ws-panel-head { align-items: stretch; flex-direction: column; }
  .ws-price-checks .ws-panel-head .ws-button { width: 100%; justify-content: center; }
  .ws-price-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-price-check-grid > div:nth-child(2) { border-inline-end: 0; }
  .ws-price-check-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--ws-line); }
  .ws-price-checks .ws-panel-foot { align-items: flex-start; flex-direction: column; }
  .ws-price-actions { width: 100%; justify-content: flex-start; }
  .ws-portfolio-holdings-table { min-width: 0; }
  .ws-portfolio-holdings-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .ws-portfolio-holdings-table, .ws-portfolio-holdings-table tbody { display: block; width: 100%; }
  .ws-portfolio-holdings-table tbody { padding: 10px; }
  .ws-portfolio-holdings-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; border: 1px solid var(--ws-line); }
  .ws-portfolio-holdings-table tbody tr:last-child { margin-bottom: 0; }
  .ws-portfolio-holdings-table td { min-width: 0; height: auto; padding: 10px 12px; border-bottom: 1px solid var(--ws-line); }
  .ws-portfolio-holdings-table td::before { display: block; margin-bottom: 5px; color: var(--ws-text-3); content: attr(data-label); font-size: 9px; font-weight: 760; text-transform: uppercase; }
  .ws-portfolio-holdings-table td:first-child, .ws-portfolio-holdings-table td:last-child { grid-column: 1 / -1; }
  .ws-portfolio-holdings-table td:first-child::before { display: none; }
  .ws-portfolio-holdings-table td:nth-child(2n):not(:last-child) { border-inline-end: 1px solid var(--ws-line); }
  .ws-portfolio-holdings-table td:last-child { border-bottom: 0; }
  .ws-portfolio-holdings-table .ws-live-price,
  .ws-portfolio-holdings-table .ws-live-value,
  .ws-portfolio-holdings-table .ws-price-difference,
  .ws-portfolio-holdings-table .ws-live-expired,
  .ws-portfolio-holdings-table .ws-live-pending,
  .ws-portfolio-holdings-table .ws-pnl { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  html, body.mg-workspace { overflow-x: hidden; }
  :root { --ws-topbar: 58px; }
  .ws-shell { display: block; }
  .ws-frame { grid-column: auto; }
  .ws-sidebar { transform: translateX(-100%); transition: transform .18s ease; }
  [dir="rtl"] .ws-sidebar { transform: translateX(100%); }
  body.ws-nav-open .ws-sidebar { transform: translateX(0); }
  .ws-sidebar-scrim { position: fixed; inset: 0 0 0 var(--ws-sidebar); z-index: 45; display: block; border: 0; background: rgba(21,25,30,.45); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  body.ws-nav-open .ws-sidebar-scrim { opacity: 1; pointer-events: auto; }
  .ws-icon-button.ws-mobile-menu { display: inline-grid; }
  .ws-topbar { gap: 8px; padding: 0 12px; }
  body.ws-m-mounted .ws-topbar { padding-inline-end: 58px; }
  .ws-org-block { flex: 1; }
  .ws-top-spacer { display: none; }
  .ws-search-button { width: 38px; padding: 0; justify-content: center; }
  .ws-search-button span { display: none; }
  .ws-org-block b { max-width: 160px; }
  .ws-main { padding: 22px 14px 54px; }
  .ws-page-head h1 { font-size: 27px; }
  .ws-page-head { display: block; }
  .ws-page-actions { margin: 15px 0 0; }
  .ws-page-actions .ws-button { flex: 1; }
  .ws-home-actions .ws-button-primary { flex-basis: 100%; }
  .ws-home-actions .ws-info { order: 3; }
  .ws-metrics { grid-template-columns: 1fr 1fr; }
  .ws-metric { min-height: 104px; padding: 15px; }
  .ws-metric strong { font-size: 24px; }
  .ws-toolbar { flex-wrap: wrap; }
  .ws-search-input { flex-basis: 100%; max-width: none; }
  .ws-select { flex: 1; min-width: 0; }
  .ws-count { width: 100%; margin: 0; }
  .ws-team-scopebar { align-items: stretch; flex-wrap: wrap; }
  .ws-team-directory-toolbar { align-items: stretch; flex-wrap: wrap; }
  .ws-team-directory-toolbar .ws-segmented { width: 100%; }
  .ws-team-directory-toolbar .ws-segmented button { flex: 1; }
  .ws-team-search { width: 100%; }
  .ws-team-directory-progress .ws-button { width: 100%; justify-content: center; }
  .ws-segmented, .ws-team-client, .ws-team-client .ws-select, .ws-team-notification-setting, .ws-team-notifications, .ws-team-notifications .ws-select { width: 100%; }
  .ws-team-notification-setting { margin-inline-start: 0; }
  .ws-team-notifications { min-width: 0; flex-wrap: wrap; }
  .ws-team-notification-setting .ws-info { align-self: flex-end; margin-bottom: 4px; }
  .ws-segmented button { flex: 1; }
  .ws-template-panel { align-items: stretch; flex-direction: column; }
  .ws-template-actions .ws-button { flex: 1; justify-content: center; }
  .ws-team-scopebar .ws-info { margin-inline-start: 0; }
  .ws-role-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .ws-role-summary { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-inline-start: 45px; }
  .ws-role-switches, .ws-role-permissions { grid-template-columns: 1fr; }
  .ws-assignment-layout { grid-template-columns: 1fr; }
  .ws-access-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-access-metrics > div:nth-child(2) { border-inline-end: 0; }
  .ws-access-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--ws-line); }
  .ws-access-finding { grid-template-columns: 28px minmax(0, 1fr); }
  .ws-access-finding .ws-button { grid-column: 2; width: max-content; }
  .ws-access-activity-row { grid-template-columns: 32px minmax(0, 1fr); }
  .ws-access-activity-meta { grid-column: 2; display: flex; align-items: baseline; gap: 8px; text-align: start; }
  .ws-access-activity-meta b { max-width: min(50vw, 220px); }
  .ws-access-activity-meta time { margin-top: 0; }
  .ws-team-table-wrap { overflow: visible; border: 0; background: transparent; }
  .ws-team-table { min-width: 0; display: block; }
  .ws-team-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
  .ws-team-table tbody { display: grid; gap: 10px; }
  .ws-team-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ws-line); background: var(--ws-surface); }
  .ws-team-table td { min-width: 0; height: auto; padding: 10px 12px; border-bottom: 1px solid var(--ws-line); }
  .ws-team-table td:first-child { grid-column: 1 / -1; }
  .ws-team-table td:nth-child(2), .ws-team-table td:nth-child(3), .ws-team-table td:nth-child(4), .ws-team-table td:nth-child(5) { width: auto; }
  .ws-mobile-cell-label { display: block; margin-bottom: 5px; color: var(--ws-text-3); font-size: 9px; font-weight: 760; text-transform: uppercase; }
  .ws-team-table td:first-child .ws-mobile-cell-label { margin-bottom: 8px; }
  .ws-team-table td:last-child { grid-column: 1 / -1; width: auto; display: block; border-bottom: 0; text-align: start; }
  .ws-team-table .ws-table-actions { width: 100%; min-width: 0; justify-content: flex-start; flex-wrap: wrap; }
  .ws-team-table .ws-table-manage { flex: 1 1 170px; min-width: 0; max-width: 100%; justify-content: center; }
  .ws-team-table .ws-table-actions .ws-button:not(.ws-icon-button) { max-width: 100%; white-space: normal; }
  .ws-team-table .ws-table-primary { min-width: 0; }
  .ws-team-table .ws-table-primary b { overflow-wrap: anywhere; }
  .ws-switch-field { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-switch-field:last-child { border-bottom: 0; }
  .ws-onboarding-scope { align-items: stretch; flex-wrap: wrap; }
  .ws-onboarding-scope .ws-segmented, .ws-onboarding-client, .ws-onboarding-client .ws-select { width: 100%; }
  .ws-onboarding-counts { width: 100%; margin-inline-start: 0; justify-content: flex-end; }
  .ws-onboarding-layout { grid-template-columns: 1fr; gap: 12px; }
  .ws-onboarding-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-onboarding-stepper button { min-height: 58px; grid-template-columns: 24px minmax(0, 1fr); border-bottom: 0; border-inline-end: 1px solid var(--ws-line); padding: 8px; }
  .ws-onboarding-stepper button:last-child { border-inline-end: 0; }
  .ws-onboarding-stepper button > span:nth-child(2) small, .ws-onboarding-stepper [data-step-status] { display: none; }
  .ws-onboarding-checklist { grid-template-columns: 1fr; }
  .ws-onboarding-actions { flex-wrap: wrap; }
  .ws-onboarding-next { align-items: flex-start; flex-wrap: wrap; }
  .ws-onboarding-next .ws-button { width: 100%; margin-inline-start: 0; }
  .ws-requirement-row { grid-template-columns: 1fr; gap: 8px; }
  .ws-onboarding-actions p { width: 100%; margin: 0 0 4px; }
  .ws-copy-row { display: grid; }
  .ws-form-grid { grid-template-columns: 1fr; }
  .ws-field-full { grid-column: auto; }
  .ws-dialog-foot .ws-button { flex: 1; }
  .ws-data-row { grid-template-columns: 110px minmax(0, 1fr); }
  .ws-recent-table th:nth-child(4), .ws-recent-table td:nth-child(4) { display: none; }
  .ws-recent-table .ws-table-primary { min-width: 0; }
}

@media (max-width: 560px) {
  .ws-progressive-fields > summary { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 8px; }
  .ws-client-command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-client-command-grid a { border-inline-end: 1px solid var(--ws-line); border-bottom: 1px solid var(--ws-line); }
  .ws-client-command-grid a:nth-child(2n) { border-inline-end: 0; }
  .ws-client-command-grid a:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 430px) {
  .ws-asset-source-field .ws-segmented { width: 100%; }
  .ws-asset-result { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .ws-asset-result-meta { max-width: none; text-align: start; }
  .ws-asset-preview-grid { grid-template-columns: 1fr; }
  .ws-asset-preview-grid > div { min-height: 62px; border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-asset-preview-grid > .ws-button { grid-column: auto; }
  .ws-asset-chart { height: 136px; margin-inline: 10px; }
  .ws-asset-chart svg { height: 130px; }
  .ws-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-metric { min-height: 88px; padding: 13px; border-inline-end: 1px solid var(--ws-line); border-top: 0; border-bottom: 0; }
  .ws-metric:nth-child(2n) { border-inline-end: 0; }
  .ws-metric:nth-child(n+3) { border-top: 1px solid var(--ws-line); }
  .ws-inline-error { align-items: stretch; flex-direction: column; }
  .ws-detail-head { align-items: flex-start; }
  .ws-detail-head .ws-client-monogram { width: 40px; height: 40px; }
  .ws-page-head h1 { overflow-wrap: anywhere; }
  .ws-onboarding-stepper button { display: flex; justify-content: center; }
  .ws-onboarding-stepper button > span:nth-child(2), .ws-onboarding-actions p { display: none; }
  .ws-onboarding-actions .ws-button { flex: 1; padding: 0 9px; }
  .ws-team-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-team-metrics .ws-metric { border-inline-end: 1px solid var(--ws-line); border-bottom: 1px solid var(--ws-line); }
  .ws-team-metrics .ws-metric:nth-child(2n) { border-inline-end: 0; }
  .ws-team-metrics .ws-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .ws-portal-team-metrics .ws-metric:last-child { grid-column: 1 / -1; border-inline-end: 0; border-bottom: 0; }
}

@media (max-width: 430px) {
  .ws-portal-team-metrics .ws-metric:nth-child(2) {
    border-bottom: 1px solid var(--ws-line);
  }
}

.ws-document-page-head { margin-bottom: 18px; }
.ws-outcome-card { min-height: 132px; display: flex; align-items: center; gap: 24px; margin-bottom: 12px; padding: 20px 22px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-outcome-card > div { min-width: 0; flex: 1; }
.ws-outcome-card h2 { max-width: 820px; margin: 5px 0; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.18; }
.ws-outcome-card p { max-width: 860px; margin: 0; color: var(--ws-text-2); font-size: 11px; line-height: 1.55; }
.ws-outcome-card .ws-button { flex: none; }
.ws-outcome-card[data-outcome-kind="inspect_unknown"], .ws-outcome-card[data-outcome-kind="inspect_unavailable"], .ws-outcome-card[data-outcome-kind="inspect_rejected"], .ws-outcome-card[data-outcome-kind="load_error"], .ws-outcome-card[data-outcome-kind="workspace_error"] { border-color: rgba(195,55,43,.4); }
.ws-outcome-card[data-outcome-kind="review_extraction"], .ws-outcome-card[data-outcome-kind="transfer_attention"], .ws-outcome-card[data-outcome-kind="contract_error"] { border-color: rgba(184,121,10,.45); }
.ws-exploration-tools { margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-exploration-tools > summary { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 11px 15px; cursor: pointer; list-style: none; }
.ws-exploration-tools > summary::-webkit-details-marker { display: none; }
.ws-exploration-tools > summary > span { min-width: 0; display: grid; flex: 1; gap: 3px; }
.ws-exploration-tools > summary b { font-size: 12px; }
.ws-exploration-tools > summary small { color: var(--ws-text-3); font-size: 10px; overflow-wrap: anywhere; }
.ws-exploration-tools > summary > svg { width: 17px; flex: none; color: var(--ws-text-3); transition: transform .16s ease; }
.ws-exploration-tools:not([open]) > .ws-exploration-tools-body { display: none; }
.ws-exploration-tools[open] > summary { border-bottom: 1px solid var(--ws-line); }
.ws-exploration-tools[open] > summary > svg { transform: rotate(180deg); }
.ws-exploration-tools-body { padding: 16px; }
.ws-document-actions { justify-content: flex-start; margin-bottom: 14px; }
.ws-document-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; }
.ws-document-toolbar > label { display: grid; gap: 6px; min-width: min(340px, 45vw); }
.ws-document-toolbar > label > span { color: var(--ws-text-2); font-size: 12px; font-weight: 700; }
.ws-document-metrics { margin-bottom: 18px; }
.ws-storage-bar { height: 4px; margin: 0 18px; background: var(--ws-surface-2); overflow: hidden; }
.ws-storage-bar > span { display: block; width: 0; height: 100%; background: var(--ws-accent); transition: width .2s ease; }
.ws-document-name { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.ws-document-name > span:last-child { display: grid; gap: 2px; }
.ws-document-name b { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-document-name small { color: var(--ws-text-3); }
.ws-document-viewer { width: min(1120px, calc(100vw - 40px)); max-width: none; }
.ws-document-viewer-body { min-height: min(640px, 70vh); display: grid; grid-template-columns: 230px minmax(0,1fr); }
.ws-document-viewer-body > aside { padding: 18px; border-inline-end: 1px solid var(--ws-line); overflow: auto; }
.ws-document-viewer-body > aside h3 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; color: var(--ws-text-3); }
.ws-version-item { width: 100%; display: grid; gap: 3px; padding: 11px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; }
.ws-version-item:hover { background: var(--ws-surface-2); }
.ws-version-item.is-current { border-color: var(--ws-line); background: var(--ws-accent-soft); }
.ws-version-item span, .ws-version-item small { color: var(--ws-text-3); font-size: 11px; }
.ws-document-preview { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 30px; background: #E3E8F0; color: var(--ws-text-3); text-align: center; }
.ws-document-preview svg { width: 40px; height: 40px; }
.ws-document-preview b { color: var(--ws-text); font-size: 16px; }
.ws-document-preview span { max-width: 380px; }
.ws-viewer-main { min-width: 0; display: grid; grid-template-rows: auto minmax(0,1fr); }
.ws-viewer-tabs { padding: 0 18px; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-viewer-tabs .ws-tab { min-height: 48px; }
.ws-viewer-tabs .ws-tab span { margin-inline-start: 5px; color: var(--ws-text-3); }
.ws-viewer-pane { min-height: 0; overflow: auto; }
.ws-document-preview iframe { width: 100%; min-height: min(580px, 64vh); border: 0; background: white; }
.ws-viewer-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px; }
.ws-viewer-section-head h3 { margin: 0 0 4px; font-size: 17px; }
.ws-viewer-section-head p { margin: 0; color: var(--ws-text-3); font-size: 13px; }
.ws-extracted-table td { vertical-align: middle; }
.ws-extracted-table small { display: block; color: var(--ws-text-3); }
.ws-empty-inline { margin: 0 22px 22px; padding: 24px; border: 1px dashed var(--ws-line); color: var(--ws-text-3); text-align: center; }
.ws-access-form { display: grid; grid-template-columns: minmax(220px,1fr) minmax(300px,1.3fr) minmax(170px,.7fr) auto; align-items: end; gap: 14px; padding: 0 22px 20px; border-bottom: 1px solid var(--ws-line); }
.ws-permission-grid { min-height: 74px; display: grid; grid-template-columns: repeat(2,minmax(120px,1fr)); gap: 8px 14px; align-content: center; }
.ws-permission-grid label { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.ws-access-list { display: grid; }
.ws-access-item { display: grid; grid-template-columns: minmax(180px,1fr) 2fr auto; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--ws-line); }
.ws-access-item small { display: block; color: var(--ws-text-3); }
.ws-access-permissions { color: var(--ws-text-2); font-size: 12px; }
.ws-button-danger { color: var(--ws-danger); border-color: color-mix(in srgb, var(--ws-danger) 40%, var(--ws-line)); }
.ws-dialog textarea { min-height: 96px; resize: vertical; }

@media (max-width: 1050px) {
  .ws-access-form { grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.35fr); }
  .ws-access-form > .ws-field:nth-of-type(2), .ws-access-form > .ws-button { align-self: end; }
  .ws-viewer-tabs { overflow-x: auto; }
  .ws-viewer-tabs .ws-tab { flex: 0 0 auto; }
}

.ws-upload-dialog { width: min(780px, calc(100vw - 30px)); }
.ws-document-intake-status { min-height: 46px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 28px; align-items: center; gap: 10px; margin: -8px 0 14px; padding: 8px 10px; border: 1px solid rgba(184,121,10,.45); background: var(--ws-warn-soft); color: var(--ws-warn); }
.ws-document-intake-status[hidden] { display: none; }
.ws-document-intake-status > svg { width: 18px; }
.ws-document-intake-status div { min-width: 0; }
.ws-document-intake-status b, .ws-document-intake-status span { display: block; }
.ws-document-intake-status b { font-size: 11px; }
.ws-document-intake-status span { margin-top: 2px; color: var(--ws-text-2); font-size: 10px; }
.ws-document-intake-status .ws-info { width: 28px; height: 28px; }
.ws-upload-readiness-dialog { width: min(500px, calc(100vw - 30px)); }
.ws-upload-readiness-list { display: grid; gap: 0; margin: 16px 0; padding: 0; border: 1px solid var(--ws-line); list-style: none; }
.ws-upload-readiness-list li { min-height: 58px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--ws-line); }
.ws-upload-readiness-list li:last-child { border-bottom: 0; }
.ws-upload-readiness-list li > svg { width: 18px; color: var(--ws-text-3); }
.ws-upload-readiness-list span b, .ws-upload-readiness-list span small { display: block; }
.ws-upload-readiness-list span b { font-size: 11px; }
.ws-upload-readiness-list span small { margin-top: 2px; color: var(--ws-text-3); font-size: 10px; }
.ws-upload-readiness-list strong { color: var(--ws-warn); font-size: 10px; font-weight: 700; }
.ws-upload-readiness-list li.is-ready > svg, .ws-upload-readiness-list li.is-ready strong { color: var(--ws-accent); }

/* Advisor exposure command center */
.ws-exposure-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) 180px minmax(260px, 1.35fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--ws-line);
  background: var(--ws-surface);
}
.ws-exposure-command > label { display: grid; gap: 6px; min-width: 0; }
.ws-exposure-command > label > span:first-child { color: var(--ws-text-2); font-size: 11px; font-weight: 700; }
.ws-exposure-command > .ws-info { margin-bottom: 7px; }
.ws-input-icon { position: relative; display: block; }
.ws-input-icon > svg { position: absolute; inset-inline-start: 11px; top: 50%; width: 16px; transform: translateY(-50%); color: var(--ws-text-3); pointer-events: none; }
.ws-input-icon > input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); }
[dir="rtl"] .ws-input-icon > input { padding: 0 36px 0 12px; }
.ws-exposure-tabs { width: max-content; max-width: 100%; margin-bottom: 10px; overflow-x: auto; }
.ws-exposure-layout { align-items: start; }
.ws-exposure-bars { display: grid; }
.ws-exposure-bar { padding: 15px 16px; border-bottom: 1px solid var(--ws-line); }
.ws-exposure-bar:last-child { border-bottom: 0; }
.ws-exposure-bar-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.ws-exposure-bar-head b, .ws-exposure-bar-head small { display: block; }
.ws-exposure-bar-head b { font-size: 12px; }
.ws-exposure-bar-head small { margin-top: 2px; color: var(--ws-text-3); font-size: 10px; }
.ws-exposure-bar-head strong { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-exposure-track { height: 6px; margin-top: 10px; overflow: hidden; background: var(--ws-surface-2); }
.ws-exposure-track > span { display: block; height: 100%; background: var(--ws-accent); }
.ws-exposure-bar:nth-child(3n+2) .ws-exposure-track > span { background: var(--ws-info); }
.ws-exposure-bar:nth-child(3n) .ws-exposure-track > span { background: var(--ws-warn); }
.ws-exposure-bar-meta { display: flex; gap: 14px; margin-top: 7px; color: var(--ws-text-3); font-size: 10px; }
.ws-exposure-coverage { display: grid; padding: 5px 16px; }
.ws-exposure-coverage-row { padding: 12px 0; border-bottom: 1px solid var(--ws-line); }
.ws-exposure-coverage-row:last-child { border-bottom: 0; }
.ws-exposure-coverage-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 11px; }
.ws-exposure-coverage-row span { color: var(--ws-text-3); font-variant-numeric: tabular-nums; }
.ws-exposure-coverage-row .ws-progress-track { height: 4px; }
.ws-exposure-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ws-exposure-result-list { display: grid; }
.ws-exposure-result { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--ws-line); color: inherit; text-decoration: none; }
.ws-exposure-result:last-child { border-bottom: 0; }
a.ws-exposure-result:hover { background: var(--ws-surface-2); }
.ws-exposure-result > span { min-width: 0; }
.ws-exposure-result b, .ws-exposure-result small { display: block; }
.ws-exposure-result b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ws-exposure-result small { margin-top: 3px; color: var(--ws-text-3); font-size: 10px; line-height: 1.35; }
.ws-exposure-result > svg { width: 16px; flex: none; margin-inline-start: auto; color: var(--ws-text-3); }
.ws-exposure-result.is-redacted { background: var(--ws-info-soft); }
.ws-exposure-result.is-redacted > svg { color: var(--ws-info); }
.ws-icon-button.is-spinning svg { animation: ws-spin .8s linear infinite; }

@media (max-width: 1050px) {
  .ws-exposure-command { grid-template-columns: minmax(200px, 1fr) 170px minmax(240px, 1fr) auto; }
  .ws-exposure-result-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .ws-exposure-command { grid-template-columns: 1fr 1fr; align-items: end; }
  .ws-exposure-search { grid-column: 1 / -1; }
  .ws-exposure-command > .ws-info { position: absolute; inset-inline-end: 18px; }
  .ws-exposure-tabs { width: 100%; display: flex; }
  .ws-exposure-tabs button { flex: none; }
  .ws-exposure-result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .ws-exposure-command { grid-template-columns: 1fr; }
  .ws-exposure-search { grid-column: auto; }
  .ws-exposure-bar-head { display: grid; gap: 5px; }
  .ws-exposure-bar-head strong { white-space: normal; }
}
.ws-upload-dialog form { display: flex; flex-direction: column; min-height: 0; }
.ws-upload-body { display: grid; gap: 16px; }
.ws-upload-quota { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 11px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); font-size: 11px; }
.ws-upload-quota strong { color: var(--ws-text); font-size: 12px; }
.ws-upload-quota.is-low { border-color: rgba(184,121,10,.45); background: var(--ws-warn-soft); color: var(--ws-warn); }
.ws-upload-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr); gap: 18px; align-items: stretch; }
.ws-upload-drop-column { min-width: 0; }
.ws-upload-dropzone { min-height: 246px; height: 100%; display: grid; place-content: center; justify-items: center; gap: 5px; padding: 22px; border: 1px dashed var(--ws-line-strong); background: #EBEFF5; color: var(--ws-text-3); text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ws-upload-dropzone:hover, .ws-upload-dropzone:focus-visible, .ws-upload-dropzone.is-dragging { border-color: var(--ws-accent); background: var(--ws-accent-soft); }
.ws-upload-dropzone b { color: var(--ws-text); font-size: 14px; }
.ws-upload-dropzone span, .ws-upload-dropzone small { font-size: 11px; }
.ws-upload-drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 6px; border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-accent); }
.ws-upload-drop-icon svg { width: 20px; }
.ws-upload-file { min-height: 246px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-content: center; align-items: center; gap: 11px; padding: 20px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-upload-file > svg { width: 27px; color: var(--ws-accent); }
.ws-upload-file > span { min-width: 0; }
.ws-upload-file b, .ws-upload-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-upload-file b { font-size: 12px; }
.ws-upload-file small { margin-top: 3px; color: var(--ws-text-3); font-size: 10px; }
.ws-upload-file .ws-icon-button { width: 34px; height: 34px; }
.ws-upload-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws-upload-field { min-height: 100px; grid-template-rows: 18px 42px 28px 14px; }
.ws-upload-purpose { grid-column: 1 / -1; min-height: 132px; grid-template-rows: 18px 64px 28px 14px; }
.ws-upload-purpose textarea { min-height: 64px; height: 64px; }
.ws-upload-error { min-height: 18px; margin: -6px 0 -8px; color: var(--ws-danger); font-size: 11px; }
.ws-upload-queue { min-height: 104px; border: 1px solid var(--ws-line); }
.ws-upload-queue-head { min-height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-upload-queue-head h3 { margin: 0; font-size: 11px; text-transform: uppercase; }
.ws-upload-queue-head span { margin-inline-start: auto; color: var(--ws-text-3); font-size: 10px; }
.ws-upload-queue-empty { min-height: 68px; display: grid; place-items: center; margin: 0; color: var(--ws-text-3); font-size: 11px; }
.ws-upload-queue-item { min-height: 70px; display: grid; grid-template-columns: 26px minmax(0, 1fr) 118px auto; align-items: center; gap: 11px; padding: 9px 11px; border-bottom: 1px solid var(--ws-line); }
.ws-upload-queue-item:last-child { border-bottom: 0; }
.ws-upload-queue-item > svg { width: 19px; color: var(--ws-text-3); }
.ws-upload-queue-item.is-uploading > svg { color: var(--ws-info); }
.ws-upload-queue-item.is-quarantined > svg { color: var(--ws-warn); }
.ws-upload-queue-item.is-failed > svg, .ws-upload-queue-item.is-interrupted > svg { color: var(--ws-danger); }
.ws-upload-queue-copy { min-width: 0; }
.ws-upload-queue-copy b, .ws-upload-queue-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-upload-queue-copy b { font-size: 11px; }
.ws-upload-queue-copy span { margin-top: 2px; color: var(--ws-text-3); font-size: 10px; }
.ws-upload-progress { min-width: 0; }
.ws-upload-progress-track { height: 5px; background: #E3E8F0; overflow: hidden; }
.ws-upload-progress-track span { display: block; height: 100%; background: var(--ws-info); transition: width .12s linear; }
.ws-upload-progress small { display: block; min-height: 15px; margin-top: 4px; color: var(--ws-text-3); font-size: 9px; text-align: end; }
.ws-upload-queue-actions { display: flex; gap: 4px; }
.ws-upload-queue-actions .ws-icon-button { width: 30px; height: 30px; }
.ws-upload-queue-actions .ws-icon-button svg { width: 14px; }
.ws-upload-foot { align-items: center; }
.ws-upload-foot > p { min-width: 0; display: flex; align-items: center; gap: 7px; margin: 0 auto 0 0; color: var(--ws-text-3); font-size: 10px; }
[dir="rtl"] .ws-upload-foot > p { margin: 0 0 0 auto; }
.ws-upload-foot > p svg { width: 15px; flex: 0 0 auto; color: var(--ws-accent); }

@media (max-width: 760px) {
  .ws-outcome-card { min-height: 0; align-items: stretch; flex-direction: column; gap: 16px; padding: 18px 16px; }
  .ws-outcome-card h2 { font-size: 22px; }
  .ws-outcome-card .ws-button { width: 100%; justify-content: center; }
  .ws-exploration-tools-body { padding: 12px; }
  .ws-document-actions { align-items: stretch; }
  .ws-document-actions .ws-button { flex: 1; justify-content: center; }
  .ws-document-toolbar { align-items: stretch; flex-wrap: wrap; }
  .ws-document-toolbar > label { min-width: 100%; }
  .ws-document-viewer { width: 100vw; height: 100dvh; max-height: none; margin: 0; }
  .ws-document-viewer-body { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(360px,1fr); overflow: auto; }
  .ws-document-viewer-body > aside { max-height: 180px; border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-access-form { grid-template-columns: 1fr; align-items: stretch; }
  .ws-access-item { grid-template-columns: 1fr auto; }
  .ws-access-permissions { grid-column: 1 / -1; }
  .ws-document-name b { max-width: 190px; }
  .ws-upload-dialog { width: 100vw; height: 100dvh; max-height: none; margin: 0; }
  .ws-upload-dialog form { min-height: 100%; }
  .ws-upload-body { flex: 1; }
  .ws-upload-grid { grid-template-columns: 1fr; }
  .ws-upload-dropzone, .ws-upload-file { min-height: 150px; }
  .ws-upload-queue-item { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .ws-upload-progress { grid-column: 2 / -1; }
  .ws-upload-foot { position: sticky; bottom: 0; z-index: 2; flex-wrap: wrap; }
  .ws-upload-foot > p { width: 100%; margin: 0 0 5px; }
}

@media (max-width: 430px) {
  .ws-upload-fields { grid-template-columns: 1fr; }
  .ws-upload-purpose { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ws-billing-seat-track > span { transition: none; }
}

/* Client communications workbench */
.ws-communication-main { max-width: 1500px; }
.ws-communication-page-head { margin-bottom: 18px; }
.ws-communication-outcome { min-height: 132px; display: flex; align-items: center; gap: 24px; margin-bottom: 12px; padding: 20px 22px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-communication-outcome > div { min-width: 0; flex: 1; }
.ws-communication-outcome h2 { max-width: 820px; margin: 5px 0; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.18; }
.ws-communication-outcome p { max-width: 860px; margin: 0; color: var(--ws-text-2); font-size: 11px; line-height: 1.55; }
.ws-communication-outcome .ws-button { flex: none; }
.ws-communication-outcome[data-outcome-kind="delivery_attention"], .ws-communication-outcome[data-outcome-kind="load_error"], .ws-communication-outcome[data-outcome-kind="workbench_error"] { border-color: rgba(195,55,43,.4); }
.ws-communication-outcome[data-outcome-kind="changes_requested"], .ws-communication-outcome[data-outcome-kind="principal_approval_block"] { border-color: rgba(184,121,10,.45); }
.ws-communication-tools { margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-communication-tools > summary { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 11px 15px; cursor: pointer; list-style: none; }
.ws-communication-tools > summary::-webkit-details-marker { display: none; }
.ws-communication-tools > summary > span { min-width: 0; display: grid; flex: 1; gap: 3px; }
.ws-communication-tools > summary b { font-size: 12px; }
.ws-communication-tools > summary small { color: var(--ws-text-3); font-size: 10px; overflow-wrap: anywhere; }
.ws-communication-tools > summary > svg { width: 17px; flex: none; color: var(--ws-text-3); transition: transform .16s ease; }
.ws-communication-tools:not([open]) > .ws-communication-tools-body { display: none; }
.ws-communication-tools[open] > summary { border-bottom: 1px solid var(--ws-line); }
.ws-communication-tools[open] > summary > svg { transform: rotate(180deg); }
.ws-communication-tools-body { padding: 16px; }
.ws-communication-tools .ws-communication-create { max-width: none; align-items: stretch; margin-bottom: 14px; }
.ws-communication-tools .ws-communication-head-actions { justify-content: flex-start; }
.ws-communication-tools .ws-communication-create small { text-align: start; }
.ws-communication-toolbar { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) 30px; align-items: end; gap: 12px; margin-bottom: 16px; }
.ws-communication-toolbar > label { display: grid; gap: 6px; color: var(--ws-text-2); font-size: 11px; font-weight: 700; }
.ws-communication-toolbar .ws-segmented { justify-self: start; max-width: 100%; overflow-x: auto; }
.ws-communication-toolbar .ws-info { align-self: end; margin-bottom: 2px; }
.ws-communication-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ws-communication-create { max-width: 520px; flex-direction: column; align-items: flex-end; }
.ws-communication-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.ws-communication-head-actions .ws-info { flex: 0 0 auto; }
.ws-communication-head-actions .is-loading svg { animation: ws-spin .8s linear infinite; }
.ws-communication-create small { color: var(--ws-text-3); font-size: 10px; line-height: 1.35; text-align: end; }
.ws-communication-create small a { color: var(--ws-accent); }
.ws-communication-page-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 13px 14px; border: 1px solid rgba(195,55,43,.4); background: var(--ws-danger-soft); }
.ws-communication-page-error[hidden] { display: none; }
.ws-communication-page-error div { display: grid; gap: 3px; }
.ws-communication-page-error b { font-size: 12px; }
.ws-communication-page-error span { color: var(--ws-text-2); font-size: 10px; }
.ws-communication-workbench { height: clamp(540px, 68vh, 780px); min-height: 540px; display: grid; grid-template-columns: minmax(280px, 34%) minmax(0, 1fr); border: 1px solid var(--ws-line); background: var(--ws-surface); overflow: hidden; }
.ws-communication-list { min-width: 0; min-height: 0; border-inline-end: 1px solid var(--ws-line); background: var(--ws-surface-2); overflow: auto; }
.ws-communication-list.is-loading { opacity: .64; pointer-events: none; }
.ws-communication-inline-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); font-size: 10px; }
.ws-communication-inline-error button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 760; cursor: pointer; }
.ws-communication-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ws-text-3); font-size: 11px; }
.ws-communication-item { width: 100%; min-height: 104px; display: grid; gap: 7px; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--ws-line); background: transparent; color: var(--ws-text); text-align: start; cursor: pointer; }
.ws-communication-item:hover { background: var(--ws-surface); }
.ws-communication-item.is-selected { box-shadow: inset 3px 0 0 var(--ws-accent); background: var(--ws-surface); }
.ws-communication-item-head { min-width: 0; display: flex; align-items: center; gap: 8px; }
.ws-communication-item-head b { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ws-communication-recipient { color: var(--ws-text-2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-communication-item small { color: var(--ws-text-3); font-size: 10px; line-height: 1.4; }
.ws-communication-status { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 7px; border: 1px solid var(--ws-line-strong); color: var(--ws-text-2); background: var(--ws-surface-2); font-size: 9px; line-height: 1.2; font-weight: 760; white-space: nowrap; }
.ws-communication-status.is-warning { border-color: rgba(184,121,10,.45); background: #F7EFE2; color: #8A5A06; }
.ws-communication-status.is-danger { border-color: rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-communication-status.is-info { border-color: rgba(27,69,215,.35); background: #EDF0FE; color: #1B45D7; }
.ws-communication-status.is-success { border-color: rgba(27,69,215,.35); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-communication-status.is-muted { color: var(--ws-text-3); }
.ws-communication-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 22px; overflow: auto; }
.ws-communication-detail-head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid var(--ws-line); }
.ws-communication-detail-head > div { min-width: 0; flex: 1; }
.ws-communication-detail-head h2 { margin: 4px 0 3px; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.ws-communication-detail-head p { margin: 0; color: var(--ws-text-3); font-size: 11px; overflow-wrap: anywhere; }
.ws-communication-state-note { min-height: 44px; display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); font-size: 11px; }
.ws-communication-state-note > svg { width: 16px; flex: 0 0 auto; }
.ws-communication-state-note > span { flex: 1; }
.ws-communication-message { min-height: 150px; margin-top: 16px; padding: 16px; border: 1px solid var(--ws-line); background: #fff; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.ws-communication-message:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-communication-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; border: 1px solid var(--ws-line); }
.ws-communication-meta > div { padding: 10px 12px; border-inline-end: 1px solid var(--ws-line); }
.ws-communication-meta > div:last-child { border-inline-end: 0; }
.ws-communication-meta dt { color: var(--ws-text-3); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.ws-communication-meta dd { margin: 4px 0 0; color: var(--ws-text-2); font-size: 10px; }
.ws-communication-history { margin-top: 19px; }
.ws-communication-history h3 { margin: 0 0 10px; font-size: 12px; }
.ws-communication-history ol { margin: 0; padding: 0; list-style: none; }
.ws-communication-history li { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; padding: 0 0 14px; }
.ws-communication-history li::before { content: ""; position: absolute; inset-inline-start: 5px; top: 11px; bottom: -1px; width: 1px; background: var(--ws-line); }
.ws-communication-history li:last-child::before { display: none; }
.ws-communication-event-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid var(--ws-surface); background: var(--ws-accent); outline: 1px solid var(--ws-accent); border-radius: 50%; }
.ws-communication-history b { display: block; font-size: 10px; }
.ws-communication-history small { display: block; margin-top: 2px; color: var(--ws-text-3); font-size: 9px; }
.ws-communication-history p { margin: 5px 0 0; color: var(--ws-text-2); font-size: 10px; }
.ws-communication-actions { position: sticky; bottom: -22px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: auto -22px -22px; padding: 14px 22px; border-top: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-communication-pagination { display: flex; justify-content: center; padding: 12px 0 0; }
.ws-button-danger-text { color: var(--ws-danger); }
.ws-communication-no-action { align-self: center; color: var(--ws-text-3); font-size: 10px; }
.ws-communication-back { display: none; }
.ws-communication-body-field { min-height: 276px; grid-template-rows: 18px minmax(190px, auto) 28px 18px; }
.ws-field.ws-communication-body-field textarea { height: 190px; min-height: 190px; line-height: 1.5; }
.ws-communication-reason { min-height: 148px; grid-template-rows: 18px 82px minmax(28px, auto) 18px; }
.ws-communication-reason[hidden] { display: none; }
.ws-communication-send-confirmation { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 16px; padding: 12px; border: 1px solid var(--ws-line-strong); background: var(--ws-surface-2); cursor: pointer; }
.ws-communication-send-confirmation[hidden] { display: none; }
.ws-communication-send-confirmation input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ws-accent); }
.ws-communication-send-confirmation span { display: grid; gap: 4px; }
.ws-communication-send-confirmation b { font-size: 11px; line-height: 1.4; }
.ws-communication-send-confirmation small { color: var(--ws-text-3); font-size: 9px; line-height: 1.5; }

@media (max-width: 900px) {
  .ws-communication-toolbar { grid-template-columns: minmax(220px, 1fr) 30px; }
  .ws-communication-toolbar .ws-segmented { grid-column: 1 / -1; grid-row: 2; }
  .ws-communication-toolbar .ws-info { grid-column: 2; grid-row: 1; }
  .ws-communication-workbench { grid-template-columns: minmax(240px, 38%) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .ws-communication-outcome { min-height: 0; align-items: stretch; flex-direction: column; gap: 16px; padding: 18px 16px; }
  .ws-communication-outcome h2 { font-size: 22px; }
  .ws-communication-outcome .ws-button { width: 100%; justify-content: center; }
  .ws-communication-tools-body { padding: 12px; }
  .ws-communication-toolbar { grid-template-columns: minmax(0, 1fr) 30px; }
  .ws-communication-toolbar .ws-segmented { width: 100%; }
  .ws-communication-toolbar .ws-segmented button { flex: 1 0 auto; }
  .ws-communication-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-communication-metrics .ws-metric { min-height: 94px; padding: 13px 11px; }
  .ws-communication-metrics .ws-metric strong { margin-top: 10px; font-size: 23px; }
  .ws-communication-workbench { height: auto; min-height: 480px; display: block; overflow: visible; }
  .ws-communication-list { border-inline-end: 0; }
  .ws-communication-detail { display: none; padding: 16px; overflow: visible; }
  .ws-communication-detail.is-mobile-focus { display: flex; }
  .ws-communication-detail.is-mobile-focus + * { display: none; }
  .ws-communication-workbench:has(.ws-communication-detail.is-mobile-focus) .ws-communication-list { display: none; }
  .ws-section:has(.ws-communication-detail.is-mobile-focus) .ws-communication-pagination { display: none; }
  .ws-communication-back { width: max-content; display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 14px; padding: 0; border: 0; background: transparent; color: var(--ws-accent); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
  .ws-communication-back svg { width: 15px; }
  .ws-communication-detail-head { gap: 9px; }
  .ws-communication-detail-head h2 { font-size: 17px; }
  .ws-communication-meta { grid-template-columns: 1fr; }
  .ws-communication-meta > div { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-communication-meta > div:last-child { border-bottom: 0; }
  .ws-communication-actions { margin: auto -16px -16px; padding: 12px 16px; }
  .ws-communication-create { max-width: none; align-items: stretch; }
  .ws-communication-head-actions { justify-content: stretch; }
  .ws-communication-head-actions .ws-button { flex: 1 1 calc(50% - 4px); }
  .ws-communication-create small { text-align: start; }
  .ws-communication-page-error { align-items: flex-start; flex-direction: column; }
}

/* Advice workbench */
.ws-advice-main { max-width: 1500px; }
.ws-advice-page-head { margin-bottom: 18px; }
.ws-advice-page-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(195,55,43,.4); background: var(--ws-danger-soft); }
.ws-advice-page-error[hidden] { display: none; }
.ws-advice-page-error > div { display: grid; gap: 2px; }
.ws-advice-page-error b { font-size: 12px; }
.ws-advice-page-error span { color: var(--ws-text-2); font-size: 10px; }
.ws-advice-journey { margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-advice-journey-head { min-height: 132px; display: flex; align-items: center; gap: 24px; padding: 20px 22px; }
.ws-advice-journey-head > div { min-width: 0; flex: 1; }
.ws-advice-journey-head h2 { max-width: 820px; margin: 5px 0 5px; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.18; }
.ws-advice-journey-head p { max-width: 860px; margin: 0; color: var(--ws-text-2); font-size: 11px; line-height: 1.55; }
.ws-advice-journey-head .ws-button { flex: none; }
.ws-advice-tools { margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-advice-tools > summary { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 11px 15px; cursor: pointer; list-style: none; }
.ws-advice-tools > summary::-webkit-details-marker { display: none; }
.ws-advice-tools > summary > span { min-width: 0; display: grid; flex: 1; gap: 3px; }
.ws-advice-tools > summary b { font-size: 12px; }
.ws-advice-tools > summary small { color: var(--ws-text-3); font-size: 10px; overflow-wrap: anywhere; }
.ws-advice-tools > summary > svg { width: 17px; flex: none; color: var(--ws-text-3); transition: transform .16s ease; }
.ws-advice-tools:not([open]) > .ws-advice-tools-body { display: none; }
.ws-advice-tools[open] > summary { border-bottom: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-advice-tools[open] > summary > svg { transform: rotate(180deg); }
.ws-advice-tools-body { padding: 14px; }
.ws-advice-path { margin-bottom: 12px; border: 1px solid var(--ws-line); }
.ws-advice-path .ws-section-head h2 { font-size: 11px; }
.ws-advice-secondary-actions { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 12px; color: var(--ws-text-3); font-size: 10px; }
.ws-advice-secondary-actions > div { display: flex; flex-wrap: wrap; gap: 7px; }
.ws-advice-journey-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ws-advice-journey-steps li { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 11px; border-inline-end: 1px solid var(--ws-line); color: var(--ws-text-3); }
.ws-advice-journey-steps li:last-child { border-inline-end: 0; }
.ws-advice-journey-steps li > span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--ws-line-strong); background: var(--ws-surface); font-size: 9px; font-weight: 780; }
.ws-advice-journey-steps li div, .ws-advice-journey-steps b, .ws-advice-journey-steps small { min-width: 0; display: block; }
.ws-advice-journey-steps b { color: var(--ws-text-2); font-size: 10px; }
.ws-advice-journey-steps small { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.ws-advice-journey-steps li.is-current { box-shadow: inset 0 -3px 0 var(--ws-accent); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-advice-journey-steps li.is-current > span { border-color: var(--ws-accent); background: var(--ws-accent); color: #fff; }
.ws-advice-journey-steps li.is-complete { color: var(--ws-accent); }
.ws-advice-journey-steps li.is-complete > span { border-color: var(--ws-accent); color: var(--ws-accent); }
.ws-advice-journey-steps li.is-blocked { color: var(--ws-danger); }
.ws-advice-command { min-height: 72px; display: grid; grid-template-columns: minmax(230px, 1.4fr) minmax(210px, 1fr) repeat(3, minmax(82px, .46fr)); align-items: stretch; margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-advice-command > * { min-width: 0; padding: 10px 13px; border-inline-end: 1px solid var(--ws-line); }
.ws-advice-command > *:last-child { border-inline-end: 0; }
.ws-advice-client { display: grid; align-content: center; gap: 5px; color: var(--ws-text-2); font-size: 10px; font-weight: 700; }
.ws-advice-client .ws-select { width: 100%; }
.ws-advice-snapshot { display: grid; align-content: center; gap: 2px; }
.ws-advice-snapshot span, .ws-advice-queue-stat span { color: var(--ws-text-3); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.ws-advice-snapshot strong { font-size: 14px; }
.ws-advice-snapshot small { color: var(--ws-text-3); font-size: 9px; overflow-wrap: anywhere; }
.ws-advice-queue-stat { display: grid; align-content: center; justify-items: center; }
.ws-advice-queue-stat strong { margin-top: 2px; font-size: 22px; line-height: 1; }
.ws-advice-mode { width: max-content; margin-bottom: 15px; }
.ws-advice-mode button { min-width: 156px; gap: 7px; }
.ws-advice-mode svg { width: 15px; }
.ws-advice-status-band { min-height: 116px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(520px, 1.25fr); gap: 22px; align-items: center; padding: 17px 18px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-advice-status-line { display: flex; align-items: center; gap: 9px; }
.ws-advice-status-line > strong { font-size: 20px; }
.ws-advice-status-band p { margin: 5px 0 0; color: var(--ws-text-2); font-size: 11px; }
.ws-advice-suitability-actions { min-height: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ws-advice-status-band dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--ws-line); }
.ws-advice-status-band dl > div { min-width: 0; padding: 9px 10px; border-inline-end: 1px solid var(--ws-line); }
.ws-advice-status-band dl > div:last-child { border-inline-end: 0; }
.ws-advice-status-band dt, .ws-advice-detail-meta dt { color: var(--ws-text-3); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.ws-advice-status-band dd, .ws-advice-detail-meta dd { margin: 4px 0 0; color: var(--ws-text-2); font-size: 10px; overflow-wrap: anywhere; }
.ws-advice-status { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border: 1px solid var(--ws-line-strong); background: var(--ws-surface-2); color: var(--ws-text-2); font-size: 9px; line-height: 1.2; font-weight: 760; white-space: nowrap; }
.ws-advice-status.is-warning { border-color: rgba(184,121,10,.45); background: #F7EFE2; color: #8A5A06; }
.ws-advice-status.is-danger { border-color: rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-advice-status.is-info { border-color: rgba(27,69,215,.35); background: var(--ws-info-soft); color: var(--ws-info); }
.ws-advice-status.is-success { border-color: rgba(27,69,215,.35); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-advice-status.is-muted { color: var(--ws-text-3); }
.ws-advice-suitability-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); gap: 14px; margin-top: 14px; }
.ws-advice-blockers, .ws-advice-summary, .ws-advice-history { min-width: 0; border: 1px solid var(--ws-line); background: var(--ws-surface); box-shadow: none; }
.ws-advice-history { grid-column: 1 / -1; }
.ws-advice-checklist { min-height: 180px; }
.ws-advice-blocker { min-height: 60px; display: grid; grid-template-columns: 19px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--ws-line); }
.ws-advice-blocker:last-child { border-bottom: 0; }
.ws-advice-blocker > svg { width: 17px; color: var(--ws-danger); }
.ws-advice-blocker.is-complete > svg { color: var(--ws-accent); }
.ws-advice-blocker span, .ws-advice-blocker b, .ws-advice-blocker small { display: block; min-width: 0; }
.ws-advice-blocker b { font-size: 11px; }
.ws-advice-blocker small { margin-top: 2px; color: var(--ws-text-3); font-size: 9px; }
.ws-advice-blocker > strong { color: var(--ws-text-2); font-size: 9px; white-space: nowrap; }
.ws-advice-clear { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 20px; color: var(--ws-accent); }
.ws-advice-clear svg { width: 20px; }
.ws-advice-clear span, .ws-advice-clear b, .ws-advice-clear small { display: block; }
.ws-advice-clear b { font-size: 12px; }
.ws-advice-clear small { color: var(--ws-text-3); font-size: 9px; }
.ws-advice-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.ws-advice-summary dl > div { min-height: 60px; padding: 10px 13px; border-bottom: 1px solid var(--ws-line); border-inline-end: 1px solid var(--ws-line); }
.ws-advice-summary dl > div:nth-child(2n) { border-inline-end: 0; }
.ws-advice-summary dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.ws-advice-summary dt { color: var(--ws-text-3); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.ws-advice-summary dd { margin: 4px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.ws-advice-history ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ws-advice-history li { min-width: 0; display: grid; grid-template-columns: 11px minmax(0, 1fr); gap: 8px; padding: 13px; border-inline-end: 1px solid var(--ws-line); }
.ws-advice-history li:last-child { border-inline-end: 0; }
.ws-advice-history li > span { width: 10px; height: 10px; margin-top: 2px; border: 2px solid var(--ws-surface); border-radius: 50%; background: var(--ws-accent); outline: 1px solid var(--ws-accent); }
.ws-advice-history b, .ws-advice-history small { display: block; }
.ws-advice-history b { font-size: 10px; }
.ws-advice-history small { margin-top: 2px; color: var(--ws-text-3); font-size: 9px; }
.ws-advice-history p { margin: 4px 0 0; color: var(--ws-text-2); font-size: 9px; overflow-wrap: anywhere; }
.ws-advice-filterbar { min-height: 48px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ws-advice-filterbar .ws-segmented { max-width: 100%; overflow-x: auto; }
.ws-advice-filterbar .ws-count { margin-inline-start: auto; }
.ws-advice-workbench { height: clamp(570px, 70vh, 820px); min-height: 570px; display: grid; grid-template-columns: minmax(270px, 32%) minmax(0, 1fr); border: 1px solid var(--ws-line); background: var(--ws-surface); overflow: hidden; }
.ws-advice-queue { min-width: 0; min-height: 0; border-inline-end: 1px solid var(--ws-line); background: var(--ws-surface-2); overflow: auto; box-shadow: none; }
.ws-advice-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ws-text-3); font-size: 11px; }
.ws-advice-queue-item { width: 100%; min-height: 102px; display: grid; align-content: center; gap: 7px; padding: 14px 15px; border: 0; border-bottom: 1px solid var(--ws-line); background: transparent; color: var(--ws-text); text-align: start; cursor: pointer; }
.ws-advice-queue-item:hover { background: var(--ws-surface); }
.ws-advice-queue-item.is-selected { box-shadow: inset 3px 0 0 var(--ws-accent); background: var(--ws-surface); }
.ws-advice-queue-item > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.ws-advice-queue-item b { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ws-advice-queue-item small, .ws-advice-queue-item time { color: var(--ws-text-3); font-size: 9px; }
.ws-advice-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 20px; overflow: auto; box-shadow: none; }
.ws-advice-detail-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--ws-line); }
.ws-advice-detail-head > div { min-width: 0; flex: 1; }
.ws-advice-detail-head h2 { margin: 3px 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.ws-advice-detail-head p { margin: 0; color: var(--ws-text-3); font-size: 10px; }
.ws-advice-tax-note { min-height: 43px; display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 9px 11px; border: 1px solid rgba(184,121,10,.45); background: #F7EFE2; color: #8A5A06; font-size: 10px; }
.ws-advice-tax-note svg { width: 16px; flex: none; }
.ws-advice-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 13px 0 0; border: 1px solid var(--ws-line); }
.ws-advice-detail-meta > div { padding: 9px 11px; border-inline-end: 1px solid var(--ws-line); }
.ws-advice-detail-meta > div:last-child { border-inline-end: 0; }
.ws-advice-detail-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; border: 1px solid var(--ws-line); }
.ws-advice-detail-content section { min-width: 0; padding: 12px 13px; border-bottom: 1px solid var(--ws-line); border-inline-end: 1px solid var(--ws-line); }
.ws-advice-detail-content section:nth-child(2n) { border-inline-end: 0; }
.ws-advice-detail-content h3 { margin: 0 0 5px; color: var(--ws-text-2); font-size: 10px; }
.ws-advice-detail-content p { margin: 0; color: var(--ws-text-2); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.ws-advice-version-history { grid-column: auto; margin-top: 13px; }
.ws-advice-version-history ol { grid-template-columns: 1fr; }
.ws-advice-version-history li { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
.ws-advice-version-history li:last-child { border-bottom: 0; }
.ws-advice-actions { position: sticky; bottom: -20px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: auto -20px -20px; padding: 12px 20px; border-top: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-advice-no-action { align-self: center; color: var(--ws-text-3); font-size: 10px; }
.ws-advice-no-action.is-blocked { display: inline-flex; align-items: center; gap: 6px; color: var(--ws-danger); }
.ws-advice-no-action svg { width: 15px; }
.ws-advice-back { display: none; }
.ws-advice-dialog { max-height: min(880px, calc(100dvh - 24px)); }
.ws-advice-dialog { overflow: hidden; }
.ws-advice-dialog form { max-height: min(878px, calc(100dvh - 26px)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.ws-advice-editor-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-advice-editor-steps button { min-width: 0; min-height: 56px; display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 8px 10px; border: 0; border-inline-end: 1px solid var(--ws-line); background: transparent; color: var(--ws-text-3); text-align: start; cursor: pointer; }
.ws-advice-editor-steps button:last-child { border-inline-end: 0; }
.ws-advice-editor-steps button:hover { background: var(--ws-surface-2); }
.ws-advice-editor-steps button > span { grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ws-line-strong); font-size: 9px; font-weight: 780; }
.ws-advice-editor-steps b, .ws-advice-editor-steps small { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-advice-editor-steps b { color: var(--ws-text-2); font-size: 10px; }
.ws-advice-editor-steps small { font-size: 8px; }
.ws-advice-editor-steps button.is-active { box-shadow: inset 0 -3px 0 var(--ws-accent); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-advice-editor-steps button.is-active > span { border-color: var(--ws-accent); background: var(--ws-accent); color: #fff; }
.ws-advice-editor-steps button.is-complete { color: var(--ws-accent); }
.ws-advice-editor-steps button.is-complete > span { border-color: var(--ws-accent); color: var(--ws-accent); }
.ws-advice-editor-state { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-advice-editor-state strong { flex: none; font-size: 10px; }
.ws-advice-editor-state span { min-width: 0; color: var(--ws-text-3); font-size: 9px; }
.ws-advice-dialog .ws-dialog-body { overflow: auto; overscroll-behavior: contain; }
.ws-advice-form-section { margin-bottom: 17px; padding-bottom: 4px; border-bottom: 1px solid var(--ws-line); }
.ws-advice-form-section[hidden] { display: none; }
.ws-advice-form-section:last-child { margin-bottom: 0; border-bottom: 0; }
.ws-advice-form-section > h3 { margin: 0 0 13px; font-size: 12px; }
.ws-advice-step-intro { margin: -5px 0 14px; color: var(--ws-text-2); font-size: 10px; line-height: 1.5; }
.ws-advice-derived-context { min-height: 48px; display: grid; gap: 3px; margin: -3px 0 14px; padding: 9px 11px; border: 1px solid var(--ws-line); border-inline-start: 3px solid var(--ws-accent); background: var(--ws-accent-soft); }
.ws-advice-derived-context strong { color: var(--ws-text); font-size: 10px; }
.ws-advice-derived-context span { color: var(--ws-text-2); font-size: 9px; line-height: 1.5; }
.ws-derived-badge { display: inline-flex; align-items: center; min-height: 18px; margin-inline-start: 4px; padding: 1px 6px; border: 1px solid var(--ws-line-strong); background: var(--ws-surface-2); color: var(--ws-text-3); font-size: 8px; font-weight: 730; line-height: 1.2; white-space: nowrap; }
.ws-advice-dialog .ws-field input[readonly], .ws-advice-dialog .ws-field textarea[readonly] { border-color: var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); cursor: default; }
.ws-advice-policy-details { border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-advice-policy-details > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; cursor: pointer; list-style: none; }
.ws-advice-policy-details > summary::-webkit-details-marker { display: none; }
.ws-advice-policy-details > summary::before { content: "+"; width: 20px; height: 20px; display: grid; flex: none; place-items: center; border: 1px solid var(--ws-line-strong); color: var(--ws-accent); font-size: 13px; font-weight: 760; }
.ws-advice-policy-details[open] > summary::before { content: "−"; }
.ws-advice-policy-details > summary > span:first-of-type { min-width: 0; display: grid; flex: 1; gap: 2px; }
.ws-advice-policy-details > summary b { color: var(--ws-text); font-size: 10px; }
.ws-advice-policy-details > summary small { overflow: hidden; color: var(--ws-text-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ws-advice-policy-details > p { margin: 0; padding: 10px 12px 0; border-top: 1px solid var(--ws-line); color: var(--ws-text-2); font-size: 9px; line-height: 1.5; }
.ws-advice-policy-details > .ws-form-grid { padding: 12px; }
.ws-advice-editor-review { min-height: 240px; }
.ws-advice-editor-review dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--ws-line); }
.ws-advice-editor-review dl > div { min-width: 0; padding: 10px 12px; border-inline-end: 1px solid var(--ws-line); border-bottom: 1px solid var(--ws-line); }
.ws-advice-editor-review dl > div:nth-child(2n) { border-inline-end: 0; }
.ws-advice-editor-review dt { color: var(--ws-text-3); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.ws-advice-editor-review dd { margin: 4px 0 0; color: var(--ws-text-2); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.ws-advice-editor-foot { display: grid; grid-template-columns: auto auto minmax(100px, 1fr) auto auto auto; align-items: center; }
.ws-advice-editor-foot [data-editor-save-state] { min-width: 0; color: var(--ws-text-3); font-size: 8px; line-height: 1.35; }
.ws-advice-editor-foot .ws-button-quiet { border-color: transparent; background: transparent; color: var(--ws-text-3); }
.ws-advice-editor-foot .ws-button-quiet:hover { border-color: var(--ws-line); background: var(--ws-surface); color: var(--ws-text-2); }
.ws-field.ws-advice-textarea { min-height: 154px; grid-template-rows: 18px 82px 28px 14px; }
.ws-field.ws-advice-textarea textarea { height: 82px; min-height: 82px; }
.ws-advice-dialog .ws-field-error { display: block; min-height: 14px; }
.ws-info-inline { width: 24px; height: 24px; margin-inline-start: 2px; border: 0; }
.ws-info-inline svg { width: 13px; height: 13px; }
.ws-field.ws-advice-toggle-field { min-height: 118px; display: grid; grid-template-rows: auto minmax(0, auto) 14px; }
.ws-advice-toggle-field .ws-switch-field { min-height: 58px; border: 1px solid var(--ws-line); }
.ws-advice-tax-blocker { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(184,121,10,.45); border-top: 0; background: #F7EFE2; color: #8A5A06; font-size: 10px; }
.ws-advice-tax-blocker[hidden] { display: none; }
.ws-advice-tax-blocker svg { width: 15px; flex: none; }
.ws-advice-confirm-reason { min-height: 150px; grid-template-rows: 18px 82px 28px 14px; }

@media (max-width: 1080px) {
  .ws-advice-journey-steps li { grid-template-columns: 24px minmax(0, 1fr); gap: 7px; padding-inline: 8px; }
  .ws-advice-command { grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 1fr) repeat(3, 76px); }
  .ws-advice-status-band { grid-template-columns: 1fr; gap: 13px; }
  .ws-advice-workbench { grid-template-columns: minmax(240px, 37%) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .ws-advice-page-error { align-items: flex-start; flex-direction: column; }
  .ws-advice-journey-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .ws-advice-journey-head .ws-button { width: 100%; justify-content: center; }
  .ws-advice-tools-body { padding: 10px; }
  .ws-advice-secondary-actions { align-items: stretch; flex-direction: column; }
  .ws-advice-secondary-actions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-advice-secondary-actions .ws-button { min-width: 0; justify-content: center; }
  .ws-advice-journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-advice-journey-steps li { border-bottom: 1px solid var(--ws-line); }
  .ws-advice-journey-steps li:nth-child(2n) { border-inline-end: 0; }
  .ws-advice-journey-steps li:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .ws-advice-editor-state { align-items: flex-start; flex-direction: column; gap: 2px; }
  .ws-advice-editor-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-advice-editor-foot [data-editor-save-state] { grid-column: 1 / -1; padding-block: 2px; text-align: center; }
  .ws-advice-editor-foot .ws-button { width: 100%; min-width: 0; justify-content: center; }
  .ws-advice-command { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-advice-command > * { border-bottom: 1px solid var(--ws-line); }
  .ws-advice-client { grid-column: 1 / -1; border-inline-end: 0; }
  .ws-advice-snapshot { grid-column: 1 / -1; border-inline-end: 0; }
  .ws-advice-queue-stat { border-bottom: 0; }
  .ws-advice-mode { width: 100%; }
  .ws-advice-mode button { min-width: 0; }
  .ws-advice-status-band dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-advice-status-band dl > div:nth-child(2) { border-inline-end: 0; }
  .ws-advice-status-band dl > div:nth-child(-n+2) { border-bottom: 1px solid var(--ws-line); }
  .ws-advice-suitability-grid { grid-template-columns: 1fr; }
  .ws-advice-history { grid-column: auto; }
  .ws-advice-history ol { grid-template-columns: 1fr; }
  .ws-advice-history li { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-advice-history li:last-child { border-bottom: 0; }
  .ws-advice-filterbar { align-items: stretch; flex-direction: column; }
  .ws-advice-filterbar .ws-segmented { width: 100%; }
  .ws-advice-filterbar .ws-segmented button { flex: 1 0 auto; }
  .ws-advice-filterbar .ws-count { width: auto; margin-inline-start: 0; }
  .ws-advice-workbench { height: auto; min-height: 480px; display: block; overflow: visible; }
  .ws-advice-queue { border-inline-end: 0; }
  .ws-advice-detail { display: none; padding: 16px; overflow: visible; }
  .ws-advice-detail.is-mobile-focus { display: flex; }
  .ws-advice-workbench:has(.ws-advice-detail.is-mobile-focus) .ws-advice-queue { display: none; }
  .ws-advice-back { width: max-content; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 13px; padding: 0; border: 0; background: transparent; color: var(--ws-accent); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
  .ws-advice-back svg { width: 15px; }
  .ws-advice-detail-content { grid-template-columns: 1fr; }
  .ws-advice-detail-content section { border-inline-end: 0; }
  .ws-advice-actions { margin: auto -16px -16px; padding: 12px 16px; }
}

@media (max-width: 430px) {
  .ws-advice-editor-steps button { display: flex; justify-content: center; padding-inline: 6px; }
  .ws-advice-editor-steps b, .ws-advice-editor-steps small { display: none; }
  .ws-derived-badge { margin-inline-start: 0; }
  .ws-advice-policy-details > summary { align-items: flex-start; flex-wrap: wrap; }
  .ws-advice-policy-details > summary .ws-derived-badge { margin-inline-start: 32px; }
  .ws-advice-editor-review dl { grid-template-columns: 1fr; }
  .ws-advice-editor-review dl > div { border-inline-end: 0; }
  .ws-advice-status-band { padding: 14px; }
  .ws-advice-status-band dl { grid-template-columns: 1fr; }
  .ws-advice-status-band dl > div { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-advice-status-band dl > div:last-child { border-bottom: 0; }
  .ws-advice-summary dl { grid-template-columns: 1fr; }
  .ws-advice-summary dl > div { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-advice-summary dl > div:nth-last-child(2) { border-bottom: 1px solid var(--ws-line); }
  .ws-advice-detail-meta { grid-template-columns: 1fr; }
  .ws-advice-detail-meta > div { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-advice-detail-meta > div:last-child { border-bottom: 0; }
}

/* Portfolio impact workbench */
.ws-impact-main { max-width: 1580px; }
.ws-impact-page-head { margin-bottom: 18px; }
.ws-impact-tools { margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-impact-tools > summary { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ws-text); cursor: pointer; list-style: none; }
.ws-impact-tools > summary::-webkit-details-marker { display: none; }
.ws-impact-tools > summary > span { min-width: 0; flex: 1; }
.ws-impact-tools > summary b, .ws-impact-tools > summary small { display: block; }
.ws-impact-tools > summary b { font-size: 11px; }
.ws-impact-tools > summary small { margin-top: 3px; overflow: hidden; color: var(--ws-text-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ws-impact-tools > summary > svg { width: 17px; color: var(--ws-text-3); transition: transform .16s ease; }
.ws-impact-tools[open] > summary { border-bottom: 1px solid var(--ws-line); }
.ws-impact-tools[open] > summary > svg { transform: rotate(180deg); }
.ws-impact-tools-body { padding: 12px; background: var(--ws-surface-2); }
.ws-impact-modebar { min-height: 48px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 7px 10px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-impact-modebar .ws-segmented { flex: none; }
.ws-impact-modebar .ws-segmented button { display: inline-flex; align-items: center; gap: 6px; }
.ws-impact-modebar .ws-segmented svg { width: 15px; }
.ws-impact-modebar > span { min-width: 0; flex: 1; color: var(--ws-text-2); font-size: 10px; }
.ws-button-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border: 1px solid currentColor; border-radius: 0; font-size: 8px; line-height: 1; }
.ws-callout { min-height: 54px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 13px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-callout > svg { width: 18px; flex: none; }
.ws-callout > div { min-width: 0; flex: 1; }
.ws-callout b, .ws-callout span { display: block; }
.ws-callout span { margin-top: 2px; color: var(--ws-text-2); font-size: 11px; }
.ws-callout-danger { border-color: rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-impact-command { min-height: 74px; display: grid; grid-template-columns: minmax(220px, .9fr) minmax(150px, .42fr) minmax(300px, 1.4fr) 42px; align-items: end; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-impact-command label { min-width: 0; display: grid; gap: 6px; color: var(--ws-text-2); font-size: 10px; font-weight: 720; }
.ws-impact-command .ws-select, .ws-impact-command input { width: 100%; height: 38px; border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); }
.ws-impact-command input { padding: 0 11px 0 35px; }
.ws-impact-command .ws-input-icon { position: relative; display: block; }
.ws-impact-command .ws-input-icon svg { position: absolute; inset-inline-start: 11px; top: 11px; width: 16px; color: var(--ws-text-3); }
.ws-impact-specialist-links { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 8px 11px; border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text-3); font-size: 9px; }
.ws-impact-specialist-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--ws-accent); font-weight: 740; }
.ws-impact-specialist-links svg { width: 15px; }
.ws-impact-access { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 8px 12px; border: 1px solid rgba(14,122,70,.35); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-impact-access > span { display: inline-flex; align-items: center; gap: 7px; }
.ws-impact-access svg { width: 16px; }
.ws-impact-access small { color: var(--ws-text-2); text-align: end; }
.ws-impact-receipt-focus { margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--ws-accent) 52%, var(--ws-line)); background: var(--ws-surface); box-shadow: inset 4px 0 0 var(--ws-accent); }
.ws-impact-receipt-focus[hidden] { display: none; }
.ws-impact-receipt-focus-head { min-height: 112px; display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--ws-line); }
.ws-impact-receipt-focus-head > div:first-child { min-width: 0; }
.ws-impact-receipt-focus-head h2{margin:4px 0 5px;font-size:19px;line-height:1.25}
.ws-impact-receipt-focus-head p{max-width:980px;margin:0;color:var(--ws-text-2);font-size:10px;line-height:1.55}
.ws-impact-receipt-probability { min-height: 78px; display: grid; place-content: center; padding: 10px; border: 1px solid rgba(27,69,215,.35); background: #EDF0FE; text-align: center; }
.ws-impact-receipt-probability span, .ws-impact-receipt-probability small { color: var(--ws-text-3); font-size: 8px; }
.ws-impact-receipt-probability span { font-weight: 760; text-transform: uppercase; }
.ws-impact-receipt-probability b{margin:3px 0;color:var(--ws-accent);font-size:25px}
.ws-impact-receipt-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ws-line); }
.ws-impact-receipt-metrics > div { min-width: 0; min-height: 68px; padding: 10px 14px; border-inline-end: 1px solid var(--ws-line); }
.ws-impact-receipt-metrics > div:last-child { border-inline-end: 0; }
.ws-impact-receipt-metrics span, .ws-impact-receipt-metrics b, .ws-impact-receipt-metrics small { display: block; }
.ws-impact-receipt-metrics span { color: var(--ws-text-3); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.ws-impact-receipt-metrics b { margin-top: 4px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.ws-impact-receipt-metrics small { margin-top: 3px; color: var(--ws-text-3); font-size: 8px; }
.ws-impact-receipt-body { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 14px; padding: 14px 16px; }
.ws-impact-receipt-body > section { min-width: 0; }
.ws-impact-receipt-watchlist { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.ws-impact-receipt-asset { min-width: 0; min-height: 82px; display: grid; align-content: center; gap: 4px; padding: 9px 10px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-impact-receipt-asset.is-held { border-inline-start: 3px solid var(--ws-accent); background: var(--ws-accent-soft); }
.ws-impact-receipt-asset > a { min-width: 0; color: var(--ws-text); text-decoration: none; }
.ws-impact-receipt-asset > a:hover b { color: var(--ws-accent); }
.ws-impact-receipt-asset b, .ws-impact-receipt-asset small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-impact-receipt-asset b { font-size: 10px; }
.ws-impact-receipt-asset small, .ws-impact-receipt-asset em { color: var(--ws-text-3); font-size: 8px; }
.ws-impact-receipt-asset em { font-style: normal; }
.ws-impact-receipt-holdings { margin-top: 8px; border: 1px solid var(--ws-line); }
.ws-impact-receipt-holdings article { min-height: 54px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(110px, auto); align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--ws-line); }
.ws-impact-receipt-holdings article:last-child { border-bottom: 0; }
.ws-impact-receipt-holdings span, .ws-impact-receipt-holdings b, .ws-impact-receipt-holdings small { min-width: 0; display: block; }
.ws-impact-receipt-holdings b, .ws-impact-receipt-holdings a { overflow: hidden; color: var(--ws-text); font-size: 9px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.ws-impact-receipt-holdings a:hover { color: var(--ws-accent); }
.ws-impact-receipt-holdings small { margin-top: 2px; overflow: hidden; color: var(--ws-text-3); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
#ws-impact-receipt-held > p { margin: 7px 0 0; color: var(--ws-text-3); font-size: 8px; line-height: 1.45; }
.ws-impact-receipt-empty { grid-column: 1 / -1; min-height: 128px; }
.ws-impact-receipt-focus-foot { min-height: 70px; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-impact-receipt-focus-foot > div { min-width: 0; flex: 1; }
.ws-impact-receipt-focus-foot p { margin: 0; color: var(--ws-text-2); font-size: 8px; line-height: 1.45; }
.ws-impact-receipt-focus-foot p + p { margin-top: 4px; color: #8A5A06; }
.ws-impact-receipt-focus-foot > span { display: flex; align-items: center; gap: 6px; }
.ws-impact-receipt-focus-foot .ws-button { white-space: nowrap; }
.ws-impact-decision { margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-impact-decision-head { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-bottom: 1px solid var(--ws-line); }
.ws-impact-decision-head > div { min-width: 0; flex: 1; }
.ws-impact-decision-head > .ws-impact-decision-actions { flex: none; display: flex; align-items: center; gap: 7px; }
.ws-impact-decision-head h2 { margin: 3px 0 2px; font-size: 16px; }
.ws-impact-decision-head p { margin: 0; color: var(--ws-text-2); font-size: 10px; }
.ws-impact-decision-metrics { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, .75fr)); border-top: 1px solid var(--ws-line); }
.ws-impact-decision-metrics > div { min-width: 0; min-height: 64px; padding: 9px 14px; border-inline-end: 1px solid var(--ws-line); }
.ws-impact-decision-metrics > div:last-child { border-inline-end: 0; }
.ws-impact-decision-metrics span, .ws-impact-decision-metrics b, .ws-impact-decision-metrics small { display: block; min-width: 0; }
.ws-impact-decision-metrics span { color: var(--ws-text-3); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.ws-impact-decision-metrics b { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ws-impact-decision-metrics small { margin-top: 3px; color: var(--ws-text-3); font-size: 8px; }
.ws-impact-priority-head { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-impact-priority-head h3 { margin: 0; font-size: 10px; }
.ws-impact-priority-head span { color: var(--ws-text-3); font-size: 8px; }
.ws-impact-priority-list { display: block; }
.ws-impact-priority { min-width: 0; min-height: 84px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 12px; border: 0; border-inline-end: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); text-align: start; cursor: pointer; }
.ws-impact-priority.is-primary { width: 100%; min-height: 94px; border-inline-end: 0; box-shadow: inset 3px 0 0 var(--ws-accent); }
.ws-impact-priority:last-child { border-inline-end: 0; }
.ws-impact-priority:hover { background: var(--ws-surface-2); }
.ws-impact-priority-rank { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ws-line-strong); color: var(--ws-text-2); font-size: 9px; font-weight: 760; }
.ws-impact-priority > span:nth-child(2), .ws-impact-priority b, .ws-impact-priority small { min-width: 0; display: block; }
.ws-impact-priority b { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ws-impact-priority small { margin-top: 4px; overflow: hidden; color: var(--ws-text-3); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ws-impact-priority-action { display: inline-flex; align-items: center; gap: 3px; color: var(--ws-accent); font-size: 9px; font-weight: 760; }
.ws-impact-priority-action svg { width: 14px; }
.ws-impact-other-priorities { border-top: 1px solid var(--ws-line); }
.ws-impact-other-priorities > summary { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ws-text-2); font-size: 9px; font-weight: 720; cursor: pointer; list-style: none; }
.ws-impact-other-priorities > summary::-webkit-details-marker { display: none; }
.ws-impact-other-priorities > summary svg { width: 14px; transition: transform .16s ease; }
.ws-impact-other-priorities[open] > summary { border-bottom: 1px solid var(--ws-line); }
.ws-impact-other-priorities[open] > summary svg { transform: rotate(180deg); }
.ws-impact-other-priorities > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-impact-other-priorities .ws-impact-priority { border-inline-end: 1px solid var(--ws-line); }
.ws-impact-other-priorities .ws-impact-priority:last-child { border-inline-end: 0; }
.ws-impact-priority-empty { min-height: 84px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px; color: var(--ws-accent); }
.ws-impact-priority-empty svg { width: 18px; }
.ws-impact-priority-empty b, .ws-impact-priority-empty small { display: block; }
.ws-impact-priority-empty b { font-size: 10px; }
.ws-impact-priority-empty small { margin-top: 2px; color: var(--ws-text-3); font-size: 8px; }
.ws-impact-lens { display: grid; grid-template-columns: minmax(320px, .66fr) minmax(0, 1.34fr); min-height: 188px; margin-bottom: 12px; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-impact-lens > header { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 18px 48px 18px 18px; border-inline-end: 1px solid var(--ws-line); }
.ws-impact-lens > header > div:first-child { min-width: 0; }
.ws-impact-lens h2 { margin: 3px 0 0; font-size: 16px; }
.ws-impact-lens .ws-segmented { display: flex; width: 100%; }
.ws-impact-lens .ws-segmented button { min-width: 0; flex: 1; padding-inline: 9px; white-space: normal; }
.ws-impact-lens > header .ws-info { position: absolute; top: 14px; right: 14px; }
.ws-impact-lens-body { min-width: 0; display: grid; grid-template-columns: 154px minmax(220px, 1fr) minmax(180px, .75fr); align-items: center; gap: 17px; padding: 16px 20px; }
.ws-impact-donut { position: relative; width: 146px; height: 146px; }
.ws-impact-donut svg { width: 100%; height: 100%; }
.ws-impact-donut circle { vector-effect: non-scaling-stroke; }
.ws-impact-donut > span { position: absolute; inset: 39px; display: grid; place-content: center; text-align: center; }
.ws-impact-donut b { max-width: 82px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ws-impact-donut small { margin-top: 3px; color: var(--ws-text-3); font-size: 7px; text-transform: uppercase; }
.ws-impact-lens-body ul { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; margin: 0; padding: 0; list-style: none; }
.ws-impact-lens-body li { min-width: 0; display: flex; align-items: center; gap: 8px; }
.ws-impact-lens-body li > i { width: 9px; height: 9px; flex: none; background: var(--impact-color); }
.ws-impact-lens-body li span, .ws-impact-lens-body li b, .ws-impact-lens-body li small { min-width: 0; display: block; }
.ws-impact-lens-body li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.ws-impact-lens-body li small { margin-top: 2px; color: var(--ws-text-3); font-size: 8px; }
.ws-impact-lens-body > p { margin: 0; color: var(--ws-text-2); font-size: 9px; line-height: 1.55; }
.ws-impact-lens-empty { min-height: 186px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ws-text-3); font-size: 10px; }
.ws-impact-lens-empty svg { width: 18px; }
.ws-impact-workbench { height: clamp(680px, calc(100vh - 300px), 940px); min-height: 680px; display: grid; grid-template-columns: minmax(310px, 29%) minmax(0, 1fr); border: 1px solid var(--ws-line); background: var(--ws-surface); overflow: hidden; }
.ws-impact-scenarios { min-width: 0; overflow: auto; border-inline-end: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-impact-pane-head { position: sticky; top: 0; z-index: 2; min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--ws-line); background: rgba(240,242,244,.97); }
.ws-impact-pane-head > div { min-width: 0; flex: 1; }
.ws-impact-pane-title { display: flex; align-items: center; gap: 8px; }
.ws-impact-pane-title span { color: var(--ws-text); font-size: 12px; font-weight: 760; }
.ws-impact-pane-title .ws-count { width: auto; flex: none; margin-inline-start: auto; }
.ws-impact-scenario { width: 100%; min-height: 90px; display: grid; align-content: center; gap: 8px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--ws-line); background: transparent; color: var(--ws-text); text-align: start; cursor: pointer; }
.ws-impact-scenario:hover { background: var(--ws-surface); }
.ws-impact-scenario.is-selected { box-shadow: inset 3px 0 0 var(--ws-accent); background: var(--ws-surface); }
.ws-impact-scenario > span { min-width: 0; display: flex; align-items: flex-start; gap: 9px; }
.ws-impact-scenario b { min-width: 0; flex: 1; font-size: 11px; line-height: 1.4; }
.ws-impact-scenario em { flex: none; color: var(--ws-text-2); font-size: 10px; font-style: normal; font-weight: 760; }
.ws-impact-scenario small { color: var(--ws-text-3); font-size: 9px; }
.ws-impact-asset-balance { display: flex !important; gap: 10px !important; }
.ws-impact-asset-balance i { font-size: 8px; font-style: normal; font-weight: 740; }
.ws-impact-asset-balance .is-positive { color: var(--ws-accent); }
.ws-impact-asset-balance .is-negative { color: var(--ws-danger); }
.ws-impact-detail { min-width: 0; min-height: 0; overflow: auto; }
.ws-impact-detail > .ws-empty { min-height: 100%; border: 0; }
#ws-impact-selected, #ws-impact-asset-selected { min-height: 100%; padding: 20px; }
.ws-impact-return-asset { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: var(--ws-accent); font: inherit; font-size: 10px; font-weight: 720; cursor: pointer; }
.ws-impact-return-asset svg { width: 15px; }
.ws-impact-detail-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid var(--ws-line); }
.ws-impact-detail-head > div { min-width: 0; flex: 1; }
.ws-impact-detail-head h2 { max-width: 900px; margin: 8px 0 6px; font-size: 20px; line-height: 1.28; }
.ws-impact-detail-head p { max-width: 980px; margin: 0; color: var(--ws-text-2); line-height: 1.55; }
.ws-impact-detail-head .ws-status.is-warning { border-color: rgba(184,121,10,.45); background: #F7EFE2; color: #8A5A06; }
.ws-impact-detail-head .ws-status.is-warning::before { background: #B8790A; }
.ws-impact-detail-head .ws-status.is-danger { border-color: rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-impact-detail-head .ws-status.is-danger::before { background: var(--ws-danger); }
.ws-impact-detail-head .ws-status.is-info { border-color: rgba(27,69,215,.35); background: #EDF0FE; color: #1B45D7; }
.ws-impact-detail-head .ws-status.is-info::before { background: #1B45D7; }
.ws-impact-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--ws-line); }
.ws-impact-metrics > div { min-height: 86px; padding: 13px 14px; border-inline-end: 1px solid var(--ws-line); }
.ws-impact-metrics > div:last-child { border-inline-end: 0; }
.ws-impact-metrics span, .ws-impact-metrics b, .ws-impact-metrics small { display: block; }
.ws-impact-metrics span { color: var(--ws-text-3); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.ws-impact-metrics b { margin-top: 8px; font-size: 21px; line-height: 1.15; }
.ws-impact-metrics b.ws-impact-date { font-size: 15px; }
.ws-impact-metrics small { margin-top: 5px; color: var(--ws-text-3); font-size: 9px; }
.ws-impact-mechanism { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 14px; border: 1px solid var(--ws-line); }
.ws-impact-mechanism > div { min-width: 0; padding: 13px 14px; border-inline-end: 1px solid var(--ws-line); }
.ws-impact-mechanism > div:last-child { border-inline-end: 0; }
.ws-impact-mechanism h3 { margin: 0 0 9px; color: var(--ws-text-2); font-size: 10px; }
.ws-impact-mechanism ul { margin: 0; padding-inline-start: 17px; color: var(--ws-text-2); font-size: 9px; line-height: 1.55; }
.ws-impact-mechanism li + li { margin-top: 5px; }
.ws-impact-shocks { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-impact-shocks > span { min-width: 112px; display: grid; gap: 2px; padding: 7px 8px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-impact-shocks b { font-size: 9px; }
.ws-impact-shocks small { color: var(--ws-text-3); font-size: 8px; }
.ws-impact-shocks .is-positive { border-inline-start: 3px solid var(--ws-accent); }
.ws-impact-shocks .is-negative { border-inline-start: 3px solid var(--ws-danger); }
.ws-impact-holdings { margin-top: 14px; }
.ws-impact-holdings .ws-section-head { min-height: 46px; }
.ws-impact-table { min-width: 1180px; }
.ws-impact-table td b, .ws-impact-table td small { display: block; }
.ws-impact-table td b { font-size: 10px; }
.ws-impact-table td small { margin-top: 3px; color: var(--ws-text-3); font-size: 8px; }
.ws-impact-direction { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 760; }
.ws-impact-direction svg { width: 14px; }
.ws-impact-direction.is-positive { color: var(--ws-accent); }
.ws-impact-direction.is-negative { color: var(--ws-danger); }
.ws-impact-row-actions { display: inline-flex; align-items: center; gap: 5px; }
.ws-impact-row-actions .ws-button.is-active { color: var(--ws-accent); background: var(--ws-accent-soft); }
.ws-impact-asset-map { margin-top: 14px; }
.ws-impact-decision-receipts { margin-top: 14px; padding: 12px; border: 1px solid color-mix(in srgb, var(--ws-accent) 45%, var(--ws-line)); background: color-mix(in srgb, var(--ws-accent) 5%, var(--ws-surface)); }
.ws-impact-decision-receipts[hidden] { display: none; }
.ws-impact-decision-receipts > p { margin: 9px 0 0; color: var(--ws-text-3); font-size: 9px; line-height: 1.45; }
.ws-impact-decision-receipt-list { display: grid; gap: 8px; margin-top: 9px; }
.ws-impact-decision-receipt { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-impact-decision-receipt > div span, .ws-impact-decision-receipt > div strong { display: block; }
.ws-impact-decision-receipt > div span { color: var(--ws-text-3); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.ws-impact-decision-receipt > div strong { margin-top: 3px; color: var(--ws-accent); font-size: 18px; }
.ws-impact-decision-receipt section { min-width: 0; }
.ws-impact-decision-receipt h4, .ws-impact-decision-receipt p { margin: 0; }
.ws-impact-decision-receipt h4 { font-size: 11px; }
.ws-impact-decision-receipt p { margin-top: 3px; color: var(--ws-text-2); font-size: 9px; line-height: 1.4; }
.ws-impact-decision-receipt small { display: block; margin-top: 4px; color: var(--ws-text-3); font-size: 8px; }
.ws-impact-direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-impact-direction-column { min-width: 0; border: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-impact-direction-column > header { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid var(--ws-line); }
.ws-impact-direction-column > header > span { min-width: 0; flex: 1; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 760; line-height: 1.3; white-space: nowrap; }
.ws-impact-direction-column > header .ws-count { width: auto; flex: none; margin-inline-start: auto; }
.ws-impact-direction-column > header svg { width: 15px; }
.ws-impact-direction-column.is-upside > header { color: var(--ws-accent); background: var(--ws-accent-soft); }
.ws-impact-direction-column.is-downside > header { color: var(--ws-danger); background: var(--ws-danger-soft); }
.ws-impact-direction-column.is-mixed > header { color: var(--ws-text-2); background: var(--ws-surface-2); }
.ws-impact-asset-scenario { width: 100%; min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 4px 12px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); text-align: start; cursor: pointer; }
.ws-impact-asset-scenario:last-child { border-bottom: 1px solid var(--ws-line); }
.ws-impact-asset-scenario:hover { background: var(--ws-surface-2); }
.ws-impact-asset-scenario > b { min-width: 0; font-size: 11px; line-height: 1.35; }
.ws-impact-asset-scenario > small { color: var(--ws-text-3); font-size: 9px; }
.ws-impact-asset-scenario > svg { grid-column: 2; grid-row: 1 / 3; width: 16px; color: var(--ws-text-3); }
.ws-impact-direction-empty { min-height: 88px; display: grid; place-items: center; padding: 15px; color: var(--ws-text-3); font-size: 9px; text-align: center; }
.ws-impact-pagination { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 6px 9px; background: var(--ws-surface-2); }
.ws-impact-pagination span { color: var(--ws-text-3); font-size: 8px; }
.ws-impact-pagination .ws-icon-button { width: 30px; height: 30px; }
.ws-impact-mixed-scenarios { margin-top: 12px; }
.ws-impact-receipts { min-height: 54px; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-impact-receipts > div { min-width: 0; flex: 1; }
.ws-impact-receipts b, .ws-impact-receipts span { display: block; }
.ws-impact-receipts b { font-size: 10px; }
.ws-impact-receipts span { margin-top: 2px; color: var(--ws-text-3); font-size: 9px; }
.ws-impact-back { display: none; }
.ws-impact-source-dialog { width: min(720px, calc(100vw - 30px)); }
.ws-impact-source { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--ws-line); }
.ws-impact-source:last-child { border-bottom: 0; }
.ws-impact-source b, .ws-impact-source span { display: block; }
.ws-impact-source b { font-size: 11px; }
.ws-impact-source span, .ws-impact-source time { color: var(--ws-text-3); font-size: 9px; }
.ws-impact-monitor-dialog { width: min(760px, calc(100vw - 28px)); }
.ws-impact-monitor-dialog > form { max-height: min(760px, calc(100vh - 30px)); }
.ws-dialog-context { min-height: 48px; display: flex; align-items: center; gap: 18px; padding: 8px 18px; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface-2); color: var(--ws-text-2); font-size: 10px; }
.ws-dialog-context span { display: inline-flex; align-items: baseline; gap: 5px; }
.ws-dialog-context b { color: var(--ws-text); font-size: 14px; }
.ws-dialog-context .ws-info { margin-left: auto; }
.ws-impact-monitor-list { min-height: 190px; max-height: min(560px, calc(100vh - 230px)); overflow: auto; padding: 0; }
.ws-impact-monitor { min-height: 104px; display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-impact-monitor:last-child { border-bottom: 0; }
.ws-impact-monitor.is-due { border-left: 3px solid var(--ws-warn); padding-left: 15px; }
.ws-impact-monitor .ws-status.is-positive { border-color: rgba(14,122,70,.35); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-impact-monitor .ws-status.is-positive::before { background: var(--ws-accent); }
.ws-impact-monitor .ws-status.is-warning { border-color: rgba(184,121,10,.45); background: var(--ws-warn-soft); color: var(--ws-warn); }
.ws-impact-monitor .ws-status.is-warning::before { background: var(--ws-warn); }
.ws-impact-monitor .ws-status.is-info { border-color: var(--ws-line-strong); background: var(--ws-surface-2); color: var(--ws-text-3); }
.ws-impact-monitor .ws-status.is-info::before { background: var(--ws-text-3); }
.ws-impact-monitor-main { min-width: 0; flex: 1; }
.ws-impact-monitor h3 { margin: 7px 0 4px; font-size: 12px; line-height: 1.35; }
.ws-impact-monitor p { margin: 0; color: var(--ws-text-2); font-size: 10px; }
.ws-impact-monitor small { display: block; margin-top: 5px; color: var(--ws-text-3); font-size: 9px; }
.ws-impact-monitor-actions { flex: none; display: flex; align-items: center; gap: 6px; }

@media (max-width: 1080px) {
  .ws-impact-command { grid-template-columns: minmax(190px, 1fr) minmax(130px, .5fr) minmax(220px, 1.2fr) 42px; }
  .ws-impact-lens-body { grid-template-columns: 132px minmax(0, 1fr); padding-inline: 16px; }
  .ws-impact-donut { width: 126px; height: 126px; }
  .ws-impact-donut > span { inset: 34px; }
  .ws-impact-lens-body > p { grid-column: 2; }
  .ws-impact-workbench { grid-template-columns: minmax(280px, 34%) minmax(0, 1fr); }
  .ws-impact-other-priorities > div { grid-template-columns: 1fr; }
  .ws-impact-other-priorities .ws-impact-priority { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-impact-other-priorities .ws-impact-priority:last-child { border-bottom: 0; }
  .ws-impact-mechanism { grid-template-columns: 1fr; }
  .ws-impact-mechanism > div { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-impact-mechanism > div:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .ws-impact-receipt-focus-head { grid-template-columns: 1fr 150px; }
  .ws-impact-receipt-metrics { grid-template-columns: 1fr 1fr; }
  .ws-impact-receipt-metrics > div:nth-child(2) { border-inline-end: 0; }
  .ws-impact-receipt-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--ws-line); }
  .ws-impact-receipt-body { grid-template-columns: 1fr; }
  .ws-impact-receipt-focus-foot { align-items: flex-start; flex-direction: column; }
  .ws-impact-receipt-focus-foot > span { width: 100%; flex-wrap: wrap; }
  .ws-impact-modebar { align-items: flex-start; flex-wrap: wrap; }
  .ws-impact-modebar .ws-segmented { width: calc(100% - 50px); }
  .ws-impact-modebar .ws-segmented button { flex: 1; justify-content: center; }
  .ws-impact-modebar > span { order: 3; flex-basis: 100%; }
  .ws-impact-command { grid-template-columns: 1fr 1fr 38px; }
  .ws-impact-search { grid-column: 1 / 3; grid-row: 2; }
  .ws-impact-command > .ws-info { grid-column: 3; grid-row: 2; }
  .ws-impact-access { align-items: flex-start; flex-direction: column; }
  .ws-impact-access small { text-align: start; }
  .ws-impact-specialist-links { align-items: flex-start; flex-direction: column; }
  .ws-impact-decision-metrics { grid-template-columns: 1fr 1fr; }
  .ws-impact-decision-metrics > div:nth-child(2) { border-inline-end: 0; }
  .ws-impact-decision-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--ws-line); }
  .ws-impact-lens { grid-template-columns: 1fr; }
  .ws-impact-lens > header { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-impact-lens-body { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .ws-impact-donut { width: 110px; height: 110px; }
  .ws-impact-donut > span { inset: 29px; }
  .ws-impact-lens-body ul { grid-template-columns: 1fr; }
  .ws-impact-lens-body > p { grid-column: 1 / 3; }
  .ws-impact-workbench { height: auto; min-height: 540px; display: block; overflow: visible; }
  .ws-impact-scenarios { border-inline-end: 0; }
  .ws-impact-detail { display: none; overflow: visible; }
  .ws-impact-detail.is-mobile-focus { display: block; }
  .ws-impact-workbench:has(.ws-impact-detail.is-mobile-focus) .ws-impact-scenarios { display: none; }
  #ws-impact-selected, #ws-impact-asset-selected { padding: 15px; }
  .ws-impact-direction-grid { grid-template-columns: 1fr; }
  .ws-impact-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: var(--ws-accent); font: inherit; font-size: 10px; font-weight: 700; }
  .ws-impact-back svg { width: 15px; }
  .ws-impact-metrics { grid-template-columns: 1fr 1fr; }
  .ws-impact-metrics > div:nth-child(2) { border-inline-end: 0; }
  .ws-impact-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--ws-line); }
}

@media (max-width: 430px) {
  .ws-impact-receipt-focus-head { grid-template-columns: 1fr; }
  .ws-impact-receipt-probability { min-height: 68px; }
  .ws-impact-receipt-watchlist { grid-template-columns: 1fr; }
  .ws-impact-receipt-holdings article { grid-template-columns: 1fr 1fr; }
  .ws-impact-receipt-holdings article > span:last-child { grid-column: 1 / -1; }
  .ws-impact-receipt-focus-foot > span .ws-button { width: 100%; justify-content: center; }
  .ws-impact-command { grid-template-columns: 1fr 38px; }
  .ws-impact-command label { grid-column: 1 / -1; }
  .ws-impact-command > .ws-info { grid-column: 2; grid-row: 4; }
  .ws-impact-metrics { grid-template-columns: 1fr; }
  .ws-impact-metrics > div { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-impact-metrics > div:last-child { border-bottom: 0; }
  .ws-impact-decision-head { align-items: flex-start; }
  .ws-impact-decision-head > .ws-impact-decision-actions { align-self: center; }
  .ws-impact-access { min-height: 42px; align-items: center; flex-direction: row; }
  .ws-impact-access small { display: none; }
  .ws-impact-decision-metrics { grid-template-columns: 1fr 1fr; }
  .ws-impact-decision-metrics > div { min-height: 56px; padding: 8px 10px; }
  .ws-impact-decision-metrics > div:nth-child(odd) { border-inline-end: 1px solid var(--ws-line); }
  .ws-impact-decision-metrics > div:nth-child(even) { border-inline-end: 0; }
  .ws-impact-decision-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--ws-line); }
  .ws-impact-decision-metrics > div:nth-child(n+3) { border-bottom: 0; }
  .ws-impact-priority { grid-template-columns: 24px minmax(0, 1fr); }
  .ws-impact-priority-action { grid-column: 2; }
  .ws-impact-source { grid-template-columns: minmax(0, 1fr) 38px; }
  .ws-impact-source time { grid-column: 1; grid-row: 2; }
  .ws-impact-decision-receipt { grid-template-columns: 1fr auto; }
  .ws-impact-decision-receipt > div { grid-column: 1; }
  .ws-impact-decision-receipt > section { grid-column: 1 / -1; grid-row: 2; }
  .ws-impact-decision-receipt > a { grid-column: 2; grid-row: 1; }
  .ws-impact-asset-scenario { grid-template-columns: 1fr auto; }
  .ws-impact-asset-scenario > .ws-impact-direction { grid-column: 1; grid-row: 1; }
  .ws-impact-asset-scenario > b { grid-column: 1 / -1; grid-row: 2; }
  .ws-impact-asset-scenario > small { grid-column: 1; grid-row: 3; }
  .ws-impact-asset-scenario > svg { grid-column: 2; grid-row: 1; }
  .ws-impact-monitor { align-items: flex-start; flex-direction: column; }
  .ws-impact-monitor-actions { width: 100%; }
  .ws-impact-monitor-actions .ws-button { flex: 1; justify-content: center; }
}

/* Firm billing */
.ws-billing-main { max-width: 1380px; }
.ws-billing-error { min-height: 62px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(195,55,43,.4); background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-billing-error[hidden] { display: none; }
.ws-billing-error > svg { width: 19px; flex: none; }
.ws-billing-error > div { min-width: 0; flex: 1; }
.ws-billing-error b, .ws-billing-error span { display: block; }
.ws-billing-error span { margin-top: 2px; color: var(--ws-text-2); font-size: 11px; }
.ws-billing-error .ws-button { flex: none; background: var(--ws-surface); }
.ws-billing-metrics .ws-metric strong.ws-metric-text { min-height: 33px; display: flex; align-items: center; font-size: clamp(16px, 1.55vw, 22px); overflow-wrap: anywhere; }
.ws-billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ws-billing-grid .ws-panel { min-width: 0; display: flex; flex-direction: column; }
.ws-billing-grid .ws-panel-body { flex: 1; }
.ws-billing-seat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ws-billing-seat-head > div span, .ws-billing-payment-state > div > span { display: block; color: var(--ws-text-3); font-size: 10px; font-weight: 730; text-transform: uppercase; letter-spacing: .055em; }
.ws-billing-seat-head strong { display: block; margin-top: 4px; font-size: 22px; }
.ws-billing-seat-track { height: 8px; margin: 18px 0; border: 1px solid var(--ws-line); background: var(--ws-surface-2); overflow: hidden; }
.ws-billing-seat-track > span { display: block; width: 0; height: 100%; background: var(--ws-accent); transition: width .18s ease; }
.ws-billing-breakdown, .ws-billing-facts { margin: 0; border-top: 1px solid var(--ws-line); }
.ws-billing-breakdown > div, .ws-billing-facts > div { min-height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--ws-line); }
.ws-billing-breakdown > div:last-child, .ws-billing-facts > div:last-child { border-bottom: 0; }
.ws-billing-breakdown dt, .ws-billing-facts dt { color: var(--ws-text-2); font-size: 11px; }
.ws-billing-breakdown dd, .ws-billing-facts dd { min-width: 0; margin: 0; color: var(--ws-text); font-size: 11px; font-weight: 680; text-align: right; overflow-wrap: anywhere; }
.ws-billing-panel-foot { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--ws-line); background: var(--ws-surface-2); }
.ws-billing-panel-foot > span { color: var(--ws-text-3); font-size: 10px; }
.ws-billing-payment-state { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 16px; }
.ws-billing-state-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(14,122,70,.35); background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-billing-state-icon svg { width: 19px; }
.ws-billing-payment-state strong, .ws-billing-payment-state small { display: block; }
.ws-billing-payment-state strong { margin-top: 2px; font-size: 17px; }
.ws-billing-payment-state small { margin-top: 2px; color: var(--ws-text-3); font-size: 10px; }
.ws-billing-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ws-billing-seat-input { display: flex; align-items: center; gap: 8px; color: var(--ws-text-2); font-size: 11px; font-weight: 720; }
.ws-billing-seat-input input { width: 78px; height: 38px; border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); padding: 0 10px; font: 650 13px var(--ws-sans); }
.ws-billing-dialog-toolbar + .ws-form-help { margin: -6px 0 14px; }
.ws-billing-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ws-line); }
.ws-billing-plan { min-width: 0; display: flex; flex-direction: column; padding: 16px; border-inline-end: 1px solid var(--ws-line); background: var(--ws-surface); }
.ws-billing-plan:last-child { border-inline-end: 0; }
.ws-billing-plan.is-current { box-shadow: inset 0 3px 0 var(--ws-accent); }
.ws-billing-plan header { min-height: 106px; display: flex; align-items: flex-start; gap: 8px; }
.ws-billing-plan header > div { min-width: 0; flex: 1; }
.ws-billing-plan h3 { margin: 0; font-size: 15px; }
.ws-billing-plan p { margin: 6px 0 0; color: var(--ws-text-3); font-size: 10px; line-height: 1.45; }
.ws-billing-price { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 14px; }
.ws-billing-price strong { font-size: clamp(20px, 2vw, 28px); }
.ws-billing-price span { color: var(--ws-text-3); font-size: 10px; }
.ws-billing-plan > small { min-height: 34px; display: block; color: var(--ws-text-2); font-size: 10px; }
.ws-billing-plan > .ws-button { width: 100%; justify-content: center; margin-top: auto; }
.ws-billing-dialog .ws-form-error:empty { display: none; }

@media (max-width: 900px) {
  .ws-billing-grid { grid-template-columns: 1fr; }
  .ws-billing-plan-grid { grid-template-columns: 1fr; }
  .ws-billing-plan { border-inline-end: 0; border-bottom: 1px solid var(--ws-line); }
  .ws-billing-plan:last-child { border-bottom: 0; }
  .ws-billing-plan header { min-height: 0; }
}

@media (max-width: 560px) {
  .ws-billing-error, .ws-billing-panel-foot { align-items: flex-start; flex-direction: column; }
  .ws-billing-error .ws-button, .ws-billing-panel-foot .ws-button { width: 100%; justify-content: center; }
  .ws-billing-dialog-toolbar { align-items: stretch; flex-wrap: wrap; }
  .ws-billing-dialog-toolbar .ws-segmented { width: calc(100% - 36px); }
  .ws-billing-dialog-toolbar .ws-segmented button { flex: 1; }
  .ws-billing-seat-input { width: 100%; justify-content: space-between; }
}
/* Prospective Forecast Lab */
.ws-forecast-main{max-width:1240px}.ws-forecast-blindness{margin:0 0 18px}.ws-forecast-toolbar{display:flex;gap:12px;align-items:end;margin:18px 0}.ws-forecast-toolbar>label:first-child{flex:1}.ws-forecast-toolbar>label:last-child{min-width:190px}.ws-forecast-toolbar>label>span{display:block;font-size:11px;font-weight:800;color:var(--ws-text-3);margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
.ws-forecast-list{display:grid;gap:14px}.ws-forecast-card{background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:0;padding:20px}.ws-forecast-card>header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.ws-forecast-card h2{font-size:20px;line-height:1.25;margin:8px 0 5px;max-width:820px}.ws-forecast-card header p{margin:0;color:var(--ws-text-3);font-size:13px}.ws-forecast-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.ws-forecast-card-grid{display:grid;grid-template-columns:1fr .8fr 1.4fr;gap:1px;background:var(--ws-line);border:1px solid var(--ws-line);border-radius:0;overflow:hidden;margin:18px 0}.ws-forecast-card-grid>section{background:var(--ws-surface);padding:13px}.ws-forecast-card-grid span,.ws-forecast-card-grid small{display:block;color:var(--ws-text-3);font-size:11px}.ws-forecast-card-grid b{display:block;font-size:16px;margin:4px 0;overflow-wrap:anywhere}.ws-forecast-card details{border-top:1px solid var(--ws-line);padding-top:12px}.ws-forecast-card summary{cursor:pointer;font-weight:800;font-size:13px}.ws-forecast-contract{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-top:14px}.ws-forecast-contract h3{font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin:10px 0 4px}.ws-forecast-contract p{font-size:13px;color:var(--ws-text-3)}.ws-forecast-contract ul{padding-left:18px}.ws-forecast-contract li{margin:8px 0}.ws-forecast-contract li small{display:block;color:var(--ws-text-3);font-family:"Geist Mono",ui-monospace,SFMono-Regular,monospace}.ws-forecast-hash{font-family:"Geist Mono",ui-monospace,SFMono-Regular,monospace;overflow-wrap:anywhere}.ws-forecast-dialog{width:min(860px,calc(100vw - 28px))}.ws-forecast-evidence-checks{display:grid;gap:8px}.ws-forecast-evidence-checks label{display:flex;gap:9px;border:1px solid var(--ws-line);border-radius:0;padding:10px;align-items:flex-start}.ws-forecast-evidence-checks small{display:block;color:var(--ws-text-3);font-family:"Geist Mono",ui-monospace,SFMono-Regular,monospace}.ws-forecast-declaration{display:flex;gap:9px;align-items:flex-start;font-weight:700;font-size:13px;margin-top:14px}
@media(max-width:760px){.ws-forecast-toolbar{display:grid}.ws-forecast-toolbar>label:last-child{min-width:0}.ws-forecast-card>header{display:block}.ws-forecast-actions{justify-content:flex-start;margin-top:12px}.ws-forecast-card-grid,.ws-forecast-contract{grid-template-columns:1fr}.ws-forecast-metrics{grid-template-columns:1fr 1fr}}
.ws-forecast-task-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.ws-advice-editor-foot [data-task-save-state]{min-width:0;color:var(--ws-text-3);font-size:8px;line-height:1.35}
.ws-forecast-dialog .ws-advice-policy-details.ws-field-full{min-height:0}
@media(max-width:760px){.ws-advice-editor-foot [data-task-save-state]{grid-column:1/-1;padding-block:2px;text-align:center}}

/* Asset-first holding journey */
.ws-holding-journey-dialog{width:min(880px,calc(100vw - 28px))}
.ws-holding-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.ws-holding-journey-dialog .ws-manual-asset-fields{min-height:0;border:1px solid var(--ws-line);background:var(--ws-surface-2)}
.ws-holding-journey-dialog .ws-manual-asset-fields>.ws-form-grid{padding:12px}
.ws-holding-journey-dialog .ws-check-field.ws-field-full{grid-column:1/-1}
.ws-holding-journey-dialog .ws-advice-policy-details.ws-field-full{min-height:0}
.ws-holding-foot [data-holding-save-state]{min-width:0;color:var(--ws-text-3);font-size:8px;line-height:1.35}
.ws-holding-journey-dialog [aria-invalid="true"]{border-color:var(--ws-danger)}
@media(max-width:760px){.ws-holding-foot [data-holding-save-state]{grid-column:1/-1;padding-block:2px;text-align:center}}
