/* Oleron, business interface stylesheet, embedded in the binary.
 *
 * The visual language comes from the Oleron site (oleron-web): very dark canvas,
 * large light-weight titles in pale blue, monospace for controls and values,
 * hairline borders, generous space. Values below are the site's own, taken from
 * its Tailwind configuration and its global stylesheet.
 *
 * Three fonts ship inside the binary as woff2 (SIL Open Font License, licence
 * text beside each in assets/fonts/): Hanken Grotesk for text, JetBrains Mono
 * for controls, values and timecodes, and Archivo for the wordmark alone, which
 * is what the site sets the name in. A product installed offline cannot fetch a
 * font from a CDN, and falling back to a system font would lose the identity on
 * exactly the machines that matter.
 *
 * Dark is the default, as on the site. Light exists because a reviewer reads
 * long transcripts for hours and paper output must not be a black rectangle; it
 * is a deliberate, secondary mode, never the identity.
 */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
}

/* ---- palette ------------------------------------------------------------- */

:root {
  --canvas: #030710;
  --surface: #161f34;
  --raised: #1b2540;
  --hairline: #2f4b68;
  --line-strong: #3d5f80;
  --ink: #7fc8ff;
  --fg: #cce9ff;
  --muted: #aec7e0;
  --faint: #5e7590;
  --accent: #2e6fe0;
  --accent-light: #7fc8ff;
  --accent-soft: #10233c;
  --button: #e5f4ff;

  --ok: #6ee7a0;
  --ok-soft: #0c2118;
  --warn: #f0c674;
  --warn-soft: #241c08;
  --danger: #f7a8b8;
  --danger-soft: #210c12;

  --shadow-card: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 30px rgb(0 0 0 / 35%);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 45%), 0 24px 60px rgb(0 0 0 / 50%);
  --glow: 0 0 0 1px rgb(127 200 255 / 12%), 0 18px 60px rgb(46 111 224 / 18%);

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --wordmark: "Archivo", "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* The "Double O" mark: the boundary, then the core. Values from the site. */
  --mark-outer: #e5f4ff;
  --mark-inner: #7fc8ff;
}

/* Light: for long reading sessions and for paper. Same hues, inverted weight. */
:root[data-theme="light"] {
  --canvas: #fbfcfd;
  --surface: #ffffff;
  --raised: #f2f6fa;
  --hairline: #d8e2ec;
  --line-strong: #bccbdb;
  --ink: #0b3a6f;
  --fg: #16283d;
  --muted: #46596e;
  --faint: #70849a;
  --accent: #1157a8;
  --accent-light: #0e4c92;
  --accent-soft: #eaf2fb;
  --button: #0e4c92;

  --ok: #0f7b4f;
  --ok-soft: #e8f6ef;
  --warn: #8a5a00;
  --warn-soft: #fdf4e3;
  --danger: #a41f38;
  --danger-soft: #fdecef;

  --shadow-card: 0 1px 2px rgb(11 42 74 / 6%), 0 1px 3px rgb(11 42 74 / 4%);
  --shadow-lift: 0 2px 8px rgb(11 42 74 / 8%), 0 12px 32px rgb(11 42 74 / 8%);
  --glow: 0 0 0 1px rgb(17 87 168 / 10%);

  /* The site's own light-background variant of the mark. */
  --mark-outer: #0b1b33;
  --mark-inner: #2e6fe0;
}

/* ---- base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(46 111 224 / 40%);
  color: #fff;
}

/* Titles are light, not bold: it is the site's most recognisable typographic
 * decision, and the one most easily lost by defaulting to semibold. */
h1,
h2 {
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h3 {
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- layout -------------------------------------------------------------- */

.shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* The site floats its navigation in a rounded, hairlined bar detached from the
 * top edge. Same here, so the two read as one product. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1.5rem 0;
  background: linear-gradient(
    to bottom,
    var(--canvas) 60%,
    transparent
  );
}

.masthead-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.625rem 0.75rem 0.625rem 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--fg);
  font-weight: 400;
}

.brand:hover {
  color: var(--fg);
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
}

