﻿:root {
  --ink: #29172e;
  --ink-soft: #65566a;
  --paper: #fffaf4;
  --paper-strong: #ffffff;
  --plum: #5c2f62;
  --plum-dark: #3d1f46;
  --rose: #d99b9f;
  --blush: #f3d9d4;
  --sage: #a7bba4;
  --gold: #d6aa5f;
  --line: rgba(66, 38, 71, .14);
  --shadow: 0 26px 70px rgba(52, 28, 57, .15);
  /* One shared readable scale prevents page-specific fixes from shrinking
     equivalent captions, supporting copy, labels and body text over time. */
  --text-caption: 12.65px;
  --text-support: 13.8px;
  --text-label: 14.95px;
  --text-body: 16.1px;
  font-family: Inter, "Noto Sans JP", "Noto Naskh Arabic", "Segoe UI", -apple-system, BlinkMacSystemFont, Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}
[dir='rtl'] body {
  direction: rtl;
  text-align: right;
}

[dir='rtl'] .skip-link {
  left: auto;
  right: 8px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(92, 47, 98, .38);
  outline-offset: 3px;
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(430px, .84fr);
  min-height: 100vh;
}

.story-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px);
  color: var(--paper);
  background:
    radial-gradient(circle at 84% 18%, rgba(225, 175, 163, .45) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 66%, rgba(255, 255, 255, .13), transparent 29%),
    linear-gradient(142deg, #29172e 0%, #4b2854 56%, #6f3b65 100%);
}

.story-floral-frame {
  position: absolute;
  z-index: -1;
  inset: clamp(18px, 2.4vw, 36px);
  pointer-events: none;
  border: 1px solid rgba(255, 246, 225, .22);
  border-radius: 18px;
  background: url("real-flowers.png?v=1") center/cover no-repeat;
  box-shadow: inset 0 0 32px rgba(255, 231, 195, .1), 0 0 18px rgba(255, 226, 192, .08);
  opacity: .42;
}

.story-panel::before,
.story-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.story-panel::before {
  width: 470px;
  height: 470px;
  top: -210px;
  right: -145px;
  box-shadow: 0 0 0 56px rgba(255, 255, 255, .025), 0 0 0 112px rgba(255, 255, 255, .025);
}

.story-panel::after {
  width: 280px;
  height: 280px;
  right: 10%;
  bottom: -170px;
  box-shadow: 0 0 0 52px rgba(225, 175, 163, .04);
}

.brand-mark {
  position: absolute;
  top: clamp(38px, 5vw, 70px);
  left: clamp(48px, 8vw, 112px);
  width: 42px;
  height: 38px;
}

.brand-mark span {
  position: absolute;
  width: 18px;
  height: 28px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #f7d9bd, #d59d7c);
  transform-origin: 100% 100%;
}

.brand-mark span:nth-child(1) {
  left: 3px;
  transform: rotate(-27deg);
}

.brand-mark span:nth-child(2) {
  left: 13px;
  top: -4px;
  transform: rotate(5deg);
}

.brand-mark span:nth-child(3) {
  left: 23px;
  top: 5px;
  transform: rotate(42deg);
}

.brand {
  margin: 0 0 clamp(52px, 10vh, 108px);
  padding-left: 55px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  letter-spacing: .02em;
}

.brand.compact {
  margin: 0 0 54px;
  padding: 0;
  color: var(--plum);
  font-size: 22px;
}

.eyebrow,
.entry-kicker,
.quiet-footer {
  margin: 0 0 15px;
  color: #e5b897;
  font-size: var(--text-support);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.story-panel h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.6vw, 50px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.045em;
}

.lead {
  max-width: 650px;
  margin: 25px 0 0;
  color: inherit;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.62;
  opacity: .78;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  max-width: 850px;
  margin-top: clamp(52px, 9vh, 96px);
}

.feature-list article {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

/* Approved access feature scale: responsive rules may rearrange the three
   items, but must not resize their numbers, headings or supporting copy. */
.feature-list article > span {
  color: #d9a07e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--text-label);
  line-height: 1.55;
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-body);
}

.feature-list p {
  margin: 0;
  color: rgba(255, 250, 244, .58);
  font-size: var(--text-support);
  line-height: 1.55;
}

.entry-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 84px);
  background:
    radial-gradient(circle at 93% 8%, rgba(217, 155, 159, .25), transparent 25%),
    linear-gradient(160deg, #fffdfa, #f8eee8);
}

.language-nav {
  position: absolute;
  top: 28px;
  right: 32px;
  display: flex;
  gap: 6px;
}

.language-nav a {
  padding: 5px 6px;
  border-radius: 5px;
  color: var(--ink-soft);
  font-size: var(--text-support);
  font-weight: 800;
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  background: var(--ink);
  color: white;
}

.entry-card {
  width: min(100%, 470px);
  margin: auto;
}

.entry-kicker {
  color: var(--plum);
}

.entry-card h2 {
  margin: 0 0 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 31px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
}

form label {
  display: block;
  margin: 21px 0 8px;
  color: var(--ink);
  font-size: var(--text-label);
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(66, 38, 71, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder {
  color: #9b8e9e;
}

input:hover {
  border-color: rgba(92, 47, 98, .36);
}

input:focus {
  outline: none;
  border-color: var(--plum);
  background: white;
  box-shadow: 0 0 0 4px rgba(92, 47, 98, .1);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 58px;
}

.reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.reveal span {
  position: relative;
  width: 20px;
  height: 13px;
  border: 1.7px solid var(--ink-soft);
  border-radius: 50% / 60%;
}

.reveal span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6.2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.reveal.is-visible span::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 5px;
  left: -3px;
  width: 25px;
  height: 1.5px;
  background: var(--ink-soft);
  transform: rotate(-35deg);
}

.field-hint,
.privacy-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-support);
  line-height: 1.5;
}

.registration-password-tools {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 12px;
}

.registration-password-generator {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--plum-dark);
  font-size: var(--text-support);
  font-weight: 800;
}

.registration-password-generator:hover {
  border-color: rgba(92, 47, 98, .34);
  background: white;
}

.registration-password-status {
  margin: 0;
  color: #356044;
  font-size: var(--text-support);
  line-height: 1.45;
}

.registration-privacy-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 24px;
}

.registration-privacy-consent input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--plum);
}

.registration-privacy-consent label {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-support);
  font-weight: 600;
  line-height: 1.5;
}

.registration-privacy-consent a {
  color: var(--plum);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sms-billing-notice {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #fff8e9;
}

.form-error {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #a3414d;
  border-radius: 4px 9px 9px 4px;
  background: #fff0f1;
  color: #7a2431;
  font-size: var(--text-label);
}

.access-recovery-prompt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-support);
  line-height: 1.45;
}

.access-recovery-prompt[hidden] {
  display: none;
}

.access-recovery-prompt a {
  color: var(--plum);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.access-mode-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-support);
  line-height: 1.45;
}

.access-mode-switch a {
  color: var(--plum);
  font-weight: 800;
  text-underline-offset: 3px;
}

.registration-shell .entry-panel {
  padding-top: max(80px, 6vw);
  padding-bottom: max(88px, 7vw);
}

.registration-shell .entry-card h2 {
  margin-bottom: 26px;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--plum-dark), var(--plum));
  color: white;
  box-shadow: 0 13px 27px rgba(62, 31, 70, .22);
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.primary-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(62, 31, 70, .26);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
}

form[aria-busy="true"] .primary-button:disabled {
  cursor: wait;
}

.privacy-note {
  margin-top: 18px;
  text-align: center;
}

.quiet-footer {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  margin: 0;
  padding: 0 20px;
  color: #a5856d;
  line-height: 1.55;
  text-align: center;
}

.access-footer-links {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
}

.access-footer-link {
  display: inline-block;
  padding-bottom: 5px;
  color: #8eabb3;
  border-bottom: 2px solid currentColor;
  text-decoration: none;
}

.access-footer-privacy-link {
  color: #a5856d;
}

.access-footer-link:hover,
.access-footer-link:focus-visible {
  color: var(--gold);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: auto;
}

.access-footer-brand {
  margin: 14px 0 0;
  color: #a5856d;
}

.waiting-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .92), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(217, 155, 159, .23), transparent 26%),
    radial-gradient(circle at 82% 82%, rgba(167, 187, 164, .25), transparent 30%),
    var(--paper);
}

.waiting-page::before,
.waiting-page::after {
  content: "";
  position: fixed;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(92, 47, 98, .08);
  border-radius: 50%;
}

.waiting-page::before {
  top: -27vw;
  left: -20vw;
}

.waiting-page::after {
  right: -20vw;
  bottom: -29vw;
}

.waiting-page main {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  padding: 30px;
}

.waiting-page-eyebrow {
  margin: 0 0 12px;
  text-align: center;
}

.waiting-device-card,
.waiting-instructions,
.waiting-confirming-device {
  margin: 24px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(92, 47, 98, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 38px rgba(92, 47, 98, .08);
}

.waiting-device-card h1,
.waiting-instructions h2,
.waiting-confirming-device h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 500;
  line-height: 1.12;
}

.waiting-device-summary,
.waiting-confirming-device {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  color: var(--ink-soft);
}

.waiting-device-summary strong,
.waiting-confirming-device strong {
  color: var(--ink);
  font-size: 18px;
}

.waiting-device-summary small {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}

.waiting-device-statuses {
  margin-top: 18px;
  color: #3f6744;
  font-weight: 800;
}

.waiting-instructions ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.waiting-confirming-device {
  background: rgba(237, 245, 236, .8);
}

.waiting-page-message {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 3.6vw, 41px);
  line-height: 1.12;
  text-align: center;
  letter-spacing: -.035em;
}

.waiting-page-message::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 29px auto 0;
  border-radius: 99px;
  background: var(--rose);
  animation: waiting 1.3s ease-in-out infinite;
}

.waiting-page-note {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

@keyframes waiting {
  50% { width: 92px; opacity: .45; }
}

.scan-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at 14% 16%, rgba(217, 155, 159, .26), transparent 27%),
    radial-gradient(circle at 86% 80%, rgba(167, 187, 164, .27), transparent 29%),
    linear-gradient(145deg, #fffaf4, #f5e9e4);
}

