/* Scripts (#/scripts): the fitness talking scripts page. Rules carried over from the PC page on 2026-11-19; its
   colour names are mapped onto this site's tokens just below, so light and dark both follow the site. */
.read-wrap,
.read-killwhy {
  --rule-soft: var(--line);
  --rule: var(--line-strong);
  --ink2: var(--ink);
  --roman: var(--serif);
  --ground: var(--bg);
}
.read-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s4);
}
.read-wrap .back {
  display: inline-block;
  margin-bottom: var(--s3);
  color: var(--muted);
  text-decoration: none;
}
.read-wrap .muted {
  color: var(--muted);
}
.read-wrap .empty {
  padding: var(--s5);
  color: var(--muted);
}
.read-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px 60px;
}
.read-wrap .back {
  color: var(--muted);
  font-weight: 650;
}
.read-lede {
  color: var(--ink);
  font-size: 16px;
  margin: 0 0 18px;
}
.read-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--ink2);
  background: var(--paper);
  transition: border-color 0.2s var(--ease);
}
.read-list a:hover {
  border-color: var(--rule);
}
.read-list a b {
  display: block;
  font-family: var(--roman);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 4px;
  line-height: 1.3;
}
.read-list a small {
  color: var(--muted);
  font-size: 14px;
}
.read-title {
  font-size: 30px;
  line-height: 1.25;
  margin: 12px 0 14px;
}
.read-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.read-script {
  flex: 1 1 520px;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 600;
}
.read-script .ln {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft, #eee);
}
.read-script .ln .n {
  color: var(--muted, #999);
  font-size: 15px;
  min-width: 22px;
  padding-top: 8px;
}
.read-script .ln [contenteditable] {
  flex: 1;
  outline: none;
  border-radius: 6px;
  padding: 2px 6px;
}
.read-script .ln [contenteditable]:focus {
  background: var(--paper2);
}
.read-script .hook {
  font-size: 22px;
  color: var(--ink2);
  font-weight: 700;
  margin-bottom: 8px;
}
.read-script .hook span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--metal-strong);
  font-weight: 800;
  margin-bottom: 2px;
}
.read-side {
  flex: 0 0 240px;
}
.read-side video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}
.read-rec {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
}
.read-rec .big {
  font-size: 20px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0;
  background: #b3261e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.read-rec .big.stop {
  background: #222;
}
.read-rec .micpick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--metal-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.read-rec .micpick select {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink2);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 8px 12px;
  max-width: 320px;
}
.read-rec .clock {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  min-width: 70px;
}
.read-rec .meter {
  position: relative;
  width: 220px;
  height: 14px;
  border-radius: 7px;
  background: var(--paper2, #eee);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.read-rec .meter i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #4caf50;
  transition: width 0.06s linear;
}
.read-rec .meter.quiet i {
  background: #d9b84a;
}
.read-rec .meter em {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #222;
  opacity: 0.6;
}
.read-rec .lvltxt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  min-width: 150px;
}
.read-live {
  position: fixed;
  right: 16px;
  top: 96px;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  z-index: 30;
  font-size: 13px;
}
.read-live .head {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #e8f3e8;
  color: #1b5e20;
  line-height: 1.3;
}
.read-live .head.idle {
  background: var(--paper2, #eee);
  color: var(--ink2);
}
.read-live .row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--rule-soft, #eee);
  line-height: 1.3;
}
.read-live .row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4caf50;
  flex: 0 0 9px;
}
.read-live .row span {
  font-weight: 800;
  color: var(--metal-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  width: 46px;
  flex: 0 0 46px;
}
.read-live .row b {
  font-weight: 600;
  color: var(--ink2);
}
.read-takes {
  margin-top: 8px;
}
.read-takes .take {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft, #eee);
}
.read-takes .take audio {
  height: 32px;
}
.read-takes .take .use {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: #d9b84a;
  font-weight: 800;
  cursor: pointer;
}
.read-state {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f4edda;
  color: #2a2416;
  font-weight: 700;
  margin: 10px 0;
}
.read-why {
  margin: 0 0 12px;
  padding: 10px 14px 10px 30px;
  border-radius: 10px;
  background: #3a1d1d;
  color: #ffd9d9;
  font-weight: 600;
  line-height: 1.45;
}
.read-list a {
  position: relative;
}
.read-list a b {
  padding-right: 110px;
}
.read-kill {
  position: absolute;
  top: 16px;
  right: 16px;
  font: 600 14px/1 var(--sans, inherit);
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(220, 80, 70, 0.45);
  background: transparent;
  color: #e07a70;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.read-kill:hover {
  background: rgba(220, 80, 70, 0.12);
}
.read-kill.armed {
  background: #c8463c;
  border-color: #c8463c;
  color: #fff;
}
.read-kill:disabled {
  opacity: 0.6;
  cursor: default;
}
.read-killrow {
  position: relative;
  height: 0;
}
.read-killrow .read-kill {
  top: -34px;
  right: 0;
}
.read-build {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.read-build .big {
  padding: 16px 30px;
  border-radius: 14px;
  border: 0;
  background: #d9b84a;
  color: #17140d;
  font: 800 18px/1 var(--sans);
  cursor: pointer;
}
.read-build .big:disabled {
  opacity: 0.6;
  cursor: default;
}
.read-takes .take .use {
  margin-left: auto;
}
.read-takes .take .deltake {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 80, 70, 0.45);
  background: transparent;
  color: #e07a70;
  font-weight: 600;
  cursor: pointer;
}
.read-takes .take .use + .deltake {
  margin-left: 0;
}
.read-takes .take .deltake:first-of-type {
  margin-left: auto;
}
.read-takes .take .deltake.armed {
  background: #c8463c;
  border-color: #c8463c;
  color: #fff;
}
/* 11-21: a take on its way to the PC shows the moment he presses Stop (public/js/takequeue.js) */
.read-takes .take.sending .sendnote {
  color: #d9b84a;
  font-weight: 700;
}
.read-takes .take.failed .sendnote {
  color: #e07a70;
}
.read-takes .take .resend {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: #d9b84a;
  font-weight: 800;
  cursor: pointer;
}
.read-takes .take .dropsend {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 80, 70, 0.45);
  background: transparent;
  color: #e07a70;
  font-weight: 600;
  cursor: pointer;
}
.read-killwhy {
  margin: -4px 0 14px;
  padding: 14px;
  border: 1px solid rgba(220, 80, 70, 0.45);
  border-radius: 14px;
  background: var(--paper);
}
.read-killwhy .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.read-killwhy textarea {
  flex: 1;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--rule-soft);
  background: var(--bg);
  color: var(--ink2);
  font: 16px/1.45 var(--sans);
  resize: vertical;
}
.read-killwhy .acts {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.read-killwhy .go {
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  background: #c8463c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.read-killwhy .no {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.read-killrow + .read-killwhy {
  margin-top: 8px;
}
.read-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}
.read-list a b,
.read-list a small {
  display: block;
}
.read-list a b {
  padding-right: 0;
}
.read-list a .read-txt {
  flex: 1;
  min-width: 0;
}
.read-btns {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  order: -1;
}
.read-btns .read-fix,
.read-btns .read-kill {
  position: static;
  font: 800 18px/1 var(--sans);
  padding: 16px 22px;
  border-radius: 12px;
  cursor: pointer;
  min-width: 84px;
}
.read-fix {
  border: 1px solid rgba(217, 184, 74, 0.6);
  background: rgba(217, 184, 74, 0.1);
  color: #d9b84a;
}
.read-fix:hover {
  background: rgba(217, 184, 74, 0.22);
}
.read-btns .read-kill {
  border: 1px solid rgba(220, 80, 70, 0.55);
  background: rgba(220, 80, 70, 0.1);
  color: #e07a70;
}
.read-killrow {
  position: static;
  height: auto;
  margin: 10px 0 6px;
}
.read-killrow .read-btns .read-fix,
.read-killrow .read-btns .read-kill {
  top: auto;
  right: auto;
}
.read-killwhy.fix {
  border-color: rgba(217, 184, 74, 0.5);
}
.read-killwhy.fix .go {
  background: #d9b84a;
  color: #17140d;
}
