/* you.css — Path of Sitting · You's settings (settings.html, js/you*.js): who, at the
   top, the account's screen, timers and their wheel, and the sheet
   that asks before what can't be undone. The rows and groups are the
   settings style (settings.css). Requires shared.css, sheet.css and
   settings.css. */

/* The page's own sides are enough (module.css .page). */
.you-page .set-page { padding: var(--space-8) 0 var(--space-32); }
/* Your card: your face, your name and what the card opens
   (js/you-account.js). Signed out the face is in shade.
   As an iPhone's Apple Account card: a large round face with the same room above and below it, the name over what the card opens, the arrow in the middle. */
.set-row.you-me { gap: var(--space-16); padding-block: var(--space-12); }
.you-me .set-tx { padding: 0; }
.you-me .set-t { font-weight: var(--weight-medium); }
.you-me .you-av { width: var(--face-large); height: var(--face-large); }
.you-av.is-shade { background: var(--border); color: var(--muted); opacity: var(--shade); }
/* The rows kept for building, dimmed: they come out before launch. */
.you-dev { opacity: var(--shade); }

/* The one way on: the outline button, or the gold one where it's the
   page's first step (Sign in); both are shared.css's. */
.you-go:focus-visible { outline: var(--line-focus) solid var(--accent); outline-offset: 2px; }
/* What a link from an email did (js/you.js, keepFromLink). */
.you-notice {
  margin: 0 0 var(--space-16);
  padding: var(--space-12) var(--space-16);
  border: var(--line) solid var(--accent-tint-strong);
  border-radius: var(--radius-card);
  font: var(--body-size)/var(--leading-small) var(--sans);
  color: var(--text);
}

.you-av {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--face-medium);
  height: var(--face-medium);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.you-av-letter { font: var(--weight-medium) var(--size-heading)/var(--leading-one) var(--sans); }
/* The name's screen: the field, what went wrong, Save. */
.you-name { display: flex; flex-direction: column; align-items: flex-start; }
.you-name .signin-input { margin: 0; }
.you-name .you-go { margin-top: var(--space-24); }

