/* ==========================================================================
   DASHBOARD (templates/dashboard.html), design round 5.
   Loads after account.css (layout, header, colour tokens) and tones.css.
   The reference previews are in dashboard_designs/R5.

   Type rule: nothing under 1rem in Bold (700); Medium (500) is the strongest
   small weight. Errors and warnings are always fills in the true red and yellow.

   Links: account.css underlines and colours every link with a high-specificity
   rule. Inside the dashboard, links take their colour from --link-c (and
   --link-hover), so a component only sets the variable.
   ========================================================================== */

@font-face { font-family: "RFBullet"; src: url("../fonts/RFBullet-Light.woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "RFBullet"; src: url("../fonts/RFBullet-Medium.woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "RFBullet"; src: url("../fonts/RFBullet-SemiBold.woff"); font-weight: 600; font-display: swap; }

/* --- tokens (names from the previews, values from account.css) ------------ */
.faDashBody {
	--surface: var(--bgminus-color);
	--bg: var(--bg-color);
	--line: #DCDCDC;
	--ink: var(--bgnegative-color);
	--muted: var(--muted-text-color);
	--hl: var(--highlight-color);
	--hl-soft: var(--highlightminus-color);
	--hl-tint: var(--highlightminusminus-color);
	--hl-deep: var(--highlightplus-color);
	--err: var(--error-color);
	--warn: var(--warning-color);
	--err-on: #fff;
	--warn-on: #111;
	--ok-text: #1d6b3a;
	--ok-tint: #dcf3e3;
	--edge: transparent;
	--r: 0.6em;
	--r-plus: 1.6em;
	--shadow: 0 0.25rem 0.9rem #20008814;
	--shadow-up: 0 0.6rem 1.6rem #2000882a;
}
@media (prefers-color-scheme: dark) {
	.faDashBody {
		--line: #2a2a2a;
		--err-on: #000;
		--warn-on: #000;
		--ok-text: #7ef0a8;
		--ok-tint: #0f3320;
		--edge: #ffffff2e;
		--shadow: 0 0.25rem 0.9rem #00000066;
		--shadow-up: 0 0.6rem 1.6rem #000000aa;
	}
}

.faMain.faMain--dash { max-width: 88rem; padding: 0.5rem 2rem 3rem; }
@media (max-width: 900px) { .faMain.faMain--dash { padding: 0.5rem 1rem 2.5rem; } }

.faDash { line-height: 1.35; }
.faDash b, .faDash strong { font-weight: 500; }
:where(.faDash) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.faApp .faDash a:link, .faApp .faDash a:visited { color: var(--link-c, var(--hl)); text-decoration: none; }
.faApp .faDash a:hover { color: var(--link-hover, var(--link-c, var(--hl-deep))); }
.faDash svg.i, .dashNav svg.i, .favRail svg.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.faDash .grow { flex: 1; }
.faDash .meta, .faDash .muted { color: var(--muted); font-size: .75rem; }
.faDash .note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.faDash .empty { font-size: .8rem; color: var(--muted); margin: 4px 0 8px; }
.faDash .count { font-weight: 400; color: var(--muted); }
.faDash h4 { margin: 0 0 8px; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* --- header: icon nav inside the purple bar -------------------------------- */
.faApp .dashNav { font-size: 1rem; gap: 4px; }
.faApp .dashNav > a, .faApp .dashNav > a:visited { display: grid; place-items: center; width: 2.5rem; height: 2.25rem; padding: 0; border-radius: .45em; }
.faApp .dashNav > a[aria-current="page"] { background: var(--on-highlight-color); color: var(--highlight-color); box-shadow: none; border-radius: .45em; }
.dashNav .sep { width: 1px; align-self: stretch; margin: 8px 4px; background: color-mix(in srgb, var(--on-highlight-color) 40%, transparent); }
.dashNav .dashMe { padding: 3px; border-radius: 50%; }
.dashNav .dashMe::after { content: none; }
.dashNav .dashMe .av { width: 2rem; height: 2rem; box-shadow: 0 0 0 2px var(--on-highlight-color); }
.dashNav .menuWho { padding: .4em .75em .5em; font-size: .75rem; color: var(--muted-text-color); overflow: hidden; text-overflow: ellipsis; }

/* --- sections, tabs, buttons, chips --------------------------------------- */
.faDash .sec { margin-top: 48px; }
.faDash .secHead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 16px; }
.faDash .secHead h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }

.faDash .tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.faDash .tabs > button, .faApp .faDash .tabs > a { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; padding: 6px 0; --link-c: var(--muted); color: var(--muted); box-shadow: inset 0 -2px 0 transparent; }
.faDash .tabs > button:hover, .faApp .faDash .tabs > a:hover { color: var(--ink); --link-hover: var(--ink); }
.faDash .tabs > button[aria-pressed="true"], .faApp .faDash .tabs > a[aria-current] { color: var(--ink); --link-c: var(--ink); box-shadow: inset 0 -2px 0 var(--hl); }
.faDash .tabs svg.i { width: 1.1em; height: 1.1em; }

