/* Screen 4, your rules. Close under "Sound like you, anywhere." on the same ground. The
   head stands on the right, from the page's middle; the Start from row and the card start
   at the indent of the title above, and the small lines sit under the card's right
   column. A great lilac disc stands behind the card's right side. Which version of each
   slot shows, by step and by pick, is css/pages/dictation/yourOwn.picks.css (generated). */
.yo { padding: calc(40 * var(--u)) 0 calc(150 * var(--u)); }
.yo-board { position: relative; z-index: 0; max-width: 1440px; margin: 0 auto; }
.yo-head { padding: 0 var(--m) 0 calc(720 * var(--u)); }
.yo-mid { max-width: 20em; }
.yo-play { margin: calc(56 * var(--u)) 0 0 calc(var(--m) + 72 * var(--u)); }
#h-own:focus:not(:focus-visible) { outline: none; }

/* Start from: the app's label, then three of its examples, drawn as the pills above
   (css/pages/dictation/yourVoice.css): lilac, every ring dashed, the picked one lifted in
   Iris, all standing on one ink ground that starts a little before the first. */
.yo-start { display: flex; align-items: center; gap: max(14px, calc(20 * var(--u))); }
.yo-start-k { font-size: 15px; line-height: 1.2; font-weight: 700; color: var(--plum); }
.yo-start-pills { position: relative; display: flex; align-items: flex-end; gap: max(8px, calc(12 * var(--u))); padding-right: max(8px, calc(12 * var(--u))); }
.yo-start-pills::after { content: ""; position: absolute; left: calc(-12 * var(--u)); right: 0; bottom: -3px; height: 3px; border-radius: 2px; background: var(--ink); }
/* Pressed by the stage (the act's own press): a shade deeper for a moment. */
.yo-pill.is-pressed { box-shadow: inset 0 0 0 99px rgb(61 50 102 / 0.14); }

/* The card, on its disc: centred across the card's right third, and low enough that its
   rim passes under the head, not through it (it runs on under the small lines, and off
   the window's right edge at 1440). The tag stands over the card's top right corner. */
.yo-stage { position: relative; width: calc(1040 * var(--u)); margin-top: calc(36 * var(--u)); }
.yo-stage::before { content: ""; position: absolute; z-index: -1; left: calc(1040 * var(--u) * 5 / 6); top: calc(100% - 200 * var(--u)); width: calc(1180 * var(--u)); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--lilac); }
.yo-tags { position: absolute; right: 0; bottom: 100%; display: grid; justify-items: end; margin-bottom: 10px; }
.yo-tags > * { grid-area: 1 / 1; }
.yo-tag { color: var(--plum); }
.yo-card {
  position: relative; display: grid; grid-template-columns: calc(440 * var(--u)) minmax(0, 1fr); column-gap: calc(64 * var(--u));
  padding: max(26px, calc(40 * var(--u))); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper);
}

/* ---------------------------------------------------------------- the editor */
/* The app's New profile window: its title, the name, the box of your words, How Murmur
   asks and Improve, Improve's own box, and Save at its foot. Every version of a slot
   stands in one grid cell, so the tallest holds the room. */
.yo-editor { display: flex; flex-direction: column; min-width: 0; }
.yo-title { color: var(--plum); }
.yo-name { display: grid; margin-top: 8px; font-size: var(--fs-beat); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.yo-name > * { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; }
.yo-name > [data-v="ph"] { color: var(--muted); }
/* The cloud mark: the site's dashed ring. */
.yo-cloud { flex: none; width: max(12px, calc(14 * var(--u))); aspect-ratio: 1; border: 1.5px dashed var(--ink); border-radius: 50%; }
.yo-k { margin-top: calc(22 * var(--u)); font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--plum); }

/* The box of your words: five lines tall, two faces. In front, your words on haze, the
   complaint on a line of its own in Iris once Improve has joined it. Turned over (while
   Murmur writes it out, or with How Murmur asks), the back: the write-out on lilac. */
.yo-field {
  --pad: max(12px, calc(16 * var(--u)));
  position: relative; z-index: 1; display: grid; height: calc(5 * 17px * 1.5 + 2 * var(--pad)); margin-top: 10px; perspective: 900px;
}
.yo-face { grid-area: 1 / 1; display: grid; min-height: 0; padding: var(--pad); border-radius: 14px; backface-visibility: hidden; }
.yo-face > * { grid-area: 1 / 1; min-width: 0; }
.yo-front { background: var(--haze); font-size: 17px; line-height: 1.5; color: var(--ink); }
.yo-back { rotate: y -180deg; visibility: hidden; }
.yo[data-face="back"] .yo-front, .yo:has(.yo-peek:checked) .yo-front { rotate: y 180deg; visibility: hidden; }
.yo[data-face="back"] .yo-back, .yo:has(.yo-peek:checked) .yo-back { rotate: y 0deg; visibility: visible; }
.yo-new { display: block; width: fit-content; max-width: 100%; padding: 0 4px; margin-left: -4px; border-radius: 4px; background: var(--iris); }
/* How Murmur asks, captured: the instruction itself, scrolling inside the back, what
   Improve changed in it marked in Iris. */