/* The email's screen: who, and how long it's kept, centred. */
.you-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  margin-top: var(--space-12);
  text-align: center;
}
.you-hero .you-hero-t { margin: 0; font-size: var(--size-heading); line-height: var(--leading-title); overflow-wrap: anywhere; }
.you-hero-d { margin: calc(-1 * var(--space-4)) 0 0; font: var(--size-small)/var(--leading-small) var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.set-page .set-group.you-gap { margin-top: var(--space-32); }
/* Remove me, alone at the foot. */
.set-page .set-group.you-foot { margin-top: var(--space-64); }
.set-row.is-gold,
.set-row.is-gold .set-t { color: var(--accent); }

/* A paragraph keeps its full width and mends only its last line, as
   iPhone's text does; a few words (a row's name, a title) split evenly.
   Each sentence of a note starts its own line (js/you.js, sentences). */
.you-lead, .you-before, .you-note, .you-tint-d { text-wrap: pretty; }
.set-page .set-t, .you-tint-t { text-wrap: balance; }
.you-line { display: block; }
/* A form's one main action spans the field above it; a second is a quiet word under it. */
.lake-page .you-name .you-go.is-solid { align-self: stretch; }
.you-lead { margin: 0 0 var(--space-24); font: var(--body-size)/var(--leading-small) var(--sans); color: var(--muted); }
/* What a button below does, said before it, under its section's label. */
.you-before { margin: 0 var(--space-4) var(--space-12); font: var(--size-small)/var(--leading-small) var(--sans); color: var(--muted); }
/* A foot note stands inset by a row's padding, so it lines up with the words above it, as an iPhone's does. */
.you-note { margin: var(--space-12) var(--space-16) 0; font: var(--size-small)/var(--leading-small) var(--sans); color: var(--muted); }
.you-note a { color: var(--text); text-decoration: underline; text-underline-offset: var(--space-3); }
.you-note-centred { text-align: center; }
.you-said { margin: var(--space-8) 0 0; }

.set-ic .sb-ic { color: var(--accent); }
/* The line under a screen's title (Guiding). */
.you-sub { margin: calc(-1 * var(--space-12)) var(--space-4) var(--space-16); }

/* One of a few, a ring at the right filled when chosen; the one not yet
   open is dimmed to muted text with a small lock in the ring's place. */
.set-radio { flex: none; box-sizing: border-box; width: var(--icon-medium); height: var(--icon-medium); margin-left: auto; border: var(--line-chosen) solid var(--outline); border-radius: 50%; }
.set-radio.is-on { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.set-row.is-off .set-t { color: var(--muted); }
.set-lock { display: flex; flex: none; margin-left: auto; color: var(--muted); }

/* Profile (#page, js/you-profile.js), a friend's page (css/person-page.css)
   with what is only yours: who sees each part, a tag of glass at the
   label's right. */
/* A sit's row leads with its place, as Your sits does. */
.yp-sit-pic { display: block; flex: none; width: var(--control-h); height: var(--control-h); overflow: hidden; border-radius: var(--radius-small); }
.yp-sit-pic > svg { display: block; width: 100%; height: 100%; }
/* Friends in common: their faces overlap, as a messaging app's group does. */
/* Quiet, under the gold: your own page as a stranger sees it. Its reach is 44px. */
.yp-see { position: relative; margin-top: var(--space-16); font: var(--size-small)/var(--leading-one) var(--sans); color: var(--lake-soft); text-decoration: none; }
.yp-see::after { content: ''; position: absolute; inset: -14px -12px; }
.yp-who { position: relative; display: inline-flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-12); border-radius: var(--radius-round); background: var(--lake-glass-group); font: var(--weight-regular) var(--size-note)/var(--leading-one) var(--sans); letter-spacing: 0; text-transform: none; color: var(--lake-text); text-decoration: none; white-space: nowrap; }
.yp-who::after { content: ''; position: absolute; inset: -10px -8px; }
.yp-who.is-still::after { content: none; }
.yp-who:focus-visible { outline: var(--line-focus) solid var(--lake-text); outline-offset: 2px; }
/* The hint over the first tag, its point on it (js/hint.js). */
.hint.yp-hint { right: 0; bottom: calc(100% + var(--space-8)); left: auto; letter-spacing: 0; text-transform: none; }
.pg-label:has(> .yp-hint) { position: relative; }
.yp-chips { display: flex; flex-wrap: wrap; gap: var(--space-8); padding: var(--space-12) var(--space-16); }
.yp-chip { padding: var(--space-8) var(--space-12); border: 0; border-radius: var(--radius-round); background: var(--lake-glass-chosen); font: var(--weight-regular) var(--size-small)/var(--leading-one) var(--sans); color: var(--lake-text); }
button.yp-chip { border: var(--line) solid var(--lake-glass-chosen); background: none; cursor: pointer; }
button.yp-chip.is-on { background: var(--lake-glass-chosen); }
.yp-person .cm-pic { flex: none; width: var(--face-medium); height: var(--face-medium); }
.yp-person-go { display: flex; flex: 1; align-items: center; gap: var(--space-12); min-width: 0; color: inherit; text-decoration: none; }
.yp-post { padding: var(--space-12) var(--space-16); border-bottom: var(--line) solid var(--border); }
.yp-post small { font: var(--size-label)/var(--leading-small) var(--sans); color: var(--muted); }
.yp-post p { display: -webkit-box; margin: var(--space-4) 0 0; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font: var(--body-size)/var(--leading-small) var(--sans); color: var(--text); }

/* Edit profile: a sheet with Cancel and Done, your sitter large with a
   pencil, then the rows, Looking for, and its foot. */
.yp-edit { --text: var(--lake-text); --muted: var(--lake-soft); --border: var(--lake-glass-group); }
.yp-edit .set-group { border-color: transparent; background: var(--lake-glass-group); }
.yp-edit :is(.set-label, .you-note) { margin-inline: var(--space-4); text-align: left; color: var(--lake-soft); }
/* Your sitter at Edit profile's top, large, Edit sitter under it (js/you-profile.js). */
.yp-face { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); margin: var(--space-16) auto var(--space-24); padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.yp-face:focus-visible { outline: var(--line-focus) solid var(--lake-text); outline-offset: 4px; border-radius: var(--radius-sheet); }
.yp-round { display: grid; place-items: center; width: calc(var(--face-hero) + var(--space-32)); height: calc(var(--face-hero) + var(--space-32)); overflow: hidden; border-radius: 50%; background: var(--lake-glass-group); }
.yp-round svg { width: 64%; margin-top: var(--space-16); }
.yp-face-t { font-size: var(--size-small); font-weight: var(--weight-medium); color: var(--accent); }
.yp-edit .yp-rows .set-val { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* A row slid left shows Remove under it; from the keyboard, Remove
   shows when it has focus. */
.you-swipe { position: relative; overflow: hidden; }
/* pan-y: a sideways finger is the slide's, not the page's. */
.you-swipe > :last-child { position: relative; touch-action: pan-y; }
.you-swipe > .set-row { background: var(--bg2); }
.set-group > .you-swipe:first-child .set-row { border-top: 0; }
.you-swipe-del {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88px;
  background: var(--danger);
  border: 0;
  font: var(--weight-medium) var(--body-size) var(--sans);
  color: var(--bg);
  cursor: pointer;
}
.you-swipe:has(.you-swipe-del:focus-visible) > :last-child { translate: -88px 0; }

#you-screen { position: relative; }

/* A screen with nothing in it yet: an icon, what it is, one way in. */
.you-empty { display: flex; flex-direction: column; align-items: center; padding: var(--space-48) var(--space-16) 0; text-align: center; }
/* Under a screen's own title, which already gives it air. */
.you-empty.is-under { padding-top: var(--space-8); }
.you-empty-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.you-empty-t { margin: var(--space-16) 0 0; font: var(--weight-regular) var(--size-heading)/var(--leading-title) var(--sans); color: var(--text); }
.you-empty-d { margin: var(--space-8) 0 0; max-width: 28em; font: var(--body-size)/var(--leading-small) var(--sans); color: var(--muted); }
.you-empty .you-go { margin-top: var(--space-24); }
/* The quiet way on under the button: words, not a second pill. */
.you-empty-more {
  margin-top: var(--space-16);
  padding: var(--space-8) var(--space-4);
  font: var(--size-small) var(--sans);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) { .you-empty-more:hover { color: var(--text); } }
.you-empty-more:focus-visible { outline: var(--line-focus) solid var(--accent); outline-offset: 2px; border-radius: var(--radius-small); }

/* A screen's bar: its title centred, a way out either side. */
.you-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  margin: calc(-1 * var(--space-8)) 0 0;
  border-bottom: var(--line) solid var(--border);
}
.you-bar .you-bar-t { grid-column: 2; margin: 0; font: var(--weight-medium) var(--body-size)/var(--leading-title) var(--sans); }
.you-bar-btn {
  justify-self: start;
  padding: var(--space-12) 0;
  background: none;
  border: 0;
  font: 1rem var(--sans);
  color: var(--muted);
  cursor: pointer;
}
.you-bar-btn.is-gold { grid-column: 3; justify-self: end; font-weight: var(--weight-medium); color: var(--accent); }

/* ── Together (js/you-together.js) ───────────────────────────────── */
/* A sit handed on to you: what's asked, and the two answers. */
.you-answer {
  padding: var(--space-16);
  background: var(--bg2);
  border: var(--line) solid var(--border);
  border-radius: var(--radius-card);
}
.you-answer + .you-answer { margin-top: var(--space-12); }
.you-answer-t { margin: 0; font: var(--weight-medium) var(--body-size)/var(--leading-small) var(--sans); color: var(--text); }
.you-answer-d { margin: var(--space-4) 0 0; font: var(--size-small)/var(--leading-small) var(--sans); color: var(--muted); }
.you-answer-acts { display: flex; gap: var(--space-12); margin-top: var(--space-16); }
.you-answer-acts > * { flex: 1; padding-inline: var(--space-16); }
/* A card of answers stands apart from the list under it. */
.you-answer + .set-group { margin-top: var(--space-32); }

/* The photo ID step: what it is, two facts, the one way on. */
.you-id-mark { display: flex; justify-content: center; margin: var(--space-8) 0 var(--space-16); color: var(--accent); }
.you-id-facts { list-style: none; margin: var(--space-24) 0; padding: 0; display: grid; gap: var(--space-16); text-align: left; }
.you-id-facts li { display: flex; align-items: flex-start; gap: var(--space-12); }
.you-id-facts b { display: block; font: var(--weight-medium) var(--body-size)/var(--leading-small) var(--sans); color: var(--text); }
.you-id-facts li > span:last-child > span { display: block; margin-top: var(--space-4); font: var(--size-small)/var(--leading-small) var(--sans); color: var(--muted); }
.you-ask .you-go.is-solid { display: flex; width: 100%; }
.you-ask .set-group + .you-go.is-solid { margin-top: var(--space-24); }
.you-id-next { margin: var(--space-16) 0 0; font: var(--size-small)/var(--leading-small) var(--sans); text-align: center; color: var(--muted); text-wrap: balance; }

/* A quiet list of sits: a time box, the name, a line under it. */
.you-slist { border-top: var(--line) solid var(--border); }
.you-srow {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) 0;
  background: var(--bg);
  border-bottom: var(--line) solid var(--border);
  text-decoration: none;
  color: var(--text);
}
@media (hover: hover) {
  a.you-srow:hover .you-sn { color: var(--accent-bright); }
  /* Light --accent-bright holds only 3:1 on the paper. */
  [data-theme="light"] a.you-srow:hover .you-sn { color: var(--accent); }
}
.you-tbox {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 58px;
  height: 54px;
  border: var(--line) solid var(--outline);
  border-radius: var(--radius-card);
}
.you-tbox b { font: var(--weight-medium) 1rem/var(--leading-one) var(--sans); font-variant-numeric: tabular-nums; }
/* A sit on a break: its time box rests, as its pin does on the map,
   only as far as --muted text still reads. */
