/* HeksLog's page: a Page of Heks Design (styles/heks/tokens.css, bundle.css) - its bar, parts, heads and foot are the
   system's - and the pictures of the app it holds. The mockups wear the app's own classes, and this sheet lays them
   out and draws what only a picture has: a device's frame, a hand's marks, a camera. The page's own classes are lp-*,
   because the system already names day, band, rest, box, label, soon and the like. */

:where(.hk) :where(ol,dl,dd,figure){margin:0;padding:0}
.hk [hidden]{display:none !important}
/* words for a screen reader alone, as the app's own .vh: a mockup draws them where the app does */
.hk .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* THE MOCKUPS ARE PICTURES: nothing in them answers a pointer or can be selected */
.lp-duo,.lp-fig > :not(figcaption),.lp-panel,.lp-agent-app,.lp-term{pointer-events:none;user-select:none;-webkit-user-select:none}

/* ---- the hero: the page's head, then the app on a computer and a phone; on a wide page the head stands beside them ---- */
.lp-hero{display:flex;flex-direction:column;gap:var(--s5)}
@media (min-width:980px){
  .lp-hero{display:grid;grid-template-columns:minmax(0,.64fr) minmax(0,1.36fr);align-items:center;column-gap:var(--gap-part)}
}

/* ---- the pair: the app on a computer and on a phone. Each is drawn at its own device's size (the window 1060 wide
   under the camera, 1200 standing still; the phone 375) and scaled to the room the page has - --kw and --kp, set by
   scripts/demos.js from the pair's width ---- */
