* {
  box-sizing: border-box;
}
:root {
  --paper: #eef1f3;
  --ink: #172b35;
  --accent: var(--ink);
  --primary-bg: var(--ink);
  --primary-text: var(--paper);
  --navy: #142d3b;
  --line: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --panel: color-mix(in srgb, var(--paper) 96%, var(--ink));
  --muted: color-mix(in srgb, var(--ink) 82%, var(--paper));
  color-scheme: light;
}
:root[data-custom-accent] {
  --panel: color-mix(in srgb, var(--paper) 86%, white);
  --primary-bg: var(--panel);
  --primary-text: var(--accent);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
.mast {
  background: var(--navy);
  color: #f1f5f5;
}
.mastin,
.nav > div,
.content,
.foot {
  width: min(1180px, 91%);
  margin: auto;
}
.mastin {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font:
    700 35px/0.95 Georgia,
    serif;
  letter-spacing: -2.8px;
  text-decoration: none;
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark i {
  width: 17px;
  height: 23px;
  background: repeating-linear-gradient(
    to bottom,
    #d9aa60 0 3px,
    transparent 3px 7px
  );
  transform: skewY(-12deg);
  border-left: 3px solid #d9aa60;
}
.divider {
  height: 25px;
  border-left: 1px solid #82959b;
}
.tenantname,
.account,
.account form {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tenantname {
  font-size: 14px;
  font-weight: 600;
}
.tenantname img {
  object-fit: contain;
  max-width: 95px;
  height: 36px;
  background: white;
  padding: 3px;
  border-radius: 2px;
}
.account {
  margin-left: auto;
  font-size: 14px;
}
.account a,
.link {
  color: inherit;
  text-decoration: none;
}
.link {
  background: none;
  border: none;
  font: inherit;
  min-height: 0;
  padding: 6px;
  cursor: pointer;
}
.nav {
  border-bottom: 1px solid var(--line);
}
.nav > div {
  display: flex;
  align-items: stretch;
  gap: 26px;
}
.nav a {
  padding: 14px 0 11px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  text-decoration: none;
}
.nav a[aria-current] {
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.nav .switch {
  margin-left: auto;
}
.content {
  flex: 1;
  padding: 48px 0 64px;
}
.foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}
h1,
h2,
h3,
h4,
p {
  margin: 0 0 0.8em;
}
h1, h2, h3, h4 {
  color: var(--accent);
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  font-size: 1.875em;
  line-height: 1.15;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.375em;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
h4 {
  font-size: 1em;
}
.pagehead {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.pagehead h1,
.pagehead p:last-child {
  margin-bottom: 0;
}
.eyebrow,
.ref,
.key,
.entrymeta,
dt {
  font-size: 12px;
  letter-spacing: 0.065em;
  font-weight: 650;
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.ref {
  display: block;
}
.entrymeta {
  letter-spacing: 0.02em;
}
.panel,
.org {
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: clamp(19px, 3vw, 32px);
  margin-bottom: 22px;
  background: var(--panel);
  border-radius: 3px;
}
.narrow {
  max-width: 620px;
}
.casegrid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 25px;
}
.orgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 18px;
}
.org {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.org h2 {
  margin-bottom: 8px;
}
.org b {
  font-size: 22px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 17px;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
}
input[type="color"] {
  min-height: 44px;
  padding: 4px;
}
textarea {
  resize: vertical;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
button,
.button,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.3;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 41px;
  text-decoration: none;
  cursor: pointer;
}
.primary {
  background: var(--primary-bg);
  border-color: var(--accent);
  color: var(--primary-text);
}
button:hover,
.button:hover,
.primary:hover {
  filter: brightness(0.91);
}
.account .link {
  background: transparent;
  color: #f1f5f5;
  border: none;
  min-height: 0;
}
.search {
  max-width: 760px;
  margin-bottom: 30px;
}
.search label {
  margin-bottom: 5px;
}
.search div,
.pager,
.pair,
.frameform {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search input {
  margin: 0;
}
.pair label {
  flex: 1;
}
small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.panel small + button {
  margin-top: 16px;
}
.tablewrap {
  width: 100%;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--panel);
  font-size: 13px;
  border-top: 2px solid var(--ink);
}
.record {
  display: block;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.ref + .record {
  margin-top: 4px;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 9px;
  white-space: nowrap;
}
.empty {
  padding: 38px 24px;
  border: 1px dashed var(--line);
  text-align: center;
}
.empty h2 {
  margin-bottom: 6px;
}
.empty p {
  margin: 0;
}
.back {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 14px;
}
details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
summary {
  font-weight: 650;
  cursor: pointer;
}
details form,
details > label {
  margin-top: 14px;
}
.entry,
.file {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.entry:last-child p:last-child {
  margin-bottom: 0;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dd {
  margin: 2px 0 15px;
}
.file video {
  display: block;
  width: 100%;
  max-height: 350px;
  margin: 12px 0;
  background: #10222a;
}
.frameform {
  align-items: end;
}
.frameform label {
  max-width: 150px;
  margin: 0;
}
.pager {
  margin-top: 18px;
}
.digest,
code {
  overflow-wrap: anywhere;
  word-break: break-all;
}
/* Dashboard and case management */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.12em;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dashboard-page .content {
  padding: 1rem 0 1.5rem;
}
.dashboard-page {
  --panel: #fff;
}
.dashboard-page .mastin {
  min-height: 52px;
}
.dashboard-page .wordmark {
  font-size: 1.75rem;
}
.dashboard-page .tenantname img {
  height: 28px;
}
.dashboard-page .nav a {
  padding-block: 8px 6px;
}
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}
.dashboard-head h1 {
  margin-bottom: 0;
  font-size: 1.625em;
}
.dashboard-head .primary {
  flex: none;
}
.dashboard-section {
  margin-bottom: 1rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}
.section-head h2, .section-head p {
  margin: 0;
}
.section-head h2 {
  font-size: 1.25em;
}
.section-head a, .period {
  font-size: 14px;
  font-weight: 600;
}
.period {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.dashboard-empty {
  padding: 12px;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.case-table {
  background: var(--panel);
}
.case-table .pill {
  font-weight: 600;
}
.dashboard-section .tablewrap {
  max-height: 11rem;
}
.dashboard-section .case-table th,
.dashboard-section .case-table td {
  padding: 5px 10px;
}
.dashboard-section .case-table th {
  position: sticky;
  top: 0;
  border-top-color: var(--accent);
}
.status-open, .risk-medium {
  color: #633f14;
  background: #fae6b7;
}
.status-review {
  color: #163e61;
  background: #dceaf7;
}
.status-closed, .risk-low {
  color: #214d42;
  background: #d7eee5;
}
.metrics, .chart-grid, .fields {
  display: grid;
  gap: 10px;
}
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 10px;
}
.metrics > div, .chart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  min-width: 0;
}
.metrics dt {
  letter-spacing: normal;
}
.metrics dd {
  margin: 3px 0 0;
  font-size: 1.5em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.chart-grid, .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chart-wide {
  grid-column: 1 / -1;
}
.chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.125em;
}
.chart-icon {
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.875em;
}
.chart-scroll {
  position: relative;
  overflow-x: auto;
  padding: 4px 2px;
}
.vertical-bars, .horizontal-bars, .chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vertical-bars {
  display: flex;
  gap: 8px;
}
.vertical-bars li {
  flex: 1 0 62px;
  display: grid;
  grid-template-rows: 92px auto;
  align-items: start;
  text-align: center;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.vertical-bars svg {
  width: 100%;
  height: 92px;
  overflow: visible;
}
.vertical-bars text {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.monthly-bars li {
  flex-basis: 38px;
  white-space: nowrap;
}
.bar-track {
  fill: var(--line);
}
.bar-fill {
  fill: color-mix(in srgb, var(--ink) 70%, #21ad99);
}
.bar-baseline {
  stroke: var(--line);
}
.horizontal-bars {
  display: grid;
  gap: 12px;
}
.horizontal-bars li div, .chart-legend li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.horizontal-bars svg {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 4px;
  border-radius: 9px;
}
.donut-layout {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.donut {
  width: 100%;
  height: auto;
}
.donut circle {
  fill: none;
  stroke: var(--slice, var(--line));
  stroke-width: 15;
}
.donut text {
  fill: var(--ink);
}
.donut-number {
  font-size: 21px;
  font-weight: 700;
}
.donut-label {
  font-size: 11px;
}
.slice-1 { --slice: #b47926; }
.slice-2 { --slice: #20726b; }
.slice-3 { --slice: #4a6fa4; }
.slice-4 { --slice: #707783; }
.swatch {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--slice);
}
.chart-legend li {
  justify-content: flex-start;
  margin: 6px 0;
}
.chart-legend strong {
  margin-left: auto;
}
.heatmap {
  text-align: center;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}
.heatmap caption {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}
.heatmap :is(th, td) {
  text-align: center;
  vertical-align: middle;
  padding: 6px 1px;
  border: 0;
  border-radius: 3px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.risk-high {
  color: #722a29;
  background: #f4cdca;
}
.risk-empty {
  background: var(--paper);
  color: var(--muted);
}
.heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 5px;
}
.heat-legend span {
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 11px;
}
.chart-note, .chart-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.visually-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.classification-form {
  max-width: 760px;
}
.classification-form fieldset {
  border: 1px solid var(--line);
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 5px;
  min-width: 0;
}
.classification-form legend {
  font-size: 14px;
  font-weight: 650;
  padding: 0 4px;
}
.classification-form fieldset label:last-child {
  margin-bottom: 5px;
}
.classification-details dd, .type-list {
  overflow-wrap: anywhere;
}
.branding-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.branding-colors label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.type-list {
  columns: 2;
  padding-left: 20px;
}

/* Sign-in */
.loginlayout {
  display: grid;
  grid-template-columns: 1.17fr minmax(300px, 0.83fr);
  align-items: stretch;
  max-width: 980px;
  min-height: 440px;
  margin: clamp(25px, 6vh, 72px) auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.login-intro {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(150deg, #102430, #183b48);
  color: #f1f5f5;
}
.login-grid {
  position: absolute;
  z-index: -1;
  right: -15%;
  top: -8%;
  width: 100%;
  height: auto;
  color: #7ac3b5;
  opacity: 0.34;
}
.login-symbol {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid #688a90;
  border-radius: 7px;
  color: #e6b976;
}
.login-intro p {
  max-width: 300px;
  color: #d3e0e3;
  margin: 0;
}
.login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(25px, 4vw, 46px);
  background: var(--panel);
}
.login h2 {
  margin-bottom: 8px;
  font-size: 1.5em;
}
.login-intro h1 {
  color: inherit;
}
.login-privacy {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.login-privacy .icon {
  margin-right: 5px;
}
.login .primary {
  width: 100%;
}
.alert {
  color: #752920;
}
.error {
  margin: 12vh auto;
  max-width: 720px;
  padding: 24px;
}
.error .wordmark {
  margin-bottom: 35px;
}
.error h1 {
  font-size: 1.875em;
}
@media (max-width: 1080px) {
  .dashboard-page .nav > div {
    gap: 0 12px;
    flex-wrap: wrap;
  }
}
@media (max-height: 700px) {
  .dashboard-page .content {
    padding-top: 0.75rem;
  }
  .dashboard-head,
  .dashboard-section {
    margin-bottom: 0.75rem;
  }
  .dashboard-head .primary {
    min-height: 34px;
    padding-block: 6px;
  }
  .dashboard-page .nav a {
    font-size: 0.8125rem;
  }
  .dashboard-section .tablewrap {
    max-height: 8rem;
  }
  .dashboard-page .metrics > div,
  .dashboard-page .chart-panel {
    padding-block: 7px;
  }
  .vertical-bars li {
    grid-template-rows: 80px auto;
  }
  .vertical-bars svg {
    height: 80px;
  }
}
@media (max-width: 720px) {
  .mastin {
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .tenantname {
    max-width: 45%;
  }
  .tenantname img {
    max-width: 50px;
  }
  .nav > div {
    gap: 18px;
    overflow-x: auto;
  }
  .nav a {
    white-space: nowrap;
  }
  .content {
    padding-top: 30px;
  }
  .casegrid,
  .loginlayout {
    grid-template-columns: 1fr;
  }
  .loginlayout {
    margin: 14px 0;
  }
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .chart-grid, .fields {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pagehead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .foot {
    gap: 12px;
  }
  .pair {
    align-items: stretch;
  }
  .casegrid {
    gap: 0;
  }
  .account {
    font-size: 12px;
  }
  th,
  td {
    padding: 9px;
  }
}
@media print {
  @page {
    margin: 15mm;
  }
  body {
    display: block;
    background: var(--paper);
    color: var(--ink);
    font-size: 11pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .nav,
  .account,
  .noprint,
  script,
  .switch {
    display: none !important;
  }
  .content,
  .mastin,
  .foot {
    width: 100%;
  }
  .mast {
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
  }
  .mastin {
    min-height: 50px;
  }
  .content {
    padding: 15px 0;
  }
  .report h1 {
    font-size: 28pt;
  }
  .entry,
  .pagehead,
  h2 {
    break-inside: avoid;
  }
  .entry p {
    orphans: 3;
    widows: 3;
  }
  .foot {
    font-size: 9pt;
  }
  .wordmark {
    font-size: 23pt;
  }
}

.office-map {
  position: relative;
  max-width: 640px;
  margin: 0 auto 12px;
}
.office-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 330;
}
.office-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.office-map circle {
  stroke: white;
  stroke-width: 1.5;
}
.office-activity {
  fill: #b8180e;
  fill-opacity: 0.78;
}
.office-empty {
  fill: #344c5b;
}
.office-map text {
  fill: white;
  font: 700 10px system-ui, sans-serif;
}
