/* Profile page, team, help, 404 and the billing card/invoices. Flat cards with hairlines, like the rest of the app. */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--indigo); font: 700 13px var(--head); object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); letter-spacing: .02em; }
.nav a.me > .avatar { flex: none; margin-left: -1px; overflow: visible; }
.nav a.me > .avatar + span { flex: 1; }
.phead { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.phead h1 { margin: 0; }
.phead p { margin: 2px 0 0; overflow-wrap: anywhere; }
.pgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.pnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.pnav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.pnav a span { flex: 1; }
.pnav a:hover { background: var(--surface); }
.pnav a.on { background: var(--surface); color: var(--indigo); font-weight: 650; box-shadow: inset 0 0 0 1px var(--line); }
.pnav a .i { width: 18px; height: 18px; flex: none; }
.pnav a .i:last-child:not(:first-child) { width: 14px; height: 14px; color: var(--muted); }
.psep { height: 1px; background: var(--line); margin: 8px 10px; }
.pbody { display: grid; gap: 16px; min-width: 0; max-width: 760px; }
.pbody > .card h2 { margin: 0; }
.pbody > .card h3 { margin: 4px 0 0; }
.roles { margin-top: 4px; }
.pbody > .note { margin: 0; }
.srow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.srow:first-of-type { border-top: 0; padding-top: 4px; }
.srow p { margin: 2px 0 0; }
.sic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--indigo); }
.sic .i { width: 18px; height: 18px; }
.tlist { display: grid; }
.trow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.tname { display: grid; min-width: 0; }
.tname b, .tname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow select { width: auto; min-width: 120px; }
.roles { display: grid; gap: 10px; margin: 0; }
.roles div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.roles dt { font-weight: 650; }
.roles dd { margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.seg input:checked + span { background: var(--indigo); border-color: var(--indigo); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.rcodes { columns: 2; gap: 24px; margin: 0 0 14px; padding-left: 22px; font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
.rcodes li { padding: 3px 0; }
.danger-zone { border-color: var(--bad-soft); }
.danger-zone h2 { color: var(--bad); }
/* Billing: the card on file and invoices */
.paycard { display: flex; align-items: center; gap: 12px; margin: 0; }
.cardchip { display: grid; place-items: center; width: 52px; height: 34px; border-radius: 6px; background: var(--fg); color: var(--surface); font: 800 11px var(--head); letter-spacing: .06em; }
.invtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.invtable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 8px 6px 0; }
.invtable td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); }
.invlinks { text-align: right; white-space: nowrap; }
.invlinks a + a { margin-left: 8px; }
.reasons label { font-weight: 500; font-size: 14px; }
/* Help and 404 */
.helpgrid { margin-top: 4px; }
.hcard { display: grid; gap: 4px; text-decoration: none; color: var(--fg); }
.hcard:hover { border-color: var(--indigo); }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }
kbd { font: 600 12px ui-monospace, monospace; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
.nf { max-width: 520px; margin: 40px auto; text-align: center; padding: 36px 24px; }
.nf-code { font: 800 64px/1 var(--head); color: var(--indigo); margin: 0 0 8px; letter-spacing: -.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pnav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .pnav a { white-space: nowrap; flex: none; }
  .pnav a .i:last-child:not(:first-child) { display: none; }
  .psep { width: 1px; height: auto; margin: 6px 4px; }
}
@media (max-width: 560px) {
  .srow, .trow { grid-template-columns: 36px minmax(0, 1fr); }
  .srow > :last-child:not(div), .trow > :last-child:not(.tname) { grid-column: 2; justify-self: start; }
  .roles div { grid-template-columns: 1fr; gap: 2px; }
  .rcodes { columns: 1; }
  .phead .avatar { width: 44px !important; height: 44px !important; }
}