.lp-hero-fig{display:flex;flex-direction:column;gap:var(--s3)}
.lp-duo{position:relative;height:var(--duo-h,760px)}
/* the camera's fades are alpha masks: #000 there is opacity, not a colour */
.lp-duo.lp-cam{overflow:clip;--lp-fade:32px;
  mask-image:linear-gradient(to right,rgb(0 0 0 / calc(1 - var(--lp-fl))),#000 var(--lp-fade),#000 calc(100% - var(--lp-fade)),rgb(0 0 0 / calc(1 - var(--lp-fr))));
  -webkit-mask-image:linear-gradient(to right,rgb(0 0 0 / calc(1 - var(--lp-fl))),#000 var(--lp-fade),#000 calc(100% - var(--lp-fade)),rgb(0 0 0 / calc(1 - var(--lp-fr))));
  transition:--lp-fl var(--m-glide) var(--lp-cam-ease),--lp-fr var(--m-glide) var(--lp-cam-ease)}
/* a side of the stage the window runs past fades out (place sets --lp-fl, --lp-fr to 1), so a cut edge reads as the
   window going on rather than ending; registered, so the fade moves with the camera */
@property --lp-fl{syntax:'<number>';inherits:true;initial-value:0}
@property --lp-fr{syntax:'<number>';inherits:true;initial-value:0}
.lp-duo.lp-cam.lp-cut{transition:none}
.lp-win-wrap{position:absolute;left:0;top:0;width:1200px;height:700px;transform-origin:0 0;translate:var(--wx,0px) var(--wy,0px);scale:var(--kw,.8)}
/* under the camera the window is drawn narrower, still a computer's: its desk then holds a set row and its popover
   narrow enough to stand whole in the stage */
.lp-cam .lp-win-wrap{width:1060px}
.lp-phone-wrap{position:absolute;left:0;top:0;width:375px;height:780px;transform-origin:0 0;translate:var(--px,0px) var(--py,220px);scale:var(--kp,.75)}
/* THE PAIR IS FILMED (.lp-cam): one device at a time at a size that reads, over a stage of one height - the window drawn
   as tall as the stage and slid along to where the set is written, then to the rest, then the phone come in from the
   side before it - moving only between the phases it shows. A camera's move is a glide, slower than any layer of the app. */
.lp-cam .lp-win-wrap,.lp-cam .lp-phone-wrap{will-change:translate,scale;transition:translate var(--m-glide) var(--lp-cam-ease),scale var(--m-glide) var(--lp-cam-ease)}
.lp-cam{--lp-cam-ease:cubic-bezier(.65,0,.35,1)}
/* a blur redrawn at every scale is what stutters a zoom: while the camera moves, glass is drawn without it */
.lp-moving *{-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
.lp-cam .lp-gone{opacity:0}
.lp-duo.lp-cut .lp-win-wrap,.lp-duo.lp-cut .lp-phone-wrap{transition:none}
/* the computer's window: its frame and title bar, a device's chrome no component draws; it clips what floats in it */
.lp-window{--r:var(--r-card);position:relative;height:100%;display:flex;flex-direction:column;border-radius:var(--r);border:1px solid var(--glass-edge);box-shadow:var(--lift-float);background:var(--ground)}
.lp-win{display:flex;align-items:center;gap:var(--gap-line);height:var(--tap-fine);padding:0 var(--pad-row);border-bottom:1px solid var(--hairline);background:color-mix(in srgb,var(--raised) 55%,transparent)}
.lp-win i{width:10px;height:10px;border-radius:50%;background:var(--track)}
.lp-win span{flex:1;margin-right:46px;text-align:center;font-size:12px;color:var(--ink-faint)}
.lp-dv{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:var(--rail-wide) 380px minmax(0,1fr)}
.lp-rail{width:auto;height:100%}
.lp-rail a{cursor:default}
.lp-grow{flex:1}
.lp-list{min-width:0;padding:var(--pad-head) var(--s4);display:flex;flex-direction:column;gap:var(--s3);border-right:1px solid var(--glass-edge);overflow:hidden}
/* what the app's own sheets lay out (date.css, desk.css, training.css) and Heks Design leaves to them: the date's head,
   the desk's exercise rows and their sets' axis, the history's foot, the rest's sign in a line of what is asked */
.lp-date{display:flex;align-items:center;gap:var(--gap-line);padding:0 0 0 var(--s1)}
.lp-date .t{flex:1;min-width:0}
.lp-date .t p{margin-top:2px}
.desk-log .ex{display:flex;align-items:center;gap:var(--gap-row);width:100%;text-align:left}
.desk-log .ex .t{display:flex;flex-direction:column;flex:1;min-width:0}
.desk-log .hist .r:first-of-type{border-top:0}
.desk-log .hist .prog{display:inline-block;margin-top:var(--s2)}
.meta .lp-rs{white-space:nowrap}
.meta .rest-sign svg{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.2em;margin-right:.2em}
.lp-desk{min-width:0;padding:var(--s3) var(--s3) var(--s5);display:flex;flex-direction:column;gap:var(--s4);container-type:inline-size}
.lp-desk .box > .label{display:block;margin-bottom:var(--s3)}
/* the sets of the open exercise, on an axis of their own at the path's inset */
.desk-log .wsets{padding-left:var(--path-in)}
.desk-log .wsets .set{--ax:calc(var(--node) / 2 - var(--path-in) - 1px)}
.desk-log .wsets .sets .set:last-child::before{content:none}
/* a device's screen off: the app put away on it, or not yet opened - dimmed as a page under a layer is */
.lp-sleep{position:absolute;inset:0;z-index:var(--z-tip);border-radius:inherit;background:var(--scrim);opacity:0;pointer-events:none;transition:opacity var(--m-dawn) var(--ease-move)}
.asleep > .lp-sleep{opacity:1}
/* the phone: its own frame, the app's phone layout inside, the tab bar floating at its foot. The bezel and the island
   are the device's own black */
.lp-phone{--lp-bezel:52px;position:relative;height:100%;border-radius:var(--lp-bezel);border:1px solid var(--glass-edge);box-shadow:0 0 0 var(--s2) color-mix(in srgb,var(--ground) 80%,var(--device)),0 0 0 calc(var(--s2) + 1px) var(--glass-edge),var(--lift-float)}
.lp-island{position:absolute;z-index:var(--z-tip);left:50%;top:var(--s3);width:110px;height:32px;translate:-50% 0;border-radius:var(--r-pill);background:var(--device)}
.lp-ph{--r:var(--lp-bezel);height:100%;border-radius:var(--r)}
.lp-ph-in{padding:58px var(--pad-card) 0;display:flex;flex-direction:column;gap:var(--s3);transition:translate var(--m-layer) var(--ease-out)}
/* under the keypad the training is moved up, as the app scrolls the field being written above the pad */
.lp-ph.lp-up .lp-ph-in{translate:0 -212px}
.lp-ph .path .ex-fold{position:relative}
.lp-ph .path .open .top{display:flex;align-items:flex-start;gap:var(--gap-line)}
.lp-ph .path .open .top .t{flex:1;min-width:0}
.lp-ph .path .open .top .t p{margin-top:2px}
.lp-phone > .tabbar a{cursor:default}
/* what comes and goes on the pair: the rests, the tab bar, the keypad - each eases in and out rather than switching */
.lp-phone > .tabbar,.rail-now,.lp-phone .drawer{transition:opacity var(--m-layer) var(--ease-out),translate var(--m-layer) var(--ease-out)}
.lp-off{opacity:0;translate:0 var(--s3)}
.lp-kp{translate:0 105%;transition:translate var(--m-layer) var(--ease-out)}
.lp-kp.on{translate:0 0}
.lp-kp .sg button{cursor:default}
/* THE DEMOS' MARKS - a finger, a tap's ring, a cursor, a click's ring, a key cap - are a hand's, not the app's: they glide
   at a hand's pace, stand at the held word's layer, later in the page than what they press, and the finger and its ring
   are the white of a touch */
.lp-finger{position:absolute;z-index:var(--z-tip);left:70%;top:85%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;opacity:0;pointer-events:none;
  background:radial-gradient(circle,color-mix(in srgb,var(--touch) 52%,transparent),color-mix(in srgb,var(--touch) 22%,transparent));box-shadow:0 0 0 2px var(--touch),var(--lift-float);
  transition:left var(--m-glide) var(--ease-move),top var(--m-glide) var(--ease-move),opacity var(--m-state),scale var(--m-tap) var(--ease-out)}
.lp-finger.on{opacity:1}
.lp-finger.down{scale:.78}
.lp-tap{position:absolute;z-index:var(--z-tip);width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;pointer-events:none;box-shadow:0 0 0 2px var(--touch);animation:lp-tap 560ms var(--ease-out) forwards}
@keyframes lp-tap{from{scale:.4;opacity:.9}to{scale:1.15;opacity:0}}
@media (prefers-reduced-motion:reduce){ .lp-kp,.lp-phone > .tabbar,.rail-now,.lp-phone .drawer,.lp-win-wrap,.lp-phone-wrap{transition:none} }
/* the set being entered: its boxes are the app's (NumberBox), and a mockup's field takes no caret but the one drawn */
.set.now .nbox{cursor:default}
.entry-pop .sl button,.entry-pop .st button,.choice-menu .cm-at{cursor:default}
/* the band's keys, named under it while one of its chips has the keyboard's focus */
.rir-keys.lp-on{display:flex}
.set .axis svg{opacity:0}
.set.done .axis svg{opacity:1}
/* the keys of a computer, cast: each key the demo presses stands in the window's foot for a moment - a cap drawn
   larger than the window's own type, since it is what the demo is about */
.lp-cast{position:absolute;z-index:var(--z-tip);left:75%;bottom:28px;translate:-50% 0;display:grid;justify-items:center;align-items:end;pointer-events:none;transform-origin:bottom center;scale:max(1,calc(.45 / var(--kw,1)))}
.lp-cast kbd{grid-area:1 / 1;min-width:64px;height:64px;padding:0 18px;margin:0;border-radius:var(--r-card);font:600 24px/1 var(--font-sans);color:var(--ink);
  background:linear-gradient(180deg,color-mix(in srgb,var(--ink) 16%,var(--raised)),color-mix(in srgb,var(--ink) 8%,var(--raised)));
  box-shadow:inset 0 0 0 1px var(--accent-edge),inset 0 calc(-1 * var(--s1)) 0 color-mix(in srgb,var(--ground) 60%,transparent),var(--lift-float);
  animation:lp-key var(--m-layer) var(--ease-spring);transition:opacity var(--m-layer) var(--ease-out),translate var(--m-layer) var(--ease-out),scale var(--m-layer) var(--ease-out)}
.lp-cast kbd.gone{opacity:0;translate:0 calc(-1 * var(--s2));scale:.92}
@keyframes lp-key{from{scale:.7;opacity:0}}
/* a key going down, in the popover's key line or on the drawn keyboard: the accent's tint and edge while it is pressed */
.entry-pop .keys kbd.lp-press{background:var(--accent-tint);box-shadow:inset 0 0 0 1px var(--accent-edge);color:var(--ink)}
.rest .s,.rest .k{display:grid;place-items:center}

/* a figure's caption: its number as a label, then what it shows */
.lp-cap{color:var(--ink-quiet)}
.lp-cap > .label{margin-right:var(--gap-line)}
.lp-cap b{color:var(--ink);font-weight:600}

/* ---- a part's figures, beside its head ---- */
.lp-figs{display:grid;gap:var(--s6) var(--s5)}
@media (min-width:720px){ .lp-figs{grid-template-columns:1fr 1fr} .lp-span2{grid-column:1 / -1} }
.lp-fig{display:flex;flex-direction:column;gap:var(--s3);min-width:0}
.lp-plate{padding:var(--s5);display:flex;flex-direction:column;gap:var(--s4)}
.lp-plate-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s1) var(--gap-head)}

/* a small screen of the app: a few rows on its ground */
.lp-panel{border-radius:var(--r-group);border:1px solid var(--glass-edge);min-height:220px;display:flex}
.lp-panel-in{position:relative;flex:1;padding:var(--s5) var(--s4);display:flex;flex-direction:column;justify-content:flex-end;gap:var(--s4)}

/* the suggestion, one case: the last training's sets, then today's offer they lead to */
/* drawn on the page itself, with no plate: a rule shown, not a screen of the app - its head set off by a line */
.lp-sug{display:flex;flex-direction:column;gap:var(--s4)}
.lp-sug > .lp-plate-head{padding-bottom:var(--s3);border-bottom:1px solid var(--hairline)}
/* three cases of one rule, a glass card each - the load up, the reps up, the load down: what the last training did as
   chips, with what decided it in ink, then today's figure, its change from last time as Differs, and the reason as the
   app words it */
.lp-cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3)}
.lp-ccard{display:flex;flex-direction:column;gap:var(--s4);padding:var(--s4)}
.lp-cpast,.lp-cnow{display:flex;flex-direction:column;gap:var(--s2)}
.lp-cprev{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap-line) var(--s3);min-width:0}
.lp-cprev > .chip:last-child{margin-left:auto}
.lp-cnow{margin-top:auto;padding-top:var(--s4);border-top:1px solid var(--hairline)}
.lp-cfig{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--s1) var(--s3)}
.lp-cfig .differs{align-self:center;margin-left:auto}
@media (max-width:860px){ .lp-cases{grid-template-columns:minmax(0,1fr)} .lp-cnow{margin-top:0} }

