:root {
  color-scheme: light;
  --ink: #121826;
  --ink-soft: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e3e8ef;
  --line-strong: #cfd7e3;
  --canvas: #f4f6f9;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --sidebar: #0d1726;
  --sidebar-soft: #172337;
  --sidebar-line: rgb(255 255 255 / 9%);
  --blue: #3157d5;
  --blue-dark: #2444b4;
  --blue-soft: #eef2ff;
  --teal: #087f72;
  --teal-soft: #e9f8f5;
  --green: #087f5b;
  --green-soft: #e9f7f1;
  --amber: #a15c00;
  --amber-soft: #fff6dc;
  --red: #b42318;
  --red-soft: #fff1f0;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 4%), 0 4px 12px rgb(16 24 40 / 4%);
  --shadow-md: 0 12px 30px rgb(16 24 40 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  min-width: 1000px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
summary,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
summary:focus-visible,
.library-item:focus-visible,
.welcome-card:focus-visible {
  outline: 3px solid rgb(49 87 213 / 22%);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  height: 100vh;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 16px 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% -5%, rgb(81 105 239 / 22%), transparent 19rem),
    var(--sidebar);
  border-right: 1px solid #111e30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 20px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #5471ed, #2f4bc3);
  box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
}

.brand-mark svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.brand span {
  margin-top: 3px;
  color: #93a3ba;
  font-size: 11px;
}

.add-report-button,
.hero-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-weight: 720;
}

.add-report-button {
  min-height: 44px;
  gap: 9px;
  padding: 0 16px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #4968e8, #3153cf);
  box-shadow: 0 8px 20px rgb(17 36 103 / 36%);
  font-size: 13px;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.add-report-button:hover,
.hero-button:hover {
  background: linear-gradient(135deg, #5875ed, #3b5cd7);
}

.add-report-button:hover {
  box-shadow: 0 10px 24px rgb(17 36 103 / 42%);
  transform: translateY(-1px);
}

.add-report-button svg,
.hero-button svg,
.outline-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 6px 10px;
}

.section-label {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 790;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.library-heading .section-label {
  color: #7587a1;
}

.library-heading h2 {
  margin: 3px 0 0;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.count-badge {
  display: inline-grid;
  min-width: 25px;
  height: 23px;
  place-items: center;
  padding: 0 7px;
  border: 1px solid var(--sidebar-line);
  border-radius: 999px;
  color: #a7b4c7;
  background: rgb(255 255 255 / 5%);
  font-size: 10px;
  font-weight: 760;
}

.search-box {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 11px;
  border: 1px solid var(--sidebar-line);
  border-radius: 10px;
  background: rgb(255 255 255 / 5%);
}

.search-box:focus-within {
  border-color: rgb(112 138 255 / 52%);
  box-shadow: 0 0 0 3px rgb(84 113 237 / 12%);
}

.search-box svg {
  width: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8292aa;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #e9eef6;
  background: transparent;
  font-size: 11px;
}

.search-box input::placeholder {
  color: #75849a;
}

.report-library {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0 -4px;
  padding: 0 4px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #344156 transparent;
}

.report-library::-webkit-scrollbar,
.workspace::-webkit-scrollbar,
.source-table-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.report-library::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #35435a;
  background-clip: padding-box;
}

.workspace::-webkit-scrollbar-thumb,
.source-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #c4ccd8;
  background-clip: padding-box;
}

.library-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 7px 8px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #dce5f1;
  background: transparent;
  text-align: left;
  transition: border-color 130ms ease, background 130ms ease, transform 130ms ease;
}

.library-item:hover {
  background: rgb(255 255 255 / 5%);
}

.library-item.active {
  border-color: rgb(105 130 242 / 24%);
  background: linear-gradient(100deg, rgb(77 104 228 / 22%), rgb(77 104 228 / 8%));
}

.library-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 10px;
  color: #cfd9ff;
  background: #24314a;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.library-item.active .library-avatar {
  color: #fff;
  background: #415fd4;
}

.library-item-copy {
  min-width: 0;
}

.library-item-title,
.library-item-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item-title {
  font-size: 12px;
  font-weight: 700;
}

.library-item-meta {
  margin-top: 4px;
  color: #8292a9;
  font-size: 10px;
}

.library-remove {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #8797ad;
  background: transparent;
  opacity: 0;
}

.library-item:hover .library-remove,
.library-item:focus-within .library-remove {
  opacity: 1;
}

.library-remove:hover {
  color: #ffb4ad;
  background: rgb(225 67 56 / 15%);
}

.library-remove svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.library-empty {
  margin-top: 8px;
  padding: 22px 14px;
  border: 1px dashed var(--sidebar-line);
  border-radius: 12px;
  color: #7f8fa6;
  text-align: center;
}

.library-empty-icon {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 9px;
  color: #a9b7ca;
  background: rgb(255 255 255 / 6%);
  font-size: 9px;
  font-weight: 840;
}

.library-empty strong,
.library-empty span {
  display: block;
}

.library-empty strong {
  color: #b6c2d2;
  font-size: 11px;
}

.library-empty span {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.45;
}

.storage-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
  padding: 13px 10px 2px;
  border-top: 1px solid var(--sidebar-line);
}

.storage-note svg {
  width: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: #71839c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.storage-note strong,
.storage-note span {
  display: block;
}

.storage-note strong {
  color: #aebccd;
  font-size: 10px;
}

.storage-note span {
  margin-top: 3px;
  color: #718198;
  font-size: 9px;
  line-height: 1.45;
}

.workspace {
  position: relative;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 92% -8%, rgb(79 104 230 / 8%), transparent 28rem),
    var(--canvas);
  scroll-behavior: smooth;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 30px;
  border-bottom: 1px solid rgb(207 215 227 / 72%);
  background: rgb(244 246 249 / 91%);
  backdrop-filter: blur(18px);
}

.top-title {
  min-width: 0;
}

