.vf-check-main {
  display: grid;
  align-items: start;
  padding-top: 78px;
  padding-bottom: 96px;
}

.vf-check-screen {
  width: min(100%, 920px);
  max-width: none;
}

.vf-check-screen h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: 2.65rem;
}

.vf-check-form {
  display: grid;
  gap: 12px;
}

.vf-check-label {
  color: var(--vf-ink);
  font-size: 1.15rem;
  font-weight: 650;
}

.vf-check-input {
  min-height: 56px;
  border-radius: 0;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vf-check-help,
.vf-check-error,
.vf-check-message {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.vf-check-help {
  color: var(--vf-muted);
}

.vf-check-error {
  color: var(--vf-error);
  font-weight: 650;
}

.vf-check-submit {
  width: max-content;
  min-width: 108px;
  margin-top: 8px;
  border-radius: 0;
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.vf-check-submit:hover,
.vf-check-submit:focus-visible {
  border-color: #000;
  background: #000;
}

.vf-check-message {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  color: var(--vf-muted);
}

.vf-check-message > p {
  max-width: 720px;
  margin: 0;
}

.vf-report-flow {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.vf-report-flow h2,
.vf-notice-status h2 {
  margin: 0;
  color: var(--vf-ink);
  font-size: 1.4rem;
  line-height: 1.16;
}

.vf-report-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.vf-report-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 180px;
  padding: 22px;
}

.vf-report-card h3 {
  margin: 0;
  color: var(--vf-ink);
  font-size: 1.18rem;
  line-height: 1.22;
}

.vf-report-card p,
.vf-notice-status p,
.vf-help {
  margin: 0;
  color: var(--vf-muted);
  line-height: 1.45;
}

.vf-button-small {
  width: max-content;
  min-width: 0;
  margin-top: auto;
  padding: 11px 15px;
  font-size: 0.98rem;
}

.vf-button-plain {
  min-width: 0;
  border-color: transparent;
  background: transparent;
  color: var(--vf-ink);
  padding-inline: 10px;
}

.vf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(13 20 18 / 0.52);
}

.vf-packet-modal {
  width: min(100%, 1180px);
  max-height: min(92vh, 980px);
  overflow: auto;
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  background: var(--vf-bg);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.24);
  padding: 24px;
}

.vf-modal-backdrop-fullscreen {
  place-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--vf-bg);
}

.vf-packet-modal-fullscreen {
  width: 100vw;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  border-width: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.vf-packet-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.vf-packet-modal-head h2 {
  max-width: 760px;
  margin: 0;
  color: var(--vf-ink);
  font-size: 1.55rem;
  line-height: 1.16;
}

.vf-packet-modal-head-fullscreen {
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 0;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--vf-border);
  background: var(--vf-bg);
}

.vf-packet-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100dvh;
  background: var(--vf-bg);
}

.vf-packet-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 12px;
  width: min(100%, 960px);
  margin: 0 auto;
  border-bottom: 1px solid var(--vf-border);
  background: var(--vf-bg);
}

.vf-packet-screen-head h1 {
  margin: 0;
  color: var(--vf-ink);
  font-size: 1.8rem;
  line-height: 1.1;
}

.vf-packet-screen-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  min-height: 0;
  width: min(100%, 960px);
  height: 100%;
  margin: 0 auto;
}

.vf-packet-screen-scroll {
  min-height: 0;
  height: 100%;
  padding: 18px 20px 28px;
  overflow: auto;
}

.vf-packet-status {
  margin: 10px 0 16px;
  color: var(--vf-accent);
  font-weight: 700;
}

.vf-packet-error {
  color: var(--vf-error);
}

.vf-packet-document-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.vf-packet-pdf-panel,
.vf-packet-edit-panel {
  min-width: 0;
  border: 1px solid var(--vf-border);
  border-radius: 6px;
  background: var(--vf-card-bg, #fff);
}

.vf-packet-pdf-panel {
  min-height: 560px;
  overflow: hidden;
}

.vf-packet-pdf-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--vf-border);
  background: var(--vf-bg);
}

.vf-packet-pdf-frame {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 560px;
  border: 0;
  background: #fff;
}

.vf-packet-pdf-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px;
  color: var(--vf-muted);
}

.vf-packet-edit-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
}

