html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 19px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; margin: 0; }
h1 { font-family: var(--font-display); }
.dialogheading { margin-top: var(--space-16); }
h1 { font-size: calc(1.5rem + 1px); }
h2 { font-size: calc(1.3rem + 1px); margin-top: var(--space-22); margin-bottom: var(--space-6); }
h3 { font-size: calc(1.05rem + 1px); margin-top: var(--space-22); }
p { margin: 0; }
[hidden] { display: none !important; }
.hint { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-6); }
.note { margin-top: var(--space-12); color: var(--muted); font-size: var(--text-sm); }
.msg { margin-top: var(--space-10); color: var(--muted); font-size: var(--text-sm); min-height: 1.4em; }
.schedulesmsg:empty { margin-top: 0; min-height: 0; }

input, select, button, textarea { font: inherit; color: var(--ink); margin: 0; }
input[type="text"], input[type="date"], input[type="number"], input[type="tel"], input[type="email"], input[type="url"], input[type="search"], textarea {
  background: var(--control-bg); border: 1px solid var(--control-line); border-radius: var(--radius-input); padding: var(--space-7) var(--space-10); min-height: var(--control-height); max-width: 100%; width: 100%;
}
/* iOS WebKit sizes a date input to its content and can overflow its container. */
@supports (-webkit-touch-callout: none) { input[type="date"] { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; } }
input[type="file"] { max-width: 100%; }
input[type="file"]::file-selector-button {
  font: inherit; color: var(--ink); background: var(--control-bg); border: 1px solid var(--control-line);
  border-radius: var(--radius-control); padding: var(--space-8) var(--space-14); min-height: var(--control-height); cursor: pointer; margin-right: var(--space-10);
}
input[type="file"]::file-selector-button:hover { border-color: var(--muted); }
textarea { min-height: 84px; resize: vertical; }
/* The pencil: the app's one "change this text" control, and the input it opens. */
button.pencil { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 34px; min-height: 34px; padding: 0; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--muted); }
button.pencil:hover { border: 0; background: var(--chip-idle); color: var(--planned); }
button.pencil[hidden] { display: none; }
.inlineedit { flex: 1 1 auto; min-width: 0; width: 100%; }
.editrow { display: flex; align-items: flex-start; gap: var(--space-8); }
/* Thin theme-aware scrollbars: --line at rest, --muted on hover. scrollbar-color has no hover state, so the hover swap works only in Chromium and WebKit. */
:root { scrollbar-color: var(--line) transparent; }
* { scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--radius-pill); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button { background: var(--control-bg); border: 1px solid var(--control-line); border-radius: var(--radius-control); padding: var(--space-8) var(--space-14); min-height: var(--control-height); cursor: pointer; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--btn); border-color: var(--btn); color: var(--on-btn); font-weight: 600; }
button.primary:hover { border-color: var(--btn); filter: brightness(1.15); }
button.small { min-height: 34px; padding: var(--space-4) var(--space-10); font-size: var(--text-sm); }
/* Fixed width so the button doesn't resize when its label swaps Pin/Unpin. */
button.pintoggle { min-width: 64px; }
button.danger:hover, button[data-armed="1"] { border-color: var(--late); color: var(--late); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-10); margin-top: var(--space-14); align-items: center; }
.field { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-10); }
.field label { font-size: var(--text-sm); color: var(--muted); }
.linkbtn { display: inline-flex; align-items: center; min-height: var(--control-height); padding: var(--space-8) var(--space-14); border-radius: var(--radius-control); background: var(--btn); color: var(--on-btn); font-weight: 600; text-decoration: none; }
.linkbtn:hover { filter: brightness(1.1); }
.textbtn { background: none; border: 0; padding: var(--space-4) 0; min-height: 0; color: var(--planned); text-decoration: underline; text-align: left; }