.top-title h1 {
  margin: 4px 0 0;
  overflow: hidden;
  color: #111c31;
  font-size: 19px;
  font-weight: 730;
  letter-spacing: -0.028em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.outline-button {
  min-height: 36px;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
  font-size: 11px;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.outline-button:hover {
  border-color: #b4c1d4;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 4px 12px rgb(16 24 40 / 7%);
}

.outline-button.compact {
  flex: 0 0 auto;
}

.status-pill,
.coverage-pill {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgb(255 255 255 / 72%);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.status-pill.busy {
  border-color: #cfd8ff;
  color: var(--blue);
  background: var(--blue-soft);
}

.status-pill.error,
.coverage-pill.danger {
  border-color: #f0bbb6;
  color: var(--red);
  background: var(--red-soft);
}

.coverage-pill.complete {
  border-color: #b9e4d2;
  color: var(--green);
  background: var(--green-soft);
}

.coverage-pill.warning {
  border-color: #efd59b;
  color: var(--amber);
  background: var(--amber-soft);
}

.action-menu {
  position: relative;
}

.action-menu > summary {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.action-menu > summary::-webkit-details-marker {
  display: none;
}

.action-menu > summary svg {
  width: 18px;
  fill: currentColor;
}

.action-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(16 24 40 / 16%);
}

.action-menu-popover button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  text-align: left;
}

.action-menu-popover button:hover {
  background: var(--panel-soft);
}

.action-menu-popover .danger-action {
  color: var(--red);
}

.empty-state {
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto;
  padding: clamp(42px, 7vh, 82px) 0 52px;
}

.welcome-card {
  position: relative;
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 25px;
  background:
    radial-gradient(circle at 92% 4%, rgb(76 104 230 / 11%), transparent 25rem),
    #fff;
  box-shadow: 0 18px 55px rgb(16 24 40 / 9%);
  outline: none;
}

.welcome-card:focus-visible,
.welcome-card.dragging {
  border-color: #748cf1;
  box-shadow: 0 0 0 4px rgb(77 104 228 / 12%), 0 18px 55px rgb(16 24 40 / 9%);
}

.welcome-copy {
  position: relative;
  z-index: 1;
  padding: 54px 30px 54px 54px;
}

.welcome-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d8dfff;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.welcome-copy h2 {
  max-width: 600px;
  margin: 18px 0 0;
  color: #101b30;
  font-size: clamp(36px, 3.2vw, 50px);
  line-height: 1.03;
  letter-spacing: -0.052em;
}

.welcome-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero-button {
  min-height: 43px;
  gap: 8px;
  margin-top: 26px;
  padding: 0 17px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #4968e8, #3153cf);
  box-shadow: 0 8px 18px rgb(49 83 207 / 24%);
  font-size: 12px;
}

.drop-hint {
  margin-left: 12px;
  color: var(--faint);
  font-size: 10px;
}

.document-preview {
  position: relative;
  min-height: 390px;
  align-self: end;
}

.preview-sheet {
  position: absolute;
  width: 330px;
  height: 390px;
  border: 1px solid #dce3ed;
  border-radius: 17px 17px 0 0;
  background: #fff;
  box-shadow: 0 24px 50px rgb(16 24 40 / 14%);
}

.preview-sheet-back {
  right: 10px;
  bottom: -28px;
  transform: rotate(7deg);
  background: #ecf0fa;
}

.preview-sheet-front {
  right: 46px;
  bottom: -50px;
  padding: 28px;
  transform: rotate(-2deg);
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  color: #3153cf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-topline b {
  color: #ef9d00;
  letter-spacing: 0;
}

.preview-title-line {
  width: 76%;
  height: 18px;
  margin-top: 18px;
  border-radius: 5px;
  background: #16223a;
}

.preview-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.preview-values span {
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(#e8edf5 28%, #f6f8fb 28%);
}

.preview-chart {
  margin-top: 24px;
  padding: 10px;
  border: 1px solid #ebeff5;
  border-radius: 9px;
}

.preview-chart path {
  fill: none;
  stroke: #4161dc;
  stroke-width: 2.2;
}

.preview-chart .chart-fill {
  fill: rgb(65 97 220 / 9%);
  stroke: none;
}

.preview-rows {
  display: grid;
  gap: 9px;
  margin-top: 19px;
}

.preview-rows i {
  height: 9px;
  border-radius: 3px;
  background: #edf1f6;
}

.preview-rows i:nth-child(2) {
  width: 88%;
}

.preview-rows i:nth-child(3) {
  width: 95%;
}

.preview-rows i:nth-child(4) {
  width: 71%;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.how-it-works article {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 70%);
}

.how-it-works article > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 820;
}

.how-it-works strong {
  color: var(--ink-soft);
  font-size: 11px;
}

.how-it-works p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.report-view {
  display: grid;
  width: min(1320px, calc(100% - 56px));
  gap: 18px;
  margin: 0 auto;
  padding: 26px 0 48px;
}

.report-hero,
.content-block {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.content-block {
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.report-hero {
  overflow: hidden;
}

.identity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 20px;
}

.company-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.ticker-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #182946, #3157d5);
  box-shadow: 0 8px 18px rgb(32 59 138 / 18%);
  font-size: 14px;
  font-weight: 830;
  letter-spacing: -0.025em;
}

.company-identity h2 {
  margin: 5px 0 0;
  color: #101b30;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.muted-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.rating-stack {
  flex: 0 0 auto;
  padding-top: 3px;
  text-align: right;
}

.rating-stack > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  text-transform: uppercase;
}

.star-rating {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 7px;
  color: #d7dde6;
  font-size: 22px;
  line-height: 1;
}

.star-rating .filled {
  color: #f2a100;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.snapshot-card {
  min-width: 0;
  padding: 18px 20px;
  background: #f9fafc;
}

.snapshot-card > span,
.snapshot-card > strong,
.snapshot-card > small {
  display: block;
}

.snapshot-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
}

.snapshot-card > strong {
  margin-top: 8px;
  overflow: hidden;
  color: #17223a;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-card > small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-snapshot {
  background: #f4f6ff;
}

.fair-value-snapshot {
  background: #edf8f6;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 17px 20px 15px;
  background: #fff;
}

.fact-card {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.fact-card:last-child {
  border-right: 0;
}

.fact-label,
.fact-value {
  display: block;
}

.fact-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 690;
}

.fact-value {
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 730;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.fact-card.missing .fact-value {
  color: var(--faint);
  font-weight: 600;
}

.source-note {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.45;
}

.section-nav {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(255 255 255 / 91%);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.section-nav button {
  min-height: 31px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 690;
  transition: color 120ms ease, background 120ms ease;
}

.section-nav button:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.content-block {
  padding: 22px;
  scroll-margin-top: 130px;
}

.section-title-row,
.source-table-top,
.quality-block > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-title-row h2,
.quality-block h2 {
  margin: 5px 0 0;
  color: #131f35;
  font-size: 20px;
  letter-spacing: -0.032em;
}

.priority-block {
  border-color: #d9e0f8;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 98%), rgb(249 250 255 / 98%)),
    #fff;
}

.priority-grid {
  display: block;
  overflow: hidden;
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}

.priority-card {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.priority-card h3 {
  margin: 0;
  color: #18243b;
  font-size: 13px;
  letter-spacing: -0.015em;
}

.empty-priority {
  grid-column: auto;
  padding: 22px;
}

.empty-priority p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.compact-model-table,
.source-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.compact-model-table th,
.compact-model-table td,
.source-table th,
.source-table td {
  border-top: 1px solid var(--line);
  padding: 9px 10px;
  text-align: right;
  vertical-align: top;
}

.compact-model-table th:first-child,
.source-table th:first-child {
  text-align: left;
}

.compact-model-table thead th,
.source-table thead th {
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.compact-model-table tbody th,
.source-table tbody th {
  color: var(--ink-soft);
  font-weight: 670;
}

.compact-model-table td,
.source-table td {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 660;
}

.key-metric-group + .key-metric-group {
  border-top: 1px solid var(--line-strong);
}

.key-group-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 15px 9px 13px;
  border-left: 3px solid #7d8999;
  background: #f7f9fb;
}

.key-group-copy,
.key-group-copy strong,
.key-group-copy small {
  display: block;
}

.key-group-copy strong {
  color: #1a2942;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.key-group-copy small {
  margin-top: 3px;
  color: #7c8797;
  font-size: 9px;
  font-weight: 560;
  line-height: 1.35;
}

.key-group-count,
.revision-count {
  display: inline-flex;
  min-height: 23px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #dce2eb;
  border-radius: 999px;
  color: #7a8798;
  background: #fff;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.025em;
}

.key-metrics-table-scroll,
.revision-table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c6ced9 #f4f6f8;
}

.key-metrics-table-scroll::-webkit-scrollbar,
.revision-table-scroll::-webkit-scrollbar {
  height: 9px;
}

.key-metrics-table-scroll::-webkit-scrollbar-track,
.revision-table-scroll::-webkit-scrollbar-track {
  background: #f4f6f8;
}

.key-metrics-table-scroll::-webkit-scrollbar-thumb,
.revision-table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #f4f6f8;
  border-radius: 999px;
  background: #c6ced9;
}

.key-metrics-table {
  min-width: calc(230px + (var(--period-count) * 76px));
}

.key-metrics-table thead th {
  height: 52px;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  color: #596579;
  background: #fafbfd;
  vertical-align: middle;
}

.key-metrics-table .metric-name-header,
.key-metrics-table .metric-name-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  border-right: 1px solid var(--line-strong);
  background: #fff;
}

