/* The makers' account pages (/account, the set-up, sign-in and password pages, /account/testing, the requests and the
   agent: hub-spec.md §113, §114, §116), in the site's 12c frame since 0.64.2 (frame.ts, the makers' variant;
   Docs/site-12c-spec.md, part D-2). press.css gives the page head, the buttons, the forms, the hints and the notices
   (scoped to <body class="makers-page">); this file is only what these pages add, in 12c's clean, small look: hairlines
   between things and no boxes (Jeff #588). Only the account pages load it, after press.css, so nothing here reaches
   another page. Colours are press.css's tokens, so the night theme comes with them. */

/* Long names, addresses and links break where they must, never pushing the page sideways. */
.account { overflow-wrap: anywhere; }
/* A long label that wraps on a phone (Download the report as Markdown) stays centred in its button, with room above
   and below; a one-line button keeps its 46 px. */
.account .button, .account .btn { overflow-wrap: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; line-height: 1.35; }
.account .pagehead__title, .account .pagehead__dek { overflow-wrap: anywhere; }

/* Links read as 12c's links (no specificity of their own, so anything named below wins); the names in a list read as
   names. */
.account :where(a:not(.button, .btn)) { color: var(--link); }
.account .account__appname a, .account a.account__reqname { color: var(--ink); text-decoration: none; }
.account .account__appname a:hover, .account a.account__reqname:hover { text-decoration: underline; }

/* A block: a hairline above, its label, its content. press.css spaces every <section> 64 px apart; here the hairline
   does that work. */
.account .account__block { margin-top: 0; border-top: 1px solid var(--rule); padding: 22px 0 30px; }
.account .pagehead + .account__block, .account .formok + .account__block, .account .formerror + .account__block { border-top: 0; padding-top: 0; }
.account__block > .section-label { margin-bottom: 12px; }
.account__block p + p, .account__block p + form, .account__block form + p, .account__block p + ul { margin-top: 10px; }
.account .formok { padding-top: 0; }
.account__list { list-style: disc; padding-left: 1.3em; font-size: 17px; }
.account__list li + li { margin-top: 8px; }
.account__list li::marker { color: var(--ink-2); }

/* Your apps: a card each (hub-spec.md §165), the head a row (icon, name, state), its links and Request a change under
   it, lined up with the name. */
.account__app { padding: 14px 0 12px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.account__app:last-child { border-bottom: 0; }
.account__apphead { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.account__app > :not(.account__apphead) { margin-left: 54px; }
.account__applinks { margin-top: 8px; font: 600 15px/1.6 var(--font-display); }
.account__applinks span { color: var(--ink-2); }
.account__applinks a { white-space: nowrap; }
.account__appnote { margin-top: 6px; font: 400 15px/1.45 var(--font-text); color: var(--ink-2); }
/* A request's thanks, beside the form it came from: a line with an ink rule, not the page's big notice. */
.account__app .formok, .account__offer .formok, .account__block > .formok.account__thanks {
  font: 600 16px/1.4 var(--font-display); color: var(--ink); border-left: 3px solid var(--ink); padding: 6px 12px; margin: 12px 0 4px;
}
.account .account__app > .formok { margin-left: 54px; }

/* Request a change: a disclosure that reads as a link, its form under it. */
.account__more { margin-top: 6px; }
.account__more > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none;
  font: 600 15px/1.3 var(--font-display); color: var(--link); text-decoration: underline; text-underline-offset: 3px;
}
.account__more > summary::-webkit-details-marker { display: none; }
.account__more > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.account__more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.account__more > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.account__more .form { margin: 6px 0 10px; }
.account__more .form .button, .account__offerform .button { margin-top: 16px; }
.account__changeform .formerror, .account__offerform .formerror { margin: 4px 0 8px; }

/* Your details: People's fields, read only. */
.account__person { margin-top: 16px; }

/* Work with us: four compact offers, two a row (one on phones), a heavy rule over each as the extras have: the heading,
   one line, and one primary button at the card's foot, so the four buttons line up. A featured week and a story open
   their form under their button (a <details> whose summary is the button), and a refused post comes back open. */
.account__offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 16px; }
.account__offer { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--ink); padding-top: 14px; scroll-margin-top: 24px; }
.account__offertitle { font: 800 20px/1.25 var(--font-display); letter-spacing: -.005em; margin: 0 0 8px; }
.account__offer > p { font-size: 17px; }
.account__offeraction { margin-top: auto; padding-top: 16px; width: 100%; }
.account__offers .account__offer--testing .account__actions { margin-top: auto; padding-top: 16px; }
/* The asks don't stretch to their row: one opening its form leaves the other's button where it was. */
.account__offer:has(.account__ask) { align-self: start; }
.account__offer .account__applinks { margin-top: 12px; }
.account .account__offer .formok { margin: 0 0 12px; }
/* The several-apps picker: the app and Get it on one row. */
.account__pick { display: flex; gap: 10px; align-items: stretch; margin: 0; }
.account__pick select {
  flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 8px 12px; font: 400 17px/1.4 var(--font-text);
  color: var(--ink); background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius);
}
.account__pick .button { flex: none; }
/* An ask's button opens its form. */
.account__ask > summary { list-style: none; cursor: pointer; display: inline-flex; }
.account__ask > summary::-webkit-details-marker { display: none; }
.account__ask > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.account__ask[open] > summary { background: transparent; color: var(--ink); }
.account__offerform { margin-top: 16px; }
.account__offerform select {
  display: block; min-height: 48px; width: 100%; padding: 10px 14px; font: 400 18px/1.4 var(--font-text);
  color: var(--ink); background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius);
}
.account__offerform select + label { margin-top: 16px; }
.account__app .icon { width: 40px; height: 40px; }
.account__appname { flex: 1; min-width: 0; font: 700 18px/1.25 var(--font-display); }
.account__appstate { flex: none; max-width: 50%; font: 500 14px/1.35 var(--font-display); color: var(--ink-2); text-align: right; }
.account__appstate--live { color: var(--ink); }

