/* 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-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 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__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.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;
}

.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: baseline;
  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-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__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 #006b95;
  border-radius: 7px;
  background: #006b95;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 107, 149, 0.18);
  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: #006b95;
  outline: 0;
  box-shadow: 0 10px 22px rgba(7, 93, 126, 0.22);
}

.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 {
  position: relative;
  z-index: 1;
  flex: 0 1 20rem;
  width: min(20rem, 30vw);
  min-width: 11rem;
  max-width: 22rem;
  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 {
  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 {
  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-results {
  position: absolute;
  top: calc(100% + 0.36rem);
  right: 0;
  z-index: 1090;
  width: min(32rem, calc(100vw - 1rem));
  max-height: min(32rem, calc(100vh - 5rem));
  overflow: auto;
  padding: 0.26rem;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.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.48rem 0.56rem;
  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.72rem;
  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.24rem 0.42rem 0.18rem;
  color: #64748b;
  font-size: 0.62rem;
  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.38rem minmax(0, 1fr);
  gap: 0.12rem 0.48rem;
  align-items: center;
  min-width: 0;
  padding: 0.46rem 0.5rem;
  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.28rem;
  height: 1.28rem;
  border: 1px solid #d7e8f0;
  border-radius: 6px;
  background: #f5fbfe;
  color: #075d7e;
  font-size: 0.72rem;
  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.76rem;
  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.66rem;
  font-weight: 640;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.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 {
  align-self: center;
  margin-right: 0.36rem;
}

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

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-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.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;
}

.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__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;
}

.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;
}

.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%;
}

.sight-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 173, 238, 0.11), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(244, 247, 251, 0.94)),
    var(--sight-bg);
  color: var(--sight-foreground);
  font-family: var(--sight-sans);
}

.sight-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.72fr);
  gap: clamp(0.9rem, 3vw, 1.4rem);
  align-items: stretch;
  width: min(100%, 62rem);
  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: 2rem;
  min-height: 31rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  background:
    linear-gradient(145deg, rgba(20, 47, 83, 0.96), rgba(7, 93, 126, 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(2.1rem, 5vw, 3.5rem);
  font-weight: 740;
  line-height: 0.98;
}

.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__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: 1.72rem;
  height: 1.72rem;
  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;
  }
}

.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 {
    animation: none;
  }

  .sight-app-shell__sidebar,
  .sight-app-shell__body,
  .sight-app-shell__nav-link,
  .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-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__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 (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__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-title {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .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-results {
    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__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;
}

/* Home command center */
.home-workbench {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 16rem),
    #f6f8fb;
  color: #1e2c3a;
  font-family: var(--sight-sans);
}

.home-shell {
  --home-surface: #ffffff;
  --home-surface-soft: #f8fbfd;
  --home-surface-strong: #edf5fa;
  --home-border: #dce6ee;
  --home-border-strong: #b9ccdc;
  --home-text: #172536;
  --home-muted: #607083;
  --home-accent: #007fb0;
  --home-accent-strong: #0b3551;
  --home-accent-soft: rgba(0, 173, 238, 0.09);
  --home-green: #1f8f5f;
  --home-gold: #b36b00;
  --home-shadow: 0 12px 30px rgba(20, 47, 83, 0.06);
  --home-shadow-hover: 0 16px 36px rgba(20, 47, 83, 0.11);
  align-items: start;
}

.home-main {
  display: grid;
  gap: 0.9rem;
}

.home-command {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(24rem, 1.15fr);
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 173, 238, 0.1), rgba(255, 255, 255, 0) 34%),
    var(--home-surface);
  box-shadow: var(--home-shadow);
}

.home-command__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.home-command__title {
  max-width: 35rem;
  margin: 0;
  color: var(--home-text);
  font-family: var(--sight-sans);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 850;
  line-height: 1.08;
}

.home-command__subtitle {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.45;
}

.home-command__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.home-command__metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.26rem;
  min-height: 1.82rem;
  padding: 0.26rem 0.55rem;
  border: 1px solid var(--home-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.1;
}

.home-command__metrics strong {
  color: var(--home-text);
  font-size: 0.92rem;
  font-weight: 850;
}

.home-command__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.58rem;
  align-items: center;
  min-height: 5.15rem;
  padding: 0.72rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-surface);
  color: var(--home-text);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 47, 83, 0.045);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.home-action-card:hover,
.home-action-card:focus {
  border-color: rgba(0, 173, 238, 0.48);
  color: var(--home-text);
  text-decoration: none;
  box-shadow: var(--home-shadow-hover);
  transform: translateY(-1px);
}

.home-action-card--strong {
  border-color: #0b3551;
  background: linear-gradient(135deg, #0b3551 0%, #154b70 100%);
  color: #ffffff;
}

.home-action-card--strong:hover,
.home-action-card--strong:focus {
  border-color: #007fb0;
  color: #ffffff;
}

.home-action-card__icon,
.home-lane__icon,
.home-tool-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 7px;
  line-height: 1;
}

.home-action-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--home-border);
  background: var(--home-accent-soft);
  color: var(--home-accent-strong);
  font-size: 1rem;
}

.home-action-card--strong .home-action-card__icon {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.home-action-card__copy,
.home-tool-link__copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.home-action-card__title {
  display: block;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.home-action-card__description {
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 620;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.home-action-card--strong .home-action-card__description {
  color: rgba(255, 255, 255, 0.74);
}

.home-action-card__arrow,
.home-tool-link__arrow {
  color: var(--home-accent);
  font-size: 0.9rem;
}

.home-action-card--strong .home-action-card__arrow {
  color: rgba(255, 255, 255, 0.9);
}

.home-lanes,
.home-directory,
.home-tool-group,
.home-context-panel {
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow);
}

.home-lanes,
.home-directory {
  padding: 0.85rem;
}

.home-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.home-section-title {
  margin: 0;
  color: var(--home-text) !important;
  font-family: var(--sight-sans);
  font-size: 1rem;
  font-weight: 840;
  line-height: 1.18;
}

.home-section-summary {
  margin: 0.16rem 0 0;
  color: var(--home-muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.home-section-count {
  flex: 0 0 auto;
  color: var(--home-muted) !important;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
}

.home-lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.home-lane {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.78rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-surface-soft);
}

.home-lane__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  min-width: 0;
}

.home-lane__icon {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 173, 238, 0.28);
  background: var(--home-accent-soft);
  color: var(--home-accent-strong);
  font-size: 0.92rem;
}

.home-lane__title {
  margin: 0;
  color: var(--home-text);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.2;
}

.home-lane__description {
  margin: 0.22rem 0 0;
  color: var(--home-muted);
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1.32;
}

.home-lane__links {
  display: grid;
  gap: 0.26rem;
}

.home-lane__link,
.home-context-link {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.home-lane__link {
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 1.8rem;
  padding: 0.28rem 0.42rem;
  border-radius: 7px;
  color: #1f506d;
  font-size: 0.74rem;
  font-weight: 760;
}

.home-lane__link:hover,
.home-lane__link:focus {
  background: #e8f5fb;
  color: #075d7e;
  text-decoration: none;
}

.home-lane__link span,
.home-context-link span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tool-groups {
  display: grid;
  gap: 0.65rem;
}

.home-tool-group {
  overflow: hidden;
  box-shadow: none;
}

.home-tool-group__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.78rem;
  border-bottom: 1px solid var(--home-border);
  background: linear-gradient(180deg, var(--home-surface-soft), var(--home-surface));
}

.home-tool-group__title {
  margin: 0;
  color: var(--home-text);
  font-size: 0.92rem;
  font-weight: 840;
  line-height: 1.18;
}

.home-tool-group__summary {
  margin: 0.16rem 0 0;
  color: var(--home-muted);
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1.3;
}

.home-tool-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 1.65rem;
  min-height: 1.5rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--home-border);
  border-radius: 7px;
  background: var(--home-surface);
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 820;
}

