/* SPDX-FileCopyrightText: 2026 EfterScript contributors */
/* SPDX-License-Identifier: MIT */

/* A compositor's proof table: the program set as a galley on the left,
   the pulled proof on a press sheet on the right, and the device's own
   output below. One accent, process magenta; the full CMYK set appears
   only in the colour-control strip under the sheet. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* proof paper and press ink */
  --ground: #eef0f1;
  --panel: #f8f9fa;
  --panel-edge: #d5dadf;
  --ink: #15181e;
  --ink-2: #4b525d;
  --ink-3: #7a828d;
  --rule: #c9ced3;
  --accent: #d1006f;
  --accent-soft: #fbe3ef;
  --on-accent: #ffffff;
  --focus: #d1006f;
  --well: #e3e7ea;
  --sheet-shadow: 0 1px 2px rgb(21 24 30 / 0.08), 0 12px 32px -12px rgb(21 24 30 / 0.28);

  /* the program's syntax */
  --syn-comment: #7a828d;
  --syn-string: #00708f;
  --syn-name: #6b3fb0;
  --syn-number: #93590a;
  --syn-brace: #d1006f;

  /* outcome states */
  --ok: #17784a;
  --ok-soft: #dff2e8;
  --warn: #8a5a00;
  --warn-soft: #fbefd6;
  --bad: #b3124f;
  --bad-soft: #fbe3ec;

  /* process inks, for the control strip */
  --cyan: #00a3e0;
  --magenta: #e4007c;
  --yellow: #ffe500;
  --black: #1d1d1b;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121418;
    --panel: #181b20;
    --panel-edge: #2a2f37;
    --ink: #e8ebef;
    --ink-2: #aab2bd;
    --ink-3: #7d8691;
    --rule: #2f353e;
    --accent: #ff4fa3;
    --accent-soft: #3a1628;
    --on-accent: #16080f;
    --focus: #ff4fa3;
    --well: #0e1013;
    --sheet-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -12px rgb(0 0 0 / 0.7);
    --syn-comment: #7d8691;
    --syn-string: #5cc8e8;
    --syn-name: #b99cff;
    --syn-number: #f0b45a;
    --syn-brace: #ff4fa3;
    --ok: #5fd39a;
    --ok-soft: #12301f;
    --warn: #f0b45a;
    --warn-soft: #33260c;
    --bad: #ff7aa8;
    --bad-soft: #3a1523;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #121418;
  --panel: #181b20;
  --panel-edge: #2a2f37;
  --ink: #e8ebef;
  --ink-2: #aab2bd;
  --ink-3: #7d8691;
  --rule: #2f353e;
  --accent: #ff4fa3;
  --accent-soft: #3a1628;
  --on-accent: #16080f;
  --focus: #ff4fa3;
  --well: #0e1013;
  --sheet-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -12px rgb(0 0 0 / 0.7);
  --syn-comment: #7d8691;
  --syn-string: #5cc8e8;
  --syn-name: #b99cff;
  --syn-number: #f0b45a;
  --syn-brace: #ff4fa3;
  --ok: #5fd39a;
  --ok-soft: #12301f;
  --warn: #f0b45a;
  --warn-soft: #33260c;
  --bad: #ff7aa8;
  --bad-soft: #3a1523;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  padding-inline: clamp(16px, 4vw, 48px);
  padding-block: 0 48px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

[hidden] {
  display: none !important;
}

/* --- masthead ------------------------------------------------------------------- */

.masthead {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 20px 14px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  font-variation-settings: "opsz" 12;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.wordmark em {
  font-weight: 500;
  color: var(--accent);
}
.wordmark.small {
  font-size: 17px;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.masthead nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.masthead nav a:hover {
  color: var(--accent);
}

/* --- intro ---------------------------------------------------------------------- */

.intro {
  max-width: 1320px;
  margin: 0 auto;
  padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7.4vw, 96px);
  font-variation-settings: "opsz" 40;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em {
  font-weight: 500;
  color: var(--accent);
}
/* the file extension, set as the file type it is */
h1 .ext {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8em;
  letter-spacing: -0.05em;
}

.lede {
  margin: 6px 0 0;
  max-width: 62ch;
  font-size: 17px;
  color: var(--ink-2);
}
.lede code {
  font-size: 0.92em;
  color: var(--ink);
}

.traits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.traits li {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* a registration dot before each, in the accent */
.traits li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--ground), inset 0 0 0 4px var(--accent);
}

/* --- the bench ------------------------------------------------------------------ */

.bench {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 1000px) {
  .bench {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-areas:
      "galley proof"
      "console console";
  }
  .galley {
    grid-area: galley;
  }
  .proof {
    grid-area: proof;
  }
  .console {
    grid-area: console;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  font-variation-settings: "opsz" 24;
  letter-spacing: 0.005em;
}

.aside,
.status {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.status {
  font-variant-numeric: tabular-nums;
}

.panel-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
}
.panel-foot .hint {
  font-size: 13px;
  color: var(--ink-3);
  margin-right: auto;
}

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

.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
}

.button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.primary:hover {
  filter: brightness(1.08);
  color: var(--on-accent);
}
.button.quiet {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}
.button.quiet:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.button.danger {
  background: transparent;
  border-color: var(--bad);
  color: var(--bad);
}
.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.button kbd {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.18);
}