/* the keys: the training over a computer's keyboard, each key lit as it goes down; the keys the training answers to a
   shade brighter than the rest */
.lp-kfig{display:flex;flex-direction:column;gap:var(--s3);height:100%}
.lp-kfig .lp-panel{flex:1}
/* beside the keys, the rest's screen stands as tall as theirs */
.lp-fig > [data-demo="rest"]{flex:1}
/* the rest's screen holds its exercise as the desk draws it: the head, every set, what was done last time and the
   record, and the bar at the screen's foot; on a phone, where nothing stands beside it, the first two sets alone */
[data-demo="rest"] .lp-panel-in{justify-content:flex-start}
[data-demo="rest"] .rest{margin-top:auto}
@media (max-width:719px){ [data-demo="rest"] .lp-more{display:none} }
.lp-kfig .lp-panel-in{justify-content:space-between}
/* its move makes it a layer of its own, so it stands at the popover's layer: the popover it holds covers the rest bar,
   which stands at the sticky one */
.lp-kex{position:relative;z-index:var(--z-pop);display:flex;flex-direction:column;gap:var(--s3);transform:translateY(var(--sy,0px));transition:opacity var(--m-layer) var(--ease-out),translate var(--m-layer) var(--ease-out),transform var(--m-layer) var(--ease-out)}
.lp-kex.lp-leave{opacity:0;translate:0 calc(-1 * var(--s2))}
.lp-kex.lp-enter{animation:lp-in var(--m-layer) var(--ease-out)}
.lp-kex .rir-band .chip.lp-focus{outline:var(--ring) solid var(--focus);outline-offset:calc(-1 * var(--ring))}
.lp-kfig .rest{transition:opacity var(--m-layer) var(--ease-out),translate var(--m-layer) var(--ease-out)}
/* a computer's keyboard, drawn: its caps are the keyboard's, not the system's Shortcuts, sized to the room it has */
.lp-kb{--kg:var(--s1);--kh:calc((100cqi - 14 * var(--kg)) / 15 * .86);container-type:inline-size;display:flex;flex-direction:column;gap:var(--kg);padding:var(--s3);border-radius:var(--r-group)}
.lp-kr{display:flex;gap:var(--kg)}
.lp-kb kbd{flex:var(--u,1) 1 0;min-width:0;height:var(--kh);margin:0;padding:0;font-size:clamp(9px,2.4cqi,13px);font-weight:500;color:var(--ink-faint);
  transition:background-color var(--m-tap) var(--ease-out),box-shadow var(--m-tap) var(--ease-out),color var(--m-tap) var(--ease-out),translate var(--m-tap) var(--ease-out)}
