:root {
  --navy: #0b1f3a;
  --navy-soft: #16345c;
  --ink: #122033;
  --muted: #5b6b7c;
  --line: #dce3ea;
  --paper: #f5f7fa;
  --white: #ffffff;
  --danger: #9b1c2a;
  --green: #15803d;
  --green-soft: #dcfce7;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 2.025rem;
  line-height: 1;
  color: var(--navy);
}

.wordmark img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.header-link:hover {
  color: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary,
.button-ghost,
.button-light {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.button-primary:hover,
.button-ghost:hover,
.button-light:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--white);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow {
  font-size: 0.95rem;
}

.hero h1 {
  line-height: 1.08;
}

h1,
h2 {
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--navy);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.lede {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.hero-visual img,
.hero-visual video {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
}

.trust-grid strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 88px;
}

.section-muted {
  background: var(--paper);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-intro {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split .section-intro {
  margin-bottom: 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.feature-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--muted);
}

.feature-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.cta-band {
  background: var(--navy);
  color: #d7e2ee;
  padding: 56px 0;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}


.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  margin: 0 0 4px;
  color: var(--navy);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.auth-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 55%);
}

.auth-card {
  width: min(440px, calc(100% - 40px));
  margin: 72px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-weight: 700;
  color: var(--navy);
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
}

input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.form-error {
  min-height: 1.4em;
  color: var(--danger);
  margin: 0 0 12px;
}

.form-error:empty {
  display: none;
}

.full-width {
  width: 100%;
}

.portal {
  padding: 32px 0 64px;
  background: var(--paper);
  min-height: calc(100vh - 72px);
}

.portal-inner,
.portal-header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.account-page .portal-header-inner {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: center;
  margin: 0;
}

.account-page .wordmark {
  justify-content: flex-start;
  padding-left: 28px;
}

.account-page .header-actions {
  justify-self: end;
  padding-right: 40px;
}

.portal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.demo-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff4d6;
  color: #6a4b00;
  font-weight: 600;
}

.portal-status {
  margin: 0 0 20px;
  color: var(--muted);
}

.dashboard-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.summary-chip.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.title-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

#title-file-link {
  margin: 0;
}

#title-file-link a {
  color: var(--navy);
  font-weight: 700;
}

.title-pdf-frame {
  display: block;
  width: 100%;
  height: min(80vh, 920px);
  min-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.title-pdf-frame[hidden] {
  display: none;
}

.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.portal-toolbar #manage-titles-link,
.portal-toolbar #clear-all-titles {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
  line-height: 1;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.6rem 88px;
  align-items: center;
  column-gap: 0;
}

.dashboard-toolbar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-refresh {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.dashboard-refresh.is-busy {
  pointer-events: none;
  opacity: 0.65;
}

.dashboard-refresh.is-busy svg {
  animation: dashboard-refresh-spin 0.8s linear infinite;
}

@keyframes dashboard-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.tag-filter-pill {
  display: block;
  box-sizing: border-box;
  width: 8.6rem;
  padding: 0 10px;
}

.tag-filter-pill select {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 28px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2314273d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.tag-filter-pill select.is-filtered {
  border-color: var(--navy);
}

.add-title-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
}

.add-title-form .button {
  justify-self: start;
}

#invite-member-form .title-field {
  margin: 0;
}

#invite-member-form .button {
  min-height: 48px;
  width: 100%;
}

.csv-toolbar {
  align-items: center;
}

.csv-upload {
  position: relative;
  overflow: hidden;
}

.csv-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.manage-actions p {
  margin: 0 8px 0 0;
  font-weight: 700;
}

.status-findings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.finding-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.sort-button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.sort-button::after {
  content: " \2195";
  font-weight: 400;
  opacity: 0.7;
}

th[aria-sort="ascending"] .sort-button::after {
  content: " \2191";
}

th[aria-sort="descending"] .sort-button::after {
  content: " \2193";
}

.state-filter-wrap {
  position: relative;
  width: 12.75rem;
}

.state-filter-wrap .status-filter {
  width: 100%;
}