label.button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
label.button:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button.link {
  font: inherit;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- the editor ----------------------------------------------------------------- */

.editor {
  position: relative;
  flex: 1;
  min-height: 420px;
  height: 560px;
  background: var(--well);
  overflow: hidden;
}
@media (min-width: 1000px) {
  .editor {
    height: auto;
  }
}

.editor textarea,
.editor .highlight {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  tab-size: 4;
  white-space: pre;
  border: 0;
  overflow: auto;
}
.editor .highlight {
  color: var(--ink);
  pointer-events: none;
  overflow: hidden;
}
.editor textarea {
  width: 100%;
  height: 100%;
  resize: none;
  background: transparent;
  color: transparent;
  caret-color: var(--accent);
  outline: none;
}
.editor textarea::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: transparent;
}
.editor:focus-within {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--focus) 55%, transparent);
}
.editor.plain textarea {
  color: var(--ink);
}
.editor.plain .highlight {
  display: none;
}

.tok-comment {
  color: var(--syn-comment);
  font-style: italic;
}
.tok-string {
  color: var(--syn-string);
}
.tok-name {
  color: var(--syn-name);
}
.tok-number {
  color: var(--syn-number);
}
.tok-brace {
  color: var(--syn-brace);
  font-weight: 500;
}
.tok-dsc {
  color: var(--syn-comment);
  font-weight: 500;
}

.file-card {
  flex: 1;
  min-height: 240px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 24px;
  background: var(--well);
}
.file-card svg {
  width: 44px;
  height: 44px;
  color: var(--ink-3);
}
.file-card p {
  margin: 0;
}
.file-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.file-meta {
  font-size: 13px;
  color: var(--ink-3);
}

/* --- settings ------------------------------------------------------------------- */

.settings {
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.settings summary {
  padding: 12px 18px;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 500;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
  max-width: 520px;
}
.settings select {
  font: inherit;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink);
  max-width: 100%;
}
.settings .note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.settings .check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.settings input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* --- the press sheet ------------------------------------------------------------ */

.press {
  flex: 1;
  padding: 34px 34px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink-3) 22%, transparent) 1px, transparent 0) 0 0 / 14px 14px,
    var(--well);
}

.sheet {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 8.5 / 11;
  max-width: 100%;
  background: #ffffff;
  box-shadow: var(--sheet-shadow);
}
.sheet iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

/* crop marks, set just outside each corner as on a press sheet */
.crop {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--ink-3);
}
.crop::before {
  width: 12px;
  height: 1px;
}
.crop::after {
  width: 1px;
  height: 12px;
}
.crop.tl {
  top: -18px;
  left: -18px;
}
.crop.tl::before {
  left: 0;
  bottom: 2px;
}
.crop.tl::after {
  right: 2px;
  top: 0;
}
.crop.tr {
  top: -18px;
  right: -18px;
}
.crop.tr::before {
  right: 0;
  bottom: 2px;
}
.crop.tr::after {
  left: 2px;
  top: 0;
}
.crop.bl {
  bottom: -18px;
  left: -18px;
}
.crop.bl::before {
  left: 0;
  top: 2px;
}
.crop.bl::after {
  right: 2px;
  bottom: 0;
}
.crop.br {
  bottom: -18px;
  right: -18px;
}
.crop.br::before {
  right: 0;
  top: 2px;
}
.crop.br::after {
  left: 2px;
  bottom: 0;
}

