:root,
[data-theme="light"] {
  color-scheme: light;
  --background: #f7f0e5;
  --surface: #fff9ef;
  --tinted: #f0e3d0;
  --text: #34231b;
  --muted: #685044;
  --accent: #a87c42;
  --control: #805322;
  --line: #d9c4a7;
  --primary-fill: #dcebf7;
  --primary-ink: #23394d;
  --primary-edge: #91adc4;
  --shadow: 0 0.75rem 2rem #34231b18;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #211712;
  --surface: #32241d;
  --tinted: #453025;
  --text: #f7ebdd;
  --muted: #d7c0a9;
  --accent: #d7ad70;
  --control: #d7ad70;
  --line: #654b3a;
  --primary-fill: #35546c;
  --primary-ink: #f2f8fd;
  --primary-edge: #7e9db4;
  --shadow: 0 0.75rem 2rem #100a0873;
}

:root {
  font-family: Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--background);
  accent-color: var(--control);
  --edge: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
p { margin: 0; }

h1,
h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

a { color: inherit; }
button, input, select, output { font: inherit; }

button,
summary,
select { cursor: pointer; }

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

button,
summary,
a,
label,
legend { overflow-wrap: anywhere; }

.site-header,
.fullscreen-toolbar {
  position: sticky;
  z-index: 2;
  inset-block-start: 0;
  border-block-end: 1px solid var(--line);
  background: var(--surface);
}

.header-inner,
.toolbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem 0.65rem;
  flex-wrap: wrap;
  margin-inline: auto;
  padding: 0.5rem var(--edge);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.375rem, 2vw, 1rem);
  max-width: 72rem;
  padding-inline: clamp(0.625rem, 3vw, 2rem);
}

.wordmark {
  color: #8b5b29;
  font: 700 clamp(1.25rem, 3.6vw, 1.65rem)/1 Arial, sans-serif;
  letter-spacing: .045em;
  text-decoration: none;
  text-shadow: 0 -1px 0 #fff2cc, 0 1px 0 #ba8c55, 0 2px 0 #65441f, 0 3px 3px #52341c45;
  white-space: nowrap;
}

html[data-theme="dark"] .wordmark {
  color: #e8ba71;
  text-shadow: 0 -1px 0 #ffedce, 0 1px 0 #a6743b, 0 2px 0 #81502b, 0 3px 4px #110907d9;
}

.header-inner > .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  justify-self: start;
}

.header-inner > .participant-brand {
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
}
.participant-brand small {
  color: var(--muted);
  font: 600 .68rem/1.15 Arial, sans-serif;
  letter-spacing: normal;
  text-shadow: none;
}

.header-history {
  display: flex;
  justify-content: center;
  gap: .45rem;
}

.header-controls {
  display: flex;
  gap: 0.375rem;
  justify-self: end;
}

.header-control {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--control);
  border-radius: .85rem;
  background: var(--surface);
  color: var(--text);
  list-style: none;
}

.header-control:hover,
.header-controls details[open] > .header-control { background: var(--tinted); }
.header-control svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--control);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button:not(:disabled):hover { background: var(--tinted); }

.button-primary,
.button-primary:not(:disabled):hover {
  border-color: var(--primary-edge);
  background: var(--primary-fill);
  color: var(--primary-ink);
}

.button-primary:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--accent); }
.button:disabled { opacity: 0.55; cursor: default; }

.disclosure > summary::-webkit-details-marker,
.accordion summary::-webkit-details-marker { display: none; }

.settings-panel {
  position: absolute;
  z-index: 3;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-end: var(--edge);
  width: min(18rem, calc(100% - 2 * var(--edge)));
  max-height: 65vh;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.settings-panel legend,
.settings-title,
#survey legend { margin: 0 0 0.4rem; font-weight: 700; }
.settings-panel label,
#survey label { display: block; padding-block: 0.25rem; }
.settings-panel input,
#survey input { margin-inline: 0.1rem 0.4rem; }

.settings-panel select {
  display: block;
  width: 100%;
  margin-block-start: 0.2rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--control);
  border-radius: 0.4rem;
  color: var(--text);
  background: var(--surface);
}