.state-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
}

.state-option {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.state-option:hover,
.state-option[aria-selected="true"] {
  background: #f7f9fc;
}

.select-col {
  width: 44px;
}

.modify-dialog,
.confirm-order-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  width: min(480px, calc(100% - 32px));
}

.confirm-order-summary {
  margin: 0 0 12px;
  font-weight: 700;
}

.confirm-order-warning {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4d6;
  color: #6a4b00;
  font-weight: 600;
  font-size: 0.9rem;
}

.confirm-order-dialog .order-confirm {
  white-space: normal;
  align-items: flex-start;
  margin: 0 0 16px;
}

.confirm-order-dialog .dialog-actions {
  justify-content: flex-end;
}

.modify-dialog::backdrop {
  background: rgb(11 31 51 / 0.4);
}

.dialog-actions {
  display: flex;
  gap: 8px;
}

.auth-extra {
  margin: 12px 0 0;
  text-align: center;
}

.text-link {
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 20px 16px;
  box-shadow: var(--shadow);
}

.profile-list div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list div:last-child {
  border-bottom: none;
}

.profile-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.profile-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.account-page .portal {
  padding: 0;
  background: var(--white);
  min-height: calc(100vh - 72px);
}

.account-page-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.account-page-inner > .form-error {
  width: min(1120px, calc(100% - 48px));
  margin: 24px auto;
}

.account-main > #account-directory {
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-heading-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.page-heading-row h1 {
  margin: 0;
}

.status-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phase-tag,
.env-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phase-tag {
  background: #d9f2de;
  border-color: #166534;
  color: #14532d;
}

.phase-tag[hidden],
.env-tag[hidden] {
  display: none;
}

.showcase-banner {
  background: #111827;
  color: #f9fafb;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.showcase-banner p {
  margin: 0;
}

.showcase-panel,
.showcase-launch,
.title-contacts,
.title-tabs {
  margin-top: 20px;
}

.title-tabs,
.title-version-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.title-tabs .button.is-current {
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy-soft);
}

.title-tabs-split {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 12px;
}

.title-tabs-start {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.title-tabs-split #search-title {
  margin-left: auto;
}

.title-identity-panel {
  margin: 4px 0 20px;
  padding: 16px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.title-identity-panel .title-summary-row {
  grid-template-columns: minmax(7rem, 0.7fr) minmax(9rem, 1fr) minmax(12rem, 2fr);
}

.title-version-strip {
  margin: 12px 0 4px;
}

.title-diff table {
  width: 100%;
}

.env-tag.is-up {
  background: #d9f2de;
  border-color: #166534;
  color: #14532d;
}

.env-tag.is-down {
  background: #f8e4e6;
  border-color: #9b1c2a;
  color: #9b1c2a;
}

.save-feedback {
  margin: 12px 0 0;
}

.save-feedback.is-ok {
  color: #14532d;
}

.save-feedback.is-error {
  color: #9b1c2a;
}

.account-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  align-items: stretch;
}

.account-section-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--navy);
}

