.checkout-modal {
  --ink:#232326; --muted:#606068; --green:#38343f; --line:#dfdfe3;
  width:min(440px,calc(100% - 24px)); max-width:none; max-height:calc(100dvh - 28px);
  padding:clamp(20px,5vw,30px); border:0; border-radius:18px; background:#fff; color:var(--ink);
  box-shadow:0 0 0 1px #15151812,0 8px 18px #15151812,0 28px 80px #15151830;
}
.checkout-modal::backdrop { background:rgb(24 22 28 / 48%); }
.checkout-modal .modal-close { top:10px; right:10px; height:44px; width:44px; border:0; background:transparent; color:#606068; border-radius:10px; }
.checkout-modal h2 { margin:0 38px 24px 0; font-size:1.65rem; line-height:1.2; letter-spacing:-.05em; font-weight:650; }
.checkout-modal p { font-size:.9375rem; line-height:1.5; }
#checkout-summary { margin:0; min-width:0; padding:0; border:0; background:none; }
#checkout-summary legend,.checkout-modal .email-label { padding:0; font-size:.875rem; font-weight:600; color:var(--ink); }
#checkout-summary .checkout-plans { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:8px 0 0; }
.checkout-plans label { position:relative; display:grid; gap:6px; padding:14px; border-radius:10px; background:#fff;
  box-shadow:inset 0 0 0 1px #d9d9df; cursor:pointer; }
.checkout-plans input { position:absolute; right:12px; top:14px; margin:0; width:16px; height:16px; accent-color:#3c3545; }
.checkout-plans span { padding-right:20px; font-size:.875rem; color:#57565e; }
.checkout-plans strong { font-size:1.45rem; font-weight:620; font-variant-numeric:tabular-nums; letter-spacing:-.045em; }
.checkout-plans label:has(:checked) { background:#f7f6f8; box-shadow:inset 0 0 0 1.5px #423c49; }
.checkout-plans label:has(:focus-visible) { outline:2px solid #715689; outline-offset:3px; }
.checkout-modal .connected { gap:16px; align-items:center; padding:16px 0; margin:18px 0;
  border-block:1px solid var(--line); font-size:.875rem; }
.checkout-modal .connected div { min-width:0; display:grid; gap:4px; overflow-wrap:anywhere; }
.checkout-modal .connected small { color:var(--muted); font-size:.8125rem; }
.checkout-modal .connected button { color:#51445e; padding:8px 0 8px 8px; font-size:.875rem; }
#purchase-controls input[type=email] { height:44px; margin:7px 0 0; color:var(--ink); border:1px solid #c8c8ce; background:white; font-size:1rem; }
.checkout-modal .consent { font-size:.875rem; line-height:1.5; color:#4b4a52; align-items:flex-start; gap:10px; margin:18px 0; }
.checkout-modal .consent input { margin:2px 0 0; accent-color:var(--green); }
.checkout-modal .inline-link { text-underline-offset:3px; }
.checkout-modal .button { min-height:46px; font-size:.9375rem; padding:12px; border-radius:10px; }
.checkout-modal .button-dark { background:#2e2a33; border-color:#2e2a33; color:#fff; }
.checkout-modal .button:disabled { background:#e9e8eb; color:#64616a; border-color:transparent; opacity:1; }
.checkout-modal .button:hover { transform:none; }
.checkout-modal .create-link { display:block; text-align:center; padding:12px; color:var(--green); }
#payment-method { margin:10px 0 0; text-align:center; color:var(--muted); font-size:.8125rem; }
#order-reference:not(:empty) { display:block; overflow-wrap:anywhere; margin:12px 0; }
@media (hover:hover) and (pointer:fine) {
  .checkout-modal .modal-close:hover,.checkout-plans label:hover { background:#f3f2f4; }
  .checkout-modal .button-dark:enabled:hover,.checkout-modal a.button-dark:hover { background:#201d25; }
}
@media (prefers-reduced-motion:no-preference) {
  .checkout-modal[open] { opacity:1; transform:scale(1); transition:opacity 160ms ease-out,transform 200ms cubic-bezier(.23,1,.32,1); }
  @starting-style { .checkout-modal[open] { opacity:0; transform:scale(.985); } }
  .checkout-modal .button { transition:transform 120ms cubic-bezier(.23,1,.32,1); }
  .checkout-modal .button:active:not(:disabled) { transform:scale(.98); }
}
#account { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:min(38vw,320px); text-transform:none; letter-spacing:0; }
.guest { background:var(--bg); }
.guest .sidebar { position:static; width:min(1088px,calc(100% - 48px)); margin:auto; padding:18px 0;
  background:transparent; border:0; border-bottom:1px solid #e2d9e7; height:auto; box-shadow:none; }
.guest :is(.nav-label,#tabs,.sidebar-bottom,#menu-toggle,.topbar,footer) { display:none; }
.guest .main-shell { margin:0; }
.guest #workspace { max-width:1088px; padding:0; margin:clamp(32px,6vh,80px) auto; width:calc(100% - 48px); }
.account-entry { display:grid; grid-template-columns:1.05fr 1fr; align-items:stretch; border:1px solid #e2d6e8;
  border-radius:28px; overflow:hidden; background:white; box-shadow:0 16px 54px #4f32610b; }
.account-picture { display:flex; flex-direction:column; justify-content:center; background:#f0eaf4; color:var(--plum); }
.account-picture img { display:block; width:100%; height:auto; }
.account-picture div { padding:26px clamp(24px,4vw,54px) 36px; }
.account-picture h2 { font:650 clamp(1.65rem,2.5vw,2.3rem)/1.15 Inter,Arial,sans-serif; letter-spacing:-.04em; margin:0; }
.account-picture p, .account-panel>p { margin:10px 0 0; font-size:1rem; line-height:1.55; color:var(--soft-ink); }
.account-panel { align-self:center; width:100%; padding:clamp(28px,4.5vw,65px); }
.account-switch { display:flex; border-radius:14px; background:#f3eef7; padding:4px; }
.account-switch button { flex:1; padding:9px; border:0; border-radius:10px; background:transparent; color:var(--soft-ink); font-size:.9rem; }
.account-switch [aria-pressed=true] { background:white; color:var(--plum); font-weight:650; box-shadow:0 1px 6px #3f22441c; }
.account-panel h1 { margin:28px 0 0; color:var(--plum); line-height:1.12; font-size:clamp(2rem,3.2vw,3rem); letter-spacing:-.055em; }
#account-form { display:grid; margin-top:22px; }
#account-form label { color:var(--plum); font-size:.9rem; font-weight:600; margin:0 0 6px; }
#account-form input { width:100%; height:48px; border-radius:10px; border:1px solid #cbbdd4; background:#fff; color:var(--plum);
  font-size:1rem; padding:0 14px; margin:0 0 15px; }
#password-hint { margin:-9px 0 16px; color:var(--soft-ink); font-size:.8rem; }
#auth-message { margin:0 0 14px; padding:10px 13px; background:#fff1ed; color:#8c352b; border-radius:10px; font-size:.92rem; }
.auth-primary,.auth-secondary { width:100%; min-height:48px; font-size:1rem; font-weight:600; border-radius:12px; }
.auth-primary { background:var(--iris); border:0; color:white; }
.auth-primary:hover { background:#5c358b; }
.password-entry { position:relative; }
#account-form .password-entry input { padding-right:6.1rem; }
#show-password { position:absolute; right:3px; top:2px; min-height:44px; border:0; color:var(--accent); background:transparent; font-size:.875rem; }
.auth-secondary { margin-top:10px; background:white; border-color:#d5c8dd; }
.account-panel #login-note,.account-panel #demo-login { font-size:.82rem; color:var(--soft-ink); }
.account-panel #signup-documents { font-size:.82rem; text-align:center; }
#signup-documents a { text-decoration:underline; text-underline-offset:3px; }
#demo-login { display:block; margin:16px auto 0; background:none; border:0; padding:6px; text-decoration:underline; text-underline-offset:3px; }
.account-panel :is(input,button):focus-visible,.plan-ticket :is(button,a):focus-visible { outline:3px solid #a275c7; outline-offset:3px; }
@media(max-width:850px){
  .guest #workspace { width:calc(100% - 32px); }
  .account-panel { padding:28px; }
}
@media(max-width:680px){
  .guest #workspace { margin:20px auto; }
  .account-entry { display:flex; flex-direction:column-reverse; border-radius:20px; }
  .account-panel { padding:24px 20px; }
  .account-picture { flex-direction:row; align-items:center; }
  .account-picture img { width:34%; }
  .account-picture div { padding:14px; }
  .account-picture h2 { font-size:1.4rem; }
  .account-picture p { font-size:.85rem; margin-top:5px; }
}