.panel-title { font-size: 1rem; }
.social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  list-style: none;
  margin: .3rem 0;
  padding: 0;
}
.social-list a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: white;
}
.social-list a[href]:hover { filter: brightness(1.13); }
.social-list a[aria-disabled="true"] { opacity: .55; }
.social-list svg { display: block; width: 1.5rem; height: 1.5rem; fill: currentColor; }
.social-list [data-network="facebook"] { background: #0866ff; }
.social-list [data-network="instagram"] { background: radial-gradient(circle at 20% 95%,#d87920,#be266a 55%,#6442bb); }
.social-list [data-network="youtube"] { --youtube-mark-bg: #dd0031; background: var(--youtube-mark-bg); }
.social-list [data-network="tiktok"] { background: #151515; }
.social-list [data-network="tiktok"] svg {
  filter: drop-shadow(-.75px -.4px #25f4ee) drop-shadow(.75px .5px #fe2c55);
}
.panel-note { color: var(--muted); font-size: 0.875rem; }

.preference-row {
  border-block-end: 1px solid var(--line);
}

.preference-row > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  font-weight: 700;
  list-style: none;
}

.preference-row > summary::-webkit-details-marker { display: none; }
.choices {
  display: grid;
  gap: 0.45rem;
  padding-block: 0.25rem 0.65rem;
}

.choices .button { width: 100%; }
.choices .button[aria-pressed="true"] {
  background: var(--tinted);
  box-shadow: inset 0 0 0 1px var(--control);
}
.choices .button[aria-pressed="true"]::before {
  content: "✓" / "";
  margin-inline-end: 0.4em;
}
.voice-status {
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.voice-status:empty { display: none; }
.sign-out { margin-block-start: 0.35rem; }

.page {
  max-width: 62rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4.5rem) var(--edge) 3rem;
}
.privacy { max-width: 49rem; }
.privacy h1 { margin-block: 1.4rem .8rem; }
.privacy h2 { margin-block: 1.5rem .4rem; font-size: 1.2rem; }
.privacy p { margin-block: .5rem; line-height: 1.6; }
.mail-opt-in { display: flex; align-items: start; gap: .5rem; margin-block: .7rem; }
.mail-opt-in input { margin-top: .35rem; accent-color: var(--control); }
.answer-options label { display: block; }

.home {
  max-width: 72rem;
  padding-block-start: clamp(.5rem, 1.5vw, .9rem);
  text-align: center;
}

.feedback-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  width: 100%;
  min-height: 3rem;
  margin: 0 auto clamp(0.75rem, 2vw, 1.25rem);
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--control);
  border-radius: 0.625rem;
  color: var(--text);
  background: var(--surface);
  text-align: start;
}

.feedback-card-action:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.feedback-card-title { font-weight: 700; }
.feedback-card:has(#feedback-open) { padding: .45rem .65rem; }
.feedback-card-action {
  border: 0;
  min-height: 2.5rem;
  font-size: .9rem;
  text-decoration: none;
  background: var(--primary-fill);
  color: var(--primary-ink);
  border-radius: .85rem;
  padding: .3rem .75rem;
  font-weight: 650;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 2vw, 1.15rem);
  margin-inline: auto;
}

.tile {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(.4rem, 1.4vw, .9rem);
  min-height: clamp(8rem, 15vw, 12rem);
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--control);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 0.3rem 0.8rem #1c100909;
  font-size: clamp(1.125rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.tile-relief {
  order: 1;
  width: clamp(3.75rem, 7vw, 5.75rem);
  height: auto;
  aspect-ratio: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.relief-palette { position: absolute; pointer-events: none; }
:root {
  --face-lit: #fff7e9;
  --face-mid: #d1aa76;
  --face-shade: #af8254;
  --bevel-lit: #fffef9;
  --bevel-soft: #f9edd9;
  --bevel-shade: #9c754d;
  --bevel-deep: #765134;
  --groove: #825d3c;
  --groove-glint: #fff5e3;
  --contact-shadow: #6f4a3150;
}
[data-theme="dark"] {
  --face-lit: #f8dfb7;
  --face-mid: #d4ae7b;
  --face-shade: #af855f;
  --bevel-lit: #ffedce;
  --bevel-soft: #ebc89a;
  --bevel-shade: #846140;
  --bevel-deep: #271b15;
  --groove: #2a1a13;
  --groove-glint: #a78061;
  --contact-shadow: #110907b0;
}
.relief-face-lit { stop-color: var(--face-lit); }
.relief-face-mid { stop-color: var(--face-mid); }
.relief-face-shade { stop-color: var(--face-shade); }
.relief-bevel-lit { stop-color: var(--bevel-lit); }
.relief-bevel-soft { stop-color: var(--bevel-soft); }
.relief-bevel-shade { stop-color: var(--bevel-shade); }
.relief-bevel-deep { stop-color: var(--bevel-deep); }
.relief-form {
  fill: url(#relief-face);
  stroke: url(#relief-bevel);
  stroke-width: 3.7;
  paint-order: stroke fill;
  filter: drop-shadow(0.6px 1.25px 0.8px var(--contact-shadow));
}
.relief-binding { stroke-width: 2.5; }
.relief-groove, .relief-track { stroke: var(--groove); }
.relief-groove-glint, .relief-track-glint {
  stroke: var(--groove-glint);
  transform: translateY(0.9px);
}
.relief-groove, .relief-groove-glint { stroke-width: 1.3; }
.relief-track, .relief-track-glint { stroke-width: 3.2; }

.entry-icon, .header-control svg { filter: drop-shadow(0 -0.6px .3px #fff5d980) drop-shadow(.4px 1px .5px #29170f55); }

.tile { border-radius: clamp(1.3rem, 3vw, 2.35rem); }
.chapter-list button.entry, .reference-cards button.entry { border-radius: 1.35rem; }
.entry-icon .icon-bevel { stroke: url(#entry-bevel); stroke-width: 3.5; }
.entry-icon .icon-face { stroke: url(#entry-face); stroke-width: 1.65; }
.tile:hover { background: var(--tinted); }

.section-page {
  max-width: 52rem;
  padding-block-start: clamp(.65rem, 2vw, 1.25rem);
}
.section-page > h1 { font-size: clamp(1.25rem, 2.3vw, 1.5rem); }
#notes-heading, #library-heading, #tools-heading { text-align: center; }
.summary-download {
  display: flex;
  justify-content: center;
  margin: clamp(1.25rem, 5vw, 2rem) 0 0;
  text-align: center;
}
.accordion { display: grid; gap: 0.75rem; margin-block-start: 1rem; }

.accordion details {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  border-radius: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}

.accordion summary:hover { background: var(--tinted); }

.preference-row > summary::after,
.accordion summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  margin-inline-end: 0.15rem;
  border-inline-end: 2px solid var(--control);
  border-block-end: 2px solid var(--control);
  transform: translateY(-0.15rem) rotate(45deg);
}

.preference-row[open] > summary::after,
.accordion details[open] summary::after {
  transform: translateY(0.15rem) rotate(225deg);
}

.group-content { padding: 0.25rem 1rem 1rem; }
.reference-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }

.entry {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--text);
  text-align: start;
}

.entry-title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.entry-detail { color: var(--muted); font-size: 0.9375rem; }
button.entry { border-color: var(--control); }
.reference-cards .entry { min-height: 2.75rem; align-content: center; }
button.entry .entry-title { text-decoration: underline; text-underline-offset: 0.18em; }
button.entry:hover { background: var(--tinted); }

.chapter-list { display: grid; gap: 0.75rem; margin-block-start: 1.15rem; }
.chapter-list .entry,
.reference-cards .entry {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  direction: ltr;
  text-align: left;
  align-items: center;
  align-content: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
  border-color: var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}
.chapter-list .entry:hover,
.reference-cards .entry:hover { background: var(--tinted); border-color: var(--control); }
.chapter-list button.entry .entry-title,
.reference-cards button.entry .entry-title { text-decoration: none; overflow-wrap: anywhere; }
.chapter-list .entry-icon, .reference-cards .entry-icon { justify-self: start; }
.chapter-list .entry-title:dir(rtl), .reference-cards .entry-title:dir(rtl),
.tool-open span:dir(rtl) { direction: rtl; }
.entry-icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  justify-self: center;
  fill: none;
  stroke: var(--control);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt {
  width: min(27rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.125rem, 4.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.prompt::backdrop { background: #21171275; }
.auth-dialog::backdrop { backdrop-filter: blur(4px); }
.prompt h2 { font-size: clamp(1.375rem, 4.5vw, 1.75rem); }
.prompt-note, .field-note { color: var(--muted); }
.prompt-note { margin-block: 0.65rem 1rem; }
.field-note { font-size: 0.875rem; overflow-wrap: anywhere; }

.prompt-heading,
.prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.prompt-heading { justify-content: space-between; }
.prompt-heading .close-button { flex: 0 0 auto; }
.prompt-actions { flex-wrap: wrap; }

.sign-in-form {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
}

.sign-in-form label { font-weight: 700; }
.field {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--control);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--text);
}
.demo-skip {
  width: 100%;
  margin-block-start: 1rem;
}
#survey { margin-block-start: 0.75rem; }
#survey .button { margin-block-start: 0.6rem; }

.fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  overflow: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--background);
  color: var(--text);
  accent-color: var(--control);
}

.toolbar-inner { max-width: 58rem; }
.speech-button { margin-inline-end: 0; }
.close-button { min-width: 2.75rem; padding: 0; font-size: 1.45rem; font-weight: 400; }
.tool-label { margin-inline-end: auto; font-weight: 600; }

.speech-status {
  max-width: 58rem;
  margin-inline: auto;
  padding: 0 1rem 0.55rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.speech-status:empty { padding: 0; }

.reader[data-theme="paper"] {
  color-scheme: light;
  --background: #fbf2d6;
  --surface: #fff7e2;
  --tinted: #eee0b9;
  --text: #342b20;
  --muted: #6b5940;
  --control: #805522;
  --line: #d8c79f;
  --selection: #bd8b2620;
  --pause: #b72f36;
}
.reader[data-theme="light"] {
  --background: #ffffff;
  --surface: #ffffff;
  --tinted: #f0eeea;
  --text: #29241f;
  --muted: #665c51;
  --control: #795226;
  --line: #d8d1c6;
  --selection: #a78b4220;
  --pause: #b72f36;
}
.reader[data-theme="dark"] {
  --background: #24201c;
  --surface: #2c2621;
  --tinted: #40372d;
  --text: #f2e9dc;
  --muted: #c9bbaa;
  --control: #dfb979;
  --line: #645442;
  --selection: #dfb97920;
  --pause: #ff848a;
}
.reader[data-theme="warm"] {
  color-scheme: light;
  --background: #f9e5a5;
  --surface: #fff1c6;
  --tinted: #efd68d;
  --text: #352712;
  --muted: #634b26;
  --control: #795019;
  --line: #c7a75e;
  --selection: #a872202f;
  --pause: #9c2930;
}
.reader { scroll-padding-block: 9rem 2rem; }
.reader .toolbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  gap: .65rem;
  max-width: none;
}
.reader .toolbar-inner > .speech-button { justify-self: start; }
.reader .toolbar-inner > .close-button { justify-self: end; }
@media (max-width: 700px) {
  .reader .toolbar-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
}
.reader-materials { position: static; }
.reader-material-list {
  inset-inline: 0;
  width: min(26rem, calc(100vw - 1rem));
  max-height: 65dvh;
  margin-inline: auto;
  overflow: auto;
  display: grid;
  gap: .35rem;
}
.reader-material-list .button { text-align: start; white-space: normal; }
.reader-material-list [aria-current="true"] { background: var(--tinted); }
#reader-note-create { min-width: 0; padding-inline: .55rem; font-size: .9rem; }
@media (max-width: 430px) {
  .reader .toolbar-inner { gap: .35rem; }
  .reader .reader-control { width: 2.75rem; height: 2.75rem; }
}
.reader-next { text-align: end; margin-block-start: 1.25rem; }
.reader-control {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--control);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  list-style: none;
}
.reader-control:hover,
#reading-settings[open] > summary { background: var(--tinted); }
.reader-control svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reader-control .play-icon { fill: currentColor; stroke: none; transform: translateX(-2px); }
.reader-control .pause-icon { fill: var(--pause); stroke: none; display: none; }
#speech-toggle[data-state="playing"] .play-icon { display: none; }
#speech-toggle[data-state="playing"] .pause-icon { display: initial; }
.reader-control[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.reader .settings-panel { max-height: min(65vh, 34rem); }
.reader .settings-panel select { min-height: 2.75rem; }
.reader .reader-theme-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
.reader .reader-theme-choices .button { padding-inline: 0.2rem; font-size: 0.8125rem; }
.reader-theme-choices .button[aria-pressed="true"]::before { content: none; }
.reader-theme-choices .button { display: flex; align-items: center; justify-content: center; gap: .3rem; }
.reader-swatch { width: .85rem; height: .85rem; border: 1px solid #8b7661; border-radius: 50%; flex: none; background: var(--reader-swatch); }
[data-reader-theme="light"] { --reader-swatch: #fff; }
[data-reader-theme="paper"] { --reader-swatch: #fbf2d6; }
[data-reader-theme="warm"] { --reader-swatch: #f9e5a5; }
[data-reader-theme="dark"] { --reader-swatch: #24201c; }
#speech-toggle[aria-busy="true"] svg { display: none; }
#speech-toggle[aria-busy="true"]::after { content: ''; width: 1rem; height: 1rem; border: .15rem solid currentColor; border-inline-end-color: transparent; border-radius: 50%; }
.reader #narration-help {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.reader [data-narrate] { scroll-margin-block: 1rem; border-radius: 0.2rem; }
.reader [data-narration] {
  background: var(--selection);
  box-shadow: -0.35rem 0 0 var(--selection), 0.35rem 0 0 var(--selection);
}
.reader [data-narration="speaking"] { box-shadow: -0.35rem 0 0 var(--control), 0.35rem 0 0 var(--selection); }

.reading-content {
  max-width: 49rem;
  margin-inline: auto;
  padding: clamp(1rem, 3.8vw, 2.75rem) clamp(.7rem, 2.4vw, 1.65rem) 3rem;
  overflow-wrap: anywhere;
}

.reading-content article {
  max-width: 38em;
  margin-inline: auto;
  font-size: 1.2rem;
  line-height: 1.5;
}

.reader-panel {
  box-sizing: border-box;
  width: min(42rem, calc(100% - 1.25rem));
  max-height: calc(100dvh - 1.25rem);
  overflow: auto;
  padding: clamp(.875rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--text);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.reader-panel::backdrop { background: rgb(0 0 0 / 50%); }
.reader-panel-header, .reader-note-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}
.reader-panel-header { justify-content: space-between; }
.history-actions { margin-block: .65rem; }
.material-completion { margin-block-start: 2rem; padding-block: 1rem; border-block-start: 1px solid var(--line); }

.material-completion [role="status"] { margin-inline-start: .5em; }
.reader-panel h2, .reader-panel h3, .reader-panel h4 { margin-block: .25em; }
.reader-panel-status:empty { display: none; }
.video-dialog { width: 50vw; max-width: calc(100% - 1.25rem); }
.video-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.video-dialog [data-preview-content] :is(video, iframe, .recording-placeholder) {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 60dvh;
  margin-block-start: .75rem;
  border: 0;
  background: var(--tinted);
}
.video-dialog [data-preview-content] .recording-placeholder {
  display: grid;
  place-items: center;
}
.video-stage:not(:has(video:not([hidden]), iframe)) { display: none; }
.video-stage { margin-block: .75rem 0; background: black; }
.video-stage :is(video, iframe) { display: block; width: 100%; max-height: 65dvh; }
.video-stage iframe { aspect-ratio: 16 / 9; height: auto; border: 0; }
.video-player:fullscreen, .video-dialog.video-expanded .video-player {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: .75rem;
  color: white;
  background: black;
}
.video-player:fullscreen .video-stage, .video-expanded .video-stage { display: grid; place-items: center; min-height: 0; }
.video-player:fullscreen :is(video, iframe), .video-expanded :is(video, iframe) { max-height: 100%; object-fit: contain; }
.video-dialog.video-expanded {
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0;
}
.video-expanded .video-player { height: 100%; }
.video-actions [data-panel-close] { min-width: 2.75rem; font-size: 1.5rem; }
@media (max-width: 700px) {
  .video-dialog { width: calc(100% - 1.25rem); }
}
.reader-panel blockquote {
  margin: .75rem 0;
  padding: .6rem .8rem;
  border-inline-start: .2rem solid var(--control);
  background: var(--tinted);
  white-space: pre-wrap;
}
.reader-panel textarea { display: block; width: 100%; margin-block: .35rem .8rem; }
.reader-note-comment { white-space: pre-wrap; }
.reader-note-actions { margin-block: .75rem; }
.history-list { display: grid; gap: .35rem; list-style: none; margin: .65rem 0; padding: 0; }
.history-entry { border: 1px solid var(--line); border-radius: .6rem; }
.history-entry > summary {
  display: grid;
  grid-template-columns: .5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .4rem .65rem;
  list-style: none;
  font-weight: 650;
}
.history-entry > summary::-webkit-details-marker { display: none; }
.history-entry > summary::before {
  content: '';
  width: .4rem;
  height: .4rem;
  border-inline-end: 1px solid currentColor;
  border-block-start: 1px solid currentColor;
  transform: rotate(45deg);
}
.history-entry > summary:dir(rtl)::before { transform: rotate(-45deg); }
.history-entry[open] > summary::before { transform: rotate(135deg); }
.history-entry[open] > summary:dir(rtl)::before { transform: rotate(-135deg); }
.history-entry > summary:hover { background: var(--tinted); border-radius: .55rem; }
.history-entry time { color: var(--muted); font-size: .875rem; font-weight: 400; text-align: end; }
.history-entry-content { border-block-start: 1px solid var(--line); padding: .65rem; }
#measurements form { max-width: 27rem; }
#measurements form .practice-field { margin-block: .75rem; }
#measurements input[type="date"] { max-width: 14rem; }
.measurement-group + .measurement-group { margin-block-start: .9rem; }
.measurement-entry dl { margin: .5rem 0 .75rem; }
.measurement-entry dl > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .8rem;
  padding-block: .25rem;
}
.measurement-entry dd { margin: 0; font-weight: 650; }
.measurement-comment { white-space: pre-wrap; }
.measurement-charts { margin-block: .75rem; }
.measurement-plot {
  margin: .5rem 0;
  padding: .5rem;
  background: var(--tinted);
  border: 1px solid var(--line);
  border-radius: .7rem;
}
.measurement-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
.measurement-legend li { display: flex; align-items: center; gap: .35rem; }
.measurement-legend span { width: 1.1rem; border-block-start: .16rem solid var(--series); }
.measurement-series-0 { --series: var(--control); }
.measurement-series-1 { --series: light-dark(#046e78, #72dce8); }
.measurement-legend .measurement-series-1 span { border-block-start-style: dashed; }
.measurement-plot svg { display: block; width: 100%; max-width: 32rem; margin-inline: auto; }
.measurement-plot svg text { fill: currentColor; font-size: 13px; }
.measurement-grid { stroke: var(--line); }
.measurement-plot polyline { fill: none; stroke: var(--series); stroke-width: 2; }
.measurement-plot .measurement-series-1 polyline { stroke-dasharray: 5 3; }
.measurement-plot circle { fill: var(--series); }
.measurement-comparison { width: 100%; border-collapse: collapse; font-size: .9rem; }
.measurement-comparison caption { font-weight: 700; text-align: start; margin-block: .5rem; }
.measurement-comparison :is(th,td) { text-align: start; padding: .35rem; border-block-end: 1px solid var(--line); }
.measurement-comparison time { font-weight: 400; }
.measurement-comparison td { font-variant-numeric: tabular-nums; }
.reader [data-reader-topic], .reader [data-reader-paragraph] { scroll-margin-block-start: 1rem; }
.reader .topic-video-button {
  min-height: 2rem;
  width: 2rem;
  margin-inline-start: .45rem;
  padding: 0;
  vertical-align: middle;
}
.topic-video-button svg { width: .85rem; height: .85rem; fill: currentColor; }
#reader-paragraph-prompt {
  position: sticky;
  inset-block-start: 4rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem .65rem;
  border: 1px solid var(--control);
  border-radius: .5rem;
  background: var(--surface);
}
.reader[data-pick-paragraph] [data-reader-paragraph] { cursor: pointer; }
.reader[data-pick-paragraph] [data-reader-paragraph]:is(:hover,:focus-visible) { background: var(--selection); }

.reading-content[data-size="small"] article { font-size: 1.035rem; }
.reading-content[data-size="large"] article { font-size: 1.4rem; }
.reading-content[data-size="largest"] article { font-size: 1.65rem; }

.reading-content h1 {
  max-width: 23ch;
  margin-block-end: 1rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.reading-content .course-article h1 {
  max-width: none;
  font-size: clamp(1.6rem, 4.4vw, 2.75rem);
}

.reading-content p + p { margin-block-start: .65em; }

.reading-content h2,
.reading-content h3,
.reading-content h4,
.reading-content h5,
.reading-content h6 {
  margin-block: 1.2em .4em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.reading-content h2 { font-size: 1.22em; }
.reading-content h3 { font-size: 1.06em; }
.reading-content li + li { margin-block-start: 0.45em; }
.reading-content ul,
.reading-content ol { padding-inline-start: 1.5em; }

.reading-chart { margin: 1em 0 1.5em; }
.reading-chart a { display: block; }
.reading-chart img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
}
.reading-chart a:hover img { border-color: var(--control); }

.reading-content .article-kicker {
  margin-block-end: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.tool .toolbar-inner { justify-content: flex-end; max-width: none; }
.tool-group { margin-block-start: 1.2rem; }
.tool-group h2, .practice-card h2 { margin: 0 0 .85rem; font-size: 1.2rem; }
.tool-group h2 { text-align: center; }
.tool-rows { display: grid; gap: .4rem; }
.tool-row {
  display: grid; grid-template-columns: minmax(0,1fr) 2.75rem; align-items: center;
  direction: ltr;
  padding: .2rem .45rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface);
}
.tool-row:focus-within, .tool-row:hover { border-color: var(--control); }
.tool-open, .row-help {
  min-height: 2.75rem; border: 0; color: var(--text); background: transparent; border-radius: .7rem;
}
.tool-open {
  display: grid; grid-template-columns: 2.75rem minmax(0,1fr); align-items: center;
  padding: .15rem 0; font-weight: 700; line-height: 1.25; text-align: left;
}
.tool-open span { padding-inline: .35rem; overflow-wrap: anywhere; }
.tool-row .entry-icon { width: 1.85rem; height: 1.85rem; justify-self: start; }
#survey-success {
  width: min(34rem, calc(100% - 2rem)); margin: auto; padding: clamp(3.75rem, 8vw, 5rem) 1.5rem clamp(2.6rem, 6vw, 4rem);
  border: 1px solid var(--line); border-radius: 1rem; background: #fff; color: #322319;
  box-shadow: var(--shadow); text-align: center;
}
#survey-success::backdrop { background: rgb(28 19 14 / .42); }
#survey-success form { position: absolute; inset: .55rem .55rem auto auto; margin: 0; }
#survey-success h2 { margin: 0; }
.survey-close {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: .55rem; background: transparent; color: inherit;
  font-size: 1.8rem; font-weight: 700; line-height: 1;
}
.survey-close:hover { background: rgb(100 75 55 / .09); }
.survey-close:focus-visible { outline: 2px solid var(--control); outline-offset: -2px; }
.survey-success-check { display: block; width: 3.5rem; margin: 1.25rem auto 0; }
.survey-success-check circle { fill: #e7f6ed; }
.survey-success-check path { fill: none; stroke: #18834b; stroke-width: 3.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  #survey-success[open] .survey-success-check { animation: survey-check-pop .32s ease-out both; }
  #survey-success[open] .survey-success-check path {
    stroke-dasharray: 1;
    animation: survey-check-draw .38s .09s ease-out both;
  }
}
@keyframes survey-check-pop { 0% { opacity: 0; transform: scale(.72); } 75% { transform: scale(1.08); } }
@keyframes survey-check-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.row-help, .tool-help-button {
  justify-self: stretch; min-width: 2.75rem; min-height: 2.75rem;
  border: 1px solid var(--control); border-radius: .65rem;
  color: var(--control); font-weight: 700; font-size: 1.1rem;
}
.row-help:hover, .tool-open:hover { background: var(--tinted); }
.tool-info, .result-mail {
  width: min(31rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(.95rem,4vw,1.45rem);
  background: var(--surface); color: var(--text); border: 1px solid var(--control); border-radius: 1rem; box-shadow: var(--shadow);
}
.help-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .6rem; }
.help-heading h2, .result-mail h2 { font-size: 1.15rem; }
.tool-info p, .result-mail p { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.tool-info p + p, .result-mail p { margin-top: .6rem; }
.help-heading .button { width: 2.75rem; padding: 0; font-size: 1.35rem; }
.tool-info::backdrop, .result-mail::backdrop { background: rgb(28 19 14 / .45); }
.mail-preview { white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 38dvh; margin-block: .8rem; padding: .75rem; background: var(--background); border: 1px solid var(--line); border-radius: .5rem; font: inherit; }
[data-result-mail] { margin-top: .7rem; }
.tool-content { max-width: 48rem; padding-block-start: clamp(1.4rem, 4vw, 3rem); }
.tool-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.tool-heading h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.tool-heading button { flex-shrink: 0; }
.practice-card { min-width: 0; margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.6rem); background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; }
.practice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: .9rem 1.1rem; }
.practice-wide { grid-column: 1 / -1; margin: .5rem 0 0; font-size: 1rem; }
.practice-field { display: grid; min-width: 0; gap: .35rem; font-weight: 600; font-size: .94rem; }
.practice-field input, .practice-field select, .practice-field textarea, .reflection-field textarea {
  width: 100%; min-width: 0; min-height: 2.75rem; border: 1px solid var(--control); border-radius: .4rem;
  background: var(--background); color: var(--text); font: inherit; font-weight: 400; padding: .55rem .65rem;
}
.reflection-field textarea { resize: vertical; font-size: 1rem; grid-column: 1 / -1; }
.practice-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.practice-error:not(:empty), .practice-note { margin-top: .75rem; color: var(--control); font-weight: 600; }
.practice-result { scroll-margin-top: 4.5rem; border-inline-start: .25rem solid var(--control); }
.practice-result dl { margin: 0; }
.practice-result dl > div { display: flex; justify-content: space-between; gap: .65rem 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding: .6rem 0; }
.practice-result dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.clock-card { display: grid; place-items: center; justify-content: stretch; gap: .3rem; text-align: center; }
.clock-card .practice-actions { justify-content: center; margin-top: .7rem; }
.clock-phase, .step-count { color: var(--muted); font-size: .9rem; }
.practice-clock { font-size: clamp(3rem,8vw,4.75rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.clock-immersive { min-height: calc(100dvh - 6rem); scroll-margin-block-start: 3.8rem; align-content: center; }
.clock-immersive .practice-clock { font-size: clamp(3rem, min(15vw, 20dvh), 9.25rem); }
.clock-immersive .sand { width: clamp(3.6rem, min(17vw, 21dvh), 8.5rem); }
.sand { color: var(--control); width: 6.8rem; }
.sand svg { display: block; width: 100%; }
.sand circle { fill: var(--accent); stroke: var(--control); stroke-width: .65px; }
.practice-schedule { border: 0; min-width: 0; padding: 0; margin: 0; }
.practice-schedule > legend { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.duration-fields { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.duration-fields legend { padding: 0; font-weight: 600; font-size: .94rem; }
.duration-fields label { color: var(--muted); font-size: .875rem; font-weight: 400; }
.preset-buttons { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.preset-buttons button { min-width: 4.4rem; font-variant-numeric: tabular-nums; }
.preset-editor { margin-top: .6rem; }
.preset-editor summary { width: fit-content; padding-block: .4rem; color: var(--control); }
.preset-editor > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: .9rem; }
.timer-note, .reflection-note, .dictation-disclosure { color: var(--muted); font-size: .94rem; }
.timer-options [data-audio-status]:empty, .reflection-card [role=status]:empty { display: none; }
.phase-row { display: grid; align-items: end; grid-template-columns: 1.25fr 1fr auto; gap: .7rem; margin: 1rem 0; }
.timer-options { display: grid; gap: .6rem; border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: .9rem; }
.timer-options input[type=checkbox] { width: 1.15rem; height: 1.15rem; vertical-align: middle; }
.timer-options [data-period] { max-width: 14rem; }
.reflection-card progress { width: 100%; height: .5rem; margin-bottom: 1rem; }
.reflection-field { display: grid; grid-template-columns: 1fr auto; gap: .35rem .6rem; align-items: center; }
.reflection-field summary { cursor: pointer; }
.reflection-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.reflection-heading h2 { margin: 0; }
.reflection-field + .reflection-field, .reflection-note + .reflection-field { margin-top: 1rem; }
.mic-button { width: 2.75rem; }
.mic-button[aria-pressed=true] { color: var(--surface); background: var(--control); }
.dictation-disclosure { grid-column: 1 / -1; padding: .55rem .75rem; border-inline-start: 2px solid var(--control); }
.dictation-disclosure button { margin-top: .45rem; }
.reflection-card [role=status]:not(:empty) { margin-top: .8rem; }
.subscription-options { display: grid; gap: .55rem; margin: .6rem 0; padding: 0; border: 0; min-inline-size: 0; }
.subscription-options label, [data-enable-step] label { display: flex; align-items: flex-start; gap: .5rem; }
.subscription-options input, [data-enable-step] input { flex: none; margin-top: .2em; accent-color: var(--control); }
#subscription-preferences > a { display: inline-block; margin-block: .25rem .65rem; }
[data-enable-step] label { margin-top: .7rem; }
.reflection-document { color-scheme: light; background: white; color: #32241d; }

.reflection-review dd { margin: .15rem 0 .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.reflection-review dt { font-weight: 700; }
.step-count { margin-bottom: .4rem; }
.stand-clock { font-size: 2.5rem; font-variant-numeric: tabular-nums; }
.pulse-count { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-block: .8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 35rem) {
  .practice-grid, .phase-row { grid-template-columns: 1fr; }
  .phase-row { border-top: 1px solid var(--line); padding-top: .85rem; }
  .sand { width: 5rem; }
}

@media (max-width: 42rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header-history { grid-area: 2 / 1 / auto / -1; }
  .header-history .button { font-size: .875rem; }
}

@media (max-width: 35rem) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: none;
  }

  .tile { grid-template-columns: 2.5rem minmax(0,1fr) 2.5rem; align-items: center; min-height: 4rem; padding: .55rem .75rem; }
  .tile-relief { order: 0; width: 2.5rem; height: 2.5rem; }
  .reference-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 26rem) {
  .header-control { width: 2.75rem; height: 2.75rem; }
  .reader-control { width: 2.75rem; height: 2.75rem; }
  .reader .toolbar-inner { padding-inline: 0.6rem; }
  .reader .button { font-size: 0.875rem; padding-inline: 0.5rem; }
  .reader .close-button { font-size: 1.45rem; }
}

#speech-toggle[data-state="playing"] { border-color: var(--pause); }
.speech-status:not(:empty) { margin-bottom: 1.5rem; }
.survey-page { width: min(100%, 44rem); padding: clamp(1.25rem, 5vw, 3rem) var(--edge) 4rem; margin: auto; }
.survey-page h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.survey-page h2 { font-size: 1.4rem; margin: 1rem 0; }
#survey-intro { margin: 1.2rem 0 1.8rem; }
.survey-dialog .toolbar-inner { max-width: 46rem; justify-content: space-between; font-weight: 700; }
#questions fieldset { padding: .5rem 0 1.4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
#questions textarea { font: inherit; resize: vertical; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
#questions .scale label { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); }
#questions .scale label:has(:checked) { border-color: var(--control); background: var(--tinted); }
.scale-ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.scale-ends span { max-width: 48%; }.scale-ends span:last-child { text-align: right; }

.survey-reminder {
  position: fixed;
  inset: 0;
  width: min(29rem, calc(100% - 2rem));
  margin: auto;
  padding: 2.8rem 1.4rem 1.55rem;
  text-align: center;
  color: #302721;
  background: rgb(255 252 248 / .94);
  border: 1px solid #fff9;
  border-radius: 1rem;
  box-shadow: 0 .75rem 2.6rem #20150c40;
}
.survey-reminder::backdrop { background: rgb(28 19 14 / .28); }
.survey-reminder p { max-width: 23rem; margin: .6rem auto 1rem; }
.survey-reminder-close { position: absolute; inset-block-start: .45rem; inset-inline-end: .45rem; }
.reader [data-selected-for-note] { background: var(--selection); outline: 1px solid currentColor; }
.history-actions { display: flex; align-items: stretch; gap: .5rem; flex-wrap: wrap; }
.history-actions > .button { flex: 1 1 8rem; max-width: 12rem; min-height: 2.5rem; margin: 0; }
@media (max-width: 30rem) { .history-actions > .button { max-width: none; } }
.export-action { font-size: .875rem; min-height: 2.25rem; padding: .25rem .55rem; }

.rom-joint-button[aria-pressed="true"] {
  border-color: var(--control);
  background: var(--tinted);
  box-shadow: inset 0 0 0 1px var(--control);
}
.rom-sensor { max-width: 35rem; margin-inline: auto; text-align: center; }
.rom-measure-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.rom-measure-actions .button, .rom-sensor [data-rom-record] { min-height: 2.75rem; }
.rom-scale { margin-block: .4rem .9rem; }
.rom-scale meter { display: block; width: 100%; height: .85rem; accent-color: var(--control); }
.rom-scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.rom-comparison { display: grid; gap: .5rem; margin-block: .5rem .85rem; }
.rom-comparison p { margin: 0; }
#rom-recording > .practice-card { margin-block-start: .75rem; }
.rom-sensor output {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-block: .55rem;
}
.rom-sensor [data-rom-sensor-status] { min-height: 2.5em; margin-block: .65rem .35rem; }
.rom-joint-layout { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.rom-fields { display: grid; gap: .65rem; }
.rom-fields .practice-field { margin: 0; }
.rom-fields .muted { font-size: .9rem; }
.rom-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.rom-sides button { margin-block-start: .35rem; }
.rom-body {
  width: min(100%, 20rem);
  height: 17rem;
  position: relative;
  margin-inline: auto;
  border-radius: .9rem;
  background: var(--tinted);
  isolation: isolate;
}
.rom-figure {
  position: absolute;
  inset-block: .6rem;
  left: 50%;
  transform: translateX(-50%);
  height: calc(100% - 1.2rem);
  fill: none;
  stroke: var(--control);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  opacity: .6;
}
.rom-joint-button {
  position: absolute;
  font-size: .82rem;
  min-height: 2.4rem;
  padding: .2rem .4rem;
  max-width: 49%;
  line-height: 1.1;
}
.rom-joint-button[data-joint="shoulder"] { top: 23%; left: 59%; }
.rom-joint-button[data-joint="elbow"] { top: 37%; right: 60%; }
.rom-joint-button[data-joint="wrist"] { top: 46%; left: 63%; }
.rom-joint-button[data-joint="hip"] { top: 49%; right: 56%; }
.rom-joint-button[data-joint="knee"] { top: 64%; left: 58%; }
.rom-joint-button[data-joint="ankle"] { top: 79%; right: 57%; }
.rom-history .practice-actions { align-items: end; }
.rom-history label { display: grid; gap: .25rem; }
.rom-history select { min-height: 2.25rem; max-width: 12rem; }
.rom-history [data-rom-count] { margin-block: .5rem; }
.rom-history time { white-space: nowrap; }
@media (max-width: 43rem) {
  .rom-joint-layout { grid-template-columns: minmax(0,1fr); }
}

.mail-subscription { margin-top: 1.2rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .92rem; }
.mail-subscription summary { cursor: pointer; color: var(--text); }
.mail-subscription form p { margin-bottom: .65rem; }
.mail-subscription [role=status]:empty, [data-current-channels]:empty { display: none; }

.participant-preview-notice {
  padding: .4rem var(--edge);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: var(--tinted);
  color: var(--text);
  font-size: .88rem;
}