.account-nav {
  position: sticky;
  top: 72px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 20px 16px 28px 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.account-nav a[hidden] {
  display: none;
}

.account-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.account-nav a:hover,
.account-nav a:focus-visible {
  color: var(--navy);
  background: var(--paper);
}

.account-nav a.is-current {
  color: var(--navy);
  background: var(--paper);
  font-weight: 700;
}

.account-nav a.is-disabled {
  color: #9aa7b5;
  font-weight: 600;
  cursor: not-allowed;
  background: transparent;
}

.account-nav-client,
.account-nav-admin {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-nav-client[hidden],
.account-nav-admin[hidden] {
  display: none;
}

.account-nav-admin.is-footer {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-main {
  min-width: 0;
  padding: 28px 40px 56px;
}

.account-main .eyebrow {
  margin-bottom: 6px;
}

.account-main .profile-list,
.account-main .title-form {
  box-shadow: none;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 0;
}

.account-details-panel {
  margin-top: 8px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-details-panel .title-form {
  border-top: 0;
}

.account-details-panel .account-section-title {
  margin-bottom: 16px;
}

.account-env-panel {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.account-env-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--navy);
}

.account-env-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.account-env-row select {
  min-width: 240px;
}

.overview-verify {
  margin-top: 14px;
}

.account-main .table-wrap {
  box-shadow: none;
  border-radius: 0;
  max-height: none;
  overflow: visible;
}

.account-main .folio-table {
  min-width: 0;
}

@media (max-width: 800px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-page .portal-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-page .wordmark {
    padding-left: 16px;
  }

  .account-page .header-actions {
    padding-right: 16px;
  }

  .account-nav {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }
}

.set-alert-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
}

.set-alert-icon svg {
  width: 18px;
  height: 18px;
}

.set-alert-icon.is-active {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.set-alert-icon.is-fired {
  background: #f8e4e6;
  border-color: #9b1c2a;
  color: #9b1c2a;
}

.set-alert-icon:hover,
.set-alert-icon:focus-visible {
  color: var(--navy-soft);
  background: var(--paper);
}

.alert-recipients {
  margin-top: 8px;
}

.alert-recipients > h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.2rem;
}

.alert-shuttle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.alert-shuttle-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.alert-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}

.alert-shuttle-panel h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
}

.alert-count {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.alert-count::before {
  content: "· ";
}

.alert-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 12px;
}

.alert-search {
  display: block;
  margin: 0 0 10px;
}

.alert-search input {
  min-height: 42px;
  border-radius: 10px;
  background: var(--paper);
}

.alert-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  min-height: 280px;
  max-height: min(52vh, 440px);
  background: var(--white);
}

.alert-contact-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
}

.alert-contact-row:last-child {
  border-bottom: 0;
}

.alert-contact-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--navy);
}

.alert-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--navy-soft);
}

.alert-contact-email {
  margin: 0;
  min-width: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  word-break: break-word;
}

.alert-empty {
  margin: 0;
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.alert-panel-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.alert-shuttle-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-top: 72px;
}

@media (max-width: 900px) {
  .alert-shuttle {
    grid-template-columns: 1fr;
  }

  .alert-shuttle-actions {
    flex-direction: row;
    padding-top: 0;
    justify-content: center;
  }
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 280px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.folio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 1180px;
}

.folio-table th,
.folio-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.folio-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.folio-table tbody tr:last-child td {
  border-bottom: none;
}

.folio-table tbody tr:hover {
  background: #f7f9fc;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 11.25rem;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
}

.title-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-green {
  background: #e3f4ea;
  color: #14532d;
}

.status-amber {
  background: #fff4d6;
  color: #6a4b00;
}

.status-red {
  background: #f8e4e6;
  color: #9b1c2a;
}

.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.status-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.status-filter.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.user-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
}

.user-icon.is-current,
.user-icon:hover,
.user-icon:focus-visible {
  border-color: var(--navy);
}

.user-icon svg {
  width: 20px;
  height: 20px;
}

.profile-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 64px;
  text-decoration: none;
  color: var(--navy);
}

.session-role {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  max-width: 88px;
}

.session-role:empty {
  display: none;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--navy);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.role-select {
  min-height: 40px;
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  font-weight: 600;
}

.hidden {
  display: none;
}

@media (max-width: 840px) {
  .hero,
  .hero-grid,
  .cards,
  .trust-grid,
  .split,
  .cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .header-link {
    display: none;
  }

  .cta-inner,
  .footer-grid {
    display: grid;
  }
}

.landing-v1 .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  padding: 0 20px;
}

.landing-v1 .header-tagline {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

.landing-v1 .header-actions {
  justify-self: end;
}

.landing-v1 .hero {
  padding: 0 0 48px;
}

.landing-v1 .hero-banner {
  width: 100%;
  box-sizing: border-box;
  padding: 28px 36px;
  background: var(--paper);
}

.landing-v1 .hero-banner video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #0b1f3a;
  border-radius: 12px;
}

