:root {
  --color-ink: #222222;
  --color-ink-soft: #555555;
  --color-muted: #888888;
  --color-surface: #ffffff;
  --color-surface-solid: #ffffff;
  --color-border: #d7d7d7;
  --color-border-strong: #bcbcbc;
  --color-accent: #f5cb2c;
  --color-accent-deep: #2b2b2b;
  --color-accent-soft: #fff6d6;
  --color-header: #ececec;
  --color-required-bg: #fdecec;
  --color-required-border: #e0a0a0;
  --color-danger: #c22626;
  --color-success-bg: #e9f7ee;
  --color-success-border: #a8d8b8;
  --color-success-text: #1a7f37;
  --color-warn: #9a6b1f;
  --color-warn-soft: #f5e8cc;
  --color-glow-a: #ececec;
  --color-glow-b: #f5cb2c;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 8px;
  --radius-md: 6px;
  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.06);
  --max-width: 1080px;
  --header-height: 4.5rem;
  --wizard-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: #f4f5f4;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 203, 44, 0.18), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(26, 127, 55, 0.06), transparent 36%),
    linear-gradient(180deg, #f7f7f5 0%, #f4f5f4 48%, #efefed 100%);
}

.atmosphere__glow {
  display: none;
}

.atmosphere__glow--one,
.atmosphere__glow--two {
  display: none;
}

.atmosphere__grid {
  display: none;
}

.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  padding: 0.4rem 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__logo {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  object-fit: cover;
  background: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

.site-main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 0.5rem 0 3.5rem;
}

.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: right;
}

.hero {
  padding: 1.5rem 0 2rem;
  animation: rise-in 0.7s ease both;
}

.hero--home {
  padding: 2rem 0 1.75rem;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-ink-soft);
}

.hero__title {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--color-ink);
}

.hero__brand-accent {
  color: var(--color-ink-soft);
  font-weight: 600;
}

.hero__question {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  position: relative;
  padding-bottom: 0.55rem;
}

.hero__question::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: var(--color-accent);
}

.hero__lede,
.panel__lede {
  margin: 0 0 1rem;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.6;
}

.hero__faq-link {
  display: inline;
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.hero__faq-link:hover,
.hero__faq-link:focus-visible {
  color: var(--color-accent-deep);
  outline: none;
}

.ehr-picker {
  animation: rise-in 0.8s ease 0.08s both;
}

.ehr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.ehr-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  align-items: center;
  padding: 1.25rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  overflow: hidden;
  animation: rise-in 0.55s ease both;
}

.ehr-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.22s ease;
}

.ehr-option:hover,
.ehr-option:focus-visible {
  transform: translateY(-3px);
  border-color: #e4c44a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  outline: none;
}

.ehr-option--available:hover::before,
.ehr-option--available:focus-visible::before,
.ehr-option--coming-soon:hover::before,
.ehr-option--coming-soon:focus-visible::before {
  background: var(--color-accent);
}

.ehr-option__icon {
  grid-row: 1 / span 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.ehr-option--available .ehr-option__icon {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.ehr-option--coming-soon .ehr-option__icon {
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
}

.ehr-option__body {
  display: grid;
  gap: 0.15rem;
}

.ehr-option__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ehr-option__desc {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.ehr-option__status {
  grid-column: 2;
  justify-self: start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.ehr-option--available .ehr-option__status {
  color: var(--color-success-text);
  background: var(--color-success-bg);
}

.ehr-option--coming-soon .ehr-option__status {
  color: var(--color-ink-soft);
  background: #f0f0f0;
}

.ehr-option__chevron {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--color-muted);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.ehr-option:hover .ehr-option__chevron,
.ehr-option:focus-visible .ehr-option__chevron {
  transform: translateX(3px);
  color: var(--color-accent-deep);
}

.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;
}

.panel {
  margin-top: 1rem;
  padding: var(--panel-pad);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.65s ease both;
  --panel-pad: 1.6rem;
}

.panel--wide {
  max-width: 56rem;
  margin-inline: auto;
}

.panel--narrow {
  max-width: 34rem;
  margin-inline: auto;
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.faq-item.is-expanded {
  border-color: #e4c44a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.faq-item__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary:hover {
  background: #fafafa;
}

.faq-item__summary:focus-visible {
  outline: 2px solid rgba(245, 203, 44, 0.55);
  outline-offset: -2px;
}

.faq-item__num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.32s ease;
}

.faq-item.is-expanded .faq-item__num {
  background: var(--color-accent);
}

.faq-item__question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.faq-item__chevron {
  color: var(--color-muted);
  transition:
    transform 0.32s ease,
    color 0.32s ease;
}

.faq-item.is-expanded .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--color-ink);
}

.faq-item__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.32s ease;
}

