/* kwker.io account area (/account/): the dashboard (sidebar + sections) and the sign-in cards. On top of site.css and
   its colour tokens; markup from website/account/lib/ui.php. No inline styles anywhere (the pages' CSP forbids them):
   widths that vary come from classes and data attributes. The look is a plain ledger: hairlines, a few boxes where a
   thing is one object (the license, a form, a table), the accent only on the main action and on status. */

body.acct-app, body.acct-auth {
  --top-h: 61px;
  --side-w: 248px;
  --r: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ring: color-mix(in srgb, var(--accent) 22%, transparent);
  --warn-ink: #9a5a05;
  --info-ink: #2558b8;
  --danger: #c2331f;
}
@media (prefers-color-scheme: dark) {
  body.acct-app, body.acct-auth { --warn-ink: #f0bb5c; --info-ink: #8db7ff; --danger: #ff8a73; }
}

/* page-to-page: the browser cross-fades the content and keeps the header and the sidebar in place */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
body.acct-app header.top { view-transition-name: site-top; }
.app-side { view-transition-name: acct-side; }

@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes slide { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  6%, 88% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; visibility: hidden; }
}

/* ---------------------------------------------------------------------------------------------- the dashboard */
.app {
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100dvh - var(--top-h));
  background: linear-gradient(to right, var(--surface) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px) var(--side-w), transparent var(--side-w));
}

/* the sidebar (a popover: on phones it opens as a drawer; on wide screens it simply stays put) */
.app-side {
  position: sticky; top: var(--top-h); inset-inline: auto; inset-block-end: auto; height: calc(100dvh - var(--top-h)); width: auto; max-width: none;
  display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 12px 12px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border: 0; border-right: 1px solid var(--line);
}
.side-top { display: none; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.side-title { font-weight: 600; }

.org-switch { position: relative; margin-bottom: 10px; }
.org-switch > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; padding: 7px 8px; cursor: pointer; border-radius: 6px; transition: background .12s;
}
.org-switch > summary::-webkit-details-marker { display: none; }
.org-switch > summary:hover, .org-switch[open] > summary { background: var(--surface-2); }
.org-mark {
  width: 30px; height: 30px; flex: none; border-radius: 6px; display: grid; place-items: center; font-weight: 600; font-size: .76rem;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
}
.org-mark.sm { width: 24px; height: 24px; border-radius: 5px; font-size: .66rem; }
.org-name { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.org-name strong { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-name small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-switch .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.org-switch[open] .chev { transform: rotate(180deg); }
.org-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; display: grid; gap: 1px; padding: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); animation: pop .14s var(--ease);
}
.org-menu a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: .88rem; }
.org-menu a:hover { background: var(--surface-2); }
.org-menu a .ico { width: 15px; height: 15px; color: var(--muted); }
.org-menu .org-add { margin-top: 3px; border-top: 1px solid var(--line); border-radius: 0 0 5px 5px; padding-top: 9px; color: var(--muted); }
.grow { flex: 1; min-width: 0; }

.side-nav { display: grid; gap: 1px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: .92rem; transition: background .12s, color .12s;
}
.side-nav a .ico { width: 17px; height: 17px; flex: none; }
.side-nav a:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.side-nav .count { margin-left: auto; color: var(--muted); font-size: .8rem; font-weight: 400; font-variant-numeric: tabular-nums; }

