/* Neon design: page-specific rules for the account pages (shared design system: /static/site.css).
   Your account, Your details, Sign-in security, Firewall backups: a signed-in console. Calm panels with a
   quiet cyan hairline (less glow than the marketing pages), HUD readouts, tables that scroll in their own
   box. Every rule is scoped to .acct (the section of these four pages) or to .acct-* classes they use. */

/* Page head: the signed-in name and email as a mono readout line. */
.page-head .acct-who { font: 400 clamp(0.88rem, 1.6vw, 1rem)/1.6 var(--mono); letter-spacing: 0.02em; color: var(--dim); overflow-wrap: anywhere; }

/* Section rhythm: smaller console headings with a hairline running to the right. */
.acct > .wrap > h2 { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.875rem; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: 0.08em; }
.acct > .wrap > h2::after { content: ""; flex: 1 1 1.5rem; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.acct > .wrap > h2 + .hint { margin: -0.25rem 0 0.875rem; }

/* Calm panels: a quiet cyan hairline, no magenta corner. */
.acct .acct-card { --cut: 0.75rem; padding: 1.375rem 1.375rem 1.375rem; }
.acct .acct-card::before { background: linear-gradient(135deg, rgba(24, 224, 255, 0.34), rgba(24, 224, 255, 0.1) 40%, rgba(24, 224, 255, 0.1)); }
.acct .acct-card::after { background: linear-gradient(135deg, transparent calc(50% - 0.8px), var(--line-hot) calc(50% - 0.8px), var(--line-hot) calc(50% + 0.8px), transparent calc(50% + 0.8px)) top left / var(--cut) var(--cut) no-repeat; }
.acct .acct-card + .acct-card { margin-top: 1rem; }
.acct .acct-card h2 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); letter-spacing: 0.08em; margin-bottom: 0.875rem; }
.acct .card p, .acct .card li { color: var(--read); }
.acct .card .faint, .acct .card .hint { color: var(--faint); }
.acct .card .muted { color: var(--dim); }

/* HUD readouts: licenses, firewalls, the next renewal, two-step sign-in. */
.acct-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1.5rem; border: 1px solid var(--line); background: var(--deck); }
.acct-hud > div { position: relative; min-width: 0; padding: 1rem 1.25rem 1.125rem; border-left: 1px solid var(--line-soft); }
.acct-hud > div:first-child { border-left: 0; }
.acct-hud > div::before { content: ""; position: absolute; left: -1px; top: -1px; width: 1.375rem; height: 2px; background: var(--cyan); opacity: 0.75; }
.acct-hud dt { font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.acct-hud dd { margin: 0.5rem 0 0; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); color: var(--cyan); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acct-hud dd.acct-date { font-size: clamp(1.05rem, 1.9vw, 1.4rem); line-height: 1.35; }
.acct-hud dd small { display: block; margin-top: 0.375rem; font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
/* Values line up when one caption wraps to two lines. */
@supports (grid-template-rows: subgrid) {
  .acct-hud > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .acct-hud dt { align-self: end; }
}
.acct-hud .acct-on { color: var(--ok); }
.acct-hud .acct-off { color: var(--warn); }

/* Account links under the readouts. */
.acct-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0 0 0.5rem; }
.acct .btn { white-space: normal; text-align: center; max-width: 100%; }

/* A license or subscription: key and status on top, the summary, sub-panels. */
.acct .acct-top { align-items: start; justify-content: space-between; gap: 0.875rem 1.5rem; }
.acct .acct-top > :first-child { flex: 1 1 17.5rem; }
.acct .acct-top > .acct-state { flex: 0 0 auto; text-align: right; }
.acct .acct-top .key { font-size: clamp(0.98rem, 2.4vw, 1.15rem); }
.acct .acct-sum { margin: 0.75rem 0 1rem; color: var(--dim); }
.acct .acct-sub { margin: 0.875rem 0 0; font-size: 0.95rem; }
.acct .acct-sub .row { margin: 0.625rem 0 0.25rem; align-items: start; }
.acct .acct-sub p { margin: 0.5rem 0 0; }
.acct .acct-sub details { margin-top: 0.625rem; }
.acct .acct-sub ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.acct .acct-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin: 0.75rem 0 2px; }
.acct .acct-buy select { flex: 0 1 13.75rem; width: auto; min-width: 0; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.acct .acct-meta { margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--line); font: 400 0.8rem/1.6 var(--mono); letter-spacing: 0.02em; }
.acct .acct-btns { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 1rem 0 0; }
.acct .notice form.inline { margin-left: 0.25rem; }
.acct .acct-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-bottom: 0.625rem; }
.acct .acct-line .label { margin: 0; }

/* Tables: readable rows; they scroll in their own box on small screens. */
.acct .acct-table table { min-width: 42.5rem; }
.acct .acct-table td:nth-child(2) { min-width: 11.25rem; }
.acct .acct-table.acct-backups table { min-width: 47.5rem; }
.acct .acct-table td { vertical-align: middle; }
.acct .acct-table td .faint { font-size: 0.8rem; margin-top: 2px; }
.acct .acct-table .pill.off { color: var(--dim); background: rgba(142, 163, 196, 0.08); border-color: rgba(142, 163, 196, 0.35); }
.acct .acct-nowrap { white-space: nowrap; }
.acct .acct-nowrap .btn-sm { white-space: nowrap; }
.acct .acct-file { max-width: 17.5rem; overflow-wrap: anywhere; font-size: 0.85rem; }
.acct .acct-table form.inline { margin-left: 0.375rem; }

/* Sign out on phones (the top bar hides it at 600 px and less). */
.acct-signout { display: none; margin-top: 1.75rem; }