.key-metrics-table thead .metric-name-header {
  z-index: 3;
  color: #3d4a5f;
  background: #f7f9fb;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.key-metrics-table .metric-data-column {
  min-width: 76px;
}

.metric-period,
.metric-period-label {
  display: block;
}

.metric-period {
  color: #26344d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.metric-period-label {
  margin-top: 3px;
  color: #8a94a3;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 7px;
  font-weight: 740;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.key-metrics-table .forecast-column,
.revision-table .revision-current-column {
  background: #f7f8fa;
}

.key-metrics-table .summary-column {
  background: #fbfbfc;
}

.key-metrics-table .forecast-start,
.revision-table .revision-first-year {
  border-left: 2px solid #aeb8c6;
}

.key-metric-row th,
.key-metric-row td {
  height: 40px;
  padding: 9px;
  border-top: 1px solid #edf0f4;
  vertical-align: middle;
}

.key-metric-row .metric-name-cell {
  color: #364357;
  font-size: 10px;
  font-weight: 670;
}

.key-metric-row .forecast-column {
  font-weight: 700;
}

.key-metric-row:hover th,
.key-metric-row:hover td {
  background: #f6f8fa;
}

.key-metric-row:hover .forecast-column {
  background: #f1f3f6;
}

.forecast-revisions-panel {
  border-top: 1px solid var(--line-strong);
  background: #fff;
}

.forecast-revisions-heading {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border-left: 3px solid #7d8999;
  background: #f7f9fb;
}

.forecast-revisions-heading h3 {
  margin: 0;
  color: #17263f;
  font-size: 12px;
  letter-spacing: -0.012em;
}

.forecast-revisions-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.revision-table {
  min-width: calc(230px + (var(--revision-year-count) * 152px));
}

.revision-table .revision-metric-column {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  border-right: 1px solid var(--line-strong);
  background: #fff;
}

.revision-table thead .revision-metric-column {
  z-index: 3;
  background: #f7f9fb;
}

.revision-table .revision-current-column,
.revision-table .revision-prior-column {
  width: 76px;
  min-width: 76px;
}

.revision-table thead th {
  padding: 8px 9px;
  color: #697587;
  background: #f7f9fb;
  text-align: center;
}

.revision-table thead .revision-current-column,
.revision-table thead .revision-prior-column {
  color: #7c8797;
  font-size: 7px;
  letter-spacing: 0.05em;
}

.revision-table th,
.revision-table td {
  padding: 9px;
  vertical-align: middle;
}

.revision-table tbody .revision-current-column {
  font-weight: 700;
}

.revision-table tbody tr:hover th,
.revision-table tbody tr:hover td {
  background: #f6f8fa;
}

.revision-table tbody tr:hover .revision-current-column {
  background: #f1f3f6;
}

.missing-value,
.muted-cell {
  color: var(--faint);
}

.source-jump-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
  font-weight: 690;
}

.priority-grid > .source-jump-row {
  background: #f8fafc;
}

.tiny-link-button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d8dff7;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 740;
}

.tiny-link-button:hover {
  border-color: #b9c5f4;
  background: #e5eaff;
}

.sections-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.summary-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.summary-card:hover {
  border-color: #cdd6e4;
}

.summary-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 15px;
  cursor: pointer;
  list-style: none;
}

.summary-card > summary::-webkit-details-marker,
.quality-block > summary::-webkit-details-marker {
  display: none;
}

.summary-card[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.summary-card[open] {
  border-color: #d3dbe7;
  box-shadow: 0 5px 16px rgb(16 24 40 / 4%);
}

.summary-card h3 {
  margin: 0;
  color: #18243b;
  font-size: 13px;
}

.summary-source {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
}

.summary-card b {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  line-height: 1;
  transition: transform 140ms ease;
}

.summary-card[open] b {
  transform: rotate(45deg);
}

.summary-content {
  padding: 5px 18px 16px;
  color: var(--ink-soft);
  font-size: 11px;
}

.summary-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 17px;
}

.summary-content li {
  line-height: 1.55;
}

.table-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.tab-button {
  display: grid;
  gap: 2px;
  min-height: 43px;
  min-width: 108px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  text-align: left;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.tab-button strong {
  font-size: 10px;
}

.tab-button span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 660;
}

.tab-button:hover {
  border-color: #c2ccef;
  background: #fafbff;
}

.tab-button.active {
  border-color: #b8c4f2;
  color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 3px 10px rgb(52 81 207 / 8%);
}

.source-table-card {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(16 24 40 / 4%);
}

.source-table-top {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.source-table-top h3 {
  margin: 0;
  color: #18243b;
  font-size: 13px;
}

.source-table-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.source-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.source-table {
  min-width: 900px;
}

.source-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.sticky-metric {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 235px;
  background: #fff;
}

.source-table thead .sticky-metric {
  z-index: 3;
  background: var(--panel-soft);
}

.source-table tbody tr:hover th,
.source-table tbody tr:hover td {
  background: #fafbfe;
}

.source-table tbody tr:hover .forecast-col {
  background: #eff2ff;
}

.forecast-col {
  background: #f5f7ff;
}

.period-chip {
  display: inline-flex;
  margin-right: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--blue);
  background: #e9edff;
  font-size: 7px;
}

.priority-source-row th,
.priority-source-row td {
  background: #fffaf0;
}

.priority-source-row .sticky-metric {
  background: #fff5d8;
}

.priority-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 7px;
  font-weight: 810;
}

.quality-block {
  padding: 0;
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}

.quality-block > summary {
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
}

.quality-block[open] > summary {
  border-bottom: 1px solid var(--line);
}

.quality-detail {
  padding: 18px 22px 22px;
}

.quality-explainer {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.quality-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.quality-card,
.integrity-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.quality-card h3,
.integrity-list h3 {
  margin: 0 0 8px;
  color: #18243b;
  font-size: 11px;
}

.quality-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 10px;
}