/* The plan, and the tests: a row of figures, a hairline between them, no boxes. */
.account__plan { font: 800 24px/1.2 var(--font-display); letter-spacing: -.005em; margin-bottom: 6px; }
.account__credits { display: flex; flex-wrap: wrap; row-gap: 16px; margin: 20px 0 16px; }
.account__credits > div { min-width: 6.5em; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--rule); }
.account__credits > div:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.account__credits dt { font: 700 12px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.account__credits dd { font: 800 36px/1.05 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 6px; }
/* A block's own hint: tight under the figures and under another hint, a line's space under anything else. (A hint in a
   form keeps the form's spacing, tight under its label, as on every makers' page.) */
.account__block > .hint { font: 400 15px/1.45 var(--font-text); color: var(--ink-2); margin: 0; }
.account__block > * + .hint { margin-top: 10px; }
.account__block > .hint + .hint, .account__block > .account__credits + .hint { margin-top: 4px; }
.account__block > .hint + .button, .account__block > .hint + .account__actions { margin-top: 14px; }
.account__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.account__block .account__actions { margin-top: 22px; }
.account__actions form { margin: 0; }

/* The purchase page: the plan's form, pay as you go, the extras with a plan. */
.account__buy form { margin-top: 14px; }
.account__buy label { display: block; font: 700 15px/1.3 var(--font-display); margin-bottom: 6px; }
.account__buy select {
  display: block; min-height: 48px; width: 100%; max-width: 420px; padding: 10px 14px; font: 400 18px/1.4 var(--font-text);
  color: var(--ink); background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius);
}
.account__buy select + .hint { margin-top: 8px; }
.account__buy .button { margin-top: 20px; }
.account__buy .button + .hint { margin-top: 10px; }
.account__extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 18px 0 16px; }
.account__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-top: 2px solid var(--ink); padding-top: 14px; }
.account__extra p { font: 700 18px/1.3 var(--font-display); }

/* A button that reads as a link (Sign out, Revoke). */
.account .linkish {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer;
  font: 600 15px/1.3 var(--font-display); color: var(--link); text-decoration: underline; text-underline-offset: 3px;
}
.account__signout { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 2px; font: 400 16px/1.5 var(--font-text); color: var(--ink-2); }
/* Sign-in's "New here?": its own line under Forgot your password?, past a hairline (hub-spec.md §165). */
.account .account__new { margin-top: 28px; }
.account__new a { white-space: nowrap; }
/* After a form that ends on its button (forgot, the request form), room before the hairline. */
.account .form + .account__signout { margin-top: 40px; }

