/* Built by tools/build_skin.py from tools/skin_src/app/. Edit the source, not this file. */
/* pbn.red app pages: the check form on its own page, progress, the list check, admin.
 * Source: tools/skin_src/app/app.css, copied to skin/assets/css/app.css by tools/build_skin.py. Tokens from base.css.
 */

/* the red check slab as a page of its own */
.check--page { padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.check h1 { font-size: var(--c-h2); font-weight: 900; letter-spacing: -0.035em; max-width: 19ch; }
.check--page .check__fine + .check__fine { margin-top: var(--space-sm); }
.check a.tlink { color: inherit; }
.check .tlink:focus-visible { outline: 3px solid var(--color-paper); outline-offset: 3px; }

/* a message above a form: white box with an ink edge, readable on the red slab */
.msg {
  margin-top: var(--space-lg); max-width: 54rem; padding: var(--space-md) var(--space-lg);
  background: var(--color-paper); color: var(--color-ink); box-shadow: inset 0 0 0 3px var(--color-ink);
  font-weight: 700; line-height: 1.45;
}
.msg ul { margin: var(--space-xs) 0 0; padding-left: 1.2rem; font-weight: 500; overflow-wrap: anywhere; }
/* the other way past a daily limit (10/23/2026): send us your page */
.msg__or { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: var(--rule-hair); font-weight: 500; }
.msg__or b { font-weight: 800; }
.check form.msg__fix { display: block; margin-top: var(--space-xs); max-width: none; }
.msg .tlink, .adm__act .tlink, .msg__fix .tlink {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; cursor: pointer;
}
.check .msg + form { margin-top: var(--space-lg); }

/* the list form */
.check form.bulk { grid-template-columns: minmax(0, 1fr); }
.check textarea {
  min-width: 0; width: 100%; min-height: 12rem; border: 0; border-radius: 0; padding: 0.9rem 1.1rem; resize: vertical;
  background: var(--color-paper); color: var(--color-ink); font-family: var(--font-data); font-size: var(--text-base);
  line-height: 1.55;
}
.check textarea::placeholder { color: var(--color-muted); }
.check textarea:focus-visible { outline: 3px solid var(--color-paper); outline-offset: 3px; }
.bulk__count { margin: var(--space-xs) 0 0; min-height: 1.4em; font-size: var(--text-sm); font-weight: 700; }
.bulk__count.is-over { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.check form.bulk .btn-ink { justify-self: start; margin-top: var(--space-md); padding-block: 0.9rem; }

/* progress */
.wait .poster__domain { overflow-wrap: anywhere; }
.wait__lead { margin-top: clamp(1rem, 2vw, 1.5rem); font-size: var(--text-md); font-weight: 700; max-width: 52ch; line-height: 1.4; }
.wait__again { margin-top: var(--space-lg); }
.wait__body { padding-bottom: var(--space-2xl); }
.steps { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: var(--space-sm); max-width: 44rem; }
.steps li {
  display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: var(--space-sm); align-items: baseline;
  color: var(--color-muted); font-weight: 500; font-size: var(--text-md);
}
.steps li::before { content: ""; width: 0.8rem; height: 0.8rem; box-shadow: inset 0 0 0 2px var(--color-rule); transform: translateY(0.05em); }
.steps li.is-done { color: var(--color-ink); }
.steps li.is-done::before { background: var(--color-ink); box-shadow: none; }
.steps li.is-now { color: var(--color-ink); font-weight: 800; }
.steps li.is-now::before { background: var(--color-red); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .steps li.is-now::before { animation: pbn-pulse 1.1s var(--ease-in-out) infinite alternate; }
}
@keyframes pbn-pulse { from { opacity: 1; } to { opacity: 0.3; } }

/* small ink button (table rows, admin) */
.btn-small {
  display: inline-flex; align-items: center; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  background: var(--color-ink); color: var(--color-paper); font: inherit; font-weight: 800; font-size: var(--text-sm);
  padding: 0.45em 0.85em; text-decoration: none;
}
.btn-small:hover { background: var(--color-ink-2); }
.btn-small:disabled { background: var(--color-muted); cursor: not-allowed; }

/* the sorted list */
.tw.qtable table { min-width: 62rem; }
.tw.qtable td.col-why { min-width: 18rem; white-space: normal; }
.tw.qtable .dom { font-weight: 800; }
.tw.qtable .qnote { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-ink-2); }
.tw.qtable td form { margin: 0; }

/* admin */
.adm h2 { margin-top: var(--space-2xl); font-size: var(--text-xl); font-weight: 900; letter-spacing: -0.02em; }
.adm__state { margin-top: var(--space-md); font-size: var(--text-md); max-width: 70ch; }
.adm__state.is-paused b { color: var(--color-red); }
.adm__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-md); }
.adm__act form { margin: 0; }
.adm__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-md); margin: var(--space-xl) 0 0; }
.adm__cards > div { box-shadow: inset 0 0 0 2px var(--color-ink); padding: var(--space-md); }
.adm__cards dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }
.adm__cards dd { margin: var(--space-2xs) 0 0; font-weight: 900; font-size: var(--text-lg); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tw.adm-jobs table { min-width: 56rem; }
.adm__caps { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md); margin-top: var(--space-md); }
.adm__caps label { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); font-weight: 700; }
.adm__caps input { font: inherit; font-weight: 600; padding: 0.45rem 0.6rem; border: 2px solid var(--color-ink); border-radius: 0; width: 9rem; }
.adm__events { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.adm__log {
  margin-top: var(--space-md); padding: var(--space-md); max-height: 70vh; overflow: auto; white-space: pre-wrap;
  overflow-wrap: anywhere; background: var(--color-paper-2); font-family: var(--font-data); font-size: var(--text-xs);
}
.admin-login input[type="password"] { font-family: var(--font-body); }

@media (max-width: 47.99rem) {
  .check form.bulk .btn-ink { width: 100%; }
}
.wait__clock { font-variant-numeric: tabular-nums; font-weight: 700; }

/* the API: docs page code blocks, and the keys block on /admin */
.api__code {
  margin: var(--space-md) 0 0; padding: var(--space-md); max-width: 100%; overflow-x: auto;
  background: var(--color-ink); color: var(--color-paper); font-family: var(--font-data); font-size: var(--text-xs);
  line-height: 1.55; white-space: pre; tab-size: 2;
}
.api__code code { font: inherit; }
.api .tw { margin-top: var(--space-md); }
.api .mono, .adm .mono { font-family: var(--font-data); font-size: 0.92em; overflow-wrap: anywhere; }
.adm__h3 { font-size: var(--text-lg); font-weight: 900; letter-spacing: -0.02em; margin-top: var(--space-xl); }
.adm__newkey { margin-top: var(--space-md); }
.adm__key { font-size: var(--text-md); font-weight: 700; user-select: all; overflow-wrap: anywhere; margin-top: var(--space-xs); }
.adm__inline { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; margin: 0 var(--space-xs) var(--space-2xs) 0; }
.adm__inline input { font: inherit; font-weight: 600; padding: 0.3rem 0.45rem; border: 2px solid var(--color-ink); border-radius: 0; width: 6.5rem; }
.tw.adm-keys table { min-width: 60rem; }