.you-srow.is-resting .you-tbox { opacity: var(--dim-text); }
.you-srow.is-resting .you-tbox b { color: var(--muted); }
.you-tbox small { font: var(--size-label) var(--sans); letter-spacing: var(--tracking-label); color: var(--muted); }
.you-tbox.is-none { border-style: dashed; color: var(--muted); }
.you-tbox.is-none b { font-weight: var(--weight-regular); }
.you-sx { display: flex; flex: 1; flex-direction: column; gap: var(--space-4); min-width: 0; }
.you-sn { font: var(--weight-medium) 1rem/var(--leading-ui) var(--sans); transition: color var(--ease); }
.you-sd { font: var(--size-small)/var(--leading-small) var(--sans); color: var(--muted); text-decoration: none; }
.you-sd.is-gold { color: var(--accent); }
.you-tag {
  display: inline-block;
  margin-left: var(--space-8);
  padding: 1px var(--space-8);
  border: var(--line) solid var(--outline);
  border-radius: var(--radius-round);
  font: var(--weight-regular) var(--size-label)/var(--leading-small) var(--sans);
  color: var(--muted);
  vertical-align: 1px;
}
.you-tag.is-warn { color: var(--danger); border-color: var(--danger); }

/* Waiting's distances, the map's control (shared.css .seg). */
.you-seg { margin-top: var(--space-4); }

