/* Account centre (2026-10-29 redesign): same riso look as the shop — lilac paper, ink outlines, yolk + pink accents,
   Bagel Fat One headings. Fonts are self-hosted because account pages only allow same-origin resources. */
@font-face{font-family:"Bagel Fat One";font-style:normal;font-weight:400;font-display:swap;src:url(./fonts/bagel-fat-one-latin.woff2) format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:400 800;font-display:swap;src:url(./fonts/hanken-grotesk-latin.woff2) format("woff2")}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:400;font-display:swap;src:url(./fonts/space-mono-400-latin.woff2) format("woff2")}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:700;font-display:swap;src:url(./fonts/space-mono-700-latin.woff2) format("woff2")}

/* ---------- header (also used by photos.html) ---------- */
.account-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:66px;padding:10px max(20px,calc((100vw - 1200px)/2));background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:2px solid var(--ink)}
.account-header>a:first-child{display:inline-flex;align-items:center;gap:10px;font-family:var(--display);font-size:24px;line-height:1;color:var(--blue);text-decoration:none;min-height:44px}
.account-logo svg{width:34px;height:34px;flex:none}
.account-header>a:last-child{font-weight:800;font-size:15px;text-decoration:none;padding:9px 16px;border:2px solid var(--ink);border-radius:99px;background:var(--white);transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.account-header>a:last-child:hover{transform:translate(-2px,-2px);box-shadow:3px 3px 0 var(--pink)}
.account-nav{display:flex;gap:4px;margin-left:auto}
.account-nav a{position:relative;padding:12px 10px;font-weight:700;font-size:15px;text-decoration:none}
.account-nav a::after{content:"";position:absolute;left:10px;right:10px;bottom:6px;height:3px;background:var(--pink);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease)}
.account-nav a:hover::after{transform:scaleX(1)}

/* The shop's grain overlay is a data: image that the account CSP blocks, so it never paints here; drop the empty layer. */
body.account-page::after{content:none}