.lp-kb kbd.lp-kw{font-size:clamp(9px,2cqi,12px)}
.lp-kb kbd[data-k]{color:var(--ink-quiet);font-weight:600}
.lp-kb kbd.on{background:var(--accent-tint);color:var(--ink);translate:0 var(--press);box-shadow:inset 0 0 0 1px var(--accent-edge)}
.lp-kud{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:var(--gap-within)}
.lp-kud kbd{flex:1 1 0;height:auto}
.lp-kr:last-child{height:var(--kh)}

/* the plan page: its stages beside the stage in force, as plan.css lays them - the stage's weeks, then its rules */
.lp-planfig{display:grid;gap:var(--s4)}
@media (min-width:860px){ .lp-planfig{grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);align-items:start} }
.plan .stg-list .row{min-height:calc(var(--set-row) + var(--s1));gap:var(--gap-head)}
.plan .sc-h{padding:var(--s2) 0 2px}
.plan .sc-h .t{flex:1;min-width:0}
.plan .sc-h .t p{margin-top:2px}
.plan .sc-sub{padding:var(--s4) 0 var(--s2)}
.plan .sc-sub h3{flex:1;font-size:13px;font-weight:600}
.plan .rules.flat{margin:0;gap:0}
.plan .rules.flat .rule:first-child{border-top:0;padding-top:0}
.plan .rule .t .meta{display:block;margin-bottom:2px}
.plan .add-week{margin-top:10px}
.plan .stage-card .btn,.plan .ib{cursor:default}