.home-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-tool-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.56rem;
  align-items: center;
  min-width: 0;
  min-height: 4.35rem;
  padding: 0.66rem 0.78rem;
  border-right: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  text-decoration: none;
}

.home-tool-link:nth-child(2n) {
  border-right: 0;
}

.home-tool-link:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.home-tool-link:hover,
.home-tool-link:focus {
  background: var(--home-surface-strong);
  color: var(--home-text);
  text-decoration: none;
}

.home-tool-link__icon {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--home-border);
  background: var(--home-accent-soft);
  color: var(--home-accent-strong);
  font-size: 0.88rem;
}

.home-tool-link__title {
  overflow: hidden;
  color: var(--home-text) !important;
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tool-link__description {
  color: var(--home-muted) !important;
  font-size: 0.73rem;
  font-weight: 610;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.home-context-panel {
  padding: 0.84rem;
}

.home-context-section + .home-context-section {
  margin-top: 0.86rem;
  padding-top: 0.86rem;
  border-top: 1px solid var(--home-border);
}

.home-context-section--rhythm {
  padding: 0.72rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(252, 186, 99, 0.17), rgba(0, 173, 238, 0.06)),
    var(--home-surface-soft);
}

.home-context-title {
  margin: 0 0 0.52rem;
  color: var(--home-text);
  font-size: 0.86rem;
  font-weight: 840;
  line-height: 1.2;
}

.home-rhythm-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-rhythm;
}

.home-rhythm-list li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.42rem;
  align-items: center;
  min-width: 0;
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  counter-increment: home-rhythm;
}

.home-rhythm-list li::before {
  content: counter(home-rhythm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 50%;
  background: var(--home-accent-strong);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 840;
}

.home-context-links {
  display: grid;
  gap: 0.36rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-context-link {
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.28rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--home-border);
  border-radius: 7px;
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 0.78rem;
  font-weight: 760;
}

.home-context-link > i:first-child {
  flex: 0 0 auto;
  width: 1rem;
  color: var(--home-accent);
  text-align: center;
}

.home-context-link > i:last-child {
  flex: 0 0 auto;
  color: var(--home-muted);
  font-size: 0.78rem;
}

.home-context-link:hover,
.home-context-link:focus {
  border-color: rgba(0, 173, 238, 0.42);
  background: #edf8fc;
  color: #075d7e;
  text-decoration: none;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-workbench {
  background:
    linear-gradient(180deg, rgba(22, 34, 51, 0.72) 0%, rgba(11, 17, 24, 0) 15rem),
    #0b1118;
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-shell {
  --home-surface: #111b26;
  --home-surface-soft: #162233;
  --home-surface-strong: #1b2b3d;
  --home-border: #2b3a4c;
  --home-border-strong: #38506a;
  --home-text: #eaf2fb;
  --home-muted: #9aaabd;
  --home-accent: #67d1f2;
  --home-accent-strong: #c9effb;
  --home-accent-soft: rgba(103, 209, 242, 0.13);
  --home-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  --home-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.42);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-action-card--strong {
  border-color: #2a9bc3;
  background: linear-gradient(135deg, #0f2a3b 0%, #0f5f7c 100%);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-command,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-command__metrics span,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-lanes,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-directory,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-tool-group,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-context-panel,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-action-card,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-context-link {
  background-color: var(--home-surface);
  color: var(--home-text);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-lane__link {
  color: #bae6fd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-lane__link:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-lane__link:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-context-link:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-context-link:focus {
  background: rgba(103, 209, 242, 0.14);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-rhythm-list li::before {
  background: #0f6f8e;
}

@media (max-width: 1280px) {
  .home-command {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-command,
  .home-lanes,
  .home-directory,
  .home-context-panel {
    padding: 0.68rem;
  }

  .home-command__actions,
  .home-lane-grid,
  .home-tool-list {
    grid-template-columns: 1fr;
  }

  .home-tool-link,
  .home-tool-link:nth-child(2n),
  .home-tool-link:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--home-border);
  }

  .home-tool-link:last-child {
    border-bottom: 0;
  }

  .home-section-heading {
    display: grid;
  }
}

.home-dashboard-shell {
  --home-dashboard-panel: var(--home-surface);
  --home-dashboard-panel-soft: var(--home-surface-soft);
  --home-dashboard-hover: var(--home-surface-strong);
}

.home-dashboard-shell.sight-content-grid--with-panel {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
}

.home-dashboard-hero,
.home-dashboard-overview,
.home-dashboard-panel,
.home-dashboard-side {
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel);
  box-shadow: var(--home-shadow);
}

.home-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 0.9rem;
  padding: 1rem;
}

.home-dashboard-hero__copy {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  min-width: 0;
}

.home-dashboard-kicker,
.home-dashboard-card__label {
  color: var(--home-accent);
  font-size: 0.7rem;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.home-dashboard-hero__title {
  max-width: 36rem;
  margin: 0;
  color: var(--home-text);
  font-family: var(--sight-sans);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.1;
}

.home-dashboard-hero__subtitle,
.home-dashboard-section-summary,
.home-dashboard-card__summary,
.home-dashboard-action__description,
.home-dashboard-signal__description {
  color: var(--home-muted);
  font-weight: 620;
  line-height: 1.36;
}

.home-dashboard-hero__subtitle {
  max-width: 34rem;
  margin: 0;
  font-size: 0.86rem;
}

.home-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-dashboard-action,
.home-dashboard-card__main,
.home-dashboard-signal,
.home-dashboard-chip {
  color: var(--home-text);
  text-decoration: none;
}

.home-dashboard-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.58rem;
  align-items: center;
  min-height: 4.85rem;
  padding: 0.72rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.home-dashboard-action:hover,
.home-dashboard-action:focus,
.home-dashboard-card__main:hover,
.home-dashboard-card__main:focus,
.home-dashboard-signal:hover,
.home-dashboard-signal:focus,
.home-dashboard-chip:hover,
.home-dashboard-chip:focus {
  border-color: rgba(0, 173, 238, 0.42);
  background: var(--home-dashboard-hover);
  color: var(--home-text);
  text-decoration: none;
}

.home-dashboard-action:hover,
.home-dashboard-action:focus {
  transform: translateY(-1px);
}

.home-dashboard-action__icon,
.home-dashboard-card__icon,
.home-dashboard-signal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--home-border);
  border-radius: 7px;
  background: var(--home-accent-soft);
  color: var(--home-accent-strong);
  line-height: 1;
}

.home-dashboard-action__icon {
  width: 2.18rem;
  height: 2.18rem;
  font-size: 0.98rem;
}

.home-dashboard-action__copy,
.home-dashboard-card__copy,
.home-dashboard-signal__copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.home-dashboard-action__title,
.home-dashboard-card__title,
.home-dashboard-signal__title {
  color: var(--home-text);
  font-weight: 820;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.home-dashboard-action__title {
  font-size: 0.9rem;
}

.home-dashboard-action__description {
  font-size: 0.75rem;
}

.home-dashboard-action__arrow,
.home-dashboard-card__main > i,
.home-dashboard-signal > i {
  color: var(--home-accent);
  font-size: 0.86rem;
}

.home-dashboard-overview,
.home-dashboard-panel {
  padding: 0.85rem;
}

.home-dashboard-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.home-dashboard-section-title {
  margin: 0;
  color: var(--home-text) !important;
  font-family: var(--sight-sans);
  font-size: 1rem;
  font-weight: 840;
  line-height: 1.18;
}

.home-dashboard-section-summary {
  margin: 0.16rem 0 0;
  font-size: 0.78rem;
}

.home-dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.home-dashboard-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
}

.home-dashboard-card__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.58rem;
  align-items: start;
  min-height: 8.1rem;
  padding: 0.78rem;
}

.home-dashboard-card__icon {
  width: 2rem;
  height: 2rem;
  font-size: 0.92rem;
}

.home-dashboard-card__title {
  font-size: 1.08rem;
}

.home-dashboard-card__summary {
  margin-top: 0.08rem;
  font-size: 0.76rem;
}

.home-dashboard-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  padding: 0.58rem 0.78rem;
  border-top: 1px solid var(--home-border);
  background: var(--home-dashboard-panel);
}