/* shell */
.app { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.side { position: sticky; top: env(safe-area-inset-top, 0px); align-self: start; height: 100vh; height: 100dvh; padding: var(--space-22) var(--space-14); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-4); background: var(--surface); }
.brandrow { display: flex; align-items: center; gap: var(--space-10); padding: 0 var(--space-6) var(--space-16); }
/* Leather brand block: the top of the sidebar, edge to edge, with a stitched curved lower edge (css/leather.css). */
.side .brandrow { margin: calc(var(--space-22) * -1) calc(var(--space-14) * -1) var(--space-14); padding: var(--space-16) var(--space-20) var(--space-30); color: var(--stamp); }
.side .brand { position: relative; top: 2px; z-index: 3; color: var(--wordmark-stamp); font-size: 1.45rem; text-shadow: 0 1px 0 rgba(255, 235, 190, .35); -webkit-text-stroke: 2px var(--stamp); paint-order: stroke fill; }
.side .brandrow .logo { position: relative; z-index: 3; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.logo { width: 38px; height: 38px; flex: none; display: block; }
.mlogo { display: none; width: 44px; height: 44px; }
.brand { font-family: var(--font-display); font-weight: 400; font-size: calc(1.25rem + 1px); line-height: 1.1; }
.nav { display: flex; flex-direction: column; gap: var(--space-2); overflow-y: visible; min-height: 0; }
/* Only the pinned-quest list scrolls -- CORE above it and navBottom below
   always keep their own full, fixed height (see renderChrome() in app.js). */
.pinnedwrap { display: flex; flex-direction: column; gap: var(--space-2); overflow-y: auto; min-height: 0; }
.navlabel { padding: var(--space-14) var(--space-12) var(--space-4); font-size: var(--text-80); color: var(--muted); }
.tab > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Shared card look; each selector still sets its own padding/margin/overflow. */
.helpitem, .menu, .listbox, .panel, .box, .tlist, .detail, .list, .chartbox, .tablewrap, .range {
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface);
}
.helpitem { margin-top: var(--space-10); }
.helpitem > summary .helpcount { font-weight: 400; color: var(--muted); font-size: var(--text-sm); }
.helpitem > summary { padding: var(--space-12) var(--space-14); font-weight: 600; cursor: pointer; color: var(--ink); font-size: var(--text-100); }
.hbody { padding: 0 var(--space-14) var(--space-12); }
.hbody ul { margin: 0; padding-left: 1.2rem; }
.hbody li { margin-top: var(--space-6); }
/* Bold text inside a Field guide section is the dark blue; the section headings stay as they are. */
.hbody b, .hbody strong { color: var(--planned); }
kbd { font: inherit; font-size: .9em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 var(--space-6); background: var(--bg); }
.standing { list-style: none; margin: 0; padding: 0; }
.standing li { padding: var(--space-12) 0; border-bottom: 1px solid var(--line); }
.standing li:first-child { padding-top: 0; }
.standing li:last-child { border-bottom: 0; padding-bottom: 0; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4) var(--space-12); flex-wrap: wrap; }
.srow .qlink { font-weight: 600; font-size: var(--text-100); }
.qlink { text-decoration: none; }
.qlink:hover, .qlink:focus-visible { text-decoration: underline; }
.snext { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-sm); }
.tbleft { display: flex; align-items: center; gap: var(--space-10); min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.searchwrap { padding: 0 var(--space-4) var(--space-12); }
.searchwrap input { width: 100%; }
.searchbar { display: flex; flex-wrap: wrap; gap: var(--space-10) var(--space-16); align-items: center; }
.searchbar input[type="search"] { flex: 1 1 260px; width: auto; }
.searchbar label { display: flex; gap: var(--space-8); align-items: center; color: var(--muted); font-size: var(--text-sm); cursor: pointer; }
input[type="search"] { background: var(--control-bg); border: 1px solid var(--control-line); border-radius: var(--radius-input); padding: var(--space-7) var(--space-10); min-height: var(--control-height); max-width: 100%; }
mark { background: var(--chip-work); color: inherit; border-radius: 3px; padding: 0 var(--space-1); }
.sgroup { margin-top: var(--space-22); }
.sgroup h3 { margin-top: 0; }
.sgroup .item .snip { margin-top: var(--space-4); color: var(--muted); font-size: var(--text-sm); }
.chip.vault { background: var(--badge-neutral-bg); color: var(--badge-neutral); }
.tab { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); width: 100%; text-align: left; border: 0; background: transparent; border-radius: var(--radius-control); padding: var(--space-10) var(--space-12); min-height: 44px; color: var(--muted); font-weight: 500; }
.tab:hover { background: var(--chip-idle); border: 0; }
.tab[aria-current="page"] { background: var(--sel); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--planned); }
.navbottom { margin-top: auto; padding-top: var(--space-8); border-top: 1px solid var(--line); flex-shrink: 0; overflow-y: visible; }
.column { min-width: 0; }
/* Opaque cover over the top safe area (a host app's bar, a phone's status bar) so scrolled content never shows through above the sticky header. */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 9; pointer-events: none; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: var(--space-12) var(--space-24); background: var(--bg); border-bottom: 1px solid var(--line); }
.topact { display: flex; gap: var(--space-8); align-items: center; flex: none; }
.topact button { white-space: nowrap; }
/* Wraps to at most 2 lines instead of truncating a long quest name to one. */
#viewTitle { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font-size: clamp(1.1rem, 3.5vw + 0.5rem, 1.5rem); }
.menuwrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: var(--space-6); box-shadow: var(--shadow-menu); z-index: 30; display: flex; flex-direction: column; }
.menu button { border: 0; background: transparent; text-align: left; border-radius: var(--radius-input); padding: var(--space-9) var(--space-12); min-height: 42px; }
.menu button:hover { background: var(--chip-idle); }
.menu button[aria-current="page"] { background: var(--sel); font-weight: 600; }
.menu { max-height: 75vh; overflow-y: auto; }
.menulabel { padding: var(--space-10) var(--space-12) var(--space-2); font-size: var(--text-80); color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; width: 100%; }
/* Full browser width on every page, padding only, no max-width cap. */
.content { padding: var(--space-22) var(--space-24) 72px; }