.integrity-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.integrity-item strong {
  color: #18243b;
  font-size: 11px;
}

.integrity-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.drop-overlay {
  position: fixed;
  inset: 16px;
  z-index: 100;
  display: grid;
  place-items: center;
  border: 2px dashed #6f89ef;
  border-radius: 22px;
  background: rgb(238 242 255 / 94%);
  backdrop-filter: blur(12px);
}

.drop-overlay > div {
  text-align: center;
}

.drop-overlay span {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 15px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 840;
}

.drop-overlay strong,
.drop-overlay small {
  display: block;
}

.drop-overlay strong {
  color: #17223a;
  font-size: 19px;
}

.drop-overlay small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 22px;
  z-index: 110;
  max-width: 360px;
  padding: 11px 14px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  color: #fff;
  background: #18243b;
  box-shadow: 0 14px 34px rgb(16 24 40 / 24%);
  font-size: 11px;
  font-weight: 680;
}

@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 262px minmax(0, 1fr);
  }

  .welcome-card {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .welcome-copy {
    padding-left: 40px;
  }

  .preview-sheet-front {
    right: 25px;
  }

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

  .facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fact-card:nth-child(3) {
    border-right: 0;
  }
}

@media (max-width: 1080px) {
  .welcome-card {
    grid-template-columns: 1fr;
  }

  .document-preview {
    display: none;
  }

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

/* Restrained application state: practical controls without landing-page artwork. */
.empty-state {
  display: grid;
  width: calc(100% - 56px);
  min-height: calc(100vh - 76px);
  max-width: none;
  place-items: center;
  padding: 42px 0;
}

.welcome-card {
  display: block;
  width: min(560px, 100%);
  min-height: 0;
  padding: 44px 48px 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.welcome-card:hover {
  border-color: #cad4e5;
}

.welcome-copy {
  padding: 0;
}

.empty-file-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid #d8dff8;
  border-radius: 13px;
  color: var(--blue);
  background: var(--blue-soft);
}

.empty-file-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.welcome-copy .section-label {
  text-align: center;
}

.welcome-copy h2 {
  margin: 9px 0 0;
  color: #101b30;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.welcome-copy > p:not(.empty-library-note) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hero-button {
  margin-top: 22px;
}

.file-constraints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 22px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.file-constraints span {
  display: inline-flex;
  align-items: center;
}

.file-constraints span + span::before {
  width: 3px;
  height: 3px;
  margin: 0 9px;
  border-radius: 999px;
  background: #b6c0cf;
  content: "";
}

.empty-library-note {
  margin: 24px -48px -36px !important;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  background: var(--panel-soft);
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.storage-note span,
.source-note,
.section-nav button {
  font-size: 10px;
}

.fact-label {
  font-size: 10px;
}

.fact-value {
  font-size: 13px;
}

.compact-model-table,
.source-table {
  font-size: 11px;
}

.compact-model-table thead th,
.source-table thead th {
  font-size: 9px;
}

@media (max-width: 1080px) {
  .welcome-card {
    grid-template-columns: none;
  }
}

/* Provider selection and dual-provider desktop workflow */
.provider-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.provider-choice {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.provider-choice:hover {
  border-color: #bdc9dc;
  background: #fff;
  box-shadow: 0 8px 22px rgb(16 24 40 / 7%);
  transform: translateY(-1px);
}

.provider-choice-badge,
.provider-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  font-weight: 900;
}

.provider-choice-badge {
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(145deg, #4266df, #2746b8);
}

.provider-choice-argus .provider-choice-badge,
.argus-logo {
  background: linear-gradient(145deg, #8f3326, #652319);
}

.provider-choice strong,
.provider-choice small {
  display: block;
}

.provider-choice strong {
  font-size: 13px;
}

.provider-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.library-item-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.library-provider-tag {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.library-provider-tag.is-morningstar {
  color: #3550b7;
  background: #edf1ff;
}

.library-provider-tag.is-argus {
  color: #8a2b20;
  background: #fff0ee;
}

.provider-dialog {
  width: min(640px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 24px 70px rgb(15 23 42 / 30%);
}

.provider-dialog::backdrop {
  background: rgb(12 20 33 / 54%);
  backdrop-filter: blur(4px);
}

.provider-dialog-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.provider-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.provider-dialog-head h2 {
  margin: 6px 0 0;
  font-size: 23px;
  letter-spacing: -.03em;
}

.provider-dialog-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 22px;
  line-height: 1;
}

.provider-dialog-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.provider-dialog-option {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
}

.provider-dialog-option:hover {
  border-color: #bac7d9;
  background: #fff;
  box-shadow: 0 8px 20px rgb(16 24 40 / 7%);
}

.provider-logo {
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(145deg, #4266df, #2746b8);
  font-size: 17px;
}

.provider-dialog-option strong,
.provider-dialog-option small {
  display: block;
}

.provider-dialog-option strong {
  font-size: 14px;
}

.provider-dialog-option small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.provider-dialog-note {
  margin: 18px 0 0;
  padding: 12px 13px;
  border: 1px solid #e0e5ec;
  border-radius: 10px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 10px;
  line-height: 1.5;
}

.argus-report-view {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

/* Shared primitives used by the Argus report view. */
.argus-report h1,
.argus-report h2,
.argus-report h3,
.argus-report p { margin: 0; }

.provider-badge,
.source-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.provider-badge {
  padding: 6px 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.source-label,
.section-kicker { color: var(--muted); }

.quiet-button,
.primary-button {
  min-height: 39px;
  border-radius: 9px;
  font-weight: 730;
}

.quiet-button {
  padding: 0 13px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: transparent;
}

.quiet-button:hover {
  border-color: var(--line);
  background: var(--panel-soft);
}

.primary-button {
  padding: 0 17px;
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 5px 13px rgb(49 87 213 / 18%);
}

.report-tools {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.report-tools > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.report-tools > summary::-webkit-details-marker { display: none; }
.report-tools > summary > div { display: grid; gap: 3px; }
.report-tools-summary { color: var(--muted); font-size: 10px; }
.report-tools-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 16px; }

.disclaimer {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 10px;
  line-height: 1.55;
}
.argus-report {
  display: grid;
  gap: 18px;
}

.argus-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.argus-hero-copy,
.argus-latest-card,
.argus-target-section,
.argus-section,
.argus-quality-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgb(16 24 40 / 5%);
}

.argus-hero-copy {
  padding: 30px 32px;
}

.argus-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.argus-provider-badge {
  color: #7a271a;
  background: #fef3f2;
}

.argus-report-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.argus-report-stamps span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 700;
}

.argus-latest-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #143b56, #0d2236);
  box-shadow: 0 16px 42px rgb(13 34 54 / 18%);
}

.argus-card-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.argus-latest-card .argus-card-label { color: #c8d9e7; }
.argus-latest-card strong { margin-top: 8px; font-size: 38px; letter-spacing: -.04em; }
.argus-latest-card p { margin-top: 7px; color: #c8d9e7; font-size: 11px; }

.argus-target-section { padding: 20px; }

.argus-target-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 2px 15px;
}

.argus-target-heading > div {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.argus-target-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.argus-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.argus-target-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-soft);
}

.argus-target-card-top,
.argus-option-head,
.argus-card-title-row,
.argus-section-heading,
.argus-table-details > summary,
.argus-narrative-card > summary,
.argus-sector-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.argus-target-type {
  font-size: 12px;
  font-weight: 850;
}

.argus-source-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #d6dde6;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.argus-target-main {
  display: grid;
  grid-template-columns: .8fr 1fr 1.25fr;
  gap: 14px;
  margin-top: 17px;
}

.argus-target-main > div {
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.argus-target-main > div:last-child { border-right: 0; padding-right: 0; }
.argus-target-main small,
.argus-kv small { display: block; color: var(--muted); font-size: 10px; }
.argus-target-main strong { display: block; margin-top: 5px; font-size: 22px; letter-spacing: -.025em; }
.argus-rating { width: fit-content; padding: 4px 8px; border-radius: 7px; font-size: 14px !important; }
.argus-rating-buy { color: var(--green); background: var(--green-soft); }
.argus-rating-hold { color: var(--amber); background: var(--amber-soft); }
.argus-rating-sell { color: var(--red); background: var(--red-soft); }
.argus-target-sub { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 15px; color: var(--muted); font-size: 10px; }

.argus-nav {
  position: sticky;
  z-index: 6;
  top: 10px;
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 8px 26px rgb(16 24 40 / 6%);
  backdrop-filter: blur(10px);
}

.argus-nav a {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 780;
  text-decoration: none;
}

.argus-nav a:hover { background: var(--panel-soft); }
.argus-nav .argus-nav-primary { color: #fff; background: #124764; }

.argus-section { padding: 27px; scroll-margin-top: 72px; }
.argus-priority-section { border-color: #c5d7e7; background: linear-gradient(180deg, #f7fbff, #fff 34%); }
.argus-section-heading { align-items: flex-start; margin-bottom: 20px; }
.argus-section-heading h2 { margin-top: 4px; font-size: 24px; letter-spacing: -.025em; }
.argus-section-heading .section-description { max-width: 760px; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.argus-kv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.argus-kv {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.argus-kv strong { display: block; margin-top: 7px; font-size: 18px; letter-spacing: -.02em; }
.argus-kv-emphasis { color: var(--green); }
.argus-kv span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.argus-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.argus-forecast-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #d5e2ed;
  border-radius: 13px;
  background: #fff;
}

.argus-forecast-card > strong { margin-top: 12px; font-size: 26px; letter-spacing: -.035em; }
.argus-forecast-card p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.argus-forecast-card .argus-source-pill { margin-top: auto; align-self: flex-start; }
.argus-empty-note { color: var(--muted); font-size: 12px; }

.argus-notes-card,
.argus-options-summary {
  padding: 18px;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  background: #f8fbfd;
}

.argus-card-title-row > div { font-size: 13px; font-weight: 850; }
.argus-highlight-list { display: grid; gap: 9px; margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.58; }
.argus-highlight-list li::marker { color: #286482; }

.argus-narrative-grid,
.argus-source-table-list { display: grid; gap: 10px; margin-top: 12px; }

.argus-narrative-card,
.argus-table-details,
.argus-sector-details,
.argus-strategy-compare,
.argus-option-risk {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.argus-narrative-card > summary,
.argus-table-details > summary,
.argus-sector-details > summary,
.argus-strategy-compare > summary,
.argus-option-risk > summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.argus-narrative-card > summary::-webkit-details-marker,
.argus-table-details > summary::-webkit-details-marker,
.argus-sector-details > summary::-webkit-details-marker,
.argus-strategy-compare > summary::-webkit-details-marker,
.argus-option-risk > summary::-webkit-details-marker { display: none; }

.argus-narrative-card > summary > div { display: grid; gap: 3px; }
.argus-narrative-card > summary span { color: var(--muted); font-size: 10px; }
.argus-narrative-body { padding: 0 17px 17px; border-top: 1px solid var(--line); }
.argus-source-text { margin-top: 14px; }
.argus-source-text summary { cursor: pointer; color: #245873; font-size: 11px; font-weight: 750; }
.argus-source-text p,
.argus-source-block { margin-top: 10px; white-space: pre-wrap; color: var(--ink-soft); font-size: 11px; line-height: 1.62; }

.argus-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.argus-score-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.argus-score-card > strong { margin-left: 8px; font-size: 12px; }
.argus-score-card p { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.argus-score { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 900; }
.argus-score-h { color: #057a55; background: #dcfae6; }
.argus-score-m { color: #93370d; background: #fef0c7; }
.argus-score-l { color: #b42318; background: #fee4e2; }
.argus-score-- { color: var(--muted); background: #eaecf0; }

.argus-subsection { margin-top: 24px; }
.argus-subsection h3 { font-size: 16px; }
.argus-subsection > .section-description { margin-top: 5px; color: var(--muted); font-size: 11px; }
.argus-sector-details { margin-top: 18px; }
.argus-sector-details > summary > div { font-size: 12px; font-weight: 830; }
.argus-sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 15px 15px; border-top: 1px solid var(--line); }
.argus-sector-card { padding: 14px; border-radius: 10px; background: var(--panel-soft); }
.argus-sector-card h3 { font-size: 12px; }
.argus-sector-card .argus-highlight-list { font-size: 10px; }

.argus-table-wrap { overflow-x: auto; }
.argus-data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 10.5px; }
.argus-data-table th,
.argus-data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.argus-data-table thead th { position: sticky; top: 0; color: var(--muted); background: #f8fafc; font-size: 9px; text-transform: uppercase; }
.argus-data-table th:first-child { position: sticky; left: 0; z-index: 2; min-width: 185px; text-align: left; background: #fff; }
.argus-data-table thead th:first-child { z-index: 3; background: #f8fafc; }
.argus-table-details > summary > div { display: grid; gap: 3px; }
.argus-table-details > summary span { color: var(--muted); font-size: 10px; }

.argus-options-section { border-color: #ccd9e7; }
.argus-options-summary h3 { font-size: 13px; }
.argus-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.argus-option-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.argus-option-head h3 { margin-top: 3px; font-size: 18px; }
.argus-option-leg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.argus-option-leg-grid .argus-kv { min-height: 68px; padding: 10px; background: #fff; }
.argus-option-leg-grid .argus-kv strong { font-size: 13px; }
.argus-option-metrics { display: grid; gap: 0; margin-top: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.argus-option-metrics > div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 10px; }
.argus-option-metrics > div:last-child { border-bottom: 0; }
.argus-option-metrics span { color: var(--muted); }
.argus-option-risk { margin-top: 10px; }
.argus-option-risk p { padding: 0 13px 13px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.argus-strategy-compare { margin-top: 11px; }
.argus-strategy-compare > summary { font-size: 11px; font-weight: 780; }
.argus-strategy-compare .argus-source-block { margin: 0; padding: 0 16px 16px; }

.argus-quality-panel { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 22px; align-items: center; }
.argus-quality-panel h2 { margin-top: 4px; font-size: 18px; }
.argus-quality-panel p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.argus-quality-score { display: grid; text-align: right; }
.argus-quality-score strong { font-size: 28px; }
.argus-quality-score span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.argus-check-grid { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.argus-check-grid span { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.argus-check-pass { color: var(--green); background: var(--green-soft); }
.argus-check-missing { color: var(--amber); background: var(--amber-soft); }
.argus-tools { margin-top: 0; }
.argus-disclaimer { margin-top: 0; }

@media (max-width: 900px) {
  .argus-hero { grid-template-columns: 1fr; }
  .argus-target-grid,
  .argus-option-grid { grid-template-columns: 1fr; }
  .argus-kv-grid,
  .argus-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .argus-score-grid,
  .argus-sector-grid { grid-template-columns: 1fr; }
  .argus-nav { overflow-x: auto; }
}

@media (max-width: 620px) {
  .argus-hero-copy,
  .argus-section { padding: 19px; }
  .argus-target-main { grid-template-columns: 1fr 1fr; }
  .argus-target-main > div { border-right: 0; }
  .argus-kv-grid,
  .argus-forecast-grid { grid-template-columns: 1fr; }
  .argus-target-heading { align-items: flex-start; flex-direction: column; }
  .argus-target-heading p { text-align: left; }
}

@media print {
  .argus-nav,
  .argus-tools { display: none !important; }
  .argus-report { gap: 12px; }
  .argus-hero-copy,
  .argus-latest-card,
  .argus-target-section,
  .argus-section,
  .argus-quality-panel { box-shadow: none; break-inside: avoid; }
  .argus-table-details { break-inside: auto; }
  .argus-table-details:not([open]) > *:not(summary) { display: block; }
}

.argus-forecast-trend {
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid #d5e2ed;
  border-radius: 13px;
  background: #fff;
}
.argus-forecast-trend h3,
.argus-subsection-title h3 { font-size: 14px; }
.argus-forecast-trend .argus-table-wrap { margin-top: 10px; }
.argus-quarterly-details {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #d5e2ed;
  border-radius: 13px;
  background: #fff;
}
.argus-quarterly-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
}
.argus-quarterly-details > summary::-webkit-details-marker { display: none; }
.argus-subsection-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 10px;
}
.argus-subsection-title p { color: var(--muted); font-size: 10px; }
.argus-a6-kv-grid { margin-top: 12px; }

@media (max-width: 1080px) {
  .provider-choice-grid,
  .provider-dialog-options { grid-template-columns: 1fr; }
  .argus-kv-grid,
  .argus-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v2.6 provider workflow and report-source clarity */
.provider-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.provider-shortcut {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid var(--sidebar-line);
  border-radius: 9px;
  color: #afbdd0;
  background: rgb(255 255 255 / 4%);
  font-size: 9px;
  font-weight: 760;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.provider-shortcut:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 8%);
}

.provider-shortcut > span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #405dc8;
  font-size: 8px;
  font-weight: 900;
}

.provider-shortcut.is-argus > span { background: #87372c; }

.library-provider-filter {
  display: grid;
  grid-template-columns: .65fr 1.35fr .8fr;
  gap: 4px;
  margin: -2px 0 10px;
  padding: 3px;
  border: 1px solid var(--sidebar-line);
  border-radius: 9px;
  background: rgb(255 255 255 / 3%);
}

.library-provider-filter button {
  min-width: 0;
  min-height: 27px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  color: #7f90a8;
  background: transparent;
  font-size: 8px;
  font-weight: 760;
}

.library-provider-filter button:hover { color: #d7dfeb; }
.library-provider-filter button.active {
  color: #fff;
  background: #26344a;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 5%);
}

.empty-state { width: calc(100% - 64px); }
.welcome-card {
  width: min(760px, 100%);
  padding: 42px 44px 34px;
}

.provider-choice-grid { gap: 14px; margin-top: 26px; }
.provider-choice {
  position: relative;
  min-height: 142px;
  align-items: flex-start;
  padding: 19px 18px;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.provider-choice:hover { transform: translateY(-2px); }
.provider-choice-morningstar:hover { border-color: #aebcf4; }
.provider-choice-argus:hover { border-color: #dbb4ae; }
.provider-choice-copy { min-width: 0; flex: 1; }
.provider-choice strong { font-size: 15px; }
.provider-choice small { margin-top: 5px; font-size: 10px; }
.provider-choice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}
.provider-choice-tags em {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 760;
}
.provider-choice-arrow {
  align-self: center;
  color: var(--faint);
  font-size: 18px;
  font-weight: 700;
}

.empty-library-note { margin: 24px -44px -34px !important; }

.provider-dialog { width: min(720px, calc(100vw - 48px)); }
.provider-dialog-option {
  position: relative;
  min-height: 132px;
  align-items: flex-start;
  padding: 20px;
}
.provider-dialog-option > span:nth-child(2) { min-width: 0; flex: 1; }
.provider-dialog-option em {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
  line-height: 1.5;
}
.provider-dialog-arrow {
  align-self: center;
  color: var(--faint);
  font-size: 18px;
}

.argus-source-set {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(16 24 40 / 4%);
}

.argus-source-set-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.argus-source-set-heading > div {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.argus-source-set-heading p {
  color: var(--muted);
  font-size: 10px;
}
.argus-source-set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.argus-source-set-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}
.argus-source-set-card.is-loaded { border-color: #cae2d7; background: #f6fbf8; }
.argus-source-set-card.is-missing { opacity: .7; }
.argus-source-set-status {
  min-width: 48px;
  padding: 5px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef1f5;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}
.is-loaded .argus-source-set-status { color: #06734e; background: #dff5ea; }
.argus-source-set-card strong,
.argus-source-set-card small,
.argus-source-set-card em { display: block; }
.argus-source-set-card strong { font-size: 11px; }
.argus-source-set-card small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.argus-source-set-card em { margin-top: 5px; color: var(--ink-soft); font-size: 8px; font-style: normal; font-weight: 700; }

@media (max-width: 1180px) {
  .argus-source-set-grid { grid-template-columns: 1fr; }
  .argus-source-set-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}

.argus-forecast-card .argus-forecast-statement {
  margin: 10px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.argus-capture-note {
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.argus-data-table td { font-variant-numeric: tabular-nums; }

/* Keep wide financial tables inside the report, never underneath navigation. */
.workspace { overflow-x: hidden; }
.argus-report { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.argus-report > *, .argus-section > *, .argus-table-details,
.argus-forecast-trend, .argus-source-table-list { min-width: 0; max-width: 100%; }
.argus-table-wrap { width: 100%; max-width: 100%; overflow: auto; overscroll-behavior-x: contain; }
.argus-data-table { font-size: 12px; }
.argus-data-table th, .argus-data-table td { padding: 10px 12px; }
.argus-data-table thead th { font-size: 11px; }
.argus-data-table th:first-child { min-width: 190px; }
.argus-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.argus-forecast-card { min-height: 0; border-radius: 8px; padding: 16px 18px; }
.argus-forecast-card .argus-source-pill { margin-top: 10px; }
.argus-forecast-card .argus-forecast-statement { color: var(--ink); font-size: 14px; line-height: 1.6; }
.argus-source-text > .argus-forecast-card { margin-top: 10px; }
.argus-card-label { font-size: 11px; }
@media (max-width: 1250px) { .argus-forecast-grid { grid-template-columns: minmax(0, 1fr); } }

/* Persistent navigation toggle stays in the report header when hidden. */
.app-shell.sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
.sidebar-toggle { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel, #fff); color: var(--ink); }
.sidebar-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sidebar-toggle:hover { background: var(--panel-soft); }
.sidebar-collapsed .sidebar-toggle svg { transform: scaleX(-1); }
.top-bar .top-title { flex: 1; }

/* Research reading order: compact facts, complete tables, then further detail. */
.argus-source-set { padding: 12px 18px; }
.argus-source-set-heading { margin-bottom: 8px; }
.argus-source-set-card { min-height: 0; padding: 8px 10px; background: transparent; }
.argus-source-set-card em { font-size: 11px; font-weight: 400; }
.argus-source-set-status { font-size: 9px; }
.argus-section { padding: 22px; scroll-margin-top: 152px; }
.argus-section-heading { margin-bottom: 14px; }
.argus-section-heading h2 { font-size: 21px; }
.research-fact-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.research-fact-group { min-width: 0; }
.argus-report .research-fact-group h3 { font-size: 13px; margin: 0 0 10px; color: var(--ink); }
.research-fact-list { margin: 0; }
.research-fact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.research-fact-row dt { font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.research-fact-row dd { margin: 0; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.argus-nav, .section-nav { position: sticky; top: 76px; z-index: 8; background: var(--panel, #fff); }
.argus-nav { flex-wrap: wrap; }
.argus-nav a:focus-visible, .argus-table-wrap:focus-visible { outline: 2px solid var(--accent, #3157d5); outline-offset: 3px; }
#priority-section, #analysis-section, #source-section { scroll-margin-top: 152px; }
@media(max-width: 1200px) { .research-fact-groups { grid-template-columns: minmax(0, 1fr); gap: 18px; } .research-fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media print { .argus-nav, .section-nav, .sidebar-toggle { display: none; } }

.research-fact-row dt { font-size: 13px; }
.research-fact-row dd { font-size: 14px; }
.library-item-title { font-size: 13px; }
.library-item-meta { font-size: 11px; }
.argus-hero h1 { font-size: 26px; }

/* Library control belongs to navigation; report tables own their scrolling. */
.sidebar > .sidebar-toggle { align-self: flex-end; display: flex; gap: 8px; width: auto; flex: 0 0 auto; margin: -8px 0 14px; padding: 6px 9px; color: #dce4f4; background: transparent; border-color: #344157; }
.sidebar > .sidebar-toggle:hover { background: #243149; }
.sidebar-toggle-label { font-size: 12px; white-space: nowrap; }
.top-bar > .sidebar-toggle { display: flex; gap: 7px; width: auto; flex-basis: auto; padding: 7px 10px; }
.sidebar-toggle:focus-visible { outline: 2px solid #829cff; outline-offset: 3px; }
#priority-section, #priority-section > *, .key-metrics-groups, .key-metrics-group, .key-group, .key-metrics-table-scroll, .revision-table-scroll { min-width: 0; max-width: 100%; }
.key-metrics-table-scroll, .revision-table-scroll { width: 100%; overscroll-behavior-x: contain; scrollbar-width: auto; }
.key-metrics-table { font-size: 13px; }
.key-metrics-table td { font-size: 13px; padding: 11px 10px; }
.key-metrics-table .metric-period { font-size: 12px; }
.key-metrics-table .metric-period-label { font-size: 10px; }
.key-metrics-table .metric-name-cell, .key-metrics-table .metric-name-header { width: 180px; min-width: 180px; max-width: 180px; }
.key-metrics-table { min-width: calc(180px + (var(--period-count) * 86px)); }
.section-nav { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.section-nav a { font-size: 12px; padding: 10px 12px; }
@media print { .sidebar-toggle { display: none !important; } }

.key-metric-groups, .key-metric-group, #priority-grid { min-width: 0; max-width: 100%; }
.key-metrics-table-scroll:focus-visible { outline: 2px solid #3157d5; outline-offset: 2px; }

/* Source verification and recoverable errors remain clear without competing with financials. */
.operation-error { margin: 12px 28px; padding: 12px 16px; display: flex; align-items: start; gap: 16px; background: #fff5ef; color: #743416; border: 1px solid #eed1be; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.operation-error span { flex: 1; }
.operation-error button { border: 0; padding: 4px; background: transparent; color: inherit; text-decoration: underline; }
.metric-unit { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: #58647a; }
#original-pdf-actions:not(:empty) { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
#report-library[aria-busy=true] { opacity: .65; }
/* Constrain the Morningstar grid itself, not only its inner table wrappers. */
.report-view { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.report-view > *, .source-table-host, .source-table-card, .source-table-wrap { min-width: 0; max-width: 100%; }
.section-nav button { font-size: 12px; }
.top-bar { background: var(--canvas); backdrop-filter: none; }

.argus-import-dialog { width: min(680px, calc(100vw - 48px)); max-height: calc(100vh - 64px); overflow-y: auto; padding: 26px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #09132640; }
.argus-import-dialog::backdrop { background: #0c162866; }
.argus-import-dialog header { display: flex; align-items: start; gap: 20px; }
.argus-import-dialog h2 { font-size: 23px; margin: 0 0 10px; }
.argus-import-dialog header p { margin: 0; font-size: 14px; line-height: 1.55; color: #566278; }
.argus-import-dialog button { cursor: pointer; border: 1px solid var(--line); border-radius: 7px; padding: 9px 14px; background: #fff; color: var(--ink); font-size: 13px; }
.argus-import-dialog button:disabled { cursor: default; opacity: .5; }
.argus-import-dialog button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.argus-import-drop { margin: 20px 0; padding: 20px; text-align: center; border: 1px dashed #a9b9d2; border-radius: 10px; background: #f8fafc; }
.argus-import-drop span, .argus-import-drop small { display: block; margin-top: 9px; color: #58647a; font-size: 12px; }
#argus-add-files, #argus-open-report { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 650; }
#argus-import-company { font-size: 13px; line-height: 1.5; }
.argus-import-slot { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 14px 0; }
.argus-import-slot strong, .argus-import-slot small, .argus-import-slot span { display: block; }
.argus-import-slot strong { font-size: 14px; }
.argus-import-slot small { margin: 4px 0 7px; font-size: 12px; color: #58647a; }
.argus-import-slot span { font-size: 12px; color: #65728a; overflow-wrap: anywhere; }
.argus-import-slot.added span { color: #17664b; font-weight: 600; }
.argus-import-slot > div { min-width: 0; }
.argus-import-slot button { flex-shrink: 0; }
.argus-import-dialog footer { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
#argus-import-status { flex: 1; font-size: 12px; color: #566278; }
#argus-import-error { background: #fff5ef; border: 1px solid #eed1be; border-radius: 7px; padding: 12px; color: #743416; font-size: 13px; line-height: 1.5; }

.add-argus-sources { flex-shrink: 0; padding: 9px 14px; border: 1px solid var(--blue); border-radius: 7px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.add-argus-sources:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.app-version { display: block; margin-top: 7px; color: #a9b5ca; font-size: 11px; }

/* Reading focus: one company heading, compact source context, complete tables. */
.identity-row { padding: 16px 20px; gap: 20px; }
.company-identity { min-width: 0; }
.company-identity .muted-line { margin: 0; font-size: 12px; line-height: 1.6; }
.snapshot-card { padding: 16px 20px; }
.source-pdf-button { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 6px 10px; border: 1px solid #ccd4df; border-radius: 6px; background: #fff; color: #3b4c63; font: inherit; font-size: 11px; line-height: 1.4; cursor: pointer; }
.source-pdf-button:hover { background: #f0f4f8; border-color: #8798ae; }
.source-pdf-button:focus-visible, .argus-source-set-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.argus-source-pill.source-pdf-button { font-size: 10px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.key-group-heading { gap: 12px; }
.key-group-heading .key-group-count { margin-left: auto; }
.summary-source, .summary-card summary .source-pdf-button { margin-top: 6px; }
.argus-source-set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.argus-source-set-heading { flex-wrap: wrap; flex-direction: row; align-items: center; gap: 8px 16px; }
.argus-source-set-heading p { flex: 1 1 240px; text-align: left; font-size: 12px; }
.argus-source-set-heading > div { font-size: 13px; }
.argus-source-set-card { text-align: left; font-family: inherit; }
button.argus-source-set-card { cursor: pointer; }
button.argus-source-set-card:hover { border-color: #8798ae; background: #f0f4f8; }
.argus-source-set-card.is-loaded { border-color: var(--line); background: #f8fafc; }
.argus-source-set-card.is-missing { opacity: 1; color: #667085; border-style: dashed; }
.argus-source-set-card strong { font-size: 12px; }
.argus-source-price { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.argus-target-section { padding: 16px 18px; }
.argus-target-card { border-radius: 10px; padding: 16px; }
.argus-target-sub { font-size: 12px; }
.argus-target-grid > :only-child { grid-column: 1 / -1; }
.table-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); color: #4c5b70; font-size: 12px; }
.table-column-range { min-width: 0; overflow-wrap: anywhere; }
.table-navigation-buttons { display: flex; gap: 6px; margin-left: auto; }
.table-navigation-buttons button { width: 34px; height: 30px; padding: 0; border: 1px solid #bdc8d7; border-radius: 5px; background: #fff; color: #25374c; font-size: 19px; cursor: pointer; }
.table-navigation-buttons button:disabled { color: #a2abba; border-color: #e0e5ec; cursor: default; }
.table-navigation-buttons button:not(:disabled):hover { background: #e9eef5; }
.table-navigation-buttons button:focus-visible, .revision-table-scroll:focus-visible, .source-table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media print { .table-navigation, .source-pdf-button { display: none !important; } }

/* Reading tools stay secondary to the financial figures. */
.top-title { min-width: 0; }
.find-report-button { border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #34445c; padding: 9px 12px; font-size: 12px; cursor: pointer; }
.report-find-bar { position: sticky; top: 76px; z-index: 10; display: flex; align-items: center; gap: 10px; margin: 0 28px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 4px 12px #1524380c; }
.report-find-bar label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.report-find-bar input { flex: 1; min-width: 120px; padding: 8px 10px; border: 1px solid #bcc8d8; border-radius: 6px; font-size: 14px; }
.report-find-bar button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #34445c; font-size: 13px; cursor: pointer; }
.report-find-bar button:disabled { opacity: .4; cursor: default; }
#report-find-count { font-size: 12px; color: #56657a; white-space: nowrap; }
.report-find-match { background: #fff1b8; color: inherit; padding: 0; }
.report-find-match.current-match { background: #ffd977; outline: 2px solid #b58317; outline-offset: 1px; }
.section-nav [aria-current=location], .argus-nav [aria-current=location] { color: #fff; background: #244d6b; border-radius: 6px; }
.report-find-bar:not([hidden]) ~ .report-view .section-nav, .report-find-bar:not([hidden]) ~ .argus-report .argus-nav { top: 144px; }
.key-metrics-table tbody tr:hover td, .argus-data-table tbody tr:hover td, .source-table tbody tr:hover td { background: #eef3f8; }
.source-viewer { width: min(1180px, calc(100vw - 48px)); height: calc(100vh - 48px); max-width: none; max-height: none; padding: 0; border: 1px solid #cdd6e2; border-radius: 12px; color: #192b40; background: #fff; box-shadow: 0 24px 90px #07152540; }
.source-viewer[open] { display: flex; flex-direction: column; }
.source-viewer::backdrop { background: #0c162866; }
.source-viewer header { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.source-viewer header > div { min-width: 0; }
.source-viewer h2 { margin: 0; font-size: 19px; }
#source-name { margin: 4px 0 0; color: #617087; font-size: 12px; overflow-wrap: anywhere; }
.source-viewer button, .source-viewer select, .source-viewer input { padding: 7px 10px; border: 1px solid #c5d0df; border-radius: 5px; color: #24374d; background: #fff; font: inherit; font-size: 13px; }
.source-viewer button { cursor: pointer; }
.source-viewer button:disabled { opacity: .45; cursor: default; }
.source-viewer button:focus-visible, .source-viewer input:focus-visible, .source-viewer select:focus-visible, .find-report-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.source-viewer-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.source-viewer-toolbar label { font-size: 12px; color: #516176; display: inline-flex; align-items: center; gap: 8px; }
.source-page-controls { display: flex; align-items: center; gap: 8px; font-size: 12px; }
#source-page { width: 66px; }
#source-document { max-width: 210px; }
.source-view-switch { display: flex; gap: 5px; margin-left: auto; }
.source-view-switch [aria-pressed=true] { background: #244d6b; color: #fff; border-color: #244d6b; }
.source-viewport { flex: 1; min-height: 0; overflow: auto; padding: 24px; background: #e7ecf2; text-align: center; }
#source-canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 3px 18px #12243b1c; }
#source-page-text { margin: 0; padding: 24px; background: #fff; color: #1a2c41; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; font-size: 14px; line-height: 1.65; }
.source-text-note { margin: 0 0 12px; color: #516176; text-align: left; font-size: 12px; }
.source-viewer footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 12px 20px; color: #607087; font-size: 12px; }
.source-viewer-error { padding: 16px; border: 1px solid #eed1be; border-radius: 8px; background: #fff5ef; color: #743416; text-align: left; font-size: 14px; }
@media print { .report-find-bar, .find-report-button, .source-viewer { display: none !important; } .report-find-match { background: transparent; outline: none; } }
.facts-grid { grid-template-columns: repeat(var(--fact-count, 6), minmax(0, 1fr)); }
.summary-review-link { margin: 0 20px 10px; padding: 0; background: transparent; border: 0; color: #526781; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1220px) { .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