.scan-card {
  position: relative;
  z-index: 2;
  width: min(100%, 580px);
  min-height: 530px;
  padding: clamp(36px, 8vw, 70px);
  border: 1px solid rgba(92, 47, 98, .11);
  border-radius: 30px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.scan-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.scan-card .eyebrow {
  color: var(--plum);
}

.scan-card .lead {
  color: var(--ink-soft);
  font-size: 16px;
}

.scan-pulse {
  width: 56px;
  height: 56px;
  margin-bottom: 35px;
  border: 1px solid var(--plum);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(92, 47, 98, .25);
  animation: scanPulse 1.5s ease-out infinite;
}

@keyframes scanPulse {
  70% { box-shadow: 0 0 0 22px rgba(92, 47, 98, 0); }
}

.code-input {
  height: 70px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: .35em;
  text-align: center;
}

.success-check {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e1efe1;
  color: #397043;
  font-size: 31px;
}

.scan-decoration span {
  position: absolute;
  border: 1px solid rgba(92, 47, 98, .1);
  border-radius: 50%;
}

.scan-decoration span:nth-child(1) { width: 420px; height: 420px; top: -240px; left: -140px; }
.scan-decoration span:nth-child(2) { width: 300px; height: 300px; right: -120px; bottom: -160px; }
.scan-decoration span:nth-child(3) { width: 160px; height: 160px; top: 18%; right: 8%; }

.home-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(217, 155, 159, .2), transparent 25%),
    linear-gradient(180deg, #fffaf4, #fff 58%);
}

.human-check-shell {
  min-height: 100vh;
}

.human-language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.human-language-nav a {
  padding: 6px 7px;
  color: var(--ink-soft);
  font-size: var(--text-caption);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: .06em;
}

.human-language-nav a:hover,
.human-language-nav a[aria-current="page"] {
  color: var(--plum);
}

.human-check-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .74fr);
  gap: clamp(38px, 7vw, 104px);
  align-items: center;
  width: min(100% - 72px, 1240px);
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 38px 0 76px;
}

.human-check-story {
  position: relative;
  isolation: isolate;
  padding: clamp(32px, 5vw, 72px) 0;
}

.human-check-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8%;
  left: -13%;
  width: min(46vw, 510px);
  height: min(46vw, 510px);
  border: 1px solid rgba(214, 170, 95, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(214, 170, 95, .04), 0 0 0 72px rgba(214, 170, 95, .025);
}

.human-check-story h1 {
  max-width: 690px;
  margin: 0;
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}

.human-check-story .lead {
  max-width: 600px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.human-check-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 680px;
  margin-top: 52px;
}

.human-check-points p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-label);
  line-height: 1.55;
}

.human-check-points span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: .14em;
}

.human-check-card {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(92, 47, 98, .15);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 25px 70px rgba(52, 28, 57, .11);
}

.human-check-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(214, 170, 95, .2);
  border-radius: 50%;
  pointer-events: none;
}

.human-check-card-mark {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(214, 170, 95, .5);
  border-radius: 15px;
  color: var(--gold);
  font-size: 26px;
  font-weight: 800;
  transform: rotate(-8deg);
}

.human-check-card h2 {
  margin: 0 0 14px;
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.human-check-instruction {
  margin: 0 0 25px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.human-check-option {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
}

.human-check-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.human-check-box {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--plum);
  border-radius: 7px;
  background: white;
}

.human-check-box::before {
  content: "вњ“";
  color: white;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: scale(.65);
  transition: opacity .16s ease, transform .16s ease;
}

.human-check-option input:checked + .human-check-box {
  border-color: var(--plum);
  background: var(--plum);
}

.human-check-option input:checked + .human-check-box::before {
  opacity: 1;
  transform: scale(1);
}

.human-check-option input:focus-visible + .human-check-box {
  outline: 3px solid rgba(92, 47, 98, .3);
  outline-offset: 3px;
}

.human-check-submit {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 16px;
}

.human-check-note {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-support);
  line-height: 1.55;
}

.human-check-error {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
}

.human-check-countdown {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 170, 95, .4);
  border-radius: 13px;
  background: rgba(255, 248, 232, .78);
  color: var(--plum-dark);
  font-size: var(--text-support);
  font-weight: 700;
}

.human-check-countdown span {
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.admin-shell,
.admin-security-shell {
  --admin-line: rgba(63, 38, 69, .12);
  --admin-muted: #756779;
  --admin-nav-width: clamp(300px, 24vw, 360px);
  min-height: 100vh;
  padding-right: var(--admin-nav-width);
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 92% 3%, rgba(217, 155, 159, .2), transparent 26%),
    linear-gradient(180deg, #f8f4f1 0, #f5f1ed 100%);
}

.admin-shell .admin-nav,
.admin-security-shell .admin-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: var(--admin-nav-width);
  height: 100vh;
  height: 100svh;
  flex-direction: column;
  gap: 20px;
  max-width: none;
  margin: 0;
  padding: 24px 20px;
  border-left: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, #321d36 0%, #402443 100%);
  box-shadow: -12px 0 34px rgba(53, 31, 59, .14);
  overflow: hidden;
}

.admin-nav .admin-nav-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fffaf4;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: var(--text-support);
  font-weight: 800;
  line-height: 1.3;
}

.admin-nav-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #f5b442, var(--gold));
  color: var(--plum-dark);
  box-shadow: 0 8px 18px rgba(18, 8, 21, .25);
}

.admin-nav-toggle {
  display: none;
}

.admin-nav .admin-nav-actions {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  justify-content: flex-start;
  gap: 6px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .35) transparent;
}

.admin-nav-link,
.admin-nav-site {
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 13.5px 16.5px;
  border-radius: 15px;
  color: rgba(255, 250, 244, .86);
  font-size: calc(var(--text-support) * 1.5);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transform: translateX(-2px);
}

.admin-nav-link[aria-current="page"] {
  background: #f5b442;
  color: var(--plum-dark);
  box-shadow: inset 4px 0 rgba(61, 31, 70, .22);
}

.admin-nav-site {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .06);
  color: #f4c978;
}

.admin-nav-site:hover {
  border-color: rgba(244, 201, 120, .58);
  background: rgba(255, 255, 255, .11);
  color: #ffe2a8;
}

.admin-nav-link:focus-visible,
.admin-nav-site:focus-visible,
.admin-nav-toggle:focus-visible {
  outline-color: #f4c978;
}

.admin-shell .admin-panel,
.admin-shell .possibilities {
  width: min(100% - 48px, 1240px);
  margin: 24px auto 0;
  padding: clamp(28px, 3.8vw, 48px);
  border: 1px solid var(--admin-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(52, 28, 57, .07);
}

.admin-shell .admin-page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  border-color: rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 88% 12%, rgba(231, 189, 120, .22), transparent 28%),
    linear-gradient(135deg, #35203c 0%, #512d58 62%, #64395f 100%);
  color: #fffaf4;
  box-shadow: 0 24px 60px rgba(52, 28, 57, .17);
}

.admin-page-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, .025), 0 0 0 72px rgba(255, 255, 255, .018);
  pointer-events: none;
}

.admin-page-hero > * {
  position: relative;
  z-index: 1;
}

.admin-shell .eyebrow,
.admin-shell .admin-page-hero .eyebrow {
  color: #e8bd78;
}

.admin-shell .admin-panel h1,
.admin-security-card h1 {
  max-width: 880px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.admin-dashboard-shell .admin-page-hero h1 {
  font-size: clamp(24px, 3.04vw, 38.4px);
}

/* Keep the dashboard copy and card labels readable while scaling the rest of the hero down by 20%. */
.admin-dashboard-shell .admin-page-hero {
  margin-top: 27.2px;
  padding: clamp(22.4px, 3.04vw, 38.4px);
  border-radius: 19.2px;
}

.admin-dashboard-shell .admin-page-hero::after {
  right: -56px;
  bottom: -104px;
  width: 248px;
  height: 248px;
  box-shadow: 0 0 0 28.8px rgba(255, 255, 255, .025), 0 0 0 57.6px rgba(255, 255, 255, .018);
}

.admin-dashboard-shell .admin-page-hero .eyebrow {
  margin-bottom: 12px;
}

.admin-dashboard-shell .admin-page-hero .lead {
  margin-top: 14.4px;
}

.admin-dashboard-shell .admin-page-hero .field-hint {
  margin-top: 6.4px;
}

.admin-shell .admin-panel > h2,
.admin-shell .admin-panel > div > h2 {
  margin: 0;
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.admin-shell .admin-page-hero .lead,
.admin-shell .admin-page-hero .field-hint {
  color: rgba(255, 250, 244, .76);
}

.admin-shell .admin-page-hero .lead {
  max-width: 790px;
  margin-top: 18px;
  font-size: clamp(15px, 1.5vw, 18px);
}

.admin-shell .notice,
.admin-security-shell .notice {
  padding: 18px 20px;
  border: 1px solid rgba(214, 170, 95, .3);
  border-radius: 14px;
  background: #fff9ed;
  color: var(--ink);
}

.admin-shell .admin-page-hero .notice {
  border-color: rgba(255, 237, 200, .24);
  background: rgba(255, 255, 255, .09);
  color: #fffaf4;
}

.admin-users-notice {
  max-width: 880px;
  margin-top: 28px;
}

.admin-users-notice p {
  margin: 8px 0 0;
}

.admin-session-warning {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(73, 31, 79, .18);
  border-radius: 22px;
  background: #fffdfb;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(31, 13, 34, .34);
}

.admin-session-warning::backdrop {
  background: rgba(31, 13, 34, .82);
  backdrop-filter: blur(8px);
}

.admin-session-warning-content {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 38px);
}

.admin-session-warning h2,
.admin-session-warning p {
  margin: 0;
}

.admin-session-warning h2 {
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 500;
  line-height: 1.08;
}

.admin-session-warning .eyebrow {
  color: var(--plum);
}

.admin-session-renew-form {
  display: grid;
  gap: 14px;
}

.admin-session-warning .primary-button,
.admin-session-warning .secondary-button {
  width: 100%;
}

.admin-exercise-explanation {
  display: grid;
  gap: 22px;
}

.admin-exercise-explanation .notice h2,
.admin-investigation-conclusion p {
  margin: 0;
}

.admin-exercise-explanation .notice p {
  margin: 8px 0 0;
}

.admin-investigation-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 28px;
}

.admin-investigation-steps li {
  padding-left: 6px;
  color: var(--admin-muted);
}