/* ---------- shared pieces ---------- */
.account-shell{max-width:1200px;margin:auto;padding:48px 24px 96px}
.account-loading{font-family:var(--mono);font-size:13px;color:var(--ink-soft)}
.account-shell h1{font-size:clamp(40px,5.4vw,72px);line-height:.98;color:var(--blue);margin:10px 0 18px}
.account-shell h2{font-family:var(--body);font-size:20px;line-height:1.25;font-weight:800;margin:0;letter-spacing:-.01em}
.account-shell h3{font-family:var(--body);font-weight:800;letter-spacing:-.01em;line-height:1.25}
.account-shell p{margin:10px 0}
.account-kicker{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--pink);font-weight:700;margin:0!important}
.account-notice{margin:0 0 28px!important;padding:12px 16px;background:var(--yolk);border:2px solid var(--ink);border-radius:12px;font-size:14px}
.account-panel{background:var(--white);border:2px solid var(--ink);border-radius:24px;padding:clamp(22px,3.4vw,36px);box-shadow:6px 6px 0 var(--ink)}
.account-shell form{display:grid;gap:16px}
.account-shell label{display:grid;gap:8px;font-weight:800;font-size:14px}
.account-shell input,.account-shell select{width:100%;min-width:0;min-height:50px;border:2px solid var(--ink);border-radius:12px;padding:12px 14px;background:var(--white);font-size:16px;font-weight:500;transition:box-shadow .15s ease}
.account-shell input:focus{outline:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--blue) 25%,transparent)}
.account-shell button,.account-action{min-height:44px;padding:10px 18px;border:2px solid var(--ink);border-radius:99px;background:var(--white);color:var(--ink);font-weight:800;font-size:15px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.account-shell button.primary,.account-action.primary-link{background:var(--blue);color:var(--white);border-color:var(--ink);box-shadow:3px 3px 0 var(--ink)}
.account-shell button.primary{min-height:52px;font-size:16px}
.account-shell button:disabled{opacity:.5;cursor:wait}
.account-shell .text-button{min-height:36px;padding:6px 2px;border:0;border-radius:4px;background:none;font-weight:700;font-size:14px;color:var(--ink-soft);text-decoration:underline;text-underline-offset:3px}
.account-shell .text-button:hover:not(:disabled){color:var(--blue)}
.account-shell .ghost-button{min-height:36px;padding:6px 14px;font-size:13px;border-width:1.5px}
.text-link{font-weight:800;font-size:14px;text-underline-offset:3px}
.account-status{min-height:0;margin:12px 0 0!important;font-size:14px;overflow-wrap:anywhere}
.account-status:empty{display:none}
.account-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:99px;background:var(--paper-2);font-size:12px;font-weight:800;margin:0}
.account-badge.paid{background:#dcf1e8;color:#185b40}
.account-badge.warn{background:#fff1c2;color:#6b4b00}
.account-badge.new{background:var(--pink);color:var(--white)}
.account-email{overflow-wrap:anywhere;font-weight:700}
.account-shell small{color:var(--ink-soft)}
.section-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-note{font-size:13px;line-height:1.5;color:var(--ink-soft)}
.account-shell :focus-visible{outline:3px solid var(--pink);outline-offset:2px}

/* ---------- sign in / register / reset ---------- */
.auth-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:clamp(32px,6vw,88px);align-items:start}
.auth-side{padding-top:12px}
.auth-lede{font-size:18px;line-height:1.5;max-width:30em}
.auth-perks{list-style:none;margin:26px 0;padding:0;display:grid;gap:12px;max-width:440px}
.auth-perks li{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;align-items:start}
.auth-perks li::before{content:"✓";grid-row:1 / span 2;display:grid;place-items:center;width:28px;height:28px;margin-top:1px;border-radius:50%;border:2px solid var(--ink);background:var(--yolk);font-weight:800;font-size:14px;line-height:1}
.auth-perks b{font-weight:800}
.auth-perks span{font-size:14px;color:var(--ink-soft)}
.auth-collage{display:flex;gap:12px;margin:8px 0 22px}
.auth-collage img{width:104px;height:104px;object-fit:contain;background:#FEFEFE;border:2px solid var(--ink);border-radius:18px}
.auth-collage img:nth-child(1){transform:rotate(-4deg)}
.auth-collage img:nth-child(2){transform:translateY(8px) rotate(3deg)}
.auth-collage img:nth-child(3){transform:rotate(-2deg)}
.auth-guest{font-size:14px;color:var(--ink-soft)}
.auth-guest a{color:var(--ink);font-weight:800;text-underline-offset:3px}
.auth-panel h2{font-size:24px;margin-bottom:6px}
.panel-intro{font-size:14px;line-height:1.5;color:var(--ink-soft);margin:6px 0 20px!important}
.auth-panel form{margin-top:18px}
.auth-panel .panel-intro+form{margin-top:0}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 24px;background:var(--paper);border:2px solid var(--ink);border-radius:99px}
.account-shell .account-tabs button{min-height:42px;border:0;background:none;font-size:15px}
.account-shell .account-tabs button[aria-current=true]{background:var(--ink);color:var(--white)}
.field-hint{margin-top:-8px;font-size:12px}
.account-shell .forgot-link{justify-self:end;margin-top:-6px}
.auth-panel>.text-button{margin-top:14px}

/* ---------- verify email ---------- */
.verify-panel{max-width:560px;margin:0 auto;text-align:center}
.verify-icon{display:inline-grid;place-items:center;width:64px;height:64px;margin-bottom:12px;border-radius:50%;background:var(--yolk);border:2px solid var(--ink)}
.verify-icon svg{width:36px;height:36px}
.verify-panel h1{font-size:clamp(36px,5vw,56px)}
.verify-panel form{margin-top:18px;text-align:left}
.code-label{justify-items:center;text-align:center}
.account-shell .code-input{max-width:300px;font-family:var(--mono);font-size:30px;font-weight:700;letter-spacing:.45em;text-align:center;padding-left:calc(14px + .45em)}
.code-input::placeholder{color:var(--paper-2)}
.verify-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 20px;margin-top:18px}

