:root {
  --navy: #112e35;
  --teal: #087e76;
  --teal-dark: #06645e;
  --paper: #f4f6f3;
  --line: #dce5df;
  --muted: #637975;
  --white: #fff;
  --mint: #d8eee3;
  --danger: #a33335;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--navy);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  background: var(--paper);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2 {
  letter-spacing: -1.2px;
}
h2 {
  font-size: 25px;
  margin-bottom: 9px;
}
p {
  line-height: 1.6;
}
small {
  font-size: 12px;
  line-height: 1.5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2px;
  font-weight: 400;
  margin-top: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 13px;
  width: 43px;
  height: 45px;
  font-size: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 700;
  display: block;
}
.muted {
  color: var(--muted);
}
.dot {
  display: inline-block;
  background: #76d4b0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.intro {
  background: var(--navy);
  color: #edf6ed;
  padding: 45px 12%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.intro:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  width: 590px;
  height: 590px;
  right: -440px;
  top: 180px;
  pointer-events: none;
}
.intro-copy {
  margin: auto 0;
  padding: 65px 0;
}
.intro h1 {
  font-size: clamp(44px, 4.4vw, 70px);
  line-height: 1.06;
  font-weight: 500;
  margin: 26px 0;
}
.intro em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #a6dfc6;
}
.intro-copy > p {
  max-width: 410px;
  color: #b3cac3;
}
.capture-summary {
  display: flex;
  gap: 45px;
  margin-top: 40px;
}
.capture-summary b {
  font-size: 29px;
  font-weight: 450;
  display: block;
}
.capture-summary b span {
  font-size: 16px;
}
.capture-summary div > span {
  font-size: 11px;
  color: #b3cac3;
}
.intro-foot {
  font-size: 11px;
  color: #b3cac3;
}
.auth-side {
  display: grid;
  place-items: center;
  padding: 45px;
}
.auth-card {
  width: min(420px, 100%);
}
.auth-card h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-top: 18px;
}
.switcher {
  display: flex;
  background: #e7ede7;
  border-radius: 9px;
  padding: 4px;
  margin: 26px 0;
}
.switcher button {
  flex: 1;
  background: transparent;
  padding: 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}
