/* CONE V2 screens (owner's mockups 01-03, 2026-11-10): the signed-in app only (app.html loads it after cone-ds.css),
   so public pages don't download it. */
/* ===================== V2 screens (owner's phone mockup 03, 2026-11-10) =====================
   Shared pieces from js/v2.js: segmented tabs, the glowing balance card with a sparkline, coloured icon-square tiles,
   list rows, status pills, bars and rings. Every figure they show is the person's own. */
.v2-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid rgba(255, 122, 26, .26); background: rgba(0, 0, 0, .35); overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
.v2-tabs::-webkit-scrollbar { display: none; }
.v2-tabs a, .v2-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 10px; background: none; color: var(--ds-text-2); font: 600 .86rem var(--ds-font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.v2-tabs a:hover, .v2-tabs button:hover { color: var(--ds-text); }
.v2-tabs a[aria-current=page], .v2-tabs button[aria-pressed=true], .v2-tabs button[aria-selected=true] { background: linear-gradient(180deg, #ff8a2b, #ff6a10); color: #170b02; box-shadow: 0 4px 16px rgba(255, 122, 26, .40); }
.v2-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255, 140, 40, .45);
  background: radial-gradient(260px 140px at 85% 30%, rgba(80, 220, 120, .10), transparent 70%), radial-gradient(300px 160px at 0% 0%, rgba(255, 120, 25, .20), transparent 70%), linear-gradient(180deg, #1a110a, #0c0806); box-shadow: 0 0 28px rgba(255, 110, 20, .14); }
.v2-hero-label { margin: 0; color: var(--ds-text-2); font-size: .86rem; font-weight: 600; }
.v2-hero-value { margin: 2px 0 0; font: 800 clamp(1.9rem, 7vw, 2.4rem) var(--ds-font-display); letter-spacing: -.01em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.v2-hero-value.neg { color: var(--ds-bad); }
.v2-hero-change { margin: 6px 0 0; font-size: .84rem; font-weight: 700; color: var(--ds-text-2); }
.v2-hero-change.pos { color: var(--ds-good); } .v2-hero-change.neg { color: var(--ds-bad); }
.v2-hero > :not(.v2-hero-text):not(.v2-hero-spark) { grid-column: 1 / -1; }
.v2-spark .v2-spark-line { stroke: var(--ds-good); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(79, 209, 139, .55)); }
.v2-spark .v2-spark-fill { fill: rgba(79, 209, 139, .10); }
.v2-spark.down .v2-spark-line { stroke: var(--ds-bad); filter: drop-shadow(0 0 6px rgba(255, 107, 94, .5)); } .v2-spark.down .v2-spark-fill { fill: rgba(255, 107, 94, .08); }
.v2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.v2-tile { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 74px; padding: 10px 4px; border-radius: 14px; border: 1px solid rgba(255, 122, 26, .30); background: linear-gradient(180deg, #1a110a, #0d0907); color: var(--ds-text); font: 600 .76rem var(--ds-font); text-align: center; text-decoration: none; cursor: pointer; line-height: 1.15; }
.v2-tile:hover, .v2-tile:focus-visible { border-color: rgba(255, 150, 50, .75); box-shadow: 0 0 18px rgba(255, 110, 20, .18); outline: none; }
.v2-sq { --tone: #ff7a1a; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; color: color-mix(in srgb, var(--tone) 60%, #fff);
  background: color-mix(in srgb, var(--tone) 22%, #0b0806); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 22%, transparent); }
.v2-tile .v2-sq { width: 36px; height: 36px; }
.v2-card { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--v2-edge, rgba(255, 122, 26, .3)); background: var(--v2-card, #120c08); box-shadow: var(--v2-glow, none); margin: 0 0 12px; }
.v2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.v2-card-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.v2-card-head a { font-size: .8rem; font-weight: 700; color: var(--ds-accent-2); text-decoration: none; }
.v2-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v2-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .2)); color: var(--ds-text); text-decoration: none; text-align: left; font: inherit; cursor: default; }
a.v2-row, button.v2-row { cursor: pointer; }
a.v2-row:hover, button.v2-row:hover, a.v2-row:focus-visible, button.v2-row:focus-visible { border-color: rgba(255, 150, 50, .6); outline: none; }
.v2-row-text { flex: 1; min-width: 0; }
.v2-row-text b { display: block; font-size: .95rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-row-text small { display: block; color: var(--ds-text-2); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-row-go { color: var(--ds-text-3); display: inline-flex; }
.v2-row-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.v2-row .v2-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-row .v2-val small { display: block; font-size: .74rem; font-weight: 700; }
.v2-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 700 .72rem var(--ds-font); white-space: nowrap; border: 1px solid; }
.v2-pill.good { color: #6ee7a1; border-color: rgba(79, 209, 139, .55); background: rgba(79, 209, 139, .12); }
.v2-pill.idle { color: var(--ds-text-2); border-color: var(--ds-line-3); background: rgba(255, 255, 255, .04); }
.v2-pill.warn { color: var(--ds-warn); border-color: rgba(255, 196, 90, .5); background: rgba(255, 196, 90, .1); }
.v2-pill.bad { color: #ff8f84; border-color: rgba(255, 107, 94, .5); background: rgba(255, 107, 94, .1); }
.v2-pill.info { color: var(--ds-accent-2); border-color: rgba(255, 140, 40, .55); background: rgba(255, 122, 26, .14); }
.v2-bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.v2-bars li { display: grid; grid-template-columns: auto minmax(70px, 1fr) minmax(60px, 1.2fr) 44px; align-items: center; gap: 10px; font-size: .86rem; }
.v2-bars-ico { color: var(--ds-accent); display: inline-flex; }
.v2-bars-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-bar { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.v2-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff6a10, #ffb04a); box-shadow: 0 0 10px rgba(255, 122, 26, .5); }
.v2-bars-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-ring .v2-ring-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 5; }
.v2-ring .v2-ring-fill { fill: none; stroke: var(--ds-accent); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 122, 26, .6)); }
.v2-add { display: flex !important; width: 100%; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 12px; border-radius: 12px !important; font-size: .95rem; }
.v2-split { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 10px; }
.v2-split .v2-fig { display: flex; align-items: center; gap: 8px; }
.v2-split .v2-fig b { display: block; font: 800 1.15rem var(--ds-font-display); font-variant-numeric: tabular-nums; }
.v2-split .v2-fig small { color: var(--ds-text-2); font-size: .76rem; }
.v2-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.v2-dot.good { background: var(--ds-good); box-shadow: 0 0 8px rgba(79, 209, 139, .7); } .v2-dot.bad { background: var(--ds-bad); box-shadow: 0 0 8px rgba(255, 107, 94, .7); }
.v2-empty { color: var(--ds-text-2); font-size: .86rem; margin: 0; }
.v2-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; align-items: start; }
.v2-grid2 > .v2-card { margin: 0; }
/* Desktop: the same pieces, denser and side by side (owner's desktop mockups). */
@media (min-width: 821px) {
  .v2-tabs { display: inline-flex; max-width: 100%; }
  .v2-tabs a, .v2-tabs button { flex: 0 0 auto; padding: 6px 18px; }
  .v2-tiles.wide { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .v2-top { display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 12px; }
  .v2-top > * { margin: 0 !important; }
  .v2-top .v2-tiles { align-content: stretch; }
  .v2-top .v2-tiles .v2-tile { min-height: 0; }
}
@media (max-width: 820px) {
  .v2-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .v2-head > div > p { display: none; }
  .v2-head { margin: 0 !important; min-height: 0; }
  .v2-head:not(:has(.row)) { display: contents; }
}
.money-hero-more { display: grid; gap: 6px; justify-items: start; margin-top: 4px; }
.money-hero-more p { margin: 0; }
.money-month-line { margin: 10px 0 0; }
.money-overview .v2-card:last-child { margin-bottom: 0; }
.ws-tabs.v2-tabs { margin: 10px clamp(16px, 3vw, 36px) 0; max-width: none; }
@media (max-width: 820px) { .ws-tabs.v2-tabs { margin: 10px 16px 0; width: auto; } .ws-tabs.v2-tabs a { flex: 1 0 auto; } }
.build-row .v2-row-text .build-row-bar { margin-top: 7px; max-width: 260px; height: 5px; }
.build-list { margin-bottom: 14px; }
@media (min-width: 821px) { .build-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .v2-add { width: auto; display: inline-flex !important; padding-inline: 22px; } }
@media (max-width: 820px) {
  .dest-projects .v2-head { display: flex; justify-content: flex-end; margin: 0 0 8px !important; }
  .dest-projects .v2-head h2.sec-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dest-projects .v2-head .btn { min-height: 32px; padding: 5px 12px; font-size: .8rem; }
}
/* My Space (owner's phone mockup): profile header with the CONE avatar, name, plan badge, member since, Edit Profile;
   then rows with coloured icon squares. The hub rows are shared with every list of links in the app. */
.shell .me-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px; }
.me-avatar-ring { position: relative; display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 150, 50, .8);
  background: radial-gradient(circle at 50% 30%, rgba(255, 130, 30, .35), #120b06 70%); box-shadow: 0 0 24px rgba(255, 110, 20, .35); }
.me-avatar-ring img { width: 74px; height: auto; margin-top: 10px; }
.me-avatar-ini { position: absolute; right: 4px; bottom: 4px; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #170b02; color: var(--ds-accent-2); font: 800 .75rem var(--ds-font); border: 1px solid rgba(255, 150, 50, .7); }
.me-id { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.me-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-name-row h1 { margin: 0; font-size: 1.45rem; }
.me-plan { padding: 2px 10px; border-radius: 999px; background: linear-gradient(90deg, #ff7a1a, #ffb04a); color: #170b02; font: 800 .74rem var(--ds-font); }
.me-id p { margin: 0; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.me-edit { margin-top: 8px; min-width: 150px; justify-content: center; }
.shell .hub-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shell .hub-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .2)); color: var(--ds-text); text-decoration: none; }
.shell .hub-row:hover, .shell .hub-row:focus-visible { border-color: rgba(255, 150, 50, .6); outline: none; }
.shell .hub-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; color: #ffc07a; background: rgba(255, 122, 26, .16); border: 1px solid rgba(255, 122, 26, .45); box-shadow: 0 0 12px rgba(255, 110, 20, .14); }
.shell .hub-ico svg { width: 19px; height: 19px; }
.shell .hub-text { flex: 1; min-width: 0; display: grid; }
.shell .hub-text b { font-size: .95rem; }
.shell .hub-text .fine { font-size: .78rem; color: var(--ds-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell .hub-chev { color: var(--ds-text-3); font-size: 1.3rem; }
@media (min-width: 821px) { .shell .me-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; } }
/* Store (owner's phone mockup): the campaign banner and the shop's products as cards. */
.store-banner { display: block; margin: 0 0 12px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 140, 40, .5); box-shadow: 0 0 26px rgba(255, 110, 20, .18); }
.store-banner img { display: block; width: 100%; height: auto; aspect-ratio: 853 / 361; object-fit: cover; }
.store-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.store-row::-webkit-scrollbar { display: none; }
.store-card { display: grid; gap: 4px; color: var(--ds-text); text-decoration: none; min-width: 0; }
.store-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #ece8e3; border: 1px solid rgba(255, 255, 255, .1); }
.store-img img { width: 100%; height: 100%; object-fit: cover; }
.store-name { font-size: .78rem; color: var(--ds-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-price { font: 800 .98rem var(--ds-font-display); }
@media (min-width: 821px) { .store-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; } .store-banner { max-height: 300px; } }
.v2-tabs [role=tab] { flex: 1 0 auto; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 10px; background: none; color: var(--ds-text-2); font: 600 .86rem var(--ds-font); white-space: nowrap; cursor: pointer; }
.v2-tabs [role=tab][aria-selected=true], .v2-tabs button.on { background: linear-gradient(180deg, #ff8a2b, #ff6a10); color: #170b02; box-shadow: 0 4px 16px rgba(255, 122, 26, .40); }
.shell .feed-seg.v2-tabs { position: sticky; top: 56px; z-index: 5; background: rgba(9, 6, 4, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.os-seg.v2-tabs { flex-wrap: nowrap; }
.os-seg.v2-tabs button { flex: 1 0 auto; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 10px; background: none; color: var(--ds-text-2); font: 600 .86rem var(--ds-font); white-space: nowrap; cursor: pointer; }
@media (max-width: 820px) {
  .os-agents-bar:has(.os-seg.v2-tabs) { display: block; }
  .os-agents-bar .os-seg.v2-tabs { width: 100%; }
  .agents-list-mode .os-agents-bar > :not(.os-seg):not(.os-agents-switch), .agents-list-mode #agents-summary, .agents-list-mode #agents-status { display: none; }
  .store-row { grid-auto-columns: calc((100% - 20px) / 3); }
}
/* Menu drawer (#more; owner's phone mockup): brand + close, your account card, the destinations as a list. */
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-head h1 { margin: 0; }
.drawer-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 1.1rem var(--ds-font-display); letter-spacing: .02em; }
.drawer-brand b { color: var(--ds-accent); }
.drawer-me { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 122, 26, .35); background: linear-gradient(180deg, #1a110a, #0d0907); color: var(--ds-text); text-decoration: none; }
.drawer-avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 150, 50, .75); background: #160d07; }
.drawer-avatar img { margin-top: 6px; }
.drawer-who { flex: 1; min-width: 0; display: grid; } .drawer-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .drawer-plan { color: var(--ds-text-2); }
.drawer-chev { color: var(--ds-text-3); display: inline-flex; }
@media (max-width: 820px) {
  .os-more-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .os-more-item { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 8px 14px; border: 0; border-radius: 12px; background: none; }
  .os-more-item small { display: none; }
  .os-more-item b { font-size: 1rem; font-weight: 600; }
  .os-more-item .ico svg { width: 21px; height: 21px; }
  .os-more-item[aria-current] { background: linear-gradient(90deg, #ff7a1a, #ffa23a); color: #170b02; box-shadow: 0 6px 22px rgba(255, 122, 26, .40); }
  .os-more-item[aria-current] .ico { color: #170b02; }
}
@media (min-width: 821px) { .drawer-close { display: none; } }
.shell .os-seg.v2-tabs button[aria-pressed=true] { background: linear-gradient(180deg, #ff8a2b, #ff6a10); color: #170b02; box-shadow: 0 4px 16px rgba(255, 122, 26, .40); border: 0; }
/* Home density (owner's desktop mockup 01): the main column is a 3-column grid; Quick Actions sits beside Today's
   mission and Today's progress, everything else spans the row. The right-hand column starts beside the hero. */
.hm-quick-card { display: grid; gap: 12px; align-content: start; padding: 16px; }
.hm-quick-head { display: flex; align-items: center; gap: 10px; }
.hm-quick-head h2 { margin: 0; font-size: 1.1rem; } .hm-quick-head small { color: var(--ds-text-2); font-size: .8rem; }
.hm-quick-bolt { color: var(--ds-accent); display: inline-flex; filter: drop-shadow(0 0 8px rgba(255, 122, 26, .6)); }
.hm-layout .hm-quick.hm-quick6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-qa6 { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 72px; padding: 10px 4px; border-radius: 12px; border: 1px solid rgba(255, 122, 26, .30); background: linear-gradient(180deg, #1c120b, #0d0907); color: var(--ds-text); text-decoration: none; font-size: .88rem; }
.hm-qa6 span { color: var(--ds-accent); display: inline-flex; }
.hm-qa6:hover, .hm-qa6:focus-visible { border-color: rgba(255, 150, 50, .75); box-shadow: 0 0 18px rgba(255, 110, 20, .2); outline: none; }
.hm-qa6 b { font-weight: 600; }
.shell .hm-stat { position: relative; }
.shell .hm-stat .hm-stat-bar { display: block; margin-top: 8px; height: 6px; }
.shell .hm-stat.has-ring { padding-right: 64px; }
.shell .hm-stat.has-ring .v2-ring { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
@media (min-width: 1181px) {
  .hm-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
  .hm-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: start; }
  .hm-main > * { grid-column: 1 / -1; margin: 0 !important; }
  /* Pair adjacent cards while preserving the widget order. */
  .hm-main > [data-widget=today]:has(+ .hm-quick-card) { grid-column: 1 / 3; }
  .hm-main > [data-widget=today] + .hm-quick-card { grid-column: 3; }
  .hm-main > [data-widget=today] .card { height: 100%; }
  .hm-main > #home-alerts-slot:empty, .hm-main > #home-gate-slot:empty { display: none; }
  .hm-rail { top: 76px; }
  /* Four cards: four columns (the main column is 590–740 px here), so none sits alone on a second row (it did at 1280 px). */
  .shell .hm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  /* With the fifth card (income you recorded): three over two, never one alone. */
  .shell .hm-stats.hm-stats5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .shell .hm-stats.hm-stats5 > * { grid-column: span 2; }
  .shell .hm-stats.hm-stats5 > :nth-child(n+4) { grid-column: span 3; }
  /* …and each card stacks to fit its quarter: icon and label on top, the figure full width, the note below. */
  .shell .hm-stats .hm-stat { padding: 12px; column-gap: 8px; }
  .shell .hm-stats .hm-stat .hm-stat-ico { grid-row: auto; width: 28px; height: 28px; }
  .shell .hm-stats .hm-stat .hm-stat-value { grid-column: 1 / -1; font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 1180px) { .hm-main > #home-alerts-slot:empty, .hm-main > #home-gate-slot:empty { display: none; } }
@media (max-width: 600px) {
  .hm-layout .hm-quick.hm-quick6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1181px) {
  .hm-main > [data-widget=today].hm-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; margin: 0; }
  .hm-main > [data-widget=today] .hm-progress-body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hm-main > [data-widget=today] .hm-ring { width: 96px; height: 96px; align-self: center; }
}
#home-today .os-row-main.os-check { display: flex; align-items: center; gap: 10px; }
#home-today .os-row-main.os-check > .grow { display: grid; gap: 2px; min-width: 0; }
#home-today .os-row-main.os-check b { overflow-wrap: anywhere; line-height: 1.25; }
/* Today's mission rows: another .os-check rule (os.css, the 18px tick circle) was shrinking the row's label. */
#home-today .os-row-main.os-check { width: 100%; height: auto; border: 0; border-radius: 0; font-size: inherit; place-items: normal; line-height: 1.4; color: var(--ds-text); }
#home-today .os-row { padding-right: 10px; }
/* Hero room scene (owner's mockup 01; drawn for CONE as SVG until the owner supplies the final art) behind the mascot,
   and the city skyline behind the closing banner. */
.hm-hero { background: linear-gradient(90deg, #120b07 0%, rgba(18, 11, 7, .85) 30%, rgba(18, 11, 7, .1) 58%, rgba(18, 11, 7, 0) 80%), url("/art/cone-creator-room.webp") right center / auto 100% no-repeat, linear-gradient(180deg, #1a110a 0%, #0c0806 100%); }
.hm-banner { background: linear-gradient(90deg, #1b110a 0%, rgba(27, 17, 10, .92) 42%, rgba(12, 8, 6, .35) 100%), url("/art/cone-city-skyline.webp") right bottom / auto 100% no-repeat, #0c0806 !important; }
@media (min-width: 821px) {
  .hm-hero .hm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hm-hero .hm-chip { flex: none; padding: 5px 10px; font-size: .8rem; min-height: 32px; gap: 5px; }
  .hm-hero .hm-hello { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
}
@media (max-width: 820px) { .hm-hero { background-size: auto, auto 100%, auto; background-position: 0 0, 78% center, 0 0; } }
.hm-banner { min-height: 112px; }
.hm-banner h2 { font: 800 clamp(1.3rem, 2.4vw, 1.9rem) var(--ds-font-display); }
@media (min-width: 821px) { .hm-banner > .row { margin-left: auto; } }
/* The text needs a real starting width: with flex-basis 0 it was squeezed to 9 px on a phone (one letter per line,
   2026-11-15) instead of the buttons wrapping below it. */
.hm-banner > .grow { flex: 1 1 200px; min-width: 0; }
@media (min-width: 821px) {
  .store-banner img { height: 240px; aspect-ratio: auto; object-position: center 40%; }
  .v2-top .v2-hero { align-content: center; }
}
/* Labs overview cards (owner's mockup 02): the lab's real screenshot across the top of the card. */
.lab-featured { overflow: hidden; }
.lab-featured .lab-preview { display: block; width: calc(100% + 2 * var(--tile-pad, 16px)); max-width: none; height: auto; aspect-ratio: 480 / 300; object-fit: cover; object-position: top left;
  margin: calc(-1 * var(--tile-pad, 16px)) calc(-1 * var(--tile-pad, 16px)) 10px; border-bottom: 1px solid color-mix(in srgb, var(--tone, #ff7a1a) 45%, transparent); }
.lab-featured { display: flex; flex-direction: column; }
.lab-featured .os-tool-top { position: absolute; z-index: 1; left: 12px; top: 12px; right: 12px; }
.lab-featured { position: relative; }
.lab-featured .os-tool-top + .lab-preview { margin-top: calc(-1 * var(--tile-pad, 16px)); }
.lab-featured { --tile-pad: 14px; }
@media (max-width: 760px) { .lab-featured { --tile-pad: 12px; } }
.lab-featured .os-tool-top .os-tool-ico { box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
/* Fit: the agent lists and the view strip shrink with the phone (no sideways scroll at 320px). */
.os-agents, .os-world-stage, .agents-mine, .agents-templates, .agents-mine > *, .agents-templates > * { min-width: 0; max-width: 100%; }
.v2-row, .v2-list { min-width: 0; max-width: 100%; }
.os-agents-bar { min-width: 0; max-width: 100%; }
.os-agents-bar .os-seg.v2-tabs { max-width: 100%; overflow-x: auto; }

/* Home closer to mockup 01: hero scene pinned top right (its desk sits behind the Ask bar), all six Ask chips on one
   line, Customize as an icon in the pill row, a compact alerts strip, and the crown in the Ask bar. */
@media (min-width: 821px) {
  .hm-hero { background-position: 0 0, right top, 0 0; background-size: auto, auto 74%, auto; }
  .hm-hero .hm-chips { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .hm-hero .hm-chip { padding: 5px 10px; font-size: .78rem; }
  .hm-hero #home-customize-btn { font-size: 0; padding: 6px 9px; min-height: 30px; }
  .hm-hero #home-customize-btn svg { width: 15px; height: 15px; }
}
.hm-hero .hm-ask-ico { color: var(--ds-accent); }
.hm-alerts { padding: 12px 16px; }
.hm-alerts .os-section-head h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.hm-alerts-list { display: grid; gap: 4px; margin: 6px 0 0; }
.hm-alerts-list li { font-size: .85rem; line-height: 1.35; }
.hm-alerts-list li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 821px) {
  .hm-hero { background-size: auto, 50% auto, auto; }
  .hm-hero .hm-chips { flex-wrap: nowrap; gap: 4px; }
  .hm-hero .hm-chip { padding: 4px 8px; font-size: .72rem; gap: 4px; min-height: 30px; }
  .hm-hero .hm-chip svg { width: 13px; height: 13px; }
}
.hm-alerts-list li { min-width: 0; max-width: 100%; display: block; overflow: hidden; }
.hm-alerts { overflow: hidden; }

/* ===== The owner's CONE SUPREME V2 artwork (art/): one copy of each, reused everywhere =====
   art/cone-mascot-hoodie.webp (400x941), art/cone-creator-room.webp (1233x516), art/cone-city-skyline.webp (1233x408).
   Images keep their aspect ratio (object-fit / cover / contain); orange overlays keep text readable. */
img[src="/art/cone-mascot-hoodie.webp"] { object-fit: contain; height: auto; max-width: 100%; }

/* Home hero: the creator room (it already shows the mascot, so the separate mascot image steps aside on desktop). */
.hm-hero { background:
  linear-gradient(90deg, #120b07 0%, rgba(18, 11, 7, .92) 34%, rgba(18, 11, 7, .45) 56%, rgba(18, 11, 7, .05) 78%),
  linear-gradient(0deg, rgba(14, 9, 6, .85) 0%, rgba(14, 9, 6, 0) 45%),
  url("/art/cone-creator-room.webp") right top / auto 100% no-repeat,
  #120b07; }
@media (min-width: 821px) { .hm-hero { background-size: auto, auto, auto 100%, auto; background-position: 0 0, 0 0, right top, 0 0; } .hm-hero .hm-hero-art { display: none; } }
@media (max-width: 820px) {
  .hm-hero { background:
    linear-gradient(180deg, rgba(18, 11, 7, .55) 0%, rgba(18, 11, 7, .88) 55%, #120b07 100%),
    url("/art/cone-creator-room.webp") 70% top / auto 260px no-repeat, #120b07; }
  .hm-hero .hm-hero-art { display: block; width: 78px; top: 6px; filter: drop-shadow(0 6px 18px rgba(255, 110, 20, .45)); }
}

/* Banner and promotional strips: the city skyline. */
.hm-banner { background:
  linear-gradient(90deg, #1b110a 0%, rgba(27, 17, 10, .9) 38%, rgba(12, 8, 6, .25) 100%),
  url("/art/cone-city-skyline.webp") center 55% / cover no-repeat !important; }
.hm-banner img { width: 70px; margin: -26px 0 -18px; }
@media (max-width: 820px) { .hm-banner { background: linear-gradient(180deg, rgba(20, 12, 8, .7), rgba(12, 8, 6, .92)), url("/art/cone-city-skyline.webp") center 60% / cover no-repeat !important; } }

/* Creative labs (Studio, Beat Lab, video…): the creator room as a faint backdrop behind the title row. */
.lab-os .lab-shell-bar[data-group="creative"] { background:
  linear-gradient(90deg, rgba(14, 9, 6, .97) 0%, rgba(14, 9, 6, .9) 45%, rgba(14, 9, 6, .72) 100%),
  url("/art/cone-creator-room.webp") right center / cover no-repeat; }

/* The sidebar plan card and profile ring use the hoodie mascot too. */
.plan-card img { width: 58px; }
.me-avatar-ring img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
/* The hoodie mascot art has its own dark fiery backdrop: feather the edges so it melts into the dark UI (no box). */
img[src="/art/cone-mascot-hoodie.webp"] { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 62%, transparent 100%); }
/* Phone hero: the creator room already shows the mascot, so the separate image steps aside there too. */
@media (max-width: 820px) { .hm-hero .hm-hero-art { display: none; } .hm-hero { background-position: 0 0, 62% top; } .hm-hero-text { padding-right: 0; } }
.os-agents-switch { display: contents; }
/* Home hero: the sign-up Mode (chip + that mode's shortcuts as small pills), moved from Today (consolidation 2026-11-10). */
.hm-mode { display: flex; align-items: center; gap: 8px; margin-top: 10px; max-width: min(100%, 560px); min-width: 0; }
.hm-mode .mode-row { margin-top: 0; flex: none; }
.hm-mode .mode-row > .fine { display: none; }
.shell .hm-mode .quick { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
/* The strip scrolls sideways: fade its right edge so a cut-off chip reads as "more this way", not as broken (2026-11-16). */
.shell .hm-mode .quick { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); padding-right: 28px; }
.shell .hm-mode .quick a { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; min-height: 36px; padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
.shell .hm-mode .quick .qi { font-size: 14px; line-height: 1; }
.shell .hm-mode .quick .qi svg { width: 15px; height: 15px; }
.shell .hm-mode .quick small { font-size: 12px; }
.tasks-head .day-strip { margin-top: 8px; }

/* Video Lab (owner's Studio Lab mockup 02): setup and scenes left, preview centre, text properties right, timeline
   along the bottom. Only the free video maker's real controls. Phones stack: setup, preview, timeline, text. */
.studio-free-video {
  container: video-editor / inline-size;
  min-width: 0;
}
.vs-workspace {
  display: grid;
  grid-template-columns: minmax(188px, .9fr) minmax(0, 1.7fr) minmax(168px, .85fr);
  grid-template-areas: "side main props" "side bottom props";
  gap: 8px;
  align-items: start;
}
.vs-side, .vs-main, .vs-props, .vs-bottom {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #47372f;
  border-radius: 10px;
  background: linear-gradient(155deg, #211b1a, #121215 70%);
}
.vs-side { grid-area: side; }
.vs-main { grid-area: main; }
.vs-props { grid-area: props; }
.vs-bottom { grid-area: bottom; }
.vs-side > .row, .vs-transport { flex-wrap: wrap; gap: 6px; }
.vs-transport { justify-content: space-between; }
.vs-setup { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.vs-workspace .studio-field { min-width: 0; }
.vs-workspace .studio-field > :is(textarea, input, select) { min-width: 0; max-width: 100%; }
.vs-title { margin: 0; font-size: .84rem; color: var(--ds-accent-2, #ffad70); }
.vs-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vs-clock { flex: none; font-variant-numeric: tabular-nums; color: var(--ds-text-2, #b8b1bc); font-size: .8rem; }
.vs-side .studio-storyboard { grid-template-columns: minmax(0, 1fr); max-height: 280px; overflow: auto; }
.vs-side .studio-storyboard:empty { display: none; }
.vs-side .studio-scene-card { overflow-wrap: anywhere; }
.vs-main .studio-video-stage {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #332017, #0a0a0c 75%);
}
.vs-main .studio-video-canvas { width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.vs-main [hidden] { display: none; }
.vs-empty-preview { display: grid; justify-items: center; padding: 12px; text-align: center; color: var(--ds-text-2, #b8b1bc); }
.vs-empty-preview p { margin: 8px 0 0; }
.vs-bottom > input[type=range] { width: 100%; min-width: 0; min-height: 26px; accent-color: #ff953e; }
.vs-timeline { display: flex; gap: 4px; min-height: 52px; padding: 4px; border: 1px solid #3e332e; border-radius: 8px; background: #0f0d10; overflow-x: auto; }
.vs-seg { flex: 1 1 0; min-width: 44px; min-height: 44px; display: grid; place-items: center; gap: 0; border: 1px solid #5c3b73; border-radius: 6px; background: linear-gradient(180deg, #422856, #23192e); color: #f0dfff; cursor: pointer; font: inherit; }
.vs-seg small { font-size: 11px; color: #d5bbdf; }
.vs-seg[aria-current=true] { border-color: #ff8a2b; box-shadow: 0 0 0 1px #ff8a2b inset; }
.vs-seg:focus-visible { outline: 2px solid #ffc17d; outline-offset: -3px; }

@container video-editor (max-width: 810px) {
  .vs-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "side main" "side bottom" "props props"; }
  .vs-props { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .vs-props .vs-title { grid-column: 1 / -1; }
}
@container video-editor (max-width: 530px) {
  .vs-workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main" "bottom" "props"; }
  .vs-main .studio-video-canvas { max-height: 260px; }
  .vs-transport > button { min-height: 44px; }
}
/* A blank chat leads with the example prompts: the mascot is capped by height so they show above the message box
   (2026-11-16). On phones the intro paragraph hides; the "New chat" note above says the same. */
.shell .ask-hero img { width: auto; height: 150px; }
.shell .ask-hero { padding-top: 6px; }
@media (max-width: 640px) { .shell .ask-hero img { height: 96px; } .shell .ask-hero > .muted { display: none; } .shell .ask-hero-name { font-size: 2rem; } }
/* Store: CONE's digital products (2026-11-16) */
.store-digital { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.store-digital a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ds-line, #3a2a1c); border-radius: 12px; color: inherit; text-decoration: none; min-height: 64px; }
.store-digital a:hover, .store-digital a:focus-visible { border-color: var(--ds-accent-line, #ff9a2f); }
.store-digital .grow { display: grid; gap: 3px; min-width: 0; }
.store-digital small { color: var(--ds-text-3, #a99888); font-size: 12.5px; line-height: 1.4; }
.store-digital-price { font-weight: 800; color: var(--ds-accent-2, #ffb14b); white-space: nowrap; }

/* ---- A phone turned sideways (2026-11-16): a short screen (an iPhone 13 shows 750 × 342). The top bar and tab bar
   took 128 px and Ask CONE's composer another 193 px, leaving ~20 px for the conversation. Compact bars (44 px, tab
   icons beside their labels) and a one-row composer header give the page its height back. Same controls, nothing
   hidden. ---- */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  body .topbar { min-height: 44px; padding-top: max(2px, env(safe-area-inset-top)); padding-bottom: 2px; }
  body .topbar .icon-btn, body .topbar .topbar-actions > * { min-height: 36px; }
  body .tabbar { padding-top: 2px; padding-bottom: calc(2px + env(safe-area-inset-bottom)); }
  body .tabbar a, body .os-tabbar a { flex-direction: row; gap: 6px; min-height: 40px; font-size: 12px; }
  /* cone-layout-finish.css (.shell > .os-tabbar, min-height 64px) outranks the rules above, so match its specificity:
     sideways the bar is 44px again, as on 2026-11-16. */
  body .shell > .os-tabbar { min-height: 44px; padding-top: 2px; padding-bottom: calc(2px + env(safe-area-inset-bottom)); }
  body .shell > .os-tabbar a { min-height: 40px; }
  body .tabbar a.center { margin-top: 0; flex: 1; }
  body .composer-dock { bottom: calc(44px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; padding-top: 4px; }
  body .composer-dock .cone-mode-picker { flex-wrap: nowrap; gap: 6px; padding: 2px 8px; margin: 0; flex: 0 1 auto; }
  body .composer-dock .cone-mode-picker select { flex: 0 1 170px; min-width: 120px; min-height: 36px; padding-top: 2px; padding-bottom: 2px; }
  body .composer-dock .toggles { flex: 1 1 0; min-width: 0; margin: 0; }
  body .composer-dock .composer { flex: 1 1 100%; }
  body .composer-dock .composer textarea { min-height: 40px; max-height: 56px; }
  body .composer-dock .composer { padding-top: 0; padding-bottom: 0; }
}

/* Home hero shortcut pills (2026-11-16): on a tablet in landscape (1024 px) the row was 41 px wider than the hero and
   the last pill ("Analyze data") was cut off and couldn't be reached. Wrapping keeps them on one line wherever they
   fit (mockup 01) and only breaks onto a second line when they don't. */
.hm-hero .hm-chips { flex-wrap: wrap; }

/* Give both panels the full main column width when the right rail crowds the layout. */
@media (min-width: 1181px) and (max-width: 1499px) {
  .hm-main > [data-widget=today]:has(+ .hm-quick-card),
  .hm-main > [data-widget=today] + .hm-quick-card { grid-column: 1 / -1; }
  /* Eight labs in ~590 px were cut off ("Researc…"): two rows of four, as below 1100 px. */
  .hm-main .hm-labs-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Home's money row has two cards now (agents and missions are in the figures at the top): half each, not a quarter. */
.hm-main .os-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Agents: CONE's six agents filled four columns at 1280 px and left two alone on a second row. At most three
   across (3 + 3), two on a narrower screen, one on a phone. */
.os-agent-grid, .os-world-list { grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 230px), calc((100% - 16px) / 3)), 1fr)); }
/* Store: the three "Shop CONE SUPREME" fronts left an empty fourth slot on a wide screen; they share the row instead. */
@media (min-width: 761px) { #market-fronts .os-tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); } }
/* Workspace's strip under the page heading (inside the page, which has its own padding) */
#view .ws-tabs.v2-tabs { margin: 2px 0 16px; }
@media (max-width: 820px) { #view .ws-tabs.v2-tabs { margin: 2px 0 14px; } }
/* My Space keeps its readable 760 px column but starts where every other page does (it was centred, alone among the
   main destinations; 2026-11-16). */
.view[data-section="me"] > * { margin-left: 0; margin-right: 0; }

/* Workspace + Ask CONE layout pass (2026-11-17).
   Scoped to their existing renderer markers; no tools, labs or GameLab surfaces are restyled. */

/* Workspace directory pages: clear hierarchy, useful card spacing and a responsive tool list. */
#view:has(#ws-list) > .view-head { margin: 4px 0 16px; }
#view:has(#ws-list) > p:first-child { margin: 0 0 8px; }
#view:has(#ws-list) .ws-ask {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--ds-accent-line, rgba(255, 145, 54, .25));
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(255, 122, 26, .09), var(--ds-surface, #111));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
#view:has(#ws-list) .ws-ask > span { color: var(--ds-accent-2, #ffb14b); font-size: 20px; text-align: center; }
#view:has(#ws-list) .ws-ask input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
}
#view:has(#ws-list) .ws-ask input:focus-visible { outline: 2px solid var(--ds-accent-2, #ffb14b); outline-offset: 3px; border-radius: 7px; }
#view:has(#ws-list) .ws-ask .btn { min-height: 42px; padding-inline: 18px; }
#view:has(#ws-list) #ws-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 10px;
  max-width: 1100px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
#view:has(#ws-list) #ws-list > li { min-width: 0; border: 1px solid var(--ds-line, rgba(255,255,255,.1)); border-radius: 14px; background: linear-gradient(145deg, var(--ds-surface-2, #171719), var(--ds-surface, #101012)); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
#view:has(#ws-list) #ws-list > li + li { border-top: 1px solid var(--ds-line, rgba(255,255,255,.1)); }
#view:has(#ws-list) #ws-list > li:hover { border-color: var(--ds-accent-line, rgba(255,145,54,.4)); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.16); }
#view:has(#ws-list) #ws-list .hub-row { min-height: 82px; padding: 14px 15px; gap: 14px; }
#view:has(#ws-list) #ws-list .hub-text { gap: 5px; }
#view:has(#ws-list) #ws-list .hub-text > b { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 14px; }
#view:has(#ws-list) #ws-list .hub-text > .fine { line-height: 1.5; }
#view:has(#ws-list) #ws-list .hub-chev { color: var(--ds-accent-2, #ffb14b); font-size: 25px; }
#view:has(#ws-list) #ws-list .hub-row:focus-visible { outline: 2px solid var(--ds-accent-2, #ffb14b); outline-offset: 3px; border-radius: 12px; }
#view:has(#ws-list) #ws-planned { max-width: 900px; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--ds-line-2, #444); border-radius: 12px; }

/* Ask CONE: a stable two-pane desktop workspace, with the conversation list and thread
   visually separated while preserving the existing messages, toggles and composer. */
#view:has(.chat) .chat {
  grid-template-columns: minmax(220px, 275px) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  min-height: min(780px, calc(100dvh - 148px));
}
#view:has(.chat) .convs-wrap {
  position: sticky;
  top: 14px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-height: calc(100dvh - 170px);
  padding: 14px;
  border: 1px solid var(--ds-line, rgba(255,255,255,.1));
  border-radius: 16px;
  background: linear-gradient(160deg, var(--ds-surface-2, #171719), var(--ds-surface, #101012));
}
#view:has(.chat) .convs-wrap input[type="search"] { flex: 0 0 auto; min-height: 42px; width: 100%; border-radius: 11px; }
#view:has(.chat) .convs { min-height: 0; max-height: none; padding-right: 2px; overscroll-behavior: contain; }
#view:has(.chat) .convs a { min-height: 42px; padding: 10px 11px; border: 1px solid transparent; border-radius: 10px; line-height: 1.35; }
#view:has(.chat) .convs a[aria-current="true"] { border-color: var(--ds-accent-line, rgba(255,145,54,.3)); background: var(--ds-accent-soft, rgba(255,122,26,.1)); color: var(--ds-accent-2, #ffb14b); }
#view:has(.chat) .thread {
  min-height: 0;
  padding: 15px;
  border: 1px solid var(--ds-line, rgba(255,255,255,.1));
  border-radius: 16px;
  background: radial-gradient(ellipse 70% 30% at 50% 0%, rgba(255,122,26,.055), transparent 80%), var(--ds-surface, #101012);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
#view:has(.chat) .thread > .card-head { gap: 12px; min-width: 0; }
#view:has(.chat) .thread > .card-head h2 { min-width: 0; overflow-wrap: anywhere; }
#view:has(.chat) .ask-disclaimer { margin: 7px 0 12px; padding: 9px 11px; border: 1px solid var(--ds-line, rgba(255,255,255,.1)); border-radius: 10px; background: rgba(255,255,255,.018); line-height: 1.5; }
#view:has(.chat) .log { min-height: 220px; padding: 8px 3px 18px; }
#view:has(.chat) .msg { max-width: min(88%, 78ch); border-radius: 14px; line-height: 1.62; }
#view:has(.chat) .msg.user { border-color: rgba(255,145,54,.25); background: linear-gradient(145deg, rgba(255,122,26,.16), rgba(255,122,26,.07)); }
#view:has(.chat) .ask-hero {
  max-width: 680px;
  margin: 18px auto 22px;
  padding: 22px 22px 18px;
  border: 1px solid var(--ds-line, rgba(255,255,255,.1));
  border-radius: 18px;
  background: radial-gradient(ellipse 65% 70% at 50% 0%, rgba(255,122,26,.11), transparent 78%), var(--ds-surface-2, #171719);
}
#view:has(.chat) .ask-hero-title { margin: 5px 0; }
#view:has(.chat) .ask-hero .muted { max-width: 56ch; line-height: 1.65; }
#view:has(.chat) .log > .sec-title { max-width: 680px; }
#view:has(.chat) .examples { max-width: 760px; margin-inline: auto; }
#view:has(.chat) .examples .chip { min-height: 42px; }
#view:has(.chat) .composer-dock { margin-top: auto; padding: 12px 0 0; border-top: 1px solid var(--ds-line, rgba(255,255,255,.1)); }
#view:has(.chat) .cone-mode-picker { flex-wrap: wrap; gap: 8px; }
#view:has(.chat) .composer-dock .composer { margin-top: 8px; }

@media (max-width: 820px) {
  #view:has(.chat) .chat { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; }
  #view:has(.chat) .convs-wrap { position: static; max-height: 230px; padding: 11px; border-radius: 13px; }
  #view:has(.chat) .convs { max-height: 150px; }
  #view:has(.chat) .thread { min-height: 58dvh; padding: 12px; border-radius: 14px; }
  #view:has(.chat) .log { min-height: 180px; }
  #view:has(.chat) .msg { max-width: 94%; }
  #view:has(.chat) .ask-hero { margin: 8px auto 16px; padding: 14px 12px 12px; }
  #view:has(.chat) .composer-dock { padding-top: 9px; }
}
@media (max-width: 480px) {
  #view:has(#ws-list) .ws-ask { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px; padding: 8px; border-radius: 13px; }
  #view:has(#ws-list) .ws-ask .btn { min-height: 40px; padding-inline: 12px; }
  #view:has(#ws-list) #ws-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #view:has(#ws-list) #ws-list .hub-row { min-height: 72px; padding: 12px; }
  #view:has(.chat) .thread { padding: 10px; }
  #view:has(.chat) .ask-hero { gap: 6px; }
  #view:has(.chat) .ask-hero-title { font-size: 19px; }
  #view:has(.chat) .composer-dock .toggles { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  #view:has(#ws-list) #ws-list > li { transition: none; }
  #view:has(#ws-list) #ws-list > li:hover { transform: none; }
}

/* CONE OS navigation refinement (2026-11-17).
   Shell-only presentation: preserve existing links, routing, access checks and mobile destinations. */
@media (min-width: 821px) {
  .shell { grid-template-columns: 252px minmax(0, 1fr); }
  .side {
    padding: 20px 13px 16px;
    gap: 7px;
    background:
      radial-gradient(ellipse 115% 34% at 0% 0%, rgba(255, 122, 26, .10), transparent 72%),
      linear-gradient(180deg, rgba(17, 15, 14, .99), rgba(9, 9, 11, .99));
    border-right: 1px solid var(--ds-line);
    box-shadow: 10px 0 32px rgba(0, 0, 0, .14);
  }
  .side .brand { padding: 7px 9px 13px; margin-bottom: 2px; border-bottom: 1px solid var(--ds-line); }
  .side > .fine { margin: 0 8px 2px; color: var(--ds-text-3); font-size: 10px; letter-spacing: .04em; }
  .side .os-nav { gap: 5px; margin-top: 3px; }
  .side .os-nav-sec > a { min-height: 48px; padding: 7px 10px; gap: 11px; border: 1px solid transparent; }
  .side .os-nav-sec > a .ico { width: 34px; height: 34px; border-radius: 10px; transition: background-color .16s ease, color .16s ease; }
  .side .os-nav-sec > a:hover { border-color: var(--ds-line); background: rgba(255, 255, 255, .045); }
  .side .os-nav-sec > a[aria-current="page"] { border-color: var(--ds-accent-line); box-shadow: inset 3px 0 0 var(--ds-accent); }
  .side .os-nav-foot { margin-top: 12px; padding-top: 10px; }
  .side .os-nav-foot a { min-height: 42px; }
  .side .who {
    margin: auto 0 0;
    padding: 11px 9px 8px;
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(0,0,0,.12));
  }
  .side .who-row { gap: 6px; }
  .side .who-me { gap: 8px; }
  .shell .topbar {
    min-height: 68px;
    align-items: center;
    gap: 16px;
    padding: 10px clamp(20px, 3vw, 40px);
    border-bottom-color: var(--ds-line);
    background: rgba(10, 10, 12, .88);
    box-shadow: 0 8px 26px rgba(0,0,0,.10);
  }
  .shell .top-search {
    min-height: 46px;
    max-width: 680px;
    padding: 8px 17px;
    border-color: var(--ds-line-2);
    background: linear-gradient(110deg, var(--ds-surface-2), var(--ds-surface));
  }
  .shell .top-search > .ico { color: var(--ds-accent-2); }
  .shell .top-search:hover, .shell .top-search:focus-visible {
    border-color: var(--ds-accent-line);
    box-shadow: 0 0 0 3px rgba(255,122,26,.08);
  }
  .shell .topbar-actions { align-items: center; gap: 6px; }
  .shell .topbar-actions .icon-btn { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; }
  .shell .topbar-actions .icon-btn:hover { background: var(--ds-surface-2); border-color: var(--ds-line-2); }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .side { padding-inline: 10px; }
  .side .os-nav-sec > a { min-height: 46px; padding-inline: 8px; }
  .side .os-nav-text { font-size: 13px; }
  .shell .topbar { gap: 10px; padding-inline: 18px; }
  .shell .topbar-actions { gap: 3px; }
  .shell .topbar-actions .icon-btn { width: 38px; height: 38px; min-width: 38px; }
}
@media (max-width: 820px) {
  .shell .topbar {
    min-height: 60px;
    gap: 8px;
    padding-inline: 12px;
    border-bottom-color: var(--ds-line);
    background: rgba(10, 10, 12, .94);
  }
  .shell .topbar .top-title { flex: 1 1 auto; min-width: 0; margin-right: 0; }
  .shell .topbar .topbar-actions { flex: 0 0 auto; align-items: center; gap: 2px; }
  .shell .topbar .topbar-actions .icon-btn { width: 40px; height: 40px; min-width: 40px; }
  .shell .os-tabbar {
    min-height: 66px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    gap: 4px;
    border-top-color: var(--ds-line);
    background: rgba(10, 10, 12, .97);
    box-shadow: 0 -10px 30px rgba(0,0,0,.28);
  }
  .shell .os-tabbar a {
    min-width: 0;
    min-height: 50px;
    padding: 5px 2px;
    border: 1px solid transparent;
    border-radius: 12px;
    gap: 4px;
    font-weight: 650;
    -webkit-tap-highlight-color: transparent;
  }
  .shell .os-tabbar a .ico { display: grid; place-items: center; width: 22px; height: 22px; }
  .shell .os-tabbar a[aria-current="page"]:not(.tab-center) {
    background: var(--ds-accent-soft);
    border-color: var(--ds-accent-line);
  }
  .shell .os-tabbar a:focus-visible,
  .shell .topbar .icon-btn:focus-visible,
  .shell .topbar .top-title:focus-visible {
    outline: 2px solid var(--ds-accent-2);
    outline-offset: 2px;
  }
}
@media (max-width: 480px) {
  .shell .topbar { padding-inline: 9px; }
  .shell .topbar .top-title { font-size: 13px; gap: 5px; }
  .shell .topbar .topbar-actions .icon-btn { width: 37px; height: 37px; min-width: 37px; }
  .shell .os-tabbar { gap: 2px; padding-inline: 5px; }
  .shell .os-tabbar a { font-size: 9px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .side .os-nav-sec > a .ico { transition: none; }
}

/* Tap targets on phones (consolidation §4, 2026-11-18): every page tab and button is at least 44 px tall, one rule for
   the whole app instead of per page. The 2026-11-18 sweep measured 36 px tab strips and 32–42 px buttons. Beat Lab
   (its own dense DAW controls, tested by beat-lab-phone) and Game Lab (owned by another workstream) are left as they are. */
@media (max-width: 820px) {
  .shell .view:not([data-section="games"]) :is(.v2-tabs > a, .v2-tabs > button, [role="tablist"] > [role="tab"], .btn):not(.beatlab *) { min-height: 44px; }
  .shell .view:not([data-section="games"]) :is(.v2-tabs > a, .v2-tabs > button, [role="tablist"] > [role="tab"]):not(.beatlab *) { display: inline-flex; align-items: center; }
}

/* One page header (consolidation §2, 2026-11-18): the destination's icon in an orange square beside the title, desktop
   only; the phone top bar shows the same icon beside the page name. Set by js/app.js. App-only, so it lives here. */
.head-ico { display: none; }
@media (min-width: 821px) {
  .shell .view-head h1:has(> .head-ico) { display: flex; align-items: center; gap: 14px; }
  .shell .head-ico { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #ff9a3c, #ff6a00); box-shadow: 0 0 18px rgba(255, 122, 26, .35); }
}

/* Destination consistency pass (2026-11-17).
   Limited to core non-Labs destinations; intentionally excludes Tools & Labs and the GameLab route. */
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) {
  min-width: 0;
  padding-top: clamp(18px, 2.4vw, 30px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 clamp(16px, 2vw, 24px);
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ds-line);
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .view-head h1 {
  font-size: clamp(23px, 2.1vw, 29px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .view-head p {
  max-width: 68ch;
  line-height: 1.55;
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .os-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 11px;
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .os-section-head h2 {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 680;
  letter-spacing: -.015em;
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .os-section-head .fine {
  font-size: 12px;
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) :is(.os-section, .stack) {
  min-width: 0;
}
#view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) :is(input, select, textarea) {
  max-width: 100%;
}
@media (max-width: 820px) {
  #view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) {
    padding-top: 16px;
    /* Clear the fixed bottom tab bar like every other view (cone-layout-finish.css .shell main.view): this ID rule
       outranks it, and 26px left the last control on a long page (Community "Save settings") under the bar. */
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
  #view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .view-head {
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 11px;
  }
}
@media (max-width: 480px) {
  #view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .view-head h1 { font-size: 22px; }
  #view:is([data-section="home"], [data-section="ask"], [data-section="projects"], [data-section="agents"], [data-section="money"], [data-section="crypto"], [data-section="market"], [data-section="community"], [data-section="me"]) .os-section-head { align-items: flex-start; }
}

/* Money overview phone refinement (2026-11-17): keep the four actions and monthly figures readable
   on narrow devices without changing the desktop composition or any underlying money calculations. */
@media (max-width: 480px) {
  #view:has(.money-overview) .money-overview .v2-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }
  #view:has(.money-overview) .money-overview .v2-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
  }
  #view:has(.money-overview) .money-overview .v2-tile {
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    justify-content: start;
    text-align: left;
    padding: 9px 12px;
    gap: 10px;
  }
  #view:has(.money-overview) .money-overview .v2-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }
  #view:has(.money-overview) .money-overview .v2-split > .v2-ring {
    grid-column: 1 / -1;
    justify-self: center;
  }
  #view:has(.money-overview) .money-overview .v2-split .v2-fig {
    min-width: 0;
    gap: 7px;
  }
  #view:has(.money-overview) .money-overview .v2-split .v2-fig b {
    font-size: clamp(.96rem, 4.2vw, 1.12rem);
    overflow-wrap: anywhere;
  }
  #view:has(.money-overview) .money-overview .v2-card {
    min-width: 0;
    padding: 13px;
  }
}

/* Money table readability (2026-11-17): long balance and schedule tables scroll inside their own
   labelled region on smaller screens instead of forcing the whole destination wider. */
#view[data-section="money"] .money-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border-radius: 8px;
}
#view[data-section="money"] .money-table-scroll:focus-visible {
  outline: 2px solid var(--ds-accent-2);
  outline-offset: 3px;
}
#view[data-section="money"] .money-table-scroll .money-table {
  min-width: 420px;
}
#view[data-section="money"] .money-table-scroll.compact .money-table {
  min-width: 270px;
}
#view[data-section="money"] .money-table-scroll::-webkit-scrollbar { height: 7px; }
#view[data-section="money"] .money-table-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--ds-line-3);
}

/* Community feed refinement (2026-11-17): protect post content width and touch controls on phones. */
#view[data-section="community"] .feed-col,
#view[data-section="community"] .post-main {
  min-width: 0;
}
#view[data-section="community"] .x-post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
#view[data-section="community"] .x-post .post-avatar {
  width: 40px;
  min-width: 40px;
}
#view[data-section="community"] .post-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}
#view[data-section="community"] .post-who {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#view[data-section="community"] .post-time {
  white-space: normal;
}
#view[data-section="community"] .post-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
#view[data-section="community"] .post-image {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
#view[data-section="community"] .post-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
#view[data-section="community"] .post-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
#view[data-section="community"] .react-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
#view[data-section="community"] .story-row {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 3px 2px 8px;
}
#view[data-section="community"] .story-row::-webkit-scrollbar { display: none; }
#view[data-section="community"] .compose-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#view[data-section="community"] .compose-prompt .grow {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  #view[data-section="community"] .x-post {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }
  #view[data-section="community"] .x-post .post-avatar {
    width: 34px;
    min-width: 34px;
  }
  #view[data-section="community"] .post-foot {
    gap: 6px;
  }
  #view[data-section="community"] .react-row {
    flex: 1 1 100%;
    order: 2;
  }
  #view[data-section="community"] .post-foot .act-save { margin-left: auto; }
  #view[data-section="community"] .story-row { gap: 10px; }
}



/* Agents card view refinement (2026-11-17): make the live worker roster scan cleanly on phones.
   This styles only the real worker-card renderer; task controls and server-reported state are unchanged. */
#view[data-section="agents"] .os-agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  min-width: 0;
}
#view[data-section="agents"] .os-agent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-content: start;
  gap: 7px;
  min-width: 0;
  width: 100%;
  min-height: 112px;
  padding: 13px 14px;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ds-panel, #171a2a), var(--ds-panel-2, #111421));
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
#view[data-section="agents"] .os-agent-card:hover,
#view[data-section="agents"] .os-agent-card:focus-visible {
  border-color: var(--ds-accent-line);
  outline: none;
}
#view[data-section="agents"] .os-agent-card:focus-visible {
  box-shadow: 0 0 0 2px var(--ds-accent-soft);
}
#view[data-section="agents"] .os-agent-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  width: 100%;
  min-width: 0;
}
#view[data-section="agents"] .os-agent-top b {
  min-width: 0;
  overflow-wrap: anywhere;
}
#view[data-section="agents"] .os-agent-top .pill {
  margin-left: auto;
  max-width: 100%;
  white-space: normal;
}
#view[data-section="agents"] .os-agent-card > small {
  max-width: 100%;
  overflow-wrap: anywhere;
}
#view[data-section="agents"] .os-agent-card .os-stage {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
}
@media (max-width: 480px) {
  #view[data-section="agents"] .os-agent-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #view[data-section="agents"] .os-agent-card {
    min-height: 0;
    padding: 12px;
  }
  #view[data-section="agents"] .os-agent-top .pill {
    margin-left: 0;
  }
}


/* Market discovery refinement (2026-11-17): give search and filters a stable responsive layout. */
#view[data-section="market"] .market-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(120px, .8fr));
  align-items: end;
  gap: 10px;
  min-width: 0;
}
#view[data-section="market"] .market-filters > .grow {
  min-width: 0;
}
#view[data-section="market"] .market-filters input,
#view[data-section="market"] .market-filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}
#view[data-section="market"] .listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 12px;
  min-width: 0;
}
#view[data-section="market"] .product-card {
  min-width: 0;
  overflow: hidden;
}
#view[data-section="market"] .product-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ds-panel-2);
}
#view[data-section="market"] .product-card h3,
#view[data-section="market"] .product-card .clamp {
  overflow-wrap: anywhere;
}
#view[data-section="market"] .market-collections {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
#view[data-section="market"] .market-collections .chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 820px) {
  #view[data-section="market"] .market-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #view[data-section="market"] .market-filters > .grow {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  #view[data-section="market"] .market-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #view[data-section="market"] .market-filters > .grow {
    grid-column: auto;
  }
  #view[data-section="market"] .listing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}


/* Crypto overview: make the simulated portfolio and paper actions comfortable on phones. */
#view[data-section="crypto"] .crypto-overview,
#view[data-section="crypto"] .crypto-overview .v2-top,
#view[data-section="crypto"] .crypto-overview .v2-top > * {
  min-width: 0;
}
#view[data-section="crypto"] .crypto-overview .v2-hero-value {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
#view[data-section="crypto"] .crypto-overview .v2-card {
  min-width: 0;
}
#view[data-section="crypto"] .crypto-snap-item {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
#view[data-section="crypto"] .crypto-snap-item:focus-visible,
#view[data-section="crypto"] .crypto-snap-item:hover {
  border-color: var(--ds-accent-line);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  #view[data-section="crypto"] .crypto-overview .v2-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #view[data-section="crypto"] .crypto-overview .v2-tile {
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    padding: 9px 11px;
    gap: 9px;
  }
  #view[data-section="crypto"] .crypto-overview .v2-tile .v2-sq {
    width: 32px;
    height: 32px;
  }
}

/* Store rows: preserve swipe affordance and readable prices without stretching the page. */
#view[data-section="market"] .store-row {
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
#view[data-section="market"] .store-card {
  scroll-snap-align: start;
  min-width: 0;
}
#view[data-section="market"] .store-card:focus-visible {
  outline: 2px solid var(--ds-accent-2);
  outline-offset: 3px;
  border-radius: 12px;
}
#view[data-section="market"] .store-img img {
  display: block;
  max-width: 100%;
}
#view[data-section="market"] .store-digital a {
  min-width: 0;
}
#view[data-section="market"] .store-digital a .grow {
  min-width: 0;
  overflow-wrap: anywhere;
}
#view[data-section="market"] .store-digital-price {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}


/* Tasks & habits: keep dense rows readable and tappable on narrow screens. */
#view[data-section="today"] .tasks-head,
#view[data-section="today"] .tasks-head > * {
  min-width: 0;
}
#view[data-section="today"] .day-strip {
  width: 100%;
  max-width: 440px;
}
#view[data-section="today"] .recent-row {
  max-width: 100%;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
#view[data-section="today"] .recent-card {
  min-width: 0;
  scroll-snap-align: start;
}
#view[data-section="today"] .recent-card:focus-visible {
  outline: 2px solid var(--ds-accent-2);
  outline-offset: 3px;
}
#view[data-section="today"] .item {
  min-width: 0;
  align-items: flex-start;
}
#view[data-section="today"] .item > .grow,
#view[data-section="today"] .work-card .item .grow {
  min-width: 0;
  overflow-wrap: anywhere;
}
#view[data-section="today"] .item .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
#view[data-section="today"] .item .meta .pill {
  max-width: 100%;
  white-space: normal;
}
#view[data-section="today"] .setup-steps .item {
  gap: 9px;
}
#view[data-section="today"] .setup-steps .btn {
  flex: 0 0 auto;
  min-height: 38px;
}
#view[data-section="today"] .work-card .pill {
  max-width: 44%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 480px) {
  #view[data-section="today"] .tasks-head .day-strip {
    max-width: none;
    gap: 4px;
  }
  #view[data-section="today"] .day-strip li {
    min-width: 0;
    padding: 7px 2px 9px;
  }
  #view[data-section="today"] .recent-row {
    grid-auto-columns: minmax(142px, 48%);
    gap: 8px;
  }
  #view[data-section="today"] .setup-card {
    padding: 13px;
  }
  #view[data-section="today"] .setup-card .card-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  #view[data-section="today"] .setup-steps .item {
    flex-wrap: wrap;
    align-items: center;
  }
  #view[data-section="today"] .setup-steps .item > .grow {
    flex: 1 1 calc(100% - 76px);
  }
  #view[data-section="today"] .work-card .pill {
    max-width: 100%;
  }
}


