/* Keep website/communications shortcuts out of both brokerage modes.
   The normal sidebar and other workspaces are unchanged. */
body:has([data-testid="bank-brokerage-modes"]) [data-testid="bank-workspace-links"] {
  display: none !important;
}

.abt-brokerage-modes { color:#2d1a0e; margin:16px; min-width:0; font-family:inherit }
.abt-brokerage-modes>header { display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap }
.abt-brokerage-modes>header h2 { font-size:18px;font-weight:750;margin:0 }
.abt-brokerage-modes nav { display:flex;gap:6px;padding:4px;border:1px solid #c5a059;border-radius:8px;background:#fffefa }
.abt-brokerage-mode { padding:9px 16px;border-radius:5px;font-weight:700;font-size:13px;color:#7a2222;text-decoration:none }
.abt-brokerage-mode[aria-current=page] { background:#7a2222;color:white }
.abt-brokerage-mode:focus-visible { outline:3px solid #c5a059;outline-offset:3px }
.abt-brokerage-mode-notice { padding:12px;border-left:3px solid #c5a059;background:#fff9e9;font-size:13px;line-height:1.5 }
html[data-abt-brokerage-mode=synthetic] [data-testid=ibkr-dashboard] { display:none!important }
@media(max-width:600px) { .abt-brokerage-modes { margin:12px 4px }.abt-brokerage-mode { padding:9px 12px } }

.abt-synthetic-view {
  --syn-ink: #2d1a0e;
  --syn-muted: #6d6258;
  --syn-line: #ded9d1;
  --syn-paper: #f7f6f2;
  --syn-panel: #fffefa;
  --syn-gold: #c5a059;
  --syn-burgundy: #7a2222;
  --syn-green: #245a43;
  --syn-red: #8b3933;
  color: var(--syn-ink);
  background: var(--syn-paper);
  min-height: 100%;
  padding: 0 20px 32px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.abt-synthetic-view,
.abt-synthetic-view * {
  box-sizing: border-box;
}

.abt-synthetic-view button {
  font: inherit;
}

.syn-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--syn-line);
}

.syn-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.syn-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(197, 160, 89, .65);
  border-radius: 4px;
  color: var(--syn-burgundy);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.syn-bank-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .015em;
}

.syn-workspace-name {
  margin-top: 1px;
  color: var(--syn-muted);
  font-size: 11px;
}

.syn-mode-tag {
  padding: 5px 9px;
  border: 1px solid #ddc68f;
  border-radius: 3px;
  background: #fbf6e9;
  color: #72541f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.syn-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0 18px;
}

.syn-eyebrow,
.syn-kicker {
  color: #8b6b32;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.syn-title {
  margin: 5px 0 4px;
  color: var(--syn-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.syn-description {
  max-width: 680px;
  margin: 0;
  color: var(--syn-muted);
  font-size: 12px;
}

.syn-isolation {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-width: 245px;
  padding: 10px 12px;
  border: 1px solid #d9c896;
  border-left: 3px solid var(--syn-gold);
  border-radius: 3px;
  background: #fbf7eb;
}

.syn-isolation-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid #977538;
  border-radius: 50%;
}

.syn-isolation-copy {
  display: grid;
  gap: 2px;
}

.syn-isolation-copy strong {
  color: #644b20;
  font-size: 10px;
  letter-spacing: .06em;
}

.syn-isolation-copy span {
  color: #75674b;
  font-size: 9px;
  letter-spacing: .045em;
}

.syn-notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 11px;
  border: 1px solid #e2d7bb;
  border-radius: 3px;
  background: #f3eee1;
  color: #594d36;
}

.syn-notice-mark {
  display: grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #aa8b4e;
  border-radius: 50%;
  color: #755d2f;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
}

.syn-notice p {
  margin: 0;
  font-size: 11px;
}

.syn-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 10px;
}

.syn-data-stamp {
  color: var(--syn-muted);
  font-size: 11px;
  font-weight: 650;
}

.syn-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.syn-button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #cfc8bd;
  border-radius: 3px;
  background: #fffefa;
  color: #44382d;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.syn-button:hover:not(:disabled) {
  border-color: #a9977c;
  background: #f4f0e8;
}

.syn-button:active:not(:disabled) {
  transform: translateY(1px);
}

.syn-button:focus-visible {
  outline: 3px solid rgba(197, 160, 89, .45);
  outline-offset: 2px;
}

.syn-button:disabled {
  cursor: wait;
  opacity: .62;
}

.syn-button-primary {
  border-color: #702020;
  background: linear-gradient(135deg, #7a2222, #902828);
  color: #fffaf2;
}

.syn-button-primary:hover:not(:disabled) {
  border-color: #5f1919;
  background: #651c1c;
}

.syn-button-error {
  flex: 0 0 auto;
  border-color: #a95a51;
  color: #752a25;
}

.syn-feedback,
.syn-error {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 3px;
  font-size: 11px;
}

.syn-feedback {
  border: 1px solid #cddbcf;
  background: #eef5ef;
  color: #28563d;
}

.syn-feedback-warning {
  border-color: #e1d0aa;
  background: #faf4e6;
  color: #74571f;
}

.syn-feedback-info {
  border-color: #d9d2c6;
  background: #f1eee8;
  color: #554a3d;
}

.syn-verification-detail {
  display: inline-block;
  margin-top: 2px;
  color: inherit;
  font-size: 10px;
}

.syn-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e0bdb8;
  background: #fbefed;
  color: #762c27;
}

.syn-error[hidden],
.syn-feedback[hidden] {
  display: none;
}

.syn-error-copy {
  display: grid;
  gap: 2px;
}

.syn-error-copy strong {
  font-size: 11px;
}

.syn-error-copy span {
  overflow-wrap: anywhere;
}

.syn-content {
  display: grid;
  gap: 12px;
}

.syn-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--syn-line);
  border-radius: 4px;
  background: var(--syn-panel);
  box-shadow: 0 1px 2px rgba(45, 26, 14, .035);
}

