/* Shared account/help surfaces. Text-relative sizing: panels-design.md. */
.account-trigger{display:flex;align-items:center;gap:.6em;background:transparent;color:inherit;border:0;padding:.35em .2em;border-radius:.5em;font:inherit;text-align:left;cursor:pointer;min-width:0}
.account-trigger:hover,.account-trigger[aria-expanded=true]{background:#fff1e2;color:#9b4700}
.account-trigger:focus-visible,.help-open:focus-visible{outline:.15em solid #e87500;outline-offset:.2em}
.account-chevron{font-size:.75em;color:#977e69}
.sidebar-footer .account-trigger{flex:1}.sidebar-footer .account-trigger>span:last-child{min-width:0}.sidebar-footer .account-trigger strong{font-size:1em}
.help-open{background:#fff5e8;border:1px solid #efd3b4;border-radius:.55em;color:#964600;font-size:inherit;font-weight:700;padding:.55em .85em;cursor:pointer;white-space:nowrap}
.search-page .search-header{gap:1em}
.account-panel{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(22rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;border:1px solid #eddac8;border-radius:1rem;padding:1.25rem;background:#fff;color:#3b3028;box-shadow:0 .8rem 2.6rem #4a2d171f;font-size:1rem;line-height:1.5;z-index:50}
.account-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:1em;margin-bottom:1.1em;font-size:1.1em}
.panel-close{border:0;background:transparent;color:#77695e;font:inherit;font-size:1.5em;padding:.1em .3em;cursor:pointer;border-radius:.3em;line-height:1}
.panel-close:hover{background:#ffe8d0;color:#8e3d00}
.account-panel #jg-benefits{width:auto;max-width:none;margin:0;font-size:1em;color:inherit}
.account-metrics{display:grid;grid-template-columns:1fr 1fr;gap:1em;padding:1em;background:#fff6ec;border-radius:.65em}
.account-metrics span{display:block;color:#806b59;font-size:.8em}.account-metrics strong{display:block;color:#a14800;font-size:1.55em;margin-top:.2em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.account-usage{margin:1.25em 0}.account-usage>div{display:flex;justify-content:space-between;gap:1em;margin:.8em 0}.account-usage dt{color:#766b62}.account-usage dd{margin:0;font-weight:600}
.account-charge-state{border-top:1px solid #efe7df;padding-top:1em;margin:0;color:#97501c;font-size:.85em}.account-hint{color:#897c71;font-size:.75em;margin:.65em 0 0}
.usage-dialog.readable-help{box-sizing:border-box;width:min(54rem,calc(100vw - 2rem));max-width:none;max-height:calc(100dvh - 3rem);padding:0;border:1px solid #ead6c2;border-radius:1rem;background:white;color:#3b3028;box-shadow:0 1.2rem 4rem #39241430;font-size:clamp(1rem,1.1vw,1.125rem);line-height:1.8;overflow:auto}
.readable-help::backdrop{background:#24190f66;backdrop-filter:blur(.15rem)}
.readable-help .dialog-header{display:flex;align-items:center;justify-content:space-between;gap:1em;position:sticky;top:0;padding:1em 1.5em;background:#fff8f0;border-bottom:1px solid #efdfce;z-index:1}
.readable-help .dialog-header h2{font-size:1.45em;line-height:1.4;margin:0;color:#34271c}.readable-help .dialog-header form{margin:0}
.readable-help .dialog-content{padding:1.3em 1.5em;line-height:1.8}.readable-help .dialog-content p{margin:.5em 0;color:#68594c}
.readable-help .dialog-content strong{font-weight:700;color:#773b0b}.readable-help .dialog-content h3{font-size:1.08em;color:#a04700;margin:0 0 .55em;line-height:1.5}
.readable-help .help-intro{background:#fff1df;border-left:.22em solid #ff8200;border-radius:.4em;padding:.8em 1em;margin-bottom:1.2em}
.readable-help .help-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.3em}.readable-help .help-grid section{border:1px solid #eee1d5;border-radius:.65em;padding:1.1em}
.readable-help .help-example{background:#faf7f3;border-radius:.4em;padding:.6em .75em;font-size:.95em}
.readable-help .help-credit{margin-top:1.3em;padding:1.1em;background:#fff8ee;border-radius:.65em}
.readable-help .dialog-footer{display:flex;justify-content:flex-end;margin:0;padding:.8em 1.5em 1.1em;border-top:1px solid #efe4d8;background:#fff}
.readable-help .dialog-footer button{font:inherit;background:#ed7900;color:white;border:0;border-radius:.5em;padding:.45em 1.5em;cursor:pointer}
.readable-help .dialog-content>section{margin-bottom:1.4em}.readable-help .dialog-content li{margin:.55em 0}
@media(max-width:48rem){.readable-help .help-grid{grid-template-columns:1fr}.readable-help .dialog-header,.readable-help .dialog-content,.readable-help .dialog-footer{padding:1em}.search-page .search-header{flex-wrap:wrap;justify-content:space-between;padding-block:.6em;height:auto}.search-page .search-account{margin-left:auto}.search-page .help-open{margin-left:auto}.account-panel{font-size:1rem}.readable-help .dialog-header h2{font-size:1.25em}}

.account-forum{border-top:1px solid #efe7df;margin-top:1em;padding-top:.25em}.account-forum .account-usage{font-size:.85em}.account-wallet-warning{color:#9b331d;background:#fff0e9;padding:.6em;border-radius:.4em;font-size:.85em}.account-exchange{display:grid;gap:.65em;margin-top:1em;padding:.8em;background:#fff8ef;border-radius:.5em;font-size:.85em}.account-exchange p{margin:0;line-height:1.6}.account-exchange label{display:flex;align-items:center;justify-content:space-between;gap:1em}.account-exchange input{width:6em;max-width:50%;font:inherit;padding:.4em;border:1px solid #d7c5b5;border-radius:.35em}.account-exchange button{font:inherit;padding:.55em;border:0;border-radius:.4em;background:#d96600;color:#fff;cursor:pointer}.account-exchange button:disabled{opacity:.55;cursor:default}

.account-metrics{grid-template-columns:1fr}.account-metrics>div+div{border-top:1px solid #efdfce;padding-top:.8em}
