@font-face {
  font-family: TT Hoves Pro;
  src: local("TT Hoves Pro");
  font-display: swap;
}
:root {
  --header-height: 62px;
  scroll-padding-top: calc(var(--header-height) + 10px);
  color-scheme: light;
  --primary: #172d49;
  --secondary: #426181;
  --border: #dce4ed;
  --bg: #f5f7fa;
  --surface: #fff;
  --muted: #52657c;
  --selected: #e6edf5;
  --text: #182b41;
  --on-primary: #fff;
  --danger: #a81e27;
  --shadow: 0 1px 2px #172d4912;
  font-family: "TT Hoves Pro", "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #b8d1f1;
  --secondary: #a2bcda;
  --border: #314256;
  --bg: #0f1722;
  --surface: #172333;
  --muted: #a4b5c9;
  --selected: #22364d;
  --text: #ecf2fa;
  --on-primary: #15263a;
  --danger: #ffafb5;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --primary: #b8d1f1;
    --secondary: #a2bcda;
    --border: #314256;
    --bg: #0f1722;
    --surface: #172333;
    --muted: #a4b5c9;
    --selected: #22364d;
    --text: #ecf2fa;
    --on-primary: #15263a;
    --danger: #ffafb5;
    --shadow: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
summary {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  background: none;
}
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
}
.brand,
.utilities,
.nav-item,
.button,
.back,
.timeline li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand {
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.brand-suffix {
  color: var(--secondary);
  font-weight: 550;
}
.brand-icon,
.login-mark {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.utilities {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.utilities form {
  margin: 0;
}
.quiet {
  display: block;
  border: 0;
  padding: 7px 8px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 13px;
}
.quiet:hover,
.theme-options a:hover {
  background: var(--selected);
  color: var(--primary);
}
.themes {
  position: relative;
}
.theme-options {
  position: absolute;
  z-index: 2;
  right: 0;
  min-width: 135px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.theme-options a {
  display: block;
  padding: 5px 9px;
  border-radius: 5px;
}
.selected {
  background: var(--selected);
}
.shell {
  display: grid;
  grid-template-columns: clamp(176px, 24vw, 224px) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}
.sidebar {
  position: sticky;
  top: var(--header-height);
  z-index: 1;
  align-self: start;
  height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 30px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar p,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.sidebar p {
  padding: 0 10px;
}
.nav-item {
  padding: 9px 10px;
  border-radius: 7px;
  font-weight: 600;
  color: var(--primary);
}
.identity {
  margin-top: auto;
  display: grid;
  overflow-wrap: anywhere;
  padding: 12px 10px 0;
  border-top: 1px solid var(--border);
}
.identity span {
  font-size: 13px;
  color: var(--muted);
}
.main {
  padding: 28px clamp(18px, 3vw, 48px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
}
.page-heading h1,
.login-panel h1 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 680;
  overflow-wrap: anywhere;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  flex: 1 1 240px;
}
.search-field svg {
  position: absolute;
  left: 10px;
  top: 9px;
  width: 17px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  padding-left: 35px;
  width: 100%;
}
input,
select,
.button {
  border: 1px solid var(--border);
  border-radius: 7px;
  min-height: 37px;
  padding: 7px 11px;
  background: var(--surface);
}
input::placeholder {
  color: var(--muted);
}
.button {
  display: inline-flex;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
}
.button:hover {
  background: var(--selected);
}
.button svg {
  width: 17px;
  height: 17px;
}
.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.button.primary:hover {
  filter: brightness(1.13);
}
.reset,
.back {
  color: var(--secondary);
  font-weight: 600;
}
.reset {
  padding: 7px;
}
.back {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 14px;
}
.back svg {
  width: 16px;
}
.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: start;
}
thead {
  background: var(--bg);
}
th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
td {
  overflow-wrap: anywhere;
}
td:first-child,
.time {
  white-space: nowrap;
}
.time {
  font-size: 13px;
  color: var(--muted);
}
.record-link {
  color: var(--primary);
  font-weight: 650;
}
.record-link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--selected);
  color: var(--primary);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
}
.empty {
  text-align: center;
  padding: 30px 14px;
  color: var(--muted);
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 9px;
  align-items: center;
}
.pagination .button {
  min-height: 32px;
  padding: 4px 9px;
}
.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}
.form input {
  width: 100%;
  font-weight: 400;
}
.login-wrap {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-panel {
  width: min(100%, 430px);
  padding: 30px;
}
.login-panel .eyebrow {
  margin-top: 15px;
}
.login-panel .form {
  margin-top: 25px;
}
.draft-dialog,
.draft-page {
  --draft-padding: 24px;
  width: min(100%, 520px);
  background: var(--surface);
  color: var(--text);
}
.draft-dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.draft-dialog::backdrop {
  background: rgb(15 23 34 / 54%);
}
html:has(.draft-dialog[open]) {
  overflow: hidden;
}
.draft-header {
  padding: var(--draft-padding) var(--draft-padding) 0;
}
.draft-header :is(h1, h2) {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}
.draft-header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.draft-form {
  gap: 0;
}
.draft-fields {
  display: grid;
  gap: 16px;
  padding: 20px var(--draft-padding);
}
.draft-field-pair {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 14px;
}
.draft-field {
  display: grid;
  align-content: start;
  gap: 5px;
}
.draft-field input {
  min-height: 42px;
}
.draft-field input[aria-invalid="true"] {
  border-color: var(--danger);
}
.draft-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.draft-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px var(--draft-padding);
  border-top: 1px solid var(--border);
}
.draft-cancel {
  border-color: transparent;
}
.request-column {
  width: clamp(104px, 12vw, 148px);
  font-variant-numeric: tabular-nums;
}
.request-subline {
  display: none;
}
@media (max-width: 440px) {
  .draft-dialog,
  .draft-page {
    --draft-padding: 16px;
  }
  .draft-field-pair {
    grid-template-columns: 1fr;
  }
  .draft-field input {
    font-size: 16px;
  }
}
.notice {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail {
  padding: 18px;
  min-width: 0;
}
.detail h2 {
  margin: 0 0 14px;
  font-size: 17px;
}
.detail dl {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 2fr;
  gap: 8px;
  margin: 0;
}
.detail dt,
.timeline p {
  color: var(--muted);
}
.detail dd,
.timeline p {
  margin: 0;
  overflow-wrap: anywhere;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  align-items: flex-start;
  padding: 8px 0;
}
.event-icon {
  color: var(--secondary);
  background: var(--selected);
  padding: 5px;
  border-radius: 50%;
  display: grid;
}
.event-icon svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 760px) {
  .top {
    position: static;
  }
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sidebar {
    top: 0;
    height: auto;
    overflow-y: visible;
    padding: 8px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .sidebar p {
    display: none;
  }
  .identity {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
  }
  .main {
    padding-top: 21px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .top {
    padding: 8px 14px;
  }
  .quiet {
    font-size: 12px;
    padding: 5px;
  }
  .sidebar {
    padding: 8px 14px;
  }
  .identity {
    font-size: 12px;
  }
  .identity span {
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar select {
    max-width: 100%;
  }
  .detail dl {
    grid-template-columns: 1fr 1fr;
  }
  .login-panel {
    padding: 22px;
  }
}
@media (max-width: 600px) {
  .request-subline {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }
  .secondary-column {
    display: none;
  }
  th,
  td {
    padding-inline: 9px;
  }
  td .badge {
    overflow-wrap: normal;
    white-space: normal;
  }
}

.issue-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.issue-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.issue-notice {
  margin-bottom: 12px;
}

.nav-item[aria-current="page"],
.nav-item:hover {
  background: var(--selected);
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.policy-layout {
  display: grid;
  gap: 16px;
}
.policy-panel {
  min-width: 0;
  scroll-margin-block-start: 60px;
}
.policy-header,
.policy-form {
  padding: 14px 16px;
}
.policy-header {
  padding-bottom: 0;
}
.policy-header h2 {
  margin: 0;
  font-size: 18px;
}
.policy-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.policy-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 10px 12px;
}
.policy-field {
  display: grid;
  gap: 5px;
}
.policy-fields :is(input, select) {
  min-width: 0;
  width: 100%;
}
.policy-date {
  display: block;
  white-space: nowrap;
}
.policy-panel td:first-child {
  white-space: normal;
}

.issue-form + .issue-form {
  border-top: 0;
  margin-top: 10px;
  padding-top: 0;
}
.detail .certificate-summary {
  margin: 7px 0;
}
.timeline li > div {
  min-width: 0;
}

.form .toggle-field {
  display: flex;
  gap: 8px;
  align-items: center;
}
.form .toggle-field input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--primary);
}
.draft-form > .toggle-field {
  margin: 0 var(--draft-padding) 20px;
}
.readiness-layout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.readiness-panel {
  min-width: 0;
  scroll-margin-top: 8px;
}
.readiness-header,
.readiness-form {
  padding: 14px 16px;
}
.readiness-header {
  padding-bottom: 10px;
}
.readiness-header h2 {
  margin: 0;
  font-size: 18px;
}
.readiness-header p,
.readiness-checklist p,
.readiness-actions p,
.readiness-empty {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.readiness-checklist {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}
.readiness-checklist li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.readiness-checklist li:last-child {
  border-bottom: 0;
}
.readiness-panel > .readiness-checklist {
  padding: 0 16px 14px;
}
.readiness-checklist-label {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
}
.readiness-checklist-label span {
  color: var(--muted);
  font-size: 13px;
}
.readiness-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  border-top: 1px solid var(--border);
}
.readiness-actions .button:disabled {
  opacity: 0.65;
  cursor: default;
}
.readiness-actions p {
  margin: 0;
}
.gas-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}
.gas-fields input {
  min-width: 0;
}
.readiness-empty {
  padding: 3px 16px 14px;
}
.gas-table td:first-child {
  white-space: normal;
}
.page-heading > .badge {
  white-space: normal;
}

@media (max-width: 600px) {
  .gas-table {
    position: relative;
  }
  .gas-table table,
  .gas-table tbody {
    display: block;
  }
  .gas-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .gas-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
  }
  .gas-table tbody tr:last-child {
    border-bottom: 0;
  }
  .gas-table td {
    padding: 0;
    border: 0;
  }
  .gas-table td:first-child {
    font-weight: 600;
  }
  .gas-table td:nth-child(n + 3) {
    color: var(--muted);
    font-size: 13px;
  }
}

