/* public/stylesheets/style.css */
/* Bootstrap and Bootstrap Icons now load from the shared same-origin partial. */

body {
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
}

.tiny {
  font-size: 12px !important;
}

.logo {
  margin:10px;
}

#progressMessage {
  max-height: 400px; 
  overflow-y: auto;
  font-size: 10px;
  font-family: "Courier New", monospace; /* Set a monospace font */
  white-space: pre-wrap; /* Preserve the whitespace and line breaks */
  width: 100%;
}

#progressMessage:empty {
  display: none;
}

#title {
  font-size: 18px;
}

.body {
  font-size: 12px;
}

.red {
  color: red;
}

.orange {
  color: orange;
}

.sidebar-buttons .btn { width: 100%; }

.prompt { font-weight: bold;  }
.response {  }
.metaDate { font-size: .8em; }

#infoTable h1 {
    font-size: 24px; /* Adjust the size as needed */
    color: #000; /* A dark grey for readability */
    margin-bottom: 10px; /* Space after the heading */
    font-weight: bold; /* Optional: makes the text bold */
}

#infoTable h2 {
    font-size: 20px;
    color: #000; /* Slightly lighter than h1 for distinction */
    margin-bottom: 8px;
    font-weight: bold;
}

#infoTable h3 {
    font-size: 18px;
    color: #000;
    margin-bottom: 6px;
    font-weight: bold;
}

#infoTable p {
    font-size: 16px;
    color: #000; /* Standard black for paragraph text */
    margin-bottom: 10px;
    line-height: 1.6; /* Improves readability */
}

#infoTable a {
    color: #0066cc; /* A standard blue for links */
    text-decoration: none; /* Removes underline */
}

#infoTable a:hover {
    text-decoration: underline; /* Underline on hover for clarity */
}

#infoTable ul, #infoTable ol {
    margin-bottom: 10px;
    padding-left: 20px; /* Indentation for list items */
}

#infoTable li {
    margin-bottom: 5px; /* Space between list items */
}

.summary-cell,
.keywords-cell {
  max-height: 100px;
  max-width: 300px;
  overflow-y: auto;
  overflow-x: auto;
  font-size: 12px;
  display: block;
  white-space: pre-wrap;
}

.terminal-card {
  border: none;
}

.terminal-display {
  background-color: #111827;
  color: #f9fafb;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #1f2937;
  padding: 1rem;
  height: 420px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.terminal-line {
  margin: 0;
  line-height: 1.4;
}

.terminal-line + .terminal-line {
  margin-top: 0.35rem;
}

.terminal-stdout {
  color: #a5f3fc;
}

.terminal-stderr {
  color: #fca5a5;
}

.terminal-status {
  color: #86efac;
}

.app-card {
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.app-card:active {
  border-color: #0b5ed7;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

:root {
  --sight-navy: #142f53;
  --sight-blue: #00adee;
  --sight-charcoal: #231f20;
  --sight-muted: #5f666b;
  --sight-line: #e6e8e8;
  --sight-paper: #ffffff;
  --sight-wash: #f4f5f5;
  --sight-wash-strong: #eef2f4;
  --sight-gold: #fcba63;
  --sight-red: #9f1c37;
  --sight-danger: #9f1c37;
  --sight-green: #1f8f5f;
  --sight-action: #007fb0;
  --sight-action-hover: #006c96;
  --sight-accent-wash: rgba(0, 173, 238, 0.08);
  --sight-shadow: 0 10px 26px rgba(20, 47, 83, 0.055);
  --sight-shadow-hover: 0 14px 32px rgba(20, 47, 83, 0.1);
  --sight-bg: #f6f8fb;
  --sight-surface: #ffffff;
  --sight-surface-raised: #ffffff;
  --sight-surface-muted: #f8fafc;
  --sight-foreground: #1f2937;
  --sight-foreground-strong: #17324d;
  --sight-foreground-muted: #64748b;
  --sight-border: #dfe6ee;
  --sight-border-strong: #cbd5e1;
  --sight-ring: rgba(0, 173, 238, 0.34);
  --sight-serif: Georgia, "Times New Roman", Times, serif;
  --sight-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sight-priority-critical-bg: #b42318;
  --sight-priority-critical-fg: #ffffff;
  --sight-priority-critical-border: #5f0f0b;
  --sight-priority-high-bg: #b42318;
  --sight-priority-high-fg: #ffffff;
  --sight-priority-high-border: #9f241a;
  --sight-priority-info-bg: #087693;
  --sight-priority-info-fg: #ffffff;
  --sight-priority-info-border: #075d7e;
  --sight-priority-warning-bg: #b7791f;
  --sight-priority-warning-fg: #ffffff;
  --sight-priority-warning-border: #8a5f12;
  --sight-priority-review-bg: #4056a1;
  --sight-priority-review-fg: #ffffff;
  --sight-priority-review-border: #324580;
  --sight-priority-success-bg: #13845f;
  --sight-priority-success-fg: #ffffff;
  --sight-priority-success-border: #0f6b4c;
  --sight-priority-neutral-bg: #617386;
  --sight-priority-neutral-fg: #ffffff;
  --sight-priority-neutral-border: #4b5d70;
  --sight-priority-muted-bg: #e7edf4;
  --sight-priority-muted-fg: #334155;
  --sight-priority-muted-border: #cfd9e5;
}

/* Shared dark-theme tokens must live in the global bundle so split page assets
   and inline module styles inherit the same palette. */
html[data-sight-theme="dark"],
body[data-sight-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #0b1118;
  --bs-body-color: #e5edf5;
  --bs-secondary-color: #9aaabd;
  --bs-tertiary-bg: #111b26;
  --bs-border-color: #2b3a4c;
  --sight-navy: #dbeafe;
  --sight-blue: #67d1f2;
  --sight-charcoal: #e5edf5;
  --sight-muted: #9aaabd;
  --sight-line: #2b3a4c;
  --sight-paper: #111b26;
  --sight-wash: #0b1118;
  --sight-wash-strong: #162233;
  --sight-action: #67d1f2;
  --sight-action-hover: #93def5;
  --sight-danger: #fda4af;
  --sight-accent-wash: rgba(103, 209, 242, 0.13);
  --sight-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  --sight-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.42);
  --sight-bg: #0b1118;
  --sight-surface: #111b26;
  --sight-surface-raised: #162233;
  --sight-surface-muted: #0f1824;
  --sight-foreground: #e5edf5;
  --sight-foreground-strong: #eaf2fb;
  --sight-foreground-muted: #9aaabd;
  --sight-border: #2b3a4c;
  --sight-border-strong: #33485d;
  --sight-ring: rgba(103, 209, 242, 0.34);
}

/* Shared task/workflow tokens for status, priority, agenda, due-date, and people signals. */
.sight-token {
  --sight-token-bg: #f8fafc;
  --sight-token-border: #d8e0ea;
  --sight-token-text: #344256;
  --sight-token-dot: #8a9aac;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  max-width: 100%;
  min-height: 1.55rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--sight-token-border);
  border-radius: 999px;
  background: var(--sight-token-bg);
  color: var(--sight-token-text);
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.sight-token::before {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--sight-token-dot);
}

.sight-token[data-tone="critical"] {
  --sight-token-bg: #fff1f2;
  --sight-token-border: #7f1d1d;
  --sight-token-text: #9f1239;
  --sight-token-dot: #e11d48;
  box-shadow: inset 0 0 0 1px rgba(127, 29, 29, 0.18);
}

.sight-token[data-tone="high"] {
  --sight-token-bg: #fff1f2;
  --sight-token-border: #fecdd3;
  --sight-token-text: #9f1239;
  --sight-token-dot: #e11d48;
}

.sight-token[data-tone="danger"] {
  --sight-token-bg: #fef2f2;
  --sight-token-border: #fecaca;
  --sight-token-text: #991b1b;
  --sight-token-dot: #dc2626;
}

.sight-token[data-tone="warning"] {
  --sight-token-bg: #fff7ed;
  --sight-token-border: #fed7aa;
  --sight-token-text: #9a3412;
  --sight-token-dot: #f97316;
}

.sight-token[data-tone="review"] {
  --sight-token-bg: #f5f3ff;
  --sight-token-border: #ddd6fe;
  --sight-token-text: #5b21b6;
  --sight-token-dot: #8b5cf6;
}

.sight-token[data-tone="info"] {
  --sight-token-bg: #ecfeff;
  --sight-token-border: #a5f3fc;
  --sight-token-text: #155e75;
  --sight-token-dot: #06b6d4;
}

.sight-token[data-tone="success"] {
  --sight-token-bg: #ecfdf3;
  --sight-token-border: #bbf7d0;
  --sight-token-text: #166534;
  --sight-token-dot: #22c55e;
}

.sight-token[data-tone="neutral"] {
  --sight-token-bg: #f1f5f9;
  --sight-token-border: #cbd5e1;
  --sight-token-text: #334155;
  --sight-token-dot: #64748b;
}

.sight-token[data-tone="muted"] {
  --sight-token-bg: #f8fafc;
  --sight-token-border: #e2e8f0;
  --sight-token-text: #64748b;
  --sight-token-dot: #cbd5e1;
}

.sight-person-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.sight-user-avatar {
  --sight-user-avatar-size: 1.75rem;
  --sight-user-avatar-ring: #0b8eb5;
  --sight-user-avatar-bg: color-mix(in srgb, var(--sight-user-avatar-ring) 14%, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--sight-user-avatar-size);
  height: var(--sight-user-avatar-size);
  border: 2px solid var(--sight-user-avatar-ring);
  border-radius: 50%;
  background: var(--sight-user-avatar-bg);
  color: #17324d;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.82), 0 1px 3px rgba(15, 23, 42, 0.16);
}

.sight-user-avatar--xs {
  --sight-user-avatar-size: 1.3rem;
  font-size: 0.54rem;
}

.sight-user-avatar--sm {
  --sight-user-avatar-size: 1.55rem;
  font-size: 0.6rem;
}

.sight-user-avatar--lg {
  --sight-user-avatar-size: 2.65rem;
  font-size: 0.86rem;
}

.sight-user-avatar__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sight-user-avatar--fallback .sight-user-avatar__image,
.sight-user-avatar__image[hidden] {
  display: none;
}

.sight-user-avatar__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sight-user-avatar--image .sight-user-avatar__initials {
  display: none;
}

.sight-user-avatar--fallback .sight-user-avatar__initials {
  display: inline-flex;
}

.sight-user-avatar--empty {
  border-style: dashed;
  background: #f8fafc;
  color: #8a9aab;
  box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.62);
}

.sight-user-avatar--more {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #526173;
  font-size: 0.58rem;
}

.sight-user-avatar-stack {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.sight-user-avatar-stack .sight-user-avatar + .sight-user-avatar {
  margin-left: -0.38rem;
}

.sight-user-avatar-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.sight-user-avatar-summary__text {
  min-width: 0;
  overflow: hidden;
  color: #263748;
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-user-avatar {
  --sight-user-avatar-bg: color-mix(in srgb, var(--sight-user-avatar-ring) 24%, #111b26);
  color: #e5edf5;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.82), 0 1px 3px rgba(0, 0, 0, 0.36);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-user-avatar--empty {
  background: #111b26;
  color: #94a3b8;
  box-shadow: 0 0 0 1px rgba(51, 72, 93, 0.72);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-user-avatar--more {
  border-color: #33485d;
  background: #162233;
  color: #dbeafe;
}

.sight-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 1.75rem;
  padding: 0.16rem 0.48rem 0.16rem 0.2rem;
  border: 1px solid #cddff3;
  border-radius: 999px;
  background: #f1f7ff;
  color: #16375b;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.1;
}

.sight-person-chip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: #1d70b8;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 850;
}

.sight-person-chip__avatar.sight-user-avatar {
  --sight-user-avatar-size: 1.3rem;
  width: var(--sight-user-avatar-size);
  height: var(--sight-user-avatar-size);
  border-width: 2px;
  background: var(--sight-user-avatar-bg);
  color: #17324d;
  font-size: 0.54rem;
}

.sight-person-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-person-chip[data-empty="true"] {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.sight-person-chip[data-empty="true"] .sight-person-chip__avatar {
  background: #cbd5e1;
  color: #475569;
}

.sight-person-chip[data-empty="true"] .sight-person-chip__avatar.sight-user-avatar {
  background: #f8fafc;
  color: #8a9aab;
}

.sight-inline-help {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
}

.sight-app-shell {
  --sight-shell-sidebar-width: 13.5rem;
  display: grid;
  grid-template-columns: var(--sight-shell-sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - 3.7rem);
  background: #f6f8fb;
}

.sight-app-shell.is-rail-collapsed {
  --sight-shell-sidebar-width: 4.65rem;
}

.sight-app-shell__sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 3.7rem);
  padding: 1rem 0.75rem;
  border-right: 1px solid #dfe6ee;
  background: #ffffff;
  overflow-y: auto;
}

.sight-app-shell__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sight-app-shell__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0 0.35rem;
  border: 0;
  background: transparent;
  color: #17324d;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 820;
  text-decoration: none;
}

.sight-app-shell__brand:hover,
.sight-app-shell__brand:focus {
  color: #075d7e;
}

.sight-app-shell__brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.sight-app-shell__brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sight-app-shell__nav {
  display: grid;
  gap: 0.25rem;
}

.sight-app-shell__nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  color: #405164;
  font-size: 0.86rem;
  font-weight: 730;
  text-decoration: none;
  line-height: 1.2;
}

.sight-app-shell__nav-link i {
  flex: 0 0 1.15rem;
  text-align: center;
}

.sight-app-shell__nav-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sight-app-shell__nav-link:hover,
.sight-app-shell__nav-link:focus {
  background: #edf8fc;
  color: #075d7e;
}

