/* Bureo shell M1: the CEO command center (app/ceo-canvas.js, M1 branch) on the kit. HQ 21: no card around the page (the work
   panel is the ground), the tiles are the kit's k-kt (icon + ↗ menu, one light numeral, one line or one soft dot pill, one
   "Review" per view), a row of tiles is always full (1–4 across, 2 × 2 beside the chat); an open tile's details are a card under
   the grid, so the grid never reflows (HQ 22); the brief is a k-card2 with the
   kit's quiet segmented control, no orange edges. Scoped under html.b-m1; kit tokens only. */
html.b-m1 #gwCeo.card{background:none;box-shadow:none;padding:0;border-radius:0;margin-bottom:0}
html.b-m1 .m1-ceo{display:flex;flex-direction:column;gap:10px;background:none;padding-bottom:0}   /* the classic phone padding (220 px for the old chat sheet) left a dead gap in the M1 sheet */
html.b-m1 .m1-ceo>*{margin:0}
html.b-m1 .m1-ceo-scope{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:var(--k-t-xs);color:var(--k-text-2)}

/* the tile rows: never a dead half */
html.b-m1 .m1-ceo-kts{margin:0;grid-auto-flow:row dense;align-items:stretch}
html.b-m1 .m1-ceo-kts[data-n="1"]{grid-template-columns:minmax(0,1fr)}
html.b-m1 .m1-ceo-kts[data-n="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
html.b-m1 .m1-ceo-kts[data-n="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
html.b-m1 .m1-ceo{container-type:inline-size}
html.b-m1 .m1-ceo-kts[data-n="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
/* four tiles: 2 × 2 while the panel is beside the chat (a quarter of it is too narrow for a label and a numeral), 4 across when wide */
@container (max-width:720px){html.b-m1 .m1-ceo-kts[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* the tile: the kit's k-kt; the classic status edges are gone (the alert is the pill) */
html.b-m1 .m1-ceo .k-kt{box-shadow:0 10px 30px -24px rgba(20,22,30,.45);padding:12px 14px}
html.b-m1 .m1-ceo .k-kt .k-kh small{font-size:var(--k-t-cap);color:var(--k-text-3);flex:none}
html.b-m1 .m1-ceo .k-kt>b{color:var(--k-text);line-height:1.2;margin-top:4px}
html.b-m1 .m1-ceo .k-kt>em{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html.b-m1 .m1-ceo .k-kt>.k-spill{align-self:flex-start;margin-top:4px}
/* the round ↗ opens the tile's menu; 44 px to tap on a phone, the study's 30 px to see (the kit hides ↗ on a phone: here it holds Remove) */
html.b-m1 .m1-ceo .k-kt .k-arr{display:grid;cursor:pointer}
html.b-m1 .m1-ceo .k-kt .k-kh{padding-right:34px}
html.b-m1 .m1-ceo .k-arr::after{content:"";position:absolute;inset:-7px}
html.b-m1 .m1-ceo .k-arr[aria-expanded="true"]{background:var(--ka-soft)}
html.b-m1 .m1-ceo-menu{position:absolute;top:44px;right:10px;z-index:6;width:max-content;max-width:calc(100% - 20px);display:flex;flex-direction:column;padding:6px;border-radius:16px;background:var(--ka-card);border:1px solid var(--ka-soft);box-shadow:0 18px 40px -18px rgba(20,22,30,.45)}
html.b-m1 .m1-ceo-menu[hidden]{display:none}
html.b-m1 .m1-ceo-menu button{min-height:var(--k-tap);border:0;background:none;color:var(--k-text);font:inherit;font-size:var(--k-t-sm);text-align:left;padding:8px 12px;border-radius:10px;cursor:pointer;white-space:normal;line-height:1.3}
html.b-m1 .m1-ceo-menu button:hover,html.b-m1 .m1-ceo-menu button:focus-visible{background:var(--ka-soft)}
html.b-m1 .m1-ceo-why{margin:0 0 4px;color:var(--k-text-2)}

/* the one visible action: Review (opens the tile's details in a card under the grid; Close folds them) */
html.b-m1 .m1-ceo-rv{margin-top:10px;align-self:flex-start;color:var(--k-text);background:var(--ka-card);border-color:var(--ka-soft)}
html.b-m1 .m1-ceo-rv:hover{border-color:var(--k-line-strong)}
html.b-m1 .m1-ceo-rv .m1-ceo-cls,html.b-m1 .m1-ceo-rv[aria-expanded="true"] .m1-ceo-rev{display:none}
html.b-m1 .m1-ceo-rv[aria-expanded="true"] .m1-ceo-cls{display:inline}
/* the open tile is marked with a quiet ring; the grid never reflows (HQ 22): its details are the grid's last, full-width row */
html.b-m1 .m1-ceo .k-kt.m1-ceo-on{box-shadow:inset 0 0 0 1.5px var(--k-line-strong),0 10px 30px -24px rgba(20,22,30,.45)}
html.b-m1 .m1-ceo-detail{grid-column:1/-1;padding:12px 16px 14px}
html.b-m1 .m1-ceo-detail[hidden]{display:none}
html.b-m1 .m1-ceo-detail .k-c2h{padding-right:0}
html.b-m1 .m1-ceo-detail .b-ceo-tb{padding:0;font-size:var(--k-t-xs);color:var(--k-text)}
html.b-m1 .m1-ceo-detail .b-ceo-row{border-top-color:var(--ka-soft)}
/* a label stays on one line (the full label in its title) */
html.b-m1 .m1-ceo .k-kt .k-kh .k-ell{min-width:0}

/* the brief: a k-card2, the title with its count, the quiet segmented control, the numbered list, one button */
html.b-m1 .m1-ceo-brief{padding:14px 16px 16px;gap:8px;border:0}
html.b-m1 .m1-ceo-more .k-kts{margin-top:8px}
html.b-m1 .m1-ceo-brief .k-c2h{padding-right:0;align-items:flex-start}
html.b-m1 .m1-ceo-brief .k-wt b{font-size:var(--k-t-md)}
html.b-m1 .m1-ceo-seg{width:180px;margin:0;flex:none}
html.b-m1 .m1-ceo-seg button{cursor:pointer;min-height:32px}
html.b-m1 .m1-ceo-brief .b-ceo-top{margin:4px 0 0;gap:8px}
html.b-m1 .m1-ceo-brief .b-ceo-top li::before{background:var(--ka-soft);color:var(--k-text-2);font-size:var(--k-t-cap)}
html.b-m1 .m1-ceo-brief .b-ceo-top li.b-ceo-sev--high::before{background:var(--k-warn-soft);color:var(--k-warn-ink)}
html.b-m1 .m1-ceo-brief .b-ceo-item{font-size:var(--k-t-sm);color:var(--k-text);line-height:1.4}
html.b-m1 .m1-ceo-brief .b-ceo-rev{font-size:var(--k-t-xs);color:var(--k-text-2)}
html.b-m1 .m1-ceo-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:6px}
html.b-m1 .m1-ceo-bar .b-ceo-note{margin:0;font-size:var(--k-t-xs)}
html.b-m1 .m1-ceo .k-btn{cursor:pointer}

/* the chat's answer, the calm line, the decisions: on the kit's ground */
html.b-m1 .m1-ceo-answer{background:none;box-shadow:none;border:0;padding:0;margin:0;gap:8px}
html.b-m1 .m1-ceo-answer .k-eyebrow{margin:0}
html.b-m1 .m1-ceo-calm{margin:0;background:var(--ka-card);border-radius:20px;padding:12px 16px}
html.b-m1 .m1-ceo-calm .b-ceo-calm-i{color:var(--k-text-2)}
html.b-m1 .m1-ceo-calm .b-ceo-calm-i b{color:var(--k-text);font-weight:500}
html.b-m1 .m1-ceo .b-ceo-decs{margin:0}
html.b-m1 .m1-ceo .b-ceo-dec{background:var(--ka-card);box-shadow:none;border-radius:20px}

/* phone: three tiles are one full row and two halves; four are 2 × 2 */
@media (max-width:760px){
  html.b-m1 .m1-ceo-kts[data-n="3"],html.b-m1 .m1-ceo-kts[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.b-m1 .m1-ceo-kts[data-n="3"]>.k-kt:first-child{grid-column:1/-1}
  html.b-m1 .m1-ceo .k-kt>b{font-size:24px}
  html.b-m1 .m1-ceo-seg{width:150px}
  html.b-m1 .m1-ceo-menu{right:6px;min-width:0;max-width:calc(100% - 12px)}
}
