/* Anticode dashboard (anticode.dev/dashboard). Loads after base.css.
   Layout and behaviour studied live on lovable.dev/dashboard (2026-10-19), rebuilt in Anticode's system:
   a 248px sidebar on the ground colour, the work area as one raised panel (16px radius, hairline ring),
   a rising dot-field backdrop instead of a rainbow gradient, the red pen for "working now", and
   Lovable's layered-hover idea (rim, wash and selected layers that only ever fade their opacity). */

.dash { --panel: color-mix(in srgb, var(--surface) 42%, var(--ground)); --pop-bg: color-mix(in srgb, var(--surface) 78%, var(--ground));
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1); --side-w: 248px; overflow: hidden;
  /* depth and selection, per theme (the light values are in "Light mode" at the end of this file) */
  --sh-panel: 0 0 0 1px var(--hair), 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent) inset, 0 20px 60px -30px rgba(0, 0, 0, 0.6);
  --sh-comp: 0 0 0 1px var(--hair), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --sh-shelf: 0 0 0 1px var(--hair), 0 -30px 60px -40px rgba(0, 0, 0, 0.7);
  --sh-pill: 0 0 0 1px var(--hair), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --nav-on: color-mix(in srgb, var(--text) 8%, transparent); --nav-on-ring: 0 0 #0000;
  --seg-on: color-mix(in srgb, var(--text) 12%, transparent); --seg-on-ring: 0 0 #0000; }
body.dash { background: var(--ground); }
svg.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
/* the set's 20px drawings shown at 24px: 1.3 here draws the same 1.5px line as before */
svg.ric { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 7px; font: 500 11px/1 var(--font); color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair-2); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--muted); transition: color var(--t-1) var(--ease), background-color var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
.icon-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.icon-btn:active { scale: 0.92; }
.icon-btn.round { width: 36px; height: 36px; border-radius: 50%; }

.backdrop, .panel-backdrop { pointer-events: none; overflow: hidden; }
.backdrop { position: fixed; inset: 0; z-index: 0; }
.panel-backdrop { position: absolute; inset: 0 0 auto; height: min(100vh, 980px); z-index: 0;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); } /* fades out instead of ending in a line */
.panel-backdrop .bd-grid { -webkit-mask-image: radial-gradient(75% 55% at 50% 55%, #000, transparent 80%); mask-image: radial-gradient(75% 55% at 50% 55%, #000, transparent 80%); }
.panel-backdrop .bd-glow { bottom: -20%; }
.bd-rise, .pb-par { position: absolute; inset: 0; animation: bg-enter 1600ms var(--ease-out-cubic) both; }
@keyframes bg-enter { from { opacity: 0; transform: translateY(50vh); } }
.bd-grid { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 78%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 78%, #000, transparent 75%); }
.bd-glow { position: absolute; left: 50%; bottom: -36%; width: min(1400px, 150vw); aspect-ratio: 2 / 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pen) 26%, transparent), color-mix(in srgb, var(--pen) 8%, transparent) 55%, transparent); }
.bd-pen { position: absolute; left: 50%; bottom: 8%; width: 46vw; height: 2px; translate: -50% 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--pen), transparent); opacity: 0.55; }
.dash.is-app .backdrop { opacity: 0; transition: opacity 600ms var(--ease); }
@supports (animation-timeline: scroll()) {
  .pb-par { animation: bg-enter 1600ms var(--ease-out-cubic) both, bg-par linear both; animation-timeline: auto, scroll(nearest); animation-range: normal, 0px 900px; }
  @keyframes bg-par { to { transform: translate3d(0, 240px, 0); } }
}


.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: 100dvh; padding: 8px 8px 8px 0; transition: grid-template-columns 300ms var(--ease-snap); }
.app[hidden] { display: none; }
.dash.is-entering .side { animation: side-in 600ms var(--ease-reveal) both; }
.dash.is-entering .panel { animation: panel-in 700ms var(--ease-reveal) 60ms both; }
@keyframes side-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes panel-in { from { opacity: 0; transform: scale(0.985); } }
.side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; padding: 0 8px; }
.side-top { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 2px 0 8px; }
.side-brand .mark { width: 20px; height: 23px; color: var(--text); }
.side-brand .mark path { transition: transform var(--t-3) var(--ease-spring); }
.side-brand:hover .mk-a { transform: translate(1.5%, -3%); } .side-brand:hover .mk-b { transform: translate(-1.5%, 3%); }
.ws { position: relative; }
.ws-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 8px 0 4px; border-radius: 13px; font-size: 14px; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color var(--t-1) var(--ease); }
.ws-btn:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.ws-av, .acct-av { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 9px; background: var(--pen); color: #fff; font-size: 12px; font-weight: 600; }
.acct-av { border-radius: 50%; background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); }
.ws-av-lg, .acct-av-lg { width: 36px; height: 36px; font-size: 15px; border-radius: 13px; }
/* inside a menu, base.css's `.menu span` would turn the initial grey and small */
.menu .ws-av-lg, .menu .acct-av-lg { color: #fff; font-size: 15px; }
.acct-av-lg { border-radius: 50%; }
/* the account's builder avatar (avatar.js) */
.acct-av.has-art { overflow: hidden; background: none; box-shadow: none; }
.acct-av.has-art svg, .acct-av.has-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-name { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 16px; height: 16px; color: var(--muted); transform-origin: 50% 50%; transition: transform 220ms var(--ease); }
/* open, it flips by lying flat and opening upward, as the homepage's (base.css .chev) */
@supports (d: path("M0 0")) {
  .chev path { d: path("M6 8l4 4 4-4"); transition: d 160ms cubic-bezier(0.4, 0, 0.2, 1); }
  [aria-expanded="true"] > .chev path { d: path("M6 12l4-4 4 4"); }
}
@supports not (d: path("M0 0")) { [aria-expanded="true"] > .chev { transform: scaleY(-1); } }
.snav { position: relative; display: grid; gap: 2px; margin-top: 6px; }
.snav > a, .snav > button { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 999px; font-size: 14px; color: var(--body); white-space: nowrap; text-align: left; transition: color var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
.snav > a:hover, .snav > button:hover { color: var(--text); }
.snav > [hidden] { display: none; }
.snav > :active { scale: 0.985; }
.snav > [aria-current="page"] { color: var(--text); background: var(--nav-on); box-shadow: var(--nav-on-ring); }
.snav .kbd { margin-left: auto; }
.snav .hl { border-radius: 999px; background: var(--nav-hover, color-mix(in srgb, var(--text) 5%, transparent)); }
.recents { display: grid; grid-template-rows: auto 1fr; min-height: 0; flex: 1; margin-top: 14px; }
.recents-head { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; font-size: 13px; color: var(--muted); border-radius: 999px; }
.recents-head:hover { color: var(--body); }
.recents-head .chev { width: 14px; height: 14px; opacity: 0; transition: opacity var(--t-1) var(--ease), transform 220ms var(--ease); }
.recents-head:hover .chev, .recents-head:focus-visible .chev { opacity: 1; }
.recents-head[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.recent-list { margin: 0; padding: 0; list-style: none; display: grid; align-content: start; gap: 1px; overflow-y: auto; min-height: 0; scrollbar-width: thin; transition: opacity 200ms var(--ease); }
.recents-head[aria-expanded="false"] + .recent-list { opacity: 0; visibility: hidden; }
.recent-list a { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: 13.5px; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.recent-list a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
/* a Recents row: the project, and its … (move up, move down, delete), shown on hover or focus. It's dragged to a new
   place (dashboard.js renderRecents): it follows the pointer, and a line shows where it lands. */
.rc-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; touch-action: pan-y; -webkit-touch-callout: none; }
.rc-row > a { grid-area: 1 / 1; min-width: 0; }
.rc-row.has-more > a { padding-right: 34px; }
.rc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.recent-list.can-move .rc-row { user-select: none; }
.rc-more { grid-area: 1 / 1; justify-self: end; translate: none; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 4px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: none; opacity: 0; transition: opacity var(--t-1) var(--ease), background-color var(--t-1) var(--ease); }
.rc-more .ic { width: 16px; height: 16px; }
.rc-row:hover .rc-more, .rc-row:focus-within .rc-more, .rc-more[aria-expanded="true"] { opacity: 1; }
.rc-more:hover, .rc-more:focus-visible, .rc-more[aria-expanded="true"] { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); outline: none; }
/* its pop-up: the switcher's (.ws-opts), fixed beside the sidebar */
.ws-opts.rc-opts { position: fixed; z-index: 130; }
.rc-opts .mi-danger:hover, .rc-opts .mi-danger:focus-visible, .rc-opts .mi-danger:hover .ic, .rc-opts .mi-danger:focus-visible .ic { color: var(--danger); }
.recent-list.is-sorting { cursor: grabbing; }
.recent-list.is-sorting .rc-row:not(.is-dragging) > a { pointer-events: none; }
.rc-row.is-dragging { z-index: 2; border-radius: 999px; background: var(--pop-bg); box-shadow: 0 0 0 1px var(--line), 0 8px 20px -10px rgba(0, 0, 0, .5); }
.rc-row.is-dragging .rc-more { opacity: 0; }
.rc-row.drop-above::before, .rc-row.drop-below::after { content: ''; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 1px; background: var(--muted); pointer-events: none; }
.rc-row.drop-above::before { top: -1px; } .rc-row.drop-below::after { bottom: -1px; }
/* a touch screen has no hover: the … stays in view, quietly */
@media (hover: none) { .rc-row .rc-more { opacity: .7; } }
.recent-list .dot { flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px var(--hair); }
.recent-empty { padding: 4px 8px; font-size: 13px; color: var(--muted); }

/* the beam runs round the border by turning a square of gradient behind the card (rotate, on the compositor), not by
   redrawing the gradient every frame, which kept the main thread busy for as long as the dashboard was open */
.beta { position: relative; isolation: isolate; overflow: hidden; padding: 1px; border-radius: 17px; background: var(--hair-2); box-shadow: var(--edge); }
.beta::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: conic-gradient(var(--hair-2) 0deg, var(--hair-2) 280deg, var(--pen) 320deg, var(--hair-2) 360deg); animation: beam 6s linear infinite; will-change: rotate; }
@keyframes beam { to { rotate: 360deg; } }
.beta-in { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--ground); }
.beta-in > div { flex: 1; min-width: 0; display: grid; }
.beta-in b { font-size: 14px; font-weight: 500; color: var(--text); }
.beta-in span { font-size: 12.5px; color: var(--muted); }
.beta-go { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--pen) 16%, transparent); color: var(--pen); transition: scale var(--t-1) var(--ease), background-color var(--t-1) var(--ease); }
.beta-go:hover, .beta:hover .beta-go { background: color-mix(in srgb, var(--pen) 24%, transparent); }
/* the whole card is the button: the round button's hit area covers it */
.beta-go::after { content: ""; position: absolute; inset: 0; border-radius: 17px; cursor: pointer; }
.beta:hover .mk-a { transform: translate(4%, -8%); } .beta:hover .mk-b { transform: translate(-4%, 8%); }
.beta-go:active { scale: 0.9; }
.beta-go .mark { width: 14px; height: 16px; }
.beta-go:hover .mk-a { transform: translate(4%, -8%); } .beta-go:hover .mk-b { transform: translate(-4%, 8%); }
.beta-go .mark path { transition: transform var(--t-3) var(--ease-spring); }
.acct { position: relative; padding-bottom: 2px; }
.acct-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 6px; border-radius: calc(12px + 7px); font-size: 14px; color: var(--body); transition: background-color var(--t-1) var(--ease); }
.acct-btn:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.acct-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the plan an account is on, next to its name (dashboard.js renderAccount) */
.acct-btn .acct-name { min-width: 0; }
/* Connectors › Anticode Payments (dashboard.js openPayouts) */
.po-bal { display: grid; gap: 12px; }
.po-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.po-nums span { display: block; font-size: 13px; color: var(--muted, var(--body)); }
.po-nums b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.po-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.po-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.po-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; min-height: 40px; font-variant-numeric: tabular-nums; }
.po-frame { display: block; width: 100%; height: min(640px, 75vh); border: 0; border-radius: 14px; background: #fff; }
.acct-plan { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--text); background: color-mix(in srgb, var(--text) 12%, transparent); }