/* A setting under its switch, indented, as the phone's settings. */
.set-row.is-sub { min-height: 48px; padding-left: var(--space-32); }
.set-row.is-sub .set-t { font-size: var(--size-small); color: var(--muted); }
.set-row.is-sub .set-val { color: var(--text); }
.set-val.is-gold { color: var(--accent); }
/* A time shown as words, with the phone's own time field laid over it (js/you-with-you.js). */
.set-val.is-time { position: relative; overflow: visible; color: var(--accent); }
.set-time-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font: inherit; cursor: pointer; }
/* A row resting after it has done its work (a copy sent). */
.set-row:disabled { cursor: default; }
.set-row:disabled .set-ar { visibility: hidden; }

/* What's sent whatever is set: on gold ground, apart from the switches. */
.you-tint {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-32);
  padding: var(--space-16);
  border-radius: var(--radius-card);
  background: var(--accent-soft);
}
.you-tint-ic { flex: none; display: flex; padding-top: 1px; color: var(--accent); }
.you-tint-t { margin: 0; font: var(--weight-medium) var(--body-size)/var(--leading-small) var(--sans); color: var(--text); }
.you-tint-d { margin: var(--space-4) 0 0; font: var(--size-small)/var(--leading-small) var(--sans); color: var(--muted); }