.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .76rem;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
}
.me { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.me strong { font-size: .82rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { color: var(--muted); font-size: .74rem; }
.icon-btn { cursor: pointer; font: inherit; }
.side-foot .icon-btn { width: 30px; height: 30px; border-color: transparent; background: none; color: var(--muted); }
.icon-btn.signout:hover { color: var(--danger); border-color: var(--line); }

/* the content */
.app-main { min-width: 0; max-width: 1080px; padding: 32px clamp(16px, 4vw, 48px) 56px; }
.app-bar { display: none; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.head-text { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 6px; font-size: .82rem; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.app-head h1 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 650; line-height: 1.2; letter-spacing: -.015em; overflow-wrap: anywhere; }
.app-head .sub { margin: 6px 0 0; font-size: .93rem; color: var(--muted); max-width: 46em; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* buttons */
.acct-app .btn, .acct-auth .btn { cursor: pointer; font-family: inherit; font-weight: 600; border-radius: 6px; transition: filter .12s, border-color .12s, background .12s; }
.btn .ico { width: 16px; height: 16px; }
.btn-sm { padding: 5px 10px; font-size: .84rem; gap: 6px; }
.btn-sm .ico { width: 15px; height: 15px; }
.btn.confirm { background: var(--danger); border-color: var(--danger); color: #fff; }
button.linkish { font-weight: 500; }

/* sections (the overview): a heading on a hairline, no box (site.css pads every section for the product pages) */
.sec { padding-block: 0; }
.sec + .sec, .cols { margin-top: 34px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-head h2, .panel-head h2 { margin: 0; font-size: .98rem; font-weight: 600; letter-spacing: 0; }
.sec-head a, .panel-head a { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; text-decoration: none; }
.sec-head a .ico, .panel-head a .ico { width: 15px; height: 15px; }
.sec.flat > .sec-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }   /* (a box follows: no rule on top of it) */
.cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px 48px; align-items: start; }
.col { display: grid; gap: 34px; min-width: 0; }
.cols .sec + .sec { margin-top: 0; }
.none { margin: 0 0 14px; color: var(--muted); font-size: .94rem; max-width: 40em; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* boxes (forms, tables, lists on the other sections) */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.app-main > .panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-text { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.app-main > .note { margin-top: 16px; }

/* status: a small square and a word */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 500; white-space: nowrap; color: var(--muted); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; flex: none; }
.pill.ok { color: var(--accent); }
.pill.warn { color: var(--warn-ink); }
.pill.info { color: var(--info-ink); }
.role { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.you-tag { margin-left: 6px; color: var(--muted); font-size: .8rem; font-weight: 400; }

/* the license: one object, laid out like the file it is */
.lic { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lic-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lic-id { font-family: var(--mono); font-size: .98rem; letter-spacing: .03em; color: var(--ink); background: none; padding: 0; overflow-wrap: anywhere; }
.lic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.lic-grid > div { padding: 12px 18px 14px; border-left: 1px solid var(--line); min-width: 0; }
.lic-grid > div:first-child { border-left: 0; }
.lic-grid dt { color: var(--muted); font-size: .78rem; }
.lic-grid dd { margin: 3px 0 0; font-size: .95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 2px; background: var(--line); }
.bar > span { display: block; height: 100%; width: 0; background: var(--accent); }
.bar[data-p="5"] > span { width: 5%; } .bar[data-p="10"] > span { width: 10%; } .bar[data-p="15"] > span { width: 15%; }
.bar[data-p="20"] > span { width: 20%; } .bar[data-p="25"] > span { width: 25%; } .bar[data-p="30"] > span { width: 30%; }
.bar[data-p="35"] > span { width: 35%; } .bar[data-p="40"] > span { width: 40%; } .bar[data-p="45"] > span { width: 45%; }
.bar[data-p="50"] > span { width: 50%; } .bar[data-p="55"] > span { width: 55%; } .bar[data-p="60"] > span { width: 60%; }
.bar[data-p="65"] > span { width: 65%; } .bar[data-p="70"] > span { width: 70%; } .bar[data-p="75"] > span { width: 75%; }
.bar[data-p="80"] > span { width: 80%; } .bar[data-p="85"] > span { width: 85%; } .bar[data-p="90"] > span { width: 90%; }
.bar[data-p="95"] > span { width: 95%; } .bar[data-p="100"] > span { width: 100%; }
.lic-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; background: var(--surface); }
.lic-files .btn-primary { margin-left: auto; }

/* the activity log: date, then what happened */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log span { overflow-wrap: anywhere; }
.log small, .who small { color: var(--muted); font-size: .84rem; }
.log code { font-size: .84rem; }
.who { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; }
.who li { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.who li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* lists: people, companies */
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rows li:first-child { padding-top: 0; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows .grow { display: grid; line-height: 1.35; }
.rows .t { font-weight: 500; font-size: .92rem; overflow-wrap: anywhere; color: var(--ink); }
a.t { text-decoration: none; }
a.t:hover { text-decoration: underline; }
.rows .s { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }

.facts { display: grid; gap: 8px; margin: 0; }
.facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts.roles > div { grid-template-columns: 5.5em minmax(0, 1fr); }
.facts.roles dt { color: var(--ink); font-weight: 500; }
.facts.roles dd { color: var(--muted); }

/* empty states */
.empty { padding: 4px 0; }
.empty h3 { margin: 0 0 4px; font-size: .98rem; font-weight: 600; }
.empty p { max-width: 36rem; margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.em-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* tables */
.table-scroll { overflow-x: auto; margin: -4px -8px; padding: 0 8px; }
.dtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dtable th { text-align: left; padding: 2px 12px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.dtable td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.dtable th:first-child, .dtable td:first-child { padding-left: 0; }
.dtable th:last-child, .dtable td:last-child { padding-right: 0; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable code { font-size: .84rem; background: none; padding: 0; }
.td-act { text-align: right; }
.td-act > * + * { margin-left: 6px; }
.num { font-variant-numeric: tabular-nums; }

/* forms */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; max-width: none; margin: 0; }
.fields .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; font-weight: 500; font-size: .86rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
/* (as specific as site.css's older .acct-form input rule, which the support form still uses) */
.field input:not([type="checkbox"]):not([type="radio"]), .field select {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 400; font-size: .93rem; transition: border-color .12s, box-shadow .12s;
}
.field select {
  appearance: none; padding-right: 34px; cursor: pointer; background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.field input:not([type="checkbox"]):not([type="radio"]):hover, .field select:hover { border-color: color-mix(in srgb, var(--muted) 55%, var(--line)); }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.form-end { display: flex; justify-content: flex-end; gap: 8px; }
.check, .acct-form .check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; font-size: .9rem; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.acct-app .acct-form .form-end { margin-top: 6px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 8px; }
.tier {
  position: relative; display: grid; gap: 2px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.tier input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tier:hover { border-color: color-mix(in srgb, var(--muted) 55%, var(--line)); }
.tier:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tier:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.t-check { position: absolute; top: 14px; right: 14px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line); }
.tier:has(input:checked) .t-check { border: 4.5px solid var(--accent); }
.t-band { font-weight: 500; font-size: .88rem; padding-right: 24px; }
.t-price { margin-top: 6px; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.t-per { color: var(--muted); font-size: .8rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 5px; height: 9px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* verify: numbered steps and the command */
.howto { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.howto li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; padding-left: 38px; counter-increment: step; }
.howto li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums;
}
.howto .t { font-weight: 500; }
.howto .s { color: var(--muted); font-size: .9rem; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 6px; background: var(--code-bg); color: var(--code-ink); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; font-size: .85rem; background: none; }
.cmd .icon-btn { width: 30px; height: 30px; background: transparent; color: var(--code-ink); border-color: #2a3833; }
.cmd .icon-btn:hover { border-color: var(--code-dim); }
.cmd .icon-btn.done { color: var(--accent); border-color: var(--accent); }

.app-main > .callout { margin: 0 0 20px; }

/* the notice after an action */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 10px 16px 10px 12px; border-radius: var(--r); background: var(--ink); color: var(--bg);
  font-weight: 500; font-size: .9rem; box-shadow: 0 10px 30px rgb(0 0 0 / .22); pointer-events: none; animation: toast 5s var(--ease) forwards;
}
.toast .ico { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }

/* the dashboard's footer: one slim line at the bottom of the main column (the site's footer is left out) */
.app-col { min-width: 0; display: flex; flex-direction: column; }
.app-col > .app-main { flex: 1 0 auto; }
.app-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 16px clamp(16px, 4vw, 48px) calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem;
}
.app-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.app-foot a { color: var(--muted); text-decoration: none; transition: color .12s; }
.app-foot a:hover { color: var(--ink); }

/* phones and narrow windows: the sidebar becomes a drawer behind the menu button */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .app-side { display: none; }
  .app-side:popover-open, .app-side.open {
    display: flex; position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(84vw, 300px); height: 100dvh; max-height: none;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid var(--line); box-shadow: 16px 0 40px rgb(0 0 0 / .25); animation: slide .24s var(--ease);
  }
  .app-side::backdrop { background: rgb(0 0 0 / .4); animation: fade .24s; }
  .side-top { display: flex; }
  .app-main { padding-top: 0; }
  .crumbs { display: none; }   /* (the bar above names the section) */
  .app-bar {
    position: sticky; top: var(--top-h); z-index: 4; display: flex; align-items: center; gap: 12px; margin: 0 calc(-1 * clamp(16px, 4vw, 48px)) 20px;
    padding: 9px clamp(16px, 4vw, 48px); background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .bar-t { display: grid; line-height: 1.2; min-width: 0; }
  .bar-t strong { font-size: .92rem; font-weight: 600; }
  .bar-t small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grid2, .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .app-head { margin-bottom: 20px; }
  .app-head .head-actions, .app-head .head-actions .btn { width: 100%; justify-content: center; }
  .panel { padding: 16px; }
  .lic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lic-grid > div:nth-child(3) { border-left: 0; }
  .lic-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lic-files .btn-primary { margin-left: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .facts.roles > div { grid-template-columns: minmax(0, 1fr); }
  .rows.people li { flex-wrap: wrap; row-gap: 6px; }
  .rows.people li .grow { flex: 1 1 calc(100% - 44px); }
  .rows.people li > .role { margin-left: 40px; }
  .rows.people li > form { margin-left: auto; }
  /* (tables: one block a row, each cell with its column's name) */
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable thead { display: none; }
  .dtable tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .dtable tbody tr:first-child { padding-top: 0; }
  .dtable tbody tr:last-child { border-bottom: 0; }
  .dtable td { padding: 3px 0 !important; border: 0; white-space: normal; overflow-wrap: anywhere; display: flex; gap: 10px; align-items: center; }
  .dtable td[data-label]::before { content: attr(data-label); flex: 0 0 7.5em; color: var(--muted); font-size: .8rem; }
  .td-act { justify-content: flex-start; padding-top: 8px !important; flex-wrap: wrap; }
  .td-act:empty { display: none !important; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------------------------- sign-in and other cards */
main.auth { display: grid; place-items: start center; min-height: calc(100dvh - var(--top-h)); padding: clamp(40px, 10vh, 96px) 16px 72px; }
.auth-card { width: min(100%, 400px); padding: 28px 28px 22px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.auth-card.wide { width: min(100%, 560px); }
.auth-card h1 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.auth-card .sub { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--muted); font-size: .93rem; }
.auth-text { margin: 0 0 16px; color: var(--muted); font-size: .93rem; }
.auth-form { display: grid; gap: 12px; }
.auth-card .btn { width: 100%; justify-content: center; height: 38px; padding: 0 16px; }
.auth-card .fields .btn, .auth-card .form-end .btn { width: auto; }
.auth-card .callout { margin: 0 0 18px; }
.auth-foot { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.auth-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .87rem; }
.auth-alt span { flex-basis: 100%; }
.auth-alt form { display: inline; }
.spinner { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .75s linear infinite; }
.steps { display: flex; gap: 6px; margin: -2px 0 18px; }
.steps span { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-2); }
.steps span.on { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .acct-app *, .acct-auth *, .acct-app *::before, .acct-auth *::before { animation: none !important; transition: none !important; }
  .toast { animation: none !important; }
  @view-transition { navigation: none; }
}