.yo-how-text { overflow-y: auto; font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-line; }
.yo-how-text mark { padding: 0 2px; border-radius: 4px; background: var(--iris); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* How Murmur asks (an outline pill) and Improve (lilac, press 1's socket at its end). */
.yo-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: max(10px, calc(14 * var(--u))); }
.yo-how { display: inline-grid; place-items: center; height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 15px; line-height: 1; font-weight: 700; color: var(--ink); white-space: nowrap; }
.yo-how > * { grid-area: 1 / 1; }
label.yo-how { cursor: pointer; }
label.yo-how:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.yo-improve { display: inline-flex; align-items: center; gap: 10px; height: max(44px, calc(var(--dot) + 14px)); padding: 0 5px 0 18px; border: 0; border-radius: 999px; background: var(--lilac); font-size: 15px; line-height: 1; font-weight: 700; color: var(--ink); white-space: nowrap; }
.yo-improve .dict-sock { width: calc(var(--dot) + 6px); }
button.yo-improve { cursor: pointer; }
button.yo-improve:not([aria-disabled="true"]):hover, .yo-improve.is-pressed { background: var(--iris); }

/* Improve's own box, and in its room (they never show together) the line after it. */
.yo-asks { display: grid; margin-top: 12px; }
.yo-asks > * { grid-area: 1 / 1; }
.yo-ask { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--haze); }
.yo-ask-text { flex: 1; display: grid; font-size: 15px; line-height: 1.4; color: var(--ink); }
.yo-ask-text > * { grid-area: 1 / 1; }
.yo-ask-ph { color: var(--muted); }
.yo-ask:not(.is-said) .yo-ask-c, .yo-ask.is-said .yo-ask-ph, .yo-ask.is-lifted .yo-ask-c, .yo-rest, .yo-ask:not(.is-typing) .caret { visibility: hidden; }
.yo-arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: var(--cream); }
.yo-arrow > * { grid-area: 1 / 1; display: grid; place-items: center; }
.yo-arrow svg { width: 20px; height: 20px; }
.yo-arrow .writing i { background: var(--cream); }
button.yo-arrow { cursor: pointer; }
button.yo-arrow:not([aria-disabled="true"]):hover, .yo-arrow.is-pressed { background: var(--navy); }
.yo-status { align-self: center; font-size: 15px; line-height: 1.4; color: var(--plum); }

/* The foot: Cancel, drawn, and Save, blue, press 2's socket at its end. It stands right
   under the room held for Improve's box, by the words it saves, not at the card's foot. */
