/* Shared by the settings and control pages. Colours come from the theme. */
@font-face { font-family: "Archivo"; src: url("/static/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; }
main { max-width: 780px; margin: 0 auto; padding: 24px 16px 40px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
h1 { font-size: 28px; font-weight: 900; font-stretch: 125%; text-transform: uppercase; margin: 0 0 4px; }
nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
nav b { color: var(--text); }
.lead { color: var(--muted); margin: 0 0 22px; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.soft { font-weight: 400; color: var(--muted); }
.field { display: grid; grid-template-columns: 1fr 160px; gap: 6px 18px; align-items: center; padding: 12px 0;
  border-top: 1px solid var(--line); }
section > .field:first-of-type, section > div:first-of-type > .field:first-child { border-top: 0; }
.field label { font-weight: 700; }
.field .help { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.field .ctl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.wide { grid-template-columns: 1fr 280px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 40px; }
input[type=number] { width: 96px; text-align: right; font-family: var(--mono); }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
textarea { font-family: var(--mono); min-height: 160px; }
.unit { color: var(--muted); font-size: 14px; min-width: 26px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }
button { font: inherit; font-weight: 800; color: var(--accent-text); background: var(--accent); border: 0; border-radius: 8px;
  padding: 10px 20px; min-height: 44px; cursor: pointer; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: 0.45; cursor: default; }
.ok { color: var(--accent); font-weight: 700; }
.err { color: var(--bad); font-weight: 700; }
.warn { color: var(--warn); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td.n { font-family: var(--mono); text-align: right; }
td input { min-height: 34px; padding: 5px 8px; }
.status { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 15px; }
.status div:nth-child(odd) { color: var(--muted); }
.mono { font-family: var(--mono); }
a { color: var(--accent); }
code { font-family: var(--mono); }
@media (max-width: 560px) { .field, .wide { grid-template-columns: 1fr; } .field .ctl { justify-content: flex-start; }
  .status { grid-template-columns: 1fr; } }
.steps { margin: 0 0 6px; padding-left: 22px; }
.steps li { padding: 3px 0; }
.steps li.ok { font-weight: 800; }
.slide { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.slide-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.slide-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.slide-foot img { height: 60px; border-radius: 6px; }
.slide-foot label { display: flex; align-items: center; gap: 8px; }
.imgctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.imgctl img.pick { height: 120px; border-radius: 6px; }
.slide-foot input[type=file] { width: auto; min-height: 0; padding: 4px; }
button.mini { padding: 4px 10px; min-height: 0; font-size: 14px; }
.slide textarea { font-family: var(--font); min-height: 110px; }
.slide-foot input[type=number] { width: 110px; }