.twocol { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-22); align-items: start; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-22); align-items: start; }
.pgrid { display: block; }
.pgrid > .cl, .pgrid > .cr { min-width: 0; margin-top: var(--space-12); }
.pgrid > .cl.r1 { margin-top: 0; }
.pgrid > .cr.r1 { margin-top: var(--space-26); }
.pgrid > button { justify-self: start; }
/* Lets a heading be scrolled to without sliding under the sticky top bar. */
.scrollhead { scroll-margin-top: 90px; }
.scrollhead:focus { outline: none; }
/* The three Today notices (update, backup reminder, Welcome) each have their own --notice-* color in css/tokens.css. */
.updatebanner .hint, .backupreminder .hint, .welcomebox .hint { color: var(--ink); }
/* Pinned notices and tutorial card: a cream card with a brass pin; each notice keeps its own color as a top edge. */
:is(.updatebanner, .backupreminder, .welcomebox, .tutorial) { position: relative; padding-top: var(--space-26); background: var(--card); border: 1px solid color-mix(in srgb, var(--brass) 55%, var(--line)); box-shadow: var(--shadow-menu); }
:is(.updatebanner, .backupreminder, .welcomebox, .tutorial)::before { content: ""; position: absolute; top: var(--space-9); left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--clasp-brass) 60%, white), var(--clasp-brass) 55%, var(--clasp-brass-edge)); box-shadow: var(--shadow-pin); }
.updatebanner { border-top: 5px solid var(--notice-update); }
.backupreminder { border-top: 5px solid var(--notice-backup); }
.welcomebox { border-top: 5px solid var(--notice-welcome); }
.updatebanner { background: var(--notice-update-bg); }
.backupreminder { background: var(--notice-backup-bg); }
/* Workshop ideas: parchment cards pinned to a board. */
.list.pinboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--space-18); background: transparent; border: 0; border-radius: 0; padding: var(--space-8) 0 0; }
.list.pinboard > li.posting, .list.pinboard > li.posting:last-child { padding: var(--space-30) var(--space-20) var(--space-20); border-bottom: 1px solid transparent; }
.list.pinboard > li.posting { transform: translate(calc(var(--rx, 0) * 5px), calc(var(--ry, 0) * 10px)); }
.list.pinboard > li.hint { grid-column: 1 / -1; }
.list.pinboard .crow { flex-direction: column; align-items: stretch; gap: var(--space-10); }
.list.pinboard .li-actions { justify-content: flex-start; }
.updateprompt { display: block; width: 100%; max-width: 100%; min-height: 0; margin-top: var(--space-10); resize: none; font-size: var(--text-sm); }
/* Stacked, Progress follows the burndown and gets the same gap above it Burndown has. */
.pgrid .progresshead { margin-top: var(--space-14); }
.listbox { overflow: hidden; margin-top: var(--space-12); }
.listbox > .list { border: 0; border-radius: 0; margin: 0; background: transparent; }
.listbox > .progress { margin: 0; padding: var(--space-10) var(--space-14); border-bottom: 1px solid var(--line); }
.listbox > .progress:empty { display: none; }
@media (min-width: 900px) {
  .pgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-22); row-gap: var(--space-12); align-items: start; }
  .pgrid > .cl, .pgrid > .cr, .pgrid > .cr.r1, .pgrid .progresshead { margin-top: 0; }
  .pgrid > .cl { grid-column: 1; }
  .pgrid > .cr { grid-column: 2; }
  .pgrid > .r1 { grid-row: 1; }
  .pgrid > .r2 { grid-row: 2; align-self: stretch; }
  .pgrid > .r3 { grid-row: 3; }
  .pgrid > .r4 { grid-row: 4; }
}