.home-dashboard-card__links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.58rem;
  padding: 0.18rem 0.44rem;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: var(--home-dashboard-panel-soft);
  color: #1f506d;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
}

.home-dashboard-card__links a:hover,
.home-dashboard-card__links a:focus {
  border-color: rgba(0, 173, 238, 0.42);
  color: #075d7e;
  text-decoration: none;
}

.home-inflow-how-to {
  display: grid;
  gap: 0.78rem;
}

.home-inflow-how-to__heading {
  margin-bottom: 0;
}

.home-inflow-how-to .home-dashboard-section-summary a {
  color: var(--home-accent-strong);
  font-weight: 820;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.home-inflow-how-to .home-dashboard-section-summary a:hover,
.home-inflow-how-to .home-dashboard-section-summary a:focus {
  color: var(--home-accent);
  text-decoration: underline;
}

.home-inflow-how-to__template {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.64rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
}

.home-inflow-how-to__template code {
  display: block;
  min-width: 0;
  color: var(--home-text);
  font-family: var(--sight-mono);
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.36;
  overflow-wrap: anywhere;
  white-space: normal;
}

.home-inflow-how-to__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem 0.96rem;
}

.home-inflow-how-to__item {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.54rem;
  min-width: 0;
  padding-top: 0.66rem;
  border-top: 1px solid var(--home-border);
}

.home-inflow-how-to__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  background: var(--home-accent-soft);
  color: var(--home-accent-strong);
  font-size: 0.82rem;
}

.home-inflow-how-to__item h3 {
  margin: 0;
  color: var(--home-text);
  font-size: 0.82rem;
  font-weight: 840;
  line-height: 1.18;
}

.home-inflow-how-to__item p {
  margin: 0.16rem 0 0;
  color: var(--home-muted);
  font-size: 0.74rem;
  font-weight: 640;
  line-height: 1.38;
}

.home-inflow-how-to__item strong {
  color: var(--home-text);
  font-weight: 840;
}

.home-dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0.9rem;
}

.home-dashboard-signal-list {
  display: grid;
  gap: 0.48rem;
}

.home-dashboard-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-height: 4.12rem;
  padding: 0.62rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
}

.home-dashboard-signal__icon {
  width: 1.95rem;
  height: 1.95rem;
  font-size: 0.86rem;
}

.home-dashboard-signal__title {
  font-size: 0.84rem;
}

.home-dashboard-signal__description {
  font-size: 0.73rem;
}

.home-dashboard-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.home-dashboard-chip {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  min-height: 2.54rem;
  padding: 0.46rem 0.55rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
  font-size: 0.78rem;
  font-weight: 780;
}

.home-dashboard-chip i {
  flex: 0 0 1rem;
  color: var(--home-accent);
  text-align: center;
}

.home-dashboard-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dashboard-side__section + .home-dashboard-side__section {
  margin-top: 0.86rem;
  padding-top: 0.86rem;
  border-top: 1px solid var(--home-border);
}

.home-dashboard-side__section--rhythm {
  padding: 0.72rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(252, 186, 99, 0.17), rgba(0, 173, 238, 0.06)),
    var(--home-dashboard-panel-soft);
}

.home-dashboard-side__section--north-star {
  display: grid;
  gap: 0.62rem;
  padding: 0.72rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(252, 186, 99, 0.18), rgba(0, 173, 238, 0.07)),
    var(--home-dashboard-panel-soft);
}

.home-dashboard-side__section--north-star .home-context-title {
  margin-bottom: 0;
}

.home-north-star__eyebrow {
  color: var(--home-accent-strong);
  font-size: 0.66rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.home-north-star__summary,
.home-north-star__standard {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.42;
}

.home-north-star__summary {
  color: var(--home-text);
  font-weight: 760;
}

.home-values-list {
  display: grid;
  gap: 0.44rem;
}

.home-value-item {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.46rem;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel);
}

.home-value-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  background: var(--home-accent-soft);
  color: var(--home-accent-strong);
  font-size: 0.8rem;
}

.home-value-item__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.home-value-item__title {
  color: var(--home-text);
  font-size: 0.78rem;
  font-weight: 840;
  line-height: 1.18;
}

.home-value-item__description {
  color: var(--home-muted);
  font-size: 0.7rem;
  font-weight: 620;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.home-executive-snapshot {
  padding: 0.85rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel);
  box-shadow: var(--home-shadow);
}

.home-snapshot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2.18rem;
  padding: 0.36rem 0.58rem;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: var(--home-dashboard-panel-soft);
  color: var(--home-accent-strong);
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.home-snapshot-link:hover,
.home-snapshot-link:focus {
  border-color: rgba(0, 173, 238, 0.42);
  background: var(--home-dashboard-hover);
  color: var(--home-accent-strong);
  text-decoration: none;
}