/* a section's head inside a screen of the app (app.css): its name and what it counts, on one line */
.app .sec{display:flex;justify-content:space-between;align-items:baseline;gap:var(--gap-head)}

/* a routine's page (RoutinePage.svelte, plan.css): its head, the variant switch, the exercises under their columns'
   head; an exercise a variant swaps changes in place, and says it is this variant's */
.lp-variant{position:relative;gap:var(--s3)}
.plan .hd2 .t p{margin-top:var(--s1)}
.plan .ver .seg{max-width:300px}
.lp-plate .sec{padding:var(--s2) var(--s1) 0}
.plan .en .row{min-height:calc(var(--set-row) + var(--s2))}
.lp-swaps .row .t{flex:1;min-width:0}
.lp-swap{display:grid;min-width:0}
.lp-swap > span{grid-area:1 / 1;transition:opacity var(--m-layer) var(--ease-move),translate var(--m-layer) var(--ease-move)}
.lp-to{opacity:0;translate:0 var(--gap-line)}
.swapped .lp-from{opacity:0;translate:0 calc(-1 * var(--gap-line))}
.swapped .lp-to{opacity:1;translate:0 0}
.lp-here{opacity:0;transition:opacity var(--m-layer) var(--ease-move)}
.swapped .lp-here{opacity:1}
@media (prefers-reduced-motion:reduce){ .lp-swap > span,.lp-here{transition:none} }

