:root {
  --navy: #122f3d;
  --teal: #087d83;
  --ink: #17333e;
  --muted: #637177;
  --line: #dde4e3;
  --background: #f4f6f5;
}
[hidden] {
  display: none !important;
}
.auth-card {
  max-width: 580px;
  margin: 40px auto;
  padding: 30px;
}
.auth-card h1 {
  margin: 12px 0;
}
.auth-card form {
  margin-top: 22px;
}
.auth-error {
  color: #a02e35;
  padding: 12px;
  background: #fff1f1;
  border: 1px solid #ebc8cb;
  border-radius: 5px;
  margin-top: 16px;
}
.phase2-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 12px;
}
.mfa-secret {
  display: block;
  overflow-wrap: anywhere;
  margin: 16px 0;
  padding: 16px;
  background: #eff7f5;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.form-notice {
  padding: 12px 14px;
  border: 1px solid #cce2dd;
  background: #f0f8f5;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 12px;
}
.wizard-progress {
  margin-bottom: 20px;
}
.wizard-progress p {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.wizard-progress > div {
  display: flex;
  gap: 12px;
}
.wizard-progress button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #b7cdcc;
  color: var(--teal);
  background: white;
}
.wizard-progress button.active {
  background: var(--teal);
  color: white;
}
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.wizard-footer .primary {
  margin-top: 0;
}
.registration-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}
.registration-item summary {
  cursor: pointer;
  font-weight: 600;
}
.registration-item summary small {
  display: inline;
  margin-left: 8px;
  font-weight: normal;
}
.registration-item[open] summary {
  margin-bottom: 14px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.industry-picker {
  margin: 0 0 20px;
}
.field-label {
  font-weight: 600;
  font-size: 12px;
}
.industry-picker .helper {
  margin: 4px 0;
}
.draft-caption {
  font-size: 10px;
  color: #856426;
  margin: 4px 0 10px;
}
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #e5f3ef;
  border-radius: 16px;
  font-size: 11px;
}
.industry-tag button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 18px;
  min-width: 24px;
  min-height: 24px;
}
.industry-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border: 1px solid #b7cdcc;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
.industry-menu {
  border: 1px solid #b7cdcc;
  border-radius: 5px;
  padding: 12px;
  margin-top: 6px;
  box-shadow: 0 3px 14px #122f3d12;
}
#industry-list {
  max-height: 220px;
  overflow-y: auto;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