.admin-investigation-conclusion {
  margin-top: 20px;
}

.admin-investigation-conclusion p + p {
  margin-top: 8px;
}

.admin-shell .possibility-grid {
  gap: 14px;
  margin-top: 30px;
}

.admin-shell .possibility-grid article {
  min-height: 150px;
  padding: 24px;
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .075);
}

.admin-shell .possibility-grid h2 {
  color: rgba(255, 250, 244, .78);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: var(--text-label);
  font-weight: 750;
  letter-spacing: .02em;
}

.admin-shell .possibility-grid article > p {
  margin: auto 0 0;
  color: #fffaf4;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 750;
}

.admin-dashboard-shell .admin-page-hero .possibility-grid {
  gap: 11.2px;
  margin-top: 24px;
}

.admin-dashboard-shell .admin-page-hero .possibility-grid article {
  min-height: 120px;
  padding: 19.2px;
  border-radius: 14.4px;
}

.admin-dashboard-shell .admin-page-hero .card-icon {
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.admin-dashboard-shell .admin-page-hero .possibility-grid article > p {
  font-size: clamp(19.2px, 2.4vw, 28.8px);
}

.admin-shell .card-icon {
  color: #e8bd78;
}

.admin-shell .admin-attention-panel {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 1240px;
  padding: clamp(28px, 3.8vw, 42px);
}

.admin-attention-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-attention-panel li {
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #faf7f4;
  color: var(--admin-muted);
}

.admin-shell .table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: #fff;
}

.admin-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-label);
  line-height: 1.45;
}

.admin-shell th,
.admin-shell td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.admin-shell:not(.admin-users-shell) th,
.admin-shell:not(.admin-users-shell) td {
  padding: 17.25px 18.4px;
}

.admin-shell th {
  background: #f5f0f3;
  color: var(--plum-dark);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-shell td {
  border-top: 1px solid var(--admin-line);
  color: var(--admin-muted);
}

.admin-shell tbody tr {
  transition: background .15s ease;
}

.admin-shell tbody tr:hover {
  background: #fffaf5;
}

.admin-shell td a {
  color: var(--plum);
  font-weight: 750;
  text-underline-offset: 3px;
}

.admin-dashboard-shell .admin-gift-state-list {
  display: grid;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 24px 0 0;
  padding: 0;
}

.admin-dashboard-shell .admin-gift-state-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #faf7f4;
}

.admin-dashboard-shell .admin-gift-state-item dt,
.admin-dashboard-shell .admin-gift-state-item dd {
  margin: 0;
}

.admin-dashboard-shell .admin-gift-state-list .admin-status,
.admin-dashboard-shell .admin-gift-state-count {
  font-size: var(--text-body);
}

.admin-dashboard-shell .admin-gift-state-count {
  color: var(--plum-dark);
  white-space: nowrap;
}

.admin-filter-form,
.admin-access-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

.admin-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.admin-filter-form label,
.admin-form-field label {
  display: grid;
  color: var(--plum-dark);
  font-size: var(--text-support);
  font-weight: 750;
}

.admin-filter-form input,
.admin-filter-form select,
.admin-access-form input:not([type="checkbox"]),
.admin-access-form select,
.admin-user-actions input:not([type="checkbox"]),
.admin-security-card input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(92, 47, 98, .19);
  border-radius: 10px;
  background: #fff;
  color: var(--plum-dark);
  font: inherit;
}

.admin-filter-form input:focus,
.admin-filter-form select:focus,
.admin-access-form input:focus,
.admin-access-form select:focus,
.admin-user-actions input:focus,
.admin-security-card input:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(92, 47, 98, .09);
}

.admin-filter-form .primary-button,
.admin-access-form .primary-button,
.admin-security-card .primary-button,
.admin-security-card .secondary-button {
  width: auto;
  min-height: 44px;
  margin-top: 0;
  padding: 0 18px;
  justify-self: start;
}

.admin-report-form .primary-button {
  align-self: end;
}

.admin-access-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-access-form {
  gap: 8px;
  margin: 0;
  padding: 14px 20px;
}

.admin-form-field {
  display: grid;
  gap: 5px;
}

.admin-access-form h3 {
  margin: 0 0 1px;
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.admin-confirm-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 1px 0;
  color: var(--admin-muted);
  font-size: var(--text-support);
  line-height: 1.4;
}

.admin-confirm-line input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--plum);
}

.admin-confirm-line span {
  min-width: 0;
}

.admin-access-note {
  grid-column: 1 / -1;
  margin: 0;
  align-self: start;
}

.admin-user-check-form,
.admin-user-delete-form {
  display: grid;
  gap: 8px;
}

.admin-user-check-result {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(95, 152, 103, .25);
  border-radius: 10px;
  background: #f6fbf6;
}

.admin-user-check-result p {
  margin: 0;
}

.admin-user-delete-form {
  padding-top: 12px;
  border-top: 1px solid var(--admin-line);
}

.danger-button {
  min-height: 44px;
  padding: 0 18px;
  justify-self: start;
  border: 0;
  border-radius: 12px;
  background: #842f3a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.danger-button:hover {
  background: #6f2630;
}

.danger-button:focus-visible {
  outline: 3px solid rgba(132, 47, 58, .28);
  outline-offset: 3px;
}

.admin-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.admin-role-card {
  min-width: 0;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background: #faf7f4;
}

.admin-role-card summary {
  display: grid;
  gap: 7px;
  padding: 18px 46px 18px 20px;
  color: var(--admin-muted);
  cursor: pointer;
  font-size: var(--text-label);
  line-height: 1.5;
  list-style: none;
  position: relative;
}

.admin-role-card summary::-webkit-details-marker {
  display: none;
}

.admin-role-card summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(92, 47, 98, .08);
  color: var(--plum);
  font-size: 18px;
  line-height: 1;
}

.admin-role-card[open] summary::after {
  content: "-";
}

.admin-role-card-title {
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.admin-role-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--admin-line);
}

.admin-role-card-details h3 {
  margin: 18px 0 8px;
  color: var(--plum-dark);
  font-size: var(--text-caption);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-role-card-details ul {
  margin: 0;
  padding-left: 18px;
}

.admin-role-card-details li {
  color: var(--admin-muted);
  font-size: var(--text-support);
  line-height: 1.5;
}

.admin-role-card-details li + li {
  margin-top: 6px;
}

.admin-account-cell {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 190px;
  color: var(--ink);
}

.admin-account-cell > span:last-child {
  display: grid;
  gap: 2px;
}

.admin-account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: rgba(92, 47, 98, .09);
  color: var(--plum);
  font-size: var(--text-support);
  font-weight: 800;
}

.admin-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 120px;
}

.admin-role-tag,
.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0ebf1;
  color: var(--plum-dark);
  font-size: var(--text-caption);
  font-weight: 750;
  white-space: nowrap;
}

.admin-shell:not(.admin-users-shell) .admin-role-tag,
.admin-shell:not(.admin-users-shell) .admin-status {
  min-height: 32.2px;
  padding: 5.75px 10.35px;
}

.admin-status::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #927f97;
}

.admin-status.is-success {
  background: #edf6ed;
  color: #37633e;
}

.admin-status.is-success::before {
  background: #5b9964;
}

.admin-status.is-warning {
  background: #fff5dd;
  color: #775918;
}

.admin-status.is-warning::before {
  background: #c18c27;
}

.admin-status.is-danger {
  background: #fff0f1;
  color: #842f3a;
}

.admin-status.is-danger::before {
  background: #b84c58;
}

.admin-status.is-neutral::before {
  background: #927f97;
}

.admin-shell .quote-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.admin-shell .quote-list > div {
  padding: 15px 16px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #faf7f4;
}

.admin-shell .quote-list dt {
  color: var(--admin-muted);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-shell .quote-list dd {
  margin: 7px 0 0;
  color: var(--plum-dark);
  font-size: var(--text-body);
  font-weight: 750;
}

.admin-shell .admin-page-hero .quote-list > div {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .075);
}

.admin-shell .admin-page-hero .quote-list dt,
.admin-shell .admin-page-hero .privacy-note {
  color: rgba(255, 250, 244, .68);
}

.admin-shell .admin-page-hero .quote-list dd {
  color: #fffaf4;
}

.admin-shell .admin-page-hero .privacy-note {
  text-align: left;
}

.admin-user-action-cell {
  min-width: 180px;
}

.admin-action-menu {
  position: relative;
}

.admin-action-menu > summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  background: #fff;
  color: var(--plum-dark);
  cursor: pointer;
  font-size: var(--text-support);
  font-weight: 750;
  list-style: none;
}

.admin-action-menu > summary::-webkit-details-marker {
  display: none;
}

.admin-action-menu > summary::after {
  content: "вЊ„";
  margin-left: 8px;
}

.admin-action-menu[open] > summary {
  border-color: rgba(92, 47, 98, .3);
  background: #faf5f8;
}

.admin-user-actions {
  display: grid;
  gap: 10px;
  min-width: 270px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(52, 28, 57, .12);
}

.admin-user-actions form {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #faf7f4;
}