/* collapsed: one column of equal 44px cells on one pitch, from the mark down to the account */
.dash.is-collapsed { --side-w: 72px; --rail-cell: 44px; --rail-gap: 6px; }
@media (max-height: 680px) { .dash.is-collapsed { --rail-cell: 40px; --rail-gap: 4px; } }
.dash.is-collapsed .side { gap: var(--rail-gap); padding: 0 calc((var(--side-w) - var(--rail-cell)) / 2); }
.dash.is-collapsed .side :is(.ws-btn .chev, .snav .kbd, .snav-new, .recents, .beta, .acct-plan) { display: none; }
/* the names stay for screen readers: an icon-only link still needs its label */
.dash.is-collapsed .side :is(.ws-name, .snav span, .acct-name) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dash.is-collapsed .side-top { flex-direction: column; height: auto; gap: var(--rail-gap); padding: 0; }
.dash.is-collapsed .side-brand { display: grid; place-items: center; width: var(--rail-cell); height: var(--rail-cell); }
.dash.is-collapsed .side-brand .mark { width: 22px; height: 25px; }
.dash.is-collapsed .side-top .icon-btn, .dash.is-collapsed .ws-btn, .dash.is-collapsed .snav > a, .dash.is-collapsed .snav > button, .dash.is-collapsed .acct-btn { width: var(--rail-cell); height: var(--rail-cell); justify-content: center; padding: 0; margin: 0; border-radius: 14px; }
.dash.is-collapsed .side svg.ic { width: 22px; height: 22px; }
.dash.is-collapsed .ws-btn { box-shadow: none; }
.dash.is-collapsed :is(.ws-btn .ws-av, .acct-btn .acct-av) { width: 30px; height: 30px; font-size: 13.5px; }
.dash.is-collapsed .ws-btn .ws-av { border-radius: 10px; }
.dash.is-collapsed .snav { gap: var(--rail-gap); margin-top: 0; }
.dash.is-collapsed .snav .hl { border-radius: 14px; }
.dash.is-collapsed .acct { margin-top: auto; padding-bottom: 0; }