/* Build project rows: show enough of the project name and context to scan a real workspace. */
#view:is([data-section="build"], [data-section="projects"]) .build-list {
  min-width: 0;
}
#view:is([data-section="build"], [data-section="projects"]) .build-row {
  min-width: 0;
  align-items: flex-start;
}
#view:is([data-section="build"], [data-section="projects"]) .build-row .v2-row-text {
  min-width: 0;
  padding-block: 2px;
}
#view:is([data-section="build"], [data-section="projects"]) .build-row .v2-row-text b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
#view:is([data-section="build"], [data-section="projects"]) .build-row .v2-row-text small {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
#view:is([data-section="build"], [data-section="projects"]) .build-row:focus-visible {
  outline: 2px solid var(--ds-accent-2);
  outline-offset: 3px;
}
#view:is([data-section="build"], [data-section="projects"]) .build-row .build-row-bar {
  max-width: min(100%, 320px);
}
@media (max-width: 480px) {
  #view:is([data-section="build"], [data-section="projects"]) .build-row {
    gap: 9px;
    padding: 11px;
  }
  #view:is([data-section="build"], [data-section="projects"]) .build-row .v2-row-go {
    flex: 0 0 auto;
  }
}


/* Workspace Files: a compact image grid with the prompt and actions kept easy to reach. */
#view[data-section="space"] .gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  min-width: 0;
}
#view[data-section="space"] .gallery figure {
  min-width: 0;
}
#view[data-section="space"] .gallery figcaption > span:first-child {
  min-width: 0;
}
#view[data-section="space"] .gallery figcaption .row {
  min-width: 0;
}
#view[data-section="space"] .gallery figcaption a:focus-visible,
#view[data-section="space"] .gallery figcaption button:focus-visible {
  outline: 2px solid var(--ds-accent-2);
  outline-offset: 2px;
  border-radius: 8px;
}
#view[data-section="space"] .media-links .item {
  min-width: 0;
  align-items: center;
}
#view[data-section="space"] .media-links .item .grow {
  min-width: 0;
  overflow-wrap: anywhere;
}
#view[data-section="space"] .media-links select {
  min-width: 130px;
  max-width: 100%;
}
@media (max-width: 480px) {
  #view[data-section="space"] .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #view[data-section="space"] .gallery figcaption {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  #view[data-section="space"] .gallery figcaption .row {
    justify-content: flex-end;
  }
  #view[data-section="space"] .gallery figcaption .row .icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }
  #view[data-section="space"] .media-links .item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #view[data-section="space"] .media-links select {
    width: 100%;
  }
}