/* Firewall backups: the policy and the upload form side by side. */
.acct .acct-lead { max-width: 51.25rem; color: var(--read); margin-bottom: 1.375rem; }
.acct-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.125rem; align-items: start; }
.acct .acct-split .ticks { margin: 0; }
.acct .acct-split > .acct-card { margin-top: 0; }
.acct-upload label:not(.check) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.375rem; margin-bottom: 1rem; font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.acct-upload label:not(.check) > * { font-family: var(--body); letter-spacing: normal; text-transform: none; }
.acct-upload input[type=file] { width: 100%; min-width: 0; padding: 0.5rem; border: 1px dashed var(--line-strong); background: var(--field); font-size: 0.92rem; }
.acct-upload label.check { margin: 0.25rem 0 1.125rem; color: var(--read); }

/* Your details: two columns of fields on wide screens. */
.acct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.125rem; max-width: 55rem; }
.acct-form > .acct-wide, .acct-form > .notice { grid-column: 1 / -1; }
.acct-form > .acct-btns { margin-top: 0.25rem; }
.acct-form .seg { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2px 0 0.25rem; }
.acct-form .seg label { --cut: 0.5rem; flex: 1 1 11.25rem; display: flex; gap: 0.375rem; align-items: center; justify-content: center; padding: 0.625rem 0.75rem;
  border: 1px solid var(--line-strong); background: var(--field); cursor: pointer; font: 500 0.95rem/1.3 var(--body); letter-spacing: normal; text-transform: none; color: var(--text);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.acct-form .seg label:hover { border-color: var(--line-hot); }
.acct-form .seg label:has(input:checked) { border-color: var(--cyan); background: rgba(24, 224, 255, 0.08); }
.acct-form .seg label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: -0.3125rem; }
.acct-form .seg input { margin: 0; }
.acct-form .field label .hint { text-transform: none; letter-spacing: normal; font-family: var(--body); }
/* Labels of a row line up (one label wraps to two lines, its neighbour does not). */
@supports (grid-template-rows: subgrid) {
  .acct-form > .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0.375rem; align-content: start; }
  .acct-form > .field > label, .acct-form > .field > .label { align-self: end; }
}

/* Sign-in security: one column of panels; the state as a pill next to the title. */
.acct-narrow > * { max-width: 51.25rem; }
.acct .acct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.875rem; margin-bottom: 0.625rem; }
.acct .acct-head h3 { margin: 0; }
.acct .acct-steps { margin: 0.25rem 0 0.625rem; padding-left: 1.375rem; color: var(--read); }
.acct .acct-steps li { margin: 0.375rem 0; padding-left: 0.25rem; }
.acct .acct-steps li::marker { color: var(--cyan); font: 600 0.9rem var(--mono); }
.acct .acct-qr { margin: 0.375rem 0 0.75rem; }
.acct .acct-qr img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.acct .acct-totp-key code { display: inline-block; margin-top: 0.25rem; padding: 0.1875rem 0.5rem; color: var(--cyan); background: var(--field); border: 1px dashed var(--line-hot); letter-spacing: 0.08em; overflow-wrap: anywhere; }
.acct .acct-code { margin-top: 0.875rem; }
.acct .acct-code input[name=code] { max-width: 22.5rem; font: 500 1.25rem/1.3 var(--mono); letter-spacing: 0.22em; }
.acct .acct-code + .hint { margin-top: 1rem; }
.acct ol.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2.5rem; columns: auto; margin: 0.875rem 0 1.125rem; padding-left: 1.625rem; }
.acct ol.recovery li { padding: 0.375rem 0.625rem; color: var(--cyan); background: var(--field); border: 1px solid var(--line); }
.acct ol.recovery li::marker { color: var(--faint); font-size: 0.8rem; }

/* Two-step set-up: the QR code beside the steps on wide screens. */
@media (min-width: 761px) {
  .acct-totp { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.75rem; align-items: start; }
  .acct-totp > .acct-head, .acct-totp > .acct-totp-intro { grid-column: 1 / -1; }
  .acct-totp > .acct-steps, .acct-totp > .acct-totp-key, .acct-totp > .acct-code { grid-column: 1; }
  .acct-totp > .acct-qr { grid-column: 2; grid-row: 3 / span 3; margin: 0.25rem 0 0; }
}

@media (max-width: 960px) {
  .acct-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .acct-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-hud > div:nth-child(3) { border-left: 0; }
  .acct-hud > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  .acct-form { grid-template-columns: minmax(0, 1fr); }
  .acct .acct-top > .acct-state { text-align: left; }
}
@media (max-width: 600px) {
  .acct-signout { display: block; }
  .acct .acct-card { padding: 1.125rem 1rem; }
  .acct-hud > div { padding: 0.875rem 0.875rem 1rem; }
  .acct ol.recovery { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .acct-hud dt { font-size: 0.62rem; letter-spacing: 0.1em; }
}

@media print {
  .acct-hud, .acct-actions, .acct-signout { display: none; }
  .acct ol.recovery li, .acct .acct-totp-key code { background: #fff; color: #000; border-color: #bbb; }
}

/* ---------- Polish (site-fit-check, 2026-11-24) ---------- */
/* The backup file field shows the keyboard focus (only a faint glow did before). */
.acct-upload input[type=file]:focus-visible { border-style: solid; border-color: var(--cyan); outline: 2px solid var(--cyan); outline-offset: 2px; }
/* Touch screens: the order number links in the tables are 40 px to tap (were 19 px), in the same row height. */
@media (pointer: coarse), (max-width: 760px) {
  .acct td.acct-nowrap a.mono { display: inline-block; padding-top: 0.6875rem; padding-bottom: 0.6875rem; margin-top: -0.6875rem; margin-bottom: -0.6875rem; }
}