/* Test requests (hub-spec.md §114) and the agent's keys: rows with a hairline under each. */
.account__req, .account__key { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.account__req:last-child, .account__key:last-child { border-bottom: 0; }
.account__reqname { min-width: 0; font: 700 17px/1.3 var(--font-display); }
.account__reqstate { flex: none; max-width: 55%; font: 500 14px/1.35 var(--font-display); color: var(--ink-2); text-align: right; }
.account__reqstate--delivered { color: var(--ink); font-weight: 600; }
.account__reqstate--late { color: var(--red); font-weight: 600; }
.account__key > span { min-width: 0; font: 400 16px/1.45 var(--font-text); }
.account__key code { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.account__key .hint { font-size: 14px; }
.account__key form { margin: 0; flex: none; }

/* The request form: where to get the build, one choice a line. */
.account__request fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.account__request legend { padding: 0; margin-bottom: 4px; font: 700 15px/1.3 var(--font-display); }
.account__request .account__kind { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); font: 400 16px/1.4 var(--font-text); cursor: pointer; }
.account__request .account__kind:last-child { border-bottom: 0; }
.account__request .account__kind input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; border: 0; accent-color: var(--ink); }
.account__kind strong { font: 700 16px/1.3 var(--font-display); }
.account__kind .hint { display: block; margin: 2px 0 0; }
.account__request .button[disabled] { opacity: .45; cursor: not-allowed; }
.account__request .account__cost { margin-top: 24px; margin-bottom: 0; }

/* A request's page: what was sent, and the report. */
.account__details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; font: 400 17px/1.45 var(--font-text); }
.account__details dt { font: 700 14px/1.6 var(--font-display); color: var(--ink-2); }
.account__details dd { margin: 0; white-space: pre-wrap; }
.account__summary { font: 400 20px/1.5 var(--font-text); white-space: pre-wrap; }
.account__rephead { font: 800 18px/1.25 var(--font-display); margin: 26px 0 10px; }
.account__findings { list-style: decimal; padding-left: 1.5em; }
.account__findings li::marker { font: 700 16px var(--font-display); color: var(--ink-2); }
.account__findings li + li { margin-top: 16px; }
.account__finding { font: 700 17px/1.35 var(--font-display); }
.account__findingbody { white-space: pre-wrap; margin-top: 4px; font-size: 17px; }
.account__shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.account__shots a { display: block; line-height: 0; border-radius: var(--radius); }
.account__shots img { width: 120px; height: auto; max-height: 240px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); }

/* The agent: a field and its button on one line, and the key, shown once. */
.account__inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-top: 20px; }
.account__inline label { flex-basis: 100%; font: 700 15px/1.3 var(--font-display); }
.account__block .account__inline .hint { flex-basis: 100%; margin: -2px 0 2px; }
.account__block .account__inline .button + .hint { margin: 2px 0 0; }
.account__inline input {
  flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 10px 14px; font: 400 17px/1.4 var(--font-text);
  color: var(--ink); background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius);
}
.account__inline input::placeholder { color: var(--ink-2); }
.account__inline .button { min-height: 48px; }
.account__secret code, .account__code {
  display: block; margin: 0 0 14px; padding: 12px 14px; background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius);
  font: 400 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
.account__secret code { font-size: 16px; font-weight: 600; }
.account__code code { font: inherit; }

/* The maker link (account-switchover part 1; pages/maker-link.ts): the account page's look, with the sign-in prompt on a
   quiet panel, and a look-over card's Looks good, icon upload and notes lined up under the name. */