.admin-user-actions .text-button {
  justify-self: start;
  padding: 5px 0;
  color: #842f3a;
  font-size: var(--text-support);
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Shared Admin tables and forms use a 15% larger working scale. The users
   page keeps its existing dedicated 130% scale and must not compound it. */
.admin-shell:not(.admin-users-shell) .admin-filter-form input,
.admin-shell:not(.admin-users-shell) .admin-filter-form select,
.admin-shell:not(.admin-users-shell) .admin-access-form input:not([type="checkbox"]),
.admin-shell:not(.admin-users-shell) .admin-access-form select,
.admin-shell:not(.admin-users-shell) .admin-report-form input:not([type="checkbox"]),
.admin-shell:not(.admin-users-shell) .admin-report-form select,
.admin-shell:not(.admin-users-shell) .admin-filter-form .primary-button,
.admin-shell:not(.admin-users-shell) .admin-access-form .primary-button,
.admin-shell:not(.admin-users-shell) .admin-report-form .primary-button,
.admin-shell:not(.admin-users-shell) .admin-report-form .secondary-button {
  min-height: 50.6px;
  font-size: 18.4px;
}

.admin-shell:not(.admin-users-shell) .admin-report-form > label:not(.confirmation-row) {
  font-size: var(--text-label);
}

.admin-shell:not(.admin-users-shell) .admin-confirm-line input,
.admin-shell:not(.admin-users-shell) .admin-report-form .confirmation-row input {
  width: 20.7px;
  height: 20.7px;
}

/* The staff-access page intentionally uses a larger reading scale. */
.admin-users-shell {
  font-size: 130%;
}

.admin-users-shell .admin-nav-brand {
  font-size: 15.6px;
}

.admin-users-shell .admin-nav-link,
.admin-users-shell .admin-nav-site {
  font-size: calc(var(--text-support) * 1.5);
}

.admin-users-shell .eyebrow {
  font-size: 15.6px;
}

.admin-users-shell .admin-page-hero {
  padding: clamp(19px, 2.55vw, 32px);
}

.admin-users-shell .admin-page-hero .eyebrow {
  margin-bottom: 10px;
  font-size: var(--text-support);
}

.admin-users-shell .admin-panel h1 {
  font-size: clamp(41.6px, 5.72vw, 70.2px);
}

.admin-users-shell .admin-page-hero h1 {
  max-width: 590px;
  font-size: clamp(32px, 3.81vw, 46.8px);
}

.admin-users-shell .admin-users-content > h2 {
  font-size: clamp(31.2px, 3.9vw, 44.2px);
}

.admin-users-shell .admin-page-hero .lead {
  max-width: 530px;
  margin-top: 12px;
  font-size: clamp(15px, 1.3vw, 16px);
  line-height: 1.52;
}

.admin-users-shell .admin-page-hero .admin-users-notice {
  max-width: 590px;
  margin-top: 19px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.45;
}

.admin-users-shell .admin-page-hero .admin-users-notice p {
  margin-top: 5px;
}

.admin-users-shell .admin-users-content:not(.admin-page-hero) > .lead {
  font-size: clamp(20.8px, 2.21vw, 26px);
}

.admin-users-shell .admin-access-form h3 {
  font-size: 32.5px;
}

.admin-users-shell .admin-form-field label,
.admin-users-shell .admin-confirm-line {
  font-size: 15.6px;
}

.admin-users-shell .admin-role-card summary {
  font-size: 16.9px;
}

.admin-users-shell .admin-role-card-title {
  font-size: 27.3px;
}

.admin-users-shell .admin-role-card-details h3 {
  font-size: 14.3px;
}

.admin-users-shell .admin-role-card-details li {
  font-size: 15.6px;
}

.admin-users-shell table {
  font-size: 16.9px;
}

.admin-users-shell th {
  font-size: 14.3px;
}

.admin-users-shell .field-hint {
  font-size: var(--text-label);
}

.admin-users-shell .admin-account-avatar {
  font-size: 15.6px;
}

.admin-users-shell .admin-role-tag,
.admin-users-shell .admin-status {
  font-size: 14.3px;
}

.admin-users-shell .admin-action-menu > summary,
.admin-users-shell .admin-user-actions .text-button {
  font-size: 15.6px;
}

.admin-security-content {
  width: min(100% - 48px, 820px);
  margin: 34px auto 16px;
}

.admin-security-card {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--admin-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 54px rgba(52, 28, 57, .08);
}

.admin-security-card h1 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3.5vw, 38px);
}

.admin-security-card > p:not(.eyebrow) {
  max-width: 650px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mfa-recovery {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(92, 47, 98, .16);
  border-radius: 14px;
  background: #fffaf4;
}

.mfa-recovery summary {
  color: var(--plum-dark);
  cursor: pointer;
  font-weight: 750;
}

.mfa-recovery form {
  margin-top: 18px;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: auto;
  /* Keep the top navigation compact so the hero starts earlier. */
  padding: 18px 36px;
}

.home-brand {
  margin: 0;
  padding: 0;
  color: var(--plum-dark);
  text-decoration: none;
}

.home-nav-actions,
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf5ec;
  color: #3f6744;
  font-size: var(--text-caption);
  font-weight: 750;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f9867;
  box-shadow: 0 0 0 4px rgba(95, 152, 103, .12);
}

.text-button {
  padding: 8px 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--text-support);
}

/* Signed-in navigation repeats the same calm display typography as the brand. */
.home-user-nav {
  gap: 16px 32px;
  flex-wrap: wrap;
}

.home-user-nav .home-nav-actions {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.home-user-nav .status-pill,
.home-user-nav .text-link,
.home-user-nav .text-button {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .02em;
}

.home-user-nav .status-pill {
  gap: 0;
  color: #3f6744;
}

.home-user-nav .status-pill i {
  display: none;
}

.home-account-identity {
  max-width: min(34vw, 300px);
  overflow: hidden;
  color: var(--ink-soft);
  font-size: var(--text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-nav .text-link:hover,
.home-user-nav .text-button:hover {
  color: var(--plum);
}

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  max-width: 1240px;
  /* Compact desktop spacing keeps the first screen focused on the gift. */
  min-height: 470px;
  margin: auto;
  padding: 24px 36px 48px;
}

.home-hero .eyebrow,
.possibilities .eyebrow,
.home-story .eyebrow {
  color: var(--plum);
}

.home-hero h1 {
  max-width: 730px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  /* Hero heading is intentionally reduced by 55% to keep the first screen readable. */
  font-size: clamp(18px, 2.1vw, 29px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.055em;
}

.home-hero .lead {
  max-width: 590px;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 36px;
}

.link-button {
  width: auto;
  min-width: 190px;
  margin: 0;
  text-decoration: none;
}

.secondary-button {
  min-height: 54px;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .65);
  color: var(--ink);
  text-decoration: none;
  display: inline-grid;
  place-items: center;
}

.gift-visual {
  position: relative;
  min-height: 390px;
  --gift-visual-scale: .7;
}

.gift-box {
  position: absolute;
  top: 47%;
  left: 50%;
  width: min(26vw, 340px);
  aspect-ratio: 1.06;
  border-radius: 15px 15px 25px 25px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(145deg, #dca4a6, #bc747e);
  box-shadow: 0 38px 55px rgba(89, 47, 67, .25);
  /* Scale the complete gift, including its bow and ribbons, by 70%. */
  transform: translate(-50%, -46%) rotate(-3deg) scale(var(--gift-visual-scale));
}

.gift-box::before {
  content: "";
  position: absolute;
  top: -13%;
  left: -4%;
  width: 108%;
  height: 23%;
  border-radius: 12px;
  background: linear-gradient(145deg, #efc1b8, #ca8b91);
  box-shadow: 0 10px 18px rgba(83, 43, 61, .12);
}

.ribbon-v,
.ribbon-h {
  position: absolute;
  z-index: 2;
  display: block;
  background: linear-gradient(90deg, #e7bd78, #c49343 48%, #efd08e);
}

.ribbon-v {
  top: -13%;
  bottom: 0;
  left: 43%;
  width: 15%;
}

.ribbon-h {
  top: 38%;
  right: 0;
  left: 0;
  height: 15%;
}

.bow-left,
.bow-right {
  position: absolute;
  z-index: 3;
  top: -37%;
  width: 35%;
  height: 29%;
  border: 13px solid #d7a75a;
}

.bow-left {
  left: 18%;
  border-radius: 70% 35% 60% 30%;
  transform: rotate(22deg);
}

.bow-right {
  right: 18%;
  border-radius: 35% 70% 30% 60%;
  transform: rotate(-22deg);
}

.gift-shadow {
  position: absolute;
  top: 75%;
  left: 50%;
  width: 72%;
  height: 15%;
  border-radius: 50%;
  background: rgba(65, 37, 59, .11);
  filter: blur(18px);
  transform: translateX(-50%) scale(var(--gift-visual-scale));
}

.spark {
  position: absolute;
  color: var(--gold);
  font-size: 30px;
  transform: scale(var(--gift-visual-scale));
  transform-origin: center;
}

.spark.s1 { top: 12%; left: 20%; }
.spark.s2 { top: 25%; right: 9%; font-size: 21px; }
.spark.s3 { bottom: 16%; left: 12%; font-size: 17px; }

.possibilities {
  padding: 72px max(36px, calc((100vw - 1168px) / 2));
  background: var(--ink);
  color: white;
}

.possibilities h2,
.home-story h2 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(39px, 5vw, 67px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.possibilities h2 {
  /* This section heading is intentionally reduced by 45% for a calmer layout. */
  font-size: clamp(21px, 2.75vw, 37px);
}

.home-shell .home-story h2 {
  /* Keep the technology message understated without changing admin headings. */
  font-size: clamp(21px, 2.75vw, 37px);
}

.possibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 55px;
}

.possibility-grid article {
  min-height: 260px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.card-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  background: rgba(229, 184, 151, .13);
  color: #e5b897;
  font-size: 25px;
}

.possibility-grid h3 {
  margin: 49px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.possibility-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: var(--text-body);
  line-height: 1.65;
}

/* Sender account cards use the light account surface, not the dark home-section card. */
.sender-gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 22px;
}

.sender-gift-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 45px rgba(52, 28, 57, .08);
}

.sender-gift-card .eyebrow {
  margin-bottom: 6px;
  color: var(--plum);
}

.sender-gift-card h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.08;
}

.sender-gift-card p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: var(--text-label);
  line-height: 1.4;
}

.sender-gift-card .field-hint {
  margin-bottom: 3px;
}

.sender-gift-card .secondary-button {
  margin-top: auto;
  padding: 9px 13px;
  font-size: var(--text-label);
}

.sender-payout-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.sender-payout-success__line {
  width: 3cm;
  height: 5px;
  flex: 0 0 3cm;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b9c70, #9cc77d, #6b9c70);
  box-shadow: 0 2px 8px rgba(83, 126, 83, .22);
}

.sender-payout-success__check {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #438451;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(67, 132, 81, .25);
}

.sender-payout-success__label {
  color: #b47b1c;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(105deg, #a86e16 0%, #f1c45d 38%, #fff0a0 55%, #bc7c1c 78%, #e5ae3d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sender-gift-heading {
  margin: 24px auto 12px;
}

.sender-gift-heading h1 {
  /* Account list heading is reduced by 40% for a lighter first screen. */
  font-size: clamp(18px, 1.65vw, 22px);
}

.account-overview-heading {
  margin-bottom: 12px;
}

.account-identity-line {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-label);
  font-weight: 700;
}

.account-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 22px;
}

.account-option-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 45px rgba(52, 28, 57, .08);
  color: var(--ink);
  text-decoration: none;
}