.faq-item__answer {
  padding: 0 1rem 1.15rem 3.7rem;
}

.faq-item__answer p {
  margin: 0 0 0.85rem;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-accent-deep);
  outline: none;
}

.back-link .material-icons-round {
  font-size: 1.15rem;
}

.agreement-mock {
  margin-top: 1.4rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(16, 35, 58, 0.22);
  background: var(--color-surface-solid);
}

.agreement-mock__badge {
  margin: 0 0 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-warn-soft);
  color: var(--color-warn);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agreement-mock__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.agreement-mock__copy {
  margin: 0;
  color: var(--color-ink-soft);
}

.choice-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.choice-option {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.85rem;
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-solid);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.choice-option:hover,
.choice-option:focus-visible,
.choice-option.is-selected {
  transform: translateY(-1px);
  border-color: var(--color-border-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: none;
}

.choice-option.is-selected {
  background: var(--color-accent-soft);
}

.choice-option__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
}

.choice-option__body {
  display: grid;
  gap: 0.15rem;
}

.choice-option__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.choice-option__desc {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.choice-option__chevron {
  color: var(--color-muted);
}

.choice-option:hover .choice-option__chevron,
.choice-option:focus-visible .choice-option__chevron {
  color: var(--color-accent-deep);
}

.schedule-panel {
  margin-top: 1.4rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-solid);
}

.schedule-panel__copy {
  margin: 0 0 1.1rem;
  color: var(--color-ink-soft);
}

.schedule-panel .actions {
  margin-top: 0;
}

.instruction-step__bullets {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: var(--color-ink-soft);
}

.instruction-step__bullets li {
  margin: 0 0 0.35rem;
}

.instruction-step__bullets li:last-child {
  margin-bottom: 0;
}

.agreement-embed {
  margin-top: 1.4rem;
}

.agreement-embed__frame {
  width: 100%;
  min-height: 768px;
  overflow: hidden;
  background: var(--color-surface-solid);
}

.agreement-embed__frame iframe {
  display: block;
  border: 0;
}

.agreement-embed__status {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  animation: rise-in 0.45s ease both;
}

.agreement-embed__status p {
  margin: 0;
  font-weight: 600;
}

.agreement-embed__error {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: #fde8e8;
  color: #8a1f1f;
  font-weight: 600;
}

.agreement-embed__spinner {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  animation: spin 1.1s linear infinite;
}

.coming-soon {
  text-align: center;
}

.coming-soon .panel__title {
  margin: 0 0 1rem;
}

.coming-soon .panel__lede {
  margin: 0 auto 2rem;
}

.coming-soon__icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1rem;
  border-radius: 1.2rem;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

.coming-soon__icon .material-icons-round {
  font-size: 2.1rem;
}

.ready-check__icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1rem;
  border-radius: 1.2rem;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
}

.ready-check__icon .material-icons-round {
  font-size: 2.1rem;
}

.ready-check .panel__title,
.ready-check .panel__lede,
.ready-check .eyebrow {
  text-align: center;
}

.ready-check__list {
  margin: 1.25rem 0 0;
  padding: 0 0.25rem 0 1.25rem;
  text-align: left;
  color: var(--color-ink-soft);
}

.ready-check__list li {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.ready-check__list li:last-child {
  margin-bottom: 0;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.actions--start {
  justify-content: flex-start;
}

.actions--split {
  justify-content: space-between;
  align-items: center;
}

.instruction-mode {
  margin-top: 1.25rem;
  display: inline-flex;
  padding: 0.25rem;
  gap: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.55);
}

.instruction-mode__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.instruction-mode__btn .material-icons-round {
  font-size: 1.2rem;
}

.instruction-mode__btn.is-active {
  background: var(--color-accent);
  color: var(--color-accent-deep);
}

.instruction-mode__btn:not(.is-active):hover,
.instruction-mode__btn:not(.is-active):focus-visible {
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  outline: none;
}

.instruction-pane[hidden] {
  display: none;
}

.instruction-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: instruction;
  display: grid;
  gap: 1.75rem;
}