.account .account__block.account__prompt { background: var(--wash); border-top: 0; padding: 20px 20px 22px; margin-bottom: 10px; }
.account__prompttitle { font: 800 22px/1.25 var(--font-display); letter-spacing: -.005em; margin: 0 0 6px; max-width: 36ch; }
.account__prompt .account__actions { margin-top: 16px; }
.account__setpw[open] { flex-basis: 100%; }
.account__setpw .form { max-width: 440px; }
.account .account__promptlink { font: 600 15px/1.3 var(--font-display); }
.account__looks { margin-top: 10px; }
.account__looked { margin-top: 10px; font: 600 16px/1.4 var(--font-display); border-left: 3px solid var(--ink); padding: 6px 12px; }
.account__changed { margin-top: 10px; border-left: 3px solid var(--red); padding: 4px 12px; color: var(--ink); font-weight: 600; }
.account__iconform { margin-top: 12px; }
.account__iconform label { margin-top: 4px; }
.account__iconrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.account__iconrow input[type="file"] { flex: 1 1 220px; min-width: 0; padding: 8px; font-size: 15px; }
.account .account__iconrow .button { margin-top: 0; }
.account .account__linknote { margin-top: 28px; }

/* Phones */
@media (max-width: 760px) {
  .account .account__block.account__prompt { padding: 16px; }
  .account__iconrow .button { width: 100%; }
  .account__apphead { flex-wrap: wrap; }
  .account__appstate { flex-basis: 100%; max-width: none; text-align: left; padding-left: 54px; margin-top: -4px; }
  .account__req, .account__key { flex-wrap: wrap; }
  .account__reqstate { flex-basis: 100%; max-width: none; text-align: left; }
  /* Two figures a line, the hairline between the two. */
  .account__credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .account__credits > div { min-width: 0; padding: 0 0 0 18px; margin: 0; border-right: 0; border-left: 1px solid var(--rule); }
  .account__credits > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .account__credits dd { font-size: 32px; }
  .account__extras { grid-template-columns: minmax(0, 1fr); }
  .account__details { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .account__details dd + dt { margin-top: 12px; }
  .account__actions > .button, .account__actions > form, .account__actions > form .button, .account__extra .button, .account__buy .button, .account__inline .button { width: 100%; }
  .account__extra { align-items: stretch; }
  .account__more .form .button, .account__offerform .button { width: 100%; }
  .account__offers { grid-template-columns: minmax(0, 1fr); }
  .account__offer { align-items: stretch; }
  .account__offeraction .button, .account__ask > summary { width: 100%; justify-content: center; }
  .account__pick { flex-direction: column; }
}

/* Settings (/account/settings; the account switchover, part 2): each way to sign in, and the email on file, is a row:
   its name and what's set on the left, its button on the right, hairlines between. Under the email, the change's step
   (its number in red, its question, its form), then the small links that post (Send a new code, Cancel). A line about
   the change reads as a request's thanks does (an ink rule), not the page's big notice. On a phone each row's button
   takes a full-width line of its own. */
.account__methods { list-style: none; padding: 0; margin: 0; }
.account__method { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.account__methods > .account__method:last-child, .account__method--solo { border-bottom: 0; }
.account__methodtext { min-width: 0; }
.account__methodname { font: 700 17px/1.35 var(--font-display); color: var(--ink); }
.account__methodtext > p + p { margin-top: 2px; font: 400 16px/1.45 var(--font-text); color: var(--ink-2); }
.account__methodtext strong { font: 700 16px/1.45 var(--font-display); color: var(--ink); }
.account__method > form { margin: 0; flex: none; }
.account__methodform { margin-top: 18px; scroll-margin-top: 24px; }
.account__step { margin-top: 14px; scroll-margin-top: 24px; }
.account__stepno { font: 700 12px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.account__steptitle { font: 800 20px/1.3 var(--font-display); letter-spacing: -.005em; margin: 6px 0 0; }
.account__step > p:not([class]) { margin-top: 10px; }
.account__step .account__inline { margin-top: 16px; }
.account__step > .formerror { margin: 12px 0 0; }
.account__step > .formok, .account__emailblock > .formok {
  font: 600 16px/1.4 var(--font-display); color: var(--ink); border-left: 3px solid var(--ink); padding: 6px 12px; margin: 12px 0 4px;
}
.account__steplinks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 6px; color: var(--ink-2); }
.account__steplinks form { margin: 0; }
.account__settingsline { margin-top: 14px; }
/* Settings after Sign out on /account: it reads as Sign out does (only that form's link; the pages' other lines keep theirs). */
.account form.account__signout > a { font: 600 15px/1.3 var(--font-display); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .account__method { flex-wrap: wrap; }
  .account__method > form, .account__method > .button, .account__method > form .button { width: 100%; }
}