.faDash .btn { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; padding: 9px 14px; border-radius: var(--r); background: var(--surface); --link-c: var(--ink); color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.faDash .btn:hover { color: var(--hl); --link-hover: var(--hl); }
.faDash .btn.primary { background: var(--hl); color: var(--on-highlight-color); --link-c: var(--on-highlight-color); }
.faDash .btn.primary:hover { background: var(--hl-deep); color: var(--on-highlight-color); --link-hover: var(--on-highlight-color); }
.faDash .btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.faDash .link { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 4px; --link-c: var(--hl); color: var(--hl); }
.faDash .link svg.i { width: 14px; height: 14px; }

.faDash .chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 500; padding: 2px 7px; border-radius: 99px; background: var(--bg); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.faDash .chip.err { background: var(--err); color: var(--err-on); }
.faDash .chip.warn { background: var(--warn); color: var(--warn-on); }
.faDash .chip.ok { background: var(--ok-tint); color: var(--ok-text); }
.faDash .chip.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.faDash .pills { display: inline-flex; gap: 4px; }
.faDash .delta { font-size: .75rem; font-weight: 500; padding: 1px 6px; border-radius: 99px; background: var(--bg); color: var(--muted); font-variant-numeric: tabular-nums; }
.faDash .delta.good { background: var(--ok-tint); color: var(--ok-text); }
.faDash .delta.bad { background: var(--err); color: var(--err-on); }
.faDash .delta.bad.w { background: var(--warn); color: var(--warn-on); }

.faDash .ib, .faDash .iconBtn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; --link-c: var(--muted); color: var(--muted); }
.faDash .ib:hover, .faDash .iconBtn:hover { background: var(--hl-tint); color: var(--hl); --link-hover: var(--hl); }
.faDash .ib svg.i { width: 17px; height: 17px; stroke-width: 2; }
.faDash .ib:disabled { opacity: .3; cursor: not-allowed; background: none; color: var(--muted); }
.faDash .ib.del:not(:disabled):hover { background: var(--err); color: var(--err-on); }