.crew-panel {
  margin-top: 16px;
}
.crew-panel :is(.crew-members, .crew-picker, .crew-previous) {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crew-members li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.crew-members p,
.crew-recorded,
.crew-form-options .muted,
.crew-picker small,
.crew-state .muted {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.crew-state {
  text-align: right;
}
.crew-recorded {
  padding: 8px 16px 10px;
}
.crew-form-options {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.crew-form-options summary {
  font-weight: 600;
}
.crew-form-options form,
.crew-panel ul.crew-previous {
  margin-top: 10px;
}
.crew-picker {
  max-height: 240px;
  overflow-y: auto;
}
.crew-picker .toggle-field {
  padding: 7px 3px;
}
.crew-picker small {
  margin: 0;
  display: block;
  font-weight: 400;
}
@media (max-width: 440px) {
  .crew-members li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .crew-state {
    text-align: left;
  }
  .crew-state p {
    display: inline-block;
    margin: 0 0 0 6px;
  }
}

.work-panel {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px;
}
.work-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.work-form {
  display: grid;
  justify-items: start;
  gap: 7px;
}
.work-form + .work-form {
  margin-top: 12px;
}
.work-form label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  width: min(100%, 320px);
}
.work-form input {
  width: 100%;
  min-width: 0;
}
.work-form .muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.closure-digest {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.work-panel .closure-digest {
  word-break: break-all;
}
.closure-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.closure-verify,
.closure-hashes {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 12px;
}
.closure-verify input[type="file"] {
  max-width: 100%;
}
.attachment-panel {
  margin-top: 16px;
  scroll-margin-top: 80px;
}
.attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.attachment-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: baseline;
  border-top: 1px solid var(--border);
  padding: 10px 0;
}
.attachment-list li a {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.attachment-list .muted,
.attachment-form .muted {
  font-size: 13px;
}
.attachment-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 12px;
}
.attachment-form > div {
  min-width: 0;
}
.attachment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}
.attachment-form input {
  max-width: 100%;
}
.attachment-form input::file-selector-button,
.defect-form input::file-selector-button,
.closure-verify input::file-selector-button {
  background: var(--selected);
  border: 0;
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  margin-inline-end: 8px;
  padding: 3px 8px;
}
.attachment-form .muted {
  margin: 5px 0 0;
}
@media (max-width: 600px) {
  .attachment-list li {
    grid-template-columns: minmax(0, 1fr);
  }
}
.defect-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 200px) auto auto;
}
.defect-register {
  margin-top: 12px;
}
.defect-register > summary {
  display: inline-flex;
  cursor: pointer;
}
.defect-register .defect-form {
  display: grid;
  width: min(100%, 620px);
  margin-top: 12px;
  gap: 11px;
}
.defect-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.defect-form input[type="file"] {
  max-width: 100%;
}
.defect-form .defect-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.defect-form button {
  justify-self: start;
}
.defect-photo-hint {
  margin: -6px 0 0;
  font-size: 13px;
}
.defect-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.defect-photo-link {
  overflow-wrap: anywhere;
}
.defect-state-resolved {
  background: color-mix(in srgb, #287d53 17%, var(--surface));
}
.defect-state-in_progress {
  background: color-mix(in srgb, #bc8d26 24%, var(--surface));
}
@media (max-width: 700px) {
  .defect-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .defect-toolbar .search-field,
  .defect-toolbar .reset {
    grid-column: 1 / -1;
  }
}
.verification-match {
  color: var(--text);
  background: color-mix(in srgb, #287d53 17%, var(--surface));
  border: 1px solid color-mix(in srgb, #287d53 44%, var(--border));
  border-radius: 6px;
  padding: 6px 10px;
}
.signing-preview {
  min-width: 0;
}
.signing-preview .closure-downloads {
  margin-top: 0;
}
.signing-preview-frame {
  display: block;
  width: 100%;
  height: min(72vh, 850px);
  min-height: 360px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
@media (max-width: 760px) {
  .signing-preview-frame {
    display: none;
  }
}
.closure-hashes summary {
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 500px) {
  .work-panel .closure-digest {
    grid-column: 1 / -1;
  }
}