.panel { padding: var(--space-16) var(--space-18); border-left: 5px solid var(--planned); }
.box { padding: var(--space-14) var(--space-16); }
.ptitle { font-family: var(--font-serif); font-size: calc(1.3rem + 1px); font-weight: 400; line-height: 1.3; }
.pmeta { margin-top: var(--space-6); color: var(--muted); }
.pmeta b { color: var(--ink); font-weight: 600; }
.pline { margin-top: var(--space-8); }
.badge { display: inline-block; padding: var(--space-1) var(--space-9); border-radius: var(--radius-pill); font-size: var(--text-80); font-weight: 600; background: var(--late-bg); color: var(--late); vertical-align: 1px; }
.tabbadge { min-width: 22px; text-align: center; padding: 0 var(--space-6); }
.chip { display: inline-block; padding: var(--space-1) var(--space-10); border-radius: var(--radius-pill); font-size: .82rem; background: var(--badge-neutral-bg); color: var(--badge-neutral); }
.chip[data-v="Not started"] { background: var(--badge-pending-bg); color: var(--badge-pending); }
.chip[data-v="In progress"] { background: var(--badge-active-bg); color: var(--badge-active); }
.chip[data-v="Completed"], .chip.questcomplete { background: var(--badge-done-bg); color: var(--badge-done); }
.chip.dust { background: var(--badge-attention-bg); color: var(--badge-attention); }
.chip.added { background: var(--badge-info-bg); color: var(--badge-info); }
.chip.launchcrit { background: var(--badge-priority-bg); color: var(--badge-priority); }
.chip.datechip { min-width: 11rem; justify-content: center; min-height: calc(var(--control-height) - 6px); border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: var(--space-6); }
.chip.datechip:hover { filter: brightness(.95); }
.chip.datechip.nodue { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.chip.datechip.nodue:hover { filter: none; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.chip.backlog { background: var(--badge-neutral-bg); color: var(--badge-neutral); }
.chip.milestonechip { background: var(--milestone-bg); color: var(--milestone); }
.tlist { list-style: none; margin: var(--space-10) 0 0; padding: 0; overflow: hidden; }
.tlist li { border-bottom: 1px solid var(--line); }
.tlist li:last-child { border-bottom: 0; }
.tlist li.plain { padding: var(--space-12) var(--space-14); color: var(--muted); font-size: var(--text-sm); }
.item { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; background: transparent; padding: var(--space-12) var(--space-14); min-height: 0; }
.item:hover { background: var(--chip-idle); border: 0; }
.item[aria-current="true"], .item[aria-expanded="true"] { background: var(--sel); box-shadow: inset 4px 0 0 var(--planned); }
/* A task opened in place on a quest's page: part of the list, not a separate card. */
.tlist li > .detail { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
/* The whole row, not just the title, tints while a task is expanded in place (:has(), modern Chromium only). The Tasks page's aria-current selection is excluded on purpose. */
.tlist li:has(> .item[aria-expanded="true"]) { background: var(--sel); }
.tlist li:has(> .item[aria-expanded="true"]) > .item { box-shadow: none; }
/* .detail's opaque --surface background (from the shared card-style rule
   above) would otherwise paint over the blue li background for its own area,
   leaving only the title row visibly tinted. */
.tlist li:has(> .item[aria-expanded="true"]) > .detail { background: transparent; }
.metarow { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-4) var(--space-12); }
/* Right-aligned beside the count while both fit on one line; when it wraps, space-between puts it on the left under the count. */
.estleft { white-space: nowrap; }
.item .l1 { color: var(--muted); font-size: var(--text-sm); }
.item .l1 b { color: var(--ink); font-weight: 600; }
/* A date line with a tag pinned to its right end. */
.item .l1.split { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-8); }
.item .l2 { margin-top: var(--space-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.done .l2 { color: var(--muted); }
.item .l3 { margin-top: var(--space-6); display: flex; gap: var(--space-8); align-items: center; flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(0, 1.25fr); gap: var(--space-22); align-items: start; margin-top: var(--space-12); }
.split .tlist { margin-top: 0; }
.detailpane { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); margin-bottom: -72px; }
/* The Tasks page's detail pane, border/corners kept, filled with the same
   highlight blue a quest page's expanded task gets -- the user's call. */
.detailpane .detail { background: var(--sel); }
.detail { padding: var(--space-18) var(--space-20); }
.detail .what { font-family: var(--font-serif); font-size: calc(1.25rem + 1px); font-weight: 400; line-height: 1.3; margin-top: var(--space-8); }
.detail .dmeta { color: var(--muted); margin-top: var(--space-4); }
select.status { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: var(--space-5) var(--space-12); min-height: 38px; background: var(--chip-idle); color: var(--chip-ink); }
select.status[data-v="Not started"] { background: var(--badge-pending-bg); color: var(--badge-pending); }
select.status[data-v="In progress"] { background: var(--badge-active-bg); color: var(--badge-active); }
select.status[data-v="Completed"] { background: var(--badge-done-bg); color: var(--badge-done); }
.steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; }
.steps li { display: flex; flex-wrap: wrap; gap: 0 var(--space-10); align-items: flex-start; padding: var(--space-5) 0; border-bottom: 0; }
.steps li label { display: flex; gap: var(--space-10); align-items: flex-start; flex: 1 1 auto; cursor: pointer; }
.steps li .steptop { display: flex; gap: var(--space-8); align-items: flex-start; flex: 1 1 100%; }
/* Lines the buttons up under the title: checkbox width plus its gap. */
/* The pencil makes the title row taller than its text; the negative margin brings the buttons as close to the title as they sit to the row border below. */
.steps li .stepactions { flex: 1 1 100%; margin: calc(-1 * var(--space-4)) 0 0 30px; flex-wrap: wrap; }
/* While a step name is being edited the input is taller than the text, so the buttons must not be pulled up into it. */
.steps li.editing .stepactions { margin-top: var(--space-8); }
.steps li.done label span { color: var(--muted); text-decoration: line-through; }
:root[data-theme="dark"] :is(input[type="checkbox"], input[type="radio"]) { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(input[type="checkbox"], input[type="radio"]) { color-scheme: dark; } }
/* The date picker's calendar icon is painted in the button brown (dark in light mode, light in dark mode) through a mask (Chromium only). */
input[type="date"]::-webkit-calendar-picker-indicator { background: var(--btn); opacity: 1; -webkit-mask: var(--cal-icon) center / contain no-repeat; mask: var(--cal-icon) center / contain no-repeat; }
:root { --cal-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm-2 8h14v10H5V10z'/></svg>"); }
::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; margin: var(--space-2) 0 0; flex: none; accent-color: var(--btn); }
.inline { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-10); }
.inline input[type="text"] { flex: 1 1 180px; width: auto; }
.only-mobile { display: none; }
.iconbtn { width: 44px; height: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-card); flex: none; }
.iconbtn svg { width: 20px; height: 20px; display: block; }
.iconbtn.only-mobile { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* prefers-reduced-motion's blanket `animation: none !important` rule already
   covers this -- the icon just jumps straight to reloading instead of spinning. */
#refreshBtn.spinning svg { animation: spin .6s linear infinite; }
.toast .toastbtn { background: transparent; border: 1px solid currentColor; color: inherit; min-height: 32px; padding: var(--space-2) var(--space-12); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-12); }
.chipbtn { border-radius: var(--radius-pill); min-height: 36px; padding: var(--space-4) var(--space-14); }
.chipbtn[aria-pressed="true"] { background: var(--sel); border-color: var(--planned); color: var(--planned); font-weight: 600; }
button.dangerfill { background: var(--late); border-color: var(--late); color: var(--bg); font-weight: 600; }
button:disabled { opacity: .5; cursor: not-allowed; }
.dangerbox { border: 1px solid var(--late); background: var(--late-bg); border-radius: var(--radius-card); padding: var(--space-14) var(--space-16); margin-top: var(--space-10); }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4) var(--space-16); max-width: 640px; }
.setgrid .field { min-width: 0; justify-content: flex-end; }
.setgrid .field.full { grid-column: 1 / -1; }
.setgrid.hinted .field { display: grid; grid-template-rows: subgrid; grid-row: span 3; justify-content: normal; }
.setgrid input, .setgrid select { min-width: 0; height: 42px; }
/* Label text sits a few pixels inside its box, so the button gets matching extra space above it; the hint below sits as close as a label does to its field. */
.brandmarkpreview { display: flex; align-items: center; gap: var(--space-12); margin-top: var(--space-5); }
.brandmarkpreview img { max-width: 80px; max-height: 80px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
@media (max-width: 640px) { .setgrid { grid-template-columns: minmax(0, 1fr); } }
.about p { margin-top: var(--space-2); }
.radiorow { display: flex; gap: var(--space-10); align-items: flex-start; margin-top: var(--space-10); cursor: pointer; }
select.plain { background: var(--control-bg); border: 1px solid var(--control-line); border-radius: var(--radius-input); padding: var(--space-7) var(--space-10); min-height: var(--control-height); max-width: 100%; width: 100%; }
button.small.on { background: var(--sel); border-color: var(--planned); color: var(--planned); font-weight: 600; }

.list { list-style: none; margin: var(--space-12) 0 0; padding: 0; }
.list > li { padding: var(--space-12) var(--space-14); border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list.check label { display: flex; gap: var(--space-12); align-items: flex-start; cursor: pointer; }
.list.check li.done span { color: var(--muted); text-decoration: line-through; }
.progress { color: var(--muted); margin-top: var(--space-10); }
.crow { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-14); align-items: flex-start; justify-content: space-between; }
/* Single-line rows center their items; multi-line rows keep .crow's flex-start. */
.crow.oneline { align-items: center; }
.crow label { display: flex; gap: var(--space-10); align-items: flex-start; font-weight: 600; cursor: pointer; flex: 1 1 200px; }
.notetext { white-space: pre-line; }
/* List rows show at most two lines of a note, ending in an ellipsis. The full
   note is one click away (an idea's title opens its dialog, a quest's title
   opens its page). */
.noteclamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cnote { color: var(--muted); font-size: var(--text-sm); margin: var(--space-2) 0 0 var(--space-30); }
.cfields { display: flex; flex-wrap: wrap; gap: var(--space-12); margin: var(--space-6) 0 0 var(--space-30); }
.cfields .field { margin-top: var(--space-4); }
.cfields input { width: 10rem; }
.linkwho { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-10); min-width: 0; }
.jobbar { display: flex; flex-wrap: wrap; gap: var(--space-10); align-items: center; margin-top: var(--space-12); }
.jobdue { display: flex; align-items: center; gap: var(--space-8); }
.jobdue label { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.jobbar input[type="text"], .jobbar input[type="date"] { width: auto; }
@media (max-width: 639px) { .jobdue { flex-direction: column; align-items: stretch; width: 100%; gap: var(--space-4); } .jobbar input[type="text"], .jobbar input[type="date"] { width: 100%; } }
.jobrow { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "main badges end"; align-items: center; column-gap: var(--space-10); }
.jobmain { grid-area: main; display: flex; gap: var(--space-10); align-items: flex-start; margin: 0; font-weight: 400; cursor: pointer; }
.jobbadges { grid-area: badges; display: flex; gap: var(--space-8); align-items: center; justify-content: flex-end; }
.jobend { grid-area: end; }
@media (max-width: 639px) {
  .jobrow { grid-template-columns: 1fr auto; grid-template-areas: "main end" "badges end"; }
  .jobbadges { flex-direction: row-reverse; justify-content: flex-end; margin: var(--space-6) 0 0 30px; }
  .jobend.pen { align-self: start; grid-row: 1; }
  .jobend.del { align-self: center; grid-row: 1 / span 2; }
}
.jobs li.done .jobtext { color: var(--muted); text-decoration: line-through; }
/* errands hand */
/* The page behind an open dialog does not scroll. */
html:has(.overlay:not([hidden])) { overflow: hidden; }
html { scrollbar-gutter: stable; }
.overlay .modal { overscroll-behavior: contain; }
.handhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-10); margin-top: var(--space-22); }
.handlabel { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 700; color: var(--muted); margin: 0; }
.decklabel { margin-top: var(--space-22); margin-bottom: var(--space-6); }
.handbtns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.handbtns button { margin-right: 0; }
.rerollgroup { display: inline-flex; align-items: center; white-space: nowrap; }
.handnone { margin: var(--space-8) 0 0; }
.handlist { position: relative; overflow: clip; overflow-clip-margin: var(--space-20); list-style: none; margin: var(--space-10) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-12); }
.handlist > li.handcard, .handghost { background: var(--card); border: 1px solid color-mix(in srgb, var(--brass) 55%, var(--line)); border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); padding: var(--space-12) var(--space-14); }
.handghost { position: absolute; left: 0; right: 0; margin: 0; z-index: 2; pointer-events: none; backface-visibility: hidden; }
.handpick { list-style: none; margin: var(--space-10) 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.handpick li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: var(--space-10) var(--space-12); border-bottom: 1px solid var(--line); }
.handpick li:last-child { border-bottom: 0; }
.handpick li.chosen { background: var(--card); }
.handpick .hpmain { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.handpick .hpsub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); color: var(--muted); font-size: var(--text-sm); }
.hpbtns { display: flex; gap: var(--space-8); flex: none; }
.handpick li .hpbtns button, .handpick li > button { margin-right: 0; }
@media (max-width: 639px) { .handpick li:has(.hpbtns) { flex-wrap: wrap; } .handpick .hpmain { flex: 1 1 100%; } .hpbtns { flex-basis: 100%; } }
.handacts { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.handacts button { margin-right: 0; }
.handfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12); margin-top: var(--space-14); position: sticky; bottom: calc(-1 * var(--space-20)); margin-bottom: calc(-1 * var(--space-20)); padding: var(--space-12) 0 var(--space-20); background: var(--surface); border-top: 1px solid var(--line); z-index: 2; }
.handfoot .handcount { margin: 0; }
.li-actions { display: flex; gap: var(--space-8); align-items: center; }
.dq { font-weight: 500; }
.dstate { font-size: var(--text-sm); color: var(--muted); margin-left: var(--space-8); }
.dstate.ok { color: var(--planned); }
.decision input[type="text"] { margin-top: var(--space-6); }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-10); margin-top: var(--space-22); }
.sechead h3, .sechead .sechead-h { margin-top: 0; }
.first { margin-top: 0; }