.vf-packet-edit-panel-fullscreen {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.vf-packet-review-stack {
  margin-top: 18px;
}

.vf-packet-modal-scroll,
.vf-packet-fullscreen-scroll {
  min-width: 0;
}

.vf-packet-fullscreen-scroll {
  overflow: auto;
  padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.vf-packet-shell-lede {
  margin: 0;
}

.vf-packet-edit-fields {
  display: grid;
  gap: 13px;
}

.vf-packet-sections {
  display: grid;
  gap: 14px;
}

.vf-packet-section {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgb(30 41 38 / 0.1);
}

.vf-packet-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.vf-packet-section h3 {
  margin: 0;
  color: var(--vf-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.vf-packet-section-bullets {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--vf-muted);
}

.vf-packet-section-fields {
  display: grid;
  gap: 13px;
}

.vf-field {
  display: grid;
  gap: 7px;
}

.vf-label {
  color: var(--vf-ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.vf-packet-field,
.vf-textarea {
  min-height: 86px;
  resize: vertical;
}

.vf-packet-inline-input {
  min-height: auto;
}

.vf-packet-signature {
  display: grid;
  gap: 13px;
}

.vf-packet-signature-hint {
  margin: 0;
}

.vf-signature-pad {
  display: block;
  width: 100%;
  height: 150px;
  touch-action: none;
  border: 1px solid var(--vf-border);
  border-radius: 6px;
  background: #fff;
  color-scheme: light;
  forced-color-adjust: none;
}

.vf-digital-signature-mock {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.78);
}

.vf-digital-signature-mock h4 {
  margin: 0;
  color: var(--vf-ink);
  font-size: 1.02rem;
  line-height: 1.22;
}

.vf-digital-signature-methods {
  border: 0;
  margin: 0;
  padding: 0;
}

.vf-digital-signature-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vf-digital-signature-tab {
  display: grid;
  min-height: 46px;
  cursor: pointer;
}

.vf-digital-signature-tab input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.vf-digital-signature-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  background: var(--vf-bg);
  color: var(--vf-ink);
  font-weight: 780;
  text-align: center;
  padding: 0 12px;
}

.vf-digital-signature-tab input:checked + span {
  border-color: var(--vf-accent);
  background: var(--vf-accent);
  color: #fff;
}

.vf-digital-signature-tab input:focus-visible + span {
  outline: 3px solid var(--vf-focus);
  outline-offset: 3px;
}

.vf-digital-signature-mock .vf-action-row {
  margin-top: 2px;
}

.vf-packet-send-note {
  margin-top: 16px;
}

.vf-packet-actions {
  margin-top: 18px;
}

.vf-packet-actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--vf-border);
  background: var(--vf-bg);
}

.vf-packet-screen .vf-packet-actions {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
}

.vf-packet-screen .vf-packet-actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--vf-border);
  background: var(--vf-bg);
}

body.vf-packet-review-open {
  grid-template-rows: 1fr;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.vf-packet-review-open .vf-header,
body.vf-packet-review-open .vf-footer {
  display: none;
}

.vf-main.vf-main-packet-review {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  padding: 0;
}

.vf-screen.vf-screen-packet-review {
  display: grid;
  max-width: none;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.vf-screen.vf-screen-packet-review > .vf-packet-screen {
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.vf-packet-preview {
  margin-top: 18px;
}

.vf-packet-preview pre {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--vf-border);
  border-radius: 6px;
  padding: 14px;
  background: rgb(255 255 255 / 0.65);
  color: var(--vf-ink);
  font-size: 0.9rem;
}

.vf-notice-status {
  max-width: 720px;
  padding: 22px;
}

@media (min-width: 720px) {
  .vf-check-main {
    padding-top: 108px;
  }

  .vf-check-screen h1 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .vf-check-screen h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 860px) {
  .vf-packet-document-grid {
    grid-template-columns: 1fr;
  }

  .vf-packet-pdf-panel,
  .vf-packet-pdf-frame {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .vf-check-main {
    padding-top: 44px;
  }

  .vf-check-screen {
    width: 100%;
  }

  .vf-check-message {
    gap: 15px;
  }

  .vf-report-card-list {
    grid-template-columns: 1fr;
  }

  .vf-digital-signature-tabs {
    grid-template-columns: 1fr;
  }

  .vf-modal-backdrop {
    display: grid;
    place-items: stretch;
    padding: 0;
    overflow: hidden;
  }

  .vf-packet-modal {
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    border-width: 0;
    border-radius: 0;
    padding: 18px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .vf-packet-modal-head {
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 12px;
    background: var(--vf-bg);
  }

  .vf-packet-pdf-panel,
  .vf-packet-pdf-frame {
    min-height: 360px;
  }

  .vf-packet-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--vf-border);
    background: var(--vf-bg);
  }

  .vf-packet-modal-head-fullscreen {
    padding: 16px 18px 12px;
  }

  .vf-packet-fullscreen-scroll {
    padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .vf-packet-actions-sticky {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }
}