/* an exercise's progress (ExerciseProgress.svelte): the measure and the window, four tiles, the chart with its legend -
   the component's own styles, its own numbers where the scale has none */
.lp-xp{gap:var(--s3)}
.lp-xp .dh .acts .btn{cursor:default}
.lp-ctl{display:flex;align-items:center;gap:var(--gap-row)}
.lp-measure{width:330px}
.lp-win-seg{margin-left:auto}
.lp-win-seg button{padding:0 var(--s3)}
.lp-xt{--n:4}
.lp-ch7{padding:14px 16px 10px;border-radius:var(--r-group)}
.lp-hh{display:flex;justify-content:space-between;align-items:baseline;gap:var(--gap-head);margin-bottom:var(--s1)}
.lp-lg{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap-line) var(--gap-block);font-size:11px;color:var(--ink-quiet);margin-top:var(--gap-line)}
.lp-lg i{display:inline-block;vertical-align:middle;margin-right:var(--gap-line)}
.lp-lg .ln{width:14px;height:2px;background:var(--accent)}
.lp-lg .pr{width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 2.5px var(--accent)}
.lp-lg .bd{width:14px;height:10px;border-radius:3px;background:color-mix(in srgb,var(--accent) 12%,transparent)}
@media (max-width:760px){
  .lp-ctl{flex-direction:column;align-items:stretch}
  .lp-measure{width:auto}
  .lp-win-seg{margin-left:0}
  .lp-win-seg button{padding:0}
  .lp-xt{--n:2}
}
/* the measures (Measures.svelte, profile.css): the weight and its chart in the goal's band, the goal and its period, the calories */
.lp-body{display:grid;gap:var(--s4)}
@media (min-width:720px){ .lp-body{grid-template-columns:1fr 1fr;align-items:start} }
.lp-body-w,.lp-body-g{display:flex;flex-direction:column;gap:var(--s3);min-width:0}
.lp-rng{max-width:280px}
.measures .wcard{display:block;padding:var(--pad-row)}
.measures .wcard .top{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--gap-head)}
/* the weight's chart, BodyChart.svelte's own styles: the goal's band in ink with dashed edges, every weighing a faint
   dot, the trend in the accent and its last point full on a ring of the ground under it */
