/* StoreConnect brand: https://storeconnect.com. Text variants meet 7:1 on light surfaces. */
@font-face {
  font-family: Intelo;
  src: url("/ui/fonts/intelo-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Intelo;
  src: url("/ui/fonts/intelo-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand-navy: #0f3980;
  --brand-teal: #379ba4;
  --teal-text: #164f56;
  --text: #182b42;
  --text-secondary: #394b5e;
  --canvas: #f5f8fa;
  --surface: #fff;
  --line: #d1dce5;
  --control-line: #627589;
  --focus: #0f3980;
  --radius: 12px;
  --font-body:
    Intelo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  font-size: 100%;
  background: var(--canvas);
  color: var(--text);
  scroll-padding: 1.5rem;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-width: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: normal;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button {
  min-height: 44px;
  min-width: 44px;
}
a {
  color: var(--brand-navy);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:disabled {
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}
main:focus {
  outline: none;
}
h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.65rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.1rem;
}
p,
h1,
h2,
h3,
dd,
span,
a {
  overflow-wrap: anywhere;
}
p {
  max-width: 80ch;
}
svg {
  flex: 0 0 auto;
  vertical-align: middle;
}
input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-navy);
  flex: 0 0 auto;
}
label:has(input[type="checkbox"]) {
  min-height: 44px;
  cursor: pointer;
}
textarea {
  resize: vertical;
}
pre {
  max-width: 100%;
  overflow: auto;
  tab-size: 2;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: normal;
}
summary {
  min-height: 44px;
  padding-block: 0.65rem;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  vertical-align: top;
}
th {
  font-weight: 700;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: white;
  transform: translateY(-200%);
  border-radius: 6px;
  font-weight: 700;
}
.skip-link:focus {
  transform: none;
}
.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 2rem 1.1rem 1rem;
}
.brand-link {
  display: inline-flex;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  padding: 0 0.65rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-mark {
  background: var(--brand-navy);
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  border-radius: 14px 14px 14px 3px;
  width: 52px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  letter-spacing: -0.15em;
  padding-right: 0.15em;
}
.brand-mark span {
  color: #a5e0e2;
}
.brand-name {
  display: block;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-company {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.brand-company strong {
  color: var(--brand-navy);
}
.brand-company strong span {
  color: var(--teal-text);
}
.nav-links {
  margin-top: 1.2rem;
}
.nav-group {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 1.4rem 0.8rem 0.45rem;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  margin-block: 0.2rem;
}
.nav-links a:hover {
  background: #f0f5f8;
  color: var(--brand-navy);
}
.nav-links a[aria-current="page"] {
  background: #eaf1fa;
  color: var(--brand-navy);
  border-left-color: var(--brand-navy);
  font-weight: 700;
}
.nav-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: auto;
  padding: 2rem 0.5rem 0.25rem;
}
.nav-footer strong,
.nav-footer div span {
  display: block;
  font-size: 0.875rem;
}
.nav-footer div span {
  color: var(--text-secondary);
}
.avatar {
  display: grid;
  place-items: center;
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: #e1eff0;
  color: var(--teal-text);
  font-weight: 700;
}
.signout {
  grid-column: 1 / -1;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.15rem clamp(1rem, 3vw, 3rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 80px;
}
.topbar-location {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.topbar-label > span {
  margin-inline: 0.65rem;
}
.topbar-label strong {
  color: var(--text);
}
.session-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--teal-text);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-text);
  border-radius: 50%;
  flex-shrink: 0;
}
.main-content {
  flex: 1;
  min-width: 0;
  padding: 2.25rem clamp(1rem, 3vw, 3rem) 3rem;
}
.workspace-footer {
  border-top: 1px solid var(--line);
  padding: 1rem clamp(1rem, 3vw, 3rem);
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.6rem;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.page-heading > div:first-child {
  flex: 1 1 26rem;
}
.eyebrow {
  color: var(--teal-text);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-description {
  color: var(--text-secondary);
  margin-top: 0.75rem;
}
.page-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.35;
}
.button-primary {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}
.button-primary:hover {
  background: #08285e;
}
.button-ghost {
  background: #fff;
  color: var(--brand-navy);
  border-color: var(--control-line);
}
.button-ghost:hover {
  background: #eaf1fa;
}
.button-success {
  background: #155132;
  color: #fff;
}
.button-danger {
  background: #861333;
  color: #fff;
}
.button:disabled {
  background: #e7edf2;
  color: #465366;
  border-color: #8996a3;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 700;
}
.field-help {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.card {
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}
.section-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.panel-heading p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}
.overview-banner {
  background: var(--brand-navy);
  color: white;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.overview-banner .eyebrow {
  color: #c6f2f2;
}
.overview-banner h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-bottom: 0.65rem;
}
.overview-banner p {
  color: #fff;
}
.banner-art {
  width: 190px;
  min-width: 190px;
  display: grid;
  place-items: center;
  position: relative;
  margin-inline: 2rem;
  color: #fff;
}
.banner-art span {
  position: absolute;
  height: 110px;
  width: 110px;
  border: 1px solid #83b9d1;
  border-radius: 50%;
}
.banner-art span:nth-child(2) {
  width: 165px;
  height: 165px;
}
.banner-art span:nth-child(3) {
  width: 220px;
  height: 220px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-tile {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  min-width: 0;
}
button.stat-tile:hover {
  border-color: var(--brand-navy);
  background: #f0f5fb;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.stat-value {
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.stat-delta {
  font-size: 0.9375rem;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.overview-aside {
  display: grid;
  gap: 1.5rem;
}
.investigation-rows {
  list-style: none;
  padding: 0;
}
.investigation-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
}
.investigation-row + .investigation-row {
  border-top: 1px solid var(--line);
}
.row-icon,
.tool-icon {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border-radius: 10px;
  background: #edf3fa;
  color: var(--brand-navy);
  flex-shrink: 0;
}
.row-content {
  flex: 1;
  min-width: 0;
}
.row-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--text);
}
.row-meta {
  display: flex;
  gap: 0.3rem 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.row-status {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #edf2f6;
  color: var(--text-secondary);
}
.badge-open {
  background: #fff2dc;
  color: #653600;
}
.badge-resolved {
  background: #e4f3e9;
  color: #155132;
}
.badge-env {
  color: var(--brand-navy);
  background: #eaf1fa;
}
button.badge {
  border: 1px solid var(--control-line);
}
.quick-tools > a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  text-decoration: none;
  color: var(--text);
}
.quick-tools > a:hover {
  background: #f0f5f8;
}
.quick-tools > a > span:nth-child(2) {
  flex: 1;
}
.quick-tools a strong,
.quick-tools a span span {
  display: block;
}
.quick-tools a span span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}
.help-card {
  background: #e9f3f3;
  border: 1px solid #bfd5d8;
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--teal-text);
}
.help-card h2 {
  margin: 0.75rem 0 0.5rem;
}
.help-card .button {
  margin-top: 1rem;
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}
.empty-state svg {
  color: var(--brand-navy);
  margin-bottom: 1rem;
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-state p {
  margin-inline: auto;
}
.list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.list-toolbar .field {
  flex: 0 1 24rem;
}
.filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--control-line);
  border-radius: 8px;
}
.filter-button span {
  font-size: 0.875rem;
}
.filter-button[aria-pressed="true"] {
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
}
.results-count {
  padding: 0.75rem 1.4rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.environment-search {
  max-width: 34rem;
}
.environment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
}
.environment-card {
  padding: 1.5rem;
}
.environment-card h2 {
  margin: 1rem 0;
}
.environment-card dl {
  margin-bottom: 1.25rem;
}
.environment-card dt {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.environment-card dd {
  margin-bottom: 0.5rem;
}
.investigation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
  align-items: start;
  gap: 1.5rem;
}
.investigation-main {
  min-width: 0;
}
.investigation-chat {
  min-width: 0;
}
.chat-panel {
  padding: 1.4rem;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-teal);
  border-radius: var(--radius);
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.chat-messages {
  max-height: 32rem;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.chat-composer {
  display: grid;
  gap: 0.75rem;
}
.case-card {
  border-top: 4px solid var(--brand-navy);
}
.case-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.case-card-header .section-label {
  margin-bottom: 0.3rem;
}
.case-lookup {
  display: grid;
  gap: 0.85rem;
}
.case-lookup > .field {
  max-width: 100%;
}
.lookup-field {
  position: relative;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}
.search-input > svg {
  position: absolute;
  left: 0.85rem;
  color: var(--text-secondary);
  pointer-events: none;
}
.case-lookup .search-input input[role="combobox"] {
  padding-left: 2.65rem;
}
.lookup-results {
  padding: 0.4rem;
  list-style: none;
  max-height: 22rem;
  overflow-y: auto;
  border: 2px solid var(--control-line);
  border-radius: 8px;
  background: #fff;
}
.lookup-option {
  padding: 0.85rem;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 64px;
}
.lookup-option + .lookup-option {
  margin-top: 0.3rem;
}
.lookup-option:hover,
.lookup-option[aria-selected="true"] {
  background: #eaf1fa;
  border-color: var(--brand-navy);
}
.lookup-option span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.lookup-option .lookup-number {
  color: var(--brand-navy);
  font-weight: 700;
}
.lookup-status {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.lookup-status:empty {
  display: none;
}
.selected-case {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1rem;
  background: #edf6f3;
  border: 1px solid #648579;
  border-radius: 8px;
}
.selected-case > div {
  flex: 1 1 14rem;
}
.selected-case strong,
.selected-case span {
  display: block;
}
.connected-case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 700;
}
.related-record {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.related-record a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.form-fields {
  display: grid;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.form-aside {
  padding: 1.5rem;
}
.form-aside ol {
  padding-left: 1.25rem;
}
.form-aside li {
  margin-block: 1rem;
}
.form-aside p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1.5rem;
  align-items: start;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.login-story {
  background: var(--brand-navy);
  color: white;
  padding: clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.login-story .eyebrow {
  color: #c6f2f2;
}
.login-story h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}
.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  gap: 1.5rem;
}
.login-form .card {
  max-width: 32rem;
  width: 100%;
  padding: 2rem;
}
.login-form .brand {
  margin-bottom: 1rem;
}
.mobile-nav {
  border: 0;
  margin: 0;
  height: 100dvh;
  max-height: none;
  width: min(90vw, 360px);
  max-width: none;
  background: #fff;
  color: var(--text);
  padding: 1.5rem;
}
.mobile-nav::backdrop {
  background: #182b42b3;
}
.mobile-nav > div {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.mobile-close {
  margin-top: 1rem;
  align-self: start;
}
.menu-toggle {
  display: none;
}
@media (min-width: 1700px) {
  .overview-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(22rem, 1fr);
  }
  .investigation-layout {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 32rem);
  }
}
@media (max-width: 1399px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-aside {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1099px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-content {
    padding-top: 1.5rem;
  }
}
@media (max-width: 767px) {
  .topbar {
    padding: 0.75rem 1rem;
  }
  .topbar-label {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .overview-aside,
  .form-layout,
  .login-layout {
    grid-template-columns: 1fr;
  }
  .overview-banner {
    padding: 1.5rem;
  }
  .banner-art {
    display: none;
  }
  .page-heading {
    align-items: start;
  }
  .page-actions {
    width: 100%;
  }
  .investigation-row {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.5rem 0.75rem;
  }
  .row-icon {
    display: none;
  }
  .row-content {
    flex-basis: 100%;
  }
  .row-status {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .card,
  .panel-heading,
  .list-toolbar,
  .chat-panel {
    padding: 1rem;
  }
  .stat-tile {
    padding: 1rem;
  }
  .stat-label {
    font-size: 0.875rem;
  }
  .login-story {
    padding: 2rem 1.5rem;
  }
  .login-story h1 {
    font-size: 2.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .button,
  .badge,
  .filter-button,
  .nav-links a[aria-current],
  .lookup-option[aria-selected="true"] {
    border: 2px solid ButtonText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
  }
}

.table-scroll th,
.table-scroll td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  min-width: 9rem;
  max-width: 32rem;
  overflow-wrap: anywhere;
}
.table-scroll th {
  background: #edf3fa;
  color: var(--text-secondary);
}
.table-scroll tr:nth-child(even) {
  background: #f5f8fa;
}
.record-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.5rem 1rem;
}
.record-details dt,
.record-details dd {
  border-bottom: 1px solid var(--line);
  padding-block: 0.4rem;
  overflow-wrap: anywhere;
}
.record-details dt {
  color: var(--text-secondary);
}
@media (max-width: 767px) {
  .record-details {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .record-details dt {
    border-bottom: 0;
    font-weight: 700;
  }
}

@media (max-width: 1279px) {
  .investigation-layout {
    grid-template-columns: 1fr;
  }
}

.error-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.error-container {
  max-width: 42rem;
  width: 100%;
  display: grid;
  gap: 1.25rem;
}
.error-container .card {
  margin: 0;
}
.error-container .brand {
  margin-bottom: 1rem;
}
.error-container pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 24rem;
}
.error-summary {
  color: #861333;
  padding-block: 0.75rem;
}

.environment-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.5rem;
}

.share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.share-row > div {
  min-width: 0;
  flex: 1 1 16rem;
}
