:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #172f43;
  background: #eef3f7;
  font-synthesis: none;
  --ink: #172f43;
  --navy: #163e5b;
  --blue: #1364c8;
  --line: #d2dfe8;
  --muted: #597084;
  --green: #26755e;
  --paper: #fff;
  --tint: #e4eef8;
  --danger: #a32b35;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mobile-signout {
  display: none !important;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: var(--blue);
}
:focus-visible {
  outline: 3px solid #edb64c;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -1.4px;
  line-height: 1.2;
}
h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  max-width: 74ch;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -60px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.wordmark {
  font-size: 28px;
  letter-spacing: -1.6px;
  font-weight: 800;
  white-space: nowrap;
}
.wordmark span {
  font-weight: 400;
  letter-spacing: -0.9px;
  margin-left: 5px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  gap: 38px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .wordmark {
  padding-left: 12px;
}
.sidebar small {
  color: #bed2e2;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d5e3ed;
  text-align: left;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px;
  font-weight: 500;
}
.nav-button svg {
  width: 19px;
  height: 19px;
}
.nav-button:hover {
  background: #214d6d;
}
.nav-button[aria-current="page"] {
  background: #fff;
  color: var(--navy);
}
.account {
  margin-top: auto;
  border-top: 1px solid #3e5f76;
  padding: 22px 12px 0;
  overflow-wrap: anywhere;
}
.account strong {
  display: block;
  font-weight: 500;
}
.account button {
  display: block;
  color: #d5e3ed;
  padding: 12px 0 0;
  background: none;
  border: none;
  font-size: 13px;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 88px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.org-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.org-control label {
  color: var(--muted);
  font-size: 13px;
}
.org-control select {
  border: 0;
  padding: 8px 30px 8px 6px;
  background-color: #fff;
  max-width: 330px;
  color: var(--ink);
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  background: var(--tint);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  white-space: nowrap;
}
.badge.green {
  background: #e2f0e9;
  color: var(--green);
}
.badge.amber {
  background: #fff0cf;
  color: #75531c;
}
.content {
  padding: 38px 44px 60px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading p {
  margin-top: 10px;
  color: var(--muted);
}
.section {
  margin-bottom: 28px;
}
.surface {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.surface-header {
  padding: 23px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.surface-body {
  padding: 26px;
}
.surface-body > p + p {
  margin-top: 12px;
}
.scope-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #e1ecf5;
  border-left: 3px solid #6d94b3;
  padding: 20px 24px;
  margin-bottom: 28px;
  border-radius: 0 5px 5px 0;
}
.scope-banner svg {
  width: 23px;
  flex-shrink: 0;
  margin-top: 2px;
}
.scope-banner p {
  font-size: 14px;
  color: #3c5970;
  margin-top: 3px;
}
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.coverage-stage {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.coverage-stage:last-child {
  border-right: none;
}
.stage-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #468bc5;
}
.stage-dot.task {
  background: #44826b;
}
.count {
  font-size: 43px;
  letter-spacing: -1.5px;
  font-weight: 600;
  line-height: 1.3;
}
.count-label {
  color: var(--muted);
  font-size: 14px;
}
.coverage-meta {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  flex-wrap: wrap;
}
.coverage-meta span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.coverage-meta strong {
  font-size: 14px;
  font-weight: 500;
}
.connection {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.connection input {
  flex: 1;
  min-width: 0;
  background: #f3f7fb;
}
.button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #0d55ae;
}
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: #c0d0dc;
}
.button.secondary:hover {
  background: #f0f5f9;
}
.button.danger {
  background: white;
  border-color: #d8acb0;
  color: var(--danger);
}
.button.text {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 5px 0;
}
.spaced-buttons {
  margin-top: 18px;
}
.buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.empty {
  padding: 45px 28px;
  text-align: center;
}
.empty h3 {
  font-size: 19px;
  margin-bottom: 9px;
}
.empty p {
  color: var(--muted);
  margin: auto;
  max-width: 60ch;
}
.empty .button {
  margin-top: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: #f7f9fb;
}
th,
td {
  padding: 16px 24px;
  border-bottom: 1px solid #e3eaf0;
}
tr:last-child td {
  border-bottom: none;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
}
.operations-budget-table {
  min-width: 860px;
}
.operations-budget-table th,
.operations-budget-table td {
  vertical-align: top;
}
.operations-budget-table td {
  white-space: nowrap;
}
.operations-budget-table .budget-scope {
  width: 40%;
  min-width: 280px;
}
.budget-label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.budget-description,
.budget-calls {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}
.cell-actions {
  text-align: right;
}
.field {
  display: grid;
  align-content: start;
  gap: 7px;
  margin-bottom: 20px;
}
.field > label,
.field > span {
  font-size: 14px;
  font-weight: 600;
}
input:not([type="checkbox"]),
select,
textarea {
  min-height: 43px;
  background: white;
  border: 1px solid #b8cbd9;
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--ink);
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 150px;
  font-size: 14px;
  line-height: 1.6;
}
select {
  appearance: none;
  height: 43px;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23597084' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
  margin: 2px 0;
  flex-shrink: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-section {
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}
.form-section:first-child {
  padding-top: 0;
}
.form-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.form-section > h3 {
  margin-bottom: 14px;
}
.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
}
.toggle-row span {
  display: block;
}
.toggle-row small {
  display: block;
  max-width: 65ch;
  font-weight: 400;
}
.check-list {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.check-list label {
  display: flex;
  gap: 10px;
  padding: 10px 13px;
  cursor: pointer;
  border-bottom: 1px solid #edf1f5;
}
.check-list label:last-child {
  border-bottom: 0;
}
.check-list label:has(input:checked) {
  background: #edf4fc;
}
.check-list small {
  display: block;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.preview {
  background: #eaf2fa;
  border-radius: 5px;
  padding: 18px 20px;
  margin: 22px 0;
}
.preview p {
  font-size: 14px;
  color: #425e73;
  margin-top: 6px;
}
.dialog {
  border: 0;
  padding: 0;
  width: min(800px, calc(100% - 32px));
  max-height: 90vh;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 20px 80px #163e5b33;
}
.dialog::backdrop {
  background: #173a5466;
}
.dialog-header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.dialog-body {
  padding: 26px 28px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px;
  background: #f5f8fb;
  border-top: 1px solid var(--line);
}
.close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  padding: 6px;
}
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.search-bar input {
  font-size: 17px;
  padding: 14px 16px;
}
.search-filters {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 18px;
}
.search-filters .field {
  margin-bottom: 0;
  flex: 1;
  min-width: 145px;
}
.result {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.result:last-child {
  border-bottom: 0;
}
.result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.result h3 button {
  border: 0;
  background: none;
  font: inherit;
  padding: 0;
  text-align: left;
  color: var(--blue);
}
.result p {
  font-size: 14px;
  margin-top: 9px;
  color: #4d6579;
  white-space: pre-wrap;
}
.evidence-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin: 22px 0;
}
.error {
  background: #fff0f1;
  border: 1px solid #edbfc3;
  color: #8b2631;
  border-radius: 5px;
  padding: 13px 17px;
  margin: 0 0 20px;
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--navy);
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.login-brand {
  background: var(--navy);
  color: white;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand h1 {
  font-size: clamp(42px, 5vw, 65px);
  line-height: 1.06;
  max-width: 8ch;
  letter-spacing: -2px;
}
.login-brand p {
  color: #c0d4e3;
  max-width: 32ch;
  margin: 24px 0 60px;
}
.login-brand small {
  color: #bed2e2;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  max-width: 410px;
  width: 100%;
}
.login-form h2 {
  font-size: 30px;
  margin-bottom: 15px;
}
.login-form > p {
  margin-bottom: 26px;
  color: var(--muted);
}
.login-form .button {
  width: 100%;
  padding: 14px;
}
.login-form small {
  display: block;
  margin-top: 23px;
}
.login-form .wordmark {
  display: none;
}
.consent {
  max-width: 650px;
  margin: 7vh auto;
  padding: 30px;
}
.consent h1 {
  margin: 24px 0 14px;
}
.consent dl {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 22px 0;
}
.consent dt {
  font-size: 12px;
  color: var(--muted);
}
.consent dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.consent dd:last-child {
  margin: 0;
}
#notification:empty {
  display: none;
}
#notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100% - 48px);
  padding: 14px 20px;
  background: var(--navy);
  color: white;
  border-radius: 6px;
  box-shadow: 0 8px 25px #163e5b20;
  z-index: 40;
}
.audit-entry {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.audit-entry:last-child {
  border-bottom: 0;
}
.audit-entry summary {
  cursor: pointer;
}
.audit-entry pre {
  font: 13px/1.6 inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 300px;
  overflow: auto;
  margin: 14px 0 0;
}
.footer-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}
.page-loading {
  padding: 65px 20px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 15px;
  }
  .topbar {
    padding: 17px 26px;
  }
  .content {
    padding: 30px 26px;
  }
  .login-brand {
    padding: 40px;
  }
  .form-row {
    gap: 18px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 20px;
    gap: 20px;
  }
  .sidebar .wordmark {
    padding: 0;
    font-size: 25px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin: 0 -5px;
  }
  .nav-button {
    white-space: nowrap;
    gap: 7px;
    padding: 9px 10px;
    font-size: 13px;
  }
  .nav-button svg {
    width: 16px;
  }
  .account {
    display: none;
  }
  .topbar {
    padding: 12px 20px;
    min-height: 65px;
  }
  .org-control {
    gap: 3px;
    min-width: 0;
  }
  .org-control label {
    display: none;
  }
  .org-control select {
    max-width: 240px;
    min-width: 0;
  }
  .topbar-actions > .badge {
    font-size: 10px;
  }
  .mobile-signout {
    display: inline-flex !important;
    font-size: 12px !important;
  }
  .content {
    padding: 26px 20px 40px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .surface-header,
  .surface-body {
    padding: 20px;
  }
  .coverage-stage {
    padding: 20px;
  }
  .count {
    font-size: 34px;
  }
  .coverage-meta {
    padding: 18px 20px;
    gap: 15px 25px;
  }
  .coverage-meta strong {
    font-size: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dialog-body {
    padding: 22px 20px;
  }
  .dialog-header {
    padding: 18px 20px;
  }
  .login {
    display: block;
  }
  .login-brand {
    display: none;
  }
  .login-main {
    min-height: 100vh;
    padding: 28px;
  }
  .login-form .wordmark {
    display: block;
    margin-bottom: 70px;
  }
  .connection {
    flex-wrap: wrap;
  }
  .connection input {
    width: 100%;
    flex-basis: 100%;
  }
  .login-form > p {
    font-size: 15px;
  }
  .search-filters {
    gap: 12px;
  }
  .scope-banner {
    padding: 17px;
  }
  .consent {
    margin: 20px auto;
    padding: 22px;
  }
  th,
  td {
    padding: 14px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