.chartbox { margin-top: var(--space-12); padding: var(--space-12) var(--space-12) var(--space-4); }
svg.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font-sans); }
.chart .planned { fill: none; stroke: var(--planned); stroke-width: 2.5; stroke-dasharray: 7 5; }
.chart .actual { fill: none; stroke: var(--burn); stroke-width: 3; }
.chart .forecast { fill: none; stroke: var(--forecast); stroke-width: 3; stroke-dasharray: 1 6; stroke-linecap: round; }
.chart .scope { fill: none; stroke: var(--scope); stroke-width: 2; }
.chart .forecastdot { fill: var(--forecast); stroke: var(--surface); stroke-width: 2; }
.chart .dot { fill: var(--burn); stroke: var(--surface); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-16); padding: var(--space-6) var(--space-4) var(--space-10); font-size: .88rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-8); }
.legend i { display: inline-block; width: 24px; height: 0; border-top: 3px solid var(--burn); }
.legend i.p { border-top: 3px dashed var(--planned); }
.legend i.f { border-top: 3px dotted var(--forecast); }
.legend i.s { border-top: 2px solid var(--scope); }
.scopechg { display: inline-block; height: 1.5em; vertical-align: middle; box-sizing: border-box; min-width: calc(var(--n, 0) * 1.6em); text-align: left; background: var(--scope); color: var(--scope-ink); font-weight: 600; padding: 0 var(--space-6); border-radius: var(--radius-track); }
.tablewrap { margin-top: var(--space-12); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: var(--space-10) var(--space-12); border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: var(--text-sm); color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

.workshophead { margin-top: var(--space-12); }
.range { margin-top: var(--space-12); padding: var(--space-14) var(--space-16) var(--space-18); }
.months { position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.months span { position: absolute; top: 0; font-size: .75rem; color: var(--muted); transform: translateX(-2px); white-space: nowrap; }
.lane { margin-top: var(--space-12); }
.lname { padding-left: var(--space-5); font-size: var(--text-sm); font-weight: 600; }
.ldates { font-weight: 400; color: var(--muted); margin-left: var(--space-6); }
.track { position: relative; height: 22px; margin-top: var(--space-4); background: var(--chip-idle); border-radius: var(--radius-track); }
.bar { position: absolute; top: 2px; bottom: 2px; min-width: 6px; background: var(--planned); border-radius: var(--radius-track); }
.bar.est { background: var(--est); border: 1px dashed var(--planned); }
/* The block a task sits in: a pale full-height band behind its own bar. */
.bar.blk { top: 0; bottom: 0; background: color-mix(in srgb, var(--muted) 24%, transparent); }
.bar.open { background: linear-gradient(to right, var(--est), transparent); border-left: 3px solid var(--planned); border-radius: var(--radius-track) 0 0 var(--radius-track); }
/* Page content on the left, Schedule/Timeline/Burndown on the right as one continuous flow. */
.questsplit { display: block; }
.questmain, .questcharts { min-width: 0; }
.setsplit { display: block; }
.setmain, .setside { min-width: 0; }
/* Reserves no space until there's an error, so an empty message doesn't push Timeline down. */
.schedmsg { min-height: 0; margin-top: 0; }
.errmsg { color: var(--late); }
.setgrid > .schedmsg { grid-column: 1 / -1; margin-top: 0; }
.setgrid > .schedmsg:empty { display: none; }
.schedmsg:not(:empty) { margin-top: var(--space-10); }
.questexpand { display: none; }
.questexpand .expandicon { display: inline-block; margin-left: var(--space-6); vertical-align: -2px; }
.modal.full { max-width: none; width: 100%; height: 100%; max-height: none; }
.chart .mark { fill: var(--milestone-bg); stroke: var(--milestone); stroke-width: 2; stroke-linejoin: round; }
.chart .hit { fill: transparent; }
svg.chart.nofocusring { outline: none; }
.chart .guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.charttip, .todaytip { position: absolute; z-index: 3; max-width: 300px; padding: var(--space-8) var(--space-10); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-control); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); font-size: var(--text-sm); line-height: 1.35; white-space: pre-line; pointer-events: none; }
.charttip[hidden], .todaytip[hidden] { display: none; }
/* A task's bar takes its status color, with a faint edge so a pale bar still reads on the gray track. */
.bar.new, .bar.work, .bar.done { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-ink) 28%, transparent); }
.bar.new { background: var(--bar-pending); }
.bar.work { background: var(--bar-active); }
.bar.done { background: var(--bar-done); }
@media (min-width: 900px) {
  /* .questactions comes last in the markup so it lands at the bottom when stacked; the grid places it back under .questmain on wide screens. */
  .questsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "main charts" "actions charts"; column-gap: var(--space-22); align-items: start; }
  .questmain { grid-area: main; }
  .questcharts { grid-area: charts; }
  .questactions { grid-area: actions; }
  .questexpand { display: inline-block; }
  /* Schedule sits level with Tasks only at this width -- zeroing its heading's
     own margin here, not unconditionally, keeps the normal section gap on a
     stacked page where .questcharts follows real content above it. */
  .sechead.questcharts-head, .sechead .questcharts-head { margin-top: 0; }
  /* .setside comes first in the markup so it stacks above .setmain on a
     phone; order swaps it to the right on a wide screen without touching
     DOM order, which is what the phone layout depends on. */
  .setsplit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--space-22); align-items: start; }
  .setmain { order: 1; }
  .setside { order: 2; }
  /* Schedule defaults only leads its own column at this width -- zeroing its
     heading's margin unconditionally left it flush against the contact box
     above it when stacked, since the two sections are DOM siblings there. */
  .setmain-head { margin-top: 0; }
}
.ms { position: absolute; top: 4px; width: 14px; height: 14px; background: var(--milestone-bg); border: 2px solid var(--milestone); box-sizing: border-box; transform: translateX(-7px) rotate(45deg); border-radius: 2px; cursor: pointer; }
/* The diamond is only 14px, so an invisible larger area makes it easy to hit. */
.ms::after { content: ""; position: absolute; inset: -6px; }
.ms:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--planned) 35%, transparent); }
.ms:focus-visible { box-shadow: 0 0 0 3px var(--planned); }
.today { position: absolute; top: 22px; bottom: 0; width: 0; border-left: 2px solid var(--burn); opacity: .7; cursor: pointer; }
/* The line itself is 2px wide, too narrow to reliably hover/tap -- an invisible
   wider hit area makes it easy to hit, same pattern as .ms::after. */