.dmenu { background: var(--pop-bg); width: 272px; padding: 6px; gap: 1px; max-height: min(420px, calc(100vh - 96px)); overflow-y: auto; overscroll-behavior: contain; }
.dmenu > button, .dmenu > a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border-radius: 10px; text-align: left; font-size: 14px; color: var(--body); transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.dmenu > button:hover, .dmenu > a:hover, .dmenu > button:focus-visible { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.dmenu > [hidden] { display: none; }
.dmenu > button b, .dmenu > a b { font-weight: 450; color: inherit; font-size: 14px; }
.dmenu .ic { color: var(--muted); }
.dmenu .mi-accent { color: var(--text); }
.dmenu .mi-accent .mark { width: 16px; height: 18px; color: var(--pen); flex: none; margin: 0 1px; }
.dmenu .mi-danger:hover { color: var(--danger); } .dmenu .mi-danger:hover .ic { color: var(--danger); }
.ws .dmenu { left: 0; right: auto; top: calc(100% + 6px); --origin: top left; }
.dmenu.up { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; --origin: bottom left; }
.dmenu.down-left { left: 0; right: auto; top: calc(100% + 8px); --origin: top left; }
.dmenu.down-right { right: 0; left: auto; top: calc(100% + 8px); --origin: top right; }
.ws-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 10px; }
.ws-head > div { display: grid; min-width: 0; }
.ws-head b { font-size: 14px; font-weight: 500; color: var(--text); }
/* the icon at the top of the workspace and account menus: on hover it shades and shows a pencil, and a click picks an image */
.av-edit, .menu .av-edit { position: relative; display: block; flex: none; width: auto; padding: 0; border: 0; background: none; border-radius: 13px; cursor: pointer; }
.av-edit-round, .menu .av-edit-round { border-radius: 50%; }
.av-edit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity var(--t-1) var(--ease); }
.av-pen { position: absolute; inset: 0; z-index: 1; margin: auto; width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity var(--t-1) var(--ease); }
.av-edit:not(:disabled):hover::after, .av-edit:focus-visible::after, .av-edit:not(:disabled):hover .av-pen, .av-edit:focus-visible .av-pen { opacity: 1; }
.av-edit:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.av-edit:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) { .av-edit::after, .av-pen { transition: none; } }
.ws-head > div > span { font-size: 12.5px; color: var(--muted); }
.ws-meter { display: grid; gap: 6px; margin: 0 4px 6px; padding: 10px; border-radius: 13px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.ws-meter-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--body); }
.ws-meter-row b { font-weight: 500; color: var(--text); }
.ws-bar { height: 4px; border-radius: 5px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.ws-bar i { display: block; height: 100%; width: 100%; background: var(--ok); transform-origin: 0 50%; animation: meter 900ms var(--ease-reveal) both; }
@keyframes meter { from { transform: scaleX(0); } }
.ws-meter small { font-size: 12px; color: var(--muted); }
.menu-foot { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 4px 6px; padding: 3px; border-radius: 13px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.seg3 button { display: grid; place-items: center; height: 30px; border-radius: 10px; color: var(--muted); transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.seg3 button[aria-checked="true"] { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--hair-2), var(--edge); }

.panel { position: relative; min-width: 0; min-height: 0; border-radius: 21px; background: var(--panel); overflow: hidden;
  box-shadow: var(--sh-panel); }
.panel-scroll { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; isolation: isolate; }
.view { position: relative; z-index: 1; }
/* everything in the main area 5.5% smaller (text, icons, boxes and spacing alike); the sidebar keeps its size */
.panel-scroll > .view { zoom: 0.945; font-size: 95%; }
/* text in the main area is 5% smaller again on top of that (its font sizes are set 5% down; inherited ones by the 95% above) */
.view[hidden] { display: none; }
.view-home { display: grid; justify-items: center; padding: 20px clamp(16px, 4vw, 48px) 48px; }
.connect { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 6px; border-radius: var(--r-control); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(12px);
  font-size: 12.82px; font-weight: 500; color: var(--text); box-shadow: var(--sh-pill); transition: background-color var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
.connect:hover { background: var(--raised); }
.connect:active { scale: 0.985; }
.connect .ic { width: 15px; height: 15px; color: var(--muted); transition: transform 240ms var(--ease-reveal); }
.connect:hover .ic { transform: translateX(2px); }
.greet { margin: clamp(80px, 17vh, 170px) 0 26px; font-size: clamp(30px, 3.3vw, 38px); font-weight: 500; letter-spacing: -0.02em; text-align: center; }
.greet .w { display: inline-block; }

.dcomp { position: relative; z-index: 5; display: grid; gap: 4px; width: 100%; max-width: 740px; padding: 12px; border-radius: 37px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--sh-comp); transition: box-shadow var(--t-2) var(--ease); }
.dcomp textarea { width: 100%; min-height: 56px; max-height: 220px; resize: none; padding: 8px 10px; border: 0; background: transparent; font-size: 16.15px; line-height: 1.45; color: var(--text); outline: none; }
.dcomp textarea::placeholder { color: var(--muted); }
.dcomp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; }
.dcomp-chips:empty { display: none; }
.dcomp-media { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 6px 2px; list-style: none; }
.dcomp-media:empty { display: none; }
.dcomp.is-drop { box-shadow: 0 0 0 2px var(--pen), 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
/* what the next build will use, before it's sent (from /api/builds/quote) */
/* a line about the plan over the composer (the Pro trial on Stripe, dashboard.js notice) */
.d-notice { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 740px; margin: 0 auto 18px; padding: 10px 8px 10px 16px; border-radius: var(--r-card, 21px); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: inset 0 0 0 1px var(--hair), var(--edge); font-size: 13.3px; line-height: 1.45; text-align: left; }
.d-notice p { flex: 1; margin: 0; }
.d-notice[data-kind="ok"] p::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--ok, #08744a); vertical-align: 1px; }
.d-notice .btn { flex: none; }
.d-notice-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.d-notice-x:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.d-notice-x .ic { width: 16px; height: 16px; }
@media (max-width: 560px) { .d-notice { flex-wrap: wrap; } .d-notice p { flex-basis: calc(100% - 44px); } }
.cchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: var(--r-control); background: color-mix(in srgb, var(--text) 7%, transparent); font-size: 11.88px; color: var(--text); animation: chip-in 280ms var(--ease-spring) both; }
.cchip button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--muted); }
.cchip button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
.cchip .ic { width: 12px; height: 12px; }
@keyframes chip-in { from { opacity: 0; transform: scale(0.8); } }
.dcomp-row { display: flex; align-items: center; gap: 4px; }
.spacer { flex: 1; }
.pop-wrap { position: relative; }
.plus-menu { width: 288px; max-height: min(420px, 60vh); overflow-y: auto; }
.msearch { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.msearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--text); }
.pm-tick { width: 16px; height: 16px; opacity: 0; color: var(--text) !important; }
[aria-checked="true"] > .pm-tick { opacity: 1; }
.send-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; transition: scale var(--t-1) var(--ease), background-color var(--t-2) var(--ease), color var(--t-2) var(--ease), box-shadow var(--t-1) var(--ease), filter var(--t-1) var(--ease); }
.send-btn:disabled { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--muted); cursor: default; }
.send-btn:not(:disabled) { animation: send-in 250ms linear both; }
@keyframes send-in { 0%, 20% { opacity: 0.4; } 100% { opacity: 1; } }
.send-btn:not(:disabled):active { scale: 0.9; }
.send-btn[hidden] { display: none; }
/* the composer's controls: flat, a hairline or a tint, never raised */
.dcomp-plus { box-shadow: inset 0 0 0 1px var(--hair-2); }
#mic { background: color-mix(in srgb, var(--text) 8%, transparent); }
#mic:hover { background: color-mix(in srgb, var(--text) 13%, transparent); }
.effort-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px 0 12px; border-radius: 23px; font-size: 13.3px; font-weight: 600; color: var(--muted); transition: color var(--t-1) var(--ease), background-color var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
.effort-btn:hover, .effort-btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.effort-btn:active { scale: 0.97; }
.effort-btn .ic { width: 15px; height: 15px; }
.effort-menu { width: 220px; }
/* the Model and Effort groups sit in the menu's own column, each under its label, their items styled as the menu's own */
.effort-menu .mgroup { display: contents; }
.effort-menu .mgroup[hidden] { display: none; }
.effort-menu .mgroup > button { width: 100%; min-height: 32px; border-radius: 16px; text-align: left; font-size: 13.5px; color: var(--body); transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.effort-menu .mgroup > button:hover, .effort-menu .mgroup > button:focus-visible { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.effort-menu .mgroup > button b { font-weight: 450; color: inherit; font-size: 13.5px; }
/* one line a row: the name, and a tick at the right of the one picked. Nothing explains a model or an effort here (the owner, 13 Nov 2026) */
.dmenu.effort-menu > button, .dmenu.effort-menu .mgroup > button { display: grid; grid-template-columns: 1fr 16px; column-gap: 8px; row-gap: 0; align-items: center; padding: 6px 10px; }
.effort-menu .mgroup > button > b { grid-column: 1; grid-row: 1; min-width: 0; }
.effort-menu .mgroup > button > .pm-tick { grid-column: 2; grid-row: 1; }
.effort-menu .menu-label { padding: 6px 10px 4px; font-size: 11px; }
@media (pointer: coarse) { .effort-menu .mgroup > button { min-height: 44px; } }
/* Team, beside the + (dashboard.js renderTeam): flat like Effort; without the plan, a quiet "Upgrade" badge */
.team-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 23px; font-size: 13.3px; font-weight: 600; color: var(--muted); transition: color var(--t-1) var(--ease), background-color var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
.team-btn[hidden] { display: none; }
.team-btn:hover, .team-btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.team-btn:active { scale: 0.97; }
.team-btn .ic { width: 16px; height: 16px; }
.team-badge { padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair-2); }
.team-badge[hidden] { display: none; }
.team-menu { width: 296px; }
.team-pitch, .team-head { display: grid; gap: 4px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.team-pitch b, .team-head b { font-size: 14px; font-weight: 600; color: var(--text); }
.team-pitch p, .team-head span { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.dmenu.team-menu > button small, .dmenu.team-menu > a small { margin-left: auto; font-size: 12px; color: var(--muted); }
/* on a phone, the badge keeps its place and the word steps aside (the button is still named "Team") */
@media (max-width: 400px) { .team-btn:has(.team-badge:not([hidden])) .team-l { display: none; } }
@media (pointer: coarse) { .team-btn { min-height: 44px; } }
/* what it's built for: iPhone, Android or the web, as one segmented control under the composer */
/* VR (src/vr.ts): a quiet "Max" badge until the plan has it, and on picking it the headset's lenses catch the light once */
/* naming a VR world before it's built: a small sheet in the pop-up style of the search */
.vrname { width: min(400px, calc(100% - 32px)); padding: 22px 22px 18px; border: 0; border-radius: 21px; background: var(--pop-bg); color: var(--text);
  box-shadow: 0 0 0 1px var(--hair), 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.vrname::backdrop { background: rgba(0, 0, 0, 0.5); }
.vrname[open] { animation: vrname-in 160ms var(--ease); }
@keyframes vrname-in { from { opacity: 0; transform: scale(0.98); } }
.vrname-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--seg-on); box-shadow: var(--seg-on-ring); }
.vrname-ic .ic { width: 22px; height: 22px; }
.vrname h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.vrname p { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.vrname input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; outline: none; font-size: 16px; color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1px var(--hair), var(--edge-in); }
.vrname-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .vrname[open] { animation: none; } }
/* deleting a workspace: the VR name sheet, with its name to type out and a red button that wakes once it matches */
.ws-del-label { display: block; margin: 0 0 8px; font-size: 13.5px; color: var(--body); }
.ws-del-label b { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ws-del .xfer-err { margin: 10px 0 0; font-size: 13.5px; color: var(--danger); }
.ws-del-go:not([disabled]) { background: var(--danger); color: #fff; box-shadow: none; }
.ws-del-go[disabled] { opacity: .45; cursor: not-allowed; }
@media (pointer: coarse) { .dcomp-row .icon-btn.round, .send-btn { width: 44px; height: 44px; } }
#mic.is-live { color: var(--pen); background: color-mix(in srgb, var(--pen) 14%, transparent); }
#mic.is-live .ic { animation: pulse 1.2s var(--ease) infinite; }

.shelf { width: 100%; max-width: 1040px; margin-top: clamp(72px, 16vh, 180px); padding: 18px 18px 22px; border-radius: calc(19px + 18px); background: var(--panel); box-shadow: var(--sh-shelf); }
/* no inset on the right: the tabs pill and the "View all" arrow (or the header's button) sit the same distance from either edge */
.shelf-bar, .pview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 0 14px; }
.tabs { position: relative; display: inline-flex; padding: 3px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--hair); }
.tabs button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: var(--r-control); font-size: 13.3px; color: var(--muted); transition: color 200ms var(--ease); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tab-pill { position: absolute; z-index: 0; left: 0; top: 3px; height: 32px; border-radius: var(--r-control); background: var(--seg-on); box-shadow: var(--seg-on-ring); transition: transform 320ms var(--ease-snap), width 320ms var(--ease-snap); }
.browse { display: inline-flex; align-items: center; gap: 4px; font-size: 13.3px; font-weight: 500; color: var(--text); padding: 6px 4px; margin-right: -4px; }
.browse .ic { width: 16px; height: 16px; transition: transform 240ms var(--ease-reveal); }
.browse:hover .ic { transform: translateX(3px); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 16px; }
.card { position: relative; display: grid; gap: 10px; min-width: 0; animation: card-in 520ms var(--ease-reveal) both; animation-delay: calc(var(--i, 0) * 32ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.card-hit { position: absolute; inset: 0; z-index: 1; border-radius: 26px; }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--raised); border-radius: 24px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px var(--hair), var(--edge); }
.card-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 200ms var(--ease-out-cubic); box-shadow: inset 0 0 0 1px var(--hair); background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.18)); }
.card:hover .card-thumb::after { opacity: 1; }
.card:active .card-thumb { scale: 0.99; }
.card-thumb .badge { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 3px 8px; border-radius: var(--r-control); font-size: 10.92px; font-weight: 500; color: #fff; background: rgba(10, 10, 10, 0.62); backdrop-filter: blur(6px); }
/* a project whose build is still running on the server (dashboard.js watchBuilds) */
.card-thumb .badge .live { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #6ee7a0; vertical-align: 1px; }
/* the Main Company (dashboard.js isMain): the project the workspace runs as its business, marked at the top left with its flag */
.card-thumb .badge.mc-badge { top: 10px; bottom: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; background: rgba(10, 10, 10, 0.72); }
.card-thumb .mc-ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .card-thumb .badge .live { animation: none; } }
.card-foot { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.card-foot > div { flex: 1; min-width: 0; display: grid; }
.card-foot b { font-size: 14.25px; font-weight: 450; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot span { font-size: 12.35px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-more { position: relative; z-index: 2; opacity: 0; transition: opacity 150ms var(--ease-out-cubic), background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.card:hover .card-more, .card-more:focus-visible, .card-more[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .card-more { opacity: 1; } }
.cards[data-layout="list"] { grid-template-columns: 1fr; gap: 4px; }
.cards[data-layout="list"] .card { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; padding: 8px; border-radius: 18px; transition: background-color var(--t-1) var(--ease); }
.cards[data-layout="list"] .card:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.cards[data-layout="list"] .card-thumb { border-radius: 12px; }
.cards[data-layout="list"] .badge { display: none; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 24px 16px 20px; text-align: center; }
.fan { position: relative; width: 216px; height: 135px; margin-bottom: 8px; }
.fan .fan-shot { position: absolute; inset: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--hair-2), 0 20px 40px -20px rgba(0, 0, 0, 0.8); transition: transform 600ms var(--ease-spring); }
.fan .fan-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: var(--raised); }
.fan .fan-shot:nth-child(1) { transform: rotate(-9deg) translate(-26px, 6px); }
.fan .fan-shot:nth-child(2) { transform: rotate(7deg) translate(26px, 4px); }
.fan .fan-shot:nth-child(3) { transform: rotate(-1deg); }
.empty h2 { font-size: 20.9px; font-weight: 500; letter-spacing: -0.015em; }
.empty p { color: var(--muted); font-size: 13.77px; max-width: 40ch; }

.view-projects { padding: 28px clamp(16px, 4vw, 48px) 48px; max-width: 1180px; margin: 0 auto; }
.pview-head :is(h1, .view-h) { font-size: 24.7px; font-weight: 500; letter-spacing: -0.02em; }
.pview-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--muted); }
.field input { width: 180px; min-width: 0; border: 0; background: none; outline: none; font-size: 13.3px; color: var(--text); }
.seg2 { display: inline-flex; padding: 3px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--hair); }
.seg2 button { display: grid; place-items: center; width: 32px; height: 30px; border-radius: var(--r-control); color: var(--muted); transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
.seg2 button[aria-checked="true"] { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.seg2 button:active { scale: 0.92; }
.btn .ic { width: 16px; height: 16px; }

.card-menu { position: fixed; top: 0; left: 0; right: auto; width: 220px; z-index: 140; --origin: top right; }

.scrim { position: fixed; inset: 0; z-index: 150; display: grid; padding: 16px; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 120ms var(--ease), visibility 0s linear 120ms; }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 160ms var(--ease), visibility 0s; }
.cmdk-scrim { align-items: start; justify-items: center; padding-top: 14vh; }
.cmdk { width: min(640px, 100%); max-height: min(520px, 72vh); display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 21px; background: var(--pop-bg); overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair), 0 30px 80px -20px rgba(0, 0, 0, 0.8); transform: scale(0.98); opacity: 0; transition: transform 80ms var(--ease), opacity 80ms var(--ease); }
.scrim.is-open .cmdk { transform: none; opacity: 1; }
.cmdk-in { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-in input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); }
.cmdk-list { overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.cmdk-group { padding: 10px 10px 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.cmdk-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 10px; border-radius: 12px; font-size: 14px; color: var(--body); text-align: left; }
.cmdk-row .ic { color: var(--muted); }
.cmdk-row .meta { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cmdk-row[aria-selected="true"] { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.cmdk-row[aria-selected="true"] .ic { color: var(--text); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }

/* the workspace's icon: an image, a builder avatar or an emoji in place of the letter */
/* a picture or builder avatar shows what is behind it wherever its own pixels are clear (the owner, 12 Nov 2026): no tile */
.ws-av.has-img { overflow: hidden; background: transparent; }
.ws-av.has-img img, .ws-av.has-img svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-av.has-emoji { background: color-mix(in srgb, var(--text) 8%, transparent); font-size: 15px; font-weight: 400; line-height: 1; }
.ws-av-lg.has-emoji { font-size: 21px; }


.mob-menu, .side-close, .drawer-scrim { display: none; }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; padding: 0; }
  .panel { border-radius: 0; box-shadow: none; }
  .side { position: fixed; z-index: 120; inset: 0 auto 0 0; width: min(300px, 86vw); padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); background: var(--ground);
    box-shadow: 1px 0 0 var(--line), 30px 0 60px rgba(0, 0, 0, 0.5); transform: translateX(-104%); visibility: hidden; transition: transform 320ms var(--ease-reveal), visibility 0s linear 320ms; }
  /* hidden while closed so its controls leave the tab order */
  .dash.is-drawer .side { transform: none; visibility: visible; transition: transform 320ms var(--ease-reveal), visibility 0s; }
  .dash.is-entering .side { animation: none; }
  #collapse { display: none; }
  .mob-menu { display: grid; position: absolute; z-index: 5; left: 10px; top: max(10px, env(safe-area-inset-top)); }
  .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms; }
  .dash.is-drawer .drawer-scrim { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease), visibility 0s; }
  .view-home { padding-top: 58px; }
  .greet { margin-top: 12vh; }
  .shelf { padding: 10px 10px 16px; border-radius: calc(19px + 10px); }
  .field input { width: 120px; }
}