.switcher .selected {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 3px #112e3510;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 18px;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #cddbd3;
  border-radius: 7px;
  background: white;
  padding: 12px 13px;
  margin-top: 8px;
  color: var(--navy);
}
input:focus,
textarea:focus {
  outline: 2px solid #82b9aa;
  border-color: transparent;
}
input:disabled {
  background: #eef2ef;
}
label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-weight: 400;
}
input[type="checkbox"] {
  accent-color: var(--teal);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.primary,
.secondary,
.ghost {
  border-radius: 7px;
  padding: 12px 19px;
  font-size: 13px;
  font-weight: 600;
}
.primary {
  background: var(--teal);
  color: white;
}
.primary:hover:enabled {
  background: var(--teal-dark);
}
.secondary {
  background: #eaf1ec;
  color: var(--navy);
  border: 1px solid var(--line);
}
.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.full {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.privacy-note {
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 12px;
}
.privacy-note p {
  color: var(--muted);
  margin-top: 6px;
}
.lab-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
}
.workspace {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #edf6ed;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  font-size: 23px;
  gap: 10px;
}
.sidebar .brand small {
  font-size: 8px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #89a7a0;
  margin: 65px 12px 15px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  padding: 16px 12px;
  border-radius: 7px;
  color: #b6cbc5;
}
.nav-link:hover {
  background: #21414a;
  color: white;
}
.nav-link span {
  font-size: 10px;
  color: #79b6a0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #92aea5;
  margin-top: 12px;
}
.sidebar-bottom .ghost {
  width: 100%;
  border-color: #36525a;
  color: #d6e7df;
}
.private-label {
  font-size: 11px;
}
main {
  max-width: 1510px;
  width: 100%;
  padding: 0 44px;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.crumb {
  color: var(--muted);
}
.environment {
  border: 1px solid #d3dfd7;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 38px 0 25px;
}
.page-heading h1 {
  font-size: 34px;
  font-weight: 550;
  margin: 12px 0;
}
.page-heading p {
  font-size: 13px;
  margin-bottom: 0;
}
.status-pill {
  border: 1px solid #c3dcd0;
  background: #e7f0e9;
  padding: 9px 12px;
  border-radius: 30px;
  font-size: 10px;
  white-space: nowrap;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 28px;
  padding: 23px 0;
}
.overview > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.overview > div:last-child {
  border: 0;
}
.overview strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  margin-top: 12px;
}
.overview strong small {
  font-size: 20px;
  color: #8da29a;
}
.overview .small-value {
  font-size: 17px;
  margin-top: 19px;
}
.overview p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  accent-color: var(--teal);
  border: 0;
  border-radius: 10px;
  margin-top: 15px;
  background: #e6eee7;
}
progress::-webkit-progress-bar {
  background: #e6eee7;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: var(--teal);
  border-radius: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  padding: 30px;
}
.section-head {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}
.section-head h2 {
  font-size: 23px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.step {
  background: #edf4ef;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 11px;
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
}
.form-grid textarea {
  resize: vertical;
  min-height: 86px;
}
.consent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.consent-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  background: #fafcf9;
}
.consent-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.consent-card p {
  font-size: 12px;
  color: var(--muted);
}
.consent-card details {
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0;
}
.consent-card summary {
  cursor: pointer;
  font-weight: 600;
}
.consent-card .check-label {
  font-size: 11px;
  margin-top: 16px;
}
.consent-card button {
  font-size: 12px;
}
.consent-state {
  font-size: 10px;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
}
.capture-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}
.capture-tabs button {
  background: #f6f8f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  padding: 13px;
  font-size: 12px;
  color: var(--navy);
}
.capture-tabs button span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.capture-tabs button.selected {
  border-color: var(--teal);
  background: #e9f4ed;
}
.capture-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
}
.viewfinder {
  min-height: 300px;
  aspect-ratio: 4/3;
  border: 1px solid #c9dcd0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #eaf1ec;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.viewfinder:before {
  content: "";
  position: absolute;
  inset: 25px;
  border: 1px solid #aacbbb;
  border-radius: 60px;
  pointer-events: none;
}
.viewfinder video,
.viewfinder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  background: #132b30;
}
.viewfinder audio {
  z-index: 1;
  max-width: 90%;
}
#empty-preview {
  padding: 45px;
  position: relative;
}
.frame-icon {
  font-size: 53px;
  color: #789b8a;
  display: block;
  margin-bottom: 16px;
}
#empty-preview h3 {
  font-size: 17px;
}
#empty-preview p {
  font-size: 12px;
  max-width: 230px;
  color: var(--muted);
}
.viewfinder-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.capture-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.capture-guidance h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin: 12px 0;
}
.capture-guidance ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.alternative {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.alternative label {
  font-size: 11px;
  margin-bottom: 10px;
}
.alternative input {
  font-size: 10px;
  padding: 8px;
}
.alternative small {
  color: var(--muted);
  font-size: 10px;
}
#capture-message {
  font-size: 12px;
  margin-top: 12px;
  min-height: 20px;
}
.recording-clock {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  background: #852829;
  color: white;
  border-radius: 5px;
  padding: 7px 10px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.reading-text {
  font-size: 13px;
  max-height: 210px;
  overflow: auto;
  line-height: 1.8;
  background: #f7f9f5;
  padding: 16px;
  border-radius: 7px;
}
.challenge {
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
}
#reading-panel small {
  color: var(--muted);
  font-size: 10px;
}
#reading-panel h4 {
  font-size: 13px;
}
.review-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #eaf3ec;
}
.review-panel h2 {
  margin-top: 12px;
}
.review-panel p {
  font-size: 12px;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 0;
}
.review-panel button {
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  padding: 12px 0 30px;
}
footer span {
  max-width: 420px;
  text-align: right;
}
.text-button {
  background: none;
  color: var(--teal);
  font-size: 12px;
  margin-top: 15px;
  padding: 0;
}
.notice {
  position: fixed;
  right: 25px;
  top: 20px;
  max-width: 460px;
  z-index: 20;
  border: 1px solid #bad6c5;
  background: #effaf2;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #112e3520;
  font-size: 13px;
}
.notice.error {
  background: #fff3f1;
  color: var(--danger);
  border-color: #edc9c0;
}
@media (max-width: 1100px) {
  main {
    padding: 0 25px;
  }
  .workspace {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    padding: 30px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .capture-grid {
    grid-template-columns: 1fr;
  }
  .viewfinder {
    max-height: 430px;
  }
  .review-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .intro {
    padding: 35px 10%;
  }
}
@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .intro {
    padding: 25px 25px 30px;
  }
  .intro-copy {
    padding: 30px 0 0;
  }
  .intro h1 {
    font-size: 42px;
  }
  .intro h1 br {
    display: none;
  }
  .intro-copy > p {
    max-width: none;
  }
  .capture-summary {
    margin-top: 25px;
  }
  .intro-foot {
    margin-top: 25px;
  }
  .auth-side {
    padding: 35px 25px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 20px;
  }
  .sidebar .brand {
    font-size: 23px;
  }
  .nav-label,
  .sidebar nav,
  .sidebar-bottom p,
  .private-label {
    display: none;
  }
  .sidebar-bottom {
    position: absolute;
    top: 22px;
    right: 15px;
    margin: 0;
    padding: 0;
  }
  .sidebar-bottom .ghost {
    padding: 8px;
    font-size: 10px;
  }
  main {
    padding: 0 16px;
  }
  .topbar {
    font-size: 10px;
    padding: 16px 0;
  }
  .crumb {
    display: none;
  }
  .page-heading {
    padding: 28px 0 20px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .overview {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .overview > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 19px;
  }
  .overview .small-value {
    margin-top: 10px;
  }
  .panel {
    padding: 20px;
  }
  .form-grid,
  .consent-grid {
    grid-template-columns: 1fr;
  }
  .capture-tabs {
    gap: 6px;
  }
  .capture-tabs button {
    padding: 10px 8px;
    font-size: 10px;
  }
  .section-head {
    gap: 10px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .viewfinder {
    min-height: 250px;
  }
  .capture-buttons button {
    flex: 1;
  }
  .review-panel button {
    white-space: normal;
    width: 100%;
  }
  footer {
    display: block;
    line-height: 1.6;
  }
  footer span {
    display: block;
    text-align: left;
  }
  .notice {
    left: 15px;
    right: 15px;
    max-width: none;
  }
}

.password-control {
  display: block;
  position: relative;
  margin-top: 8px;
}

.reference-setup {
  margin: 20px 0 24px;
  padding: 20px;
  border: 1px solid #d9e4df;
  border-radius: 12px;
  background: #f5f8f5;
}
.reference-setup select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #bdcfc7;
  border-radius: 8px;
  color: #12343d;
  background: white;
  font: inherit;
}
.reference-setup .form-grid {
  margin-top: 18px;
}
.reference-library {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #d9e4df;
}
.reference-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.reference-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #d9e4df;
  border-radius: 12px;
  background: #f8faf8;
  overflow-wrap: anywhere;
}
.reference-card h4 {
  margin: 8px 0;
  font-size: 17px;
}
.reference-card p {
  margin: 8px 0 16px;
}
.reference-card .capture-buttons {
  margin-bottom: 0;
}
.reference-card .capture-buttons button {
  flex: 1 1 110px;
  white-space: nowrap;
  padding: 12px;
}
.reference-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #bdcfc7;
  border-radius: 12px;
}
@media (max-width: 700px) {
  .reference-list {
    grid-template-columns: 1fr;
  }
  .reference-library-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .reference-setup {
    padding: 16px;
  }
}
.password-control input {
  margin: 0;
  padding-right: 56px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #145e58;
  cursor: pointer;
}
.password-toggle:focus-visible {
  outline: 2px solid #087e78;
  outline-offset: 1px;
}
.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.eye-slash {
  display: none;
}
.password-toggle[aria-pressed="true"] .eye-slash {
  display: block;
}
.recovery-shell {
  width: calc(100% - 24px);
  max-width: 560px;
  margin: 6vh auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #d9e4df;
  border-radius: 18px;
}
.recovery-shell h1 {
  font-size: 32px;
  line-height: 1.2;
}
.recovery-shell label {
  margin: 24px 0;
}
.recovery-brand {
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
}
#recovery-message {
  padding: 16px;
  background: #eef6ee;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
#recovery-message.recovery-error {
  background: #fff0ed;
  color: #a32219;
}
@media (max-width: 600px) {
  .recovery-shell {
    margin: 20px 12px;
    padding: 24px;
  }
}