#industry-list [role="option"] {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #edf0ef;
  background: white;
  color: var(--ink);
}
#industry-list [aria-selected="true"] {
  background: #e7f5f0;
  color: #076f72;
}
#industry-list [role="option"]:hover {
  background: #f0f8f5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.created-metadata {
  padding: 10px 0;
}
.invitation-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
}
.invitation-preview p {
  margin: 12px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .wizard-progress > div {
    gap: 9px;
  }
  .wizard-progress button {
    width: 30px;
    height: 30px;
  }
}
.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.section-card {
  margin-bottom: 20px;
}
.scope-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.scope-bar label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.scope-bar select {
  max-width: 100%;
}
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 10px;
  background: #dff3ed;
  color: #096c6c;
  font-size: 10px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.actions .outline {
  display: inline-block;
  text-align: center;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 15px;
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: normal;
  border: 1px solid #b7cdcc;
  border-radius: 5px;
  padding: 10px;
  background: white;
  color: var(--ink);
}
.field input:focus-visible {
  outline: 3px solid #19a9b0;
  outline-offset: 2px;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 9px 0;
  font-size: 12px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0 0 16px;
  padding: 12px;
}
legend {
  font-weight: 600;
  font-size: 12px;
}
.helper {
  margin-top: 12px;
  font-size: 11px;
}
.details-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  margin: 12px 0 20px;
}
.details-grid dt {
  color: var(--muted);
}
.details-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  background: #f7faf9;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf0ef;
  vertical-align: top;
  overflow-wrap: anywhere;
}
td .actions {
  min-width: 115px;
}
.service-grid,
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.service-tile {
  padding: 18px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.service-tile p {
  margin: 6px 0 14px;
  font-size: 12px;
}
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.pipeline-column {
  padding: 14px;
}
.pipeline-column h2 {
  font-size: 14px;
}
.pipeline-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.pipeline-item .outline {
  margin-top: 10px;
}
.empty-state {
  padding: 16px 0;
  font-size: 11px;
}
.timeline-item {
  padding: 12px;
  border-left: 3px solid var(--teal);
  margin: 12px 0;
  background: #f4f8f7;
}
.spaced {
  margin-top: 20px;
}
.workflow {
  padding-left: 20px;
  font-size: 11px;
  color: var(--muted);
}
dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@media (max-width: 1050px) {
  .pipeline-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }
  .scope-bar {
    display: block;
    padding: 12px;
  }
  .scope-bar label {
    display: block;
  }
  .scope-bar select {
    width: 100%;
    margin: 6px 0;
    font-size: 10px;
  }
  .scope-bar small {
    font-size: 9px;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .details-grid dd {
    margin-bottom: 9px;
  }
  .service-grid,
  .shortcut-grid,
  .pipeline-board {
    grid-template-columns: 1fr;
  }
  table {
    min-width: 640px;
  }
  .table-scroll {
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .card-body {
    min-width: 0;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
button,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #19a9b0;
  outline-offset: 3px;
}
.header {
  height: 88px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand strong {
  font-size: 17px;
}
small,
.brand small,
.account small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.brand small {
  margin-top: 4px;
}
.brand-mark {
  font-size: 35px;
  font-weight: 700;
  border: 2px solid #b68b39;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  text-align: center;
  position: relative;
  color: var(--navy);
  line-height: 48px;
}
.brand-mark span {
  position: absolute;
  color: var(--teal);
  font-size: 12px;
  bottom: -7px;
  right: 2px;
  background: white;
  line-height: 20px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e3f2ee;
  color: var(--teal);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
}
.workspace {
  display: flex;
  min-height: calc(100vh - 88px);
}
.sidebar {
  background: var(--navy);
  color: #b5d0d7;
  width: 208px;
  flex-shrink: 0;
  padding: 32px 18px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  margin: 0 0 8px;
}
.sidebar .eyebrow {
  color: #b5d0d7;
  font-weight: 400;
  margin: 7px 14px 20px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 14px;
  margin: 5px 0;
  border-radius: 5px;
  font-size: 12px;
  min-height: 49px;
}
.nav-item.active {
  background: #1d4b55;
  color: #b8efec;
}
.nav-item:hover {
  background: #214550;
}
.nav-icon {
  width: 14px;
  font-size: 18px;
  font-weight: 600;
}
.sidebar-footer {
  border-top: 1px solid #2a4c58;
  margin-top: 66px;
  padding: 14px;
  font-size: 11px;
}
.mobile-more {
  display: none;
}
main {
  flex: 1;
  min-width: 0;
  padding: 18px 22px 28px 36px;
  max-width: 1600px;
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 10px;
  color: var(--muted);
}
.preview-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
}
select {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
}
h3 {
  font-size: 13px;
  line-height: 1.5;
}
p {
  color: var(--muted);
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.intro > div > p:not(.eyebrow) {
  font-size: 14px;
}
.company {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 12px 14px 8px;
  min-width: 264px;
}
.company small {
  text-transform: uppercase;
  font-size: 9px;
}
.company span {
  display: block;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 3px 0;
}
.company .text-button {
  padding-left: 18px;
  font-size: 13px;
  font-weight: 600;
}
.health {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 16px;
}
.health h2 {
  font-size: 16px;
}
.health small {
  margin-top: 5px;
  font-size: 10px;
}
.health-ring {
  width: 81px;
  height: 81px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 71%, #dce8e5 71% 100%);
  display: grid;
  place-items: center;
}
.health-ring strong {
  width: 67px;
  height: 67px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--background);
  font-size: 16px;
  color: var(--teal);
}
.attention {
  border: 1px solid #e7d9bc;
  background: #fff9ed;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.attention h3 {
  color: #775819;
}
.attention p {
  font-size: 12px;
}
.alert-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f9eac8;
  color: #af8127;
  font-size: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.stat {
  padding: 15px 21px;
  position: relative;
}
.stat strong {
  font-size: 27px;
  display: block;
  line-height: 1.3;
}
.stat p {
  font-size: 12px;
}
.dot {
  position: absolute;
  top: 13px;
  right: 20px;
  font-size: 17px;
}
.current {
  color: #287c60;
}
.soon {
  color: #ad7a1c;
}
.overdue {
  color: #b3484d;
}
.card-heading {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-heading p {
  margin-top: 3px;
  font-size: 11px;
}
.legend {
  display: flex;
  gap: 9px;
  font-size: 9px;
  white-space: nowrap;
}
.compliance-row {
  border-top: 1px solid #edf0ef;
  display: grid;
  grid-template-columns: 2.3fr 1.8fr 0.75fr 0.95fr;
  align-items: center;
  gap: 12px;
  padding: 19px 22px;
  min-height: 72px;
}
.record-title small,
.record-date small {
  font-size: 10px;
}
.record-date span {
  font-size: 12px;
}
.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 18px;
  display: inline-block;
  white-space: nowrap;
  width: fit-content;
}
.badge.current {
  background: #eaf5ef;
}
.badge.soon {
  background: #fff1d9;
}
.badge.overdue {
  background: #fdebec;
}
.record-action {
  text-align: center;
}
.outline {
  border: 1px solid #b7cdcc;
  color: #066b70;
  background: white;
  padding: 10px 13px;
  border-radius: 3px;
  font-size: 10px;
}
.outline:hover {
  background: #edf8f6;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.bottom-grid .card-heading {
  padding-bottom: 12px;
}
.card-body {
  padding: 0 22px 22px;
}
.document-row {
  border-bottom: 1px solid #edf0ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 11px;
}
.document-row:last-child {
  border: 0;
}
.request-item {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}
.request-item small {
  margin: 5px 0 8px;
  font-size: 10px;
}
footer {
  text-align: center;
  color: #7d8889;
  font-size: 9px;
  padding: 24px 0 0;
}
.admin-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}
.admin-row p {
  font-size: 12px;
}
.capabilities {
  list-style: none;
  padding: 0;
  margin: 0;
}
.capabilities li {
  padding: 7px 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(620px, calc(100% - 32px));
  padding: 24px;
  color: var(--ink);
}
dialog::backdrop {
  background: #102d3bbb;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  align-items: center;
}
.icon-button {
  border: 0;
  background: #eef3f2;
  border-radius: 50%;
  font-size: 24px;
  width: 34px;
  height: 34px;
}
textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #b7cdcc;
  border-radius: 5px;
  display: block;
  margin-top: 8px;
}
form {
  margin-top: 18px;
}
.primary {
  background: var(--teal);
  border: 0;
  color: white;
  padding: 12px 18px;
  border-radius: 5px;
  margin-top: 16px;
}
.demo-label {
  color: var(--teal);
  font-weight: bold;
  margin-bottom: 10px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  box-shadow: 0 5px 24px #102d3b33;
}
@media (min-width: 1450px) {
  main {
    padding-right: 36px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    display: block;
  }
  .sidebar {
    width: 100%;
    background: white;
    color: #52676e;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .eyebrow {
    color: var(--teal);
    margin: 0 0 8px;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 10px;
  }
  .nav-item {
    margin: 2px 0;
    padding: 12px;
    min-height: 44px;
    font-size: 11px;
  }
  .nav-item.active {
    background: #e2f2ef;
    color: var(--teal);
  }
  .nav-item:hover {
    background: #eff6f4;
  }
  .sidebar-footer {
    display: none;
  }
  main {
    padding: 18px 24px 28px;
  }
  .compliance-row {
    grid-template-columns: 2fr 1.65fr 0.75fr 1fr;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 12px;
  }
  .header {
    height: 76px;
    padding: 0 18px;
  }
  .brand {
    gap: 12px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 38px;
  }
  .account-name {
    display: none;
  }
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .sidebar {
    padding: 6px 10px;
  }
  .sidebar .eyebrow {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
  }
  .nav-item {
    flex-direction: column;
    gap: 3px;
    padding: 7px 3px;
    width: 20%;
    font-size: 9px;
    text-align: center;
    min-height: 52px;
  }
  .nav-icon {
    font-size: 17px;
  }
  .nav-item:nth-child(n + 4) {
    display: none;
  }
  .nav-item:nth-child(5),
  .nav-item.mobile-more {
    display: flex;
  }
  .more-open .nav-item:nth-child(n + 4) {
    display: flex;
  }
  .more-open .mobile-more {
    order: 9;
  }
  main {
    padding: 14px 18px 32px;
  }
  .preview-bar {
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 6px;
    font-size: 9px;
  }
  .preview-bar select {
    font-size: 10px;
  }
  .intro {
    display: block;
    margin-bottom: 18px;
  }
  .eyebrow {
    font-size: 11px;
  }
  h1 {
    font-size: 25px;
    margin-bottom: 8px;
  }
  .intro > div > p:not(.eyebrow) {
    font-size: 12px;
  }
  .company {
    margin-top: 17px;
    padding: 10px 12px;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 8px;
  }
  .company small {
    grid-column: 1;
    font-size: 8px;
  }
  .company span {
    font-size: 10px;
  }
  .company .text-button {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 0;
    font-size: 10px;
  }
  .health {
    gap: 13px;
    margin-bottom: 16px;
  }
  .health-ring {
    width: 70px;
    height: 70px;
  }
  .health-ring strong {
    width: 58px;
    height: 58px;
    font-size: 13px;
  }
  .health h2 {
    font-size: 14px;
  }
  .health p {
    font-size: 11px;
  }
  .health small {
    font-size: 9px;
  }
  .attention {
    padding: 14px 13px;
    gap: 12px;
    margin-bottom: 13px;
  }
  .attention h3 {
    font-size: 12px;
  }
  .attention p {
    font-size: 10px;
  }
  .alert-icon {
    width: 30px;
    height: 30px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 19px;
  }
  .stat {
    padding: 13px 12px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat p {
    font-size: 9px;
    margin-top: 4px;
  }
  .dot {
    right: 11px;
    top: 9px;
    font-size: 12px;
  }
  .card-heading {
    padding: 18px 16px;
    flex-wrap: wrap;
  }
  .card-heading h2 {
    font-size: 17px;
  }
  .card-heading p {
    font-size: 10px;
  }
  .legend {
    width: 100%;
    font-size: 9px;
    margin-top: 3px;
  }
  .compliance-row {
    grid-template-columns: 1fr auto;
    gap: 14px 8px;
    padding: 18px 16px;
    min-height: 110px;
  }
  .record-title {
    grid-column: 1;
    grid-row: 1;
  }
  .record-title h3 {
    font-size: 11px;
  }
  .record-title small {
    font-size: 9px;
  }
  .record-date {
    grid-column: 1;
    grid-row: 2;
  }
  .record-date small {
    font-size: 9px;
  }
  .record-date span {
    font-size: 11px;
  }
  .record-status {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .record-action {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .record-action small {
    font-size: 10px;
  }
  .outline {
    font-size: 9px;
    padding: 8px;
  }
  .badge {
    font-size: 9px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
  }
  .card-body {
    padding: 0 16px 20px;
  }
  .admin-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  .admin-row .badge {
    grid-column: 1;
  }
  footer {
    font-size: 8px;
    padding-top: 22px;
  }
}

.stat-link {
  color: inherit;
  text-decoration: none;
}
.stat-link:hover {
  border-color: var(--teal);
}
.stat-link:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.account {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.account-menu {
  position: absolute;
  right: 24px;
  top: 76px;
  z-index: 25;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px #10283c26;
  min-width: 240px;
  padding: 8px;
}
.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--navy);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 12px;
  font: inherit;
  border-radius: 6px;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover {
  background: #eef7f4;
}
.workspace-complete {
  margin-top: 28px;
  min-width: 0;
}
.workspace-view-heading {
  margin: 24px 0 14px;
}
.workspace-view-heading p {
  color: var(--muted);
}
.workspace-panel {
  padding: 0;
  margin-bottom: 12px;
  min-width: 0;
  overflow: hidden;
}
.workspace-panel summary {
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  font-weight: 650;
}
.workspace-panel summary::before {
  content: "›";
  color: var(--teal);
  font-size: 23px;
}
.workspace-panel[open] summary::before {
  content: "⌄";
}
.workspace-panel summary span:first-child {
  flex: 1;
}
.workspace-panel-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.workspace-panel-body {
  padding: 0 20px 20px;
  min-width: 0;
}
.workspace-panel .table-wrap {
  max-width: 100%;
  overflow: auto;
}
.workspace-panel th {
  white-space: nowrap;
}
.workspace-panel td {
  min-width: 120px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.workspace-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.workspace-field-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.workspace-field-list span {
  border: 1px solid #e4ece9;
  padding: 12px;
  border-radius: 6px;
}
.workflow-stage {
  background: #f7f2e5;
  color: #68501d;
  border-left: 3px solid #bd922f;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 13px;
}
.workspace-panel .actions {
  flex-wrap: wrap;
  margin-top: 16px;
}
.workspace-filter-result {
  font-size: 13px;
  color: var(--muted);
}
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .workspace-filters,
  .workspace-field-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .workspace-filters,
  .workspace-field-list {
    grid-template-columns: 1fr;
  }
  .workspace-panel summary {
    padding: 14px;
  }
  .workspace-panel-body {
    padding: 0 14px 14px;
  }
  .account-menu {
    right: 10px;
    top: 72px;
  }
}

.workspace-performance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workspace-performance button {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.workspace-performance small {
  color: var(--teal);
}
.workspace-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.workspace-summary > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.workspace-summary strong {
  font-size: 24px;
  color: var(--navy);
}
.workspace-summary span {
  font-size: 12px;
  color: var(--muted);
}
.account-menu {
  border-color: var(--line);
}
@media (max-width: 900px) {
  .workspace-performance,
  .workspace-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .workspace-performance {
    grid-template-columns: 1fr;
  }
}

.workspace-panel .table-wrap {
  max-height: 480px;
}
.workspace-panel thead {
  position: sticky;
  top: 0;
  background: #f4f7f6;
  z-index: 1;
}
.workspace-panel summary:focus-visible,
.account-menu a:focus-visible,
.account-menu button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

.renewal-calendar {
  max-width: 700px;
  margin: 16px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.calendar-grid button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}
.calendar-grid small {
  display: block;
  font-size: 10px;
  color: var(--teal);
}
.calendar-weekday {
  font-size: 11px;
  text-align: center;
  padding: 6px 0;
  color: var(--muted);
}

.company-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.company-workspace-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 12px;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}
.company-workspace-tabs [aria-selected="true"] {
  background: var(--navy);
  color: white;
}
#company-workspace-content .table-wrap {
  max-height: 440px;
}

.financial-design {
  min-width: 0;
  margin: 20px 0;
}
.financial-design .table-wrap {
  max-width: 100%;
  overflow: auto;
  margin: 12px 0;
}
.financial-design table {
  min-width: 700px;
}
.financial-design td input,
.financial-design td select {
  min-width: 110px;
}

[data-service-workflow] {
  white-space: normal;
}
[data-service-form] fieldset {
  margin: 16px 0;
  min-width: 0;
}
[data-service-form] .auth-error {
  margin: 16px 0;
}
.operation-register {
  margin: 24px 0;
}
.operation-register .card-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.operation-register td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.operation-register td .actions {
  gap: 8px;
  max-width: 500px;
}
.operation-register td .button {
  font-size: 12px;
  padding: 7px 10px;
}
.table-scroll {
  overflow-x: auto;
}
.operation-search {
  display: block;
  max-width: 560px;
  margin: 20px 0;
}
.operation-search input {
  width: 100%;
  margin-top: 8px;
}
.operation-details {
  display: grid;
  gap: 14px;
}
.operation-details div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 3fr;
  gap: 16px;
  border-bottom: 1px solid #e4eaee;
  padding-bottom: 12px;
}
.operation-details dt {
  font-weight: 700;
  text-transform: capitalize;
}
.operation-details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.operation-profile {
  border-top: 1px solid #e4eaee;
  padding: 16px 0;
}
[data-operation-form] > label {
  display: grid;
  gap: 8px;
}
[data-operation-form] > fieldset {
  grid-column: 1 / -1;
  border: 1px solid #d7e1e7;
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
}
[data-operation-form] legend {
  font-weight: 700;
  padding: 0 6px;
}
.operation-options {
  max-height: 230px;
  overflow-y: auto;
  padding-top: 12px;
}
.operation-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.operation-options input {
  width: auto;
}
.operation-options label[hidden] {
  display: none;
}
.operation-line {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  margin: 12px 0;
  align-items: end;
}
.operation-line label {
  display: grid;
  gap: 6px;
}
.operation-config-row {
  padding: 16px 0;
  border-bottom: 1px solid #d7e1e7;
  display: grid;
  gap: 12px;
}
.operation-config-row label {
  display: grid;
  gap: 6px;
}
.operation-permissions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #d7e1e7;
}
.operation-permissions strong {
  width: 150px;
  text-transform: capitalize;
}
.operation-credit-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.operation-credit-line input[type="number"] {
  width: 120px;
}
.form-error {
  color: #a62727;
}
@media (max-width: 640px) {
  .operation-line {
    grid-template-columns: 1fr 1fr;
  }
  .operation-line label:first-child {
    grid-column: 1 / -1;
  }
  .operation-details div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.compact-mode .card {
  padding: 16px;
}
.compact-mode th,
.compact-mode td {
  padding: 9px;
}
.high-contrast {
  --muted: #344b5b;
  color: #102532;
}
.high-contrast .card,
.high-contrast input,
.high-contrast select,
.high-contrast textarea {
  border-color: #526976;
}
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: #b9cbd1;
}
.button:hover {
  filter: brightness(0.96);
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[data-operation-form] {
  row-gap: 18px;
}
.operation-form-note {
  padding: 12px;
  background: #eff7f5;
  border-radius: 7px;
}
.operation-config-row input,
.operation-config-row select,
.operation-config-row textarea {
  width: 100%;
}
[data-operation-form] input:not([type="checkbox"]):not([type="radio"]),
[data-operation-form] select,
[data-operation-form] textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bdcbd0;
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
/* Reference dashboard: navy shell, pale canvas, white panels and teal status accents. */
:root {
  --navy: #092c3b;
  --teal: #008b98;
  --ink: #102e43;
  --muted: #708197;
  --line: #dce6ed;
  --background: #f3f7f7;
}
.header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  padding: 10px 28px;
}
.brand {
  margin-right: auto;
}
.brand-logo {
  width: 72px;
  height: 64px;
  object-fit: contain;
}
.header-search {
  position: relative;
  width: min(340px, 26vw);
}
.header-search input {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
  font: inherit;
  font-size: 12px;
}
.dashboard-search-results {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(450px, 85vw);
  padding: 8px;
  background: #fff;
  box-shadow: 0 10px 30px #092c3b22;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 30;
}
.dashboard-search-results button {
  display: grid;
  gap: 5px;
  padding: 12px;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.dashboard-search-results button:hover {
  background: #e9f6f5;
}
.header-notifications {
  position: relative;
  display: flex;
  width: 30px;
  color: #244969;
}
.header-notifications svg {
  width: 26px;
  height: 26px;
}
.header-notifications span {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f44951;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.client-mode .header-search,
.auth-mode .header-search,
.auth-mode .header-notifications {
  display: none;
}
.sidebar {
  background: linear-gradient(120deg, #092b3b, #062330);
}
.nav-item.active {
  color: #5de4e4;
  background: #145562;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
}
.reference-overview main {
  max-width: none;
  padding: 30px 30px 22px;
}
.dash-intro {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  align-items: start;
}
.dash-intro h1 {
  font-size: clamp(24px, 2.2vw, 34px);
  margin: 8px 0;
  letter-spacing: -0.8px;
}
.dash-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0;
}
.dash-intro .eyebrow {
  color: #087c8b;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.dash-controls {
  display: flex;
  gap: 12px;
  min-width: 330px;
}
.dash-date-control {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  color: var(--ink);
  font-size: 11px;
}
.dash-date-control svg {
  width: 23px;
  height: 23px;
  color: #385975;
}
.dash-date-control select {
  display: block;
  border: 0;
  font-size: 11px;
  margin: 3px 0;
  padding: 0;
}
.dash-date-control small {
  display: block;
  color: var(--muted);
}
.dashboard-scope-slot .scope-bar {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  min-width: 180px;
  margin: 0;
  height: 100%;
}
.dashboard-scope-slot .scope-bar label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.dashboard-scope-slot .scope-bar select {
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  color: var(--ink);
  max-width: 290px;
}
.dashboard-scope-slot .scope-bar small {
  display: none;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.dash-kpi {
  display: flex;
  gap: 12px;
  padding: 20px 14px;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 126px;
  align-items: start;
}
.dash-kpi > span:last-child {
  display: grid;
  gap: 6px;
}
.dash-kpi strong {
  font-size: clamp(20px, 1.8vw, 27px);
  letter-spacing: -0.4px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.dash-kpi span span {
  font-size: 12px;
}
.dash-kpi small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.dash-circle {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 50%;
}
.dash-circle svg {
  width: 26px;
  height: 26px;
}
.dash-circle.blue {
  background: #e7f5ff;
  color: #0585ff;
}
.dash-circle.teal {
  background: #e2faf1;
  color: #03aa85;
}
.dash-circle.red {
  background: #fff0f1;
  color: #f34850;
}
.dash-circle.amber {
  background: #fff5e0;
  color: #f09900;
}
.dash-main-row {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dash-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}
.dash-panel-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.dash-panel-head .dash-circle {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}
.dash-panel h2 {
  font-size: 15px;
  font-weight: 750;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.dash-panel-head p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
  line-height: 1.4;
}
.dash-link {
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
}
.dash-panel-head > .dash-link {
  margin-left: auto;
  white-space: nowrap;
}
.dash-attention {
  padding: 0 14px 14px;
}
.dash-attention .dash-panel-head {
  padding: 14px 0;
  background: #fff8e9;
  margin: 0 -14px 9px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 8px 8px 0 0;
}
.dash-attention h2 {
  color: #9c3808;
}
.dash-alert-row {
  border: 0;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  display: grid;
  grid-template-columns: 10px 30px 1fr 12px;
  align-items: center;
  gap: 12px;
  margin: 5px 0;
  font: inherit;
  font-size: 11px;
  color: var(--ink);
  text-align: left;
}
.dash-alert-row.red {
  background: #fff0f1;
}
.dash-alert-row.amber {
  background: #fff8e8;
}
.dash-alert-row.red strong {
  color: #ea3344;
}
.dash-alert-row.amber strong {
  color: #c27a00;
}
.dash-alert-row b {
  font-size: 22px;
  color: #3d637b;
}
.dash-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dash-priority {
  display: flex;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 10px 0;
  align-items: center;
  border: 0;
  background: transparent;
  border-bottom: 1px solid #edf1f5;
  font: inherit;
  color: var(--ink);
}
.dash-priority > span:nth-child(2) {
  flex: 1;
}
.dash-priority strong {
  display: block;
  font-size: 11px;
}
.dash-priority small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.dash-task-box {
  width: 16px;
  height: 16px;
  border: 1px solid #91a5b9;
  border-radius: 3px;
  flex-shrink: 0;
}
.dash-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.dash-badge.teal {
  color: #008866;
  background: #e4faf2;
}
.dash-badge.amber {
  color: #b77400;
  background: #fff3dc;
}
.dash-badge.red {
  color: #de283f;
  background: #ffebed;
}
.dash-feed-row {
  display: flex;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f5;
  align-items: start;
}
.dash-avatar {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #006e99;
  background: #e4f5fc;
  font-size: 11px;
  font-weight: 700;
}
.dash-feed-row > div {
  flex: 1;
  min-width: 0;
}
.dash-feed-row strong {
  font-size: 10px;
  display: block;
}
.dash-feed-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
  line-height: 1.4;
}
.dash-feed-row > small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.dash-ring {
  width: 105px;
  height: 105px;
  flex: 0 0 105px;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(
    #008c96 0 var(--good),
    #ffbd43 var(--good) var(--soon),
    #f45256 var(--soon) 100%
  );
  display: grid;
  place-items: center;
}
.dash-ring::before {
  content: "";
  background: #fff;
  border-radius: 50%;
  position: absolute;
  inset: 15px;
}
.dash-ring strong {
  z-index: 1;
  font-size: 23px;
  font-weight: 750;
}
.dash-compliance-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 16px 0 12px;
}
.dash-compliance-summary > div > small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  text-align: center;
  margin-top: 8px;
}
.dash-legend {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  flex: 1;
  font-size: 10px;
}
.dash-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dash-legend strong {
  margin-left: auto;
}
i.teal,
i.amber,
i.red,
i.gray {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}
i.teal,
.dash-health-bar .teal {
  background: #09b790;
}
i.amber,
.dash-health-bar .amber {
  background: #ffb632;
}
i.red,
.dash-health-bar .red {
  background: #f24d56;
}
i.gray,
.dash-health-bar .gray {
  background: #c9d5dc;
}
.dash-subheading {
  font-size: 11px;
  margin: 14px 0 7px;
}
.dash-issue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  border-bottom: 1px solid #edf1f5;
  padding: 6px 0;
  width: 100%;
  font: inherit;
  font-size: 10px;
  text-align: left;
  color: var(--ink);
}
.dash-issue span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dash-request-row,
.dash-document-row {
  display: flex;
  gap: 9px;
  width: 100%;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.dash-request-row > span:nth-child(2),
.dash-document-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.dash-request-row strong,
.dash-document-row strong {
  font-size: 10px;
  display: block;
  overflow-wrap: anywhere;
}
.dash-request-row small,
.dash-document-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.dash-request-row > small,
.dash-document-row > small {
  white-space: nowrap;
}
.dash-file-icon {
  color: #f84c51;
}
.dash-file-icon svg {
  width: 20px;
  height: 27px;
}
.dash-health-bar {
  display: flex;
  overflow: hidden;
  height: 12px;
  border-radius: 5px;
  background: #edf3f3;
  margin: 13px 0 9px;
}
.dash-health-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
}
.dash-health-legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.dash-health-legend strong {
  color: var(--ink);
}
.dash-health-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 7px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  padding: 9px 0;
  align-items: center;
  text-align: left;
  font: inherit;
}
.dash-health-row strong,
.dash-health-row small {
  font-size: 9px;
  overflow-wrap: anywhere;
}
.dash-health-row small {
  color: var(--muted);
}
.dash-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0;
}
.dashboard-local-tools {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.dashboard-local-tools summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.dashboard-local-tools .scope-bar {
  display: none;
}
.client-intro .dashboard-scope-slot {
  min-width: 280px;
}
.dash-client-health {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
}
.dash-client-health .dash-ring {
  background: conic-gradient(#008c96 0 var(--good), #dce9e8 var(--good) 100%);
}
.dash-client-health h2 {
  font-size: 19px;
  margin: 0 0 5px;
}
.dash-client-health p {
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 14px;
}
.dash-client-health small {
  font-size: 11px;
  color: var(--muted);
}
.dash-client-health > .dash-assist {
  margin-left: auto;
}
.dash-assist {
  padding: 8px 12px;
  border: 1px solid #8bc6cd;
  background: #fff;
  color: #007c89;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}
.dash-client-warning {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #f7d297;
  background: #fff9ed;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}
.dash-client-warning h2 {
  font-size: 16px;
  color: #865b13;
  margin: 0 0 4px;
}
.dash-client-warning p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.dash-client-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.dash-client-stats button {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  font: inherit;
}
.dash-client-stats strong {
  font-size: 27px;
  display: block;
}
.dash-client-stats span {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.dash-client-stats i {
  position: absolute;
  top: 20px;
  right: 18px;
}
.dash-client-compliance {
  padding: 0;
}
.dash-client-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
}
.dash-client-card-head h2 {
  font-size: 18px;
}
.dash-client-card-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.dash-inline-legend {
  display: flex;
  gap: 13px;
  font-size: 10px;
  color: var(--muted);
}
.dash-inline-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.dash-client-compliance-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr auto;
  gap: 20px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #e8eef1;
}
.dash-client-compliance-row strong {
  font-size: 12px;
  display: block;
}
.dash-client-compliance-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.dash-client-compliance-row .dash-record-date span {
  font-size: 11px;
}
.dash-client-compliance-row .dash-badge {
  justify-self: start;
}
.dash-client-card-foot {
  padding: 12px 20px;
}
.dash-client-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.dash-client-bottom h2 {
  font-size: 17px;
}
.dash-client-bottom .dash-panel-head .dash-circle {
  display: none;
}
.dash-client-bottom .dash-document-row svg {
  width: 17px;
  height: 20px;
  color: #617487;
}
.dash-client-bottom .dash-document-row span {
  font-size: 12px;
}
.dash-client-bottom .dash-document-row b {
  font-size: 11px;
  color: var(--teal);
  margin-left: auto;
  white-space: nowrap;
}
.dash-latest-request {
  border: 0;
  border-left: 4px solid var(--teal);
  background: transparent;
  display: grid;
  gap: 9px;
  padding: 8px 12px;
  text-align: left;
  position: relative;
  width: 100%;
  color: var(--ink);
  font: inherit;
}
.dash-latest-request strong {
  font-size: 13px;
}
.dash-latest-request small {
  color: var(--muted);
  font-size: 11px;
}
.dash-latest-request .dash-badge {
  justify-self: start;
}
.dash-latest-request > span:last-child {
  position: absolute;
  right: 8px;
  top: 12px;
  font-size: 24px;
  color: var(--teal);
}
.dash-example-label {
  font-size: 10px;
  color: #607c87;
  padding: 8px 0;
}
.dash-review-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.dash-review-list article small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.password-field {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
}
.password-field input {
  padding-right: 46px !important;
}
.password-field button {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #4b687c;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.password-field svg {
  width: 21px;
  height: 21px;
}
.password-field button:focus-visible {
  outline: 2px solid var(--teal);
}
.dash-company-health {
  margin: 18px 0;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 1250px) {
  .dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dash-controls {
    flex-direction: column;
    min-width: 210px;
  }
  .dash-widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dash-panel-head {
    flex-wrap: wrap;
  }
  .dash-health-row {
    grid-template-columns: 1fr auto;
  }
  .dash-health-row small {
    grid-column: 1 / -1;
  }
}
@media (max-width: 950px) {
  .header-search {
    width: 230px;
  }
  .dash-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-main-row {
    grid-template-columns: 1fr;
  }
  .dash-client-compliance-row {
    grid-template-columns: 1.2fr 0.8fr auto;
    gap: 12px;
  }
  .dash-client-compliance-row .dash-record-date {
    display: none;
  }
}
@media (max-width: 650px) {
  .header {
    height: 76px;
    padding: 8px 14px;
    gap: 12px;
  }
  .brand-logo {
    width: 49px;
    height: 52px;
  }
  .brand strong {
    font-size: 13px;
  }
  .brand small {
    font-size: 9px;
  }
  .header-search {
    display: none;
  }
  .account-name {
    display: none;
  }
  .reference-overview main {
    padding: 20px 16px 90px;
  }
  .dash-intro {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .dash-intro h1 {
    font-size: 25px;
  }
  .dash-intro p {
    font-size: 12px;
  }
  .dash-controls {
    flex-direction: row;
    min-width: 0;
    width: 100%;
    gap: 8px;
  }
  .dash-date-control {
    min-width: 0;
    flex: 1;
    padding: 8px;
  }
  .dash-controls .dashboard-scope-slot {
    flex: 1;
    min-width: 0;
  }
  .dashboard-scope-slot .scope-bar {
    min-width: 0;
    padding: 10px;
  }
  .dashboard-scope-slot .scope-bar select {
    max-width: 145px;
    font-size: 11px;
    width: 100%;
  }
  .dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }
  .dash-kpi {
    flex-direction: column;
    gap: 8px;
    padding: 12px 9px;
    min-height: 144px;
  }
  .dash-kpi .dash-circle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .dash-kpi strong {
    font-size: 19px;
  }
  .dash-kpi span span {
    font-size: 10px;
  }
  .dash-kpi small {
    font-size: 9px;
    margin-top: 2px;
  }
  .dash-main-row {
    gap: 12px;
    margin-bottom: 12px;
  }
  .dash-widget-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dash-panel h2 {
    font-size: 15px;
  }
  .dash-alert-row {
    padding: 9px 7px;
    grid-template-columns: 8px 19px 1fr 10px;
    gap: 8px;
    font-size: 10px;
  }
  .dash-client-health {
    gap: 13px;
    flex-wrap: wrap;
    margin: 17px 0;
  }
  .dash-client-health .dash-ring {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }
  .dash-client-health .dash-ring::before {
    inset: 10px;
  }
  .dash-client-health h2 {
    font-size: 15px;
  }
  .dash-client-health p {
    font-size: 11px;
  }
  .dash-client-health small {
    font-size: 9px;
  }
  .dash-client-health > div:last-of-type {
    flex: 1;
  }
  .dash-client-health > .dash-assist {
    margin-left: 0;
  }
  .client-intro .dashboard-scope-slot {
    width: 100%;
    min-width: 0;
  }
  .client-intro .scope-bar select {
    max-width: none;
    font-size: 13px;
  }
  .dash-client-warning {
    gap: 10px;
    padding: 12px;
  }
  .dash-client-warning h2 {
    font-size: 13px;
  }
  .dash-client-warning p {
    font-size: 11px;
  }
  .dash-client-stats {
    gap: 9px;
  }
  .dash-client-stats button {
    padding: 13px 10px;
  }
  .dash-client-stats strong {
    font-size: 22px;
  }
  .dash-client-stats span {
    font-size: 10px;
  }
  .dash-client-stats i {
    top: 13px;
    right: 10px;
  }
  .dash-client-card-head {
    align-items: start;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .dash-client-compliance-row {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
    gap: 9px;
  }
  .dash-client-compliance-row > div:first-child {
    grid-row: 1 / 3;
  }
  .dash-client-compliance-row .dash-badge {
    font-size: 9px;
    padding: 5px 7px;
  }
  .dash-client-compliance-row .dash-assist {
    font-size: 9px;
    padding: 6px 7px;
  }
  .dash-client-compliance-row .dash-link {
    font-size: 9px;
  }
  .dash-client-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 370px) {
  .dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dash-ring.unassessed {
  background: #dce7e9;
}
@media (min-width: 1051px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    align-self: start;
  }
}
.mobile-menu-trigger {
  display: none;
}
@media (min-width: 651px) and (max-width: 1050px) {
  body:not(.client-mode) .workspace {
    display: flex;
  }
  body:not(.client-mode) .sidebar {
    width: 190px;
    flex: 0 0 190px;
    color: #fff;
    padding: 22px 12px;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
  }
  body:not(.client-mode) #navigation {
    display: block;
  }
  body:not(.client-mode) .sidebar .eyebrow {
    color: #b5d0d7;
  }
  body:not(.client-mode) .nav-item.active {
    background: #145562;
    color: #5de4e4;
  }
  .client-mode .sidebar {
    height: auto;
    position: relative;
    top: 0;
    background: #fff;
    padding: 10px 22px;
  }
  .client-mode .sidebar > .eyebrow {
    display: none;
  }
  .client-mode #navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .client-mode .nav-item {
    flex: 1;
    white-space: nowrap;
  }
  .client-mode .sidebar:not(.more-open) .nav-item:nth-child(n + 6) {
    display: none;
  }
  .client-mode .sidebar .mobile-more {
    display: flex !important;
  }
}
@media (max-width: 650px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    padding: 5px 7px max(5px, env(safe-area-inset-bottom));
    background: #fff;
    color: #14344a;
    border-top: 1px solid var(--line);
    z-index: 15;
    height: auto;
    max-height: 65vh;
    overflow-y: auto;
  }
  .sidebar .eyebrow,
  .sidebar-footer {
    display: none;
  }
  #navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0;
  }
  #navigation .nav-item {
    flex-direction: column;
    width: 20%;
    min-height: 54px;
    font-size: 9px;
    padding: 7px 3px;
    margin: 0;
    gap: 4px;
  }
  .sidebar:not(.more-open) #navigation .nav-item {
    display: none;
  }
  .sidebar:not(.more-open) #navigation .mobile-primary,
  .sidebar:not(.more-open) #navigation .mobile-more {
    display: flex;
  }
  .sidebar.more-open #navigation .nav-item {
    display: flex;
  }
  .sidebar .nav-item.active {
    background: #e4f4ff;
    color: #047bdb;
  }
  .sidebar #navigation .mobile-more {
    background: transparent;
    color: #14344a;
    border: 0;
    font: inherit;
    font-size: 9px;
  }
  .sidebar.more-open #navigation .mobile-more {
    order: -1;
  }
  .client-mode .sidebar {
    display: none;
  }
  .client-mode .sidebar.more-open {
    display: block;
    bottom: auto;
    top: 76px;
    max-height: calc(100vh - 76px);
    background: #fff;
    box-shadow: 0 10px 20px #12333c22;
  }
  .client-mode .mobile-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    font-size: 23px;
    color: var(--ink);
    padding: 3px;
  }
  .client-mode .header-notifications {
    display: none;
  }
  .client-mode .account-name {
    display: grid;
    font-size: 9px;
    max-width: 64px;
  }
  .client-mode .account-name strong {
    font-size: 10px;
  }
  .client-mode .account-name small {
    font-size: 8px;
  }
  .client-mode .account {
    gap: 5px;
    margin-left: auto;
  }
  .client-mode .brand {
    margin-right: 0;
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .client-mode .brand strong {
    font-size: 11px;
  }
  .client-mode .header {
    gap: 7px;
  }
  .auth-mode .mobile-menu-trigger {
    display: none;
  }
}