/* ---------- orders dashboard ---------- */
.dash-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;padding-bottom:26px;margin-bottom:30px;border-bottom:2px solid var(--ink)}
.dash-head h1{margin-bottom:0}
.dash-account{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px 8px 8px;background:var(--white);border:2px solid var(--ink);border-radius:99px;max-width:100%}
.dash-avatar{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--pink);color:var(--white);font-family:var(--display);font-size:18px;border:2px solid var(--ink)}
.dash-account .account-email{font-size:14px;min-width:0}
.dash-chip{padding:6px 12px;border-radius:99px;background:var(--yolk);border:1.5px solid var(--ink);font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}
.dash-status{margin:-14px 0 20px!important}
.dash-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:28px;align-items:start}
.dash-orders h2{font-size:24px;display:flex;align-items:center;gap:10px}
.count-pill{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:99px;background:var(--ink);color:var(--white);font-size:14px;font-family:var(--mono)}
.account-list{display:grid;gap:16px;margin:18px 0 0}
.order-card{background:var(--white);border:2px solid var(--ink);border-radius:22px;padding:20px;transition:box-shadow .25s var(--ease),transform .25s var(--ease)}
.order-card:hover{box-shadow:5px 5px 0 var(--paper-2)}
.order-top{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:16px;align-items:center}
.order-thumb{width:84px;height:84px;object-fit:contain;background:#FEFEFE;border:1.5px solid var(--paper-2);border-radius:14px}
.order-thumb.is-empty{display:grid;place-items:center;background:var(--paper)}
.order-thumb.is-empty svg{width:40px;height:40px;opacity:.6}
.order-meta{margin:0!important;font-family:var(--mono);font-size:12px;color:var(--ink-soft)}
.order-main h3{margin:4px 0 2px;font-size:19px}
.order-variant{margin:0!important;font-size:14px;color:var(--ink-soft)}
.order-variant:empty{display:none}
.order-total{margin:0!important;text-align:right;line-height:1.1}
.order-total strong{display:block;font-family:var(--display);font-weight:400;font-size:26px;color:var(--blue)}
.order-total small{font-family:var(--mono);font-size:11px}
.order-badges{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 0!important}
.order-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:20px 0 4px;padding:0;counter-reset:step}
.order-steps li{position:relative;display:grid;justify-items:center;gap:8px;text-align:center;font-size:12px;font-weight:700;color:var(--ink-soft);counter-increment:step}
.order-steps li::before{content:counter(step);position:relative;z-index:1;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--white);border:2px solid var(--paper-2);font-family:var(--mono);font-size:11px;color:var(--ink-soft)}
.order-steps li::after{content:"";position:absolute;top:12px;left:-50%;width:100%;height:3px;background:var(--paper-2)}
.order-steps li:first-child::after{display:none}
.order-steps li.done,.order-steps li.current{color:var(--ink)}
.order-steps li.done::before{content:"✓";background:var(--blue);border-color:var(--ink);color:var(--white)}
.order-steps li.current::before{background:var(--yolk);border-color:var(--ink);color:var(--ink);box-shadow:0 0 0 4px color-mix(in srgb,var(--yolk) 40%,transparent)}
.order-steps li.done::after,.order-steps li.current::after{background:var(--blue)}
.order-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:16px}
.order-actions:empty{display:none}
.order-tracking{font-size:14px}
.order-tracking b{font-family:var(--mono)}
.order-more{margin-top:14px;border-top:1.5px dashed var(--paper-2);padding-top:6px}
.order-more summary{display:inline-flex;align-items:center;gap:6px;min-height:36px;cursor:pointer;font-weight:800;font-size:14px;list-style:none}
.order-more summary::-webkit-details-marker{display:none}
.order-more summary::after{content:"+";display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--paper);border:1.5px solid var(--ink);font-size:13px;line-height:1}
.order-more[open] summary::after{content:"−"}
.order-more dl,.account-order-dialog dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 20px;margin:10px 0;font-size:14px}
.order-more dt,.account-order-dialog dt{color:var(--ink-soft)}
.order-more dd,.account-order-dialog dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere}
.order-more small{display:block;font-size:12px;line-height:1.5}
.account-empty{display:grid;justify-items:center;text-align:center;gap:6px;padding:36px 24px 40px;background:var(--white);border:2px solid var(--ink);border-radius:22px}
.account-empty h3{font-size:22px;margin:4px 0 0}
.account-empty p{max-width:32em;color:var(--ink-soft);font-size:15px}
.account-empty .auth-collage{margin:0 0 6px}
.account-empty .auth-collage img{width:84px;height:84px}
.account-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:22px;font-family:var(--mono);font-size:13px}

