/* Startups and Artifacts (public/startups.js, public/artifacts.js; the owner, 2026-11-18), like a chat assistant's
   Projects and artifacts. Dark only, on the dashboard's own tokens (calm.css): surfaces told apart by fill, never by
   an outline; flat pill buttons; Plus Jakarta Sans. One column first; two columns from 1000px. Phone-only touches are
   in phone.css. */

.dash .st-tools, .dash .art-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.dash .st-search { flex: 1 1 260px; max-width: 420px; width: 100%; height: 40px; border-radius: 9999px; background: var(--c-card); box-shadow: none; }
.dash .st-search input { width: 100%; font-size: 14px; }
.dash .st-search input::-webkit-search-cancel-button { filter: invert(0.7); }
.dash .st-status:empty, .dash .st-status:empty + * { margin-top: 0; }
.dash .st-status { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.dash .st-h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.dash .st-sub, .dash .st-quiet { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.dash .st-none { color: var(--muted); }

/* Startups laid out like a chat assistant's Projects page (the owner, 2026-11-18, with a screenshot): one centred column
   about 960px wide, the title with search, sort and a small near-white New startup on its row, then Pinned and Other
   startups, two short cards a row. A card is a filled surface (no outline): a 32px tile with the startup's icon in its
   colour, its name and the date of its last activity; its … menu shows on hover or focus (always on touch screens). */
.dash .view-projects { max-width: 960px; margin-inline: auto; padding-top: 44px; }
.dash .view-projects .st-head-row { margin-bottom: 36px; }
.dash .st-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.dash .st-head-row :is(h1, .view-h) { margin: 0; font: 650 28px/1.2 var(--font); letter-spacing: -0.01em; color: var(--text); }
.dash .st-head-tools { display: flex; align-items: center; gap: 6px; }
.dash .view-projects .st-tool { width: 36px; height: 36px; border-radius: 9999px; color: var(--body); box-shadow: none; }
.dash .st-tool:hover, .dash .st-tool[aria-expanded="true"] { background: var(--c-card); color: var(--text); }
.dash .st-tool .ic { width: 18px; height: 18px; }
.dash .st-new.btn { min-height: 32px; margin-left: 6px; padding: 0 14px; border-radius: 9999px; background: var(--c-go); color: var(--c-on-go); font-size: 13.5px; font-weight: 550; }
.dash .st-new.btn:hover { background: #ffffff; }
.dash .st-sort { position: relative; }
.dash .st-sort-menu { right: 0; left: auto; top: calc(100% + 6px); min-width: 200px; }
.dash .st-search-row { margin: -6px 0 18px; }
.dash .st-search-row[hidden] { display: none; }
.dash .view-projects .st-label { margin: 26px 0 10px; color: var(--muted); font-size: 13.5px; font-weight: 500; letter-spacing: 0; }
.dash .view-projects .st-sec:first-child .st-label { margin-top: 0; }
.dash .st-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .dash .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash .st-card { position: relative; animation: st-in 220ms var(--ease, ease) both; animation-delay: calc(var(--i, 0) * 18ms); list-style: none; }
.dash .st-card-hit { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 52px 0 14px; border-radius: 12px; background: var(--c-card); color: var(--text); text-decoration: none; transition: background-color 140ms var(--ease, ease); }
.dash .st-card-hit:hover { background: var(--c-hover); }
.dash .st-card-hit:focus-visible { outline: 2px solid var(--c-go); outline-offset: 2px; }
.dash .st-card-words { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash .st-card-name { font-size: 14.5px; font-weight: 550; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .st-card-date { color: var(--muted); font-size: 12.5px; }
/* plain icons, as on the reference: the app-wide faint button outline (calm.css) is left off these two kinds only */
.dash .view-projects :is(.st-tool, .st-card-more):not(:focus-visible) { outline: 0; }
/* phone.css gives every icon button position: relative; these sit inside their card */
.dash .st-card > .st-card-more { position: absolute; top: 50%; right: 12px; margin: 0; translate: 0 -50%; width: 32px; height: 32px; border-radius: 9999px; opacity: 0; transition: opacity 120ms; }
.dash .st-card:is(:hover, :focus-within) > .st-card-more, .dash .st-card > .st-card-more[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .dash .st-card > .st-card-more { opacity: 1; } }
.dash .st-card .rename { width: 100%; min-width: 0; padding: 2px 6px; border: 0; border-radius: 6px; background: var(--c-well); color: var(--text); font: 550 14.5px var(--font); }

/* a startup's tile: grey, or faintly tinted in its own colour with the icon in that colour */
.dash .st-tile { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c-hover); color: var(--body); }
.dash .st-card-hit:hover .st-tile:not([data-tint]) { background: var(--c-sel); }
.dash .st-tile .ic { width: 17px; height: 17px; }
.dash [data-tint="green"] { --tint: #4ade80; } .dash [data-tint="teal"] { --tint: #2dd4bf; } .dash [data-tint="purple"] { --tint: #a78bfa; }
.dash [data-tint="pink"] { --tint: #f472b6; } .dash [data-tint="orange"] { --tint: #fb923c; } .dash [data-tint="yellow"] { --tint: #facc15; } .dash [data-tint="red"] { --tint: #f87171; }
.dash .st-tile[data-tint] { background: color-mix(in srgb, var(--tint) 16%, var(--c-card)); color: var(--tint); }
.dash .st-title-row { display: flex; align-items: center; gap: 12px; }
.dash .st-title-row .st-tile { width: 36px; height: 36px; border-radius: 10px; }

/* Edit details: the icon and colour pickers */
.dash .st-look { margin: 0; padding: 0; border: 0; }
.dash .st-look .st-label { margin: 14px 0 8px; padding: 0; color: var(--body); font-size: 13px; }
.dash .st-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.dash .st-tints { display: flex; flex-wrap: wrap; gap: 8px; }
.dash :is(.st-icon-pick, .st-tint-pick) { position: relative; display: grid; place-items: center; cursor: pointer; }
.dash :is(.st-icon-pick, .st-tint-pick) input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dash .st-icon-pick .st-tile { width: 40px; height: 40px; }
.dash .st-swatch { display: block; width: 28px; height: 28px; border-radius: 9999px; background: var(--c-sel); }
.dash .st-swatch[data-tint] { background: var(--tint); }
.dash :is(.st-icon-pick, .st-tint-pick) input:checked + span { box-shadow: 0 0 0 2px var(--c-pop), 0 0 0 4px var(--text); }
.dash :is(.st-icon-pick, .st-tint-pick) input:focus-visible + span { outline: 2px solid var(--c-go); outline-offset: 4px; }

.dash .st-nomatch { margin: 8px 0 0; }
.dash .st-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; border-radius: 18px; background: var(--c-card); list-style: none; }
.dash .st-empty :is(h1, h2) { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }
.dash .st-empty p { margin: 0 0 6px; max-width: 52ch; color: var(--body); font-size: 14px; line-height: 1.55; }
.dash .st-empty-sm { padding: 18px 20px; }
.dash .st-loading { height: 64px; border-radius: 12px; background: var(--c-card); list-style: none; animation: st-pulse 1.4s ease-in-out infinite; }
.dash .st-loading-wide { height: 220px; margin-top: 18px; }
.dash .st-loose { margin-top: 0; }
.dash .view-projects .st-loose .st-label { margin-top: 26px; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes st-pulse { 50% { opacity: 0.55; } }

/* one startup's page */
.dash .view-startup { padding-bottom: 48px; }
.dash .st-page { max-width: 1180px; }
.dash .st-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0 0 10px -8px; padding: 0 12px 0 8px; border-radius: 9999px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.dash .st-back:hover { background: var(--c-card); color: var(--text); }
.dash .st-back .ic { width: 16px; height: 16px; }
.dash .st-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.dash .st-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dash .st-title { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere; }
.dash .st-desc { margin: 8px 0 0; max-width: 64ch; color: var(--body); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }

/* the box: the dashboard's own, one card that grows */
.dash .st-box { margin: 22px 0 30px; padding: 14px 14px 10px 18px; border-radius: 20px; background: var(--c-card); }
.dash .st-box:focus-within { background: var(--c-hover); }
.dash .st-box textarea { display: block; width: 100%; min-height: 28px; max-height: 220px; padding: 4px 0; border: 0; resize: none; background: none; color: var(--text); font: 400 15px/1.5 var(--font); outline: none; }
.dash .st-box textarea::placeholder { color: var(--muted); }
.dash .st-box-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.dash .st-box-note { color: var(--muted); font-size: 12.5px; }
.dash .st-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; background: var(--c-go); color: var(--c-on-go); transition: opacity 120ms; }
.dash .st-send:disabled { background: var(--c-off); color: var(--c-off-text); cursor: default; }
.dash .st-send:focus-visible { outline: 2px solid var(--c-go); outline-offset: 2px; }
.dash .st-send .ic { width: 18px; height: 18px; }

.dash .st-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 8px; }
.dash .st-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.dash .st-rows li { position: relative; display: flex; align-items: center; }
.dash .st-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 48px 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.dash .st-row:hover { background: var(--c-card); }
.dash .st-row:focus-visible { outline: 2px solid var(--c-go); outline-offset: -2px; }
.dash .st-row-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-card); color: var(--body); }
.dash .st-row:hover .st-row-ic { background: var(--c-sel); }
.dash .st-row-words { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash .st-row-words b { font-size: 14.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .st-row-words span { color: var(--muted); font-size: 12.5px; }
.dash .st-rows .card-more { position: absolute; right: 8px; }

/* the side: instructions and knowledge, each a panel told apart by fill */
.dash .st-side { display: flex; flex-direction: column; gap: 12px; }
.dash .st-panel { padding: 16px 16px 14px; border-radius: 18px; background: var(--c-card); }
.dash .st-ins { margin: 0; color: var(--body); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.dash .st-add { position: relative; }
.dash .st-add .btn .ic { width: 15px; height: 15px; }
.dash .st-add-menu { right: 0; left: auto; top: calc(100% + 6px); min-width: 210px; }
.dash .st-meter { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; color: var(--muted); font-size: 12.5px; }
.dash .st-bar { display: block; height: 6px; border-radius: 9999px; background: var(--c-quiet); overflow: hidden; }
.dash .st-bar i { display: block; height: 100%; border-radius: inherit; background: var(--body); }
.dash .st-know { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.dash .st-know li { position: relative; display: flex; align-items: center; }
.dash .st-k { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 44px 6px 6px; border-radius: 10px; text-align: left; color: var(--text); }
.dash .st-k:hover { background: var(--c-hover); }
.dash .st-k:focus-visible { outline: 2px solid var(--c-go); outline-offset: -2px; }
.dash .st-k-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c-quiet); color: var(--body); }
.dash .st-k-ic .ic { width: 16px; height: 16px; }
.dash .st-k-words { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dash .st-k-words b { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .st-k-words span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .st-k-del { position: absolute; right: 4px; }

@media (min-width: 1000px) {
  .dash .st-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
  .dash .st-side { position: sticky; top: 16px; }
}

/* dialogs: the dashboard's own (.vrname), with fields */
.dash .st-dlg form { display: flex; flex-direction: column; }
.dash .st-dlg h2 { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.dash .st-dlg-sub { margin: 6px 0 4px; color: var(--body); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.dash .st-label { margin: 14px 0 6px; color: var(--body); font-size: 13px; font-weight: 500; }
.dash .st-dlg :is(input:not([type="radio"]):not([type="checkbox"]), textarea) { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--c-well); color: var(--text); font: 400 14.5px/1.5 var(--font); outline: none; resize: vertical; }
.dash .st-dlg :is(input, textarea):focus-visible { box-shadow: inset 0 0 0 2px var(--c-ring-2); }
.dash .st-dlg .vrname-row { margin-top: 18px; }
.dash .st-count { margin: 6px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.dash .st-dlg.st-dlg-wide { width: min(720px, calc(100% - 32px)); }
.dash .st-k-text { max-height: min(60vh, 520px); margin: 14px 0 0; padding: 14px; overflow: auto; border-radius: 12px; background: var(--c-well); color: var(--body); font: 400 13px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.dash .st-picks { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; border: 0; }
.dash .st-picks-scroll { max-height: 320px; overflow: auto; }
.dash .st-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--text); font-size: 14px; cursor: pointer; }
.dash .st-pick:hover { background: var(--c-hover); }
.dash .st-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-go); }
.dash .st-pick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash .st-pick small { color: var(--muted); font-size: 12px; }

/* Artifacts */
.dash .art-tabs { margin: 0 0 16px; }
.dash #lib-share[hidden], .dash .art-pane[hidden] { display: none; }
.dash .art-sel select { height: 40px; padding: 0 34px 0 14px; border: 0; border-radius: 9999px; background: var(--c-card); color: var(--text); font: 500 13.5px var(--font); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a3a3a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.dash .art-sel select:focus-visible { outline: 2px solid var(--c-go); outline-offset: 2px; }
.dash .art-kinds { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.dash .art-kind { min-height: 34px; padding: 0 14px; border-radius: 9999px; background: var(--c-card); color: var(--body); font-size: 13.5px; font-weight: 500; }
.dash .art-kind:hover { background: var(--c-hover); color: var(--text); }
.dash .art-kind[aria-checked="true"] { background: var(--c-go); color: var(--c-on-go); }
.dash .art-kind:focus-visible { outline: 2px solid var(--c-go); outline-offset: 2px; }
.dash .art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dash .art-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--c-card); overflow: hidden; animation: st-in 260ms var(--ease, ease) both; animation-delay: calc(var(--i, 0) * 20ms); }
.dash .art-card.card { box-shadow: none; padding: 0; }
.dash .art-card:hover { background: var(--c-hover); }
.dash .art-hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.dash .art-hit:focus-visible { outline: 2px solid var(--c-go); outline-offset: 2px; }
.dash .art-thumb { position: relative; display: block; aspect-ratio: 16 / 10; margin: 6px 6px 0; border-radius: 11px; background: var(--c-well); overflow: hidden; }
.dash .art-card .card-thumb.art-thumb { height: auto; }
.dash .art-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-off-text); }
.dash .art-ph .ic { width: 26px; height: 26px; }
.dash .art-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash .art-thumb-text { padding: 14px 16px; color: var(--body); font-size: 12.5px; line-height: 1.55; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.dash .art-thumb-text.is-code { font: 400 11.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; }
.dash .art-foot { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 13px; }
.dash .art-foot b { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .art-foot span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .art-loading { height: 210px; }

/* the viewer: a large sheet over the gallery, one artifact at a time */
.dash .art-view { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: var(--pop-bg, var(--c-pop)); color: var(--text); }
.dash .art-view::backdrop { background: rgba(0, 0, 0, 0.6); }
.dash .art-view[open] { animation: vrname-in 160ms var(--ease, ease); }
.dash .art-v { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.dash .art-v-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px 22px; }
.dash .art-v-head h2 { margin: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.dash .art-v-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dash .art-v-head p a { color: var(--body); text-underline-offset: 3px; }
.dash .art-v-body { flex: 1; min-height: 0; overflow: auto; padding: 0 22px; }
.dash .art-v-live { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--c-well); box-shadow: none; padding: 0; }
.dash .art-v-live .card-thumb { height: 100%; aspect-ratio: auto; }
.dash .art-v-img { display: block; max-width: 100%; max-height: 70dvh; margin: 0 auto; border-radius: 12px; }
.dash .art-v-note { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.55; }
.dash .art-doc { max-width: 72ch; padding: 4px 0 12px; color: var(--body); font-size: 15px; line-height: 1.65; outline: none; }
.dash .art-doc h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 600; color: var(--text); }
.dash .art-doc h4 { margin: 16px 0 4px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.dash .art-doc p { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dash .art-doc ul { margin: 0 0 12px; padding-left: 22px; }
.dash .art-doc pre { margin: 0 0 14px; padding: 14px 16px; overflow: auto; border-radius: 12px; background: var(--c-well); font: 400 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); }
.dash .art-v-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 18px; }
.dash .art-v-acts .btn .ic { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .dash .st-card, .dash .art-card, .dash .st-loading, .dash .art-view[open] { animation: none; }
}