.body-chart{margin-top:10px}
.body-chart svg{display:block;overflow:visible}
.body-chart .band{fill:color-mix(in srgb,var(--ink) 4%,transparent);stroke:none}
.body-chart .edge{fill:none;stroke:color-mix(in srgb,var(--ink) 28%,transparent);stroke-width:1;stroke-dasharray:3 4}
.body-chart .rd{fill:var(--ink);opacity:.35;stroke:none}
.body-chart .tl{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.body-chart .now{fill:var(--accent);stroke:var(--well);stroke-width:3}
.measures .goal-card{padding:var(--pad-row)}
.measures .gt{display:flex;align-items:center;gap:var(--gap-row)}
.measures .gt .t-name{flex:1;min-width:0}
.measures .per{margin-top:var(--s3)}
.measures .per .pr .t{flex:1;min-width:0}
.measures .ob .row{justify-content:space-between}
.measures .ob .row .t{flex:1;min-width:0}

/* ---- the agent: a terminal beside the screen it changed ---- */
.lp-agent{display:grid;gap:var(--s4)}
@media (min-width:900px){ .lp-agent{grid-template-columns:1.15fr 1fr;align-items:stretch} .lp-agent .lp-cap{grid-column:1 / -1} }
/* the terminal (Code's .term) stands beside the app at least as tall as its session; narrower than the pair side by
   side, it is a window of fixed height over its lines, following the newest (follow in demos.js) - so the app below it
   stays in view with it */
.lp-term{min-height:340px}
@media (max-width:899px){
  .lp-term{display:flex;flex-direction:column;height:250px;min-height:0}
  .lp-term > .lines{flex:1;min-height:0;overflow:hidden}
  .lp-term > .lines.lp-scrolled{mask-image:linear-gradient(to bottom,transparent,#000 32px);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 32px)}
  .lp-agent-app > .lp-panel-in{padding:var(--s4) var(--s3);gap:var(--s3)}
}
.lp-caret{display:inline-block;width:8px;height:16px;margin-left:2px;vertical-align:-3px;background:var(--accent-lit);animation:lp-blink 1s steps(1) infinite}
.lp-caret.gone{display:none}
@keyframes lp-blink{50%{opacity:0}}
/* a call the agent made, as its terminal prints one: a dot for the call that ran, its arguments a step quieter */
/* the dot as an escape: a sheet served with no charset is read as Latin-1, and the dot's own bytes would show as three signs */
.lp-call::before{content:'\25CF\20';color:var(--kept)}
.lp-call span{color:var(--ink-faint)}
.lp-call,.lp-said{opacity:0;translate:0 var(--s1);transition:opacity var(--m-layer) var(--ease-out),translate var(--m-layer) var(--ease-out)}
.lp-call.on,.lp-said.on{opacity:1;translate:0 0}
.lp-agent-app{position:relative;border-radius:var(--r-group);border:1px solid var(--glass-edge);display:grid}
/* the app's two views share one place, so the panel is as tall as the taller one whichever shows, and nothing under
   it moves when the view changes */
.lp-agent-app > .lp-view{grid-area:1 / 1;transition:opacity var(--m-layer) var(--ease-out)}
/* hidden by opacity, not visibility: a part inside that sets its own visibility (the copy button's word) would show
   through a hidden view */
.lp-gone-view{opacity:0}
/* the variant the agent wrote, arriving in the app */
.lp-arrive{opacity:0;scale:.8;transition:opacity var(--m-layer) var(--ease-out),scale var(--m-spring) var(--ease-spring)}
.lp-arrive.on{opacity:1;scale:1}
/* the keys screen (Keys.svelte, app.css): its way back and new-key button, its title, the fresh key with its copy, the
   active keys, and the sheet the kind of key is chosen in, risen over the screen */
.keyroom .back{display:flex;align-items:center;gap:var(--gap-within)}
.keyroom .back .t{flex:1;min-width:0}
.keyroom .title p{margin-top:var(--s1)}
.keyroom .new,.keyroom .info{margin:0}
.keyroom .tok{flex:1;min-width:0;overflow-wrap:anywhere;font:inherit}
.lp-kfresh,.lp-kactive{animation:lp-in var(--m-layer) var(--ease-out)}
.lp-kfresh.lp-off,.lp-kactive.lp-off,.lp-layer.lp-off{display:none}
.lp-kactive{display:flex;flex-direction:column;gap:var(--s2)}
.lp-kactive .sec{padding:0 var(--s1)}
/* the sheet's layer (Layer.svelte): the scrim and the sheet over the whole screen */
.lp-layer{position:absolute;inset:0;z-index:var(--z-sheet)}
@keyframes lp-in{from{opacity:0;translate:0 var(--s2)}}
/* the cursor of a computer: it glides to what it presses, dips as it presses, and the press leaves a ring. The arrow
   is a system pointer's in either theme: the device's black with a rim of the white of a touch, over its own shadow */
.lp-cursor{position:absolute;z-index:var(--z-tip);left:80%;top:80%;width:20px;height:22px;margin:-2px 0 0 -3px;opacity:0;pointer-events:none;transform-origin:3px 2px;
  transition:left var(--m-glide) var(--ease-move),top var(--m-glide) var(--ease-move),opacity var(--m-state),scale var(--m-tap) var(--ease-out);filter:drop-shadow(0 2px 4px color-mix(in srgb,var(--device) 40%,transparent))}
.lp-cursor.on{opacity:1}
.lp-cursor.down{scale:.86}
.lp-cursor svg{width:100%;height:100%;fill:var(--device);stroke:var(--touch);stroke-width:1.4;stroke-linejoin:round}
.lp-click{position:absolute;z-index:var(--z-tip);width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;pointer-events:none;box-shadow:inset 0 0 0 2px var(--ink);animation:lp-click 520ms var(--ease-out) forwards}
@keyframes lp-click{from{scale:.3;opacity:.9}to{scale:1;opacity:0}}
/* a key pasted into the terminal, marked as a paste is */
.lp-hold{opacity:0}
/* a typed line holds the room of its whole text from the start - the text is typed over an invisible copy of itself, caret and all - so the terminal never grows as it plays */
.lp-type{display:grid;flex:1;min-width:0}
.lp-type > *{grid-area:1 / 1}
.lp-ghost{visibility:hidden}
/* the copy button holds both its words in one place, so it is as wide as the longer and never moves what stands beside it */
.lp-copy-w{display:inline-grid}
.lp-copy-w > span{grid-area:1 / 1;text-align:center}
.lp-copy-w > span:last-child,.lp-copy.done .lp-copy-w > span:first-child{visibility:hidden}
.lp-copy.done .lp-copy-w > span:last-child{visibility:visible}
/* the app's panel holds its width: a long key inside it wraps, it does not push the panel out */
.lp-agent-app > .lp-panel-in{min-width:0}
.lp-kfresh{min-width:0}
/* what the person types is typed over the room of its whole text, beside its prompt; what came before a new ask steps back */
.lp-term .you{display:flex;align-items:flex-start}
.lp-term .lines > p{transition:opacity var(--m-layer) var(--ease-move)}
.lp-term .lines > p.lp-past{opacity:var(--o-aside)}
.lp-paste{display:inline-block;padding:0 var(--s1);border-radius:var(--r-mark);background:var(--accent-tint);color:inherit;word-break:break-all;white-space:pre-wrap;vertical-align:top}
.lp-agent-app .lp-panel-in{justify-content:flex-start}
@media (prefers-reduced-motion:reduce){ .lp-call,.lp-said,.lp-arrive,.entry-pop,.lp-ph-in{transition:none} .lp-caret{animation:none} }

/* ---- the data: what stays on the device, and what an account adds - each a List of its rows ---- */
.lp-data{display:grid;gap:var(--s4)}
@media (min-width:720px){ .lp-data{grid-template-columns:1fr 1fr} }
.lp-data-card{gap:var(--s4)}
/* the rows' separators span the plate's content; their icons stand on its line */
.lp-data-list{margin:0 calc(-1 * var(--pad-row))}

/* ---- the kinds of account (scripts/offer-cards.js): the app's own cards (Kind.svelte), as the gate lays them (gate.css) ---- */
.lp-tiers{display:grid;gap:var(--s4)}
@media (min-width:720px){ .lp-tiers{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))} }
.lp-tiers .kind{padding:var(--s4)}
.lp-tiers .kind .nm{display:flex;flex-direction:column;gap:var(--gap-within)}
.lp-tiers .hl{margin-bottom:0}

/* ---- a phone's page: the same order, tighter ---- */
@media (max-width:719px){
  .lp-figs{gap:var(--s5)}
  .lp-plate{padding:var(--s4);gap:var(--s3)}
}
