/* Dailies MVP additions. Tokens only (var(--…)); no raw colors. */
.app.auth-mode { display: block; padding: 0; }
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--s-5) + var(--safe-top)) var(--s-4) calc(var(--s-5) + var(--safe-bottom)); background: var(--bg); }
.auth-card { width: min(480px, 100%); background: var(--surface); border: var(--hair) solid var(--border); border-radius: var(--r-3); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow); }
.auth-card .lock-screen { margin: 0 auto; max-width: none; }
.auth-card .lock-screen .glyph { background: var(--accent-soft); color: var(--accent); border-radius: var(--r-3); width: 72px; height: 72px; }
.auth-card .lock-screen .glyph svg { width: 32px; height: 32px; }
.auth-card .lock-screen .fine { font-size: var(--fs-body); }
.brand-hero { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-semi); font-size: var(--fs-lg); letter-spacing: var(--track-tight); color: var(--ink); }
.brand-hero .brand-mark { width: 32px; height: 32px; border-radius: var(--r-2); display: grid; place-items: center; background: var(--brand-bg); color: var(--brand-ink); }
.brand-hero .brand-mark svg { width: var(--icon-m); height: var(--icon-m); }
.btn.big { min-height: var(--tap-lg); width: 100%; justify-content: center; font-size: var(--fs-body); font-weight: var(--fw-semi); }
.auth-msg { min-height: 24px; color: var(--bad); font-size: var(--fs-body); margin: 0; }
.auth-msg:empty { min-height: 0; }
.field { display: flex; flex-direction: column; gap: var(--s-1); width: 100%; text-align: left; }
.field > span { font-size: var(--fs-body); color: var(--ink-2); font-weight: var(--fw-semi); }
.field input { min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-2); border: var(--hair) solid var(--border-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-body); }
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.nav-item.later { color: var(--ink-2); }
.later-pill { margin-left: auto; font-size: var(--fs-cap); padding: 0 var(--s-2); border-radius: var(--r-pill); border: var(--hair) dashed var(--border-strong); color: var(--ink-2); line-height: 20px; }
.thumb-ph { width: 40px; height: 56px; border-radius: 4px; flex: none; display: grid; place-items: center; background: var(--audio-tile); color: var(--ink-2); }
.thumb-ph svg { width: var(--icon-m); height: var(--icon-m); }
.rp-card .thumb-ph { width: 100%; height: 100%; border-radius: inherit; }
.audio-box { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-3); background: var(--audio-tile); color: var(--ink-2); }
.audio-box svg { width: 48px; height: 48px; }
.file-strip.queued { border-style: dashed; }
.file-strip.queued > .i { color: var(--warn); }
.loc.r2.queued { border-color: var(--warn); background: var(--warn-soft); }
.sheet-btns { display: flex; gap: var(--s-2); justify-content: flex-end; margin-top: var(--s-3); flex-wrap: wrap; }
.toast-kbd { background: none; color: inherit; border-color: currentColor; }
.toast-pad { width: 12px; }
.btn.back { margin-left: calc(-1 * var(--s-4)); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: var(--s-5); align-items: start; }
.info-media { background: var(--surface); border: var(--hair) solid var(--border); border-radius: var(--r-3); padding: var(--s-4); display: grid; place-items: center; min-height: 320px; }
.info-media img, .info-media video { max-width: 100%; max-height: 72vh; border-radius: var(--r-2); object-fit: contain; }
.info-side .set-sec { max-width: none; }
.info-side textarea, .note-field textarea { font-size: var(--fs-body); }
.hist { margin: 0; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.hist li { display: flex; flex-direction: column; font-size: var(--fs-body); }
.status-pill.batch { background: var(--surface-2); color: var(--ink); }
.status-pill.rejected { background: var(--bad-soft); color: var(--bad); }
.rej-list { display: flex; flex-direction: column; gap: var(--s-2); max-width: 900px; }
.rej-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: var(--hair) solid var(--border); border-radius: var(--r-2); background: var(--surface); }
.rej-row img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.rej-row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); align-items: flex-start; }
.rej-row .meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rej-act { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.mint { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; padding: var(--s-3) 0; }
.mint .field { flex: 1 1 200px; width: auto; }
.scopes { display: flex; gap: var(--s-2); border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.scopes legend { font-size: var(--fs-body); color: var(--ink-2); font-weight: var(--fw-semi); padding: 0; margin-bottom: var(--s-1); }
.check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border: var(--hair) solid var(--border-strong); border-radius: var(--r-2); cursor: pointer; font-family: var(--font-mono); font-size: var(--fs-body); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.tok.revoked b { color: var(--ink-2); text-decoration: line-through; }
.code-box { background: var(--bg); border: var(--hair) solid var(--border-strong); border-radius: var(--r-2); padding: var(--s-3); overflow-wrap: anywhere; font-size: var(--fs-body); user-select: all; }
.set-sec p.muted { font-size: var(--fs-body); margin: 0 0 var(--s-2); }
.fine-r { font-size: var(--fs-body); }
@media (max-width: 599px) {
  .info-grid { grid-template-columns: 1fr; padding: 0 var(--s-4); }
  .info-media { min-height: 200px; }
  .info-media img, .info-media video { max-height: 52vh; }
  .rej-list { padding: 0 var(--s-4); }
  .rej-row { flex-wrap: wrap; }
  .auth-card { padding: var(--s-5) var(--s-4); }
  .content > .page-head { margin-left: var(--s-4); margin-right: var(--s-4); }
}
/* a hidden toast must never block taps on the action bar under it */
.toast:not(.show) { pointer-events: none; visibility: hidden; transition: transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2); }
.toast.show { visibility: visible; }
/* body-copy floor (16px) for prose the prototype set at 13/14px */
.rp-hint, .vis-line, .vis-line span, .note-field label, .note-field label span, .file-strip > div span, .approved-box span, .set-sec small, .set-sec .row small.muted { font-size: var(--fs-body); }
.set-sec small.mono { font-size: var(--fs-sm); }
.set-sec .row > .loc, .set-sec .row > .status-pill { flex: none; }
@media (max-width: 599px) {
  .rej-row .meta { flex: 1 1 calc(100% - 64px); }
  .rej-act { width: 100%; }
  .rej-act .btn { flex: 1; justify-content: center; }
  .set-sec .row { flex-wrap: wrap; }
}
