/* PD V2 · account board "Two lanes" + order detail + redirect pages
 * (pd-v2-fixes-1026 T5 round 2). Container matches the header exactly
 * (var(--maxw)/var(--gut), same tokens pd-v2-header.css's .pd-v2-nav__in
 * uses) so the left edge lines up with the logo.
 *
 * This page is a plain <div class="pd-v2-acct">, not the <pinky-account-
 * dashboard> custom element the previous build of this page used (that
 * element is unstyled browser-default display:inline, and the previous
 * build dropped the one legacy class — .pinky-account-dashboard — that gave
 * it display:block; this .pd-v2-acct selector never has that problem since
 * div is block-level by default). That's the root cause of the bug Yimei
 * reported: heading jammed to the browser edge, no container, card
 * touching the right edge.
 */
.pd-v2-acct{max-width:var(--maxw);margin:0 auto;padding:var(--pagetop) var(--gut) clamp(56px,10vh,96px)}
.pd-v2-acct__head{margin-bottom:clamp(14px,2.4vh,20px)}
.pd-v2-acct__head .cap{color:var(--act2)}
html[data-mode="dark"] .pd-v2-acct__head .cap{color:var(--main1)}
.pd-v2-acct__head h1{font-size:clamp(30px,4vw,44px);font-weight:650;letter-spacing:-.02em}
.pd-v2-acct-intro{color:var(--tx-dim);font-size:14.5px;margin:8px 0 0}

/* ══ two lanes ══ */
.lanes{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:start;margin-top:clamp(28px,4.4vh,48px)}
@media (max-width:960px){.lanes{grid-template-columns:minmax(0,1fr);gap:36px}}
.lane-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.lane-h h2{font-size:24px;font-weight:650;letter-spacing:-.01em;margin:0}
.lane-h .dim{font-size:14px}
.dim{color:var(--tx-dim)}

/* ══ order cards ══ */
.ocard{border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;background:var(--surface)}
.ocard+.ocard{margin-top:10px}
.ocard-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ocard-top b{font-weight:800}
.ocard-mid{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:10px;flex-wrap:wrap}
.ocard-mid b{font-weight:800}
.ocard .act{display:flex;gap:16px}
.pd-v2-acct-empty{border:1px dashed var(--line);border-radius:var(--r);padding:clamp(26px,4vh,36px) clamp(20px,3vw,28px)}
.pd-v2-acct-empty p+p{margin-top:4px}

/* ══ status pills (match the approved board design exactly) ══ */
.st{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:var(--pill);font-size:12px;font-weight:700;border:1px solid;white-space:nowrap}
html[data-mode="dark"] .st-proc{color:var(--mint);border-color:rgba(154,245,216,.35);background:rgba(154,245,216,.07)}
html[data-mode="dark"] .st-wait{color:var(--lemon);border-color:rgba(255,241,79,.35);background:rgba(255,241,79,.05)}
html[data-mode="dark"] .st-done{color:var(--tx-dim);border-color:var(--line)}
html[data-mode="light"] .st-proc{color:#0D6249;border-color:rgba(13,98,73,.35);background:rgba(13,98,73,.06)}
html[data-mode="light"] .st-wait{color:#6E5200;border-color:rgba(110,82,0,.35);background:rgba(255,241,79,.25)}
html[data-mode="light"] .st-done{color:var(--tx-dim);border-color:var(--line)}

/* ══ "You" panel ══ */
.pd-v2-acct-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:8px 24px 20px}
.pd-v2-acct-who{display:flex;align-items:center;gap:14px;padding:4px 0 18px}
.pd-v2-acct-who img{width:52px;height:52px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px var(--line)}
.pd-v2-acct-who b{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:800}
.pd-v2-acct-who .dim{display:block;font-size:13.5px;overflow-wrap:anywhere;margin-top:2px}
.pd-v2-acct-pencil{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:var(--r);color:var(--tx-dim);cursor:pointer}
.pd-v2-acct-pencil svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover) and (pointer:fine){.pd-v2-acct-pencil:hover{color:var(--tx);background:var(--raise)}}
.pd-v2-acct-pencil:focus-visible{outline:2px solid var(--act);outline-offset:1px}

.pd-v2-acct-mail{display:flex;align-items:center;gap:8px;margin-top:2px}
.pd-v2-acct-mail .dim{margin-top:0}
.pd-v2-acct-lock{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;
  border-radius:var(--pill);border:1px solid var(--line);background:var(--raise);color:var(--tx-dim);cursor:default}
.pd-v2-acct-lock svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pd-v2-acct-mail-note{margin:3px 0 0;font-size:12px;color:var(--tx-dim)}

.fl{padding:16px 0;border-top:1px solid var(--line)}
.fl:first-of-type{border-top:0}
.fl-h{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px}
.fl-l{font-size:13px;font-weight:700;color:var(--tx-dim)}
.ro{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--tx-dim)}
.ro svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}


.pd-v2-acct-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:4px}
@media (max-width:480px){.pd-v2-acct-form-grid{grid-template-columns:1fr}}
.pd-v2-acct-acts{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}

.addr+.addr{margin-top:14px;padding-top:14px;border-top:1px dashed var(--line)}
.pd-v2-addr-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.pd-v2-addr-body{min-width:0;flex:1}
.pd-v2-addr-body div{overflow-wrap:anywhere}
.pd-v2-acct-debug{margin-top:8px;font-size:12px;color:var(--tx-dim)}
.pd-v2-acct-debug pre{white-space:pre-wrap;word-break:break-all;margin:6px 0 0;font-size:12px;line-height:1.4}
.tag{display:inline-flex;align-items:center;flex:none;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  padding:3px 9px;border-radius:var(--pill);border:1px solid currentColor}
html[data-mode="dark"] .tag{color:var(--mint);background:rgba(154,245,216,.08)}
html[data-mode="light"] .tag{color:#0D6249;background:rgba(13,98,73,.07)}
.pd-v2-acct-addr-acts{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px}
.pd-v2-acct-addr-acts form{display:inline-flex}

.pd-v2-acct-panel-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:4px;padding-top:16px}
.foot-note{display:flex;gap:10px;align-items:flex-start;color:var(--tx-dim);font-size:13px;margin-top:16px}
.foot-note svg{flex:none;width:16px;height:16px;margin-top:3px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.foot-note p{margin:0}

/* ── Orders: track button + "Your reviews" ── */
.pd-v2-acct-main{min-width:0}
.pd-v2-acct-main>section+section{margin-top:44px}
.pd-v2-acct-track{min-height:40px;padding:0 16px;gap:8px}
.pd-v2-acct-track svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ocard .act{align-items:center;flex-wrap:wrap}
.pd-v2-rv-lock{display:flex;gap:14px;align-items:flex-start;border:1px dashed var(--line);border-radius:var(--r);padding:20px 22px;color:var(--tx-dim)}
.pd-v2-rv-lock svg{width:22px;height:22px;flex:none;margin-top:2px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pd-v2-rv-lock p{margin:0}
.pd-v2-rv-lock b{color:var(--tx)}
.pd-v2-rv-card{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);padding:22px;display:grid;gap:16px}
.pd-v2-rv-lead{margin:0;color:var(--tx-dim)}
.pd-v2-rv-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.pd-v2-rv-list[hidden],.pd-v2-rv-card [hidden]{display:none}
.pd-v2-rv-list li{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding-top:12px;border-top:1px dashed var(--line)}
.pd-v2-rv-list li:first-child{border-top:0;padding-top:0}
.pd-v2-rv-list li>span{font-weight:700}
.pd-v2-rv-card>.pd-v2-action{justify-self:start}