/* My Space hub: keep descriptive link hints readable instead of clipping them to one line. */
#view[data-section="me"] .me-head,
#view[data-section="me"] .me-groups,
#view[data-section="me"] .me-group {
  min-width: 0;
}
#view[data-section="me"] .me-groups .hub-row {
  min-width: 0;
  align-items: center;
}
#view[data-section="me"] .me-groups .hub-text {
  min-width: 0;
}
#view[data-section="me"] .me-groups .hub-text .fine {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
#view[data-section="me"] .me-groups .hub-chev {
  flex: 0 0 auto;
}
#view[data-section="me"] .me-groups .hub-row:focus-visible {
  outline: 2px solid var(--ds-accent-2);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  #view[data-section="me"] .me-head {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }
  #view[data-section="me"] .me-avatar-ring {
    width: 64px;
    height: 64px;
  }
  #view[data-section="me"] .me-avatar-ring img {
    width: 58px;
  }
  #view[data-section="me"] .me-name-row h1 {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
  }
  #view[data-section="me"] .me-edit {
    min-width: 0;
    min-height: 44px; /* 44 px tap target (consolidation §4) */
  }
  #view[data-section="me"] .me-groups .hub-row {
    gap: 9px;
    padding: 10px;
  }
  #view[data-section="me"] .me-groups .hub-text b {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}