.landing-v1 .hero-copy {
  padding-top: 36px;
  text-align: center;
}

.landing-v1 .hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  white-space: nowrap;
}

.landing-v1 .hero-copy .lede {
  margin-left: auto;
  margin-right: auto;
}

.landing-v1 .hero-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .landing-v1 .header-tagline {
    display: none;
  }

  .landing-v1 .header-inner {
    display: flex;
  }

  .landing-v1 .hero-copy h1 {
    white-space: normal;
  }

  .landing-v1 .hero-banner {
    padding: 16px 20px;
  }
}

.landing-v2 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-v2 .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  padding: 0 20px;
}

.landing-v2 .header-tagline {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

.landing-v2 .header-actions {
  justify-self: end;
}

.landing-v2 .landing-home {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px 16px;
  box-sizing: border-box;
}

.landing-v2 .hero-banner {
  display: flex;
  justify-content: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.landing-v2 .hero-banner video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0b1f3a;
  border-radius: 12px;
}

.visually-hidden,
.landing-v2 .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-v2 .hero-copy {
  padding-top: 28px;
  text-align: center;
}

.landing-v2 .landing-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 28px;
  padding: 0;
  width: 100%;
  list-style: none;
}

.landing-v2 .landing-points li {
  margin: 0;
  text-align: center;
}

.landing-v2 .point-title {
  display: block;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 8px;
}

.landing-v2 .point-copy {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.landing-v2 .hero-copy .lede {
  margin: 0 auto 22px;
  max-width: 38rem;
}

.landing-v2 .hero-actions {
  justify-content: center;
}

.landing-v2 .landing-page {
  flex: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.landing-v2 .landing-page h1 {
  margin: 0 0 12px;
}

.landing-v2 .landing-page .lede {
  margin: 0 0 22px;
  max-width: 40rem;
}

.landing-v2 .landing-page ul {
  max-width: 40rem;
  padding-left: 1.2rem;
}

.landing-v2 .landing-page a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.landing-v2 .landing-page .button {
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}

.landing-v2 .landing-page .button-primary {
  color: var(--white);
}

.landing-v2 .landing-page .use-cases {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 16px;
}

.landing-v2 .use-case {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.landing-v2 .use-case h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.landing-v2 .use-case p {
  margin: 0;
  color: var(--muted);
}

.landing-v2 .page-cta {
  margin: 8px 0 0;
}

.landing-v2 .footer-copy {
  margin-top: 8px;
  font-size: 0.85rem;
}

.landing-v2 .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.landing-v2 .footer-links a {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 900px) {
  .landing-v2 .header-tagline {
    display: none;
  }

  .landing-v2 .header-inner {
    display: flex;
  }

  .landing-v2 .landing-points {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-v2 .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-v2 .use-case {
    flex-direction: column;
    align-items: flex-start;
  }
}

.title-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin: 0 0 16px;
  padding: 16px 18px;
}

.title-form legend {
  font-weight: 700;
  color: var(--navy);
}

.title-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.order-details-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
}

.title-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
  margin: 0 0 20px;
}

.title-summary-row .title-field {
  margin: 0;
}

.order-details-row .title-field {
  margin: 0;
}

@media (max-width: 900px) {
  .order-details-row,
  .title-summary-row {
    grid-template-columns: 1fr 1fr;
  }
}

.title-field input,
.title-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: var(--paper);
}

.order-workspace {
  margin: 0 0 24px;
  padding: 12px 0 8px;
  background: var(--white);
}

.order-gate {
  margin: 0 0 12px;
}

.order-confirm {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  appearance: none;
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: var(--white);
  accent-color: var(--navy);
}

input[type="checkbox"]:checked {
  background: var(--navy);
  background-image: linear-gradient(transparent, transparent);
  box-shadow: inset 0 0 0 2px var(--white);
}

.order-confirm input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  appearance: none;
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: var(--white);
}

.order-confirm input:checked,
input[type="checkbox"]:checked {
  background: var(--navy);
  box-shadow: inset 0 0 0 2px var(--white);
}