/* "Oleron" is set in Archivo on the site, not in the body face. */
.wordmark {
  font-family: var(--wordmark);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 0.75rem;
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

/* ---- text ---------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  margin: 0 0 0.375rem;
}

.lede {
  color: var(--muted);
  line-height: 1.7;
}

.prose {
  max-width: 68ch;
}

.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.faint {
  color: var(--faint);
}

.muted {
  color: var(--muted);
}

/* ---- surfaces ------------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card + .card {
  margin-top: 1rem;
}

/* ---- controls ------------------------------------------------------------ */

/* Monospace, like the site: every button and every value is in JetBrains Mono.
 * It is what makes the interface read as an instrument rather than a form. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: rgb(255 255 255 / 5%);
  border-color: var(--line-strong);
  color: var(--fg);
  text-decoration: none;
}

:root[data-theme="light"] .btn:hover {
  background: var(--raised);
}

.btn-primary {
  background: var(--button);
  border-color: var(--button);
  color: var(--canvas);
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--canvas);
}

:root[data-theme="light"] .btn-primary {
  color: #fff;
}

:root[data-theme="light"] .btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}

.btn-danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

.btn-quiet {
  border-color: transparent;
  color: var(--muted);
  padding: 0.375rem 0.75rem;
}

.btn-quiet:hover {
  color: var(--fg);
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="file"],
select,
textarea {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--fg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
  width: 100%;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: var(--surface);
}

input::placeholder {
  color: var(--faint);
}

/* Left alone, the file picker keeps its native white button, which is the one
 * element on the page that ignores the theme entirely. */
input[type="file"] {
  padding: 0.375rem;
}

input[type="file"]::file-selector-button {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg);
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.3125rem 0.875rem;
  margin-right: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

input[type="file"]::file-selector-button:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-light);
  outline: none;
  box-shadow: 0 0 0 3px rgb(46 111 224 / 20%);
}

label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 0.375rem;
}

.field + .field {
  margin-top: 1rem;
}

.row {
  display: flex;
  gap: 0.625rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.row > .grow {
  flex: 1 1 12rem;
}

/* The search field and its button belong on one line. Left to wrap, the button
 * drops under the input and reads as an unrelated control. */
.searchbar {
  flex-wrap: nowrap;
  min-width: 20rem;
}

.searchbar input {
  min-width: 11rem;
}

@media (max-width: 40rem) {
  .searchbar {
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }
}

/* ---- drop zone ----------------------------------------------------------- */

.dropzone {
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}

.dropzone.is-over {
  border-color: var(--accent-light);
  background: var(--accent-soft);
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--ok);
}

.dropzone input[type="file"] {
  width: auto;
  max-width: 100%;
}

.dropzone-hint {
  margin: 0.625rem 0 0;
}

.dropzone-file {
  margin: 0.375rem 0 0;
  color: var(--ok);
}

.dropzone-file:empty {
  display: none;
}

.upload-progress:empty {
  display: none;
}

/* ---- state badges -------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.1875rem 0.6875rem;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.badge-neutral {
  background: var(--raised);
  color: var(--muted);
  border-color: var(--hairline);
}
.badge-progress {
  background: var(--accent-soft);
  color: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent-light) 30%, transparent);
}
.badge-review {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}
.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

/* ---- notices ------------------------------------------------------------- */

.notice {
  border: 1px solid var(--hairline);
  border-left-width: 2px;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice-info {
  border-left-color: var(--accent-light);
}
.notice-warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}
.notice-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

/* ---- folder list --------------------------------------------------------- */

.folders {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.folders li + li {
  border-top: 1px solid var(--hairline);
}

.folder {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: inherit;
}

.folder:hover {
  background: var(--raised);
  color: inherit;
  text-decoration: none;
}

.folder-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder:hover .folder-title {
  color: var(--ink);
}

.folder-meta {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--faint);
  background: var(--surface);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
}

/* ---- reviewing screen ---------------------------------------------------- *
 * Minutes and facts on one side, transcript on the other: reviewing means
 * reading one against the other, and a reviewer should not have to scroll from
 * a claim to the passage that grounds it.
 */

