Files
plan2code/src/web-console/public/styles/shell.css
T

765 lines
28 KiB
CSS

/* shell.css: The page shell: banner, top bar and meter, layout, sidebar, aside, footer, waiting and arrival. */
/* ------------------------------------------------------------- banner */
/* A pill floated over the footer, centered 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); }
/* Subagents: an orchestrator and its helpers. Unlit is a hollow outline in
the quiet ink; lit fills the nodes with the highlight color. */
.subagents-btn { border-color: var(--rule-2); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.btn.subagents-btn { padding: 0 6px; align-self: stretch; }
.subagents-btn[hidden] { display: none; }
.subagents-btn svg { width: 16px; height: 16px; display: block; }
.subagents-btn .sa-link { fill: none; stroke: var(--ink-2); stroke-width: 1.2; stroke-linecap: round; }
.subagents-btn .sa-hub { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.subagents-btn .sa-node { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.subagents-btn[aria-pressed="true"] .sa-hub,
.subagents-btn[aria-pressed="true"] .sa-node { fill: var(--accent); stroke: var(--accent); }
.subagents-btn[aria-pressed="true"] .sa-link { stroke: var(--accent); }
.subagents-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent-line); }
.subagents-btn:hover:not(:disabled) .sa-link,
.subagents-btn:hover:not(:disabled) .sa-hub,
.subagents-btn:hover:not(:disabled) .sa-node { stroke: var(--accent); }
.subagents-btn:disabled .sa-link,
.subagents-btn:disabled .sa-hub,
.subagents-btn:disabled .sa-node { stroke: var(--ink-3); fill: none; }
.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 color. Green, amber and red are the page's own done / staged /
careful colors, 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); }
.meter-list {
list-style: none; margin: 0 0 8px; padding: 6px 0 0;
border-top: 1px solid var(--rule);
max-height: 40vh; overflow-y: auto;
font-size: 12px; color: var(--ink-2);
}
.meter-list[hidden] { display: none; }
.meter-list li { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.meter-fresh { margin: 0 0 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.meter-fresh[hidden] { display: none; }
.meter-fresh-text { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); }
/* Under the app the whole note is one button: a press is the bar's New Session. */
.meter-fresh-btn { display: block; width: 100%; margin: 2px 0 6px; }
.meter-fresh-row .handoff-code { flex-basis: 180px; font-size: 12px; padding: 6px 10px; }
.meter-item-points { flex: none; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.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; }
/* When the progress block is hidden (the dashboard, the git board) nothing
grows to fill the row, so the icon buttons would sit beside the title. The
first takes the slack instead; with the block shown its flex already eats
the space, so this costs nothing. */
#btn-looks { 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; }
/* ------------------------------------------------------------- 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. The git board is the one
exception, below: its card sits in the board's card slot, so the column
takes the scroll there and card and board flow through it at natural height. */
.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; }
/* More below the fold (app.js markMore): the bottom edge fades, so a card
cut by the window never reads as finished. */
.main > .card.has-more {
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
}
.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; }
/* ------------------------------------------------------------ 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: 0;
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; }
/* Echoes the center pane's "Suggested" pill, which can scroll out of view;
the dot keeps the call-out visible while just scanning the rail. The
title grows to push the dot flush with the row's right edge. */
.rail-item > span:not(.rail-mark):not(.rail-suggested-dot) { flex: 1 1 auto; }
.rail-suggested-dot {
flex: none;
width: 7px;
height: 7px;
border-radius: 50%;
margin-top: 5px;
background: var(--accent);
}
.rail-item.is-suggested:not([aria-current="true"]) { color: var(--ink); }
.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; }
/* -------------------------------------------------------------- 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 box 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 .md-host { 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-row.is-under { margin: 6px 0 4px -13px; }
.attach-row .suggest-chip { margin: 0 0 0 auto; }
.msg .suggest-tag {
display: inline-block; margin-bottom: 4px;
background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line);
}
.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; }
/* The picture in a thumbnail is a button that opens the picview, with the
tray's round X in its corner and the upload state laid over it. */
.attach-open {
display: block;
width: 100%;
height: 100%;
padding: 0;
border: 0;
background: none;
cursor: zoom-in;
}
.attach-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.attach-thumb.is-uploading .attach-open,
.attach-thumb.is-failed .attach-open { cursor: default; }
.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; }
.attach-link { color: inherit; text-decoration: none; border-radius: 8px; }
.attach-link:hover .attach-thumb, .attach-link:focus-visible .attach-thumb { border-color: var(--accent); }
.attach-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The same hover border a linked thumbnail gets, for a thumbnail whose own
button opens the picview. */
.attach-thumb:has(.attach-open:hover) { border-color: var(--accent); }
/* The full-screen picture preview: the whole viewport, the picture contained
in it, on a near-black backdrop in both themes (a picture is judged against
dark, whatever the page's theme), so its colors are fixed, not tokens. */
.modal.picview {
inset: 0;
width: 100vw;
height: 100vh;
max-width: none;
max-height: none;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
color: #f4f1ec;
}
.modal.picview[open] {
display: grid;
grid-template-columns: 72px minmax(0, 1fr) 72px;
grid-template-rows: minmax(0, 1fr) auto;
}
.modal.picview::backdrop { background: rgba(8, 8, 8, 0.92); }
.picview-img {
grid-column: 2;
grid-row: 1;
place-self: center;
max-width: 100%;
max-height: 100%;
object-fit: contain;
padding-top: 24px;
}
.picview-step {
grid-row: 1;
place-self: center;
width: 44px;
height: 44px;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 50%;
background: rgba(0, 0, 0, 0.45);
color: #fff;
font: 600 28px/1 var(--sans);
cursor: pointer;
}
.picview-step.is-prev { grid-column: 1; }
.picview-step.is-next { grid-column: 3; }
.picview-step:hover,
.picview-step:focus-visible { border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.picview-step[hidden] { display: none; }
.picview-bar {
grid-column: 1 / -1;
grid-row: 2;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
padding: 12px 16px 20px;
}
.picview-count { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }
.btn.picview-close { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn.picview-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.msg.pending { border-style: dashed; border-color: var(--stage); background: transparent; }
.ask-row .attach-chip { padding-right: 10px; }
.footer-held { margin-top: 3px; color: var(--ink-2); font-size: 12.5px; }
/* ------------------------------------------------------------- footer */
/* Three columns: summary, where, actions. Equal side tracks keep the middle
centered on the bar, and because they are tracks rather than an overlay, a
long summary wraps and a wide actions block nudges the center 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, centered 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; }
/* The project name, in the person's highlight color. */
.where-project { color: var(--accent); font-weight: 600; }
/* 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; }
.footer.is-dash-done .footer-actions { display: none; }
.footer.is-loop-idle .footer-summary,
.footer.is-loop-idle .footer-actions { visibility: hidden; }
.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 { max-width: 70ch; margin: 0; }
/* The words that open the live task view (the phase-file tab on a build):
bold in the highlight color, a button that reads as part of the sentence. */
.waiting-jump {
font: inherit;
font-weight: 700;
color: var(--accent);
background: none;
border: 0;
padding: 0;
}
button.waiting-jump { cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
button.waiting-jump:hover { text-decoration-color: var(--accent); }
/* 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; }
/* ------------------------------------------------------------ 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); } }