/* ---------- side column ---------- */
.dash-side{display:grid;gap:16px}
.side-card{background:var(--white);border:2px solid var(--ink);border-radius:22px;padding:20px}
.side-card h2{font-size:18px}
.account-updates{margin:0}
.updates-meta{margin:2px 0 0!important}
#updates-count{font-family:var(--mono);font-size:12px;font-weight:700;color:var(--pink)}
#updates-error:empty{display:none}
.update-row{position:relative;padding:12px 0 12px 16px;border-top:1.5px solid var(--paper-2);overflow-wrap:anywhere}
.update-row::before{content:"";position:absolute;left:0;top:18px;width:8px;height:8px;border-radius:50%;background:var(--paper-2)}
.update-row.unread::before{background:var(--pink)}
.update-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px}
.update-row time{font-family:var(--mono);font-size:11px;color:var(--ink-soft)}
.update-row ul{padding-left:18px;margin:8px 0;font-size:13px;line-height:1.5}
.update-actions{display:flex;flex-wrap:wrap;gap:0 14px}
.updates-empty{margin:12px 0 0!important;padding:14px;border-radius:14px;background:var(--paper);font-size:13px;color:var(--ink-soft)}
.account-claim summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;min-height:44px}
.account-claim summary::-webkit-details-marker{display:none}
.account-claim summary>span{display:grid;gap:2px}
.account-claim summary b{font-size:16px}
.account-claim summary::after{content:"+";flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--yolk);border:2px solid var(--ink);font-size:16px;line-height:1}
.account-claim[open] summary::after{content:"−"}
.account-claim p{font-size:13px;line-height:1.5;color:var(--ink-soft)}
.help-card{background:var(--yolk)}
.help-card p{font-size:14px}
.help-card .account-action{margin:6px 12px 6px 0}

/* ---------- order dialog ---------- */
.account-order-dialog{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:28px 24px 24px;border:2px solid var(--ink);border-radius:22px;background:var(--white);color:var(--ink);box-shadow:6px 6px 0 var(--ink);overflow-wrap:anywhere}
.account-order-dialog::backdrop{background:#16136A80}
.account-order-dialog .close-order{position:absolute;top:10px;right:10px;width:40px;height:40px;min-height:0;padding:0;font-size:22px}
.account-order-dialog .order-top{padding-right:36px}

@media (max-width:980px){
  .account-nav{display:none}
  .dash-grid{grid-template-columns:1fr}
  .auth-grid{grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:32px}
}
@media (max-width:760px){
  .account-shell{padding:28px 16px 64px}
  .account-header{padding:8px 16px;min-height:58px}
  .account-header>a:first-child{font-size:20px}
  .account-header>a:last-child{font-size:14px;padding:7px 12px}
  .auth-grid{grid-template-columns:1fr;gap:24px}
  .auth-side h1{font-size:42px}
  .auth-lede{font-size:16px}
  .auth-perks,.auth-side .auth-collage{display:none}
  .auth-side{padding-top:0}
  .auth-guest{display:none}
  .account-panel{box-shadow:4px 4px 0 var(--ink)}
  .dash-head{padding-bottom:20px;margin-bottom:22px}
  .dash-head h1{font-size:40px}
  .dash-account{border-radius:18px;width:100%}
  .dash-account .account-email{flex:1 1 140px}
  .order-card{padding:16px;border-radius:18px}
  .order-top{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .order-thumb{width:64px;height:64px}
  .order-total{grid-column:2;text-align:left;display:flex;align-items:baseline;gap:6px}
  .order-total strong{font-size:22px}
  .order-steps li{font-size:11px}
  .order-actions .account-action{width:100%}
}
@media (max-width:340px){
  .account-header>a:first-child span{display:none}
}
@media (prefers-reduced-motion:no-preference){
  .account-shell button,.account-action{transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .15s ease}
  .account-shell button.primary:hover:not(:disabled),.account-action.primary-link:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink)}
}
/* Chinese headings fall back to a system CJK face; give them weight instead of the Latin display font. */
html:lang(zh-CN) .account-shell h1{font-family:var(--body);font-weight:900;letter-spacing:-.02em}

.account-logo img.logo-mark{width:34px;height:34px;border-radius:50%;flex:none}
.account-logo img.logo-mark{width:38px;height:38px;box-shadow:0 0 0 1.5px var(--ink,#16136A)}