/* The sheet that asks before what can't be undone: the choices as one
   group, Cancel apart. */
.you-ask .sheet-bar { margin-bottom: var(--space-4); }
.you-ask-t { margin: 0; font: var(--weight-regular) var(--size-heading)/var(--leading-title) var(--sans); text-align: center; color: var(--text); text-wrap: balance; }
.you-ask-line { margin: var(--space-12) 0 0; font: var(--body-size)/var(--leading-small) var(--sans); text-align: center; color: var(--muted); }
.you-ask .set-group { margin-top: var(--space-24); }
/* Ways to do one thing read as the Share sheet does: from the left. */
.you-ask.is-ways .you-ask-line { text-align: left; margin: var(--space-8) 0 var(--space-16); }

/* ── On the lake ───────────────────────────────────────────────── */
/* Settings and its screens stand on home's lake (js/set-lake.js), close
   on one thing, framed as a reading page frames its sitter (read.css):
   the picture most of the screen, still as the page scrolls, and the
   screen one sheet of glass rising over it from just past half way.
   Under the picture the ground is the glass's own night blue, so the
   sheet ends with its last line and a short screen doesn't scroll. The
   words and rows take the lake's tokens. */
/* The ground is <html>'s: a <body> ground would paint over the lake. */
.lake-page {
  --set-top: 58svh;
  --bar-glass: var(--lake-glass-sheet);
  background: none;
}
html:has(> body.lake-page) { background-color: var(--lake-glass-solid); }
/* Its foot fades into the ground, so the glass has no edge of lake under it. */
.set-sky { position: fixed; inset: 0 0 auto; z-index: -1; height: 84svh; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(var(--lake-text) 80%, transparent); mask-image: linear-gradient(var(--lake-text) 80%, transparent); }
/* One picture to a screen; the walk slides one out and the next in (js/set-lake.js). */
.set-pic { position: absolute; inset: 0; }
.set-pic > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* What falls shows on the weather's own picture only; the others stand still, fine weather or foul. */
.set-pic:not(.is-weather) .scene-fall { display: none; }
/* The subject at twice the shore's size, lifted so its foot is on the bank; two things share a larger box. */
.set-fig { position: absolute; left: 50%; top: 61%; transform: translate(-50%, -96%); }
.set-fig svg { display: block; width: 100px; height: 111px; overflow: visible; }
.set-fig.is-big svg { width: 160px; height: 178px; }
@keyframes set-in-right { from { transform: translateX(100%); } }
@keyframes set-in-left { from { transform: translateX(-100%); } }
@keyframes set-out-left { to { transform: translateX(-100%); } }
@keyframes set-out-right { to { transform: translateX(100%); } }
.set-pic.is-in-right { animation: set-in-right var(--dur-arrive) var(--curve-sheet); }
.set-pic.is-in-left { animation: set-in-left var(--dur-arrive) var(--curve-sheet); }
.set-pic.is-out-left { animation: set-out-left var(--dur-arrive) var(--curve-sheet) both; }
.set-pic.is-out-right { animation: set-out-right var(--dur-arrive) var(--curve-sheet) both; }
/* The bell keeps a slow, quiet motion, none near the words: its sway on the breath. */
.set-fig .door-bell { animation: set-hang calc(var(--dur-breath) / 2) var(--curve-breath) infinite alternate; }
@keyframes set-hang { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }
/* They rest under a sheet and during the walk, as the lake does. */
body:has(dialog[open]) .set-fig *,
.set-pic:is(.is-in-right, .is-in-left, .is-out-left, .is-out-right) .set-fig * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .set-fig * { animation: none; }
}
/* Padding, not the sheet's margin: a margin falls through to <body>'s
   top and adds to its screen-tall minimum, so every screen scrolled. */
.lake-page main.page { padding: var(--set-top) 0 0; }
/* A visitor without the password has no tab bar, and their top row is
   the mark alone: it stands on the sky, as the bar's pages run on
   under the clock, never a black band over the picture. Their sheet
   rises to just under the figure's bank (61% of the sky's 84svh) and
   reaches the screen's foot without the bar's room, so its few lines
   and the field show whole above Safari's own toolbar, and the screen
   doesn't scroll. */
