:root {
  --muted: var(--teal);
  --line: var(--teal);
  --tint: color-mix(in srgb, var(--teal) 9%, var(--paper));
  --tint-hover: color-mix(in srgb, var(--teal) 16%, var(--paper));
  --button-ease: cubic-bezier(.22,.8,.25,1);
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p { margin: 0; }
body { min-width: 280px; }
h1, h2, .brand { font-family: var(--font-display); letter-spacing: -.035em; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button, summary, input[type=range] { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.site-header a:focus-visible { outline-color: var(--orange); }
::selection { color: var(--ink); background: var(--orange); }
input { color: var(--ink); caret-color: var(--teal); }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.storefront {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--paper);
  background:
    radial-gradient(ellipse 54% 440px at 18% 255px, rgb(21 97 109 / .32), transparent 83%),
    radial-gradient(ellipse 42% 360px at 86% 180px, rgb(120 41 15 / .23), transparent 86%),
    var(--ink);
}
.storefront::before, .storefront::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  width: 720px; aspect-ratio: 1;
  opacity: .28;
  background: url('./assets/press-lines.svg') center / contain no-repeat;
}
.storefront::before { left: calc(50% - 1180px); top: 24%; transform: rotate(-22deg); }
.storefront::after { right: calc(50% - 1200px); top: -37%; transform: rotate(27deg); }
.site-header {
  height: 74px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--teal);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 1.22rem; font-weight: 700; }