.status-help {
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.order-feedback {
  min-height: 1.4em;
  margin: 0 0 8px;
  font-weight: 600;
}

.order-feedback.is-fail {
  color: var(--danger);
}

.order-progress {
  font-weight: 600;
}

.order-progress.is-fail {
  color: var(--danger);
}

.ledger-row-waiting td {
  background: #f7e7c6;
}

.ledger-row-new td {
  background: #d9f2de;
}

.poll-heartbeat {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.manage-page .page-heading-row {
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 20px;
  min-width: 0;
}

.manage-page .page-heading-row h1 {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.manage-page .status-pills {
  flex: 0 0 auto;
  align-self: center;
}

.manage-page .phase-tag,
.manage-page .env-tag {
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.order-panel {
  margin: 0 0 18px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.order-panel-title {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.order-panel .portal-status {
  margin: 0 0 12px;
}

.order-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.manage-page .add-title-form {
  margin: 0;
  align-items: end;
}

.manage-page .add-title-form .title-field {
  margin: 0;
}

.manage-page .account-main .button,
.manage-page .account-main .csv-upload {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
  line-height: 1;
}

.manage-page .add-title-form .button,
.manage-page .title-field input,
.manage-page .title-field select {
  min-height: 36px;
  box-sizing: border-box;
}

.manage-page .add-title-action-label {
  visibility: hidden;
  user-select: none;
}

.manage-table {
  min-width: 720px;
}

.job-table.complete-table {
  min-width: 1100px;
}

.manage-page #job-panel .table-wrap,
.manage-page .account-main #job-panel .table-wrap {
  overflow: auto;
  max-height: min(48vh, 28rem);
  max-width: 100%;
}

.manage-page .folio-table th,
.manage-page .folio-table td {
  vertical-align: middle;
}

.manage-page .status-pill,
.manage-page .button,
.manage-page .icon-button {
  vertical-align: middle;
}

.manage-page .order-error-row .status-pill {
  white-space: normal;
  max-width: 28rem;
  text-align: left;
}

.manage-page .complete-table .status-pill,
.manage-page .complete-table .order-error-row .status-pill {
  width: auto;
  min-width: 0;
  min-height: 18px;
  max-width: none;
  padding: 0 7px;
  font-size: 0.68rem;
  line-height: 18px;
  white-space: nowrap;
  text-align: center;
}

.manage-page .complete-table .set-alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.manage-page .complete-table .set-alert-icon svg {
  width: 12px;
  height: 12px;
}

.bulk-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 8px;
  overflow-x: auto;
}

.flow-line {
  width: 28px;
  height: 2px;
  background: var(--line);
  flex-shrink: 0;
}

.bulk-flow .status-pill {
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.status-neutral {
  background: #eef2f7;
  color: var(--navy);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.manage-page .icon-button {
  width: 32px;
  height: 32px;
}

.manage-page .icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.icon-button:hover {
  background: var(--navy-soft);
}

@media (max-width: 800px) {
  .flow-line {
    display: none;
  }
}

.client-company-heading {
  margin: 0 0 18px;
}

.client-company-heading .page-heading-row {
  align-items: center;
}

.client-company-heading h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.order-flow {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0 0 22px;
  padding: 10px 8px 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  box-shadow: var(--shadow);
}

.order-flow-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.order-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 3px;
  border-radius: 99px;
  background: var(--line);
}

.order-flow-step.is-complete:not(:last-child)::before {
  background: var(--navy);
}

.order-flow-step.is-current:not(:last-child)::before {
  background: linear-gradient(90deg, var(--green) 0%, var(--line) 100%);
}

.order-flow-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #c5d0db;
  background: var(--white);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 1;
}

.order-flow-step.is-complete .order-flow-mark {
  border-color: var(--navy);
  background: var(--navy);
}

.order-flow-step.is-current .order-flow-mark {
  width: 28px;
  height: 28px;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
}

.order-flow-step.is-complete,
.order-flow-step.is-current {
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 700px) {
  .order-flow {
    padding: 10px 4px 6px;
  }

  .order-flow-label {
    font-size: 0.75rem;
  }
}

.onboarding-fixture {
  margin: 0 0 28px;
  padding: 22px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  box-shadow: var(--shadow);
}

.onboarding-fixture[hidden] {
  display: none;
}

.onboarding-steps {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 8px 8px 4px;
}

.onboarding-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.onboarding-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 3px;
  border-radius: 99px;
  background: var(--line);
}

.onboarding-step.is-complete:not(:last-child)::before {
  background: var(--navy);
}

.onboarding-step.is-current:not(:last-child)::before {
  background: linear-gradient(90deg, var(--green) 0%, var(--line) 100%);
}

.onboarding-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #c5d0db;
  background: var(--white);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  z-index: 1;
}

.onboarding-step.is-complete .onboarding-mark {
  border-color: var(--navy);
  background: var(--navy);
}

.onboarding-step.is-current .onboarding-mark {
  width: 28px;
  height: 28px;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
}

.onboarding-step.is-complete,
.onboarding-step.is-current {
  color: var(--navy);
  font-weight: 800;
}

.onboarding-step.is-current .onboarding-label {
  color: var(--green);
}

.overview-stage {
  margin: 0 0 28px;
}

.overview-stage-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy);
}