.account-option-card .eyebrow {
  margin-bottom: 6px;
  color: var(--plum);
}

.account-option-card h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.08;
}

.account-option-card p:not(.eyebrow) {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: var(--text-label);
  line-height: 1.4;
}

.account-option-card .secondary-button {
  min-height: 36px;
  margin-top: auto;
  padding: 0 12px;
  font-size: var(--text-support);
}

.account-option-card.account-option-disabled {
  opacity: .72;
}

.account-device-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: var(--text-support);
  font-weight: 700;
}

.account-device-status-trusted {
  border-color: rgba(63, 103, 68, .28);
  background: rgba(63, 103, 68, .12);
  color: #3f6744;
}

.account-device-status-verified {
  border-color: rgba(26, 99, 110, .28);
  background: rgba(45, 148, 158, .12);
  color: #1f6670;
}

.account-device-status-needs_recheck {
  border-color: rgba(150, 94, 29, .28);
  background: rgba(255, 184, 93, .18);
  color: #965e1d;
}

.account-device-status-untrusted {
  border-color: rgba(126, 58, 63, .25);
  background: rgba(213, 112, 118, .12);
  color: #7e3a3f;
}

.account-device-detail-card .account-device-status {
  margin-top: 10px;
}

.account-device-verify-card form {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 18px;
}

.account-device-verify-card form label {
  color: var(--ink);
  font-weight: 700;
}

.account-device-verify-card form input {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-size: 20px;
  letter-spacing: .22em;
}

.account-device-verify-card form .primary-button {
  justify-self: start;
  margin-top: 4px;
}

.account-current-device-box {
  max-width: 760px;
  margin: 18px 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 243, 237, .72);
}

.account-current-device-box h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
}

.account-current-device-box p {
  margin-bottom: 0;
}

.account-current-device-primary {
  margin-top: 14px !important;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.account-current-device-secondary {
  margin-top: 6px !important;
  overflow-wrap: anywhere;
}

.account-session-card {
  margin-bottom: 16px;
  background: rgba(237, 245, 236, .72);
}

.account-session-email {
  margin-top: 0;
  font-weight: 700;
}

.account-session-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.account-session-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: var(--text-support);
  font-weight: 700;
}

.account-session-status-active {
  background: #3f6744;
  color: #fff;
}

.account-device-privacy {
  margin-top: 18px;
}

.account-device-notice {
  width: min(100% - 44px, 820px);
  margin: 0 auto 16px;
}

.account-device-list-card {
  margin-top: 16px;
}

.account-device-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.account-device-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 244, .68);
}

.account-device-list-item[data-current-device="true"] {
  border-color: rgba(63, 103, 68, .3);
  background: rgba(63, 103, 68, .08);
}

.account-device-list-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-device-list-main strong {
  color: var(--ink);
}

.account-device-list-main span,
.account-device-list-main small {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.account-device-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-device-delete-form {
  display: inline-flex;
  margin: 0;
}

.account-device-delete-form .danger-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: var(--text-support);
}

.account-current-device {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #3f6744;
  color: #fff;
  font-size: var(--text-support);
  font-weight: 700;
}

.account-device-add-card {
  margin-top: 16px;
}

.account-device-limit-notice {
  margin-top: 14px;
  background: rgba(255, 184, 93, .18);
  color: #965e1d;
}

.account-device-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.45;
}

.account-device-login-url {
  overflow-wrap: anywhere;
}

.account-pin-heading {
  margin-bottom: 24px;
}

.account-pin-card {
  width: min(100% - 44px, 820px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 45px rgba(52, 28, 57, .08);
}

.account-pin-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.08;
}

.account-pin-card > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.account-pin-card .notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #edf5ec;
  color: #3f6744;
  font-size: var(--text-body);
  font-weight: 700;
}

.account-pin-setup {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 20px;
}

.account-pin-setup img {
  width: 240px;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.account-pin-secret {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fffaf4;
  color: var(--plum-dark);
  letter-spacing: .08em;
}

.account-pin-form {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-top: 20px;
}

.account-pin-form label {
  color: var(--ink);
  font-size: var(--text-label);
  font-weight: 750;
}

.account-pin-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  letter-spacing: .12em;
}

.account-pin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-pin-fields > div {
  display: grid;
  gap: 7px;
}

.account-pin-form .field-hint {
  margin: 0;
}

.home-story {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 90px;
  align-items: end;
  max-width: 1168px;
  margin: auto;
  padding: 72px 36px;
}

.home-story > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  max-width: 1168px;
  margin: auto;
  padding: 28px 36px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--text-support);
}

.home-footer span {
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.home-footer p {
  margin: 0;
}

.guide-shell {
  min-height: 100vh;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 82% 12%, rgba(217, 155, 159, .18), transparent 25%),
    linear-gradient(180deg, #fffaf4, #fff 62%);
}

.guide-bottom-stripe {
  display: block !important;
  width: 100% !important;
  height: 16px !important;
  margin-top: 72px;
  border-top: 11px solid rgba(93, 145, 166, .42);
  border-bottom: 5px solid #d9b36a;
  background: rgba(255, 252, 239, .95);
}

.access-footer-wrap {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
}

.access-footer-wrap .quiet-footer {
  position: static;
  padding: 0 20px;
}

.guide-nav {
  max-width: 1240px;
}

.guide-nav .home-nav-actions {
  gap: 18px;
}

.guide-language-nav {
  position: static;
  display: flex;
  gap: 4px;
  align-items: center;
}

.guide-language-nav a {
  padding: 5px 6px;
}

.guide-hero {
  max-width: 940px;
  margin: 72px auto 42px;
  padding: 0 36px;
}

.guide-hero .eyebrow,
.guide-card .eyebrow {
  color: var(--plum);
}

.guide-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.6vw, 46px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.guide-hero .lead {
  max-width: 740px;
  margin-top: 24px;
  color: var(--ink-soft);
}

.guide-tabs {
  display: flex;
  gap: 8px;
  max-width: 940px;
  margin: 0 auto 24px;
  padding: 0 36px;
  overflow-x: auto;
}

.guide-tabs a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink-soft);
  font-size: var(--text-support);
  font-weight: 750;
  text-decoration: none;
}

.guide-tabs a:hover,
.guide-tabs a.is-active {
  border-color: var(--plum);
  background: var(--plum);
  color: white;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 36px;
}

.guide-card,
.guide-compare-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 45px rgba(52, 28, 57, .07);
}

.guide-card h2,
.guide-compare-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.guide-steps {
  display: grid;
  gap: 15px;
  margin: 28px 0 0;
  padding: 0 0 0 25px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.guide-steps li {
  padding-left: 5px;
}

.guide-note {
  margin-top: 30px;
  padding: 17px 18px;
  border-left: 4px solid #5f9867;
  border-radius: 5px 12px 12px 5px;
  background: #edf5ec;
}

.guide-note strong {
  color: #37633e;
  font-size: var(--text-label);
}

.guide-note p,
.guide-compare-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: 1.65;
}

.guide-compare {
  display: grid;
  gap: 22px;
  align-content: start;
}

.guide-compare-card {
  background: rgba(243, 217, 212, .35);
  box-shadow: none;
}

.guide-number {
  display: block;
  margin-bottom: 22px;
  color: var(--plum);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: .16em;
}

.guide-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.password-recovery-guide-intro {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.password-recovery-steps {
  gap: 11px;
}

.recovery-confirm-button {
  background: linear-gradient(135deg, #37633e, #5f9867);
  box-shadow: 0 13px 27px rgba(55, 99, 62, .22);
}

.recovery-confirm-button:hover {
  box-shadow: 0 17px 34px rgba(55, 99, 62, .28);
}

.recovery-guide-action,
.recovery-login-link {
  text-decoration: none;
}

.recovery-login-link {
  justify-content: center;
}

.password-recovery-shell {
  padding-bottom: 72px;
}

.password-recovery-card {
  width: min(100% - 40px, 620px);
  margin: 58px auto 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 55px rgba(52, 28, 57, .09);
}

.password-recovery-card .eyebrow {
  color: var(--plum);
}

.password-recovery-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.password-recovery-card .lead {
  margin: 20px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.recovery-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.recovery-progress li {
  height: 4px;
  border-radius: 999px;
  background: rgba(92, 47, 98, .12);
}

.recovery-progress li.is-active {
  background: #5f9867;
}

.recovery-progress span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.recovery-important-note {
  margin-top: 22px;
}

.password-recovery-card .form-error {
  margin-top: 22px;
}

@media (max-width: 620px) {
  .password-recovery-card {
    width: min(100% - 24px, 620px);
    margin-top: 28px;
    padding: 27px 22px;
  }
}

.gift-create-shell {
  min-height: 100vh;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 12% 2%, rgba(217, 155, 159, .18), transparent 25%),
    radial-gradient(circle at 94% 35%, rgba(167, 187, 164, .17), transparent 24%),
    linear-gradient(180deg, #fffaf4, #fff 72%);
}

.gift-create-nav {
  max-width: 1320px;
}

.text-link {
  color: var(--ink-soft);
  font-size: var(--text-label);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--plum);
}

.gift-create-heading {
  display: flex;
  gap: 50px;
  align-items: end;
  justify-content: space-between;
  max-width: 1248px;
  margin: 60px auto 45px;
  padding: 0 36px;
}

.gift-create-heading > div:first-child {
  max-width: 760px;
}

.gift-create-heading h1,
.draft-result h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.gift-create-heading h1 {
  /* Creation heading is reduced by 40% while keeping the same hierarchy. */
  font-size: clamp(21px, 2.55vw, 34px);
}

.draft-result h1 {
  /* Draft confirmation uses the same compact display scale. */
  font-size: clamp(18px, 1.98vw, 27px);
}

.gift-create-heading .lead,
.draft-result .lead {
  max-width: 680px;
  color: var(--ink-soft);
}

.fee-note {
  display: grid;
  flex: 0 0 265px;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 45px rgba(52, 28, 57, .08);
}

.fee-note strong {
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.fee-note span {
  color: var(--ink-soft);
  font-size: var(--text-support);
  line-height: 1.55;
}

.gift-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 28px;
  align-items: start;
  max-width: 1248px;
  margin: auto;
  padding: 0 36px;
}

.gift-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}

.gift-form fieldset {
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.gift-form fieldset:first-of-type {
  padding-top: 0;
}

.gift-form legend {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 4px;
  padding: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.gift-form legend span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--plum);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: var(--text-caption);
  font-weight: 800;
}

.gift-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.gift-field-wide {
  grid-column: 1 / -1;
}

.gift-form select,
.gift-form textarea {
  width: 100%;
  border: 1px solid rgba(66, 38, 71, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gift-form select {
  min-height: 54px;
  padding: 0 42px 0 17px;
}

.gift-form textarea {
  min-height: 128px;
  padding: 15px 17px;
  line-height: 1.55;
  resize: vertical;
}

.gift-form select:focus,
.gift-form textarea:focus {
  outline: none;
  border-color: var(--plum);
  background: white;
  box-shadow: 0 0 0 4px rgba(92, 47, 98, .1);
}

.money-input {
  position: relative;
}

.money-input > span {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 17px;
  color: var(--plum);
  font-weight: 800;
}

.money-input input {
  padding-left: 40px;
}

.check-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 15px;
  border-radius: 12px;
  background: rgba(243, 217, 212, .34);
  line-height: 1.5;
}

.check-row input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--plum);
}