.sheet-note {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 12%;
  color: #4b525d;
  font-size: 14px;
}
.sheet-note p {
  margin: 0;
}
.sheet-note-title {
  font-family: var(--display);
  font-size: 26px;
  font-style: italic;
  font-variation-settings: "opsz" 32;
  line-height: 1.15;
  color: #15181e;
  text-wrap: balance;
}
.sheet-note .button {
  align-self: flex-start;
}
.sheet-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.meter {
  height: 3px;
  background: #e3e7ea;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: #d1006f;
  transition: width 0.2s ease-out;
}
.meter.indeterminate span {
  width: 30%;
  animation: sweep 1.1s ease-in-out infinite;
}
@keyframes sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(340%);
  }
}

/* the colour-control strip under the sheet */
.strip {
  display: flex;
  align-items: center;
  gap: 2px;
  width: min(100%, 460px);
}
.strip span {
  flex: 1;
  height: 10px;
}
.strip .c {
  background: var(--cyan);
}
.strip .m {
  background: var(--magenta);
}
.strip .y {
  background: var(--yellow);
}
.strip .k {
  background: var(--black);
}
/* tints are ink laid thinner on white paper, whatever the page's theme */
.strip .c.t70 {
  background: color-mix(in srgb, var(--cyan) 70%, #fff);
}
.strip .c.t40 {
  background: color-mix(in srgb, var(--cyan) 40%, #fff);
}
.strip .m.t70 {
  background: color-mix(in srgb, var(--magenta) 70%, #fff);
}
.strip .m.t40 {
  background: color-mix(in srgb, var(--magenta) 40%, #fff);
}
.strip .y.t70 {
  background: color-mix(in srgb, var(--yellow) 70%, #fff);
}
.strip .y.t40 {
  background: color-mix(in srgb, var(--yellow) 40%, #fff);
}
.strip .k.t70 {
  background: color-mix(in srgb, var(--black) 70%, #fff);
}
.strip .k.t40 {
  background: color-mix(in srgb, var(--black) 40%, #fff);
}
.strip .registration {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  color: var(--ink-2);
  flex: none;
}

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

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.facts > div {
  padding: 12px 18px;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
.facts > div:nth-child(4) {
  border-right: 0;
}
.facts > .wide {
  grid-column: 1 / -1;
  border-right: 0;
  border-top: 1px solid var(--rule);
}
.facts dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#fonts {
  font-size: 13px;
  color: var(--ink-2);
}
#fonts .font {
  display: inline-block;
  margin-right: 14px;
}
#fonts .font small {
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 4px;
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts > div:nth-child(2) {
    border-right: 0;
  }
  .facts > div:nth-child(3),
  .facts > div:nth-child(4) {
    border-top: 1px solid var(--rule);
  }
  .press {
    padding: 28px 22px 18px;
  }
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--well);
  color: var(--ink-2);
}
.pill[data-state="ok"] {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill[data-state="error"] {
  background: var(--bad-soft);
  color: var(--bad);
}
.pill[data-state="budget"],
.pill[data-state="stopped"] {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill[data-state="running"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* --- device output -------------------------------------------------------------- */

.log {
  margin: 0;
  padding: 16px 18px;
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  background: var(--well);
  border-radius: 0 0 10px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.log .report {
  color: var(--bad);
  font-weight: 500;
}
.log .meta {
  color: var(--ink-3);
}
.log .empty {
  color: var(--ink-3);
  font-style: italic;
}

/* --- notes ---------------------------------------------------------------------- */

.notes {
  max-width: 1320px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
/* four notes: one column, then two by two, then one row; never three and one */
@media (min-width: 640px) {
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .notes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.notes h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  text-wrap: balance;
}
.notes p {
  margin: 0;
  color: var(--ink-2);
  max-width: 60ch;
}
.install {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}
.install-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.snippet .prompt {
  color: var(--accent);
  user-select: none;
}
.snippet {
  margin: 0;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  overflow-x: auto;
}

.colophon {
  max-width: 1320px;
  margin: 48px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-3);
  display: grid;
  gap: 6px;
}
.colophon p {
  margin: 0;
  max-width: 90ch;
}
.colophon .wordmark {
  color: var(--ink);
}

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

.notices {
  width: min(760px, calc(100vw - 32px));
  max-height: min(80vh, 900px);
  padding: 0;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}
.notices[open] {
  display: flex;
  flex-direction: column;
}
.notices::backdrop {
  background: rgb(21 24 30 / 0.45);
}
.notices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.notices-text {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- drop target ---------------------------------------------------------------- */

.dropzone {
  position: fixed;
  inset: 12px;
  z-index: 10;
  display: grid;
  place-items: center;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.dropzone p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--accent);
}

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