.shop-shell { display:flex; flex-direction:column; min-height:100vh; }
.shop-shell [hidden] { display:none !important; }
.shell-wrap { width:min(79rem,calc(100% - clamp(2rem,8vw,9rem))); margin-inline:auto; }
.shell-header { border-bottom:1px solid var(--ink); }
.shell-bar, .shell-tools, .shell-footer > div, .shell-footer nav { display:flex; align-items:center; }
.shell-bar { min-height:5rem; justify-content:space-between; gap:1rem; }
.shell-tools, .shell-footer nav { flex-wrap:wrap; gap:.5rem clamp(1rem,2vw,1.7rem); }
.shell-tools { justify-content:flex-end; font-size:.95rem; font-weight:600; }
.shell-footer { margin-top:auto; border-top:1px solid var(--ink); }
.shell-footer > div { padding-block:1.45rem; flex-wrap:wrap; justify-content:space-between; gap:1rem; }
.shell-footer nav { font-size:.93rem; }
.shell-main { padding-block:clamp(1.8rem,4vw,4rem); }
.shell-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--panel-radius); padding:clamp(1rem,3vw,2.25rem); box-shadow:var(--lift); }
.shell-heading, .auth-intro h1, .account-top h1 { font:760 clamp(2.5rem,4.9vw,4.75rem)/1.04 var(--display); letter-spacing:-.055em; text-wrap:balance; overflow-wrap:anywhere; }
.shop-shell label { color:var(--ink); font-size:.94rem; font-weight:650; }
.shop-shell input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .shop-shell textarea, .shop-shell select {
  width:100%; min-width:0; min-height:2.85rem; border:1px solid #b6a2b0; border-radius:var(--field-radius); background:var(--surface);
  padding:.55rem .75rem; font:400 1rem/1.4 var(--sans); color:var(--ink);
}
.shop-shell textarea { resize:vertical; }
.shop-shell .primary-button, .shop-shell .secondary-button, .shop-shell .danger-button {
  display:inline-flex; align-items:center; justify-content:center; min-height:2.85rem; max-width:100%;
  padding:.58rem 1rem; background:var(--ink); color:var(--paper); border:1px solid var(--ink); border-radius:2rem;
  font:650 .97rem/1.35 var(--sans); text-decoration:none; text-align:center;
}
.shop-shell .secondary-button, .shop-shell .danger-button { color:var(--ink); background:#fffaf5; }
.shop-shell .primary-button:hover { background:#56213f; }
.shop-shell .secondary-button:hover, .shop-shell .danger-button:hover { background:var(--pale); }
.shop-shell button[disabled] { opacity:.65; cursor:wait; }
.shop-shell .muted, .shell-hint { color:var(--muted); font-weight:400; }
.shop-shell .muted, .shell-hint, .consent-note { font-size:.9rem; }
.auth-layout { max-width:66rem; display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); margin-block:clamp(1.75rem,5vw,5rem); border:1px solid var(--line); border-radius:var(--panel-radius); box-shadow:var(--lift); background:var(--surface); }
.auth-intro, .auth-content { padding:clamp(1.35rem,4.2vw,3.8rem); }
.auth-intro { display:flex; flex-direction:column; align-items:start; gap:1rem; background:var(--wash); border-radius:var(--panel-radius) 0 0 var(--panel-radius); }
.auth-intro p { max-width:33ch; line-height:1.55; }
.auth-art { display:block; width:clamp(6rem,13vw,11rem); height:auto; aspect-ratio:1; object-fit:contain; object-position:left bottom; margin-top:auto; padding-top:1.2rem; }
.auth-content { min-width:0; }
.auth-content form, .account-form-grid, .account-inline-form { display:grid; align-items:end; gap:1rem; }
.auth-content form > label:not(.setting-switch), .account-form-grid > label:not(.setting-switch), .account-inline-form > label { display:grid; gap:.35rem; min-width:0; }
.auth-content .primary-button { width:100%; margin-top:.15rem; }
.setting-switch { display:grid; grid-template-columns:1.25rem minmax(0,1fr); align-items:start; gap:.7rem; cursor:pointer; }
.setting-switch strong, .setting-switch small { display:block; }
.setting-switch small { color:var(--muted); font-size:.85rem; font-weight:400; margin-top:.15rem; }
.setting-switch input { width:1.13rem; height:1.13rem; margin:.18rem 0 0; accent-color:#952452; }
.auth-content .form-error, .auth-notice, .account-status:not(:empty) { margin:0 0 1rem; padding:.75rem .85rem; border-left:3px solid #476650; background:#edf4eb; overflow-wrap:anywhere; }
.auth-content .form-error, .account-status.is-error { border-color:#a1284c; background:#ffedf1; }
.auth-actions { display:flex; align-items:baseline; flex-wrap:wrap; gap:.45rem 1.1rem; margin-top:1rem; }
.auth-text-button { display:inline; padding:0; background-color:transparent; font:600 .91rem/1.5 var(--sans); }
.auth-switch { margin-top:1.4rem; padding-top:1rem; border-top:1px solid var(--line); font-size:.94rem; }
.auth-switch a { font-weight:650; }
#auth-turnstile:not(:empty) { min-width:0; }
#auth-turnstile > p:not([hidden]) { margin:.8rem 0; }
.account-top { padding-block:clamp(1.6rem,3.5vw,3rem); border-bottom:1px solid var(--line); background:var(--wash); }
.account-top p { margin:.8rem 0 0; }
.account-layout { max-width:70rem; display:grid; grid-template-columns:minmax(9rem,.55fr) minmax(0,2fr); gap:clamp(1.4rem,4vw,4rem); padding-block:clamp(1.6rem,3.5vw,3rem); align-items:start; }
.account-index { position:sticky; top:1.25rem; display:grid; gap:.4rem; border-top:2px solid var(--ink); padding-top:.6rem; }
.account-index a { width:fit-content; font-size:.95rem; padding:.25rem 0; font-weight:650; }
.account-sections { min-width:0; display:grid; gap:1.15rem; }
.account-card { min-width:0; padding:clamp(1.1rem,2.7vw,2rem); border:1px solid var(--line); border-radius:var(--panel-radius); background:var(--surface); }
.account-card-title { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:.55rem 1rem; margin-bottom:1.2rem; }
.account-card h2 { font:730 clamp(1.55rem,2.5vw,2.1rem)/1.14 var(--display); letter-spacing:-.035em; overflow-wrap:anywhere; }
.account-card-title small { display:block; color:var(--muted); }
.account-current-email { overflow-wrap:anywhere; font-weight:550; }
.account-avatar-preview { display:grid; place-items:center; width:3.25rem; height:3.25rem; border-radius:50%; background:var(--pale); overflow:hidden; font-weight:750; }
.account-avatar-preview img { width:100%; height:100%; object-fit:cover; }
.account-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.account-span-2 { grid-column:1/-1; }
.account-inline-form { grid-template-columns:minmax(0,1fr) auto; }
.account-card form + form { margin-top:1rem; }
.account-status:not(:empty) { margin:1rem 0 0; }
.status-badge { padding:.2rem .6rem; border-radius:1rem; background:var(--pale); font-size:.85rem; font-weight:650; }
.two-factor-setup, .backup-codes { margin-top:1rem; display:grid; gap:.7rem; }
.two-factor-setup img { width:10rem; height:10rem; }
.two-factor-setup code, .backup-codes code { width:fit-content; padding:.2rem .4rem; background:var(--pale); overflow-wrap:anywhere; }
#backup-code-list { display:flex; flex-wrap:wrap; gap:.45rem; }
.client-video-row { display:flex; gap:.65rem; align-items:center; }
.client-video-row img { width:4rem; }
.client-video-row small { display:block; }
.impersonation-banner { padding:.5rem 1rem; text-align:center; background:#ffe3ef; }
@media(max-width:45rem) {
  .auth-layout { grid-template-columns:minmax(0,1fr); max-width:33rem; }
  .auth-intro { display:block; position:relative; padding-right:7.35rem; border-radius:var(--panel-radius) var(--panel-radius) 0 0; }
  .auth-intro h1 { font-size:clamp(2rem,6vw,3rem); }
  .auth-intro p { margin:.65rem 0 0; }
  .auth-art { position:absolute; bottom:1rem; right:.75rem; width:5.6rem; padding:0; }
  .account-layout { grid-template-columns:minmax(0,1fr); }
  .account-index { display:flex; position:static; flex-wrap:wrap; gap:.35rem 1rem; }
  .account-form-grid, .account-inline-form { grid-template-columns:minmax(0,1fr); }
  .account-inline-form > button { justify-self:start; }
}
@media(max-width:27rem) {
  .shell-tools { gap:.5rem; font-size:.82rem; }
  .shell-bar { min-height:4.4rem; gap:.4rem; }
  .auth-layout { margin-block:1rem; }
  .auth-intro { padding-right:1.2rem; }
  .auth-art { display:none; }
  .shell-footer > div { align-items:start; flex-direction:column; }
}
