/* ==========================================================================
   Chief of Staff dashboard — dashboard/cos-home.blade.php.
   Every rule is .hb-* (or scoped under .hb), so nothing here reaches another
   page or the shared card code (whose .cos-* look comes from cos-embed-styles).
   Tokens from wilma-modern-tokens.css, with fallbacks.
   ========================================================================== */

/* The tokens, also for a dialog that sits on <body> outside .hb (class hb-tokens), so the shared
   .hb-btn / .hb-* look reaches it without a copy. */
.hb, .hb-tokens {
    --hb-navy: var(--w-navy, #0f3a5d);
    --hb-ink: var(--w-ink, #33506b);
    --hb-muted: var(--w-muted, #6f8aa3);
    --hb-line: var(--w-line, #e3e9f0);
    --hb-soft: #f5f8fb;
    --hb-blue: var(--w-blue, #1a8af1);
    --hb-green: var(--w-green, #37a000);
    --hb-green-dark: var(--w-green-dark, #2d7e00);
    --hb-red: #d9483b;
    --hb-amber: #d98e1d;
    --hb-radius: 14px;
    --hb-shadow: 0 1px 2px rgba(15, 58, 93, .04), 0 1px 8px rgba(15, 58, 93, .04);
    --hb-shadow-lg: 0 12px 40px rgba(15, 58, 93, .18);
}
.hb {
    padding: 20px 24px 110px; color: var(--hb-ink);   /* full width, like the care team dashboard */
}
.hb [hidden] { display: none !important; }
.hb button { font: inherit; }
.hb a { text-decoration: none; }

/* ---- Header ---------------------------------------------------------------- */
.hb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.hb-hello { min-width: 0; flex: 1 1 auto; }
.hb-greet { font-size: 13px; color: var(--hb-muted); margin-bottom: 4px; }
.hb-headline { font: 600 24px/1.25 var(--w-font-semibold, sans-serif); color: var(--hb-navy); margin: 0 0 6px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hb-report { font-size: 14px; line-height: 1.5; color: var(--hb-ink); max-width: 900px; }
.hb-report p { margin: 0; }
.hb-since { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; }
.hb-since-lead { color: var(--hb-muted); margin-right: 2px; }
.hb-head-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.hb-btn { appearance: none; border: 1px solid var(--hb-line); background: #fff; color: var(--hb-ink); border-radius: 10px;
          padding: 8px 14px; font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer; min-height: 38px;
          display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.hb-btn:hover { border-color: #c7d4e1; color: var(--hb-navy); background: #fbfcfe; }
.hb-btn.primary { background: var(--hb-green); border-color: var(--hb-green); color: #fff; }
.hb-btn.primary:hover { background: var(--hb-green-dark); border-color: var(--hb-green-dark); color: #fff; }
.hb-btn.hb-icon-only { width: 38px; padding: 0; }
.hb-btn[aria-busy="true"] i { animation: hb-spin 1s linear infinite; }
.hb-btn[aria-pressed="true"] { background: var(--hb-navy); border-color: var(--hb-navy); color: #fff; }
@keyframes hb-spin { to { transform: rotate(360deg); } }
.hb-link { appearance: none; background: none; border: 0; padding: 0; color: var(--hb-blue); font-size: 12.5px; cursor: pointer;
           display: inline-flex; align-items: center; gap: 5px; min-height: 30px; }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-link { color: #2d7e00; } /* theme (WILMA-1776): was blue */
.hb-link:hover { text-decoration: underline; }
.hb-icon-btn { appearance: none; background: none; border: 0; color: var(--hb-muted); border-radius: 8px; cursor: pointer;
               width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
.hb-icon-btn.lg { width: 36px; height: 36px; font-size: 14px; }
.hb-icon-btn:hover { background: #eef3f8; color: var(--hb-navy); }
.hb-icon-btn[disabled] { opacity: .35; cursor: default; background: none; }
.hb :focus-visible { outline: 2px solid var(--hb-blue); outline-offset: 2px; }

.hb-more { position: relative; }
.hb-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 280px; background: #fff;
          border: 1px solid var(--hb-line); border-radius: 12px; box-shadow: var(--hb-shadow-lg); padding: 8px; }
.hb-pop-head { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hb-muted); padding: 6px 8px 4px; }
.hb-pop-role { padding: 0 6px 8px; border-bottom: 1px solid var(--hb-line); margin-bottom: 4px; }
.hb-menu-item { appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 8px;
                padding: 9px 10px; font-size: 13px; color: var(--hb-ink); cursor: pointer; text-align: left; min-height: 38px; }
.hb-menu-item i { width: 16px; text-align: center; color: var(--hb-muted); }
.hb-menu-item:hover { background: var(--hb-soft); color: var(--hb-navy); }

/* ---- Quick access strip --------------------------------------------------------- */
.hb-quick { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--hb-line);
            border-radius: var(--hb-radius); padding: 10px 12px; margin-bottom: 14px; box-shadow: var(--hb-shadow); }
.hb-search { position: relative; display: flex; align-items: center; flex: 0 1 340px; min-width: 220px; }
.hb-search > i { position: absolute; left: 12px; font-size: 13px; color: #94a7ba; pointer-events: none; }
.hb-search input { width: 100%; padding: 9px 60px 9px 36px; min-height: 40px; border: 1px solid #d3dde7; border-radius: 10px;
                   font-size: 13.5px; background: var(--hb-soft); color: var(--hb-navy); }
.hb-search input:focus { outline: 0; background: #fff; border-color: var(--hb-blue); box-shadow: 0 0 0 3px rgba(26,138,241,.12); }
.hb-kbd { position: absolute; right: 10px; font: 600 10.5px/1 var(--w-font, sans-serif); color: #8aa0b4; background: #fff;
          border: 1px solid #d9e2ea; border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; pointer-events: none; }
.hb-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; background: #fff; border: 1px solid var(--hb-line);
                     border-radius: 12px; box-shadow: var(--hb-shadow-lg); max-height: 360px; overflow-y: auto; padding: 4px; }
.hb-search-results .search-result { padding: 9px 12px; font-size: 13px; color: var(--hb-navy); cursor: pointer; border-radius: 8px;
                                    min-height: 40px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hb-search-results .search-result:hover, .hb-search-results .search-result.active { background: #eef6ff; }
.hb-search-results .search-empty { padding: 12px; font-size: 12.5px; color: var(--hb-muted); }
.hb-recents { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.hb-recents:empty { display: none; }
.hb-recent { font-size: 12.5px; color: var(--hb-navy); background: var(--hb-soft); border: 1px solid var(--hb-line); border-radius: 999px;
             padding: 4px 11px; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; }
.hb-recent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-recent i { color: #9fb2c4; font-size: 11px; }
.hb-recent:hover { border-color: var(--hb-blue); color: var(--hb-blue); }
.hb-doors { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.hb-doors .break-block { display: contents; }
.hb-door { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 12px; min-height: 34px;
           font-size: 12.5px; color: var(--hb-ink); background: #fff; border: 1px solid var(--hb-line); white-space: nowrap; }
.hb-door i { color: #8fa4b8; font-size: 12px; }
.hb-door:hover { border-color: var(--hb-green); color: var(--hb-green-dark); }
.hb-door:hover i { color: var(--hb-green); }

/* ---- Slicer ----------------------------------------------------------------------- */
.hb-slicer { position: sticky; top: 0; z-index: 30; background: var(--w-bg, #f4f7fb); display: flex; align-items: flex-end;
             justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 6px 0 0; border-bottom: 1px solid var(--hb-line); margin-bottom: 8px; }
.hb-tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hb-tabs::-webkit-scrollbar { display: none; }
.hb-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 12px;
          font-size: 13.5px; font-weight: 500; color: var(--hb-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
          white-space: nowrap; min-height: 42px; }
.hb-tab:hover { color: var(--hb-navy); }
.hb-tab.is-on { color: var(--hb-navy); border-bottom-color: var(--hb-navy); font-weight: 600; }
.hb-tab-n { font-variant-numeric: tabular-nums; font-size: 12px; color: #8ca0b3; font-weight: 600; }
.hb-tab.is-on .hb-tab-n { color: var(--hb-navy); }
.hb-tab-urgent { height: 20px; padding: 0 7px; border-radius: 10px; background: #fde4e1; color: #b42318;
                 font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.hb-slicer-tools { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; flex-wrap: wrap; }
.hb-filter { position: relative; display: flex; align-items: center; margin: 0; }
.hb-filter i { position: absolute; left: 11px; font-size: 11px; color: #9fb2c4; pointer-events: none; }
.hb-filter input { width: 250px; max-width: 100%; padding: 7px 10px 7px 29px; min-height: 36px; border: 1px solid var(--hb-line); border-radius: 10px;
                   font-size: 13px; background: #fff; }
.hb-filter input:focus { outline: 0; border-color: var(--hb-blue); box-shadow: 0 0 0 3px rgba(26,138,241,.12); }
.hb-risk-toggle { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--hb-line);
                  border-radius: 10px; background: #fff; color: var(--hb-navy); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.hb-risk-toggle i { color: #b42318; font-size: 12px; }
.hb-risk-toggle:hover { border-color: #f1b8b1; }
.hb-risk-toggle.is-on { background: #fdecea; border-color: #f1b8b1; color: #8a1c12; font-weight: 600; }
.hb-risk-toggle[hidden] { display: none; }
.hb-group { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--hb-muted); white-space: nowrap; }
.hb-group select { min-height: 36px; padding: 6px 28px 6px 10px; border: 1px solid var(--hb-line); border-radius: 10px; background-color: #fff;
                   color: var(--hb-navy); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.hb-group select:focus { outline: 0; border-color: var(--hb-blue); box-shadow: 0 0 0 3px rgba(26,138,241,.12); }
.hb-mine-toggle i { color: var(--hb-blue); }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-mine-toggle i { color: #2d7e00; } /* theme (WILMA-1776): was blue */
.hb-mine-toggle.is-on { background: #e8f3fe; border-color: #b9dcfb; color: #0b4f8a; }
.hb-views { position: relative; }
.hb-views > .hb-risk-toggle i { color: var(--hb-muted); }
.hb-views > .hb-risk-toggle[aria-expanded="true"] { border-color: var(--hb-blue); }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-views > .hb-risk-toggle[aria-expanded="true"] { border-color: #37a000; } /* theme (WILMA-1776): was blue */
.hb-views-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; max-height: 70vh; overflow-y: auto; background: #fff;
                border: 1px solid var(--hb-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,58,93,.16); padding: 6px; }
.hb-views-pop .hb-sub { margin: 8px 8px 4px; }
.hb-view-row { display: flex; align-items: center; border-radius: 8px; }
.hb-view-row:hover { background: var(--hb-soft); }
.hb-view-row > button[data-hb-view] { appearance: none; flex: 1 1 auto; text-align: left; border: 0; background: none; padding: 8px 10px; min-height: 36px;
                                      font-size: 13px; color: var(--hb-ink); cursor: pointer; border-radius: 8px; }
.hb-view-row.is-on > button[data-hb-view] { font-weight: 600; color: var(--hb-navy); }
.hb-view-row.is-on i { color: var(--hb-blue); }
.hb-view-del { appearance: none; border: 0; background: none; color: #9fb2c4; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.hb-view-del:hover { color: #b42318; background: #fdecea; }
.hb-view-save { border-top: 1px solid var(--hb-line); margin-top: 6px; padding: 6px 4px 2px; }
.hb-seg { display: inline-flex; background: #e9eff5; border-radius: 10px; padding: 3px; }
.hb-seg button { appearance: none; border: 0; background: none; color: var(--hb-muted); font-size: 12.5px; font-weight: 500; padding: 6px 12px;
                 border-radius: 8px; cursor: pointer; min-height: 30px; white-space: nowrap; }
.hb-seg button.is-on { background: #fff; color: var(--hb-navy); font-weight: 600; box-shadow: 0 1px 2px rgba(15,58,93,.12); }
.hb-status { font-size: 12px; color: var(--hb-muted); min-height: 20px; margin: 0 2px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---- Customize --------------------------------------------------------------------- */
.hb-editbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: #fffaf0; border: 1px dashed #e8c77f;
              border-radius: var(--hb-radius); padding: 12px 14px; margin-bottom: 14px; font-size: 13px; }
.hb-editbar-text { flex: 1 1 320px; color: #6b5314; }
.hb-editbar-tray { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 100%; order: 3; align-items: center; }
.hb-editbar-tray:empty { display: none; }
.hb-tray-label { font-size: 12px; color: #8a6d1f; margin-right: 4px; }
.hb-tray-card { appearance: none; border: 1px dashed #c9b27a; background: #fff; color: #6b5314; border-radius: 999px; padding: 5px 12px;
                font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.hb-tray-card:hover { border-style: solid; color: var(--hb-green-dark); border-color: var(--hb-green); }
.hb-editbar-acts { display: flex; gap: 8px; }
.hb-grip, .hb-card-edit { display: none; }
.hb.is-editing .hb-grip { display: inline-flex; appearance: none; border: 0; background: none; color: #a4b4c4; cursor: grab;
                          width: 22px; height: 30px; align-items: center; justify-content: center; margin-left: -6px; touch-action: none; }
.hb.is-editing .hb-card-edit { display: inline-flex; gap: 2px; margin-left: auto; }
.hb.is-editing .hb-card { outline: 2px dashed #d8e2ec; outline-offset: -2px; }
.hb.is-editing .hb-card-body { opacity: .55; pointer-events: none; max-height: 140px; overflow: hidden; }
.hb.is-editing .hb-col { min-height: 120px; border-radius: var(--hb-radius); background: rgba(26,138,241,.03); }
.gu-mirror { opacity: .9; transform: rotate(1deg); box-shadow: var(--hb-shadow-lg); }
.gu-transit { opacity: .35; }

/* ---- Board ------------------------------------------------------------------------- */
.hb-board { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.hb-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hb-card { background: #fff; border: 1px solid var(--hb-line); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); min-width: 0; }
.hb-card-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px 6px; min-height: 48px; }
.hb-card-icon { color: var(--hb-blue); width: 16px; text-align: center; font-size: 14px; }
.hb-card-head h2 { font: 600 14.5px/1.2 var(--w-font-semibold, sans-serif); color: var(--hb-navy); margin: 0; }
.hb-count { background: #eef4fb; color: var(--hb-blue); border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hb-count.alert { background: #fde4e1; color: #b42318; }
.hb-card-body { padding: 4px 16px 14px; font-size: 13px; min-width: 0; }
.hb-card-foot { margin-top: 6px; padding-top: 8px; border-top: 1px solid #f0f3f7; display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }

.hb-skel { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #eef2f7 25%, #f6f8fb 50%, #eef2f7 75%);
           background-size: 200% 100%; animation: hb-shimmer 1.2s infinite; margin: 10px 0; display: block; }
.hb-skel.short { width: 60%; }
.hb-skel.wide { height: 22px; width: 60%; margin: 4px 0; }
@keyframes hb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.hb-empty { color: var(--hb-muted); font-size: 13px; padding: 10px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hb-empty > i { color: #b9c7d4; }
.hb-empty.good > i { color: var(--hb-green); }
.hb-error { color: var(--hb-muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.hb-sub { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8ca0b3; margin: 14px 0 4px; }
.hb-sub:first-child { margin-top: 2px; }

.hb-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; border-radius: 999px; padding: 3px 9px;
           background: #eef4fb; color: #1769c4; font-weight: 600; white-space: nowrap; }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-pill { background: #e3eaf1; color: #0f3a5d; } /* theme (WILMA-1776): was blue */
.hb-pill.is-good { background: #e8f5de; color: var(--hb-green-dark); }
.hb-pill.is-warn { background: #fdf0d9; color: #95600a; }
.hb-pill.is-bad  { background: #fde4e1; color: #b42318; }
.hb-pill.is-quiet { background: #f0f4f8; color: #5b7489; font-weight: 500; }
.hb-amt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--hb-navy); white-space: nowrap; }

/* ---- Rows: one line per thing, the whole row opens it ----------------------------- */
.hb-rows { display: flex; flex-direction: column; margin: 0 -8px; }
.hb-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 9px 8px 9px 14px; border-radius: 10px; min-width: 0;
          color: inherit; cursor: pointer; min-height: 52px; }
/* An answer drawn under a row (her case, a coverage shortlist) takes its own full line below it,
   never a squeezed column inside the row. */
.hb-row > .cos-result { flex: 1 0 100%; margin: 0 0 4px 44px; cursor: default; }
@media (max-width: 767.98px) { .hb-row > .cos-result { margin-left: 0; } }
.hb-row + .hb-row { box-shadow: inset 0 1px 0 #f0f3f7; }
.hb-row:hover { background: var(--hb-soft); }
.hb-row::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: transparent; }
.hb-row.sev-high::before { background: var(--hb-red); }
.hb-row.sev-mid::before { background: var(--hb-amber); }
.hb-ico { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; background: #eef4fb; color: var(--hb-blue);
          display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.hb-ico.is-bad { background: #fde4e1; color: #c2372b; }
.hb-ico.is-warn { background: #fdf0d9; color: #b7780f; }
.hb-ico.is-good { background: #e8f5de; color: var(--hb-green-dark); }
.hb-ico.is-purple { background: #f1ebfd; color: #7c4ddb; }
.hb-row-main { min-width: 0; flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }   /* basis 0: a long title never pushes the row's side onto a second line */
.hb-row-title { font-weight: 600; font-size: 13.5px; color: var(--hb-navy); line-height: 1.35; overflow: hidden; text-overflow: ellipsis;
                white-space: nowrap; }
.hb-row-why { font-size: 12.5px; color: #647d93; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-row-side { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.hb-row-meta { font-size: 12px; color: var(--hb-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-row-go { color: #c3cfda; font-size: 11px; flex: 0 0 auto; }
.hb-row:hover .hb-row-go { color: var(--hb-navy); }
.hb-row .cos-action.cos-btn { padding: 6px 12px; font-size: 12.5px; min-height: 32px; }
a.hb-row:hover { color: inherit; }

/* Workspace cards: one tile per list of the workspace (its own count), then the first rows of the list it lands on. */
.hb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 2px 0 8px; }
.hb-tile { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--hb-line); border-radius: 10px;
           background: var(--hb-soft); color: inherit; min-width: 0; text-decoration: none; }
.hb-tile:hover { border-color: var(--hb-blue); color: inherit; text-decoration: none; }
.hb-tile b { font: 700 19px/1.1 var(--w-font-semibold, sans-serif); color: var(--hb-navy); font-variant-numeric: tabular-nums; }
.hb-tile span { font-size: 12px; color: #647d93; line-height: 1.3; overflow-wrap: anywhere; }
.hb-tile.is-waiting b { color: #b9c7d4; }
.hb-ws-rows { margin-top: 2px; }

/* Next up: the lead item has room; the decisions behind it are numbered rows. */
.hb-lead { border-radius: 12px; padding: 16px 18px; margin: 4px 0 6px; background: linear-gradient(180deg, #f7fcf3, #fff);
           border: 1px solid #dcefcf; }
.hb-lead.is-live { background: linear-gradient(180deg, #fff6f5, #fff); border-color: #f6d3cf; }
.hb-lead-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-green-dark); margin-bottom: 6px;
                  display: flex; align-items: center; gap: 8px; }
.hb-lead.is-live .hb-lead-kicker { color: #b42318; }
.hb-lead-title { appearance: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
                 font: 600 18px/1.35 var(--w-font-semibold, sans-serif); color: var(--hb-navy); margin: 0 0 6px; overflow-wrap: anywhere; display: block; }
.hb-lead-title:hover { text-decoration: underline; }
/* The title is how you open the lead item: padding the layout does not see gives it a real target. */
.hb-lead-title { padding: 7px 0; margin: -7px 0 -1px; }
.hb-walk-short { display: none; }
.hb-lead-why { font-size: 13.5px; color: #4d677e; margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.hb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; }
.hb-acts .cos-preview-note { flex: 1 1 100%; }
.hb-num { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #e8f5de; color: var(--hb-green-dark); font-size: 12px; font-weight: 700;
          display: inline-flex; align-items: center; justify-content: center; }
.hb-area-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b7489; background: #f0f4f8;
               border-radius: 5px; padding: 2px 6px; white-space: nowrap; }

/* Your list */
.hb-band { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8ca0b3;
           display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; }
.hb-band:first-child { margin-top: 2px; }
.hb-band.is-now { color: #b42318; }
.hb-band-n { font-weight: 600; color: #a8b8c7; }

/* Where the work is */
.hb-area { padding: 10px 0; }
.hb-area + .hb-area { border-top: 1px solid #f0f3f7; }
.hb-area-head { appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; min-height: 34px; }
.hb-area-name { font-weight: 600; font-size: 13.5px; color: var(--hb-navy); flex: 1 1 auto; }
.hb-area-head:hover .hb-area-name { text-decoration: underline; }
.hb-area-n { font-size: 12px; font-weight: 500; color: var(--hb-blue); white-space: nowrap; }
.hb-area.is-on .hb-area-name { color: var(--hb-blue); }
.hb-bar { height: 5px; border-radius: 3px; background: #edf2f7; overflow: hidden; margin: 6px 0 6px; display: flex; }
.hb-bar i { display: block; height: 100%; }
.hb-bar i.u { background: var(--hb-red); }
.hb-bar i.r { background: var(--hb-blue); }
.hb-line { appearance: none; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 12px; align-items: center; gap: 0 10px; width: 100%;
           background: none; border: 0; border-radius: 8px; padding: 6px 6px 6px 0; text-align: left; cursor: pointer; min-height: 36px; color: inherit; }
.hb-line:hover { background: var(--hb-soft); }
.hb-line-n { font-weight: 700; font-size: 13.5px; color: var(--hb-navy); text-align: right; font-variant-numeric: tabular-nums; }
.hb-line-text { font-size: 13px; color: var(--hb-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-line .hb-row-go { justify-self: end; }
.hb-line.is-on { background: #fdecea; }
.hb-line.is-on .hb-line-text { font-weight: 600; }
.hb-can { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--hb-green-dark);
          background: #edf7e6; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }

/* Wilma is on it */
.hb-approval { border: 1px solid #e6dcfb; background: #fbf9ff; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.hb-approval p { margin: 0 0 10px; font-size: 13.5px; color: #2e3f54; line-height: 1.45; }
.hb-approval-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Your day */
.hb-now { display: flex; align-items: center; gap: 12px; border: 1px solid #f6d3cf; background: #fff6f5; border-radius: 12px; padding: 10px 12px; margin: 4px 0 8px; color: inherit; }
.hb-now:hover { border-color: var(--hb-red); color: inherit; }
.hb-now-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hb-red); flex: 0 0 10px; box-shadow: 0 0 0 4px rgba(217,72,59,.15); }
.hb-time { flex: 0 0 64px; font-weight: 700; font-size: 12.5px; color: var(--hb-navy); font-variant-numeric: tabular-nums; }

.hb-note { display: flex; gap: 10px; font-size: 13px; color: #4d677e; line-height: 1.5; padding: 5px 0; overflow-wrap: anywhere; }
.hb-note i { color: #a58be6; margin-top: 3px; flex: 0 0 auto; width: 14px; text-align: center; }

/* ---- The panel ------------------------------------------------------------------ */
.hb-scrim { position: fixed; inset: 0; background: rgba(12, 30, 48, .28); z-index: 1040; }
.hb-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: #fff; z-index: 1045; box-shadow: -12px 0 40px rgba(15,58,93,.18);
             display: flex; flex-direction: column; outline: 0; animation: hb-slide .18s ease-out; }
@keyframes hb-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.hb-drawer-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--hb-line); }
.hb-drawer-titles { min-width: 0; flex: 1 1 auto; }
.hb-drawer-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8ca0b3; margin-bottom: 3px; }
.hb-drawer-head h2 { font: 600 17px/1.3 var(--w-font-semibold, sans-serif); color: var(--hb-navy); margin: 0; overflow-wrap: anywhere;
                     display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-drawer-nav { display: flex; align-items: center; gap: 2px; }
.hb-drawer-pos { font-size: 12px; color: var(--hb-muted); margin-right: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px 28px; font-size: 13.5px; }
.hb-drawer-why { font-size: 14px; line-height: 1.55; color: #3c5570; margin: 0 0 10px; overflow-wrap: anywhere; }
.hb-drawer-section { margin-top: 18px; }
.hb-facts { border: 1px solid var(--hb-line); border-radius: 12px; overflow: hidden; }
.hb-fact { display: flex; gap: 12px; padding: 9px 12px; font-size: 13px; }
.hb-fact + .hb-fact { border-top: 1px solid #f0f3f7; }
.hb-fact-label { width: 120px; flex-shrink: 0; color: var(--hb-muted); }
.hb-fact-value { color: var(--hb-navy); min-width: 0; overflow-wrap: anywhere; }
.hb-verdict { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 10px 12px; background: #f1f4f7; font-size: 13px; margin-bottom: 12px; color: #41576b; }
.hb-verdict.is-ready { background: #edf7e6; color: #2c5720; }
.hb-verdict.is-caution { background: #fdf3e2; color: #7a521a; }
.hb-member { border: 1px solid var(--hb-line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.hb-member-title { font-weight: 600; color: var(--hb-navy); font-size: 13px; overflow-wrap: anywhere; }
.hb-member-why { font-size: 12.5px; color: #647d93; margin-top: 2px; }
.hb-member .hb-acts { margin-top: 8px; }
.hb-ranked { margin-top: 18px; font-size: 12.5px; color: var(--hb-muted); }
.hb-ranked p { margin: 6px 0 0; line-height: 1.5; }
.hb-drawer-done { text-align: center; padding: 40px 10px; color: var(--hb-muted); }
.hb-drawer-done > i { font-size: 30px; color: var(--hb-green); display: block; margin-bottom: 10px; }
.hb-drawer-done strong { display: block; color: var(--hb-navy); font-size: 15px; margin-bottom: 6px; }
.hb-drawer-foot { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---- Ask Wilma: a header button opening a side drawer (the drawer-kit's place and size) ---- */
.hb-fab { position: relative; display: inline-flex; }
.hb-fab img { width: 20px; height: 20px; filter: brightness(0) invert(1); display: block; }
.hb-fab-dot { position: absolute; top: -3px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a4c; border: 2px solid var(--hb-navy); }
/* The side drawer itself (place, size, head, icon buttons, scrim) is the drawer-kit's wd- chrome, as Messages and My work. */
.hb-chat { animation: hb-slide .18s ease-out; }
@keyframes hb-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hb-chat-sub { display: block; font-size: 12px; font-weight: 400; color: #66788a; }
.hb-chat-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px; }
.hb-chat-hi { font-size: 13.5px; color: #3c5570; background: #eef2f6; border-radius: 14px; padding: 8px 11px; margin: 0 0 12px; }
.hb-starters { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hb-starter { appearance: none; padding: 7px 12px; border: 1px solid #cfe0f1; border-radius: 999px; font-size: 12.5px; color: #1769c4; background: #fff;
              cursor: pointer; min-height: 34px; text-align: left; }
.hb-starter:hover { background: #eef6ff; }
.hb-skills { margin-top: 14px; }
.hb-skills:empty { display: none; }
.hb-skill { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hb-ink); padding: 6px 4px; min-height: 32px; }
.hb-skill:hover { color: var(--hb-navy); text-decoration: underline; }
.hb-skill i { color: #7c4ddb; width: 16px; text-align: center; }
.hb-ask-log { display: flex; flex-direction: column; gap: 10px; }
.hb-ask-log:empty { display: none; }
.hb-msg { font-size: 13.5px; line-height: 1.5; max-width: 92%; overflow-wrap: anywhere; }
.hb-msg-you { align-self: flex-end; max-width: 82%; background: #1F3044; color: #fff; border-radius: 14px; padding: 8px 11px; }
.hb-msg-wilma { align-self: flex-start; max-width: 82%; background: #eef2f6; border-radius: 14px; padding: 8px 11px; color: #1F2A37; }
.hb-msg-wilma p { margin: 4px 0; }
.hb-msg-wilma ul, .hb-msg-wilma ol { margin: 4px 0; padding-left: 20px; }
.hb-msg-wilma ul li { list-style: disc; }
.hb-msg-wilma ol li { list-style: decimal; }
.hb-msg-thinking { color: var(--hb-muted); font-style: italic; }
.hb-proposals { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.hb-chat-foot { border-top: 1px solid #e3e8ed; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fff; }
.hb-ask-about { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: #eef6ff; color: #1769c4; border-radius: 999px;
                padding: 3px 4px 3px 10px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.hb-ask-about-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hb-ask-about-x { appearance: none; border: 0; background: none; color: inherit; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; }
.hb-ask-about-x:hover { background: rgba(23,105,196,.12); }
.hb-ask-row { display: flex; gap: 8px; }
.hb-ask-input { flex: 1 1 auto; min-width: 0; border: 1px solid #b9c5d0; border-radius: 8px; padding: 8px 10px; font-size: 16px; min-height: 42px; }
.hb-ask-input:focus { outline: 0; border-color: var(--hb-blue); box-shadow: 0 0 0 3px rgba(26,138,241,.12); }
.hb-send { appearance: none; border: 0; border-radius: 8px; background: #37A000; color: #fff; width: 42px; height: 42px; cursor: pointer; }
.hb-send:hover { background: var(--hb-green-dark); }
.hb-caveat { font-size: 10.5px; color: #a3b3c2; margin: 6px 2px 0; line-height: 1.35; }

/* ---- Responsive ------------------------------------------------------------------ */
@media (max-width: 1199.98px) {
    .hb-board { grid-template-columns: minmax(0, 1fr); }
    .hb-doors { margin-left: 0; }
}
@media (max-width: 767.98px) {
    .hb { padding: 14px 16px 100px; }
    .hb-head { flex-direction: column; gap: 12px; }
    .hb-head-tools { width: 100%; }
    .hb-head-tools #hbWalk { flex: 1 1 auto; min-width: 0; }
    .hb-headline { font-size: 20px; }
    .hb-hide-sm { display: none; }
    .hb-quick { padding: 10px; }
    .hb-search { flex: 1 1 100%; min-width: 0; }
    .hb-kbd { display: none; }
    .hb-search input { padding-right: 12px; }
    .hb-recents, .hb-doors { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 2px; }
    .hb-recents::-webkit-scrollbar, .hb-doors::-webkit-scrollbar { display: none; }
    .hb-recent, .hb-door { flex: 0 0 auto; }
    .hb-slicer { position: static; }
    .hb-slicer-tools { width: 100%; }
    .hb-filter { flex: 1 1 100%; }
    .hb-filter input { width: 100%; }
    .hb-row .cos-action.cos-btn { display: none; }   /* the row opens; its actions live in the panel on a phone */
    .hb-row-meta { display: none; }
    .hb-drawer { width: 100vw; }
    /* A radar line wraps on a phone rather than cutting off what Wilma can do about it. */
    .hb-line-text { white-space: normal; }
    .hb-views-pop { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; max-height: calc(100vh - 96px); }
    .hb-pop { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; max-height: calc(100vh - 96px); overflow-y: auto; }
}
@media (max-width: 400px) {
    .hb-walk-long { display: none; }
    .hb-walk-short { display: inline; }
}
@media (pointer: coarse) {
    .hb-icon-btn { width: 40px; height: 40px; }
    .hb-seg button { min-height: 36px; }
    .hb-link { min-height: 36px; }
    .hb.is-editing .hb-grip { width: 36px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .hb-skel, .hb-drawer, .hb-chat, .hb-btn[aria-busy="true"] i { animation: none; }
}

/* Needs you / Done for you / Watching (practice Chief of Staff on; dashboard/cos-home DecisionDesk). */
.cos-desk { margin: 0 0 16px; }
.cos-desk-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.cos-desk-card { border: 1px solid var(--hb-line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.cos-desk-what { font-weight: 600; color: var(--hb-navy); font-size: 15px; }
.cos-desk-why, .cos-desk-prep { color: var(--hb-ink); font-size: 13px; }
.cos-desk-why span, .cos-desk-prep span { color: var(--hb-muted); font-weight: 600; }
.cos-desk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.cos-desk-acts .cos-btn.primary { min-height: 40px; }
.cos-desk-later { position: relative; }
.cos-desk-later .hb-pop { position: absolute; z-index: 5; left: 0; top: 100%; }
.cos-desk-done summary, .cos-desk-watch summary { cursor: pointer; color: var(--hb-ink); font-size: 13px; }
.cos-desk-done ul, .cos-desk-watch ul { margin: 6px 0 0 18px; padding: 0; font-size: 13px; }
/* Thumb-sized on touch screens without drawing them bigger: an invisible tap layer (no touch-only floor). */
@media (pointer: coarse) {
    .cos-desk-all, .cos-desk-done summary, .cos-desk-watch summary { position: relative; }
    .cos-desk-all::after, .cos-desk-done summary::after, .cos-desk-watch summary::after { content: ''; position: absolute; left: -6px; right: -6px; top: -12px; bottom: -12px; }
}
.cos-desk-at { color: var(--hb-muted); font-size: 12px; }
.cos-desk-all { font-size: 13px; color: var(--hb-blue); }

/* ---- A simpler, warmer board: the header as a band, the workspaces three across ----------
   Each workspace card is a plain list, one line per work list: a big number, the list's name, a chevron; the whole
   line opens that list. No rows, tags or badges on these cards. */
.hb-head { background: linear-gradient(110deg, #e8f3fd, #f1f9ea); border-radius: 18px; padding: 18px 22px; }
.hb-headline { font-weight: 700; }
.hb-since .hb-pill { background: #fff; font-size: 12px; padding: 4px 10px; }

.hb-board { gap: 14px; }
.hb-col { gap: 14px; }
.hb-card { border-color: transparent; border-radius: 16px; }
.hb-col-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.hb-col-grid [data-hb-count] { display: none !important; }   /* the numbers in the card say it */

.hb-card[data-widget^="ws_"] .hb-tiles { display: flex; flex-direction: column; gap: 0; margin: 0 -8px; }
.hb-card[data-widget^="ws_"] .hb-tile { flex-direction: row; align-items: baseline; gap: 12px; border: 0; background: none;
                                        padding: 7px 8px; border-radius: 9px; color: inherit; }
.hb-card[data-widget^="ws_"] .hb-tile:hover { background: var(--hb-soft); }
.hb-card[data-widget^="ws_"] .hb-tile b { font-size: 20px; font-weight: 800; min-width: 48px; }
.hb-card[data-widget^="ws_"] .hb-tile span { flex: 1 1 auto; font-size: 14px; color: var(--hb-ink); }
.hb-card[data-widget^="ws_"] .hb-tile::after { content: '\203A'; color: var(--hb-muted); }
.hb-card[data-widget^="ws_"] .hb-tile.is-waiting b { color: #c9d4de; }
.hb-ws-foot { padding-top: 6px; display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
.hb-ws-clear { background: #e9f6df; color: var(--hb-green-dark); border-radius: 12px; padding: 10px 12px; font-weight: 600; }

@media (max-width: 1199.98px) {
    .hb-col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .hb-head { padding: 14px 16px; }
    .hb-col-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Start here (HOME_BOARD_SIMPLE_NEXT): three plain steps, one button each ---- */
.hb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hb .hb-step { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; background: var(--hb-soft); cursor: pointer; flex-wrap: nowrap; }
.hb .hb-step::before { display: none; }
.hb .hb-step + .hb-step { box-shadow: none; }
.hb .hb-step:hover { background: #eaf2fa; }
.hb-step-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--hb-blue); color: #fff; font-weight: 700; font-size: 13px;
             display: inline-flex; align-items: center; justify-content: center; }
.hb-step-t { flex: 1 1 0; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--hb-navy); line-height: 1.35;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-step-urgent { display: inline-block; font-size: 11px; font-weight: 700; color: #b42318; background: #fde4e1; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.hb-step-go { flex: 0 0 auto; background: var(--hb-blue); color: #fff; font-weight: 600; font-size: 13px; border-radius: 10px; padding: 7px 14px; }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-step-go { background: #37a000; } /* theme (WILMA-1776): was blue */
.hb-card.is-auto-empty { display: none; }
.hb.is-editing .hb-card.is-auto-empty { display: block; }
/* "Wilma noticed" (HOME_BOARD_NOTICED): one line under a workspace card's numbers. */
.hb-ws-noticed { margin-top: 8px; font-size: 12.5px; border-radius: 10px; padding: 7px 10px; display: flex; gap: 8px; align-items: baseline;
                 background: #f1edfd; color: #4b3a99; }
.hb-ws-noticed.is-good { background: #e9f6df; color: var(--hb-green-dark); }
.hb-ws-noticed > i { font-size: 11px; }
/* Promises (HOME_BOARD_PROMISES) */
.hb-promises { list-style: none; margin: 0 -8px; padding: 0; }
.hb-promises a { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 9px; color: inherit; }
.hb-promises a:hover { background: var(--hb-soft); color: inherit; }
.hb-promise-t { flex: 1 1 0; min-width: 0; font-size: 13.5px; color: var(--hb-navy); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-promise-due { flex: 0 0 auto; font-size: 12px; color: var(--hb-muted); }
.hb-promise-due.is-late { color: #b42318; font-weight: 600; }
.hb-memos .hb-memo-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 9px; }
/* The morning brief read aloud (HOME_BOARD_SPOKEN_BRIEF) */
.hb-brief-play[aria-pressed="true"] { background: var(--hb-navy); border-color: var(--hb-navy); color: #fff; }
.hb-brief-words { margin-top: 8px; font-size: 13px; color: var(--hb-ink); white-space: pre-line; max-width: 900px; }
/* A column with no cards (the lite board's two) takes no room; while arranging it stays, to drop cards into. */
.hb:not(.is-editing) .hb-col-main:not(:has(.hb-card)), .hb:not(.is-editing) .hb-col-side:not(:has(.hb-card)) { display: none; }

/* ---- A denser board: as much on one screen as the classic dashboard -------------------------
   The header and quick access read as one compact bar; the side cards and the workspace cards pack into
   columns (each card only as tall as its own lines), so a short card never leaves a hole beside a tall one. */
.hb { padding: 14px 20px 90px; }
.hb-head { background: #fff; border: 1px solid var(--hb-line); border-bottom: 0; border-radius: var(--hb-radius) var(--hb-radius) 0 0;
           padding: 12px 16px 8px; margin-bottom: 0; align-items: center; box-shadow: none; }
.hb-greet { font-size: 12px; margin-bottom: 1px; }
.hb-headline { font-size: 19px; margin: 0; }
.hb-report { font-size: 13px; }
.hb-since { margin-top: 6px; }
.hb-head .hb-btn { min-height: 34px; padding: 6px 12px; }
.hb-head .hb-btn.hb-icon-only { width: 34px; padding: 0; }
.hb-quick { border-top: 1px dashed var(--hb-line); border-radius: 0 0 var(--hb-radius) var(--hb-radius); padding: 8px 16px 10px; margin-bottom: 10px; }
.hb-search input { min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.hb-recent { min-height: 28px; }
.hb-door { min-height: 30px; padding: 4px 11px; }
.hb-status { min-height: 0; margin: 0 2px 6px; }
.hb-status:empty { display: none; }

.hb-card { border-color: var(--hb-line); border-radius: 12px; }
.hb-card-head { min-height: 0; padding: 10px 14px 4px; }
.hb-card-body { padding: 2px 14px 10px; }
.hb-row { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.hb .hb-step { padding: 6px 10px; }
.hb-steps { gap: 6px; }
.hb-step-go { padding: 5px 12px; }
.hb-promises a, .hb-memos .hb-memo-row { padding: 4px 8px; }

/* The side cards pack two across beside Do next once there is room for both. */
.hb-board { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 12px; }
.hb:not(.is-editing) .hb-col-side { display: block; columns: 2 280px; column-gap: 12px; }
.hb:not(.is-editing) .hb-col-side > .hb-card { break-inside: avoid; margin-bottom: 12px; }
.hb:not(.is-editing) .hb-col-side > .hb-card:last-child { margin-bottom: 0; }
/* A board without Do next gives the side cards the whole width. */
.hb:not(.is-editing) .hb-board:has(> .hb-col-main:not(:has(.hb-card:not([hidden])))) .hb-col-side { grid-column: 1 / -1; columns: 4 280px; }

/* The workspace cards: up to three across, packed in columns instead of rows of equal height. */
.hb:not(.is-editing) .hb-col-grid { display: block; columns: 3 280px; column-gap: 12px; }
.hb:not(.is-editing) .hb-col-grid > .hb-card { break-inside: avoid; margin-bottom: 12px; display: inline-block; width: 100%; }
.hb:not(.is-editing) .hb-col-grid > .hb-card[hidden], .hb:not(.is-editing) .hb-col-grid > .hb-card.is-auto-empty { display: none; }
.hb-card[data-widget^="ws_"] .hb-tile { padding: 4px 8px; gap: 10px; }
.hb-card[data-widget^="ws_"] .hb-tile b { font-size: 16px; min-width: 40px; }
.hb-card[data-widget^="ws_"] .hb-tile span { font-size: 13px; }
.hb-ws-clear { padding: 7px 10px; }
.hb-ws-noticed { margin-top: 6px; padding: 5px 9px; }

@media (max-width: 1199.98px) {
    .hb-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .hb { padding: 10px 16px 90px; }
    .hb-head { padding: 12px 14px 8px; }
    .hb-quick { padding: 8px 14px 10px; }
}

/* ---- What needs you today: one list, most urgent first, one click into the workspace that works it ----------------- */
@media (min-width: 1200px) { .hb:not(.is-editing) .hb-board { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); } }
.hb:not(.is-editing) .hb-col-side { columns: 1; }
.hb:not(.is-editing) .hb-board:has(> .hb-col-main:not(:has(.hb-card:not([hidden])))) .hb-col-side { columns: 3 280px; }
.hb-need-group[hidden], .hb-need-clear[hidden], .hb-need-list > li[hidden], .hb-need-allclear[hidden], .hb-need-chip[hidden] { display: none; }
.hb-need-group + .hb-need-group { margin-top: 10px; }
.hb-need-tier { word-spacing: .18em; font: 700 11px/1.2 var(--w-font-semibold, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: #5b7489; margin: 8px 0 4px; }
.hb-need-tier.is-t1 { color: #b42318; }
.hb-need-list { list-style: none; margin: 0 -8px; padding: 0; }
.hb-need-list > li + li { box-shadow: inset 0 1px 0 #f0f3f7; }
.hb-need { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 10px; min-height: 52px;
           color: inherit; text-decoration: none; min-width: 0; }
.hb-need::before { content: ''; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #c9d6e2; }
.hb-need.is-t1::before { background: var(--hb-red, #d92d20); }
.hb-need.is-t2::before { background: var(--hb-blue, #1a8af1); }
.hb-need:hover { background: var(--hb-soft); color: inherit; text-decoration: none; }
.hb-need:focus-visible { outline: 2px solid var(--hb-blue, #1a8af1); outline-offset: -2px; }
.hb-need-n { flex: 0 0 auto; min-width: 46px; text-align: right; }
.hb-need-n b { font: 800 22px/1 var(--w-font-semibold, sans-serif); color: var(--hb-navy); font-variant-numeric: tabular-nums; }
.hb-need.is-t3 .hb-need-n b { color: #5b7489; }
.hb-need-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hb-need-what { font-size: 14.5px; font-weight: 600; color: var(--hb-navy); line-height: 1.35; overflow-wrap: anywhere; }
.hb-need-what > i { color: #8ca0b3; font-size: 12px; width: 16px; text-align: center; margin-right: 2px; }
.hb-need-do { font-size: 12.5px; color: #647d93; line-height: 1.4; overflow-wrap: anywhere; }
.hb-need-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hb-need-ws { font-size: 11.5px; color: #5b7489; text-align: right; }
.hb-need-where { display: none; font-size: 11.5px; color: #5b7489; }
.hb-need-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--hb-blue, #1a8af1); background: #eef4fb;
              border-radius: 999px; padding: 3px 12px; min-height: 26px; white-space: nowrap; }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-need-go { color: #2d7e00; } /* theme (WILMA-1776): was blue */
.hb-need:hover .hb-need-go { background: var(--hb-blue, #1a8af1); color: #fff; }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-need:hover .hb-need-go { background: #2d7e00; } /* theme (WILMA-1776): was blue */
.hb-need-go i { font-size: 10px; }
.hb-need-note { margin-top: 10px; font-size: 12.5px; color: var(--hb-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.hb-need-muted { color: #5b7489; }
.hb-need-notices { margin-top: 6px; }
.hb-need-allclear { display: flex; gap: 12px; align-items: center; background: #e9f6df; color: var(--hb-green-dark); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.hb-need-allclear > i { font-size: 22px; }
.hb-need-allclear strong { display: block; font-size: 15px; }
.hb-need-clear { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f3f7; font-size: 12.5px; color: var(--hb-muted); }
.hb-need-clear-lead > i { color: var(--hb-green); margin-right: 4px; }
.hb-need-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 10px; border-radius: 999px; background: #f0f4f8; color: #4d677e; text-decoration: none; font-size: 12.5px; }
a.hb-need-chip:hover { background: #e2ebf3; color: var(--hb-navy); text-decoration: none; }
@media (max-width: 767.98px) {
    .hb-need { gap: 10px; padding-right: 6px; }
    .hb-need-n { min-width: 34px; }
    .hb-need-n b { font-size: 19px; }
    .hb-need-ws { display: none; }
    .hb-need-where { display: block; }
    .hb-need-go { padding: 3px 10px; }
}
@media (max-width: 400px) {
    .hb-need-go { font-size: 0; gap: 0; padding: 3px 9px; }
    .hb-need-go i { font-size: 11px; }
}

.hb-need-more { margin: 2px 0 0; }
.hb-need-more > summary:focus-visible, a.hb-need-chip:focus-visible { outline: 2px solid var(--hb-blue, #1a8af1); outline-offset: 1px; border-radius: 6px; }
:where(html:not([data-ws-theme]) > body:not(.interface-classic)) .hb-need-more > summary:focus-visible, :where(html:not([data-ws-theme]) > body:not(.interface-classic)) a.hb-need-chip:focus-visible { outline-color: #37a000; } /* theme (WILMA-1776): was blue */
.hb-need-more > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--hb-blue, #1a8af1); padding: 4px 14px; min-height: 26px; display: flex; align-items: center; list-style: none; }
.hb-need-more > summary::-webkit-details-marker { display: none; }
.hb-need-more > summary::before { content: '+'; margin-right: 8px; font-weight: 700; }
.hb-need-more[open] > summary::before { content: '\2212'; }
.hb-need-more[open] > summary { font-size: 0; }
.hb-need-more[open] > summary::before { font-size: 12.5px; content: '\2212  Show fewer'; }

.hb-need-progress { margin-top: 10px; font-size: 12.5px; color: var(--hb-muted, #647d93); }

/* Wilma can chase these (CosOfferTicks): a box per item, controls at least 24px. */
.cos-offers-body { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.cos-offer { border: 1px solid var(--hb-line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cos-offer-head { font-weight: 600; }
.cos-offer-note, .cos-offer-more { margin: 0; font-size: 13px; opacity: .8; }
.cos-offer-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; }
.cos-offer-all, .cos-offer-item { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; padding: 4px 0; cursor: pointer; }
.cos-offer input[type="checkbox"] { width: 24px; height: 24px; min-width: 24px; margin: 0; cursor: pointer; }
.cos-offer-acts .cos-btn { min-height: 32px; }
.cos-offer-report { border-radius: 8px; padding: 8px 10px; font-size: 13px; background: rgba(0,0,0,.04); }
.cos-offer-report.is-bad { border-left: 3px solid #b3261e; }
.cos-offer-report.is-ok { border-left: 3px solid #2e7d32; }