.gift-style-field {
  align-self: start;
  min-width: 0;
}

.gift-style-field .field-hint {
  margin-bottom: 0;
}

.gift-flower-section {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(66, 38, 71, .14);
  border-radius: 18px;
  background: rgba(255, 250, 244, .72);
}

.gift-flower-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 750;
}

.gift-flower-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gift-flower-mode {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(66, 38, 71, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
}

.gift-flower-mode:has(input:checked) {
  border-color: var(--plum);
  background: rgba(243, 217, 212, .46);
  box-shadow: 0 0 0 3px rgba(92, 47, 98, .08);
}

.gift-flower-mode input {
  accent-color: var(--plum);
}

.bouquet-picker {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(66, 38, 71, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
}

.bouquet-picker > .field-hint {
  margin-top: 0;
}

.bouquet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bouquet-option {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: var(--text-caption);
  text-align: center;
  cursor: pointer;
}

.bouquet-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bouquet-option img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 9px;
  object-fit: cover;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bouquet-option input:checked + img {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(92, 47, 98, .14);
  transform: translateY(-2px);
}

.bouquet-option input:focus-visible + img {
  outline: 3px solid rgba(92, 47, 98, .28);
  outline-offset: 2px;
}

.gift-generate {
  color: var(--plum);
  font-size: 19px;
}

.gift-form-error {
  margin: 0 0 28px;
}

.gift-submit {
  margin-top: 30px;
}

.gift-preview-column {
  position: sticky;
  top: 28px;
}

.gift-card-preview {
  position: relative;
  display: flex;
  min-height: 500px;
  padding: 48px 38px;
  overflow: hidden;
  border-radius: 25px;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 35px 70px rgba(66, 38, 71, .2);
  text-align: center;
}

.gift-card-preview::before,
.gift-card-preview::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
}

.gift-card-preview::before {
  top: -115px;
  left: -85px;
  width: 270px;
  height: 270px;
}

.gift-card-preview::after {
  right: -105px;
  bottom: -140px;
  width: 330px;
  height: 330px;
}

.theme-blush {
  background: linear-gradient(145deg, #f2d5d0, #c98791);
  color: #3e203e;
}

.theme-sage {
  background: linear-gradient(145deg, #dce6d6, #8da78c);
  color: #263b2b;
}

.theme-sky {
  background: linear-gradient(145deg, #dbe9ee, #879fb8);
  color: #23374a;
}

.theme-champagne {
  background: linear-gradient(145deg, #fff1cc, #d9a95a);
  color: #4a341d;
}

.theme-ivory {
  background: linear-gradient(145deg, #fffdf4, #ded6c5);
  color: #3a3328;
}

.theme-dusty_rose {
  background: linear-gradient(145deg, #f3d9dc, #c68692);
  color: #482b39;
}

.theme-lavender {
  background: linear-gradient(145deg, #eee4fa, #b99bd5);
  color: #3a2750;
}

.theme-lilac {
  background: linear-gradient(145deg, #f5e6f4, #c18bbb);
  color: #4c2b4e;
}

.theme-mint {
  background: linear-gradient(145deg, #e1f2e5, #91c7a3);
  color: #234632;
}

.theme-aqua {
  background: linear-gradient(145deg, #daf4f2, #78c4c1);
  color: #214341;
}

.theme-peach {
  background: linear-gradient(145deg, #ffe5d2, #e7a782);
  color: #533229;
}

.theme-coral {
  background: linear-gradient(145deg, #ffd8d0, #dc7d72);
  color: #542727;
}

.theme-terracotta {
  background: linear-gradient(145deg, #f2d2bd, #b86e53);
  color: #4b2a24;
}

.theme-plum {
  background: linear-gradient(145deg, #ead6e8, #995c9c);
  color: #3b1d3e;
}

.theme-burgundy {
  background: linear-gradient(145deg, #e5c1c7, #8f3f55);
  color: #fff7f5;
}

.theme-navy {
  background: linear-gradient(145deg, #d5e2f2, #51759d);
  color: #f7fbff;
}

.theme-teal {
  background: linear-gradient(145deg, #d4eee9, #4e9f94);
  color: #153e3c;
}

.theme-sand {
  background: linear-gradient(145deg, #f5e6c8, #c79b62);
  color: #4a321f;
}

.theme-lemon {
  background: linear-gradient(145deg, #fff5bf, #ddb83f);
  color: #4a3a15;
}

.theme-forest {
  background: linear-gradient(145deg, #d4e5d0, #638b65);
  color: #f7fff4;
}

.font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

.font-sans {
  font-family: Inter, ui-sans-serif, -apple-system, sans-serif;
}

.font-extraordinary {
  font-family: "Bodoni 72", Didot, "Baskerville", Georgia, serif;
  letter-spacing: -.025em;
}

/* The extraordinary font unlocks twelve lightweight, text-only font styles. */
.gift-card-preview.style-celestial {
  font-family: "Gift Cormorant", "Palatino Linotype", Georgia, serif;
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow: 0 35px 70px rgba(66, 38, 71, .2), 0 0 0 7px rgba(255, 255, 255, .12);
}

.gift-card-preview.style-romantic {
  font-family: "Gift Yeseva", Georgia, serif;
}

.gift-card-preview.style-romantic h2 {
  font-style: italic;
  letter-spacing: .01em;
}

.gift-card-preview.style-minimal {
  font-family: "Gift Montserrat", Inter, ui-sans-serif, sans-serif;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(66, 38, 71, .12);
}

.gift-card-preview.style-minimal::before,
.gift-card-preview.style-minimal::after {
  display: none;
}

.gift-card-preview.style-art_deco {
  font-family: "Gift Dela", fantasy;
  border: 3px double currentColor;
  border-radius: 8px;
}

.gift-card-preview.style-art_deco .gift-card-mark {
  font-size: 18px;
  letter-spacing: .22em;
}

.gift-card-preview.style-botanical::before,
.gift-card-preview.style-botanical::after {
  border-style: dashed;
  opacity: .7;
}

.gift-card-preview.style-botanical {
  font-family: "Gift Caveat", cursive;
}

.gift-card-preview.style-royal {
  font-family: "Gift Playfair", Georgia, serif;
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow: 0 35px 70px rgba(66, 38, 71, .2), inset 0 0 0 10px rgba(255, 255, 255, .12);
}

.gift-card-preview.style-royal h2 {
  letter-spacing: .015em;
}

.gift-card-preview.style-playful {
  font-family: "Gift Comfortaa", ui-rounded, sans-serif;
  border-radius: 36px 14px 36px 14px;
}

.gift-card-preview.style-playful .gift-card-mark {
  transform: rotate(-12deg);
}

.gift-card-preview.style-gallery {
  font-family: "Gift Lora", Georgia, serif;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(66, 38, 71, .16), 0 0 0 1px currentColor;
}

.gift-card-preview.style-gallery small {
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gift-card-preview.style-calligraphy {
  font-family: "Gift Marck", cursive;
}

.gift-card-preview.style-calligraphy h2 {
  font-size: clamp(25px, 3.2vw, 40px);
}

.gift-card-preview.style-bold_script {
  font-family: "Gift Lobster", cursive;
}

.gift-card-preview.style-bold_script h2 {
  font-size: clamp(24px, 3.1vw, 39px);
}

.gift-card-preview.style-gothic {
  font-family: "Gift Stalinist", fantasy;
  letter-spacing: .015em;
}

.gift-card-preview.style-gothic h2 {
  font-size: clamp(21px, 2.7vw, 33px);
}

.gift-card-preview.style-premium_modern {
  font-family: "Gift Unbounded", Inter, sans-serif;
  letter-spacing: -.02em;
}

.gift-card-preview.style-premium_modern h2 {
  font-size: clamp(19px, 2.45vw, 31px);
  font-weight: 500;
}

.gift-card-mark {
  position: absolute;
  top: 25px;
  left: 30px;
  color: rgba(255, 255, 255, .78);
  font-size: 25px;
}

.gift-card-bouquet {
  position: relative;
  z-index: 1;
  display: block;
  width: min(190px, 68%);
  aspect-ratio: 1;
  margin: -10px auto 18px;
  border: 2px solid rgba(255, 255, 255, .65);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(52, 28, 57, .15);
}

.gift-card-to {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gift-card-preview h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  /* Recipient name preview reduced by 30% for a calmer card hierarchy. */
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.05;
}

.gift-card-greeting {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 25px auto;
  white-space: pre-line;
  /* Greeting preview increased by 20% for better readability. */
  font-size: 19.2px;
  line-height: 1.6;
}

.gift-card-preview strong {
  position: relative;
  z-index: 1;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 27px;
}

.gift-card-preview small {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: var(--text-support);
}

.preview-quote {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 18px;
  margin-top: 17px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  font-size: var(--text-label);
}

.preview-quote span {
  color: var(--ink-soft);
}

.preview-quote strong {
  text-align: right;
}

.preview-quote .preview-total {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.preview-quote p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-support);
  line-height: 1.5;
}

.draft-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  gap: 70px;
  align-items: center;
  max-width: 1180px;
  margin: 75px auto 0;
  padding: 0 36px;
}

.quote-summary {
  max-width: 620px;
  margin: 35px 0;
  border-top: 1px solid var(--line);
}

.quote-summary div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.quote-summary dt {
  color: var(--ink-soft);
}

.quote-summary dd {
  margin: 0;
  font-weight: 800;
}

.quote-summary .quote-total {
  color: var(--plum);
  font-size: 18px;
}

.draft-notice {
  max-width: 620px;
  padding: 19px 21px;
  border-left: 4px solid var(--gold);
  border-radius: 4px 13px 13px 4px;
  background: #fff8e9;
}

.draft-notice p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-label);
  line-height: 1.55;
}

.gift-demo-flow {
  max-width: 620px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffaf5;
}

.gift-demo-flow h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.gift-demo-flow ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gift-demo-flow li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink-soft);
}

.gift-demo-flow li.is-current {
  border-color: #e8c576;
  background: #fff4d9;
  color: var(--ink);
}

.gift-demo-flow li.is-complete {
  color: #3f6744;
}

.gift-demo-step-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #eee8ef;
  color: var(--plum);
  font-weight: 800;
}

.gift-demo-flow li.is-current .gift-demo-step-number {
  background: var(--plum);
  color: #fff;
}

.gift-demo-flow li.is-complete .gift-demo-step-number {
  background: #dcebd9;
  color: #315c37;
}

.gift-demo-flow strong {
  display: block;
  line-height: 1.35;
}

.gift-demo-flow p {
  margin: 4px 0 0;
  font-size: var(--text-label);
  line-height: 1.55;
}

.gift-demo-help-link {
  display: inline-block;
  margin-top: 7px;
  font-size: var(--text-label);
}

.stripe-demo-panel > p:not(.eyebrow, .email-status, .form-error, .field-hint) {
  color: var(--ink-soft);
  line-height: 1.65;
}

.stripe-demo-test-data {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf5;
}

.stripe-demo-test-data dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.stripe-demo-test-data dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.stripe-demo-test-data dd {
  margin: 0;
  font-weight: 800;
}

.stripe-demo-panel form {
  margin: 20px 0 0;
}

.email-verification-card {
  max-width: 620px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .8);
}

.gift-ready-delivery-card {
  border-color: #e8c576;
  background: #fffaf0;
}

.gift-completed-card {
  padding: 18px 20px;
}

.gift-completed-card h2 {
  font-size: 24px;
}

.sender-totp-rotation-frame {
  box-sizing: border-box;
  max-width: 620px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid #e1bd68;
  border-radius: 14px;
  background: #fff8e8;
}

.sender-totp-section-eyebrow {
  box-sizing: border-box;
  max-width: 620px;
  margin: 28px 0 10px;
}

.sender-totp-section-description {
  box-sizing: border-box;
  max-width: 620px;
  margin: 0 0 10px;
}

.sender-totp-section-eyebrow + .sender-delivery-frame,
.sender-totp-section-description + .sender-delivery-frame {
  margin-top: 0;
}

.sender-totp-download-row {
  box-sizing: border-box;
  max-width: 620px;
  margin: -10px 0 28px;
}

.sender-totp-rotation-frame form {
  margin: 0;
}

.sender-totp-rotation-frame .secondary-button {
  margin: 0;
}

.sender-totp-rotation-frame .sender-totp-rotation-warning {
  margin: 12px 0 0;
  color: #71452f;
}

.gift-delivery-qr {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 1rem 0;
  border-radius: 18px;
}

.delivery-link {
  overflow-wrap: anywhere;
}

.email-verification-card .eyebrow {
  margin: 0 0 8px;
}

.email-verification-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.email-verification-card > p:not(.eyebrow, .email-status) {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-label);
  line-height: 1.6;
}

.email-verification-card form {
  margin-top: 18px;
}

.email-verification-card .primary-button {
  width: auto;
  min-width: 210px;
  margin: 0;
}

.claim-device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.claim-device-actions form {
  margin: 0;
}

.claim-device-actions .secondary-button {
  min-width: 110px;
}

.claim-device-support-frame {
  position: relative;
  max-width: 620px;
  margin: 28px 0;
  padding: 34px 28px 28px;
  border: 2px solid rgba(126, 58, 63, .28);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 250, 247, .98), rgba(255, 239, 230, .96)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(126, 58, 63, .035) 12px 13px);
  box-shadow: 0 18px 48px rgba(71, 38, 47, .12);
}

.claim-device-support-frame h2 {
  margin: 4px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.claim-device-support-frame > p {
  max-width: 520px;
}

.claim-device-support-close {
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(126, 58, 63, .24);
  border-radius: 50%;
  color: #7e3a3f;
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
}

.claim-device-countdown {
  width: 54px;
  margin: 18px 0 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(126, 58, 63, .1);
  color: #7e3a3f;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
}

html[dir="rtl"] .claim-device-support-close {
  right: 14px;
  left: auto;
}

.email-status {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff8e9;
  color: #735418;
  font-size: var(--text-support);
  font-weight: 700;
}

.email-status.success {
  background: #edf5ec;
  color: #3f6744;
}

.email-confirm-shell {
  display: grid;
  min-height: 100vh;
  padding: 30px;
  place-items: center;
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 155, 159, .24), transparent 27%),
    radial-gradient(circle at 88% 85%, rgba(167, 187, 164, .22), transparent 27%),
    var(--paper);
}

.email-confirm-card {
  width: min(100%, 620px);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.email-confirm-card .home-brand {
  display: inline-block;
  margin-bottom: 70px;
}

.email-confirm-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4.8vw, 41px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.email-confirm-card .lead {
  color: var(--ink-soft);
}

.email-confirm-card .link-button {
  margin-top: 28px;
}

.password-copy-button {
  margin-top: 16px;
}

.password-copy-status {
  min-height: 1.5em;
}

.error-page,
.mailbox-page {
  min-height: 100vh;
  padding: 60px 24px;
  background: linear-gradient(145deg, #fffaf4, #f3e5e2);
}

.error-page {
  display: grid;
  place-items: center;
}

.error-page main,
.mailbox-page main {
  width: min(100%, 820px);
  margin: auto;
}

.error-page main {
  padding: 45px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.error-page h1,
.mailbox-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4.2vw, 42px);
  font-weight: 500;
}

.error-page p {
  color: var(--ink-soft);
  font-size: 17px;
}

.error-page small {
  display: block;
  margin-top: 26px;
  color: var(--ink-soft);
}

.mailbox-page .eyebrow {
  color: var(--plum);
}

.mail-list {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.mail-list a,
.empty-mail {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.mail-list a:hover {
  border-color: var(--plum);
}

.mail-list span {
  color: var(--plum);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mail-list small {
  color: var(--ink-soft);
}

/* Wide screens keep every primary working frame four percent from each edge.
   Focused authentication, MFA and error cards stay narrow for readability. */
@media (min-width: 1200px) {
  .admin-shell .admin-panel,
  .admin-shell .possibilities,
  .home-nav,
  .home-hero,
  .home-story,
  .home-footer,
  .guide-nav,
  .guide-hero,
  .guide-tabs,
  .guide-layout,
  .gift-create-nav,
  .gift-create-heading,
  .gift-builder,
  .draft-result,
  .sender-gift-grid,
  .account-option-grid {
    width: 92%;
    max-width: none;
  }

  .home-shell:not(.admin-shell) > .possibilities {
    padding-inline: 4%;
  }

  .guide-hero,
  .guide-tabs,
  .guide-layout,
  .gift-create-heading,
  .gift-builder,
  .draft-result,
  .sender-gift-grid,
  .account-option-grid {
    padding-inline: 0;
  }
}

@media (max-width: 980px) {
  .access-shell {
    grid-template-columns: 1fr;
  }

  .access-footer-wrap {
    position: static;
    margin-top: 48px;
  }

  .story-panel {
    min-height: 620px;
    padding: 100px 42px 60px;
  }

  .brand-mark {
    top: 34px;
    left: 42px;
  }

  .brand {
    margin-bottom: 55px;
  }

  .entry-panel {
    min-height: 690px;
    padding: 80px 30px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 85px;
  }

  .gift-visual {
    min-height: 410px;
  }

  .gift-box {
    width: min(48vw, 340px);
  }

  .home-story {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .gift-create-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .fee-note {
    flex-basis: auto;
  }

  .gift-builder,
  .draft-result {
    grid-template-columns: 1fr;
  }

  .sender-gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-preview-column {
    position: static;
  }

  .gift-card-preview {
    min-height: 430px;
  }

  .admin-shell,
  .admin-security-shell {
    --admin-nav-width: 0px;
    padding-right: 0;
  }

  .admin-shell .admin-nav,
  .admin-security-shell .admin-nav {
    position: sticky;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 66px;
    flex-flow: row wrap;
    gap: 10px 18px;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    border-left: 0;
    box-shadow: 0 8px 28px rgba(53, 31, 59, .12);
    overflow: visible;
  }

  .admin-nav-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fffaf4;
    cursor: pointer;
    font-size: 24px;
  }

  .admin-nav-toggle:not([hidden]) {
    display: grid;
  }

  .admin-nav-toggle[aria-expanded="true"] {
    border-color: rgba(244, 201, 120, .62);
    background: rgba(244, 201, 120, .14);
    color: #f4c978;
  }

  .admin-nav .admin-nav-actions {
    width: 100%;
    max-height: calc(100svh - 86px);
    flex: 1 0 100%;
    padding: 8px 0 2px;
    overflow-y: auto;
  }

  .admin-nav-site {
    margin-top: 6px;
  }

  .admin-shell .admin-attention-panel,
  .admin-access-actions {
    grid-template-columns: 1fr;
  }

  .admin-role-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .access-footer-links {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .story-panel {
    min-height: 700px;
    padding: 102px 24px 52px;
  }

  .brand-mark {
    left: 24px;
  }

  .story-panel h1 {
    font-size: clamp(26px, 8.4vw, 38px);
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
  }

  .entry-panel {
    padding: 88px 20px 75px;
  }

  .language-nav {
    top: 23px;
    right: 16px;
    left: 16px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
  }

  .registration-shell .entry-panel {
    padding-top: 104px;
  }

  .scan-card {
    min-height: 520px;
    padding: 38px 25px;
    border-radius: 22px;
  }

  .home-nav {
    padding: 16px 20px;
  }

  .guide-nav {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .guide-nav .home-nav-actions {
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .guide-language-nav {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
  }

  .status-pill {
    display: none;
  }

  .home-user-nav {
    align-items: flex-start;
  }

  .home-user-nav .home-nav-actions {
    flex: 1 0 100%;
    justify-content: flex-start;
  }

  .home-user-nav .status-pill {
    display: inline-flex;
  }

  .home-account-identity {
    max-width: 100%;
    flex: 1 1 100%;
    order: 5;
  }

  .home-hero {
    min-height: 0;
    padding: 42px 20px 36px;
  }

  .home-hero h1 {
    font-size: clamp(18px, 4.6vw, 22px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .link-button,
  .secondary-button {
    width: 100%;
  }

  .gift-visual {
    min-height: 310px;
  }

  .gift-box {
    width: min(65vw, 290px);
  }

  .possibilities {
    padding: 56px 20px;
  }

  .possibility-grid {
    grid-template-columns: 1fr;
  }

  .possibility-grid article {
    min-height: 230px;
  }

  .home-story {
    padding: 56px 20px;
  }

  .guide-hero {
    margin-top: 48px;
    padding: 0 20px;
  }

  .guide-hero h1 {
    font-size: clamp(23px, 7.2vw, 35px);
  }

  .guide-tabs {
    padding: 0 20px;
  }

  .guide-layout {
    padding: 0 20px;
  }

  .guide-card,
  .guide-compare-card {
    padding: 25px 22px;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 26px 20px 35px;
  }

  .gift-create-nav {
    padding: 22px 20px;
  }

  .gift-create-heading {
    gap: 25px;
    margin: 42px auto 30px;
    padding: 0 20px;
  }

  .sender-gift-heading {
    margin: 18px auto 8px;
  }

  .account-overview-heading {
    margin-bottom: 8px;
  }

  .gift-create-heading.sender-gift-heading h1 {
    font-size: clamp(18px, 4vw, 22px);
  }

  .gift-create-heading h1,
  .draft-result h1 {
    font-size: clamp(20px, 5.9vw, 28px);
  }

  .draft-result h1 {
    font-size: clamp(18px, 4.6vw, 22px);
  }

  .gift-builder,
  .draft-result {
    gap: 22px;
    padding: 0 20px;
  }

  .draft-result {
    margin-top: 45px;
  }

  .gift-form {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .gift-field-grid {
    grid-template-columns: 1fr;
  }

  .sender-gift-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 16px;
  }

  .sender-gift-card {
    min-height: 0;
    padding: 12px;
  }

  .account-option-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 16px;
  }

  .account-option-card {
    min-height: 0;
    padding: 14px;
  }

  .account-pin-heading {
    margin-bottom: 16px;
  }

  .account-pin-card {
    width: calc(100% - 32px);
    padding: 20px;
  }

  .account-device-list-item {
    grid-template-columns: 1fr;
  }

  .account-device-badges {
    justify-content: flex-start;
  }

  .account-pin-fields {
    grid-template-columns: 1fr;
  }

  .gift-flower-modes {
    grid-template-columns: 1fr;
  }

  .bouquet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gift-card-preview {
    min-height: 410px;
    padding: 40px 25px;
  }

  .email-confirm-shell {
    padding: 18px;
  }

  .email-confirm-card {
    padding: 36px 24px;
    border-radius: 19px;
  }

  .email-confirm-card .home-brand {
    margin-bottom: 52px;
  }

  .admin-shell {
    padding-bottom: 48px;
  }

  .admin-shell .admin-nav,
  .admin-security-shell .admin-nav {
    gap: 8px 12px;
    padding: 10px 14px;
  }

  .admin-nav-brand {
    font-size: var(--text-caption);
  }

  .admin-nav-mark {
    width: 31px;
    height: 31px;
  }

  .admin-nav-site {
    padding: 12px 13.5px;
    font-size: calc(var(--text-caption) * 1.5);
  }

  .admin-nav-link {
    padding: 12px 13.5px;
    font-size: calc(var(--text-caption) * 1.5);
  }

  .admin-shell .admin-panel,
  .admin-shell .possibilities {
    width: calc(100% - 24px);
    margin-top: 14px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .admin-shell .admin-page-hero {
    margin-top: 18px;
  }

  .admin-shell .admin-panel h1 {
    font-size: clamp(29px, 10vw, 40px);
  }

  .admin-dashboard-shell .admin-page-hero h1 {
    font-size: clamp(21.6px, 6.8vw, 28.8px);
  }

  .admin-dashboard-shell .admin-page-hero {
    margin-top: 14.4px;
    padding: 17.6px 14.4px;
    border-radius: 14.4px;
  }

  .admin-shell .possibility-grid,
  .admin-filter-form,
  .admin-role-card-details {
    grid-template-columns: 1fr;
  }

  .admin-shell .possibility-grid article {
    min-height: 125px;
  }

  .admin-dashboard-shell .admin-page-hero .possibility-grid article {
    min-height: 100px;
  }

  .admin-shell th,
  .admin-shell td {
    padding: 12px;
  }

  .admin-security-content {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .admin-security-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

@media (max-width: 980px) {
  .human-check-hero {
    grid-template-columns: 1fr;
    width: min(100% - 48px, 680px);
    min-height: auto;
    padding: 42px 0 72px;
  }

  .human-check-story {
    padding-bottom: 0;
  }

  .human-check-story::before {
    left: -18%;
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 680px) {
  .human-language-nav {
    max-width: 235px;
  }

  .human-check-hero {
    width: min(100% - 40px, 540px);
    padding-top: 24px;
  }

  .human-check-story h1 {
    font-size: clamp(39px, 12vw, 61px);
  }

  .human-check-points {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  .human-check-card {
    padding: 27px 22px;
  }
}

.traffic-analytics-shell {
  min-height: 100vh;
  padding: 16px 0 28px;
  background: linear-gradient(180deg, #f8f8f5 0%, #f4f4f1 100%);
  color: #202124;
  font-family: Roboto, Arial, sans-serif;
}

.traffic-analytics-panel {
  width: min(100% - 32px, 1360px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dadce0;
  background: #fff;
}

.traffic-analytics-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 14px;
}

.traffic-analytics-heading h1 {
  margin: 0;
  color: #202124;
  font-size: clamp(22px, 2.65vw, 34px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.traffic-analytics-range-form {
  flex: 0 0 auto;
}

.traffic-analytics-range-select {
  min-width: 228px;
  padding: 11px 44px 11px 16px;
  border: 1px solid #c4c7c5;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff 0%, #fefefe 100%),
    linear-gradient(45deg, transparent 50%, #5f6368 50%),
    linear-gradient(135deg, #5f6368 50%, transparent 50%);
  background-position:
    0 0,
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: auto, 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #3c4043;
  font-size: 15px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.traffic-analytics-range-select:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.traffic-map-card {
  border-top: 1px solid #e8eaed;
}

.traffic-map-stage {
  position: relative;
  overflow: hidden;
  height: clamp(360px, 40vw, 520px);
  background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
  --traffic-map-scale: 1;
}

.traffic-world-map {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(var(--traffic-map-scale));
  transform-origin: 50% 50%;
}

.traffic-map-ocean {
  fill: #fbfbfb;
}

.traffic-map-land path {
  fill: #d7d7d7;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: .6;
  vector-effect: non-scaling-stroke;
}

.traffic-map-countries circle {
  vector-effect: non-scaling-stroke;
  stroke: rgba(255, 255, 255, .96);
  stroke-width: 2;
}

.traffic-map-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.traffic-map-control {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .12);
  color: #202124;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.traffic-map-control:hover {
  background: #f8f9fa;
}

.traffic-map-control:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.traffic-map-sparkline {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  width: 160px;
  padding: 6px 8px 4px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 2px rgba(60, 64, 67, .14);
}

.traffic-map-sparkline-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.traffic-map-sparkline-meta span {
  color: #5f6368;
  font-size: var(--text-caption);
  font-weight: 500;
}

.traffic-map-sparkline-meta strong {
  color: #1f1f1f;
  font-size: var(--text-caption);
  font-weight: 600;
}

.traffic-map-sparkline-chart {
  display: block;
  width: 100%;
  height: 34px;
}

.traffic-map-sparkline-fill {
  fill: rgba(47, 98, 180, .18);
}

.traffic-map-sparkline-line {
  fill: none;
  stroke: #2f62b4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.traffic-map-attribution {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  color: #5f6368;
  font-size: var(--text-caption);
}

.traffic-country-table-wrap {
  border-top: 1px solid #e8eaed;
}

.traffic-country-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.traffic-country-table th,
.traffic-country-table td {
  padding: 16px 18px;
  text-align: start;
  vertical-align: middle;
}

.traffic-country-table th {
  border-bottom: 1px solid #dadce0;
  background: #fafafa;
  color: #3c4043;
  font-size: var(--text-caption);
  font-weight: 600;
}

.traffic-country-table td {
  border-top: 1px solid #eceff1;
  color: #202124;
  font-size: 15px;
}

.traffic-country-table th + th,
.traffic-country-table td + td {
  width: 150px;
  border-left: 1px solid #dadce0;
  text-align: end;
}

.traffic-country-value {
  font-variant-numeric: tabular-nums;
}

.traffic-country-table tbody tr:hover td {
  background: #f8faff;
}

[dir='rtl'] .traffic-country-table th + th,
[dir='rtl'] .traffic-country-table td + td {
  text-align: start;
}

@media (max-width: 820px) {
  .traffic-analytics-header {
    flex-wrap: wrap;
  }

  .traffic-analytics-range-form {
    width: 100%;
  }

  .traffic-analytics-range-select {
    width: 100%;
    min-width: 0;
  }

  .traffic-map-stage {
    height: clamp(320px, 72vw, 440px);
  }
}

@media (max-width: 540px) {
  .traffic-analytics-shell {
    padding-top: 8px;
  }

  .traffic-analytics-panel {
    width: min(100% - 16px, 1360px);
  }

  .traffic-analytics-header {
    padding: 16px 14px 12px;
  }

  .traffic-map-control {
    width: 30px;
    height: 30px;
  }

  .traffic-map-sparkline {
    left: 12px;
    bottom: 10px;
  }

  .traffic-map-attribution {
    right: 12px;
    bottom: 8px;
  }

  .traffic-country-table th,
  .traffic-country-table td {
    padding: 12px 14px;
  }

  .traffic-country-table th + th,
  .traffic-country-table td + td {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