.overview-stage-title[hidden] {
  display: none;
}

.overview-stage-copy {
  margin: 0;
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}

.onboarding-actions {
  margin-top: 16px;
}

.onboarding-actions:empty {
  display: none;
}

.onboarding-actions .row-actions {
  justify-content: center;
}

.tx-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 16px 0 12px;
}

.tx-log-toolbar .tx-filters {
  margin: 0;
  flex: 1 1 auto;
}

.tx-order-filter-pill {
  width: 11rem;
}

.tx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  margin: 16px 0 12px;
}

.tx-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
}

.tx-filters select {
  min-width: 180px;
}

.tx-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}

.tx-call-detail {
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-main .tx-log-table {
  min-width: 1280px;
}

.tx-log-table .tx-call-col {
  min-width: 22rem;
  width: 28%;
}

.tx-log-table .tx-when-col {
  white-space: nowrap;
}

.tx-log-table .tx-status-col {
  width: 6rem;
  max-width: 6.5rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.tx-log-table .tx-status-col .status-pill {
  width: 5.625rem;
  min-width: 5.625rem;
  padding: 0 6px;
  font-size: 0.78rem;
}

#account-transaction-logs .table-wrap {
  overflow: auto;
  max-height: min(70vh, 40rem);
}

.tx-details-icon {
  width: 28px;
  height: 28px;
}

.tx-pair {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 960px) {
  .tx-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.tx-pair h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.tx-kv thead th {
  font-size: 0.82rem;
  color: #111;
  font-weight: 800;
}

.tx-kv.tx-request thead th {
  background: #e7eef6;
}

.tx-kv.tx-response thead th {
  background: #fff4e5;
}

.tx-kv td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.tx-kv td:first-child {
  width: 38%;
  font-weight: 700;
  color: var(--navy);
}

.dashboard-table {
  min-width: 880px;
  table-layout: fixed;
}

.dashboard-table .folio-col {
  width: 16%;
}

.dashboard-table .address-col {
  width: auto;
}

.dashboard-table .status-col {
  width: 8.4rem;
}

.dashboard-table .data-col,
.dashboard-table .dashboard-data {
  width: 64px;
  overflow: visible;
}

.dashboard-table .actions-col,
.dashboard-table .dashboard-actions {
  width: 88px;
  overflow: visible;
}

.dashboard-table .tags-col,
.dashboard-table .tags-cell {
  width: 8.6rem;
}

.dashboard-table .tags-cell .tag-open {
  max-height: 40px;
  overflow: hidden;
}

.dashboard-table .comments-col,
.dashboard-table .comments-cell {
  width: 88px;
  text-align: center;
}

.dashboard-table th,
.dashboard-table td {
  vertical-align: middle;
  height: auto;
  padding: 8px 10px;
  overflow: visible;
}

.dashboard-table .folio-cell {
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.dashboard-table .address-cell {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.dashboard-table .status-findings {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 40px;
  overflow: hidden;
}

.dashboard-table .status-pill {
  width: auto;
  min-width: 0;
  min-height: 18px;
  padding: 0 7px;
  font-size: 0.68rem;
  line-height: 18px;
}

.dashboard-table .set-alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.dashboard-table .set-alert-icon svg {
  width: 12px;
  height: 12px;
}

.dashboard-table .action-menu-button {
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.action-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.set-alert-icon.is-inflight {
  color: #6a4b00;
  background: #fff4d6;
  border-color: #e3c56b;
}

.action-menu-wrap {
  position: relative;
}

.action-menu-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.action-menu {
  position: absolute;
  right: 0;
  top: 28px;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 5;
  padding: 6px;
  display: grid;
  gap: 2px;
}

.action-menu.hidden,
.action-menu[hidden] {
  display: none !important;
}

.action-menu a,
.action-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.action-menu a:hover,
.action-menu button:hover {
  background: #f7f9fc;
}

.tag-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
}

.tag-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.tag-chip,
.tag-overflow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-table .tag-chip,
.dashboard-table .tag-overflow {
  min-height: 18px;
  max-width: 100%;
  padding: 0 7px;
  font-size: 0.68rem;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-empty {
  color: #6b7280;
  font-size: 0.8rem;
}

.dashboard-table .tag-empty {
  font-size: 0.68rem;
  line-height: 18px;
}

.tag-popover {
  position: fixed;
  z-index: 40;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.tag-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--navy);
}

.tag-popover-head .button {
  min-height: 28px;
  padding: 0 8px;
}

.tag-popover-search {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
}

.tag-popover-options {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  max-height: 240px;
  overflow: auto;
}

.tag-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
}

.comment-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.comment-indicator svg {
  width: 20px;
  height: 20px;
}

.comment-count {
  font-size: 0.78rem;
}

.unread-dot {
  position: absolute;
  top: -2px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c2410c;
}

.title-comments-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.discussion-thread {
  margin: 16px 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.comment-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.comment-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.comment-card time,
.comment-audit {
  color: #6b7280;
  font-size: 0.8rem;
}

.comment-body {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.discussion-form {
  display: grid;
  gap: 8px;
}

.discussion-form textarea {
  width: 100%;
  resize: vertical;
}

.discussion-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.button-compact {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.job-meta strong {
  color: var(--navy);
}

.job-table .status-pill {
  width: auto;
  min-width: 6.5rem;
}

.job-table button.status-pill {
  min-width: 4.5rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.job-table .job-error-col {
  min-width: 28rem;
}

.job-table .title-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.job-table .title-time-clock {
  color: var(--muted);
}

.preview-phase-hint {
  margin: 0 0 12px;
}

.job-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  min-height: 40px;
  padding: 4px 8px 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.job-banner.is-flight {
  border-color: #f1d48a;
  background: #fff8e6;
}

.job-banner.is-added {
  border-color: #bbf7d0;
  background: var(--green-soft);
}

.job-banner p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-banner .button,
.job-banner .banner-dismiss {
  flex: 0 0 auto;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.banner-dismiss {
  border: 0;
  background: transparent;
  color: var(--navy);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.banner-dismiss:hover {
  background: rgb(11 31 58 / 0.08);
}

.dashboard-table tr.is-new td {
  background: #f0fdf4;
}

.manage-page .order-panel[hidden],
.manage-page [hidden] {
  display: none !important;
}

.find-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.find-mode button.is-current {
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy-soft);
}

.manage-page .title-field.is-wide {
  grid-column: 1 / -1;
}

.address-suggest {
  position: relative;
}

.suggest-list {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(11 31 58 / 0.12);
  max-height: 240px;
  overflow: auto;
}

.suggest-list button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 12px;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}

.suggest-list button:hover {
  background: var(--green-soft);
}

.suggest-list .suggest-meta {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.address-results {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.address-results h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