/* connector tiles, shown on the dashboard itself */
/* monogram tiles (a tool's initial on its own colour) */
.mono { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 13px; background: var(--mc); color: var(--mt); font-size: 14px; font-weight: 650; letter-spacing: -0.02em; box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 12%, transparent); }
.mono-sm { width: 22px; height: 22px; border-radius: 9px; font-size: 10.5px; }
.mono-xs { width: 18px; height: 18px; border-radius: 7px; font-size: 9.5px; }
.mono-lg { width: 52px; height: 52px; border-radius: 18px; font-size: 20px; }
.mono-new { --mc: color-mix(in srgb, var(--text) 8%, transparent); --mt: var(--text); }
.mono svg { width: 56%; height: 56%; fill: currentColor; }
.mono-sm svg, .mono-xs svg { width: 62%; height: 62%; }
.mono-stack { display: flex; }
.mono-stack .mono + .mono { margin-left: -6px; }
.mono-stack .mono { box-shadow: 0 0 0 2px var(--surface); }
.snav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-control); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.snav-count[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bd-rise, .pb-par, .card, .cchip, .dash.is-entering .side, .dash.is-entering .panel { animation: none !important; }
  .beta::before { animation: none; }
}
.card-foot .rename { width: 100%; height: 26px; padding: 0 8px; margin: -2px 0 0 -8px; border: 0; border-radius: 9px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); font: 450 14.25px var(--font); outline: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent); position: relative; z-index: 2; }
@media (pointer: coarse) { .snav .kbd { display: none; } }

/* live thumbnails: the real page, scaled into the card; the sketch underneath shows until it loads */
.card-thumb .shot { position: absolute; top: 0; left: 0; z-index: 1; width: 1280px; height: 800px; border: 0; pointer-events: none; transform-origin: 0 0; transform: scale(var(--s, 0.25)); opacity: 0; background: #fff; transition: opacity 420ms var(--ease-reveal), transform 700ms var(--ease-reveal); }
.card-thumb.has-shot .shot { opacity: 1; }
.card:hover .card-thumb .shot { transform: scale(calc(var(--s, 0.25) * 1.025)); }
/* a template's card: a screenshot of the site or app the model designed (public/templates/<id>.jpg) */
.card-thumb .tpl-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: var(--raised); transition: transform 700ms var(--ease-reveal); }
.card:hover .card-thumb .tpl-shot { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .card-thumb .tpl-shot { transition: none; } .card:hover .card-thumb .tpl-shot { transform: none; } }
@media (prefers-reduced-motion: reduce) { .card-thumb .shot { transition: none; } }
.card-thumb .badge { z-index: 2; }

/* usage meters: the bar fills as the limit is used; amber from 80%, red when it's reached */
.ws-meter .ws-meter-row + .ws-bar { margin-top: -2px; }
.ws-meter small + .ws-meter-row { margin-top: 6px; }
.ws-bar[data-level="high"] i { background: var(--warn); }
.ws-bar[data-level="full"] i { background: var(--danger); }
.ws-meter .ws-meter-note { padding-top: 6px; border-top: 1px solid var(--line); }
.ws-resend { justify-self: start; min-height: 28px; padding: 0; font-size: 12.5px; font-weight: 500; color: var(--pen); }
.ws-resend:hover { text-decoration: underline; text-underline-offset: 2px; }
.ws-resend:disabled { opacity: 0.5; }

/* Team (public/team.js): people, invitations and the workspaces you're in, as ruled rows */
/* the same column as Projects and Library, so the title doesn't jump between views; the rows keep a readable 860px */
/* Team, a pop-up over the dashboard (public/team.js). The surface, the head, the close button, the side list and the
   phone treatment are Settings' own (.sp-dialog in settings-page.css); only what Team adds is here. Groups are told
   apart by space and by the card each list sits on, not by lines. */
