/* Named activities: the panel from /activity-panel.js, and the energy-state colours it borrows. Shared by /help/ and /toolbox/. */

/* One colour per energy state, used on /help/'s buttons, chips, cards and sections, and on the toolbox's moment links. */
.doc { --c-help: #2F6F5E; --c-much: #B23A3A; --c-little: #3A62A8; --c-stuck: #8F5E0E; --c-calm: #6E6962; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc { --c-help: #5FB89C; --c-much: #F08A80; --c-little: #8AAEF0; --c-stuck: #E0B060; --c-calm: #A8A39A; } }
:root[data-theme="dark"] .doc { --c-help: #5FB89C; --c-much: #F08A80; --c-little: #8AAEF0; --c-stuck: #E0B060; --c-calm: #A8A39A; }
.doc [data-band="help"] { --band: var(--c-help); }
.doc [data-band="much"] { --band: var(--c-much); }
.doc [data-band="little"] { --band: var(--c-little); }
.doc [data-band="stuck"] { --band: var(--c-stuck); }
.doc [data-band="calm"] { --band: var(--c-calm); }

.act { position: fixed; inset: 0; z-index: 50; margin: auto; height: fit-content; border: 1px solid var(--line-strong); border-top: 3px solid var(--band, var(--accent)); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 12px 40px rgb(0 0 0 / .2); }
.act-scrim { position: fixed; inset: 0; z-index: 49; background: rgb(0 0 0 / .4); }
.act-in { padding: 18px 20px 18px; }
.act-head { display: flex; align-items: baseline; gap: 10px; }
.doc .act h2 { font: 500 24px/1.2 var(--serif); margin: 0; padding: 0; border: 0; color: var(--ink); }
.act-close { margin-left: auto; font: 400 22px/1 var(--sans); color: var(--ink-faint); background: none; border: 0; cursor: pointer; padding: 4px 6px; }
.act-close:hover { color: var(--accent); }
.act-what { font: 400 18px/1.45 var(--serif); color: var(--ink-soft); margin: 4px 0 14px; }
.act-demo { border: 1px dashed var(--line-strong); border-radius: 8px; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }
.act-demo.empty { min-height: 0; padding: 10px 16px; margin: 14px 0 0; }
.act-demo .ph { font: 400 13px/1.5 var(--mono); color: var(--ink-faint); margin: 0; }
.breath { width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--band, var(--accent)) 20%, var(--surface)); border: 2px solid var(--band, var(--accent)); transform: scale(.45); transition: transform .6s ease-in-out; }
.breath-lab { font: 500 14px/1 var(--mono); color: var(--ink-soft); min-height: 14px; margin: 0; }
.act-demo button { font: 500 13px/1 var(--mono); color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.act-demo button:hover { color: var(--band, var(--accent)); border-color: var(--band, var(--accent)); }
.act-steps { margin: 16px 0 0; padding-left: 1.3em; font: 400 16px/1.5 var(--sans); color: var(--ink); }
.act-steps li { margin: 4px 0; }
.act-note { font-size: 14.5px; color: var(--ink-soft); margin: 12px 0 0; }
.act-src { font: 400 12.5px/1.5 var(--mono); color: var(--ink-faint); margin: 12px 0 0; }
.act-used { font: 400 13px/1.5 var(--mono); color: var(--ink-faint); margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.act-used a { color: var(--ink-soft); }
.act-all { font: 400 13px/1.5 var(--mono); margin: 8px 0 0; }
.act-used[hidden] + .act-all { padding-top: 10px; border-top: 1px solid var(--line); margin-top: 12px; }
.act-all a { color: var(--ink-faint); text-decoration: none; }
.act-all a::after { content: " ›"; }
.act-all a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .breath { transition: none; } }