.sight-app-shell__nav-link.is-active {
  background: #e8f5fb;
  color: #075d7e;
  box-shadow: inset 3px 0 0 #3193b8;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__sidebar {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__sidebar-header {
  justify-content: center;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__brand {
  display: inline-flex;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__brand-text,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-link span {
  display: none;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-link {
  justify-content: center;
  padding-right: 0.45rem;
  padding-left: 0.45rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-link.is-active {
  box-shadow: inset 0 -3px 0 #3193b8;
}

.sight-app-shell__content {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding: 1rem 1rem 1.5rem;
}

.sight-app-shell__utility-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
  min-height: 1.95rem;
  margin: -0.15rem 0 0.45rem;
}

.sight-app-shell__utility-row--actions-only {
  flex: 0 0 auto;
  margin-left: auto;
}

.sight-app-shell__client-context {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(100%, 18rem);
  margin: 0;
}

.sight-app-shell__client-context-label {
  margin: 0;
  color: #526173;
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sight-app-shell__client-context-input {
  width: 10.5rem;
  max-width: 100%;
  min-height: 1.75rem;
  padding: 0.18rem 1.45rem 0.18rem 0.5rem;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.2;
}

.sight-app-shell__client-context-input:focus {
  border-color: #3193b8;
  box-shadow: 0 0 0 0.12rem rgba(49, 147, 184, 0.14);
  outline: 0;
}

.sight-app-shell {
  --sight-shell-sidebar-width: 12rem;
  --sight-shell-topbar-height: 2.58rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.sight-app-shell.is-rail-collapsed {
  --sight-shell-sidebar-width: 3.25rem;
}

.sight-app-shell__topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  min-height: var(--sight-shell-topbar-height);
  padding: 0.2rem 0.58rem;
  border-bottom: 1px solid #dfe6ee;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(20, 47, 83, 0.035);
}

.sight-app-shell--non-production .sight-app-shell__topbar {
  border-bottom-color: #9a3412;
  background: #fff7ed;
  box-shadow: inset 0 -3px 0 #f97316, 0 1px 0 rgba(154, 52, 18, 0.14);
}

.sight-app-shell__environment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  min-height: 1.54rem;
  max-width: 11rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid #9a3412;
  border-radius: 7px;
  background: #c2410c;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(154, 52, 18, 0.22);
}

.sight-app-shell__environment i {
  flex: 0 0 auto;
  font-size: 0.72rem;
  line-height: 1;
}

.sight-app-shell__environment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sight-app-shell__topbar.is-matter-lookup-open {
  z-index: 1200;
  overflow: visible;
}

.sight-app-shell__topbar.is-notification-log-open {
  z-index: 1500;
  overflow: visible;
}

.sight-app-shell__topbar-start {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-width: 0;
}

.sight-app-shell__body {
  display: grid;
  grid-template-columns: var(--sight-shell-sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--sight-shell-topbar-height));
  transition: grid-template-columns 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.sight-app-shell__mobile-backdrop {
  display: none;
}

.sight-app-shell__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  width: 1.88rem;
  min-width: 1.88rem;
  min-height: 1.84rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.sight-app-shell__brand-mark-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.72rem;
  height: 1.72rem;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.sight-app-shell__brand-mark {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  transform: none;
}

.sight-app-shell__brand:hover,
.sight-app-shell__brand:focus-visible {
  background: #f2f8fb;
  outline: 2px solid rgba(49, 147, 184, 0.28);
  outline-offset: 2px;
}

.sight-app-shell__brand-text {
  display: grid;
  gap: 0;
  line-height: 1;
}

.sight-app-shell__brand-firm {
  color: #17324d;
  font-size: 0.82rem;
  font-weight: 840;
}

.sight-app-shell__brand-product {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 760;
}

.sight-app-shell__top-identity {
  display: grid;
  flex: 1 1 auto;
  gap: 0.02rem;
  min-width: 0;
  line-height: 1.05;
}

.sight-app-shell__top-crumbs {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #657383;
  font-size: 0.58rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.sight-app-shell__top-crumbs a,
.sight-app-shell__top-crumbs span {
  display: inline-flex;
  min-width: 0;
  max-width: 16rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__top-crumbs a {
  color: #075d7e;
}

.sight-app-shell__top-crumbs a::after {
  content: "/";
  flex: 0 0 auto;
  margin-left: 0.22rem;
  color: #94a3b8;
}

.sight-app-shell__top-heading {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.sight-app-shell__top-heading > i {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.78rem;
}

.sight-app-shell__top-heading > i.sight-app-shell__top-heading-icon--client-scoped {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.42rem;
  height: 1.42rem;
  border-radius: 999px;
  background: #075d7e;
  color: #ffffff;
  font-size: 0.72rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 1px 2px rgba(15, 23, 42, 0.14);
}

.sight-app-shell__top-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(34rem, 44vw);
  margin: 0;
  overflow: hidden;
  color: #17324d;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__top-description {
  flex: 1 1 auto;
  min-width: 5rem;
  margin: 0;
  padding-left: 0.42rem;
  border-left: 1px solid #d8e2eb;
  overflow: hidden;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__top-description[hidden] {
  display: none;
}

.sight-app-shell--client-scoped .sight-app-shell__topbar {
  border-bottom-color: #b9d8e7;
  background: #ffffff;
}

.sight-app-shell__nav-group-summary::-webkit-details-marker {
  display: none;
}

.sight-app-shell__primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 1.86rem;
  min-width: 1.86rem;
  max-width: 1.86rem;
  height: 1.86rem;
  min-height: 1.86rem;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgb(29, 47, 80);
  border-radius: 7px;
  background: rgb(29, 47, 80);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(29, 47, 80, 0.2);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.sight-app-shell__primary-action:hover,
.sight-app-shell__primary-action:focus,
.sight-app-shell__primary-action:focus-visible {
  max-width: 1.86rem;
  padding: 0;
  border-color: #ffffff;
  background: #ffffff;
  color: rgb(29, 47, 80);
  outline: 0;
  box-shadow: 0 10px 22px rgba(29, 47, 80, 0.24);
}

.sight-app-shell__primary-action i {
  flex: 0 0 auto;
  font-size: 0.82rem;
  line-height: 1;
}

.sight-app-shell__primary-action span {
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-0.24rem);
  transition: max-width 0.2s cubic-bezier(0.2, 0, 0.2, 1), margin-left 0.18s ease, opacity 0.14s ease, transform 0.18s ease;
}

.sight-app-shell__primary-action:hover span,
.sight-app-shell__primary-action:focus span,
.sight-app-shell__primary-action:focus-visible span {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-0.24rem);
}

.sight-app-shell__notification-menu {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.sight-app-shell__notification-menu.is-open {
  z-index: 1510;
}

.sight-app-shell__notification-toggle {
  position: relative;
}

.sight-app-shell__notification-panel {
  position: absolute;
  top: calc(100% + 0.42rem);
  right: 0;
  z-index: 1520;
  width: min(23rem, calc(100vw - 1rem));
  max-height: min(28rem, calc(100vh - var(--sight-shell-topbar-height, 2.58rem) - 1rem));
  overflow: hidden;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  background: #ffffff;
  color: #17324d;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.sight-app-shell__notification-panel[hidden] {
  display: none;
}

.sight-app-shell__notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.64rem 0.72rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #17324d;
  font-size: 0.78rem;
  font-weight: 800;
}

.sight-app-shell__notification-panel-header a {
  color: #006b95;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.sight-app-shell__notification-panel-header a:hover,
.sight-app-shell__notification-panel-header a:focus-visible {
  text-decoration: underline;
}

.sight-app-shell__notification-list {
  display: grid;
  max-height: calc(min(28rem, calc(100vh - var(--sight-shell-topbar-height, 2.58rem) - 1rem)) - 2.7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sight-app-shell__notification-item {
  display: grid;
  gap: 0.22rem;
  padding: 0.66rem 0.74rem;
  border-bottom: 1px solid #edf2f7;
  color: #17324d;
  text-decoration: none;
}

.sight-app-shell__notification-item:last-child {
  border-bottom: 0;
}

.sight-app-shell__notification-item:hover,
.sight-app-shell__notification-item:focus-visible {
  background: #edf8fb;
  color: #073b53;
  outline: 0;
}

.sight-app-shell__notification-item.is-unread {
  border-left: 3px solid #0f766e;
  padding-left: 0.56rem;
}

.sight-app-shell__notification-item-title {
  overflow: hidden;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__notification-item-message {
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sight-app-shell__notification-item-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #7c8b9b;
  font-size: 0.66rem;
  font-weight: 740;
}

.sight-app-shell__notification-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #0f766e;
}

.sight-app-shell__notification-empty {
  margin: 0;
  padding: 0.85rem 0.74rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 680;
}

.sight-app-shell__matter-lookup {
  --sight-command-accent: #075d7e;
  --sight-command-hover: #eef7fb;
  position: relative;
  z-index: 1;
  flex: 0 1 24rem;
  width: min(24rem, 32vw);
  min-width: 14rem;
  max-width: 26rem;
  margin: 0;
}

.sight-app-shell__matter-lookup.is-open {
  z-index: 1201;
}

.sight-app-shell__matter-lookup-control {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.76rem;
  padding: 0.1rem 0.34rem 0.1rem 0.46rem;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}

.sight-app-shell__matter-lookup-control > i {
  flex: 0 0 auto;
  color: #7c8b9b;
  font-size: 0.74rem;
  line-height: 1;
}

.sight-app-shell__matter-lookup-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 1.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17324d;
  font-size: 0.74rem;
  font-weight: 680;
  line-height: 1.2;
  outline: 0;
}

.sight-app-shell__matter-lookup-input::placeholder {
  color: #7c8b9b;
}

.sight-app-shell__matter-lookup-input::-webkit-search-cancel-button,
.sight-app-shell__matter-lookup-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.sight-app-shell__matter-lookup:focus-within .sight-app-shell__matter-lookup-control,
.sight-app-shell__matter-lookup.is-open .sight-app-shell__matter-lookup-control {
  border-color: #3193b8;
  box-shadow: 0 0 0 0.12rem rgba(49, 147, 184, 0.14), 0 8px 20px rgba(15, 23, 42, 0.08);
}

.sight-app-shell__matter-lookup-clear,
.sight-app-shell__matter-lookup-copy,
.sight-app-shell__matter-lookup-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.34rem;
  height: 1.34rem;
  min-width: 1.34rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1;
}

.sight-app-shell__matter-lookup-clear:hover,
.sight-app-shell__matter-lookup-clear:focus-visible,
.sight-app-shell__matter-lookup-copy:hover,
.sight-app-shell__matter-lookup-copy:focus-visible,
.sight-app-shell__matter-lookup-record:hover,
.sight-app-shell__matter-lookup-record:focus-visible {
  background: #eef7fb;
  color: #075d7e;
  outline: 0;
}

.sight-app-shell__matter-lookup-copy.is-copied {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.sight-app-shell__matter-lookup-popover {
  position: absolute;
  top: calc(100% + 0.36rem);
  right: 0;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  width: min(clamp(38rem, 45vw, 52rem), calc(100vw - 1rem));
  max-height: min(42rem, calc(100vh - 4.5rem));
  max-height: min(42rem, calc(100dvh - 4.5rem));
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.2);
}

.sight-app-shell__matter-lookup-results {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(36rem, calc(100vh - 9rem));
  max-height: min(36rem, calc(100dvh - 9rem));
  overflow: auto;
  padding: 0.38rem;
}

.sight-app-shell__command-tools {
  flex: 0 0 auto;
  padding: 0.42rem;
  border-top: 1px solid #dfe8f0;
  background: #f7fafc;
}

.sight-app-shell__command-save-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 2.2rem;
  width: 100%;
  padding: 0.4rem 0.58rem;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: #ffffff;
  color: #075d7e;
  font-size: 0.72rem;
  font-weight: 780;
}

.sight-app-shell__command-save-toggle:hover,
.sight-app-shell__command-save-toggle:focus-visible {
  border-color: #3193b8;
  background: var(--sight-command-hover);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(49, 147, 184, 0.14);
}

.sight-app-shell__command-save {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.72fr);
  gap: 0.35rem 0.55rem;
  margin-top: 0.42rem;
  padding: 0.5rem;
  border: 1px solid #d7e2ec;
  border-radius: 7px;
  background: #ffffff;
}

.sight-app-shell__command-save[hidden],
.sight-app-shell__matter-lookup-popover[hidden] {
  display: none !important;
}

.sight-app-shell__command-save label {
  color: #52677a;
  font-size: 0.64rem;
  font-weight: 760;
}

.sight-app-shell__command-save input,
.sight-app-shell__command-save select {
  min-width: 0;
  min-height: 2.2rem;
  padding: 0.34rem 0.44rem;
  border: 1px solid #cbd8e5;
  border-radius: 6px;
  background: #ffffff;
  color: #17324d;
  font-size: 0.72rem;
}

.sight-app-shell__command-save-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.38rem;
}

.sight-app-shell__command-save-actions button {
  min-height: 2.15rem;
  padding: 0.36rem 0.58rem;
  border: 1px solid #cbd8e5;
  border-radius: 6px;
  background: #ffffff;
  color: #075d7e;
  font-size: 0.7rem;
  font-weight: 760;
}

.sight-app-shell__command-save-actions button:first-child {
  border-color: #075d7e;
  background: #075d7e;
  color: #ffffff;
}

.sight-app-shell__command-save p {
  grid-column: 1 / -1;
  min-height: 1em;
  margin: 0;
  color: #52677a;
  font-size: 0.68rem;
}

.sight-app-shell__command-action {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  margin-right: 0.36rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
}

.sight-app-shell__command-action:hover,
.sight-app-shell__command-action:focus-visible {
  background: #dceff7;
  color: #075d7e;
  outline: 0;
}

.sight-app-shell__command-action.is-active {
  color: var(--sight-command-accent);
}

.sight-app-shell__command-result-actions {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
}

.sight-app-shell__command-result-actions .sight-app-shell__command-action {
  margin-right: 0;
}

.sight-app-shell__matter-lookup-section + .sight-app-shell__matter-lookup-section {
  margin-top: 0.22rem;
  padding-top: 0.22rem;
  border-top: 1px solid #edf2f7;
}

.sight-app-shell__matter-lookup-scope {
  display: grid;
  gap: 0.22rem;
  margin: 0 0 0.36rem;
  padding: 0.58rem 0.68rem;
  border: 1px solid #cfe7f4;
  border-radius: 7px;
  background: #f0f9fc;
  color: #31536b;
}

.sight-app-shell__matter-lookup-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #075d7e;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.sight-app-shell__matter-lookup-scope-text {
  color: #4d6378;
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1.28;
}

.sight-app-shell__matter-lookup-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.34rem 0.52rem 0.22rem;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.sight-app-shell__matter-lookup-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #7c8b9b;
  font-weight: 760;
  text-transform: none;
}

.sight-app-shell__matter-lookup-section-meta a {
  color: #075d7e;
  font-weight: 820;
  text-decoration: none;
}

.sight-app-shell__matter-lookup-section-meta a:hover,
.sight-app-shell__matter-lookup-section-meta a:focus-visible {
  color: #043f58;
  text-decoration: underline;
  outline: 0;
}

.sight-app-shell__matter-lookup-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.28rem;
  align-items: stretch;
  min-width: 0;
  border-radius: 7px;
}

.sight-app-shell__matter-lookup-result + .sight-app-shell__matter-lookup-result {
  margin-top: 0.16rem;
}

.sight-app-shell__matter-lookup-result.is-active,
.sight-app-shell__matter-lookup-result:focus-within,
.sight-app-shell__matter-lookup-result:hover {
  background: #eef7fb;
}

.sight-app-shell__matter-lookup-link {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.14rem 0.56rem;
  align-items: center;
  min-width: 0;
  padding: 0.56rem 0.62rem;
  color: #17324d;
  text-decoration: none;
}

.sight-app-shell__matter-lookup-result > .sight-app-shell__matter-lookup-link:only-child {
  grid-column: 1 / -1;
}

.sight-app-shell__matter-lookup-link:hover,
.sight-app-shell__matter-lookup-link:focus-visible {
  color: #075d7e;
  outline: 0;
}

.sight-app-shell__matter-lookup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.44rem;
  height: 1.44rem;
  border: 1px solid #d7e8f0;
  border-radius: 6px;
  background: #f5fbfe;
  color: #075d7e;
  font-size: 0.76rem;
  line-height: 1;
}