.sp-dialog.tm-dialog { width: min(860px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 32px)); }
.tm-dialog .sp-wrap { grid-template-columns: 176px minmax(0, 1fr); justify-content: stretch; align-items: start; }
.tm-dialog .sp-wrap.is-single { grid-template-columns: minmax(0, 1fr); }
.tm-dialog .sp-side { max-height: none; overflow: visible; }
.tm-dialog .sp-side[hidden] { display: none; }
.tm-dialog .sp-nav .tm-n { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--c-sel); font-size: 12px; font-weight: 500; line-height: 1.5; text-align: center; color: var(--text); font-variant-numeric: tabular-nums; }
.tm-body { display: grid; gap: var(--s-6); align-content: start; min-width: 0; }
.tm-page { gap: var(--s-6); }
.tm-dialog .tm-sec { gap: 12px; }
.tm-dialog .tm-sec + .tm-sec { margin-top: 0; padding-top: 0; border-top: 0; }
.tm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tm-head .sp-h { margin: 0; }
.tm-count { flex: none; font-size: 13.5px; color: var(--body); font-variant-numeric: tabular-nums; }
/* the seats, as a bar: how much of the plan is used, at a glance; the words under it say the same */
.tm-meter { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--c-sel); color: var(--text); appearance: none; -webkit-appearance: none; }
.tm-meter::-webkit-progress-bar { background: var(--c-sel); }
.tm-meter::-webkit-progress-value { background: var(--text); border-radius: 3px; }
.tm-meter::-moz-progress-bar { background: var(--text); border-radius: 3px; }
.tm-seats { margin: -4px 0 4px; }
.tm-rows { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-radius: 14px; overflow: hidden; }
.tm-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 64px; padding: 12px 16px; background: var(--c-card); }
.tm-who { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; }
.tm-who b { font-size: 14.5px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.tm-who span { font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.tm-you { margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 12px !important; font-weight: 500; color: var(--text) !important; background: var(--c-sel); }
.tm-role { flex: none; font-size: 13.5px; color: var(--body); }
.tm-warn { font-weight: 600; color: var(--danger); }
.tm-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.tm-ctl select, .tm-form input[type="text"], .tm-form input[type="email"], .tm-link input { min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--c-card); color: var(--text); font: inherit; font-size: 14.5px; }
.tm-ctl select { min-height: 36px; background: var(--c-sel); }
.tm-form input::placeholder { color: var(--muted); }
.tm-dialog :is(input, select):focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.tm-form { display: grid; gap: 16px; max-width: 520px; }
.tm-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tm-field > label:not(.tm-pick), .tm-field > legend, .tm-inline > label { padding: 0; font-size: 13.5px; font-weight: 500; color: var(--text); }
.tm-field > legend { margin-bottom: 8px; }
.tm-field input[type="email"] { width: 100%; }
/* the role: each choice with what it means beside it, in words */
.tm-picks { gap: 2px; }
.tm-pick { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: var(--c-card); cursor: pointer; }
.tm-pick:first-of-type { border-radius: 14px 14px 0 0; }
.tm-pick:last-of-type { border-radius: 0 0 14px 14px; }
.tm-pick:has(input:checked) { background: var(--c-sel); }
.tm-pick:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: -2px; }
.tm-pick input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--text); }
.tm-pick span { display: grid; gap: 2px; min-width: 0; }
.tm-pick b { font-size: 14.5px; font-weight: 500; color: var(--text); }
.tm-pick small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.tm-pick:has(input:checked) small { color: var(--body); }
/* the button, and right under it what happened */
.tm-send { display: grid; gap: 12px; justify-items: start; }
.tm-result, .tm-note { display: grid; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 14px; background: var(--c-card); font-size: 13.5px; line-height: 1.5; color: var(--body); }
.tm-result[hidden] { display: none; }
.tm-result p, .tm-note p { margin: 0; }
.tm-result[data-kind="ok"] p { color: var(--text); }
.tm-result[data-kind="error"] p { color: var(--danger); }
.tm-note { flex: 1 1 100%; background: var(--c-main); }
.tm-link { display: flex; gap: 8px; min-width: 0; }
.tm-link input { flex: 1 1 0; min-width: 0; min-height: 36px; background: var(--c-sel); font-size: 13px; text-overflow: ellipsis; }
.tm-link .btn { flex: none; }
.tm-link .btn .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tm-inline { gap: 8px; margin-top: 4px; }
.tm-line { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-line input { flex: 1 1 220px; min-width: 0; }
.tm-muted { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tm-muted b { font-weight: 500; color: var(--text); }
.tm-err { margin: 0; font-size: 13.5px; color: var(--danger); }
.tm-pitch p { max-width: 60ch; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.tm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-actions:empty { display: none; }
.tm-empty { display: grid; justify-items: start; gap: 12px; padding: var(--s-5); }
@media (max-width: 860px) {
  .sp-dialog.tm-dialog { width: 100vw; height: 100dvh; }
  .tm-dialog .sp-wrap { grid-template-columns: minmax(0, 1fr); }
  .tm-dialog .sp-nav .tm-n { margin-left: 6px; }
  /* the page you're on: light words on the selected grey, 12.6:1 (Settings' phone rule alone would leave them dark on it) */
  .tm-dialog .sp-nav a[aria-current] { color: var(--text); background: var(--c-sel); }
  .tm-dialog .sp-nav a[aria-current] .tm-n { background: var(--c-main); }
}
/* the greeting, as the homepage's headline: tight, the words dimmed, the person's name picked like a layer in a design
   tool, white in a selection box with four handles (the homepage's "designed.", anticode.css .sel-box) */
.greet { font-size: clamp(34px, 3.9vw, 52px); line-height: 1.1; letter-spacing: -0.045em; color: color-mix(in srgb, var(--text) 55%, transparent); }
.greet-name { position: relative; display: inline-block; padding: 0 0.08em; color: var(--text); }
.greet-name .sel-box { position: absolute; inset: 0.06em -0.02em -0.02em; border: 1.5px solid #7ea2ff; pointer-events: none; animation: greet-sel 700ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both; }
.greet-name .sel-box i { position: absolute; width: 8px; height: 8px; background: #ffffff; border: 1.5px solid #7ea2ff; }
.greet-name .sel-box i:nth-child(1) { left: -5px; top: -5px; } .greet-name .sel-box i:nth-child(2) { right: -5px; top: -5px; }
.greet-name .sel-box i:nth-child(3) { left: -5px; bottom: -5px; } .greet-name .sel-box i:nth-child(4) { right: -5px; bottom: -5px; }
:root[data-theme="light"] .greet-name .sel-box, :root[data-theme="light"] .greet-name .sel-box i { border-color: #1d5fd6; }
@keyframes greet-sel { from { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .greet-name .sel-box { animation: none; } }
/* the live dot grid (bg-field.js): the same grid, on a canvas with the same fade; the CSS grid steps aside for it */
.bd-field { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(75% 55% at 50% 55%, #000, transparent 80%); mask-image: radial-gradient(75% 55% at 50% 55%, #000, transparent 80%); }
:root:not([data-dots="off"]).has-bd-field .panel-backdrop .bd-grid { display: none; }
/* the Effort menu: rounder than the other menus */
.effort-menu { border-radius: 22px; padding: 6px; width: 220px; }
.effort-menu > button { border-radius: 18px; padding: 10px 12px; }
/* the workspace switcher (dashboard.js renderWsList): the account's own, the ones it added, the ones it was invited to */
.ws-list { display: grid; gap: 2px; margin: 0 0 6px; padding: 6px 0; border-block: 1px solid var(--line); }
.ws-list > button, .ws-row > [data-ws] { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; }
.ws-list button b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-list small { font-size: 12px; color: var(--muted); }
.ws-list .ic { justify-self: center; width: 16px; height: 16px; }
.ws-list [aria-checked="true"] { background: color-mix(in srgb, var(--text) 5%, transparent); }
.ws-list small .ws-on { width: 12px; height: 12px; margin-left: 4px; vertical-align: -2px; color: var(--text); }
.menu .ws-av-sm { width: 24px; height: 24px; color: #fff; font-size: 12px; }
.ws-list[hidden] { display: none; }
.ws-list button:hover, .ws-list button:focus-visible { background: color-mix(in srgb, var(--text) 7%, transparent); outline: none; }
/* a row: the workspace, and its … (pin, move up, move down), shown on hover or focus; a pinned one carries a small pin.
   It's dragged to a new place (dashboard.js renderWsList): it follows the pointer, and a line shows where it lands. */
.ws-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; touch-action: pan-y; -webkit-touch-callout: none; user-select: none; }
.ws-row > [data-ws] { grid-area: 1 / 1; padding-right: 10px; }
.ws-list.can-move .ws-row > [data-ws] { padding-right: 40px; }
.ws-row .ws-more { grid-area: 1 / 1; justify-self: end; display: grid; place-items: center; width: 28px; min-height: 28px; height: 28px; margin-right: 6px; padding: 0; border-radius: 8px; opacity: 0; translate: none; }
.ws-row .ws-more .ic { width: 16px; height: 16px; }
.ws-row:hover .ws-more, .ws-row:focus-within .ws-more, .ws-more[aria-expanded="true"] { opacity: 1; }
.ws-list .ws-more:hover, .ws-list .ws-more:focus-visible, .ws-more[aria-expanded="true"] { background: color-mix(in srgb, var(--text) 9%, transparent); translate: none; }
.ws-list small .ws-pin { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
/* the row's … pop-up: small, to the right of the button, on the menu's own surface (dashboard.js openWsOpts places it) */
.ws-opts { position: absolute; z-index: 3; display: grid; gap: 1px; width: max-content; min-width: 132px; padding: 4px; border-radius: 10px; background: var(--pop-bg); box-shadow: 0 0 0 1px var(--hair), 0 10px 28px -10px rgba(0, 0, 0, .55); animation: ws-opts-in 120ms ease-out both; }
.ws-opts button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; color: var(--body); translate: none; }
.ws-opts button .ic { width: 14px; height: 14px; color: var(--muted); }
.ws-opts button b { font-size: 12.5px; font-weight: 450; color: inherit; }
.ws-opts hr { height: 1px; margin: 3px 4px; border: 0; background: var(--line); }
.ws-opts button:hover, .ws-opts button:focus-visible { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); outline: none; translate: none; }
@keyframes ws-opts-in { from { opacity: 0; transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .ws-opts { animation: none; } }
.ws-opts button[disabled] { opacity: .4; pointer-events: none; }
.ws-list.is-sorting { cursor: grabbing; }
.ws-list.is-sorting .ws-row:not(.is-dragging) > [data-ws] { pointer-events: none; }
.ws-list.is-sorting [data-ws] { translate: none; }
.ws-row.is-dragging { z-index: 2; border-radius: 10px; background: var(--pop-bg); box-shadow: 0 0 0 1px var(--line), 0 8px 20px -10px rgba(0, 0, 0, .5); }
.ws-row.is-dragging .ws-more { opacity: 0; }
.ws-row.drop-above::before, .ws-row.drop-below::after { content: ''; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 1px; background: var(--muted); pointer-events: none; }
.ws-row.drop-above::before { top: -2px; } .ws-row.drop-below::after { bottom: -2px; }
/* a touch screen has no hover: the … stays in view, quietly */
@media (hover: none) { .ws-row .ws-more { opacity: .7; } }

/* Light mode: soft depth instead of the dark theme's heavy shadows, white selections that sit on the page like
   paper, and a pale blue-to-violet wash at the top of the panel */
:root[data-theme="light"] .dash { --panel: #ffffff; --pop-bg: #ffffff;
  --sh-panel: 0 0 0 1px rgba(23, 23, 23, 0.07), 0 1px 2px rgba(23, 23, 23, 0.04), 0 18px 50px -30px rgba(30, 52, 110, 0.22);
  --sh-comp: 0 0 0 1px rgba(23, 23, 23, 0.08), 0 1px 2px rgba(23, 23, 23, 0.04), 0 12px 32px -20px rgba(23, 23, 23, 0.18);
  --sh-shelf: 0 0 0 1px rgba(23, 23, 23, 0.07), 0 1px 2px rgba(23, 23, 23, 0.03), 0 30px 70px -40px rgba(30, 52, 110, 0.28);
  --sh-pill: 0 0 0 1px rgba(23, 23, 23, 0.08), 0 6px 18px -10px rgba(30, 52, 110, 0.28);
  --nav-on: #ffffff; --nav-on-ring: 0 0 0 1px rgba(23, 23, 23, 0.06), 0 1px 3px rgba(23, 23, 23, 0.07);
  --nav-hover: rgba(23, 23, 23, 0.045);
  --seg-on: #ffffff; --seg-on-ring: 0 0 0 1px rgba(23, 23, 23, 0.07), 0 1px 3px rgba(23, 23, 23, 0.08); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dash { --panel: #ffffff; --pop-bg: #ffffff;
  --sh-panel: 0 0 0 1px var(--hair), 0 1px 2px rgba(23, 23, 23, 0.04), 0 18px 50px -30px rgba(30, 52, 110, 0.22);
  --sh-comp: 0 0 0 1px var(--hair), 0 1px 2px rgba(23, 23, 23, 0.04), 0 12px 32px -20px rgba(23, 23, 23, 0.18);
  --sh-shelf: 0 0 0 1px var(--hair), 0 1px 2px rgba(23, 23, 23, 0.03), 0 30px 70px -40px rgba(30, 52, 110, 0.28);
  --sh-pill: 0 0 0 1px var(--hair), 0 6px 18px -10px rgba(30, 52, 110, 0.28);
  --nav-on: #ffffff; --nav-on-ring: 0 0 0 1px var(--hair), 0 1px 3px rgba(23, 23, 23, 0.07);
  --nav-hover: rgba(23, 23, 23, 0.045);
  --seg-on: #ffffff; --seg-on-ring: 0 0 0 1px var(--hair), 0 1px 3px rgba(23, 23, 23, 0.08); } }
:root[data-theme="light"] .panel { background: #ffffff; }
:root[data-theme="light"] .dcomp { background: #ffffff; }
:root[data-theme="light"] .tabs { background: rgba(23, 23, 23, 0.035); box-shadow: none; }
:root[data-theme="light"] .card-thumb { box-shadow: 0 0 0 1px var(--hair), 0 10px 24px -16px rgba(23, 23, 23, 0.35); }
:root[data-theme="light"] .bd-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--pen) 16%, transparent), color-mix(in srgb, #8b5cf6 6%, transparent) 55%, transparent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .panel { background: #ffffff; }
  :root:not([data-theme="dark"]) .dcomp { background: #ffffff; }
  :root:not([data-theme="dark"]) .tabs { background: rgba(23, 23, 23, 0.035); box-shadow: none; }
  :root:not([data-theme="dark"]) .card-thumb { box-shadow: 0 0 0 1px var(--hair), 0 10px 24px -16px rgba(23, 23, 23, 0.35); }
  :root:not([data-theme="dark"]) .bd-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--pen) 16%, transparent), color-mix(in srgb, #8b5cf6 6%, transparent) 55%, transparent); }
}

/* Light mode is paper, not the dark theme flipped: a plain white panel, neutral hairlines and soft grey shadows. The
   aurora, the gradient ring round the composer and the blue glows belong to the dark theme only. */
:root[data-theme="light"] .panel { background: #ffffff; }
:root[data-theme="light"] .dcomp { border: 0; background: #ffffff; box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.10), 0 1px 2px rgba(23, 23, 23, 0.04), 0 12px 32px -20px rgba(23, 23, 23, 0.18); }
:root[data-theme="light"] .dcomp:focus-within { box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.16), 0 1px 2px rgba(23, 23, 23, 0.04), 0 12px 32px -20px rgba(23, 23, 23, 0.22); }
:root[data-theme="light"] .bd-glow { background: none; }
:root[data-theme="light"] .bd-pen { opacity: 0; }
:root[data-theme="light"] .shelf { background: #ffffff; }
:root[data-theme="light"] .snav > [aria-current="page"] .ic { color: var(--text); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .panel { background: #ffffff; }
  :root:not([data-theme="dark"]) .dcomp { border: 0; background: #ffffff; box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.10), 0 1px 2px rgba(23, 23, 23, 0.04), 0 12px 32px -20px rgba(23, 23, 23, 0.18); }
  :root:not([data-theme="dark"]) .dcomp:focus-within { box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.16), 0 1px 2px rgba(23, 23, 23, 0.04), 0 12px 32px -20px rgba(23, 23, 23, 0.22); }
  :root:not([data-theme="dark"]) .bd-glow { background: none; }
  :root:not([data-theme="dark"]) .bd-pen { opacity: 0; }
  :root:not([data-theme="dark"]) .shelf { background: #ffffff; }
  :root:not([data-theme="dark"]) .snav > [aria-current="page"] .ic { color: var(--text); }
}

/* the Library tab (public/library.js): the community library in the app, in community.css's cards and stage */
.snav-new { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding: 2px 7px 2px 5px; border-radius: var(--r-control); font-size: 11.5px; font-weight: 650; letter-spacing: 0.01em;
  color: #6aa5ff; background: color-mix(in srgb, #4f8cff 15%, transparent); }
.snav-new .ic { width: 12px; height: 12px; fill: currentColor; stroke: none; }
/* on a wrapper, not the icon: an svg doesn't animate on the compositor, so it was redrawn every frame */
.snav-new .tw { display: inline-flex; animation: lib-twinkle 2.6s var(--ease) infinite; will-change: scale, rotate, opacity; }
@keyframes lib-twinkle { 0%, 70%, 100% { scale: 1; rotate: 0deg; opacity: 1; } 80% { scale: 1.3; rotate: 18deg; opacity: 0.75; } 90% { scale: 0.9; rotate: -6deg; } }
.dash.is-collapsed .snav-new { display: none; }
:root[data-theme="light"] .snav-new { color: #1d4ed8; background: color-mix(in srgb, #1d4ed8 9%, transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .snav-new { color: #1d4ed8; background: color-mix(in srgb, #1d4ed8 9%, transparent); } }
@media (prefers-reduced-motion: reduce) { .snav-new .tw { animation: none; } }
.view-library { padding: 28px clamp(16px, 4vw, 48px) 64px; max-width: 1180px; margin: 0 auto; }
.lib-sub { margin: 6px 0 0; max-width: 60ch; font-size: 14.5px; color: var(--muted); }
.lib-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto; margin: 6px 0 22px; padding: 4px; border-radius: var(--r-control); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); scrollbar-width: none; }
.lib-tabs button { min-height: 36px; padding: 0 14px; border-radius: var(--r-control); font-size: 13.5px; font-weight: 500; color: var(--body); white-space: nowrap; transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.lib-tabs button:hover { color: var(--text); }
.lib-tabs button[aria-selected="true"] { background: var(--btn1-face); -webkit-backdrop-filter: var(--btn-glass); backdrop-filter: var(--btn-glass); color: var(--btn1-text); box-shadow: var(--btn1-ring); }
.lib-status:empty { display: none; }
.lib-body .cm-sort button { padding: 6px 12px; border-radius: var(--r-control); font-size: 13.5px; color: var(--muted); }
.lib-body .cm-sort button:hover { color: var(--text); }
.lib-body .cm-sort button[aria-pressed="true"] { color: var(--text); background: var(--raised); }
.lib-body button.cm-card-link { width: 100%; padding: 0; border: 0; font: inherit; text-align: left; cursor: pointer; }
.lib-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0 0 14px; padding: 0 12px 0 8px; border-radius: var(--r-control); font-size: 13.5px; color: var(--body); }
.lib-back:hover { color: var(--text); background: var(--raised); }
.lib-title { margin: 4px 0 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; color: var(--text); }
.view-library .cm-side { top: 16px; }
.view-library .cm-item { margin-bottom: 24px; }

/* ---------------- frosted glass on the home view's pill controls (base.css --btn1-* / --btn2-*) ----------------
   The tools pill, the platform picker, the shelf's tabs and the composer's + button: the second button's glass. The
   picked platform and the shelf's sliding pill: the main button's. */
:root .dash :is(.connect, .tabs, .dcomp-plus) {
  background: var(--btn2-face); -webkit-backdrop-filter: var(--btn-glass); backdrop-filter: var(--btn-glass); box-shadow: var(--btn2-ring); }
.dash :is(.connect, .dcomp-plus):hover { box-shadow: var(--btn2-ring-hover); }
.dash .tab-pill { background: var(--btn1-face); color: var(--btn1-text); box-shadow: var(--btn1-ring); }
.dash .tabs button[aria-selected="true"] { color: var(--btn1-text); }

/* inside a Run desk window (desk-embed.js): the window's own frame replaces the sidebar, and the panel fills it */
html.in-desk .app { grid-template-columns: minmax(0, 1fr); padding: 0; }
html.in-desk .side { display: none; }
html.in-desk .panel { border-radius: 0; }

/* the sidebar at 115%: everything in it (type, icons, rows, the trial card) grows together, and its column with it */
@media (min-width: 821px) {
  .dash { --side-w: 285px; }
  .dash.is-collapsed { --side-w: 83px; }
  .dash .side { zoom: 1.15; }
}

/* light mode selections: a soft grey fill like the sidebar's current row, not a blue glass pill; no glowing rim on the plan card */
:root[data-theme="light"] .dash .tab-pill { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="light"] .dash .tabs button[aria-selected="true"] { color: var(--text); }
:root[data-theme="light"] .beta::before { content: none; }
:root[data-theme="light"] .beta-go { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
:root[data-theme="light"] .beta-go:hover, :root[data-theme="light"] .beta:hover .beta-go { background: color-mix(in srgb, var(--text) 12%, transparent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .dash .tab-pill { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root:not([data-theme="dark"]) .dash .tabs button[aria-selected="true"] { color: var(--text); }
  :root:not([data-theme="dark"]) .beta::before { content: none; }
  :root:not([data-theme="dark"]) .beta-go { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
  :root:not([data-theme="dark"]) .beta-go:hover,   :root:not([data-theme="dark"]) .beta:hover .beta-go { background: color-mix(in srgb, var(--text) 12%, transparent); }
}

/* The sidebar floats over the main panel as frosted glass (apple-design sidebars.md: extend rich content beneath the
   sidebar). The panel runs the full width under it, and its scrolling content starts at the sidebar's edge, so only
   the backdrop shows through. On desktop the glass is clear (no tint, no shadow), only blurring what is behind it; the
   phone drawer keeps a tint because it sits over the page. Reduce Transparency gets a solid fill, More Contrast an edge. */
.dash { --side-glass: rgba(38, 38, 40, 0.58); --side-glass-solid: #222224; }
:root[data-theme="light"] .dash { --side-glass: rgba(244, 245, 248, 0.72); --side-glass-solid: #f4f5f8; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dash { --side-glass: rgba(244, 245, 248, 0.72); --side-glass-solid: #f4f5f8; } }
@media (min-width: 821px) {
  html:not(.in-desk) .dash .app { padding-left: 8px; }
  html:not(.in-desk) .dash .panel { grid-column: 1 / -1; grid-row: 1; }
  html:not(.in-desk) .dash .side { grid-column: 1; grid-row: 1; z-index: 3; margin: 7px 0 7px 7px; padding-top: 6px; padding-bottom: 6px; border-radius: 12px;
    background: none; -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: inset 0 0 0 1px var(--hair); }
  html:not(.in-desk) .dash .panel-scroll { padding-left: var(--side-w); transition: padding-left 300ms var(--ease-snap); }
  /* the backdrop reaches under the sidebar, and runs as far past the right edge, so its glow stays centred on the content */
  html:not(.in-desk) .dash .panel-backdrop .pb-par { right: calc(-1 * var(--side-w)); transition: right 300ms var(--ease-snap); }
}
@media (max-width: 820px) {
  .dash .side { background: var(--side-glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); }
}

/* With the account's own background on, every surface of the home screen is translucent glass over it (apple-design
   materials.md: let the content behind show through, blurred, so the picture stays the subject): the connectors pill,
   the composer, the platform picker, the projects shelf, the side cards, the plan card, the sidebar's current row and
   the menus. One fill (--glass), a stronger one where people type or read a list (--glass-hi, --glass-menu), one blur.
   Reduce Transparency and the Transparency setting make them solid. */
:root[data-bg] .dash { --glass: rgba(26, 26, 29, 0.34); --glass-hi: rgba(26, 26, 29, 0.48); --glass-menu: rgba(30, 30, 33, 0.74); --glass-blur: blur(26px) saturate(170%); }
:root[data-bg][data-theme="light"] .dash { --glass: rgba(255, 255, 255, 0.4); --glass-hi: rgba(255, 255, 255, 0.56); --glass-menu: rgba(255, 255, 255, 0.78); }
@media (prefers-color-scheme: light) { :root[data-bg]:not([data-theme="dark"]) .dash { --glass: rgba(255, 255, 255, 0.4); --glass-hi: rgba(255, 255, 255, 0.56); --glass-menu: rgba(255, 255, 255, 0.78); } }
:root[data-bg] .dash :is(.connect, .shelf, .rail-card, .beta-in) { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
:root[data-bg] .dash .connect:hover { background: var(--glass-hi); }
:root[data-bg] .dash .dcomp { background: var(--glass-hi); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
:root[data-bg] .dash .beta { background: transparent; }
:root[data-bg] .dash .snav > [aria-current="page"] { background: var(--glass-hi); }
:root[data-bg] .dash .pop.menu { background: var(--glass-menu); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* Collapsed on desktop: a compact frosted pill that hugs its icons, as on a laptop, instead of a full-height column.
   The sidebar button sits on the mark and shows when the pill is hovered or the button has keyboard focus. */
@media (min-width: 821px) {
  html:not(.in-desk) .dash.is-collapsed { --side-w: 66px; --rail-cell: 36px; --rail-gap: 4px; }
  html:not(.in-desk) .dash.is-collapsed .side { align-self: center; height: auto; max-height: calc(100% - 20px); margin: 0 0 0 10px; padding: 8px 6px; border-radius: 20px;
    background: var(--side-glass); box-shadow: var(--edge); }
  html:not(.in-desk) .dash.is-collapsed .side svg.ic { width: 19px; height: 19px; }
  html:not(.in-desk) .dash.is-collapsed .side-brand .mark { width: 20px; height: 23px; }
  html:not(.in-desk) .dash.is-collapsed :is(.ws-btn .ws-av, .acct-btn .acct-av) { width: 26px; height: 26px; font-size: 12px; }
  html:not(.in-desk) .dash.is-collapsed .acct { margin-top: 0; }
  html:not(.in-desk) .dash.is-collapsed .snav > [aria-current="page"] { background: color-mix(in srgb, var(--text) 9%, transparent); box-shadow: none; }
  html:not(.in-desk) .dash.is-collapsed .side-top { position: relative; }
  html:not(.in-desk) .dash.is-collapsed .side-top .icon-btn { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; transition: opacity var(--t-1) var(--ease); }
  html:not(.in-desk) .dash.is-collapsed .side-brand { transition: opacity var(--t-1) var(--ease); }
  html:not(.in-desk) .dash.is-collapsed .side:hover .side-top .icon-btn, html:not(.in-desk) .dash.is-collapsed .side-top .icon-btn:focus-visible { opacity: 1; }
  html:not(.in-desk) .dash.is-collapsed .side:hover .side-brand, html:not(.in-desk) .dash.is-collapsed .side-top:has(.icon-btn:focus-visible) .side-brand { opacity: 0; }
}

/* ...and it reads as glass, not a milky fill (apple-design liquid-glass.md: the material blurs and lifts what's behind
   it, and light catches its edge). Each surface is mostly clear, with a sheen that is brightest at the top left, more
   saturation from the picture behind, a light top edge (and a fainter bottom one) and a soft inner glow where a pane of glass catches light, and a
   soft shadow under it. No outline: the edge light is an inset highlight along the top and bottom only. Where people type or read
   a list it stays a little fuller (--glass-hi, --glass-menu), and Reduce Transparency still makes all of it solid. */
:root[data-bg] .dash {
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.06)), rgba(20, 20, 24, 0.2);
  --glass-hi: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.07)), rgba(20, 20, 24, 0.34);
  --glass-focus: linear-gradient(150deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.09)), rgba(20, 20, 24, 0.4);
  --glass-blur: blur(18px) saturate(190%) brightness(1.04);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(255, 255, 255, 0.07), inset 0 0 22px rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.14), 0 22px 46px -22px rgba(0, 0, 0, 0.6); }
:root[data-bg][data-theme="light"] .dash {
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.2));
  --glass-hi: linear-gradient(150deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.32));
  --glass-focus: linear-gradient(150deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.4));
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.4), inset 0 0 22px rgba(255, 255, 255, 0.22), 0 2px 6px rgba(30, 30, 30, 0.06), 0 22px 46px -24px rgba(30, 30, 30, 0.32); }
@media (prefers-color-scheme: light) { :root[data-bg]:not([data-theme="dark"]) .dash {
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.2));
  --glass-hi: linear-gradient(150deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.32));
  --glass-focus: linear-gradient(150deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.4));
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.4), inset 0 0 22px rgba(255, 255, 255, 0.22), 0 2px 6px rgba(30, 30, 30, 0.06), 0 22px 46px -24px rgba(30, 30, 30, 0.32); } }
:root[data-bg] .dash :is(.connect, .shelf, .rail-card, .beta-in, .dcomp) { box-shadow: var(--glass-edge); }
:root[data-bg] .dash .dcomp:focus-within { background: var(--glass-focus); }
@media (min-width: 821px) {
  :root[data-bg]:not(.in-desk) .dash.is-collapsed .side { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge); }
}
/* after the theme rules above, so the in-app Transparency setting still wins in light mode too */

/* Collapsed on desktop, the pill isn't zoomed: Chrome draws a backdrop-filter on a zoomed element in the wrong place
   (a dark band beside and through the pill), so here the sidebar's 115% is written out in its sizes instead. */
@media (min-width: 821px) {
  html:not(.in-desk) .dash.is-collapsed { --rail-cell: 41px; --rail-gap: 5px; }
  html:not(.in-desk) .dash.is-collapsed .side { zoom: 1; margin: 0 0 0 12px; padding: 9px 7px; border-radius: 23px; }
  html:not(.in-desk) .dash.is-collapsed .side svg.ic { width: 22px; height: 22px; }
  html:not(.in-desk) .dash.is-collapsed .side-brand .mark { width: 23px; height: 26px; }
  html:not(.in-desk) .dash.is-collapsed :is(.ws-btn .ws-av, .acct-btn .acct-av) { width: 30px; height: 30px; font-size: 14px; }
  html:not(.in-desk) .dash.is-collapsed .snav .hl { border-radius: 16px; }
}

/* Frosted: a heavier blur, a denser frost and a faint grain, so the glass diffuses what's behind it instead of only
   tinting it. The grain is an inline SVG noise tile (white, 6% at most). Reduce Transparency still makes it solid. */
:root[data-bg] .dash {
  --glass-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px;
  --glass: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08)), rgba(24, 24, 28, 0.36);
  --glass-hi: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.09)), rgba(24, 24, 28, 0.46);
  --glass-focus: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.1)), rgba(24, 24, 28, 0.52);
  --glass-blur: blur(34px) saturate(165%) brightness(1.04); }
