/* pieces.css: Shared pieces: cards, options, settled answers, pager, forms, checklist, markdown and the modal. */ /* --------------------------------------------------------------- card */ .card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); --card-pad-b: 24px; padding: 24px 26px var(--card-pad-b); 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-files { margin-top: 10px; font-size: 0.9em; } .card-files summary { cursor: pointer; color: var(--ink-2); } .card-files table { margin-top: 6px; } .card-files td:last-child { word-break: break-all; } .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 labeled 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; } /* ------------------------------------------------------------ options */ .options { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; } /* Pinned to the foot of the card's scroll area, so a question taller than the window keeps its Clear in reach; it settles under the options at the end. */ .options-clear { position: sticky; bottom: calc(var(--card-pad-b) * -1); z-index: 1; margin: 10px 0 calc(var(--card-pad-b) * -1); padding: 8px 0 var(--card-pad-b); background: linear-gradient(to bottom, transparent, var(--panel) 8px); } .clear-btn { display: inline-flex; align-items: center; gap: 6px; } .clear-btn svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .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); } /* The Subagents tab: one row per reported helper, newest state in a pill. */ .sa-card h2 { margin: 0 0 6px; } .sa-card > .help { margin: 0 0 16px; } .sa-alone { margin: 0; color: var(--ink-2); } .sa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .sa-row { border: 1px solid var(--rule); border-radius: 8px; background: var(--panel-2); padding: 12px 14px; } .sa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .sa-title { min-width: 0; overflow-wrap: anywhere; } .sa-ask { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } .sa-strength { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; } /* A helper's strength and effort, colored by rank: calm teal, amber, violet. */ .sa-badge { --b: var(--ink-2); --b-soft: var(--panel); display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--b) 35%, transparent); background: var(--b-soft); color: var(--b); white-space: nowrap; } .sa-badge.lvl-0 { --b: var(--lvl-0); --b-soft: var(--lvl-0-soft); } .sa-badge.lvl-1 { --b: var(--lvl-1); --b-soft: var(--lvl-1-soft); } .sa-badge.lvl-2 { --b: var(--lvl-2); --b-soft: var(--lvl-2-soft); } .sa-badge.lvl-3 { --b: var(--lvl-3); --b-soft: var(--lvl-3-soft); } .sa-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; } .sa-bars i { width: 2.5px; border-radius: 1px; background: currentColor; opacity: 0.25; } .sa-bars i:nth-child(1) { height: 4px; } .sa-bars i:nth-child(2) { height: 6.5px; } .sa-bars i:nth-child(3) { height: 9px; } .sa-bars i.on { opacity: 1; } .sa-result { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 13.5px; } .sa-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; } .sa-pill.is-running { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); } .sa-pill.is-done { background: var(--ok-soft); color: var(--ok); } .sa-pill.is-failed { background: var(--warn-soft); color: var(--warn); } .sa-pill .spinner.tiny { width: 10px; height: 10px; } /* The Subagents dialog: wide like the Notebook, so it lays its choices out in rows instead of a tall stack. Back to a stack on a narrow window. */ .modal.looks.subagents { width: min(1000px, 90vw); max-width: none; } .subagents-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; } .modal.looks .subagents-top .modal-ranges + .modal-ranges { margin-top: 0; } .subagents-top .looks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .subagents-top + .modal-ranges { margin-top: 18px; } .subagents #subagents-strength-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* Each strength radio carries the tab's badge; the session's own model has no rank, so it keeps the badge's plain ink. A locked row dims with its radios. */ .subagents #subagents-strength-row .sa-badge { font-size: 13px; padding: 5px 10px; } .subagents #subagents-strength-row label:has(input:checked) { border-color: var(--accent-line); } .subagents #subagents-strength-row label:has(input:disabled) .sa-badge { opacity: 0.5; } @media (max-width: 720px) { .subagents-top, .subagents-top .looks-row, .subagents #subagents-strength-row { grid-template-columns: 1fr; } } /* The dialog's number box, themed like the page's other inputs. */ .subagents input[type="number"] { width: 5em; font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--rule-2); border-radius: 6px; padding: 4px 8px; } /* ------------------------------------------------------ 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); text-transform: none; letter-spacing: 0; background: var(--stage-soft); } .card.is-inflight .option.is-locked.is-recorded:hover { border-color: var(--stage); text-transform: none; letter-spacing: 0; 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"], .md-host { width: 100%; font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--rule-2); border-radius: 8px; } textarea, input[type="text"] { padding: 11px 13px; resize: vertical; } /* A Markdown field's size lives on the host (the editor inside fills it), so the shared rules name .md-host wherever a textarea used to sit; its overflow is clipped both so resize: vertical has a box to drag and so the editor's own scroller is the only scroller. */ textarea, .md-host { min-height: 96px; } .md-host { resize: vertical; overflow: hidden; } /* 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, .md-host.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, .md-host:focus-within { border-color: var(--accent); outline: none; } input[type="text"].invalid, .md-host.invalid { border-color: var(--warn); } .md-host.is-disabled { opacity: 0.6; cursor: not-allowed; } .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); } /* A review card's approve verdict, before it is picked: the accent outline marks it as the main way forward. */ .btn.is-approve { border-color: var(--accent); } /* Send glows and breathes while there is something to send: the steady --glow, plus a soft accent ring that spreads and fades. The ring is off under reduced motion, below; the glow stays. */ #btn-send:not(:disabled) { box-shadow: var(--glow); } @keyframes send-pulse { 0% { box-shadow: var(--glow), 0 0 0 0 var(--accent-line); } 100% { box-shadow: var(--glow), 0 0 0 6px transparent; } } #btn-send.primary: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.danger.is-on { background: var(--warn); color: #fff; } .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); } .quick-answer + .quick-answer { margin-left: 6px; } .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; } /* ----------------------------------------------------------- markdown */ /* A word or path longer than the line breaks instead of widening the page; code blocks and tables keep their own scroll. */ .md { max-width: 68ch; overflow-wrap: anywhere; } .md pre, .md .md-table { overflow-wrap: normal; } .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-task.is-blocked { color: var(--warn); } .md-task.is-doing { color: var(--accent); } .md-task.is-assumed { color: var(--stage); } .md-li.is-task { list-style: none; margin-left: -18px; display: grid; grid-template-columns: 16px minmax(0, 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; } /* The muted nudge on command-looking blocks, a caption under the block. */ .md-run-hint { margin: 4px 2px 0; font: 11px var(--sans); color: var(--ink-3); opacity: 0.8; } /* No "paste it into the Ask tab" nudge where the command is the card's own action (a confirm's consequences, a finished screen's commit beside its Commit it now button). */ .is-consequences .md-run-hint, .handoff .md-run-hint { display: none; } .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; } .doc-figure { margin: 0 0 13px; } .doc-img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; } .doc-figure figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; } .md a { color: var(--accent); } /* -------------------------------------------------------------- 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; } /* The Welcome: a dark poster with Planny, four columns, one button. */ .modal.welcome { width: min(840px, calc(100vw - 32px)); max-width: none; padding: 0; overflow: hidden; } .modal.welcome[open] { display: flex; flex-direction: column; max-height: calc(100vh - 96px); } .welcome-poster { position: relative; flex: none; overflow: hidden; padding: 52px 48px 40px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 125%, color-mix(in srgb, var(--accent) 85%, #fff) 0, transparent 58%), linear-gradient(180deg, #16181d, color-mix(in srgb, var(--accent) 50%, #16181d)); } .welcome-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.55; } .welcome-sky i:nth-child(1) { top: 18%; left: 11%; } .welcome-sky i:nth-child(2) { top: 34%; left: 84%; } .welcome-sky i:nth-child(3) { top: 12%; left: 66%; } .welcome-sky i:nth-child(4) { top: 56%; left: 20%; } .welcome-sky i:nth-child(5) { top: 62%; left: 91%; } .welcome-sky i:nth-child(6) { top: 26%; left: 32%; width: 2px; height: 2px; } .welcome-bot { display: flex; justify-content: center; } /* The dock's own Planny, larger and in light ink for the dark poster. */ .welcome-bot .planny { width: 70px; height: 96px; } .welcome-bot .planny .shell, .welcome-bot .planny .smile, .welcome-bot .planny .arm path { stroke: #f0ece5; } .welcome-bot .planny .shell { fill: #1e2127; } .welcome-bot .planny .arm circle, .welcome-bot .planny .foot { fill: #f0ece5; } .welcome-kicker { margin: 20px 0 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); } .modal.welcome h2 { font: 600 38px/1.15 var(--serif); margin: 0 0 12px; color: #fff; } .welcome-lead { margin: 0 auto; max-width: 52ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); } .welcome-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; min-height: 0; overflow-y: auto; padding: 34px 36px 8px; text-align: center; } .welcome-col h3 { font: 600 15px/1.3 var(--sans); margin: 12px 0 4px; color: var(--ink); } .welcome-col p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); } .welcome-col strong { color: var(--ink); } .welcome-col code { font: 600 12px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); } .welcome-col kbd { font: 600 11.5px var(--mono); padding: 0 6px; border-radius: 5px; border: 1px solid var(--rule-2); border-bottom-width: 2px; background: var(--panel-2); color: var(--ink); } .welcome-dot { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; } .welcome-dot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .welcome-dot.is-accent { background: var(--accent-soft); color: var(--accent); } .welcome-dot.is-stage { background: var(--stage-soft); color: var(--stage); } .welcome-dot.is-plain { background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--rule); } .welcome-dot.is-ok { background: var(--ok-soft); color: var(--ok); } .welcome-dot.is-bare { background: none; color: var(--ok); } .welcome-dot.is-bare svg { width: 30px; height: 30px; } .modal.welcome .modal-actions { flex: none; justify-content: center; margin: 0; padding: 24px 36px 36px; } .modal.welcome .modal-actions .btn { padding: 12px 40px; font-size: 15px; border-radius: 999px; } @media (max-width: 720px) { .welcome-poster { padding: 36px 24px 28px; } .modal.welcome h2 { font-size: 28px; } .welcome-cols { grid-template-columns: 1fr 1fr; padding: 24px 20px 8px; } } .help-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; } .help-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; } .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.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .looks-row .help { grid-column: 1 / -1; } /* The Desktop app group exists only inside the app; elsewhere it stays hidden in spite of the grid above. */ .looks-desktop[hidden] { display: none; } /* The per-cue boxes sit under the master switch, grayed and locked while it is off rather than hidden, so the picks stay visible. */ .looks-sound-events { display: grid; grid-template-columns: minmax(0, 1fr); 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, .looks-sound-events.is-off .sound-row:hover { border-color: var(--rule-2); } .looks-sound-events.is-off select, .looks-sound-events.is-off .sound-row .btn { cursor: default; } /* Planny's snoring and waking keep plain boxes in a row of their own; the seven pickable cues are a list, each a label with its sound and a play button on the right, stacked on a narrow window. */ .sound-plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .sound-rows { display: grid; gap: 8px; } .sound-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule-2); border-radius: 8px; padding: 6px 8px 6px 0; background: var(--panel); } .sound-row:hover { border-color: var(--accent-line); } .modal-ranges .sound-row label { flex: 1 1 auto; border: 0; border-radius: 0; background: none; padding: 4px 13px; } .sound-row select { flex: none; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--rule-2); border-radius: 8px; padding: 6px 8px; } .sound-row select:focus-visible, .sound-row .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .sound-row select:disabled, .sound-row .btn:disabled { opacity: 1; cursor: default; } @media (max-width: 720px) { .sound-plain { grid-template-columns: 1fr; } .sound-row { flex-wrap: wrap; padding: 6px 8px; } .modal-ranges .sound-row label { flex: 1 1 100%; padding: 4px 5px; } .sound-row select { flex: 1 1 auto; min-width: 0; } } @media (max-width: 720px) { .looks-row, .looks-row.four { grid-template-columns: 1fr; } } /* User Preferences itself (not the dialogs borrowing .looks): takes the card width the person picked, never wider than the wide preset (1080px), and only the body scrolls, so Back to default and Done never leave the screen. */ .modal.prefs { width: min(1080px, var(--card-width), calc(100vw - 32px)); max-width: none; } .modal.prefs[open] { display: flex; flex-direction: column; max-height: calc(100vh - 48px); } .prefs-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; margin-right: -12px; padding-right: 12px; padding-top: 10px; } /* A line scrolled up under the title fades out rather than being sliced. */ .prefs-body { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px); mask-image: linear-gradient(to bottom, transparent 0, #000 12px); } .modal.prefs .modal-actions { flex: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); } /* 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 .modal-blurb { margin-bottom: 6px; } .workspace-scope { margin: 0 0 16px; color: var(--ink-3, var(--ink-2)); font-size: 12.5px; } .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; } /* The Stop dialog's two ways out, stacked: the handoff first (the suggested one), the plain stop second, "Keep going" alone below. */ .stop-choices { display: grid; gap: 10px; margin-top: 16px; } .stop-choice { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--rule-2); border-radius: var(--radius); cursor: pointer; } .stop-choice:hover, .stop-choice.suggested { border-color: var(--accent); } .stop-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .stop-choice:disabled { opacity: 0.6; cursor: default; } .stop-choice[hidden] { display: none; } .stop-choice-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-2); font-size: 13px; color: var(--accent); } .stop-choice-text { display: grid; gap: 2px; min-width: 0; } .stop-choice-title { font-weight: 600; font-size: 14px; } .stop-choice-detail { font-size: 12.5px; color: var(--ink-2); } .modal-actions:has(#stop-cancel) { justify-content: center; margin-top: 14px; } @media (max-width: 560px) { .modal-actions:has(#stop-cancel) .btn { width: 100%; } } /* A noted card whose last word in the thread is the agent's reply. */ .noted-tag { display: block; margin: 2px 0 10px; background: var(--stage-soft); color: var(--stage); border-color: var(--stage); text-transform: none; letter-spacing: 0; }