@media (min-width: 651px) {
  body:not(.client-mode) .sidebar .nav-item:hover {
    background: #214550;
    color: #ffffff;
  }
}

.performance-trend {
  display: block;
  font-weight: 700;
  margin-top: 7px;
  font-size: 13px;
}
.performance-trend.green {
  color: #00845f;
}
.performance-trend.red {
  color: #c52f38;
}
.performance-trend.amber {
  color: #9d6200;
}
.performance-panel {
  margin-top: 20px;
}
.performance-explanation {
  margin: 12px 18px;
  color: var(--muted);
  font-size: 12px;
}
.performance-panel td {
  padding: 12px;
  vertical-align: top;
}
.performance-panel td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.performance-panel table {
  min-width: 680px;
  width: 100%;
}

.dash-ring {
  background: conic-gradient(
    #008b98 0 var(--good),
    #f4b63a var(--good) var(--soon),
    #e14b50 var(--soon) var(--bad),
    #cad6d8 var(--bad) 100%
  );
}
i.gray {
  background: #889ea5;
}


/* MOTIOS: sticky header and responsive workspace sidebar */

/* Keep the white header visible while scrolling. */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

/* Desktop: keep the navy sidebar directly below the header. */
@media (min-width: 1051px) {
  body:not(.auth-mode) .sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    overflow-y: auto;
    align-self: flex-start;
  }
}

/* Tablet: preserve the vertical administrator sidebar. */
@media (min-width: 651px) and (max-width: 1050px) {
  body:not(.client-mode):not(.auth-mode) .workspace {
    display: flex;
  }

  body:not(.client-mode):not(.auth-mode) .sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    overflow-y: auto;
    align-self: flex-start;
    flex: 0 0 190px;
    width: 190px;
  }
}

/* Mobile retains its existing bottom navigation. */
@media (max-width: 650px) {
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    height: auto;
  }
}
