/* Customer portal + legal pages on top of the personal-site CSS (site.css). Only components the site does not have;
   all colours come from the site tokens (--ink, --body, --muted, --rule, --paper). */
.acct, .legal { padding-top: clamp(48px, 7vw, 104px); }
.acct > * { max-width: 760px; width: 100%; }
.acct section { display: flex; flex-direction: column; gap: 0; }
.acct h1 { margin: 0 0 24px; }
.acct p { color: var(--body); line-height: 1.6; margin: 0 0 12px; font-size: 17px; }
.acct .eyebrow { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.acct .small, .acct .status { font-size: 15px; color: var(--muted); }
.acct .cta { border: 0; font: 500 16px var(--sans); cursor: pointer; text-decoration: none; justify-content: center; height: 48px; padding: 0 28px; }
.acct .cta.ghost { border: 0; }
.acct .cta:hover { opacity: .86; }
.acct-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.acct-actions .cta { flex: 1 1 220px; }
.link { font: 400 16px var(--sans); color: var(--body); background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: var(--ink); }
.acct label { display: block; color: var(--muted); font-size: 14px; margin-top: 8px; }
.acct textarea, .acct input, .buy textarea { width: 100%; box-sizing: border-box;margin: 12px 0; padding: 14px; background: transparent; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 12px; font: 14px/1.5 var(--mono); resize: vertical; overflow-wrap: anywhere; }
.acct textarea:focus-visible, .acct input:focus-visible, .buy textarea:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.cards { display: grid; gap: 12px; margin-top: 32px; }
.lic { display: block; text-decoration: none; color: inherit; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 18px; }
.lic:hover { border-color: var(--ink); }
.lic strong { font-weight: 500; font-size: 18px; }
.lic p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill { font-size: 14px; color: var(--body); padding: 2px 12px; border: 1px solid var(--rule); border-radius: 9999px; white-space: nowrap; }
.pill[data-status=active] { color: var(--ink); border-color: var(--ink); }
.empty { padding: 28px; border: 1px dashed var(--rule); border-radius: 18px; margin-top: 32px; }
.empty h2 { font-size: 26px; margin: 0 0 12px; }
.warning { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; color: var(--body); font-size: 15px; margin: 16px 0; }
.lic-facts { margin: 32px 0; padding: 0; border-top: 1px solid var(--rule); }
.lic-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lic-facts dt { color: var(--muted); font-size: 15px; }
.lic-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.codes { font: 16px/1.9 var(--mono); padding: 18px 22px; border: 1px solid var(--rule); border-radius: 12px; columns: 2; color: var(--ink); margin: 24px 0; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); }
.ident { font-family: var(--mono); font-size: 13px; }
/* Receipt inside the site's buy block */
#receipt { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
#receipt[hidden] { display: none; }
#receipt h4 { font-size: 22px; margin: 0; }
#receipt textarea { margin: 0; }
#licence-link { justify-content: center; text-decoration: none; }
.buy .note a, .acct a { text-underline-offset: 3px; }
@media (max-width: 760px) { .codes { columns: 1; } .lic-facts div { flex-direction: column; gap: 4px; } .lic-facts dd { text-align: left; } }
.buy p.note{font-size:15px;color:var(--muted);line-height:1.5}
[hidden]{display:none!important}
/* Phones: the header has no room for Sign out; the licence list shows it in the page instead. */
.acct .signout-row { margin-top: 32px; display: none; }
@media (max-width: 520px) { .topbar #logout { display: none; } .acct .signout-row { display: block; } }
