/* CONE V2 look for the signed-in app (moved out of cone-ds.css on 2026-11-20 so public pages don't download it).
   app.html loads it immediately after cone-ds.css, so the cascade order in the app is unchanged. */
/* ===================== CONE V2 look (owner's four mockups, 2026-11-10) =====================
   Warm black, glowing orange edges, the mascot hero, a right-hand column on Home and the phone layout. Scoped to the
   signed-in app (.shell) so public pages keep their own look. Colours only; every number on screen stays real. */
body:has(.shell) { background: radial-gradient(1100px 560px at 78% -12%, rgba(255, 110, 20, .13), transparent 60%), radial-gradient(900px 520px at -12% 112%, rgba(255, 90, 10, .10), transparent 60%), #070504; }
.shell { --v2-card: linear-gradient(180deg, #16100b 0%, #0d0907 100%); --v2-edge: rgba(255, 122, 26, .30); --v2-edge-hi: rgba(255, 150, 50, .70);
  --v2-glow: 0 0 0 1px rgba(255, 122, 26, .05), 0 0 24px rgba(255, 110, 20, .10), inset 0 1px 0 rgba(255, 190, 110, .06); }
.shell .card, .shell .hm-stat, .shell .hm-qa, .shell .os-tile, .shell .lab-os .lab-shell-bar, .shell .lab-cone, .shell .hm-banner {
  background: var(--v2-card); border: 1px solid var(--v2-edge); border-radius: 16px; box-shadow: var(--v2-glow); }
.shell a.hm-stat:hover, .shell a.hm-qa:hover, .shell .os-tile:hover, .shell a.card:hover { border-color: var(--v2-edge-hi); box-shadow: 0 0 0 1px rgba(255, 140, 40, .18), 0 0 30px rgba(255, 110, 20, .18); }
.shell .btn:not(.ghost) { background: var(--ds-grad); color: #160b02; border-color: transparent; box-shadow: 0 6px 20px rgba(255, 122, 26, .35); }
.shell .btn.ghost { border-color: var(--v2-edge); }
.shell .btn.ghost:hover { border-color: var(--v2-edge-hi); color: var(--ds-accent-2); }

/* Sidebar: deep black with a warm edge; the current page is a filled orange pill; the mascot plan card at the bottom. */
.shell .side { background: linear-gradient(180deg, #0d0906 0%, #070504 100%); border-right: 1px solid rgba(255, 122, 26, .22); box-shadow: 1px 0 28px rgba(255, 100, 20, .07); }
.shell .os-nav a { border-radius: 12px; }
.shell .os-nav a[aria-current=page] { background: linear-gradient(90deg, #ff7a1a, #ffa23a); color: #170b02; font-weight: 700; box-shadow: 0 6px 22px rgba(255, 122, 26, .40); }
.shell .os-nav a[aria-current=page] .ico, .shell .os-nav a[aria-current=page] small { color: #170b02; background: transparent; }
.plan-card { display: grid; justify-items: center; gap: 2px; margin: 10px 4px 6px; padding: 12px 10px 12px; border-radius: 16px; border: 1px solid rgba(255, 140, 40, .45);
  background: radial-gradient(120px 90px at 50% 0%, rgba(255, 130, 30, .22), transparent 70%), linear-gradient(180deg, #1a110a, #0d0806); box-shadow: 0 0 26px rgba(255, 110, 20, .16); text-align: center; }
.plan-card img { width: 64px; height: auto; margin-top: -2px; filter: drop-shadow(0 6px 14px rgba(255, 120, 30, .35)); }
.plan-card-title { font-family: var(--ds-font-display); font-size: 1.05rem; }
.plan-card-sub { color: var(--ds-good); font-size: .8rem; }
.plan-card-sub::before { content: "● "; }
.plan-card-btn { margin-top: 6px; width: 100%; justify-content: center; }
@media (max-height: 820px) { .plan-card { display: none; } } /* short screens keep the nav first */

/* Desktop top bar (owner's mockup): search in the middle, points and icons on the right. Phones keep their own bar. */
.top-search { display: none; }
@media (min-width: 821px) {
  .shell .topbar { display: flex; gap: 16px; position: sticky; top: 0; z-index: 30; padding: 10px clamp(16px, 3vw, 36px); background: rgba(7, 5, 4, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 122, 26, .16); }
  .shell .topbar .os-menu-top, .shell .topbar > .brand, .shell .topbar > .top-title, .shell .palette-mobile { display: none; }
  .top-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 640px; margin-inline: auto; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 122, 26, .30); background: #0f0a07; color: var(--ds-text-2); font: inherit; cursor: pointer; text-align: left; }
  .top-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-search kbd { font-size: .75rem; border: 1px solid var(--ds-line-2); border-radius: 6px; padding: 1px 6px; color: var(--ds-text-3); }
  .top-search:hover, .top-search:focus-visible { border-color: var(--v2-edge-hi); color: var(--ds-text); outline: none; box-shadow: 0 0 22px rgba(255, 110, 20, .18); }
  .shell .topbar .xpchip { border: 1px solid rgba(255, 160, 60, .55); border-radius: 999px; padding: 6px 12px; background: linear-gradient(90deg, rgba(255, 122, 26, .20), rgba(255, 176, 74, .10)); color: var(--ds-accent-2); font-weight: 700; }
  /* the top bar holds search, points, chats and alerts now: the sidebar doesn't repeat them */
  .shell .side .palette-open, .shell .side .who-row { display: none; }
}

/* Home hero (owner's mockup): greeting with the name in orange, real date and status, the mascot, Ask inside. */
.hm-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 16px; padding: clamp(18px, 2.4vw, 28px); border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 130, 35, .40); background: radial-gradient(520px 260px at 82% 10%, rgba(255, 120, 25, .26), transparent 70%), linear-gradient(180deg, #1a110a 0%, #0c0806 100%); box-shadow: 0 0 34px rgba(255, 110, 20, .14); }
.hm-hero .hm-hello { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0; }
.hm-name { color: var(--ds-accent); }
.hm-hero .hm-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; text-align: left; }
.hm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ds-line-2); background: rgba(0, 0, 0, .35); font-size: .82rem; color: var(--ds-text-2); }
.hm-hero-art { width: clamp(120px, 15vw, 210px); height: auto; align-self: end; margin-bottom: -6px; filter: drop-shadow(0 10px 26px rgba(255, 110, 20, .35)); }
.hm-hero-ask { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 6px; }
.hm-hero .hm-ask { background: #0b0806; border: 1px solid rgba(255, 140, 40, .55); box-shadow: 0 0 26px rgba(255, 110, 20, .18); border-radius: 999px; }

/* Home: main column plus the right-hand column on wide screens. */
.hm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 16px; align-items: start; }
.hm-layout.no-rail { grid-template-columns: minmax(0, 1fr); }
.hm-rail { position: sticky; top: 76px; }
@media (max-width: 1180px) { .hm-layout { grid-template-columns: minmax(0, 1fr); } .hm-rail { position: static; } }
.shell .hm-stat .hm-stat-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 122, 26, .14); color: var(--ds-accent); }
.shell .hm-stat .hm-stat-value { font-size: 1.6rem; }
.hm-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 22px; background: radial-gradient(600px 160px at 20% 50%, rgba(255, 120, 25, .22), transparent 70%), linear-gradient(90deg, #1b110a, #0c0806) !important; }
.hm-banner img { width: 84px; height: auto; margin: -12px 0 -16px; }
.hm-banner h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.hm-banner p { margin: 2px 0 0; color: var(--ds-text-2); }

/* Phones (owner's mobile mockup): the same look, the hero compact, the tab bar's current tab a filled orange square. */
@media (max-width: 820px) {
  .shell .topbar { background: rgba(7, 5, 4, .92); border-bottom: 1px solid rgba(255, 122, 26, .16); }
  .hm-hero { grid-template-columns: minmax(0, 1fr) 96px; padding: 16px; }
  .hm-hero-art { width: 96px; }
  .hm-hero .hm-hello { font-size: 1.55rem; }
  .shell .tabbar { background: rgba(9, 6, 4, .96); border-top: 1px solid rgba(255, 122, 26, .25); box-shadow: 0 -8px 26px rgba(255, 100, 20, .08); }
  .shell .tabbar a[aria-current=page] { color: #170b02; background: linear-gradient(180deg, #ff8a2b, #ff6a10); box-shadow: 0 4px 16px rgba(255, 122, 26, .45); }
  .shell .tabbar a[aria-current=page] .ico { color: #170b02; }
  .hm-banner { padding: 14px 16px; } .hm-banner img { display: none; }
}
/* V2 look, refinements: the mascot sits at the hero's top right (compact hero), stat values stay on one line, and the
   plan card replaces the "Private beta" line when it's shown. */
.hm-hero { display: block; }
.hm-hero-text { padding-right: clamp(120px, 16vw, 230px); min-height: 120px; }
.hm-hero-art { position: absolute; right: clamp(14px, 2vw, 30px); top: 10px; width: clamp(110px, 13vw, 180px); margin: 0; pointer-events: none; }
.hm-hero-ask { position: relative; margin-top: 14px; }
.shell .hm-stat .hm-stat-value { font-size: 1.35rem; white-space: nowrap; }
.shell .hm-stat small { overflow: hidden; text-overflow: ellipsis; }
@media (min-height: 821px) { .shell .side > p.fine:first-of-type { display: none; } }
@media (max-width: 820px) { .hm-hero-text { padding-right: 92px; min-height: 0; } .hm-hero-art { width: 84px; top: 8px; right: 8px; } }
.hm-layout .hm-quick { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.hm-layout .hm-qa { padding: 12px 14px; }
.hm-layout .hm-qa .hm-qa-long { font-size: .95rem; line-height: 1.25; }
@media (max-width: 820px) {
  .hm-hero .hm-hello { font-size: 1.45rem; line-height: 1.15; }
  .hm-hero .muted { font-size: .85rem; margin: 4px 0 0; }
  .hm-hero .hm-date { margin-top: 8px; gap: 6px; }
  .hm-hero .hm-date .hm-doing { max-width: 100%; white-space: normal; } /* what CONE is doing stays visible on phones (2026-11-20) */
  .hm-hero #home-customize-btn { font-size: 0; padding: 0; min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; } /* 44 px tap target on phones (§4) */
  .hm-hero #home-customize-btn svg { width: 16px; height: 16px; }
  .hm-hero-ask { margin-top: 10px; }
}
/* Inside the Lab frame on every screen (owner's Studio Lab mockup): straight from the frame bar to the workspace. The
   breadcrumb names the lab; Studio's blurb, Open BUILD and each lab's intro paragraph step aside (headings stay). */
.lab-os .studio-view-head > div > p, .lab-os .studio-view-head > .row, .lab-os .studio-tab-intro > p:not(.fine) { display: none; }
.lab-os .studio-view-head { margin-bottom: 8px; }
.lab-os .studio-view-head h1 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0; }
/* Fit fixes: the search pill and the Ask shortcuts shrink and scroll inside themselves instead of widening the page. */
.top-search { min-width: 0; }
.shell .topbar .topbar-actions { flex: none; }
.hm-hero-ask { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hm-hero-ask > * { min-width: 0; max-width: 100%; }
@media (min-width: 821px) and (max-width: 1100px) { .top-search kbd { display: none; } .shell .topbar .xpchip-bar { display: none; } }
.hm-main, .hm-rail { min-width: 0; } /* grid children may shrink below their content: no sideways scroll at 375px */
.hm-main, .hm-rail { grid-template-columns: minmax(0, 1fr); } .hm-main > *, .hm-rail > * { min-width: 0; }
@media (max-width: 600px) { .shell .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shell .hm-stat .hm-stat-value { white-space: normal; font-size: 1.2rem; } }
/* Ask CONE welcome (owner's mobile mockup): a big CONE title and the one-line promise. */
.ask-hero-name { font-family: var(--ds-font-display); font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: .02em; text-shadow: 0 0 24px rgba(255, 120, 30, .45); }
.ask-hero-tag { font-size: clamp(.95rem, 2.6vw, 1.1rem); font-weight: 500; color: var(--ds-text-2); }
/* Brand (owner's mockups): CONE SUPREME V2, tagline below. */
.shell .brand-v2 { gap: 9px; align-items: center; padding: 4px 6px 12px; }
.shell .brand-v2 .brand-words { display: grid; gap: 2px; line-height: 1.05; }
.shell .brand-v2 .brand-name { font: 800 17px var(--ds-font-display); letter-spacing: .02em; color: #fff; white-space: nowrap; }
.shell .brand-v2 .brand-tag { font: 600 8.5px var(--ds-font); letter-spacing: .06em; text-transform: uppercase; color: var(--ds-text-2); text-align: left; white-space: nowrap; }
@media (max-width: 820px) { .shell .topbar .brand-v2 .brand-tag { display: none; } .shell .topbar .brand-v2 .brand-name { font-size: 15px; } }
/* Phone Home (owner's mobile mockup): the Ask shortcuts are square icon tiles under the Ask bar. */
@media (max-width: 600px) {
  .hm-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; flex-wrap: wrap; }
  .hm-chip { flex-direction: column; justify-content: center; gap: 5px; min-height: 66px; padding: 8px 4px; border-radius: 14px; font-size: .78rem; text-align: center; line-height: 1.15;
    background: linear-gradient(180deg, #1a110a, #0d0907); border-color: rgba(255, 122, 26, .30); }
  .hm-chip svg { width: 22px; height: 22px; color: var(--ds-accent); }
}
.shell .side .brand-v2 .brand-tag { font-size: 7.4px; letter-spacing: .03em; }
@media (max-width: 820px) { .shell .topbar .brand-v2 .brand-sup { display: none; } .shell .topbar .brand-v2 img { width: 26px; height: auto; } }
/* CONE Intelligence card (owner's mockup: right-hand column, Insights · Opportunities · Alerts). */
.hm-intel { display: grid; gap: 12px; }
.hm-intel-head { display: flex; align-items: center; gap: 10px; }
.hm-intel-head h2 { margin: 0; font-size: 1.15rem; }
.hm-intel-head small { color: var(--ds-text-2); }
.hm-intel-crown { color: var(--ds-accent); }
.hm-intel-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--ds-line-2); background: rgba(0, 0, 0, .3); }
.hm-intel-tabs button { min-height: 34px; border: 0; border-radius: 9px; background: none; color: var(--ds-text-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hm-intel-tabs button[aria-selected="true"] { background: linear-gradient(90deg, rgba(255, 122, 26, .30), rgba(255, 176, 74, .18)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 140, 40, .55); }
.hm-intel-tabs button:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 1px; }
.hm-intel .hm-intel-pane > .card { border: 0; box-shadow: none; background: none; padding: 0; }
.hm-intel-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ds-line-2); background: rgba(0, 0, 0, .25); color: var(--ds-text); text-decoration: none; }
.hm-intel-row:hover { border-color: rgba(255, 150, 50, .6); }
.hm-intel-row b { display: block; font-size: .9rem; }
.hm-intel-row small { color: var(--ds-text-2); font-size: .78rem; }
.hm-intel-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 122, 26, .14); color: var(--ds-accent); flex: none; }
.hm-intel-plan { width: 100%; justify-content: center; border-color: rgba(255, 140, 40, .6) !important; color: var(--ds-accent-2); }
/* Tools & Labs (owner's desktop mockup): a panel on the left (search, filters, the labs in their colours), the
   overview and groups on the right. One column below 1100px, without the extra list. */
.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.lp-list { display: none; }
.lp-overview-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lp-overview-head .sec-title { margin: 0; }
@media (min-width: 1100px) {
  .lp-layout { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); }
  .lp-panel { position: sticky; top: 76px; display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255, 122, 26, .30); background: linear-gradient(180deg, #16100b, #0c0806); box-shadow: 0 0 24px rgba(255, 110, 20, .10); max-height: calc(100vh - 96px); overflow: auto; }
  .lp-panel .view-head { margin: 0; } .lp-panel .view-head h1 { font-size: 1.6rem; } .lp-panel .view-head p { font-size: .88rem; }
  .lp-panel .os-lp-bar { display: grid; gap: 10px; }
  .lp-panel .chips { flex-wrap: wrap; }
  .lp-list { display: grid; gap: 8px; }
  .lp-list-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 16%, transparent), transparent 80%); color: var(--ds-text); text-decoration: none; }
  .lp-list-row:hover, .lp-list-row:focus-visible { border-color: var(--tone); outline: none; }
  .lp-list-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--tone) 85%, #000); color: #fff; flex: none; }
  .lp-list-row b { display: block; font-size: .92rem; }
  .lp-list-row small { display: block; color: var(--ds-text-2); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
}
/* Tools & Labs panel chips a size down (mockup). */
@media (min-width: 1100px) { .lp-panel .chip { padding: 5px 11px; font-size: .82rem; min-height: 32px; } }
/* Lab frame bar (owner's Studio Lab mockup): breadcrumbs on top; the lab's title row and its actions below. */
.lab-os .lab-shell-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "crumbs crumbs" "title actions"; align-items: center; gap: 10px 16px; padding: 12px 16px; }
.lab-os .lab-crumbs { grid-area: crumbs; }
.lab-os .lab-title { grid-area: title; }
.lab-os .lab-bar-actions { grid-area: actions; justify-self: end; }
.lab-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lab-title-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 85%, #000); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--tone) 40%, transparent); flex: none; }
.lab-title-text { min-width: 0; }
.lab-title-name { margin: 0; font: 800 clamp(1.25rem, 2vw, 1.6rem) var(--ds-font-display); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lab-title-tag { font: 700 .66rem var(--ds-font); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--tone); color: var(--tone); }
.lab-title-text small { display: block; color: var(--ds-text-2); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  .lab-os .lab-shell-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "title" "actions"; }
  .lab-os .lab-bar-actions { justify-self: stretch; }
  .lab-title-ico { width: 38px; height: 38px; } .lab-title-text small { white-space: normal; }
}
/* The frame's title row names the lab, so Studio's own headings stay for screen readers only (every screen). */
.lab-os .studio-view-head h1, .lab-os .studio-tab-intro > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lab-os .studio-view-head { margin: 0; }
/* The signed-in app scrolls instantly: page-wide smooth scrolling (modern-ui.css, meant for the public pages) made
   long in-app jumps drift under the pointer. Smooth scrolls the app wants ask for it in code ({ behavior: "smooth" }). */
html:has(.shell) { scroll-behavior: auto; }
/* Phone top bar at 320px (Revenue Ops checks): the brand shows the mascot only, so the icons fit. */
@media (max-width: 360px) { .shell .topbar .brand-v2 .brand-words { display: none; } }
/* The lab bar never widens the page: its actions and the mirrored status shrink and truncate (a long Game Lab status
   made phones 408px wide and zoomed the page out). */
.lab-os .lab-bar-actions, .lab-tools, .lab-tool-status { min-width: 0; max-width: 100%; }
@media (max-width: 820px) { .lab-tools { flex: 1 1 100%; } }

/* Standing approvals card (js/standing-approvals.js) */
.sa-rule { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.sa-rule legend { font-weight: 600; padding: 0 6px; }
.sa-field { flex: 1 1 140px; min-width: 0; }
.sa-check { gap: 8px; align-items: center; }
.side .xpchip-xp { display: none; } /* the sidebar's chip is narrow: level and bar only */

/* Home: Today's mission when nothing is due (2026-11-16): the next steps under the line. */
.hm-mission-empty .hm-mission-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