.instruction-step {
  counter-increment: instruction;
  display: grid;
  gap: 0.9rem;
}

.instruction-step__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.instruction-step__title::before {
  content: counter(instruction);
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.instruction-step__copy p {
  margin: 0 0 0.75rem;
  color: var(--color-ink-soft);
}

.instruction-step__copy p:last-child {
  margin-bottom: 0;
}

.instruction-step__copy a {
  color: var(--color-accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.instruction-figure {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
}

.instruction-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.instruction-figure figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.instruction-confirm {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.instruction-confirm__note {
  margin: 0 0 0.25rem;
  color: var(--color-ink-soft);
  text-align: center;
}

.instruction-confirm__button {
  height: 3.5rem !important;
  padding-inline: 2.4rem !important;
  font-size: 1.05rem;
}

.instruction-confirm__button .material-icons-round {
  margin-right: 0.35rem;
  font-size: 1.25rem;
}

.instruction-confirm__button .mdc-button__label {
  font-size: 1.05rem;
  font-weight: 700;
}

.response-log {
  margin: 0.85rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #122033;
  color: #e8f3ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow: auto;
  max-height: 32rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.mdc-button--unelevated {
  --mdc-theme-primary: var(--color-accent);
  background-color: var(--color-accent) !important;
  color: var(--color-accent-deep) !important;
  border-radius: 5px !important;
  height: 2.75rem;
  padding-inline: 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.mdc-button--unelevated:hover {
  background-color: #e0b800 !important;
}

.mdc-button--outlined {
  --mdc-theme-primary: var(--color-ink);
  border-radius: 5px !important;
  height: 2.75rem;
  padding-inline: 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 1px solid var(--color-border-strong) !important;
  color: var(--color-ink) !important;
  background-color: #fff;
}

.mdc-button--outlined:hover {
  background-color: #f2f2f2;
}

.mdc-button:disabled {
  opacity: 0.6;
  pointer-events: none;
}

body.has-modal {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.is-open {
  display: flex !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(16, 35, 58, 0.45);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.3s ease both;
}

.modal__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.modal__message {
  margin: 0;
  color: var(--color-ink-soft);
}

.modal__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.video-embed {
  margin-top: 1.5rem;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #0d1b2a;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed--native {
  aspect-ratio: auto;
}

.video-embed--native video {
  position: static;
  display: block;
  height: auto;
  background: #0d1b2a;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(24px, 18px, 0) scale(1.08);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 640px) {
  .site-main {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .panel {
    --panel-pad: 1.2rem;
  }

  .ehr-option {
    grid-template-columns: auto 1fr;
  }

  .ehr-option__chevron {
    display: none;
  }

  .instruction-mode {
    display: flex;
    width: 100%;
  }

  .instruction-mode__btn {
    flex: 1;
    justify-content: center;
    padding: 0 0.6rem;
    font-size: 0.88rem;
  }

  .choice-option {
    grid-template-columns: auto 1fr;
  }

  .choice-option__chevron {
    display: none;
  }

  .agreement-embed__frame {
    min-height: 560px;
  }

  .faq-item__summary {
    gap: 0.7rem;
    padding: 0.85rem 0.85rem;
  }

  .faq-item__answer {
    padding: 0 0.85rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.wizard {
  max-width: var(--wizard-width);
  margin: 0 auto;
  animation: rise-in 0.65s ease both;
}

.wizard-card .agreement-embed {
  margin-top: 0;
}

.page-agreement .wizard-card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.page-agreement .wizard-card__body {
  padding: 0;
}

.page-agreement .wizard-card__footer {
  padding-left: 0;
  padding-right: 0;
  border-top: none;
}

.wizard--wide {
  max-width: 960px;
}

.wizard__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.wizard__dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}

.wizard__dot.is-active {
  background: var(--color-accent);
}

.wizard__label {
  font-size: 12px;
  color: var(--color-ink-soft);
  margin: 0 0 14px;
}

.wizard-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.wizard-card__header {
  background: var(--color-header);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wizard-card__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wizard-card__body {
  padding: 18px;
}

.wizard-card__body p.hint {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin: 0 0 14px;
}

.wizard-card__footer {
  padding: 14px 18px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wizard-card__footer--end {
  justify-content: flex-end;
}

.wizard-card__footer--stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.wizard-card__footer--stack .btn {
  align-self: flex-end;
}

.wizard-card__alert:empty {
  display: none;
}

.wizard-card__alert .form-error,
.wizard-card__alert .form-success {
  margin-bottom: 0;
  width: 100%;
}

.wizard-card.is-submitting input,
.wizard-card.is-submitting textarea,
.wizard-card.is-submitting select {
  opacity: 0.7;
  background: #f5f5f5;
  pointer-events: none;
}

.wizard-card.is-submitting button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.connect-rev__tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.frow {
  margin-bottom: 14px;
}

.frow:last-child {
  margin-bottom: 0;
}

.frow label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.frow .req {
  color: var(--color-danger);
}

.frow input,
.frow textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: inherit;
}

.frow input:focus,
.frow textarea:focus,
.cell-input:focus {
  outline: 2px solid rgba(245, 203, 44, 0.55);
  outline-offset: 1px;
}

.frow input.is-required,
.frow textarea.is-required,
.cell-input.is-required {
  border-color: var(--color-required-border);
  background: var(--color-required-bg);
}

.frow-pair {
  display: flex;
  gap: 10px;
}

.frow-pair .frow {
  flex: 1;
}

.form-error {
  background: var(--color-required-bg);
  border: 1px solid var(--color-required-border);
  color: #922;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.form-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 5px;
}

.status-box {
  display: none;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 5px;
  margin-top: 10px;
}

.status-box.is-visible {
  display: block;
}

.status-box.is-pending {
  background: #fafafa;
  border: 1px solid var(--color-border);
  color: var(--color-ink-soft);
}

.status-box.is-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
}

.status-box.is-error {
  background: var(--color-required-bg);
  border: 1px solid var(--color-required-border);
  color: #922;
}

.btn {
  border: none;
  border-radius: 5px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-deep);
}

.btn-accent:hover {
  background: #e0b800;
}

.btn-accent:disabled {
  background: #eee;
  color: #999;
  cursor: default;
}

.btn-ghost {
  background: none;
  border: 1px solid var(--color-border-strong);
  color: var(--color-ink);
}

.btn-ghost:hover {
  background: #f2f2f2;
}

.btn-ghost-small {
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-ghost-small:hover {
  background: #f2f2f2;
}

.tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  color: var(--color-ink-soft);
}

.tip-btn:hover,
.tip-btn:focus-visible {
  background: var(--color-accent-soft);
  color: var(--color-ink);
  outline: none;
}

.tip-btn .material-icons-round {
  font-size: 18px;
}

.tip-btn--inline {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.frow__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.frow__label label {
  margin-bottom: 0;
}

.locations-table__heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.locations-table-wrap {
  overflow-x: auto;
}

.locations-toolbar {
  display: flex;
  justify-content: flex-start;
  padding: 12px 18px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.locations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.locations-table th,
.locations-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.locations-table th {
  background: #fafafa;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.locations-table td.muted {
  color: var(--color-ink-soft);
}

.badge-rev {
  font-size: 10px;
  color: var(--color-success-text);
  background: var(--color-success-bg);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cell-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: inherit;
}

.empty-row {
  text-align: center;
  padding: 26px;
  color: var(--color-muted);
  font-size: 13px;
}

.summary-box {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}

.del-row {
  color: var(--color-danger);
}

.modal--help {
  z-index: 1100;
}

.modal__dialog--help {
  width: min(52rem, 100%);
  max-height: min(90vh, 56rem);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal__dialog--help .wizard-card__header {
  flex-shrink: 0;
  border-radius: 0;
}

.help-modal__body {
  overflow: auto;
  padding: 0 1.25rem 1.5rem;
}

.help-modal__body .panel__lede {
  margin: 0.85rem 0 0;
}

.help-modal__body .instruction-mode {
  margin-top: 1rem;
}

.help-modal__body .instruction-list {
  margin-top: 1.25rem;
}

.modal__dialog--location {
  width: min(28rem, 100%);
  padding: 0;
  overflow: hidden;
}

.modal__dialog--location .wizard-card__header {
  border-radius: 0;
}

@media (max-width: 640px) {
  .frow-pair {
    flex-direction: column;
    gap: 0;
  }

  .wizard-card__footer {
    flex-wrap: wrap;
  }

  .locations-table th,
  .locations-table td {
    padding: 8px 10px;
  }
}