.sight-app-shell__matter-lookup-copy-block {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.sight-app-shell__matter-lookup-id {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #075d7e;
  font-size: 0.68rem;
  font-weight: 840;
  line-height: 1.1;
  white-space: nowrap;
}

.sight-app-shell__matter-lookup-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__matter-lookup-client,
.sight-app-shell__matter-lookup-description {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 640;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__matter-lookup-description {
  color: #7c8b9b;
  font-weight: 560;
}

@media (min-width: 1101px) {
  .sight-app-shell__matter-lookup-description {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.sight-app-shell__matter-lookup-result--view-all {
  margin-top: 0.28rem;
  border-top: 1px solid #edf2f7;
  border-radius: 0 0 7px 7px;
}

.sight-app-shell__matter-lookup-result--view-all .sight-app-shell__matter-lookup-link {
  padding-top: 0.56rem;
  color: #075d7e;
}

.sight-app-shell__matter-lookup-copy,
.sight-app-shell__matter-lookup-record {
  align-self: center;
  margin-right: 0.36rem;
}

.sight-app-shell__matter-lookup-record {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  color: #075d7e;
  text-decoration: none;
}

@media (max-width: 680px) {
  .sight-app-shell__matter-lookup.is-open {
    position: fixed;
    top: 0.28rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .sight-app-shell__matter-lookup.is-open .sight-app-shell__matter-lookup-control {
    min-height: 2.16rem;
  }

  .sight-app-shell__matter-lookup-record {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
  }

  .sight-app-shell__command-action {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
  }

  .sight-app-shell__command-save {
    grid-template-columns: 1fr;
  }

  .sight-app-shell__command-save-actions,
  .sight-app-shell__command-save p {
    grid-column: 1;
  }

  .sight-app-shell__matter-lookup-description {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.sight-app-shell__matter-lookup-empty {
  padding: 0.7rem 0.75rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 680;
  line-height: 1.25;
}

.sight-app-shell__matter-lookup-progress {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.sight-app-shell__matter-lookup-progress i {
  flex: 0 0 auto;
  animation: sight-matter-lookup-spin 0.9s linear infinite;
}

@keyframes sight-matter-lookup-spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-sight-inflow-popup-open,
body.is-sight-matter-popup-open {
  overflow: hidden;
}

.sight-inflow-popup {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.sight-inflow-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sight-inflow-popup__dialog {
  display: flex;
  flex-direction: column;
  width: min(68rem, calc(100vw - 2rem));
  height: min(46rem, calc(100dvh - 2rem));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.sight-inflow-popup--matter .sight-inflow-popup__dialog {
  width: min(42rem, calc(100vw - 2rem));
  height: min(40rem, calc(100dvh - 2rem));
}

.sight-inflow-popup__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.62rem 0.78rem;
  border-bottom: 1px solid #dbe4ee;
  background: #ffffff;
}

.sight-inflow-popup__title {
  margin: 0;
  color: #0f2335;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.15;
}

.sight-inflow-popup__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #ffffff;
  color: #0b3551;
}

.sight-inflow-popup__close:hover,
.sight-inflow-popup__close:focus {
  border-color: rgba(0, 173, 238, 0.42);
  background: rgba(0, 173, 238, 0.08);
  color: #0b3551;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.14);
}

.sight-inflow-popup__body {
  flex: 1 1 auto;
  min-height: 0;
  background: #f8fafc;
}

.sight-inflow-popup__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f8fafc;
}

.sight-associate-launcher {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1080;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 999px !important;
  background: #0b3551 !important;
  color: #ffffff !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
}

.sight-associate-launcher:hover,
.sight-associate-launcher:focus {
  background: #006b95 !important;
  color: #ffffff !important;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
}

.sight-associate-launcher i {
  font-size: 1.18rem;
  line-height: 1;
}

.sight-associate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1070;
  border: 0 !important;
  background: rgba(15, 23, 42, 0.28) !important;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.sight-associate-backdrop[hidden] {
  display: none;
}

.is-sight-associate-open .sight-associate-backdrop {
  opacity: 1;
}

.sight-associate-panel {
  --sight-associate-panel-width: 31rem;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1085;
  display: flex;
  flex-direction: column;
  width: min(var(--sight-associate-panel-width), calc(100vw - 1rem));
  height: 100vh;
  height: 100dvh;
  min-width: min(24rem, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
  border-left: 1px solid rgba(148, 163, 184, 0.42);
  background: #f8fafc;
  box-shadow: -26px 0 54px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition:
    width 0.18s ease,
    transform 0.2s ease;
}

.is-sight-associate-open .sight-associate-panel {
  transform: translateX(0);
}

.sight-associate-panel__resize-handle {
  position: absolute;
  inset: 0 auto 0 -0.38rem;
  z-index: 3;
  width: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
}

.is-sight-associate-open .sight-associate-panel__resize-handle {
  opacity: 1;
  pointer-events: auto;
}

.sight-associate-panel__resize-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: min(4.5rem, 24vh);
  border-radius: 999px;
  background: var(--sight-border-strong, #aab8c6);
  opacity: 0.7;
  transform: translate(-50%, -50%);
  transition:
    width 0.14s ease,
    background 0.14s ease,
    box-shadow 0.14s ease,
    opacity 0.14s ease;
}

.sight-associate-panel__resize-handle:hover::before,
.sight-associate-panel__resize-handle:focus-visible::before,
.is-sight-associate-resizing .sight-associate-panel__resize-handle::before {
  width: 5px;
  background: var(--sight-action, #007fae);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sight-action, #007fae) 16%, transparent);
  opacity: 1;
}

.sight-associate-panel__resize-handle:focus-visible {
  outline: none;
}

.sight-associate-panel__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.62rem 0.78rem;
  border-bottom: 1px solid #dbe4ee;
  background: #ffffff;
}

.sight-associate-panel__copy {
  min-width: 0;
}

.sight-associate-panel__title {
  margin: 0;
  color: #0f2335;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.15;
}

.sight-associate-panel__meta {
  margin: 0.12rem 0 0;
  color: #607083;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sight-associate-panel__actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.sight-associate-panel__control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid #d7e0ea !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #0b3551 !important;
  text-decoration: none !important;
}

.sight-associate-panel__control:hover,
.sight-associate-panel__control:focus-visible {
  border-color: rgba(0, 173, 238, 0.42) !important;
  background: rgba(0, 173, 238, 0.08) !important;
  color: #0b3551 !important;
  text-decoration: none !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 127, 174, 0.16);
}

.sight-associate-panel__frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  background: #f8fafc;
}

.sight-associate-panel__loading {
  margin: auto;
  color: #607083;
  font-size: 0.84rem;
  font-weight: 700;
}

.sight-associate-panel__frame {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: #f8fafc;
}

body.is-sight-associate-open {
  overflow: hidden;
}

body.is-sight-associate-resizing {
  cursor: ew-resize;
  user-select: none;
}

body.is-sight-associate-resizing .sight-associate-panel {
  transition: none;
}

body.is-sight-associate-resizing .sight-associate-panel__frame {
  pointer-events: none;
}

.sight-app-shell__nav-group > summary {
  list-style: none;
}

.sight-app-shell__nav-standalone {
  display: grid;
  gap: 0.06rem;
  margin-bottom: 0.16rem;
  padding-bottom: 0.26rem;
  border-bottom: 1px solid #e2e9f0;
}

.sight-app-shell__nav-link--standalone {
  font-weight: 760;
}

.sight-app-shell__sidebar {
  top: var(--sight-shell-topbar-height);
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  height: calc(100vh - var(--sight-shell-topbar-height));
  padding: 0.34rem;
  overflow: hidden;
  transition: padding 0.18s ease, box-shadow 0.18s ease;
}

.sight-app-shell__nav {
  gap: 0.06rem;
  align-content: start;
  align-items: start;
  flex: 1 1 auto;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.08rem;
  scrollbar-gutter: stable;
}

.sight-app-shell__nav-group {
  border-radius: 6px;
}

.sight-app-shell__nav-group-summary {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.62rem;
  padding: 0.18rem 0.34rem;
  border-radius: 6px;
  color: #526173;
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 820;
  line-height: 1.2;
  list-style: none;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.sight-app-shell__nav-group-summary > i:first-child {
  transition: color 0.16s ease, transform 0.18s ease;
}

.sight-app-shell__nav-group-summary:hover > i:first-child,
.sight-app-shell__nav-group-summary:focus > i:first-child {
  transform: translateX(1px);
}

.sight-app-shell__nav-group-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__nav-group-summary:hover,
.sight-app-shell__nav-group-summary:focus,
.sight-app-shell__nav-group.is-active > .sight-app-shell__nav-group-summary {
  background: #f2f8fb;
  color: #075d7e;
}

.sight-app-shell__nav-group[open] .sight-app-shell__nav-group-chevron {
  transform: rotate(90deg);
}

.sight-app-shell__nav-group-chevron {
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.sight-app-shell__nav-group-links {
  display: grid;
  gap: 0.04rem;
  padding: 0.02rem 0 0.12rem 0.72rem;
}

.sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-links {
  animation: sight-nav-folder-open 0.16s ease-out;
}

.sight-app-shell__nav-link {
  gap: 0.36rem;
  min-height: 1.48rem;
  padding: 0.16rem 0.28rem;
  border-radius: 6px;
  font-size: 0.71rem;
  font-weight: 700;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sight-app-shell__nav-link:hover,
.sight-app-shell__nav-link:focus {
  transform: translateX(1px);
}

.sight-app-shell__nav-link i {
  flex-basis: 0.88rem;
  font-size: 0.78rem;
}

.sight-app-shell__nav-link.is-active {
  box-shadow: inset 2px 0 0 #3193b8;
}

.sight-app-shell__associate-history {
  display: grid;
  gap: 0.16rem;
  margin: 0.04rem 0 0.28rem 1.38rem;
  padding: 0 0.18rem 0.3rem 0.36rem;
  border-left: 1px solid var(--sight-border);
}

.sight-app-shell__associate-history[hidden] {
  display: none;
}

.sight-app-shell__associate-history-label {
  padding: 0.08rem 0.16rem;
  color: var(--sight-muted);
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sight-app-shell__associate-history-list {
  display: grid;
  gap: 0.04rem;
}

.sight-app-shell__associate-history-item {
  display: grid;
  grid-template-columns: 0.48rem minmax(0, 1fr);
  gap: 0.3rem;
  align-items: start;
  min-width: 0;
  padding: 0.22rem 0.24rem;
  border-radius: 5px;
  color: var(--sight-foreground-muted);
  font-size: 0.66rem;
  font-weight: 680;
  line-height: 1.25;
  text-decoration: none;
}

.sight-app-shell__associate-history-item:hover,
.sight-app-shell__associate-history-item:focus {
  background: var(--sight-accent-wash);
  color: var(--sight-foreground);
  outline: none;
  text-decoration: none;
}

.sight-app-shell__associate-history-dot {
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.18rem;
  border-radius: 50%;
  background: var(--sight-border-strong);
}

.sight-app-shell__associate-history-item[data-status="running"] .sight-app-shell__associate-history-dot {
  background: var(--sight-action);
  box-shadow: 0 0 0 3px var(--sight-accent-wash);
}

.sight-app-shell__associate-history-item[data-status="error"] .sight-app-shell__associate-history-dot {
  background: var(--sight-danger);
}

.sight-app-shell__associate-history-copy {
  display: grid;
  gap: 0.04rem;
  min-width: 0;
}

.sight-app-shell__associate-history-scope,
.sight-app-shell__associate-history-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__associate-history-scope {
  color: var(--sight-muted);
  font-size: 0.57rem;
  font-weight: 760;
  letter-spacing: 0.015em;
}

.sight-app-shell__associate-history-title {
  color: inherit;
}

.sight-app-shell__associate-history-empty {
  padding: 0.18rem 0.24rem;
  color: var(--sight-muted);
  font-size: 0.64rem;
  line-height: 1.3;
}

.sight-app-shell__associate-history-more {
  justify-self: start;
  padding: 0.16rem 0.24rem;
  border: 0;
  background: transparent;
  color: var(--sight-action);
  font-size: 0.64rem;
  font-weight: 780;
}

.sight-app-shell__associate-history-more:hover,
.sight-app-shell__associate-history-more:focus {
  color: var(--sight-action-hover);
  text-decoration: underline;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__associate-history {
  display: none;
}

.sight-associate-completion-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1700;
  display: grid;
  gap: 0.55rem;
  width: min(23rem, calc(100vw - 2rem));
}

.sight-associate-completion-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.82rem;
  border: 1px solid var(--sight-border-strong);
  border-radius: 10px;
  background: var(--sight-surface-raised);
  color: var(--sight-foreground);
  box-shadow: 0 18px 44px rgba(15, 35, 55, 0.22);
}

.sight-associate-completion-toast > i {
  color: var(--sight-action);
  font-size: 1.05rem;
}

.sight-associate-completion-toast__copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.sight-associate-completion-toast__copy strong {
  font-size: 0.78rem;
  line-height: 1.25;
}

.sight-associate-completion-toast__copy span,
.sight-associate-completion-toast__copy a {
  font-size: 0.7rem;
  line-height: 1.35;
}

.sight-associate-completion-toast__copy a {
  color: var(--sight-action);
  font-weight: 760;
}

.sight-associate-completion-toast__close {
  padding: 0.08rem;
  border: 0;
  background: transparent;
  color: var(--sight-muted);
  line-height: 1;
}

.client-group-avatar {
  --client-group-avatar-size: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--client-group-avatar-size);
  width: var(--client-group-avatar-size);
  min-width: var(--client-group-avatar-size);
  height: var(--client-group-avatar-size);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #cfe0ed;
  border-radius: 8px;
  background: #eef7fb;
  color: #075d7e;
  font-size: 0.72rem;
  font-weight: 840;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.client-group-avatar--xs {
  --client-group-avatar-size: 1.18rem;
  border-radius: 5px;
  font-size: 0.52rem;
}

.client-group-avatar--sm {
  --client-group-avatar-size: 2.05rem;
  font-size: 0.72rem;
}

.client-group-avatar--md {
  --client-group-avatar-size: 2.45rem;
  font-size: 0.78rem;
}

.client-group-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.client-group-avatar__initials {
  padding-top: 0.02rem;
}

html[data-sight-theme="dark"] .client-group-avatar,
body[data-sight-theme="dark"] .client-group-avatar {
  border-color: #2f4a5e;
  background: #132b3c;
  color: #a7e5f7;
  box-shadow: inset 0 0 0 1px rgba(147, 222, 245, 0.16);
}

.sight-app-shell__client-subtop {
  position: sticky;
  top: var(--sight-shell-topbar-height);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  max-width: none;
  margin: -0.85rem -1rem 0.9rem;
  padding: 0.34rem 0.72rem 0.36rem;
  border-bottom: 1px solid rgba(29, 47, 80, 0.26);
  background: #f7fafc;
  box-shadow: inset 0 1px 0 rgba(29, 47, 80, 0.11), 0 1px 0 rgba(20, 47, 83, 0.04);
}

.sight-app-shell__client-subtop::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(29, 47, 80, 0.7), rgba(49, 147, 184, 0.34), rgba(29, 47, 80, 0));
  content: "";
  pointer-events: none;
}

.sight-app-shell__client-subtop-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 2.75rem;
  max-width: min(17rem, 26vw);
  padding: 0.16rem 0.22rem 0.16rem 0.18rem;
  border-radius: 7px;
  color: #17324d;
  text-decoration: none;
}

.sight-app-shell__client-subtop-identity:hover,
.sight-app-shell__client-subtop-identity:focus-visible {
  background: rgba(7, 93, 126, 0.08);
  color: #075d7e;
  outline: 0;
}

.sight-app-shell__client-subtop-avatar.client-group-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 1px 3px rgba(15, 23, 42, 0.12);
}

.sight-app-shell__client-subtop-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 840;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__client-subtop-copy {
  display: block;
  min-width: 0;
}

.sight-app-shell__client-subtop-objective {
  display: block;
  margin-top: 0.13rem;
  overflow: hidden;
  color: #627789;
  font-size: 0.56rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sight-app-shell__client-subtop-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  padding: 0.1rem;
  white-space: nowrap;
}

.sight-app-shell__client-subtop-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.sight-app-shell__client-subtop-group-label {
  color: #6c7f8f;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.sight-app-shell__client-subtop-group-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.18rem;
}

.sight-app-shell__client-subtop-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #33566d;
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.sight-app-shell__client-subtop-tab i {
  flex: 0 0 auto;
  font-size: 0.78rem;
  line-height: 1;
}

.sight-app-shell__client-subtop-tab:hover,
.sight-app-shell__client-subtop-tab:focus-visible {
  border-color: rgba(49, 147, 184, 0.28);
  background: rgba(49, 147, 184, 0.09);
  color: #075d7e;
  outline: 0;
}

.sight-app-shell__client-subtop-tab.is-active {
  border-color: rgba(29, 47, 80, 0.22);
  background: #ffffff;
  color: #1d2f50;
  box-shadow: inset 0 -2px 0 #1d2f50, 0 1px 3px rgba(15, 23, 42, 0.08);
}

.sight-app-shell__client-subtop-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(180, 35, 24, 0.44);
  border-radius: 7px;
  background: #fff4f2;
  color: #a41b12;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sight-app-shell__client-subtop-clear:hover,
.sight-app-shell__client-subtop-clear:focus-visible {
  border-color: #8f1c13;
  background: #b42318;
  color: #ffffff;
  outline: 0;
}

.sight-app-shell__client-subtop-clear i {
  color: #a41b12;
  font-size: 0.82rem;
  line-height: 1;
}

.sight-app-shell__client-subtop-clear:hover i,
.sight-app-shell__client-subtop-clear:focus-visible i {
  color: #ffffff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell--client-scoped .sight-app-shell__topbar {
  border-bottom-color: #174963;
  background: #0f1d28;
}

html[data-sight-theme="dark"] body .sight-app-shell__top-heading > i.sight-app-shell__top-heading-icon--client-scoped,
body[data-sight-theme="dark"] .sight-app-shell__top-heading > i.sight-app-shell__top-heading-icon--client-scoped,
.sight-app-shell[data-sight-theme="dark"] .sight-app-shell__top-heading > i.sight-app-shell__top-heading-icon--client-scoped {
  background: #0b6f8f;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(147, 222, 245, 0.42), 0 1px 3px rgba(0, 0, 0, 0.34);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop {
  border-bottom-color: #174963;
  background: #0f1d28;
  box-shadow: inset 0 1px 0 rgba(147, 222, 245, 0.12), 0 1px 0 rgba(0, 0, 0, 0.2);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-identity {
  color: #e8f7fc;
}

.sight-app-shell__client-subtop-more {
  position: relative;
  flex: 0 0 auto;
}

.sight-app-shell__client-subtop-more[hidden] {
  display: none;
}

.sight-app-shell__client-subtop-more > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 2.75rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(29, 47, 80, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #33566d;
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.sight-app-shell__client-subtop-more > summary::-webkit-details-marker {
  display: none;
}

.sight-app-shell__client-subtop-more > summary .bi-chevron-down {
  font-size: 0.62rem;
  transition: transform 0.16s ease;
}

.sight-app-shell__client-subtop-more[open] > summary .bi-chevron-down {
  transform: rotate(180deg);
}

.sight-app-shell__client-subtop-more > summary:hover,
.sight-app-shell__client-subtop-more > summary:focus-visible,
.sight-app-shell__client-subtop-more[open] > summary {
  border-color: rgba(49, 147, 184, 0.34);
  background: #ffffff;
  color: #075d7e;
  outline: 0;
}

.sight-app-shell__client-subtop-more.is-active > summary {
  border-color: rgba(29, 47, 80, 0.22);
  background: #ffffff;
  color: #1d2f50;
  box-shadow: inset 0 -2px 0 #1d2f50, 0 1px 3px rgba(15, 23, 42, 0.08);
}

.sight-app-shell__client-subtop-more-panel {
  position: absolute;
  top: calc(100% + 0.48rem);
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, minmax(10rem, 1fr));
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  gap: 0.72rem;
  padding: 0.78rem;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.sight-app-shell__client-subtop-more-group {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
  grid-column: 1 / -1;
}

.sight-app-shell__client-subtop-more-panel .sight-app-shell__client-subtop-tab {
  justify-content: flex-start;
  width: 100%;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-objective,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-group-label {
  color: #93aaba;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-group {
  border-left-color: rgba(177, 224, 241, 0.16);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-identity:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-identity:focus-visible {
  background: rgba(147, 222, 245, 0.1);
  color: #ffffff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-tab {
  color: #c7d6e2;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-tab:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-tab:focus-visible {
  border-color: rgba(147, 222, 245, 0.28);
  background: rgba(147, 222, 245, 0.1);
  color: #ffffff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-tab.is-active {
  border-color: rgba(147, 222, 245, 0.28);
  background: rgba(177, 224, 241, 0.12);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 #93def5, 0 1px 3px rgba(0, 0, 0, 0.22);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-clear {
  border-color: rgba(252, 165, 165, 0.52);
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-clear i {
  color: #fecaca;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-clear:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-clear:focus-visible {
  border-color: #ffaca3;
  background: #b42318;
  color: #ffffff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-clear:hover i,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-clear:focus-visible i {
  color: #ffffff;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__sidebar {
  padding-right: 0.32rem;
  padding-left: 0.32rem;
  overflow: visible;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav {
  overflow: visible;
  padding-right: 0;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group {
  position: relative;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary {
  position: relative;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 1.94rem;
  padding-right: 0.35rem;
  padding-left: 0.35rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::before,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::after {
  position: absolute;
  pointer-events: none;
  content: "";
  transition: opacity 0.16s ease, transform 0.18s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::before {
  top: 0.22rem;
  right: 0.38rem;
  width: 0.34rem;
  height: 0.14rem;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #ffffff;
  opacity: 0.66;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::after {
  top: 0.35rem;
  right: 0.2rem;
  width: 0.68rem;
  height: 0.46rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.72;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:hover::before,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:focus::before,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary::before,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:hover::after,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:focus::after,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary::after {
  opacity: 0.92;
  transform: translateY(-1px);
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary > i:first-child {
  font-size: 0.92rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-chevron {
  position: absolute;
  right: 0.1rem;
  bottom: 0.08rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.78rem;
  height: 0.78rem;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #6b7d8f;
  font-size: 0.54rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary {
  color: #075d7e;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary .sight-app-shell__nav-group-chevron {
  border-color: #b7dbea;
  background: #e8f5fb;
  color: #075d7e;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-links {
  display: none;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open]:focus-within > .sight-app-shell__nav-group-links,
.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open]:hover > .sight-app-shell__nav-group-links {
  position: absolute;
  top: 0;
  left: calc(100% + 0.42rem);
  z-index: 85;
  display: grid;
  width: max-content;
  min-width: 11.75rem;
  max-width: min(15rem, calc(100vw - var(--sight-shell-sidebar-width) - 1.5rem));
  max-height: min(26rem, calc(100vh - var(--sight-shell-topbar-height) - 1rem));
  overflow-y: auto;
  padding: 0.32rem;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  transform-origin: left top;
  animation: sight-nav-flyout-in 0.16s cubic-bezier(0.2, 0, 0.2, 1);
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-links .sight-app-shell__nav-link {
  justify-content: flex-start;
  min-height: 1.75rem;
  padding: 0.22rem 0.36rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-links .sight-app-shell__nav-link span {
  display: inline;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-link.is-active {
  box-shadow: inset 0 -3px 0 #3193b8;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-standalone {
  padding-bottom: 0.22rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__topbar .sight-app-shell__brand {
  display: flex;
}

.sight-app-shell__account {
  display: grid;
  gap: 0.18rem;
  flex: 0 0 auto;
  min-width: 0;
  margin-top: auto;
  padding-top: 0.32rem;
  border-top: 1px solid #e2e9f0;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-more > summary {
  border-color: rgba(177, 224, 241, 0.24);
  background: rgba(177, 224, 241, 0.08);
  color: #c7d6e2;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-more > summary:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-more > summary:focus-visible,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-more[open] > summary,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-more.is-active > summary {
  border-color: rgba(147, 222, 245, 0.32);
  background: rgba(177, 224, 241, 0.12);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 #93def5, 0 1px 3px rgba(0, 0, 0, 0.22);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-subtop-more-panel {
  border-color: #274557;
  background: #0f1d28;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
}

.sight-app-shell__rail-image {
  display: block;
  justify-self: center;
  width: 3.25rem;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.sight-app-shell__rail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sight-app-shell__account-profile,
.sight-app-shell__account-action {
  display: grid;
  align-items: center;
  min-width: 0;
  border-radius: 8px;
  color: #405164;
  text-decoration: none;
}

.sight-app-shell__account-profile {
  grid-template-columns: 1.72rem minmax(0, 1fr) 0.9rem;
  gap: 0.34rem;
  min-height: 2.18rem;
  padding: 0.24rem 0.34rem;
}

.sight-app-shell__account-avatar {
  --sight-user-avatar-size: 1.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sight-user-avatar-size);
  height: var(--sight-user-avatar-size);
  border: 2px solid var(--sight-user-avatar-ring, #c8d9e5);
  border-radius: 50%;
  background: var(--sight-user-avatar-bg, #eef7fb);
  color: #17324d;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
}

.sight-app-shell__account-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.sight-app-shell__account-name,
.sight-app-shell__account-meta,
.sight-app-shell__account-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__account-name {
  color: #1f354a;
  font-size: 0.72rem;
  font-weight: 820;
}

.sight-app-shell__account-meta {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 680;
}

.sight-app-shell__account-action {
  grid-template-columns: 0.95rem minmax(0, 1fr);
  gap: 0.3rem;
  min-height: 1.52rem;
  padding: 0.18rem 0.42rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 740;
}

.sight-app-shell__account-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.24rem;
  min-width: 0;
}

.sight-app-shell__theme-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  min-height: 1.52rem;
  padding: 0.16rem 0.36rem;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #f8fafc;
  color: #405164;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1;
}

.sight-app-shell__theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 1.62rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #dce7ef;
  box-shadow: inset 0 0 0 1px rgba(83, 105, 128, 0.16);
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.sight-app-shell__theme-toggle-knob {
  position: absolute;
  left: 0.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: #ffffff;
  color: #eab308;
  font-size: 0.46rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1), color 0.16s ease;
}

.sight-app-shell__theme-toggle-label {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sight-app-shell__theme-toggle.is-dark .sight-app-shell__theme-toggle-track {
  background: #1e3a5f;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.26);
}

.sight-app-shell__theme-toggle.is-dark .sight-app-shell__theme-toggle-knob {
  color: #7dd3fc;
  transform: translateX(0.72rem);
}

.sight-app-shell__theme-toggle:hover,
.sight-app-shell__theme-toggle:focus-visible {
  border-color: #9ccfe3;
  background: #edf8fc;
  color: #075d7e;
  outline: 0;
}

.sight-app-shell__theme-toggle.is-saving {
  cursor: progress;
  opacity: 0.72;
}

.sight-app-shell__account-profile:hover,
.sight-app-shell__account-profile:focus,
.sight-app-shell__theme-toggle:hover,
.sight-app-shell__theme-toggle:focus,
.sight-app-shell__account-action:hover,
.sight-app-shell__account-action:focus {
  background: #edf8fc;
  color: #075d7e;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__account {
  justify-items: center;
  padding-top: 0.42rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__rail-image {
  width: 2.05rem;
  border-radius: 7px;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__account-profile {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 2.05rem;
  min-height: 2.05rem;
  padding: 0.14rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__account-avatar {
  width: 1.58rem;
  height: 1.58rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__account-copy,
.sight-app-shell.is-rail-collapsed .sight-app-shell__account-profile > i,
.sight-app-shell.is-rail-collapsed .sight-app-shell__account-actions,
.sight-app-shell.is-rail-collapsed .sight-app-shell__account-action {
  display: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__rail-image {
  border-color: #33485d;
  background: #111b26;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.sight-app-shell__content {
  padding: 0.85rem 1rem 1.5rem;
}

.sight-app-shell__utility-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}

.sight-app-shell__client-context {
  flex: 0 1 auto;
  max-width: min(100%, 16rem);
}

.sight-app-shell__client-context-input {
  width: 9.75rem;
}

.sight-app-shell__content.agenda-workbench,
.sight-app-shell__content.chart-workbench,
.sight-app-shell__content.dispute-workbench,
.sight-app-shell__content.inflow-workbench,
.sight-app-shell__content.location-workbench {
  width: 100%;
  max-width: 100%;
}

.sight-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #dfe6ee;
}

.sight-context-bar__main {
  flex: 1 1 28rem;
  min-width: 0;
  max-width: 100%;
}

.sight-context-bar__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
  color: #657383;
  font-size: 0.75rem;
  font-weight: 740;
}

.sight-context-bar__crumbs a {
  color: #075d7e;
  text-decoration: none;
}

.sight-context-bar__crumbs a,
.sight-context-bar__crumbs span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sight-context-bar__crumbs a::after {
  content: "/";
  margin-left: 0.3rem;
  color: #94a3b8;
}

.sight-context-bar__title {
  margin: 0;
  color: #17324d;
  font-size: 1.45rem;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sight-context-bar__subtitle {
  margin: 0.25rem 0 0;
  color: #657383;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.sight-context-bar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.55rem;
  margin-top: 0.38rem;
  color: #526173;
  font-size: 0.76rem;
  font-weight: 680;
}

.sight-context-bar__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
}

.sight-context-bar__meta-item:not(:last-child)::after {
  content: "";
  width: 0.22rem;
  height: 0.22rem;
  margin-left: 0.55rem;
  border-radius: 999px;
  background: #a7b2bf;
  flex: 0 0 auto;
}

.sight-context-bar__meta-item.warn {
  color: #805b00;
}

.sight-context-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  max-width: 100%;
}

.sight-context-bar__action,
.sight-context-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  max-width: 100%;
  padding: 0.24rem 0.55rem;
  border: 1px solid #cbd6e2;
  border-radius: 7px;
  background: #ffffff;
  color: #17324d;
  font-size: 0.78rem;
  font-weight: 740;
  text-decoration: none;
  white-space: nowrap;
}

.sight-context-bar__action:hover,
.sight-context-bar__action:focus {
  border-color: #8ba6bd;
  background: #f8fafc;
  color: #075d7e;
  text-decoration: none;
}

.sight-context-bar__badge {
  border-color: #d9e2ea;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.sight-context-bar[hidden],
.sight-context-bar__meta[hidden],
.sight-context-bar__actions[hidden],
.sight-context-bar__meta-item[hidden],
.sight-context-bar__badge[hidden] {
  display: none !important;
}

.sight-context-bar__action.warn,
.sight-context-bar__badge.warn {
  border-color: #e8d59b;
  background: #fffaf0;
  color: #755500;
}

.task-associate-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  isolation: isolate;
  z-index: 12;
}

.task-associate-split .task-associate-split__main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.task-associate-split__details {
  position: relative;
  display: inline-flex;
}

.task-associate-split .task-associate-split__toggle {
  width: 2.18rem;
  min-width: 2.18rem;
  padding-inline: 0;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.task-associate-split__details > summary {
  list-style: none;
}

.task-associate-split__details > summary::-webkit-details-marker {
  display: none;
}

.task-associate-split__details[open] > summary {
  border-color: rgba(0, 173, 238, 0.42);
  background: rgba(0, 173, 238, 0.08);
  color: var(--sight-action-hover, #054f6b);
}

.task-associate-split__menu {
  position: absolute;
  top: calc(100% + 0.32rem);
  right: 0;
  z-index: 1000;
  display: grid;
  gap: 0.14rem;
  width: max-content;
  min-width: min(14.5rem, calc(100vw - 1.5rem));
  max-width: min(17.5rem, calc(100vw - 1.5rem));
  padding: 0.28rem;
  border: 1px solid var(--sight-border, #d7e4ee);
  border-radius: 8px;
  background: var(--sight-surface, #ffffff);
  box-shadow: 0 18px 38px rgba(20, 47, 83, 0.18);
}

.task-associate-split__item,
.task-associate-split__more-summary {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: 0.34rem;
  align-items: center;
  min-width: 0;
  min-height: 2.36rem;
  padding: 0.34rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--sight-foreground, #17324d);
  text-decoration: none;
}

.task-associate-split__item:hover,
.task-associate-split__item:focus,
.task-associate-split__more-summary:hover,
.task-associate-split__more-summary:focus {
  border-color: rgba(0, 173, 238, 0.34);
  background: rgba(0, 173, 238, 0.08);
  color: var(--sight-action-hover, #054f6b);
  outline: none;
  text-decoration: none;
}

.task-associate-split__item:focus-visible,
.task-associate-split__more-summary:focus-visible {
  outline: 3px solid rgba(0, 173, 238, 0.22);
  outline-offset: 2px;
}

.task-associate-split__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  background: var(--sight-surface-muted, #edf6fb);
  color: var(--sight-action, #0b7194);
  font-size: 0.8rem;
}

.task-associate-split__item-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.task-associate-split__item-label {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.task-associate-split__item-description {
  color: var(--sight-foreground-muted, #657383);
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.task-associate-split__item-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: var(--sight-foreground-muted, #657383);
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.task-associate-split__item-timestamp i {
  flex: 0 0 auto;
  color: var(--sight-action, #0b7194);
  font-size: 0.66rem;
}

.task-associate-split__more {
  min-width: 0;
}

.task-associate-split__more > summary {
  cursor: pointer;
  list-style: none;
}

.task-associate-split__more > summary::-webkit-details-marker {
  display: none;
}

.task-associate-split__more-summary {
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
}

.task-associate-split__more-chevron {
  color: var(--sight-foreground-muted, #657383);
  font-size: 0.72rem;
  transition: transform 0.16s ease;
}

.task-associate-split__more[open] .task-associate-split__more-chevron {
  transform: rotate(90deg);
}

.task-associate-split__more-menu {
  display: grid;
  gap: 0.12rem;
  max-height: min(48vh, 22rem);
  margin-top: 0.16rem;
  padding-top: 0.18rem;
  border-top: 1px solid var(--sight-border-subtle, rgba(148, 163, 184, 0.24));
  overflow-y: auto;
  overscroll-behavior: contain;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__details[open] > summary {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.14);
  color: #e0f2fe;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__menu {
  border-color: rgba(148, 163, 184, 0.3);
  background: #0f1824;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__item {
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__item:hover,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__item:focus,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__more-summary:hover,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__more-summary:focus {
  border-color: rgba(103, 209, 242, 0.48);
  background: rgba(103, 209, 242, 0.14);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__item-icon {
  background: rgba(103, 209, 242, 0.12);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__item-description,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__item-timestamp {
  color: #9fb0c3;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__item-timestamp i {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__more-summary {
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__more-chevron {
  color: #9fb0c3;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .task-associate-split__more-menu {
  border-top-color: rgba(148, 163, 184, 0.24);
}

.record-associate-actions {
  display: grid;
  grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  margin: 0 0 0.9rem;
  padding: 0.72rem;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #f8fbfd;
  box-shadow: 0 12px 28px rgba(20, 47, 83, 0.06);
}

.record-associate-actions__header {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
}

.record-associate-actions__icon,
.record-associate-actions__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
}

.record-associate-actions__icon {
  width: 2.28rem;
  height: 2.28rem;
  background: #e7f6fb;
  color: #08789d;
  font-size: 1.05rem;
}

.record-associate-actions__copy,
.record-associate-actions__item-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.record-associate-actions__title,
.record-associate-actions__item-label {
  color: #17324d;
  font-weight: 780;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.record-associate-actions__title {
  font-size: 0.94rem;
}

.record-associate-actions__meta,
.record-associate-actions__item-description {
  color: #657383;
  font-size: 0.75rem;
  font-weight: 640;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.record-associate-actions__target {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.4rem;
  color: #52677b;
  font-size: 0.72rem;
  font-weight: 760;
}

.record-associate-actions__target select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.38rem 1.9rem 0.38rem 0.52rem;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: #ffffff;
  color: #17324d;
  font: inherit;
}

.record-associate-actions__target-status {
  color: #657383;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

label:has(:required) > :is(.control-label, .portfolio-record-label):not(.control-label--without-required-copy)::after {
  content: "Required";
  margin-left: 0.42rem;
  color: var(--sight-danger);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sight-form-validation-summary {
  grid-column: 1 / -1;
  margin-bottom: 0.55rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--sight-danger) 42%, var(--sight-border, #d8e3ee));
  border-radius: 7px;
  background: color-mix(in srgb, var(--sight-danger) 8%, var(--sight-surface, #ffffff));
  color: var(--sight-danger);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.4;
}

[aria-invalid="true"] {
  border-color: var(--sight-danger) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sight-danger) 15%, transparent) !important;
}

body[data-sight-workspace-density="compact"] :is(.entity-table, .location-table, .portfolio-record-table) td {
  padding-top: 0.36rem;
  padding-bottom: 0.36rem;
}

body[data-sight-workspace-density="compact"] :is(.entity-table, .location-table, .portfolio-record-table) :is(.muted-line, small) {
  line-height: 1.18;
}

@media (max-width: 760px) {
  .sight-workbench :is(button, summary, .sight-button, .workbench-icon-button, .record-detail-tab),
  .portfolio-record-shell :is(button, summary, .sight-button, .record-detail-tab) {
    min-height: 44px;
  }
}

.record-associate-actions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.42rem;
  min-width: 0;
}

.record-associate-actions__item {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  min-height: 3rem;
  padding: 0.44rem 0.5rem;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: #ffffff;
  color: #17324d;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.record-associate-actions__item:hover,
.record-associate-actions__item:focus {
  border-color: #80a8bd;
  background: #f3f9fc;
  color: #075d7e;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 47, 83, 0.08);
  transform: translateY(-1px);
}

.record-associate-actions__item:focus-visible {
  outline: 3px solid rgba(0, 173, 238, 0.22);
  outline-offset: 2px;
}

.record-associate-actions__item-icon {
  width: 1.85rem;
  height: 1.85rem;
  background: #edf6fb;
  color: #0b7194;
  font-size: 0.9rem;
}

.record-associate-actions__item-label {
  font-size: 0.8rem;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions {
  border-color: #2b3a4c;
  background: #111b26;
  color: #e5edf5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__icon,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__item-icon {
  background: rgba(103, 209, 242, 0.12);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__title,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__item-label {
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__meta,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__item-description {
  color: #9fb0c3;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__target,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__target-status {
  color: #9fb0c3;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__target select {
  border-color: #334155;
  background: #0f1824;
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__item {
  border-color: #334155;
  background: #0f1824;
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__item:hover,
:is(html[data-sight-theme="dark"] body:not(.pdf), body[data-sight-theme="dark"]:not(.pdf)) .record-associate-actions__item:focus {
  border-color: rgba(103, 209, 242, 0.48);
  background: rgba(103, 209, 242, 0.14);
  color: #93def5;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted {
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
}

.sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__crumbs,
.sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__title,
.sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__subtitle {
  display: none;
}

.sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted.sight-context-bar--identity-only {
  display: none;
}

.sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted.sight-context-bar--no-meta .sight-context-bar__main {
  display: none;
}

.sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__main {
  flex-basis: auto;
}

@media (min-width: 681px) {
  .sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__main {
    flex: 0 1 auto;
  }

  .sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__actions {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__actions::-webkit-scrollbar {
    height: 0.35rem;
  }

  .sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__action,
  .sight-app-shell__content .sight-context-bar.sight-context-bar--identity-promoted .sight-context-bar__badge {
    flex: 0 0 auto;
    min-height: 1.72rem;
    padding: 0.2rem 0.48rem;
  }
}

.sight-content-grid {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}

.sight-content-grid--with-panel {
  grid-template-columns: minmax(0, 1.6fr) minmax(22rem, 0.9fr);
}

.sight-content-grid__main,
.sight-content-grid__side {
  min-width: 0;
}

.sight-context-panel {
  min-width: 0;
}

/* Shared internal workbench primitives */
.sight-app-shell__content.sight-workbench,
.sight-workbench {
  width: 100%;
  max-width: 100%;
}

.sight-app-shell__content.sight-workbench {
  padding: 0.68rem clamp(0.68rem, 1.4vw, 1rem) 1.2rem;
}

.sight-workbench .sight-context-bar {
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.48rem;
}

.sight-workbench .sight-context-bar__main {
  flex-basis: 24rem;
}

.sight-workbench .sight-context-bar__title {
  font-size: 1.2rem;
  line-height: 1.16;
}

.sight-workbench .sight-context-bar__subtitle {
  margin-top: 0.12rem;
  font-size: 0.76rem;
  line-height: 1.32;
}

.sight-workbench .sight-context-bar__meta {
  margin-top: 0.28rem;
  font-size: 0.7rem;
}

.sight-workbench .sight-context-bar__actions {
  gap: 0.28rem;
}

.sight-workbench .sight-context-bar__action,
.sight-workbench .sight-context-bar__badge {
  min-height: 1.72rem;
  padding: 0.22rem 0.5rem;
  border-radius: 7px;
  font-size: 0.72rem;
}

.sight-workbench__stats {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.45rem !important;
}

.sight-workbench .sight-stat-pill {
  display: inline-flex !important;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35rem;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0.28rem 0.5rem;
  border: 1px solid #dfe6ee;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 47, 83, 0.04);
}

.sight-workbench .sight-stat-pill__value {
  color: #17324d;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.1;
}

.sight-workbench .sight-stat-pill__label {
  margin: 0;
  color: #667486;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.25;
}

.sight-workbench-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.08rem;
  align-items: flex-end;
  margin: 0 0 0.55rem;
  padding: 0 0.25rem;
  border-bottom: 1px solid #cfdbe7;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.sight-workbench-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  top: 1px;
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.38rem 0.68rem 0.34rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #263748;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.sight-workbench-tabs__item:hover,
.sight-workbench-tabs__item:focus,
.sight-workbench-tabs__item.is-active {
  border-color: #cfdbe7;
  background: #ffffff;
  color: #075d7e;
  text-decoration: none;
}

.sight-workbench-tabs__item.is-active {
  border-color: #a8c5d5;
  border-bottom-color: #ffffff;
  box-shadow: inset 0 3px 0 #0b8eb5, 0 -1px 0 rgba(20, 47, 83, 0.02);
}

.sight-workbench-tabs__count,
.sight-workbench-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.05rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #eef3f8;
  color: #536171;
  font-size: 0.65rem;
  line-height: 1;
}

.sight-workbench-disclosure {
  margin-bottom: 0.45rem;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(20, 47, 83, 0.035);
}

.sight-workbench-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 2.1rem;
  padding: 0.4rem 0.6rem;
  color: #17324d;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  list-style: none;
}

.sight-workbench-disclosure > summary::-webkit-details-marker {
  display: none;
}

.sight-workbench-disclosure > summary::after {
  content: "+";
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 760;
}

.sight-workbench-disclosure[open] > summary::after {
  content: "-";
}

.sight-workbench-disclosure__body {
  padding: 0 0.6rem 0.6rem;
}

.sight-workbench-controls,
.sight-workbench-form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 0.6rem;
  align-items: end;
  margin: 0 !important;
}

.sight-workbench-controls label,
.sight-workbench-form-grid label {
  min-width: 0;
}

.sight-workbench .control-label,
.sight-workbench label > span:first-child:not(.sight-token):not(.badge):not(.pill) {
  display: block;
  margin-bottom: 0.3rem;
  color: #506174;
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.sight-workbench .input,
.sight-workbench .textarea,
.sight-workbench .search-input,
.sight-workbench .form-control,
.sight-workbench .form-select,
.sight-workbench .filters input,
.sight-workbench .filters select,
.sight-workbench .control-grid input,
.sight-workbench .control-grid select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.9rem;
}

.sight-workbench .textarea {
  min-height: 4.6rem;
}

.sight-button,
.sight-workbench-button,
.sight-workbench .workbench-button,
.sight-workbench .filters button[type="submit"] {
  --sight-button-bg: #0b6785;
  --sight-button-border: #276f8a;
  --sight-button-fg: #ffffff;
  --sight-button-hover-bg: #075d7e;
  --sight-button-hover-border: #0b6785;
  --sight-button-hover-fg: #ffffff;
  --sight-button-shadow: none;
  --sight-button-hover-shadow: 0 8px 18px rgba(7, 93, 126, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--sight-button-border) !important;
  border-radius: 8px;
  background: var(--sight-button-bg) !important;
  color: var(--sight-button-fg) !important;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sight-button-shadow) !important;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.sight-button i,
.sight-workbench-button i,
.sight-workbench .workbench-button i {
  flex: 0 0 auto;
  font-size: 0.95em;
  line-height: 1;
}

.sight-workbench-button:hover,
.sight-workbench-button:focus,
.sight-button:hover,
.sight-button:focus,
.sight-workbench .workbench-button:hover,
.sight-workbench .workbench-button:focus,
.sight-workbench .filters button[type="submit"]:hover,
.sight-workbench .filters button[type="submit"]:focus {
  border-color: var(--sight-button-hover-border) !important;
  background: var(--sight-button-hover-bg) !important;
  color: var(--sight-button-hover-fg) !important;
  box-shadow: var(--sight-button-hover-shadow) !important;
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.sight-button:disabled,
.sight-button[aria-disabled="true"],
.sight-workbench-button:disabled,
.sight-workbench-button[aria-disabled="true"],
.sight-workbench .workbench-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.sight-button--primary {
  --sight-button-bg: #0b6785;
  --sight-button-border: #276f8a;
  --sight-button-fg: #ffffff;
  --sight-button-hover-bg: #075d7e;
  --sight-button-hover-border: #0b6785;
  --sight-button-hover-fg: #ffffff;
}

.sight-button--secondary,
.sight-workbench-button--secondary,
.sight-workbench .workbench-button--secondary {
  --sight-button-bg: #ffffff;
  --sight-button-border: #cbd5e1;
  --sight-button-fg: #294156;
  --sight-button-hover-bg: #f8fafc;
  --sight-button-hover-border: #8ba6bd;
  --sight-button-hover-fg: #075d7e;
  --sight-button-hover-shadow: 0 6px 14px rgba(20, 47, 83, 0.075);
}

.sight-button--ghost,
.sight-workbench .workbench-button--ghost {
  --sight-button-bg: #ffffff;
  --sight-button-border: #cfe0ed;
  --sight-button-fg: #075d7e;
  --sight-button-hover-bg: #edf8fc;
  --sight-button-hover-border: #8bd0e5;
  --sight-button-hover-fg: #075d7e;
  --sight-button-hover-shadow: 0 6px 14px rgba(7, 93, 126, 0.1);
}

.sight-button--danger {
  --sight-button-bg: #fff1f2;
  --sight-button-border: #fecdd3;
  --sight-button-fg: #9f1239;
  --sight-button-hover-bg: #ffe4e6;
  --sight-button-hover-border: #fda4af;
  --sight-button-hover-fg: #881337;
  --sight-button-hover-shadow: 0 6px 14px rgba(159, 18, 57, 0.11);
}

.sight-button--success {
  --sight-button-bg: #ecfdf5;
  --sight-button-border: #99f6e4;
  --sight-button-fg: #134e4a;
  --sight-button-hover-bg: #ccfbf1;
  --sight-button-hover-border: #5eead4;
  --sight-button-hover-fg: #0f3f3b;
  --sight-button-hover-shadow: 0 6px 14px rgba(20, 184, 166, 0.12);
}

.sight-button--quiet,
.sight-workbench .workbench-button--quiet {
  --sight-button-bg: transparent;
  --sight-button-border: transparent;
  --sight-button-fg: #64748b;
  --sight-button-hover-bg: rgba(0, 173, 238, 0.08);
  --sight-button-hover-border: rgba(0, 173, 238, 0.18);
  --sight-button-hover-fg: #075d7e;
  --sight-button-shadow: none;
  --sight-button-hover-shadow: none;
}

.sight-button--compact {
  min-height: 1.9rem;
  padding: 0.28rem 0.54rem;
  border-radius: 7px;
  font-size: 0.76rem;
}

.sight-button--block {
  width: 100%;
}

@media (max-width: 900px) {
  .record-associate-actions {
    grid-template-columns: 1fr;
  }
}

.sight-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 47, 83, 0.08), transparent 27rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 252, 0.96)),
    var(--sight-bg);
  color: var(--sight-foreground);
  font-family: var(--sight-sans);
}

.sight-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.74fr);
  gap: clamp(0.9rem, 3vw, 1.4rem);
  align-items: stretch;
  width: min(100%, 56rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3.4rem);
}

.sight-auth-panel {
  border: 1px solid var(--sight-border);
  border-radius: 8px;
  background: var(--sight-surface);
  box-shadow: 0 18px 44px rgba(20, 47, 83, 0.09);
}

.sight-auth-panel--identity {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  min-height: 27rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  background:
    linear-gradient(145deg, rgba(20, 47, 83, 0.95), rgba(22, 54, 78, 0.94)),
    var(--sight-navy);
  color: #ffffff;
}

.sight-auth-panel--form {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.1rem, 4vw, 1.65rem);
}

.sight-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.sight-auth-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.sight-auth-brand__mark img {
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
}

.sight-auth-brand__copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.sight-auth-brand__firm {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.1;
}

.sight-auth-brand__product {
  color: #ffffff;
  font-size: 1.04rem;
  font-weight: 860;
  line-height: 1.08;
}

.sight-auth-statement {
  display: grid;
  gap: 0.65rem;
  max-width: 30rem;
}

.sight-auth-statement h1,
.sight-auth-form-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.sight-auth-statement h1 {
  color: #ffffff;
  font-family: var(--sight-serif);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 740;
  line-height: 1.04;
}

.sight-auth-statement p {
  max-width: 28rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.92rem, 2vw, 1.04rem);
  font-weight: 610;
  line-height: 1.5;
}

.sight-auth-principles {
  display: grid;
  gap: 0.62rem;
  margin: 0;
}

.sight-auth-principles div {
  display: grid;
  gap: 0.08rem;
  padding: 0.66rem 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sight-auth-principles dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.sight-auth-principles dd {
  margin: 0;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.3;
}

.sight-auth-form-heading {
  display: grid;
  gap: 0.28rem;
}

.sight-auth-form-heading h2 {
  color: var(--sight-foreground-strong);
  font-family: var(--sight-serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 740;
  line-height: 1.08;
}

.sight-auth-form-heading p {
  margin: 0;
  color: var(--sight-foreground-muted);
  font-size: 0.88rem;
  font-weight: 630;
  line-height: 1.4;
}

.sight-auth-form {
  display: grid;
  gap: 0.86rem;
}

.sight-auth-field {
  display: grid;
  gap: 0.34rem;
}

.sight-auth-field label {
  color: var(--sight-foreground-muted);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.sight-auth-field .form-control {
  min-height: 2.58rem;
  border: 1px solid var(--sight-border-strong);
  border-radius: 8px;
  background: var(--sight-surface-raised);
  color: var(--sight-foreground);
  font-size: 0.92rem;
  font-weight: 610;
  box-shadow: none;
}

.sight-auth-field .form-control:focus {
  border-color: var(--sight-ring);
  box-shadow: 0 0 0 0.2rem rgba(0, 173, 238, 0.14);
}

.sight-auth-alert {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  margin: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.35;
}

.sight-auth-alert > span {
  display: grid;
  gap: 0.16rem;
}

@media (max-width: 840px) {
  .sight-auth-shell {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 100vh;
    padding: clamp(0.8rem, 4vw, 1.35rem);
  }

  .sight-auth-panel--identity {
    min-height: auto;
    gap: 1.2rem;
  }

  .sight-auth-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sight-auth-shell {
    gap: 0.75rem;
  }

  .sight-auth-panel {
    padding: 0.9rem;
  }

  .sight-auth-brand__mark {
    width: 2.45rem;
    height: 2.45rem;
  }

  .sight-auth-brand__mark img {
    width: 1.82rem;
    height: 1.82rem;
  }
}

.sight-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  width: 1.72rem;
  height: 1.55rem;
  border: 1px solid #cfdbe7 !important;
  border-radius: 6px;
  background: #ffffff !important;
  color: #3f5266 !important;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(20, 47, 83, 0.035);
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.sight-icon-button:hover,
.sight-icon-button:focus {
  border-color: #8bd0e5 !important;
  background: #edf8fc !important;
  color: #075d7e !important;
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.sight-icon-button:disabled,
.sight-icon-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.sight-icon-button--warning {
  border-color: #f4d17d !important;
  background: #fff8e6 !important;
  color: #96620f !important;
}

.sight-workbench-layout {
  display: grid;
  gap: 0.55rem;
  align-items: start;
}

.sight-workbench .sight-content-grid--with-panel.sight-workbench-layout,
.sight-workbench .sight-workbench-layout.sight-content-grid--with-panel {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.34fr);
}

.sight-workbench .sight-list-panel,
.sight-workbench .sight-detail-panel {
  min-width: 0;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 47, 83, 0.055);
}

.sight-workbench .sight-detail-panel {
  position: sticky;
  top: 0.65rem;
  align-self: start;
  max-height: calc(100vh - 1.3rem);
  overflow: auto;
}

.sight-panel-heading,
.sight-workbench .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.8rem;
  border-bottom: 1px solid #e7edf4;
  background: #fbfcfe;
}

.sight-panel-heading h2,
.sight-panel-heading h3,
.sight-workbench .panel-heading h2,
.sight-workbench .panel-heading h3 {
  margin: 0;
  color: #17324d;
  font-size: 0.96rem;
  font-weight: 780;
}

.sight-workbench-table {
  width: 100%;
  min-width: 58rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sight-workbench-table th,
.sight-workbench-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e8eef5;
  vertical-align: top;
}

.sight-workbench-table th {
  background: #f8fafc;
  color: #506174;
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.sight-workbench-table tbody tr:hover,
.sight-workbench-table tbody tr.is-selected {
  background: #f3fbfe;
}

.sight-workbench-table a {
  color: #075d7e;
  font-weight: 760;
  text-decoration: none;
}

.sight-workbench-table a:hover,
.sight-workbench-table a:focus {
  text-decoration: underline;
}

.sight-workbench .sight-list-panel > .table-responsive,
.sight-workbench .sight-list-panel > table,
.sight-workbench .table-wrap {
  overflow-x: auto;
}

.sight-workbench .sight-token,
.sight-workbench .pill {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sight-quick-links {
  display: grid;
  gap: 0.38rem;
}

.sight-quick-link {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr);
  gap: 0.42rem;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  background: #ffffff;
  color: #17324d;
  font-size: 0.78rem;
  font-weight: 740;
  text-decoration: none;
}

.sight-quick-link:hover,
.sight-quick-link:focus {
  border-color: #a8c5d5;
  background: #f3fbfe;
  color: #075d7e;
  text-decoration: none;
}

.sight-definition-list {
  display: grid;
  gap: 0.32rem;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
}

.sight-definition-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid #edf2f7;
}

.sight-definition-list dt {
  color: #667486;
  font-weight: 720;
}

.sight-definition-list dd {
  margin: 0;
  color: #17324d;
  font-weight: 780;
  text-align: right;
}

@media (max-width: 1120px) {
  .sight-workbench .sight-content-grid--with-panel.sight-workbench-layout,
  .sight-workbench .sight-workbench-layout.sight-content-grid--with-panel {
    grid-template-columns: 1fr;
  }

  .sight-workbench .sight-detail-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .sight-app-shell__content.sight-workbench {
    padding: 0.6rem 0.6rem 1rem;
  }

  .sight-workbench .sight-context-bar {
    gap: 0.45rem;
  }

  .sight-workbench .sight-context-bar__actions,
  .sight-workbench .sight-context-bar__action,
  .sight-workbench-button,
  .sight-workbench .workbench-button,
  .sight-workbench .filters button[type="submit"] {
    width: 100%;
  }

  .sight-workbench-controls,
  .sight-workbench-form-grid {
    grid-template-columns: 1fr;
  }
}

.global-search-page {
  color: #17324d;
}

.global-search-page__bar {
  margin-bottom: 0.72rem;
}

.global-search-page__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.44rem;
  width: min(48rem, 100%);
  padding: 0.42rem;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.global-search-page__form > i {
  color: #64748b;
  font-size: 0.9rem;
}

.global-search-page__input {
  min-width: 0;
  min-height: 2rem;
  padding: 0.2rem 0.1rem;
  border: 0;
  background: transparent;
  color: #17324d;
  font-size: 0.95rem;
  font-weight: 680;
  line-height: 1.2;
  outline: 0;
}

.global-search-page__input::placeholder {
  color: #7c8b9b;
}

.global-search-page__scope {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.72rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid #cfe7f4;
  border-radius: 8px;
  background: #f0f9fc;
  color: #31536b;
}

.global-search-page__scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: #075d7e;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-search-page__scope p {
  margin: 0;
  color: #4d6378;
  font-size: 0.78rem;
  font-weight: 620;
  line-height: 1.3;
}

.global-search-page__scope-links {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  justify-content: flex-end;
}

.global-search-page__scope-links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid #a9d6ea;
  border-radius: 999px;
  background: #ffffff;
  color: #075d7e;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.global-search-page__scope-links a:hover,
.global-search-page__scope-links a:focus-visible {
  border-color: #67b8d7;
  background: #e6f6fb;
  color: #043f58;
  outline: 0;
  text-decoration: none;
}

.global-search-page__progress {
  display: grid;
  gap: 0.52rem;
  margin: 0 0 0.72rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.global-search-page__progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.global-search-page__progress-title {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #17324d;
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.15;
}

.global-search-page__progress-header strong {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: right;
}

.global-search-page__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-search-page__step {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 1.72rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid #d7e2ec;
  border-radius: 999px;
  background: #f8fbfd;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.1;
  white-space: nowrap;
}

.global-search-page__step[data-state="complete"] {
  border-color: #bfe5ce;
  background: #f1fbf5;
  color: #167445;
}

.global-search-page__step[data-state="loading"] {
  border-color: #a9d6ea;
  background: #f0f9fc;
  color: #075d7e;
}

.global-search-page__step[data-state="loading"] i {
  animation: global-search-spin 0.9s linear infinite;
}

.global-search-page__step[data-state="error"] {
  border-color: #f1c8c8;
  background: #fff6f6;
  color: #9f2727;
}

@keyframes global-search-spin {
  to {
    transform: rotate(360deg);
  }
}

.global-search-page__groups {
  display: grid;
  gap: 0.72rem;
}

.global-search-page__group {
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.global-search-page__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.82rem;
  border-bottom: 1px solid #edf2f7;
}

.global-search-page__group-header h2 {
  margin: 0;
  color: #17324d;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.15;
}

.global-search-page__group-header span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 720;
  white-space: nowrap;
}

.global-search-page__results {
  display: grid;
}

.global-search-page__result {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-width: 0;
  padding: 0.68rem 0.82rem;
  color: #17324d;
  text-decoration: none;
}

.global-search-page__result + .global-search-page__result {
  border-top: 1px solid #edf2f7;
}

.global-search-page__result:hover,
.global-search-page__result:focus {
  background: #eef7fb;
  color: #075d7e;
  outline: 0;
  text-decoration: none;
}

.global-search-page__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #d7e8f0;
  border-radius: 7px;
  background: #f5fbfe;
  color: #075d7e;
}

.global-search-page__result-main {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.global-search-page__primary,
.global-search-page__secondary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-page__primary {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.15;
}

.global-search-page__secondary {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 680px) {
  .global-search-page__form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .global-search-page__form .sight-workbench-button {
    grid-column: 1 / -1;
  }

  .global-search-page__scope {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .global-search-page__scope-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .global-search-page__progress-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .global-search-page__progress-header strong {
    text-align: left;
  }
}

.sight-legacy-shell.sight-app-shell {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: block;
  width: var(--sight-shell-sidebar-width);
  min-height: 100vh;
  background: transparent;
  transition: width 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.sight-legacy-shell .sight-app-shell__sidebar {
  top: 0;
  height: 100vh;
}

body.sight-legacy-shell-page {
  --sight-legacy-content-offset: 13.5rem;
  background: #f6f8fb !important;
}

body.sight-legacy-shell-page.is-legacy-rail-collapsed {
  --sight-legacy-content-offset: 4.65rem;
}

body.sight-legacy-shell-page .sight-legacy-context {
  position: sticky;
  top: 0;
  z-index: 45;
  margin: 0 0 0 var(--sight-legacy-content-offset);
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid #dfe6ee;
  background: #f6f8fb;
  transition: margin-left 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

body.sight-legacy-shell-page > main,
body.sight-legacy-shell-page > .container,
body.sight-legacy-shell-page > .admin-dashboard,
body.sight-legacy-shell-page > .firm-metrics,
body.sight-legacy-shell-page > .sight-footer {
  width: calc(100% - var(--sight-legacy-content-offset));
  max-width: calc(100% - var(--sight-legacy-content-offset));
  margin-left: var(--sight-legacy-content-offset);
  transition: width 0.2s cubic-bezier(0.2, 0, 0.2, 1), max-width 0.2s cubic-bezier(0.2, 0, 0.2, 1), margin-left 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

body.sight-legacy-shell-page > .container {
  padding-right: 1rem;
  padding-left: 1rem;
}

body.sight-shell-page .sight-content-grid--with-panel {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
}

body.sight-shell-page .list-panel,
body.sight-shell-page .detail-panel,
body.sight-shell-page .create-panel,
body.sight-shell-page .stat-box,
body.sight-shell-page .panel,
body.sight-shell-page .surface-link,
body.sight-shell-page .quick-link,
body.sight-shell-page .stat {
  border-color: #dfe6ee;
  box-shadow: 0 8px 20px rgba(20, 47, 83, 0.045);
}

body.sight-shell-page .list-panel {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

body.sight-shell-page .list-panel table {
  min-width: 46rem;
}

body.sight-shell-page .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  contain: layout inline-size;
}

body.sight-shell-page .detail-panel,
body.sight-shell-page .sight-context-panel {
  overflow-wrap: anywhere;
}

body.sight-shell-page .panel-heading {
  align-items: center;
  min-height: 3rem;
}

body.sight-shell-page .empty-state {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px dashed #cbd8e5;
  border-radius: 8px;
  background: #f8fbfd;
  color: #5d6d7f;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.sight-shell-page .loading-banner,
body.sight-shell-page .loading-line,
body.sight-shell-page .inflow-preview--loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #cbd8e5;
  border-radius: 8px;
  background: #f8fbfd;
  color: #526173;
  font-size: 0.88rem;
  font-weight: 680;
}

body.sight-shell-page .loading-line::before,
body.sight-shell-page .loading-banner::before,
body.sight-shell-page .inflow-preview--loading::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  border: 2px solid #c4d5e4;
  border-top-color: #007fb0;
  border-radius: 999px;
  animation: sight-shell-spin 0.8s linear infinite;
}

body.sight-shell-page [hidden] {
  display: none !important;
}

@keyframes sight-shell-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sight-nav-folder-open {
  from {
    opacity: 0;
    transform: translateY(-0.16rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sight-nav-flyout-in {
  from {
    opacity: 0;
    transform: translateX(-0.28rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sight-shell-page .loading-line::before,
  body.sight-shell-page .loading-banner::before,
  body.sight-shell-page .inflow-preview--loading::before,
  .sight-app-shell__matter-lookup-progress i {
    animation: none;
  }

  .sight-app-shell__sidebar,
  .sight-app-shell__body,
  .sight-app-shell__nav-link,
  .sight-app-shell__client-subtop-tab,
  .sight-app-shell__client-subtop-clear,
  .sight-app-shell__nav-group-summary,
  .sight-app-shell__nav-group-summary > i:first-child,
  .sight-app-shell__nav-group-chevron,
  .sight-app-shell__primary-action,
  .sight-app-shell__primary-action span,
  .sight-associate-panel,
  .sight-associate-panel__resize-handle::before,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::before,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::after,
  .sight-legacy-shell.sight-app-shell,
  body.sight-legacy-shell-page .sight-legacy-context,
  body.sight-legacy-shell-page > main,
  body.sight-legacy-shell-page > .container,
  body.sight-legacy-shell-page > .admin-dashboard,
  body.sight-legacy-shell-page > .firm-metrics,
  body.sight-legacy-shell-page > .sight-footer,
  .sight-app-shell__mobile-backdrop {
    transition: none;
  }

  .sight-app-shell__nav-link:hover,
  .sight-app-shell__nav-link:focus,
  .sight-app-shell__client-subtop-tab:hover,
  .sight-app-shell__client-subtop-tab:focus,
  .sight-app-shell__nav-group-summary:hover > i:first-child,
  .sight-app-shell__nav-group-summary:focus > i:first-child,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:hover::before,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:focus::before,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary::before,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:hover::after,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary:focus::after,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary::after,
  .sight-app-shell__primary-action span {
    transform: none;
  }

  .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-links,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open]:focus-within > .sight-app-shell__nav-group-links,
  .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open]:hover > .sight-app-shell__nav-group-links {
    animation: none;
  }
}

@media (max-width: 768px) {
  .sight-associate-launcher {
    right: 0.82rem;
    bottom: calc(0.82rem + env(safe-area-inset-bottom, 0px));
    width: 2.72rem;
    height: 2.72rem;
  }

  .sight-associate-panel {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
  }

  .sight-associate-panel__resize-handle,
  .sight-associate-panel__maximize {
    display: none;
  }
}

@media (min-width: 981px) {
  body.sight-shell-page .sight-context-panel {
    position: sticky;
    top: 0.85rem;
    max-height: calc(100vh - 1.7rem);
    overflow: auto;
  }
}

@media (max-width: 1100px) {
  .sight-app-shell {
    --sight-shell-sidebar-width: 100%;
    --sight-shell-topbar-height: 2.72rem;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-columns: 1fr;
  }

  body.is-sight-mobile-nav-open {
    overflow: hidden;
  }

  .sight-app-shell__topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.38rem;
    min-height: var(--sight-shell-topbar-height);
    padding: 0.28rem 0.6rem;
  }

  .sight-app-shell__topbar-start {
    flex: 0 0 auto;
  }

  .sight-app-shell__environment {
    max-width: 8.75rem;
    padding-right: 0.42rem;
    padding-left: 0.42rem;
    font-size: 0.6rem;
  }

  .sight-app-shell__brand::before,
  .sight-app-shell__brand::after {
    position: absolute;
    right: -0.1rem;
    bottom: -0.04rem;
    z-index: 1;
    pointer-events: none;
    content: "";
  }

  .sight-app-shell__brand::before {
    width: 0.88rem;
    height: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: #075d7e;
    box-shadow: 0 0.1rem 0.24rem rgba(15, 23, 42, 0.22);
  }

  .sight-app-shell__brand::after {
    width: 0.44rem;
    height: 0.34rem;
    margin-right: 0.22rem;
    margin-bottom: 0.27rem;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: linear-gradient(#fff, #fff) center / 100% 2px no-repeat;
  }

  .sight-app-shell__top-title {
    max-width: min(30rem, 48vw);
  }

  .sight-app-shell__client-subtop-identity {
    max-width: min(13rem, 32vw);
  }

  .sight-app-shell__top-description {
    max-width: 34vw;
  }

  .sight-app-shell__matter-lookup {
    flex: 1 1 12rem;
    width: min(18rem, 34vw);
    min-width: 9.5rem;
    max-width: 18rem;
  }

  .sight-app-shell__body {
    grid-template-columns: 1fr;
    min-height: calc(100vh - var(--sight-shell-topbar-height));
  }

  .sight-legacy-shell.sight-app-shell {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    min-height: 0;
  }

  .sight-legacy-shell .sight-app-shell__sidebar {
    top: 0;
    height: auto;
  }

  .sight-app-shell__sidebar {
    position: fixed;
    top: var(--sight-shell-topbar-height);
    bottom: 0;
    left: 0;
    z-index: 62;
    width: min(20rem, calc(100vw - 2.25rem));
    max-width: calc(100vw - 2.25rem);
    height: calc(100vh - var(--sight-shell-topbar-height));
    height: calc(100dvh - var(--sight-shell-topbar-height));
    max-height: none;
    overflow: auto;
    padding: 0.55rem;
    border-right: 1px solid #d7e2ec;
    border-bottom: 0;
    box-shadow: 16px 0 36px rgba(15, 23, 42, 0.18);
    transform: translateX(calc(-100% - 1rem));
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), visibility 0.2s ease;
  }

  .sight-app-shell.is-mobile-nav-open .sight-app-shell__sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .sight-app-shell__mobile-backdrop {
    position: fixed;
    inset: var(--sight-shell-topbar-height) 0 0;
    z-index: 58;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .sight-app-shell.is-mobile-nav-open .sight-app-shell__mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sight-app-shell__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.14rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .sight-app-shell__nav-standalone {
    grid-column: 1 / -1;
  }

  .sight-app-shell__nav-group-links {
    padding-left: 0.68rem;
  }

  .sight-app-shell.is-mobile-nav-collapsed .sight-app-shell__sidebar {
    transform: translateX(calc(-100% - 1rem));
    visibility: hidden;
    pointer-events: none;
  }

  body.sight-shell-page .sight-content-grid--with-panel {
    grid-template-columns: 1fr;
  }

  body.sight-legacy-shell-page,
  body.sight-legacy-shell-page.is-legacy-rail-collapsed {
    --sight-legacy-content-offset: 0;
  }

  body.sight-legacy-shell-page .sight-legacy-context {
    position: static;
    margin-left: 0;
  }

  body.sight-legacy-shell-page > main,
  body.sight-legacy-shell-page > .container,
  body.sight-legacy-shell-page > .admin-dashboard,
  body.sight-legacy-shell-page > .firm-metrics,
  body.sight-legacy-shell-page > .sight-footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .sight-app-shell__sidebar,
  .sight-app-shell__mobile-backdrop {
    transition: none;
  }
}

@media (max-width: 980px) {
  .sight-content-grid--with-panel {
    grid-template-columns: 1fr;
  }

  body.sight-shell-page .sight-context-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .sight-app-shell__topbar {
    flex-wrap: nowrap;
    gap: 0.3rem;
    padding: 0.24rem 0.48rem;
  }

  .sight-app-shell__topbar-start {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .sight-app-shell__environment {
    max-width: 2rem;
    min-width: 1.72rem;
    padding-right: 0.34rem;
    padding-left: 0.34rem;
  }

  .sight-app-shell__environment span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sight-app-shell__brand {
    width: 1.78rem;
    min-width: 1.78rem;
    max-width: 1.78rem;
    min-height: 1.76rem;
  }

  .sight-app-shell__brand-mark-frame {
    width: 1.58rem;
    height: 1.58rem;
  }

  .sight-app-shell__brand-mark {
    width: 100%;
    height: 100%;
  }

  .sight-app-shell__brand-firm {
    display: none;
  }

  .sight-app-shell__brand-product {
    color: #17324d;
    font-size: 0.82rem;
    font-weight: 840;
  }

  .sight-app-shell__top-identity {
    gap: 0;
  }

  .sight-app-shell__top-crumbs,
  .sight-app-shell__top-description {
    display: none;
  }

  .sight-app-shell__top-heading {
    gap: 0.22rem;
  }

  .sight-app-shell__top-heading > i {
    font-size: 0.72rem;
  }

  .sight-app-shell__top-heading > i.sight-app-shell__top-heading-icon--client-scoped {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.66rem;
  }

  .sight-app-shell__top-title {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .sight-app-shell__client-subtop {
    gap: 0.28rem;
    margin: -0.8rem -0.8rem 0.75rem;
    padding: 0.3rem 0.48rem 0.32rem;
  }

  .sight-app-shell__client-subtop-identity {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .sight-app-shell__client-subtop-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sight-app-shell__client-subtop-objective {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sight-app-shell__client-subtop-tabs {
    gap: 0.18rem;
    padding-right: 0.04rem;
    padding-left: 0.04rem;
  }

  .sight-app-shell__client-subtop-tab {
    min-height: 2.75rem;
    padding: 0.42rem 0.5rem;
    font-size: 0.7rem;
  }

  .sight-app-shell__client-subtop-clear {
    width: 2.75rem;
    height: 2.75rem;
  }

  .sight-app-shell__client-subtop-primary {
    display: flex;
    gap: 0.12rem;
    overflow: hidden;
  }

  .sight-app-shell__client-subtop-primary .sight-app-shell__client-subtop-tab {
    width: 2.75rem;
    padding-right: 0.3rem;
    padding-left: 0.3rem;
  }

  .sight-app-shell__client-subtop-primary .sight-app-shell__client-subtop-tab > span,
  .sight-app-shell__client-subtop-more > summary > span,
  .sight-app-shell__client-subtop-more > summary > .bi-chevron-down {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sight-app-shell__client-subtop-more > summary {
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
  }

  .sight-app-shell__client-subtop-more-panel {
    grid-template-columns: 1fr;
    right: calc(-2.75rem - 0.5rem);
    width: min(22rem, calc(100vw - 1rem));
  }

  .sight-app-shell__client-subtop-group-links {
    grid-template-columns: 1fr;
  }

  .sight-app-shell__utility-row {
    order: 0;
    flex: 0 1 12.25rem;
    gap: 0.32rem;
    justify-content: flex-end;
  }

  .sight-app-shell__utility-row--actions-only {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .sight-app-shell__matter-lookup {
    flex: 1 1 7.6rem;
    width: min(9rem, 32vw);
    min-width: 6.9rem;
    max-width: 9rem;
  }

  .sight-app-shell__matter-lookup-control {
    gap: 0.18rem;
    padding-inline: 0.34rem 0.22rem;
  }

  .sight-app-shell__matter-lookup-input {
    font-size: 0.7rem;
  }

  .sight-app-shell__matter-lookup-popover {
    position: fixed;
    top: calc(var(--sight-shell-topbar-height) + 0.36rem);
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-height: calc(100vh - var(--sight-shell-topbar-height) - 1rem);
    max-height: calc(100dvh - var(--sight-shell-topbar-height) - 1rem);
  }

  .sight-app-shell__matter-lookup-results {
    max-height: none;
  }

  .sight-app-shell__notification-panel {
    position: fixed;
    top: calc(var(--sight-shell-topbar-height) + 0.36rem);
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-height: min(24rem, calc(100dvh - var(--sight-shell-topbar-height) - 1rem));
  }

  .sight-app-shell__client-context {
    flex: 1 1 7.8rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .sight-app-shell__client-context-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .sight-app-shell__client-context-input {
    width: 100%;
    min-height: 2rem;
  }

  .sight-app-shell__primary-action {
    flex: 0 0 auto;
    width: 1.86rem;
    min-width: 1.86rem;
    max-width: 1.86rem;
    height: 1.86rem;
    min-height: 1.86rem;
    padding: 0;
  }

  .sight-app-shell__primary-action span {
    display: none;
  }

  .sight-app-shell__nav {
    grid-template-columns: 1fr;
  }

  .sight-app-shell__content {
    padding: 0.8rem;
  }

  .sight-context-bar__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .sight-context-bar__action,
  .sight-context-bar__badge {
    white-space: normal;
  }

  .sight-context-bar__meta-item:not(:last-child)::after {
    display: none;
  }

  body.sight-shell-page .list-panel table {
    min-width: 42rem;
  }
}

* {
  box-sizing: border-box;
}

body:not(.portal-workbench-body):not(.chart-display-body):not(.loading-body):not(.sight-inflow-embed):not(.sight-auth-page),
body.bg-light {
  background: var(--sight-wash) !important;
  color: var(--sight-charcoal);
  font-family: var(--sight-sans);
}

a {
  color: #007fb0;
}

a:hover,
a:focus {
  color: var(--sight-navy);
}

main.container,
.container.my-5,
.container.py-5,
.container.py-4 {
  max-width: 1360px;
}

h1,
h2,
h3,
.h1,
.h2,
.h3,
.display-6 {
  letter-spacing: 0;
}

main h1,
main .h1,
main .display-6,
.container h1,
.container .h1,
.container .display-6 {
  color: var(--sight-navy);
  font-family: var(--sight-serif);
  font-weight: 700;
}

main h2,
main .h2,
main h3,
main .h3,
.container h2,
.container .h2,
.container h3,
.container .h3,
.card-title {
  color: var(--sight-navy);
}

.text-muted,
.form-text {
  color: var(--sight-muted) !important;
}

.card,
.accordion-item,
.list-group-item,
.modal-content,
.dropdown-menu,
.search-card,
.home-card,
.agenda-stat,
.agenda-toolbar,
.agenda-group-row,
.sight-inflow-card,
.redline-surface,
.report-card,
.metric-card {
  border: 1px solid var(--sight-line) !important;
  border-radius: 8px !important;
  background: var(--sight-paper) !important;
  box-shadow: var(--sight-shadow) !important;
}

.card-header,
.modal-header,
.modal-footer {
  border-color: var(--sight-line) !important;
}

.card:hover,
.home-card-link:hover .home-card,
.home-card-link:focus .home-card,
.agenda-group-row:hover,
.redline-mode-card:hover,
.redline-mode-card:focus-within {
  border-color: rgba(0, 173, 238, 0.42) !important;
  box-shadow: var(--sight-shadow-hover) !important;
}

.btn {
  border-radius: 6px !important;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary {
  border-color: var(--sight-action) !important;
  background: var(--sight-action) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--sight-action-hover) !important;
  background: var(--sight-action-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.16) !important;
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active,
.page-item.active .page-link {
  border-color: rgba(0, 173, 238, 0.42) !important;
  background: var(--sight-accent-wash) !important;
  color: var(--sight-navy) !important;
  box-shadow: none !important;
}

.page-item.active .page-link:hover,
.page-item.active .page-link:focus {
  border-color: rgba(0, 173, 238, 0.5) !important;
  background: rgba(0, 173, 238, 0.12) !important;
  color: var(--sight-navy) !important;
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.14) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-secondary,
.page-link {
  border-color: var(--sight-line) !important;
  background: #ffffff !important;
  color: var(--sight-navy) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.page-link:hover,
.page-link:focus {
  border-color: rgba(0, 173, 238, 0.42) !important;
  background: rgba(0, 173, 238, 0.08) !important;
  color: var(--sight-navy) !important;
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.14) !important;
}

.form-control,
.form-select,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
  border-color: #cfd7dc !important;
  border-radius: 4px !important;
  color: var(--sight-charcoal);
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 173, 238, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.16) !important;
}

.form-label,
label {
  color: var(--sight-charcoal);
}

.table {
  border-color: var(--sight-line) !important;
  color: var(--sight-charcoal);
}

.table > :not(caption) > * > * {
  border-color: var(--sight-line) !important;
}

.table thead th,
.table > thead > tr > th {
  border-bottom: 2px solid var(--sight-blue) !important;
  background: var(--sight-wash-strong) !important;
  color: var(--sight-navy) !important;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #fbfcfc;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(0, 173, 238, 0.06);
}

.badge,
.status-pill {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge.bg-primary,
.badge.text-bg-primary {
  border: 1px solid rgba(0, 173, 238, 0.3) !important;
  background: var(--sight-accent-wash) !important;
  color: var(--sight-navy) !important;
}

.badge.bg-warning,
.badge.text-bg-warning {
  background: var(--sight-gold) !important;
  color: var(--sight-charcoal) !important;
}

.badge.bg-danger,
.badge.text-bg-danger {
  background: var(--sight-red) !important;
}

.alert {
  border-radius: 8px !important;
  border-color: var(--sight-line) !important;
}

.alert-primary,
.alert-info {
  background: rgba(0, 173, 238, 0.08) !important;
  color: var(--sight-navy) !important;
}

.alert-warning {
  background: rgba(252, 186, 99, 0.18) !important;
  color: #6f4400 !important;
}

.alert-danger {
  background: rgba(159, 28, 55, 0.1) !important;
  color: var(--sight-red) !important;
}

.alert-success {
  background: rgba(31, 143, 95, 0.12) !important;
  color: #176646 !important;
}

.home-header,
.agenda-groups-hero,
.page-header,
.redline-hero,
.sight-redflag-header-card,
.sight-report-header,
.workspace-rules-header {
  border: 1px solid var(--sight-line) !important;
  border-top: 3px solid var(--sight-navy) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%) !important;
  box-shadow: var(--sight-shadow) !important;
  color: var(--sight-charcoal) !important;
}

.home-title,
.agenda-groups-title,
.matters-title,
.redline-hero h1,
.sight-redflag-header-card h1,
.sight-report-header h1 {
  color: var(--sight-navy) !important;
  font-family: var(--sight-serif) !important;
  letter-spacing: 0 !important;
}

.home-subtitle,
.agenda-groups-meta,
.subtle,
.redline-hero .text-white-50,
.sight-redflag-header-card p {
  color: var(--sight-muted) !important;
}

.home-section-title,
.agenda-stat-value,
.home-card-title,
.agenda-group-name {
  color: var(--sight-navy) !important;
}

.home-section-count,
.agenda-stat-label,
.agenda-stat-note,
.home-card-description {
  color: var(--sight-muted) !important;
}

.home-icon {
  border: 1px solid var(--sight-line) !important;
  border-radius: 6px !important;
  background: rgba(0, 173, 238, 0.08) !important;
  color: var(--sight-navy) !important;
}

.home-card-action,
.admin-table-action {
  color: #007fb0 !important;
}

/* Deep dark-mode coverage for legacy workbench, queue, and admin surfaces. */
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .matter-search-card,
  .matter-detail-panel,
  .matter-list-panel,
  .column-controls,
  .workbench-view-tabs,
  .workbench-section,
  .workbench-popover-panel,
  .workbench-panel,
  .workbench-card,
  .workbench-table-wrap,
  .workbench-detail-panel,
  .workbench-warning,
  .workbench-stat-disclosure,
  .create-grid,
  .control-grid,
  .filters,
  .stats,
  .stat,
  .admin-hero,
  .admin-summary-card,
  .admin-section,
  .admin-tool-card,
  .admin-section--operations,
  .admin-section--panel,
  .admin-ops-recent,
  .admin-lane,
  .admin-section--cadence,
  .admin-mini-stat,
  .admin-table-wrap,
  .admin-run-list,
  .admin-run-list li,
  .workflow-shell,
  .workflow-panel,
  .workflow-card,
  .automation-card,
  .agenda-shell,
  .agenda-panel,
  .notice-shell,
  .notice-panel,
  .record-panel,
  .detail-panel,
  .summary-panel,
  .overview-copy,
  .redflag-module-nav,
  .redflag-module-nav__link,
  .sight-recipient-combobox,
  .empty-state,
  .loading-state,
  .toast,
  .popover,
  .tooltip-inner,
  .dropdown-menu,
  .modal-content,
  .offcanvas,
  .list-group-item
) {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface) !important;
  color: var(--sight-foreground) !important;
  box-shadow: var(--sight-shadow) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .admin-dashboard-shell.sight-workbench .admin-hero,
  .admin-dashboard-shell.sight-workbench .admin-tool-card,
  .admin-dashboard-shell.sight-workbench .admin-section--operations,
  .admin-dashboard-shell.sight-workbench .admin-section--panel,
  .admin-dashboard-shell.sight-workbench .admin-ops-recent,
  .admin-dashboard-shell.sight-workbench .admin-lane,
  .admin-dashboard-shell.sight-workbench .admin-section--cadence,
  .admin-dashboard-shell.sight-workbench .admin-mini-stat,
  .admin-dashboard-shell.sight-workbench .admin-table-wrap
) {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface) !important;
  color: var(--sight-foreground) !important;
  box-shadow: var(--sight-shadow) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .view-tab,
  .view-tab.is-active,
  .workbench-icon-button,
  .workbench-button:not(.sight-button),
  .workbench-filter-apply,
  .workbench-popover-control > summary,
  .admin-button,
  .admin-table-action,
  .btn-outline-primary,
  .btn-outline-info,
  .btn-outline-success,
  .btn-outline-warning,
  .btn-outline-danger
) {
  border-color: var(--sight-border-strong) !important;
  background: var(--sight-surface-raised) !important;
  color: #dbeafe !important;
  box-shadow: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .view-tab:hover,
  .view-tab:focus,
  .view-tab.is-active,
  .workbench-icon-button:hover,
  .workbench-icon-button:focus,
  .workbench-button:not(.sight-button):hover,
  .workbench-button:not(.sight-button):focus,
  .admin-button:hover,
  .admin-button:focus,
  .admin-table-action:hover,
  .admin-table-action:focus,
  .dropdown-item:hover,
  .dropdown-item:focus
) {
  border-color: var(--sight-ring) !important;
  background: rgba(103, 209, 242, 0.14) !important;
  color: #93def5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .workbench-button:not(.sight-button):disabled,
  .workbench-icon-button:disabled,
  .sight-button:disabled,
  .sight-icon-button:disabled,
  .btn:disabled,
  .btn.disabled,
  [aria-disabled="true"]
) {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(148, 163, 184, 0.08) !important;
  color: #64748b !important;
  opacity: 1;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .sight-button,
  .sight-workbench-button
) {
  --sight-button-bg: #0f6f8e;
  --sight-button-border: #2a9bc3;
  --sight-button-fg: #effaff;
  --sight-button-hover-bg: #137c9e;
  --sight-button-hover-border: #67d1f2;
  --sight-button-hover-fg: #ffffff;
  --sight-button-shadow: none;
  --sight-button-hover-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .sight-button--secondary,
  .sight-button--ghost,
  .sight-workbench-button--secondary
) {
  --sight-button-bg: var(--sight-surface-raised);
  --sight-button-border: var(--sight-border-strong);
  --sight-button-fg: #dbeafe;
  --sight-button-hover-bg: rgba(103, 209, 242, 0.14);
  --sight-button-hover-border: #67d1f2;
  --sight-button-hover-fg: #93def5;
  --sight-button-hover-shadow: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-button--danger {
  --sight-button-bg: rgba(244, 63, 94, 0.14);
  --sight-button-border: rgba(251, 113, 133, 0.38);
  --sight-button-fg: #fda4af;
  --sight-button-hover-bg: rgba(244, 63, 94, 0.22);
  --sight-button-hover-border: #fb7185;
  --sight-button-hover-fg: #fecdd3;
  --sight-button-hover-shadow: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-button--success {
  --sight-button-bg: rgba(20, 184, 166, 0.14);
  --sight-button-border: rgba(94, 234, 212, 0.34);
  --sight-button-fg: #99f6e4;
  --sight-button-hover-bg: rgba(20, 184, 166, 0.22);
  --sight-button-hover-border: #5eead4;
  --sight-button-hover-fg: #ccfbf1;
  --sight-button-hover-shadow: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-button--quiet {
  --sight-button-bg: transparent;
  --sight-button-border: transparent;
  --sight-button-fg: #9aaabd;
  --sight-button-hover-bg: rgba(103, 209, 242, 0.12);
  --sight-button-hover-border: rgba(103, 209, 242, 0.28);
  --sight-button-hover-fg: #93def5;
  --sight-button-hover-shadow: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-icon-button {
  border-color: var(--sight-border-strong) !important;
  background: var(--sight-surface-raised) !important;
  color: #dbeafe !important;
  box-shadow: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-icon-button:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-icon-button:focus {
  border-color: #67d1f2 !important;
  background: rgba(103, 209, 242, 0.14) !important;
  color: #93def5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-icon-button--warning {
  border-color: rgba(251, 191, 36, 0.36) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fcd34d !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .admin-hero__eyebrow,
  .admin-section__eyebrow,
  .admin-hero__subtitle,
  .admin-section__meta,
  .admin-summary-card__label,
  .admin-summary-card__description,
  .admin-tool-card__meta,
  .admin-tool-card p,
  .workbench-muted,
  .workbench-meta,
  .stat-label,
  .stat__label,
  .field-help,
  .helper-text,
  .metadata,
  .meta,
  .timestamp,
  .empty-state p,
  .loading-state p
) {
  color: var(--sight-foreground-muted) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .admin-hero__title,
  .admin-section__title,
  .admin-summary-card__value,
  .admin-tool-card h3,
  .admin-mini-stat strong,
  .admin-status,
  .stat strong,
  .stat__value,
  .workbench-title,
  .detail-title
) {
  color: var(--sight-foreground-strong) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .sight-context-bar__badge,
  .badge.text-bg-light,
  .badge.bg-info.text-dark,
  .badge.bg-light,
  .badge.text-dark,
  .pill,
  .status-pill,
  .metadata-pill,
  .count-pill,
  .workbench-count
) {
  border: 1px solid var(--sight-border-strong) !important;
  background: var(--sight-surface-raised) !important;
  color: #dbeafe !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action),
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input[type="button"]:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info),
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input[type="submit"]:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info) {
  border-color: var(--sight-border-strong);
  background-color: var(--sight-surface-raised);
  color: #dbeafe;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input[type="button"]:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input[type="button"]:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input[type="submit"]:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input[type="submit"]:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):focus {
  border-color: var(--sight-ring);
  background-color: rgba(103, 209, 242, 0.14);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-control,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-popover {
  border-color: #33485d;
  background: #0d1622;
  color: #e5edf5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup {
  --sight-command-accent: #93def5;
  --sight-command-hover: rgba(103, 209, 242, 0.14);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-tools {
  border-color: #33485d;
  background: #111d2b;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save-toggle,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save input,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save select,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save-actions button {
  border-color: #3b5268;
  background: #162233;
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save-actions button:first-child {
  border-color: #67d1f2;
  background: #075d7e;
  color: #ffffff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save label,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-save p {
  color: #a8bbcd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-section + .sight-app-shell__matter-lookup-section,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-result--view-all {
  border-color: #223349;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-scope {
  border-color: #24465b;
  background: #112738;
  color: #d7ecf7;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-scope-badge {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-scope-text {
  color: #b7cadd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-section-header,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-section-meta {
  color: #9aaabd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-section-meta a,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-section-meta a:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-section-meta a:focus-visible,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-result--view-all .sight-app-shell__matter-lookup-link {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-badge {
  border-color: #2b3d50;
  background: #162233;
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup:focus-within .sight-app-shell__matter-lookup-control,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup.is-open .sight-app-shell__matter-lookup-control {
  border-color: #67d1f2;
  box-shadow: 0 0 0 0.12rem rgba(103, 209, 242, 0.18), 0 14px 34px rgba(0, 0, 0, 0.34);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-input,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-input:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-input:focus {
  border: 0 !important;
  background: transparent !important;
  color: #edf6ff !important;
  box-shadow: none !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-input::placeholder {
  color: #7d8fa3;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-control > i,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-empty,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-client,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-description {
  color: #9aaabd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-link,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-title {
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-id,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-link:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-link:focus-visible {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-result.is-active,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-result:focus-within,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-result:hover {
  background: rgba(103, 209, 242, 0.13);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-clear,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-copy,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-record,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-action {
  border: 0 !important;
  background: transparent !important;
  color: #a8b8c8 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-clear:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-clear:focus-visible,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-copy:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-copy:focus-visible,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-record:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-record:focus-visible,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-action:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__command-action:focus-visible {
  background: rgba(103, 209, 242, 0.14) !important;
  color: #93def5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__matter-lookup-copy.is-copied {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #86efac !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__form,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__progress,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__group {
  border-color: #33485d;
  background: #0d1622;
  color: #e5edf5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__form > i,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__secondary,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__progress-header strong,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__group-header span {
  color: #9aaabd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__input,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__input:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__input:focus {
  border: 0 !important;
  background: transparent !important;
  color: #edf6ff !important;
  box-shadow: none !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__input::placeholder {
  color: #7d8fa3;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__scope {
  border-color: #24465b;
  background: #112738;
  color: #d7ecf7;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__scope-badge,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__scope-links a {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__scope p {
  color: #b7cadd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__progress-title {
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__step {
  border-color: #2b3d50;
  background: #162233;
  color: #b7cadd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__step[data-state="complete"] {
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(22, 116, 69, 0.18);
  color: #86efac;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__step[data-state="loading"] {
  border-color: #2f5b72;
  background: rgba(103, 209, 242, 0.13);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__step[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(127, 29, 29, 0.26);
  color: #fca5a5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__scope-links a {
  border-color: #2f5b72;
  background: #0d1622;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__scope-links a:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__scope-links a:focus-visible {
  border-color: rgba(147, 222, 245, 0.58);
  background: rgba(103, 209, 242, 0.13);
  color: #c7f0fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__group-header,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__result + .global-search-page__result {
  border-color: #223349;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__group-header h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__result,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__primary {
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__result:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__result:focus {
  background: rgba(103, 209, 242, 0.13);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .global-search-page__badge {
  border-color: #2b3d50;
  background: #162233;
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .table thead th,
  table thead th,
  .sight-workbench-table th,
  .admin-fix-table th,
  .workbench-table th,
  .data-table th
) {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface-muted) !important;
  color: #a8b8c8 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .table tbody tr,
  table tbody tr,
  .sight-workbench-table tbody tr,
  .workbench-table tbody tr,
  .admin-fix-table tbody tr,
  .data-table tbody tr
) {
  border-color: var(--sight-border) !important;
  background: transparent !important;
  color: var(--sight-foreground) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .table tbody tr:hover,
  table tbody tr:hover,
  .sight-workbench-table tbody tr:hover,
  .workbench-table tbody tr:hover,
  .admin-fix-table tbody tr:hover,
  .data-table tbody tr:hover,
  tr.is-selected,
  tr[aria-selected="true"],
  .selected-row
) {
  background: rgba(103, 209, 242, 0.11) !important;
  color: var(--sight-foreground-strong) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .table tbody tr:hover td,
  table tbody tr:hover td,
  .sight-workbench-table tbody tr:hover td,
  .workbench-table tbody tr:hover td,
  .admin-fix-table tbody tr:hover td,
  .data-table tbody tr:hover td,
  tr.is-selected td,
  tr[aria-selected="true"] td,
  .selected-row td
) {
  background: rgba(103, 209, 242, 0.11) !important;
  color: var(--sight-foreground-strong) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .warning-band {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fcd34d !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  .dropdown-item,
  .dropdown-header,
  .modal-body,
  .modal-footer,
  .modal-header,
  .offcanvas-body,
  .popover-body
) {
  border-color: var(--sight-border) !important;
  color: var(--sight-foreground) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  input:not([type="color"]):hover,
  select:hover,
  textarea:hover,
  .form-control:hover,
  .form-select:hover
) {
  border-color: #3d566e !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  input:not([type="color"]):focus,
  select:focus,
  textarea:focus,
  .form-control:focus,
  .form-select:focus,
  [contenteditable="true"]:focus
) {
  border-color: #67d1f2 !important;
  box-shadow: 0 0 0 0.16rem rgba(103, 209, 242, 0.18) !important;
  outline: 0;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) :is(
  input:disabled,
  select:disabled,
  textarea:disabled,
  .form-control:disabled,
  .form-select:disabled
) {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(148, 163, 184, 0.08) !important;
  color: #64748b !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__dialog,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__header,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__header {
  border-color: #27384a;
  background: #111b26;
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__meta,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__loading {
  color: #9aaabd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__title,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__title {
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__body,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__frame,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__frame-wrap,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__frame {
  background: #0b1118;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__close,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__control {
  border-color: #33485d !important;
  background: #162233 !important;
  color: #e5edf5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__close:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inflow-popup__close:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__control:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__control:focus-visible {
  border-color: rgba(103, 209, 242, 0.48) !important;
  background: rgba(103, 209, 242, 0.13) !important;
  color: #93def5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__resize-handle::before {
  background: #51667c;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__resize-handle:hover::before,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__resize-handle:focus-visible::before,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]).is-sight-associate-resizing .sight-associate-panel__resize-handle::before {
  background: #67d1f2;
  box-shadow: 0 0 0 4px rgba(103, 209, 242, 0.18);
}

html[data-sight-theme="dark"] body .sight-app-shell .sight-app-shell__matter-lookup-input,
html[data-sight-theme="dark"] body .sight-app-shell .sight-app-shell__matter-lookup-input:hover,
html[data-sight-theme="dark"] body .sight-app-shell .sight-app-shell__matter-lookup-input:focus,
body[data-sight-theme="dark"] .sight-app-shell .sight-app-shell__matter-lookup-input,
body[data-sight-theme="dark"] .sight-app-shell .sight-app-shell__matter-lookup-input:hover,
body[data-sight-theme="dark"] .sight-app-shell .sight-app-shell__matter-lookup-input:focus {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #edf6ff !important;
  box-shadow: none !important;
}

html[data-sight-theme="dark"] body.sight-shell-page main button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.guided-flow-option):not(.assistant-actions__toggle):not(.assistant-actions__item):not(.thinking-level__compact):not(.thinking-level__option):not(.contextual-suggestion-edit):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):not(.client-entity-favorite-toggle),
body[data-sight-theme="dark"].sight-shell-page main button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.guided-flow-option):not(.assistant-actions__toggle):not(.assistant-actions__item):not(.thinking-level__compact):not(.thinking-level__option):not(.contextual-suggestion-edit):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):not(.client-entity-favorite-toggle),
html[data-sight-theme="dark"] body.sight-shell-page main a.btn-outline-secondary,
body[data-sight-theme="dark"].sight-shell-page main a.btn-outline-secondary,
html[data-sight-theme="dark"] body.sight-shell-page main a.sight-quick-link,
body[data-sight-theme="dark"].sight-shell-page main a.sight-quick-link {
  border-color: var(--sight-border-strong) !important;
  background: var(--sight-surface-raised) !important;
  background-color: var(--sight-surface-raised) !important;
  color: #dbeafe !important;
}

html[data-sight-theme="dark"] body.sight-shell-page main button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.guided-flow-option):not(.assistant-actions__toggle):not(.assistant-actions__item):not(.thinking-level__compact):not(.thinking-level__option):not(.contextual-suggestion-edit):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):not(.client-entity-favorite-toggle):hover,
html[data-sight-theme="dark"] body.sight-shell-page main button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.guided-flow-option):not(.assistant-actions__toggle):not(.assistant-actions__item):not(.thinking-level__compact):not(.thinking-level__option):not(.contextual-suggestion-edit):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):not(.client-entity-favorite-toggle):focus,
body[data-sight-theme="dark"].sight-shell-page main button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.guided-flow-option):not(.assistant-actions__toggle):not(.assistant-actions__item):not(.thinking-level__compact):not(.thinking-level__option):not(.contextual-suggestion-edit):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):not(.client-entity-favorite-toggle):hover,
body[data-sight-theme="dark"].sight-shell-page main button:not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.guided-flow-option):not(.assistant-actions__toggle):not(.assistant-actions__item):not(.thinking-level__compact):not(.thinking-level__option):not(.contextual-suggestion-edit):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):not(.client-entity-favorite-toggle):focus,
html[data-sight-theme="dark"] body.sight-shell-page main a.btn-outline-secondary:hover,
html[data-sight-theme="dark"] body.sight-shell-page main a.btn-outline-secondary:focus,
body[data-sight-theme="dark"].sight-shell-page main a.btn-outline-secondary:hover,
body[data-sight-theme="dark"].sight-shell-page main a.btn-outline-secondary:focus,
html[data-sight-theme="dark"] body.sight-shell-page main a.sight-quick-link:hover,
html[data-sight-theme="dark"] body.sight-shell-page main a.sight-quick-link:focus,
body[data-sight-theme="dark"].sight-shell-page main a.sight-quick-link:hover,
body[data-sight-theme="dark"].sight-shell-page main a.sight-quick-link:focus {
  border-color: var(--sight-ring) !important;
  background: rgba(103, 209, 242, 0.14) !important;
  background-color: rgba(103, 209, 242, 0.14) !important;
  color: #93def5 !important;
}

html[data-sight-theme="dark"] body .task-workbench .column-controls,
body[data-sight-theme="dark"] .task-workbench .column-controls,
html[data-sight-theme="dark"] body .task-workbench .workbench-filter-actions .workbench-filter-apply,
body[data-sight-theme="dark"] .task-workbench .workbench-filter-actions .workbench-filter-apply,
html[data-sight-theme="dark"] body .admin-dashboard-shell.sight-workbench .admin-status,
body[data-sight-theme="dark"] .admin-dashboard-shell.sight-workbench .admin-status,
html[data-sight-theme="dark"] body .redflag-module-nav .redflag-module-nav__link,
body[data-sight-theme="dark"] .redflag-module-nav .redflag-module-nav__link {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface) !important;
  background-color: var(--sight-surface) !important;
  color: var(--sight-foreground) !important;
  box-shadow: var(--sight-shadow) !important;
}
.sight-app-shell__nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.2rem;
  margin-left: auto;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .badge-soft {
  border-color: rgba(74, 222, 128, 0.34) !important;
  background: rgba(34, 197, 94, 0.14) !important;
  background-color: rgba(34, 197, 94, 0.14) !important;
  color: #86efac !important;
}

.sight-app-shell__nav-count[hidden] {
  display: none !important;
}

.sight-app-shell__nav-count--group {
  margin-left: auto;
  margin-right: 0.25rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-link[data-sight-shell-nav-key="matter-review"] .sight-app-shell__nav-count {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.2rem;
  font-size: 0.5rem;
}

.sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary .sight-app-shell__nav-count--group:not([hidden]) {
  display: inline-flex;
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  min-width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  padding: 0 0.2rem;
  font-size: 0.5rem;
}

html[data-sight-theme="dark"] .sight-app-shell__nav-count {
  background: #f97316;
  color: #1b1208;
}

html[data-sight-theme="dark"] .sight-app-shell__nav-link.is-active,
html[data-sight-theme="dark"] .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary .sight-app-shell__nav-group-chevron {
  border-color: var(--sight-border-strong);
  background: rgba(103, 209, 242, 0.15);
  color: #93def5;
}

html[data-sight-theme="dark"] .sight-app-shell__theme-toggle-track {
  background: #33485d;
}

html[data-sight-theme="dark"] .sight-app-shell__theme-toggle-knob {
  background: #f8fafc;
}

html[data-sight-theme="dark"] .sight-workbench-tabs__item.is-active {
  border-bottom-color: var(--sight-surface-raised);
  background: var(--sight-surface-raised);
  color: var(--sight-action);
}

html[data-sight-theme="dark"] .sight-workbench-disclosure > summary::after {
  color: var(--sight-foreground-muted);
}

html[data-sight-theme="dark"] .sight-workbench-table tbody tr.is-selected {
  background: rgba(103, 209, 242, 0.11);
  color: var(--sight-foreground-strong);
}

/* The white brand mark is intentional fixed contrast against its navy tile in both themes. */
html[data-sight-theme="dark"] .sight-app-shell__brand::before {
  border-color: rgba(255, 255, 255, 0.95);
}

html[data-sight-theme="dark"] .sight-app-shell__brand::after {
  border-top-color: #ffffff;
  border-bottom-color: #ffffff;
  background: linear-gradient(#ffffff, #ffffff) center / 100% 2px no-repeat;
}
/* Shared archive confirmation */
.sight-archive-confirmation {
  width: min(32rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid #d7dee8;
  border-radius: 1rem;
  background: #fff;
  color: #152238;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.sight-archive-confirmation::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.sight-archive-confirmation__surface {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.25rem;
}

.sight-archive-confirmation__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: #fff1f2;
  color: #b42318;
}

.sight-archive-confirmation__eyebrow,
.sight-archive-confirmation__target,
.sight-archive-confirmation__impact {
  margin: 0;
}

.sight-archive-confirmation__eyebrow {
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sight-archive-confirmation h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.2rem;
}

.sight-archive-confirmation__target {
  font-weight: 750;
}

.sight-archive-confirmation__impact {
  margin-top: 0.35rem;
  color: #526176;
}

.sight-archive-confirmation__blockers {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px solid #f1c27d;
  border-radius: 0.7rem;
  background: #fff8e8;
}

.sight-archive-confirmation__blockers ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.sight-archive-confirmation__actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

html[data-sight-theme="dark"] .sight-archive-confirmation {
  border-color: #33485d;
  background: #111b26;
  color: #e5edf5;
}

html[data-sight-theme="dark"] .sight-archive-confirmation__icon {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

html[data-sight-theme="dark"] .sight-archive-confirmation__impact {
  color: #aebdca;
}

html[data-sight-theme="dark"] .sight-archive-confirmation__blockers {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}
