mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 04:45:33 -08:00
3193 lines
119 KiB
CSS
3193 lines
119 KiB
CSS
/* Plan2Code Console.
|
|
Light by default, dark when the system asks. No external fonts: the page must
|
|
work offline and under a CSP with no 'unsafe-inline'. */
|
|
|
|
:root {
|
|
--bg: #f6f3ee;
|
|
--panel: #ffffff;
|
|
--panel-2: #fbf9f6;
|
|
--ink: #1d1a17;
|
|
--ink-2: #5d564d;
|
|
--ink-3: #8f8779;
|
|
--rule: #e4ddd1;
|
|
--rule-2: #cfc6b6;
|
|
--accent: #ae4f2b;
|
|
--accent-soft: #fbeee7;
|
|
--accent-ink: #ffffff;
|
|
--accent-line: #dd9b7e;
|
|
--ok: #2f6b45;
|
|
--ok-soft: #e4f0e8;
|
|
--stage: #9a6a12;
|
|
--stage-soft: #fbf0d8;
|
|
--warn: #9c3327;
|
|
--warn-soft: #fbe7e3;
|
|
--focus: #1f6feb;
|
|
--shadow: 0 1px 2px rgba(29, 26, 23, 0.05), 0 8px 24px rgba(29, 26, 23, 0.06);
|
|
--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
--serif: "Iowan Old Style", Charter, Georgia, Cambria, serif;
|
|
--mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
|
|
--radius: 10px;
|
|
/* The column's width: the card, the pager and the documents. */
|
|
--card-width: 880px;
|
|
}
|
|
/* The card-width presets. These must agree with CARD_WIDTHS in palette.js,
|
|
which validates the saved choice and paints data-width on first load. */
|
|
:root[data-width="narrow"] { --card-width: 720px; }
|
|
:root[data-width="wide"] { --card-width: 1080px; }
|
|
|
|
/* Dark is written twice on purpose, and the duplication is the whole mechanism.
|
|
The first copy follows the system unless the person has explicitly asked for
|
|
light; the second is the explicit ask. Without the `:not()` a system-dark
|
|
browser would win over someone who chose light in the settings panel. */
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]) {
|
|
--bg: #171513;
|
|
--panel: #201d1a;
|
|
--panel-2: #262220;
|
|
--ink: #f0ece5;
|
|
--ink-2: #b6afa3;
|
|
--ink-3: #8b8376;
|
|
--rule: #332e29;
|
|
--rule-2: #46403a;
|
|
--accent: #e8825a;
|
|
--accent-soft: #34211a;
|
|
--accent-ink: #1a120e;
|
|
--accent-line: #8a4f36;
|
|
--ok: #74c28f;
|
|
--ok-soft: #1c2d22;
|
|
--stage: #e0ab4c;
|
|
--stage-soft: #332a17;
|
|
--warn: #f0897a;
|
|
--warn-soft: #34201d;
|
|
--focus: #6aa3ff;
|
|
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
|
|
}
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--bg: #171513;
|
|
--panel: #201d1a;
|
|
--panel-2: #262220;
|
|
--ink: #f0ece5;
|
|
--ink-2: #b6afa3;
|
|
--ink-3: #8b8376;
|
|
--rule: #332e29;
|
|
--rule-2: #46403a;
|
|
--accent: #e8825a;
|
|
--accent-soft: #34211a;
|
|
--accent-ink: #1a120e;
|
|
--accent-line: #8a4f36;
|
|
--ok: #74c28f;
|
|
--ok-soft: #1c2d22;
|
|
--stage: #e0ab4c;
|
|
--stage-soft: #332a17;
|
|
--warn: #f0897a;
|
|
--warn-soft: #34201d;
|
|
--focus: #6aa3ff;
|
|
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body { height: 100%; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font: 15px/1.55 var(--sans);
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--focus);
|
|
outline-offset: 2px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.skip {
|
|
position: absolute;
|
|
left: -9999px;
|
|
top: 0;
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
padding: 10px 16px;
|
|
z-index: 50;
|
|
border-radius: 0 0 var(--radius) 0;
|
|
}
|
|
.skip:focus { left: 0; }
|
|
|
|
/* Pin each region to its own row rather than relying on order: the banner
|
|
is fixed now and never a grid item, but keeping the rows explicit means a
|
|
future element that hides the same way cannot shuffle the tracks. */
|
|
.topbar { grid-row: 1; }
|
|
.layout { grid-row: 2; }
|
|
.footer { grid-row: 3; }
|
|
|
|
/* ------------------------------------------------------------- banner */
|
|
|
|
/* A pill floated over the footer, centred on the bar. It used to be the top
|
|
grid row, and every time it appeared it pushed the whole page down a track;
|
|
overlaying it means the message lands without the layout moving under the
|
|
reader's cursor. It covers the footer's middle while it is up, which is
|
|
safe: the messages it carries are the reason nothing there needs pressing. */
|
|
.banner {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: 10px;
|
|
transform: translateX(-50%);
|
|
z-index: 46;
|
|
max-width: min(680px, calc(100vw - 32px));
|
|
padding: 9px 22px;
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 99px;
|
|
box-shadow: var(--shadow);
|
|
text-align: center;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
background: var(--warn-soft);
|
|
color: var(--warn);
|
|
animation: banner-in 0.22s ease;
|
|
}
|
|
@keyframes banner-in {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(7px); }
|
|
}
|
|
.banner.good { background: var(--ok-soft); color: var(--ok); }
|
|
.banner .banner-hint { font-weight: 400; margin-right: 4px; }
|
|
.banner .banner-action { margin: 0 0 0 10px; }
|
|
.banner.info { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
|
|
|
|
/* ------------------------------------------------------------- topbar */
|
|
|
|
.topbar {
|
|
background: var(--panel);
|
|
border-bottom: 1px solid var(--rule);
|
|
padding: 14px 20px 0;
|
|
}
|
|
|
|
.topbar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.topbar-row.second {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-top: 1px solid var(--rule);
|
|
padding-top: 0;
|
|
gap: 16px;
|
|
min-height: 42px;
|
|
}
|
|
.row-left { display: flex; align-items: center; gap: 8px; }
|
|
.brief-btn { border-color: var(--rule-2); color: var(--ink-2); }
|
|
|
|
/* Back to the dashboard: a filled triangle in the highlight color, so it
|
|
recolors with the swatch like everything else that is the person's to use. */
|
|
.home-btn { border-color: var(--rule-2); display: inline-flex; align-items: center; justify-content: center; }
|
|
/* As tall as Stop session beside it, with an icon's narrower sides. */
|
|
.btn.home-btn { padding: 0 6px; align-self: stretch; margin-right: -8px; }
|
|
.home-btn[hidden] { display: none; }
|
|
.home-btn svg { width: 16px; height: 16px; display: block; }
|
|
.home-btn path { fill: var(--accent); }
|
|
.home-btn:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); }
|
|
.home-btn:disabled path { fill: var(--ink-3); }
|
|
|
|
/* Ending the session. Quiet, because it is the one control on the page that
|
|
is never the next step, and red only on hover, because it is not dangerous:
|
|
it saves, then stops. */
|
|
.stop-btn { border-color: var(--rule-2); color: var(--ink-2); }
|
|
.stop-btn:hover:not(:disabled) { color: var(--warn); border-color: var(--warn); }
|
|
.brief-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent-line); }
|
|
|
|
.ident { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
|
|
|
|
/* The session meter: a ring that fills with the points and a few words, in
|
|
the level's colour. Green, amber and red are the page's own done / staged /
|
|
careful colours, so both themes are covered by the variables. */
|
|
.meter-slot { position: relative; flex: none; align-self: center; }
|
|
.meter-pill {
|
|
--m: var(--ok);
|
|
display: inline-flex; align-items: center; gap: 7px;
|
|
padding: 2px 10px 2px 3px;
|
|
border: 1px solid color-mix(in srgb, var(--m) 40%, transparent);
|
|
border-radius: 99px;
|
|
background: var(--panel);
|
|
color: var(--m);
|
|
font: inherit; font-size: 12px; font-weight: 600;
|
|
white-space: nowrap; cursor: pointer;
|
|
}
|
|
.meter-pill[hidden] { display: none; }
|
|
.meter-pill[data-level="yellow"] { --m: var(--stage); }
|
|
.meter-pill[data-level="red"] { --m: var(--warn); background: var(--warn-soft); }
|
|
.meter-pill:hover { background: color-mix(in srgb, var(--m) 10%, var(--panel)); }
|
|
.meter-ring { width: 20px; height: 20px; transform: rotate(-90deg); flex: none; }
|
|
.meter-ring circle { fill: none; stroke-width: 3; }
|
|
.meter-track { stroke: var(--rule); }
|
|
.meter-fill { stroke: var(--m); transition: stroke-dashoffset 0.2s ease; }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.meter-fill { transition: none; }
|
|
}
|
|
.meter-pop {
|
|
position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
|
|
width: max-content; max-width: min(320px, calc(100vw - 32px));
|
|
padding: 10px 12px;
|
|
background: var(--panel); color: var(--ink);
|
|
border: 1px solid var(--rule-2); border-radius: 8px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.meter-pop[hidden] { display: none; }
|
|
.meter-tip { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
|
|
|
|
.badge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
background: var(--accent-soft);
|
|
border: 1px solid var(--accent-line);
|
|
padding: 3px 8px;
|
|
border-radius: 99px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
h1 {
|
|
font: 600 19px/1.2 var(--serif);
|
|
margin: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.progress-block { flex: 1 1 260px; min-width: 200px; max-width: 460px; margin-left: auto; }
|
|
|
|
.progress-label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
margin-bottom: 5px;
|
|
}
|
|
#progress-text { font-weight: 600; color: var(--ink); }
|
|
.confidence { color: var(--ink-3); text-align: right; }
|
|
|
|
.progress-track {
|
|
height: 7px;
|
|
background: var(--rule);
|
|
border-radius: 99px;
|
|
overflow: hidden;
|
|
}
|
|
.progress-fill {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: var(--ok);
|
|
border-radius: 99px;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.tick { color: var(--ink-3); font-variant-numeric: tabular-nums; }
|
|
|
|
/* Planny's own corner. He was 23px in a title bar, which is a logo, not a
|
|
guide: too small to read a mood off and too small to look at. Here he has
|
|
room, he sits above the question list where the eye starts, and his line
|
|
wraps instead of squeezing the view tabs. */
|
|
.dock {
|
|
flex: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 18px 16px 16px;
|
|
border-bottom: 1px solid var(--rule);
|
|
background: var(--panel-2);
|
|
text-align: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
isolation: isolate;
|
|
}
|
|
.dock > :not(.sky) { position: relative; z-index: 1; }
|
|
|
|
/* ---------------------------------------------------------- the flight
|
|
|
|
While Plan2Code is thinking, stars stream past and Planny leans into it:
|
|
tilted forward, bobbing, with speed lines behind him. The motion belongs to
|
|
him, so it reads as "he is off working on it" rather than as a background
|
|
effect. Chosen from ten prototypes (prototypes/thinking-starfield.html).
|
|
|
|
The flight and the spinner are one signal: every line that turns the ring
|
|
also flies. Every other state keeps the dock still, so the motion itself
|
|
carries meaning. */
|
|
|
|
.sky {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity 0.7s ease;
|
|
-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
|
|
mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
|
|
}
|
|
.dock.is-flying .sky { opacity: 0.85; }
|
|
|
|
/* Each star rides a track as wide as the dock and moves by a percentage of
|
|
it, so the field fills whatever width the dock has: 250px, 210px on a
|
|
narrower window, the full width on a phone. The dot sits at the track's
|
|
right-hand end. */
|
|
.sky .star {
|
|
position: absolute;
|
|
left: 0;
|
|
top: var(--y);
|
|
width: 100%;
|
|
height: 0;
|
|
transform: translateX(calc(var(--p) * -100%));
|
|
}
|
|
.sky .star::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 100%;
|
|
width: var(--s);
|
|
height: var(--s);
|
|
border-radius: 50%;
|
|
background: var(--ink-2);
|
|
}
|
|
.sky .star.hot::before { background: var(--accent); }
|
|
.dock.is-flying .sky .star { animation: star-fly var(--dur) linear var(--delay) infinite; }
|
|
@keyframes star-fly {
|
|
from { transform: translateX(10px); }
|
|
to { transform: translateX(calc(-100% - 20px)); }
|
|
}
|
|
|
|
.pilot { display: block; flex: none; line-height: 0; }
|
|
.dock.is-flying .planny { transform: rotate(7deg); transform-origin: 50% 60%; animation: planny-fly 1.7s ease-in-out infinite; }
|
|
@keyframes planny-fly {
|
|
0%, 100% { transform: translateY(0) rotate(8deg); }
|
|
50% { transform: translateY(-3px) rotate(6deg); }
|
|
}
|
|
|
|
/* Speed lines, trailing off his back. Hung off Planny rather than off the
|
|
dock, so they follow him into the phone layout, where he sits beside the
|
|
text instead of above it. */
|
|
.trail { position: absolute; right: 100%; top: 0; width: 40px; height: 100%; margin-right: 4px; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
|
|
.dock.is-flying .trail { opacity: 1; }
|
|
.trail i { position: absolute; right: 0; height: 1.5px; border-radius: 1px; background: linear-gradient(90deg, transparent, var(--ink-3)); }
|
|
.trail i:nth-child(1) { top: 38%; width: 26px; }
|
|
.trail i:nth-child(2) { top: 52%; width: 36px; }
|
|
.trail i:nth-child(3) { top: 66%; width: 22px; }
|
|
.dock.is-flying .trail i { animation: trail-streak 0.7s linear infinite; }
|
|
.dock.is-flying .trail i:nth-child(2) { animation-delay: -0.25s; }
|
|
.dock.is-flying .trail i:nth-child(3) { animation-delay: -0.5s; }
|
|
@keyframes trail-streak {
|
|
from { transform: translateX(6px); opacity: 1; }
|
|
to { transform: translateX(-22px); opacity: 0; }
|
|
}
|
|
|
|
/* The line under him stays readable with stars passing behind it. */
|
|
.dock.is-flying .dock-say { text-shadow: 0 0 3px var(--panel-2), 0 0 6px var(--panel-2), 0 0 10px var(--panel-2); }
|
|
|
|
.dock-say {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
color: var(--ink-2);
|
|
text-wrap: balance;
|
|
}
|
|
|
|
/* ------------------------------------------------------------ Planny */
|
|
|
|
/* The mascot is the page's state, not decoration on top of it: his star eye
|
|
lights up when something is yours and turns while the agent works, his arms
|
|
take a pose for each mood, and he fades and shuts his eye when the
|
|
connection drops. One class from app.js switches all of it. */
|
|
.planny { width: 46px; height: 63px; flex: none; overflow: visible; }
|
|
|
|
.planny .shell,
|
|
.planny .smile,
|
|
.planny .arm path {
|
|
fill: none;
|
|
stroke: var(--ink-2);
|
|
stroke-width: 1.3;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
/* The mouth is a lip, not a grin: at the body's own 1.3 it reads as lipstick. */
|
|
.planny .smile { stroke-width: 0.9; }
|
|
.planny .arm path { stroke-width: 1.2; }
|
|
.planny .arm circle,
|
|
.planny .foot { fill: var(--ink-2); stroke: none; }
|
|
.planny .shell { fill: var(--panel-2); }
|
|
.planny .eye,
|
|
.planny .foot {
|
|
transform-box: fill-box;
|
|
transform-origin: center;
|
|
}
|
|
.planny .eye {
|
|
fill: var(--ink);
|
|
stroke: none;
|
|
animation: planny-blink 6.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* Arms: one set per mood, and only that set shows. Moods without a set of
|
|
their own (happy) keep the resting arms; adrift has none at all, which is
|
|
most of what makes him look lost. Arms that move pivot at the shoulder, so
|
|
they carry view-box origins rather than their own boxes. */
|
|
.planny .arms { display: none; }
|
|
.planny .a-rest { display: inline; }
|
|
.planny:is(.is-point, .is-work, .is-done, .is-gone, .is-adrift) .a-rest { display: none; }
|
|
.planny.is-point .a-point,
|
|
.planny.is-work .a-work,
|
|
.planny.is-done .a-done,
|
|
.planny.is-gone .a-gone { display: inline; }
|
|
.planny .arm.wave,
|
|
.planny .arm.pump-l,
|
|
.planny .arm.pump-r { transform-box: view-box; }
|
|
.planny .arm.wave { transform-origin: 19px 17.5px; animation: arm-wave 0.55s ease-in-out infinite alternate; }
|
|
.planny .arm.pump-l { transform-origin: 3px 18px; animation: arm-pump-l 0.7s ease-in-out infinite; }
|
|
.planny .arm.pump-r { transform-origin: 19px 18px; animation: arm-pump-r 0.7s ease-in-out infinite; }
|
|
|
|
@keyframes planny-blink {
|
|
0%, 93%, 100% { transform: scaleY(1); }
|
|
96% { transform: scaleY(0.1); }
|
|
}
|
|
@keyframes planny-lean {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-1.6px); }
|
|
}
|
|
@keyframes planny-spin { to { transform: rotate(360deg); } }
|
|
@keyframes arm-wave { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
|
|
@keyframes arm-pump-l { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(18deg); } }
|
|
@keyframes arm-pump-r { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(-20deg); } }
|
|
@keyframes foot-step-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.1px); } }
|
|
@keyframes foot-step-b { 0%, 100% { transform: translateY(-1.1px); } 50% { transform: translateY(0); } }
|
|
|
|
/* Something for you to do: star lit in the highlight colour, a wave. */
|
|
.planny.is-point { animation: planny-lean 2.6s ease-in-out infinite; }
|
|
.planny.is-point .eye { fill: var(--accent); }
|
|
|
|
/* The agent has it: the star turns, arms pump and his feet walk on the spot. */
|
|
.planny.is-work .eye { fill: var(--accent); animation: planny-spin 2.6s linear infinite; }
|
|
.planny.is-work .foot.f1 { animation: foot-step-a 0.7s ease-in-out infinite; }
|
|
.planny.is-work .foot.f2 { animation: foot-step-b 0.7s ease-in-out infinite; }
|
|
|
|
/* Nothing outstanding. */
|
|
.planny.is-happy .eye { fill: var(--ok); }
|
|
|
|
/* The server is up, but nothing is answering at the other end of it. Not the
|
|
faded, eye-shut `gone` look: this page is working perfectly, and the thing
|
|
that is not is somewhere else. Grey, still, and no arms: he has nothing to
|
|
do with them until someone answers. */
|
|
.planny.is-adrift .eye { fill: var(--ink-3); animation: none; }
|
|
.planny.is-adrift .smile { opacity: 0.6; }
|
|
|
|
/* Finished. Settled rather than switched off: green star, arms up, eye open.
|
|
The `gone` look below would be wrong here -- the server IS about to go away,
|
|
and a faded Planny with his eye shut reads as a breakage. */
|
|
.planny.is-done .eye { fill: var(--ok); animation: none; }
|
|
.planny.is-done .smile { stroke-width: 1.5; }
|
|
|
|
/* No server: faded, eye shut in the warning colour, arms hanging. */
|
|
.planny.is-gone { opacity: 0.5; }
|
|
.planny.is-gone .eye { fill: var(--warn); animation: none; transform: scaleY(0.12); }
|
|
|
|
/* ------------------------------------------------------ mood variants
|
|
|
|
Each mood above is a family, not a single drawing: app.js rolls a v0/v1/v2
|
|
every time the mood CHANGES, so "your turn" does not look identical every
|
|
time it comes around. v0 is always the plain version written above; the
|
|
variants below are the alternates. Rules stay on the parts (arms, eye,
|
|
feet) rather than on the svg where a variant can help it, so the flight
|
|
transform can keep owning the svg itself while the agent works. */
|
|
|
|
/* Parts only the alternates use. Hidden here, woken by the variant. */
|
|
.planny .spark { opacity: 0; }
|
|
.planny .spark path {
|
|
fill: var(--accent);
|
|
transform-box: fill-box;
|
|
transform-origin: center;
|
|
}
|
|
.planny .zzz path {
|
|
fill: none;
|
|
stroke: var(--ink-3);
|
|
stroke-width: 1.1;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
opacity: 0;
|
|
transform-box: fill-box;
|
|
}
|
|
|
|
@keyframes eye-dart {
|
|
0%, 12%, 32%, 52%, 100% { transform: translateX(0); }
|
|
20% { transform: translateX(-1.7px); }
|
|
44% { transform: translateX(1.7px); }
|
|
}
|
|
@keyframes eye-scan {
|
|
0%, 100% { transform: translateX(-1.9px); }
|
|
50% { transform: translateX(1.9px); }
|
|
}
|
|
@keyframes eye-up {
|
|
0%, 30%, 100% { transform: translateY(0); }
|
|
50%, 72% { transform: translateY(-1.5px); }
|
|
}
|
|
@keyframes planny-float {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-2.6px); }
|
|
}
|
|
@keyframes planny-sway {
|
|
0%, 100% { transform: rotate(-2.6deg); }
|
|
50% { transform: rotate(2.6deg); }
|
|
}
|
|
@keyframes planny-nod {
|
|
0%, 55%, 100% { transform: rotate(0deg); }
|
|
65% { transform: rotate(5deg); }
|
|
80% { transform: rotate(-2deg); }
|
|
}
|
|
@keyframes star-throb {
|
|
0%, 100% { scale: 1; }
|
|
50% { scale: 1.18; }
|
|
}
|
|
@keyframes spark-pop {
|
|
0%, 12%, 46%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
|
|
22% { opacity: 1; transform: scale(1) rotate(18deg); }
|
|
36% { opacity: 0.9; transform: scale(0.7) rotate(38deg); }
|
|
}
|
|
@keyframes zzz-rise {
|
|
0% { opacity: 0; transform: translate(0, 0); }
|
|
25% { opacity: 0.9; }
|
|
100% { opacity: 0; transform: translate(2.5px, -5.5px); }
|
|
}
|
|
|
|
/* point -- something is yours to do. */
|
|
/* v1: an eager little hop while he waves. */
|
|
.planny.is-point.v1 { animation: planny-float 1.4s ease-in-out infinite; }
|
|
/* v2: still leaning, but his star darts like he is pointing things out. */
|
|
.planny.is-point.v2 { animation: planny-lean 3.2s ease-in-out infinite; }
|
|
.planny.is-point.v2 .eye { animation: eye-dart 3.4s ease-in-out infinite; }
|
|
|
|
/* work -- the agent has it. The flight already owns the svg, so every work
|
|
variant plays on his parts only. */
|
|
/* v1: reading. The star sweeps back and forth instead of turning. */
|
|
.planny.is-work.v1 .eye { animation: eye-scan 1.6s ease-in-out infinite; }
|
|
/* v2: full tilt. The star turns faster and throbs while he runs. */
|
|
.planny.is-work.v2 .eye { animation: planny-spin 1.4s linear infinite, star-throb 0.7s ease-in-out infinite; }
|
|
.planny.is-work.v2 .arm.pump-l,
|
|
.planny.is-work.v2 .arm.pump-r,
|
|
.planny.is-work.v2 .foot { animation-duration: 0.45s; }
|
|
|
|
/* happy -- nothing outstanding. */
|
|
/* v1: a quiet float. */
|
|
.planny.is-happy.v1 { animation: planny-float 3.6s ease-in-out infinite; }
|
|
/* v2: sparkles off his corners. */
|
|
.planny.is-happy.v2 .spark { opacity: 1; }
|
|
.planny.is-happy.v2 .spark path { animation: spark-pop 3s ease-in-out infinite; }
|
|
.planny.is-happy.v2 .spark g + g path { animation-delay: 1.5s; }
|
|
|
|
/* done -- session over. */
|
|
/* v1: a small satisfied nod, on a long leash so it reads as occasional. */
|
|
.planny.is-done.v1 { animation: planny-nod 4.4s ease-in-out infinite; transform-origin: 50% 92%; }
|
|
.planny.is-done.v1 .spark { opacity: 1; }
|
|
.planny.is-done.v1 .spark path { animation: spark-pop 4.4s ease-in-out infinite; }
|
|
|
|
/* adrift -- the page is fine, the other end is not. */
|
|
/* v1: a slow lost sway, star drifting up to look for him. */
|
|
.planny.is-adrift.v1 { animation: planny-sway 5.4s ease-in-out infinite; transform-origin: 50% 100%; }
|
|
.planny.is-adrift.v1 .eye { animation: eye-up 5.4s ease-in-out infinite; }
|
|
|
|
/* gone -- no server. */
|
|
/* v1: asleep at the post. */
|
|
.planny.is-gone.v1 .zzz path { animation: zzz-rise 3.2s ease-in infinite; }
|
|
.planny.is-gone.v1 .zzz path:nth-of-type(2) { animation-delay: 1.05s; }
|
|
.planny.is-gone.v1 .zzz path:nth-of-type(3) { animation-delay: 2.1s; }
|
|
|
|
/* ------------------------------------------------------------ wake-up
|
|
|
|
A freshly opened dashboard: Planny powers on centre stage, then glides
|
|
into the rail (boot.js). Each beat is a keyframe on a delay under
|
|
`.booting`, one class for the whole run; the glide's target depends on
|
|
where the rail sits, so boot.js hands it over as --wake-glide. The layer
|
|
takes clicks so none lands on a card underneath while he wakes. */
|
|
.wake { position: fixed; inset: 0; z-index: 45; pointer-events: auto; }
|
|
/* Solid page colour behind the sleeping bot, following light/dark via --bg. */
|
|
.wake::before { content: ""; position: absolute; inset: 0; background: var(--bg); }
|
|
.wake[hidden] { display: none; }
|
|
.wake-bot {
|
|
position: absolute; left: 50%; top: 50%;
|
|
width: 180px; height: 246px; margin: -123px 0 0 -90px;
|
|
overflow: visible; transform-origin: 0 0;
|
|
}
|
|
.wake-bot .shell,
|
|
.wake-bot .smile,
|
|
.wake-bot .limb path { fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
|
|
.wake-bot .smile { stroke-width: 0.9; }
|
|
.wake-bot .limb path { stroke-width: 1.2; }
|
|
.wake-bot .limb circle { fill: var(--ink-2); }
|
|
.wake-bot .shell { fill: var(--panel-2); }
|
|
.wake-bot .foot { fill: var(--ink-3); }
|
|
.wake-bot .eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
|
|
/* The star and its scan sit in .look, so the glance moves them together
|
|
without fighting the star's own open-and-light transform. */
|
|
.wake-bot .look { transform-box: view-box; }
|
|
.wake-bot .scan { fill: none; stroke: var(--accent); stroke-width: 0.5; opacity: 0; }
|
|
.wake-bot .body { transform-box: view-box; transform-origin: 11px 28.8px; }
|
|
/* Arms pivot at the shoulder, so rotating one swings it from the body. */
|
|
.wake-bot .limb { transform-box: view-box; }
|
|
.wake-bot .limb.l { transform-origin: 3px 18px; }
|
|
.wake-bot .limb.r { transform-origin: 19px 18px; }
|
|
/* His Z's sit outside .body, so neither the breathing nor the hop moves them. */
|
|
.wake-bot .zzz { transform-box: view-box; transform-origin: 18px 1px; }
|
|
.wake-bot .zzz path {
|
|
fill: none; stroke: var(--ink-3); stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round;
|
|
opacity: 0; transform-box: fill-box;
|
|
}
|
|
/* Dormant, before the first click: the one line telling them to wake him. */
|
|
.wake.dormant { cursor: pointer; }
|
|
.wake-hint {
|
|
position: absolute; left: 0; right: 0; top: 50%; margin: 147px 0 0;
|
|
text-align: center; color: var(--ink-3); font-size: 0.95rem; letter-spacing: 0.02em;
|
|
opacity: 0; transition: opacity 0.3s ease;
|
|
}
|
|
.wake.dormant .wake-hint { opacity: 1; }
|
|
|
|
/* 0.0 s, powered down: the resting state every beat starts from. Arms hang
|
|
slack against his sides, the star is shut and the smile not yet drawn. */
|
|
.wake-bot { filter: grayscale(1); opacity: 0.55; }
|
|
.wake-bot .limb.l { transform: rotate(-14deg); }
|
|
.wake-bot .limb.r { transform: rotate(14deg); }
|
|
.wake-bot .eye { transform: scaleY(0.1); }
|
|
.wake-bot .smile { stroke-dasharray: 7; stroke-dashoffset: 7; }
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
/* Asleep until the click, on loop: Z's drift up, he breathes, his slack
|
|
arms sway out of step, and his feet pulse like a standby light. Each
|
|
stops the moment .booting swaps in and hands the part to its beat below.
|
|
The Z's keep rising through the pop, so they never jump back. */
|
|
.wake:is(.dormant, .stirring, .booting) .wake-bot .zzz path { animation: zzz-rise 3.2s ease-in infinite; }
|
|
.wake:is(.dormant, .stirring, .booting) .wake-bot .zzz path:nth-of-type(2) { animation-delay: 1.05s; }
|
|
.wake:is(.dormant, .stirring, .booting) .wake-bot .zzz path:nth-of-type(3) { animation-delay: 2.1s; }
|
|
.wake.dormant .wake-bot .body { animation: wake-breathe 4s ease-in-out infinite; }
|
|
.wake:is(.dormant, .stirring) .wake-bot .limb.l { animation: wake-doze-l 3.6s ease-in-out infinite; }
|
|
.wake:is(.dormant, .stirring) .wake-bot .limb.r { animation: wake-doze-r 4.1s ease-in-out infinite; }
|
|
.wake:is(.dormant, .stirring) .wake-bot .foot { animation: wake-standby 2.8s ease-in-out infinite; }
|
|
/* Nudged, for one snore (app.js stir): still asleep, rocked gently side to
|
|
side about his feet, a pair of rocks then a pause, as if being shaken. */
|
|
.wake.stirring .wake-bot .body { animation: wake-nudge 1.3s ease-in-out infinite; }
|
|
/* Startled awake: the Z's blow outward and are gone. */
|
|
.wake.booting .wake-bot .zzz { animation: wake-zzz-pop 0.3s ease-out both; }
|
|
|
|
/* 0.4 s power-on and feet blink · 1.35 s feet plant · 1.5 s / 1.9 s arms
|
|
lift off his sides · 2.5 s star opens with the scan, lit · 2.85 s he
|
|
looks left, then right, then ahead · 3.2 s smile · 3.6 s hop, arms up in
|
|
a cheer, star back to ink. */
|
|
.wake.booting .wake-bot { animation: wake-power 0.3s ease 0.4s both; }
|
|
.wake.booting .wake-bot .foot { animation: wake-feet 0.5s steps(1) 0.4s both, wake-plant 0.2s ease 1.35s both; }
|
|
.wake.booting .wake-bot .limb.l { animation: wake-lift-l 0.45s cubic-bezier(.3,1.6,.5,1) 1.5s both, wake-cheer-l 0.5s ease-out 3.6s both; }
|
|
.wake.booting .wake-bot .limb.r { animation: wake-lift-r 0.45s cubic-bezier(.3,1.6,.5,1) 1.9s both, wake-cheer-r 0.5s ease-out 3.6s both; }
|
|
.wake.booting .wake-bot .eye { animation: wake-eye 0.35s ease-out 2.5s both, wake-star 0.9s ease-in-out 2.5s both; }
|
|
.wake.booting .wake-bot .scan { animation: wake-scan 0.6s ease-in-out 2.5s both; }
|
|
.wake.booting .wake-bot .look { animation: wake-look 0.8s ease-in-out 2.85s both; }
|
|
.wake.booting .wake-bot .smile { animation: wake-smile 0.4s ease-out 3.2s both; }
|
|
.wake.booting .wake-bot .body { animation: wake-hop 0.5s ease-out 3.6s both; }
|
|
|
|
/* 4.3 s, into the rail. The power-on is long finished by now and holds its
|
|
last frame, so the transition owns the transform alone. */
|
|
.wake.gliding .wake-bot { transform: var(--wake-glide); transition: transform 0.6s cubic-bezier(.6,0,.2,1); }
|
|
.wake.gliding::before { opacity: 0; transition: opacity 0.6s ease; }
|
|
|
|
/* The menu comes in as he leaves: pre-hidden while he wakes, then each
|
|
group rises in, a beat after the one above it. */
|
|
.dash.waking .dash-group { opacity: 0; transform: translateY(8px); }
|
|
.dash.waking.is-in .dash-group { animation: dash-rise 0.5s ease both; }
|
|
.dash.waking.is-in .dash-group:nth-child(2 of .dash-group) { animation-delay: 0.06s; }
|
|
.dash.waking.is-in .dash-group:nth-child(3 of .dash-group) { animation-delay: 0.12s; }
|
|
.dash.waking.is-in .dash-group:nth-child(4 of .dash-group) { animation-delay: 0.18s; }
|
|
.dash.waking.is-in .dash-group:nth-child(5 of .dash-group) { animation-delay: 0.24s; }
|
|
.dash.waking.is-in .dash-group:nth-child(6 of .dash-group) { animation-delay: 0.3s; }
|
|
}
|
|
|
|
/* One Planny on screen: the rail's waits out of sight (keeping its place,
|
|
so the glide can measure it) until the big one lands on it. */
|
|
.pilot.is-waking { visibility: hidden; }
|
|
/* The note types in (app.js revealNote): what it has not reached waits. */
|
|
.dash-note .is-untyped { visibility: hidden; }
|
|
|
|
@keyframes wake-power { from { filter: grayscale(1); opacity: 0.55; } to { filter: none; opacity: 1; } }
|
|
/* Off for the delay, then on-off-on-off-on, like a standby light waking. */
|
|
@keyframes wake-feet {
|
|
0% { fill: var(--ink-3); }
|
|
0.1% { fill: var(--accent); }
|
|
25% { fill: var(--ink-3); }
|
|
50% { fill: var(--accent); }
|
|
75% { fill: var(--ink-3); }
|
|
100% { fill: var(--accent); }
|
|
}
|
|
@keyframes wake-plant { from { fill: var(--accent); } to { fill: var(--ink-2); } }
|
|
@keyframes wake-lift-l { from { transform: rotate(-14deg); } to { transform: rotate(0); } }
|
|
@keyframes wake-lift-r { from { transform: rotate(14deg); } to { transform: rotate(0); } }
|
|
/* Up and back down: the arms end on the rest pose the rail draws, so the
|
|
glide hands over to an identical drawing. */
|
|
@keyframes wake-cheer-l {
|
|
0%, 100% { transform: rotate(0); }
|
|
45%, 60% { transform: rotate(116deg); }
|
|
}
|
|
@keyframes wake-cheer-r {
|
|
0%, 100% { transform: rotate(0); }
|
|
45%, 60% { transform: rotate(-116deg); }
|
|
}
|
|
@keyframes wake-eye { from { transform: scaleY(0.1); } to { transform: scaleY(1); } }
|
|
/* The star comes on lit, then settles to ink by the hop. */
|
|
@keyframes wake-star {
|
|
0%, 60% { fill: var(--accent); }
|
|
100% { fill: var(--ink); }
|
|
}
|
|
@keyframes wake-scan {
|
|
0% { opacity: 0; transform: translateX(-3px); }
|
|
20%, 80% { opacity: 1; }
|
|
100% { opacity: 0; transform: translateX(3px); }
|
|
}
|
|
/* A glance each way, then eyes front before the hop: he ends where the rail
|
|
draws him, so the glide still lands on an identical drawing. */
|
|
@keyframes wake-look {
|
|
0%, 100% { transform: translateX(0); }
|
|
17.5%, 42.5% { transform: translateX(-2.2px); }
|
|
61%, 82.5% { transform: translateX(2.2px); }
|
|
}
|
|
@keyframes wake-smile { from { stroke-dashoffset: 7; } to { stroke-dashoffset: 0; } }
|
|
@keyframes wake-hop {
|
|
0%, 100% { transform: translateY(0) scaleY(1); }
|
|
20% { transform: translateY(0) scaleY(0.92); }
|
|
55% { transform: translateY(-3px) scaleY(1.04); }
|
|
}
|
|
@keyframes wake-breathe {
|
|
0%, 100% { transform: scaleY(1); }
|
|
50% { transform: scaleY(1.03); }
|
|
}
|
|
@keyframes wake-nudge {
|
|
0%, 60%, 100% { transform: rotate(0); }
|
|
12% { transform: rotate(-4deg); }
|
|
27% { transform: rotate(4deg); }
|
|
42% { transform: rotate(-3deg); }
|
|
52% { transform: rotate(2deg); }
|
|
}
|
|
@keyframes wake-doze-l {
|
|
0%, 100% { transform: rotate(-14deg); }
|
|
50% { transform: rotate(-7deg); }
|
|
}
|
|
@keyframes wake-doze-r {
|
|
0%, 100% { transform: rotate(14deg); }
|
|
50% { transform: rotate(7deg); }
|
|
}
|
|
@keyframes wake-standby {
|
|
0%, 100% { fill: var(--ink-3); }
|
|
50% { fill: var(--ink); }
|
|
}
|
|
@keyframes wake-zzz-pop {
|
|
from { opacity: 1; transform: scale(1); }
|
|
to { opacity: 0; transform: scale(1.8); }
|
|
}
|
|
@keyframes dash-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
|
|
.views { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
|
|
.views-group { display: flex; align-items: flex-start; min-width: 0; }
|
|
.views-arrow {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: none;
|
|
margin: 9.5px 18px 0 0;
|
|
color: var(--accent);
|
|
pointer-events: none;
|
|
}
|
|
.views-arrow:has(+ .views:empty) { visibility: hidden; }
|
|
.views-arrow svg {
|
|
width: 10px;
|
|
height: 16px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2.2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
opacity: 0.35;
|
|
}
|
|
.views-arrow svg:last-child { opacity: 0.55; }
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
@keyframes views-runway { 0%, 100% { opacity: 0.25; } 30% { opacity: 0.95; } }
|
|
.views-arrow svg { animation: views-runway 1.2s ease-in-out 0.5s 3; }
|
|
.views-arrow svg:nth-child(2) { animation-delay: 0.7s; }
|
|
.views-arrow svg:nth-child(3) { animation-delay: 0.9s; }
|
|
}
|
|
|
|
.view-tab {
|
|
appearance: none;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
color: var(--ink-2);
|
|
font: inherit;
|
|
font-size: 13.5px;
|
|
padding: 6px 13px;
|
|
border-radius: 99px;
|
|
cursor: pointer;
|
|
}
|
|
.view-tab:hover { background: var(--panel-2); color: var(--ink); }
|
|
.view-tab[aria-current="true"] {
|
|
background: var(--accent-soft);
|
|
border-color: var(--accent-line);
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
.view-tab .tab-count {
|
|
font-size: 11px;
|
|
opacity: 0.75;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------- layout */
|
|
|
|
.layout {
|
|
display: grid;
|
|
grid-template-columns: 250px minmax(0, 1fr) 320px;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
border-right: 1px solid var(--rule);
|
|
}
|
|
|
|
.sidebar, .main, .aside { overflow-y: auto; padding: 20px; min-height: 0; }
|
|
.sidebar { flex: 1; }
|
|
.aside { border-left: 1px solid var(--rule); background: var(--panel-2); }
|
|
|
|
/* The question column does not scroll: the CARD does.
|
|
A long question used to push Previous / Next below the fold, so the way on
|
|
disappeared exactly when the question was big enough to need it. The card is
|
|
the only thing here that shrinks, so it takes the squeeze and scrolls its own
|
|
contents while its frame, and the pager under it, stay put. */
|
|
.main {
|
|
padding: 24px 28px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.main > * { width: 100%; max-width: min(var(--card-width), 100%); margin-left: auto; margin-right: auto; }
|
|
/* The card is the column's only framed child: a page holds ONE, with notes
|
|
and lulls folded into it as sections. It takes the squeeze and scrolls its
|
|
own contents while its frame, and the pager under it, stay put. */
|
|
.main > .card {
|
|
flex: 0 1 auto;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable;
|
|
padding-right: 32px;
|
|
}
|
|
/* The dashboard's menu and the launching pane play by the card's rule too:
|
|
they are not .card, but they are the column's whole contents, so they take
|
|
the squeeze and scroll themselves while the column frame stays put. Without
|
|
this the catalog is clipped at the fold with no way to reach it. */
|
|
.main > .dash, .main > .launching, .main > .dash-confirm, .main > .waiting-pane {
|
|
flex: 0 1 auto;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable;
|
|
padding-right: 32px;
|
|
}
|
|
|
|
/* The column itself never scrolls; the card does. */
|
|
.main > .card:not(.is-primary) { flex-shrink: 100; min-height: 104px; }
|
|
.main > .card.is-primary { flex-shrink: 1; min-height: 0; }
|
|
/* A card with a growing answer box takes the column's full height above the
|
|
pager, and still scrolls its own contents. app.js sizes the box to fill it. */
|
|
.main > .card.is-primary.has-grow { flex: 1 1 auto; }
|
|
.pager { flex: none; }
|
|
|
|
/* A document is read top to bottom and has no pinned furniture, so it goes back
|
|
to being an ordinary scrolling column. */
|
|
/* The tail the column no longer carries: a document IS the scroll, so it wants
|
|
room after its last line. The question column does not, because the pager is
|
|
pinned to the bottom of it and anything under the pager is dead space the
|
|
card could have been scrolling through. */
|
|
.main.is-doc { display: block; overflow-y: auto; padding-bottom: 40px; }
|
|
|
|
/* ------------------------------------------------------------ ask pane */
|
|
|
|
/* The Quick question chat: one card-framed pane that fills the column. The
|
|
conversation scrolls; the header and the composer stay put, so the counter,
|
|
New conversation and Send are always in reach. */
|
|
.main > .ask-pane {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--panel);
|
|
border: 1px solid var(--rule);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
.ask-head {
|
|
flex: none;
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 16px 22px 14px;
|
|
border-bottom: 1px solid var(--rule);
|
|
}
|
|
.ask-head h2 { font: 600 21px/1.2 var(--serif); margin: 0; flex: 1; }
|
|
.ask-counter { font: 700 12px/1 var(--mono); color: var(--ink-3); }
|
|
|
|
.ask-list {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
padding: 18px 22px;
|
|
display: flex; flex-direction: column; gap: 10px;
|
|
}
|
|
/* An empty conversation's starter questions, centred where the list is empty. */
|
|
.ask-starters { display: flex; flex-direction: column; gap: 6px; margin: auto 0; width: 100%; max-width: 520px; align-self: center; }
|
|
.ask-starters-lead { color: var(--ink-3); font-size: 13.5px; margin: 0 0 4px; text-align: center; }
|
|
.ask-starter {
|
|
width: 100%;
|
|
padding: 9px 13px;
|
|
border: 1px solid var(--rule);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
font: inherit;
|
|
font-size: 13.5px;
|
|
color: var(--ink-2);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.ask-starter:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
|
|
.ask-starter:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
.ask-starter:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
|
|
.ask-row {
|
|
max-width: 86%;
|
|
border-radius: var(--radius);
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--rule);
|
|
}
|
|
.ask-row.person { align-self: flex-end; background: var(--accent-soft); border-color: var(--accent-line); }
|
|
.ask-row.pending { border-style: dashed; background: transparent; }
|
|
.ask-row.agent { align-self: flex-start; background: var(--panel-2); }
|
|
.ask-row.decision { align-self: flex-end; background: transparent; border-style: dashed; color: var(--ink-2); font-size: 13px; }
|
|
.ask-row .md { max-width: none; }
|
|
.ask-row .md > :first-child { margin-top: 0; }
|
|
.ask-row .md > :last-child { margin-bottom: 0; }
|
|
.ask-row .attach-tray { margin: 8px 0 0; }
|
|
.ask-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.ask-about { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
|
|
.ask-decision { margin: 0; font-weight: 600; }
|
|
.ask-waiting { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
|
|
.ask-failed { color: var(--warn); }
|
|
|
|
.ask-proposal {
|
|
margin-top: 10px; padding: 10px 12px;
|
|
border: 1px solid var(--stage); border-radius: 8px;
|
|
background: var(--stage-soft);
|
|
}
|
|
.ask-proposal .note-kicker { margin-bottom: 4px; }
|
|
.ask-proposal-files, .ask-changed { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }
|
|
.ask-proposal-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
|
|
.ask-proposal-actions input[type="text"] { flex: 1 1 200px; width: auto; padding: 7px 10px; }
|
|
.ask-decided { margin: 8px 0 0; font-weight: 700; font-size: 13px; }
|
|
.ask-decided.approve { color: var(--ok); }
|
|
.ask-decided.decline { color: var(--ink-2); }
|
|
.ask-changed-count { font: 12px/1 var(--mono); color: var(--ink-3); }
|
|
|
|
.ask-composer {
|
|
flex: none;
|
|
padding: 12px 22px 16px;
|
|
border-top: 1px solid var(--rule);
|
|
background: var(--panel);
|
|
}
|
|
.ask-composer.is-dropping { outline: 2px dashed var(--accent); outline-offset: -6px; background: var(--accent-soft); }
|
|
.ask-composer textarea { min-height: 64px; max-height: 40vh; }
|
|
.ask-composer textarea:disabled { opacity: 0.6; cursor: not-allowed; }
|
|
.ask-about-chip {
|
|
display: inline-flex; align-items: center; gap: 8px;
|
|
margin-bottom: 8px; padding: 3px 4px 3px 11px;
|
|
border: 1px solid var(--accent-line); border-radius: 99px;
|
|
background: var(--accent-soft); color: var(--accent);
|
|
font-size: 12px; font-weight: 600;
|
|
max-width: 100%;
|
|
}
|
|
.ask-about-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ask-about-chip .attach-remove { position: static; flex: none; }
|
|
.ask-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
|
|
/* + Add context and its menu. It opens upward, over the list: the composer
|
|
sits at the bottom of a pane that clips anything hanging below it. */
|
|
.ask-context { position: relative; }
|
|
.ask-context-menu {
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: calc(100% + 4px);
|
|
z-index: 20;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 220px;
|
|
max-width: 340px;
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
padding: 4px;
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.ask-context-item {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 10px;
|
|
padding: 7px 10px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
color: var(--ink);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.ask-context-item:hover,
|
|
.ask-context-item:focus-visible { background: var(--accent-soft); outline: none; }
|
|
.ask-context-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ask-context-kind { flex: none; font-size: 11px; color: var(--ink-3); }
|
|
.ask-actions .btn.primary { margin-left: auto; }
|
|
.ask-send-hint { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
|
|
.ask-send-hint + .btn.primary { margin-left: 0; }
|
|
.ask-count { font: 12px/1 var(--mono); color: var(--ink-3); }
|
|
.ask-count.is-over { color: var(--warn); font-weight: 700; }
|
|
.ask-error { color: var(--warn); font-size: 13px; margin: 8px 0 0; }
|
|
|
|
/* The two reasons Send is off read differently, as their wording does: the
|
|
limit is a plain fact, the missing agent is something to fix. */
|
|
.ask-disabled-note { margin: 0; font-size: 12.5px; line-height: 1.35; padding: 6px 10px; border-radius: 8px; }
|
|
.ask-disabled-note.is-limit, .ask-disabled-note.is-waiting { color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--rule); }
|
|
.ask-disabled-note.is-offline { color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn); }
|
|
|
|
/* A reply landed while another tab was open. */
|
|
.view-tab .tab-dot {
|
|
display: inline-block;
|
|
width: 7px; height: 7px;
|
|
margin-left: 6px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* ------------------------------------------------------------ sidebar */
|
|
|
|
.rail-group { margin-bottom: 22px; }
|
|
|
|
.rail-title {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
margin: 0 0 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rail-item {
|
|
display: flex;
|
|
gap: 9px;
|
|
align-items: flex-start;
|
|
width: 100%;
|
|
text-align: left;
|
|
appearance: none;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--ink-2);
|
|
font: inherit;
|
|
font-size: 13.5px;
|
|
padding: 7px 9px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
line-height: 1.35;
|
|
}
|
|
.rail-item:hover:not(:disabled) { background: var(--panel-2); color: var(--ink); }
|
|
.rail-item:disabled { cursor: default; }
|
|
/* The dashboard lists every skill in the rail; the ones the selected spec
|
|
rules out should read as out of reach at a glance, not as one more link. */
|
|
.rail-item.is-unavailable { opacity: 0.35; cursor: not-allowed; }
|
|
.rail-item.is-unavailable .rail-mark { color: var(--ink-3); }
|
|
.rail-item[aria-current="true"] {
|
|
background: var(--accent-soft);
|
|
color: var(--ink);
|
|
font-weight: 600;
|
|
box-shadow: inset 2px 0 0 var(--accent);
|
|
}
|
|
|
|
.rail-mark { flex: none; width: 15px; text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
|
|
.rail-mark.done { color: var(--ok); }
|
|
.rail-mark.staged { color: var(--stage); font-weight: 700; }
|
|
.rail-mark.open { color: var(--accent); }
|
|
|
|
/* The session's own page, above the topic groups. It names the state it is
|
|
-- PAUSED, SESSION ENDED -- in the same small caps the group titles use,
|
|
because it is a peer of theirs, not another question in the list. */
|
|
.rail-end-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.rail-empty { color: var(--ink-3); font-size: 13px; font-style: italic; }
|
|
|
|
/* --------------------------------------------------------------- card */
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--rule);
|
|
border-radius: var(--radius);
|
|
padding: 24px 26px;
|
|
max-width: min(var(--card-width), 100%);
|
|
box-shadow: var(--shadow);
|
|
margin: 0 auto 18px;
|
|
}
|
|
.card.is-answered { border-color: var(--ok); }
|
|
.card.is-staged { border-color: var(--stage); }
|
|
|
|
.card-kicker {
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
margin-bottom: 7px;
|
|
}
|
|
|
|
.card h2 { font: 600 25px/1.22 var(--serif); margin: 0 0 12px; }
|
|
|
|
.card .prompt { color: var(--ink-2); max-width: 62ch; }
|
|
/* Text inside the card runs the card's width. The prompt carries both
|
|
classes, so both measure caps come off here; documents keep .md's 68ch. */
|
|
.card .md, .card .prompt { max-width: none; }
|
|
.card .prompt p:first-child { margin-top: 0; }
|
|
|
|
.card-note {
|
|
background: var(--accent-soft);
|
|
border: 1px solid var(--accent-line);
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
font-size: 13.5px;
|
|
color: var(--ink-2);
|
|
margin: 14px 0 0;
|
|
}
|
|
|
|
/* Folded-in sections. A page holds one card; what used to be cards of their
|
|
own (the "all caught up" lull, the session notes) is a labelled section
|
|
inside it instead. */
|
|
.card-lead { margin: 0 0 16px; }
|
|
.card-extra { margin: 18px 0 0; }
|
|
.note-kicker {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
margin: 0 0 4px;
|
|
}
|
|
.note-title { font: 600 16px/1.3 var(--serif); color: var(--ink); margin: 0 0 6px; }
|
|
|
|
/* ----------------------------------------------------------- hand-off */
|
|
|
|
/* The end of the session. Accented edge because it is the one card on the
|
|
page that is not a question and not a note: it is the way out. */
|
|
.card.handoff { border-color: var(--accent-line); }
|
|
|
|
.handoff-step {
|
|
margin: 20px 0 0;
|
|
padding: 16px 18px;
|
|
background: var(--accent-soft);
|
|
border: 1px solid var(--accent-line);
|
|
border-radius: var(--radius);
|
|
}
|
|
.handoff-label {
|
|
margin: 0 0 6px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
}
|
|
.handoff-where { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
|
|
|
|
/* The command and its Copy share a row until the row will not take them.
|
|
The text itself wraps: with the continue-in-the-browser sentence on the end
|
|
it rarely fits one line, and a sideways scroll would hide exactly the part
|
|
someone needs to read before pasting. Nobody retypes it; that is what Copy
|
|
is for. */
|
|
.handoff-command {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.handoff-code {
|
|
flex: 1 1 260px;
|
|
min-width: 0;
|
|
font: 13px/1.5 var(--mono);
|
|
color: var(--ink);
|
|
background: var(--panel);
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
/* Always on show, unlike the Copy on a fenced code block, which waits for a
|
|
hover it may never get. This one IS the screen's reason to exist. */
|
|
.handoff-copy { flex: none; }
|
|
.handoff-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }
|
|
|
|
/* A session with nothing left to run. Quieter than a real next step: no
|
|
accented box, plain body text and a small command, because there is
|
|
nothing they need to do. */
|
|
.handoff-done { margin: 18px 0 0; color: var(--ink-2); }
|
|
.handoff-done-text p { margin: 0 0 10px; }
|
|
.handoff-done .handoff-code { flex-basis: 180px; font-size: 12px; padding: 6px 10px; }
|
|
|
|
|
|
/* The review offer on a finished build. Louder than the next step, on
|
|
purpose: it has to happen here, before they leave, while the next step can
|
|
wait for a terminal. A solid accent edge and the big button carry that. */
|
|
.review-offer {
|
|
margin: 20px 0 0;
|
|
padding: 18px 20px;
|
|
border: 2px solid var(--accent);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
}
|
|
.review-offer-title { margin: 0 0 6px; font-size: 18px; }
|
|
.review-offer-text { margin: 0; color: var(--ink-2); font-size: 14px; }
|
|
.review-offer .btn-row { margin-top: 14px; }
|
|
.review-offer .review-go { padding: 12px 26px; font-size: 15.5px; }
|
|
.review-offer .handoff-command { margin-top: 10px; }
|
|
|
|
/* The way back to the dashboard on a finished screen. Quieter than the review
|
|
offer: no box, just the button and a small note about the conversation. */
|
|
.dashboard-offer { margin: 20px 0 0; }
|
|
.dashboard-offer > p:first-child { margin: 0; color: var(--ink-2); font-size: 14px; }
|
|
.dashboard-offer .handoff-command { margin-top: 10px; }
|
|
.dashboard-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }
|
|
.handoff-fresh { margin: 16px 0 6px; font-size: 12.5px; color: var(--ink-2); }
|
|
.handoff-fresh-row .handoff-code { flex-basis: 180px; font-size: 12px; padding: 6px 10px; }
|
|
|
|
/* Quick picks under a long multi-select, the review's fix list above all. */
|
|
.presets { margin-top: 12px; gap: 8px; }
|
|
.presets-label { font-size: 12.5px; color: var(--ink-3); }
|
|
|
|
.handoff-close { margin: 16px 0 0; color: var(--ink-2); }
|
|
.handoff-tools { margin-top: 16px; }
|
|
.handoff-unsent {
|
|
margin: 14px 0 0;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
background: var(--stage-soft);
|
|
color: var(--stage);
|
|
font-size: 13.5px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------ options */
|
|
|
|
.options { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
|
|
|
|
.option {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: var(--radius);
|
|
padding: 13px 15px;
|
|
cursor: pointer;
|
|
background: var(--panel);
|
|
transition: border-color 0.12s, background 0.12s;
|
|
}
|
|
.option:hover { border-color: var(--accent-line); background: var(--panel-2); }
|
|
.option:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
.option input { margin: 3px 0 0; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
|
|
.option.is-picked { border-color: var(--stage); background: var(--stage-soft); }
|
|
.option.is-recorded { border-color: var(--ok); background: var(--ok-soft); }
|
|
|
|
/* A settled question is a record. Nothing in it may look pressable. */
|
|
.option.is-locked {
|
|
cursor: default;
|
|
background: var(--panel-2);
|
|
border-color: var(--rule);
|
|
opacity: 0.7;
|
|
}
|
|
.option.is-locked:hover { border-color: var(--rule); background: var(--panel-2); }
|
|
.option.is-locked.is-recorded {
|
|
opacity: 1;
|
|
border-color: var(--ok);
|
|
background: var(--ok-soft);
|
|
}
|
|
.option.is-locked.is-recorded:hover { border-color: var(--ok); background: var(--ok-soft); }
|
|
|
|
.option-mark {
|
|
flex: none;
|
|
width: 17px;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
color: var(--ink-3);
|
|
margin-top: 2px;
|
|
}
|
|
.option-mark.on { color: var(--ok); font-weight: 700; }
|
|
|
|
/* "Something else" is one of the choices, so it sits in the list wearing the
|
|
same clothes. Only the box inside it is clickable, hence the plain cursor. */
|
|
.option.is-other { cursor: default; }
|
|
.option.is-other .option-label label { cursor: pointer; }
|
|
.other-text { margin-top: 9px; min-height: 76px; }
|
|
|
|
.option-body { min-width: 0; flex: 1; }
|
|
.option-label { font-weight: 600; display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; }
|
|
.option-key {
|
|
font: 700 12px/1 var(--mono);
|
|
color: var(--ink-3);
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 4px;
|
|
padding: 3px 5px;
|
|
}
|
|
.option-detail { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
|
|
|
|
.pill {
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
border: 1px solid transparent;
|
|
border-radius: 99px;
|
|
padding: 2px 7px;
|
|
white-space: nowrap;
|
|
}
|
|
.pill.suggested { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
|
|
.pill.done { background: var(--ok-soft); color: var(--ok); }
|
|
.pill.staged { background: var(--stage-soft); color: var(--stage); }
|
|
|
|
/* ------------------------------------------------------ settled answer */
|
|
|
|
.answered {
|
|
margin-top: 20px;
|
|
border: 1px solid var(--ok);
|
|
border-radius: var(--radius);
|
|
background: var(--ok-soft);
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.answered-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0;
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--ok);
|
|
}
|
|
.answered-mark {
|
|
flex: none;
|
|
width: 18px; height: 18px;
|
|
border-radius: 50%;
|
|
background: var(--ok);
|
|
color: var(--panel);
|
|
font: 700 11px/18px var(--sans);
|
|
text-align: center;
|
|
}
|
|
|
|
.answered-values { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 4px; }
|
|
.answered-values li { font-weight: 600; font-size: 15.5px; color: var(--ink); }
|
|
|
|
.answered-text {
|
|
margin: 9px 0 0;
|
|
padding: 2px 0 2px 13px;
|
|
border-left: 3px solid var(--ok);
|
|
color: var(--ink);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* In flight is not settled. Same shape, the color of work in progress. */
|
|
.answered.is-sent { border-color: var(--stage); background: var(--stage-soft); }
|
|
.answered.is-sent .answered-head { color: var(--stage); }
|
|
.answered.is-sent .answered-mark { background: var(--stage); }
|
|
.answered.is-sent .answered-text { border-left-color: var(--stage); }
|
|
|
|
.card.is-inflight { border-color: var(--stage); }
|
|
.card.is-inflight .option.is-locked.is-recorded {
|
|
border-color: var(--stage);
|
|
background: var(--stage-soft);
|
|
}
|
|
.card.is-inflight .option.is-locked.is-recorded:hover {
|
|
border-color: var(--stage);
|
|
background: var(--stage-soft);
|
|
}
|
|
.card.is-inflight .option-mark.on { color: var(--stage); }
|
|
.card.is-inflight .pill.done { background: var(--stage-soft); color: var(--stage); }
|
|
|
|
/* Nothing to show is not an achievement: drop the green. */
|
|
.answered.is-empty { border-color: var(--rule); background: var(--panel-2); }
|
|
.answered.is-empty .answered-head { color: var(--ink-3); }
|
|
.answered.is-empty .answered-mark { background: var(--ink-3); }
|
|
|
|
.answered-none { margin: 9px 0 0; color: var(--ink-2); font-style: italic; }
|
|
|
|
.answered-lock { margin: 11px 0 0; font-size: 12.5px; color: var(--ink-2); }
|
|
|
|
.step.is-locked { opacity: 0.85; }
|
|
.step-body { flex: 1; min-width: 0; }
|
|
|
|
.row-item.is-locked { background: var(--panel-2); }
|
|
.row-title-static { font-weight: 600; margin: 0; }
|
|
|
|
/* -------------------------------------------------------------- pager */
|
|
|
|
.pager {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
/* No bottom margin: the pager is the last thing in the column, so a margin
|
|
here only adds to the column's own bottom padding. */
|
|
margin: 0 auto;
|
|
max-width: min(var(--card-width), 100%);
|
|
}
|
|
.pager.one { justify-content: flex-end; }
|
|
.pager.one .pager-btn { flex: 0 1 auto; }
|
|
|
|
/* The button is as wide as its label, not as wide as its share of the row.
|
|
Filled accent stretched across half the page read as a banner rather than as
|
|
a button. The empty slot and the counter take the slack instead. */
|
|
.pager-btn {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
max-width: 42%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.pager-slot { flex: 1 1 0; min-width: 0; }
|
|
/* Which end it points at, not where it happens to sit. `:last-of-type` was
|
|
wrong at the end of the queue, where "Previous" is the only button and so is
|
|
also the last one: its label drifted into the middle of the row. */
|
|
.pager-btn.next { justify-content: flex-end; text-align: right; }
|
|
|
|
.pager-label { display: grid; min-width: 0; }
|
|
.pager-kicker {
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
}
|
|
/* The one the answer just handed you to. Its label is --accent-ink, never a
|
|
flat white: half the accents are light shades in dark mode, where white on
|
|
the fill drops to about 2:1 and the kicker above the title disappears. */
|
|
.pager-btn.lead {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--accent-ink);
|
|
}
|
|
.pager-btn.lead:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
|
|
/* 0.9, not the 0.78 that reads as quiet furniture: at 10.5px this is small
|
|
text, and the lighter fills drop it under 4.5:1 well before it looks faint. */
|
|
.pager-btn.lead .pager-kicker { color: var(--accent-ink); opacity: 0.9; }
|
|
.pager-btn.lead .pager-arrow { color: var(--accent-ink); }
|
|
|
|
.pager-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.pager-arrow { flex: none; color: var(--ink-3); font-size: 15px; }
|
|
.pager-count { flex: 1 1 0; text-align: center; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
|
|
|
|
/* -------------------------------------------------------------- forms */
|
|
|
|
.field { margin-top: 18px; }
|
|
.field > label,
|
|
.field-head > label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
|
|
.field .help { color: var(--ink-3); font-size: 13px; margin: 0 0 8px; }
|
|
|
|
/* The label and the offer to fill the box sit on one line. */
|
|
.field-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
textarea, input[type="text"] {
|
|
width: 100%;
|
|
font: inherit;
|
|
color: var(--ink);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 8px;
|
|
padding: 11px 13px;
|
|
resize: vertical;
|
|
}
|
|
textarea { min-height: 96px; }
|
|
/* No max-height: the handle can pull the box past the fill, and the card then
|
|
scrolls. Its min-height is the fill, written by app.js. */
|
|
textarea.grow { resize: vertical; }
|
|
/* The border going accent IS the focus signal here, so the page-wide blue
|
|
:focus-visible outline comes off: on a bordered field it reads as a second,
|
|
clashing ring. */
|
|
textarea:focus, input[type="text"]:focus { border-color: var(--accent); outline: none; }
|
|
input[type="text"].invalid { border-color: var(--warn); }
|
|
|
|
.field-error { color: var(--warn); font-size: 13px; margin-top: 6px; }
|
|
.field-ok { color: var(--ok); font-size: 13px; margin-top: 6px; }
|
|
|
|
/* Starter templates on a fresh-idea box: Blank plus the skill's set, between
|
|
the label row and the box. The pressed chip wears the accent. */
|
|
.tpl-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
|
|
.tpl-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 5px 12px;
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 999px;
|
|
background: var(--panel);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s ease, background 0.15s ease;
|
|
}
|
|
.tpl-chip:hover { border-color: var(--accent-line); }
|
|
.tpl-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
.tpl-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
|
|
.tpl-pill {
|
|
padding: 1px 7px;
|
|
border: 1px solid var(--accent-line);
|
|
border-radius: 999px;
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
/* Swapping over typed text asks first, in the page's staged/careful amber. */
|
|
.tpl-replace {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0 0 10px;
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--stage);
|
|
border-radius: 8px;
|
|
background: var(--stage-soft);
|
|
color: var(--stage);
|
|
font-size: 13px;
|
|
}
|
|
.tpl-replace span { margin-right: auto; }
|
|
.tpl-replace .btn.tiny { margin-bottom: 0; }
|
|
|
|
.btn {
|
|
appearance: none;
|
|
font: inherit;
|
|
font-weight: 600;
|
|
border-radius: 8px;
|
|
padding: 10px 18px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--rule-2);
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
transition: filter 0.12s, background 0.12s;
|
|
}
|
|
.btn:hover:not(:disabled) { background: var(--panel-2); }
|
|
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
|
|
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
|
|
/* Send breathes while there is something to send: a soft accent ring that
|
|
spreads and fades. Off under reduced motion, below. */
|
|
@keyframes send-pulse {
|
|
0% { box-shadow: 0 0 0 0 var(--accent-line); }
|
|
100% { box-shadow: 0 0 0 6px transparent; }
|
|
}
|
|
#btn-send:not(:disabled) { animation: send-pulse 2.4s ease-out infinite; }
|
|
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
|
|
.btn.ghost:hover { background: var(--panel-2); color: var(--ink); }
|
|
.btn.danger { border-color: var(--warn); color: var(--warn); }
|
|
.btn.small { padding: 7px 13px; font-size: 13.5px; }
|
|
/* Available, but not the step. Reads as a button, does not shout like one. */
|
|
.btn.standby {
|
|
background: transparent;
|
|
border-color: var(--accent-line);
|
|
color: var(--accent);
|
|
}
|
|
.btn.standby:hover:not(:disabled) { background: var(--accent-soft); }
|
|
|
|
.btn.tiny {
|
|
padding: 3px 9px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
border-color: var(--accent-line);
|
|
background: var(--accent-soft);
|
|
margin-bottom: 6px;
|
|
}
|
|
.btn.tiny:hover:not(:disabled) { background: var(--accent-soft); filter: brightness(1.04); }
|
|
|
|
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
|
|
|
|
.linky {
|
|
appearance: none; border: 0; background: none; padding: 0;
|
|
color: var(--ink-3); font: inherit; font-size: 13px;
|
|
text-decoration: underline; cursor: pointer;
|
|
}
|
|
.linky:hover { color: var(--accent); }
|
|
/* The beat between "Skip this one" and the move to the next card. */
|
|
.skip-flash {
|
|
display: inline-block; margin: 16px 0 0 12px;
|
|
font-size: 13px; font-weight: 600; color: var(--stage);
|
|
animation: skip-flash-in 0.15s ease;
|
|
}
|
|
@keyframes skip-flash-in { from { opacity: 0; } }
|
|
.card.question.is-skip-flash { border-color: var(--stage); }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.skip-flash { animation: none; }
|
|
}
|
|
|
|
/* ---------------------------------------------------------- checklist */
|
|
|
|
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
|
|
.step {
|
|
display: flex; gap: 12px; align-items: flex-start;
|
|
border: 1px solid var(--rule); border-radius: 8px; padding: 11px 14px;
|
|
background: var(--panel-2);
|
|
}
|
|
.step input { margin-top: 3px; accent-color: var(--ok); width: 17px; height: 17px; flex: none; }
|
|
.step-num {
|
|
flex: none; width: 22px; height: 22px; border-radius: 50%;
|
|
background: var(--accent-soft); color: var(--accent);
|
|
font: 700 12px/22px var(--sans); text-align: center;
|
|
}
|
|
|
|
/* --------------------------------------------------------- orderable */
|
|
|
|
.rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
|
|
.row-item {
|
|
display: flex; gap: 12px; align-items: flex-start;
|
|
border: 1px solid var(--rule-2); border-radius: 8px; padding: 12px 14px;
|
|
background: var(--panel);
|
|
}
|
|
.row-item.dragging { opacity: 0.4; }
|
|
.row-item.drop-target { border-color: var(--accent-line); border-style: dashed; }
|
|
.row-handle {
|
|
flex: none; cursor: grab; color: var(--ink-3); font-size: 15px; line-height: 1.4;
|
|
background: none; border: 0; padding: 2px 4px;
|
|
}
|
|
.row-handle:active { cursor: grabbing; }
|
|
.row-main { flex: 1; min-width: 0; }
|
|
.row-title { font-weight: 600; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; margin: -3px -6px; color: var(--ink); font-family: inherit; font-size: inherit; }
|
|
.row-title:hover:not(:disabled) { border-color: var(--rule); }
|
|
.row-title:focus { border-color: var(--accent); background: var(--panel-2); }
|
|
.row-title:disabled { opacity: 1; }
|
|
.row-body { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
|
|
.row-order { font: 700 12px/1 var(--mono); color: var(--ink-3); flex: none; margin-top: 4px; }
|
|
.row-tools { display: flex; gap: 4px; flex: none; }
|
|
|
|
/* -------------------------------------------------------------- aside */
|
|
|
|
.aside h2 {
|
|
font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
|
|
color: var(--ink-3); margin: 0 0 12px;
|
|
}
|
|
|
|
.msg {
|
|
border-radius: 8px; padding: 10px 13px; margin-bottom: 9px; font-size: 13.5px;
|
|
background: var(--panel); border: 1px solid var(--rule);
|
|
}
|
|
.msg.you { background: var(--stage-soft); border-color: transparent; }
|
|
.msg.staged { border-style: dashed; border-color: var(--stage); background: transparent; }
|
|
.msg-who {
|
|
font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
|
|
color: var(--ink-3); margin-bottom: 4px; display: flex; justify-content: space-between; gap: 8px;
|
|
}
|
|
|
|
.aside-empty { color: var(--ink-3); font-size: 13px; font-style: italic; }
|
|
|
|
/* The note box takes whatever height the panel has left, never under 160px.
|
|
Scoped here so the page-wide textarea minimum still holds everywhere else. */
|
|
.aside { display: flex; flex-direction: column; }
|
|
.aside > .field { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 0; }
|
|
.aside textarea { flex: 1 1 auto; min-height: 160px; resize: vertical; }
|
|
|
|
.aside.is-dropping {
|
|
outline: 2px dashed var(--accent);
|
|
outline-offset: -8px;
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.attach-row { display: flex; align-items: center; margin: -4px 0 6px -13px; }
|
|
.attach-tray { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
|
|
.attach-thumb {
|
|
position: relative;
|
|
width: 72px; height: 72px; margin: 0;
|
|
border: 1px solid var(--rule); border-radius: 8px;
|
|
overflow: hidden; background: var(--panel);
|
|
flex: none;
|
|
}
|
|
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.attach-remove {
|
|
position: absolute; top: 3px; right: 3px; z-index: 2;
|
|
width: 20px; height: 20px; padding: 0;
|
|
display: grid; place-items: center;
|
|
font: 700 14px/1 var(--sans);
|
|
color: var(--ink); background: var(--panel);
|
|
border: 1px solid var(--rule-2); border-radius: 50%;
|
|
cursor: pointer; opacity: 0.9;
|
|
}
|
|
.attach-remove:hover { opacity: 1; border-color: var(--accent); }
|
|
.attach-overlay {
|
|
position: absolute; inset: 0; z-index: 1;
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
|
|
background: color-mix(in srgb, var(--panel) 70%, transparent);
|
|
}
|
|
.attach-overlay.failed {
|
|
background: color-mix(in srgb, var(--panel) 88%, transparent);
|
|
color: var(--ink-2); font-size: 10.5px; font-weight: 600; text-align: center;
|
|
}
|
|
.attach-overlay.failed .btn.tiny { margin: 0; padding: 1px 6px; font-size: 10.5px; }
|
|
.attach-chip {
|
|
width: 180px;
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 0 26px 0 10px;
|
|
}
|
|
.attach-chip-icon {
|
|
flex: none; width: 24px; height: 24px;
|
|
fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round;
|
|
}
|
|
.attach-chip-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
|
|
.attach-chip-badge {
|
|
padding: 0 5px; border-radius: 4px;
|
|
font: 700 10px/1.5 var(--sans); letter-spacing: 0.04em; font-variant: small-caps;
|
|
color: var(--ink); background: var(--accent-soft);
|
|
}
|
|
.attach-chip-name {
|
|
max-width: 100%;
|
|
overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
font-size: 12.5px; font-weight: 600; color: var(--ink);
|
|
}
|
|
.attach-chip-size { color: var(--ink-2); font-size: 11.5px; }
|
|
.ask-row .attach-chip { padding-right: 10px; }
|
|
|
|
.footer-held { margin-top: 3px; color: var(--ink-2); font-size: 12.5px; }
|
|
|
|
/* --------------------------------------------------------------- docs */
|
|
|
|
.doc-head {
|
|
max-width: min(var(--card-width), 100%);
|
|
display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
|
|
margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule);
|
|
}
|
|
.doc-version { font: 700 12px/1 var(--mono); color: var(--ink-3); }
|
|
|
|
.block { max-width: min(var(--card-width), 100%); border-left: 3px solid transparent; padding: 2px 0 2px 14px; margin: 0 auto 4px; position: relative; }
|
|
.block.assumed {
|
|
border-left-color: var(--stage);
|
|
border-left-style: dashed;
|
|
background: var(--stage-soft);
|
|
border-radius: 0 8px 8px 0;
|
|
}
|
|
.block.draft { border-left-color: var(--rule-2); opacity: 0.72; }
|
|
.block.settled { border-left-color: var(--ok-soft); }
|
|
.block .md { max-width: none; }
|
|
|
|
.block-tag {
|
|
font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
|
|
color: var(--stage); display: block; margin-bottom: 4px;
|
|
}
|
|
|
|
.doc-empty { color: var(--ink-3); font-style: italic; }
|
|
|
|
/* ----------------------------------------------------------- markdown */
|
|
|
|
.md { max-width: 68ch; }
|
|
.md-h { font-family: var(--serif); font-weight: 600; margin: 22px 0 9px; line-height: 1.25; }
|
|
h2.md-h { font-size: 21px; }
|
|
h3.md-h { font-size: 17.5px; }
|
|
h4.md-h, h5.md-h, h6.md-h { font-size: 15px; }
|
|
.md-p { margin: 0 0 11px; }
|
|
.md-list { margin: 0 0 11px; padding-left: 22px; }
|
|
.md-li { margin-bottom: 5px; }
|
|
.md-task { display: inline-block; width: 16px; color: var(--ink-3); font-weight: 700; }
|
|
.md-task.is-done { color: var(--ok); }
|
|
.md-li.is-task {
|
|
list-style: none; margin-left: -18px;
|
|
display: grid; grid-template-columns: 16px 1fr; column-gap: 4px; align-items: baseline;
|
|
}
|
|
.md-li.is-task > :not(.md-task) { grid-column: 2; }
|
|
.md-li.is-task > .md-p:last-child { margin-bottom: 0; }
|
|
.md-quote {
|
|
margin: 0 0 11px; padding: 2px 0 2px 15px;
|
|
border-left: 3px solid var(--rule-2); color: var(--ink-2);
|
|
}
|
|
.md-code {
|
|
font: 0.88em var(--mono);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule);
|
|
border-radius: 4px;
|
|
padding: 1px 5px;
|
|
}
|
|
.md-pre-wrap { position: relative; margin: 0 0 13px; }
|
|
.md-pre {
|
|
font: 13px/1.5 var(--mono);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule);
|
|
border-radius: 8px;
|
|
padding: 14px 16px;
|
|
overflow-x: auto;
|
|
margin: 0;
|
|
}
|
|
.md-copy {
|
|
position: absolute; top: 8px; right: 8px;
|
|
font: 600 11.5px var(--sans);
|
|
background: var(--panel); color: var(--ink-2);
|
|
border: 1px solid var(--rule-2); border-radius: 6px;
|
|
padding: 4px 9px; cursor: pointer; opacity: 0;
|
|
transition: opacity 0.12s;
|
|
}
|
|
.md-pre-wrap:hover .md-copy, .md-copy:focus { opacity: 1; }
|
|
.md-hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
|
|
.md-table-wrap { overflow-x: auto; margin: 0 0 13px; }
|
|
.md-table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
|
|
.md-table th, .md-table td { border: 1px solid var(--rule); padding: 8px 11px; text-align: left; }
|
|
.md-table th { background: var(--panel-2); font-weight: 600; }
|
|
.md-img { max-width: 100%; border-radius: 8px; }
|
|
.md a { color: var(--accent); }
|
|
|
|
/* ------------------------------------------------------------- footer */
|
|
|
|
/* Three columns: summary, where, actions. Equal side tracks keep the middle
|
|
centred on the bar, and because they are tracks rather than an overlay, a
|
|
long summary wraps and a wide actions block nudges the centre over instead
|
|
of either running underneath it. The middle track gives way first: it can
|
|
shrink to an ellipsis, the summary and Send never do. */
|
|
.footer {
|
|
display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; gap: 18px;
|
|
padding: 13px 20px;
|
|
background: var(--panel);
|
|
border-top: 1px solid var(--rule);
|
|
}
|
|
.footer-summary { min-width: 200px; font-size: 13.5px; color: var(--ink-2); }
|
|
.footer-summary strong { color: var(--ink); }
|
|
/* Where this session is running: the workspace label, centred on the bar. A
|
|
click opens the Workspace dialog. The notification pill sits over the same
|
|
spot and covers it while it shows. */
|
|
.footer-where {
|
|
max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
padding: 2px 6px; border: 0; background: none;
|
|
font: inherit; font-size: 12px; color: var(--ink-3);
|
|
cursor: pointer;
|
|
}
|
|
.footer-where:hover { text-decoration: underline; }
|
|
/* A folder is missing or the agent could not read one: the dialog says which. */
|
|
.where-alert {
|
|
display: inline-block; width: 7px; height: 7px; margin-left: 6px;
|
|
border-radius: 50%; background: var(--warn); vertical-align: 1px;
|
|
}
|
|
.footer-where:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
|
|
/* One line, so the grid sizes this track to the whole row and takes the room
|
|
from the middle instead of folding Send in two. */
|
|
.footer-actions { display: flex; gap: 10px; align-items: center; grid-column: 3; justify-self: end; white-space: nowrap; }
|
|
/* The dashboard: no summary, no Send, just the workspace label. */
|
|
.footer.is-dash .footer-summary,
|
|
.footer.is-dash .footer-actions { display: none; }
|
|
.footer.is-dash .footer-where { grid-column: 2; }
|
|
.hint { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
|
|
/* A label, not a sentence: the full reason rides in the hint's tooltip, and
|
|
the dock already carries the ticking clock this would otherwise repeat. */
|
|
.hint-text { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
kbd {
|
|
font: 11.5px var(--mono);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule-2);
|
|
border-bottom-width: 2px;
|
|
border-radius: 4px;
|
|
padding: 2px 5px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------ waiting */
|
|
|
|
/* Laid out like the starting screen, so when a session goes from one to the
|
|
other Planny stays put and only the words under him change. */
|
|
.waiting-pane {
|
|
max-width: 560px;
|
|
margin: 4vh auto 0 !important;
|
|
text-align: center;
|
|
color: var(--ink-2);
|
|
display: grid;
|
|
gap: 12px;
|
|
justify-items: center;
|
|
}
|
|
.waiting-pane h2 { font: 600 23px/1.3 var(--serif); color: var(--ink); margin: 0; }
|
|
.waiting-pane p { margin: 0; }
|
|
/* Once the work is under way Planny steps back a size, and the ring in
|
|
front of the stage name carries the "still going" signal instead. */
|
|
.waiting-pane .pose-stage { height: 130px; transition: height 0.35s ease; }
|
|
.waiting-pane h2 .waiting-spin { display: inline-block; width: 16px; height: 16px; vertical-align: 1px; margin-right: 10px; }
|
|
|
|
.spinner {
|
|
width: 30px; height: 30px; margin: 0 auto 20px;
|
|
border: 3px solid var(--rule);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.9s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* The footer's "waiting on the agent" tell. Same ring, sized to sit on a line
|
|
of text. It inherits the reduced-motion exception below, which is deliberate:
|
|
a frozen spinner reads as a broken app, which is the opposite of the point. */
|
|
.spinner.tiny {
|
|
width: 13px;
|
|
height: 13px;
|
|
border-width: 2px;
|
|
margin: 0;
|
|
flex: none;
|
|
}
|
|
|
|
/* The same ring again, in front of Planny's line while the agent has the
|
|
ball. Inline so it sits on the first line of a wrapped sentence. The
|
|
[hidden] rule is needed because display here outranks the browser's own. */
|
|
.dock-spin { display: inline-block; vertical-align: -2px; margin-right: 6px; }
|
|
.dock-spin[hidden] { display: none; }
|
|
|
|
.robot { font: 12px/1.25 var(--mono); color: var(--ink-3); white-space: pre; margin: 0 0 16px; }
|
|
|
|
/* ------------------------------------------------------- looks button */
|
|
|
|
.icon-btn {
|
|
appearance: none;
|
|
flex: none;
|
|
margin-left: 14px;
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
.icon-btn:hover { background: var(--panel-2); border-color: var(--rule); }
|
|
.icon-btn svg { width: 17px; height: 17px; }
|
|
.icon-btn .ab-ring { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
|
|
.icon-btn .ab-mark { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
|
|
.icon-btn .ab-dot { fill: var(--ink-2); }
|
|
.icon-btn:hover .ab-ring { stroke: var(--accent); }
|
|
.icon-btn:hover .ab-mark, .icon-btn:hover .ab-dot { stroke: var(--accent); fill: none; }
|
|
.icon-btn:hover .ab-dot { fill: var(--accent); }
|
|
|
|
.icon-btn .sw-a { fill: var(--accent); }
|
|
.icon-btn .sw-b { fill: var(--ok); }
|
|
.icon-btn .sw-c { fill: var(--stage); }
|
|
|
|
/* ------------------------------------------------------------ swatches */
|
|
|
|
/* Thirty-two of them: a fixed sixteen-column grid so they sit in two even
|
|
rows in the wide dialog, and four even rows of eight on a narrow window,
|
|
rather than leaving a straggler alone on the last line. */
|
|
.swatches { display: grid; grid-template-columns: repeat(16, minmax(0, 34px)); gap: 8px; }
|
|
@media (max-width: 720px) {
|
|
.swatches { grid-template-columns: repeat(8, minmax(0, 34px)); }
|
|
}
|
|
|
|
.swatch {
|
|
appearance: none;
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--rule-2);
|
|
cursor: pointer;
|
|
}
|
|
.swatch:hover { border-color: var(--ink-3); }
|
|
.swatch[aria-pressed="true"] {
|
|
border-color: var(--ink);
|
|
box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink);
|
|
}
|
|
|
|
/* ------------------------------------------------------------ arrival */
|
|
|
|
/* The beat when new questions land. Covers the whole page, says what just
|
|
happened, and leaves by itself in under two seconds. Built from the page's
|
|
own tokens so it follows the theme and the chosen highlight color. */
|
|
.arrival {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 50;
|
|
display: grid;
|
|
place-items: center;
|
|
background: color-mix(in srgb, var(--bg) 72%, transparent);
|
|
backdrop-filter: blur(3px);
|
|
cursor: pointer;
|
|
animation: arrival-in 0.28s ease-out both;
|
|
}
|
|
.arrival.is-leaving { animation: arrival-out 0.3s ease-in both; }
|
|
|
|
.arrival-box { text-align: center; padding: 24px; max-width: min(640px, 100vw - 32px); }
|
|
|
|
.arrival-kicker {
|
|
margin: 0 0 10px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
animation: arrival-rise 0.45s 0.05s ease-out both;
|
|
}
|
|
|
|
/* The words themselves are the effect: they sweep in on a band of the
|
|
highlight color, the way a page turns, rather than anything spinning. */
|
|
.arrival-title {
|
|
margin: 0;
|
|
font: 600 clamp(38px, 7vw, 64px)/1.05 var(--serif);
|
|
color: transparent;
|
|
background: linear-gradient(100deg, var(--ink) 0 40%, var(--accent) 50%, var(--ink) 60% 100%);
|
|
background-size: 250% 100%;
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
animation:
|
|
arrival-rise 0.5s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both,
|
|
arrival-sweep 1.3s 0.25s ease-in-out both;
|
|
}
|
|
|
|
/* A rule that draws itself under the title, from the middle out. */
|
|
.arrival-title::after {
|
|
content: "";
|
|
display: block;
|
|
height: 3px;
|
|
width: 96px;
|
|
margin: 14px auto 0;
|
|
border-radius: 99px;
|
|
background: var(--accent);
|
|
transform-origin: center;
|
|
animation: arrival-draw 0.5s 0.45s ease-out both;
|
|
}
|
|
|
|
.arrival-what {
|
|
margin: 16px 0 0;
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
color: var(--ink-2);
|
|
animation: arrival-rise 0.45s 0.35s ease-out both;
|
|
}
|
|
.arrival-more {
|
|
margin: 4px 0 0;
|
|
font-size: 13.5px;
|
|
color: var(--ink-3);
|
|
animation: arrival-rise 0.45s 0.45s ease-out both;
|
|
}
|
|
|
|
@keyframes arrival-in { from { opacity: 0; } to { opacity: 1; } }
|
|
@keyframes arrival-out { from { opacity: 1; } to { opacity: 0; transform: scale(1.02); } }
|
|
@keyframes arrival-rise {
|
|
from { opacity: 0; transform: translateY(14px); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
@keyframes arrival-sweep {
|
|
from { background-position: 100% 0; }
|
|
to { background-position: 0 0; }
|
|
}
|
|
@keyframes arrival-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
|
|
|
/* ----------------------------------------------------------- stopping */
|
|
|
|
.stop-steps { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 10px; }
|
|
.stop-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
|
|
.stop-steps li.is-done { color: var(--ink); }
|
|
.stop-steps li.is-later { color: var(--ink-3); }
|
|
.stop-steps li.is-stuck { color: var(--stage); }
|
|
.stop-mark { width: 13px; flex: none; text-align: center; font-weight: 700; }
|
|
.stop-steps li.is-done .stop-mark { color: var(--ok); }
|
|
.stop-note { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
|
|
.stopping .handoff-command { margin-bottom: 4px; }
|
|
|
|
/* --------------------------------------------------------- help dialog */
|
|
|
|
/* Header and Close stay put; only the panel scrolls. */
|
|
.modal.help {
|
|
width: min(960px, calc(100vw - 32px));
|
|
height: min(640px, calc(100vh - 32px));
|
|
max-width: none;
|
|
max-height: none;
|
|
flex-direction: column;
|
|
}
|
|
.modal.help[open] { display: flex; }
|
|
.modal.help .modal-actions { flex: none; margin-top: 16px; }
|
|
|
|
.help-layout {
|
|
display: grid;
|
|
grid-template-columns: 230px 1fr;
|
|
gap: 20px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.help-tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding-right: 4px;
|
|
}
|
|
.help-panels { min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; padding-right: 6px; }
|
|
|
|
.help-tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border: 0;
|
|
border-left: 3px solid transparent;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--ink-2);
|
|
font: inherit;
|
|
font-size: 13.5px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.help-tab:hover { background: var(--panel-2); color: var(--ink); }
|
|
.help-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
|
|
.help-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
.help-tab-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
flex: none;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.8;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
.help-tab:hover .help-tab-icon { stroke: var(--accent); }
|
|
|
|
.help-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
|
|
.help-panel h3 { font: 600 18px/1.3 var(--serif); margin: 0 0 12px; color: var(--accent); }
|
|
.help-panel p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
|
|
.help-panel p:last-child { margin-bottom: 0; }
|
|
.help-panel strong { color: var(--ink); }
|
|
.help-panel .help-lead { font-size: 14.5px; color: var(--ink); margin-bottom: 16px; }
|
|
.help-panel h4 { font: 600 14px/1.35 var(--sans); margin: 18px 0 6px; color: var(--ink); }
|
|
.help-panel ul,
|
|
.help-panel ol { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
|
|
.help-panel li { margin-bottom: 5px; }
|
|
.help-panel li:last-child { margin-bottom: 0; }
|
|
.help-panel table { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
|
|
.help-panel th,
|
|
.help-panel td { border: 1px solid var(--rule); padding: 7px 10px; text-align: left; vertical-align: top; }
|
|
.help-panel th { background: var(--panel-2); font-weight: 600; color: var(--ink); }
|
|
.help-panel code {
|
|
font: 0.88em var(--mono);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule);
|
|
border-radius: 4px;
|
|
padding: 1px 5px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.help-panel .handoff-command { margin: 0 0 12px; }
|
|
.help-panel .handoff-command:last-child { margin-bottom: 0; }
|
|
.help-panel .handoff-code {
|
|
font: 13px/1.5 var(--mono);
|
|
background: var(--panel);
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
/* The icon sheet: present for <use href>, never drawn itself. */
|
|
.help-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
|
|
|
|
/* The diagrams. Colors only from variables, so each drawing follows the
|
|
theme and the chosen highlight without a line of script. */
|
|
.help-figure { margin: 4px 0 16px; }
|
|
.help-figure figcaption,
|
|
.help-moods-title { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
|
|
.help-diagram { display: block; width: 100%; max-width: 560px; height: auto; margin: 8px 0 4px; }
|
|
.hd-box { fill: var(--panel-2); stroke: var(--rule-2); stroke-width: 1.2; }
|
|
.hd-line { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
|
|
.hd-dash { stroke-dasharray: 4 4; }
|
|
.hd-label { fill: var(--ink); font: 13px var(--sans); }
|
|
.hd-label.small { fill: var(--ink-2); font-size: 12px; }
|
|
.hd-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
|
|
.hd-label.hd-accent { fill: var(--accent); stroke: none; font-weight: 600; }
|
|
.hd-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 10; stroke-linecap: round; }
|
|
.hd-arrow { fill: var(--ink-3); }
|
|
|
|
/* Tab 3: six live clones of Planny, one per mood. */
|
|
.help-moods-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; max-width: 560px; }
|
|
@media (min-width: 900px) {
|
|
.help-moods-row { grid-template-columns: repeat(6, 1fr); }
|
|
}
|
|
.help-mood { display: flex; flex-direction: column; align-items: center; gap: 6px; }
|
|
.help-mood-bot { width: 40px; height: 56px; }
|
|
.help-mood span { font-size: 12.5px; color: var(--ink-2); text-align: center; }
|
|
|
|
/* The travelling highlight on the flow diagrams: only on the visible panel,
|
|
only while the dialog is open, and only when the system allows motion.
|
|
Otherwise the dashes simply sit still. */
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
@keyframes hd-travel { to { stroke-dashoffset: -32; } }
|
|
.help-panel:not([hidden]) .hd-flow { animation: hd-travel 1.6s linear infinite; }
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.help-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; }
|
|
.help-tabs { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; }
|
|
.help-tab {
|
|
width: auto;
|
|
flex: none;
|
|
white-space: nowrap;
|
|
border-left: 0;
|
|
border-bottom: 3px solid transparent;
|
|
border-radius: 6px 6px 0 0;
|
|
}
|
|
.help-tab[aria-selected="true"] { border-bottom-color: var(--accent); }
|
|
}
|
|
|
|
.about-live {
|
|
padding: 9px 12px;
|
|
border-radius: 8px;
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule);
|
|
}
|
|
.about-live.is-good { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
|
|
.about-live.is-bad { background: var(--stage-soft); border-color: var(--stage); color: var(--stage); }
|
|
|
|
/* -------------------------------------------------------------- modal */
|
|
|
|
.modal {
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
padding: 24px 26px;
|
|
max-width: 440px;
|
|
width: calc(100vw - 32px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.modal::backdrop { background: rgba(0, 0, 0, 0.45); }
|
|
.modal h2 { font: 600 21px/1.25 var(--serif); margin: 0 0 10px; }
|
|
.modal-blurb { margin: 0 0 18px; color: var(--ink-2); font-size: 13.5px; }
|
|
|
|
.modal-ranges { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
|
|
.modal-ranges legend {
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
padding: 0 0 8px;
|
|
}
|
|
.modal-ranges label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 8px;
|
|
padding: 10px 13px;
|
|
cursor: pointer;
|
|
}
|
|
.modal-ranges label:hover { border-color: var(--accent-line); }
|
|
.modal-ranges input[type="radio"],
|
|
.modal-ranges input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
|
|
|
|
/* Preferences gets the room the swatch grid needs, and spends it laying each
|
|
set of choices out side by side instead of stacking them into a tall
|
|
scroll. Back to a stack on a narrow window. */
|
|
.modal.looks { max-width: 720px; }
|
|
.modal.looks .modal-ranges + .modal-ranges { margin-top: 18px; }
|
|
.looks-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.looks-row .help { grid-column: 1 / -1; }
|
|
/* The per-cue boxes sit under the master switch, greyed and locked while it
|
|
is off rather than hidden, so the picks stay visible. */
|
|
.looks-sound-events { display: grid; gap: 8px; }
|
|
.looks-sound-events.is-off { opacity: 0.45; }
|
|
.looks-sound-events.is-off label { cursor: default; }
|
|
.looks-sound-events.is-off label:hover { border-color: var(--rule-2); }
|
|
@media (max-width: 720px) {
|
|
.looks-row { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* The Workspace dialog: one entry per folder, the original first, then the
|
|
Add row. Wide enough for a real path; the list scrolls, the Add row and the
|
|
actions stay put. */
|
|
.modal.workspace { max-width: 680px; }
|
|
.modal.workspace[open] { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
|
|
.workspace-list {
|
|
list-style: none; margin: 0; padding: 0;
|
|
display: grid; gap: 12px;
|
|
overflow-y: auto; min-height: 0; flex: 0 1 auto;
|
|
}
|
|
.ws-entry {
|
|
border: 1px solid var(--rule-2); border-radius: 8px;
|
|
padding: 12px 14px; background: var(--panel-2);
|
|
display: grid; gap: 8px;
|
|
}
|
|
.ws-entry.is-missing { border-color: var(--warn); }
|
|
.ws-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
|
|
.ws-chip {
|
|
font: 600 12.5px var(--mono);
|
|
color: var(--accent); background: var(--accent-soft);
|
|
border: 1px solid var(--accent-line); border-radius: 99px;
|
|
padding: 1px 9px;
|
|
}
|
|
.ws-original { font-size: 12.5px; color: var(--ink-3); }
|
|
.ws-path-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.ws-path {
|
|
flex: 1 1 14em; min-width: 0;
|
|
font: 12.5px var(--mono); color: var(--ink-2);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.ws-path-row .btn { flex: none; }
|
|
.ws-field { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 4px 10px; font-size: 13px; }
|
|
.ws-field label { color: var(--ink-2); font-weight: 600; }
|
|
.ws-field input[type="text"] { padding: 6px 10px; font-size: 13.5px; background: var(--panel); }
|
|
.ws-field .field-error { grid-column: 2; margin: 0; }
|
|
.ws-mark { margin: 0; font-size: 13px; }
|
|
.ws-mark.is-missing, .ws-mark.is-issue { color: var(--warn); }
|
|
.ws-mark.is-nested { color: var(--ink-3); }
|
|
.ws-hint-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.ws-hint-row .btn.tiny { margin-bottom: 0; }
|
|
.ws-hint, .banner-hint {
|
|
font: 12.5px var(--mono);
|
|
background: var(--panel); border: 1px solid var(--rule-2); border-radius: 4px;
|
|
padding: 1px 6px; user-select: all; overflow-wrap: anywhere;
|
|
}
|
|
.ws-confirm {
|
|
display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
|
|
padding: 8px 10px; border-radius: 8px;
|
|
background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600;
|
|
}
|
|
.ws-confirm span { margin-right: auto; }
|
|
.workspace-add { margin-top: 16px; flex: none; }
|
|
.workspace-add-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
|
|
.workspace-add-row { display: flex; gap: 8px; align-items: center; }
|
|
.workspace-add-row input[type="text"] { flex: 1 1 auto; min-width: 0; padding: 8px 11px; }
|
|
.workspace-add-row .btn { flex: none; }
|
|
.workspace-add-row .btn[hidden] { display: none; }
|
|
.workspace-add-msg { margin: 6px 0 0; min-height: 1.4em; font-size: 13px; color: var(--ink-2); }
|
|
.workspace-add-msg.is-error { color: var(--warn); }
|
|
.workspace-add-msg.is-good { color: var(--ok); }
|
|
.workspace-add-msg .btn.tiny { margin: 0 0 0 8px; }
|
|
.modal.workspace .modal-actions { flex: none; align-items: center; }
|
|
.workspace-help { margin-right: auto; }
|
|
@media (max-width: 560px) {
|
|
.ws-field { grid-template-columns: 1fr; }
|
|
.ws-field .field-error { grid-column: 1; }
|
|
.workspace-add-row { flex-wrap: wrap; }
|
|
}
|
|
|
|
/* The `@name` list under a text box. Fixed to the viewport and placed by
|
|
app.js from the box's own rectangle, so no scrolling card clips it. */
|
|
.mention-pop {
|
|
position: fixed; z-index: 60;
|
|
max-width: 420px; max-height: 220px; overflow-y: auto;
|
|
padding: 4px;
|
|
background: var(--panel); color: var(--ink);
|
|
border: 1px solid var(--rule-2); border-radius: 8px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.mention-opt {
|
|
padding: 6px 10px; border-radius: 6px;
|
|
font: 13px var(--mono); cursor: pointer;
|
|
}
|
|
.mention-opt:hover { background: var(--panel-2); }
|
|
.mention-opt.is-active { background: var(--accent-soft); color: var(--accent); }
|
|
.mention-empty { padding: 6px 10px; font-size: 13px; color: var(--ink-3); }
|
|
|
|
/* Only meaningful once "Since a date" is the choice, so it is disabled until
|
|
then rather than sitting there looking like it wants filling in. */
|
|
.since-row { margin-left: 27px; }
|
|
.since-row.is-off { opacity: 0.45; }
|
|
.since-label { font-size: 12.5px; color: var(--ink-3); }
|
|
.since-row input[type="date"] {
|
|
font: inherit;
|
|
font-size: 13.5px;
|
|
color: var(--ink);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 6px;
|
|
padding: 5px 8px;
|
|
}
|
|
|
|
.modal-why { margin: 14px 0 0; font-size: 13px; color: var(--warn); min-height: 1px; }
|
|
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
|
|
|
|
/* ----------------------------------------------------------- doc tools */
|
|
|
|
.doc-tools { display: flex; gap: 8px; margin-left: auto; flex: none; align-items: center; }
|
|
.doc-saved { font-size: 12px; color: var(--ink-3); }
|
|
.doc-saved code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
|
|
.doc-head { align-items: center; }
|
|
|
|
/* ------------------------------------------------------------ dashboard */
|
|
|
|
/* The dashboard replaces the question column with a menu, and the send bar
|
|
with a click on a card. `hidden` alone loses to the bar's own display
|
|
rule, so it needs saying here. */
|
|
.footer[hidden] { display: none; }
|
|
|
|
.dash { max-width: 860px; padding-top: 8px; }
|
|
.dash-title { margin: 6px 0 8px; font: 600 clamp(26px, 4vw, 36px)/1.1 var(--serif); }
|
|
.dash-note { margin: 0 0 26px; font-size: 14.5px; color: var(--ink-2); }
|
|
/* The first-run role nudge: one line above the title, wrapping on a narrow
|
|
window, until looks.json carries a role. */
|
|
.dash-nudge {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px 14px;
|
|
margin: 0 0 18px;
|
|
padding: 10px 14px;
|
|
background: var(--accent-soft);
|
|
border: 1px solid var(--accent-line);
|
|
border-radius: var(--radius);
|
|
color: var(--ink);
|
|
font-size: 14px;
|
|
}
|
|
.dash-nudge-text { flex: 1 1 16em; }
|
|
/* The session meter at red: the same slot, in the careful colour. */
|
|
.dash-nudge.meter-banner {
|
|
background: var(--warn-soft);
|
|
border-color: var(--warn);
|
|
border-left-width: 4px;
|
|
color: var(--ink);
|
|
}
|
|
.dash-nudge-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
|
|
.dash-nudge-actions .btn.tiny { margin-bottom: 0; }
|
|
.dash-working {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: fit-content;
|
|
margin-top: 10px;
|
|
padding: 7px 14px;
|
|
color: var(--accent);
|
|
background: var(--accent-soft);
|
|
border: 1px solid var(--accent-line);
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.dash-group { margin-bottom: 30px; }
|
|
|
|
/* A switch, not a checkbox look: it filters the menu live rather than being
|
|
an answer. The real checkbox stays in the tree (visually hidden) so the
|
|
keyboard, focus ring and screen readers all work as for any input. */
|
|
.dash-toggle {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: -12px 0 26px;
|
|
font-size: 13px;
|
|
color: var(--ink-2);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.dash-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
|
|
.dash-toggle-track {
|
|
position: relative;
|
|
flex: none;
|
|
width: 34px;
|
|
height: 20px;
|
|
border-radius: 999px;
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule-2);
|
|
transition: background 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
.dash-toggle-track::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--ink-3);
|
|
transition: transform 0.15s ease, background 0.15s ease;
|
|
}
|
|
.dash-toggle input:checked + .dash-toggle-track { background: var(--accent); border-color: var(--accent); }
|
|
.dash-toggle input:checked + .dash-toggle-track::after { transform: translateX(14px); background: var(--accent-ink); }
|
|
.dash-toggle input:focus-visible + .dash-toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.dash-toggle:hover .dash-toggle-track { border-color: var(--accent-line); }
|
|
|
|
.dash-empty { margin: 0 0 30px; font-size: 13.5px; color: var(--ink-3); font-style: italic; }
|
|
.dash-group-title {
|
|
margin: 0 0 12px;
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.09em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
border-bottom: 1px solid var(--rule);
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
|
|
|
|
/* A card IS a button, so it carries the reset the page's other big clickable
|
|
surfaces do; the look is the panel look with a lift on hover, and the
|
|
accent border that elsewhere means "the thing in play". */
|
|
.dash-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 16px;
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
font: inherit;
|
|
text-align: left;
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
.dash-card:hover:not(:disabled) {
|
|
transform: translateY(-2px);
|
|
border-color: var(--accent-line);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.dash-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.dash-card:disabled { cursor: default; opacity: 0.55; }
|
|
.dash-card.is-suggested { border-color: var(--accent); }
|
|
.dash-card.is-going { border-color: var(--accent); opacity: 1; }
|
|
|
|
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.dash-chip {
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: 999px;
|
|
padding: 2px 8px;
|
|
}
|
|
.dash-card.is-suggested .dash-chip { color: var(--accent); border-color: var(--accent-line); }
|
|
|
|
.dash-card-title { font-size: 15px; font-weight: 650; }
|
|
.dash-card-blurb { font-size: 13px; color: var(--ink-2); flex: 1; }
|
|
.dash-card-detail { font-size: 12px; color: var(--accent); }
|
|
|
|
.dash-card-foot {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--rule);
|
|
}
|
|
.dash-card-cmd {
|
|
font-family: var(--mono);
|
|
font-size: 11.5px;
|
|
color: var(--ink-3);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.dash-card-go { color: var(--accent); font-weight: 700; transition: transform 0.15s ease; }
|
|
.dash-card:hover:not(:disabled) .dash-card-go { transform: translateX(3px); }
|
|
|
|
/* The reason a card is off. The card greys via :disabled; this line is why,
|
|
so the menu teaches the pipeline instead of just refusing clicks. */
|
|
.dash-card-off { font-size: 12px; color: var(--ink-3); font-style: italic; }
|
|
|
|
/* -------------------------------------------------------- spec picker */
|
|
|
|
/* The picker's chips are the same vocabulary as the rail's items: a bordered
|
|
lozenge that lights up on the current one. */
|
|
.spec-pick { margin-bottom: 30px; }
|
|
.spec-row { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
.spec-chip {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--rule-2);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
font: inherit;
|
|
text-align: left;
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
.spec-chip:hover { border-color: var(--accent-line); }
|
|
.spec-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.spec-chip.is-sel { border-color: var(--accent); box-shadow: var(--shadow); }
|
|
.spec-chip-name { font-size: 13.5px; font-weight: 650; }
|
|
.spec-chip-state {
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
}
|
|
.spec-chip:not(.is-sel) .spec-chip-state { color: var(--ink-3); }
|
|
.spec-chip-detail { font-size: 11.5px; color: var(--ink-3); }
|
|
|
|
/* ------------------------------------------------- dashboard confirm */
|
|
|
|
/* The beat between "I clicked a card" and "it is running": what the pick is,
|
|
what it will do, and a START that means it. Narrower than the menu, centred
|
|
like the launching pane it precedes. */
|
|
.dash-confirm {
|
|
max-width: 560px;
|
|
margin: 3vh auto 0;
|
|
display: grid;
|
|
gap: 10px;
|
|
justify-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
/* A smaller stage than the launching hero: the same sky, a moment shorter. */
|
|
.confirm-stage { height: 130px; }
|
|
.confirm-stage .sky .star { animation: star-fly var(--dur, 5s) linear var(--delay, 0s) infinite; }
|
|
|
|
.confirm-planny {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 12px;
|
|
width: 58px;
|
|
height: 80px;
|
|
transform: translateX(-50%);
|
|
filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
|
|
}
|
|
|
|
.confirm-head { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
|
|
.dash-confirm .dash-title { margin: 2px 0 0; }
|
|
.confirm-about { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
|
|
.confirm-detail { margin: 0; font-size: 13px; color: var(--accent); }
|
|
.confirm-spec { margin: 0; font-size: 13px; color: var(--ink-2); }
|
|
.confirm-spec code { font-family: var(--mono); font-size: 12px; }
|
|
.confirm-cmd { margin: 2px 0 0; }
|
|
.confirm-cmd code {
|
|
font-family: var(--mono);
|
|
font-size: 12.5px;
|
|
color: var(--ink-2);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--rule);
|
|
border-radius: 6px;
|
|
padding: 4px 10px;
|
|
}
|
|
.confirm-actions { display: flex; gap: 10px; margin-top: 10px; }
|
|
|
|
/* ------------------------------------------------------- launching pane */
|
|
|
|
.launching {
|
|
max-width: 560px;
|
|
margin: 4vh auto 0;
|
|
text-align: center;
|
|
display: grid;
|
|
gap: 12px;
|
|
justify-items: center;
|
|
}
|
|
|
|
/* The same sky the dock fills behind Planny, here in a stage sized for a
|
|
hero: the mask fades the stars at the edges exactly the way it does in
|
|
the aside. */
|
|
.launch-stage {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 180px;
|
|
overflow: hidden;
|
|
-webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 42%, transparent 78%);
|
|
mask-image: radial-gradient(120% 100% at 50% 40%, #000 42%, transparent 78%);
|
|
}
|
|
.launch-sky { opacity: 0.9; }
|
|
/* The dock only animates its stars while .is-flying; centre stage they are
|
|
the show, so the flight runs unconditionally. */
|
|
.launch-stage .sky .star { animation: star-fly var(--dur, 5s) linear var(--delay, 0s) infinite; }
|
|
|
|
.launch-planny {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 26px;
|
|
width: 74px;
|
|
height: 102px;
|
|
margin-left: -37px;
|
|
/* The dock's flight keyframes carry the forward lean; a second, slower bob
|
|
on top keeps a long wait from reading as a loop on rails. */
|
|
animation:
|
|
planny-fly 1.7s ease-in-out infinite,
|
|
launch-bob 3.4s ease-in-out infinite;
|
|
}
|
|
@keyframes launch-bob {
|
|
0%, 100% { margin-bottom: 0; }
|
|
50% { margin-bottom: 10px; }
|
|
}
|
|
|
|
.launch-title { margin: 0; font: 600 clamp(24px, 4vw, 34px)/1.12 var(--serif); }
|
|
.launch-quip {
|
|
margin: 0;
|
|
font-size: 14.5px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
/* The line swaps on a timer; a minimum keeps the hint under it from
|
|
hopping around as the words change length. */
|
|
min-height: 1.4em;
|
|
animation: launch-quip-in 0.35s ease-out;
|
|
}
|
|
@keyframes launch-quip-in {
|
|
from { opacity: 0; transform: translateY(5px); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
.launch-hint { margin: 0; font-size: 12.5px; color: var(--ink-3); max-width: 46ch; }
|
|
/* A line, never a banner: no border, no background, no icon. */
|
|
.approval-tip { margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
|
|
|
|
/* ------------------------------------------------------- skill poses
|
|
|
|
The starting and waiting screens of each skill swap the flight for Planny
|
|
acting the skill out (drawings in <template id="start-poses">, index.html). Drawn
|
|
in the page's own ink and highlight color, so the theme and the accent the
|
|
person picked carry through. Every part that moves sits in its own group,
|
|
because a CSS transform animation replaces a transform attribute. */
|
|
.pose-stage {
|
|
height: 200px;
|
|
-webkit-mask-image: none;
|
|
mask-image: none;
|
|
}
|
|
.pose { display: block; height: 100%; width: auto; margin: 0 auto; overflow: visible; }
|
|
|
|
.pose .ln, .pose .lt, .pose .sh, .pose .es, .pose .as { fill: none; stroke-linecap: round; stroke-linejoin: round; }
|
|
.pose .ln, .pose .sh { stroke: var(--ink-2); stroke-width: 6; }
|
|
.pose .lt { stroke: var(--ink-2); stroke-width: 4; }
|
|
.pose .sh { fill: var(--panel-2); }
|
|
.pose .fl { fill: var(--ink-2); }
|
|
.pose .ac { fill: var(--accent); }
|
|
.pose .as { stroke: var(--accent); stroke-width: 4; }
|
|
.pose .ey { fill: var(--ink); }
|
|
.pose .es { stroke: var(--ink); stroke-width: 4; }
|
|
.pose .shadow { fill: var(--ink-2); opacity: 0.16; }
|
|
|
|
/* Not on anything carrying a transform attribute: transform-origin moves
|
|
that too, and the lean and lift drawn into the markup would shift. */
|
|
.pose :where([class]:not([transform])) { transform-box: fill-box; transform-origin: center; }
|
|
|
|
@keyframes pose-pulse {
|
|
0%, 100% { transform: scale(1); opacity: 1; }
|
|
50% { transform: scale(1.25); opacity: 0.7; }
|
|
}
|
|
@keyframes pose-blink {
|
|
0%, 94%, 100% { transform: scaleY(1); }
|
|
97% { transform: scaleY(0.1); }
|
|
}
|
|
@keyframes pose-bob {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-4px); }
|
|
}
|
|
.pose .blink { animation: pose-blink 5.2s infinite; }
|
|
/* The star turns slowly in every pose, as it does in the rail while the agent
|
|
works. `rotate` is its own property, so it never fights the blink's transform. */
|
|
.pose .ey.blink { animation: pose-blink 5.2s infinite, pose-turn 7s linear infinite; }
|
|
@keyframes pose-turn { to { rotate: 360deg; } }
|
|
/* Quick Task runs: his feet step in time with the dash. */
|
|
.pose-quick-task .foot.f1 { animation: pose-step-a 0.5s ease-in-out infinite; }
|
|
.pose-quick-task .foot.f2 { animation: pose-step-b 0.5s ease-in-out infinite; }
|
|
@keyframes pose-step-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
|
|
@keyframes pose-step-b { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(0); } }
|
|
.pose .bob { animation: pose-bob 3.4s ease-in-out infinite; }
|
|
.pose .prop { animation: pose-bob 3s ease-in-out infinite; }
|
|
.pose .prop.p2 { animation-delay: 0.5s; }
|
|
|
|
/* 0 Pathfinder -- the ground rolls by, the spyglass sweeps, the eye follows. */
|
|
.pose .pf-trail { fill: none; stroke: var(--ink-3); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 14; animation: pf-walk 1.1s linear infinite; }
|
|
@keyframes pf-walk { to { stroke-dashoffset: 14.1; } }
|
|
.pose .pf-glass { transform-origin: 0% 100%; animation: pf-sweep 4s ease-in-out infinite; }
|
|
@keyframes pf-sweep {
|
|
0%, 100% { transform: rotate(-7deg); }
|
|
50% { transform: rotate(5deg); }
|
|
}
|
|
.pose .pf-look { animation: pf-look 4s ease-in-out infinite; }
|
|
@keyframes pf-look {
|
|
0%, 100% { transform: translate(-1px, 1px); }
|
|
50% { transform: translate(3px, -2px); }
|
|
}
|
|
.pose .twinkle { animation: pose-twinkle 2.2s ease-in-out infinite; }
|
|
.pose .twinkle.t2 { animation-delay: 0.7s; }
|
|
.pose .twinkle.t3 { animation-delay: 1.4s; }
|
|
@keyframes pose-twinkle {
|
|
0%, 100% { transform: scale(0.4); opacity: 0.3; }
|
|
50% { transform: scale(1.3); opacity: 1; }
|
|
}
|
|
|
|
/* 1 Plan -- the question mark bounces while the list ticks itself off. */
|
|
.pose-plan .bob { transform-origin: 50% 100%; animation: pl-ponder 4.8s ease-in-out infinite; }
|
|
@keyframes pl-ponder {
|
|
0%, 100% { transform: rotate(-1.5deg); }
|
|
50% { transform: rotate(1.5deg); }
|
|
}
|
|
.pose .pl-q { animation: pl-q 1.6s ease-in-out infinite; }
|
|
@keyframes pl-q {
|
|
0%, 100% { transform: translateY(0); }
|
|
40% { transform: translateY(-6px); }
|
|
60% { transform: translateY(-5px); }
|
|
}
|
|
.pose .pl-look { animation: pl-look 4.8s ease-in-out infinite; }
|
|
@keyframes pl-look {
|
|
0%, 15%, 90%, 100% { transform: translate(0, 0); }
|
|
25%, 80% { transform: translate(-3px, 2px); }
|
|
}
|
|
.pose .pl-check { stroke-dasharray: 1; animation: 4.8s ease-out infinite; }
|
|
.pose .pl-check.c1 { animation-name: pl-check-1; }
|
|
.pose .pl-check.c2 { animation-name: pl-check-2; }
|
|
.pose .pl-check.c3 { animation-name: pl-check-3; }
|
|
@keyframes pl-check-1 {
|
|
0%, 25% { stroke-dashoffset: 1; opacity: 1; }
|
|
33%, 85% { stroke-dashoffset: 0; opacity: 1; }
|
|
95%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
}
|
|
@keyframes pl-check-2 {
|
|
0%, 42% { stroke-dashoffset: 1; opacity: 1; }
|
|
50%, 85% { stroke-dashoffset: 0; opacity: 1; }
|
|
95%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
}
|
|
@keyframes pl-check-3 {
|
|
0%, 59% { stroke-dashoffset: 1; opacity: 1; }
|
|
67%, 85% { stroke-dashoffset: 0; opacity: 1; }
|
|
95%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
}
|
|
|
|
/* 2 Document -- the pencil walks each line and the line appears behind it. */
|
|
.pose .dc-look { animation: dc-look 6s ease-in-out infinite; }
|
|
@keyframes dc-look {
|
|
0%, 100% { transform: translate(1px, 1px); }
|
|
20%, 55% { transform: translate(3px, 1px); }
|
|
37%, 71% { transform: translate(4px, 2px); }
|
|
}
|
|
.pose .dc-line { stroke-dasharray: 1; animation: 6s linear infinite; }
|
|
.pose .dc-line.d1 { animation-name: dc-line-1; }
|
|
.pose .dc-line.d2 { animation-name: dc-line-2; }
|
|
.pose .dc-line.d3 { animation-name: dc-line-3; }
|
|
.pose .dc-line.d4 { animation-name: dc-line-4; }
|
|
@keyframes dc-line-1 {
|
|
0%, 5% { stroke-dashoffset: 1; opacity: 1; }
|
|
20%, 88% { stroke-dashoffset: 0; opacity: 1; }
|
|
95%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
}
|
|
@keyframes dc-line-2 {
|
|
0%, 22% { stroke-dashoffset: 1; opacity: 1; }
|
|
37%, 88% { stroke-dashoffset: 0; opacity: 1; }
|
|
95%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
}
|
|
@keyframes dc-line-3 {
|
|
0%, 39% { stroke-dashoffset: 1; opacity: 1; }
|
|
54%, 88% { stroke-dashoffset: 0; opacity: 1; }
|
|
95%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
}
|
|
@keyframes dc-line-4 {
|
|
0%, 56% { stroke-dashoffset: 1; opacity: 1; }
|
|
71%, 88% { stroke-dashoffset: 0; opacity: 1; }
|
|
95%, 100% { stroke-dashoffset: 0; opacity: 0; }
|
|
}
|
|
/* The pencil's tip rests at (186,130); each stop puts it at a line's start
|
|
or end, timed to the line keyframes above. */
|
|
.pose .dc-pencil { animation: dc-pencil 6s ease-in-out infinite; }
|
|
@keyframes dc-pencil {
|
|
0%, 88%, 100% { transform: translate(0, 0); }
|
|
5% { transform: translate(-2px, -32px); }
|
|
20% { transform: translate(14px, -32px); }
|
|
22% { transform: translate(-2px, -24px); }
|
|
37% { transform: translate(22px, -24px); }
|
|
39% { transform: translate(-2px, -16px); }
|
|
54% { transform: translate(18px, -16px); }
|
|
56% { transform: translate(-2px, -8px); }
|
|
71% { transform: translate(10px, -8px); }
|
|
78% { transform: translate(6px, -4px); }
|
|
}
|
|
|
|
/* 3 Implement -- crank, spark, jolt, on one 1.4s beat. */
|
|
.pose-implement .bob { animation: im-jolt 1.4s ease-in-out infinite; }
|
|
@keyframes im-jolt {
|
|
0%, 40%, 100% { transform: translateY(0); }
|
|
22% { transform: translateY(2px); }
|
|
}
|
|
.pose .im-wrench { transform-origin: 100% 100%; animation: im-crank 1.4s ease-in-out infinite; }
|
|
@keyframes im-crank {
|
|
0%, 45%, 100% { transform: rotate(0deg); }
|
|
20% { transform: rotate(-24deg); }
|
|
28% { transform: rotate(-20deg); }
|
|
}
|
|
.pose .im-spark { transform-origin: 100% 50%; animation: im-spark 1.4s ease-out infinite; }
|
|
@keyframes im-spark {
|
|
0%, 16%, 55%, 100% { opacity: 0; transform: scale(0.6); }
|
|
24% { opacity: 1; transform: scale(1.15); }
|
|
}
|
|
.pose .im-lt { animation: im-lt 1.4s ease-in-out infinite; }
|
|
.pose .im-gt { animation: im-gt 1.4s ease-in-out infinite; }
|
|
@keyframes im-lt { 50% { transform: translateX(-2px); } }
|
|
@keyframes im-gt { 50% { transform: translateX(2px); } }
|
|
.pose .im-slash { animation: im-slash 1.4s steps(1) infinite; }
|
|
@keyframes im-slash { 50% { opacity: 0.35; } }
|
|
|
|
/* 4 Finalize -- a happy hop with a squash on landing, the flag waving,
|
|
confetti drifting down past him. */
|
|
.pose .fz-hop { transform-origin: 50% 100%; animation: fz-hop 1.6s ease-in-out infinite; }
|
|
@keyframes fz-hop {
|
|
0%, 100% { transform: translateY(0) scale(1.04, 0.96); }
|
|
15%, 75% { transform: translateY(0) scale(1); }
|
|
45% { transform: translateY(-14px) scale(0.98, 1.02); }
|
|
85% { transform: translateY(0) scale(1.03, 0.97); }
|
|
}
|
|
.pose .fz-shadow { animation: fz-shadow 1.6s ease-in-out infinite; }
|
|
@keyframes fz-shadow {
|
|
0%, 15%, 75%, 100% { transform: scale(1); opacity: 0.16; }
|
|
45% { transform: scale(0.7); opacity: 0.08; }
|
|
}
|
|
.pose .fz-halo { opacity: 0.25; animation: fz-halo 1.6s ease-in-out infinite; }
|
|
@keyframes fz-halo {
|
|
0%, 100% { transform: scale(1); opacity: 0.2; }
|
|
45% { transform: scale(1.3); opacity: 0.4; }
|
|
}
|
|
.pose .fz-tick { stroke: var(--accent-ink); }
|
|
.pose .fz-flag { transform-origin: 0% 50%; animation: fz-wave 1.2s ease-in-out infinite; }
|
|
@keyframes fz-wave {
|
|
0%, 100% { transform: skewY(0deg) scaleX(1); }
|
|
33% { transform: skewY(-7deg) scaleX(0.94); }
|
|
66% { transform: skewY(5deg) scaleX(1.02); }
|
|
}
|
|
.pose .cf { animation: fz-fall 3.2s linear infinite; }
|
|
.pose .cf:nth-child(2) { animation-delay: -0.4s; }
|
|
.pose .cf:nth-child(3) { animation-delay: -2.1s; }
|
|
.pose .cf:nth-child(4) { animation-delay: -1.2s; }
|
|
.pose .cf:nth-child(5) { animation-delay: -2.7s; }
|
|
.pose .cf:nth-child(6) { animation-delay: -0.9s; }
|
|
.pose .cf:nth-child(7) { animation-delay: -1.8s; }
|
|
.pose .cf:nth-child(8) { animation-delay: -3s; }
|
|
.pose .cf:nth-child(9) { animation-delay: -1.5s; }
|
|
.pose .cf:nth-child(10) { animation-delay: -2.4s; }
|
|
@keyframes fz-fall {
|
|
0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
|
|
15%, 80% { opacity: 1; }
|
|
100% { transform: translateY(30px) rotate(200deg); opacity: 0; }
|
|
}
|
|
|
|
/* Init -- the foundation goes down a block at a time, each landing with a
|
|
squash, and he watches every one of them come down. */
|
|
.pose .blk {
|
|
fill: var(--panel-2);
|
|
stroke: var(--ink-2);
|
|
stroke-width: 4;
|
|
stroke-linejoin: round;
|
|
transform-origin: 50% 100%;
|
|
animation: 4.8s ease-in infinite;
|
|
}
|
|
.pose .blk.ac { fill: var(--accent); stroke: var(--accent); }
|
|
.pose .in-b1 { animation-name: in-drop-1; }
|
|
.pose .in-b2 { animation-name: in-drop-2; }
|
|
.pose .in-b3 { animation-name: in-drop-3; }
|
|
@keyframes in-drop-1 {
|
|
0% { transform: translateY(-48px); opacity: 0; }
|
|
4% { opacity: 1; }
|
|
14% { transform: translateY(0) scale(1.08, 0.86); }
|
|
19%, 86% { transform: none; opacity: 1; }
|
|
94%, 100% { transform: none; opacity: 0; }
|
|
}
|
|
@keyframes in-drop-2 {
|
|
0%, 22% { transform: translateY(-48px); opacity: 0; }
|
|
26% { opacity: 1; }
|
|
36% { transform: translateY(0) scale(1.08, 0.86); }
|
|
41%, 86% { transform: none; opacity: 1; }
|
|
94%, 100% { transform: none; opacity: 0; }
|
|
}
|
|
@keyframes in-drop-3 {
|
|
0%, 44% { transform: translateY(-48px); opacity: 0; }
|
|
48% { opacity: 1; }
|
|
58% { transform: translateY(0) scale(1.08, 0.86); }
|
|
63%, 86% { transform: none; opacity: 1; }
|
|
94%, 100% { transform: none; opacity: 0; }
|
|
}
|
|
.pose .in-look { animation: in-look 4.8s ease-in-out infinite; }
|
|
@keyframes in-look {
|
|
0%, 22%, 44%, 96%, 100% { transform: translate(3px, -3px); }
|
|
14%, 36%, 58%, 86% { transform: translate(4px, 2px); }
|
|
}
|
|
|
|
/* Quick Task -- a dash: a quick bob, the streaks pouring off behind him and
|
|
the bolt ahead crackling. */
|
|
.pose-quick-task .bob { animation: qt-dash 0.5s ease-in-out infinite; }
|
|
@keyframes qt-dash {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-3px); }
|
|
}
|
|
.pose .qt-shadow { animation: qt-shadow 0.5s ease-in-out infinite; }
|
|
@keyframes qt-shadow {
|
|
0%, 100% { transform: scaleX(1); }
|
|
50% { transform: scaleX(0.92); }
|
|
}
|
|
.pose .qt-line { animation: qt-streak 0.9s linear infinite; }
|
|
.pose .qt-line.l2 { animation-delay: -0.3s; }
|
|
.pose .qt-line.l3 { animation-delay: -0.6s; }
|
|
.pose .qt-line.l4 { animation-delay: -0.15s; }
|
|
@keyframes qt-streak {
|
|
0% { transform: translateX(10px); opacity: 0; }
|
|
25% { opacity: 1; }
|
|
100% { transform: translateX(-26px); opacity: 0; }
|
|
}
|
|
.pose .qt-zap { animation: qt-zap 1.8s ease-out infinite; }
|
|
@keyframes qt-zap {
|
|
0%, 20%, 50%, 58%, 100% { transform: scale(1); opacity: 1; }
|
|
8% { opacity: 0.35; }
|
|
12% { transform: scale(1.12); opacity: 1; }
|
|
54% { opacity: 0.5; }
|
|
}
|
|
|
|
/* Review -- the glass works down the page, lingers on the bad line while
|
|
it lights up and a pin pops beside it, then goes back to the top. */
|
|
.pose .rv-glass { animation: rv-scan 5s ease-in-out infinite; }
|
|
@keyframes rv-scan {
|
|
0%, 6%, 94%, 100% { transform: translate(0, 0); }
|
|
18%, 24% { transform: translate(4px, 12px); }
|
|
36% { transform: translate(-2px, 24px); }
|
|
42% { transform: translate(2px, 24px); }
|
|
48%, 60% { transform: translate(0, 24px); }
|
|
74%, 80% { transform: translate(-4px, 36px); }
|
|
}
|
|
.pose .rv-flag { animation: rv-flag 5s ease-out infinite; }
|
|
@keyframes rv-flag {
|
|
0%, 38% { opacity: 0; }
|
|
44%, 88% { opacity: 1; }
|
|
96%, 100% { opacity: 0; }
|
|
}
|
|
.pose .rv-pin { animation: rv-pin 5s ease-out infinite; }
|
|
@keyframes rv-pin {
|
|
0%, 38% { opacity: 0; transform: scale(0.3); }
|
|
44% { opacity: 1; transform: scale(1.4); }
|
|
50%, 88% { opacity: 1; transform: scale(1); }
|
|
96%, 100% { opacity: 0; transform: scale(1); }
|
|
}
|
|
.pose .rv-look { animation: rv-look 5s ease-in-out infinite; }
|
|
@keyframes rv-look {
|
|
0%, 6%, 94%, 100% { transform: translate(4px, -1px); }
|
|
18%, 24% { transform: translate(4px, 1px); }
|
|
36%, 60% { transform: translate(4px, 2px); }
|
|
74%, 80% { transform: translate(4px, 3px); }
|
|
}
|
|
|
|
/* Handoff -- the arms reach, the parcel goes with them, and the arrow keeps
|
|
pointing the way it is headed. */
|
|
.pose .ho-reach { transform-origin: 0% 50%; animation: ho-reach 2.4s ease-in-out infinite; }
|
|
@keyframes ho-reach {
|
|
0%, 100% { transform: scaleX(1); }
|
|
50% { transform: scaleX(1.2); }
|
|
}
|
|
.pose .ho-give { animation: ho-give 2.4s ease-in-out infinite; }
|
|
@keyframes ho-give {
|
|
0%, 100% { transform: translateX(0); }
|
|
50% { transform: translateX(5px); }
|
|
}
|
|
.pose .ho-arrow { animation: ho-arrow 1.2s ease-in-out infinite; }
|
|
@keyframes ho-arrow {
|
|
0% { transform: translateX(-4px); opacity: 0.35; }
|
|
60% { transform: translateX(4px); opacity: 1; }
|
|
100% { transform: translateX(8px); opacity: 0; }
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.dash { padding-top: 0; }
|
|
.launch-stage { height: 140px; }
|
|
.pose-stage { height: 150px; }
|
|
.waiting-pane .pose-stage { height: 100px; }
|
|
.launch-planny { width: 58px; height: 80px; margin-left: -29px; }
|
|
}
|
|
|
|
/* ---------------------------------------------------------------- print */
|
|
|
|
/* What gets printed is the document being read, on its own. Everything that
|
|
steers the session is furniture and has no business on paper. */
|
|
@media print {
|
|
.topbar, .rail, .aside, .footer, .banner, .skip, .doc-tools, .pager, .modal, .arrival, .review-offer { display: none !important; }
|
|
html, body { height: auto; background: #fff; color: #000; }
|
|
body { display: block; }
|
|
.layout { display: block; overflow: visible; }
|
|
.main { overflow: visible; padding: 0; max-width: none; }
|
|
.main > * { max-width: none; }
|
|
.block, .card { break-inside: avoid; box-shadow: none; }
|
|
.doc-head { border-bottom: 1px solid #ccc; }
|
|
.md a { color: #000; }
|
|
.md-pre, .md-code { background: #f4f4f4; border-color: #ddd; }
|
|
}
|
|
|
|
/* ------------------------------------------------------------ responsive */
|
|
|
|
@media (max-width: 1080px) {
|
|
.layout { grid-template-columns: 210px minmax(0, 1fr); }
|
|
.aside { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
body { display: block; }
|
|
.layout { display: block; }
|
|
.rail { border-right: 0; border-bottom: 1px solid var(--rule); }
|
|
.sidebar, .aside { border: 0; border-bottom: 1px solid var(--rule); max-height: 30vh; }
|
|
.main { padding: 18px 16px 30px; }
|
|
.card { padding: 18px 16px; border-radius: 8px; }
|
|
.main > .card { padding-right: 22px; }
|
|
.card h2 { font-size: 21px; }
|
|
/* Back to a wrapping row: the summary and Send take two lines here and fill
|
|
the bar's middle, so the where slot has no room and goes. */
|
|
.footer { display: flex; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 20; box-shadow: 0 -4px 14px rgba(0,0,0,0.07); }
|
|
.footer-summary { flex: 1; }
|
|
.footer-actions { white-space: normal; }
|
|
.footer-where { display: none; }
|
|
.footer.is-dash { justify-content: center; }
|
|
.footer.is-dash .footer-where:not([hidden]) { display: block; max-width: 100%; }
|
|
.progress-block { margin-left: 0; max-width: none; }
|
|
.topbar { padding: 12px 16px 0; }
|
|
.topbar-row.second { gap: 9px; }
|
|
.views-arrow { display: none; }
|
|
/* Side by side, because vertical space is the scarce thing here. */
|
|
.dock { flex-direction: row; text-align: left; gap: 12px; padding: 12px 16px; }
|
|
.planny { width: 32px; height: 44px; }
|
|
/* Three items on one line is one too many at this width, and the count is
|
|
the one that is only nice to have. */
|
|
.pager { gap: 8px; }
|
|
.pager-count { display: none; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
|
|
/* Re-enable the indicators whose whole job is to show that time is passing.
|
|
Frozen, the spinner reads as a broken ring and Planny's star as a dead
|
|
light, so the star keeps turning, slowly. His lean, blink, arms and feet
|
|
are decoration and stay off. */
|
|
.spinner { animation: spin 1.6s linear infinite !important; }
|
|
.planny.is-work .eye { animation: planny-spin 4s linear infinite !important; }
|
|
/* The flight holds still rather than collapsing. Collapsed to its last
|
|
frame every star would sit off the left edge and the sky would be empty;
|
|
stopped, the field stays and Planny keeps his forward lean. */
|
|
.sky .star, .trail i, .dock.is-flying .planny { animation: none !important; }
|
|
/* The step poses hold their finished drawing -- every tick and line
|
|
written, confetti where it was drawn -- and keep only the star's pulse. */
|
|
.pose, .pose * { animation: none !important; }
|
|
.pose .ey.blink { animation: pose-pulse 2.4s ease-in-out infinite !important; }
|
|
/* Help's Planny moods are pictures, not indicators: all of them hold
|
|
still, the working star included. */
|
|
.help-mood-bot, .help-mood-bot *, .help-mood-bot.is-work .eye { animation: none !important; }
|
|
#btn-send { animation: none; }
|
|
}
|