/* #1979: My Account (/account/: Account · Preferences · Selling · API & billing). The Settings page's own styles, moved here
   unchanged so the four pages share them, then the sub-nav strip and the API & billing blocks. */
.acct h1{font-size:1.5em;margin-bottom:5px}
.settings-card{background:var(--surface);border-radius:10px;padding:20px;margin:15px 0;box-shadow:0 1px 3px rgba(0,0,0,0.08)}
.settings-card h2{font-size:1em;margin-bottom:15px;color:var(--muted)}
.setting-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.setting-row:last-child{border-bottom:none}
.setting-row{gap:16px}.setting-row>div:first-child{flex:1 1 auto;min-width:0}.setting-row>.ui-seg{flex:none;flex-wrap:nowrap;white-space:nowrap}
.setting-row.stack{flex-direction:column;align-items:stretch;gap:8px}   /* label on top, a full-width field below */
/* #549 (owner 18 Nov): no text under a setting; each label ends with its ⓘ (.ui-disc-i, rule 39) that opens the note on a line of its own */
.setting-row{flex-wrap:wrap;row-gap:8px}.set-l{display:flex;align-items:center;gap:2px}.setting-row>.ui-disc-n{flex:1 0 100%;order:9;box-sizing:border-box}.setting-row.stack>.ui-disc-n{order:0}.ui-disc-n p:empty{display:none}
.note-box{width:100%;box-sizing:border-box;min-height:4.5em;resize:vertical;font:inherit;line-height:1.4}
.note-count{font-size:max(.75rem,.75em);color:var(--muted);text-align:right;margin-top:-4px}.note-count.full{color:var(--orange);font-weight:600}
.setting-label{font-weight:500;display:block}
.setting-desc{font-size:max(.75rem,.8em);color:var(--muted);margin-top:2px}
/* Your page (#403): link name + Save on one line, then the two Show on my page toggles in one grid (label | list (n) | On/Off) */
.page-link{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.page-link>span:first-child{white-space:nowrap}
.page-link .ui-input{flex:1 1 110px;min-width:0;max-width:200px}.page-link .setting-desc{margin:0}
.show-on{display:grid;grid-template-columns:auto auto auto;justify-content:start;align-items:center;gap:8px 14px;margin-top:4px}
.show-on>span{white-space:nowrap}.show-on>span:nth-of-type(2){grid-column:2}.show-on .show-n{color:var(--muted)}
.show-on .wish-consent{grid-column:2/-1;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.save-msg{color:var(--price);font-size:max(.75rem,.85em);opacity:0;transition:opacity .3s}
.save-msg.show{opacity:1}
.user-card{display:flex;align-items:center;gap:12px;padding:15px;background:var(--surface);border-radius:10px;margin:15px 0;box-shadow:0 1px 3px rgba(0,0,0,0.08)}
.user-card img,.user-card .user-initials{width:40px;height:40px;border-radius:50%;flex:0 0 auto}
.user-card .verify{margin-top:6px;font-size:max(.75rem,.85em);color:var(--amber);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.user-card .name{font-weight:600}
.user-card .email{font-size:max(.75rem,.85em);color:var(--muted)}
@media(max-width:500px){
  .setting-row{flex-direction:column;align-items:stretch;gap:8px}
  .setting-row select{width:100%}
  .setting-row>.ui-seg{align-self:flex-start}
  .show-on{grid-template-columns:auto auto;justify-content:space-between}.show-on>.setting-label{grid-column:1/-1}.show-on>span:nth-of-type(2){grid-column:1}.show-on .wish-consent{grid-column:1/-1}
  .settings-card{padding:15px;margin:10px 0}
}

/* the sub-nav strip under the title: the four pages one tap apart (a .ui-seg of links; it scrolls sideways on a phone) */
.acct-nav{margin:6px 0 12px}.acct-nav>a{text-decoration:none}.acct-nav>a[hidden]{display:none}

/* API & billing (#1979): plan, usage, key, billing; the banner slot above them pushes them down, never over them */
.acct-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:15px 0;padding:14px 16px;border-radius:10px;background:var(--brand-bg);border:1px solid var(--line-brand)}
.acct-banner[hidden]{display:none}
.acct-banner.ok{background:var(--green-bg);border-color:transparent}.acct-banner.due{background:var(--red-bg);border-color:transparent}
.acct-banner .ab-t{flex:1 1 240px;min-width:0;margin:0}.acct-banner .ab-t b{display:block}.acct-banner .ab-t span{font-size:max(.75rem,.875em);color:var(--text-2)}
.acct-banner .ab-ic{flex:none;width:22px;height:22px;color:var(--price)}.acct-banner.due .ab-ic{color:var(--red)}
.acct-banner .ab-acts{display:flex;align-items:center;gap:8px;margin-left:auto}
.acct-banner .ui-icon svg{display:block}
.acct-big{font-size:1.0625rem;font-weight:600;margin:0}.acct-big .acct-state{font-weight:500;color:var(--muted)}.acct-big .acct-state.due{color:var(--red);font-weight:600}
.acct-line{margin:4px 0 0;font-size:max(.75rem,.875em);color:var(--muted)}
.acct-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.acct-meter{height:8px;margin:10px 0 4px;border-radius:999px;background:var(--surface-3);overflow:hidden}
.acct-meter>i{display:block;height:100%;width:0;border-radius:inherit;background:var(--jp)}.acct-meter.full>i{background:var(--red)}
.acct-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:end;margin:16px 0 0;padding:0;list-style:none}
.acct-days li{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;font-size:.75rem;color:var(--muted);font-variant-numeric:tabular-nums}
.acct-days .bar{width:100%;max-width:44px;height:64px;display:flex;align-items:flex-end;border-radius:6px;background:var(--surface-2)}
.acct-days .bar>i{display:block;width:100%;min-height:2px;border-radius:6px;background:var(--jp);opacity:.55}.acct-days li:last-child .bar>i{opacity:1}
.acct-days .n{color:var(--text);font-weight:600}
.acct-key{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.875rem}
.acct-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;padding:10px 12px;border-radius:8px;background:var(--amber-bg)}
.acct-confirm[hidden],.acct-new[hidden]{display:none}.acct-confirm>span{flex:1 1 220px;font-size:max(.75rem,.875em)}
.acct-new{margin-top:12px}.acct-new .page-link .ui-input{max-width:none;flex-basis:240px}
.acct-dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0}.acct-dl dt{color:var(--muted)}.acct-dl dd{margin:0;min-width:0;overflow-wrap:anywhere}
.acct-inv{width:100%;border-collapse:collapse;margin-top:8px;font-variant-numeric:tabular-nums;table-layout:fixed}
.acct-inv .c-amt{width:7.5em}.acct-inv .c-st{width:6.5em}.acct-inv .c-pdf{width:4.5em}   /* Date takes the rest; Amount right-aligned, Status after a gap, PDF at the end */
#inv-table[hidden],#inv-err[hidden]{display:none}
@media(min-width:769px){.acct-inv{width:auto}.acct-inv col:first-child{width:9.5em}}   /* the computer: four compact columns, no wide gap after the date */
.acct-inv th{text-align:left;font-weight:500;color:var(--muted);font-size:max(.75rem,.8125em);padding:6px 8px 6px 0;border-bottom:1px solid var(--line)}
.acct-inv td{padding:4px 8px 4px 0;border-bottom:1px solid var(--line);vertical-align:middle}.acct-inv tr:last-child td{border-bottom:0}
.acct-inv td:nth-child(2),.acct-inv th:nth-child(2){text-align:right;padding-right:16px}.acct-inv td:last-child,.acct-inv th:last-child{text-align:right;padding-right:0}
.acct-inv .st{color:var(--muted)}.acct-inv .st.paid{color:var(--price)}
.acct-h3{font-size:.875rem;color:var(--muted);font-weight:500;margin:18px 0 0}
.acct-skel{color:var(--muted);font-size:max(.75rem,.875em)}
/* #1986: Webhooks (account/api.html): one block per endpoint, the Add form a single column of label + field */
.acct-whs{list-style:none;margin:12px 0 0;padding:0}.acct-wh{padding:12px 0;border-top:1px solid var(--line)}.acct-wh:first-child{border-top:0;padding-top:4px}
.acct-wh .acct-key{overflow-wrap:anywhere}.acct-wh .acct-acts{margin-top:10px}.acct-wh .table-scroll{margin-top:8px}
.acct-whlog{table-layout:auto}.acct-whlog td{font-size:max(.75rem,.875em);white-space:nowrap}.acct-whlog td:nth-child(2),.acct-whlog th:nth-child(2){text-align:left}
.acct-whform{display:flex;flex-direction:column;gap:6px;margin-top:12px;max-width:520px}.acct-whform[hidden],#wh-add[hidden]{display:none}.acct-whform .setting-label{margin-top:8px}
.acct-whform .ui-select{align-self:flex-start}.acct-whform .acct-num{max-width:8em}.acct-chips{display:flex;flex-wrap:wrap;gap:8px}