.brand span { color: var(--orange); }
.brand-mark { display: block; flex: none; width: 2.1em; height: auto; margin-right: .47em; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { white-space: nowrap; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9rem; font-weight: 700; }
.site-header nav a:hover, .brand:hover { color: var(--orange); }
.hero-heading { text-align: center; padding: 43px 16px 32px; }
.hero-heading h1 { font-size: clamp(2.7rem, 5.35vw, 4.7rem); line-height: 1.15; }
.hero-heading p { margin-top: 9px; font-size: 1.02rem; color: var(--paper); }
#buy-page { padding-bottom: 39px; }
.calc-stage { width: min(658px, calc(100% - 72px)); position: relative; margin: 0 auto; scroll-margin-top: 16px; }
.token { position: absolute; pointer-events: none; z-index: 2; aspect-ratio: 1;; }
.token-left { width: 225px; right: calc(100% - 23px); top: -59px; }
.token-right { width: 180px; left: calc(100% - 20px); top: -69px; }
.checkout { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 29px 34px 28px;  }
.panel-head, .checkout-bottom, .order-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head { margin-bottom: 20px; }
.panel h2, .help-intro h2 { font-size: 1.4rem; line-height: 1.3; }
.rate { color: var(--muted); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.amount-grid { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; }
.exchange-field {
  min-width: 0; background: var(--tint); border: 0; border-radius: 10px;
  padding: 11px 16px 10px; display: flex; flex-direction: column; gap: 2px; cursor: text;
}
.exchange-field > span:first-child { color: var(--teal); font-size: .82rem; font-weight: 700; }
.exchange-field:hover { border-color: var(--teal); }
.exchange-field:focus-within { outline: 2px solid var(--teal); outline-offset: 1px; }
.figure { display: flex; align-items: baseline; gap: 3px; }
.figure input, .figure b { font-size: 2.25rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 700; }
.figure input { outline: none; width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.figure b { color: var(--teal); font-size: 1.35rem; }
.arrow, .exchange-arrow { position: relative; display: inline-block; width: 18px; height: 2px; background: currentColor; flex: none; }
.arrow::after, .exchange-arrow::after { content: ""; position: absolute; width: 8px; height: 8px; border-top: 2px solid; border-right: 2px solid; right: 0; top: 50%; transform: translateY(-50%) rotate(45deg); }
.exchange-arrow { color: var(--teal); width: 12px; margin: auto; }
.exchange-arrow::after { width: 5px; height: 5px; }
.amount-range {
  --filled: 9.09%;
  display: block; width: 100%; height: 34px; margin: 6px 0 2px; appearance: none; background: transparent; accent-color: var(--teal);
}
.amount-range::-webkit-slider-runnable-track { height: 5px; border-radius: 4px; background: linear-gradient(to right,var(--teal) var(--filled),transparent var(--filled)); border: 1px solid var(--teal); }
.amount-range::-moz-range-track { height: 3px; border-radius: 4px; border: 1px solid var(--teal); background: transparent; }
.amount-range::-moz-range-progress { height: 5px; background: var(--teal); }
.amount-range::-webkit-slider-thumb { appearance: none; width: 19px; height: 19px; margin-top: -7px; border: 3px solid var(--teal); border-radius: 50%; background: var(--paper); }
.amount-range::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid var(--teal); border-radius: 50%; background: var(--paper); }
.quick-amounts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.quick-amounts button {
  min-height: 42px; background: var(--tint); color: var(--ink); font-size: .88rem; font-weight: 700; white-space: nowrap;
  border: 0; border-radius: 7px; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.quick-amounts button.selected { background: var(--teal); color: var(--paper); }
.quick-amounts button:active { transform: scale(.96); }
.checkout-bottom { margin-top: 26px; }
.total { display: flex; flex-direction: column; gap: 1px; }
.total > span { font-size: .83rem; color: var(--muted); }
.total strong { font-size: 1.55rem; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 22px;
  border: 0; border-radius: 8px; font-weight: 700; text-align: center;
}
.primary-button { background: var(--orange); color: var(--ink); width: 100%; }
.primary-button:active:not(:disabled) { background: var(--clay); color: var(--paper); }
.advance { width: auto; min-width: 190px; justify-content: space-between; }
.secondary-button { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.availability { display: flex; justify-content: center; align-items: baseline; gap: 9px; max-width: 658px; margin: 17px auto 0; padding: 0 20px; font-size: .85rem; line-height: 1.5; color: var(--paper); }
.availability i { font: 700 .7rem/15px Manrope,sans-serif; width: 17px; height: 17px; border: 1px solid currentColor; text-align: center; border-radius: 50%; flex: none; }
.order-line { padding-bottom: 13px; color: var(--muted); font-size: .88rem; }
.order-line strong { color: var(--ink); }
.muted { color: var(--teal); margin-inline: 3px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; background: transparent; padding: 0; border-radius: 12px; margin-bottom: 24px; }
.step-marker { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 0 3px; border: 0; border-radius: 8px; background: transparent; color: var(--teal); font-size: .82rem; }
.step-marker b { font-size: .75rem; }
.step-marker.current { background: var(--teal); color: var(--paper); font-weight: 700; }
.step-marker:disabled { color: var(--ink); opacity: .58; }
.reset-button, .back-button, .cancel-request, .guide-link, .pass-price button, .manual-place summary, .recent-searches button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 14px;
  border: 0; border-radius: 9px; background: var(--tint); color: var(--teal); text-decoration: none; font-size: .84rem; font-weight: 700;
}
.reset-button { display: block; margin: 20px auto 0; }
.back-button { float: right; min-height: 44px; margin: -2px 0 5px 10px; padding: 6px 10px; font-size: .76rem; }
.back-button::before { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: rotate(45deg); }
.cancel-request { margin-top: 12px; }
.step-copy { clear: both; color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 8px 0 18px; }
.input-group { display: grid; gap: 7px; min-width: 0; font-size: .85rem; font-weight: 700; }
.input-shell input { width: 100%; border: 0; padding: 13px 15px; border-radius: 10px; min-height: 49px; background: var(--tint); font-size: 1rem; font-weight: 400; }
.input-shell input:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.input-shell input::placeholder { color: var(--teal); }
.recent-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.recent-searches > span { color: var(--teal); font-size: .78rem; margin-right: 2px; }
.recent-searches button { min-height: 44px; padding: 4px 10px; overflow-wrap: anywhere; }
.lookup-status { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; color: var(--teal); font-size: .84rem; }
.lookup-status:empty { display: none; }
.lookup-status.busy::before { content: ''; flex: 0 0 auto; width: 11px; height: 11px; border: 2px solid var(--tint-hover); border-top-color: var(--teal); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .lookup-status.busy::before { animation: lookup-spin .85s linear infinite; } }
@keyframes lookup-spin { to { transform: rotate(360deg); } }
.field-message { margin: 12px 0; color: var(--clay); font-size: .88rem; line-height: 1.5; }
.choice-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.choice-list:not(:empty) { margin-top: 12px; }
.result-card { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 72px; padding: 12px 10px; border: 0; border-radius: 12px; color: var(--ink); background: transparent; text-align: left; }
.result-picture { position: relative; display: grid; place-items: center; width: 52px; height: 52px; background: var(--teal); color: var(--paper); font-weight: 700; font-size: 1.1rem; border-radius: 10px; overflow: hidden; }
.account-choice .result-picture { border-radius: 50%; }
.result-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--tint-hover); }
.result-identity { display: grid; justify-items: start; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.result-identity strong { font-size: .97rem; line-height: 1.3; }
.result-identity small { font-size: .77rem; color: var(--teal); }
.pass-tag { color: var(--teal); font-size: .72rem; font-weight: 700; }
.pass-tag::before { content: ''; display: inline-block; vertical-align: .09em; margin-right: 5px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-action { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 10px; border-radius: 8px; background: var(--tint); color: var(--teal); font-size: .81rem; font-weight: 700; }
.card-action::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.more-button { margin-top: 12px; width: 100%; }
.manual-place { margin-bottom: 16px; }
.manual-place summary { list-style: none; }
.manual-place summary::-webkit-details-marker { display: none; }
.manual-place summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
.manual-place[open] summary::after { transform: translateY(2px) rotate(225deg); }
.manual-place .input-group { margin-top: 12px; }
.pass-price { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; margin: 14px 0; }
.pass-price>span { font-size: .85rem; color: var(--teal); }
.pass-price strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.pass-price button { background: var(--tint); }
.guide-link { margin: 18px 0 0; width: 100%; background: var(--teal); color: var(--paper); }
.guide-link:hover { background: var(--ink); }
.sales-guide { margin: 8px 0 12px; max-width: 450px; }
.sales-guide-screen { container-type: inline-size; isolation: isolate; position: relative; overflow: hidden; border-radius: 10px; background: var(--ink); }
.sales-guide-screen img { position: relative; display: block; width: 100%; height: auto; }
/* The GIF reveals this value through its Price field at the paste frame. */
.sales-guide-value { position: absolute; left: 13.43%; top: 34.05%; transform: translateY(-50%); color: #f7f7f8; font: 600 3.94cqw/1 "Segoe UI", Arial, sans-serif; }
#step-pass:has(.sales-guide) #pass-setup > .step-copy { display: none; }
#pass-verify { display: flex; width: 100%; margin-top: 8px; background: transparent; border: 1px solid var(--teal); }
.final-details { display: grid; gap: 16px; padding: 0; margin: 24px 0; }
.final-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .88rem; }
.final-details dt { color: var(--teal); }
.final-details dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.success-panel > p { font-size: .88rem; line-height: 1.5; margin-bottom: 14px; }
.free-order-result{display:grid;gap:9px;margin-top:15px}.free-order-result strong{overflow-wrap:anywhere}.free-order-result p{font-size:.88rem;line-height:1.5}.free-order-result .secondary-button{width:100%}#free-order-button{margin-top:15px}#free-order-error{margin-top:10px}
#pass-status:has(+ #pass-setup[hidden]) { font-weight: 700; }
.buyer-info { display: grid; grid-template-columns: 35% 1fr; gap: 5%; padding-block: 48px 58px; }
.help-intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.help-intro p { max-width: 28ch; color: var(--muted); font-size: .96rem; line-height: 1.6; margin-top: 10px; }
.mascot-smile-wrap { display: block; position: relative; width: 112px; aspect-ratio: 144 / 136; margin-top: 17px; }
.mascot-smile-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mascot-smile { position: absolute; inset: 0; }
.mascot-smile.is-paused { visibility: hidden; }
.help-list details { border-bottom: 1px solid var(--line); padding-inline: 8px; }
.help-list details:first-child { border-top: 1px solid var(--line); }
.help-list summary { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-weight: 700; list-style: none; padding-block: 11px; }
.help-list summary::-webkit-details-marker { display: none; }
.help-list summary::after { content: ""; width: 9px; height: 9px; margin: 0 5px; transform: translateY(-2px) rotate(45deg); border: solid var(--teal); border-width: 0 2px 2px 0; flex: none; }
.help-list [open] summary::after { transform: translateY(2px) rotate(225deg); }
.help-list summary:hover, .help-list a { color: var(--teal); }
.help-list details p { color: var(--muted); font-size: .92rem; line-height: 1.6; padding: 0 25px 16px 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: .81rem; }
.site-footer .brand { font-size: .97rem; color: var(--ink); }
.site-footer .brand span { color: var(--teal); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-legal a { min-height: 36px; display: inline-flex; align-items: center; color: var(--teal); font-weight: 700; text-decoration: none; }
.footer-legal a:hover { color: var(--clay); text-decoration: underline; }
.footer-contact { display: grid; gap: 4px; justify-items: end; text-align: right; }
.footer-contact a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.footer-contact a:hover { color: var(--teal); }
.footer-contact a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 1000px) {
  .calc-stage { width: min(658px, calc(100% - 152px)); }
  .token-left { width: clamp(62px,13vw,130px); right: calc(100% - 14px); }
  .token-right { width: clamp(55px,11vw,110px); left: calc(100% - 14px); }
}
@media (max-width: 800px) {
  .hero-heading { padding-block: 34px 40px; }
  .token-left { top: -42px; right: calc(100% - 22px); }
  .token-right { top: -46px; left: calc(100% - 22px); }
  .buyer-info { grid-template-columns: 28% 1fr; gap: 7%; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .site-header { height: 59px; }
  .brand { font-size: 1rem; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .81rem; }
  .hero-heading { padding: 31px 10px 66px; }
  .hero-heading h1 { font-size: clamp(1.85rem, 7.8vw, 3rem); }
  .hero-heading p { font-size: .89rem; margin-top: 7px; }
  .calc-stage { width: calc(100% - 34px); max-width: 470px; }
  .token-left { width: clamp(88px, 25vw, 108px); right: auto; left: -14px; top: -70px; }
  .token-right { width: clamp(82px, 22vw, 100px); left: auto; right: -14px; top: -67px; }
  .checkout { padding: 37px 18px 19px; border-radius: 12px; }
  .panel h2 { font-size: 1.12rem; }
  .panel-head { margin-bottom: 15px; }
  .rate { font-size: .79rem; }
  .amount-grid { grid-template-columns: minmax(0,1fr) 21px minmax(0,1fr); }
  .exchange-field { padding: 10px; }
  .figure input { font-size: clamp(1.28rem, 5.8vw, 1.9rem); }
  .figure b { font-size: 1rem; }
  .exchange-field > span:first-child { font-size: .76rem; }
  .quick-amounts { gap: 5px; }
  .quick-amounts button { font-size: .77rem; padding: 0 2px; }
  .checkout-bottom { margin-top: 17px; padding-top: 16px; }
  .advance { min-width: 0; padding-inline: 16px; }
  #buy-page { padding-bottom: 50px; }
  .availability { margin-top: 13px; max-width: 405px; font-size: .8rem; }
  .buyer-info { grid-template-columns: 1fr; gap: 17px; padding-block: 27px 38px; }
  .help-intro p { max-width: none; font-size: .87rem; margin-top: 4px; }
  .help-intro { display: grid; grid-template-columns: minmax(0, 1fr) 88px; column-gap: 10px; }
  .help-intro h2 { grid-column: 1 / -1; }
  .help-intro p { grid-column: 1; }
  .mascot-smile-wrap { grid-column: 2; grid-row: 2; width: 88px; margin-top: 0; }
  .help-list summary { font-size: .93rem; min-height: 54px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { justify-content: flex-start; }
  .footer-contact { justify-items: start; text-align: left; }
  .steps { grid-template-columns: 1fr 1.16fr 1fr 1.2fr; }
  .step-marker { font-size: .75rem; gap: 4px; white-space: nowrap; }
  .pass-price { grid-template-columns: 1fr auto; row-gap: 2px; }
  .pass-price button { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
  .result-card { gap: 9px; padding: 10px; }
  .result-picture { width: 46px; height: 46px; }
  .card-action { gap: 3px; font-size: .76rem; }
  .back-button { min-height: 44px; font-size: .72rem; }
  .pass-price button { padding-inline: 12px; margin-top: 6px; }
}
@media (max-width: 480px) {
  .site-header nav a[href="#calculator"] { display: none; }
  .site-header nav a[href="#help"] { display: none; }
}
@media (max-width: 360px) {
  .checkout { padding-inline: 13px; }
  .exchange-field { padding-inline: 7px; }
  .quick-amounts button { font-size: .73rem; }
  .step-marker b { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.token > img, .token > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.token > canvas { visibility: hidden; }
.token.rendered img { visibility: hidden; }
.token.rendered canvas { visibility: visible; pointer-events: auto; touch-action: pan-y; cursor: grab; }
.token.rendered canvas:active { cursor: grabbing; }
@media (max-width:650px) {
  .figure input.long-value { font-size: clamp(1rem,4.4vw,1.4rem); }
}

@media (hover: hover) and (pointer: fine) {
  .quick-amounts button:enabled:hover:not(.selected) { background: var(--tint-hover); }
  :is(.primary-button, .secondary-button):enabled:hover { box-shadow: inset 0 0 0 2px currentColor; }
  .step-marker:enabled:hover:not(.current) { background: var(--tint-hover); }
  :is(.back-button, .reset-button, .cancel-request, #copy-price, .recent-searches button, .guide-link, .manual-place summary, .result-card):hover { background: var(--tint-hover); }
}
.quick-amounts button:enabled:active { background: var(--clay); color: var(--paper); }
:is(.secondary-button, .step-marker):enabled:active { box-shadow: inset 0 0 0 2px currentColor; }
:is(.back-button, .reset-button, .cancel-request, #copy-price, .result-card):enabled:active { background: var(--teal); color: var(--paper); }
.result-card:active :is(small,.pass-tag,.card-action) { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  .advance .arrow { transition: transform 180ms var(--button-ease); }
  .advance:enabled:focus-visible .arrow { transform: translateX(4px); }
  @media (hover: hover) and (pointer: fine) {
    .advance:enabled:hover .arrow { transform: translateX(4px); }
  }
  .advance:enabled:active .arrow { transform: translateX(6px); transition-duration: 80ms; }
  :is(.primary-button, .secondary-button, .step-marker):enabled {
    transition: box-shadow 130ms var(--button-ease), border-color 130ms ease-out;
  }
  :is(.quick-amounts button, .back-button, .reset-button, .cancel-request, #copy-price, .result-card, .recent-searches button):enabled {
    transition: background-color 140ms ease-out, color 120ms ease-out;
  }
  .help-list summary::after { transition: transform 180ms var(--button-ease); }
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.account-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; max-width: 190px; padding: 5px 12px; border: 1px solid var(--orange); border-radius: 9px; background: var(--orange); color: var(--ink); font-weight: 700; white-space: nowrap; }
.account-trigger:hover { background: var(--paper); border-color: var(--paper); }
.account-trigger:focus-visible { outline-color: var(--orange); }
.account-trigger span { overflow: hidden; text-overflow: ellipsis; }
.account-trigger img { width: 25px; height: 25px; border-radius: 6px; object-fit: cover; }
.account-panel { position: fixed; inset: 0; width: min(540px, calc(100% - 36px)); max-width: none; max-height: calc(100dvh - 36px); margin: auto; padding: 25px 27px 22px; overflow-y: auto; border: 0; border-radius: 15px; background: var(--paper); color: var(--ink); }
.account-panel::backdrop { background: color-mix(in srgb, var(--ink) 72%, transparent); backdrop-filter: blur(4px); }
@keyframes account-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes account-dialog-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(9px) scale(.98); } }
@keyframes account-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes account-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.account-panel[open]:not(.is-closing) { animation: account-dialog-in 220ms cubic-bezier(.18,.8,.25,1) both; }
.account-panel[open]:not(.is-closing)::backdrop { animation: account-backdrop-in 220ms ease-out both; }
.account-panel.is-closing { animation: account-dialog-out 180ms ease-in both; }
.account-panel.is-closing::backdrop { animation: account-backdrop-out 180ms ease-in both; }
.account-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-panel-head h2 { font: 700 1.13rem/1.3 Manrope, sans-serif; letter-spacing: 0; }
.account-panel-head button, .account-panel-actions button { border: 0; border-radius: 8px; background: var(--tint); color: var(--teal); padding: 8px 11px; font-weight: 700; }
.account-panel-head button:hover, .account-panel-actions button:hover { background: var(--teal); color: var(--paper); }
.account-panel form { margin-top: 19px; }
.account-panel form p { color: var(--teal); font-size: .88rem; margin-bottom: 13px; }
.account-panel label { display: block; color: var(--teal); font-size: .83rem; font-weight: 700; margin-bottom: 7px; }
.account-login-row { display: flex; gap: 10px; align-items: stretch; }
.account-login-row input { min-width: 0; flex: 1; height: 44px; border: 1px solid var(--teal); border-radius: 9px; background: var(--paper); padding: 0 12px; color: var(--ink); }
.account-login-row button { width: auto; flex: none; min-height: 44px; padding-inline: 18px; }
.account-profile { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.account-profile > div { min-width: 0; }
.account-panel #account-login-status { margin: 12px 0 0; min-height: 0; }
.account-panel #account-login-status:empty { display: none; }
.account-login-row input[readonly] { opacity: .7; }
.purchases-list { display: grid; gap: 12px; }
.purchase-item { padding: 16px; border-radius: 10px; background: var(--tint); }
.purchase-item strong { display: block; font-size: .85rem; overflow-wrap: anywhere; }
.purchase-summary { display: block; margin-top: 8px; font-weight: 700; }
.purchase-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 10px; font-size: .78rem; color: var(--teal); }
.purchase-timer { margin: 12px 0 0; color: var(--teal); font-size: .82rem; line-height: 1.5; }
.purchase-retry { margin-top: 12px; width: 100%; }
.purchases-empty { padding: 24px 0 8px; }
.purchases-empty strong { font-size: 1.15rem; }
.purchases-empty p { margin: 9px 0 20px; color: var(--teal); font-size: .9rem; line-height: 1.6; }
#account-purchases > .account-panel-actions:has(button:not([hidden])) { margin-top: 16px; }
.account-profile img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; background: var(--teal); }
.account-profile strong, .account-profile span { display: block; }
.account-profile span { color: var(--teal); font-size: .79rem; }
.account-panel-actions { display: flex; gap: 12px; margin-top: 16px; }
.signed-suggestion { display: flex; align-items: center; gap: 12px; padding: 0; margin: 20px 0 24px; border-radius: 10px; background: transparent; }
.signed-suggestion img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; background: var(--teal); }
.signed-suggestion div { min-width: 0; flex: 1; }
.signed-suggestion span, .signed-suggestion strong { display: block; }
.signed-suggestion span { color: var(--teal); font-size: .75rem; }
.signed-suggestion strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed-suggestion button { width: auto; flex: none; padding-inline: 12px; }
@media (max-width: 650px) {
  .header-actions { gap: 9px; }
  .site-header nav { gap: 9px; }
  .account-trigger { max-width: 115px; min-height: 35px; padding-inline: 9px; font-size: .8rem; }
  .account-panel { width: calc(100% - 28px); max-height: calc(100dvh - 28px); padding: 20px; }
  .account-login-row { flex-wrap: wrap; }
  .account-login-row input { flex-basis: 100%; }
  .account-login-row button { width: 100%; }
  .signed-suggestion { flex-wrap: wrap; }
  .signed-suggestion button { width: 100%; }
}
@media (max-width: 360px) { .site-header nav a[href="#help"] { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .account-panel[open], .account-panel[open]::backdrop { animation: none !important; }
  .mascot-smile-wrap { display: none; }
}