:root[data-locked]:not(.has-tabbar) .lake-page { --set-top: 55svh; }
:root[data-locked]:not(.has-tabbar) .lake-page > nav:not(.tab-bar) { position: absolute; inset: 0 0 auto; background: none; }
:root[data-locked]:not(.has-tabbar) .lake-page .you-page .set-page {
  box-sizing: border-box;
  min-height: calc(100svh - var(--set-top));
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-16));
}
/* On a phone their page is one solid screen: no scroll and no bounce,
   as home holds (home-scene.css). The sheet stands on the screen's
   foot and, on a short phone, rises as far as its words need, so
   nothing held still is cut off. The typing screen is a dialog of its
   own, so it still scrolls inside. Safari's floating address bar lies
   over the page's foot (the large viewport less the small), so the
   words stand that much higher, or the box touches the bar. */
@media (max-width: 759px) {
  :root[data-locked]:not(.has-tabbar):has(> body.lake-page .you-page) { height: 100%; overflow: hidden; overscroll-behavior: none; }
  :root[data-locked]:not(.has-tabbar) body.lake-page:has(.you-page) { height: 100%; overflow: clip; }
  :root[data-locked]:not(.has-tabbar) .lake-page main.you-page {
    box-sizing: border-box;
    height: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  :root[data-locked]:not(.has-tabbar) .lake-page .you-page .set-page { flex: none; padding-bottom: calc(max(100lvh - 100svh, env(safe-area-inset-bottom, 0px)) + var(--space-24)); }
}
/* A page whose figure stands on the bank just above its sheet (a person's page, Guides). */
.lake-page.is-bank-on-sheet .set-sky :is(.set-fig, .bow) { top: calc(var(--bank-y, var(--set-top)) - var(--space-16)); }

/* ── You, a sheet: Settings' main screen rises over the place it was
   opened from, nearly to the top, that place dimmed behind it, as the
   App Store's account sheet does; the tab bar is under it. Its bar is
   the title, centred, and Done (js/you-sheet.js). The screens it opens
   keep their picture above the glass, but one marked a sheet
   (js/you.js), which stays at this height over the same place. ── */
.you-sheet-page:has(#you-main:not([hidden]), #you-screen[data-sheet]:not([hidden])) { --set-top: calc(env(safe-area-inset-top, 0px) + var(--space-14)); }
.you-sheet-page:has(#you-main:not([hidden]), #you-screen[data-sheet]:not([hidden])) .set-sky::after { content: ''; position: absolute; inset: 0; background: var(--veil-ground); }
:root[data-bar] .you-sheet-page > .tab-bar { display: none; }
.you-sheet-page main.page { padding-bottom: 0; }
.you-sheet-page #you-main { animation: you-rise var(--dur-arrive) var(--curve-sheet); }
@keyframes you-rise { from { transform: translateY(100svh); } }
/* Over home (js/you-layer.js): the same sheet, in a layer over the
   place, above the tab bar. Its own screen shows the place through the
   veil; the screens it opens stand on their picture and the glass's
   night blue, as on You's page. Done lowers it as it rose. */
.you-layer { position: fixed; inset: 0 0 var(--screen-foot); z-index: 1000; overflow-y: auto; overscroll-behavior: contain; background-color: var(--lake-glass-solid); }
.you-layer:has(#you-main:not([hidden]), #you-screen[data-sheet]:not([hidden])) { background-color: transparent; }
.you-layer > .page { padding: var(--set-top) 0 0; }
/* A sheet of one row still reaches the screen's foot. */
.you-layer > .page { box-sizing: border-box; min-height: 100%; display: flex; flex-direction: column; }
.you-layer > .page > .set-page { box-sizing: border-box; width: 100%; flex: 1 0 auto; }
:root.you-open .tab-bar { visibility: hidden; }
/* The glass and its rows move as one sheet, timed as every sheet
   (css/sheet.css): up as the veil comes, away quicker, and the place
   takes taps as soon as it starts to go. */
.you-layer #you-main { animation: none; }
.you-layer.is-opening .set-page { animation: you-rise var(--dur-change) var(--curve-sheet); }
.you-layer.is-opening .set-sky::after { animation: you-veil var(--dur-change) var(--curve-standard); }
.you-layer.is-closing { pointer-events: none; }
.you-layer.is-closing .set-page { animation: you-fall var(--dur-press) var(--curve-standard) forwards; }
.you-layer.is-closing .set-sky::after { animation: you-veil var(--dur-press) var(--curve-standard) reverse forwards; }
@keyframes you-fall { to { transform: translateY(100svh); } }
@keyframes you-veil { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .you-layer:is(.is-opening, .is-closing) .set-page { animation-name: sheet-fade; }
  .you-layer.is-closing .set-page { animation-direction: reverse; }
}
/* The new timer's bar (above), with no line under it: the sheet's top. */
.you-bar.is-top { margin-bottom: var(--space-8); border-bottom: 0; }
.you-bar-t:focus { outline: none; }
.lake-page .you-bar-btn.is-gold { color: var(--lake-gold-pale); text-decoration: none; }
.you-me .you-face { overflow: hidden; background: var(--lake-glass-control); }
.lake-page .you-page .set-page {
  --text: var(--lake-text);
  --muted: var(--lake-soft);
  --border: var(--lake-glass-group);
  --bg3: var(--lake-glass-group);
  --outline: var(--lake-glass-chosen);
  position: relative;
  padding: var(--space-24) var(--space-16) var(--space-96);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--lake-glass-sheet);
  -webkit-backdrop-filter: var(--lake-frost);
  backdrop-filter: var(--lake-frost);
  color: var(--lake-text);
}
/* The way back is a chip on the sky
   above the sheet, held to the sheet's own top: the sheet's solid glass,
   lifted by a shadow, so they read over a pine, the sky or the stars
   (round 14). */
.lake-page #you-screen { position: static; }
/* Pinned to the screen, as an iPhone's back button is: the sheet scrolls
   under them and the way back never leaves with it (design.md, "The way
   back stays put"). */
.lake-page .set-back {
  position: fixed;
  z-index: 5;
  top: calc(var(--space-16) + env(safe-area-inset-top, 0px));
  left: var(--space-16);
  display: inline-flex;
  align-items: center;
  height: var(--chip-h);
  padding: 0 var(--space-12);
  border-radius: var(--radius-round);
  background: var(--lake-glass-solid);
  box-shadow: var(--shadow-lift);
  font: var(--weight-medium) var(--size-small)/var(--leading-one) var(--sans);
  color: var(--lake-text);
  text-decoration: none;
}
/* The glass way back (shared.css, .back-pill) pinned the same way, outside the sheet. */
.lake-page .back-pill.is-pinned { position: fixed; z-index: 5; top: calc(var(--space-16) + env(safe-area-inset-top, 0px)); left: var(--space-16); }
.lake-page .set-title { margin-top: 0; color: var(--lake-text); }
.lake-page .set-label { color: var(--lake-soft); }
.lake-page :is(.set-group, .you-answer) { border-color: transparent; background: var(--lake-glass-group); }
.lake-page :is(.set-ic, .set-ic .sb-ic) { color: var(--lake-gold); }
.lake-page .set-ar { color: var(--lake-soft); }
/* A chosen Look is lighter glass with white words: no gold on the lake. */
.lake-page .seg { background: var(--lake-glass-group); }
.lake-page .seg-opt[aria-pressed="true"] { background: var(--lake-glass-chosen); box-shadow: none; }
.lake-page .you-av { background: var(--lake-glass-group); color: var(--lake-text); }
/* Its sheets (js/you.js, ask) are the glass's solid night blue, since
   rows of words lie behind them, not a picture: a sheet hides the page
   behind it, veiled as any sheet's is (round 6, sheet A). */
.glass-sheet.you-ask { --sheet-foot: var(--lake-glass-solid); background-color: var(--lake-glass-solid); }
.glass-sheet.you-ask::backdrop { background: var(--veil-ground); }
.glass-sheet.you-ask.is-ways { text-align: left; }
.glass-sheet.you-ask .set-group { border-color: transparent; background: var(--lake-glass-group); }