.home-snapshot-stat-grid,
.home-firm-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-snapshot-stat,
.home-firm-stat {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  min-height: 6rem;
  padding: 0.66rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
  color: var(--home-text);
  text-decoration: none;
}

.home-snapshot-stat:hover,
.home-snapshot-stat:focus,
.home-firm-stat:hover,
.home-firm-stat:focus {
  border-color: rgba(0, 173, 238, 0.42);
  background: var(--home-dashboard-hover);
  color: var(--home-text);
  text-decoration: none;
}

.home-snapshot-stat__label,
.home-firm-stat__label,
.home-priority-task__meta,
.home-priority-status,
.home-snapshot-empty {
  color: var(--home-muted);
}

.home-snapshot-stat__label,
.home-firm-stat__label {
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.05;
  text-transform: uppercase;
}

.home-snapshot-stat__value,
.home-firm-stat__value {
  color: var(--home-text);
  font-size: 1.62rem;
  font-weight: 860;
  line-height: 1;
}

.home-snapshot-stat__detail,
.home-firm-stat__detail {
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 660;
  line-height: 1.25;
}

.home-snapshot-stat[data-tone="critical"],
.home-firm-stat[data-tone="critical"] {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(254, 226, 226, 0.62);
}

.home-snapshot-stat[data-tone="warning"],
.home-firm-stat[data-tone="warning"] {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(254, 243, 199, 0.62);
}

.home-snapshot-stat[data-tone="success"],
.home-firm-stat[data-tone="success"] {
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(220, 252, 231, 0.52);
}

.home-snapshot-stat[data-tone="review"],
.home-firm-stat[data-tone="review"] {
  border-color: rgba(124, 58, 237, 0.26);
  background: rgba(237, 233, 254, 0.58);
}

.home-priority-strip {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--home-border);
}

.home-priority-strip__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.48rem;
}

.home-priority-strip__heading h3 {
  margin: 0;
  color: var(--home-text);
  font-size: 0.88rem;
  font-weight: 840;
  line-height: 1.18;
}