.faDash .panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); outline: 1px solid var(--edge); outline-offset: -1px; padding: 18px 20px; }
.faDash .panel h3 { margin: 0 0 12px; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.faDash .panel h3 span { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }

.faDash .av { box-shadow: 0 0 0 2px var(--surface); }
.faDash .av.more { background: var(--bg); color: var(--ink); }
.faDash .avs { display: inline-flex; }
.faDash .avs .av + .av { margin-left: -7px; }

/* --- custom testing: head, end, states ------------------------------------- */
.customHead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cLbl { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--hl); }
.cLbl svg.i { width: 18px; height: 18px; }
.cSub { font-size: .8rem; color: var(--muted); }
.faDash .custom > .customHead + .sec { margin-top: 24px; }
.faDash .cBtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 99px; font-size: .78rem; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.faDash .cBtn svg.i { width: 18px; height: 18px; stroke-width: 2; color: var(--muted); }
.faDash .cBtn:hover { color: var(--hl); box-shadow: inset 0 0 0 1.5px var(--hl-soft); }
.faDash .cBtn:hover svg.i { color: var(--hl); }
.faDash .cBtn.strong { background: var(--hl); color: var(--on-highlight-color); box-shadow: none; }
.faDash .cBtn.strong svg.i { color: var(--on-highlight-color); }
.faDash .cBtn.strong:hover { background: var(--hl-deep); color: var(--on-highlight-color); }
.customEnd { display: flex; justify-content: center; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.faDash .custom > .sec, .faDash .favStrip, .faDash #projects, .faDash #history, .faDash #prefs { scroll-margin-top: calc(var(--railTop, 5rem) + 8px); }

.favStrip, .favRail { display: none; }
.faDash[data-custom-mode="row"] .custom, .faDash[data-custom-mode="side"] .custom { display: none; }
.faDash[data-custom-mode="row"] .favStrip { display: block; }
.faDash[data-custom-mode="side"] .favRail { display: flex; }
.faDash[data-custom-mode="row"] .favStrip { margin-top: 28px; }
.faDash[data-custom-mode="side"] #projects { margin-top: 28px; }

/* minimized row */
.favRow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.favCard { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; min-height: 96px; text-align: left; overflow: hidden; border-radius: var(--r); background: var(--tone-row); box-shadow: var(--shadow); outline: 1px solid var(--tone-line); outline-offset: -1px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.favCard:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.favCard:disabled { cursor: not-allowed; opacity: .6; }
.fArt { display: grid; place-items: center; background: var(--tone-thumb); }
.favCard .fArt { border-right: 1px solid var(--tone-line); }
.favCard .fArt .hand { width: 52%; }
.favCard .fBody { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 14px; min-width: 0; }
.favCard .nm { font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favCard .in { font-size: .75rem; color: var(--muted); }
.fDrop { position: absolute; inset: 5px; display: grid; place-items: center; border: 2px dashed var(--hl); border-radius: calc(var(--r) - 2px); background: color-mix(in srgb, var(--surface) 84%, transparent); color: var(--hl); font-size: .75rem; font-weight: 500; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .2s; }
.favCard.faDrop:hover .fDrop, .faDrop.isOver .fDrop, .isDragging .faDrop .fDrop, .railItem.faDrop:hover .fDrop { opacity: 1; }
.artIco svg.i { width: 34px; height: 34px; stroke-width: 1.9; color: var(--hand-line); }

/* side rail */
.favRail { position: fixed; z-index: 30; right: 16px; top: var(--railTop, 5.5rem); width: 132px; max-height: calc(100vh - var(--railTop, 5.5rem) - 16px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 10px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-up); outline: 1px solid var(--edge); outline-offset: -1px; }
.rLbl { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; }
.railItem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 4px 8px; border-radius: 10px; text-align: center; color: var(--ink); }
.railItem:not(:disabled):hover { background: var(--bg); }
.railItem:disabled { opacity: .55; cursor: not-allowed; }
.railItem .fArt { width: 64px; height: 64px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--tone-line); }
.railItem .fArt .hand { width: 60%; }
.railItem .artIco svg.i { width: 28px; height: 28px; }
.railItem .nm { font-size: .72rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.railItem .fDrop { inset: 2px; font-size: .7rem; }
.rSep { height: 1px; background: var(--line); margin: 2px 4px; }
.rBtn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 10px; font-size: .7rem; color: var(--muted); }
.rBtn svg.i { width: 20px; height: 20px; stroke-width: 2; }
.rBtn:hover { background: var(--hl-tint); color: var(--hl); }
.rBtn[data-to="open"] { color: var(--hl); }
@media (min-width: 901px) {
	.faDashBody:has(.faDash[data-custom-mode="side"]) .faMain--dash { padding-right: 172px; }
}

/* --- run analysis ------------------------------------------------------------ */
.labHero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: stretch; }
.tplPanes { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tplRow { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tplEmpty { grid-column: 1 / -1; padding: 28px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); }

.tpl { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--tone-row, var(--surface)); box-shadow: var(--shadow); outline: 1px solid var(--tone-line, var(--edge)); outline-offset: -1px; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.tpl.faDrop { cursor: pointer; }
.tpl.faDrop:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.tpl .art { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--tone-thumb); }
.tpl .art .hand { width: 34%; }
.tpl .body { flex: 1; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--tone-line, var(--line)); }
.tpl .name { font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.tpl .info { font-size: .75rem; color: var(--muted); }
.tpl .short { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.tpl:not(.feature) .short { font-size: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl .routs { display: flex; flex-wrap: wrap; gap: 4px; }
.tpl .routs .chip { font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tpl.feature { grid-column: span 2; grid-row: span 2; }
.tpl.feature .art { aspect-ratio: 1 / 1; flex: none; }
.tpl.feature .art .hand { width: 40%; }
.tpl.feature .name { font-size: 1.05rem; }
.tpl .stdTag { position: absolute; z-index: 1; left: 10px; top: 10px; font-size: .75rem; color: var(--muted); }
.tpl .favForm { position: absolute; z-index: 1; top: 6px; right: 6px; margin: 0; }
.tpl .fav { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--hl); }
.tpl .fav svg.i { width: 18px; height: 18px; }
.tpl .fav.on svg.i { fill: currentColor; stroke: none; }
.tpl .fav:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tpl .lockBadge { position: absolute; z-index: 1; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.tpl .lockBadge svg.i { width: 15px; height: 15px; }
.tpl.lockedTpl .art .hand { opacity: .55; }
.tplAct { display: flex; gap: 2px; margin: auto -6px -6px auto; padding-top: 2px; }
.tplAct form { margin: 0; display: contents; }
.lastRes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--tone-line, var(--line)); }
.faApp .faDash .lastRes a.meta { --link-c: var(--muted); }
.tpl .drop { position: absolute; inset: 6px; border: 2px dashed var(--hl); border-radius: calc(var(--r) - 2px); display: grid; place-items: center; font-size: .78rem; font-weight: 500; text-transform: uppercase; color: var(--hl); background: color-mix(in srgb, var(--surface) 82%, transparent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.tpl.isOver .drop, .isDragging .tpl .drop { opacity: 1; }
.tpl.isBusy .drop { opacity: 1; }

.planLine { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--r); background: var(--hl-tint); color: var(--hl-deep); font-size: .8rem; }
.planLine svg.i { width: 18px; height: 18px; }
.planLine span { flex: 1; }
.faApp .faDash .planLine .link { --link-c: var(--hl-deep); }

/* latest public */
.feedPanel { display: flex; flex-direction: column; min-height: 0; contain: size; padding-bottom: 14px; }
.feedPanel h3 { margin-bottom: 8px; }
.feedTabs { gap: 2px 14px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.feedTabs > button { font-size: .72rem; padding: 5px 0; }
.feed.scroll { flex: 1; min-height: 0; overflow-y: auto; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; }
.feedPanel > .link { margin-top: auto; padding-top: 10px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .8rem; }
.feed li[hidden] { display: none; }
.feed li.feedDay { display: block; border-top: 0; padding: 12px 0 2px; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.feed li.feedDay + li { border-top: 0; }
.feed .t { flex: 1; min-width: 0; }
.feed .nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .t small { display: block; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .ago { font-size: .75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fIco { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--tone-thumb, var(--bg)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--tone-line, var(--line)); }
.fIco svg.i { width: 17px; height: 17px; stroke-width: 2; }
.fIco .hand { width: 21px; }
.fIco.solid { background: var(--tone-solid); color: var(--tone-ink); box-shadow: none; }

/* --- I want to… ------------------------------------------------------------- */
.want { display: grid; grid-template-columns: 2.3fr 1fr 1fr; gap: 16px; }
.wantGroup { background: color-mix(in srgb, var(--ink) 5%, var(--bg)); border-radius: calc(var(--r) * 1.6); padding: 14px 14px 16px; }
.groupLabel { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.groupLabel svg.i { width: 17px; height: 17px; color: var(--muted); }
.groupLabel span { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: auto; font-size: .75rem; }
.actions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.actions.one { grid-template-columns: 1fr; }
.faApp .faDash a.action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--surface); --link-c: var(--ink); box-shadow: var(--shadow); outline: 1px solid var(--edge); outline-offset: -1px; transition: background .2s, color .2s; }
.faApp .faDash a.action:hover { background: var(--hl); --link-hover: var(--on-highlight-color); }
.action .t { font-size: .8rem; font-weight: 500; text-transform: uppercase; line-height: 1.2; letter-spacing: .02em; }
.action .t small { display: block; font-size: .75rem; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .75; margin-top: 3px; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: .5em; background: var(--bg); color: var(--ink); flex: none; transition: background .2s, color .2s; }
.ico svg.i { width: 26px; height: 26px; stroke-width: 2.3; }
.ico.tone { background: var(--tone-solid); color: var(--tone-ink); }
.action:hover .ico { background: var(--surface); color: var(--hl); }

/* --- your library -------------------------------------------------------------- */
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.libPanel { display: flex; flex-direction: column; padding-bottom: 12px; }
.libRow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .82rem; }
.libPanel h3 + .libRow { border-top: 0; }
.libRow .t { flex: 1; min-width: 0; }
.faApp .faDash .libRow a.nm { display: flex; align-items: center; gap: 6px; --link-c: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.libRow small { display: block; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.libBadge { display: inline-grid; color: var(--muted); }
.libBadge svg.i { width: 14px; height: 14px; }
.faDash .ib.fav { color: var(--hl); }
.faDash .ib.fav.on svg.i { fill: currentColor; stroke: none; }
.libFoot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

/* --- browse public ---------------------------------------------------------- */
.pubWrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: end; }
.pubTools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.pubSearch { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 320px; height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); outline: 1px solid var(--edge); outline-offset: -1px; color: var(--muted); }
.pubSearch:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--hl); }
.faApp .faDash .pubSearch input { flex: 1; min-width: 0; width: auto; padding: 0; border: 0; background: transparent; font: inherit; font-size: .85rem; color: var(--ink); outline: none; }
.catChips { display: flex; flex-wrap: wrap; gap: 4px; }
.catChips button { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.catChips button[data-c="all"] { padding-left: 10px; }
.catChips button:hover { color: var(--ink); }
.catChips button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.catChips .cd { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--tone-solid); color: var(--tone-ink); }
.catChips .cd svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.pubSort { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pubSort svg.i { width: 16px; height: 16px; }
.faApp .faDash .pubSort select { width: auto; font: inherit; font-size: .8rem; color: var(--ink); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; padding: 6px 8px; }
.pubCountRow { display: flex; align-items: center; gap: 12px; min-height: 36px; margin: 6px 0 8px; }
.pubCount { font-size: .75rem; color: var(--muted); }
.pubFoot { margin-left: auto; }
.pubFoot:empty { display: none; }
.pubFoot .btn { padding: 6px 12px; font-size: .72rem; }
.pubFoot .btn svg.i { width: 16px; height: 16px; transition: transform .25s; }
.pubFoot.isOpen .btn svg.i { transform: rotate(180deg); }
.pubList { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.pubList.open { max-height: 760px; overflow-y: auto; padding: 6px 10px 6px 6px; margin: -6px -10px -6px -6px; scrollbar-width: thin; overscroll-behavior: contain; }
.pubEmpty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .85rem; text-align: center; }

.pubRow { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; min-height: 140px; border-radius: var(--r); overflow: hidden; background: var(--tone-row); box-shadow: var(--shadow); outline: 1px solid var(--tone-line); outline-offset: -1px; transition: box-shadow .25s, transform .25s cubic-bezier(.2,.8,.2,1); }
.pubRow:hover { box-shadow: var(--shadow-up); transform: translateY(-1px); }
.pThumb { position: relative; display: grid; place-items: center; background: var(--tone-thumb); border-right: 1px solid var(--tone-line); color: var(--ink); }
.pThumb .hand { width: 42%; max-width: 92px; }
.pThumb.kindThumb { background: var(--tone-solid); color: var(--tone-ink); }
.pThumb .bigIco svg.i { width: 54px; height: 54px; stroke-width: 1.9; }
.pKind { position: absolute; left: 12px; bottom: 10px; font-size: .7rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.pBody { display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pTop { display: flex; align-items: center; gap: 10px; padding: 12px 18px 10px; border-bottom: 1px solid var(--tone-line); }
.pubRow .nm { min-width: 0; font-size: .95rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pubRow .runs { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--hl); white-space: nowrap; }
.trend svg.i { width: 14px; height: 14px; }
/* the train scrolls sideways (drag with the mouse, swipe, or arrow keys); the edges fade where more is hidden */
.train { display: flex; align-items: center; padding: 12px 18px; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; --fadeL: #000; --fadeR: #000; -webkit-mask-image: linear-gradient(90deg, var(--fadeL), #000 40px, #000 calc(100% - 40px), var(--fadeR)); mask-image: linear-gradient(90deg, var(--fadeL), #000 40px, #000 calc(100% - 40px), var(--fadeR)); }
.train::-webkit-scrollbar { display: none; }
.train.moreR { --fadeR: transparent; }
.train.moreL { --fadeL: transparent; }
.train.pannable { cursor: grab; }
.train.isPanning { cursor: grabbing; user-select: none; }
.train.isPanning .car { pointer-events: none; }
.train:focus-visible { outline: 2px solid var(--hl); outline-offset: -2px; }
.train .none { font-size: .8rem; color: var(--muted); }
.carW { display: flex; align-items: center; flex: none; }
.coupler { position: relative; width: 20px; height: 2px; background: color-mix(in srgb, var(--ink) 45%, transparent); }
.coupler::before, .coupler::after { content: ""; position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 55%, var(--surface)); }
.coupler::before { left: -1px; }
.coupler::after { right: -1px; }
.car { display: inline-flex; align-items: center; gap: 9px; height: 38px; max-width: 210px; padding-right: 12px; border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--tone-line); font-size: .8rem; white-space: nowrap; }
.carIco { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--tone-solid); color: var(--tone-ink); }
.carIco svg.i { width: 19px; height: 19px; }
.carIco .hand { width: 24px; }
.carNm { overflow: hidden; text-overflow: ellipsis; }
.car.used { gap: 7px; padding: 0 12px 0 10px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.car.used svg.i { width: 16px; height: 16px; }
.pMicro { display: flex; align-items: stretch; min-width: 0; border-top: 1px solid var(--tone-line); font-size: .75rem; color: var(--muted); }
.pMicro .mi { display: flex; align-items: center; gap: 6px; padding: 8px 14px; white-space: nowrap; }
.pMicro .mi + .mi { border-left: 1px solid var(--tone-line); }
.pMicro .mi.desc { flex: 1; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; padding-left: 18px; line-height: 1.45; }
.pMicro .av { width: 20px; height: 20px; font-size: .55rem; box-shadow: none; }
.pAct { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 8px 10px; border-left: 1px solid var(--tone-line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.faDash .pAct .ib { width: 38px; height: 30px; color: var(--ink); --link-c: var(--ink); }
.faDash .pAct .ib.count { grid-auto-flow: column; gap: 3px; }
.faDash .pAct .ib.count span { font-size: .75rem; font-variant-numeric: tabular-nums; }
.faDash .pAct .ib.voted { color: var(--hl); }
.faDash .pAct .ib.voted svg.i { fill: var(--hl-tint); }
.faDash .pAct .ib.go svg.i { fill: currentColor; }
.pAct form { margin: 0; }
.faDash .pAct .ib.fav { color: var(--hl); }

.pubSide { display: flex; flex-direction: column; padding-top: 14px; }
.sideGroup + .sideGroup { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sideGroup h4 { margin: 0 0 2px; }
.sideGroup h4 button { display: flex; width: 100%; align-items: center; gap: 6px; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; padding: 2px 0; }
.sideGroup h4 .go { margin-left: auto; color: var(--hl); font-size: .75rem; text-transform: none; letter-spacing: 0; display: inline-flex; gap: 4px; align-items: center; opacity: .7; }
.sideGroup h4 .go svg.i { width: 14px; height: 14px; }
.sideGroup h4 button:hover .go { opacity: 1; }
.sideGroup .feed { border-bottom: 1px solid var(--line); }
.sideGroup .feed li:first-child { border-top: 1px solid var(--line); }
::view-transition-group(*) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }

/* --- projects (design 1, "Studio row") -------------------------------------- */
.prList { display: flex; flex-direction: column; gap: 18px; }
.pr { display: grid; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); outline: 1px solid var(--edge); outline-offset: -1px; overflow: hidden; }
.d1 { grid-template-columns: 320px minmax(0, 1fr) 320px; }
.ragBox { display: grid; place-items: center; background: var(--surface); overflow: hidden; border-right: 1px solid var(--line); min-height: 100%; }
.ragBox img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; padding: 16px; }
.rag2 { font-size: 7.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.d1-main { padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pHead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pHead h3 { margin: 0; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.faApp .faDash .pHead h3 a { --link-c: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.st b { display: block; font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.st span { display: block; font-size: .75rem; color: var(--muted); max-width: 28ch; }
.d1-nums { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.faApp .faDash a.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; --link-c: var(--muted); }
.kpi > span:last-child { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.pill { display: inline-block; font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.01em; padding: .12em .3em .1em; border-radius: .22em; font-variant-numeric: tabular-nums; }
.pill.e { background: var(--err); color: var(--err-on); }
.pill.w { background: var(--warn); color: var(--warn-on); }
.pill.ok { background: var(--ok-tint); color: var(--ok-text); }
.d1-chart { flex: 1; min-width: 200px; max-width: 360px; margin-left: auto; }
.spark { display: block; width: 100%; height: auto; }
.d1-side { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.sideTabs .tabs { gap: 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.nt { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; }
.nt p { margin: 0; font-size: .8rem; line-height: 1.4; }
.nt small { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.ntIco { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex: none; }
.ntIco svg.i { width: 14px; height: 14px; }
.faDash .addLine { display: inline-block; font-size: .75rem; font-weight: 500; margin-top: 6px; }
.td { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .8rem; }
.td:first-child { border-top: 0; }
.td .box { width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--muted); flex: none; }
.td .box.doing { box-shadow: inset 0 0 0 1.5px var(--hl); background: linear-gradient(90deg, var(--hl-tint) 50%, transparent 50%); }
.td .t { flex: 1; min-width: 0; }
.td .due { font-size: .75rem; color: var(--muted); white-space: nowrap; padding: 0 6px; border-radius: 99px; }
.td .due.soon { background: var(--hl-tint); color: var(--hl-deep); }
.td .due.over { background: var(--err); color: var(--err-on); }
.ckHead { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 6px; }
.meter { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--hl); border-radius: 99px; }
.ckItems { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.ckI { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ink); }
.ckI.on { color: var(--muted); }
.ckI svg.i { width: 15px; height: 15px; color: var(--hl); }
.ckI i { width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line); }

/* activity line: analyses are violet dots, deadlines are flags */
.d1-tl { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 16px 20px 8px; background: color-mix(in srgb, var(--bg) 40%, var(--surface)); }
.tl { position: relative; height: 64px; margin: 0 8px; }
.tl:has(.tl-flag.hi) { margin-top: 30px; }
.tl-line { position: absolute; left: 0; right: 0; top: 34px; border-top: 2px dashed var(--line); }
.tl-past { position: absolute; left: 0; top: 33px; height: 4px; border-radius: 4px; background: var(--hl-tint); z-index: 1; }
.tl-m { position: absolute; top: 48px; font-size: .75rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 4px; height: 16px; line-height: 16px; }
.tl-dot { position: absolute; top: 30px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--hl); z-index: 2; }
.tl-dot.last { width: 15px; height: 15px; margin-left: -7.5px; top: 28px; background: var(--hl); box-shadow: 0 0 0 3px var(--hl-tint); }
.tl-ev { position: absolute; top: 40px; margin-left: -8px; color: var(--muted); z-index: 2; }
.tl-ev svg.i { width: 15px; height: 15px; background: var(--surface); border-radius: 3px; }
.tl-flag { position: absolute; top: 0; display: flex; flex-direction: column; padding-left: 2px; border-left: 2px solid var(--ink); height: 38px; font-size: .75rem; white-space: nowrap; z-index: 3; }
.tl-flag svg.i { position: absolute; left: -2px; top: 0; width: 14px; height: 14px; color: var(--ink); fill: var(--ink); }
.tl-flag b { padding-left: 14px; line-height: 14px; font-weight: 500; }
.tl-flag small { padding-left: 4px; color: var(--muted); }
.tl-flag.soon svg.i { color: var(--err); fill: var(--err); }
.tl-flag.hi { top: -30px; height: 68px; }
.tl-flag.rt { transform: translateX(-100%); border-left: 0; border-right: 2px solid var(--ink); padding: 0 2px 0 0; align-items: flex-end; }
.tl-flag.rt svg.i { left: auto; right: -2px; transform: scaleX(-1); }
.tl-flag.rt b { padding: 0 14px 0 0; }
.tl-flag.rt small { padding: 0 4px 0 0; }
.soonTag { background: var(--err); color: var(--err-on); padding: 0 4px; border-radius: 4px; }
.tl-today { position: absolute; top: 18px; height: 30px; border-left: 2px solid var(--hl); z-index: 3; }
.tl-today b { position: absolute; top: -15px; left: -16px; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--hl); }

.moreRow { display: flex; justify-content: center; margin-top: 16px; }
.moreRow svg.i { width: 16px; height: 16px; }
.emptyBox { padding: 28px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .85rem; color: var(--muted); margin: 0; }

/* --- testing history -------------------------------------------------------- */
.histFilter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.histFilter .check { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.faApp .faDash .histFilter select { width: auto; padding: 6px 8px; font-size: .8rem; }
.histWrap { overflow-x: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); outline: 1px solid var(--edge); outline-offset: -1px; padding: 12px 18px 6px; }
.hist { width: 100%; border-collapse: collapse; font-size: .8rem; }
.hist th { text-align: left; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 8px 8px; }
.hist td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.hist tr:hover td { background: color-mix(in srgb, var(--hl-tint) 40%, transparent); }
.hist td:first-child, .hist th:first-child { padding-left: 0; width: 28px; }
.hist .fam { font-weight: 500; text-transform: uppercase; display: block; }
.hist .when { font-size: .75rem; color: var(--muted); }
.hist .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist .z { color: var(--muted); }
.statusIco { color: var(--ink); }
.statusIco.queued { color: var(--muted); }
.statusIco.failed { color: var(--err); }
.rowActions { display: flex; gap: 2px; justify-content: flex-end; }
.rowActions form { margin: 0; }
.faApp .faDash .rowActions a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; --link-c: var(--ink); }
.rowActions a:hover { background: var(--hl-tint); }
.emptyCell { color: var(--muted); padding: 20px 0 !important; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }

/* --- preferences ------------------------------------------------------------- */
.prefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.prefs .panel { display: flex; flex-direction: column; gap: 10px; }
.prefs .panel > p { margin: 0; font-size: .85rem; }
.prefs .btn { align-self: flex-start; }
.prefLinks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.faApp .faDash .prefs select { width: 100%; }

/* --- dark mode: solid accents (the previews' R4 rules) --------------------- */
@media (prefers-color-scheme: dark) {
	.pubRow .trend { background: var(--hl); color: var(--surface); padding: 2px 8px 2px 6px; border-radius: 99px; }
	.faDash .pAct .ib.go { height: 38px; background: var(--hl); color: var(--surface); border-radius: 8px; }
	.faDash .pAct .ib.go:hover { background: var(--hl-deep); color: var(--surface); }
	.catChips button.tone[aria-pressed="true"] { background: var(--tone-thumb); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--tone-solid); }
}

/* --- responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
	.labHero, .pubWrap { grid-template-columns: minmax(0, 1fr); }
	.feedPanel { contain: none; }
	.feed.scroll { max-height: 420px; }
	.pubSide { align-self: start; }
	.d1 { grid-template-columns: 260px minmax(0, 1fr); }
	.d1-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
	.prefs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.want { grid-template-columns: 1fr; }
	.actions.one { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
	.lib, .favRow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.pubRow { grid-template-columns: 120px minmax(0, 1fr); }
	.pAct { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; border-left: 0; border-top: 1px solid var(--tone-line); }
	.pMicro { flex-wrap: wrap; }
	.pMicro .mi.desc { flex-basis: 100%; white-space: normal; border-bottom: 1px solid var(--tone-line); }
	.pMicro .mi.desc + .mi { border-left: 0; }
	.pubSort { margin-left: 0; }
	/* the rail becomes a bar along the bottom */
	.favRail { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: none; flex-direction: row; align-items: center; gap: 4px; padding: 6px; }
	.favRail .rLbl, .favRail .rSep, .favRail .rBtn[data-to="row"] { display: none; }
	.railItem { flex: 1; min-width: 0; padding: 4px; }
	.railItem .fArt { width: 44px; height: 44px; border-radius: 10px; }
	.railItem .nm { font-size: .68rem; -webkit-line-clamp: 1; line-clamp: 1; }
	.rBtn { flex: none; padding: 6px 8px; }
	.faDash[data-custom-mode="side"] { padding-bottom: 96px; }
	.customHead .cSub { display: none; }
	.favCard { grid-template-columns: 88px minmax(0, 1fr); min-height: 84px; }
	.tplRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.prefs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.d1 { grid-template-columns: 1fr; }
	.ragBox { border-right: 0; border-bottom: 1px solid var(--line); min-height: 160px; }
	.tl { overflow: hidden; }
	.tl-flag b { display: none; }
	.hist .hideS { display: none; }
	.faApp .dashNav > a { width: 2.1rem; }
}
@media (max-width: 620px) {
	.pubRow { grid-template-columns: 84px minmax(0, 1fr); min-height: 0; }
	.pThumb .bigIco svg.i { width: 34px; height: 34px; }
	.pKind { display: none; }
	.tpl.feature { grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
	.tpl, .favCard, .pubRow { transition: none; }
	.tpl.faDrop:hover, .favCard:hover, .pubRow:hover { transform: none; }
}

/* --- hover actions on the small items (dashboard.js, section 5) ----------- */
.hasMini { position: relative; }
.hasMini:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; border-radius: 6px; }
.miniAct {
	position: absolute; inset: 3px -6px; z-index: 2;
	display: flex; align-items: center; gap: 2px; padding: 0 4px 0 10px;
	border-radius: 8px; background: var(--tone-row, var(--surface));
	box-shadow: var(--shadow), inset 0 0 0 1px var(--tone-line, var(--line));
	opacity: 0; visibility: hidden; transform: scale(.98);
	transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.hasMini:hover > .miniAct, .hasMini:focus-within > .miniAct, .hasMini.miniOpen > .miniAct { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.miniAct .maName { flex: 1; min-width: 0; font-size: .75rem; line-height: 1.25; }
.miniAct .maName b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniAct .maName small { display: block; color: var(--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.miniAct form { margin: 0; display: contents; }
.faApp .faDash .miniAct .ma, .miniAct .ma {
	display: inline-grid; place-items: center; flex: none;
	width: 32px; height: 32px; padding: 0; border-radius: 7px;
	color: var(--ink); --link-c: var(--ink); --link-hover: var(--hl);
	background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.miniAct .ma svg.i { width: 17px; height: 17px; stroke-width: 2; }
.miniAct .ma:hover:not(:disabled) { background: var(--surface); color: var(--hl); box-shadow: var(--shadow); }
.miniAct .ma:focus-visible { outline: 2px solid var(--hl); outline-offset: -2px; }
.miniAct .ma.on { color: var(--hl); }
.miniAct .ma.on svg.i { fill: currentColor; }
.miniAct .ma[data-act="useful"].on svg.i { fill: var(--hl-tint); }
.miniAct .ma:disabled { opacity: .35; cursor: not-allowed; }
.faApp .faDash .miniAct .ma.faDrop { background: var(--hl); color: var(--on-highlight-color); }
.faApp .faDash .miniAct .ma.faDrop:hover { background: var(--hl-deep); color: var(--on-highlight-color); }
.miniAct .ma.faDrop svg.i { fill: currentColor; }
.miniAct .ma.lockLink { color: var(--hl-deep); --link-c: var(--hl-deep); }
.miniAct .ma.isOver { outline: 2px dashed var(--hl); }
.libFavMark { color: var(--hl); display: inline-grid; }
.libFavMark svg.i { width: 15px; height: 15px; fill: currentColor; stroke: none; }

.miniMenu {
	position: fixed; z-index: 1200; width: min(300px, calc(100vw - 16px)); max-height: min(360px, 70vh); overflow: auto;
	padding: 12px; border-radius: var(--r); background: var(--surface); color: var(--ink);
	box-shadow: var(--shadow-up), 0 0 0 1px var(--line);
}
.miniMenu h4 { margin: 0 0 8px; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.miniMenu .mmList { display: flex; flex-direction: column; gap: 2px; }
.miniMenu .mmList button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.miniMenu .mmList button:hover:not(:disabled), .miniMenu .mmList button:focus-visible { background: var(--hl-tint); color: var(--hl-deep); outline: none; }
.miniMenu .mmList button:disabled { opacity: .5; cursor: default; }
.miniMenu .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miniMenu .nm small { display: block; font-size: .75rem; color: var(--muted); }
.miniMenu .empty { margin: 0; font-size: .8rem; color: var(--muted); }
.miniMenu .fIco { width: 28px; height: 28px; }

.dashToast {
	position: fixed; z-index: 1300; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
	max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border-radius: var(--r);
	background: var(--ink); color: var(--surface); font-size: .85rem; box-shadow: var(--shadow-up);
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.dashToast.on { opacity: 1; transform: translate(-50%, 0); }
.dashToast.bad { background: var(--err); color: var(--err-on); }

/* Browse public: buttons that used to be forms */
.faDash .pAct .ib.go.locked { background: var(--bg); color: var(--muted); }

/* --- free plan: the parts that need a subscription ------------------------ */
.action.locked { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--surface); color: var(--muted); outline: 1px dashed var(--line); outline-offset: -1px; opacity: .7; cursor: not-allowed; }
.action.locked .ico { filter: grayscale(1); opacity: .6; }
.faApp .faDash .lockTag { --link-c: var(--hl-deep); --link-hover: var(--hl); text-decoration: none; }
.lockTag { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--hl-deep); background: var(--hl-tint); padding: 3px 9px; border-radius: 99px; }
.lockTag svg.i { width: 13px; height: 13px; }
#want .planLine { margin-top: 12px; }

/* --- foundry panel ---------------------------------------------------------- */
.foundryPanel .fdName { margin: 0; font-size: .85rem; }
.fdPeople { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.fdPeople li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .8rem; }
.fdPeople li:first-child { border-top: 0; }
.fdPeople .av { flex: none; }
.fdPeople .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdStatus { font-size: .75rem; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--bg); color: var(--muted); }
.fdStatus.s-member { background: var(--hl-tint); color: var(--hl-deep); }
.fdStatus.s-collaborator { background: var(--ok-tint); color: var(--ok-text); }
.fdActions { display: flex; flex-wrap: wrap; gap: 8px; }
.faApp .faDash .fdActions .btn { padding: 7px 12px; }
.fdActions .btn svg.i { width: 16px; height: 16px; }

/* --- after dropping fonts: the setting and the background-run tray ---------- */
.faDash fieldset.panel { border: 0; margin: 0; min-width: 0; }
.faDash .opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.faDash .opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--hl); background: var(--hl-tint); }
.faDash .opt input { margin: 3px 0 0; accent-color: var(--hl); flex: none; }
.faDash .opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.faDash .opt b { font-size: .85rem; font-weight: 500; }
.faDash .opt small { font-size: .75rem; color: var(--muted); }
.faDash .opt:has(input:checked) small { color: var(--ink); }
.runPref .warnNote { background: var(--warn); color: var(--warn-on); padding: 6px 10px; border-radius: var(--r); }
.runTray { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; width: min(24rem, calc(100vw - 32px)); }
.runTray:empty { display: none; }
.runItem { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-up); outline: 1px solid var(--line); outline-offset: -1px; }
.runItem.done { outline: 2px solid var(--hl); outline-offset: -2px; }
.runItem.failed { outline: 2px solid var(--err); outline-offset: -2px; }
.runItem .runText { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.runItem b { font-size: .85rem; font-weight: 500; overflow-wrap: anywhere; }
.runItem small { font-size: .75rem; color: var(--muted); }
.runItem .btn { padding: 6px 12px; box-shadow: none; }
.runItem .x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.runItem .x:hover { background: var(--hl-tint); color: var(--ink); }
.runItem .spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--hl-soft); border-top-color: var(--hl); animation: runSpin .9s linear infinite; }
@keyframes runSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .runItem .spin { animation-duration: 3s; } }
