/* The home page, on the ground it shares with the pages around it (Ground):
   the system's type set big, Yab's windows as drawn.py draws them, and a pen,
   the hand of Yab's notebook page (yab://you, "Nice to meet you"), that
   marks the page as it is read: once, where it says something, never where
   it is only decoration. Everything is set; the hand only marks. */
/* Two fingers sideways over a window's column change its spaces; the page
   never turns them into the browser's back swipe (live.js). */
html, body { overscroll-behavior-x: none; }
.yp {
  --ink2: rgba(var(--fg), .8);
  --bar: rgba(251, 251, 251, .86);
  --disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  position: relative; overflow-x: clip; padding-bottom: 40px;
  font: 17px/1.5 var(--sans); letter-spacing: -.012em;
}
@media (prefers-color-scheme: dark) { .yp { --bar: rgba(19, 19, 20, .86); } }
.yp [hidden] { display: none !important; }
.yp figure { margin: 0; }
.yp .grow { flex: 1; }
.yp .dot { color: var(--pen-violet); }

/* ---------------------------------------------------------------- the pen */
.yp .ink { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 6; }
.yp .ink path { fill: none; stroke: var(--pen); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.yp .ink path.bold { stroke-width: 3; }
.yp .unwritten { clip-path: inset(-40% 100% -40% 0); }

/* ---------------------------------------------------------------- keys, as the app draws them (KeyArt) */
/* Set by its middle, not a baseline: a plate with a drawn mark (⇧, ⌘) has
   no baseline of its own and sat low by a third of a line. Centered on the
   capitals, the middle's x-height raised a hair. */
.yp .keys { display: inline-flex; gap: 2px; vertical-align: middle; position: relative; top: -.08em; font: inherit; }
.yp .key { display: inline-flex; align-items: center; justify-content: center; min-width: 1.22em; height: 1.22em; border-radius: .34em;
  background: color-mix(in srgb, currentColor 13%, transparent); }
.yp .key.wide { padding: 0 .32em; }
.yp .key > span { font: 600 .66em/1 var(--sans); letter-spacing: 0; }
.yp .key svg { width: .8em; height: .8em; display: block; }

/* ---------------------------------------------------------------- the bar across the top */
.yp .bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bar);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.yp .bar.scrolled { border-bottom-color: var(--hairline); }
.yp .bar-in { max-width: 1180px; margin: 0 auto; height: 56px; padding-inline: 24px; display: flex; align-items: center; gap: 10px; }
.yp .bar .brand { font: 600 18px var(--disp); letter-spacing: -.02em; border-radius: 6px; }
.yp .bar .brand img { width: 24px; height: 24px; }
.yp .bar nav { margin-left: auto; display: flex; gap: 2px; }
.yp .bar nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink2); font-size: 13.5px; text-decoration: none; }
.yp .bar nav a:hover { background: var(--hover); color: var(--ink); }
.yp .bar a:focus-visible, .yp .link:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
@media (max-width: 720px) { .yp .bar nav { display: none; } .yp .bar .btn { margin-left: auto; } }