.today::after { content: ""; position: absolute; top: 0; bottom: 0; left: -8px; right: -8px; }
.today:hover, .today:focus-visible { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--burn) 35%, transparent); }
.mslist { list-style: none; margin: var(--space-12) 0 0; padding: 0; }
.box > .mslist { margin: calc(var(--space-14) * -1) calc(var(--space-16) * -1) calc(var(--space-14) * -1); }
.mslist li { display: flex; gap: var(--space-10); align-items: center; padding: var(--space-8) var(--space-16); flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.mslist li:last-child { border-bottom: 0; }
.mslist .d { color: var(--muted); min-width: 6.5rem; }

/* modal and toast */
.overlay { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; align-items: center; justify-content: center; padding: var(--space-16); }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: var(--space-18) var(--space-20) var(--space-20); }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); margin-bottom: var(--space-4); position: sticky; top: calc(-1 * var(--space-18)); margin-top: calc(-1 * var(--space-18)); padding-top: var(--space-18); padding-bottom: var(--space-4); background: var(--surface); z-index: 2; }
.mhead h2 { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--ink); color: var(--bg); padding: var(--space-10) var(--space-16); border-radius: var(--radius-card); z-index: 60; font-size: var(--text-sm); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-12); text-align: left; }
.toast:empty { display: none; }