.yo-foot { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding-top: max(16px, calc(22 * var(--u))); }
.yo-cancel { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; font-size: 16px; line-height: 1; font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- the panel */
/* The app's You say / {name} types: the take, the three dots, and what the profile
   types, every version in one cell, so the card's height never changes. */
.yo-result { min-width: 0; }
.yo-said { margin-top: 8px; font-size: var(--fs-lead); line-height: 1.45; font-weight: 600; color: var(--ink); }
/* What the checked pick's answer left out: struck with a drawn bar, faded to Muted. The
   bar is the cut's background, drawn on each line's piece of it, so a strike that runs on
   over a line's end strikes both lines (the generated rules give it its full width). */
.yo-cut {
  color: var(--ink);
  background: linear-gradient(var(--muted), var(--muted)) no-repeat 0 58% / 0 2.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.yo-dots { display: flex; gap: 6px; margin-top: max(14px, calc(20 * var(--u))); }
.yo-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.yo-k2 { display: grid; margin-top: max(12px, calc(16 * var(--u))); }
.yo-k2 > * { grid-area: 1 / 1; }
.yo-answers { display: grid; margin-top: 8px; font-size: var(--fs-beat); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); white-space: pre-line; }
.yo-answers > * { grid-area: 1 / 1; }
.yo-answers .writing { margin-right: 6px; vertical-align: 0.2em; }

/* ---------------------------------------------------------------- under the card */
.yo-notes { max-width: 30em; margin: max(20px, calc(28 * var(--u))) var(--m) 0 calc(var(--m) + 72 * var(--u) + 1px + max(26px, calc(40 * var(--u))) + 440 * var(--u) + 64 * var(--u)); }
.yo-small + .yo-small { margin-top: 8px; }
.yo-more { display: flex; flex-wrap: wrap; column-gap: 28px; margin-top: 10px; }
/* Step through it again: a quiet line that is a button. Its room is held while it waits,
   so nothing under it moves when it comes. */
.yo-restart { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.yo-restart[hidden] { display: inline-flex; visibility: hidden; }

@media (max-width: 1023.98px) {
  /* One column: the head, Start from, the tag, the card (the editor, then the panel),
     then the small lines. No disc. */
  .yo { padding: 40px 0 72px; }
  .yo-head { padding: 0 var(--m); }
  .yo-head h2 { max-width: 8em; }
  .yo-play { margin: 28px 0 0; padding: 0 var(--m); }
  /* The pills wrap; each row stands on its own ground: a 3 px Ink line every 62 px (a
     pill, 44, and the room under it), the first under the first row. */
  .yo-start { display: block; }
  .yo-start-pills {
    flex-wrap: wrap; gap: 18px 8px; margin-top: 4px; padding: 14px 0 3px;
    background: linear-gradient(var(--ink) 0 3px, transparent 3px) 0 58px / 100% 62px repeat-y;
  }
  .yo-start-pills::after { display: none; }
  .yo-pill { height: 44px; padding: 0 16px; }
  .yo-stage { width: auto; margin-top: 24px; }
  .yo-stage::before { display: none; }
  .yo-tags { position: static; margin-bottom: 8px; }
  .yo-card { display: block; padding: 22px; border-radius: 20px; }
  .yo-k { margin-top: 18px; }
  /* Far off for the wide box of one column, so its near edge stays inside the card as it turns. */
  .yo-field { --pad: 14px; perspective: 2400px; }
  .yo-pills { margin-top: 12px; }
  .yo-foot { padding-top: 16px; }
  .yo-result { margin-top: 28px; }
  .yo-dots { margin-top: 14px; }
  .yo-k2 { margin-top: 12px; }
  .yo-answers { font-size: 20px; }
  .yo-notes { max-width: none; margin: 20px 0 0; padding: 0 var(--m); }
  .yo-more { column-gap: 24px; }
}

/* ---------------------------------------------------------------- motion
   js/pages/dictation/yourOwn.js tells it as a story (data-step): versions cross-fade as
   their steps come, the box turns over and back, the take's cuts are struck and fade, and
   words come in one by one (.is-typing). --yo-k is the act's pace (0.5 when a visitor's
   new pick plays it again at double speed). The words in the box swap at once, so the
   complaint can glide into its new line. */
.motion .yo-face { transition: rotate calc(0.4s * var(--yo-k, 1)) ease-in-out, visibility calc(0.4s * var(--yo-k, 1)); }
/* A version that comes in fades in (--yo-in, from the generated rules); the one it
   replaces leaves at once, so two never stand over each other. */
.motion .yo :is(.yo-name, .yo-back, .yo-how, .yo-arrow, .yo-k2, .yo-answers) > [data-v] { transition: opacity calc(var(--yo-in, 0) * 0.2s) ease, visibility calc(var(--yo-in, 0) * 0.2s); }
.motion .yo :is(.yo-title, .yo-how, .yo-ask) { transition: opacity 0.2s ease, visibility 0.2s; }
.motion .yo :is(.yo-name, .yo-front, .yo-save) { transition: opacity 0.2s ease, background-color 0.12s ease, color 0.12s ease; }
.motion .yo-cut { transition: background-size calc(0.3s * var(--yo-k, 1)) cubic-bezier(0.2, 0.8, 0.2, 1), color calc(0.9s * var(--yo-k, 1)) ease calc(0.3s * var(--yo-k, 1)); }
.motion .yo .is-typing .w:not(.is-on) { opacity: 0; }
.motion .yo .is-typing .w.is-on { transition: opacity 0.18s ease; }
/* The take's quotes come with its words. Before the script sets a step, the take waits too. */
.motion .yo-said.is-waiting .yo-q, .motion .yo:not([data-step]) .yo-said :is(.w, .yo-q) { opacity: 0; }
.motion .yo-q { transition: opacity 0.3s ease; }
.motion .yo-pill.is-pressed { transition: box-shadow 0.12s ease; }
.motion .yo :is(.yo-improve, .yo-arrow) { transition: opacity 0.2s ease, visibility 0.2s, background-color 0.12s ease; }
/* A jump (js/story.js) shows its step at once. */
.motion .yo.is-instant :is(.yo-face, [data-v], .yo-title, .yo-how, .yo-improve, .yo-ask, .yo-name, .yo-front, .yo-save, .yo-cut, .yo-arrow, .w) { transition: none; }