/* ---------------------------------------------------------------- a drawn window, scaled to its box */
.yp .shot { position: relative; width: 100%; max-width: 100%; aspect-ratio: 900 / 580; }
.yp .shot > .sw, .yp .shot > .st { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.yp .shot > .st { display: none; }
.yp .shot.thin { aspect-ratio: 540 / 580; }
.yp .shot.thin > .sw { display: none; }
.yp .shot.thin > .st { display: block; }
@media (prefers-color-scheme: dark) { .yp .shot { filter: brightness(.94); } }

.yp .page { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.yp .eye { margin: 0 0 12px; color: var(--muted); font: 600 15px/1.2 var(--sans); letter-spacing: -.005em; }
.yp .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; font-size: 15px; }
.yp .fine { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; letter-spacing: -.005em; }
.yp .link { color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 4px; }
.yp .link::after { content: " ›"; }
.yp .link:hover { text-decoration: underline; text-underline-offset: .18em; }

/* ---------------------------------------------------------------- the first screen */
.yp .hero { padding-top: 96px; scroll-margin-top: 80px; }
.yp .h1 { margin: 0; font: 600 clamp(50px, 7.4vw, 100px)/1 var(--disp); letter-spacing: -.034em; text-wrap: balance; }
.yp .sub { margin: 26px 0 0; max-width: 24ch; color: var(--ink2); font: 500 clamp(20px, 2.3vw, 27px)/1.32 var(--disp); letter-spacing: -.012em; text-wrap: pretty; }
.yp .hero .shot { margin-top: 64px; }


/* ---------------------------------------------------------------- what came from Arc, ticked */
.yp .sec { padding-top: 150px; scroll-margin-top: 36px; }
.yp .h2 { margin: 0; max-width: 17ch; font: 600 clamp(36px, 5vw, 62px)/1.04 var(--disp); letter-spacing: -.03em; text-wrap: balance; }
.yp .kept { list-style: none; max-width: 840px; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.yp .kept li { padding-left: 34px; }
.yp .kept b { display: block; font: 600 19px/1.25 var(--disp); letter-spacing: -.016em; }
.yp .kept li > span { display: block; margin-top: 5px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.yp .morewrap { margin: 30px 0 0; padding-left: 34px; }
.yp .more { all: unset; cursor: pointer; border-radius: 4px; color: var(--ink); font: 600 17px var(--disp); letter-spacing: -.012em; }
.yp .more:focus-visible { outline: 2px solid var(--pen); outline-offset: 4px; }
.yp .morelist { list-style: none; max-width: 840px; margin: 18px 0 0; padding: 0 0 0 34px; columns: 2; column-gap: 48px; color: var(--muted); font-size: 16px; line-height: 1.9; }

/* ---------------------------------------------------------------- a window and the one note the pen writes on it */
.yp .ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-top: 128px; scroll-margin-top: 40px; }
.yp .ch.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.yp .ch.flip .ch-text { order: 2; }
.yp .ch-text h3 { margin: 0; font: 600 clamp(30px, 3.4vw, 44px)/1.08 var(--disp); letter-spacing: -.026em; text-wrap: balance; }
.yp .ch-text h3 .keys { font-size: .66em; top: -.13em; gap: 3px; }
.yp .ch-text p { margin: 16px 0 0; max-width: 34ch; color: var(--ink2); font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.yp .ch-text p.eye { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.yp .ch-fig { position: relative; padding-top: 70px; }
.yp .ch-fig.below { padding-top: 0; padding-bottom: 70px; }
.yp .note { position: absolute; top: 4px; z-index: 2; white-space: nowrap; font-size: 24px; line-height: .98; }
.yp .below .note { top: auto; bottom: 4px; }
.yp .note.at-l { left: 7%; transform: rotate(-3deg); }
.yp .note.at-r { right: 7%; transform: rotate(2.5deg); }
.yp .note.at-mid { left: 50%; transform: translateX(-50%) rotate(-2deg); }
.yp .mail { max-width: 720px; margin: 96px 0 0; padding-top: 28px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 16px; text-wrap: pretty; }
.yp .mail b { color: var(--ink); font-weight: 600; }
.yp .mail .link { display: block; width: fit-content; margin-top: 10px; }

/* ---------------------------------------------------------------- the end */
.yp .end { padding-top: 170px; scroll-margin-top: 36px; }
.yp .end .mark { width: 88px; height: auto; margin-bottom: 26px; }
.yp .foot { max-width: 1180px; margin: 130px auto 0; padding: 24px 24px 0; display: flex; flex-wrap: wrap; gap: 6px 18px;
  border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; }
.yp .foot a { color: var(--muted); text-decoration: none; }
.yp .foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .yp .hero { padding-top: 56px; }
  .yp .sec { padding-top: 110px; }
  .yp .kept { grid-template-columns: minmax(0, 1fr); }
  .yp .morelist { columns: 1; }
  .yp .ch, .yp .ch.flip { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 96px; }
  .yp .ch.flip .ch-text { order: 0; }
  .yp .note { font-size: 22px; }
}
@media (max-width: 560px) { .yp .page, .yp .bar-in { padding-inline: 20px; } .yp .foot { padding-inline: 20px; } }

/* The live window (from the old first screen, build.py), now every
   chapter's: the app's column and page, working. */
/* On a phone's canvas (page.js fit): the window 540 wide, the column narrower. */
.yp .shot.live-shot.thin > .sw { display: block; }
.shot.thin .live { width: 540px; }
.shot.thin .lcol { width: 176px; }
.shot.thin .lomni { left: 16px; right: 16px; }
.shot.thin .pk-card { left: 5%; right: 15%; }
.shot.thin .pk-btns { right: calc(15% - 40px); }

/* The live window: the app's column and page, working. */
.live { --ground: #ECECEE; isolation: isolate; position: relative; width: 900px; height: 580px; display: flex; border-radius: 14px; overflow: hidden; background: var(--ground); color: #141414; text-align: left;
  font: 13px/1.3 var(--sans); letter-spacing: -.01em; transition: background .5s var(--ease);
  box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 30px 60px -20px rgba(20,20,20,.28), 0 8px 18px rgba(20,20,20,.06); }
.live::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.live :where(button) { all: unset; box-sizing: border-box; cursor: default; }
.live button:focus-visible { outline: 2px solid rgba(20,20,20,.5); outline-offset: 1px; }
.lcol { width: 214px; flex-shrink: 0; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.helm { height: 22px; display: flex; align-items: center; gap: 4px; padding-left: 4px; margin-bottom: 8px; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.grow { flex-grow: 1; }
.hb { width: 24px; height: 22px; border-radius: 6px; display: grid !important; place-items: center; color: #7e7e7f; }
.hb:hover { background: rgba(20,20,20,.06); }
.hb[disabled] { color: #b8b8b9; }
.lpins { display: flex; gap: 6px; margin-bottom: 8px; }
.lpin { flex: 1; height: 38px; border-radius: 10px; background: rgba(255,255,255,.6); display: grid !important; place-items: center; transition: background .15s; }
.lpin:hover { background: rgba(255,255,255,.85); }
.lpin.on { background: #fff; box-shadow: 0 1px 2px rgba(20,20,20,.08), 0 0 0 .5px rgba(20,20,20,.06); }
.stile { flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.lrow, .lfolder { display: flex !important; align-items: center; gap: 9px; height: 30px; padding: 0 8px 0 9px; border-radius: 8px; color: #777778; transition: background .12s; }
.lrow:hover, .lfolder:hover { background: rgba(20,20,20,.05); }
.lrow.on { background: #fff; color: #141414; box-shadow: 0 1px 2px rgba(20,20,20,.08), 0 0 0 .5px rgba(20,20,20,.06); }
.lrow .t, .lfolder .t { flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lfolder { padding-left: 8px; }
.lfolder .t { font-weight: 600; color: #1d1d1f; }
.lfolder em { font-style: normal; font-size: 11.5px; color: rgba(20,20,20,.42); }
.lfolder.asks { background: rgba(20,20,20,.06); box-shadow: 0 1px 1px rgba(0,0,0,.08); transform: translateY(-1px); }
.fmark { flex-shrink: 0; }
.lline { display: block; height: 1px; margin: 6px 6px; background: rgba(20,20,20,.1); }
.lkids.stay .lrow { animation: none; }
.lkids.enter .lrow { animation: kid .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes kid { from { opacity: 0; transform: translateY(-6px); } }
.lnew { display: flex; gap: 9px; align-items: center; height: 30px; padding: 0 9px; color: #a4a4a5; }
.lnew span { width: 15px; display: flex; justify-content: center; }
.lspace-wrap { position: relative; align-self: flex-end; }
.lspace { display: flex !important; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; background: rgba(255,255,255,.75); box-shadow: 0 1px 2px rgba(20,20,20,.08), 0 0 0 .5px rgba(20,20,20,.06); font-size: 12px; font-weight: 500; color: rgba(20,20,20,.85); }
.lspace:hover { background: #fff; }
.lspace svg path { stroke: #919192; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lmenu { position: absolute; right: 0; bottom: 32px; width: 150px; padding: 5px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 12px 28px rgba(20,20,20,.16); display: flex; flex-direction: column; gap: 2px; animation: kid .18s var(--ease) both; }
.lmi { display: flex !important; gap: 8px; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
.lmi:hover { background: rgba(20,20,20,.05); }
.lmi.on { font-weight: 600; }
.lpage { flex-grow: 1; margin: 8px 8px 8px 0; border-radius: 10px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(20,20,20,.06), 0 1px 2px rgba(20,20,20,.05); position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.lpage.reloading > *, .lpage.turned > * { animation: reload .25s ease-out both; }
.lpage.turned > .ask { animation: kid .3s var(--ease) both; }
@keyframes reload { from { opacity: 0; } }
.pg-kicker { font-size: 12px; color: rgba(20,20,20,.45); }
.pg-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.pic { height: 150px; border-radius: 12px; }
.lines { display: flex; flex-direction: column; gap: 10px; }
.ln { display: block; height: 7px; border-radius: 4px; background: rgba(20,20,20,.1); }
.fields { display: flex; gap: 10px; }
.fields span { flex: 1; height: 40px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.1); display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.fields em { font-style: normal; color: rgba(20,20,20,.42); }
.results { display: flex; flex-direction: column; gap: 8px; }
.res { height: 46px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08); display: flex; align-items: center; gap: 12px; padding: 0 16px; font-variant-numeric: tabular-nums; }
.res b { font-weight: 600; }
.res i { width: 60px; height: 1px; background: rgba(20,20,20,.15); }
.res span { color: rgba(20,20,20,.55); }
.ask { position: absolute; left: 50%; bottom: 76px; width: 300px; margin-left: -150px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.07), 0 14px 30px rgba(20,20,20,.14); display: flex; flex-direction: column; gap: 10px; }
.ask .who { display: flex; gap: 7px; align-items: center; font-weight: 600; }
.ask p { margin: 0; color: rgba(20,20,20,.6); }
.choices { display: flex; gap: 8px; }
.choices button { flex: 1; height: 32px; border-radius: 8px; background: rgba(20,20,20,.07); display: grid !important; place-items: center; font-weight: 500; transition: background .12s, transform .12s; }
.choices button:first-child { background: #141414; color: #fff; }
.choices button:hover { transform: scale(1.03); }
.ldock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); height: 42px; padding: 0 5px 0 14px; border-radius: 13px; background: rgba(20,20,20,.95); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.ldock svg circle, .ldock svg path { stroke: currentColor; }
.ldock svg path[fill] { fill: currentColor; stroke: none; }
.ldock button { height: 32px; padding: 0 4px 0 12px; border-radius: 9px; background: rgba(255,255,255,.14); display: flex !important; align-items: center; gap: 6px; }
.ldock.light { background: #fff; color: #141414; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 10px 26px rgba(0,0,0,.12); }
.ldock.light button { background: rgba(20,20,20,.07); }
.ldock .lkeys { color: #a1a1a1; }
.ldock.light .lkeys { color: #777777; }
.ldock .lkeys kbd { min-width: 24px; height: 24px; border-radius: 6px; color: inherit; font-size: 13px; }
.ldock .lkeys svg { width: 14px; height: 14px; }
.lagent, .lcursor { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0; transition: transform .6s cubic-bezier(.3, .7, .2, 1), opacity .2s; }
.lagent { margin: -14px 0 0 -14px; }
.lagent .disc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #141414; box-shadow: 0 4px 12px rgba(0,0,0,.28); }
.lagent .disc svg { width: 17px; height: 17px; }
.lcursor { margin: -2px 0 0 -2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.lagent.shown, .lcursor.shown { opacity: 1; }
.lagent.tap .disc, .lcursor.tap svg { animation: tap .35s cubic-bezier(.2,.8,.2,1); }
@keyframes tap { 40% { transform: scale(.78); } }
.lsearch { align-self: flex-start; height: 34px; padding: 0 18px; border-radius: 9px; background: #4b83f0; color: #fff; font-weight: 600; display: flex; align-items: center; }
.f-b .caret { display: none; width: 1.5px; height: 16px; background: #141414; margin-left: -6px; animation: caret 1s steps(1) infinite; }
.f-b.typing .caret { display: block; }
@keyframes caret { 50% { opacity: 0; } }
.fields b { font-weight: 400; }
.results .res { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .45s var(--ease), box-shadow .2s; }
.results.in .res { opacity: 1; transform: none; }
.results.in .res:nth-child(2) { transition-delay: .06s; }
.results.in .res:nth-child(3) { transition-delay: .12s; }
.res.picked { box-shadow: 0 0 0 2px #141414; }
.ldock .dw { min-width: 150px; }
.ldock svg circle { stroke: currentColor; } .ldock svg path { stroke: currentColor; }
.demo { pointer-events: none; }

.plink { align-self: flex-start; color: #1a5fd0; text-decoration: underline; text-underline-offset: 3px; margin: 2px 0; }
.lpeek { position: absolute; inset: 0; background: rgba(20,20,20,.14); animation: reload .2s ease-out both; }
.pk-card { position: absolute; top: 24px; bottom: 24px; left: 8%; right: 8%; border-radius: 12px; background: #fff; box-shadow: 0 20px 44px rgba(20,20,20,.25), 0 0 0 1px rgba(20,20,20,.06); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
@keyframes pk { from { opacity: 0; transform: scale(.9); } }
.pk-url { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #7e7e7f; }
.pk-box { height: 90px; border-radius: 8px; background: rgba(20,20,20,.05); }
.pk-btns { position: absolute; top: 24px; right: calc(8% - 40px); display: flex; flex-direction: column; gap: 8px; animation: reload .3s ease-out .1s both; }
.pk-btns span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.06), 0 2px 6px rgba(0,0,0,.16); color: #141414; }
.adrow { display: flex; gap: 14px; }
.adrow .pic { flex: 1; }
.adslot { width: 170px; height: 150px; border-radius: 10px; border: 1.5px dashed rgba(20,20,20,.18); display: grid; place-items: center; font-size: 12px; color: rgba(20,20,20,.42); }
.adslot.wide { width: 100%; height: 60px; }
.adpill { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); height: 36px; padding: 0 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 8px 20px rgba(20,20,20,.12); display: flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; animation: kid .4s var(--ease) .3s both; }
.adpill span { color: rgba(20,20,20,.45); font-weight: 400; }
.live > .lcol, .live > .lpage { transition: opacity .45s ease; }
.live.rewinding > .lcol, .live.rewinding > .lpage { opacity: 0; }
.lfolder.born { animation: kid .35s cubic-bezier(.2,.8,.2,1) both; }
.om-row .stile svg.lface { width: 14px; height: 14px; }
/* The column's middle, where a space's rows come and go. */
.lstage { position: relative; flex-grow: 1; min-height: 0; }
.lcin { display: flex; flex-direction: column; gap: 3px; }
.lcin.from-next { animation: from-next .32s cubic-bezier(.2, .8, .2, 1) both; }
.lcin.from-prev { animation: from-prev .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes from-next { from { opacity: 0; transform: translateX(24px); } }
@keyframes from-prev { from { opacity: 0; transform: translateX(-24px); } }
.lcin.ghost { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.lcin.ghost.to-prev { animation: to-prev .24s ease-out forwards; }
.lcin.ghost.to-next { animation: to-next .24s ease-out forwards; }
@keyframes to-prev { to { opacity: 0; transform: translateX(-70px); } }
@keyframes to-next { to { opacity: 0; transform: translateX(70px); } }
/* A folder's room opens, then its rows come in turn; shutting, it closes at once. */
.lkids { display: grid; grid-template-rows: 1fr; }
.lkids > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3px; padding-left: 16px; }
.lkids.enter { animation: room .22s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes room { from { grid-template-rows: 0fr; } }
.lkids.leaving { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .14s cubic-bezier(.2, .8, .2, 1), opacity .1s; }
/* The space tray, as SpaceTray draws it. */
.ltray { position: absolute; right: 0; bottom: 36px; width: 196px; padding: 10px 8px 6px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 .5px rgba(20,20,20,.1), 0 14px 34px rgba(20,20,20,.16); display: flex; flex-direction: column; gap: 2px; transform-origin: 80% 100%; animation: tray .22s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tray { from { opacity: 0; transform: scale(.94); } }
.tr-head { display: flex; align-items: center; padding: 0 6px 6px 8px; }
.tr-head b { flex-grow: 1; font-size: 15px; font-weight: 700; }
.tr-x { display: grid !important; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #858586; }
.tr-row { display: flex !important; align-items: center; gap: 10px; height: 38px; padding: 0 8px; border-radius: 9px; font-size: 13.5px; font-weight: 500; }
.tr-row:hover { background: rgba(20,20,20,.04); }
.tr-row.on { background: rgba(20,20,20,.06); }
.tr-row .t { flex-grow: 1; }
.tr-e { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(20,20,20,.06); font-size: 14px; }
.tr-new { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; color: #a1a1a2; font-size: 13.5px; }
.lkeys { display: inline-flex; gap: 2px; }
.lkeys kbd { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: color-mix(in srgb, currentColor 14%, transparent); color: #858586; font: 500 11.5px var(--sans); }
.lkeys kbd.one { padding: 0; aspect-ratio: 1; }
.lkeys svg { width: 12px; height: 12px; display: block; }
.ik { display: inline-flex; align-items: center; gap: 2px; vertical-align: -.1em; font: 500 .78em/1 var(--sans); white-space: nowrap; }
.ik .k { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 1.6em; height: 1.6em; padding: 0 .35em; border-radius: .4em; background: color-mix(in srgb, currentColor 11%, transparent); }
.ik .k.one { padding: 0; aspect-ratio: 1; }
.ik svg { width: 1.05em; height: 1.05em; display: block; }
/* The field, as ⌘T brings it (Omnibox): over the page, a fifth of the way
   down, 750 wide or the page less 16 a side, a 58-point field, 38-point
   rows, the box's 26 corner, all at the drawing's own .92. */
.lomni { position: absolute; z-index: 7; left: 238px; right: 24px; top: 71px; height: 437px; border-radius: 24px; background: rgba(255,255,255,.9); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(20,20,20,.12), 0 30px 80px rgba(20,20,20,.18); transform-origin: 50% 26px; animation: omni .26s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
@keyframes omni { from { opacity: 0; transform: scale(.97); } }
.om-field { display: flex; align-items: center; gap: 11px; height: 53px; padding: 0 15px; font-size: 17px; color: #141414; }
.om-field svg { color: #919192; flex-shrink: 0; }
.om-field .caret { display: block; width: 1.5px; height: 20px; background: #141414; margin-left: -10px; animation: caret 1s steps(1) infinite; }
.om-hint { color: rgba(20,20,20,.32); margin-left: -8px; }
.om-list { padding: 0 7px; display: flex; flex-direction: column; gap: 1px; }
.om-sec { padding: 10px 9px 5px; font-size: 11.5px; color: rgba(20,20,20,.45); }
.om-row { display: flex; align-items: center; gap: 11px; height: 35px; padding: 0 9px; border-radius: 9px; font-size: 13px; }
.om-row .stile { color: #fff; }
.om-row b { font-weight: 500; white-space: nowrap; }
.om-row .om-d { flex-grow: 1; min-width: 0; color: rgba(20,20,20,.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-row .om-act { color: rgba(20,20,20,.45); white-space: nowrap; }
.om-row.on { background: rgba(20,20,20,.07); }
.om-foot { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 6px 0 12px; border-radius: 10px; background: rgba(20,20,20,.05); font-size: 12.5px; font-weight: 500; color: rgba(20,20,20,.8); }
.om-foot span { display: inline-flex; align-items: center; gap: 6px; }
.om-foot i { width: 1px; height: 14px; background: rgba(20,20,20,.12); }
/* Split View as the app has it: two panes, each with its own bar; the one
   in front ringed in the window's ink; in the column, one row of two halves. */
.lpage.paired { background: transparent; box-shadow: none; padding: 0; flex-direction: row; gap: 8px; }
.spane { flex: 1 1 0; min-width: 0; border-radius: 10px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(20,20,20,.06), 0 1px 2px rgba(20,20,20,.05); overflow: hidden; display: flex; flex-direction: column; transition: flex .42s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.spane.front { box-shadow: 0 0 0 1px rgba(20,20,20,.14), 0 1px 3px rgba(20,20,20,.08); }
.lpage.opening .spane.front { flex-grow: 12; transition: none; }
.lpage.opening .spane:not(.front) { flex-grow: 0.0001; opacity: 0; transition: none; }
.sbar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid rgba(20,20,20,.07); color: #858586; flex-shrink: 0; }
.sbar .host { flex-grow: 1; text-align: center; font-size: 12px; font-weight: 500; color: #141414; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbody { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lpair { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: rgba(20,20,20,.06); }
.lpair .half { flex: 1; min-width: 0; display: flex !important; align-items: center; gap: 7px; height: 26px; padding: 0 7px; border-radius: 7px; font-size: 12.5px; color: #656566; }
.lpair.on .half { background: #fff; color: #141414; box-shadow: 0 1px 2px rgba(20,20,20,.08); }
.lpair .half .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpeek, .pk-card { transition: background .3s, top .42s cubic-bezier(.2, .8, .2, 1), bottom .42s cubic-bezier(.2, .8, .2, 1), left .42s cubic-bezier(.2, .8, .2, 1), right .42s cubic-bezier(.2, .8, .2, 1), border-radius .42s, box-shadow .42s; }
.lpage { transition: padding .42s cubic-bezier(.2, .8, .2, 1); }
.lpeek.closing { background: transparent; transition: background .2s; }
.lpeek.closing .pk-btns { opacity: 0; transition: opacity .12s; }

/* ---------------------------------------------------------------- added for every chapter's window */
.yp { --ease: cubic-bezier(.16, 1, .3, 1); }
.live button { cursor: default; }
.lnew { width: 100%; box-sizing: border-box; }
.lnew:hover { color: #6e6e6f; }
.lrow.born { animation: kid .3s cubic-bezier(.2,.8,.2,1) both; }
.plink { font: inherit; }
.code { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.code div { display: flex; gap: 10px; align-items: center; font: 12px ui-monospace, Menlo, monospace; color: rgba(20,20,20,.42); }
.code span { width: 24px; text-align: right; }
.hit { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.answer { position: absolute; left: 22px; right: 22px; bottom: 18px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 14px 30px rgba(20,20,20,.14); display: flex; flex-direction: column; gap: 10px; animation: kid .3s var(--ease) both; }
.an-q { display: flex; align-items: center; gap: 8px; color: #959596; font-size: 12px; }
.an-a { line-height: 1.5; }
.an-b { display: flex; gap: 8px; }
.an-b button { height: 30px; padding: 0 12px; border-radius: 8px; background: rgba(20,20,20,.07); display: flex !important; align-items: center; font-weight: 500; }
.an-b button.dark { background: #141414; color: #fff; }
.sizecard { position: absolute; left: 50%; margin-left: -160px; top: 90px; width: 320px; padding: 18px; box-sizing: border-box; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.07), 0 16px 34px rgba(20,20,20,.14); display: flex; flex-direction: column; gap: 14px; animation: kid .3s var(--ease) both; }
.sz-h { color: #959596; font-size: 12px; }
.sz-r { display: flex; gap: 10px; align-items: center; }
.sz-r > div { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.sz-r img { width: 26px; height: 26px; }
.sz-blank { width: 26px; height: 26px; border-radius: 7px; background: rgba(20,20,20,.1); }
.sz-t { display: flex; font-variant-numeric: tabular-nums; }
.sz-t b { font-weight: 600; }
.sz-bar { display: block; height: 6px; border-radius: 3px; background: rgba(20,20,20,.08); }
.sz-bar i { display: block; height: 6px; border-radius: 3px; }
.ask .who svg, .lrow .lface, .lfolder .lface { flex-shrink: 0; }
.pk-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.pk-btns button { display: grid !important; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.06), 0 2px 6px rgba(0,0,0,.16); color: #141414; }
.pk-btns button:hover { background: #f4f4f5; }
.lpeek.growing { background: transparent; transition: background .25s; }
.lpeek.growing .pk-btns { opacity: 0; transition: opacity .1s; }
.lpeek.growing .pk-card { box-shadow: 0 0 0 1px rgba(20,20,20,.06); }
/* Split out of a peek: the page it came over starts whole, the new one opens beside it. */
.lpage.opening .spane:first-child { flex-grow: 12; transition: none; }
.lpage.opening .spane:last-child { flex-grow: .0001; opacity: 0; transition: none; }
.lpage.opening .spane.front { flex-grow: inherit; }
.spane { cursor: default; }
.sbar .sx { display: grid !important; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: #858586; }
.sbar .sx:hover { background: rgba(20,20,20,.07); }
.lpair .half { cursor: default; }
.lpair.on .half:not(.front) { color: #656566; }
.om-field input { all: unset; flex-grow: 1; min-width: 0; font: 17px var(--sans); color: #141414; caret-color: #141414; }
.om-field input::placeholder { color: rgba(20,20,20,.32); }
.om-row { cursor: default; }
.ask { bottom: 22px; animation: kid .3s var(--ease) both; }

/* The pen's note belongs to the state the window starts in: once you touch
   the window it steps aside, and Start Over, in the same hand, stands there. */
.yp .note { transition: opacity .25s; }
.yp .touched .note { opacity: 0; }
.yp .again { all: unset; font-family: var(--font-hand), "Bradley Hand", cursive; font-weight: 500; color: var(--pen); position: absolute; top: 8px; z-index: 2; display: none; font-size: 22px; line-height: 1; cursor: pointer; opacity: .85; }
.yp .again:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.yp .below .again { top: auto; bottom: 8px; }
.yp .again.at-l { left: 7%; } .yp .again.at-r { right: 7%; } .yp .again.at-mid { left: 50%; transform: translateX(-50%); }
.yp .touched .again { display: block; animation: hin .3s ease-out both; }
@keyframes hin { from { opacity: 0; } }
.yp .hero .shot { margin-top: 0; }
.yp .hero-fig { margin-top: 30px; }
/* The review, posted: its note on the line, and the review under the code. */
.answer.sent { opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .22s cubic-bezier(.4, 0, 1, 1); }
.an-a[contenteditable] { outline: none; margin: -6px -8px; padding: 6px 8px; border-radius: 8px; background: rgba(20,20,20,.04); box-shadow: inset 0 0 0 1px rgba(20,20,20,.12); }
.code div { position: relative; }
.code div.noted { margin: -3px -8px; padding: 3px 8px; border-radius: 6px; background: rgba(242,155,87,.14); }
.code .pin { position: absolute; right: 6px; font: 600 10px/16px var(--sans); font-style: normal; width: 16px; text-align: center; border-radius: 8px; background: #141414; color: #fff; }
.review { margin-top: 6px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(20,20,20,.1); overflow: hidden; }
.review.fresh { animation: kid .4s cubic-bezier(.2,.8,.2,1) both; }
.rv-h { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: rgba(20,20,20,.03); border-bottom: 1px solid rgba(20,20,20,.08); }
.rv-av { width: 20px; height: 20px; border-radius: 50%; background: #141414; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.rv-h b { font-weight: 600; }
.rv-chip { height: 20px; padding: 0 8px; border-radius: 10px; background: rgba(224,82,90,.12); color: #c4382c; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; }
.rv-t { color: rgba(20,20,20,.42); font-size: 12px; }
.rv-b { padding: 12px; line-height: 1.5; }

/* Continue, and the seat held after it. */
.lbook { align-self: flex-start; height: 34px; padding: 0 16px; border-radius: 9px; background: #141414; color: #fff; font-weight: 600; display: flex !important; align-items: center; animation: kid .3s var(--ease) both; }
.held { border-radius: 12px; box-shadow: 0 0 0 1px rgba(20,20,20,.1); overflow: hidden; animation: kid .35s var(--ease) both; }
.hd-h, .hd-r, .hd-f { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.hd-h { height: 38px; background: rgba(51,184,163,.1); color: rgba(20,20,20,.55); font-size: 12px; }
.hd-h b { color: #1f8a78; font-size: 13px; }
.hd-r { height: 50px; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(20,20,20,.07); }
.hd-r i { width: 60px; height: 1px; background: rgba(20,20,20,.15); }
.hd-r span { color: rgba(20,20,20,.55); }
.hd-f { height: 54px; color: rgba(20,20,20,.55); }
/* The field's rows as the app's (Omnibox.line): the words in ink, the address in gray, both 13.5. */
.om-row b { font-weight: 400; font-size: 13.5px; }
.om-row .om-d { font-size: 13.5px; color: #6b6b6c; }
.om-sec { color: #959596; }

/* ---------------------------------------------------------------- the feature pages' additions to the window */
.lrow .lend, .lfolder .lend { flex-shrink: 0; font-size: 11.5px; color: rgba(20,20,20,.42); font-variant-numeric: tabular-nums; }
.lrow .lend.x-strong { color: #141414; font-weight: 600; }
.lrow .lend.x-down { color: #1f8a78; font-weight: 600; }
.lrow.strike .t { text-decoration: line-through; color: rgba(20,20,20,.35); }
.lrow.strike .stile { opacity: .45; }
.lfolder em { margin-left: auto; }
.x-kick { font-size: 12px; color: rgba(20,20,20,.45); display: flex; align-items: center; gap: 7px; }
.x-mu { color: rgba(20,20,20,.45); } .x-mu2 { color: rgba(20,20,20,.6); line-height: 1.45; max-width: 52ch; }
.x-card { border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08); overflow: hidden; }
.x-row { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(20,20,20,.06); font-variant-numeric: tabular-nums; }
.x-row:last-child { border-bottom: 0; }
.x-row b { font-weight: 600; min-width: 56px; text-align: right; }
.x-row.tot { background: rgba(20,20,20,.025); }
.x-row svg { color: rgba(20,20,20,.45); vertical-align: -1px; }
.x-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-right: 6px; }
.x-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.x-st.ok { color: #1f8a78; } .x-st.bad, .x-bad { color: #c4382c; }
.x-add { color: #1f8a78; font-weight: 600; } .x-del { color: #c4382c; font-weight: 600; }
.x-checks { font-size: 12.5px; color: rgba(20,20,20,.6); }
.x-btn { align-self: flex-start; height: 36px; padding: 0 18px; border-radius: 9px; background: #141414; color: #fff; font-weight: 600; display: flex !important; align-items: center; }
.x-btns { display: flex; gap: 8px; align-items: center; }
.x-btns.x-end { justify-content: flex-end; }
.x-p, .x-q, .x-pd, .x-qd { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.x-p { background: #141414; color: #fff; } .x-p .lkeys kbd { color: rgba(255,255,255,.7); }
.x-q { background: rgba(20,20,20,.07); color: #141414; }
/* Settings */
.x-set { display: flex; flex-direction: column; gap: 8px; }
.x-set-h { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 4px; color: rgba(20,20,20,.5); }
.x-set-h b { color: #141414; }
.x-sec { font-size: 12px; color: rgba(20,20,20,.45); margin-top: 6px; }
.x-cell { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08); }
.x-cell > div { display: flex; flex-direction: column; gap: 2px; }
.x-cell > div span { color: rgba(20,20,20,.5); font-size: 12px; }
.x-ok { width: 22px; height: 22px; border-radius: 6px; background: rgba(31,138,120,.12); color: #1f8a78; display: grid; place-items: center; font-weight: 700; }
.x-prompt { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.1); line-height: 1.5; font-size: 14px; }
.x-var { font: 500 12px ui-monospace, Menlo, monospace; color: #7c4dff; background: rgba(124,77,255,.08); padding: 1px 4px; border-radius: 4px; }
.x-opt { display: flex; align-items: center; gap: 12px; height: 40px; }
.x-opt > span:first-child { width: 64px; color: rgba(20,20,20,.5); }
.x-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(20,20,20,.06); }
.x-seg b { font-weight: 500; padding: 5px 10px; border-radius: 7px; color: rgba(20,20,20,.6); white-space: nowrap; }
.x-seg b.on { background: #fff; color: #141414; box-shadow: 0 1px 2px rgba(20,20,20,.1); }
.x-time, .x-pick { padding: 5px 10px; border-radius: 8px; background: rgba(20,20,20,.06); display: inline-flex; gap: 6px; align-items: center; }
.x-last { margin-top: 4px; font-size: 12px; color: rgba(20,20,20,.5); }
/* Tables, answers */
.x-table > div { display: grid; grid-template-columns: 1.4fr .8fr 1fr; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(20,20,20,.06); font-variant-numeric: tabular-nums; }
.x-table > div:last-child { border-bottom: 0; }
.x-table > div > span:first-child { display: flex; align-items: center; gap: 8px; }
.x-table .x-th { height: 32px; font-size: 11.5px; color: rgba(20,20,20,.45); background: rgba(20,20,20,.025); }
/* Developer Mode band, issues, measure, inspector */
.x-band { margin: -28px -28px 4px; height: 38px; padding: 0 8px 0 12px; display: flex; align-items: center; gap: 8px; font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; color: rgba(20,20,20,.75); flex-shrink: 0;
  border-bottom: 1px solid rgba(20,20,20,.07); background: repeating-linear-gradient(135deg, rgba(250,204,33,.16) 0 8px, rgba(20,20,20,.035) 8px 16px); }
.x-band > svg { color: rgba(20,20,20,.5); flex-shrink: 0; }
.x-door { width: 28px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: rgba(20,20,20,.55); }
.x-door.on { background: rgba(20,20,20,.08); color: #141414; }
.x-err { font: 600 12.5px var(--sans); color: #c4382c; margin-right: 4px; }
.x-issues { position: absolute; right: 16px; top: 54px; width: 330px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 16px 34px rgba(20,20,20,.16); overflow: hidden; animation: kid .3s var(--ease) both; }
.x-ih { display: flex; gap: 8px; align-items: baseline; padding: 12px 14px 8px; }
.x-ir { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-top: 1px solid rgba(20,20,20,.06); font-size: 12px; }
.x-ir.bad { color: #c4382c; } .x-ir.warn { color: #b26b12; }
.x-if { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; background: rgba(20,20,20,.03); border-top: 1px solid rgba(20,20,20,.06); }
.x-rx, .x-ry { position: absolute; background: #F6F6F8; z-index: 1; }
.x-rx { left: 0; right: 0; top: 0; height: 16px; border-bottom: 1px solid rgba(20,20,20,.1); background-image: repeating-linear-gradient(90deg, rgba(20,20,20,.25) 0 1px, transparent 1px 10px); background-size: 100% 5px; background-position: bottom; background-repeat: no-repeat; }
.x-ry { left: 0; top: 0; bottom: 0; width: 16px; border-right: 1px solid rgba(20,20,20,.1); background-image: repeating-linear-gradient(0deg, rgba(20,20,20,.25) 0 1px, transparent 1px 10px); background-size: 5px 100%; background-position: right; background-repeat: no-repeat; }
.x-hero { position: absolute; left: 52px; top: 74px; display: flex; flex-direction: column; gap: 8px; }
.x-box { position: absolute; left: 52px; display: grid; place-items: center; font-weight: 600; }
.x-box.a { top: 182px; width: 190px; height: 42px; border-radius: 10px; background: #141414; color: #fff; outline: 2px solid #ff4fa3; outline-offset: 2px; }
.x-box.b { top: 248px; width: 150px; height: 32px; color: #141414; outline: 1.5px dashed #ff4fa3; outline-offset: 2px; border-radius: 6px; }
.x-gap { position: absolute; left: 146px; top: 226px; height: 22px; border-left: 1.5px dashed #ff4fa3; }
.x-gap span { position: absolute; left: 6px; top: 3px; font: 700 11px var(--sans); color: #fff; background: #ff4fa3; padding: 1px 5px; border-radius: 5px; }
.x-rules { position: absolute; right: 18px; bottom: 18px; width: 260px; padding: 14px; border-radius: 14px; background: #141414; color: #ececec; font: 12px/1.7 ui-monospace, Menlo, monospace; box-shadow: 0 16px 34px rgba(20,20,20,.22); }
.x-rules span { color: #8d8d90; } .x-rules em { font-style: normal; color: #c9b3ff; background: rgba(255,255,255,.1); padding: 0 4px; border-radius: 4px; }
.x-rules s { color: #7a7a7d; } .x-rules .x-p { margin-top: 8px; background: #fff; color: #141414; font-family: var(--sans); }
.x-insp { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: #fbfbfc; border-left: 1px solid rgba(20,20,20,.1); display: flex; flex-direction: column; }
.x-it { display: flex; gap: 12px; height: 34px; align-items: center; padding: 0 12px; font-size: 12px; color: rgba(20,20,20,.5); border-bottom: 1px solid rgba(20,20,20,.08); white-space: nowrap; overflow: hidden; }
.x-it b { color: #141414; }
.x-insp pre { margin: 0; padding: 12px; font: 12px/1.7 ui-monospace, Menlo, monospace; color: #6b3fa0; }
.x-insp mark { background: rgba(63,133,250,.16); color: #1a5fd0; border-radius: 3px; }
.x-styles { margin: auto 12px 12px; padding: 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08); font: 12px/1.6 ui-monospace, Menlo, monospace; }
.x-styles span { color: rgba(20,20,20,.45); }
.lpage:has(.x-insp) > :not(.x-insp):not(.x-band) { max-width: 50%; }
.lpage:has(.x-band) .x-insp { top: 38px; }
/* Menus, cards */
.x-menu { position: absolute; width: 210px; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 0 0 .5px rgba(20,20,20,.12), 0 14px 34px rgba(20,20,20,.18); display: flex; flex-direction: column; animation: kid .25s var(--ease) both; z-index: 3; }
.x-menu > div { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 13px; }
.x-menu > div.on { background: #3f85fa; color: #fff; }
.x-menu > div.off { color: rgba(20,20,20,.4); }
.x-menu > i { height: 1px; margin: 4px 8px; background: rgba(20,20,20,.1); }
.x-menu svg { margin-left: auto; }
.x-cmd { width: 250px; } .x-tag { margin-left: auto; font-size: 11px; opacity: .6; }
.x-permit { width: 400px; margin-left: -200px; }
.x-permit .x-btns { flex-wrap: nowrap; }
.x-permit .x-btns button { padding: 0 11px; }
.x-hand { gap: 8px; padding-right: 6px; }
.ldock.light .x-pd, .ldock .x-pd { height: 30px; padding: 0 12px; background: #141414; color: #fff; } .ldock.light .x-qd, .ldock .x-qd { height: 30px; padding: 0 10px; background: none; color: rgba(20,20,20,.55); }
.lpage .x-om { left: 16px; right: 16px; top: 48px; height: auto; bottom: auto; padding-bottom: 54px; }
.x-om .om-field span { color: #141414; }
.x-oma { margin: 8px 16px 0; padding: 12px 14px; border-radius: 12px; background: rgba(20,20,20,.04); line-height: 1.5; font-size: 13.5px; display: flex; flex-direction: column; gap: 10px; }
.x-mail { display: flex; flex-direction: column; gap: 12px; }
.x-from { display: flex; gap: 10px; align-items: center; }
.x-from div { display: flex; flex-direction: column; } .x-from span { font-size: 12px; color: rgba(20,20,20,.45); }
.x-av { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; }
.x-draft { padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(124,77,255,.4); background: rgba(124,77,255,.04); line-height: 1.5; }
.x-draft-h { font-size: 11.5px; color: #7c4dff; font-weight: 600; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.x-task { position: absolute; left: 22px; right: 22px; bottom: 18px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 14px 30px rgba(20,20,20,.14); display: flex; flex-direction: column; gap: 8px; animation: kid .3s var(--ease) both; }
.x-pills { display: flex; gap: 6px; }
.x-pill { height: 24px; padding: 0 9px; border-radius: 7px; background: rgba(20,20,20,.06); display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(20,20,20,.6); }
.x-pill.on { background: rgba(124,77,255,.1); color: #6a3fe0; }
.x-tl { display: flex; align-items: center; height: 30px; padding: 0 4px; font-size: 14px; }
.x-acts { display: flex; gap: 14px; padding: 0 4px; font-size: 12px; color: rgba(20,20,20,.5); }
.x-acts span { display: inline-flex; gap: 5px; align-items: center; }
.x-chat { position: absolute; right: 0; top: 0; bottom: 0; width: 290px; background: #fff; border-left: 1px solid rgba(20,20,20,.08); padding: 16px 14px 60px; display: flex; flex-direction: column; gap: 10px; z-index: 4; }
.x-ch-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; } .x-ch-h .x-mu { font-size: 12px; }
.x-msg { align-self: flex-end; max-width: 85%; padding: 8px 11px; border-radius: 12px; background: #141414; color: #fff; line-height: 1.4; }
.x-msg.q { background: rgba(20,20,20,.08); color: rgba(20,20,20,.6); }
.x-msg em { display: block; font-style: normal; font-size: 11px; opacity: .7; margin-top: 2px; }
.x-step { display: flex; gap: 8px; align-items: center; color: rgba(20,20,20,.55); font-size: 12.5px; }
.x-step.now { color: #141414; font-weight: 500; }
.x-tick { width: 14px; text-align: center; color: #1f8a78; font-weight: 700; }
.x-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.x-in { position: relative; height: 38px; padding: 0 6px 0 12px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(20,20,20,.12); display: flex; align-items: center; gap: 6px; color: rgba(20,20,20,.42); font-size: 12.5px; }
/* The quiet column: a stamp over a turn as Messages draws it; your message's right-click menu; Edit's line over the field */
.x-stamp { align-self: center; font-size: 11px; color: rgba(20,20,20,.45); margin-bottom: -2px; } .x-stamp b { font-weight: 600; }
.x-msg { transition: opacity .2s, box-shadow .15s; cursor: default; }
.x-msg.picked { box-shadow: 0 0 0 3px rgba(10,132,255,.35); }
.x-chat .x-cut { opacity: .4; }
.x-cm { position: absolute; z-index: 6; min-width: 150px; padding: 5px; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 .5px rgba(20,20,20,.12), 0 10px 30px rgba(20,20,20,.18); display: flex; flex-direction: column; font-size: 13px; animation: kid .15s var(--ease) both; }
.x-cm button { display: flex; align-items: center; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: #141414; font: inherit; text-align: left; cursor: default; }
.x-cm button:hover, .x-cm button:first-child { background: #0a84ff; color: #fff; }
.x-cm:hover button:first-child:not(:hover) { background: none; color: #141414; }
.x-cm .x-kb { margin-left: auto; opacity: .55; font-size: 12px; }
.x-edl { display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12px; color: rgba(20,20,20,.5); }
.x-edl[hidden], .x-ed[hidden], .x-ph[hidden] { display: none; }
.x-edl span { flex: 1; }
.x-edl button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 5px; background: none; color: inherit; cursor: pointer; }
.x-ed { color: #141414; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.x-caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -3px; background: #0a84ff; animation: xblink 1s steps(1) infinite; }
@keyframes xblink { 50% { opacity: 0; } }
.lpage:has(.x-chat) > :not(.x-chat):not(.ldock) { max-width: calc(100% - 300px); }
.lpage:has(.x-chat) .ldock { left: calc(50% - 150px); }
.x-photo { height: 120px; border-radius: 12px; background: linear-gradient(135deg, #d8c6ae, #a48c72 60%, #7e6a55); }
.x-nt { display: flex; flex-direction: column; gap: 8px; padding-top: 30px; }
.x-nt-h { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.x-ntr { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 10px 0 14px; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.07), 0 1px 2px rgba(20,20,20,.04); font-size: 14px; }
.x-doc { line-height: 1.7; font-size: 14px; max-width: 58ch; }
.x-sel { background: rgba(63,133,250,.22); border-radius: 3px; }
.x-link { color: #1a5fd0; text-decoration: underline; text-underline-offset: 3px; }
.x-rewrite { position: absolute; left: 22px; right: 22px; bottom: 18px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 14px 30px rgba(20,20,20,.14); display: flex; flex-direction: column; gap: 8px; line-height: 1.5; font-size: 14px; }
.x-rewrite > .x-mu { font-size: 12px; }
.x-sum { position: absolute; left: 160px; top: 252px; width: 320px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 14px 30px rgba(20,20,20,.16); line-height: 1.5; display: flex; flex-direction: column; gap: 6px; animation: kid .3s var(--ease) both; }
.x-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.x-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: rgba(20,20,20,.5); }
.x-form label:nth-child(4) { grid-column: span 2; }
.x-form i { position: relative; font-style: normal; height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.12); font-size: 13.5px; color: rgba(20,20,20,.35); }
.x-form i.on { color: #141414; background: rgba(124,77,255,.03); }
.x-src { position: absolute; right: 10px; width: 7px; height: 7px; border-radius: 50%; }
.x-src.p { background: #3f85fa; } .x-src.d { background: #9A6BFF; }
/* Outside the window: a terminal laid over its corner */
.yp .term { position: absolute; z-index: 3; width: 58%; padding: 14px 16px; border-radius: 14px; background: #161518; color: #ececf0; font: 12.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 50px -10px rgba(0,0,0,.45); }
.yp .term .d { color: #8d8996; } .yp .term .a { color: #c9b3ff; } .yp .term .o { color: #8fe0a8; } .yp .term .y { color: #f5c76a; }
.yp .term.bl { left: -5%; bottom: -12%; width: 42%; } .yp .term.br { right: -5%; bottom: -12%; width: 42%; } .yp .term.solo { position: relative; width: 100%; font-size: 14px; padding: 22px 24px; }
.yp .ch-fig.has-term { margin-bottom: 70px; }
@media (max-width: 900px) { .yp .term { position: relative; width: 100%; left: 0 !important; right: 0 !important; bottom: 0 !important; margin-top: 12px; } .yp .ch-fig.has-term { margin-bottom: 0; } }
/* Tools grid and the parts */
.yp .tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.yp .tool { padding: 14px 16px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; color: var(--muted); line-height: 1.45; }
.yp .tool b { display: block; margin-bottom: 4px; color: var(--ink); font: 600 13px ui-monospace, "SF Mono", Menlo, monospace; }
.yp .part { padding-top: 150px; }
.yp .part .h2 { max-width: 20ch; }
.yp .part p.lead { margin: 18px 0 0; max-width: 46ch; color: var(--ink2); font-size: 19px; }
.yp .bul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; max-width: 40ch; font-size: 16px; color: var(--muted); line-height: 1.45; }
.yp .bul li { padding-left: 20px; position: relative; }
.yp .bul li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--pen-violet); }
.yp .bul b { color: var(--ink); font-weight: 600; }
.yp .ch-text code, .yp .bul code { font: 500 .86em ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 5px; border-radius: 5px; background: var(--wash); }
.yp .cmdline { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 11px; background: #161518; color: #ececf0; font: 14px ui-monospace, "SF Mono", Menlo, monospace; }
.yp .cmdline b { color: #c9b3ff; font-weight: 500; }
.yp .compare { margin-top: 120px; }
.yp .compare table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--well); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hairline); }
.yp .compare th, .yp .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.yp .compare tr:last-child td { border-bottom: 0; }
.yp .compare th { font-size: 13px; color: var(--muted); font-weight: 600; }
.yp .compare td.y { font-weight: 600; color: var(--ink); }
.yp .compare td.n { color: var(--muted); }
.yp .plans { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.yp .plan { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-radius: 11px; background: var(--well); box-shadow: inset 0 0 0 1px var(--hairline); font-weight: 600; font-size: 15px; }
.yp .plan i { width: 18px; height: 18px; border-radius: 5px; }

/* The open tab of a local page: yellow, black laid over it in dashes (DevTape). */
.lrow.dev.on { position: relative; box-shadow: none; }
.lrow.dev.on::after { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  background: linear-gradient(#fff, #fff) padding-box, repeating-linear-gradient(135deg, #111 0 4px, #FACC21 4px 8px) border-box; border: 1.5px solid transparent; z-index: -1; }
.lrow.dev.on { isolation: isolate; }
/* Measure under the band: the rulers start where the page does. */
.lpage:has(.x-rx) .x-rx { top: 38px; } .lpage:has(.x-rx) .x-ry { top: 38px; }

/* Agents' own marks, and the tools' */
.x-agent { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; color: #141414; }
.x-agent svg { width: 20px; height: 20px; }
.yp .plan .x-agent { width: 20px; height: 20px; color: var(--ink); }
.yp .plan .x-agent svg { width: 19px; height: 19px; }
.yp .tool { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
.yp .tool .ti { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--wash); color: var(--ink); }
.yp .tool .ti svg { width: 20px; height: 20px; }
.yp .compare td.y em { font-style: normal; color: var(--muted); font-weight: 400; }

/* The column's address plate (SidePlate): 34 high at the app's size, a pin's corner, the wash at .55. */
.laddr { height: 32px; flex-shrink: 0; margin: 0 0 8px; padding: 0 11px; border-radius: 9px; background: rgba(20,20,20,.05); display: flex; align-items: center;
  font-size: 12.5px; color: #141414; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.laddr .m { color: rgba(20,20,20,.45); }
.shot.thin .laddr { font-size: 12px; }
/* On a phone's canvas (page.js fit: the window 540 wide, the column 176) */
.shot.thin .x-chat { width: 196px; padding: 12px 10px 56px; font-size: 12px; }
.shot.thin .x-foot { left: 8px; right: 8px; bottom: 8px; }
.shot.thin .lpage:has(.x-chat) > :not(.x-chat):not(.ldock) { max-width: calc(100% - 200px); }
.shot.thin .lpage:has(.x-chat) .ldock { left: calc(50% - 100px); max-width: 150px; overflow: hidden; }
.shot.thin .lpage:has(.x-chat) .ldock .dw { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shot.thin .x-insp { width: 50%; }
.shot.thin .x-acts { display: none; }
.shot.thin .x-hand { left: 10px; right: 10px; transform: none; font-size: 12px; }
.shot.thin .x-hand > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shot.thin .x-issues { width: 280px; right: 10px; }
.shot.thin .x-rules { width: 220px; }
.shot.thin .x-permit { width: 340px; margin-left: -170px; } .shot.thin .x-permit .x-btns button { padding: 0 8px; font-size: 12px; }
.shot.thin .x-sum { left: 60px; }
.shot.thin .x-menu.x-cmd { left: 60px; }
.shot.thin .x-set .x-cell > div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.shot.thin .x-seg b { padding: 5px 7px; }
@media (max-width: 900px) { .yp .term.bl, .yp .term.br { width: 100%; } }
@media (max-width: 600px) { .yp .tools { grid-template-columns: minmax(0, 1fr); } .yp .compare { overflow-x: auto; } .yp .compare table { min-width: 560px; } }
.shot.thin [data-live="a_hero"] .x-chat { display: none; }
.shot.thin [data-live="a_hero"] .lpage > * { max-width: none !important; }
.shot.thin [data-live="a_hero"] .lpage .ldock { left: 50% !important; max-width: none; }
.shot.thin .x-ntr { font-size: 12.5px; gap: 9px; }
.shot.thin .x-ntr > span:not(.grow):not(.stile) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot.thin .x-ntr .x-q { padding: 0 9px; height: 26px; font-size: 12px; }
.shot.thin .x-menu.x-cmd { left: auto; right: 8px; width: 210px; }
.shot.thin .x-band { gap: 4px; font-size: 11.5px; }
.shot.thin .x-band .x-addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot.thin .x-band .x-err { white-space: nowrap; font-size: 11.5px; }
.shot.thin .x-band .x-xtra { display: none; }
.shot.thin .ldock { max-width: calc(100% - 20px); }
.shot.thin .ldock .dw { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* The glass (glass.js): a tile of reeded glass with paint under it, round
   as the icon is, a little bigger than what stands on it, its corner the
   window's plus the room round it. */
.glass { position: relative; isolation: isolate; }
.glass > .gl { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.glass > .gl svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.glass > .gl .fl { position: absolute; inset: 0; }
.glass > :not(.gl) { position: relative; z-index: 1; }
.tile { border-radius: 44px; padding: 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.44), 0 34px 70px -34px rgba(26,26,64,.4), 0 0 0 .5px rgba(0,0,0,.07); }
.ch .tile { padding: 18px; }
.tile .live { box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 26px 50px -22px rgba(10,10,40,.5); }
@media (max-width: 1240px) { .ch .tile { padding: 10px; } }
@media (max-width: 900px) { .tile, .ch .tile { padding: 12px; } }

/* The pen's notes keep a halo of the page's own color, to read near glass. */
.yp .note { text-shadow: 0 0 10px var(--dots-ground), 0 0 2px var(--dots-ground); }
.yp .ch-fig .term { z-index: 3; }

/* The changelog: the newest version on glass, the rest calm on white. */
.log .newest-tile { border-radius: 30px; padding: 22px; margin: 6px 0 10px; }
.log .newest-tile .card.newest { margin: 0; box-shadow: 0 0 0 1px rgba(20,20,20,.06), 0 24px 44px -24px rgba(10,10,40,.5); }
.log .rel-tile { border-radius: 30px; padding: 30px 30px 26px; margin: 8px 0 26px; color: #0d1330; }
.log .rel-tile .head, .log .rel-tile .headline { margin-top: 0; }
.log .rel-tile .headline { font-size: 22px; line-height: 1.32; margin-bottom: 0; max-width: 32ch; }
.log .rel-tile .lb { color: #2a1a7a; }
.log .rel-tile time { color: rgba(30,37,71,.7); }
/* A veil under the words, fading out to the right, so the paint never wins. */
.log .rel-tile::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, rgba(251,250,248,.82) 0%, rgba(251,250,248,.6) 45%, rgba(251,250,248,0) 85%); }
.log .rel-tile > :not(.gl) { text-shadow: 0 1px 12px rgba(251,250,248,.7); }
@media (prefers-color-scheme: dark) {
  .log .rel-tile { color: #eef0ff; }
  .log .rel-tile .lb { color: #c7b6ff; }
  .log .rel-tile time { color: #c9cbe6; }
  .log .rel-tile::after { background: linear-gradient(100deg, rgba(10,10,16,.78) 0%, rgba(10,10,16,.55) 45%, rgba(10,10,16,0) 85%); }
  .log .rel-tile > :not(.gl) { text-shadow: 0 1px 14px rgba(0,0,0,.6); }
}