:root[data-bg][data-theme="light"] .dash {
  --glass: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0.44));
  --glass-hi: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0.54));
  --glass-focus: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.54) 50%, rgba(255, 255, 255, 0.62));
  --glass-blur: blur(34px) saturate(165%) brightness(1.08); }
@media (prefers-color-scheme: light) { :root[data-bg]:not([data-theme="dark"]) .dash {
  --glass: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0.44));
  --glass-hi: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0.54));
  --glass-focus: var(--glass-grain), linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.54) 50%, rgba(255, 255, 255, 0.62));
  --glass-blur: blur(34px) saturate(165%) brightness(1.08); } }

/* Every page past Home sits on a frosted sheet over the picture, so its text never reads straight off the photo (the
   person's report of the Grow page: headings and copy on bare sky and trees). No backdrop-filter here: the views are
   zoomed (0.945) and Chrome draws a backdrop-filter on a zoomed element in the wrong place, so the sheet is a fuller
   frost of its own instead. */
:root[data-bg] .dash { --glass-read: rgba(22, 22, 25, 0.8); }
:root[data-bg][data-theme="light"] .dash { --glass-read: rgba(250, 250, 252, 0.84); }
@media (prefers-color-scheme: light) { :root[data-bg]:not([data-theme="dark"]) .dash { --glass-read: rgba(250, 250, 252, 0.84); } }
:root[data-bg] .dash .panel-scroll > .view:not(.view-home) { width: calc(100% - 32px); margin: 16px auto 24px; border-radius: 28px; background: var(--glass-read); box-shadow: var(--glass-edge, var(--edge)); }