.review {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 64rem) {
  .review {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .review-right {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}

.review-left > * + * {
  margin-top: 1rem;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* ---- facts --------------------------------------------------------------- */

.facts {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.fact {
  padding: 0.875rem 0;
  border-top: 1px solid var(--hairline);
}

.fact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.fact-type {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
}

.fact-subject {
  color: var(--accent-light);
}
.fact-decision {
  color: var(--ok);
}
.fact-action {
  color: var(--warn);
}
.fact-position,
.fact-other {
  color: var(--muted);
}
.fact-figure {
  color: var(--accent-light);
}
.fact-question {
  color: var(--danger);
}

.fact-statement {
  margin: 0 0 0.375rem;
}

.fact-anchors {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.anchor {
  display: inline-block;
  padding: 0.0625rem 0.4375rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  color: var(--accent-light);
}

.anchor:hover {
  border-color: var(--accent-light);
  background: var(--accent-soft);
  text-decoration: none;
}

/* A citation whose passage is missing. It cannot happen for a stored output,
 * and if it ever does the reviewer must see it rather than meet a dead link. */
.anchor-broken {
  display: inline-block;
  padding: 0.0625rem 0.4375rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--danger);
  color: var(--danger);
}

/* ---- player -------------------------------------------------------------- */

.player {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.player audio {
  flex: 1 1 20rem;
  min-width: 0;
  height: 2.25rem;
}

.player-hint {
  margin: 0;
  flex: none;
}

@media (max-width: 40rem) {
  .player-hint {
    display: none;
  }
}

/* What the engine transcribed, kept under a corrected passage. Quieter than the
 * corrected text, but never hidden: the point is that it can be compared. */
.segment-original {
  margin: 0.25rem 0 0;
  padding-left: 0.625rem;
  border-left: 2px solid var(--hairline);
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ---- speakers ------------------------------------------------------------ */

.speakers {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.speaker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.625rem 0;
  border-top: 1px solid var(--hairline);
}

.speaker-name {
  color: var(--fg);
  min-width: 8rem;
}

.speaker-count {
  flex: 1 1 auto;
}

.speaker-form {
  display: flex;
  gap: 0.375rem;
  flex: 0 1 18rem;
}

.speaker-form input {
  font-size: 0.8125rem;
  padding: 0.3125rem 0.5rem;
}

/* ---- renaming a dossier -------------------------------------------------- */

.title-form {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
  max-width: 26rem;
}

.title-form input {
  flex: 1 1 auto;
  font-size: 0.8125rem;
  padding: 0.3125rem 0.5rem;
}

/* ---- correcting a passage ------------------------------------------------ */

.segment-edit {
  margin-top: 0.5rem;
}

.segment-edit > summary {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  cursor: pointer;
  list-style: none;
  display: inline-block;
  padding: 0.125rem 0;
}

.segment-edit > summary::-webkit-details-marker {
  display: none;
}

.segment-edit > summary::before {
  content: "+ ";
}

.segment-edit[open] > summary::before {
  content: "− ";
}

.segment-edit > summary:hover {
  color: var(--accent-light);
}

.segment-edit form {
  margin-top: 0.625rem;
  padding: 0.875rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
}

.segment-edit textarea {
  font-family: var(--sans);
  line-height: 1.5;
  resize: vertical;
}

/* ---- transcript ---------------------------------------------------------- */

.segments {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.segment {
  padding: 0.75rem 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 6rem;
}

.segment-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

/* A button that looks like a timecode: it moves the playhead, so it must invite
 * a click without turning the transcript into a wall of controls. */
.segment-time {
  color: var(--accent-light);
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: left;
}

.segment-time:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.segment-speaker {
  color: var(--faint);
}

.segment-text {
  margin: 0;
  color: var(--muted);
}

/* Set when a citation is followed, so the eye lands on the passage rather than
 * hunting for it. */
.segment.is-cited {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.segment.is-cited .segment-text {
  color: var(--fg);
}

/* Marked while the recording is on this passage. Deliberately quieter than the
 * citation highlight: one says "look here", the other says "you are here". */
.segment.is-playing {
  border-left: 2px solid var(--accent-light);
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.segment.is-playing .segment-text {
  color: var(--fg);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

/* ---- action bar ---------------------------------------------------------- */

.actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---- exploitation -------------------------------------------------------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  padding: 0.4375rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checklist li + li {
  border-top: 1px solid var(--hairline);
}

.mark {
  font-family: var(--mono);
  flex: none;
  width: 1rem;
  text-align: center;
}

.mark-ok {
  color: var(--ok);
}

.mark-ko {
  color: var(--danger);
}

/* Neither a tick nor a cross: the check could not be carried out, and a red
   cross here would attest to a failure nobody measured. */
.mark-undetermined {
  color: var(--muted);
}

.journal {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.journal li {
  padding: 0.3125rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.journal li + li {
  border-top: 1px solid var(--hairline);
}

/* ---- login --------------------------------------------------------------- */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 23rem;
}

.login-card .card {
  box-shadow: var(--glow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--fg);
}

/* ---- utilities ----------------------------------------------------------- */

.stack > * + * {
  margin-top: 1.25rem;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- print --------------------------------------------------------------- *
 * A compte rendu leaves the building as paper or PDF. Everything that is
 * navigation or control disappears; what a reader needs to trust the document
 * (title, state, scope, date) stays. Printing the dark theme would drink a
 * cartridge, so paper is always the light one.
 */

@media print {
  :root,
  :root[data-theme="dark"] {
    --canvas: #fff;
    --surface: #fff;
    --raised: #fff;
    --fg: #000;
    --ink: #000;
    --muted: #333;
    --faint: #555;
    --hairline: #bbb;
  }

  .masthead,
  .no-print,
  .btn,
  form {
    display: none !important;
  }

  body {
    font-size: 11pt;
    background: #fff;
  }

  .shell {
    max-width: none;
    padding: 0;
  }

  .card {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