.home-priority-strip__heading a {
  color: var(--home-accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-priority-strip__heading a:hover,
.home-priority-strip__heading a:focus {
  color: var(--home-accent);
  text-decoration: underline;
}

.home-priority-list {
  display: grid;
  gap: 0.42rem;
}

.home-priority-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.64rem;
  align-items: center;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
  color: var(--home-text);
  text-decoration: none;
}

.home-priority-task:hover,
.home-priority-task:focus {
  border-color: rgba(0, 173, 238, 0.42);
  background: var(--home-dashboard-hover);
  color: var(--home-text);
  text-decoration: none;
}

.home-priority-task__main {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.home-priority-task__title {
  min-width: 0;
  overflow: hidden;
  color: var(--home-text);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-priority-task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem;
  font-size: 0.72rem;
  font-weight: 660;
  line-height: 1.2;
}

.home-priority-task__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.home-priority-badge,
.home-priority-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: var(--home-dashboard-panel);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.home-priority-badge[data-tone="critical"],
.home-priority-badge[data-tone="high"] {
  border-color: rgba(220, 38, 38, 0.26);
  background: rgba(254, 226, 226, 0.7);
  color: #991b1b;
}

.home-priority-badge[data-tone="info"] {
  border-color: rgba(2, 132, 199, 0.26);
  background: rgba(224, 242, 254, 0.7);
  color: #075985;
}

.home-snapshot-empty {
  padding: 0.72rem;
  border: 1px dashed var(--home-border);
  border-radius: 8px;
  background: var(--home-dashboard-panel-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-dashboard-card__links a {
  color: #bae6fd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-dashboard-card__links a:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-dashboard-card__links a:focus {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-snapshot-link,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-snapshot-stat,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-firm-stat,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-priority-task,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-priority-badge,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-priority-status,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-snapshot-empty {
  border-color: var(--sight-border);
  background: var(--sight-surface-muted);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-snapshot-stat[data-tone="critical"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-firm-stat[data-tone="critical"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-priority-badge[data-tone="critical"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-priority-badge[data-tone="high"] {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(127, 29, 29, 0.3);
  color: #fecaca;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-snapshot-stat[data-tone="warning"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-firm-stat[data-tone="warning"] {
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(120, 53, 15, 0.28);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-snapshot-stat[data-tone="success"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-firm-stat[data-tone="success"] {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(20, 83, 45, 0.24);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-snapshot-stat[data-tone="review"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-firm-stat[data-tone="review"] {
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(76, 29, 149, 0.26);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .home-priority-badge[data-tone="info"] {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(12, 74, 110, 0.3);
  color: #bae6fd;
}

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

  .home-dashboard-hero,
  .home-dashboard-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .home-dashboard-card-grid,
  .home-snapshot-stat-grid,
  .home-firm-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-dashboard-hero,
  .home-dashboard-overview,
  .home-dashboard-panel,
  .home-dashboard-side {
    padding: 0.68rem;
  }

  .home-dashboard-actions,
  .home-dashboard-chip-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard-section-heading {
    display: grid;
  }

  .home-priority-task {
    grid-template-columns: 1fr;
  }

  .home-priority-task__badges,
  .home-priority-strip__heading {
    justify-content: flex-start;
  }
}

.action-link:not(.sight-button),
button:not(.btn):not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.sight-nav__toggle):not(.sight-nav__section-toggle):not(.sight-recipient-token-remove):not(.chart-display__control-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(.contextual-suggestions__toggle):not(.associate-theme-toggle__button):not(.associate-mode__button):not(.associate-quick-start):not(.recent-chat-item):not(.task-rail__toggle):not(.task-rail__refresh):not(.selected-context-strip__edit):not(.context-file-option__action):not(.associate-feedback__toggle):not(.associate-feedback__rating):not(.associate-feedback__cancel):not(.associate-feedback__submit) {
  border-radius: 6px !important;
}

main button:not(.btn):not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-close):not(.chart-display__control-button):not(.dashboard-theme-button):not(.sight-recipient-token-remove):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(.contextual-suggestions__toggle):not(.associate-theme-toggle__button):not(.associate-mode__button):not(.associate-quick-start):not(.recent-chat-item):not(.task-rail__toggle):not(.task-rail__refresh):not(.selected-context-strip__edit):not(.context-file-option__action):not(.associate-feedback__toggle):not(.associate-feedback__rating):not(.associate-feedback__cancel):not(.associate-feedback__submit),
.action-link:not(.sight-button) {
  border: 1px solid var(--sight-line) !important;
  background: #ffffff !important;
  color: var(--sight-navy) !important;
  font-weight: 700;
  text-decoration: none;
}

main button:not(.btn):not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-close):not(.chart-display__control-button):not(.dashboard-theme-button):not(.sight-recipient-token-remove):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(.contextual-suggestions__toggle):not(.associate-theme-toggle__button):not(.associate-mode__button):not(.associate-quick-start):not(.recent-chat-item):not(.task-rail__toggle):not(.task-rail__refresh):not(.selected-context-strip__edit):not(.context-file-option__action):not(.associate-feedback__toggle):not(.associate-feedback__rating):not(.associate-feedback__cancel):not(.associate-feedback__submit):hover,
main button:not(.btn):not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-close):not(.chart-display__control-button):not(.dashboard-theme-button):not(.sight-recipient-token-remove):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(.contextual-suggestions__toggle):not(.associate-theme-toggle__button):not(.associate-mode__button):not(.associate-quick-start):not(.recent-chat-item):not(.task-rail__toggle):not(.task-rail__refresh):not(.selected-context-strip__edit):not(.context-file-option__action):not(.associate-feedback__toggle):not(.associate-feedback__rating):not(.associate-feedback__cancel):not(.associate-feedback__submit):focus,
.action-link:not(.sight-button):hover,
.action-link:not(.sight-button):focus {
  border-color: rgba(0, 173, 238, 0.42) !important;
  background: var(--sight-accent-wash) !important;
  color: var(--sight-navy) !important;
}

html[data-sight-theme="dark"] body:not(.pdf) main button:not(.btn):not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-close):not(.chart-display__control-button):not(.dashboard-theme-button):not(.sight-recipient-token-remove):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(.contextual-suggestions__toggle):not(.associate-theme-toggle__button):not(.associate-mode__button):not(.associate-quick-start):not(.recent-chat-item):not(.task-rail__toggle):not(.task-rail__refresh):not(.selected-context-strip__edit):not(.context-file-option__action):not(.associate-feedback__toggle):not(.associate-feedback__rating):not(.associate-feedback__cancel):not(.associate-feedback__submit),
html[data-sight-theme="dark"] body:not(.pdf) .action-link:not(.sight-button) {
  border-color: var(--sight-border-strong) !important;
  background: var(--sight-surface-raised) !important;
  color: #dbeafe !important;
}

html[data-sight-theme="dark"] body:not(.pdf) main button:not(.btn):not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-close):not(.chart-display__control-button):not(.dashboard-theme-button):not(.sight-recipient-token-remove):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(.contextual-suggestions__toggle):not(.associate-theme-toggle__button):not(.associate-mode__button):not(.associate-quick-start):not(.recent-chat-item):not(.task-rail__toggle):not(.task-rail__refresh):not(.selected-context-strip__edit):not(.context-file-option__action):not(.associate-feedback__toggle):not(.associate-feedback__rating):not(.associate-feedback__cancel):not(.associate-feedback__submit):hover,
html[data-sight-theme="dark"] body:not(.pdf) main button:not(.btn):not(.sight-button):not(.sight-icon-button):not(.sight-workbench-button):not(.btn-close):not(.chart-display__control-button):not(.dashboard-theme-button):not(.sight-recipient-token-remove):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(.contextual-suggestions__toggle):not(.associate-theme-toggle__button):not(.associate-mode__button):not(.associate-quick-start):not(.recent-chat-item):not(.task-rail__toggle):not(.task-rail__refresh):not(.selected-context-strip__edit):not(.context-file-option__action):not(.associate-feedback__toggle):not(.associate-feedback__rating):not(.associate-feedback__cancel):not(.associate-feedback__submit):focus,
html[data-sight-theme="dark"] body:not(.pdf) .action-link:not(.sight-button):hover,
html[data-sight-theme="dark"] body:not(.pdf) .action-link:not(.sight-button):focus {
  border-color: rgba(103, 209, 242, 0.48) !important;
  background: rgba(103, 209, 242, 0.14) !important;
  color: #93def5 !important;
}

html[data-sight-theme="dark"] body:not(.pdf) main .list-panel,
html[data-sight-theme="dark"] body:not(.pdf) main .detail-panel,
html[data-sight-theme="dark"] body:not(.pdf) main .create-panel,
html[data-sight-theme="dark"] body:not(.pdf) main .panel,
html[data-sight-theme="dark"] body:not(.pdf) main .section,
html[data-sight-theme="dark"] body:not(.pdf) main .workspace,
html[data-sight-theme="dark"] body:not(.pdf) main .matter-results-panel,
html[data-sight-theme="dark"] body:not(.pdf) main .matter-results-heading,
html[data-sight-theme="dark"] body:not(.pdf) main .matter-status-toggle,
html[data-sight-theme="dark"] body:not(.pdf) main .bulk-selection-summary,
html[data-sight-theme="dark"] body:not(.pdf) main .bulk-status-toolbar,
html[data-sight-theme="dark"] body:not(.pdf) main .answer-copy,
html[data-sight-theme="dark"] body:not(.pdf) main .answer-status,
html[data-sight-theme="dark"] body:not(.pdf) main .surface-link,
html[data-sight-theme="dark"] body:not(.pdf) main .checklist-heading,
html[data-sight-theme="dark"] body:not(.pdf) main .checklist-summary__item,
html[data-sight-theme="dark"] body:not(.pdf) main .checklist-step {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface) !important;
  background-color: var(--sight-surface) !important;
  color: var(--sight-fg) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
}

html[data-sight-theme="dark"] body:not(.pdf) main .panel-heading,
html[data-sight-theme="dark"] body:not(.pdf) main .workspace-header,
html[data-sight-theme="dark"] body:not(.pdf) main .table-header,
html[data-sight-theme="dark"] body:not(.pdf) main .list-heading {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface-muted) !important;
  background-color: var(--sight-surface-muted) !important;
  color: var(--sight-fg) !important;
}

html[data-sight-theme="dark"] body:not(.pdf) main .task-table tr,
html[data-sight-theme="dark"] body:not(.pdf) main .task-table td,
html[data-sight-theme="dark"] body:not(.pdf) main .task-table th,
html[data-sight-theme="dark"] body:not(.pdf) main .task-row,
html[data-sight-theme="dark"] body:not(.pdf) main .task-select-cell,
html[data-sight-theme="dark"] body:not(.pdf) main .task-title-cell {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface) !important;
  background-color: var(--sight-surface) !important;
  color: var(--sight-fg) !important;
}

html[data-sight-theme="dark"] body:not(.pdf) main .group-toggle,
html[data-sight-theme="dark"] body:not(.pdf) main .row-icon-button,
html[data-sight-theme="dark"] body:not(.pdf) main .matter-sort-link {
  border-color: var(--sight-border-strong) !important;
  background: var(--sight-surface-raised) !important;
  background-color: var(--sight-surface-raised) !important;
  color: #7dd3fc !important;
}

.secondary-button {
  border-color: var(--sight-line) !important;
  background: #ffffff !important;
  color: var(--sight-navy) !important;
}

.secondary-button:hover,
.secondary-button:focus {
  border-color: rgba(0, 173, 238, 0.42) !important;
  background: rgba(0, 173, 238, 0.08) !important;
  color: var(--sight-navy) !important;
}

.status-toggle {
  border: 1px solid var(--sight-line) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

.status-toggle input:checked + label,
.redline-mode-card.is-active {
  border-color: rgba(0, 173, 238, 0.42) !important;
  background: rgba(0, 173, 238, 0.08) !important;
  color: var(--sight-navy) !important;
  box-shadow: none !important;
}

.redline-hero .text-bg-light,
.redline-hero .badge {
  border: 1px solid rgba(0, 173, 238, 0.28) !important;
  background: rgba(0, 173, 238, 0.08) !important;
  color: var(--sight-navy) !important;
}

.redline-hero .bg-white {
  border: 1px solid var(--sight-line) !important;
  background: #ffffff !important;
  color: var(--sight-charcoal) !important;
}

.redline-hero .text-uppercase,
.redline-hero .small {
  color: var(--sight-muted) !important;
}

.redline-mode-card {
  border-radius: 6px !important;
  border-color: var(--sight-line) !important;
  background: #fbfcfc !important;
}

.sight-recipient-combobox {
  border-color: #cfd7dc !important;
  border-radius: 4px !important;
}

.sight-inflow-progress-steps li {
  border: 1px solid var(--sight-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--sight-muted) !important;
}

.sight-inflow-progress-steps li.is-active {
  background: rgba(0, 173, 238, 0.08) !important;
  color: var(--sight-navy) !important;
}

.sight-inflow-progress-steps li.is-complete {
  background: rgba(31, 143, 95, 0.12) !important;
  color: #176646 !important;
}

.progress-bar {
  background-color: var(--sight-action) !important;
}

.app-card {
  border-color: var(--sight-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--sight-shadow);
}

.app-card:hover {
  border-color: rgba(0, 173, 238, 0.42);
  box-shadow: var(--sight-shadow-hover);
}

.sight-page-feedback {
  position: fixed;
  right: 1rem;
  bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
  z-index: 1080;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(21rem, calc(100vw - 2rem));
  color: var(--sight-ink);
}

.sight-page-feedback__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 2.7rem;
  min-width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(11, 53, 81, 0.18) !important;
  border-radius: 999px !important;
  background: var(--sight-surface, #ffffff) !important;
  color: var(--sight-navy, #0b3551) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  transition: width 0.16s ease, min-width 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.sight-page-feedback__toggle:hover,
.sight-page-feedback__toggle:focus,
.sight-page-feedback__toggle[aria-expanded="true"] {
  justify-content: flex-start;
  gap: 0.42rem;
  width: 7.2rem;
  min-width: 7.2rem;
  border-color: rgba(0, 173, 238, 0.44) !important;
  background: #f5fbff !important;
  color: var(--sight-navy, #0b3551) !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.sight-page-feedback__toggle i {
  flex: 0 0 auto;
  width: 2.62rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}

.sight-page-feedback__toggle span {
  flex: 0 0 auto;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: max-width 0.16s ease, opacity 0.16s ease;
}

.sight-page-feedback__toggle:hover span,
.sight-page-feedback__toggle:focus span,
.sight-page-feedback__toggle[aria-expanded="true"] span {
  max-width: 5rem;
  opacity: 1;
}

.sight-page-feedback__panel {
  width: min(21rem, calc(100vw - 2rem));
  padding: 0.72rem;
  border: 1px solid var(--sight-line, #d7e0ea);
  border-radius: 8px;
  background: var(--sight-surface, #ffffff);
  color: var(--sight-ink, #0f2335);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.22);
}

.sight-page-feedback__panel[hidden] {
  display: none;
}

.sight-page-feedback__header,
.sight-page-feedback__footer,
.sight-page-feedback__ratings {
  display: flex;
  align-items: center;
}

.sight-page-feedback__header {
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.58rem;
}

.sight-page-feedback__title {
  margin: 0;
  color: var(--sight-ink, #0f2335);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.sight-page-feedback__icon-button,
.sight-page-feedback__cancel,
.sight-page-feedback__submit,
.sight-page-feedback__rating {
  border-radius: 6px !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.sight-page-feedback__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--sight-line, #d7e0ea) !important;
  background: var(--sight-soft, #f6f8fb) !important;
  color: var(--sight-muted, #607083) !important;
}

.sight-page-feedback__ratings {
  gap: 0.38rem;
  margin-bottom: 0.55rem;
}

.sight-page-feedback__rating {
  flex: 1 1 0;
  min-height: 2rem;
  border: 1px solid var(--sight-line, #d7e0ea) !important;
  background: var(--sight-soft, #f6f8fb) !important;
  color: var(--sight-muted, #607083) !important;
}

.sight-page-feedback__rating[aria-pressed="true"] {
  border-color: rgba(0, 173, 238, 0.5) !important;
  background: rgba(0, 173, 238, 0.12) !important;
  color: var(--sight-navy, #0b3551) !important;
}

.sight-page-feedback__comment {
  display: block;
  width: 100%;
  min-height: 6.2rem;
  resize: vertical;
  padding: 0.58rem 0.64rem;
  border: 1px solid var(--sight-line, #d7e0ea);
  border-radius: 7px;
  background: var(--sight-surface, #ffffff);
  color: var(--sight-ink, #0f2335);
  font-size: 0.82rem;
  line-height: 1.38;
}

.sight-page-feedback__comment:focus {
  border-color: rgba(0, 173, 238, 0.55);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.14);
}

.sight-page-feedback__footer {
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.58rem;
}

.sight-page-feedback__cancel,
.sight-page-feedback__submit {
  min-height: 2rem;
  padding: 0 0.72rem;
  border: 1px solid var(--sight-line, #d7e0ea) !important;
}

.sight-page-feedback__cancel {
  background: var(--sight-surface, #ffffff) !important;
  color: var(--sight-muted, #607083) !important;
}

.sight-page-feedback__submit {
  background: var(--sight-action, #00adee) !important;
  color: #ffffff !important;
}

.sight-page-feedback__submit:disabled {
  opacity: 0.55;
}

.sight-page-feedback__status {
  min-height: 1rem;
  margin: 0.48rem 0 0;
  color: var(--sight-muted, #607083);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}

.sight-page-feedback__status.is-error {
  color: #b42318;
}

html[data-sight-theme="dark"] .sight-page-feedback {
  color: #e5edf5;
}

html[data-sight-theme="dark"] .sight-page-feedback__toggle,
html[data-sight-theme="dark"] .sight-page-feedback__panel,
html[data-sight-theme="dark"] .sight-page-feedback__comment,
html[data-sight-theme="dark"] .sight-page-feedback__cancel {
  border-color: #33485d !important;
  background: #111b26 !important;
  color: #e5edf5 !important;
}

html[data-sight-theme="dark"] .sight-page-feedback__toggle:hover,
html[data-sight-theme="dark"] .sight-page-feedback__toggle:focus,
html[data-sight-theme="dark"] .sight-page-feedback__toggle[aria-expanded="true"],
html[data-sight-theme="dark"] .sight-page-feedback__rating[aria-pressed="true"] {
  border-color: rgba(103, 209, 242, 0.48) !important;
  background: rgba(103, 209, 242, 0.14) !important;
  color: #93def5 !important;
}

html[data-sight-theme="dark"] .sight-page-feedback__title,
html[data-sight-theme="dark"] .sight-page-feedback__status {
  color: #e5edf5;
}

html[data-sight-theme="dark"] .sight-page-feedback__icon-button,
html[data-sight-theme="dark"] .sight-page-feedback__rating {
  border-color: #33485d !important;
  background: #162233 !important;
  color: #dbeafe !important;
}

html[data-sight-theme="dark"] .sight-page-feedback__status.is-error {
  color: #fca5a5;
}

.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 {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1085;
  display: flex;
  flex-direction: column;
  width: min(31rem, 100vw);
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  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: transform 0.2s ease;
}

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

.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__close {
  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;
}

.sight-associate-panel__close:hover,
.sight-associate-panel__close:focus {
  border-color: rgba(0, 173, 238, 0.42) !important;
  background: rgba(0, 173, 238, 0.08) !important;
  color: #0b3551 !important;
}

.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;
}

@media (max-width: 768px) {
  main.container,
  .container.my-5,
  .container.py-5,
  .container.py-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .sight-page-feedback {
    right: 0.82rem;
    bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 1.64rem);
  }

  .sight-page-feedback__toggle {
    width: 2.52rem;
    min-width: 2.52rem;
    height: 2.52rem;
  }

  .sight-page-feedback__toggle i {
    width: 2.44rem;
  }

  .sight-page-feedback__panel {
    width: calc(100vw - 1.64rem);
  }

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

:is(html[data-sight-theme="dark"] body, 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-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);
  background: #0b1118;
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) a {
  color: #7dd3fc;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]).sight-shell-page,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]).bg-light,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]).bg-white,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) main,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .bg-light,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .bg-white,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .bg-body,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .bg-body-tertiary {
  background-color: #0b1118 !important;
  color: #e5edf5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .text-dark,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .text-body,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) h1,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) h3,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) h4,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) h5,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) h6,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) label,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) legend {
  color: #eaf2fb !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .text-muted,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .text-secondary,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) small {
  color: #9aaabd !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .border,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .border-top,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .border-end,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .border-bottom,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .border-start {
  border-color: #2b3a4c !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-light,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-outline-dark {
  border-color: #334a5f;
  background: #162233;
  color: #dbeafe;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-light:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-light:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-outline-dark:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-outline-dark:focus {
  border-color: #67d1f2;
  background: rgba(103, 209, 242, 0.14);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .accordion,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .accordion-item,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .accordion-button,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .offcanvas,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .toast,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .popover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .input-group-text {
  border-color: #2b3a4c;
  background-color: #111b26;
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__body,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__content {
  background: #0b1118;
  color: #e5edf5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__topbar,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__sidebar,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__account,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-standalone,
: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-app-shell__topbar {
  background: rgba(17, 27, 38, 0.97);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell--non-production .sight-app-shell__topbar {
  border-bottom-color: #fb923c;
  background: #2a160b;
  box-shadow: inset 0 -3px 0 #fb923c, 0 1px 0 rgba(251, 146, 60, 0.24);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__environment {
  border-color: #fdba74;
  background: #ea580c;
  color: #fff7ed;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__brand:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__brand:focus-visible,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-link:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-link:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-group-summary:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-group-summary:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-group.is-active > .sight-app-shell__nav-group-summary {
  background: rgba(103, 209, 242, 0.12);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-link,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-group-summary,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__account-profile,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__theme-toggle,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__account-action,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__top-crumbs,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__top-description,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__account-meta,
: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-app-shell__nav-link.is-active,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__top-crumbs a,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-group[open] > .sight-app-shell__nav-group-summary {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__nav-link.is-active {
  background: rgba(103, 209, 242, 0.15);
  box-shadow: inset 2px 0 0 #67d1f2;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-link.is-active {
  box-shadow: inset 0 -3px 0 #67d1f2;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__top-title,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__top-heading > i,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__account-name,
: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-app-shell__theme-toggle,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-chevron,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-links {
  border-color: #2b3d50;
  background: #162233;
  color: #a8b8c8;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__theme-toggle:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__theme-toggle:focus-visible {
  border-color: #3b82a0;
  background: rgba(103, 209, 242, 0.12);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::before,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell.is-rail-collapsed .sight-app-shell__nav-group-summary::after {
  background: #172536;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__primary-action {
  border-color: #2a9bc3;
  background: #0f6f8e;
  box-shadow: 0 10px 22px rgba(14, 116, 144, 0.28);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__primary-action:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__primary-action:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__primary-action:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #0f6f8e;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-panel {
  border-color: #33485d;
  background: #0d1622;
  color: #e5edf5;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-panel-header {
  border-color: #223349;
  background: #111d2b;
  color: #edf6ff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-panel-header a {
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-item {
  border-color: #223349;
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-item:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-item:focus-visible {
  background: rgba(103, 209, 242, 0.13);
  color: #ffffff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-item.is-unread {
  border-left-color: #5eead4;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-item-message,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-empty {
  color: #9aaabd;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-item-meta {
  color: #7d8fa3;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__notification-dot {
  background: #5eead4;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-panel,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-list-panel,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-detail-panel,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-workbench-disclosure,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-workbench-controls,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-workbench-table,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-avatar-editor,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-section,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-context-panel,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .admin-users__section,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .admin-users__account,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .card,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .modal-content,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .dropdown-menu {
  border-color: #2b3a4c;
  background: #111b26;
  color: #e5edf5;
  box-shadow: var(--sight-shadow);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar__title,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar h1,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-panel h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-list-panel h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-detail-panel h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-section h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-avatar-editor__title,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-context-panel h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-context-panel h3,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .admin-users__section h2,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .admin-users__account-title,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .card-title,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .modal-title {
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar__subtitle,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar__meta,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-panel p,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-list-panel p,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-detail-panel p,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-status,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-avatar-editor__meta,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-context-panel p,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .admin-users__meta,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .admin-users__account-meta,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .text-muted,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .card-text {
  color: #9aaabd !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar__action,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-context-actions a,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-outline-secondary {
  border-color: #334a5f;
  background: #162233;
  color: #dbeafe;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar__action:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-context-bar__action:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-context-actions a:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-context-actions a:focus,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-outline-secondary:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .btn-outline-secondary:focus {
  border-color: #67d1f2;
  background: rgba(103, 209, 242, 0.14);
  color: #93def5;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-field label,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .admin-users__field label,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-inline-help {
  color: #a8b8c8;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input:not([type="color"]),
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) select,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) textarea,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .form-control,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .form-select,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-app-shell__client-context-input {
  border-color: #33485d;
  background-color: #0d1622;
  color: #edf6ff;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input[type="color"] {
  border-color: #33485d;
  background-color: #0d1622;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) input::placeholder,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) textarea::placeholder {
  color: #6f8194;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .table,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) table {
  --bs-table-bg: #111b26;
  --bs-table-color: #e5edf5;
  --bs-table-border-color: #2b3a4c;
  --bs-table-striped-bg: #162233;
  --bs-table-striped-color: #e5edf5;
  color: #e5edf5;
  border-color: #2b3a4c;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) th,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) td {
  border-color: #2b3a4c;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-stat-pill,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .badge.bg-light,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .bg-white,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .list-group-item {
  border-color: #2b3a4c !important;
  background-color: #162233 !important;
  color: #e5edf5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token {
  --sight-token-bg: #162233;
  --sight-token-border: #33485d;
  --sight-token-text: #dbeafe;
  --sight-token-dot: #8fb7ca;
}

:is(html[data-sight-theme="dark"], body[data-sight-theme="dark"]) {
  --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: #26364b;
  --sight-priority-muted-fg: #dbe7f3;
  --sight-priority-muted-border: #40516a;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="danger"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="critical"] {
  --sight-token-bg: rgba(244, 63, 94, 0.14);
  --sight-token-border: rgba(251, 113, 133, 0.38);
  --sight-token-text: #fda4af;
  --sight-token-dot: #fb7185;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="critical"] {
  --sight-token-border: rgba(153, 27, 27, 0.74);
  box-shadow: inset 0 0 0 1px rgba(153, 27, 27, 0.38);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="high"] {
  --sight-token-bg: rgba(244, 63, 94, 0.14);
  --sight-token-border: rgba(251, 113, 133, 0.38);
  --sight-token-text: #fda4af;
  --sight-token-dot: #fb7185;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="warning"] {
  --sight-token-bg: rgba(245, 158, 11, 0.14);
  --sight-token-border: rgba(251, 191, 36, 0.36);
  --sight-token-text: #fcd34d;
  --sight-token-dot: #f59e0b;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="success"] {
  --sight-token-bg: rgba(34, 197, 94, 0.14);
  --sight-token-border: rgba(74, 222, 128, 0.34);
  --sight-token-text: #86efac;
  --sight-token-dot: #22c55e;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="info"],
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-token[data-tone="review"] {
  --sight-token-bg: rgba(56, 189, 248, 0.14);
  --sight-token-border: rgba(125, 211, 252, 0.34);
  --sight-token-text: #bae6fd;
  --sight-token-dot: #38bdf8;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-message--success,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .alert-success {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .profile-message--error,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .alert-danger {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(244, 63, 94, 0.14);
  color: #fecdd3;
}

:is(html[data-sight-theme="dark"] body.sight-auth-page, body[data-sight-theme="dark"].sight-auth-page) {
  background:
    radial-gradient(circle at top left, rgba(0, 173, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(13, 22, 34, 0.92), rgba(8, 13, 20, 0.98)),
    #0b1118 !important;
  color: #e5edf5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-panel {
  border-color: #2b3a4c;
  background: #111b26;
  color: #e5edf5;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-panel--identity {
  border-color: rgba(103, 209, 242, 0.22);
  background:
    linear-gradient(145deg, rgba(8, 28, 43, 0.98), rgba(12, 68, 91, 0.94)),
    #081c2b;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-form-heading h2 {
  color: #eaf2fb;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-form-heading p,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-field label {
  color: #9fb0c3;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-field .form-control {
  border-color: #33485d !important;
  background: #0d1622 !important;
  color: #edf6ff !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-field .form-control:focus {
  border-color: #67d1f2 !important;
  box-shadow: 0 0 0 0.2rem rgba(103, 209, 242, 0.16) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-auth-alert {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(244, 63, 94, 0.14);
  color: #fecdd3;
}

: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__title {
  color: #e5edf5;
}

: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__close {
  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__close:hover,
:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .sight-associate-panel__close:focus {
  border-color: rgba(103, 209, 242, 0.48) !important;
  background: rgba(103, 209, 242, 0.13) !important;
  color: #93def5 !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,
  .migration-card,
  .migration-panel,
  .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-results {
  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-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 {
  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 {
  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__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__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__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;
}

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(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action),
body[data-sight-theme="dark"].sight-shell-page main 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),
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(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.sight-app-shell__primary-action):hover,
html[data-sight-theme="dark"] body.sight-shell-page main 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,
body[data-sight-theme="dark"].sight-shell-page main 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,
body[data-sight-theme="dark"].sight-shell-page main 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,
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 .migration-shell .overview-copy,
body[data-sight-theme="dark"] .migration-shell .overview-copy,
html[data-sight-theme="dark"] body .migration-shell .overview-status,
body[data-sight-theme="dark"] .migration-shell .overview-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;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .migration-shell :is(
  .stat-cell,
  .migration-stat,
  .task-review-copy,
  .task-review-card,
  .task-list,
  .task-detail,
  .detail-field,
  .checklist-summary__item,
  .checklist-step
) {
  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;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .migration-shell :is(
  .panel-heading,
  .section-heading,
  .group-title,
  .checklist-heading
) {
  border-color: var(--sight-border) !important;
  background: var(--sight-surface-muted) !important;
  background-color: var(--sight-surface-muted) !important;
  color: var(--sight-foreground-strong) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .migration-shell :is(
  .page-title,
  .migration-title,
  .overview-title,
  .status-answer,
  .path-card__title,
  .checklist-heading h2,
  .checklist-body h3,
  .checklist-summary__value,
  .checklist-step,
  .stat-value,
  .migration-stat__value,
  .task-review-title,
  .task-review-card__value,
  .panel-heading h2,
  .panel-heading h3,
  .section-heading h2,
  .section-heading h3,
  .side-title,
  .detail-section h3,
  .detail-field__value
) {
  color: var(--sight-foreground-strong) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .migration-shell :is(
  .page-subtitle,
  .migration-subtitle,
  .overview-eyebrow,
  .overview-text,
  .status-note,
  .path-card__text,
  .checklist-source,
  .checklist-current-status,
  .checklist-evidence,
  .checklist-summary__label,
  .stat-label,
  .migration-stat__label,
  .task-review-eyebrow,
  .task-review-text,
  .task-review-card__label,
  .muted-line,
  .control-label,
  .detail-field__label,
  .entry-meta
) {
  color: var(--sight-foreground-muted) !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .migration-shell :is(
  .path-card:hover,
  .path-card:focus,
  .filter-link:hover,
  .filter-link:focus,
  .filter-link.is-active,
  .view-tab:hover,
  .view-tab:focus,
  .view-tab.is-active
) {
  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"]) .migration-shell .path-card__icon {
  background: rgba(103, 209, 242, 0.14) !important;
  color: #93def5 !important;
}

:is(html[data-sight-theme="dark"] body, body[data-sight-theme="dark"]) .migration-shell :is(
  .checklist-row--needs-review,
  .checklist-row--partial,
  .checklist-row--done
) {
  background: linear-gradient(90deg, rgba(103, 209, 242, 0.08) 0, transparent 15rem) !important;
}