/* Confetti sits above everything, including an open modal, but never blocks clicks. */
.confettiFx { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* first-run tutorial card: bottom right on a wide screen, under the top bar on a phone */
.tutorial { position: fixed; right: var(--space-16); bottom: var(--space-16); width: min(340px, calc(100vw - 32px)); z-index: 55; padding: var(--space-26) var(--space-16) var(--space-14); background: var(--card); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brass) 55%, var(--line)); border-radius: var(--radius-card); box-shadow: var(--shadow-menu); outline: 3px solid var(--tutorial); outline-offset: 3px; }
.tutorialcount { font-size: var(--text-sm); color: var(--muted); }
.tutorial .tutorialtitle { margin: var(--space-4) 0 var(--space-6); font-size: var(--text-100); }
.tutorial .tutorialtext { margin: 0; font-size: var(--text-sm); line-height: 1.45; }
/* Lifted above its neighbors so a selected tab next to it cannot paint over the ring. */
.tutorialtarget { position: relative; z-index: 1; outline: 3px solid var(--tutorial); outline-offset: 3px; }
/* The ring grows in from nothing when a step first points at something, and the card's ring does so on every step, then both stay put. */
.tutorial.tutorialflash { animation: tutorialflash .9s ease-out 1 backwards; }
/* The highlighted item's ring grows in a second after the card's does, and stays hidden until then. */
.tutorialtarget.tutorialflash { animation: tutorialflash .9s ease-out 1s 1 backwards; }
@keyframes tutorialflash { 0% { outline-width: 0; } 40% { outline-width: 9px; } 100% { outline-width: 3px; } }
/* A highlighted candidate row: rounded like the other highlights, with its title underlined in the same weight. */
li.tutorialtarget { border-radius: var(--radius-control); }
li.tutorialtarget .qlink { text-decoration: underline; text-decoration-color: var(--tutorial); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 899px) {
  .tutorial { bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); left: var(--space-12); right: var(--space-12); width: auto; padding: var(--space-22) var(--space-14) var(--space-10); }
  body:has(.tutorial) #view { padding-bottom: 230px; }
  .tutorialcount { display: none; }
  /* The card spans the bottom here, so confirmation toasts sit just above it (--tutorial-top is the card's top edge, measured from the bottom of the window). */
  body:has(.tutorial) .toast { left: var(--space-12); right: var(--space-12); transform: none; width: auto; max-width: none; bottom: calc(var(--tutorial-top, 0px) + 12px); }
  /* The tab bar clips anything outside it, so the ring sits inside the tab. */
  .side .tutorialtarget { outline-offset: -3px; }
  body:has(.overlay:not([hidden])) .tutorial, body:has(.menu:not([hidden])) .tutorial { display: none; }
}
@media (max-width: 899px) {
  .app { display: block; }
  .side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; z-index: 20; padding: var(--space-4) var(--space-4) calc(4px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--line); flex-direction: row; }
  .brandrow, .navbottom, .searchwrap, .pinnedwrap { display: none; }
  .mlogo { display: block; }
  .nav { flex-direction: row; width: 100%; gap: 0; overflow: hidden; }
  .navlabel { display: none; }
  .tab.pinnedtab { display: none; }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: var(--space-2); padding: var(--space-6) var(--space-2); min-height: 52px; font-size: .875rem; text-align: center; justify-content: flex-start; padding-top: var(--space-8); border-radius: var(--radius-control); }
  .tab[aria-current="page"] { box-shadow: inset 0 3px 0 var(--planned); }
  .topbar { padding: var(--space-10) var(--space-16); }
  .content { padding: var(--space-16) var(--space-16) 120px; }
  .twocol, .cols2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-20); }
  .split { display: block; }
  .split .detailpane { display: none; position: static; margin-bottom: 0; }
  .split.detail-open .listpane { display: none; }
  .split.detail-open .detailpane { display: block; }
  .only-mobile { display: inline-flex; align-items: center; }
  .iconbtn.only-mobile { display: inline-flex; }
  .hide-on-mobile { display: none; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .menu { min-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* "?" help buttons: drawn small, with a 44px tap area */
.helpq { position: relative; flex: none; width: 12px; height: 12px; min-height: 0; padding: 0; margin-left: var(--space-8); border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px var(--tutorial-edge); background: var(--tutorial); color: var(--on-tutorial); font-family: var(--font-sans); font-size: .6rem; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; cursor: pointer; }
.helpq::before { content: "?"; }
.helpq::after { content: ""; position: absolute; inset: -16px; }
.helpq:hover { background: var(--tutorial-hover); }
.hasq { display: flex; align-items: center; }
.labelrow { display: flex; align-items: center; }
.helpitem { scroll-margin-top: 90px; }

.ideamade { margin-left: var(--space-6); font-size: var(--text-sm); }
@media (max-width: 639px) { .ideamade { display: block; margin-left: 0; } .ideadot { display: none; } }
.dialogheading .helpq { margin-left: var(--space-8); }
.tutorialbtn { background: var(--tutorial); border-color: var(--tutorial-edge); color: var(--on-tutorial-btn); font-weight: 600; }
.tutorialbtn:hover { background: var(--tutorial-hover); border-color: var(--tutorial-edge); }
