:root {
  color-scheme: light;
  --ink: #25212b;
  --muted: #655f6b;
  --teal: #664398;
  --line: #ded9e4;
  --paper: #fbf9fd;
  --serif: var(--sans);
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
button, select, summary, a { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { background: none; border: 0; }
button:disabled, select:disabled { cursor: default; opacity: .58; }
button:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #764ab1; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; z-index: 6; background: white; padding: 12px; color: var(--teal); }
.intro, .panel-head, .route-name, .section-label, .experiment-controls { display:flex; align-items:center; }
.intro { justify-content: space-between; gap: 22px; margin: clamp(24px, 4vw, 52px) 0 clamp(20px, 2.6vw, 36px); }
.kicker, .section-label { color: var(--teal); font-size: 13px; font-weight: 650; letter-spacing: .02em; margin: 0 0 8px; }
.tiny-orbit { color: #947c48; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: -.065em; }
h1 { font-weight: 600; font-size: clamp(30px, 3.45vw, 50px); line-height: 1.35; }
h2 { font-weight: 650; font-size: clamp(20px, 1.65vw, 25px); line-height: 1.4; }
.lead, .hint, #reason, .next-line, .scenario-output p { line-height: 1.75; }
.lead { font-size: 15px; margin-top: 10px; color: var(--muted); }
.sample { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; flex-shrink: 0; min-height: 42px; border: 1px solid #bcbfb0; padding: 8px 15px; border-radius: 24px; font-size: 13px; font-weight: 600; background: var(--paper); }
.sample span { color: var(--teal); font-size: 17px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(310px, 1fr); grid-template-areas: "art settings" "reading experiment"; align-items: start; gap: 18px; }
.instrument { grid-area: art; border-radius: 19px; overflow: hidden; background: #102724; color: #f3f1e5; box-shadow: 0 10px 30px #12282317; }
.art { isolation:isolate; position: relative; background: radial-gradient(ellipse at 50% 60%, #163932, #081a19); }
#portrait { display: block; width: 100%; height: clamp(319px, 30vw, 435px); }
.instrument-title, .stage-indicator { position: absolute; top: 15px; z-index: 1; font-size: 12px; }
.instrument-title { display: flex; align-items: center; gap: 7px; left: 17px; color: #e1d9bd; }
.orbit-icon { display: inline-block; width: 13px; height: 13px; position: relative; border: 1px solid #baa973; border-radius: 50%; transform: rotate(-28deg); }
.orbit-icon::after { content:""; position: absolute; inset:3px -2px; border:1px solid #baa973; border-radius:50%; }
.stage-indicator { right: 16px; border: 1px solid #70998c80; border-radius: 30px; padding: 3px 9px; color: #d2dfd3; background: #102724ba; }
.stage-indicator.hypothesis { border-color: #d1b878; color: #fae5af; }
#artFallback { padding: 10px 16px; font-size: 13px; }
.readouts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: 16px 22px 18px; gap: 16px; border-top: 1px solid #71837955; background: #142c29; }
.readouts > div + div { border-left: 1px solid #677b7055; padding-left: 20px; }
.route-name { gap: 7px; font-size: 12px; color: #b4ccc2; margin-bottom: 4px; }
.line-token { display: inline-block; width: 18px; height: 2px; position: relative; border-top: 1px solid #9ae1d4; }
.line-token::after { content: ""; position: absolute; right: 3px; top: -3px; width: 5px; height: 5px; background: #b7e6d8; border-radius: 50%; }
.line-token.lower { border-color: #d9be85; }
.line-token.lower::after { border-radius: 0; transform: rotate(45deg); background: #dfbf8d; }
.readouts strong { font-size: 15px; font-weight: 560; }
.paper { border: 1px solid var(--line); background: var(--paper); border-radius: 17px; padding: clamp(18px, 2vw, 28px); min-width: 0; }
.settings { grid-area: settings; }
.panel-head { justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.quiet-link { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); padding: 8px 0; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 15px; }
legend { padding: 0; margin-bottom: 7px; font-size: 14px; font-weight: 680; }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
label { display: block; color: var(--muted); font-size: 12px; }
select { width: 100%; margin-top: 4px; border: 1px solid #cbcebf; background: #fffefa; padding: 7px 5px; border-radius: 7px; font-size: 14px; height: 38px; color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { font-size: 13px; padding: 7px 11px; min-height: 34px; line-height: 1.35; border-radius: 7px; border: 1px solid #d1d4c5; background: #fdfcf7; transition: background .15s; }
.choice:hover { border-color: #899f8f; }
.choice[aria-pressed="true"] { background: #e1ebe2; border-color: #799787; font-weight: 650; color: #204e40; }
details { border-top: 1px solid var(--line); margin-top: 4px; }
summary { padding-top: 12px; font-size: 13px; color: var(--muted); }
.details-body { display: grid; gap: 10px; padding-top: 12px; }
.reading { grid-area: reading; }
.experiment { grid-area: experiment; }
.section-label { gap: 6px; font-size: 12px; margin-bottom: 10px; }
.medallion { font-size: 18px; color: #887244; }
#reason, .hint, .scenario-output p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.next-line { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 3px; font-size: 14px; }
.next-line strong { color: var(--teal); font-size: 12px; }
.experiment-controls { gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.primary { background: var(--teal); border-radius: 8px; color: white; min-height: 40px; padding: 9px 13px; font-size: 14px; }
.branches { margin-top: 12px; }
.scenario-output { margin-top: 13px; border-left: 2px solid #b09a5d; padding: 2px 0 2px 12px; font-size: 14px; }
#simAction { color: #355d4d; }
@media (max-width: 870px) { .layout { grid-template-columns: minmax(0, 1.22fr) minmax(285px,1fr); gap: 12px; } }
@media (max-width: 700px) {
  .layout { grid-template-columns:minmax(0,1fr); grid-template-areas: "art" "settings" "reading" "experiment"; }
  .intro { align-items:flex-start; flex-direction:column; gap:11px; }
  .lead { font-size:14px; margin-top: 6px; }
  .sample { min-height: 36px; font-size:12px; }
  #portrait { height: clamp(225px, 57vw, 340px); }
  .readouts { padding: 12px 16px; }
  .readouts strong { font-size: 14px; }
  .paper { padding: 17px; }
  .choice { min-height: 39px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
#actualHint { padding: 8px 17px; margin: 0; color: #ded4e8; background: #1c302f; font-size: 12px; }
.scene-link { display: none; color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 13px; }
@media (max-width:700px) { .scene-link { display: inline-block; padding-block: 9px; margin-top: 7px; } }
.intro { margin-bottom: 18px; }
.scene-picker { min-width: 178px; }
.scene-picker label { font-weight: 600; color: var(--teal); margin-bottom: 2px; }
.scene-picker select { min-height: 43px; background: #173e38; color: #fffbeb; font-size: 15px; padding-inline: 10px; border-color: #173e38; }
.scene-bar { padding: 15px 0; border-top: 1px solid #cccdbd; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scene-bar h2 { font-size: clamp(19px, 2vw, 26px); }
.scene-name { color: var(--teal); font-size: 12px; font-weight: 650; margin-bottom: 4px; }
.stage-detail, .stage-goal, .boundaries { margin-bottom: 13px; }
.stage-detail label, .stage-goal label, .boundaries label { font-size: 14px; font-weight: 630; color: var(--ink); }
.boundaries { padding-top: 12px; border-top: 1px solid var(--line); }
.report-panel { margin-top: 18px; padding: clamp(18px,3vw,38px); border: 1px solid #b7b99e; border-top: 3px solid #947b48; border-radius: 10px 10px 17px 17px; background: #fbfaf4; }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.report-top h2 { font-size: clamp(23px,2.3vw,32px); }
.report-controls { display: grid; justify-items: center; gap: 5px; flex-shrink: 0; }
.report-controls button { padding-inline: 22px; }
.report-controls small { color: var(--muted); font-size: 12px; }
#reportBody { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
#reportBody h3 { font-size: 14px; color: var(--teal); margin: 0 0 8px; }
#reportBody p, #reportBody li, #reportBody dd { line-height: 1.8; font-size: 15px; }
.report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
#reportEvidence { margin: 0; padding-left: 19px; }
.report-action, .branch-report { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 20px; }
.report-quote { margin-top: 15px; padding: 15px 19px; border-left: 3px solid #a99053; background: #f2f0e4; border-radius: 0 8px 8px 0; }
#reportMessage { margin: 0; font: 550 clamp(17px,1.6vw,22px)/1.8 var(--serif); letter-spacing: -.025em; }
#reportBranches { margin: 0; display: grid; grid-template-columns: minmax(110px,.4fr) 2fr; gap: 10px 16px; }
#reportBranches dt { font-weight: 640; font-size: 14px; align-self: start; padding-top: 4px; }
#reportBranches dd { margin: 0; }
@media (min-width: 701px) {
  .layout { grid-template-areas: "art settings" "reading settings" "experiment settings"; row-gap: 12px; }
}
@media (max-width:700px) {
  .intro { gap: 14px; margin-bottom: 10px; }
  .scene-picker { width: 100%; }
  .scene-bar { padding-block: 12px; gap: 11px; }
  .scene-bar .sample { white-space: normal; font-size: 12px; padding: 6px 11px; max-width: 110px; }
  .scene-bar h2 { font-size: 19px; }
  .report-top { flex-direction: column; align-items: start; gap: 12px; }
  .report-controls { justify-items: start; }
  .report-row { grid-template-columns: 1fr; gap: 15px; }
  #reportBranches { display: block; }
  #reportBranches dd + dt { margin-top: 13px; }
  select { font-size:16px; min-height: 42px; }
}
.reading-link { display: inline-block; margin-top: 12px; color: var(--teal); font-size: 13px; text-underline-offset: 4px; }
#boundaryHelp { display: block; font-size: 12px; line-height: 1.55; margin-top: 4px; color: var(--muted); }

#reportGuide a { display: inline-block; color: var(--teal); margin: 12px 14px 0 0; font-size: 14px; text-underline-offset: 3px; }

/* The instrument, its legend and its two controls form one viewing surface. */
body:has(#observerView:not([hidden])) {
  background: #f5f6f4;
}
#observerView {
  --ink: #172c29;
  --muted: #4e615e;
  --paper: #fff;
  --line: #d3dcd8;
  color: var(--ink);
}
.observer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kicker sample" "title sample" "lead sample";
  align-items: center;
  gap: 5px 20px;
  margin: clamp(23px, 3.2vw, 43px) 0 clamp(17px, 2.4vw, 29px);
}
.observer-intro .kicker {
  grid-area: kicker;
  color: #31635b;
  font: 700 12px/1.4 "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: .075em;
  margin: 0;
}
.observer-intro h1 {
  grid-area: title;
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 600;
  line-height: 1.26;
}
.observer-intro h1 span { display: inline-block; }
.observer-intro .lead {
  grid-area: lead;
  max-width: 44em;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.observer-intro .sample {
  grid-area: sample;
  justify-self: end;
  min-height: 44px;
  border-color: #b2c3bc;
  background: transparent;
  color: #204a43;
}
#observerView .layout { gap: 16px; }
#observatory {
  min-width: 0;
  border-radius: 15px;
  border: 1px solid #213b39;
  background: #0d211f;
  box-shadow: 0 8px 23px #11292518;
  color-scheme: dark;
}
#observatory .art {
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  background: #081a1b;
}
#studioPlate, #portrait {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  pointer-events: none;
}
#studioPlate { z-index: 0; object-fit: contain; }
#portrait { z-index: 1; }
#observatory .instrument-title, #observatory .stage-indicator {
  z-index: 2;
  top: clamp(9px, 1.3vw, 17px);
  color: #f3f1dd;
  background: #0c1b1be6;
  border: 1px solid #a8bab54a;
  border-radius: 20px;
  padding: 4px 9px;
  font: 580 12px/1.2 "Malgun Gothic", system-ui, sans-serif;
}
#observatory .instrument-title { left: clamp(9px, 1.3vw, 17px); }
#observatory .stage-indicator { right: clamp(9px, 1.3vw, 17px); }
#observatory .stage-indicator.hypothesis { color: #edceff; border-color: #bd9acc99; }
#observatory .readouts {
  padding: 14px clamp(15px, 2vw, 24px);
  gap: 11px;
  background: #102a27;
  border-color: #8caba54c;
}
#observatory .route-name { margin-bottom: 3px; color: #bdd3ca; }
#observatory .readouts strong { display: block; font-size: 15px; line-height: 1.45; }
#observatory .readouts > div + div { padding-left: 13px; }
.seal-settings {
  display: flow-root;
  margin: 0;
  padding: 0 clamp(15px, 2vw, 24px) 18px;
}
.seal-settings legend {
  width: 100%;
  padding: 15px 0 0;
  margin-bottom: 8px;
  color: #eef3e9;
  font-size: 13px;
}
.seal-settings .pair { gap: 12px; }
.seal-settings label { color: #d4e2dc; line-height: 1.4; }
.seal-settings select {
  display: block;
  min-height: 44px;
  margin: 3px 0 0;
  padding: 6px 10px;
  border: 1px solid #526c66;
  border-radius: 6px;
  background: #213833;
  color: #f1f4ed;
}
#observerView .paper { background: #fff; border-color: var(--line); border-radius: 13px; }
#observerView .scene-picker { min-width: 0; }
#observerView .scene-picker label { font-size: 13px; }
#observerView .scene-picker select {
  min-height: 44px;
  background: #eaf0ed;
  color: #1f443c;
  border-color: #bfceca;
}
.scene-prompt { border-bottom: 1px solid var(--line); margin: 15px 0; padding: 0 0 15px; }
.scene-prompt h3 { margin: 0; color: var(--ink); font: 600 20px/1.4 var(--serif); letter-spacing: -.055em; }
#observerView .settings select:not(#scene), #observerView .choice { border-color: #c8d3ce; background: #f9fbfa; }
#observerView .choice[aria-pressed="true"] { background: #dfece5; border-color: #749587; }
#observerView .report-panel { background: #f9fbf9; border-color: #bccbc4; border-top-color: #8f8056; }
#observerView .report-quote { background: #ecf2ed; }
@media (max-width: 700px) {
  .observer-intro {
    grid-template-areas: "kicker sample" "title title" "lead lead";
    gap: 3px 8px;
    margin: 10px 0 15px;
  }
  .observer-intro h1 { font-size: clamp(30px, 7.9vw, 44px); }
  .observer-intro .lead { font-size: 14px; margin-top: 2px; }
  .observer-intro .sample { padding: 6px 12px; min-height: 44px; }
  #observerView .layout { gap: 12px; }
  #observatory { margin-inline: -6px; border-radius: 12px; }
  #observatory .readouts { padding-block: 11px; }
  #observatory .readouts strong { font-size: 14px; }
  .seal-settings { padding-bottom: 14px; }
  .seal-settings legend { padding-top: 11px; }
  .seal-settings .pair { gap: 9px; }
  .seal-settings select { font-size: 16px; }
}

.seal-settings:focus-visible { outline: 2px solid #c4af76; outline-offset: -3px; }

/* A short reading of the actual record, followed by the paid report contents. */
.reading-notes { margin: 13px 0 0; }
.reading-notes > div { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.reading-notes dt { color: var(--teal); font-size: 13px; font-weight: 650; }
.reading-notes dd { margin: 0; font-size: 14px; line-height: 1.65; }
.reading-notes #reason { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; color: var(--ink); }
.reading-notes #freeUnknown { color: var(--muted); }
.reading-notes .reading-step { background: #eef4ef; padding-inline: 12px; border-top: 0; border-radius: 6px; }
.reading-actions { display: flex; align-items: center; gap: 5px 16px; flex-wrap: wrap; margin-top: 11px; }
.reading-actions .reading-link, .reading-actions .link-action { margin: 0; padding: 8px 0; }
.report-contents { margin-top: 15px; }
.report-contents p { font-size: 13px; font-weight: 650; color: var(--teal); }
.report-contents ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 5px 0 0; padding: 0; }
.report-contents li { padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #344b43; font-size: 13px; }
@media(max-width:520px) {
  .reading-notes > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
}
.record-jumps { display:flex; align-items:center; flex-wrap:wrap; gap:0 16px; }
.record-jumps a { display:inline-flex; align-items:center; min-height:44px; }
#goFreeReading { font-weight:700; }
#reading:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }

.link-action { display:block; margin-top:14px; padding:0; color:var(--teal); font-weight:650; font-size:14px; }

body:has(#practiceView:not([hidden])) { background:#f8f7fc; }
#practiceView {
  --ink:#292238; --muted:#615a70; --teal:#60439a; --line:#e4dfed;
  --gutter:clamp(19px,2.2vw,29px);
  max-width:1080px; margin-inline:auto; color:var(--ink);
}
.pr-intro { display:flex; align-items:center; gap:18px; margin:clamp(26px,4vw,49px) 0 clamp(22px,3vw,35px); }
#practiceTitle { font:760 clamp(32px,3.5vw,48px)/1.2 var(--sans); letter-spacing:-.065em; }
#practiceTitle span { color:#60428b; }
.pr-intro .lead { margin-top:6px; color:#655c73; font-size:clamp(14px,1.4vw,17px); }
.pr-title-art { position:relative; isolation:isolate; width:68px; height:68px; flex:none; }
.pr-title-art i,.pr-title-art b {
  position:absolute; width:43px; height:33px; border-radius:13px; border:1px solid #af90d6;
  box-shadow:inset 0 2px 2px #ffffffb5, inset 0 -2px 3px #7a4bb933, 0 4px 6px #5c38972b;
}
.pr-title-art i { top:8px; left:2px; transform:rotate(-14deg); background:linear-gradient(155deg,#f4eaff,#c9a8ee); }
.pr-title-art b { top:25px; left:22px; transform:rotate(7deg); display:flex; justify-content:center; align-items:center; gap:3px; background:linear-gradient(145deg,#e3c9ff,#aa7ce0 75%); }
.pr-title-art i::after,.pr-title-art b::after { content:""; position:absolute; bottom:-4px; right:9px; width:9px; height:8px; transform:skewY(28deg); background:#b386e4; border-radius:0 0 2px 4px; }
.pr-title-art i::after { left:6px; right:auto; background:#d3b7ef; transform:skewY(-28deg); }
.pr-title-art b span { width:4px; height:4px; border-radius:50%; background:#fff7ff; box-shadow:0 1px 1px #8050ad66; }
.pr-workspace { display:grid; grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr); gap:clamp(20px,2.5vw,32px); align-items:start; }
.pr-setup,.pr-chat-column { min-width:0; }
.pr-setup { border:1px solid #e0dae9; border-radius:24px; background:#fff; box-shadow:0 5px 20px #3a235009; }
.pr-scene-cover {
  position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center;
  min-height:126px; padding:20px var(--gutter); border-radius:23px 23px 0 0; border-bottom:1px solid #dfd5ed;
  background:radial-gradient(ellipse at 85% 78%,#fdf7ff 0%,transparent 42%),linear-gradient(115deg,#ece4f8,#eee6f8 56%,#dbc8f0);
}
.pr-scene-control { position:relative; z-index:1; width:fit-content; max-width:calc(100% - 98px); }
.pr-scene-control label { display:flex; align-items:center; gap:7px; color:#65507c; font-size:13px; font-weight:650; }
.pr-select-wrap { display:flex; position:relative; width:fit-content; max-width:100%; align-items:center; }
.pr-select-wrap > svg { position:absolute; right:0; pointer-events:none; color:#664b82; }
#prScene { width:auto; max-width:100%; min-height:44px; padding:4px 24px 3px 0; border:0; border-radius:5px; appearance:none; background:transparent; color:#35233f; font:740 clamp(19px,1.9vw,25px)/1.35 var(--sans); letter-spacing:-.055em; }
#prScene:disabled { opacity:.78; }
#prScene option { background:white; color:#35233f; font:500 16px/1.4 var(--sans); }
.pr-difficulty { min-width:0; margin:20px var(--gutter) 0; padding:0 0 16px; border:0; border-bottom:1px solid var(--line); }
.pr-difficulty legend { padding:0; color:var(--ink); font:600 14px/1.5 var(--sans); }
.pr-levels { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:8px 0; padding:4px; border-radius:14px; background:#f2eff6; }
.pr-levels label { position:relative; min-width:0; cursor:pointer; }
.pr-levels input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:inherit; }
.pr-levels span { display:grid; place-items:center; min-height:44px; border-radius:10px; color:#595163; font:550 15px/1.4 var(--sans); pointer-events:none; }
.pr-levels input:checked + span { background:#fff; color:#543580; font-weight:700; box-shadow:0 1px 4px #2e1d441f, inset 0 0 0 1px #d6c9e5; }
.pr-levels input:focus-visible + span { outline:3px solid #7651aa; outline-offset:1px; }
.pr-difficulty:disabled label { cursor:default; }
#prDifficultyHint { color:var(--muted); font:400 13px/1.55 var(--sans); }
.pr-brief { padding:20px var(--gutter) 24px; }
.pr-mode { display:flex; align-items:center; gap:8px; margin-bottom:8px; color:var(--teal); font-size:13px; font-weight:650; }
.pr-mode svg { flex:none; }
#prPrompt { font:650 clamp(21px,1.9vw,26px)/1.45 var(--sans); letter-spacing:-.035em; }
#prPremise { margin-top:12px; color:var(--ink); font-size:14px; line-height:1.6; }
.pr-privacy,.handoff-note { color:var(--muted); font-size:13px; line-height:1.6; }
.pr-privacy { margin-top:12px; }
.pr-linked-context:has(#prLinked:not([hidden])) { margin-inline:var(--gutter); padding:12px 0 4px; border-top:1px solid var(--line); }

.pr-room {
  --room-padding:clamp(14px,2vw,24px);
  /* One light above the left edge. Each raised surface casts onto the same lilac material. */
  --raised:inset 3px 3px 6px #ffffffb3, inset -3px -4px 7px #8462ac38,
    -4px -4px 9px #fcf8ffcf, 5px 7px 11px #79619d61;
  --round-relief:inset 2px 2px 4px #ffffffe6, inset -3px -3px 5px #7c57a24d,
    -2px -2px 5px #fff9, 3px 4px 6px #765b974d;
  --pressed:inset 3px 4px 7px #70528e73, inset -3px -3px 6px #ffffffbf;
  isolation:isolate; overflow:hidden; position:relative; border:0; border-radius:27px;
  background:linear-gradient(125deg,#e9e1f7,#e3daf3 72%,#ded3f0);
  box-shadow:inset 4px 4px 7px #ffffffc4, inset -4px -5px 8px #9882b852,
    -6px -6px 14px #fffc, 8px 11px 22px #79648c47;
}
.pr-room-header {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; padding:13px var(--room-padding);
  position:relative; z-index:1; text-align:center;
  background:linear-gradient(155deg,#decbfa,#c9a9f0 58%,#b894e8);
  box-shadow:inset 3px 3px 6px #fff9, inset -2px -3px 6px #8861b947, 0 4px 7px #795b9d42;
}
.pr-window-dots { display:flex; align-items:center; gap:6px; }
.pr-window-dots i { width:8px; height:8px; border-radius:50%; background:linear-gradient(145deg,#f6edff,#d7baf1); box-shadow:-1px -1px 2px #fff9, 2px 2px 3px #75509a73; }
.pr-room-title { margin:0; color:#372346; font:740 clamp(18px,1.7vw,23px)/1.25 var(--sans); letter-spacing:-.045em; }
.pr-room-phase { margin:4px 0 0; color:#564367; font-size:13px; line-height:1.4; font-variant-numeric:tabular-nums; }
.pr-room-portrait,.pr-avatar { position:relative; flex:none; overflow:hidden; border-radius:50%; background:linear-gradient(145deg,#fcf3ff,#d5bbeb); box-shadow:var(--round-relief); }
.pr-room-portrait { justify-self:end; width:43px; height:43px; }
.pr-room-portrait img,.pr-avatar img { position:absolute; max-width:none; width:840%; height:264%; left:-10%; top:-149%; }
.pr-room-portrait img[data-character="milk"],.pr-avatar img[data-character="milk"],.pr-message.own .pr-avatar img { top:-16%; }
.pr-thread { height:clamp(286px,35vh,352px); overflow-y:auto; overflow-anchor:none; padding:22px var(--room-padding) 14px; scrollbar-width:thin; scrollbar-color:#b7a0cf transparent; }
.pr-thread:focus-visible { outline:2px solid #8262a5; outline-offset:-4px; }
.pr-consult-tools,.pr-tour-panel { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px var(--room-padding); }
.pr-consult-tools[hidden],.pr-tour-panel[hidden] { display:none; }
.pr-consult-tools span { color:#59456d; font-size:12px; font-variant-numeric:tabular-nums; }
.pr-consult-tools button,.pr-tour-panel button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:4px 12px; border:1px solid #c6b3d8; border-radius:12px; background:#faf5ff; color:#533570; font-size:13px; font-weight:650; }
.pr-tour-panel { margin:6px var(--room-padding); padding:12px; background:#faf7fd; color:#473655; border-radius:12px; }
.pr-tour-panel strong { font-size:12px; }.pr-tour-panel p { font-size:14px; line-height:1.5; margin:4px 0 0; }
.pr-tour-panel button { border:0; padding:6px; background:transparent; }
#prReport:not([hidden]) ~ .pr-room .pr-thread[data-consulting] { height:clamp(260px,45dvh,460px); overflow-y:auto; }
.pr-message.own p[data-tone-lit] { background:#f7eafd; color:#442f50; }
.pr-scene-note { margin:8px 16px 16px; text-align:center; font-size:.875rem; line-height:1.5; color:#584b69; word-break:keep-all; }
.pr-thread:has(#prWelcome:not([hidden]) > .pr-waiting-note) { display:grid; align-content:center; }
.pr-waiting-note { margin:0; color:#584b69; text-align:center; font-size:.875rem; line-height:1.7; white-space:pre-line; word-break:keep-all; }
#prConversation { display:grid; gap:18px; }
#prConversation:not(:empty) { margin-top:18px; }
.pr-message { display:flex; align-items:flex-start; gap:9px; width:fit-content; max-width:89%; min-width:0; }
.pr-message.own { justify-self:end; flex-direction:row-reverse; }
.pr-message > div { min-width:0; }
.pr-avatar { width:35px; height:35px; margin-top:2px; }
.pr-message.own .pr-avatar { background:linear-gradient(135deg,#fefbff,#d6c7f2); }
.pr-sender { display:block; margin-bottom:5px; color:#5c4671; font-size:12px; font-weight:700; line-height:1.4; }
.pr-message p {
  width:fit-content; margin:0; padding:13px 16px; border-radius:13px 19px 19px;
  background:linear-gradient(145deg,#fcf8ff,#f1eaf8); color:#332b3d;
  box-shadow:var(--raised); font:450 15px/1.65 var(--sans);
  white-space:pre-wrap; overflow-wrap:anywhere;
}
.pr-message.own p { border-radius:19px 13px 19px 19px; color:#372052; background:linear-gradient(145deg,#d9c4fc,#c7aaef 66%,#bba0e8); }
#prTyping,.pr-finished { color:var(--muted); font-size:13px; line-height:1.6; }
#prTyping { margin:12px 0 0 44px; }
#prTyping span { font-size:18px; font-weight:650; vertical-align:middle; }
.pr-compose { padding:9px var(--room-padding) 18px; }
.pr-coach-controls { display:flex; justify-content:flex-end; margin:-6px 0 2px; }
.pr-coach-toggle { position:relative; display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 6px; color:#50415f; font:650 13px/1.4 var(--sans); cursor:pointer; }
.pr-coach-toggle input { position:absolute; opacity:0; width:1px; height:1px; }
.pr-coach-track { box-sizing:border-box; display:flex; align-items:center; width:29px; height:17px; padding:2px; border:1px solid #7a6f84; border-radius:20px; background:#807587; }
.pr-coach-track::after { content:''; width:11px; height:11px; border-radius:50%; background:#fff; }
.pr-coach-toggle input:checked + .pr-coach-track { background:#75509f; border-color:#75509f; }
.pr-coach-toggle input:checked + .pr-coach-track::after { transform:translateX(12px); }
.pr-coach-toggle input:focus-visible + .pr-coach-track, .pr-live-note button:focus-visible { outline:2px solid #674384; outline-offset:3px; }
.pr-live-note { display:grid; grid-template-columns:34px minmax(0,1fr) 36px; align-items:start; gap:8px; margin:0 0 12px; padding:12px 6px 13px 12px; border-radius:17px; background:#fbf7ff; color:#392d48; box-shadow:0 2px 8px #563f6d12; }
.pr-live-face { width:34px; height:37px; align-self:start; background:var(--milk-art) center / contain no-repeat; }
.pr-live-note strong { color:#72518b; font:700 12px/1.5 var(--sans); }
.pr-live-note p { margin:3px 0 0; font:500 14px/1.6 var(--sans); word-break:keep-all; overflow-wrap:anywhere; }
.pr-live-note button { background:transparent; border:0; color:#65457d; cursor:pointer; }
#prCoachEdit { min-height:34px; padding:4px 0; margin-top:3px; font:650 13px/1.5 var(--sans); text-decoration:underline; text-underline-offset:3px; }
#prCoachClose { display:grid; place-items:center; width:36px; height:36px; padding:0; border-radius:50%; }
.pr-coach-controls[hidden], .pr-live-note[hidden], #prCoachEdit[hidden] { display:none; }
@media (prefers-reduced-motion:no-preference) {
  .pr-coach-track::after { transition:transform .16s ease; }
  .pr-live-note { animation:pr-tip-in .2s ease-out; }
  @keyframes pr-tip-in { from {opacity:0;transform:translateY(3px)} to {opacity:1;transform:translateY(0)} }
}
.pr-input-row {
  display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:30px;
  background:linear-gradient(145deg,#f2edf9,#e6ddf2); box-shadow:var(--raised);
}
.pr-tone-action { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:0 9px; min-height:44px; border:1px solid #c9b8db; border-radius:16px; color:#593c75; background:#fbf6ff; font:650 13px/1.2 var(--sans); white-space:nowrap; }
.pr-tone-action[aria-expanded=true] { background:#f0e3fb; border-color:#9273a9; }
.pr-tone-action:focus-visible { outline:2px solid #674384; outline-offset:2px; }
.pr-tone-action[hidden],#prFlyingText[hidden] { display:none; }
.pr-message p[data-in-flight] { opacity:0; }
#prFlyingText { position:absolute; z-index:4; display:block; isolation:isolate; margin:0; padding:0; pointer-events:none; transform-origin:left top; overflow-wrap:anywhere; color:#402755; }
#prFlyingText::before { content:''; position:absolute; z-index:-1; inset:-2px -5px; border-radius:9px; background:#f5ebfb; }
@media (max-width:420px) {
  .pr-input-row { gap:5px; }
  .pr-tone-action { padding-inline:7px; }
  #prCounter:not([hidden]) { position:absolute; right:var(--room-padding); bottom:0; }
  .pr-compose:has(#prCounter:not([hidden])) { padding-bottom:21px; }
}
#prDraft {
  display:block; flex:1; min-width:0; min-height:44px; max-height:114px; margin:0; padding:10px 15px;
  appearance:none; border:0; border-radius:22px; outline:0; resize:none; background:#e9e1f2; color:#33263e;
  box-shadow:inset 3px 3px 6px #a18bb66e, inset -3px -3px 6px #ffffffd9;
  font:450 16px/1.45 var(--sans); field-sizing:content; caret-color:#664198;
}
#prDraft:focus { background:#f2eaf9; box-shadow:var(--pressed); }
#prDraft:focus-visible { outline:2px solid #79569e; outline-offset:1px; }
#prDraft::placeholder { color:#685d76; }
#prCounter { flex:none; font-size:11px; white-space:nowrap; color:#665672; font-variant-numeric:tabular-nums; }
#prSend {
  flex:none; display:grid; place-items:center; width:45px; height:45px; padding:0; border-radius:50%;
  border:0; color:white; background:linear-gradient(145deg,#b48ae9,#9163d0 55%,#764ab5);
  box-shadow:inset 3px 3px 5px #ebd7ffb3, inset -3px -4px 6px #603e986e,
    -3px -3px 6px #fff, 4px 5px 7px #7154946e;
}
#prSend:disabled { background:linear-gradient(145deg,#d9c8ea,#b9a4ce); color:#f8f3fc; opacity:1; box-shadow:var(--round-relief); }
#prSend:enabled:active { box-shadow:var(--pressed); }
.pr-finished { padding:12px var(--room-padding) 20px; text-align:center; }
.pr-retry { display:flex; align-items:center; flex-wrap:wrap; gap:0 12px; padding:0 var(--room-padding) 4px; }
.pr-retry p { flex:1 1 180px; color:var(--ink); font-size:14px; line-height:1.5; }
.pr-retry button,.pr-deep { min-height:44px; border:1px solid #957eab; border-radius:12px; background:#faf7fd; color:#51376b; font:600 14px/1.4 var(--sans); }
.pr-retry button { padding:8px 12px; }
.pr-deep { margin-top:20px; padding:10px 16px; }
#practiceView:has(#prReport:not([hidden])) :is(.pr-intro,.pr-setup) { display:none; }
#practiceView:has(#prReport:not([hidden])) .pr-workspace { display:block; max-width:880px; margin:auto; }
body:has(#practiceView:not([hidden]) #prReport:not([hidden])) {
  display:flow-root;
  min-height:100vh;
  background:linear-gradient(170deg,#ece5fb 0,#f8f6fc 590px,#fbf9fd 1100px);
}
.pr-coaching { --report-ink:#30233e; --report-muted:#61556c; --report-purple:#71449d; --report-line:#e8def3; --review-gap:clamp(24px,3vw,36px); padding:0; margin:clamp(16px,3vw,32px) auto clamp(32px,4vw,48px); color:var(--report-ink); }
.pr-coaching:not([hidden]) { display:grid; gap:var(--review-gap); }
.pr-coaching svg { display:block; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.pr-coaching :is(button,a):focus-visible { outline:3px solid #7949aa; outline-offset:3px; }
.pr-review-head { position:relative; isolation:isolate; padding:clamp(14px,2.4vw,26px) clamp(16px,3vw,32px) 0; overflow:hidden; border-radius:26px; background:radial-gradient(ellipse at 77% 35%,#d7c2f7,transparent 48%),linear-gradient(130deg,#f8f5fe,#eee4ff 60%,#e7dcfb); }
.pr-review-tools { position:relative; z-index:2; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.pr-review-tools>span { color:#6f5b82; font:650 13px/1.4 var(--sans); }
.pr-read-chat,.pr-turn-link { display:inline-flex; align-items:center; justify-content:center; gap:5px; cursor:pointer; text-decoration:none; border-radius:99px; color:#674087; background:#fffc; border:1px solid #d7c4ed; font:650 13px/1.4 var(--sans); min-height:40px; padding:5px 12px; }
.pr-read-chat:hover,.pr-turn-link:hover { background:#f3eafa; }
.pr-read-chat svg { width:16px; height:16px; }
.pr-review-heading { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); min-height:clamp(124px,17vw,188px); align-items:center; }
.pr-review-heading>div:first-child { z-index:1; padding-block:12px 23px; }
.pr-review-head h1 { margin:0; color:#32213f; font:780 clamp(31px,4.7vw,57px)/1.14 var(--sans); letter-spacing:-.065em; }
.pr-review-head p { margin:9px 0 0; color:#5c486a; font:540 clamp(13px,1.65vw,17px)/1.55 var(--sans); }
.pr-report-cast { position:relative; height:100%; min-width:0; isolation:isolate; }
.pr-coaching,#hostResult,.pr-room { --milk-art:url("/mz/assets/coaching-milk-885f63db0cdfd229.webp"); --apricot-art:url("/mz/assets/coaching-apricot-0d5040c9b63ca457.webp"); }
.report-mochi { --portrait:var(--milk-art); display:block; background:var(--portrait) center bottom / contain no-repeat; }
.report-mochi.is-apricot { --portrait:var(--apricot-art); }
.pr-report-cast .report-mochi { position:absolute; bottom:-7%; left:1%; width:55%; height:99%; transform:rotate(-5deg); }
.pr-report-cast .is-apricot { left:48%; height:92%; bottom:-5%; transform:rotate(5deg); }
.pr-report-cast svg { position:absolute; z-index:-1; top:10%; left:47%; width:clamp(16px,3vw,32px); height:auto; color:#de7399; fill:#f7a3bb; transform:rotate(-11deg); }
.pr-review-group { padding:clamp(18px,3vw,32px); background:#fff; border:1px solid #e8dff3; border-radius:21px; box-shadow:0 5px 17px #5b32810a; }
.pr-review-group h2 { margin:0; color:var(--report-ink); font:735 clamp(18px,2.25vw,24px)/1.4 var(--sans); letter-spacing:-.038em; }
.pr-review-group p { margin:0; color:var(--report-muted); font:480 clamp(14px,1.55vw,16px)/1.65 var(--sans); overflow-wrap:anywhere; white-space:pre-wrap; }
.pr-journey { position:relative; }
.pr-journey h2 { display:flex; align-items:center; gap:9px; }
.pr-journey h2::before { content:""; width:5px; height:17px; background:#ac7cda; border-radius:4px; }
.pr-journey ol { position:relative; isolation:isolate; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:0; margin:20px 0 0; list-style:none; }
.pr-journey li { position:relative; display:flex; flex-direction:column; min-width:0; }
.pr-journey li > :is(button,span) { flex:1; }
.pr-journey li + li::before { content:""; position:absolute; z-index:-1; width:100%; top:14px; height:3px; left:-50%; background:#cfb6e8; }
.pr-journey li :is(button,a,span) { position:relative; display:flex; align-items:center; flex-direction:column; gap:7px; width:100%; min-height:48px; padding:0; margin:0; border:0; background:transparent; color:#5a4768; font:600 clamp(12px,1.55vw,15px)/1.35 var(--sans); text-align:center; text-decoration:none; }
.pr-journey li :is(button,a):hover { color:#763db2; text-decoration:underline; }
.pr-journey i { display:grid; place-items:center; width:29px; height:29px; border-radius:50%; background:linear-gradient(150deg,#bc91e8,#8554bd); color:white; }
.pr-journey i svg { width:17px; height:17px; stroke-width:2.8; }
.pr-journey li[aria-current] i { border:5px solid #9771ce; background:#fff; box-shadow:0 0 0 3px #e9dcfc; }
.pr-journey li[aria-current] span { color:#694493; }
.pr-step-score { display:block; margin:6px 0 0; color:#4d3468; text-align:center; white-space:nowrap; font:730 clamp(14px,2vw,21px)/1.4 var(--sans); font-variant-numeric:tabular-nums; }
.pr-journey li:last-child .pr-step-score { color:#60309b; }
.pr-score-info { margin-top:22px; border-top:1px solid #e8dff1; color:#55445f; }
.pr-score-info summary { width:fit-content; padding:14px 4px 3px 0; min-height:44px; cursor:pointer; color:#65457c; font:640 13px/1.6 var(--sans); }
.pr-score-info>div { max-width:58ch; padding:9px 0 2px; }
.pr-score-info p { margin:0; font:480 14px/1.65 var(--sans); color:#574960; }
.pr-score-info dl { display:grid; gap:8px; margin:16px 0; }
.pr-score-info dl>div { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:2px 12px; }
.pr-score-info :is(dt,dd) { padding:0; margin:0; font:560 13px/1.55 var(--sans); }
.pr-score-info dd { color:#593773; font-variant-numeric:tabular-nums; }
.pr-score-info .pr-criterion-counts { flex-basis:100%; color:#655a6d; font-size:12px; }
.pr-message .pr-options-trigger {
  display:flex; align-items:center; justify-content:center; gap:10px; width:fit-content;
  min-height:44px; margin:8px 0 0; padding:8px 14px; border:1px solid #a78ac1; border-radius:12px;
  color:#53326f; background:#f3ebfc; box-shadow:inset 0 1px 0 #fff,0 2px 4px #3f285214;
  font:680 13px/1.45 var(--sans); cursor:pointer;
}
.pr-message.own .pr-options-trigger { margin-inline-start:auto; }
.pr-options-trigger::after { content:''; width:6px; height:6px; border:solid currentColor; border-width:1.5px 1.5px 0 0; transform:rotate(45deg); }
@media (hover:hover) { .pr-message .pr-options-trigger:hover { background:#e8d9f7; border-color:#8863a7; } }
.pr-message .pr-options-trigger:active { transform:translateY(1px); background:#e8d9f7; box-shadow:inset 0 1px 2px #45285c22; }
.pr-options-dialog { width:min(460px,calc(100% - 28px)); max-width:none; max-height:calc(100dvh - 32px); padding:0; border:1px solid #e5dbee; border-radius:24px; color:#35243f; background:#fff; box-shadow:0 18px 64px #2c153d3d; overflow:auto; overscroll-behavior:contain; }
.pr-options-dialog::backdrop { background:rgb(38 24 50 / .44); }
.pr-options-body { padding:clamp(18px,3.4vw,30px); }
.pr-options-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pr-options-top p { color:#795394; margin:0; font:680 13px/1.5 var(--sans); }
.pr-options-top button { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:#f6f2f8; color:#634e72; cursor:pointer; }
.pr-options-top svg { width:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.pr-options-body h2 { margin:8px 0 14px; font:740 clamp(21px,4vw,26px)/1.3 var(--sans); color:#392543; letter-spacing:-.035em; }
.pr-options-body blockquote { margin:0 0 22px; padding:0 0 20px; border:0; border-bottom:1px solid #e9e1ed; color:#67576f; background:transparent; font:480 15px/1.65 var(--sans); overflow-wrap:anywhere; white-space:pre-wrap; }
.pr-options-body blockquote::before { content:'“'; }
.pr-options-body blockquote::after { content:'”'; }
.pr-options-body ol { display:grid; gap:13px; list-style:none; margin:0; padding:0; }
.pr-options-body li { padding:14px 17px; border-radius:16px 16px 16px 5px; background:#f4eef9; color:#432f53; font:560 16px/1.65 var(--sans); word-break:keep-all; overflow-wrap:anywhere; }
#prOptionsHint { margin:18px 0 0; font:480 14px/1.55 var(--sans); color:#6a5a72; }
.pr-options-trigger:focus-visible,.pr-options-dialog button:focus-visible,.pr-score-info summary:focus-visible { outline:2px solid #775399; outline-offset:3px; }
@media(prefers-reduced-motion:no-preference) { .pr-options-dialog[open] { animation:pr-arrive .15s ease-out; } }
.pr-evidence-grid { display:grid; gap:var(--review-gap); padding-top:var(--review-gap); border-top:1px solid var(--report-line); }
.pr-review-group.pr-strength { --accent:#377259; --icon-fill:#47a473; --accent-wash:#e4f5ea; }
.pr-review-group.pr-improve { --accent:#86501c; --icon-fill:#ee962f; --accent-wash:#fff0de; }
.pr-evidence-grid header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 8px; }
.pr-evidence-grid h2 { display:flex; align-items:center; gap:8px; border-radius:40px; background:linear-gradient(90deg,var(--accent-wash),transparent); padding-right:15px; }
.pr-review-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; color:white; background:var(--icon-fill); }
.pr-review-icon svg { width:18px; height:18px; stroke-width:2.4; }
.pr-turn-link { min-height:38px; padding-inline:10px; font-size:12px; }
.pr-turn-link::after { content:'›'; font-size:18px; line-height:1; }
.pr-feedback-line { margin-top:clamp(16px,2.1vw,24px); display:grid; grid-template-columns:clamp(44px,7.7vw,76px) minmax(0,1fr); align-items:start; gap:clamp(7px,1.6vw,15px); }
.pr-feedback-line .report-mochi { aspect-ratio:303/380; max-height:92px; }
.pr-feedback-line blockquote { position:relative; display:table; margin:0; padding:10px 14px; color:#39264b; font:670 clamp(16px,1.9vw,21px)/1.46 var(--sans); letter-spacing:-.025em; background:linear-gradient(135deg,#f1e9fc,#eae1fa); border-radius:16px 16px 16px 5px; overflow-wrap:anywhere; white-space:pre-wrap; }
.pr-feedback-line blockquote::before { content:'“'; }
.pr-feedback-line blockquote::after { content:'”'; }
.pr-feedback-line p { margin-top:12px; }
.pr-feedback-line small:not([hidden]) { display:block; margin-top:12px; color:#624b70; line-height:1.55; }
.pr-rewrite-preview:not([hidden]) { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-top:16px; padding:8px 14px; border:1px solid #cfc1dd; border-radius:12px; background:#fff; color:#58366f; font:650 14px/1.5 var(--sans,system-ui); cursor:pointer; }
.pr-rewrite-preview::after { content:'›'; font-size:18px; line-height:1; }
.pr-rewrite-preview:focus-visible { outline:3px solid #70458c; outline-offset:3px; }
.pr-quote-trigger,.pr-quote-close,.pr-quote-tour footer>button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px;
  border:1px solid #dac9e7; border-radius:12px; background:#f8f2fd; color:#5d3979;
  padding:8px 14px; font:650 14px/1.45 var(--sans,system-ui); cursor:pointer;
}
.pr-quote-trigger { margin-top:16px; }
.pr-quote-trigger::before { content:''; width:0; height:0; border-block:5px solid transparent; border-left:7px solid currentColor; }
.pr-quote-trigger:hover,.pr-quote-tour footer>button:enabled:hover { background:#efe3f8; }
.pr-quote-trigger:focus-visible,.pr-quote-tour button:focus-visible,.pr-quote-row p:focus-visible { outline:2px solid #764395; outline-offset:3px; }
.pr-quote-tour {
  box-sizing:border-box; width:min(490px,calc(100% - 24px)); max-width:none; max-height:calc(100dvh - 20px); margin:auto;
  padding:0; overflow:auto; overscroll-behavior:contain; color:#382a44; background:#fffcff;
  border:1px solid #ded1e9; border-radius:22px; box-shadow:0 18px 64px #30223840;
}
.pr-quote-tour::backdrop { background:#25192e7a; }
.pr-quote-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 22px 15px; border-bottom:1px solid #e9dfef; }
.pr-quote-head p { margin:0 0 3px; font:650 13px/1.4 var(--sans,system-ui); color:#755b85; }
.pr-quote-head h2 { margin:0; color:#34253e; font:750 clamp(20px,4.6vw,26px)/1.3 var(--sans,system-ui); letter-spacing:-.03em; }
.pr-quote-head h2:focus { outline:none; }
.pr-quote-close { width:44px; padding:0; border-color:transparent; border-radius:50%; background:#f4eef7; }
.pr-quote-close svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.pr-quote-scene { position:relative; }
.pr-quote-pane { display:grid; gap:16px; padding:18px 22px; }
.pr-quote-row { min-width:0; --row-color:#714681; }
.pr-quote-row.is-answer { --row-color:#216d65; }
.pr-quote-row.is-reason { --row-color:#95503b; border-top:1px solid #e8deeb; padding-top:13px; }
.pr-quote-row strong { display:flex; align-items:center; gap:7px; margin-bottom:5px; color:var(--row-color); font:700 13px/1.5 var(--sans,system-ui); }
.pr-quote-row strong::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--row-color); }
.pr-quote-row p {
  box-sizing:content-box; margin:0; padding:4px 2px; max-height:clamp(48px,14dvh,110px); overflow:auto;
  scrollbar-width:thin; overscroll-behavior:contain; white-space:pre-wrap; overflow-wrap:anywhere;
  font:530 15px/1.65 var(--sans,system-ui); color:#3d3244;
}
.pr-quote-row.is-source p { background:#f3edf8; border-radius:12px; padding:8px 12px; }
.pr-quote-scene footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; padding:9px 18px; border-top:1px solid #e8deeb; background:#faf6fc; }
.pr-quote-scene [data-tone-collection] { flex:1; min-width:0; padding:0; border:0; }
.pr-quote-tour footer>button { flex:none; background:white; font-size:12px; padding:5px 9px; }
.pr-quote-tour footer>button:disabled { color:#806f89; background:transparent; border-color:transparent; cursor:default; }
.pr-quote-editbar { padding:0 18px 14px; background:#faf6fc; }
.pr-quote-editbar button { display:flex; width:100%; justify-content:center; align-items:center; gap:10px; min-height:44px;
  padding:8px 16px; border:0; border-radius:11px; background:#684473; color:white; font:650 14px/1.5 system-ui,sans-serif; cursor:pointer; }
.pr-quote-editbar button:hover { background:#53345e; }
.pr-quote-tour[data-kind="observation"] .is-source p { font-variant-numeric:tabular-nums; }
.pr-quote-tour[open][data-kind="observation"] { display:flex; flex-direction:column; overflow:hidden; }
.pr-quote-tour[data-kind="observation"] :is(.pr-quote-head,.pr-quote-editbar) { flex:none; }
.pr-quote-tour[data-kind="observation"] .pr-quote-scene { min-height:0; overflow:auto; overscroll-behavior:contain; }
.pr-quote-tour[data-feedback="strength"] [data-tone-stroke] { background:#84d7aaa8; }
.pr-quote-tour[data-feedback="strength"] p[data-tone-lit] mark[data-tone-painted] { background:linear-gradient(transparent 20%,#b8ebcc 20% 91%,transparent 91%); }
@media (max-height:580px), (max-width:380px) {
  .pr-quote-head { padding:11px 15px; }
  .pr-quote-pane { gap:9px; padding:10px 15px; }
  .pr-quote-row.is-reason { padding-top:8px; }
  .pr-quote-scene footer { padding:6px 12px; }
  .pr-quote-tour[data-kind="observation"] .pr-quote-row p { max-height:clamp(44px,11dvh,65px); font-size:14px; line-height:1.55; }
  .pr-quote-editbar { padding:0 12px 9px; }
}
.pr-rewrite { padding:clamp(16px,2vw,22px); margin-top:clamp(18px,2.4vw,28px); border-radius:15px; background:#f6f1fb; }
.pr-rewrite h3 { display:table; margin:0 0 8px; padding:4px 10px; background:#e3d2f3; color:#633784; border-radius:99px; font:700 12px/1.4 var(--sans); }
.pr-rewrite p { display:table; padding:8px 13px; border-radius:14px 14px 14px 4px; background:#fff0df; color:#513b32; font-weight:650; }
@media(max-width:440px) {
  .pr-review-heading { grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); }
  .pr-review-head h1 { font-size:clamp(27px,7vw,33px); }
  .pr-review-heading>div:first-child { padding-bottom:16px; }
  .pr-report-cast { margin-inline:-9px; }
  .pr-review-head p { font-size:12px; }
  .pr-turn-link { font-size:11px; padding-inline:7px; }
}
@media(pointer:coarse) { .pr-turn-link,.pr-read-chat { min-height:44px; } }
#prReport:not([hidden]) ~ .pr-room { max-width:736px; margin:0 auto; }
#prReport:not([hidden]) ~ .pr-room .pr-thread { height:auto; max-height:none; overflow:visible; padding-block:24px; }
#prReport:not([hidden]) ~ .pr-room .pr-message { max-width:min(91%,55ch); scroll-margin:28px; }
#prReport:not([hidden]) ~ .pr-room .pr-finished { border-top:1px solid #d4c7e2; padding:12px var(--room-padding); text-align:center; }
.pr-message.own:target { outline:2px solid #7651aa; outline-offset:4px; border-radius:12px; }
.pr-message.own:focus { outline:2px solid #7651aa; outline-offset:4px; border-radius:12px; }
.pr-bottom { text-align:right; }
.pr-line-save:not([hidden]) { display:grid; justify-items:start; gap:12px; min-width:0; }
.pr-line-save label { font:650 14px/1.5 var(--sans); color:var(--report-muted); }
.pr-line-save select { display:block; max-width:100%; width:100%; min-height:44px; padding:9px; font:inherit; color:var(--report-ink); background:white; border:1px solid #b8aec2; border-radius:9px; }
.pr-line-save blockquote,.pr-line-notebook blockquote { margin:0; padding:4px 0 4px 14px; border-inline-start:3px solid #d6c4e8; font:600 16px/1.7 var(--sans); overflow-wrap:anywhere; white-space:pre-wrap; }
.pr-line-save button,.pr-line-notebook :is(button,a) { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:10px; padding:8px 14px; font:650 14px/1.5 var(--sans); cursor:pointer; }
.pr-line-save button { background:var(--report-purple); border:1px solid var(--report-purple); color:white; }
.pr-line-notebook:not([hidden]) { margin-top:20px; padding:0 16px; border:1px solid #e8dff3; border-radius:14px; background:#fff; color:#493555; }
.pr-line-notebook summary { min-height:44px; padding:12px 0; font:650 15px/1.5 var(--sans); cursor:pointer; }
.pr-line-notebook > div { display:grid; justify-items:start; gap:12px; }
.pr-line-notebook :is(button,a) { background:white; border:1px solid #d8cbe4; color:#684395; margin:0 0 12px; }
.pr-line-notebook :focus-visible,.pr-line-save select:focus-visible { outline:3px solid #7949aa; outline-offset:2px; }
.pr-line-notebook .pr-line-status { margin:0 0 12px; font:500 14px/1.6 var(--sans); }
#prClear { padding:8px 4px; color:var(--teal); }
@media (hover:hover) {
  #prSend:enabled:hover { filter:brightness(1.07); }
  .pr-retry button:hover,.pr-deep:hover { background:#f0e7f8; }
}

/* Stage and chat portraits share one atlas. The changing poses remain live in the scene cover. */
#chatPhoto { position:absolute; right:4px; bottom:9px; width:35%; max-width:155px; height:99px; isolation:isolate; overflow:hidden; pointer-events:none; }
#chatPhoto::before {
  content:""; position:absolute; inset:auto 3% 4% 3%; height:22%; border-radius:50%;
  background:radial-gradient(ellipse,#d0b8e8 0%,#f7eefd 70%); box-shadow:0 3px 3px #c8acd548,inset 0 1px 1px #fff9;
}
#chatPhoto .mochi-actor {
  --column:0; --row:0; position:absolute; bottom:10%; left:29%;
  width:44%; aspect-ratio:16/19; transform:translateX(-50%);
}
#chatPhoto .mochi-actor[hidden] { display:none; }
#chatPhoto #prPartnerActor { --row:1; left:70%; }
#chatPhoto[data-phase="memo"] #prSelfActor { left:50%; }
#chatPhoto .mochi-actor::before {
  content:""; position:absolute; left:7%; top:89%; width:88%; height:11%;
  background:radial-gradient(ellipse, rgba(122,72,72,.40), rgba(156,97,91,.12) 46%, transparent 72%);
}
#chatPhoto .mochi-crop {
  position:absolute; inset:0; overflow:hidden; transform-origin:50% 94%;
}
#chatPhoto .mochi-crop img {
  position:absolute; inset:auto; left:calc(-100% * var(--column)); top:calc(-100% * var(--row));
  display:block; max-width:none; width:700%; height:200%; object-fit:fill;
}
#chatPhoto .mochi-art-status { display:none; }
#chatPhoto.mochi-art-unavailable .mochi-crop { visibility:hidden; }
#chatPhoto.mochi-art-unavailable .mochi-art-status { display:block; position:absolute; inset:43% 12px auto; text-align:center; color:#614b58; font-size:13px; }
#chatPhoto.mochi-art-unavailable .mochi-message { visibility:hidden; }
#chatPhoto [data-pose="send"] { --column:1; }
#chatPhoto [data-pose="listen"] { --column:2; }
#chatPhoto [data-pose="answer"] { --column:3; }
#chatPhoto [data-pose="wait"] { --column:4; }
#chatPhoto [data-pose="note"] { --column:6; }
#chatPhoto .mochi-message {
  position:absolute; top:8%; left:50%; transform:translateX(-50%);
  display:none; align-items:center; justify-content:center; gap:3px;
  box-sizing:border-box; padding:0 5px; height:12px; border-radius:7px; background:#fff;
  border:1px solid rgba(135,82,79,.22); box-shadow:0 2px 3px rgba(106,63,64,.06);
}
#chatPhoto .mochi-message i {
  width:3px; height:3px; background:#986b75; border-radius:50%;
}
#chatPhoto[data-phase="sending"] .mochi-message,
#chatPhoto[data-phase="waiting"] .mochi-message,
#chatPhoto[data-phase="reply"] .mochi-message { display:flex; }
#chatPhoto[data-phase="sending"] .mochi-message { border-bottom-left-radius:3px; }
#chatPhoto[data-phase="waiting"] .mochi-message,
#chatPhoto[data-phase="reply"] .mochi-message { border-bottom-right-radius:3px; }

@keyframes rehearsal-pass {
  from { opacity:.2; transform:translate(-85%,5px) scale(.88); }
  to { opacity:1; transform:translate(-50%,0) scale(1); }
}
@keyframes rehearsal-nod {
  0%,100% { transform:rotate(0); }
  45% { transform:rotate(-3deg); }
}
@keyframes rehearsal-wait {
  0%,70%,100% { opacity:.45; }
  35% { opacity:1; }
}
@media(prefers-reduced-motion:no-preference) {
  #chatPhoto[data-phase="sending"] .mochi-message { animation:rehearsal-pass .38s ease-out; }
  #chatPhoto[data-phase="reply"] #prPartnerActor .mochi-crop { animation:rehearsal-nod .44s ease-in-out; }
  #chatPhoto[data-phase="waiting"] .mochi-message i { animation:rehearsal-wait 1.2s ease-in-out 4; }
  #chatPhoto[data-phase="waiting"] .mochi-message i:nth-child(2) { animation-delay:.16s; }
  #chatPhoto[data-phase="waiting"] .mochi-message i:nth-child(3) { animation-delay:.32s; }
  #prConversation .pr-message { animation:pr-arrive .18s ease-out; }
}
@keyframes pr-arrive { from { opacity:.3; transform:translateY(4px); } to { opacity:1; transform:none; } }
#practiceView:not([hidden]) ~ footer { max-width:1080px; margin:clamp(26px,5vw,56px) auto 0; }
#practiceView:not([hidden]) ~ footer #localRetention { display:none; }
@media(max-width:790px) {
  .pr-workspace { grid-template-columns:minmax(0,1fr); gap:16px; }
  #practiceView { max-width:600px; }
  .pr-intro { margin:20px 0; gap:12px; }
  .pr-title-art { width:56px; height:60px; }
  .pr-title-art i,.pr-title-art b { width:36px; height:28px; border-radius:11px; }
  .pr-title-art b { left:15px; top:23px; }
  .pr-scene-cover { min-height:84px; padding-block:12px; }
  #chatPhoto { width:112px; height:78px; right:12px; bottom:4px; }
  .pr-brief { padding-block:16px; }
  .pr-difficulty { margin-top:16px; padding-bottom:12px; }
  .pr-mode { margin-bottom:4px; }
  .pr-privacy { margin-top:8px; }
  .pr-thread { height:clamp(252px,35svh,340px); padding-top:16px; }
  .pr-message { max-width:94%; }
  .pr-room,.pr-setup { border-radius:21px; }
  .pr-scene-cover { border-radius:20px 20px 0 0; }
  .pr-room-header { padding-block:12px; }
  .pr-room-portrait { width:36px; height:36px; }
  .pr-coaching { margin-top:24px; }
  #practiceView:not([hidden]) ~ footer { max-width:600px; }
}
@media(max-width:440px) {
  body:has(#practiceView:not([hidden])) .wrap { padding-inline:12px; }
  #practiceView { --gutter:16px; }
  .pr-intro { margin:16px 4px; gap:8px; }
  #practiceTitle { font-size:clamp(26px,7.1vw,32px); }
  .pr-intro .lead { margin-top:4px; font-size:13px; line-height:1.55; }
  #prPrompt { font-size:20px; }
  #prScene { font-size:21px; }
  .pr-thread { height:clamp(208px,32svh,288px); }
  .pr-room-header { padding-block:8px; }
  .pr-message { gap:8px; }
  .pr-avatar { width:32px; height:32px; }
  .pr-message p { padding:10px 12px; }
  .pr-room { --room-padding:12px; }
  .pr-compose { padding-bottom:12px; }
}
@media(max-width:359px) {
  #chatPhoto { width:90px; height:72px; right:6px; }
}
@media(prefers-reduced-motion:no-preference) {
  #prSend { transition:transform .12s ease-out,box-shadow .12s ease-out; }
  #prSend:enabled:active { transform:translateY(2px); }
}
@media(forced-colors:active) {
  .pr-levels input:checked + span { outline:2px solid Highlight; outline-offset:-2px; }
  .pr-message p { border:1px solid CanvasText; }
  #prDraft,#prSend { border:1px solid ButtonText; }
  #prDraft:focus-visible { outline:2px solid Highlight; }
  #prSend { color:ButtonText; }
  #prSend:disabled { border-color:GrayText; color:GrayText; }
}

.host-panel-head,.host-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.host-panel {
  width: min(100%, 820px);
  margin: 28px auto 44px;
  padding: 24px clamp(18px, 3vw, 40px) 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.host-panel-head { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.host-panel-head h2 { margin: 0; font: 600 clamp(24px, 3.4vw, 36px)/1.3 var(--serif); }
.host-panel p { margin: 12px 0; line-height: 1.65; overflow-wrap: anywhere; }
#studioSignIn {
  color: var(--studio-accent); border-color: #d6c4c6; border-radius: 6px; padding-inline: 16px;
}
.host-panel h3 { font: 600 24px/1.45 var(--serif); margin: 24px 0 12px; }
.host-panel button { min-height: 44px; }
.host-text {
  font: 500 13px/1.5 var(--sans);
  color: #36594d;
  padding: 6px 0;
  text-underline-offset: 4px;
  text-decoration: underline;
}
.host-outline {
  border: 1px solid #9bafa5;
  border-radius: 4px;
  color: #214c40;
  background: transparent;
  padding: 8px 14px;
  font: 600 14px/1.45 var(--sans);
}
.host-actions { margin-top: 16px; }
.host-actions .primary {
  background: var(--teal);
  color: white;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 15px;
}
#hostOrderList { display: grid; }
#hostOrderList button {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 4px 16px;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}
#hostOrderList strong { grid-column:1; grid-row:1; text-wrap:pretty; font-weight:650; }
#hostOrderList small { grid-column:1; grid-row:2; color:var(--muted); font-size:12px; }
#hostOrderList button > span { grid-column:2; grid-row:1 / 3; color:var(--teal); font-size:13px; font-weight:650; }
@media (max-width:480px) {
  #hostOrderList button { grid-template-columns:1fr; }
  #hostOrderList button > span { grid-column:1; grid-row:3; }
}
#hostOrderList button:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.host-panel button:disabled { opacity: .55; }
#hostStatus:empty { display: none; }
#hostStatus { color: #584727; font-size: 14px; }
#hostOrderInfo { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.host-delete-confirm { padding: 4px 16px; border-inline-start: 3px solid #92513b; background: #f7efeb; }
#hostSnapshotSummary { white-space: pre-wrap; background: #eef3ef; padding: 12px 16px; }
#hostGatewayLink { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
.pr-archived-room { margin:4px 0 12px; }
.pr-archived-thread { display:grid; gap:18px; height:auto; overflow:visible; }
html[data-commerce="site"] #previewObserverButtons,html[data-commerce="site"] #prReview { display:none; }

:root { --studio-accent: #87333e; scroll-padding-block-start: 8px; }
.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(20px, 4.6vw, 68px); }
.skip:focus { z-index: 11; inset-block-start: 0; inset-inline-start: 8px; }
:is(#practiceTitle, #pageTitle)[tabindex="-1"]:focus { outline: none; }
footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px;
  margin-top: clamp(44px, 7vw, 82px); border-top: 1px solid var(--line);
  padding: 8px 0 max(24px, env(safe-area-inset-bottom));
  color: var(--muted); font: 400 13px/1.6 var(--sans);
}
.footer-brand, #studioHistory { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand { color: var(--ink); font-weight: 650; text-decoration: none; }
#studioHistory { padding-inline: 0; color: var(--studio-accent); font-weight: 650; }
#studioHistory:hover, .footer-brand:hover { text-decoration: underline; text-underline-offset: 4px; }
#localRetention { margin-inline-start: auto; }
@media (max-width: 640px) {
  .wrap { padding-inline: clamp(16px, 4.8vw, 24px); }
  #localRetention { flex-basis: 100%; margin-inline-start: 0; }
}

/* Secondary path to the existing observation journal. */
.observer-records { border:0; margin:12px 0 0; }
.observer-records > summary, .record-back {
  width:fit-content; min-height:40px; display:flex; align-items:center; gap:8px;
  margin-inline-start:auto; padding:5px 12px; border:1px solid var(--line);
  border-radius:999px; background:#fff; color:#51425d; font:650 13px/1.45 var(--sans);
}
.observer-records > summary { list-style:none; }
.observer-records > summary::-webkit-details-marker { display:none; }
.observer-records > summary::after { content:"→"; }
.observer-records[open] > summary::after { content:"↑"; }
.record-back { margin:20px 0 0; }
#mochiLabMount { min-width:0; }
.mochi-stage-loading { min-height:100vh; min-height:100svh; display:grid; align-content:center; justify-items:center; gap:8px; padding:96px 20px 42px; text-align:center; color:var(--muted); }
.mochi-stage-loading p { margin:0; }
.mochi-stage-loading a { display:inline-flex; align-items:center; min-height:44px; color:#68477a; text-underline-offset:4px; }
#mochiLabMount:focus-visible { outline:3px solid #7653a2; outline-offset:3px; }


html[data-observation-guide-open] { overflow:hidden; scrollbar-gutter:stable; }

/* The frame fills the space below the site header. */
main.wrap:has(> #hostPanel[hidden]):has(#observerView:not([hidden]) #mochiLabMount:not([hidden])) {
  width: 100%; max-width: none; padding: 0; margin: 0; display: flex; flex-direction: column;
}
main.wrap:has(#observerView:not([hidden]) #mochiLabMount:not([hidden])) > footer { margin-inline: clamp(18px, 4vw, 50px); }
#observerView { position: relative; }
#observerView:has(#mochiLabMount:not([hidden])) .record-entry {
  position: absolute; z-index: 2; top: calc(60px + clamp(30px, 3.4vw, 55px));
  left: clamp(18px, 3vw, 54px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
#observerView:has(#mochiLabMount:not([hidden])) #observerRecords { order: -1; margin: 0; }
#observerView:has(#mochiLabMount:not([hidden])) #openObserverRecords,
#resumeSavedRecord {
  width: fit-content; min-height: 38px; padding: 4px 10px; gap: 4px;
  border: 0; border-radius: 20px; color: #514753; background: #fffdf5eb;
  font: 650 12px/1.4 var(--sans);
}
#observerView:has(#observerRecords[open]) #resumeSavedRecord { float: left; margin-top: 4px; }
#resumeSavedRecord[slot="saved-record"] {
  margin:0; padding-inline:10px; border:1px solid var(--obs-lilac-line); border-radius:99px;
  color:#614075; background:var(--obs-lilac-surface);
}
#observerView:has(#mochiLabMount[data-settings-open="true"]:not([hidden])) .record-entry { visibility: hidden; }
#observerView:has(#mochiLabMount[data-observation-result="true"]:not([hidden])) .record-entry { display: none; }
@media (max-width: 760px) {
  #observerView:has(#mochiLabMount:not([hidden])) .record-entry { top: 78px; left: max(13px, env(safe-area-inset-left)); }
  #observerView:has(#mochiLabMount:not([hidden])) #openObserverRecords, #resumeSavedRecord { min-height: 44px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  #observerView:has(#mochiLabMount:not([hidden])) .record-entry {
    top: 55px; left: max(12px, env(safe-area-inset-left)); flex-direction: row;
  }
  #observerView:has(#mochiLabMount:not([hidden])) #openObserverRecords, #resumeSavedRecord { min-height: 34px; font-size: 12px; }
}

/* Shared studio spacing keeps both portraits and controls aligned across entry pages. */
#observerView {
  --ink: #25212b;
  --muted: #655f6b;
  --teal: #664398;
  --line: #ded9e4;
  --room-surface: #f3eff8;
  color: var(--ink);
}
body:has(#observerView:not([hidden])) { background: #fbf9fd; }
.observer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 28px;
  margin: clamp(30px, 3.6vw, 52px) 0 clamp(23px, 2.8vw, 39px);
  padding: 0;
  border: 0;
}
.observer-intro { grid-template-areas: "title sample" "lead sample"; }
.observer-intro h1 {
  font: 780 clamp(35px, 4.5vw, 62px)/1.14 var(--sans);
  letter-spacing: -.07em;
}
.observer-intro .lead { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.6; color: var(--muted); }
.observer-intro .sample {
  justify-self: end;
  align-self: end;
  min-height: 44px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 7px 1px;
  background: transparent;
}
.observer-intro .sample[aria-pressed="true"] { color: var(--teal); border-color: var(--teal); }
#observerView .layout {
  gap: clamp(24px, 3vw, 46px) clamp(26px, 4vw, 64px);
}
#observerView .layout { grid-template-columns: minmax(0, 1.47fr) minmax(305px, 1fr); }
#observatory {
  margin: 0;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  color-scheme: light;
}
#observatory .art {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
}
.instrument-imprint {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 13px;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
}
#artScene { font-weight: 650; }
#artMode { color: var(--muted); font-size: 12px; font-weight: 500; }
#artMode.hypothesis { color: #684787; }
#actualHint, #artFallback { background: var(--room-surface); color: var(--ink); padding: 9px 12px; }
#observatory .readouts {
  gap: 18px;
  padding: 15px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
#observatory .route-name { color: var(--muted); margin: 0 0 4px; }
#observatory .readouts > div + div { padding-left: 14px; border-color: var(--line); }
#observatory .readouts strong { font-weight: 550; }
#observatory .line-token { width: 22px; border-color: #7151a0; }
#observatory .line-token::after { background: #7151a0; }
#observatory .line-token.lower { border-color: #89517a; }
#observatory .line-token.lower::after { background: #89517a; }
#observatory .seal-settings {
  padding: 0;
  margin-top: 16px;
  color: var(--ink);
}
#observatory .seal-settings legend { padding: 0; margin: 0 0 8px; color: var(--ink); font-size: 14px; }
#observatory .seal-settings .pair { gap: 18px; }
#observatory .seal-settings label { color: var(--muted); font-size: 13px; }
#observerView .paper {
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  background: transparent;
}
#observerView .settings { border-top: 2px solid var(--ink); padding-top: 17px; }
#observerView .settings .panel-head { margin-bottom: 17px; }
#observerView .settings .panel-head h2 { font-size: clamp(23px, 2vw, 29px); }
#observerView .settings select, #observerView .settings select:not(#scene),
#observatory .seal-settings select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding: 7px 8px;
  margin-top: 4px;
  border: 0;
  border-bottom: 1px solid #c3bdca;
  border-radius: 0;
  background-color: var(--room-surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}
#observatory .seal-settings select { font-weight: 600; }
#observerView .settings #scene {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aaa3b3;
  border-radius: 0;
  padding: 4px 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
}
#observerView .scene-picker label {
  color: var(--muted); font-size: 13px; font-weight: 550;
}
#observerView .scene-prompt { margin: 20px 0 17px; padding: 0; border: 0; }
#observerView .scene-prompt h3 {
  font: 710 clamp(23px, 2.2vw, 32px)/1.42 var(--sans);
  letter-spacing: -.055em;
}
#observerView #recordFields > fieldset { margin-bottom: 18px; }
#observerView #recordFields > .boundaries:first-child { margin-top:0; padding-top:0; border-top:0; }
#observerView .choices { gap: 5px; }
#observerView .choice {
  min-height: 44px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid #d3cdd9;
  border-radius: 10px;
  color: var(--ink);
}
#observerView .choice[aria-pressed="true"] { background: #eae1f8; border: 1px solid #8a69af; color: #493564; }
#observerView .boundaries { margin: 15px 0; }
#observerView .settings details > summary {
  padding: 12px 0;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
}
#observerView .settings .details-body {
  padding: 0 0 14px;
}
#observerView .reading, #observerView .experiment {
  border-top: 1px solid #c9c2d0;
  padding-top: 18px;
}
#observerView .reading .section-label {
  color: var(--teal); font-weight: 650; font-size: 13px; letter-spacing: 0;
}
#observerView .reading-notes .reading-step { border-radius: 0; background: var(--room-surface); padding: 13px; }
#observerView .reading-actions, #practiceView .pr-actions { gap: 8px 18px; }
#observerView .link-action, #practiceView .link-action, #observerView .reading-link {
  min-height: 44px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-size: 14px;
  line-height: 1.5;
}
#observerView .report-panel, #practiceView .report-panel {
  padding: clamp(18px, 2.5vw, 32px) 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  margin-top: clamp(28px, 4vw, 58px);
}
#observerView .report-contents ul { gap: 5px 16px; }
#observerView .report-contents li { padding: 4px 0; border: 0; background: transparent; }
#observerView .report-quote { border-left: 2px solid #8b71aa; border-radius: 0; background: var(--room-surface); }
#observerView .quiet-link, #practiceView .quiet-link { min-height: 44px; font-size: 13px; }
#observerView .primary, #practiceView .primary { min-height: 46px; padding-inline: 17px; border-radius: 10px; }
#practiceView .pr-report-grid section { border-top: 1px solid var(--line); padding: 14px 0; border-radius: 0; background: transparent; }
#practiceView .pr-report-grid section + section { border-color: #aa8cbf; background: transparent; }
@media (max-width: 850px) and (min-width: 701px) {
  #observerView .layout { grid-template-columns: minmax(0,1.2fr) minmax(275px,1fr); }
  #observerView .layout { column-gap: 20px; }
}
@media (max-width: 700px) {
  .observer-intro { margin: 22px 0 17px; gap: 7px; }
  .observer-intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lead" "sample"; }
  .observer-intro h1 { font-size: clamp(30px, 7.9vw, 48px); line-height: 1.18; }
  .observer-intro .sample { justify-self: start; font-size: 13px; padding: 4px 0; }
  #observerView .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #observatory .readouts { padding-block: 11px; }
  #observatory .seal-settings { margin-top: 12px; }
  #observerView .report-controls { justify-items: start; }
}
@media (max-width: 380px) {
  .observer-intro .lead { font-size: 14px; }
  #observerView .reading-actions, #practiceView .pr-actions { gap: 2px 11px; }
}

/* The role strip sits below the rendered feet, centered on each bear. */
#observatory .art { border-radius: 10px 10px 0 0; background: #d9f1ee; }
.pair-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#portrait { z-index: 2; }
#portrait[hidden], .pair-shot[hidden] { display: none; }
.pair-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px 10% 5px;
  border-radius: 0 0 10px 10px;
  background: #e3f2ef;
  color: #324b48;
  font-size: clamp(12px, 1.25vw, 14px);
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
#pairCaption { color:var(--ink); margin:12px 0 8px; font-size:clamp(15px,2vw,18px); line-height:1.5; font-weight:625; }
.pair-contact { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 6px; }
.pair-contact button { border:1px solid #d3cdd9; border-radius:6px; background:var(--room-surface,#fff); color:#362b43; min-height:44px; padding:4px 12px; font:inherit; font-size:14px; cursor:pointer; }
.pair-contact button[aria-pressed="true"] { border-color:#51376e; color:#fff; background:#51376e; font-weight:650; }
.pair-contact button:focus-visible { outline:3px solid #7247a7; outline-offset:2px; }
#pairArtError { position:absolute; inset:0; display:grid; place-items:center; padding:20px; text-align:center; color:#324b48; font-size:14px; }
#pairArtError[hidden], #pairStage[data-picture="missing"] + .pair-tags { display:none; }

#pairStage[data-mode="hypothetical"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 3px dashed #76598d;
  border-radius: inherit;
  pointer-events: none;
}
#artMode.hypothesis { background: #f1e7f9; color: #543469; padding: 1px 8px; border-radius: 6px; }
#pairRecordTools[hidden], #pairBoth[hidden], #pairProposerField[hidden], .pair-actions button[hidden] { display:none; }
.pair-both { margin-block: 4px 10px; }
.pair-meeting-tools { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 10px; margin-top: 9px; }
.pair-meeting-tools label { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.pair-meeting-tools select { width: 100%; min-width: 0; min-height: 44px; margin: 0; }
.pair-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }
.pair-actions button { padding-inline: 1px; }
#pairBranches[hidden] { display: none; }
#observatory .pair-readout {
  width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent;
  text-align: start; color: inherit; font: inherit; cursor: pointer;
}
#observatory .pair-readout:hover strong, #observatory .pair-readout:focus-visible strong { text-decoration: underline; }
#observatory .pair-readout:enabled .route-name::after { content: " ↗"; }
#observatory .pair-readout:disabled { opacity: 1; cursor: default; }
@media (prefers-reduced-motion: reduce) { #pairReplay { display: none; } }

#observatory .art { border-radius:22px 22px 0 0; }
.pair-tags { border-radius:0 0 22px 22px; background:#e5f5f2; color:#3d514f; }
#observerView .settings {
  border:1px solid var(--line); border-radius:20px;
  background:#fff; padding:clamp(17px,2.35vw,30px);
}
#observerView .settings select, #observerView .settings select:not(#scene),
#observatory .seal-settings select, .pair-meeting-tools select {
  border:1px solid #d9d4df; border-radius:9px; padding-inline:10px; background-color:#fff;
}
#observerView .settings #scene { border-bottom-color:#ccc5d4; color:var(--ink); }
#observerView .choice { border-radius:9px; }
.pair-contact button { border-radius:999px; background:white; }
#observerView .reading-notes .reading-step { border-radius:9px; }
.observer-intro .sample { border:1px solid #d2cbd9; border-radius:999px; padding:8px 16px; }
#observerView .settings select:focus-visible { outline-offset:2px; }
@media(max-width:700px) {
  #observatory { margin-inline:0; }
  #observerView .settings { border-radius:16px; }
  .observer-intro .sample { padding:5px 12px; }
}

.observer-intro { grid-template-areas: "title sample" "lead sample" "concerns concerns"; }
.observer-shortcuts { grid-area: concerns; display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.observer-shortcuts button { min-height:44px; border:1px solid var(--line); border-radius:999px; padding:7px 14px; background:#fff; font:600 14px/1.4 var(--sans); color:var(--ink); }
.observer-shortcuts button[aria-pressed="true"] { background:#e9dff6; color:#4d356c; border-color:#bba6d3; }
#observerView .decision-question { margin:8px 0 5px; font-size:15px; font-weight:600; color:var(--muted); }
#observerView #headline { text-wrap:pretty; overflow-wrap:anywhere; }
.observer-facts { padding:0; border:0; border-bottom:1px solid var(--line); }
.observer-facts summary { min-height:44px; padding-block:11px; font-size:14px; }
.observer-facts ul { padding-inline-start:20px; padding-bottom:12px; }
#observerView #freeExcerpt { margin:16px 0; padding:2px 0 2px 14px; border-inline-start:3px solid #8b71aa; }
#freeExcerpt figcaption { color:var(--muted); font-size:13px; }
#freeExcerpt blockquote { margin:4px 0; font-size:clamp(16px,2vw,19px); line-height:1.55; color:var(--ink); overflow-wrap:anywhere; }
#observerView .report-panel > .report-controls { justify-items:start; margin-top:14px; }
#observerView .report-contents { padding:12px 16px; border-radius:12px; background:var(--room-surface); }
#observerView .report-contents li { font-size:14px; color:var(--ink); }
#observerView .report-contents li + li::before { content:"·"; margin-right:1em; color:#82748a; }
#observerView .sample-context { border-bottom:1px solid var(--line); padding-bottom:14px; }
#observerView .sample-context h3 { font-size:clamp(20px,2.2vw,27px); color:var(--ink); line-height:1.4; }
#observerView .sample-context p { margin:6px 0; }
.decision-sample { margin:20px 0; padding:clamp(14px,2.6vw,30px); border:1px solid var(--line); border-radius:16px; background:#fff; }
.decision-sample section { margin:22px 0 0; }
#observerView .decision-sample h4 { margin:0 0 8px; font-size:16px; color:var(--ink); }
.decision-options, .decision-responses { display:grid; margin:0; gap:10px; }
.decision-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
.decision-options > div, .decision-responses > div { padding:13px 15px; border:1px solid var(--line); border-radius:12px; }
.decision-sample dt { font-weight:700; color:var(--ink); }
.decision-sample dd { margin:5px 0 0; }
.decision-sample dd p, .decision-sample .decision-stop p { margin:4px 0; }
.decision-sample dd .decision-when { font-size:14px; color:var(--muted); }
.decision-sample dd blockquote { margin:8px 0 0; padding-left:10px; border-left:2px solid #c4acd9; color:#513969; }
.decision-sample .decision-stop { border-top:1px solid var(--line); padding:15px 0 0; }
#observerView .sample-limit { margin:16px 0; color:var(--muted); }
@media (max-width:700px) {
  .observer-intro { grid-template-areas:"title" "lead" "concerns" "sample"; }
  .observer-shortcuts { gap:5px; margin-top:2px; }
  .observer-shortcuts button { font-size:13px; padding-inline:10px; }
  .decision-options { grid-template-columns:minmax(0,1fr); }
}

#observerView .record-quick-read,
#observerView .record-edit-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  font-size: 14px;
  text-underline-offset: .22em;
}
#observerView .record-quick-read { font-weight: 650; }
#observerView .reading-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
}
#observerView .reading-heading .section-label { margin: 0; }
#recordForm { scroll-margin-top: 12px; }

.record-update,.device-record { margin:18px 0; padding:14px 0; border-top:1px solid var(--line); }
.record-update h3,.record-delta h4 { margin:0 0 8px; font-size:16px; line-height:1.45; }
.record-news-actions,.device-record > div { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.record-news-actions button,.device-record button { padding:8px 12px; min-height:44px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font:650 14px/1.4 var(--sans); }
.record-news-actions a,#deleteDeviceRecord { font-size:13px; color:var(--muted); }
#deleteDeviceRecord { border-color:transparent; text-decoration:underline; }
.device-record p,.record-delta p { margin:0 0 8px; font-size:13px; line-height:1.5; color:var(--muted); }
#deviceRecordStatus:empty { display:none; }
#deviceRecordStatus { margin:6px 0 0; }
.record-delta { margin-top:14px; padding:14px; background:#f6f1f8; border-radius:12px; }
.record-delta dl,.record-delta dd { margin:0; }
.record-delta dl > div { display:grid; grid-template-columns:5rem 1fr; gap:6px; align-items:baseline; padding-block:2px; }
.record-delta dt { font-size:12px; font-weight:700; }
.record-delta dd { font-size:14px; line-height:1.5; }

#recordChangedFacts { white-space:pre-line; }

.mz-paid-opening {
  --mz-ink:#382440; --mz-accent:#6c4489; --mz-line:#e8ddec;
  box-sizing:border-box; max-width:100%; margin:clamp(24px,4vw,44px) 0; padding:clamp(20px,3.5vw,34px);
  border:1px solid var(--mz-line); border-radius:20px; background:#fff; color:var(--mz-ink); text-align:left;
}
.obs-hud .mz-paid-opening {--mz-accent:#893d66;--mz-line:#ebd7e1}
.mz-paid-opening header {display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.mz-paid-opening header h2 {margin:0;font:700 clamp(20px,3vw,26px)/1.4 var(--sans,system-ui);letter-spacing:-.035em;color:var(--mz-ink)}
.mz-paid-opening header strong {flex:none;font-size:16px;color:var(--mz-accent);font-variant-numeric:tabular-nums}
.mz-paid-opening .mz-excerpt {margin:18px 0 0;color:#49394f;font-size:16px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere;word-break:keep-all;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.mz-excerpt-fade {width:min(100%,34rem);height:43px;overflow:hidden;display:grid;align-content:center;gap:5px;
  mask-image:linear-gradient(to bottom,#000,transparent);pointer-events:none}
.mz-excerpt-fade span {display:block;overflow:hidden;white-space:nowrap;color:#74667b;font-size:15px;line-height:1.5;filter:blur(.9px)}
.mz-excerpt-fade i {display:block;width:82%;height:5px;border-radius:5px;background:#c4b6cb;filter:blur(1.1px)}
.mz-paid-opening .mz-unlock-note {margin:12px 0;color:#57475d;font-size:14px;line-height:1.6;word-break:keep-all}
.mz-paid-actions {display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.mz-paid-opening .mz-purchase {min-height:44px;border:0;border-radius:12px;padding:10px 18px;background:var(--mz-accent);color:white;font:inherit;font-weight:700;cursor:pointer}
.mz-paid-opening a.mz-purchase {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
#prPaidPreview .mz-tier-compare {margin:16px 0 0}
#prPaidPreview .mz-paid-actions {margin-top:16px}
#hudPaidPreview h2,#prPaidTitle,#prOptionsTitle {word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
.mz-paid-opening small {display:block;color:#67596d;margin-top:6px}
.mz-inline-opening {border:0;margin:0;padding:0}
.mz-inline-opening .mz-excerpt {font-size:15px}
#prLockedLead {display:block;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1.7;font-weight:600}
#prOptionsQuote[hidden] {display:none}
.pr-gated-replies {margin:16px 0;padding:16px 18px 12px;border-radius:14px;background:#f7f3fa}
.pr-gated-reveal {display:grid;align-items:center;min-height:56px}
.pr-locked-fade,.pr-gate-caption {grid-area:1/1}
.pr-locked-fade {display:grid;gap:9px;width:100%;opacity:.62;pointer-events:none;
  mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.55) 52%,transparent 100%)}
.pr-gate-caption {position:relative;justify-self:center;display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:20px;
  background:#fff;color:#5e367c;box-shadow:0 1px 5px #43205212;font:650 14px/1.5 var(--sans,system-ui)}
.pr-gate-caption .pr-lock-icon {order:0;margin:2px 0 0}
#prLockedOptions .mz-paid-actions > .mz-purchase {box-sizing:border-box;width:100%;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.pr-excerpt-number {display:block;margin:0 3px 3px;font:600 12px/1.5 var(--sans,system-ui);color:#63566f}
.pr-locked-fade i {display:block;width:92%;height:8px;border-radius:3px;
  background:linear-gradient(90deg,#b9a6c6 0 13%,transparent 13% 15%,#b9a6c6 15% 36%,transparent 36% 38%,#b9a6c6 38% 62%,transparent 62% 64%,#b9a6c6 64% 82%,transparent 82% 84%,#b9a6c6 84%);
  filter:blur(1.6px)}
.pr-locked-fade i:nth-child(2) {width:76%;filter:blur(2px)}
.pr-locked-fade i:last-child {width:59%;filter:blur(3px)}
.mz-paid-opening :focus-visible {outline:3px solid var(--mz-accent);outline-offset:3px}
.pr-lock-icon {order:-1;position:relative;display:inline-block;box-sizing:border-box;width:12px;height:10px;margin:3px 4px 0 1px;flex:none;border:1.5px solid currentColor;border-radius:2px}
.pr-lock-icon::before {content:'';position:absolute;bottom:100%;left:1.5px;width:6px;height:6px;box-sizing:border-box;border:1.5px solid currentColor;border-bottom:0;border-radius:5px 5px 0 0}
.mz-paid-opening[hidden],.mz-paid-opening [hidden] {display:none!important}
@media (max-width:480px){.mz-paid-actions{align-items:stretch;flex-direction:column;gap:2px}}
@media (forced-colors:active){.mz-paid-opening .mz-purchase{border:1px solid ButtonText}}
.pr-alternative-tone {display:block;margin-bottom:5px;color:#6a497c;font-size:12px;font-weight:700}
.mz-tier-compare { margin:12px 0 20px; border-block:1px solid var(--mz-line); }
.mz-tier-compare > summary { display:list-item; min-height:44px; padding:12px 2px; box-sizing:border-box; cursor:pointer; color:var(--mz-accent); font:650 14px/1.5 var(--sans,system-ui); }
.mz-tier-compare > div { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:0 2px 18px; }
.mz-tier-compare section { min-width:0; }
.mz-tier-compare section + section { border-inline-start:1px solid var(--mz-line); padding-inline-start:20px; }
.mz-tier-compare h3 { margin:0 0 8px; color:var(--mz-ink); font:700 15px/1.5 var(--sans,system-ui); }
.mz-tier-compare section + section h3 {color:var(--mz-accent)}
.mz-tier-compare ul { margin:0; padding-inline-start:1em; list-style:disc; }
.mz-tier-compare li { color:#514653; font:400 14px/1.65 var(--sans,system-ui); word-break:keep-all; overflow-wrap:anywhere; }
.mz-tier-compare li + li { margin-top:6px; }
@media(max-width:440px) {
  .mz-tier-compare > div { grid-template-columns:1fr; gap:14px; }
  .mz-tier-compare section + section { padding:12px 0 0; border-inline-start:0; border-top:1px solid var(--mz-line); }
}
.pr-options-body .pr-option-context {margin:0 0 14px;line-height:1.6;color:#5e5067;font-size:14px;overflow-wrap:anywhere}

/* A commerce view owns the frame until the visitor closes it. The studio
   stays mounted so its chosen conditions and conversation can be restored. */
.reader-data-figure { font-variant-numeric:tabular-nums; }
.reader-data-figure .reader-figure-cases { display:grid; grid-template-columns:max-content 1fr; gap:16px 14px; margin:0 0 var(--reader-group-gap); padding:20px 16px; border-radius:14px; background:var(--reader-wash); }
.reader-figure-cases dt { color:var(--reader-accent); font-weight:750; }
.reader-figure-cases dd { margin:0; color:var(--reader-body); }
.reader-figure-metric { padding:var(--reader-group-gap) 0 4px; }
.reader-figure-metric + .reader-figure-metric { margin-top:20px; border-top:1px solid var(--reader-line); }
.reader-data-figure h5 { color:var(--reader-ink); margin:0 0 16px; font-size:1rem; line-height:1.5; display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.reader-figure-total { color:var(--reader-accent); font-size:.83rem; white-space:nowrap; }
.reader-figure-bar { min-height:26px; display:grid; align-items:center; grid-template-columns:4.4em minmax(0,1fr) minmax(4em,max-content); gap:10px; font-size:.86rem; color:var(--reader-body); }
.reader-figure-bar strong { grid-column:3; text-align:right; color:var(--reader-ink); }
.reader-figure-bar + .reader-figure-bar { margin-block-start:8px; }
.reader-bar-track { height:9px; overflow:hidden; border-radius:4px; background:var(--reader-tint); }
.reader-bar-track i { display:block; height:100%; border-radius:inherit; background:var(--reader-accent); }
.reader-figure-bar.other .reader-bar-track i { background:repeating-linear-gradient(120deg,var(--reader-accent) 0 2px,transparent 2px 5px); }
.reader-data-figure .reader-turn-strip { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:clamp(2px,.85vw,7px); margin:0; padding:0; list-style:none; }
.reader-turn-strip li { text-align:center; padding:6px 0; border-radius:6px; font-weight:700; font-size:.81rem; line-height:1.3; }
.reader-turn-strip li.met { background:var(--reader-accent); color:white; border:1px solid transparent; }
.reader-turn-strip li.revisit { color:var(--reader-accent); border:1px dashed currentColor; background:var(--reader-wash); }
.reader-data-figure .reader-figure-jump { display:inline-flex; align-items:center; margin-top:20px; min-height:44px; padding:8px 16px; color:var(--reader-accent); border:1px solid var(--reader-line); border-radius:12px; background:var(--reader-wash); font:inherit; font-weight:700; cursor:pointer; }
.reader-figure-jump:focus-visible, .pr-archived-thread [id^=hostOwnTurn]:focus-visible { outline:2px solid var(--reader-accent); outline-offset:3px; }
.reader-steps-figure { margin:0; padding-inline-start:1.6rem; color:var(--reader-accent); }
.reader-steps-figure li + li { padding-top:14px; }
#hostPanel:not([hidden]) ~ :is(#observerView,#practiceView,footer),
.host-skip, body:has(#hostPanel:not([hidden])) #skipLink { display:none; }
body:has(#hostPanel:not([hidden])) .host-skip { display:block; }
#hostClose { display:inline-flex; align-items:center; gap:4px; padding:4px 12px; border-radius:99px; text-decoration:none; color:#4e4352; background:#fff; border:1px solid #ded7df; }
#hostClose svg, #hostReadChat svg, .reader-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; }
#hostClose svg, #hostReadChat svg { width:16px; height:16px; }

body:has(#hostPanel[data-reader]) { background:#faf7fa; }
body:has(#hostPanel[data-reader="practice"]) { background:#f7f5fb; }
body main.wrap:has(> #hostPanel[data-reader]) { display:block; margin:0 auto; width:min(100%,960px); padding:0 clamp(16px,4vw,44px) 48px; }
body main.wrap #hostPanel[data-reader] {
  --reader-ink:#352b38; --reader-body:#514753; --reader-muted:#675b68;
  --reader-accent:#93375b; --reader-tint:#f9e8ef; --reader-wash:#fff9fb;
  --reader-line:#e9e0e6; --reader-hero:#f7e7ed;
  --reader-section-gap:clamp(32px,5vw,52px); --reader-group-gap:clamp(24px,2.8vw,32px);
  width:100%; max-width:none; margin:0; padding:0; color:var(--reader-ink); background:transparent; border:0; border-radius:0;
}
body main.wrap #hostPanel[data-reader="practice"] {
  --reader-accent:#684395; --reader-tint:#eee5f7; --reader-wash:#fbf8fe; --reader-hero:#ede4f7; --reader-line:#e7dfed;
}
[data-reader] .host-panel-head { border:0; flex-wrap:nowrap; gap:12px; padding:12px 0; }
[data-reader] #hostTitle { color:var(--reader-muted); font:650 clamp(13px,1.5vw,15px)/1.5 var(--sans); letter-spacing:0; }
[data-reader] #hostClose { flex:none; }
.host-reading-heading {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(96px,30%); align-items:center; gap:12px;
  min-height:clamp(146px,21vw,200px); overflow:hidden; isolation:isolate;
  background:var(--reader-hero); border-radius:24px;
}
.reader-hero-copy { min-width:0; padding:clamp(20px,4vw,40px) 0 clamp(20px,4vw,40px) clamp(20px,4vw,40px); }
#hostResultTitle { margin:0; font:760 clamp(24px,4vw,38px)/1.3 var(--sans); letter-spacing:-.045em; text-wrap:balance; }
#hostResultTitle:focus, [data-reader] #hostTitle:focus { outline:none; }
#hostReportNote { margin:10px 0 0; color:var(--reader-body); font-size:clamp(13px,1.6vw,15px); line-height:1.65; }
.reader-hero-art { position:relative; align-self:end; height:clamp(92px,15vw,148px); margin-right:clamp(4px,1.5vw,20px); }
.reader-hero-art i { position:absolute; bottom:-1px; left:0; width:59%; height:100%; }
.reader-hero-art i + i { left:auto; right:0; height:88%; }
#hostReadChat { display:inline-flex; align-items:center; justify-content:center; gap:6px; margin-top:16px; min-height:44px; padding:8px 14px; border:1px solid #cbb8dc; background:#fff; color:var(--reader-accent); }

#hostSections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--reader-section-gap) clamp(20px,3.2vw,32px); margin-top:var(--reader-section-gap); }
#hostSections > * { grid-column:1/-1; min-width:0; }
.reader-card {
  padding:clamp(32px,4.5vw,48px) clamp(20px,3.8vw,36px); background:white; border:1px solid var(--reader-line); border-radius:20px;
  box-shadow:0 4px 16px -9px #35213d24; overflow-wrap:anywhere;
}
.reader-title { display:flex; align-items:center; gap:12px; margin:0 0 var(--reader-group-gap); font:720 clamp(18px,2.25vw,23px)/1.4 var(--sans); letter-spacing:-.035em; }
.reader-icon { display:grid; flex:none; place-items:center; width:36px; height:36px; border-radius:12px; color:var(--reader-accent); background:var(--reader-tint); }
.reader-icon svg { width:21px; height:21px; }
.reader-card .reader-text,.reader-field p,.reader-quote blockquote,.reader-case p { margin:0; color:var(--reader-body); white-space:pre-line; font:450 clamp(15px,1.65vw,17px)/1.75 var(--sans); }
.reader-card .reader-text + .reader-text, .reader-field, .reader-quote { margin-top:var(--reader-group-gap); }
.reader-card .reader-lead { margin:0 0 8px; font:680 clamp(20px,2.7vw,28px)/1.45 var(--sans); color:var(--reader-ink); letter-spacing:-.035em; }
.reader-label { display:block; margin-bottom:8px; color:var(--reader-accent); font:680 13px/1.5 var(--sans); }
.reader-detail > :is(.reader-field,.reader-quote) + :is(.reader-field,.reader-quote) {margin-block-start:var(--reader-group-gap)}
.reader-detail .reader-field p,.reader-case p {max-width:62ch;text-wrap:pretty}
.reader-detail .reader-field:first-of-type {margin-top:0}
#hostSections > .reader-simulation {margin:0;padding:4px clamp(18px,3vw,30px);border:1px solid var(--reader-line);border-radius:16px;background:var(--reader-wash)}
.reader-simulation > summary {padding:14px 0;color:var(--reader-accent);font-weight:680;line-height:1.55}
#hostSections > .reader-simulation[open] {padding-bottom:22px}
.reader-case-match {display:block;margin-bottom:7px;color:var(--reader-accent);font:680 13px/1.5 var(--sans)}
.reader-case .reader-exchange {display:grid;gap:16px;margin-top:var(--reader-group-gap)}
.reader-case .reader-exchange .reader-quote {margin:0;padding:16px 14px;background:white;border-radius:12px}
.reader-case .reader-exchange .reader-mine {margin-left:12px;background:var(--reader-tint)}
.reader-case .reader-exchange .reader-partner {margin-right:12px}
.reader-detail .reader-partner {background:var(--reader-wash)}
.reader-detail .reader-mine {margin-left:clamp(12px,3vw,26px);background:var(--reader-tint)}
.reader-simulation > .reader-text {margin:18px 0 0;color:var(--reader-muted);line-height:1.65}
.reader-quote,.reader-said { padding:20px 18px; background:var(--reader-wash); border-radius:4px 16px 16px; }
.reader-said { margin:0 0 var(--reader-group-gap); color:var(--reader-ink); font:660 clamp(17px,2vw,20px)/1.6 var(--sans); white-space:pre-wrap; }
.reader-basis { display:block; margin-top:12px; color:var(--reader-muted); line-height:1.55; }
.reader-quote blockquote { color:var(--reader-ink); font-weight:550; }
.reader-opening .reader-quote { display:grid; grid-template-columns:minmax(0,auto) 1fr; align-items:baseline; gap:12px; padding:8px 0; margin:0; background:transparent; }
.reader-opening .reader-quote + .reader-text { border-top:1px solid var(--reader-line); padding-top:16px; margin-top:12px; }
.reader-list { margin:12px 0; padding-inline-start:21px; color:var(--reader-body); font-size:15px; line-height:1.7; }
.reader-list li + li { margin-top:8px; }
.reader-list li::marker { color:var(--reader-accent); }
.reader-card .reader-fold { padding:0; margin:16px 0 0; border:0; border-top:1px solid var(--reader-line); border-radius:0; background:transparent; }
.reader-fold summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:12px 0; color:var(--reader-accent); list-style:none; font:650 14px/1.5 var(--sans); }
.reader-fold summary::-webkit-details-marker { display:none; }
.reader-fold summary::after { content:""; flex:none; width:8px; height:8px; margin:0 3px 3px; border:solid currentColor; border-width:0 1.6px 1.6px 0; transform:rotate(45deg); }
.reader-fold[open] > summary::after { transform:rotate(225deg); margin-bottom:-3px; }
.reader-fold h5,.reader-case h5 { margin:16px 0 4px; color:var(--reader-ink); font:670 16px/1.55 var(--sans); }
.reader-source { display:inline-flex; align-items:center; min-height:44px; color:var(--reader-accent); text-underline-offset:4px; font-size:14px; font-weight:650; }
.reader-card .reader-metric { margin:0; }
.reader-metric > summary { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; padding-block:16px; }
.reader-metric-name { color:var(--reader-ink); font:650 clamp(16px,2vw,18px)/1.5 var(--sans); }
.reader-metric-name small { display:block; padding-top:3px; color:var(--reader-muted); font:450 13px/1.5 var(--sans); }
.reader-value { color:var(--reader-accent); font:710 clamp(21px,3vw,27px)/1.2 var(--sans); font-variant-numeric:tabular-nums; }
.reader-metric-body { padding:0 0 20px; }
.reader-metric-body .reader-field { margin-top:0; }
.reader-metrics { padding-bottom:clamp(8px,1.7vw,16px); }
.reader-cases { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--reader-group-gap) 16px; margin-top:var(--reader-group-gap); }
.reader-case { padding:20px; background:var(--reader-wash); border:1px solid var(--reader-line); border-radius:14px; }
.reader-case h5 { margin:0; }
.reader-measures { display:flex; flex-wrap:wrap; gap:4px 10px; margin:12px 0 0; padding:0; list-style:none; color:var(--reader-muted); font:550 13px/1.6 var(--sans); }
.reader-case .reader-field { padding-top:12px; border-top:1px solid var(--reader-line); }
.reader-scores { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:20px 0 16px; }
.reader-scores > div { padding:12px 8px; border-radius:12px; text-align:center; background:var(--reader-wash); }
.reader-scores > div:last-child { background:var(--reader-tint); }
.reader-scores dt { color:var(--reader-body); font:550 13px/1.5 var(--sans); }
.reader-scores dd { margin:6px 0 0; color:var(--reader-accent); font:710 clamp(20px,3vw,26px)/1.3 var(--sans); font-variant-numeric:tabular-nums; }
.reader-strength .reader-icon { color:#30684f; background:#e6f3ea; }
.reader-improve .reader-icon { color:#8a5722; background:#fbefdb; }
.reader-moment[open] { padding-bottom:16px; }
.reader-moment .reader-quote { margin:10px 0; }
.host-order-heading { display:none; }
[data-reader] #hostOrderTools { margin-top:32px; padding:clamp(20px,3vw,32px); border:1px solid var(--reader-line); border-radius:20px; background:#fff; }
[data-reader] .host-order-heading { display:flex; align-items:center; gap:8px; margin:0 0 12px; font:680 18px/1.5 var(--sans); }
.host-order-heading svg { width:20px; height:20px; fill:none; stroke:var(--reader-accent); stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; }
[data-reader] #hostOrderTools .host-outline { border-color:var(--reader-line); border-radius:10px; color:var(--reader-accent); }
[data-reader] #hostOrderTools .host-text { color:var(--reader-muted); }
[data-reader] :is(summary,button,a):focus-visible { outline:3px solid var(--reader-accent); outline-offset:3px; }
@media(min-width:760px) {
  #hostSections:has(.reader-strength + .reader-improve) > :is(.reader-strength,.reader-improve) { grid-column:span 1; }
}
@media(max-width:560px) {
  .host-reading-heading { grid-template-columns:minmax(0,1fr) clamp(88px,29vw,136px); gap:8px; min-height:0; padding:20px 12px 0 20px; }
  .reader-hero-copy { display:contents; }
  #hostResultTitle { grid-column:1/-1; grid-row:1; padding-right:8px; }
  #hostReportNote { grid-column:1; grid-row:2; margin:4px 0 12px; }
  #hostReadChat { grid-column:1; grid-row:3; justify-self:start; margin:0 0 16px; }
  .reader-hero-art { grid-column:2; grid-row:2 / span 2; height:clamp(76px,22vw,104px); width:100%; margin:0; }
  .reader-cases { grid-template-columns:1fr; }
  .reader-scores { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reader-opening .reader-quote { display:block; padding-block:6px; }
  .reader-title { gap:10px; }
}
.reader-tools { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 16px; margin:16px 0 0; }
.reader-tools>a,.reader-tools summary,.reader-export-box button,.reader-export-box a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; font:650 14px/1.5 var(--sans); color:var(--reader-accent); cursor:pointer; }
.reader-tools>a { text-decoration:none; padding:4px; }
.reader-tools details { margin-inline-start:auto; min-width:0; max-width:100%; }
.reader-tools summary { list-style:none; border-radius:12px; padding:8px 16px; border:1px solid var(--reader-line); background:#fff; }
.reader-tools summary::-webkit-details-marker { display:none; }
.reader-tools svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; width:18px; height:18px; }
.reader-export-box { max-width:360px; margin-top:8px; padding:16px; border:1px solid var(--reader-line); border-radius:15px; background:#fff; }
.reader-export-box button { justify-content:space-between; width:100%; padding:9px 12px; background:var(--reader-wash); border:1px solid var(--reader-line); border-radius:10px; }
.reader-export-box button+button {margin-top:8px}
.reader-export-box button span {font-size:12px; color:var(--reader-muted)}
.reader-export-box button:disabled {opacity:.65;cursor:wait}
.reader-replay > .reader-quote { margin-block:16px 0; padding:12px 16px; }
.pr-replay-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(20px,3vw,32px); margin-top:var(--reader-group-gap); }
.pr-replay-grid > section { min-width:0; }
.pr-replay-grid h5 { margin:0 0 14px; font:700 17px/1.5 var(--sans); color:var(--reader-ink); }
.pr-replay-grid .reader-quote { margin:12px 0 0; padding:14px 16px; }
.pr-replay-original .reader-mine { background:var(--reader-tint); }
.pr-replay-simulated { border-inline-start:1px solid var(--reader-line); padding-inline-start:clamp(16px,2.5vw,28px); }
.pr-replay-choices { display:flex; gap:6px; flex-wrap:wrap; }
.pr-replay-choices button,.pr-replay-save { min-height:44px; max-width:100%; padding:9px 14px; border:1px solid var(--reader-line); border-radius:10px; background:#fff; color:var(--reader-accent); font:650 14px/1.45 var(--sans); overflow-wrap:anywhere; cursor:pointer; }
.pr-replay-choices [aria-pressed="true"],.pr-replay-save { color:white; background:var(--reader-accent); border-color:var(--reader-accent); }
.pr-bubble-replay { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin:12px 0 4px; max-width:100%; }
.pr-bubble-replay > span { flex-basis:100%; text-align:end; color:var(--reader-muted); font:600 13px/1.5 var(--sans); }
.pr-bubble-replay button { min-height:44px; max-width:100%; padding:8px 12px; border-radius:10px; border:1px solid var(--reader-line); background:white; color:var(--reader-accent); font:650 14px/1.45 var(--sans); overflow-wrap:anywhere; cursor:pointer; }
.pr-replay-result .reader-field { margin-block-start:16px; }
.pr-replay-save-area { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; margin-top:var(--reader-group-gap); padding-top:20px; border-top:1px solid var(--reader-line); }
.pr-replay-save-area p { max-width:52ch; margin:0; font:480 14px/1.6 var(--sans); color:var(--reader-muted); }
.pr-replay-save-area .pr-line-status { flex-basis:100%; color:var(--reader-accent); }
.pr-line-status:empty { display:none; }
@media(max-width:680px) {
  .pr-replay-grid { grid-template-columns:minmax(0,1fr); }
  .pr-replay-simulated { padding-inline-start:0; border-inline-start:0; border-block-start:1px solid var(--reader-line); padding-block-start:20px; }
}
@media(forced-colors:active) {
  .pr-replay-choices [aria-pressed="true"] { outline:2px solid Highlight; outline-offset:-4px; }
}
.reader-export-box p {margin:11px 2px 0; font:400 13px/1.6 var(--sans); color:var(--reader-muted); word-break:keep-all;}
.reader-export-box p:empty,.reader-tools [hidden] {display:none!important}
.reader-tools :focus-visible {outline:2px solid var(--reader-accent);outline-offset:3px}
@media(max-width:480px){.reader-tools {gap:4px 8px}.reader-tools details[open]{flex-basis:100%}.reader-export-box{max-width:none}}

/* The top-left tip is the anchor used both for reading text and drawing ink. */
[data-ai-arrow] {
  display: inline-block;
  position: relative;
  width: 22px;
  height: 25px;
  pointer-events: none;
  color: #86448b;
  filter: drop-shadow(1px 0 0 white) drop-shadow(-1px 0 0 white)
    drop-shadow(0 1px 0 white) drop-shadow(0 -1px 0 white) drop-shadow(0 2px 2px #33253e40);
}
[data-ai-arrow="context"] { color: #18716d; }
[data-ai-arrow="reply"] { color: #a14e38; }
[data-ai-arrow]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(0 0, 17% 90%, 42% 67%, 66% 100%, 86% 90%, 63% 57%, 100% 52%);
}
[data-ai-scan-ring] {
  position: absolute;
  left: 15px;
  top: 0;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
@media (forced-colors: active) {
  [data-ai-arrow] { forced-color-adjust: none; color: Highlight; filter: drop-shadow(0 1px 1px CanvasText); }
}

[data-tone-layer] { position:absolute; inset:0; z-index:9; pointer-events:none; overflow:hidden; isolation:isolate; }
[data-tone-stroke] { position:absolute; border-radius:3px 2px 4px 2px; background:#ffcf5180; mix-blend-mode:multiply; transform-origin:left; }
mark[data-tone-mark] { background:transparent; color:inherit; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
p[data-tone-lit] mark[data-tone-painted] { color:#392a27; background:linear-gradient(transparent 20%,#ffe29b 20% 91%,transparent 91%); }
mark[data-tone-selected] { text-decoration:underline; text-decoration-color:#a86d23; text-underline-offset:3px; }

/* Anchor the tip of the arrow on the words each cursor reads. */
[data-tone-cursor] {
  position:absolute; top:0; left:0; width:0; height:0; margin:0; padding:0;
  color:#86448b; pointer-events:none; font-style:normal;
}
[data-tone-cursor="context"] { color:#18716d; }
[data-tone-cursor="reply"] { color:#a14e38; --cursor-heading:-88deg; }
[data-tone-orb] { z-index:1; }
[data-tone-cursor] > em:not([hidden]) {
  position:absolute; height:1px; top:0; left:0; background:currentColor; opacity:.43; transform-origin:0 0;
}
[data-tone-cursor] > [data-ai-arrow] {
  position:absolute; top:0; left:0;
  transform-origin:0 0; transform:rotate(var(--cursor-heading,0deg)) scale(var(--cursor-size,1));
}
[data-tone-cursor] b {
  position:absolute; right:0; top:-1px; width:28px; height:2px; border-radius:2px;
  background:linear-gradient(90deg,transparent,currentColor); opacity:.48;
  transform-origin:right center; transform:scaleX(0);
}
[data-tone-cursor] span {
  position:absolute; left:var(--tone-label-x,12px); top:var(--tone-label-y,-24px);
  display:block; width:max-content; padding:2px 6px; border:1px solid #ffffffdb; border-radius:4px;
  font:650 11px/1.45 system-ui,sans-serif; white-space:nowrap; color:white;
  background:#773f80; box-shadow:0 1px 3px #37223f33;
}
[data-tone-cursor="context"] span { background:#18716d; }
[data-tone-cursor="reply"] span { background:#a14e38; }
[data-tone-stage="aim"] [data-tone-orb]::before {
  content:""; position:absolute; top:-8px; left:-8px; width:16px; height:16px; box-sizing:border-box;
  border:1.5px solid #914f86; border-radius:50%;
}
:is([data-tone-stage="ink"],[data-tone-stage="turn"]) [data-tone-orb] { --cursor-size:.78; }
[data-tone-transfer] {
  position:absolute; top:0; left:0; z-index:2; pointer-events:none;
  box-sizing:border-box; max-width:min(18ch,38vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  padding:3px 9px; border:1px solid #ffffffdc; border-radius:999px;
  background:#633968; color:white; box-shadow:0 2px 5px #37223f32;
  font:650 12px/1.5 system-ui,sans-serif;
}
@media (prefers-reduced-motion:no-preference) {
  [data-tone-cursor] { transition:opacity 100ms; }
  [data-tone-cursor] > [data-ai-arrow] { transition:transform 160ms; }
}
@media (prefers-reduced-motion:reduce) { [data-tone-cursor] b { display:none; } }

[data-tone-collection] {
  grid-column:1/-1; display:flex; align-items:center; gap:7px; min-width:0;
  min-height:30px; padding-top:5px; border-top:1px solid #eadfea;
}
[data-tone-collection]:empty { display:none; }
[data-tone-dock] {
  flex:none; display:inline-flex; align-items:center; gap:5px; white-space:nowrap;
  font:650 12px/1.4 system-ui,sans-serif; color:#63436b; transform-origin:10px 50%;
}
[data-tone-dock]::before {
  content:""; width:12px; height:8px; border:1.5px solid #925f91;
  border-radius:2px; box-shadow:-2px 2px 0 -1px #fff8fc,-3px 3px 0 -1px #925f91;
}
[data-tone-collection] ul {
  flex:1; min-width:0; display:flex; gap:6px; align-items:center;
  box-sizing:border-box; height:36px; margin:0; padding:2px; overflow:auto hidden; overscroll-behavior-x:contain; list-style:none;
  scrollbar-width:thin; scrollbar-color:#d0bace transparent;
}
[data-tone-collection] li { flex:none; max-width:100%; }
[data-tone-collection] li button {
  display:block; max-width:100%; min-height:27px; padding:2px 8px;
  border:1px solid #decbdc; border-radius:9px; background:#fffafc; color:#604263;
  font:600 12px/1.5 system-ui,sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
[data-tone-collection] li button:disabled { opacity:1; }
[data-tone-collection] li button[aria-pressed="true"] { border-color:#ac87aa; background:#f3eaf4; }
[data-tone-collection] li button:focus-visible { outline:2px solid #744875; outline-offset:0; }
[data-tone-complete] ul { height:auto; max-height:min(16dvh,106px); flex-wrap:wrap; overflow:hidden auto; }
[data-tone-complete] li button { white-space:normal; text-align:start; overflow-wrap:anywhere; }
#prTourPanel { flex-wrap:wrap; row-gap:6px; }
#prTourPanel>[role="status"] { flex:1; min-width:0; }
#prToneCollection { flex:0 0 100%; }
