/* Account pages of hustler.fyi: sign-in, registration and the customer panel.
   Ink on paper, on the same rail as the public page: the label on the left, the matter beside it.
   Tokens, fonts and the shared pieces (.stop, .hour, .body, .button) come from styles.css. */
html { background: #f0e9dd; }
body.account { display: flex; flex-direction: column; min-height: 100svh; background: var(--paper); }
.page { --pt: clamp(44px, 7vh, 80px); flex: 1; margin-top: 0; }
.page main { padding-bottom: clamp(80px, 13vh, 150px); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--side) 0; }
.bar-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.bar-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.bar-nav a:hover, .plain:hover { color: var(--text); }
/* A quiet action: reads as a link, behaves as a button. */
.plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
.bar-nav .plain { font-size: 13px; }

.hour b { color: var(--text); font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.page h1 { font: 500 clamp(32px, 4.3vw, 60px)/1.05 var(--display); letter-spacing: -.035em; text-wrap: balance; max-width: 14em; }
.page h1:focus, .page h2:focus { outline: none; }
.page .body h2 { font: 500 clamp(21px, 2.2vw, 28px)/1.16 var(--display); letter-spacing: -.035em; }
.page .body h3 { margin-top: 34px; color: var(--gold); font: 500 10px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.page .lede { margin-top: 22px; }
.text { margin-top: 14px; max-width: 600px; color: var(--muted); text-wrap: pretty; }
.text b, .lede b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.who { margin-bottom: 18px; color: var(--muted); font: 13px/1.6 var(--mono); overflow-wrap: anywhere; }
.small { margin-top: 12px; max-width: 560px; color: var(--muted); font-size: 13px; }
.small a, .text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.small a:hover, .text a:hover { color: var(--text); }
.actions { margin-top: 30px; display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; }
.button.quiet { background: transparent; color: var(--text); }
.button.quiet:hover:not(:disabled) { background: var(--text); border-color: var(--text); color: var(--here); }
.button.short { min-height: 44px; padding: 8px 20px; font-size: 14px; }

/* One field, one button: the label is printed above a ruled line, as on a form. */
.form { margin-top: 36px; max-width: 540px; }
.form label { display: block; color: var(--gold); font: 500 10px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.line { margin-top: 4px; display: flex; align-items: flex-end; gap: 16px; }
.line input { flex: 1; min-width: 0; padding: 10px 2px; border: 0; border-bottom: 2px solid var(--rule); border-radius: 0; background: transparent; color: var(--text); font-size: 20px; }
.line input::placeholder { color: var(--muted); opacity: .7; }
.line input.code { flex: 0 1 9.4em; font: 500 28px/1.2 var(--mono); letter-spacing: .3em; }
/* A longer message: the same ruled line, a few lines high, then the file from the app. */
.form.wide { max-width: 640px; }
.form textarea { display: block; width: 100%; min-height: 8em; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-bottom: 2px solid var(--rule); border-radius: 0; background: transparent; color: var(--text); font: 17px/1.5 var(--sans); resize: vertical; }
.form label.field { margin-top: 28px; }
.form input[type=file] { display: block; max-width: 100%; margin-top: 8px; color: var(--muted); font-size: 14px; }
.form input[type=file]::file-selector-button { min-height: 44px; margin-right: 14px; padding: 8px 20px; border: 1px solid var(--text); border-radius: 2px; background: transparent; color: var(--text); font: 550 14px var(--sans); cursor: pointer; }
.form input[type=file]::file-selector-button:hover { background: var(--text); color: var(--here); }
.form .small b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.check { margin-top: 30px; max-width: 540px; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.check input, .pick input { flex-shrink: 0; width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: #1a1714; }
.status { min-height: 26px; margin-top: 14px; max-width: 540px; color: var(--muted); font-size: 14px; }
.status[data-state=error] { color: var(--danger); }
.status[data-state=done] { color: var(--ok); }

/* The current state is the headline of the panel; everything else is reference. */
.stamp-time { margin-top: 26px; color: var(--muted); font: 12px/1.6 var(--mono); }
.rows { margin-top: 20px; max-width: 640px; border-top: 1px solid var(--line); }
.rows div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { padding-top: 3px; color: var(--gold); font: 500 10px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.list { margin-top: 12px; max-width: 640px; border-top: 1px solid var(--line); }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.list li span { color: var(--muted); font: 13px/1.5 var(--mono); }
.list li b { display: block; color: var(--text); font: 600 15px/1.5 var(--sans); }
.list a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.list li .said { flex-basis: 100%; margin: -2px 0 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pick { margin-top: 12px; display: flex; gap: 10px 30px; flex-wrap: wrap; }
.pick label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.pick input { margin: 0; }
.confirm { margin-top: 18px; max-width: 560px; padding: 18px 20px 20px; border: 1.5px solid var(--stamp); border-radius: 2px; }
.confirm .actions { margin-top: 16px; }
.button.danger { background: var(--stamp); border-color: var(--stamp); color: #fbf8f1; }
.button.danger:hover:not(:disabled) { background: var(--text); border-color: var(--text); }

.account footer { padding-top: 40px; }

/* Legal texts: numbered clauses hanging on their numbers, so that "pkt 9.4" can be found by eye. */
.legal .body h2 { margin-bottom: 8px; }
.clause { position: relative; margin-top: 14px; max-width: 680px; padding-left: 3.4em; text-wrap: pretty; }
.clause > b { position: absolute; top: .28em; left: 0; color: var(--gold); font: 500 12px/1.6 var(--mono); font-variant-numeric: tabular-nums; }
.clause a, .sub a, .toc a, .rows a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.clause a:hover, .sub a:hover, .toc a:hover, .rows a:hover { color: var(--text); }
.sub { margin-top: 8px; max-width: 680px; padding-left: 3.4em; display: grid; gap: 6px; }
.sub li { position: relative; padding-left: 1.3em; text-wrap: pretty; }
.sub li::before { content: '–'; position: absolute; left: 0; color: var(--gold); }
.legal .seller { margin-top: 10px; padding-left: 3.4em; font-weight: 600; }
.legal .seller span { display: block; }
.legal .rows { margin: 18px 0 6px; max-width: 680px; }
.legal .rows dd span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
/* A draft says so on the page, and every point still to be settled is marked where it applies. */
.draft { margin-top: 24px; max-width: 620px; padding: 12px 16px; border: 1.5px solid var(--stamp); border-radius: 2px; color: var(--stamp); font-size: 14px; font-weight: 600; }
.open { margin: 12px 0 0 3.4em; max-width: calc(680px - 3.4em); padding: 2px 0 2px 14px; border-left: 2px solid var(--stamp); color: var(--stamp); font-size: 14px; }
.toc { margin-top: 30px; max-width: 620px; counter-reset: part; columns: 2 220px; column-gap: 36px; font-size: 15px; }
.toc li { display: flex; gap: 10px; padding: 3px 0; break-inside: avoid; }
.toc li::before { flex: 0 0 1.8em; color: var(--gold); font: 500 12px/2 var(--mono); }
.toc li:not(.annex) { counter-increment: part; }
.toc li:not(.annex)::before { content: counter(part, decimal-leading-zero); }
.toc li.annex::before { content: '+'; }
.form-text { margin-top: 18px; max-width: 560px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 2px; display: grid; gap: 10px; font-size: 15px; }
.form-text .seller { margin: 0; padding: 0; }

/* Every stop of an account page starts at the same height, the first one included. */
@media (min-width: 900px) {
  .daylight.page section .stop { padding-top: var(--pt); }
  .daylight.page section .stop::after { top: calc(var(--pt) + 15px); }
}

@media (max-width: 899px) {
  .hour b { font-size: 14px; letter-spacing: .04em; }
  .page .body { padding: 40px 0 64px; }
  .page section[data-view]:not([data-view=account]) .body { padding-top: 48px; }
}
@media (max-width: 720px) {
  .bar { padding: 18px 24px 0; }
  .line { flex-direction: column; align-items: stretch; }
  .line input.code { flex: none; width: 100%; }
  .rows div { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .list li .button { width: auto; }
  .clause, .sub, .legal .seller { padding-left: 2.9em; }
  .open { margin-left: 2.9em; }
  .form-text .seller { padding: 0; }
}

/* The legal texts go to a lawyer and to customers on paper: plain black on white, numbers kept. */
@media print {
  html, body.account, .daylight { background: #fff; color: #000; }
  .skip-link, .bar-nav, .toc, footer .foot-links { display: none; }
  .bar { padding: 0 0 12px; }
  .page main { padding-bottom: 0; }
  .stop { display: block; padding: 0; }
  .stop::before, .stop::after { display: none; }
  .hour { position: static; display: flex; align-items: baseline; gap: 12px; margin: 22px 0 0; padding: 0; background: none; border: 0; color: #000; }
  .hour b { font-size: 13px; }
  .page .body { padding: 6px 0 0; }
  .page h1 { font-size: 26px; }
  .page .body h2 { font-size: 17px; break-after: avoid; }
  .clause, .sub li, .open, .rows div, .form-text { break-inside: avoid; }
  .clause, .sub, .text, .lede, .rows, .draft, .open { max-width: none; font-size: 12px; }
  .clause > b, .clause a, .sub a, .rows a, .rows dt, .sub li::before { color: #000; }
  footer { padding: 18px 0 0; background: none; color: #000; font-size: 11px; }
}