/* CONE V2 master dashboard refinement (2026-11-17).
   Visual-only polish for the existing Home command center; no destination, Lab or GameLab behavior changes. */
#view:has(.hm-layout) .hm-layout,
#view:has(.hm-layout) .hm-main,
#view:has(.hm-layout) .hm-rail {
  min-width: 0;
}
#view:has(.hm-layout) .hm-hero {
  border: 1px solid rgba(255, 122, 26, .38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 16px 38px rgba(0, 0, 0, .24),
    0 0 28px rgba(255, 122, 26, .08);
}
#view:has(.hm-layout) .hm-hero .hm-ask {
  min-width: 0;
  border: 1px solid rgba(255, 145, 54, .40);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(8, 8, 10, .94), rgba(18, 12, 8, .90));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 24px rgba(0, 0, 0, .22);
  transition: border-color .16s ease, box-shadow .16s ease;
}
#view:has(.hm-layout) .hm-hero .hm-ask:focus-within {
  border-color: var(--ds-accent-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 3px rgba(255, 122, 26, .14);
}
#view:has(.hm-layout) .hm-hero .hm-ask input {
  min-width: 0;
  color: var(--ds-text);
}
#view:has(.hm-layout) .hm-hero .hm-ask button {
  flex: 0 0 auto;
}
#view:has(.hm-layout) .hm-quick-card,
#view:has(.hm-layout) .hm-intel {
  border-color: rgba(255, 122, 26, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 12px 28px rgba(0, 0, 0, .18);
}
#view:has(.hm-layout) .hm-qa6,
#view:has(.hm-layout) .hm-stat {
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
@media (hover: hover) {
  #view:has(.hm-layout) .hm-qa6:hover,
  #view:has(.hm-layout) .hm-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 150, 50, .72);
    box-shadow: 0 9px 22px rgba(0, 0, 0, .22), 0 0 18px rgba(255, 110, 20, .10);
  }
}
@media (min-width: 1181px) {
  #view:has(.hm-layout) .hm-rail {
    position: sticky;
    top: 84px;
    align-self: start;
    max-height: calc(100dvh - 102px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    padding-right: 2px;
  }
}
@media (max-width: 820px) {
  #view:has(.hm-layout) .hm-hero { border-radius: var(--ds-r-lg); }
  #view:has(.hm-layout) .hm-hero .hm-ask { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #view:has(.hm-layout) .hm-hero .hm-ask,
  #view:has(.hm-layout) .hm-qa6,
  #view:has(.hm-layout) .hm-stat {
    transition: none;
  }

}

