@font-face {
  font-family: "Bank Gothic";
  src: url("./assets/brand/bank-gothic-medium-bt.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bank Gothic";
  src: url("./assets/brand/bankgothic-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("./assets/brand/atkinson-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("./assets/brand/atkinson-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("./assets/brand/atkinson-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --graphite: #2d2d2d;
  --silver: #a3a5a4;
  --slate: #8b9daa;
  --pearl: #eeeff0;
  --charcoal: #4a4a4a;
  --ash: #6b6b6b;
  --fog: #d1d5db;
  --amber: #b37d00;
  --forest: #42614e;
  --status-slate: #607482;
  --bg: #f6f6f3;
  --panel: rgba(238, 239, 240, 0.68);
  --panel-soft: rgba(255, 255, 255, 0.86);
  --ink: #242424;
  --muted: #626262;
  --line: rgba(45, 45, 45, 0.11);
  --blue: #607482;
  --blue-soft: #edf1f4;
  --purple: #4a4a4a;
  --purple-soft: #eeeff0;
  --green: #42614e;
  --green-soft: #e6ede8;
  --amber-soft: #f3e7cb;
  --red: #7e3f34;
  --red-soft: #f5e7e3;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08), inset 0 1px rgba(255, 255, 255, 0.65);
  --brand-bg-image: url("./assets/brand/background.png");
  --scrollbar-size: 10px;
  --scrollbar-track: rgba(45, 45, 45, 0.06);
  --scrollbar-thumb: rgba(107, 107, 107, 0.42);
  --scrollbar-thumb-hover: rgba(74, 74, 74, 0.62);
  --scrollbar-track-dark: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb-dark: rgba(163, 165, 164, 0.34);
  --scrollbar-thumb-dark-hover: rgba(238, 239, 240, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.table-wrap,
.process-list,
.modal-sheet,
.document-evidence-card p {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--scrollbar-thumb);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
  background: rgba(45, 45, 45, 0.72);
  background-clip: padding-box;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.sidebar,
.sidebar * {
  scrollbar-color: var(--scrollbar-thumb-dark) var(--scrollbar-track-dark);
}

.sidebar::-webkit-scrollbar-track,
.sidebar *::-webkit-scrollbar-track {
  background: var(--scrollbar-track-dark);
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar *::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-dark);
  background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar *::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-dark-hover);
  background-clip: padding-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--brand-bg-image) center / cover fixed no-repeat;
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 1.5px solid var(--slate);
  border-radius: 3px;
  background-color: #ffffff;
  cursor: pointer;
  vertical-align: middle;
  aspect-ratio: 1 / 1;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

input[type="checkbox"]:checked {
  background-color: var(--slate);
  border-color: var(--slate);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(139, 157, 170, 0.55);
  outline-offset: 2px;
}

input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.permission-denied-inline {
  padding: 0 24px 8px;
}

.permission-denied-link-wrap {
  margin: 8px 0 0;
}

.case-header .permission-denied-link-wrap {
  width: 100%;
}

.permission-denied-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #dc2626;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.permission-denied-link:hover {
  color: #b91c1c;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.24s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar-wrap {
  position: relative;
  min-width: 0;
}

.sidebar-toggle {
  position: fixed;
  top: 24px;
  left: 266px;
  z-index: 60;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-toggle:hover {
  background: #f8fafc;
  color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.sidebar-toggle.collapsed svg {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  left: 72px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(170deg, rgba(22, 22, 22, 0.46) 0%, rgba(36, 36, 36, 0.42) 60%, rgba(52, 52, 52, 0.38) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 12px 0 30px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(29px);
  -webkit-backdrop-filter: blur(29px);
  color: #f2f2ef;
}

.brand,
.nav-item,
.topbar,
.top-actions,
.panel-header,
.case-header,
.case-controls,
.section-title,
.report-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(238, 239, 240, 0.88);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.brand-copy {
  min-width: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .nav-item span:not(.nav-notification-badge),
.app-shell.sidebar-collapsed .sidebar-panel {
  display: none;
}

.app-shell.sidebar-collapsed .brand {
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar {
  align-items: center;
  padding: 18px 12px;
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  width: 48px;
  padding: 0;
}

.brand small {
  margin-top: 3px;
  color: rgba(238, 239, 240, 0.72);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.nav-item svg,
.top-actions svg,
.panel svg,
.case-controls svg,
.report-actions svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover {
  background: rgba(238, 239, 240, 0.14);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(238, 239, 240, 0.18);
  color: #000000;
}

.nav-item-disabled,
.nav-item:disabled {
  opacity: 0.72;
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
}

.nav-item-disabled:hover,
.nav-item:disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
}

.nav-item-disabled svg,
.nav-item:disabled svg,
.nav-item-disabled i,
.nav-item:disabled i {
  color: rgba(255, 255, 255, 0.24);
  opacity: 0.85;
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-panel strong {
  display: block;
  margin-top: 6px;
}

.sidebar-panel p {
  margin: 8px 0 14px;
  color: #b9c4d6;
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-panel .eyebrow {
  color: #ffffff;
}

.account-entry-button {
  width: 100%;
}

.account-entry-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2px;
}

.account-entry-button strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.account-entry-button p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.mini-metrics {
  display: grid;
  gap: 8px;
}

.mini-metrics span {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfe7f5;
  font-size: 12px;
  font-weight: 700;
}

.workspace {
  --page-gutter: 26px;
  min-width: 0;
  padding: var(--page-gutter);
  background: transparent;
}

.page-column {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.page-column > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-column > .layout-shell,
.page-column > .page-shell,
.page-column > .panel.layout-shell,
.page-column > .panel.page-shell {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-tab-strip {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0;
}

.page-tab-strip button {
  padding: 16px 22px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}

.page-tab-strip button.active {
  border-bottom-color: currentColor;
  color: #b37d00;
  font-weight: 800;
}

.page-tab-strip .page-tab-with-badge {
  position: relative;
  padding-right: 28px;
}

.tab-notification-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}

.app-shell.sidebar-collapsed .nav-item.nav-item-with-badge .nav-notification-badge {
  top: 4px;
  right: 4px;
}

.nav-item-with-badge {
  position: relative;
  padding-right: 34px;
}

.nav-notification-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}

.page-tab-strip.tenant-settings-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-tab-strip.tenant-settings-tabs button {
  flex: 0 0 auto;
  padding: 14px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.page-tab-strip.tenant-settings-tabs .page-tab-with-badge {
  padding-right: 26px;
}

.page-tab-strip.tenant-settings-tabs .tab-notification-badge {
  top: 8px;
  right: 6px;
}

.policy-document-updated {
  border-color: rgba(179, 125, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(179, 125, 0, 0.28);
}

.policy-updated-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(179, 125, 0, 0.18);
  color: #b37d00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.page-column > .case-header,
.page-column > .report-actions,
.page-column > .research-progress-full,
.page-column > .metrics-grid,
.page-column > .new-request-page,
.page-column > .report-page,
.page-column > .empty-state,
.page-column > .panel:not(.page-shell):not(.layout-shell),
.page-column > .source-list {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  justify-content: stretch;
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
}

.topbar p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.topbar .eyebrow,
.topbar h1 {
  color: #ffffff;
}

.top-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-start;
  justify-self: end;
  gap: 10px;
}

.tenant-topbar-logo {
  display: block;
  max-height: 81px;
  max-width: 270px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tenant-branding-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tenant-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.tenant-logo-preview img {
  max-width: 315px;
  max-height: 126px;
  object-fit: contain;
}

.tenant-branding-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tenant-branding-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tenant-branding-button {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

.tenant-logo-upload {
  position: relative;
  cursor: pointer;
}

.tenant-logo-upload input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Bank Gothic", "Atkinson Hyperlegible", Arial, sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Bank Gothic", "Atkinson Hyperlegible", Arial, sans-serif;
}

h2 {
  margin-top: 3px;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Bank Gothic", "Atkinson Hyperlegible", Arial, sans-serif;
}

h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Bank Gothic", "Atkinson Hyperlegible", Arial, sans-serif;
}

.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.icon-button {
  width: 40px;
  padding: 0;
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--ink);
}

.primary-button {
  padding: 0 14px;
  border-color: rgba(45, 45, 45, 0.35);
  background: linear-gradient(135deg, #2d2d2d, #607482);
  color: white;
}

.secondary-button {
  padding: 0 14px;
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--ink);
}

.danger-button,
.danger-action {
  border-color: #ffd0ca;
  color: var(--red);
}

.primary-button.danger-button,
.tenant-pricing-save-button {
  border-color: rgba(185, 28, 28, 0.5);
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
}

.primary-button.danger-button:hover,
.tenant-pricing-save-button:hover {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  color: #fff;
}

.danger-button:hover,
.danger-action:hover {
  background: var(--red-soft);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}

.metric-card,
.panel,
.case-header {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.metric-card {
  min-height: 0;
  padding: 11px 13px;
}

.metric-card span,
.metric-card small {
  display: block;
  font-weight: 800;
}

.metric-card-top span {
  font-size: 13px;
  line-height: 1.25;
}

.metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.metric-card-top span {
  flex: 1 1 auto;
  min-width: 0;
}

.metric-card-icon,
.metric-card-icon svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #607482;
  opacity: 0.92;
}

.metric-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.metric-card strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 36px;
  line-height: 1;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.settings-tab-content {
  display: grid;
  gap: 24px;
  padding: 0;
}

.settings-tab-content > .panel {
  margin: 0;
  min-width: 0;
}

.account-tab-content {
  display: grid;
  gap: 24px;
  padding: 0;
}

.account-tab-content > .panel {
  margin: 0;
  min-width: 0;
}

.settings-tab-content .sources-page-grid,
.settings-tab-content .control-grid {
  gap: 20px;
  align-items: start;
}

.folder-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.folders-tab-body {
  display: grid;
  gap: 16px;
}

.folders-tab-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.dashboard-queue-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-queue-head .page-tab-strip {
  flex: 1;
  min-width: min(100%, 420px);
}

.case-list-panel {
  padding: 0;
  overflow: hidden;
}

.case-list-panel .workspace-tab-body {
  padding: 0;
}

.case-list-panel .table-wrap {
  border: 0;
}

.case-list-panel .table-wrap table {
  min-width: 100%;
}

.case-list-panel .empty-state {
  margin: 18px;
}

.case-list-panel .folders-tab-body {
  padding: 18px;
}

.case-list-panel .source-list {
  padding: 12px;
  gap: 12px;
}

.batch-queue-body {
  display: grid;
  gap: 12px;
}

.batch-list {
  display: grid;
  gap: 12px;
}

.batch-list .batch-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.batch-card .batch-mini-metrics span {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.batch-card .batch-mini-metrics span.batch-metric-targets {
  color: #000000;
}

.batch-card .batch-mini-metrics span.batch-metric-completed {
  color: #42614e;
}

.batch-card .batch-mini-metrics span.batch-metric-queued {
  color: #ca8a04;
}

.batch-card .batch-mini-metrics span.batch-metric-review {
  color: #ea580c;
}

.batch-card .batch-mini-metrics span.batch-metric-divider {
  color: rgba(0, 0, 0, 0.28);
  font-weight: 700;
}

.batch-name-toggle {
  min-height: unset;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.batch-name-toggle span {
  color: inherit;
}

.batch-name-toggle .batch-toggle-icon,
.batch-name-toggle svg {
  color: #1e293b;
}

.table-wrap th.col-center,
.table-wrap td.col-center {
  text-align: center;
}

.case-shell {
  display: grid;
  gap: 12px;
}

.case-shell-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.case-shell-back {
  flex: 0 0 auto;
}

.case-shell-toolbar .primary-button.case-research-button.case-shell-back {
  min-height: unset;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  line-height: 1.2;
}

.case-shell-toolbar .primary-button.case-research-button.case-shell-back svg,
.case-shell-toolbar .primary-button.case-research-button.case-shell-back i {
  width: 14px;
  height: 14px;
}

.case-shell-batch-badge,
.case-shell-context-note {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.case-shell-panel {
  overflow: hidden;
}

.case-shell-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-shell-menu.page-tab-strip {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.case-shell-menu.page-tab-strip button {
  color: #ffffff;
}

.case-shell-menu.page-tab-strip button.active {
  color: #b37d00;
  border-bottom-color: #b37d00;
}

.case-shell-submenu.page-tab-strip {
  margin-top: 0;
  border-bottom: 1px solid rgba(96, 116, 130, 0.28);
}

.case-shell-submenu.page-tab-strip button {
  color: rgba(255, 255, 255, 0.88);
}

.case-shell-submenu.page-tab-strip button.active {
  color: #42614e;
  border-bottom-color: #42614e;
  font-weight: 800;
}

.billing-tab-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-submenu.page-tab-strip {
  margin-top: 0;
  border-bottom: 1px solid rgba(96, 116, 130, 0.28);
}

.settings-submenu.page-tab-strip button {
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.settings-submenu.page-tab-strip button.active {
  color: #42614e;
  border-bottom-color: #42614e;
  font-weight: 800;
}

.case-shell-report-actions {
  margin-top: 16px;
  margin-bottom: 0;
}

.case-shell-content {
  margin-top: 22px;
}

.case-shell-content-inner {
  padding-top: 0;
}

.report-page-embedded .report-page {
  padding-top: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.report-page-embedded .report-page.report-page-card {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(238, 239, 240, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-sizing: border-box;
}

.report-page-embedded .report-page.report-page-card > *:first-child {
  margin-top: 0;
}

.report-page-embedded .report-page.report-page-card section {
  margin-top: 22px;
}

.report-page-embedded .report-page.report-page-card > section:first-of-type {
  margin-top: 22px;
}

.report-card-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(96, 116, 130, 0.22);
}

.report-card-header-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.report-card-header-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 0;
}

.report-card-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.report-card-header-slot img {
  display: block;
  max-height: 54px;
  max-width: 189px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.report-card-header-slot-tenant {
  justify-content: flex-end;
}

.report-card-header-slot-tenant img {
  max-height: 76px;
  max-width: 243px;
}

.report-card-header-slot span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.report-card-header-date {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  color: #607482;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.report-delivery-pack {
  margin-top: 22px;
}

.report-page-embedded .report-page.report-page-card .report-card-header + section {
  margin-top: 0;
}

.evidence-sources-sheet {
  display: grid;
  gap: 18px;
}

.investigate-macro-block {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}

.investigate-macro-block-last {
  opacity: 0.96;
}

.investigate-macro-head h3 {
  margin: 0;
  font-size: 18px;
  color: #607482;
}

.investigate-macro-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 72ch;
}

.investigate-macro-body {
  display: grid;
  gap: 12px;
}

.financials-panel {
  border: 1px solid #dbe3ef;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.financial-empty-panel {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

.financial-empty-panel p,
.resolved-field-value.financial-empty-panel p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.financial-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.financial-year-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.financial-year-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.financial-year-head strong {
  color: #52614e;
  font-size: 15px;
}

.financial-year-head span,
.financial-source-line span {
  color: #64748b;
  font-size: 12px;
}

.financial-metrics-list {
  display: grid;
  gap: 8px;
}

.financial-metrics-list div {
  display: grid;
  grid-template-columns: minmax(120px, 42%) 1fr;
  gap: 10px;
  align-items: start;
}

.financial-metrics-list dt {
  color: #42614e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.financial-metrics-list dd {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.financial-source-line,
.financial-documents-block {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.financial-documents-block h4 {
  margin: 0;
  color: #607482;
  font-size: 14px;
}

.investigate-panel-body .source-list {
  gap: 10px;
}

.investigate-inline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.research-process-toolbar {
  margin-bottom: 4px;
}

.folder-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 4px;
}

.folder-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(340px, 100%);
  min-height: 40px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(96, 116, 130, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 157, 170, 0.24);
}

textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.form-panel {
  width: 100%;
  max-width: none;
}

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

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wide-field {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.login-quick-actions {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.login-role-icon-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-role-icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d6d9de;
  background: #e5e7eb;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.login-role-icon-button:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
  color: #1f2937;
  transform: translateY(-1px);
}

.scope-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  box-shadow: none;
}

.scope-panel.compact {
  grid-column: 1 / -1;
  margin-bottom: 0;
  padding: 14px;
  background: var(--panel-soft);
}

.scope-panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.scope-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.scope-checks svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.entity-resolution-panel {
  margin-bottom: 14px;
  box-shadow: none;
}

.golden-record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.golden-record-grid div,
.candidate-list article,
.gap-list span:not(.eyebrow) {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.golden-record-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.golden-record-grid span,
.candidate-list span,
.candidate-list p,
.entity-note,
.gap-list span:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.golden-record-grid strong,
.candidate-list strong {
  overflow-wrap: anywhere;
}

.candidate-list {
  display: grid;
  gap: 8px;
}

.candidate-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
}

.candidate-list p {
  grid-column: 1 / -1;
  margin: 0;
}

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

.gap-list span:not(.eyebrow) {
  display: block;
  padding: 8px 10px;
}

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

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: #607482;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: var(--panel-soft);
}

.table-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.table-row-actions .icon-button {
  width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #607482;
  transition: color 0.15s ease;
}

.table-row-actions .icon-button:hover {
  background: transparent;
  opacity: 1;
}

.table-row-actions .icon-button svg,
.table-row-actions .icon-button i {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  transition: stroke-width 0.15s ease, transform 0.15s ease;
}

.table-row-actions .icon-button:hover svg,
.table-row-actions .icon-button:hover i {
  stroke-width: 2.75;
  transform: scale(1.12);
}

.table-row-actions .danger-button {
  border: 0;
  color: #607482;
}

.table-row-actions .danger-button:hover,
tbody tr:hover .table-row-actions .danger-button:hover {
  background: transparent;
  color: #dc2626;
}

.table-row-actions .danger-button:hover svg,
.table-row-actions .danger-button:hover i,
tbody tr:hover .table-row-actions .danger-button:hover svg,
tbody tr:hover .table-row-actions .danger-button:hover i {
  color: #dc2626;
  stroke: #dc2626;
}

tbody tr:hover .table-row-actions .icon-button,
tbody tr:hover .table-row-actions .danger-button {
  color: #607482;
}

.table-row-actions .icon-button:active,
.table-row-actions .icon-button:active svg,
.table-row-actions .danger-button:active {
  color: #b37d00;
}

.table-row-actions .icon-button:active svg,
.table-row-actions .icon-button:active i {
  stroke-width: 3;
  transform: scale(1.08);
}

.muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.priority,
.status-badge,
.confidence,
.count-pill,
.severity {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.priority.standard,
.confidence.high,
.status-badge.completed,
.count-pill.clear {
  background: var(--green-soft);
  color: var(--green);
}

.priority.urgent,
.confidence.medium,
.status-badge.needs-review,
.count-pill.warning,
.severity.medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge.extracted,
.status-badge.collecting,
.status-badge.draft,
.confidence.low,
.confidence.empty {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-badge.archived {
  background: rgba(71, 85, 105, 0.15);
  color: rgb(71, 85, 105);
}

.severity.high,
.status-badge.conflict {
  background: var(--red-soft);
  color: var(--red);
}

.case-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
}

.case-header p {
  margin-top: 6px;
  color: var(--muted);
}

.case-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.case-controls label {
  display: grid;
  gap: 5px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workspace-grid,
.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.workspace-grid {
  margin-bottom: 14px;
}

.sources-page-grid,
.control-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.case-source-manager {
  grid-column: 1 / -1;
}

.section-stack,
.side-stack,
.source-list,
.discrepancy-list {
  display: grid;
  gap: 12px;
}

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

.workspace-tab-body {
  display: grid;
  gap: 18px;
  padding: 0;
}

.profile-sheet,
.evidence-sheet {
  display: grid;
  gap: 18px;
}

.profile-section {
  box-shadow: none;
  padding: 20px 22px;
}

.section-title {
  gap: 9px;
  margin-bottom: 12px;
}

.profile-section .section-title h3,
.profile-section .section-title svg,
.profile-section .section-title i {
  color: #607482;
}

.case-summary-eyebrow {
  color: #607482;
}

.section-title svg {
  color: var(--purple);
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.profile-row span,
.empty-inline {
  color: var(--muted);
  font-size: 13px;
}

.profile-row strong {
  line-height: 1.35;
}

.source-list article,
.discrepancy-list article,
.research-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.research-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.confidence-model {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
}

.confidence-model strong {
  font-size: 13px;
}

.research-summary p,
.research-summary li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.research-summary ul {
  margin: 0;
  padding-left: 18px;
}

.source-list strong,
.source-list span,
.source-list p,
.source-meta span,
.discrepancy-list strong,
.discrepancy-list p {
  display: block;
}

.source-list span,
.source-list p,
.source-meta span,
.discrepancy-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.source-meta {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.source-template-form {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.country-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.country-list,
.control-status-list {
  display: grid;
  gap: 8px;
}

.country-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.country-row.active {
  border-color: #b7cdfd;
  background: var(--blue-soft);
  color: var(--blue);
}

.country-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 24px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.field-help-alert {
  color: var(--red);
}

.field-priority-required {
  padding: 12px;
  border: 1px solid #f8b4b4;
  border-radius: 8px;
  background: #fff5f5;
  color: var(--red);
}

.form-grid .checkbox-row,
.template-actions .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.form-grid .checkbox-row {
  align-self: end;
  min-height: 40px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
}

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

.source-template-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.source-template-list article.inactive {
  opacity: 0.58;
}

.source-template-list strong,
.source-template-list span,
.source-template-list p,
.source-template-list small {
  display: block;
}

.source-template-list span,
.source-template-list p,
.source-template-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.source-template-list p {
  overflow-wrap: anywhere;
}

.template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-panel,
.connection-status-panel {
  box-shadow: none;
}

.connection-status-panel {
  grid-column: auto;
}

.split-actions {
  justify-content: space-between;
  gap: 10px;
}

.form-actions.wide-field {
  justify-content: flex-end;
}

.control-status-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.control-status-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.control-status-list strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.research-process-panel {
  width: 100%;
  margin-bottom: 14px;
  box-shadow: none;
}

.research-process-panel.expanded .process-list {
  max-height: min(62vh, 820px);
}

.research-process-panel.collapsed .process-list {
  max-height: 360px;
}

.process-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.process-metrics span {
  min-height: 34px;
  padding: 8px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.process-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.process-list article {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.process-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.process-list strong,
.process-list p,
.process-list a,
.process-list small,
.process-query {
  font-size: 12px;
  line-height: 1.35;
}

.process-list p,
.process-list small,
.process-query {
  color: var(--muted);
}

.process-list a,
.process-query {
  overflow-wrap: anywhere;
}

.process-list a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.process-collapsed-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.step-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.step-status.clear {
  background: var(--green-soft);
  color: var(--green);
}

.step-status.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.step-status.muted {
  background: var(--line);
  color: var(--muted);
}

.step-status.neutral {
  background: var(--blue-soft);
  color: var(--blue);
}

.document-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.document-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resolved-field-paragraph {
  display: block;
  white-space: pre-wrap;
  line-height: 1.6;
}

.document-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.validation-table select,
.validation-table input {
  min-width: 150px;
}

.confidence-note {
  display: block;
  max-width: 260px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-agreement-note {
  color: var(--blue);
}

.check-only {
  display: flex;
  justify-content: center;
}

.check-only input {
  width: auto;
  min-height: auto;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 32px;
  height: 32px;
  color: var(--purple);
}

.empty-state strong {
  margin-top: 10px;
  color: var(--ink);
}

.empty-state p {
  max-width: 440px;
  margin-top: 6px;
  line-height: 1.45;
}

.report-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.report-action-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    backdrop-filter 0.22s ease;
}

.report-actions .report-action-button.secondary-button,
.report-actions .report-action-button.primary-button,
.report-download-actions .primary-button,
.report-download-actions .secondary-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 10px 28px rgba(15, 23, 42, 0.1);
  color: #ffffff;
}

.report-actions .report-action-button.primary-button,
.report-actions .report-action-button.report-action-export,
.report-actions .primary-button.case-research-button,
.report-download-actions .primary-button,
.case-controls-inline .primary-button.case-research-button,
.case-shell-toolbar .primary-button.case-research-button {
  background: rgba(45, 45, 45, 0.22);
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 28px rgba(15, 23, 42, 0.14);
}

.report-actions .report-action-button:hover:not(:disabled):not(.is-completed),
.report-download-actions .primary-button:hover:not(:disabled),
.report-download-actions .secondary-button:hover:not(:disabled),
.case-controls-inline .primary-button.case-research-button:hover:not(:disabled),
.case-shell-toolbar .primary-button.case-research-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 34px rgba(15, 23, 42, 0.16);
}

.report-actions .report-action-button.primary-button:hover:not(:disabled),
.report-actions .report-action-button.report-action-export:hover:not(:disabled),
.report-actions .primary-button.case-research-button:hover:not(:disabled),
.report-download-actions .primary-button:hover:not(:disabled),
.case-controls-inline .primary-button.case-research-button:hover:not(:disabled),
.case-shell-toolbar .primary-button.case-research-button:hover:not(:disabled) {
  background: rgba(45, 45, 45, 0.36);
  border-color: rgba(255, 255, 255, 0.76);
}

.report-action-button:active:not(:disabled) {
  transform: translateY(0);
}

.report-action-button.action-confirm:not(:disabled) {
  animation: action-confirm-pulse 0.45s ease;
}

.report-actions .report-action-button.is-completed,
.report-action-button.is-completed {
  border-color: rgba(66, 97, 78, 0.88);
  background: rgba(66, 97, 78, 0.78);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 28px rgba(66, 97, 78, 0.22);
}

.report-actions .report-action-button.is-completed:hover:not(:disabled),
.report-action-button.is-completed:hover:not(:disabled) {
  background: rgba(66, 97, 78, 0.88);
  border-color: rgba(66, 97, 78, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 34px rgba(66, 97, 78, 0.28);
}

.report-action-export {
  margin-left: auto;
}

@keyframes action-confirm-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.report-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.report-page header {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}

.report-page section {
  margin-top: 22px;
}

.report-page p,
.report-page li {
  color: #334155;
  line-height: 1.55;
}

.report-page > header .eyebrow,
.report-page > header h2,
.report-page > header p {
  color: #ffffff;
}

.report-page .report-hero-section > div:not(.report-hero-callout) p {
  color: #ffffff;
}

.report-executive-summary {
  display: grid;
  gap: 14px;
}

.report-executive-summary-title {
  margin: 0;
  color: #42614E;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-executive-summary-intro {
  margin: 0;
  max-width: 72ch;
}

.report-company-brand-name {
  margin: 4px 0 0;
  color: #1e293b;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Bank Gothic", "Atkinson Hyperlegible", Arial, sans-serif;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
  align-items: start;
}

.report-summary-country {
  grid-column: 1;
  grid-row: 1;
}

.report-summary-company-number {
  grid-column: 2;
  grid-row: 1;
}

.report-summary-recommendation {
  grid-column: 1;
  grid-row: 2;
}

.report-summary-insights {
  grid-column: 3 / -1;
  grid-row: 1 / span 2;
}

.report-summary-points {
  display: grid;
  gap: 14px;
  margin: 4px 0 0;
}

.report-summary-point {
  display: grid;
  gap: 4px;
}

.report-summary-label,
.report-summary-point dt {
  margin: 0;
  color: #42614E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-summary-value,
.report-summary-point dd {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}

.report-summary-recommendation .report-summary-value {
  white-space: nowrap;
}

.report-risk-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(66, 97, 78, 0.12);
  color: #42614E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: baseline;
}

.panel-transparent .eyebrow,
.panel-transparent h2,
.panel-transparent h3 {
  color: #ffffff;
}

.report-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.report-hero-callout,
.report-side-panel,
.report-metric-card,
.report-field-card,
.export-selection-group,
.export-pack-column {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.report-hero-callout {
  padding: 18px;
  box-shadow: var(--shadow);
}

.report-hero-callout strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 18px;
}

.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.report-metric-card {
  padding: 14px 16px;
}

.report-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.report-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
  --report-section-title-height: 22px;
  --report-section-title-gap: 6px;
}

.report-side-panel-outcome {
  margin-top: 0;
}

.batch-card-progress {
  margin-top: 12px;
}

.batch-card-progress .research-progress-full {
  margin-bottom: 0;
}

.report-main-column,
.report-side-column,
.export-selection-stack {
  display: grid;
  gap: 16px;
}

.report-side-column::before {
  content: "";
  display: block;
  height: calc(var(--report-section-title-height) + var(--report-section-title-gap));
}

.report-summary-section {
  margin-top: 0 !important;
}

.report-section-head {
  margin-bottom: var(--report-section-title-gap);
}

.report-section-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.report-field-card {
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}

.report-field-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.report-field-card-head h4 {
  margin: 4px 0 0;
  font-size: 18px;
}

.report-field-card-body {
  min-width: 0;
}

.report-field-card-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.report-side-panel {
  padding: 16px;
}

.plain-stat-list,
.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-stat-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plain-stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.plain-stat-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.plain-stat-list strong {
  color: #0f172a;
}

.export-pack-panel {
  margin-bottom: 24px;
}

.export-pack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.export-pack-column {
  padding: 16px;
}

.export-master-toggle,
.export-selection-head,
.export-checkbox-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.export-master-toggle,
.export-selection-head {
  margin-bottom: 12px;
}

.export-checkbox-list {
  display: grid;
  gap: 10px;
}

.export-checkbox-list label,
.export-selection-head {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
}

.export-selection-group {
  padding: 14px;
}

.export-pack-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.report-download-panel {
  margin-top: 28px;
}

.report-audit-panel {
  margin-top: 22px;
}

.activity-log-panel .activity-log-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.activity-log-panel .activity-log-filters label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.activity-log-group {
  margin-top: 18px;
}

.activity-log-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.activity-log-table td,
.activity-log-table th {
  vertical-align: top;
}

.activity-log-table small {
  color: rgba(100, 116, 139, 0.95);
}

.report-download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  z-index: 1000;
}

.modal-sheet {
  width: min(860px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.wizard-step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.wizard-step-pill strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.wizard-step-pill span {
  font-size: 13px;
  font-weight: 700;
}

.wizard-step-pill.active {
  border-color: #b7cdfd;
  background: var(--blue-soft);
}

.wizard-step-pill.done {
  border-color: #b7ead5;
  background: #ecfdf5;
}

.wizard-body {
  min-height: 280px;
}

.wizard-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wizard-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.report-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.report-callout {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.report-callout h3 {
  margin-bottom: 8px;
}

.report-callout p + p {
  margin-top: 8px;
}

.report-callout ul {
  margin-top: 10px;
  padding-left: 18px;
}

.report-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.report-block div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.report-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid #b7cdfd;
  border-radius: 8px;
  background: #edf4ff;
  color: #1e3a8a;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .brand span:last-child,
  .brand-copy,
  .nav-item span,
  .sidebar-panel {
    display: none;
  }

  .sidebar {
    align-items: center;
    padding: 18px 12px;
  }

  .nav-item {
    justify-content: center;
    width: 48px;
    padding: 0;
  }

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

  .workspace-grid,
  .source-layout,
  .sources-page-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }

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

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

  .case-source-manager {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .report-grid,
  .report-callout-grid,
  .detail-field-body,
  .report-hero-section,
  .report-overview-layout,
  .export-pack-grid {
    grid-template-columns: 1fr;
  }

  .report-metric-grid,
  .report-field-grid,
  .wizard-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar,
  .case-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .case-controls {
    justify-content: flex-start;
  }

  .metrics-grid,
  .section-stack,
  .side-stack,
  .form-grid,
  .report-grid,
  .report-metric-grid,
  .report-field-grid,
  .scope-panel,
  .golden-record-grid {
    grid-template-columns: 1fr;
  }

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

  .form-actions {
    justify-content: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .country-add-form,
  .split-actions {
    grid-template-columns: 1fr;
  }

  .split-actions {
    display: grid;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    display: block;
  }

  .sidebar-toggle {
    left: 14px;
    top: 14px;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
  }

  .nav-list {
    display: flex;
  }

  .workspace {
    padding: 16px;
    --page-gutter: 16px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 40px 1fr;
    width: 100%;
  }

  .top-actions .primary-button {
    grid-column: 1 / -1;
  }

  .profile-row,
  .report-block div {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .sidebar,
  .topbar,
  .report-actions,
  .export-pack-panel,
  .toast {
    display: none;
  }

  .app-shell,
  .workspace {
    display: block;
    padding: 0;
  }

  .report-page {
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  .report-page > div:first-of-type,
  .report-page button {
    display: none !important;
  }

  .report-brand-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #dbe3ef;
    break-inside: avoid;
  }

  .report-brand-header img {
    max-height: 42px;
    max-width: 140px;
    object-fit: contain;
  }

  .report-brand-header span {
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 700;
  }

  .report-page header h2,
  .report-page header p,
  .report-page .eyebrow {
    color: #0f172a !important;
  }
}

.report-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.report-brand-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.report-brand-slot img {
  display: block;
  max-height: 40px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.report-brand-slot-client img {
  max-height: 60px;
  max-width: 195px;
}

.report-brand-slot span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.report-brand-slot-client {
  justify-content: flex-end;
  margin-left: auto;
}

.document-evidence-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.35);
}

.document-evidence-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 8rem;
  overflow: auto;
}

.structured-record-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.structured-record-list article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.structured-record-list article > strong {
  display: block;
  margin-bottom: 8px;
}

.structured-record-list dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.structured-record-list dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.structured-record-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.structured-record-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.filing-record-list {
  margin-top: 8px;
}

.activity-card-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.activity-record-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  min-width: 0;
}

.activity-record-card > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.activity-record-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.activity-record-card dl div {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.activity-record-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-record-card dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.resolved-field-value {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  white-space: pre-wrap;
}

.resolved-field-value small {
  color: var(--muted);
  line-height: 1.45;
}

.shareholders-mini-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.shareholders-mini-table th,
.shareholders-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}

.shareholders-mini-table th {
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 800;
}

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

.source-document-link {
  font-size: 12px;
  font-weight: 800;
}

.document-evidence-card details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.api-manager-panel {
  grid-column: 1 / -1;
}

.api-connection-form {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.api-connection-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.api-connection-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.api-connection-list article.inactive {
  opacity: 0.62;
}

.api-connection-list p,
.api-connection-list small,
.muted-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.api-connection-list strong,
.api-connection-list span {
  display: block;
}

/* API Control update: keep custom API manager visible at the top of Control */
.control-grid .api-manager-panel {
  grid-column: 1 / -1;
  grid-row: 1;
  border: 1px solid rgba(40, 88, 255, 0.22);
}

.control-grid .control-panel,
.control-grid .connection-status-panel {
  grid-row: 2;
}

.api-manager-panel .panel-header h2::after {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* API status: Authentication Required */
.status-pill.warning,
.count-pill.warning,
.badge.warning,
.pill.warning {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
}

/* API status: Connection Failed */
.status-pill.danger,
.count-pill.danger,
.badge.danger,
.pill.danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

/* API status: Active */
.status-pill.success,
.count-pill.success,
.badge.success,
.pill.success {
  background: #dcfce7 !important;
  color: var(--green) !important;
  border-color: #86efac !important;
}


/* API usage status colors */
.count-pill.success {
  background: #dcfce7 !important;
  color: var(--green) !important;
  border-color: #86efac !important;
}

.count-pill.warning {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
}

.count-pill.danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}


.forgot-password-row {
  margin-top: -6px;
}

.forgot-password-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 12px;
}

.forgot-password-link:hover {
  color: #dc2626;
}


.link-button {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.link-button:hover {
  text-decoration: underline;
}


/* API Portfolio one-line KPI layout */
.api-portfolio-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.api-portfolio-stat {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.api-portfolio-stat span {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}

.api-portfolio-stat strong {
  display: block;
  font-size: 22px;
  color: #0f172a;
}

.api-portfolio-stat.clickable {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.api-portfolio-stat.clickable:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(239, 246, 255, 0.92);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.api-portfolio-stat.clickable.active {
  border-color: rgba(37, 99, 235, 0.72);
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.95), rgba(239, 246, 255, 0.88));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 10px 24px rgba(37, 99, 235, 0.14);
}

.case-controls-inline {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
}

.case-controls-inline .primary-button.case-research-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
  background: rgba(45, 45, 45, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 28px rgba(15, 23, 42, 0.14);
  color: #ffffff;
}

.case-shell-toolbar .primary-button.case-research-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
  background: rgba(45, 45, 45, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 28px rgba(15, 23, 42, 0.14);
  color: #ffffff;
}

.case-controls-inline .primary-button.case-research-button:active:not(:disabled) {
  transform: translateY(0);
}

.case-research-button {
  min-height: 38px;
}

.case-status-picker {
  display: flex;
  align-items: center;
}

.case-status-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.case-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  font-size: 0;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  color: #64748b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 8px 22px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.case-status-icon svg {
  width: 16px;
  height: 16px;
}

.case-status-icon span {
  white-space: nowrap;
}

.case-status-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(15, 23, 42, 0.12);
}

.case-status-icon.tone-draft:hover {
  color: #607482;
}

.case-status-icon.tone-collecting:hover,
.case-status-icon.tone-extracted:hover {
  color: #2d2d2d;
}

.case-status-icon.tone-review:hover {
  color: #b37d00;
}

.case-status-icon.tone-completed:hover {
  color: #ffffff;
}

.case-status-icon.tone-draft.selected {
  background: rgba(234, 179, 8, 0.72);
  border-color: rgba(234, 179, 8, 0.88);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(234, 179, 8, 0.22);
}

.case-status-icon.tone-collecting.selected,
.case-status-icon.tone-extracted.selected {
  background: rgba(45, 45, 45, 0.78);
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 24px rgba(15, 23, 42, 0.2);
}

.case-status-icon.tone-review.selected {
  background: rgba(234, 88, 12, 0.72);
  border-color: rgba(234, 88, 12, 0.88);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(234, 88, 12, 0.22);
}

.case-status-icon.tone-completed.selected {
  background: rgba(66, 97, 78, 0.78);
  border-color: rgba(66, 97, 78, 0.92);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(66, 97, 78, 0.24);
}

.case-status-icon.selected:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 30px rgba(15, 23, 42, 0.16);
}

.case-status-icon.tone-completed.selected:hover {
  background: rgba(66, 97, 78, 0.88);
  border-color: rgba(66, 97, 78, 0.96);
}

.case-status-icon.tone-archive:hover {
  color: #607482;
}

.case-status-icon.tone-archive.selected {
  background: rgba(96, 116, 130, 0.78);
  border-color: rgba(96, 116, 130, 0.92);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(96, 116, 130, 0.24);
}

.case-status-icon.tone-archive.selected:hover {
  background: rgba(96, 116, 130, 0.88);
  border-color: rgba(96, 116, 130, 0.96);
}

.scroll-top-button {
  position: fixed;
  right: var(--page-gutter, 26px);
  bottom: var(--page-gutter, 26px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #ffffff;
  box-shadow: none;
  z-index: 70;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.scroll-top-button:hover {
  color: #ffffff;
  background: transparent;
  transform: translateY(-3px);
  box-shadow: none;
  opacity: 0.92;
}

.scroll-top-button svg {
  width: 34px;
  height: 34px;
  stroke-width: 3;
}

.scroll-edge-indicator {
  position: fixed;
  top: 50%;
  right: 12px;
  width: 2px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 35;
  transition: opacity 0.32s ease, height 0.16s ease-out;
}

.scroll-edge-indicator::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(96, 116, 130, 0) 0%,
    rgba(96, 116, 130, 0.14) 24%,
    rgba(96, 116, 130, 0.1) 72%,
    rgba(96, 116, 130, 0) 100%
  );
  opacity: var(--scroll-edge-track-opacity, 0);
  transition: opacity 0.32s ease;
}

.scroll-edge-indicator-line {
  position: absolute;
  inset: 0;
  display: block;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(212, 175, 88, 0.98) 0%,
    rgba(245, 240, 230, 0.95) 7%,
    rgba(255, 255, 255, 0.94) 20%,
    rgba(196, 210, 220, 0.72) 52%,
    rgba(96, 116, 130, 0.28) 78%,
    rgba(96, 116, 130, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.24),
    0 0 5px rgba(212, 175, 88, 0.38);
  will-change: height;
}

.research-progress-full {
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.95), rgba(203, 213, 225, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.research-progress-track {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.research-progress-fill {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.new-request-page {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
}

.new-request-glass {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.new-request-eyebrow {
  color: #64748b;
}

.new-request-form label {
  color: #475569;
}

.new-request-field input,
.new-request-field select,
.new-request-field textarea {
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.new-request-field input:focus,
.new-request-field select:focus,
.new-request-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.55);
}

.new-request-field-highlight {
  border-color: rgba(248, 113, 113, 0.45) !important;
  background: rgba(254, 242, 242, 0.72) !important;
}

.new-request-pill {
  background: rgba(219, 234, 254, 0.72);
  color: #1e40af;
}

.new-request-submit,
.new-request-batch-button {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.new-request-batch-button {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.72);
}


.api-test-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}

.api-test-history > div {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.82);
}

.api-test-history strong {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.api-test-history span {
  display: block;
  font-weight: 800;
  color: #0f172a;
}

.api-test-history small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}


.api-test-history.compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 10px 0 4px;
}

.api-test-history.compact > div {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(248, 250, 252, 0.72);
}

.api-test-history.compact strong {
  min-width: 34px;
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.api-test-history.compact span {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}


.api-test-history.single-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 4px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.72);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  overflow-x: auto;
  white-space: nowrap;
}

.api-test-history.single-row strong {
  color: #64748b;
  font-weight: 900;
}


.api-test-history.two-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 4px;
}

.api-history-pill {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.api-history-pill.success {
  background: #dcfce7;
  color: var(--green);
  border-color: #86efac;
}

.api-history-pill.warning {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

.api-history-pill.danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.api-history-pill.neutral {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}


.api-test-progress {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.82);
}

.api-test-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #0f172a;
}

.api-test-progress-track {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.api-test-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #4f6df5;
  transition: width 180ms ease;
}


.api-test-progress-top .secondary-button {
  padding: 6px 10px;
  min-height: auto;
  font-size: 12px;
}

.research-progress {
  width: min(420px, 100%);
}

.research-progress.api-test-progress {
  width: min(420px, 100%);
}

.detail-field-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.detail-field-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
}

.detail-field-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-field-head h3 {
  margin: 4px 0 0;
}

.detail-field-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-field-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.detail-field-main {
  min-width: 0;
}

.detail-field-side {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.detail-field-side div,
.detail-field-side p {
  margin: 0;
}

.detail-field-side strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.detail-field-side span {
  display: block;
  line-height: 1.45;
}

.detail-field-side input {
  width: 100%;
}

.report-page table {
  min-width: 0;
}

.report-compact-table td:nth-child(2) {
  max-width: 460px;
  overflow-wrap: anywhere;
}

.report-compact-table td:last-child {
  min-width: 220px;
}


/* Hide Evidence Trail column */
.field-validation-table th:nth-child(4),
.field-validation-table td:nth-child(4) {
  display: none !important;
}


/* Hide extracted evidence trail column */
.validation-table th:nth-child(4),
.validation-table td:nth-child(4),
.field-validation-table th:nth-child(4),
.field-validation-table td:nth-child(4) {
  display: none !important;
}

/* Brand system overrides (June 2026 guidelines) */
.new-request-page {
  background: transparent;
}

.new-request-glass {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(238, 239, 240, 0.52);
  box-shadow: var(--shadow);
  width: 100%;
}

.plan-billing-admin-stack {
  display: grid;
  gap: 22px;
}

.plan-billing-admin-intro p,
.plan-billing-pricing-intro p,
.tenants-admin-intro p {
  max-width: 760px;
  margin: 8px 0 0;
}

.plan-billing-tenant-workspace h3 {
  margin: 0 0 8px;
}

.country-flag-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  padding: 22px 2px 8px;
  overflow: visible;
}

.country-flag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transform: scale(1);
  transform-origin: center bottom;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.country-flag-button img {
  width: 24px;
  height: 17px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  opacity: 0.58;
  transition: opacity 0.52s ease, filter 0.52s ease;
}

.country-flag-grid.is-flag-hovering .country-flag-button.flag-proximity-0 {
  transform: scale(1.72);
  z-index: 5;
}

.country-flag-grid.is-flag-hovering .country-flag-button.flag-proximity-1 {
  transform: scale(1.44);
  z-index: 4;
}

.country-flag-grid.is-flag-hovering .country-flag-button.flag-proximity-2 {
  transform: scale(1.26);
  z-index: 3;
}

.country-flag-grid.is-flag-hovering .country-flag-button.flag-proximity-0 img,
.country-flag-grid.is-flag-hovering .country-flag-button.flag-proximity-1 img,
.country-flag-grid.is-flag-hovering .country-flag-button.flag-proximity-2 img {
  opacity: 1;
  filter: saturate(1.18) brightness(1.04);
}

.country-flag-button.selected {
  background: transparent;
}

.country-flag-button.selected img {
  opacity: 0.92;
  filter: saturate(1.12);
}

.country-flag-button.is-unavailable {
  cursor: not-allowed;
}

.country-flag-button.is-unavailable img {
  filter: grayscale(100%);
  opacity: 0.55;
}

.country-flag-grid.is-flag-hovering .country-flag-button.is-unavailable.flag-proximity-0 img,
.country-flag-grid.is-flag-hovering .country-flag-button.is-unavailable.flag-proximity-1 img,
.country-flag-grid.is-flag-hovering .country-flag-button.is-unavailable.flag-proximity-2 img {
  opacity: 0.82;
  filter: grayscale(100%) saturate(1.08) brightness(1.04);
}

.country-research-availability-panel .panel-header p {
  max-width: 760px;
}

.country-transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.country-transfer-box {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 320px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.country-transfer-box h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.country-transfer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 280px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.18);
}

.country-transfer-item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.country-transfer-item:last-child {
  border-bottom: 0;
}

.country-transfer-item:hover {
  background: rgba(238, 239, 240, 0.08);
}

.country-transfer-item.selected {
  background: rgba(179, 125, 0, 0.22);
  color: #fff;
  font-weight: 700;
}

.country-transfer-empty {
  padding: 14px 12px;
  margin: 0;
}

.country-transfer-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.country-transfer-arrow {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.new-request-field select option:disabled {
  color: #94a3b8;
}

.new-country-research-banner {
  position: relative;
  margin-bottom: 18px;
  padding: 14px 42px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.12);
  color: #ecfdf5;
}

.new-country-research-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.new-country-research-banner-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.new-country-research-banner-close svg {
  width: 16px;
  height: 16px;
}

.new-country-research-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

.new-country-research-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.country-field-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.country-field-label {
  font-weight: 800;
}

.country-field-inline-help {
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.country-field-required select {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.country-field-required select:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(254, 202, 202, 0.55);
}

.new-request-pill {
  background: rgba(209, 213, 219, 0.76);
  color: #2d2d2d;
}

.new-request-submit,
.new-request-batch-button {
  box-shadow: 0 10px 24px rgba(45, 45, 45, 0.16);
}

.batch-run-button {
  color: #ffffff !important;
}

.batch-run-button span,
.batch-run-button i,
.batch-run-button svg {
  color: #ffffff !important;
}

.batch-name-toggle .batch-toggle-icon,
.batch-name-toggle svg {
  transition: transform 0.28s ease;
  transform: rotate(0deg);
}

.batch-name-toggle.is-expanded .batch-toggle-icon,
.batch-name-toggle.is-expanded svg {
  transform: rotate(180deg);
}

.research-progress-full,
.api-test-progress {
  border-color: rgba(45, 45, 45, 0.2);
  background: linear-gradient(180deg, rgba(238, 239, 240, 0.95), rgba(209, 213, 219, 0.9));
}

.research-progress-fill,
.api-test-progress-fill {
  background: linear-gradient(90deg, #607482, #8b9daa);
}

/* UI refinement pass (requested) */
.sidebar {
  /* reduce frosting intensity by ~30% */
  background:
    linear-gradient(170deg, rgba(22, 22, 22, 0.62) 0%, rgba(36, 36, 36, 0.58) 60%, rgba(52, 52, 52, 0.54) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(238, 239, 240, 0.82);
}

.company-name-field {
  margin-top: 10px;
}

.metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: none;
}

.metric-card,
.panel,
.case-header,
.report-page {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(238, 239, 240, 0.4);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow:
    0 22px 56px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.metric-card {
  min-height: 0;
}

.new-report-page,
.report-page {
  background: rgba(238, 239, 240, 0.38);
}

.modal-sheet.export-wizard-modal {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(238, 239, 240, 0.44);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.wizard-step-description {
  margin-top: 8px;
  max-width: 62ch;
  color: rgba(45, 45, 45, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

.wizard-step-surface {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.36);
}

.wizard-step-surface h3 {
  margin: 0 0 12px;
}

.export-checkbox-list label,
.export-selection-head,
.export-master-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.export-checkbox-list label {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.export-checkbox-list label span,
.export-selection-head strong,
.export-master-toggle strong {
  order: 1;
  text-align: left;
}

.export-checkbox-list label input[type="checkbox"],
.export-selection-head input[type="checkbox"],
.export-master-toggle input[type="checkbox"] {
  order: 2;
  margin-left: auto;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.report-hero-callout,
.report-side-panel,
.report-metric-card,
.report-field-card,
.export-selection-group,
.export-pack-column,
.report-callout,
.report-block,
.empty-state,
.case-list-panel,
.batch-list .batch-card,
.source-list article,
.discrepancy-list article,
.research-summary,
.country-row,
.api-connection-list article,
.document-evidence-card,
.activity-record-card {
  background: rgba(255, 255, 255, 0.36) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-item {
  transition: background 0.2s ease, color 0.2s ease, transform 0.22s ease;
}

.nav-item i,
.nav-item svg {
  transform-origin: center;
  transition: transform 0.3s ease, color 0.24s ease, filter 0.24s ease;
}

.nav-item:hover {
  transform: translateY(-2px);
}

.nav-item-disabled:hover,
.nav-item:disabled:hover {
  transform: none;
}

.nav-item:hover i,
.nav-item:hover svg {
  color: #ffffff;
  animation: navIconExplodeHover 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item-disabled:hover i,
.nav-item-disabled:hover svg,
.nav-item:disabled:hover i,
.nav-item:disabled:hover svg {
  color: rgba(255, 255, 255, 0.24);
  animation: none;
}

.nav-item.active i,
.nav-item.active svg {
  color: #000000;
  animation: navIconExplodeAssemble 980ms cubic-bezier(0.16, 0.84, 0.2, 1);
}

@keyframes navIconExplodeHover {
  0% {
    transform: scale(0.96) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  38% {
    transform: translate(-2px, -3px) scale(1.2) rotate(-15deg);
    filter:
      drop-shadow(10px -8px 0 rgba(0, 0, 0, 0.2))
      drop-shadow(-9px 7px 0 rgba(0, 0, 0, 0.16))
      drop-shadow(6px 10px 0 rgba(0, 0, 0, 0.14));
  }
  100% {
    transform: translateY(-2px) scale(1.14) rotate(0deg);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.34));
  }
}

@keyframes navIconExplodeAssemble {
  0% {
    transform: scale(0.86) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(45, 45, 45, 0));
  }
  30% {
    transform: translate(-3px, -4px) scale(1.26) rotate(-18deg);
    filter:
      drop-shadow(14px -10px 0 rgba(45, 45, 45, 0.28))
      drop-shadow(-12px 9px 0 rgba(45, 45, 45, 0.24))
      drop-shadow(8px 13px 0 rgba(45, 45, 45, 0.2));
  }
  58% {
    transform: translate(2px, 1px) scale(1.1) rotate(9deg);
    filter:
      drop-shadow(6px -4px 0 rgba(45, 45, 45, 0.2))
      drop-shadow(-5px 5px 0 rgba(45, 45, 45, 0.16));
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 3px 8px rgba(45, 45, 45, 0.22));
  }
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.platform-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.platform-plan-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  background: rgba(238, 239, 240, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.platform-plan-card.active {
  border-color: rgba(179, 125, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(179, 125, 0, 0.16);
}

.platform-plan-tagline {
  color: #42614e;
  font-weight: 700;
}

.platform-plan-price {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #242424;
}

.platform-plan-outcome {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.platform-plan-current {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(66, 97, 78, 0.08);
}

.platform-locked-panel {
  border-style: dashed;
}

.case-platform-services-strip {
  margin: 0 0 10px;
}

.case-platform-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.case-platform-service-box {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  line-height: 1.35;
}

.case-platform-service-box strong {
  font-size: 12px;
  line-height: 1.25;
}

.case-platform-service-box p {
  margin: 0;
  font-size: 11px;
  color: #607482;
}

.case-platform-service-box .count-pill {
  justify-self: start;
  font-size: 10px;
  padding: 2px 7px;
}

.case-platform-service-box .compact-button {
  justify-self: start;
  font-size: 11px;
  padding: 4px 8px;
  min-height: 0;
}

.case-platform-service-box.is-active {
  border-color: #86efac;
  background: rgba(220, 252, 231, 0.45);
}

.case-platform-service-box.is-active > strong {
  color: var(--green);
}

.report-field-summary {
  margin: 4px 0 0;
  color: #607482;
  font-size: 12px;
}

@media (max-width: 980px) {
  .platform-plan-grid,
  .case-platform-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Plan & Billing Control Panel */
.plan-billing-shell {
  display: grid;
  gap: 18px;
}

.plan-billing-header h2 {
  margin-top: 6px;
}

.plan-billing-section h3 {
  margin: 8px 0 14px;
}

.plan-billing-metrics {
  margin-top: 12px;
}

.plan-billing-metrics.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-billing-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.plan-billing-stat-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.plan-billing-stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  color: #242424;
  line-height: 1.1;
}

.plan-billing-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.plan-billing-filter-strip .active-pack {
  border-color: rgba(66, 97, 78, 0.55);
  background: rgba(66, 97, 78, 0.08);
}

.plan-billing-subheading {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #24323d;
}

.billing-table-wrap {
  margin-top: 8px;
}

.billing-table-wrap table th,
.billing-table-wrap table td {
  font-size: 13px;
  vertical-align: top;
}

.plan-billing-admin-edit {
  border: 1px solid rgba(66, 97, 78, 0.22);
  background: rgba(66, 97, 78, 0.04);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 28, 34, 0.45);
}

.evc-prompt-modal {
  width: min(520px, 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.plan-billing-disclosure {
  margin: 18px 0;
}

.plan-billing-disclosure-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.plan-billing-disclosure-toggle span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}

.plan-billing-disclosure-toggle small {
  font-weight: 500;
}

.plan-billing-disclosure-panel {
  margin-top: 10px;
}

.plan-billing-disclosure-hint {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #607482;
  line-height: 1.45;
}

.plan-billing-detail-grid,
.plan-billing-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.plan-billing-detail-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.plan-billing-detail-card.highlight-current {
  border: 2px solid #42614e;
  box-shadow: 0 0 0 1px rgba(66, 97, 78, 0.12);
}

.plan-billing-detail-card.highlight-new-monthly {
  border: 2px solid #b37d00;
  box-shadow: 0 0 0 1px rgba(179, 125, 0, 0.12);
}

.plan-billing-detail-card p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.plan-billing-callout {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(66, 97, 78, 0.08);
  border-left: 3px solid rgba(66, 97, 78, 0.45);
  line-height: 1.55;
}

.plan-billing-callout.success {
  background: rgba(66, 97, 78, 0.12);
  border-left-color: rgba(66, 97, 78, 0.65);
}

.tenant-discount-banner {
  margin: 0 0 16px;
  background: rgba(45, 74, 58, 0.92);
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.tenant-discount-banner strong {
  color: #fff;
  font-size: 15px;
}

.tenant-discount-banner-detail {
  margin: 8px 0 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  opacity: 0.98;
}

.billing-price-discounted {
  display: inline;
  line-height: 1.45;
  color: #334155;
}

.billing-price-discounted s {
  opacity: 0.85;
}

.metric-card-plan-price small.plan-price-reduction-note,
.metric-card-report-price small.plan-price-reduction-note {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.plan-price-reduction-duration {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: #2d5a3d;
}

.plan-price-reduction-context {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

.plan-billing-callout.warning {
  background: rgba(179, 125, 0, 0.08);
  border-left-color: rgba(179, 125, 0, 0.55);
}

.plan-billing-callout.danger {
  background: rgba(185, 28, 28, 0.08);
  border-left: 3px solid rgba(185, 28, 28, 0.65);
  color: #7f1d1d;
  margin-bottom: 16px;
}

.topbar-usage-alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(185, 28, 28, 0.35);
  color: #991b1b;
  font-size: 14px;
  line-height: 1.45;
  max-width: 760px;
}

.plan-billing-calculator-form {
  grid-template-columns: 1fr;
  gap: 14px;
}

.plan-billing-field-wide {
  min-width: 0;
}

.plan-billing-field-capacity {
  max-width: 360px;
  margin-left: 20px;
}

.plan-billing-select-wide,
.plan-billing-calculator-form select {
  width: 100%;
  min-width: 0;
}

.plan-billing-calculator-form .plan-billing-select-wide {
  max-width: 100%;
}

@media (max-width: 980px) {
  .plan-billing-field-capacity {
    margin-left: 0;
    max-width: 100%;
  }
}

.plan-billing-month-sim {
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(66, 97, 78, 0.22);
  border-radius: 12px;
  background: rgba(66, 97, 78, 0.05);
}

.plan-billing-month-sim .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.plan-billing-month-sim-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.plan-billing-month-sim-buttons .active-pack {
  border-color: rgba(66, 97, 78, 0.65);
  background: rgba(66, 97, 78, 0.14);
  font-weight: 700;
}

.plan-billing-usage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}

.plan-billing-usage-header strong {
  font-size: 28px;
  font-weight: 800;
  color: #242424;
}

.plan-billing-progress-wrap {
  margin: 8px 0 18px;
}

.plan-billing-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #607482;
  margin-bottom: 8px;
}

.plan-billing-progress-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.08);
  overflow: hidden;
}

.plan-billing-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.plan-billing-progress-fill.state-normal {
  background: linear-gradient(90deg, #42614e, #5a8268);
}

.plan-billing-progress-fill.state-warning,
.plan-billing-progress-fill.extension.state-warning {
  background: linear-gradient(90deg, #b37d00, #d4a017);
}

.plan-billing-progress-fill.state-overage,
.plan-billing-progress-fill.extension.state-overage {
  background: linear-gradient(90deg, #991b1b, #dc2626);
}

.plan-billing-progress-fill.extension {
  transform: translateX(-100%);
}

.plan-billing-progress-note {
  margin-top: 10px;
}

.plan-billing-inline-form {
  display: grid;
  gap: 10px;
  max-width: 360px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.plan-billing-capacity-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.plan-billing-confirm-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(66, 97, 78, 0.28);
  border-radius: 12px;
  background: rgba(66, 97, 78, 0.06);
}

.plan-billing-adjustment-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.plan-billing-evc-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.plan-billing-evc-packs .active-pack {
  border-color: rgba(66, 97, 78, 0.55);
  box-shadow: inset 0 0 0 1px rgba(66, 97, 78, 0.25);
}

.billing-payments-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.billing-payments-overview-grid {
  gap: 20px;
}

.plan-billing-detail-card-clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.plan-billing-detail-card-clickable:hover {
  border-color: rgba(66, 97, 78, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.plan-billing-detail-card-clickable:focus-visible {
  outline: 2px solid rgba(66, 97, 78, 0.55);
  outline-offset: 2px;
}

.professional-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.professional-service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.professional-service-card.theme-blue {
  --pro-accent: #2563eb;
  --pro-accent-soft: rgba(37, 99, 235, 0.1);
}

.professional-service-card.theme-purple,
.professional-service-card.theme-violet {
  --pro-accent: #7c3aed;
  --pro-accent-soft: rgba(124, 58, 237, 0.1);
}

.professional-service-card.theme-gold {
  --pro-accent: #b8860b;
  --pro-accent-soft: rgba(184, 134, 11, 0.12);
}

.professional-service-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.professional-service-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.professional-service-title-row i,
.professional-service-title-row svg {
  width: 28px;
  height: 28px;
  color: var(--pro-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.professional-service-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--pro-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.professional-service-card h4 {
  margin: 0;
  color: var(--pro-accent);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.professional-service-price-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pro-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.professional-service-price-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.professional-service-price-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.professional-service-price-table strong {
  color: var(--pro-accent);
}

.professional-service-includes .eyebrow,
.professional-service-purpose .eyebrow {
  color: var(--pro-accent);
}

.professional-service-includes ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.professional-service-includes li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.professional-service-includes li i,
.professional-service-includes li svg {
  width: 16px;
  height: 16px;
  color: var(--pro-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.professional-service-purpose {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--pro-accent-soft);
}

.professional-service-purpose p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.professional-service-duration {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.professional-service-duration select {
  max-width: 280px;
}

@media (max-width: 1100px) {
  .professional-services-grid {
    grid-template-columns: 1fr;
  }
}

.tenant-pricing-admin-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tenant-pricing-subtabs {
  margin-bottom: 4px;
}

.tenants-admin-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tenants-admin-subtabs {
  margin-bottom: 0;
}

.policy-matrix-panel.is-collapsed .panel-header {
  margin-bottom: 0;
}

.policy-matrix-toggle i,
.policy-matrix-toggle svg {
  width: 18px;
  height: 18px;
}

.tenant-pricing-preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 16px;
}

.tenant-pricing-preview-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.tenant-pricing-assignment-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.tenant-pricing-assignment-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-matrix-collapsible {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.pricing-matrix-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: left;
}

.pricing-matrix-toggle:hover {
  background: rgba(255, 255, 255, 0.45);
}

.pricing-matrix-toggle i,
.pricing-matrix-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #64748b;
}

.pricing-matrix-body {
  padding: 0 14px 14px;
}

.pricing-matrix-body .pricing-markup-table-wrap {
  margin-top: 0;
}

.tenant-pricing-reference {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
}

.tenant-pricing-reference summary {
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.pricing-markup-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.pricing-markup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pricing-markup-table th,
.pricing-markup-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.pricing-markup-table th:first-child,
.pricing-markup-table td:first-child {
  text-align: left;
}

.pricing-markup-table thead th {
  background: rgba(15, 23, 42, 0.04);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-markup-table .pricing-col-basic {
  background: rgba(255, 183, 120, 0.18);
}

.pricing-markup-table .pricing-col-editable {
  padding: 6px 8px;
}

.pricing-basic-input {
  width: 100%;
  min-width: 72px;
  max-width: 96px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-weight: 700;
  text-align: right;
  background: rgba(255, 255, 255, 0.85);
}

.tenant-pricing-live-preview {
  margin: 16px 0;
}

@media (max-width: 980px) {
  .tenant-pricing-assignment-grid {
    grid-template-columns: 1fr;
  }
}

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

.billing-addon-checkout {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.billing-payment-method-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.billing-payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.billing-payment-option.active {
  border-color: rgba(66, 97, 78, 0.55);
  background: rgba(66, 97, 78, 0.08);
}

.billing-payment-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.billing-payment-option input {
  margin: 0;
}

@media (max-width: 980px) {
  .plan-billing-detail-grid,
  .plan-billing-upgrade-grid,
  .plan-billing-metrics.compact,
  .plan-billing-capacity-form,
  .plan-billing-stat-row {
    grid-template-columns: 1fr;
  }
}

.ai-admin-stack {
  display: grid;
  gap: 24px;
}

.ai-admin-totals {
  margin-top: 8px;
}

.ai-global-controls {
  margin-top: 18px;
  align-items: end;
}

.ai-maintenance-toggle {
  align-self: center;
  margin-top: 8px;
}

.ai-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.ai-provider-card.is-disabled {
  opacity: 0.72;
}

.ai-provider-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.ai-provider-metrics strong {
  color: var(--text);
}

.ai-provider-form {
  margin-bottom: 12px;
}

.ai-activity-table-wrap {
  overflow-x: auto;
}

.ai-activity-table {
  width: 100%;
  min-width: 720px;
}

.ai-activity-table .step-status.success {
  color: #15803d;
}

.ai-activity-table .step-status.danger {
  color: #b91c1c;
}

.has-tooltip {
  cursor: help;
}

.report-metric-card.has-tooltip,
.confidence.has-tooltip {
  position: relative;
}

.management-record-list article {
  margin-bottom: 12px;
}
