/* Gift mail is isolated from native chat, judging, editors and navbar geometry. */
.ph8640-page{--mail-bg:#fff;--mail-panel:#f6f9fd;--mail-ink:#233c55;--mail-muted:#697f96;--mail-line:#dce5ee;--mail-gold:#9b6d28;--mail-accent:#2167ad;width:min(1200px,calc(100% - 32px));margin:0 auto 36px;color:var(--mail-ink);box-sizing:border-box}
html.theme--dark .ph8640-page{--mail-bg:#122334;--mail-panel:#0e1c2b;--mail-ink:#e6edf5;--mail-muted:#9fb1c5;--mail-line:#2d4053;--mail-gold:#e5c47d;--mail-accent:#7fb9ef}
.ph8640-page *{box-sizing:border-box}.ph8640-page [hidden]{display:none!important}.ph8640-page :is(h1,h2,h3){color:var(--mail-ink)!important;line-height:1.5;margin:0}.ph8640-page p{line-height:1.8}.ph8640-page svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ph8640-page :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #5ba6dc;outline-offset:3px}
.ph8640-hero{display:flex;align-items:center;gap:22px;padding:26px 32px;border:1px solid #c7ab6950;border-radius:16px;background:radial-gradient(ellipse at 8% 30%,#275053,transparent 60%),linear-gradient(120deg,#152d3a,#101c2c);color:#e9dcba;margin-bottom:24px}.ph8640-hero h1{font-size:30px!important;color:#ecd294!important;margin-top:5px}.ph8640-hero p{font-size:12px;color:#b9c7cf;margin:8px 0 0}.ph8640-kicker{font-size:9px;letter-spacing:.12em;font-weight:700;color:var(--mail-gold)}.ph8640-hero .ph8640-kicker{color:#e5c47d}.ph8640-emblem{width:72px;height:72px;flex:none;display:grid;place-items:center;border:1px solid #d3b57170;border-radius:18px;background:#cfae5810;color:#e4c888;box-shadow:inset 0 0 18px #d7b76b10}.ph8640-emblem svg{width:52px;height:52px}.ph8640-hero-actions{margin-left:auto;display:flex;flex-wrap:wrap;gap:9px}
.ph8640-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 16px;border:1px solid var(--mail-line);border-radius:8px;background:var(--mail-bg);color:var(--mail-ink)!important;font:inherit;font-size:12px;font-weight:700;line-height:1.5;text-decoration:none!important;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}.ph8640-button:hover{border-color:#c2a66a;box-shadow:0 3px 12px #18334e12}.ph8640-button.is-primary{background:linear-gradient(120deg,#f3dfaf,#d0ab69);border-color:#c5a15f;color:#253447!important;box-shadow:inset 0 1px #fff3cc}.ph8640-hero .ph8640-button{background:#ffffff08;border-color:#d3b57155;color:#e6c785!important}.ph8640-button:disabled{opacity:.5;cursor:not-allowed}.ph8640-back{color:var(--mail-accent)!important;text-decoration:none!important;font-size:12px;display:inline-block;margin-bottom:18px}
.ph8640-inbox-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:20px 0}.ph8640-inbox-heading>span{font-size:11px;color:var(--mail-muted);white-space:nowrap}.ph8640-tabs{display:flex;gap:6px;flex-wrap:wrap}.ph8640-tabs a{display:flex;align-items:center;gap:7px;min-height:38px;padding:8px 13px;font-size:12px;color:var(--mail-muted)!important;text-decoration:none!important;border:1px solid transparent;border-radius:8px}.ph8640-tabs a.is-active{background:var(--mail-bg);border-color:var(--mail-line);color:var(--mail-accent)!important;box-shadow:0 2px 6px #122b4010}.ph8640-tabs b{font-size:10px;border-radius:12px;background:#7c91a51c;padding:1px 6px}
.ph8640-mail-list{display:grid;gap:10px}.ph8640-mail-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px 20px;background:var(--mail-bg);border:1px solid var(--mail-line);border-radius:12px;color:var(--mail-ink)!important;text-decoration:none!important;transition:border-color .18s,box-shadow .18s}.ph8640-mail-row:hover{border-color:#c1a56a;box-shadow:0 6px 20px #18334e0e}.ph8640-mail-row.is-unread{border-left:3px solid #c7a85e}.ph8640-letter-icon{display:grid;place-items:center;width:48px;height:48px;color:var(--mail-gold);background:#c7a85e10;border:1px solid #c7a85e40;border-radius:12px}.ph8640-letter-icon svg{width:32px;height:32px}.ph8640-letter-copy{min-width:0}.ph8640-letter-copy h2{display:flex;align-items:center;gap:7px;overflow-wrap:anywhere;font-size:15px!important}.ph8640-letter-copy h2 i{width:6px;height:6px;flex:none;border-radius:50%;background:#c7a85e}.ph8640-letter-copy>span{font-size:10px;color:var(--mail-muted)}.ph8640-letter-copy>span b{font-size:8px;padding:2px 5px;color:var(--mail-gold);background:#c7a85e16;border-radius:3px}.ph8640-letter-copy p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:var(--mail-muted);margin:5px 0 0;overflow-wrap:anywhere}.ph8640-letter-meta{display:flex;align-items:flex-end;flex-direction:column;gap:10px}.ph8640-letter-meta time,.ph8640-history time{font-size:10px;color:var(--mail-muted)}.ph8640-status{font-size:10px;line-height:1.5;padding:5px 9px;border-radius:6px;color:#8b651d;background:#d3ad5520;border:1px solid #b99a4c44;white-space:nowrap}.ph8640-status[data-state=claimed]{color:#23866a;background:#27ad7e12;border-color:#27ad7e38}.ph8640-status[data-state=claiming]{color:var(--mail-accent);background:#559bcd15;border-color:#559bcd38}.ph8640-status[data-state=blocked]{color:#bb7333;background:#df9b4317}.ph8640-pagination{display:flex;gap:18px;justify-content:center;align-items:center;margin-top:24px;font-size:12px}.ph8640-pagination a{color:var(--mail-accent)!important}.ph8640-empty{display:grid;justify-items:center;text-align:center;padding:55px 20px;border:1px solid var(--mail-line);border-radius:14px;background:var(--mail-bg)}.ph8640-empty>svg{width:76px;height:76px;color:var(--mail-gold);margin-bottom:20px}.ph8640-empty h2{font-size:20px!important}.ph8640-empty p{font-size:12px;color:var(--mail-muted);max-width:440px}
.ph8640-letter{border:1px solid var(--mail-line);border-radius:16px;overflow:hidden;background:var(--mail-bg)}.ph8640-letter-head{display:flex;align-items:center;gap:20px;padding:28px;border-bottom:1px solid var(--mail-line);background:radial-gradient(ellipse at 5% 30%,#c6a75a0c,transparent 70%)}.ph8640-letter-head>.ph8640-status{margin-left:auto}.ph8640-letter-head .ph8640-emblem{color:var(--mail-gold)}.ph8640-letter-head>div{min-width:0}.ph8640-letter-head h1{font-size:25px!important;overflow-wrap:anywhere;margin:6px 0}.ph8640-letter-head p{font-size:11px;color:var(--mail-muted);margin:0}.ph8640-letter-body{padding:28px;white-space:pre-wrap;font-size:14px;line-height:1.9;min-height:120px;overflow-wrap:anywhere}.ph8640-gifts{padding:0 28px 28px}.ph8640-gifts>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:10px}.ph8640-gifts h2{font-size:17px!important}.ph8640-gifts>header>span{font-size:11px;color:var(--mail-muted)}
.ph8640-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.ph8640-attachment{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px 12px;min-width:0;padding:14px;border:1px solid var(--mail-line);border-radius:10px;background:var(--mail-panel)}.ph8640-attachment strong{display:block;font-size:12px;overflow-wrap:anywhere}.ph8640-attachment small{display:block;font-size:9px;color:var(--mail-muted);margin:3px 0}.ph8640-attachment b{display:block;color:var(--mail-gold);font-size:16px}.ph8640-currency-art{display:grid;place-items:center;width:48px;height:48px}.ph8640-currency-art .ph8570-currency-icon{width:42px!important;height:42px!important}.ph8640-delivery{grid-column:1/-1;font-size:9px;color:var(--mail-muted);border-top:1px solid var(--mail-line);padding-top:7px}.ph8640-delivery[data-state=delivered]{color:#25866b}.ph8640-delivery[data-state=blocked]{color:#be7935}.ph8640-claim{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:22px 28px;background:var(--mail-panel);border-top:1px solid var(--mail-line)}.ph8640-claim>div{flex:1;min-width:220px}.ph8640-claim strong{font-size:14px}.ph8640-claim p{font-size:11px;max-width:650px;color:var(--mail-muted);margin:5px 0 0}.ph8640-claim-success strong{color:#25866b}
.ph8640-admin{width:100%;margin-top:18px}.ph8640-panel{background:var(--mail-bg);border:1px solid var(--mail-line);border-radius:12px;padding:24px;margin-bottom:16px}.ph8640-panel-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}.ph8640-panel-heading h2{font-size:18px!important}.ph8640-panel-heading p{margin:4px 0 0;font-size:11px;color:var(--mail-muted)}.ph8640-step{display:grid;place-items:center;width:38px;height:38px;flex:none;color:var(--mail-gold);background:#c9aa5f12;border:1px solid #c9aa5f40;border-radius:10px;font-weight:700;font-size:13px}.ph8640-page label{font-size:11px;color:var(--mail-muted);font-weight:600}.ph8640-page :is(input:not([type=checkbox]),select,textarea){display:block;width:100%;min-width:0;height:auto;min-height:40px;margin:7px 0 0;padding:10px 12px;font:inherit;font-size:12px;color:var(--mail-ink);background:var(--mail-panel);border:1px solid var(--mail-line);border-radius:7px;box-shadow:none}.ph8640-page textarea{resize:vertical;line-height:1.8}.ph8640-recipient-search{display:flex;align-items:flex-end;gap:12px}.ph8640-recipient-search>label{flex:1}.ph8640-recipient{display:flex;align-items:center;gap:12px;margin-top:18px;padding:14px 16px;border:1px solid #2c9a7655;background:#2c9a7609;border-radius:9px}.ph8640-recipient>span{color:#23866a;font-size:22px}.ph8640-recipient strong{display:block;font-size:14px;overflow-wrap:anywhere}.ph8640-recipient small{display:block;font-size:10px;color:var(--mail-muted);margin-top:3px}.ph8640-recipient>b{margin-left:auto;font-size:10px;color:#23866a}.ph8640-fields{display:grid;gap:18px}.ph8640-currency-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ph8640-currency-inputs label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--mail-line);border-radius:9px;background:var(--mail-panel)}.ph8640-currency-inputs .ph8570-currency-icon{width:34px!important;height:34px!important;flex:none}.ph8640-currency-inputs label>span{flex:1;min-width:0}.ph8640-currency-inputs input{background:var(--mail-bg)!important}.ph8640-subheading{font-size:13px!important;margin:22px 0 12px!important}.ph8640-subheading>span{font-size:10px;font-weight:400;color:var(--mail-muted);margin-left:8px}.ph8640-item-input{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;margin:10px 0}.ph8640-item-input[hidden]{display:none}.ph8640-admin-note{padding:12px 14px;margin:18px 0 0;font-size:11px;color:var(--mail-muted);border-left:2px solid #c3a265;background:#c3a2650a}.ph8640-send-panel{display:flex;align-items:center;gap:24px;justify-content:space-between}.ph8640-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.8;max-width:700px}.ph8640-confirm input{width:16px;height:16px;flex:none;margin:2px 0 0}.ph8640-notice{padding:15px 20px;border:1px solid #c9a26366;background:#c9a26312;border-radius:10px;margin-bottom:18px;color:var(--mail-gold);font-size:12px}.ph8640-notice.is-success{border-color:#289f7355;background:#289f730c;color:#25866b}
.ph8640-history-list>article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;padding:18px 0;border-top:1px solid var(--mail-line);align-items:center}.ph8640-history-list strong{font-size:13px;overflow-wrap:anywhere}.ph8640-history-list small{display:block;font-size:10px;color:var(--mail-muted);margin:5px 0}.ph8640-history-list>article>span:not(.ph8640-status){font-size:11px;color:var(--mail-muted)}.ph8640-history-list details{grid-column:1/-1}.ph8640-history-list summary{font-size:11px;color:var(--mail-accent);cursor:pointer;margin-bottom:12px}.ph8640-history .ph8640-panel-heading .ph8640-back{margin:0 0 0 auto}.ph8640-empty-history{font-size:12px;color:var(--mail-muted)}
html body .ph8640-nav-badge{display:inline-block;margin-left:7px;padding:1px 6px;min-width:19px;border-radius:10px;background:#bf8e40;color:#fff;font-size:9px;line-height:1.7;text-align:center}html body .ph8640-nav-badge[hidden]{display:none}
@media(max-width:900px){.ph8640-currency-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.ph8640-send-panel{align-items:stretch;flex-direction:column;gap:18px}.ph8640-hero-actions{margin-left:0}}
@media(max-width:600px){.ph8640-page{width:calc(100% - 24px)}.ph8640-admin{width:100%}.ph8640-hero{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:20px}.ph8640-emblem{width:56px;height:56px;border-radius:13px}.ph8640-emblem svg{width:40px;height:40px}.ph8640-hero h1{font-size:25px!important}.ph8640-hero-actions{grid-column:1/-1}.ph8640-inbox-heading{align-items:flex-start;flex-direction:column}.ph8640-tabs a{font-size:10px;padding:8px}.ph8640-mail-row{grid-template-columns:38px minmax(0,1fr);gap:12px;padding:15px}.ph8640-letter-icon{width:38px;height:38px}.ph8640-letter-icon svg{width:28px;height:28px}.ph8640-letter-meta{grid-column:2;flex-direction:row;align-items:center;flex-wrap:wrap}.ph8640-letter-copy h2{font-size:14px!important}.ph8640-letter-head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:20px}.ph8640-letter-head>.ph8640-status{grid-column:2;margin-left:0;justify-self:start}.ph8640-letter-head h1{font-size:19px!important}.ph8640-letter-body{padding:22px 20px;font-size:13px}.ph8640-gifts{padding:0 20px 22px}.ph8640-claim{padding:20px}.ph8640-claim>form{width:100%}.ph8640-claim>form button{width:100%}.ph8640-panel{padding:18px}.ph8640-recipient-search{align-items:stretch;flex-direction:column}.ph8640-recipient{flex-wrap:wrap}.ph8640-recipient>b{margin-left:34px}.ph8640-currency-inputs{gap:8px}.ph8640-currency-inputs label{padding:10px;gap:6px}.ph8640-currency-inputs .ph8570-currency-icon{width:25px!important;height:25px!important}.ph8640-currency-inputs label>span{font-size:10px}.ph8640-item-input{grid-template-columns:minmax(0,1fr) 88px;gap:8px}.ph8640-subheading>span{display:block;margin:5px 0 0}.ph8640-history-list>article{grid-template-columns:minmax(0,1fr) auto}.ph8640-history-list>article>div{grid-column:1/-1}.ph8640-history-list .ph8640-attachments{grid-template-columns:minmax(0,1fr)}}
/* Shared mailbox workspace: three stable destinations, one responsive composer. */
.ph8650-navigation{display:flex;gap:6px;padding:6px;margin-bottom:24px;background:var(--mail-bg);border:1px solid var(--mail-line);border-radius:12px}.ph8650-navigation>a{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 22px;border-radius:8px;color:var(--mail-muted)!important;text-decoration:none!important;font-size:13px;font-weight:600}.ph8650-navigation>a>span{font-size:18px;font-weight:400}.ph8650-navigation>a.is-active{background:var(--mail-panel);color:var(--mail-accent)!important;box-shadow:inset 0 -2px var(--mail-gold)}.ph8650-navigation>a:hover{color:var(--mail-ink)!important;background:var(--mail-panel)}.ph8650-compose{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.ph8650-compose-main{min-width:0}.ph8650-modes{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.ph8650-modes>a{padding:9px 14px;border:1px solid var(--mail-line);border-radius:8px;font-size:11px;color:var(--mail-muted)!important;text-decoration:none!important}.ph8650-modes>a[aria-current=page]{border-color:#c6a56b;background:#c6a56b0b;color:var(--mail-gold)!important}.ph8650-compose .ph8640-currency-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}.ph8650-compose .ph8640-currency-inputs small{display:block;margin-top:5px;font-size:10px;color:var(--mail-muted);font-weight:400}.ph8650-compose .ph8640-currency-inputs input[readonly]{opacity:.55;cursor:not-allowed}.ph8650-compose-aside{position:sticky;top:150px;padding:30px 24px;background:radial-gradient(ellipse at top,#c7a85e10,transparent 60%),var(--mail-bg);border:1px solid #c7a85e50;border-radius:14px;text-align:center}.ph8650-postmark{width:110px;height:110px;display:grid;place-items:center;margin:0 auto 24px;border:1px solid #c7a85e35;border-radius:50%;box-shadow:0 0 0 9px #c7a85e05,inset 0 0 32px #c7a85e08;color:var(--mail-gold)}.ph8650-postmark>svg{width:72px;height:72px}.ph8650-compose-aside h2{font-size:20px!important;margin:12px 0!important}.ph8650-compose-aside p{font-size:12px;color:var(--mail-muted)}.ph8650-compose-aside ol{text-align:left;list-style:none;counter-reset:mail-steps;padding:0;margin:24px 0}.ph8650-compose-aside li{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:11px;color:var(--mail-muted);line-height:1.7}.ph8650-compose-aside li:before{counter-increment:mail-steps;content:counter(mail-steps,decimal-leading-zero);color:var(--mail-gold);font-size:11px;border:1px solid var(--mail-line);border-radius:6px;padding:3px 6px}.ph8650-assurance{padding-top:20px;border-top:1px solid var(--mail-line);font-size:9px;letter-spacing:.06em;color:var(--mail-gold);font-weight:700}.ph8650-assurance p{font-size:11px;font-weight:400;letter-spacing:normal;margin-bottom:0}.ph8650-muted{font-size:12px;color:var(--mail-muted)}.ph8650-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.ph8650-section-title{font-size:17px!important}.ph8650-sent-detail .ph8640-panel-heading>.ph8640-status{margin-left:auto}.ph8640-status:is([data-state=failed],[data-state=return_pending],[data-state=refunding]){color:#b86b38;background:#df9b4317}.ph8640-status[data-state=returned]{color:#25866b;background:#27ad7e12}
@media(max-width:1000px){.ph8650-compose{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.ph8650-compose .ph8640-currency-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.ph8650-compose-aside{padding:24px 18px}}
@media(max-width:780px){.ph8650-compose{grid-template-columns:minmax(0,1fr)}.ph8650-compose-aside{position:static}.ph8650-postmark{width:72px;height:72px;margin-bottom:16px}.ph8650-postmark>svg{width:48px;height:48px}.ph8650-compose-aside ol{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:16px 0}.ph8650-compose-aside li{margin:0}.ph8650-navigation>a{flex:1;padding:12px 8px;font-size:12px;gap:7px}.ph8650-sent-detail .ph8640-panel-heading{flex-wrap:wrap}.ph8650-sent-detail .ph8640-panel-heading>.ph8640-status{margin-left:0}}
@media(max-width:360px){.ph8650-compose .ph8640-currency-inputs{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.ph8640-page *{transition:none!important;animation:none!important}}