/* A destination's tools (js/hubs.js, 2026-11-20): an underlined strip, so it never looks like a page's own orange tabs. */
.hub-tabs { display: flex; gap: 2px; margin: 0 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-bottom: 2px solid transparent; color: var(--ds-text-2); font: 600 .9rem var(--ds-font); text-decoration: none; white-space: nowrap; }
.hub-tabs a:hover { color: var(--ds-text); }
.hub-tabs a[aria-current=page] { color: var(--ds-text); border-bottom-color: #ff7a1a; }
.hub-tabs a:focus-visible { outline: 2px solid #ff8a2a; outline-offset: -2px; }
/* Community's feed filters (All · Following · My communities · Questions, 2026-11-20): chips, not underlined links. */
.feed-filters { margin: -4px 0 12px; }
.feed-filters a.chip { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.feed-filters a.chip[aria-current=page] { border-color: var(--ds-accent-line, #ff7a1a); color: var(--ds-text); background: rgba(255, 122, 26, .14); }

/* Labs inside the app (2026-11-21): the Lab frame already shows the tool's name and one line on what it does, so the
   public page's banner shrinks to its small label, its description and its status chips (the honest limits) instead of
   a second marketing headline above the work. Public pages are unchanged (this file is app-only). */
.lab-shell-body :is(.eco-tool-hero, .page-hero, .decision-hero, .lab-workspace-hero) {
  min-height: 0; margin: 0 0 14px; padding: 0; border: 0; background: none; box-shadow: none; display: block; text-align: left;
}
.lab-shell-body :is(.eco-tool-hero, .page-hero, .decision-hero, .lab-workspace-hero) h1,
.lab-shell-body .decision-orbit, .lab-shell-body .decision-breadcrumb { display: none; }
.lab-shell-body :is(.eco-tool-hero, .page-hero, .decision-hero, .lab-workspace-hero) .eyebrow { margin: 0 0 4px; font-size: .72rem; }
.lab-shell-body :is(.eco-tool-hero, .page-hero, .decision-hero, .lab-workspace-hero) p:not(.eyebrow) { margin: 0 0 8px; max-width: 72ch; font-size: .9rem; color: var(--ds-text-2); }
.lab-shell-body .decision-hero-copy { max-width: none; padding: 0; margin: 0; }
.lab-shell-body :is(.eco-tool-hero, .page-hero, .decision-hero, .lab-workspace-hero) { overflow: visible; background-image: none; }
.lab-shell-body :is(.eco-tool-hero, .page-hero, .decision-hero, .lab-workspace-hero)::before,
.lab-shell-body :is(.eco-tool-hero, .page-hero, .decision-hero, .lab-workspace-hero)::after { display: none; }
/* The sidebar's account footer only holds owners' links now (2026-11-21); members have none, so it takes no space. */
.side .os-nav-foot:empty { display: none; }
/* Drawn storyboard frames and ad visuals on a job's approved version (2026-11-21). */
.rr-frames { margin-top: 10px; display: grid; gap: 8px; }
.rr-frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rr-frame { margin: 0; display: grid; gap: 4px; }
.rr-frame img, .rr-frame-miss { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--ds-line, rgba(255,255,255,.1)); }
.rr-frame-miss { display: grid; place-items: center; padding: 8px; font-size: .78rem; color: var(--ds-text-2); text-align: center; }
.rr-frame figcaption { font-size: .78rem; color: var(--ds-text-2); }
/* Freelance workforce summary in the Revenue room (2026-11-21). Wraps to two columns on a phone. */
.rr-freelance { margin: 10px 0; }
.rr-freelance > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.rr-fl-steps { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.rr-fl-steps li { display: grid; gap: 2px; padding: 8px; border-radius: 10px; border: 1px solid var(--ds-line, rgba(255,255,255,.1)); }
.rr-fl-steps b { font-size: 1.2rem; }
.rr-fl-steps span { font-size: .78rem; color: var(--ds-text-2); }
.rr-fl-blockers { margin: 6px 0; padding-left: 18px; }