/* the shelf's menu: the button names what's shown; the menu springs down from it (scale and drop with overshoot), its
   items following one after another, and the chevron turns on the same spring. Closing is quick and plain. Picking
   swaps the cards, which drop in on the spring too. Reduced motion: it appears and goes, nothing moves. */
.shelf-pick { position: relative; }
.pick-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 16px; border-radius: var(--r-control); font-size: 13.3px; font-weight: 500; color: var(--text); background: var(--seg-on); transition: background-color 160ms var(--ease); }
/* the shelf's menu button: a grey pill, not the white main button (the owner, 2026-11-27) */
.dash .pick-btn { background: var(--c-sel, #333333); color: var(--text); }
.dash .pick-btn:not(:disabled):hover { background: color-mix(in srgb, var(--text) 16%, var(--c-sel, #333333)); }
.pick-btn .ic { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 520ms cubic-bezier(.34, 1.8, .5, 1); }
.shelf-pick.is-open .pick-btn .ic { transform: rotate(-90deg); }
.pick-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.pick-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 210px; display: grid; gap: 2px; padding: 6px; border-radius: 18px; background: var(--panel); box-shadow: 0 18px 44px rgba(0, 0, 0, .28), 0 3px 10px rgba(0, 0, 0, .14);
  transform-origin: 24px 0; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.88);
  transition: opacity 140ms var(--ease), transform 160ms cubic-bezier(.4, 0, 1, 1), visibility 0s linear 160ms; }
.shelf-pick.is-open .pick-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms var(--ease), transform 560ms cubic-bezier(.34, 1.56, .64, 1), visibility 0s; }
.pick-menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 12px; font-size: 14px; color: var(--text); text-align: left; }
.pick-menu button:hover, .pick-menu button:focus-visible { background: color-mix(in srgb, var(--text) 8%, transparent); outline: none; }
.pick-tick { width: 16px; height: 16px; opacity: 0; }
.pick-menu [aria-checked="true"] .pick-tick { opacity: 1; }
.shelf-pick.is-open .pick-menu button { animation: pick-item 480ms cubic-bezier(.34, 1.56, .64, 1) both; }
.shelf-pick.is-open .pick-menu button:nth-child(2) { animation-delay: 50ms; }
@keyframes pick-item { from { opacity: 0; transform: translateY(-8px); } }
.shelf .card { animation: card-drop 640ms cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-drop { from { opacity: 0; transform: translateY(-18px) scale(.96); } 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pick-menu, .shelf-pick.is-open .pick-menu, .pick-btn .ic { transition: none; }
  .shelf-pick.is-open .pick-menu button, .shelf .card { animation: none; }
}
:root[data-theme="light"] .dash .pick-btn { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dash .pick-btn { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); } }

/* transferable ownership (public/transfer.js): the dialog that hands a project to another account, and the notice
   for one handed to this account. The dialog is the VR name dialog's (.vrname); only what differs is here. */
.xfer { width: min(440px, calc(100% - 32px)); }
.xfer-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--text); }
.xfer-notes { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.xfer-notes li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.xfer-notes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.xfer-err { margin: 12px 0 0 !important; font-size: 13px !important; color: #ff8f8f !important; }
.xfer-err[hidden], #xfer-new[hidden], #xfer-open[hidden] { display: none; }
#xfer-open p { margin-bottom: 0; }
/* one action at a time: Send while there's no offer out, Withdraw while there is */
.xfer:has(#xfer-new[hidden]) #xfer-send, .xfer:has(#xfer-open[hidden]) .xfer-withdraw { display: none; }
.xfer-withdraw { background: color-mix(in srgb, #ff5a5a 16%, transparent); color: #ffb3b3; }
.xfer-withdraw:hover { background: color-mix(in srgb, #ff5a5a 24%, transparent); }
.xfer .btn { min-height: 36px; }
@media (pointer: coarse) { .xfer .btn { min-height: 44px; } }
.xfer-in { position: sticky; top: 12px; z-index: 6; width: min(820px, calc(100% - 32px)); margin: 12px auto 0; }
.xfer-in[hidden] { display: none; }
.xfer-in ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.xfer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px 14px 18px; border-radius: 16px; background: var(--pop-bg);
  box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -22px rgba(0, 0, 0, 0.8); }
.xfer-what { display: grid; gap: 2px; min-width: 0; flex: 1 1 320px; }
.xfer-what b { font-size: 14.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.xfer-what span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.xfer-acts { display: flex; gap: 8px; }
@media (pointer: coarse) { .xfer-acts .btn { min-height: 44px; } }

/* the live credits meter (public/credits-live.js): plain text in the panel's top right, "2,571 credits". The number counts
   down as builds spend and up when credits are added, tinted for a moment in the direction it moved; no pill, no icon */
.cr-live { position: absolute; z-index: 6; top: 18px; right: 20px; padding: 4px 2px; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 13.5px; line-height: 1; cursor: pointer; }
.cr-live[hidden] { display: none; }
.cr-live:hover .cr-live-u { color: var(--body); }
.cr-live:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.cr-live-n { font-weight: 600; color: var(--text); transition: color 400ms var(--ease); }
.cr-live[data-move="down"] .cr-live-n { color: var(--warn); }
.cr-live[data-move="up"] .cr-live-n { color: var(--ok); }
@media (max-width: 820px) { .cr-live { top: max(16px, calc(env(safe-area-inset-top) + 8px)); right: 14px; } }
/* the phone app (public/phone-app.js) has its search button in that corner: the credits sit just left of it */
body.ph .cr-live { top: calc(env(safe-area-inset-top, 0px) + 15px); right: calc(max(6px, env(safe-area-inset-right, 0px)) + 52px); }
@media (prefers-reduced-motion: reduce) { .cr-live-n { transition: none; } }
