.landing {
  --t1-light: #078263;
  --t2-light: #7936b2;
  --t1-dark: #59dfb2;
  --t2-dark: #b79af7;
}
.hand-track {
  --track-light: #087e60;
  --track-dark: #59dfb2;
}
.landing-stage {
  touch-action: pan-y;
}
.landing .landing-real {
  margin-top: clamp(36px, 6vw, 84px);
}
.stage-canvas {
  touch-action: pan-y;
}
.hand-auth-form,
.hand-file > div,
.hand-detail,
.hand-account,
.hand-policy,
.new-panel {
  display: grid;
  gap: 16px;
}
.hand-auth-form .seg {
  justify-self: start;
}
.hand-auth-form > .btn {
  margin-top: 4px;
}
.hand-auth-form .field {
  display: grid;
  gap: 6px;
}
.hand-auth-form .field > span {
  font-weight: 600;
}
.hand-auth-form p:empty,
.hand-detail-progress:empty,
.field-error:empty,
.viewer-message:empty {
  display: none;
}
.hand-account,
.hand-policy {
  max-width: 58rem;
  margin: 0 auto;
}
.hand-account .stats {
  margin-top: 18px;
}
.hand-account-actions {
  margin-top: 16px;
}
.hand-gate {
  max-width: 28rem;
  margin: clamp(30px, 9vh, 100px) auto;
}
.hand-gate .btn-group {
  margin-top: 18px;
}
.hand-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.hand-file > div {
  flex: 1;
  min-width: 0;
  gap: 2px;
  overflow-wrap: anywhere;
}
.hand-file small,
.hand-detail-meta,
.hand-format p,
.hand-check,
.stage-tools {
  color: var(--text-2);
}
.hand-file[hidden],
.dropzone[hidden] {
  display: none;
}
.hand-format summary {
  cursor: pointer;
  color: var(--text-2);
  width: fit-content;
  font-weight: 550;
}
.hand-format p {
  margin-top: 8px;
  max-width: 68ch;
}
.new-panel .pane-intro {
  margin: 0;
}
.new-panel > progress,
.hand-detail-progress progress {
  width: 100%;
  accent-color: var(--accent);
}
.hand-detail-meta,
.hand-detail-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
}
.hand-detail-progress:not(:empty) {
  margin: 16px 0;
}
.hand-detail-progress > progress {
  flex-basis: 100%;
}
.badge-success {
  background: var(--success-soft);
  color: var(--success-text);
}
.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}
.badge-neutral {
  background: var(--surface-2);
  color: var(--text-2);
}
.hand-viewer {
  container-type: inline-size;
  container-name: viewer;
  display: grid;
  gap: 12px;
}
.hand-scene {
  background: radial-gradient(
    ellipse at 50% 42%,
    var(--surface) 10%,
    var(--scene-bg) 78%
  );
}
.hand-transport {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.hand-transport .range {
  min-width: 4rem;
  flex: 1;
  accent-color: var(--accent);
}
.hand-transport output {
  font: 0.78rem var(--mono);
  color: var(--text-2);
  white-space: nowrap;
}
.hand-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
}
.hand-check input {
  accent-color: var(--accent);
}
.hand-no-detection {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  pointer-events: none;
  font-size: 0.9rem;
  color: var(--text-3);
}
.hand-no-detection[hidden] {
  display: none;
}
.hand-viewer .stage-head {
  flex-wrap: wrap;
}
.hand-viewer .stage-head .seg {
  max-width: 100%;
}
.hand-viewer .seg button {
  padding-inline: 8px;
}
.hand-viewer .stage-tools .stage-status {
  text-align: right;
}
.hand-docs-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 18px 0;
  border-block: 1px solid var(--border);
}
.hand-doc-section {
  padding-top: 32px;
  scroll-margin-top: 85px;
  max-width: 58rem;
}
.hand-doc-section h2,
.hand-policy h2 {
  font-size: 1.5rem;
}
.hand-doc-section p {
  margin: 10px 0;
  color: var(--text-2);
  max-width: 75ch;
}
.hand-code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.hand-code > button {
  display: block;
  margin: 4px 4px 0 auto;
}
.hand-code pre {
  background: transparent;
  border: 0;
  overflow: auto;
  padding: 8px 16px 16px;
  margin: 0;
  max-width: 100%;
  font: 0.83rem/1.6 var(--mono);
}
.hand-policy p {
  max-width: 73ch;
  color: var(--text-2);
}
.hand-policy h2 {
  margin-top: 16px;
}
.hand-policy h1,
.hand-account h1,
.docs .page-head h1 {
  font: 740 clamp(2rem, 4vw, 3.5rem) / 1.03 var(--font-display);
  letter-spacing: -0.04em;
}
/* The reference uses a compact corner panel on desktop and a bottom sheet on phones. */
.cookie-banner {
  width: min(440px, calc(100% - 32px));
  right: auto;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 12px;
}
.cookie-banner-copy {
  flex: auto;
}
.cookie-banner-actions .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}
@media (max-width: 640px) {
  .cookie-banner {
    width: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .hand-transport {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hand-transport .range {
    order: 3;
    flex-basis: 100%;
  }
  .hand-transport output {
    margin-left: auto;
  }
  .hand-viewer .seg button {
    font-size: 0.78rem;
  }
  .stage-tools {
    flex-wrap: wrap;
  }
}
.acct-card .acct-packages,
.acct-card .acct-methods,
.hand-custom-amount,
.hand-price,
.hand-order {
  margin-block: 12px;
}
.acct-card .acct-packages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hand-qr {
  display: block;
  width: min(240px, 90%);
  margin: 12px auto;
}
.hand-custom-amount {
  display: grid;
  gap: 6px;
}
.hand-order {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.acct-checkin-body .card-text {
  margin-bottom: 12px;
}
[hidden] {
  display: none !important;
}
.landing-rate {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 0.83rem;
}
.account-button {
  text-decoration: none;
}
@container viewer (min-width:700px) {
  .hand-viewer .viewer-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hand-contact-info {
  display: grid;
  gap: 7px;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}
.hand-contact-line,
.hand-contact-legend,
.hand-contact-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.hand-contact-line {
  justify-content: space-between;
}
.hand-contact-legend,
.hand-contact-peak {
  color: var(--text-2);
}
.hand-contact-legend {
  font: 0.74rem var(--mono);
  gap: 5px;
}
.hand-contact-neutral {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #757c87;
}
.hand-contact-range {
  margin-inline-start: 7px;
  gap: 4px;
}
.hand-contact-range i {
  width: clamp(36px, 6vw, 68px);
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1451e0, #ffc614 50%, #db141e);
}
.hand-contact-info .hand-check {
  font-size: 0.83rem;
}
.hand-contact-jump {
  padding: 1px 0;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
}
#sample-title {
  scroll-margin-top: 80px;
}
.hand-sample-picker {
  justify-self: start;
  flex-wrap: wrap;
}