.syn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  padding: 8px 12px;
  border-bottom: 1px solid #e8e2d8;
  background: linear-gradient(110deg, rgba(197, 160, 89, .09), rgba(197, 160, 89, .025));
}

.syn-panel-titles {
  min-width: 0;
}

.syn-panel-title {
  margin: 2px 0 0;
  color: var(--syn-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.syn-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.syn-metric {
  min-width: 0;
  padding: 14px 15px 13px;
  border-right: 1px solid #ebe6de;
}

.syn-metric:last-child {
  border-right: 0;
}

.syn-metric-label {
  color: var(--syn-muted);
  font-size: 10px;
  font-weight: 650;
}

.syn-metric-value {
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: #302114;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 22px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.syn-metric-detail {
  margin-top: 4px;
  color: #8a8176;
  font-size: 9px;
}

.syn-summary-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border-top: 1px solid #ebe6de;
  background: #fcfaf5;
}

.syn-lock-label {
  color: #6f5424;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
}

.syn-summary-note {
  color: #7d756a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.syn-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 12px;
}

.syn-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.syn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: left;
}

.syn-table th {
  padding: 8px 10px;
  border-bottom: 1px solid #e9e4db;
  background: #fcfaf6;
  color: #71665a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .045em;
  white-space: nowrap;
}

.syn-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0ece5;
  color: #43392f;
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}

.syn-table tbody tr:last-child td {
  border-bottom: 0;
}

.syn-table tbody tr:hover {
  background: #fcfaf5;
}

.syn-empty-cell {
  padding: 16px 10px !important;
  color: #82796e !important;
  text-align: center;
}

.syn-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 3px 13px 8px;
}

.syn-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #f0ece5;
}

.syn-count dt {
  color: var(--syn-muted);
  font-size: 10px;
}

.syn-count dd {
  margin: 0;
  color: #382b1f;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.syn-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 4px 13px 8px;
  list-style: none;
}

.syn-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-bottom: 1px solid #f0ece5;
}

.syn-check-symbol {
  flex: 0 0 auto;
  min-width: 43px;
  color: var(--syn-green);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .07em;
}

.syn-check.is-fail .syn-check-symbol {
  color: var(--syn-red);
}

.syn-check-label {
  flex: 1 1 auto;
  color: #50463b;
  font-size: 10px;
}

.syn-check-state {
  color: #6b6257;
  font-size: 9px;
  white-space: nowrap;
}

.syn-loading {
  display: grid;
  gap: 10px;
}

.syn-skeleton {
  height: 70px;
  border: 1px solid #e5dfd5;
  border-radius: 4px;
  background: linear-gradient(90deg, #eeeae2 25%, #f8f5ef 48%, #eeeae2 72%);
  background-size: 220% 100%;
  animation: syn-shimmer 1.6s ease-in-out infinite;
}

@keyframes syn-shimmer {
  to { background-position: -220% 0; }
}

@media (max-width: 800px) {
  .syn-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .syn-isolation {
    width: 100%;
  }

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

  .syn-metric:nth-child(2) {
    border-right: 0;
  }

  .syn-metric:nth-child(-n+2) {
    border-bottom: 1px solid #ebe6de;
  }

  .syn-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .abt-synthetic-view {
    padding: 0 12px 24px;
  }

  .syn-topbar {
    min-height: 52px;
  }

  .syn-intro {
    padding: 18px 0 14px;
  }

  .syn-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .syn-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .syn-actions .syn-button {
    flex: 1 1 auto;
  }

  .syn-summary-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .syn-summary-note {
    text-align: left;
  }

  .syn-check-list {
    grid-template-columns: 1fr;
  }

  .syn-panel-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abt-synthetic-view *,
  .abt-synthetic-view *::before,
  .abt-synthetic-view *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
