/* Brain Club — the place to build. Tokens and components come from design/tokens.css (one system for every surface);
   this file lays out the place: an atmosphere, three frosted panels, a conversation with widgets, and the door. */

/* ── atmosphere: the playbook tones, breathing behind frosted glass ─────────────────────── */
.ws-body { height: 100vh; overflow: hidden; background: #F3F0F6; }
.ws-body::before { content: ""; position: fixed; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 34% at 10% 6%, rgba(184, 166, 238, .55), transparent 70%),
    radial-gradient(34% 30% at 92% 10%, rgba(243, 198, 176, .55), transparent 70%),
    radial-gradient(46% 40% at 72% 100%, rgba(182, 224, 206, .6), transparent 70%),
    radial-gradient(40% 36% at 2% 96%, rgba(159, 205, 239, .45), transparent 70%);
  filter: blur(24px); animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(2%, -2%, 0) scale(1.04); } }
.glass { background: rgba(255, 255, 255, .62); }

.app { position: relative; z-index: 1; display: grid; grid-template-columns: 276px minmax(0, 1fr) 336px; gap: 12px; padding: 12px; height: 100vh; }
body.fold .app { grid-template-columns: 76px minmax(0, 1fr) 336px; }
.side, .stg, .canvas { min-height: 0; border-radius: 26px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); box-shadow: 0 30px 70px -48px rgba(74, 29, 87, .45); }
.stg { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: rgba(255, 255, 255, .7); }
.grow { flex: 1; }

/* rings: a goal's progress, the one chart this place draws */
.ring { width: 36px; height: 36px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke: rgba(31, 16, 38, .09); stroke-width: 3.4; }
.ring .ring-v { stroke: var(--bc-sage); stroke-linecap: round; }
.ring.r-xs { width: 15px; height: 15px; } .ring.r-xs circle { stroke-width: 5.5; }
.ring.r-sm { width: 22px; height: 22px; } .ring.r-sm circle { stroke-width: 4.4; }
.ring.r-md { width: 40px; height: 40px; }
.ring.r-lg { width: 58px; height: 58px; } .ring.r-lg circle { stroke-width: 3; }
.is-slow .ring-v, .ring-slow .ring-v { stroke: #C9793A; }

/* tones for a business's mark — the playbook tones */
.t-plumbing, .t-construction, .t-carservice, .t-cleaning, .t-surveying { --tone: #E1ECF7; }
.t-property, .t-guesthouse { --tone: #ECE6F7; }
.t-icecream, .t-restaurant, .t-bakery { --tone: #FBE7DC; }
.t-beauty, .t-dental, .t-fitness { --tone: #F7E3EB; }
.t-eshop, .t-agency, .t-itcompany, .t-accounting { --tone: #F4EDDD; }
.t-farm, .t-forestry, .t-manufacturing { --tone: #E0F0E6; }
.t-transport, .t-taxi { --tone: #F5F0D6; }

/* ── the rail ─────────────────────────────────────────────────────────────────────────── */
.side { display: flex; flex-direction: column; padding: 12px 10px; overflow: hidden; }
.side-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sw { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 18px; background: transparent; cursor: pointer; text-align: left; transition: background .15s; }
.sw:hover { background: rgba(255, 255, 255, .8); }
.sw-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--tone, var(--bc-plum-tint)); color: var(--bc-ink); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .05); font-size: 20px; }
.sw-ic .bc-icon { width: 21px; height: 21px; }
.sw-t { min-width: 0; flex: 1; }
.sw-t b { display: block; font: 700 16px/1.2 var(--bc-display); font-stretch: 92%; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-t small { display: block; font-size: 12px; color: var(--bc-ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--bc-ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fold-b { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 11px; background: transparent; cursor: pointer; }
.fold-b:hover { background: rgba(255, 255, 255, .8); }
.fold-b svg { width: 18px; height: 18px; fill: none; stroke: var(--bc-ink-3); stroke-width: 1.5; }
.sn-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -2px; padding: 0 2px; }
.sn { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 13px; background: transparent; color: var(--bc-ink-2); font-size: 14px; line-height: 1.3; text-decoration: none; text-align: left; cursor: pointer; width: 100%; transition: background .15s, color .15s; }
.sn:hover { background: rgba(255, 255, 255, .75); color: var(--bc-ink); }
.sn.on { background: #fff; color: var(--bc-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(31, 16, 38, .06), 0 8px 20px -14px rgba(74, 29, 87, .35); }
.sn-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-art { width: 28px; height: 28px; border-radius: 9px; flex: none; object-fit: cover; box-shadow: 0 2px 6px -3px rgba(74, 29, 87, .45); }
.sn-apps { display: grid; grid-template-columns: repeat(2, 13px); gap: 2px; width: 28px; height: 28px; place-content: center; flex: none; }
.sn-apps img { width: 13px; height: 13px; border-radius: 4px; object-fit: cover; }
.lock { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--bc-ink-3); stroke-width: 1.5; stroke-linecap: round; }
.st-who small .lock { margin-left: 2px; }
.sn-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; box-shadow: 0 0 0 2px #fff; }
.sn-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--bc-ink-3); font-size: 18px; }
.sn-ic .bc-icon { width: 19px; height: 19px; }
.sn.on .sn-ic .bc-icon { color: var(--bc-plum); }
.sn-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bc-plum); color: #fff; font: 700 11px/20px var(--bc-text); text-align: center; flex: none; }
.sn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bc-plum); flex: none; }
.sn-c { font-size: 12px; color: var(--bc-ink-3); flex: none; }
.sn-l { margin: 16px 10px 4px; font-size: 12px; font-weight: 600; color: var(--bc-ink-3); }
.sn--add { color: var(--bc-ink-3); }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; margin-top: 8px; border-top: 1px solid rgba(31, 16, 38, .06); font-size: 14px; }
.me { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bc-ink); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.side-foot .sn-t { flex: 1; }
.me { position: relative; }
/* the live channel: a dot on your own mark (green live, amber reconnecting, grey offline), who else is here beside it */
.lv-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bc-canvas); background: var(--bc-ink-3); }
.lv-dot--live { background: var(--bc-sage); }
.lv-dot--connecting, .lv-dot--reconnecting { background: #C98A1B; }
@media (prefers-reduced-motion: no-preference) { .lv-dot--connecting, .lv-dot--reconnecting { animation: lv-pulse 1.4s ease-in-out infinite; } }
@keyframes lv-pulse { 50% { opacity: .35; } }
.lv-who { display: flex; flex: none; }
.lv-who[hidden] { display: none; }
.lv-face { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; background: var(--bc-plum-tint); color: var(--bc-plum); border: 2px solid var(--bc-canvas); font: 700 10px/1 var(--bc-text); }
.lv-face:first-child { margin-left: 0; }
.lv-more { background: var(--bc-surface); color: var(--bc-ink-2); }
body.fold .lv-who { flex-direction: column; }
body.fold .lv-face { margin: -6px 0 0; }
body.fold .lv-face:first-child { margin: 0; }
.me-mail { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--bc-ink-3); font-size: 12px; }
.door-acct { margin: -4px 0 var(--bc-s4); color: var(--bc-ink-3); font-size: 13px; }
.dots-b { border: 0; background: transparent; color: var(--bc-ink-3); letter-spacing: 1px; font-size: 12px; cursor: pointer; padding: 6px 8px; border-radius: 9px; }
.dots-b:hover { background: rgba(255, 255, 255, .8); }

/* folded: only the marks stay — the business, your assistant, the rooms' rings */
body.fold .side { padding: 12px 8px; align-items: center; }
body.fold .side-top { flex-direction: column; }
body.fold .sw { padding: 4px; flex: none; }
body.fold .sw-t, body.fold .chev, body.fold .sn-t, body.fold .sn-l, body.fold .sn-c, body.fold .side-foot .sn-t { display: none; }
body.fold .sn { justify-content: center; padding: 6px; width: 48px; }
body.fold .sn-n { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; padding: 0 4px; }
body.fold .sn-dot { position: absolute; top: 6px; right: 6px; }
body.fold .sn-list { align-items: center; }
body.fold .side-foot { flex-direction: column; }

/* ── the stage ────────────────────────────────────────────────────────────────────────── */
.st-h { display: flex; align-items: center; gap: 12px; height: 66px; flex: none; padding: 0 18px 0 22px; border-bottom: 1px solid rgba(31, 16, 38, .06); }
.st-face { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px #fff, 0 6px 16px -8px rgba(74, 29, 87, .5); }
.st-who { min-width: 0; }
.st-who b { display: block; font: 700 18px/1.2 var(--bc-display); font-stretch: 92%; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.st-who small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bc-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.st-title { font-size: 22px; }
.st-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #fff; color: var(--bc-plum); }
.on-dot { width: 7px; height: 7px; border-radius: 50%; background: #3DAA6E; box-shadow: 0 0 0 3px rgba(61, 170, 110, .18); flex: none; display: inline-block; }
.st-h .faces { display: inline-flex; }
.st-h .faces .bc-avatar { width: 28px; height: 28px; box-shadow: 0 0 0 2px #fff; }
.st-h .faces .bc-avatar + .bc-avatar { margin-left: -8px; }
.clock { display: flex; align-items: center; gap: 4px; }
.clock-b { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .06); cursor: pointer; font-size: 12.5px; color: var(--bc-ink-2); }
.clock-b > i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bc-ink); position: relative; }
.clock-b .play::after { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.clock-b .pause::after { content: ""; width: 8px; height: 9px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.clock-t b { font-weight: 700; color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.clock-bar { width: 54px; height: 3px; border-radius: 2px; background: rgba(31, 16, 38, .1); overflow: hidden; }
.clock-bar i { display: block; height: 100%; background: var(--bc-plum); }
.clock-skip { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--bc-ink-3); cursor: pointer; }
.clock-skip:hover { background: rgba(255, 255, 255, .85); color: var(--bc-ink); }
.clock-skip .bc-icon { width: 17px; height: 17px; }
.pill-ex { font-size: 12px; font-weight: 600; color: var(--bc-ink-3); padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); }
.menu-b, .cv-b { display: none; border: 0; background: transparent; cursor: pointer; padding: 6px; }
.menu-b { flex-direction: column; gap: 4px; } .menu-b i { width: 18px; height: 2px; border-radius: 2px; background: var(--bc-ink); display: block; }
.scroll { flex: 1; overflow-y: auto; scroll-behavior: auto; }
.col { max-width: 740px; margin: 0 auto; padding: 18px 28px 28px; }

/* ── the conversation ─────────────────────────────────────────────────────────────────── */
.m { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin-top: 26px; }
.m.cont { margin-top: 12px; }
.m.fresh { animation: arrive .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
.m-face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px #fff; }
.m-face--mail { display: grid; place-items: center; background: var(--bc-plum-tint); color: var(--bc-plum); }
.m-face--mail .bc-icon { width: 18px; height: 18px; }
.m-gut { width: 36px; }
.m-meta { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; margin-bottom: 2px; }
.m-meta b { font-weight: 700; }
.m-meta time { font-size: 12px; color: var(--bc-ink-3); font-variant-numeric: tabular-nums; }
.m-t { font-size: 16px; line-height: 1.6; color: var(--bc-ink); white-space: pre-wrap; }
.m-t:empty { display: none; }
.m-t + .m-t { margin-top: 8px; }
.m-t--hello { font: 700 34px/1.1 var(--bc-display); font-stretch: 90%; letter-spacing: -0.02em; margin: 2px 0 8px; white-space: normal; }
.m-t--soft { display: flex; align-items: center; gap: 8px; color: var(--bc-ink-2); font-size: 14.5px; }
.m-t--quote { font-style: italic; color: var(--bc-ink-2); }
.m-ic { width: 18px; height: 18px; color: var(--bc-sage); }
.m-note { font-size: 12px; color: var(--bc-ink-3); margin-top: 6px; }
.m-done { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--bc-sage); }
.m-done .bc-icon { width: 16px; height: 16px; stroke-width: 2.2; }
.m--you { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.m--you .m-b { max-width: 78%; }
.m--you .m-t { padding: 11px 16px; border-radius: 20px 20px 6px 20px; background: #fff; box-shadow: 0 1px 2px rgba(31, 16, 38, .06), 0 10px 24px -18px rgba(74, 29, 87, .45); }
.m--typing .m-b { display: flex; align-items: center; gap: 10px; height: 36px; color: var(--bc-ink-3); font-size: 13px; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--bc-ink-3); animation: blink 1.2s infinite; }
.dots b:nth-child(2) { animation-delay: .2s; } .dots b:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.empty { margin: 40px auto; max-width: 42ch; text-align: center; color: var(--bc-ink-3); font-size: 15px; }

/* widgets: the work, in the conversation */
.w { margin-top: 12px; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05), 0 14px 34px -26px rgba(74, 29, 87, .5); }
.w-k { font-size: 12px; font-weight: 600; color: var(--bc-ink-3); }
.w-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.w-act .bc-icon { width: 17px; height: 17px; stroke-width: 2.2; }
.m-b > .w-act { margin-top: 10px; }

.w-dec { position: relative; box-shadow: 0 0 0 1px rgba(123, 92, 214, .22), 0 18px 40px -26px rgba(74, 29, 87, .6); }
.w-dec::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bc-plum); }
.wd-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--bc-ink-3); }
.wd-goal, .wd-pb { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--bc-ink-2); cursor: pointer; text-align: left; }
.wd-goal { font-weight: 600; color: var(--bc-ink); }
.wd-goal:hover, .wd-pb:hover { text-decoration: underline; text-underline-offset: 3px; }
.wd-sep { color: rgba(31, 16, 38, .2); }
.wd-what { font: 700 19px/1.32 var(--bc-display); font-stretch: 93%; letter-spacing: -0.01em; margin-top: 8px; }
.wd-who { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--bc-ink-2); }
.wd-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.wd-next { font-size: 14px; color: var(--bc-ink-2); margin-top: 6px; line-height: 1.5; }
.wd-next b { color: var(--bc-ink); font-weight: 600; }
.wd-ok { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--bc-sage); }
.wd-ok .bc-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.w-dec.is-done { background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.w-dec.is-done::before { background: var(--bc-sage); }
.w-dec.is-done .wd-what { font: 400 15px/1.5 var(--bc-text); color: var(--bc-ink-2); margin-top: 6px; }

.w-mail { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: rgba(239, 234, 246, .8); box-shadow: none; }
.wm-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff; color: var(--bc-plum); }
.wm-ic .bc-icon { width: 18px; height: 18px; }
.wm-t { font-size: 15px; font-style: italic; color: var(--bc-ink); margin-top: 2px; line-height: 1.5; }

.w-proof { list-style: none; padding: 6px 16px; }
.w-proof li { display: grid; grid-template-columns: 20px 1fr 24px; gap: 10px; align-items: start; padding: 10px 0; font-size: 14.5px; line-height: 1.45; }
.w-proof li + li { border-top: 1px solid rgba(31, 16, 38, .06); }
.wp-ok { width: 18px; height: 18px; color: var(--bc-sage); stroke-width: 2.2; margin-top: 2px; }
.w-proof time { font-size: 12px; font-weight: 600; color: var(--bc-ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; }
.wp-face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }

.w-brief { padding: 6px; background: rgba(255, 255, 255, .7); }
.wb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wb-stats > div { padding: 14px 16px; border-radius: 15px; background: #fff; }
.wb-stats b { display: block; font: 700 30px/1 var(--bc-display); font-stretch: 90%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wb-stats b small { font-size: 16px; color: var(--bc-ink-3); }
.wb-stats span { display: block; font-size: 12.5px; color: var(--bc-ink-3); margin-top: 6px; }
.wb-stats .hot { background: var(--bc-plum); color: #fff; }
.wb-stats .hot span { color: rgba(255, 255, 255, .75); }
.wb-goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 6px; }
.wg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border: 0; border-radius: 15px; background: #fff; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.wg:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(74, 29, 87, .5); }
.wg b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.wg small { display: block; font-size: 12px; color: var(--bc-ink-3); margin-top: 3px; line-height: 1.35; }

.w-values { display: grid; gap: 8px; }
.w-values input { padding: 12px 14px; border: 0; border-radius: 12px; background: var(--bc-canvas); font-size: 15px; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .06); }
.w-values input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-plum); background: #fff; }
.w-values .bc-btn { justify-self: start; margin-top: 4px; }
.w-values--page { margin-top: 12px; } .w-values--page p { color: var(--bc-ink-2); font-size: 15px; margin-bottom: 4px; }

/* the composer: one line, floating */
.composer { position: relative; flex: none; padding: 6px 24px 20px; }
.cmp { max-width: 740px; margin: 0 auto; display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 24px; background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(31, 16, 38, .06), 0 20px 44px -26px rgba(74, 29, 87, .55); transition: box-shadow .15s; }
.cmp:focus-within { box-shadow: 0 0 0 1.5px rgba(123, 92, 214, .55), 0 20px 44px -26px rgba(74, 29, 87, .55); }
.cmp-face { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; margin-bottom: 4px; }
.cmp textarea { flex: 1; resize: none; border: 0; background: transparent; padding: 9px 4px; font: inherit; font-size: 16px; line-height: 1.45; max-height: 160px; }
.cmp textarea:focus { outline: none; }
.cmp-send { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--bc-plum); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.cmp-send:hover { background: var(--bc-plum-hover); transform: scale(1.04); }
.cmp-send .bc-icon { width: 19px; height: 19px; stroke-width: 2.2; transform: rotate(-90deg); }
.mention { position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); width: min(360px, 90%); display: grid; padding: 6px; background: #fff; border-radius: 16px; box-shadow: var(--bc-float); z-index: 5; }
.mention button { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; font-size: 14px; }
.mention button:hover { background: var(--bc-plum-tint); }
.mention .bc-avatar { width: 26px; height: 26px; }

/* ── a room: several specialists, and who you are writing to ─── */
.st-art { width: 40px; height: 40px; border-radius: 13px; object-fit: cover; box-shadow: 0 6px 14px -8px rgba(74, 29, 87, .55); }
.members { display: flex; gap: 6px; padding: 10px 22px; overflow-x: auto; border-bottom: 1px solid rgba(31, 16, 38, .05); flex: none; scrollbar-width: none; }
.mb { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .05); flex: none; }
.mb.on { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.mb .bc-avatar { width: 28px; height: 28px; }
.mb b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.mb small { display: block; font-size: 11.5px; color: var(--bc-ink-3); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to { display: flex; align-items: center; gap: 6px; max-width: 740px; width: calc(100% - 48px); margin: 4px auto 0; overflow-x: auto; scrollbar-width: none; font-size: 12.5px; color: var(--bc-ink-3); flex: none; }
.to > span { margin-right: 2px; }
.to-c { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 12.5px; color: var(--bc-ink-2); cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .06); }
.to-c:first-of-type { padding-left: 10px; }
.to-c .bc-avatar { width: 20px; height: 20px; }
.to-c.on { background: var(--bc-ink); color: #fff; box-shadow: none; }

/* ── a room ───────────────────────────────────────────────────────────────────────────── */
.st-ring { margin-right: -2px; }
.rm-top { display: grid; grid-template-columns: 210px 1fr; gap: 10px; margin: 6px 0 8px; }
.rm-m { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: #fff; }
.rm-m b { display: block; font: 700 24px/1.05 var(--bc-display); font-stretch: 90%; }
.rm-m span { display: block; font-size: 12.5px; color: var(--bc-ink-3); margin-top: 4px; line-height: 1.35; }
.rm-runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }

/* a playbook in motion */
.runs { display: grid; gap: 8px; }
.runs--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.run { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); transition: box-shadow .15s, transform .15s; }
.run:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(31, 16, 38, .08), 0 12px 26px -18px rgba(74, 29, 87, .5); }
.run.waits { background: var(--bc-plum-tint); box-shadow: 0 0 0 1px rgba(123, 92, 214, .25); }
.run-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.run-b { display: grid; gap: 2px; min-width: 0; }
.run-b b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.run-b small { font-size: 12px; color: var(--bc-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbar { display: flex; gap: 3px; margin-top: 5px; }
.sbar i { flex: 1; max-width: 24px; height: 4px; border-radius: 2px; background: rgba(31, 16, 38, .09); }
.sbar i.sb-d { background: var(--bc-sage); }
.sbar i.sb-c { background: var(--bc-ink); }
.sbar i.sb-w { background: var(--bc-plum); animation: stepPulse 1.6s ease-in-out infinite; }
@keyframes stepPulse { 50% { opacity: .35; } }
.sbar i.sb-o { background: transparent; box-shadow: inset 0 0 0 1.5px #C9B7D6; }

/* ── the business pages ───────────────────────────────────────────────────────────────── */
.page { max-width: 940px; margin: 0 auto; padding: 22px 28px 60px; }
.pg-lead { font-size: 16px; color: var(--bc-ink-2); }
.pg-h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 34px 0 12px; }
.pg-h2--sm { font-size: 17px; margin: 26px 0 10px; }
.spine { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 22px; overflow: hidden; background: var(--bc-ink); color: #fff;
  box-shadow: 0 24px 50px -30px rgba(31, 16, 38, .7); }
.spine li { position: relative; padding: 20px 20px 18px; }
.spine li + li::before { content: "→"; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .35); }
.spine b { display: block; font: 700 34px/1 var(--bc-display); font-stretch: 90%; }
.spine b small { font-size: 16px; opacity: .5; }
.spine span { display: block; margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.value { margin: 0; padding: 26px 22px 18px; border-radius: 22px; background: var(--tone); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 170px; }
.value p { font: 700 25px/1.18 var(--bc-display); font-stretch: 90%; letter-spacing: -0.015em; color: var(--bc-plum); }
.value small { font-size: 12.5px; color: var(--bc-ink-2); }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.gcard header, .cvg-h { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; }
.gcard h3, .cvg-h h3 { font-size: 19px; line-height: 1.22; }
.gc-v { font-size: 13px; font-style: italic; color: var(--bc-plum); margin-bottom: 4px; }
.gc-m { font-size: 13.5px; color: var(--bc-ink-2); margin-top: 6px; }
.gc-m b { font: 700 18px/1 var(--bc-display); color: var(--bc-ink); margin-right: 3px; }
.gc-k { font-size: 12px; font-weight: 600; color: var(--bc-ink-3); margin-top: 4px; }
.gc-proof { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13.5px; color: var(--bc-ink-2); padding: 10px 12px; border-radius: 14px; background: var(--bc-sage-tint); line-height: 1.45; }
.gc-proof .bc-icon { width: 18px; height: 18px; color: var(--bc-sage); stroke-width: 2.2; }
.gc-proof b { font-weight: 600; color: var(--bc-sage); }
.gc-open { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--bc-plum); text-decoration: none; }
.gc-open .bc-icon { width: 16px; height: 16px; }
.tgrid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 18px; }
.tm { display: grid; gap: 6px; text-decoration: none; }
.tm .bc-portrait { border-radius: 22px; }
.tm b { font: 700 16px/1.2 var(--bc-display); font-stretch: 92%; margin-top: 4px; }
.tm small { font-size: 12.5px; color: var(--bc-ink-2); line-height: 1.4; }
.tm-g { display: grid; gap: 4px; margin-top: 8px; }
.tm-g a { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bc-ink-2); text-decoration: none; }
.tm-add { display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; aspect-ratio: 4 / 5; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .1); color: var(--bc-ink-2); cursor: pointer; }
.tm-add:hover { color: var(--bc-plum); box-shadow: inset 0 0 0 1.5px var(--bc-plum); }

/* the business map */
.bm-hero { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 5; background: #EEECEF; }
.bm-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.bm-hero figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 28px 22px; background: linear-gradient(transparent, rgba(31, 16, 38, .62)); color: #fff; }
.bm-hero h2 { font-size: 40px; margin-top: 8px; }
.bm-hero p { font-size: 15.5px; opacity: .9; margin-top: 6px; max-width: 60ch; }
.bm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--bc-ink); font-size: 12.5px; font-weight: 600; }
.bm-chip .bc-icon { width: 16px; height: 16px; }
.bm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 22px 0 12px; }
.bm-head .pg-lead { max-width: 60ch; }
.bm-known { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--bc-ink-2); white-space: nowrap; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.zone { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.zone h3 { font-size: 16px; }
.zone ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--bc-ink); }
.zone li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--bc-plum); margin: 0 8px 2px 0; vertical-align: middle; }
.zone-src { margin-top: auto; font-size: 11.5px; font-weight: 600; color: var(--bc-ink-3); }
.src-books::before, .src-web::before, .src-you::before, .src-team::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.src-books::before { background: var(--bc-sage); } .src-web::before { background: #6FA3D6; } .src-you::before { background: #C9793A; } .src-team::before { background: var(--bc-plum); }
.zone--ask { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .1); }
.zone--ask p { font-size: 13.5px; color: var(--bc-ink-3); }
.zone-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-tools span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--bc-canvas); font-size: 12.5px; }
.zone-tools img { width: 22px; height: 22px; border-radius: 7px; }
.pg-n { font: 600 13px var(--bc-text); color: var(--bc-ink-3); }

/* the team: people first, then specialists */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.person { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 16px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, .9); text-align: center; box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.person b { font-size: 15px; font-weight: 600; }
.person small { font-size: 12.5px; color: var(--bc-ink-3); }
.pp-av { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tone, var(--bc-plum-tint)); font: 700 19px/1 var(--bc-display); color: var(--bc-ink); }
.pp-you { background: var(--bc-ink); color: #fff; }
.person--add { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .1); cursor: pointer; color: var(--bc-ink-2); }
.person--add .pp-av { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .15); font-size: 24px; font-weight: 400; }
.person--add:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); color: var(--bc-plum); }

/* the log */
.log { list-style: none; padding: 4px 16px; border-radius: 20px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.log li { display: grid; grid-template-columns: 46px 30px 1fr 18px; gap: 12px; align-items: start; padding: 11px 0; font-size: 14px; line-height: 1.45; }
.log li + li { border-top: 1px solid rgba(31, 16, 38, .05); }
.log time { font-size: 12.5px; font-weight: 600; color: var(--bc-ink-3); padding-top: 5px; font-variant-numeric: tabular-nums; }
.log b { font-weight: 600; }
.log small { color: var(--bc-ink-3); font-size: 12px; }
.log-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.me--sm { width: 30px; height: 30px; font-size: 12px; }
.log-ok { width: 17px; height: 17px; color: var(--bc-sage); stroke-width: 2.2; margin-top: 6px; }

/* every app */
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.appc { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); position: relative; }
.appc.on { background: rgba(255, 255, 255, .95); }
.appc-art { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; }
.appc:not(.on) .appc-art { filter: saturate(.55); opacity: .8; }
.appc b { display: block; font-size: 14.5px; font-weight: 600; padding-right: 64px; }
.appc small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--bc-ink-3); line-height: 1.4; margin-top: 3px; }
.appc em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--bc-ink-3); }
.appc.on em { color: var(--bc-sage); }

/* ── the canvas ───────────────────────────────────────────────────────────────────────── */
.canvas { overflow-y: auto; padding: 12px; }
.cv { position: relative; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .86); margin-bottom: 10px; box-shadow: 0 0 0 1px rgba(31, 16, 38, .04); }
.cv-k { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--bc-ink-3); margin-bottom: 10px; }
.cv-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cv-nums > div { padding: 12px 14px; border-radius: 14px; background: var(--bc-canvas); }
.cv-nums b { display: block; font: 700 28px/1 var(--bc-display); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.cv-nums span { display: block; font-size: 12px; color: var(--bc-ink-3); margin-top: 6px; }
.cv-nums .hot { background: var(--bc-plum); color: #fff; } .cv-nums .hot span { color: rgba(255, 255, 255, .75); }
.cv-live b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cv-live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bc-ink-3); margin-top: 10px; }
.tool-r { display: grid; grid-template-columns: 38px minmax(0, 1fr) 8px; gap: 12px; align-items: center; padding: 7px 0; }
.tool-r + .tool-r { border-top: 1px solid rgba(31, 16, 38, .05); }
.tool-art { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 10px -6px rgba(74, 29, 87, .45); }
.cv-all { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 14px; background: var(--bc-canvas); font-size: 13.5px; font-weight: 600; color: var(--bc-plum); text-decoration: none; }
.cv-all:hover { background: var(--bc-plum-tint); }
.cv-all .bc-icon { width: 16px; height: 16px; margin-left: auto; }
.tool-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, #F1ECFA, #FBEDE5); color: var(--bc-plum); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 4px 10px -6px rgba(74, 29, 87, .35); }
.tool-ic .bc-icon { width: 19px; height: 19px; }
.tool-r b { display: block; font-size: 14px; font-weight: 600; }
.tool-r small { display: block; font-size: 12px; color: var(--bc-ink-3); }
.tool-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(31, 16, 38, .15); }
.tool-dot.on { background: #3DAA6E; box-shadow: 0 0 0 3px rgba(61, 170, 110, .15); }
.cv-v { font: 700 15.5px/1.3 var(--bc-display); font-stretch: 92%; color: var(--bc-plum); margin-bottom: 8px; }
.cv-goals { display: grid; gap: 2px; margin-top: 8px; }
.cv-g { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 7px 6px; margin: 0 -6px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 13.5px; line-height: 1.3; cursor: pointer; }
.cv-g:hover { background: var(--bc-canvas); }
.cv-note { font-size: 12px; color: var(--bc-ink-3); line-height: 1.5; padding: 4px 8px; }
.cv-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bc-canvas); cursor: pointer; z-index: 1; }
.cv-h { font-size: 21px; line-height: 1.2; margin: 8px 36px 8px 0; }
.cvg-h { margin: 4px 30px 14px 0; }
.cvr-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bc-ink-2); }
.cs { list-style: none; padding: 0; display: grid; gap: 2px; margin: 12px 0 4px; }
.cs li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 7px 4px; font-size: 13.5px; line-height: 1.4; color: var(--bc-ink-3); }
.cs li.d, .cs li.c { color: var(--bc-ink); }
.cs li.c { background: var(--bc-plum-tint); border-radius: 10px; font-weight: 600; }
.cs-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .12); font-size: 12px; font-weight: 700; }
.cs li.d .cs-n { background: var(--bc-sage); color: #fff; box-shadow: none; }
.cs li.d .cs-n .bc-icon { width: 14px; height: 14px; stroke-width: 2.6; }
.cs li.c .cs-n { background: var(--bc-plum); color: #fff; box-shadow: none; }
.cs .bc-status { display: flex; margin-top: 2px; font-size: 12px; }

/* ── the door ─────────────────────────────────────────────────────────────────────────── */
.door { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow-y: auto; padding: 32px 16px; }
.door-in { position: relative; width: min(860px, 100%); text-align: center; animation: arrive .7s cubic-bezier(.2, .8, .2, 1) both; }
.door-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--bc-display); font-stretch: 90%; }
.door-brand .brand-mark { width: 24px; height: 24px; }
.door-in h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; margin-top: 26px; }
.door-sub { max-width: 52ch; margin: 16px auto 0; font-size: 18px; line-height: 1.55; color: var(--bc-ink-2); }
.door-pick { display: flex; justify-content: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.pick { display: grid; justify-items: center; gap: 10px; width: 260px; padding: 0; border: 0; background: none; cursor: pointer; }
.pick-pic { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: #EEECEF; box-shadow: 0 30px 60px -36px rgba(74, 29, 87, .6), 0 0 0 1px rgba(255, 255, 255, .9); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.pick-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.pick:hover .pick-pic, .pick:focus-visible .pick-pic { transform: translateY(-8px); box-shadow: 0 44px 70px -36px rgba(74, 29, 87, .7), 0 0 0 3px #fff, 0 0 0 5px rgba(123, 92, 214, .5); }
.pick-n { font: 700 32px/1 var(--bc-display); font-stretch: 90%; letter-spacing: -0.02em; margin-top: 8px; }
.pick-go { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--bc-plum); }
.pick-go .bc-icon { width: 17px; height: 17px; transition: transform .2s; }
.pick:hover .pick-go .bc-icon { transform: translateX(4px); }
.door-foot { margin: 32px auto 0; max-width: 46ch; font-size: 14px; color: var(--bc-ink-3); }
.door-lang { position: fixed; top: 20px; right: 24px; border: 0; background: rgba(255, 255, 255, .7); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.door-in--two { text-align: left; width: min(760px, 100%); }
.door-me { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.door-face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 3px #fff, 0 16px 30px -16px rgba(74, 29, 87, .6); }
.door-k { font-size: 14px; font-weight: 600; color: var(--bc-ink-3); }
.door-me h1 { font-size: clamp(32px, 4.4vw, 50px); margin-top: 4px; }
.door-me .door-sub { margin: 10px 0 0; font-size: 16px; }
.opts { display: grid; gap: 10px; margin-top: 30px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .78); text-align: left; cursor: pointer;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 18px 40px -30px rgba(74, 29, 87, .5); transition: transform .2s, box-shadow .2s; }
.opt:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff, 0 26px 50px -30px rgba(74, 29, 87, .6); }
.opt.on { box-shadow: 0 0 0 2px var(--bc-plum), 0 26px 50px -30px rgba(74, 29, 87, .6); }
.opt b { display: block; font: 700 19px/1.2 var(--bc-display); font-stretch: 92%; }
.opt small { display: block; font-size: 14px; color: var(--bc-ink-2); margin-top: 3px; }
.opt > .bc-icon { width: 22px; height: 22px; color: var(--bc-plum); }
.opt--ex { background: var(--bc-ink); color: #fff; }
.opt--ex small { color: rgba(255, 255, 255, .7); }
.opt--ex > .bc-icon { color: #fff; }
.opt--ex img { width: 120px; height: 72px; object-fit: cover; border-radius: 14px; }
.opt-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, #F1ECFA, #FBEDE5); color: var(--bc-plum); }
.opt-ic .bc-icon { width: 22px; height: 22px; }
.bform { margin-top: 18px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .82); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9); animation: arrive .4s both; }
.bform label { display: block; font-size: 13px; font-weight: 600; color: var(--bc-ink-3); }
.bform input { display: block; width: 100%; margin-top: 8px; padding: 13px 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); font-size: 18px; color: var(--bc-ink); }
.bform input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.bform-q { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--bc-ink-3); }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.type { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 12px; background: #fff; cursor: pointer; font-size: 13.5px; text-align: left; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .06); }
.type .bc-icon { width: 20px; height: 20px; flex: none; }
.type:hover { background: var(--bc-plum-tint); }
.type.on { background: var(--bc-ink); color: #fff; }
.bform-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.bform-foot .bc-btn[disabled] { opacity: .35; cursor: default; }

/* ── pop-overs and the modal ──────────────────────────────────────────────────────────── */
.pop { position: fixed; z-index: 95; min-width: 280px; max-width: 340px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .97); box-shadow: var(--bc-float); animation: arrive .2s both; }
.pop-k { padding: 8px 10px 4px; font-size: 12px; font-weight: 600; color: var(--bc-ink-3); }
.pop-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font-size: 14px; }
.pop-i:hover { background: var(--bc-canvas); }
.pop-i > span:not(.sw-ic) { flex: 1; min-width: 0; }
.pop-i b { display: block; font-weight: 600; }
.pop-i small { display: block; font-size: 12px; color: var(--bc-ink-3); }
.pop-i .sw-ic { width: 34px; height: 34px; border-radius: 11px; }
.pop-i > .bc-icon { width: 18px; height: 18px; color: var(--bc-plum); }
.pop-add { border-top: 1px solid rgba(31, 16, 38, .06); border-radius: 0 0 12px 12px; margin-top: 4px; }
.pop-note { padding: 8px 10px; font-size: 12px; color: var(--bc-ink-3); line-height: 1.5; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.md-scrim { position: absolute; inset: 0; background: rgba(31, 16, 38, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.md { position: relative; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; border-radius: 30px; background: rgba(250, 248, 252, .96); box-shadow: var(--bc-float); animation: arrive .35s cubic-bezier(.2, .8, .2, 1) both; }
.md h2 { font-size: 28px; padding-right: 44px; }
.md .door-me h1 { font-size: 34px; }
.md-x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; z-index: 2; }
.md-team { display: flex; flex-wrap: wrap; gap: 8px; }
.md-team button { display: grid; justify-items: center; gap: 4px; width: 84px; text-align: center; border: 0; background: none; padding: 6px 2px; border-radius: 14px; cursor: pointer; }
.md-team button:hover { background: var(--bc-plum-tint); }
.md-team button.on { background: var(--bc-sage-tint); }
.md-team .bc-avatar { width: 48px; height: 48px; }
.md-team small { font-size: 11.5px; line-height: 1.25; color: var(--bc-ink-2); }

/* ── smaller screens: the rail and the canvas become drawers ─────────────────────────── */
@media (max-width: 1240px) {
  .app, body.fold .app { grid-template-columns: 264px minmax(0, 1fr); }
  body.fold .app { grid-template-columns: 76px minmax(0, 1fr); }
  .canvas { position: fixed; top: 12px; right: 12px; bottom: 12px; width: 340px; z-index: 40; transform: translateX(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); background: rgba(250, 248, 252, .94); }
  .canvas-open .canvas { transform: none; }
  .cv-b { display: grid; place-items: center; }
  .cv-b .bc-icon { width: 20px; height: 20px; }
}
@media (max-width: 820px) {
  .app, body.fold .app { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .stg { border-radius: 0; border: 0; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; z-index: 50; border-radius: 0 26px 26px 0; transform: translateX(-105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); background: rgba(250, 248, 252, .96); }
  .side-open .side { transform: none; }
  body.fold .side { width: 290px; align-items: stretch; }
  body.fold .sw-t, body.fold .chev, body.fold .sn-t, body.fold .sn-l, body.fold .sn-c { display: revert; }
  .fold-b { display: none; }
  .menu-b { display: flex; }
  .st-h { padding: 0 12px; gap: 8px; }
  .clock-t, .clock-bar, .st-h .faces { display: none; }
  .clock-b { padding: 4px; }
  .col, .page { padding-left: 16px; padding-right: 16px; }
  .composer { padding: 6px 12px 12px; }
  .wb-goals, .rm-top { grid-template-columns: 1fr; }
  .spine { grid-template-columns: repeat(3, 1fr); }
  .gcards { grid-template-columns: 1fr; }
  .m--you .m-b { max-width: 90%; }
  .pick { width: 44%; }
  .opt { grid-template-columns: auto 1fr; } .opt > .bc-icon { display: none; }
  .opt--ex img { width: 76px; height: 56px; }
}

/* ── who is at work now (canvas) ── */
.cv-work .cv-k { align-items: center; }
.cv-work .cv-live { margin: 0; font-weight: 400; display: inline-flex; align-items: center; gap: 5px; }
.cvw { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 14px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .15s; }
.cvw:hover { background: var(--bc-plum-tint); }
.cvw-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px #fff; }
.cvw b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.cvw small { display: block; font-size: 12px; color: var(--bc-ink-2); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvw em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--bc-plum); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cvw-live { width: 8px; height: 8px; border-radius: 50%; background: #7B5CD6; animation: cvwpulse 1.8s infinite; }
@keyframes cvwpulse { 0% { box-shadow: 0 0 0 0 rgba(123, 92, 214, .5); } 70% { box-shadow: 0 0 0 6px rgba(123, 92, 214, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 92, 214, 0); } }
.cv-wait { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--bc-plum); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.cv-wait .bc-icon { width: 16px; height: 16px; }
.cv-wait:hover { background: var(--bc-plum-hover); }

/* ── everything that opens a card ── */
button.tool-r { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
button.tool-r:hover b { color: var(--bc-plum); }
button.appc { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s; }
button.appc:hover { box-shadow: 0 0 0 1.5px var(--bc-plum); transform: translateY(-1px); }
.zone[data-act] { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.zone[data-act]:hover, .zone[data-act]:focus-visible { outline: none; box-shadow: 0 0 0 1.5px var(--bc-plum); transform: translateY(-1px); }
button.tm { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.tm:hover b { color: var(--bc-plum); }
button.tm .bc-portrait { transition: box-shadow .2s, transform .2s; }
button.tm:hover .bc-portrait { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bc-plum); transform: translateY(-2px); }
button.person { cursor: pointer; font: inherit; color: inherit; }
button.person:hover { box-shadow: 0 0 0 1.5px var(--bc-plum); }
button.mb, a.mb { border: 0; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
button.mb:hover, a.mb:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.log li.log-go { cursor: pointer; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; }
.log li.log-go:hover { background: var(--bc-plum-tint); }

/* ── the card that opens over the page ── */
.amd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding-right: 44px; }
.amd h2 { padding-right: 0; }
.amd-art { width: 92px; height: 92px; border-radius: 24px; object-fit: cover; box-shadow: 0 16px 30px -18px rgba(74, 29, 87, .5); }
.amd-pic { width: 120px; border-radius: 22px; }
.amd-av { width: 72px; height: 72px; font-size: 24px; }
.amd-g { font-size: 12.5px; font-weight: 600; color: var(--bc-ink-3); margin-bottom: 2px; }
.amd-line { margin-top: 6px; color: var(--bc-ink-2); font-size: 15px; line-height: 1.45; }
.amd-desc { margin-top: 18px; font-size: 15px; line-height: 1.55; }
.amd-ev { list-style: none; padding: 0; display: grid; gap: 8px; }
.amd-ev li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.amd-ev .bc-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--bc-sage); }
.amd-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--bc-ink-2); }
.amd-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--bc-ink-3); }
.amd-state.on { color: var(--bc-sage); } .amd-state.on i { background: var(--bc-sage); }
.amd-rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.amd-rooms a, .amd-rooms button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); color: var(--bc-ink); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.amd-rooms a:hover, .amd-rooms button:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); color: var(--bc-plum); }
.md .runs { display: grid; gap: 8px; }
.md .bform-q { margin-top: 20px; }

/* ── the folded menu: the private line is a face with its count, no lock ── */
body.fold .sn .lock { display: none; }
body.fold .sn.on { width: 48px; height: 44px; padding: 6px; }
body.fold .sn-face { width: 32px; height: 32px; }
@media (max-width: 640px) { .amd { grid-template-columns: 1fr; } .amd-pic { width: 96px; } }

/* ── a real account ── */
.st-date { font-size: 13px; color: var(--bc-ink-3); white-space: nowrap; }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--bc-ink-3); font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: rgba(31, 16, 38, .08); }
.w-setup .w-k { margin-bottom: 8px; }
.su-bar { display: block; height: 6px; border-radius: 3px; background: var(--bc-canvas); overflow: hidden; }
.su-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7B5CD6, var(--bc-plum)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.su-steps { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.su-steps li { display: grid; justify-items: start; gap: 6px; font-size: 12.5px; line-height: 1.3; color: var(--bc-ink-3); }
.su-steps li i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .18); }
.su-steps li .bc-icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--bc-sage); color: #fff; stroke-width: 2.6; }
.su-steps li.done { color: var(--bc-ink-2); }
.su-steps li.now { color: var(--bc-plum); font-weight: 600; }
.su-steps li.now i { box-shadow: inset 0 0 0 2px var(--bc-plum); background: var(--bc-plum-tint); }
.su-form { display: grid; gap: 8px; }
.su-opt { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 26px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--bc-canvas); cursor: pointer; transition: background .15s, box-shadow .15s; }
.su-opt input { position: absolute; opacity: 0; pointer-events: none; }
.su-opt b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.su-opt small { display: block; font-size: 12.5px; color: var(--bc-ink-2); line-height: 1.4; margin-top: 2px; }
.su-art { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; }
.su-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px #fff; }
.su-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .18); }
.su-tick .bc-icon { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; color: #fff; }
.su-opt:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.su-opt:has(input:checked) .su-tick { background: var(--bc-plum); box-shadow: none; }
.su-opt:has(input:checked) .su-tick .bc-icon { opacity: 1; }
.su-opt:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--bc-focus); }
.su-form--apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.su-form--apps .w-act { grid-column: 1 / -1; }
.su-form--reg input { padding: 13px 16px; border: 0; border-radius: 14px; background: var(--bc-canvas); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); font-size: 17px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.su-form--reg input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-plum); background: #fff; }
.su-form .w-act { margin-top: 6px; }
.run--start { grid-template-columns: 30px 1fr auto; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .08); }
.run--start:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.run-go { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--bc-plum); color: #fff; font-size: 12.5px; font-weight: 600; }
.run-go .bc-icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.cv-empty { font-size: 13px; color: var(--bc-ink-3); line-height: 1.45; }
.pg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pg-top .bc-btn { flex: none; }
.bm-more { margin-top: 18px; }
.su-pbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
.su-pb { display: grid; grid-template-columns: 18px 30px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); font-size: 13.5px; font-weight: 600; color: var(--bc-ink); cursor: pointer; }
.su-pb:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.su-pb input { width: 16px; height: 16px; margin: 0; accent-color: var(--bc-plum); }
.su-pb small { display: block; font-size: 12px; font-weight: 400; color: var(--bc-ink-3); }
.su-pbf { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 640px) { .su-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .su-form--apps, .su-pbs { grid-template-columns: 1fr; } }

a.wg { text-decoration: none; color: inherit; }
.rm-runs .run--start { grid-column: 1 / -1; }
.tool-r small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── page containers: an app, a colleague, a person, a part of the map, a playbook, the owner's own ── */
.st-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--bc-ink-2); flex: none; }
.st-back:hover { background: #fff; color: var(--bc-plum); }
.st-back .bc-icon { width: 18px; height: 18px; }
.st-title--sm { font-size: 16px; color: var(--bc-ink-2); }
.dp-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05), 0 20px 44px -34px rgba(74, 29, 87, .55); }
.dp-art { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; box-shadow: 0 16px 30px -18px rgba(74, 29, 87, .5); }
.dp-pic { width: 130px; border-radius: 22px; }
.dp-av { width: 84px; height: 84px; font-size: 28px; }
.dp-cover { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; }
.pbl-none { display: block; background: var(--bc-plum-tint); }
.dp-k { font-size: 12.5px; font-weight: 600; color: var(--bc-ink-3); }
.dp-t h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; margin-top: 2px; }
.dp-line { margin-top: 8px; color: var(--bc-ink-2); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.dp-act { display: flex; gap: 8px; }
.dp-act .bc-icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.dp-on { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bc-sage-tint); color: #3f6b33; font-size: 13.5px; font-weight: 600; }
.dp-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--bc-sage); }
.dp-off { margin: 14px 4px 0; color: var(--bc-ink-2); font-size: 14px; }
.dp-who { display: inline-flex; align-items: center; gap: 8px; }
.dp-sec { margin-top: 26px; }
.dp-sec > h3 { font-size: 15px; margin-bottom: 12px; color: var(--bc-ink-2); }
.dp-desc { font-size: 15px; line-height: 1.6; max-width: 70ch; }
.dp-facts li { font-size: 15px; }
.dp-more { margin-top: 20px; }
.pbl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pbl-i { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .06); color: inherit; text-decoration: none; }
.pbl-i:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.pbl-i img, .pbl-i .pbl-none { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.pbl-i b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pbl-i small { font-size: 12px; color: var(--bc-ink-3); }

/* ── blocks ── */
.blks { display: grid; gap: 14px; margin-top: 16px; }
.blks.is-off { opacity: .55; filter: saturate(.6); pointer-events: none; }
.blk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.blk-stats > div { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.blk-stats b { display: block; font: 700 28px/1.05 var(--bc-display); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.blk-stats span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--bc-ink-3); }
.blk { padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.blk header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.blk h3 { font-size: 16px; }
.blk-n { min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--bc-canvas); color: var(--bc-ink-3); font: 600 12px/22px var(--bc-text); text-align: center; }
.blk-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.blk table { width: 100%; border-collapse: collapse; font-size: 14px; }
.blk th { padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 600; color: var(--bc-ink-3); border-bottom: 1px solid rgba(31, 16, 38, .08); white-space: nowrap; }
.blk td { padding: 10px; border-bottom: 1px solid rgba(31, 16, 38, .05); vertical-align: middle; }
.blk tbody tr { cursor: pointer; }
.blk tbody tr:hover td, .blk tbody tr:focus-visible td { background: var(--bc-plum-tint); outline: none; }
.blk tbody tr:last-child td { border-bottom: 0; }
.blk .ty-money, .blk .ty-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.blk .ty-date { white-space: nowrap; color: var(--bc-ink-2); }
.blk-nil { color: var(--bc-ink-3); }
.blk-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bc-canvas); color: var(--bc-ink-2); }
.blk-st.st-1 { background: #EEE9FB; color: #5B3FB8; } .blk-st.st-2 { background: var(--bc-sage-tint); color: #3f6b33; } .blk-st.st-3 { background: #FDECEC; color: #B42318; }
.blk-who { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.blk-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.blk-empty { padding: 14px 10px 4px; color: var(--bc-ink-3); font-size: 13.5px; }
.blk-note { padding: 12px 16px; border-radius: 16px; background: var(--bc-plum-tint); color: var(--bc-ink-2); font-size: 14px; line-height: 1.5; }
.blk-text { color: var(--bc-ink-2); font-size: 14px; line-height: 1.5; margin: 6px 0 12px; }
.blk-form { display: flex; gap: 8px; margin-top: 10px; }
.blk-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--bc-canvas); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); font-size: 14.5px; }
.blk-form input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-plum); background: #fff; }
.blk-got { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14.5px; }
.blk-got .bc-icon { width: 18px; height: 18px; color: var(--bc-sage); }
.blk-wait { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #FFF4E0; color: #92600A; font-size: 12px; font-weight: 600; }
.blk-check ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.blk-check li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14.5px; }
.blk-check li.done span { color: var(--bc-ink-3); text-decoration: line-through; }
.chk { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(31, 16, 38, .2); background: #fff; cursor: pointer; flex: none; }
.chk .bc-icon { width: 14px; height: 14px; stroke-width: 2.6; color: #fff; opacity: 0; }
.chk[aria-pressed="true"] { background: var(--bc-sage); box-shadow: none; } .chk[aria-pressed="true"] .bc-icon { opacity: 1; }
.blk-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.blk-ask p { color: var(--bc-ink-2); font-size: 14.5px; }
.rform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.rform .bform-foot { grid-column: 1 / -1; }
.rform label { margin: 0; }
.rform input, .rform select { font-size: 16px; }
.bform select { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); font: inherit; font-size: 16px; color: var(--bc-ink); }

/* ── the owner's own pages ── */
.op-head { display: flex; align-items: center; gap: 14px; }
.op-art { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.op-head h2 { font-size: clamp(24px, 3vw, 32px); }
.np-tpl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.np-t { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); font: inherit; font-size: 13.5px; color: var(--bc-ink); cursor: pointer; }
.np-t:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.np-art { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.np-form { margin-top: 18px; }
.np-form textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); font: inherit; font-size: 15px; resize: vertical; }
.np-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.np-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; margin-right: 8px; box-shadow: 0 0 0 1.5px #fff; }
.np-msg { margin-top: 10px; color: var(--bc-ink-2); font-size: 14px; }
@media (max-width: 760px) { .dp-hero { grid-template-columns: auto minmax(0, 1fr); } .dp-act { grid-column: 1 / -1; } .np-tpl { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rform { grid-template-columns: 1fr; } }

/* ── the door: a company from the register, or something else in your own words ── */
.co-cc { display: flex; gap: 6px; margin-bottom: 12px; }
.co-c { padding: 7px 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); font: inherit; font-size: 13.5px; color: var(--bc-ink-2); cursor: pointer; }
.co-c.on { background: var(--bc-plum); color: #fff; box-shadow: none; }
.co-res { display: grid; gap: 6px; margin-top: 10px; max-height: 330px; overflow-y: auto; }
.co-r { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); text-align: left; font: inherit; color: var(--bc-ink); }
button.co-r { cursor: pointer; } button.co-r:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.co-r .bc-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--bc-plum); }
.co-r b { display: block; font-size: 14.5px; font-weight: 600; }
.co-r small { display: block; font-size: 12.5px; color: var(--bc-ink-3); margin-top: 2px; }
.co-r--gone { opacity: .6; }
.co-pick { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.co-msg { font-size: 13.5px; color: var(--bc-ink-2); padding: 6px 2px; }
.type--other { box-shadow: inset 0 0 0 1.5px dashed; border-style: dashed; }
.other-w { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 12px; }
.other-w label { margin: 0; }
.other-w .co-msg { grid-column: 1 / -1; }
.other-w .bc-btn { margin-bottom: 2px; }

/* ── the org chart ── */
.oc-tabs { margin: 0; flex: none; }
.oc { --line: rgba(74, 29, 87, .22); position: relative; margin-top: 18px; padding: 28px 18px 24px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, rgba(239, 234, 246, .9), rgba(255, 255, 255, .6) 60%); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); overflow-x: auto; }
.oc-row { display: flex; justify-content: center; }
.oc-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.oc-card { display: flex; align-items: center; gap: 12px; min-width: 220px; max-width: 260px; padding: 10px 14px 10px 10px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .06), 0 14px 30px -24px rgba(74, 29, 87, .6); text-align: left; font: inherit; color: var(--bc-ink); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.oc-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--bc-plum), 0 18px 34px -22px rgba(74, 29, 87, .6); }
.oc-card--owner { background: var(--bc-plum); color: #fff; cursor: default; } .oc-card--owner:hover { transform: none; box-shadow: 0 14px 30px -20px rgba(74, 29, 87, .8); }
.oc-card--owner small { color: rgba(255, 255, 255, .75); }
.oc-me { width: 46px; height: 46px; font-size: 18px; background: #fff; color: var(--bc-plum); }
.oc-card--assist { background: linear-gradient(135deg, #fff, var(--bc-plum-tint)); }
.oc-card--add { justify-content: center; min-width: 180px; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(74, 29, 87, .25); border: 0; color: var(--bc-plum); font-size: 14px; }
.oc-card--add .bc-icon { width: 18px; height: 18px; }
.oc-face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(123, 92, 214, .35); }
.oc-av { width: 46px; height: 46px; flex: none; font-size: 16px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(47, 122, 92, .45); }
.oc-t { min-width: 0; display: grid; gap: 2px; }
.oc-t b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.oc-t small { font-size: 12px; color: var(--bc-ink-3); line-height: 1.3; }
.oc-tag { justify-self: start; padding: 1px 8px; border-radius: 999px; background: #EEE9FB; color: #5B3FB8 !important; font-weight: 600; font-size: 11px !important; }
.oc-tag--h { background: var(--bc-sage-tint); color: #3f6b33 !important; }
.oc-load { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bc-ink-2); flex-wrap: wrap; }
.oc-load em { font-style: normal; color: var(--bc-plum); font-weight: 600; }
.oc-bar { display: inline-block; width: 34px; height: 5px; border-radius: 3px; background: var(--bc-canvas); overflow: hidden; }
.oc-bar b { display: block; height: 100%; background: #7B5CD6; }
.oc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bc-sage); }
.oc-rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 260px; }
.oc-room { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .07); font-size: 11.5px; color: var(--bc-ink-2); text-decoration: none; }
.oc-room img { width: 18px; height: 18px; border-radius: 6px; }
.oc-room:hover { color: var(--bc-plum); }
/* the lines: owner ↓ the row below it ↓ the departments */
.oc-top { padding-bottom: 26px; position: relative; }
.oc-top::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 26px; background: var(--line); }
.oc-kids { position: relative; display: flex; justify-content: center; gap: 18px; padding-top: 22px; flex-wrap: nowrap; }
.oc-kids > .oc-node::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--line); }
.oc-kids > .oc-node::after { content: ""; position: absolute; top: -22px; left: -9px; right: -9px; height: 2px; background: var(--line); }
.oc-kids > .oc-node:first-child::after { left: 50%; } .oc-kids > .oc-node:last-child::after { right: 50%; }
.oc-kids > .oc-node:only-child::after { display: none; }
.oc-kids--mgmt { padding-bottom: 28px; }
.oc-kids--mgmt::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 28px; background: var(--line); }
.oc-depts { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 14px; padding-top: 24px; min-width: max-content; }
.oc-dept { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.oc-dept::before { content: ""; position: absolute; top: -24px; left: 50%; width: 2px; height: 24px; background: var(--line); }
.oc-dept::after { content: ""; position: absolute; top: -24px; left: -7px; right: -7px; height: 2px; background: var(--line); }
.oc-dept:first-child::after { left: 50%; } .oc-dept:last-child::after { right: 50%; } .oc-dept:only-child::after { display: none; }
.oc-dh { display: grid; justify-items: center; gap: 1px; padding: 8px 16px; border-radius: 14px; background: var(--bc-ink); color: #fff; min-width: 200px; text-align: center; }
.oc-dh b { font-size: 14px; } .oc-dh small { font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.oc-col { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-left: 0; position: relative; }
.oc-col .oc-card { min-width: 230px; }
.oc-more { padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--bc-plum); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.oc-more:hover { background: var(--bc-plum-tint); }
.oc-dept--add { padding-top: 0; }
.iv-rooms { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.iv-rooms .bform-q { grid-column: 1 / -1; margin: 4px 0 0; }
.dp-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .oc-kids, .oc-depts { flex-direction: column; align-items: center; min-width: 0; } .oc-kids > .oc-node::after, .oc-dept::after { display: none; } }
.page--wide { max-width: none; }
.oc-col .oc-card, .oc-card { min-width: 210px; }
.oc-dh { min-width: 190px; }

/* ── the business map: 15 areas, 73 facts ── */
.ws-bmap { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 14px; }
.ws-bmap .bzone { border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.ws-bmap .bzone:hover { box-shadow: 0 0 0 1.5px var(--hue); transform: translateY(-1px); }
.zf { list-style: none; padding: 0; display: grid; gap: 6px; }
.zf li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .05); }
.zf li.on { background: #fff; }
.zf .bdot { margin-top: 4px; }
.zf b { display: block; font-size: 14.5px; font-weight: 600; }
.zf-v { display: block; margin-top: 3px; font-size: 14px; color: var(--bc-ink); line-height: 1.45; }
.zf-how { display: block; margin-top: 3px; font-size: 13px; color: var(--bc-ink-3); }
.zf em { font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) { .ws-bmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ws-bmap { grid-template-columns: 1fr 1fr; } .zf li { grid-template-columns: 14px 1fr; } .zf em { grid-column: 2; } }
.zf-row b::first-letter { text-transform: uppercase; }

/* ── the rail: search, and Today ── */
.sn-search { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 9px 12px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .07); color: var(--bc-ink-3); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.sn-search:hover { color: var(--bc-ink); box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.sn-search .bc-icon { width: 17px; height: 17px; flex: none; }
.sn-search .sn-t { flex: 1; }
.sn-search kbd, .ck-in kbd { font: 600 11px/1 var(--bc-text); padding: 4px 6px; border-radius: 6px; background: var(--bc-canvas); box-shadow: inset 0 -1px 0 rgba(31, 16, 38, .12); color: var(--bc-ink-3); }
body.fold .sn-search { justify-content: center; width: 48px; padding: 9px; } body.fold .sn-search kbd { display: none; }
.sn-ic--today { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #7B5CD6, var(--bc-plum)); color: #fff; flex: none; }
.sn-ic--today .bc-icon { width: 15px; height: 15px; }

/* ── Today ── */
.app.no-cv { grid-template-columns: 276px minmax(0, 1fr); }
body.fold .app.no-cv { grid-template-columns: 76px minmax(0, 1fr); }
.app.no-cv .canvas { display: none; }
.page--today { max-width: 1180px; }
.td-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, #5B2A6B 0%, #3A1545 60%, #2A0F33 100%); color: #fff; }
.td-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.td-hero h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; line-height: 1.05; }
.td-hero p { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.5; margin-top: 4px; max-width: 62ch; }
.td-hero .td-k { color: rgba(255, 255, 255, .6); font-size: 12.5px; margin: 0 0 2px; }
.td-talk { background: #fff; color: var(--bc-plum); box-shadow: none; }
.td-talk:hover { background: var(--bc-plum-tint); }
.td-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 12px; padding: 14px 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(123, 92, 214, .35), 0 16px 34px -28px rgba(74, 29, 87, .6); }
.td-star { width: 26px; height: 26px; color: #C98A12; fill: #F5C542; }
.td-next b { font-size: 15.5px; }
.td-next .bc-icon:not(.td-star) { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.td-k { font-size: 12px; font-weight: 600; color: var(--bc-ink-3); }
.td-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.td-main, .td-side { display: grid; gap: 14px; min-width: 0; }
.td-sec, .td-card { padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); scroll-margin-top: 12px; }
.td-sec h3, .td-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.td-more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--bc-text); font-size: 12.5px; font-weight: 600; color: var(--bc-plum); text-decoration: none; }
.td-more .ring { width: 18px; height: 18px; }
.td-sec .w-dec { margin-top: 8px; }
.td-empty { display: flex; align-items: center; gap: 8px; color: var(--bc-ink-2); font-size: 14px; padding: 4px 2px; }
.td-empty .bc-icon { width: 18px; height: 18px; color: var(--bc-sage); flex: none; }
.td-sub { margin: 14px 0 0; font-size: 12.5px; font-weight: 600; color: var(--bc-ink-3); }
.td-runs { display: grid; gap: 6px; }
.td-run { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--bc-canvas); color: inherit; text-decoration: none; transition: box-shadow .15s; }
.td-run:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.td-run.waits { background: var(--bc-plum-tint); }
.td-run.paused { opacity: .6; }
.td-rface { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; }
.td-rb { min-width: 0; display: grid; gap: 3px; }
.td-rb b { font-size: 14px; font-weight: 600; }
.td-rb small { font-size: 12px; color: var(--bc-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-prog { display: block; height: 5px; border-radius: 3px; background: rgba(31, 16, 38, .08); overflow: hidden; }
.td-prog b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7B5CD6, var(--bc-plum)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.td-run em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--bc-plum); white-space: nowrap; }
.td-log { list-style: none; padding: 0; display: grid; gap: 2px; }
.td-log li { display: grid; grid-template-columns: 42px 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 2px; font-size: 13.5px; line-height: 1.4; }
.td-log time { font-size: 12px; font-weight: 600; color: var(--bc-ink-3); font-variant-numeric: tabular-nums; }
.td-log .log-face, .td-log .me--sm { width: 26px; height: 26px; }
.td-goal { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 14px; color: inherit; text-decoration: none; }
.td-goal:hover { background: var(--bc-plum-tint); }
.td-goal b { display: block; font-size: 13.5px; font-weight: 600; }
.td-goal small { display: block; font-size: 12px; color: var(--bc-ink-3); line-height: 1.35; }
.td-fams { display: grid; gap: 6px; }
.td-fam { display: grid; grid-template-columns: 70px 1fr 36px; gap: 8px; align-items: center; font-size: 12px; color: var(--bc-ink-2); text-decoration: none; }
.td-fam i { display: block; height: 7px; border-radius: 4px; background: var(--bc-canvas); overflow: hidden; }
.td-fam i b { display: block; height: 100%; border-radius: 4px; }
.td-fam small { text-align: right; font-variant-numeric: tabular-nums; color: var(--bc-ink-3); }
.td-q { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bc-plum-tint); }
.td-qk { display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--bc-plum); }
.td-qq { margin: 6px 0 10px; font-family: var(--bc-display); font-weight: 700; font-stretch: 94%; font-size: 16px; line-height: 1.3; }
.td-qf input { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); font: inherit; font-size: 14.5px; }
.td-qf input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.td-qf .w-act { margin-top: 8px; }
.td-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.td-quick button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 14px; background: var(--bc-canvas); font: inherit; font-size: 13px; font-weight: 600; color: var(--bc-ink); text-align: left; cursor: pointer; }
.td-quick button:hover { box-shadow: inset 0 0 0 1.5px var(--bc-plum); }
.td-quick img { width: 26px; height: 26px; border-radius: 8px; flex: none; }

/* ── ⌘K ── */
.cmdk { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding-top: 12vh; }
.cmdk[hidden] { display: none; }
.ck-scrim { position: absolute; inset: 0; background: rgba(31, 16, 38, .28); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.ck { position: relative; width: min(640px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; border-radius: 24px; background: rgba(252, 251, 253, .98); box-shadow: var(--bc-float); overflow: hidden; animation: ckin .16s ease-out; }
@keyframes ckin { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
.ck-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(31, 16, 38, .07); }
.ck-in .bc-icon { width: 20px; height: 20px; color: var(--bc-ink-3); }
.ck-in input { flex: 1; border: 0; background: none; font: inherit; font-size: 17px; outline: none; color: var(--bc-ink); }
.ck-res { overflow-y: auto; padding: 6px 8px 10px; }
.ck-h { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--bc-ink-3); }
.ck-i { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; padding: 7px 10px; border: 0; border-radius: 12px; background: none; font: inherit; color: var(--bc-ink); text-align: left; cursor: pointer; }
.ck-i.on, .ck-i:hover { background: var(--bc-plum-tint); }
.ck-i b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-i small { display: block; font-size: 12px; color: var(--bc-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-art { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; font-size: 11px; }
img.ck-art[src*="cast"] { border-radius: 50%; object-position: 50% 16%; }
.ck-ic { width: 18px; height: 18px; margin: 0 6px; color: var(--bc-plum); }

/* ── trust ── */
.oc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.oc-trust { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--bc-canvas); color: var(--bc-ink-2) !important; font-weight: 600; font-size: 11px !important; }
.tr-dots { display: inline-flex; gap: 2px; }
.tr-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(31, 16, 38, .15); }
.tr-dots i.on { background: var(--bc-plum); }
.oc-trust.l-3 .tr-dots i.on { background: #2F7A5C; }
.tr-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tr-o { display: grid; gap: 6px; align-content: start; padding: 12px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); font: inherit; color: var(--bc-ink); text-align: left; cursor: pointer; }
.tr-o:hover { box-shadow: inset 0 0 0 1.5px rgba(74, 29, 87, .4); }
.tr-o.on { background: var(--bc-plum-tint); box-shadow: inset 0 0 0 2px var(--bc-plum); }
.tr-o b { font-size: 14px; }
.tr-o small { font-size: 12px; color: var(--bc-ink-2); line-height: 1.4; }
.tr-o .tr-dots i { width: 7px; height: 7px; }
.tr-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #3f6b33; }
.tr-note .bc-icon { width: 16px; height: 16px; flex: none; }

@media (max-width: 1100px) { .td-grid { grid-template-columns: 1fr; } .tr-pick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .app.no-cv, body.fold .app.no-cv { grid-template-columns: minmax(0, 1fr); }
  .td-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px; } .td-talk { grid-column: 1 / -1; justify-self: start; }
  .td-next { grid-template-columns: auto minmax(0, 1fr); } .td-next .bc-btn { grid-column: 1 / -1; justify-self: start; }
  .cmdk { padding-top: 8px; }
}

/* ── the map: icons, telling from the overview ── */
.ws-bmap .bzone { display: flex; flex-direction: column; gap: 8px; }
.bz-top { display: flex; align-items: center; gap: 8px; }
.bz-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.bz-foot { display: flex; align-items: center; justify-content: space-between; }
.bz-add { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 8px; background: var(--bc-canvas); color: var(--bc-plum); font: 600 16px/1 var(--bc-text); cursor: pointer; opacity: 0; transition: opacity .15s; }
.bzone:hover .bz-add, .bz-add:focus-visible { opacity: 1; }
.bz-add:hover { background: var(--bc-plum); color: #fff; }
.bm-tell { margin-top: 14px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .06), 0 16px 34px -28px rgba(74, 29, 87, .5); }
.bm-tell-h { display: flex; align-items: center; font-size: 14.5px; margin-bottom: 10px; }
.bm-tell-f { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 8px; }
.bm-tell-f select, .bm-tell-f input { min-width: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--bc-canvas); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); font: inherit; font-size: 14px; color: var(--bc-ink); }
.bm-tell-f select:focus, .bm-tell-f input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-plum); background: #fff; }
.bm-note { margin-top: 8px; font-size: 13px; color: var(--bc-ink-2); }
.bm-tell .w-prop { margin-top: 10px; }
.bm-q { margin-top: 12px; }
.src-ic { width: 20px; height: 20px; border-radius: 6px; vertical-align: middle; }
.map-legend .src-ic + .bdot { display: none; }
.zf em { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .bm-tell-f { grid-template-columns: 1fr; } }

/* ── a room's own work, and notices ── */
.m--work { display: flex; align-items: center; gap: 10px; padding: 3px 0 3px 8px; }
.m-face--sm, .m--work .me--sm { width: 24px; height: 24px; flex: none; }
.m-w { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 13px; color: var(--bc-ink-2); }
.m-w time { margin-left: auto; font-size: 11.5px; color: var(--bc-ink-3); font-variant-numeric: tabular-nums; }
.m-w-ok { width: 15px; height: 15px; color: var(--bc-sage); flex: none; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 10px; width: min(380px, calc(100vw - 24px)); }
.toast { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 40px 14px 14px; border-radius: 20px; background: rgba(255, 255, 255, .97); box-shadow: var(--bc-float), inset 0 0 0 1px rgba(74, 29, 87, .12); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: none; }
.toast > span { display: grid; gap: 3px; min-width: 0; }
.toast small { font-size: 12px; font-weight: 600; color: var(--bc-plum); }
.toast b { font-size: 14px; line-height: 1.35; }
.toast-face { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; flex: none; }
.toast-ok { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--bc-sage); color: #fff; stroke-width: 2.6; flex: none; }
.toast-act { display: flex !important; grid-auto-flow: column; gap: 6px; margin-top: 8px; }
.toast-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--bc-ink-3); cursor: pointer; }
.toast-x:hover { background: var(--bc-canvas); }
.toast-x .bc-icon { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ── the map's honest states: an outlined dot is a fact nobody can see yet; a flag marks an area with a disagreement or an ageing answer ── */
.bdot.o { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.bz-flag { display: grid; place-items: center; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c); color: #fff; font: 700 11px/1 var(--bc-text); }
.bz-flag:empty { min-width: 10px; width: 10px; height: 10px; padding: 0; }

/* ── one fact, opened ── */
.zf li { display: block; padding: 0; overflow: hidden; }
.zf-row { display: grid; grid-template-columns: 14px 1fr auto 18px; gap: 12px; align-items: start; width: 100%; padding: 12px 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 16px; }
.zf-row:hover { background: rgba(123, 92, 214, .05); }
.zf-row:focus-visible { outline: 2px solid var(--bc-plum); outline-offset: -2px; }
.zf-chev { width: 18px; height: 18px; margin-top: 2px; color: var(--bc-ink-3); transition: transform .2s; }
.zf li.open .zf-chev { transform: rotate(180deg); }
.zf li.open { background: #fff; box-shadow: inset 0 0 0 1px rgba(123, 92, 214, .25), 0 14px 32px -24px rgba(74, 29, 87, .5); }
.zf li.st-contradicted { box-shadow: inset 3px 0 0 #d6455f, inset 0 0 0 1px rgba(214, 69, 95, .18); }
.zf li.st-stale .zf-v { color: var(--bc-ink-2); }
.zf li.st-blocked, .zf li.st-not_published { background: rgba(255, 255, 255, .45); }
.zf-dr { display: grid; gap: 12px; padding: 2px 16px 16px 40px; animation: zf-in .18s ease-out; }
@keyframes zf-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .zf-dr { animation: none; } .zf-chev { transition: none; } }
.zf-dr h4 { margin: 4px 0 0; font: 600 12.5px/1.3 var(--bc-text); color: var(--bc-ink-3); }
.zf-ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zf-ev li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bc-canvas); font-size: 13.5px; }
.zf-ev li.zf-none { color: var(--bc-ink-3); }
.zf-ev .src-ic { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.zf-ev .ev-th { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(31, 16, 38, .08); }
.zf-ev b { font-weight: 500; }
.zf-ev a { color: var(--bc-plum); font-weight: 500; text-decoration: none; }
.zf-ev a:hover { text-decoration: underline; }
.zf-ev small { display: block; margin-top: 1px; font-size: 12px; color: var(--bc-ink-3); }
.zf-why { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.zf-why p, p.zf-why { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--bc-ink-2); flex: 1 1 260px; }
.zf-art { width: 20px; height: 20px; border-radius: 6px; }
.zf-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--bc-ink-3); }
.zf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zf-two > div { padding: 10px 12px; border-radius: 12px; background: var(--bc-canvas); }
.zf-two > div:first-child { background: rgba(123, 92, 214, .08); }
.zf-two small { display: block; font-size: 12px; color: var(--bc-ink-3); }
.zf-two p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
.zf-conf { display: grid; gap: 10px; }
.zf-stale { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border-radius: 12px; background: rgba(176, 137, 104, .12); }
.zf-stale p { margin: 0; flex: 1 1 220px; font-size: 13.5px; }
.zf-fix { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zf-fix input[name="v"] { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid rgba(31, 16, 38, .14); border-radius: 12px; font: inherit; font-size: 14px; background: #fff; }
.zf-fix input[name="v"]:focus { outline: 2px solid var(--bc-plum); outline-offset: 0; border-color: transparent; }
.zf-att { position: relative; cursor: pointer; }
.zf-att input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.zf-att:focus-within { outline: 2px solid var(--bc-plum); outline-offset: 2px; }
@media (max-width: 640px) { .zf-row { grid-template-columns: 14px 1fr 18px; } .zf-row em { grid-column: 2; grid-row: 2; } .zf-chev { grid-column: 3; grid-row: 1; } .zf-dr { padding-left: 16px; } .zf-two { grid-template-columns: 1fr; } }

/* a disagreement waiting on Today */
.w-conf::before { background: #d6455f; }
.w-conf .wd-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.w-conf .wd-h .src-ic { width: 28px; height: 28px; border-radius: 8px; }
.w-conf .zf-two { margin-bottom: 10px; }

/* an applied proposal can be taken back */
.pp-undo { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 8px; border: 0; border-radius: 8px; background: var(--bc-canvas); color: var(--bc-ink-2); font: 500 12px/1.2 var(--bc-text); cursor: pointer; }
.pp-undo:hover { background: rgba(123, 92, 214, .12); color: var(--bc-plum); }
.pp-undo .bc-icon { width: 14px; height: 14px; }

/* an app's header picture: the page opens on the app's world, and its card sits over the picture's lower edge */
.dp-banner { position: relative; margin: 0 0 -38px; height: clamp(150px, 19vw, 240px); border-radius: 26px; overflow: hidden; }
.dp-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.dp-banner + .dp-hero { position: relative; margin: 0 18px; }
@media (max-width: 640px) { .dp-banner { height: 140px; margin-bottom: -26px; border-radius: 20px; } .dp-banner + .dp-hero { margin: 0 10px; } }

/* ── the signed-in person: the side foot, the sign-in window, the account page ── */
.sf-me { display: contents; color: inherit; text-decoration: none; }
.sf-in { display: block; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--bc-plum); font: 600 12.5px/1.3 var(--bc-text); cursor: pointer; }
.sf-in:hover { text-decoration: underline; }
.sa-dot { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--bc-plum); vertical-align: middle; }
.si { display: grid; gap: 6px; max-width: 420px; }
.si h2 { margin: 6px 0 0; font-size: 26px; }
.si-mark { width: 34px; height: 34px; }
.si-lead { margin: 0 0 8px; color: var(--bc-ink-2); font-size: 14.5px; line-height: 1.5; }
.si-code { font: 600 26px/1.2 var(--bc-display, inherit); letter-spacing: .35em; text-align: center; }
.si-dev { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--bc-ink-3); }
.si-dev .bc-icon { width: 14px; height: 14px; color: var(--bc-plum); }
.si-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(214, 69, 95, .1); color: #a3223b; font-size: 13.5px; }
.me-big { width: 72px; height: 72px; font-size: 30px; border-radius: 22px; }
.sa-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(123, 92, 214, .14); color: var(--bc-plum); font-weight: 600; }
.me-mode { display: flex; align-items: center; gap: 8px; margin: 14px 4px 0; font-size: 13px; color: var(--bc-ink-3); }
.me-mode .bc-icon { width: 16px; height: 16px; }
.me-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.me-dl dt { color: var(--bc-ink-3); }
.me-dl dd { margin: 0; }
.me-cos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.me-co { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .06); }
.me-co span { flex: 1; min-width: 0; }
.me-co b { display: block; font-weight: 600; }
.me-co small { display: block; font-size: 12.5px; color: var(--bc-ink-3); }
.me-co-art { width: 34px; height: 34px; border-radius: 10px; }
.me-co-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font: 700 12.5px/1 var(--bc-text); font-style: normal; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); }
.me-role { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bc-canvas); color: var(--bc-ink-2); }
.me-role.r-owner { background: rgba(123, 92, 214, .12); color: var(--bc-plum); }
.me-h4 { margin: 16px 0 8px; font-size: 13px; color: var(--bc-ink-3); }
.md:has(.si) { max-width: 480px; }
.me-h4 span { font-weight: 500; color: var(--bc-ink-3); margin-left: 4px; }
.me-n { font-weight: 500; font-size: 12.5px; color: var(--bc-ink-3); margin-left: 6px; }
.me-co.is-old { opacity: .6; }
/* the company switcher: the platform's companies, grouped and searchable */
.pop:has(.sw-list) { max-width: 360px; }
.sw-q { box-sizing: border-box; width: 100%; margin: 2px 0 4px; padding: 9px 12px; border: 1px solid rgba(31, 16, 38, .12); border-radius: 12px; font: inherit; font-size: 14px; background: #fff; }
.sw-q:focus { outline: 2px solid var(--bc-plum); border-color: transparent; }
.sw-list { max-height: min(60vh, 520px); overflow-y: auto; }
.sw-dot { width: 32px; height: 32px; font-size: 11.5px; }
/* a company's mark: an uploaded logo, or the initials in its brand colour */
.co-logo { overflow: hidden; background: #fff; }
.co-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-init { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font: 700 13px/1 var(--bc-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); }

/* preparing a company's workspace: the playbook runs where the owner watches it */
.prep { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; align-content: start; }
.prep-h { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05), 0 20px 44px -30px rgba(74, 29, 87, .45); }
.prep-h h2 { margin: 2px 0 4px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.prep-mark { width: 72px; height: 72px; border-radius: 22px; flex: none; font-size: 24px; }
.prep-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.prep-steps > .ps { margin: 0; min-height: 0; }
.ps { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .55); color: var(--bc-ink-3); transition: background .3s, color .3s; }
.ps.now { background: #fff; color: var(--bc-ink); box-shadow: inset 0 0 0 1px rgba(123, 92, 214, .3); }
.ps.done { background: #fff; color: var(--bc-ink); }
.ps-n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--bc-canvas); font: 600 13px/1 var(--bc-text); }
.ps.done .ps-n { background: #2f7a5c; color: #fff; }
.ps.done .ps-n .bc-icon { width: 16px; height: 16px; }
.ps-b { flex: 1; min-width: 0; }
.ps-b b { display: block; font-size: 15px; font-weight: 600; }
.ps-b small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--bc-ink-2); }
.ps-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(123, 92, 214, .25); border-top-color: var(--bc-plum); animation: ps-spin .8s linear infinite; }
@keyframes ps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ps-spin { animation: none; } }
.co-logo img { display: block; border-radius: inherit; }
.me-co-dot.co-logo { overflow: hidden; background: none; box-shadow: none; padding: 0; }

/* ── data apps: a company's own records, drawn (Izsaukumi first) ── */
.page--data { max-width: 1320px; }
.da { display: grid; gap: 18px; }
.da-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.da-art { width: 52px; height: 52px; border-radius: 16px; box-shadow: 0 12px 26px -16px rgba(74, 29, 87, .5); }
.da-t { flex: 1 1 220px; min-width: 0; }
.da-t h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; }
.da-t p { margin: 3px 0 0; font-size: 13.5px; color: var(--bc-ink-3); }
.da-years { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(31, 16, 38, .05); overflow-x: auto; max-width: 100%; }
.da-years button { padding: 6px 11px; border: 0; border-radius: 9px; background: none; font: 600 13px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.da-years button.on { background: #fff; color: var(--bc-ink); box-shadow: 0 2px 8px -4px rgba(31, 16, 38, .3); }
.da-search { display: flex; align-items: center; gap: 8px; flex: 0 1 280px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); }
.da-search .bc-icon { width: 16px; height: 16px; color: var(--bc-ink-3); flex: none; }
.da-search input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: none; font: inherit; font-size: 14px; outline: none; }
.da-search:focus-within { box-shadow: inset 0 0 0 2px var(--bc-plum); }

.da-kpis { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) .85fr .85fr; gap: 10px; }
.da-kpi { position: relative; display: grid; align-content: start; gap: 4px; min-height: 96px; padding: 14px 16px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, .85); text-align: left; font: inherit; color: inherit; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); transition: box-shadow .15s, transform .15s; }
.da-kpi:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 14px 30px -22px rgba(74, 29, 87, .5); }
.da-kpi.on { box-shadow: 0 0 0 2px var(--c), 0 14px 30px -22px rgba(74, 29, 87, .5); background: #fff; }
.da-kpi-k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); }
.da-kpi-k i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.da-kpi b { font: 700 24px/1.1 var(--bc-display, inherit); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.da-kpi small { font-size: 12.5px; color: var(--bc-ink-3); }
.da-kpi.big { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #fff), #fff 70%); }
.da-kpi.big b { font-size: 32px; color: color-mix(in srgb, var(--c) 85%, #000); }
.da-kpi--mini b { font-size: 22px; }
.da-kpi.sk, .da-row.sk { min-height: 96px; background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.95), rgba(255,255,255,.5)); background-size: 200% 100%; animation: da-sk 1.2s linear infinite; cursor: default; box-shadow: none; }
.da-row.sk { min-height: 58px; border-radius: 14px; margin-bottom: 6px; }
@keyframes da-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .da-kpi.sk, .da-row.sk { animation: none; } }

.da-mid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; }
.da-card { display: flex; flex-direction: column; }
.da-card .da-chart { flex: 1; min-height: 190px; height: auto; }
.da-unk { font-style: normal; color: var(--bc-ink-3); }
.da-card, .da-who { padding: 16px 16px 10px; border-radius: 22px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.da-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 190px; align-items: end; }
.da-col { position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 18px 0 0; border: 0; background: none; cursor: pointer; font: inherit; }
.da-bar { align-self: end; display: flex; flex-direction: column-reverse; width: 100%; min-height: 2px; border-radius: 8px 8px 4px 4px; overflow: hidden; transition: opacity .15s; }
.da-bar i { display: block; min-height: 1px; }
.da-col small { margin-top: 6px; font-size: 11.5px; color: var(--bc-ink-3); text-transform: capitalize; }
.da-col em { position: absolute; top: 0; left: 0; right: 0; font-style: normal; font-size: 11px; font-weight: 600; color: var(--bc-ink-3); opacity: 0; transition: opacity .15s; }
.da-col:hover em, .da-col.on em { opacity: 1; }
.da-col.dim .da-bar { opacity: .35; }
.da-col.on small { color: var(--bc-ink); font-weight: 700; }
.da-col:focus-visible { outline: 2px solid var(--bc-plum); outline-offset: 2px; border-radius: 8px; }
.da-who h4 { margin: 0 0 8px; font-size: 13px; color: var(--bc-ink-2); }
.da-who-r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.da-who-r:hover { background: rgba(194, 65, 12, .07); }
.da-who-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-who-r small { color: var(--bc-ink-3); font-size: 12px; }
.da-who-r b { font-variant-numeric: tabular-nums; }

.da-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.da-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .08); font: 600 13px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.da-chip i { width: 8px; height: 8px; border-radius: 50%; }
.da-chip.on { background: var(--bc-ink); color: #fff; box-shadow: none; }
.da-chip--x { background: rgba(123, 92, 214, .12); color: var(--bc-plum); box-shadow: none; }

.da-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.da-list { display: grid; gap: 4px; }
.da-count { margin: 0 0 4px; font-size: 12.5px; color: var(--bc-ink-3); }
.da-day { margin: 12px 4px 4px; font-size: 12.5px; font-weight: 600; color: var(--bc-ink-3); }
.da-day::first-letter, .da-dl dd:first-of-type::first-letter { text-transform: uppercase; }
.da-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .8); text-align: left; font: inherit; color: inherit; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(31, 16, 38, .04); transition: box-shadow .12s, background .12s; }
.da-row:hover { background: #fff; box-shadow: 0 0 0 1px rgba(123, 92, 214, .25); }
.da-row.on { background: #fff; box-shadow: 0 0 0 2px var(--bc-plum); }
.da-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.da-row-b { min-width: 0; }
.da-row-b b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-row-b small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--bc-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-row-r { display: grid; justify-items: end; gap: 3px; }
.da-row-r b { font-size: 14px; font-variant-numeric: tabular-nums; }
.da-row-r small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--bc-ink-3); }
.da-row-r .bc-icon { width: 13px; height: 13px; }
.da-flag { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(214, 69, 95, .12); color: #a3223b; }
.da-more { justify-self: center; margin-top: 8px; }
.da-empty { padding: 30px; text-align: center; color: var(--bc-ink-3); }

.da-det { position: sticky; top: 12px; display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .06), 0 24px 50px -34px rgba(74, 29, 87, .45); }
.da-det--empty { justify-items: center; text-align: center; padding: 40px 24px; color: var(--bc-ink-3); background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.da-det-art { width: 64px; height: 64px; border-radius: 18px; opacity: .9; }
.da-det-k { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); }
.da-det h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.da-det h4 { margin: 4px 0 0; font-size: 12.5px; color: var(--bc-ink-3); }
.da-dl { display: grid; grid-template-columns: 18px 1fr; gap: 6px 10px; margin: 0; font-size: 14px; }
.da-dl dt .bc-icon { width: 16px; height: 16px; color: var(--bc-ink-3); }
.da-dl dd { margin: 0; text-transform: none; }

.da-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 14px; overflow: hidden; background: rgba(31, 16, 38, .06); }
.da-sum span { display: grid; gap: 2px; padding: 10px 12px; background: var(--bc-canvas); font-variant-numeric: tabular-nums; font-weight: 600; }
.da-sum small { font-size: 11.5px; font-weight: 500; color: var(--bc-ink-3); }
.da-sum .tot { background: rgba(123, 92, 214, .1); color: var(--bc-plum); }
.da-lines, .da-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.da-lines li { display: flex; gap: 12px; justify-content: space-between; padding: 9px 12px; border-radius: 12px; background: var(--bc-canvas); font-size: 13.5px; }
.da-lines li b { font-weight: 500; }
.da-lines li small, .da-docs small { display: block; margin-top: 2px; font-size: 12px; color: var(--bc-ink-3); }
.da-lines em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.da-docs li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bc-canvas); font-size: 13.5px; }
.da-docs .bc-icon { width: 18px; height: 18px; color: var(--bc-plum); flex: none; }
.da-docs b { font-weight: 500; }
.da-note { margin: 0; font-size: 12px; color: var(--bc-ink-3); }
.da-q { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(123, 92, 214, .08); font-size: 13.5px; }
.da-q p { margin: 0; }

@media (max-width: 1100px) { .da-kpis { grid-template-columns: repeat(3, 1fr); } .da-mid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .da-body { grid-template-columns: 1fr; } .da-det { position: static; } .da-kpis { grid-template-columns: 1fr 1fr; } .da-chart { height: 150px; gap: 3px; } .da-search { flex: 1 1 100%; } }
.da-who-r.on { background: rgba(194, 65, 12, .12); }
/* data apps, continued: tabs, the ledger's heat grid, invoices' payment bars, agreement cards */
.da-tabs { display: inline-flex; gap: 2px; margin-bottom: 6px; padding: 3px; border-radius: 11px; background: rgba(31, 16, 38, .05); }
.da-tabs button { padding: 5px 11px; border: 0; border-radius: 8px; background: none; font: 600 12.5px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.da-tabs button.on { background: #fff; color: var(--bc-ink); box-shadow: 0 2px 8px -4px rgba(31, 16, 38, .3); }
.da-kpis--5 { grid-template-columns: repeat(5, 1fr); }
.da-kpis--k { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.da-kpi--info { cursor: default; }
div.da-kpi { cursor: default; }
.da-honest { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(8, 145, 178, .08); color: #0e5a6e; font-size: 13px; line-height: 1.45; }
.da-honest .bc-icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.da-row--static { cursor: default; }
.da-row--static:hover { background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(31, 16, 38, .04); }
.da-party { font-weight: 500; color: var(--bc-ink-2); }
.da-paid { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: rgba(194, 65, 12, .18); overflow: hidden; margin-right: 6px; }
.da-paid i { display: block; height: 100%; background: #2f7a5c; }
.da-who-r--3 small { color: #c2410c; }
.da-det-p { margin: -6px 0 0; font-size: 14.5px; font-weight: 500; }
.da-det-p small { color: var(--bc-ink-3); font-weight: 400; margin-left: 6px; }
.da-dl--3 { grid-template-columns: max-content 1fr; }
.da-dl--3 dt { font-size: 12.5px; color: var(--bc-ink-3); }
.da-pays { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.da-pays li { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(47, 122, 92, .08); font-size: 13.5px; }
.da-pays time { font-weight: 600; color: #2f7a5c; }
.da-pays span { color: var(--bc-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-pays b { font-variant-numeric: tabular-nums; }
.da-det-sum { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bc-ink-2); }
/* who worked, month by month */
.da-heat h4 { margin: 0 0 10px; font-size: 13px; color: var(--bc-ink-2); }
.hm { display: grid; grid-template-columns: minmax(140px, 1.4fr) repeat(12, minmax(26px, 1fr)) 60px; gap: 3px; align-items: center; overflow-x: auto; }
.hm-m { text-align: center; font-size: 11px; color: var(--bc-ink-3); text-transform: capitalize; }
.hm-n { padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 13px/1.2 var(--bc-text); color: var(--bc-ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-n:hover, .hm-n.on { background: rgba(123, 92, 214, .1); color: var(--bc-plum); }
.hm-c { display: grid; place-items: center; height: 30px; border-radius: 7px; font-style: normal; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, #7c5cff calc(var(--a) * 85%), #f3f0f7); color: #4a3a5c; }
.hm-c.hi { color: #fff; }
.hm-t { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.da-body--ledger { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.da-body--ledger > .da-chips { grid-column: 1 / -1; }
@media (max-width: 1100px) { .da-kpis--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .da-body--ledger { grid-template-columns: 1fr; } .da-kpis--5 { grid-template-columns: 1fr 1fr; } }
.door-have { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--bc-ink-2); }
/* objekti, cenas, jautājumi */
.da-body--sites { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.da-side { display: grid; gap: 12px; align-content: start; }
.da-side .da-det { position: static; }
.st-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(123, 92, 214, .1); color: var(--bc-plum); }
.st-ic .bc-icon { width: 16px; height: 16px; }
.da-row:has(.st-ic) { grid-template-columns: 30px minmax(0, 1fr) auto; }
.da-flag--o { background: rgba(194, 65, 12, .12); color: #9a3412; }
.yr-bars { display: flex; align-items: end; gap: 6px; height: 90px; }
.yr-bars span { position: relative; flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; }
.yr-bars i { align-self: end; display: block; border-radius: 6px 6px 3px 3px; background: #7c5cff; min-height: 2px; }
.yr-bars small { font-size: 11px; color: var(--bc-ink-3); margin-top: 3px; }
.yr-bars em { position: absolute; top: -2px; left: 0; right: 0; font-style: normal; font-size: 11px; font-weight: 600; color: var(--bc-ink-2); }
.pg-h3 { margin: 4px 0 10px; font-size: 15px; }
.pg-h3 small { font-weight: 500; color: var(--bc-ink-3); margin-left: 4px; }
.da-body--prices { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.prs, .asks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.pr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.pr-n { font-size: 14px; font-weight: 600; }
.pr-r { display: grid; grid-template-columns: minmax(110px, auto) auto 1fr; gap: 10px; align-items: baseline; font-size: 13px; }
.pr-r small { color: var(--bc-ink-2); }
.pr-r b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pr-r em { font-style: normal; color: var(--bc-ink-3); font-size: 12px; }
.prs--old .pr { background: rgba(255, 255, 255, .55); }
.prs--old .pr-r b { font-size: 14px; color: var(--bc-ink-2); }
.asks li { padding: 10px 12px; border-radius: 12px; background: rgba(194, 65, 12, .06); font-size: 13.5px; line-height: 1.45; }
.asks p { margin: 0; }
.da-row--q { grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
.q-k { justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); }
.q-q { white-space: normal !important; font-weight: 500 !important; }
.q-ask { display: flex; gap: 12px; align-items: flex-start; }
.q-face { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.q-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.q-form input { flex: 1; }
@media (max-width: 820px) { .da-body--sites, .da-body--prices { grid-template-columns: 1fr; } .da-row--q { grid-template-columns: 1fr; } .pr-r { grid-template-columns: 1fr auto; } .pr-r em { grid-column: 1 / -1; } }
.vat-b { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 9px; border: 0; border-radius: 999px; background: var(--bc-canvas); font: 600 11.5px/1.2 var(--bc-text); color: var(--bc-ink-2); vertical-align: middle; cursor: pointer; }
.vat-b .bc-icon { width: 12px; height: 12px; }
.vat-b.ok { background: rgba(47, 122, 92, .12); color: #1f5e45; cursor: default; }
.vat-b.no { background: rgba(214, 69, 95, .12); color: #a3223b; cursor: default; }
.vat-b.busy { cursor: default; opacity: .7; }

/* ── Rēķini · design A (Galds): toolbar + strip on top, the list lane and the open invoice beside it; the shared rail
   (rail.css) sits to the right. Narrow widths follow the container, not the viewport: the app knows only its own column. */
.page--data:has(.iv) { padding: 14px 18px 40px; }
.iv { container: iv dk / inline-size; grid-template-columns: minmax(0, 1fr); gap: 14px; --iv-top: 118px; }
/* .iv-top: the sticky top is the shared .dk-top (packages/ui/desk.css) */
.iv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.iv-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-right: 4px; }
.iv-title h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 22px/1.1 var(--bc-display); letter-spacing: -.01em; }
.iv-title > span { font-size: 14px; color: var(--bc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-up { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border: 0; border-radius: 10px; background: rgba(31, 16, 38, .05); font: 600 13px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.iv-up .bc-icon { width: 15px; height: 15px; }
.iv-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(31, 16, 38, .06); }
.iv-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: 600 13.5px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; white-space: nowrap; }
.iv-seg button.on { background: #fff; color: var(--bc-ink); box-shadow: 0 2px 8px -4px rgba(31, 16, 38, .3); }
.iv-seg--sm button { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.iv-seg-todo { display: none !important; color: #9A4B22 !important; }
.iv-seg-todo b { padding: 1px 7px; border-radius: 999px; background: #FBE7DC; }
.iv-per { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); }
.iv-per-s { width: 28px; height: 30px; border: 0; border-radius: 8px; background: rgba(31, 16, 38, .05); font: 600 16px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.iv-per-s:disabled { opacity: .35; cursor: default; }
.iv-per-l { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 8px; min-height: 30px; border: 0; border-radius: 8px; background: none; font: inherit; color: var(--bc-ink); cursor: pointer; white-space: nowrap; }
.iv-per-l b { font: 700 15px/1 var(--bc-display); }
.iv-per-l small { font-size: 12.5px; color: var(--bc-ink-3); }
.iv-per-l i { font-style: normal; font-size: 10px; color: var(--bc-ink-3); }
.iv-per-m { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: grid; gap: 2px; min-width: 240px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--bc-float); }
.iv-per-m > button { padding: 9px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font: 500 14px/1.2 var(--bc-text); color: var(--bc-ink); cursor: pointer; }
.iv-per-m > button:hover, .iv-per-m > button.on { background: var(--bc-plum-tint); }
.iv-per-c { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; padding: 10px 6px 4px; border-top: 1px solid var(--bc-line); }
.iv-per-c > span { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); }
.iv-per-c label { display: grid; gap: 3px; font-size: 11.5px; color: var(--bc-ink-3); }
.iv-per-c input { padding: 6px 8px; border: 1px solid var(--bc-line); border-radius: 8px; font: inherit; font-size: 13px; }
.iv-per-c button { grid-column: 1 / -1; justify-content: center; }
.iv-search { flex: 1 1 160px; max-width: 240px; }
.iv-sel select { min-height: 32px; padding: 0 28px 0 10px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .1); font: 600 13px/1 var(--bc-text); color: var(--bc-ink); cursor: pointer; }
/* the strip: this period's numbers, each a filter */
.iv-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.iv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(31, 16, 38, .07); font: 400 13.5px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; white-space: nowrap; }
.iv-chip b { font: 700 14.5px/1 var(--bc-display); color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.iv-chip i { width: 8px; height: 8px; border-radius: 50%; }
.iv-chip.on { background: var(--bc-plum-tint); border-color: #DCD2EA; box-shadow: none; color: var(--bc-plum); }
.iv-chip.sk { min-width: 120px; color: transparent; background: rgba(255, 255, 255, .6); cursor: default; }
.iv-chip--todo { margin-left: auto; background: #FBE7DC; color: #9A4B22; box-shadow: none; }
.iv-chip--todo b { color: #9A4B22; }
.iv-x { margin: 0 -4px 0 2px; padding: 0 4px; border: 0; background: none; font-size: 16px; line-height: 1; color: inherit; cursor: pointer; }
.iv-link { padding: 4px 6px; border: 0; background: none; font: 500 13px/1.2 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(31, 16, 38, .2); text-underline-offset: 3px; }
.iv-link:hover { color: var(--bc-plum); }
.iv-strip-end { margin-left: auto; }
/* the desk: list lane · open invoice */
.iv-desk { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.iv--table .iv-desk { grid-template-columns: minmax(0, 1fr); }
.iv-lane { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.iv-lane--list { overflow-x: clip; overflow-clip-margin: 6px; }
.iv-lane--det { container: det / inline-size; position: sticky; top: calc(var(--iv-top) - 6px); max-height: calc(100vh - var(--iv-top) - 30px); overflow-y: auto; border-radius: 22px; scrollbar-width: thin; }
.iv-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.iv-count { font-size: 12.5px; color: var(--bc-ink-3); margin-left: auto; white-space: nowrap; }
.iv-csv { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 0; border-radius: 9px; background: rgba(31, 16, 38, .05); font: 600 12px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.iv-csv .bc-icon { width: 13px; height: 13px; }
.iv-rows { display: grid; gap: 3px; }
.iv-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 54px; padding: 8px 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .82); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.iv-row:hover { background: #fff; }
.iv-row.on { background: var(--bc-plum-tint); box-shadow: inset 0 0 0 1.5px #D8CBEA; }
.iv-row:focus-visible, .iv-tt:focus-visible, .iv-chip:focus-visible, .iv-seg button:focus-visible { outline: 2px solid var(--bc-focus); outline-offset: 2px; }
.iv-row-b { min-width: 0; display: grid; gap: 3px; }
.iv-row-b b { font-size: 14.5px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-row-b b small { font-size: 12.5px; font-weight: 400; color: var(--bc-ink-3); margin-left: 4px; }
.iv-row-b > small { font-size: 12.5px; color: var(--bc-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-row-r { display: grid; justify-items: end; gap: 4px; }
.iv-row-r b { font: 700 15px/1.1 var(--bc-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.iv-row-r small { font-size: 12px; color: var(--bc-ink-3); }
.iv-row--pay { grid-template-columns: 12px minmax(0, 1fr) auto; cursor: default; align-items: start; }
.iv-row--pay:hover { background: rgba(255, 255, 255, .82); }
.iv .da-day { margin: 12px 4px 4px; }
.iv-gp { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.iv-gp span { color: var(--bc-ink); font-weight: 700; }
.iv-gp small { font-weight: 500; }
.iv-older { justify-self: center; margin-top: 6px; }
.iv-src { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #ECE6F7; color: var(--bc-plum); font: 700 11px/1 var(--bc-text); flex: none; }
.iv-src--archive { background: #F4EDDD; color: #7A5A16; }
.iv-src--photo, .iv-src--scan { background: #E0F0E6; color: #2f6b45; }
.iv-src--mail, .iv-src--telegram { background: #E3EEF7; color: #1d5a86; }
.iv-src--einvoice { background: #E8F0E4; color: var(--bc-sage); }
.iv-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font: 600 11.5px/1.2 var(--bc-text); font-style: normal; white-space: nowrap; }
.iv-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.iv-pill--wait { background: #F4EDDD; color: #7A5A16; }
.iv-pill--wait::before { background: #C9A227; opacity: 1; }
.iv-pill--paid { background: var(--bc-sage-tint); color: var(--bc-sage); }
.iv-pill--part { background: #EFEAF6; color: var(--bc-plum); }
.iv-pill--draft { background: #F1E9E1; color: #7d5537; }
.iv-pill--rev { background: #FBE7DC; color: #9A4B22; }
.iv-pill--off { background: #EEECF1; color: var(--bc-ink-3); }
.iv-pill--late { background: #FBE3E6; color: #a3223b; }
.iv-info { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; background: rgba(31, 16, 38, .08); color: var(--bc-ink-2); font: italic 700 10px/1 Georgia, serif; vertical-align: 1px; cursor: help; }
.iv-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: var(--bc-ink-3); }
.iv-empty-art { width: 72px; height: 72px; border-radius: 20px; opacity: .9; }
.iv-empty p { margin: 0; }
/* the inbox: captures still to process */
.iv-inbox { display: grid; gap: 6px; padding: 12px; border-radius: 20px; background: #FBE7DC; }
.iv-inbox header { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.iv-inbox h3 { margin: 0; font: 700 14px/1 var(--bc-display); color: #9A4B22; }
.iv-inbox header span { font-size: 12.5px; font-weight: 600; color: #9A4B22; }
.iv-inbox .iv-link { justify-self: start; color: #9A4B22; }
.iv-cap { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .78); }
.iv-cap.on { box-shadow: inset 0 0 0 1.5px #E8B79A; background: #fff; }
.iv-cap-b { min-width: 0; display: grid; gap: 2px; }
.iv-cap-b b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-cap-b small { font-size: 12.5px; color: var(--bc-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-cap-go { padding: 7px 12px; border: 0; border-radius: 10px; background: #FBE7DC; font: 600 12.5px/1 var(--bc-text); color: #9A4B22; cursor: pointer; }
.iv-thumb { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 6px; overflow: hidden; background: #DEDAE4; color: var(--bc-ink-3); }
.iv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.iv-thumb span { display: grid; justify-items: center; }
.iv-thumb .bc-icon { width: 16px; height: 16px; }
.iv-thumb small { font-size: 8.5px; font-weight: 700; }
.iv-thumb--big { width: 100%; height: 150px; border-radius: 12px; }
.iv-thumb--big .bc-icon { width: 30px; height: 30px; }
.iv-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.iv-capc { display: grid; gap: 8px; padding: 8px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.iv-capc:hover { box-shadow: 0 0 0 1.5px #E8B79A; }
.iv-capc .iv-cap-b small { white-space: normal; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.iv-capc .iv-src { width: 18px; height: 18px; font-size: 10px; border-radius: 6px; }
/* the table */
.iv-table { display: grid; gap: 2px; font-size: 13px; overflow-x: auto; padding-bottom: 4px; }
.iv-table:not(.iv-table--narrow) .iv-tt { min-width: 960px; }
.iv-tt { display: grid; grid-template-columns: 26px minmax(96px, .9fr) minmax(120px, 1.6fr) 58px 72px minmax(112px, .9fr) repeat(4, minmax(78px, .7fr)) 40px; gap: 8px; align-items: center; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .82); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.iv-table--narrow .iv-tt { grid-template-columns: minmax(96px, 1fr) minmax(0, 1.4fr) auto auto; }
.iv-tt:hover { background: #fff; }
.iv-tt.on { background: var(--bc-plum-tint); box-shadow: inset 0 0 0 1.5px #D8CBEA; }
.iv-tt > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-tt .c-net, .iv-tt .c-tx, .iv-tt .c-g, .iv-tt .c-p, .iv-tt .c-act { text-align: right; font-variant-numeric: tabular-nums; }
.iv-tt .c-g { font-weight: 700; }
.iv-tt--h { min-height: 30px; background: none; cursor: default; font-size: 11.5px; font-weight: 600; color: var(--bc-ink-3); }
.iv-tt--h:hover { background: none; }
.iv-tt--g { display: block; min-height: 0; padding: 12px 10px 2px; background: none; cursor: default; font-weight: 700; color: var(--bc-ink); }
.iv-tt--g:hover { background: none; }
.iv-tt--sub { background: rgba(31, 16, 38, .035); cursor: default; font-weight: 600; color: var(--bc-ink-2); }
.iv-tt--sub:hover { background: rgba(31, 16, 38, .035); }
.iv-tt--sub .c-party { grid-column: span 3; }
/* the open invoice */
.iv-det { display: grid; gap: 12px; padding: 16px 18px 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .06), 0 24px 50px -34px rgba(74, 29, 87, .45); }
.iv-det--empty { justify-items: center; align-content: center; min-height: 360px; text-align: center; color: var(--bc-ink-3); background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.iv-det--empty p { margin: 0; }
.iv-dh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.iv-dh.sk, .iv-card.sk, .iv-page.sk { min-height: 56px; border-radius: 14px; background: linear-gradient(90deg, #F1EEF4, #FBFAFC, #F1EEF4); background-size: 200% 100%; animation: da-sk 1.2s linear infinite; }
.iv-dh .iv-back { grid-column: 1 / -1; }
.iv-dh-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iv-dh-t h3 { margin: 0; font: 700 20px/1.15 var(--bc-display); }
.iv-dh-m { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.6; color: var(--bc-ink-2); }
.iv-dh-m .iv-src { vertical-align: -4px; }
.iv-dh-m .iv-src { width: 18px; height: 18px; font-size: 10px; border-radius: 6px; }
.iv-dh-a { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@container det (max-width: 560px) { .iv-dh { grid-template-columns: minmax(0, 1fr); } .iv-dh-a { grid-column: 1; grid-row: auto; justify-content: flex-start; } }
.iv-dh h3 + p, .iv-inall .iv-dh p { margin: 4px 0 0; font-size: 13px; color: var(--bc-ink-3); }
.iv-inall .iv-dh h3 { margin: 0; font: 700 18px/1.2 var(--bc-display); }
.iv-plink { padding: 0; border: 0; background: none; font: 600 13px/1.3 var(--bc-text); color: var(--bc-plum); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(74, 29, 87, .25); text-underline-offset: 3px; }
.iv-back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 10px 6px 6px; border: 0; border-radius: 10px; background: rgba(31, 16, 38, .05); font: 600 13px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.iv-back .bc-icon { width: 15px; height: 15px; }
.iv-dv { justify-self: start; }
.iv-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.iv-body--both { grid-template-columns: minmax(240px, 45%) minmax(280px, 1fr); }
@container det (max-width: 540px) { .iv-body--both { grid-template-columns: minmax(0, 1fr); } .iv-orig { position: static; } }
.iv-orig { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; position: sticky; top: 0; }
.iv-body--orig .iv-orig { position: static; }
.iv-orig figcaption { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bc-ink-3); }
.iv-orig figcaption span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-pg { width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(31, 16, 38, .06); font: 600 12px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.iv-pg.on { background: var(--bc-plum); color: #fff; }
.iv-full { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(31, 16, 38, .06); color: var(--bc-ink-2); }
.iv-full .bc-icon { width: 14px; height: 14px; transform: rotate(-45deg); }
.iv-page { position: relative; aspect-ratio: 1 / 1.414; border-radius: 6px; overflow: hidden; background: #DEDAE4 linear-gradient(90deg, #DEDAE4, #E9E6EE, #DEDAE4); background-size: 200% 100%; animation: da-sk 1.6s linear infinite; }
.iv-page iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.iv-page--pic { aspect-ratio: auto; min-height: 220px; animation: none; }
.iv-page--pic a { display: block; }
.iv-page--pic img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #DEDAE4; }
.iv-page--none { display: grid; place-items: center; aspect-ratio: auto; min-height: 140px; animation: none; background: #F1EEF4; }
.iv-page--none p { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px; font-size: 13px; color: var(--bc-ink-3); }
.iv-page--none .bc-icon { width: 18px; height: 18px; }
.iv-body--orig .iv-page:not(.iv-page--pic) { aspect-ratio: auto; height: calc(100vh - var(--iv-top) - 190px); min-height: 480px; }
@media (prefers-reduced-motion: reduce) { .iv-page, .iv-dh.sk, .iv-card.sk, .iv-page.sk { animation: none; } }
.iv-cards { display: grid; gap: 12px; min-width: 0; }
.iv-card { display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 24px -14px rgba(31, 16, 38, .28), 0 1px 2px rgba(31, 16, 38, .06), 0 0 0 1px rgba(31, 16, 38, .04); }
.iv-card h4 { margin: 0; font: 700 13px/1.2 var(--bc-display); color: var(--bc-ink-2); }
.iv-card--sug { background: #FFF8F3; box-shadow: inset 0 0 0 1px #F3D5C3; }
.iv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; margin: 0; }
.iv-facts dt { font-size: 12px; color: var(--bc-ink-3); }
.iv-facts dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.iv-facts dd small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--bc-ink-3); }
.iv-facts dd .vat-b { margin: 6px 0 0; }
.iv-f-wide { grid-column: span 2; }
.iv-tot dd { font: 700 22px/1.1 var(--bc-display); }
@container det (max-width: 460px) { .iv-facts { grid-template-columns: 1fr 1fr; } .iv-f-wide { grid-column: 1 / -1; } }
.iv-lt { display: grid; font-size: 13.5px; }
.iv-lt-h, .iv-lt-r { display: grid; grid-template-columns: minmax(0, 1fr) 54px 84px 92px; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bc-line); }
.iv-lt-h { padding-top: 0; font-size: 11.5px; font-weight: 600; color: var(--bc-ink-3); }
.iv-lt-r:last-child { border-bottom: 0; }
.iv-lt-h span:nth-child(n+2), .iv-lt-r span:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.iv-lt-r span:last-child { font-weight: 600; }
.iv-lt-r small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--bc-ink-3); }
@container cards (max-width: 460px) { .iv-lt-h { display: none; } .iv-lt-r { grid-template-columns: minmax(0, 1fr) auto; } .iv-lt-r span:nth-child(2), .iv-lt-r span:nth-child(3) { display: none; } }
.iv-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.iv-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #F3E4DA; }
.iv-lines small { display: block; font-size: 11.5px; color: var(--bc-ink-3); }
.iv-lines em { font-style: normal; font-weight: 600; white-space: nowrap; }
.iv-prog { display: grid; gap: 6px; }
.iv-prog span { height: 8px; border-radius: 999px; background: #EEECF1; overflow: hidden; }
.iv-prog i { display: block; height: 100%; border-radius: 999px; background: var(--bc-sage); }
.iv-prog small { font-size: 13px; color: var(--bc-ink-2); font-variant-numeric: tabular-nums; }
.iv-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-ck { padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 var(--bc-text); }
.iv-ck--ok { background: var(--bc-sage-tint); color: var(--bc-sage); }
.iv-ck--q { background: #F4EDDD; color: #7A5A16; }
/* the other views */
.iv-lead { margin: -4px 0 0; font-size: 13px; color: var(--bc-ink-3); }
.iv-h4 { margin: 0 0 10px; font-size: 13px; color: var(--bc-ink-2); }
.iv-h4 small, .iv-h3 small { font-weight: 500; color: var(--bc-ink-3); }
.iv-h3 { display: flex; align-items: center; gap: 8px; }
.iv-h3 .iv-csv { margin-left: auto; }
.da-kpis--4 { grid-template-columns: 1.4fr repeat(3, 1fr); }
.da-mid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.iv-agecard h4 { margin: 0 0 10px; font-size: 13px; color: var(--bc-ink-2); }
.iv-agecard h4 small { font-weight: 500; color: var(--bc-ink-3); }
.iv-age { display: grid; gap: 10px; }
.iv-age-c { margin: 0; font-size: 12px; font-weight: 700; }
.iv-age-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #EEECF1; }
.iv-age-bar i { min-width: 3px; }
.iv-age-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 6px; }
.iv-agecard { min-width: 0; }
.iv-age-b { display: grid; gap: 2px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--bc-canvas); text-align: left; font: inherit; color: inherit; }
button.iv-age-b { cursor: pointer; }
.iv-age-b.on { box-shadow: 0 0 0 2px var(--c); background: #fff; }
.iv-age-b span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bc-ink-2); }
.iv-age-b i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.iv-age-b b { font-variant-numeric: tabular-nums; font-size: 14.5px; }
.iv-age-b small { font-size: 11.5px; color: var(--bc-ink-3); }
.iv-ptbl { display: grid; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.iv-ptbl .iv-pr { min-width: 820px; }
.iv-pr { display: grid; grid-template-columns: minmax(170px, 2fr) 70px repeat(3, minmax(96px, 1fr)) 100px minmax(140px, 1.2fr); gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .82); font-size: 13.5px; }
.iv-pr > span { font-variant-numeric: tabular-nums; text-align: right; }
.iv-pr > span.iv-vat { text-align: left; }
.iv-pr--h { background: none; padding-top: 0; padding-bottom: 0; }
.iv-th { padding: 4px 0; border: 0; background: none; font: 600 11.5px/1.2 var(--bc-text); color: var(--bc-ink-3); cursor: pointer; text-align: right; }
.iv-th:first-child, .iv-th:last-child { text-align: left; }
.iv-th.on { color: var(--bc-plum); text-decoration: underline; text-underline-offset: 3px; }
.iv-pn { display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.iv-pn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-pn:hover b { color: var(--bc-plum); text-decoration: underline; text-underline-offset: 3px; }
.iv-pn small { font-size: 11.5px; color: var(--bc-ink-3); }
.iv-o { font-weight: 600; color: #7A5A16; }
.iv-mini { display: flex; height: 4px; margin-top: 4px; border-radius: 2px; overflow: hidden; background: #EEECF1; }
.iv-vat .vat-b { margin-left: 0; }
.iv-phead { display: grid; gap: 4px; }
.iv-phead h3 { margin: 4px 0 0; font: 700 24px/1.15 var(--bc-display); }
.iv-phead p { margin: 0; font-size: 13.5px; color: var(--bc-ink-2); }
.iv-also { font-size: 12.5px !important; color: var(--bc-ink-3) !important; }
.iv-invs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.iv-inv { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; border: 0; border-radius: 999px; background: var(--bc-plum-tint); font: 500 12px/1.2 var(--bc-text); color: var(--bc-plum); cursor: pointer; }
.iv-inv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bc-ink-2); }
.iv-inv em { font-style: normal; font-weight: 600; }
.iv-rows--pay .iv-count { margin: 0 0 4px; }
.iv-vnote { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; }
.iv-vnote .bc-icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.iv-vtbl { display: grid; gap: 2px; font-size: 13px; overflow-x: auto; }
.iv-vr { display: grid; gap: 8px; align-items: center; min-width: 640px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .82); }
.iv-vr > span { text-align: right; font-variant-numeric: tabular-nums; }
.iv-vr--h { background: none; padding-top: 0; font-size: 11.5px; font-weight: 600; color: var(--bc-ink-3); }
.iv-vr--h > span:first-child { text-align: left; }
.iv-vr--f { background: var(--bc-plum-tint); font-weight: 700; }
.iv-gh small { display: block; font-weight: 500; }
.iv-v { font-weight: 600; }
.iv-bad { color: #9A4B22; background: #FBE7DC; border-radius: 8px; padding: 2px 6px; font-weight: 600; }
.iv-warn { color: #7A5A16; font-weight: 600; }
.iv-lnk { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.iv-lnk:hover b { color: var(--bc-plum); }
.iv-ybars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(34px, 1fr); gap: 6px; height: 150px; }
.iv-ybars button { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 4px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.iv-ybars span { display: flex; align-items: flex-end; }
.iv-ybars i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: #CFC4E6; }
.iv-ybars button.on i, .iv-ybars button:hover i { background: var(--bc-plum); }
.iv-ybars em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--bc-ink-3); text-align: center; white-space: nowrap; }
.iv-ybars small { font-size: 11.5px; color: var(--bc-ink-3); text-align: center; }
.iv-ybars button.on small { color: var(--bc-ink); font-weight: 700; }
/* narrower columns: the list shrinks first, then the open invoice becomes its own screen */
@container iv (max-width: 980px) { .iv-desk { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); } .iv-title > span { display: none; } }
@container iv (max-width: 700px) {
  .iv-desk, .iv--table .iv-desk { grid-template-columns: minmax(0, 1fr); }
  .iv--open .iv-lane--list { display: none; }
  .iv-lane--det { position: static; max-height: none; overflow: visible; }
  .iv:not(.iv--open) .iv-lane--det { display: none; }
  .iv-title > span { display: none; }
  .iv-search { flex: 1 1 100%; max-width: none; }
  .iv-strip { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
  .iv-strip::-webkit-scrollbar { display: none; }
  .iv-chip--todo { margin-left: 0; }
  .iv-seg-todo { display: inline-flex !important; }
  .iv-strip .iv-chip--todo, .iv-strip .iv-link { display: none; }
  .iv-det { padding: 12px; border-radius: 18px; }
  .iv-dh-a { grid-column: 1; grid-row: auto; }
  .iv-body--both .iv-page:not(.iv-page--pic) { aspect-ratio: 1 / .7; }
  .iv-tt { grid-template-columns: minmax(84px, 1fr) minmax(0, 1.3fr) auto; }
  .iv-tt .c-src, .iv-tt .c-d, .iv-tt .c-due, .iv-tt .c-net, .iv-tt .c-tx, .iv-tt .c-p, .iv-tt .c-act, .iv-tt .c-s { display: none; }
  .iv-tt--sub .c-party { grid-column: span 2; }
  .iv-ptbl .iv-pr { min-width: 0; }
  .iv-pr, .iv-pr--h { grid-template-columns: minmax(0, 1fr) auto; }
  .iv-pr--h .iv-th:not(:first-child):not(:nth-child(3)) { display: none; }
  .iv-pr > span:not(:nth-child(3)) { display: none; }
  .da-kpis--4, .da-mid--even { grid-template-columns: 1fr 1fr; }
  .iv-per-m { left: auto; right: 0; }
}
@container iv (max-width: 440px) { .iv-per-l small { display: none; } .da-kpis--4, .da-mid--even { grid-template-columns: 1fr; } .iv-row-b b small { display: block; margin: 2px 0 0; } }

/* the one primary action and its menu; writes the platform cannot make yet: present, quiet, the held sentence on press */
.iv-new { position: relative; margin-left: auto; }
.iv-new-b { white-space: nowrap; }
.iv-new-m { left: auto; right: 0; }
.iv-more { position: relative; display: inline-block; }
.iv-more-m { left: auto; right: 0; min-width: 200px; }
.iv-held, .iv-per-m > button.iv-held { opacity: .55; cursor: not-allowed; }
.iv-held:hover { opacity: .7; }
.iv-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-send { background: var(--bc-plum); color: #fff; }
.iv-chip--quiet { background: none; box-shadow: none; color: var(--bc-ink-3); }
.iv-chip--quiet b { color: var(--bc-ink-2); font-weight: 600; }
.iv-outside { margin: -4px 0 0; font-size: 12.5px; color: var(--bc-ink-3); }
.iv-outside b { color: var(--bc-ink-2); font-variant-numeric: tabular-nums; }
.iv-cap--held { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px dashed rgba(154, 75, 34, .3); outline: 1px dashed rgba(154, 75, 34, .35); outline-offset: -1px; }
.iv-cap-b b .iv-src { width: 18px; height: 18px; font-size: 10px; border-radius: 6px; vertical-align: -3px; margin-right: 2px; }
.iv-hist { font-style: normal; padding: 0 6px; border-radius: 999px; background: #F4EDDD; color: #7A5A16; font-size: 11px; font-weight: 600; }
.iv-sheet .iv-card { gap: 8px; }
.iv-bcl { display: grid; gap: 6px; }
.iv-bc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--bc-canvas); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.iv-bc.on { background: var(--bc-plum-tint); box-shadow: inset 0 0 0 1.5px #D8CBEA; }
.iv-bc b { font-weight: 600; }
.iv-bc small { grid-column: 1; font-size: 12px; color: var(--bc-ink-3); }
.iv-bc em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 700 15px/1 var(--bc-display); font-style: normal; font-variant-numeric: tabular-nums; }
.iv-lt-r--2 { grid-template-columns: minmax(0, 1fr) 96px; }
.iv-lt-r--2 small + small { margin-top: 1px; }
.iv-ser { margin: 0; font-size: 13.5px; }
.iv-ser small { color: var(--bc-ink-3); }
.iv-thumb--bank { background: var(--bc-sage-tint); color: var(--bc-sage); }
.iv-rule { font-style: normal; padding: 1px 7px; border-radius: 999px; background: var(--bc-sage-tint); color: var(--bc-sage); font-size: 11.5px; font-weight: 600; }
.iv-rule--none { background: #F4EDDD; color: #7A5A16; }
.iv-allm { display: flex; align-items: center; gap: 6px; }
.iv-allm .bc-icon { width: 15px; height: 15px; color: var(--bc-sage); }
.iv-rgroup { margin: 18px 4px 0; font-size: 14px; }
.iv-pr--f { background: var(--bc-plum-tint); font-weight: 700; }
.iv-pr--f > span { text-align: right; }
/* the phone: a camera button and a bottom bar, only when the app's column is phone-narrow */
.iv-fab, .iv-pnav { display: none; }
@container iv (max-width: 700px) {
  .iv-seg--main { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .iv-new { display: none; }
  .iv-chip, .iv-seg button, .iv-per-s, .iv-per-l, .iv-cap-go, .iv-back, .iv-link, .bc-btn--sm { min-height: 44px; }
  .iv-per-s { width: 40px; }
  .iv-row { min-height: 60px; }
  .iv-fab { position: sticky; bottom: 84px; justify-self: end; margin: -56px 6px 0 0; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--bc-plum); color: #fff; box-shadow: var(--bc-float); cursor: pointer; }
  .iv-fab .bc-icon { width: 24px; height: 24px; }
  .iv-pnav { position: sticky; bottom: 10px; z-index: 29; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: var(--bc-float); }
  .iv-pnav > button { display: grid; justify-items: center; gap: 3px; min-height: 48px; padding: 6px 2px; border: 0; border-radius: 14px; background: none; font: 600 11px/1.1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
  .iv-pnav > button.on { background: var(--bc-plum-tint); color: var(--bc-plum); }
  .iv-pnav .bc-icon { width: 20px; height: 20px; }
  .iv-pnav b { padding: 0 5px; border-radius: 999px; background: #FBE7DC; color: #9A4B22; }
  .iv-pnav-m { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
}

.iv .da-kpi.big b { font-size: clamp(22px, 2.3vw, 30px); }
.iv .da-kpi b { overflow-wrap: anywhere; }
/* on the phone the bottom bar's "Palīgs" opens the rail, so the rail's own floating face steps aside while the bar is there */
.app.has-rail.rail-min:has(.iv-pnav) .rail { display: none; }
@container iv (max-width: 700px) { .iv-pnav { display: grid; } }
/* ── the journal: what began, ran and was recorded — who, with what, for how many points ── */
.jn-top { display: grid; gap: 12px; margin-bottom: 14px; }
.jn-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jn-sum > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.jn-sum small { font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); }
.jn-sum b { font: 700 26px/1.1 var(--bc-display, inherit); font-variant-numeric: tabular-nums; }
.jn-sum span { font-size: 12px; color: var(--bc-ink-3); }
.jn-run { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.jn-rc { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .06); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.jn-rc > img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.jn-rc b { display: block; font-size: 13.5px; }
.jn-rc small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--bc-ink-3); margin: 2px 0 5px; }
.jn-rf { width: 18px; height: 18px; border-radius: 50%; }
.jn-rc em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(194, 65, 12, .12); color: #9a3412; }
.jn-goals { padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); }
.jn-goals h3 { margin: 0 0 10px; font-size: 14px; }
.jn-g { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; }
.jn-g b { display: block; font-size: 13.5px; }
.jn-g small { font-size: 12px; color: var(--bc-ink-3); }
.jn-bar { display: block; height: 8px; border-radius: 4px; background: rgba(123, 92, 214, .12); overflow: hidden; }
.jn-bar b { display: block; height: 100%; background: #7c5cff; border-radius: 4px; }
.jn-g em { font-style: normal; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--bc-ink-2); white-space: nowrap; }
.jn-note { margin: 8px 0 0; font-size: 11.5px; color: var(--bc-ink-3); }
.jn-f { margin-bottom: 6px; }
.jn-sep { width: 1px; align-self: stretch; margin: 0 4px; background: rgba(31, 16, 38, .12); }
.jn-day { display: flex; align-items: baseline; gap: 12px; margin: 14px 4px 6px; }
.jn-day h2 { margin: 0 !important; padding: 0; font-size: 15px; line-height: 1.3; }
.jn-f + .jn-day { margin-top: 8px; }
.jn-day h2::first-letter { text-transform: uppercase; }
.jn-day span { flex: 1; font-size: 12.5px; color: var(--bc-ink-3); }
.jn-day b { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--bc-plum); }
.jn { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jn-row { display: grid; grid-template-columns: 46px 36px minmax(0, 1fr) auto 56px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(31, 16, 38, .04); }
.jn-row[data-act] { cursor: pointer; }
.jn-row[data-act]:hover { background: #fff; box-shadow: 0 0 0 1px rgba(123, 92, 214, .25); }
.jn-row time { font-size: 12px; color: var(--bc-ink-3); font-variant-numeric: tabular-nums; }
.jn-ic { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; display: block; }
.jn-ic--none { background: var(--bc-canvas); }
.jn-face { border-radius: 50%; }
.jn-me { display: grid; place-items: center; border-radius: 50%; font-size: 14px; }
.jn-b { min-width: 0; }
.jn-b b { display: block; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jn-b small { display: block; font-size: 12px; color: var(--bc-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jn-k { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bc-canvas); color: var(--bc-ink-2); white-space: nowrap; }
.jn-k.k-start { background: rgba(123, 92, 214, .12); color: var(--bc-plum); }
.jn-k.k-step { background: rgba(8, 145, 178, .1); color: #0e5a6e; }
.jn-k.k-fin { background: rgba(47, 122, 92, .14); color: #1f5e45; }
.jn-k.k-ok { background: rgba(194, 65, 12, .1); color: #9a3412; }
.jn-p { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--bc-plum); }
@media (max-width: 720px) { .jn-sum { grid-template-columns: 1fr 1fr; } .jn-row { grid-template-columns: 36px minmax(0, 1fr) auto; } .jn-row time, .jn-row .jn-k { display: none; } .jn-g { grid-template-columns: 1fr auto; } .jn-g .jn-bar { grid-column: 1 / -1; } }

/* ── Plāns un punkti ── */
.jn-plan { display: grid; gap: 2px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05); color: inherit; text-decoration: none; }
.jn-plan:hover { box-shadow: 0 0 0 1px rgba(123, 92, 214, .35); }
.jn-plan small { font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); }
.jn-plan b { font: 700 26px/1.1 var(--bc-display, inherit); font-variant-numeric: tabular-nums; }
.jn-plan span { font-size: 12px; color: var(--bc-plum); }
.pl { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; max-width: 1180px; margin: 0 auto; }
.pl > section { padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .88); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05), 0 20px 44px -34px rgba(74, 29, 87, .45); }
.pl h3 { margin: 0 0 12px; font-size: 15px; }
.pl-per, .pl-choose { grid-column: 1 / -1; }
.pl-now-h { display: flex; gap: 16px; align-items: center; }
.pl-art { width: 64px; height: 64px; border-radius: 18px; }
.pl-now h2 { margin: 2px 0 4px; font-size: clamp(24px, 2.4vw, 30px); }
.pl-now h2 small { font-size: 15px; font-weight: 500; color: var(--bc-ink-2); margin-left: 6px; }
.pl-use { display: grid; gap: 8px; margin: 18px 0 14px; }
.pl-use div b { font: 700 38px/1 var(--bc-display, inherit); font-variant-numeric: tabular-nums; }
.pl-use div span { margin-left: 6px; font-size: 15px; color: var(--bc-ink-3); }
.pl-bar { display: block; height: 10px; border-radius: 5px; background: rgba(123, 92, 214, .12); overflow: hidden; }
.pl-bar b { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7c5cff, #b08cff); }
.pl-use small { font-size: 12.5px; color: var(--bc-ink-2); }
.pl-k { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-k li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 999px; background: var(--bc-canvas); font-size: 12.5px; }
.pl-k b { padding-right: 6px; font-variant-numeric: tabular-nums; }
.pl-runs { display: grid; gap: 6px; margin-top: 12px; }
.pl-runs span { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.pl-runs img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.pl-runs b { font-variant-numeric: tabular-nums; color: var(--bc-plum); }
.pl-inv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl-inv li, .pl-adv, .pl-due { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--bc-canvas); font-size: 13.5px; }
.pl-inv b { font-variant-numeric: tabular-nums; }
.pl-adv { margin-top: 6px; background: rgba(47, 122, 92, .1); color: #1f5e45; }
.pl-due { margin-top: 6px; background: var(--bc-ink); color: #fff; font-weight: 600; font-size: 15px; }
.pl-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--bc-ink-3); }
.pl-per table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pl-per th { text-align: left; font-size: 12px; font-weight: 600; color: var(--bc-ink-3); padding: 6px 10px; }
.pl-per td { padding: 9px 10px; border-top: 1px solid rgba(31, 16, 38, .06); }
.pl-per tr.on td { background: rgba(123, 92, 214, .06); font-weight: 600; }
.pl-per td:last-child { color: var(--bc-ink-3); font-weight: 400; }
.pl-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pl-c { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 14px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .07); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pl-c:hover { box-shadow: 0 0 0 1px rgba(123, 92, 214, .4), 0 14px 30px -24px rgba(74, 29, 87, .5); }
.pl-c.on { box-shadow: 0 0 0 2px var(--bc-plum); }
.pl-c.best::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 3px 0 #7c5cff; }
.pl-c.usage { background: linear-gradient(160deg, rgba(47, 122, 92, .08), #fff 60%); }
.pl-c > b { font-size: 16px; }
.pl-pr { font: 700 22px/1.1 var(--bc-display, inherit); }
.pl-pr small { font: 500 12px var(--bc-text); color: var(--bc-ink-3); }
.pl-pts { font-size: 12.5px; color: var(--bc-plum); font-weight: 600; }
.pl-c p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--bc-ink-2); }
.pl-c em { justify-self: start; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(123, 92, 214, .12); color: var(--bc-plum); }
.pl-f { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 14px; }
.pl-f label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); }
.pl-f input { width: 160px; padding: 9px 12px; border: 1px solid rgba(31, 16, 38, .14); border-radius: 12px; font: inherit; font-size: 14px; }
.pl-bal { font-size: 13px; color: #1f5e45; font-weight: 600; }
@media (max-width: 1100px) { .pl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pl { grid-template-columns: 1fr; } .pl-cards { grid-template-columns: 1fr 1fr; } .pl-per table { font-size: 12.5px; } .pl-per th:nth-child(3), .pl-per td:nth-child(3) { display: none; } }
.iv-ybars { overflow-x: auto; }
@container iv (max-width: 520px) { .iv-ybars { grid-auto-columns: minmax(24px, 1fr); gap: 3px; } .iv-ybars em { visibility: hidden; } .iv-ybars button.on em { visibility: visible; } .iv-ybars small { font-size: 10px; } }

/* ── design review 2026-09-23 ── */
/* #1 an open item: the list narrows so the original sits beside the fields (the nav folds too — ivFoldHold) */
@container iv (max-width: 1000px) { .iv--open .iv-desk { grid-template-columns: minmax(270px, 310px) minmax(0, 1fr); } }
.iv-cards { container: cards / inline-size; }
@container cards (max-width: 420px) { .iv-facts { grid-template-columns: 1fr 1fr; } .iv-f-wide { grid-column: 1 / -1; } }
/* #2 two toolbar rows: the preset name hides (it is in the ▾ menu); the strip is one row that scrolls, its to-do chip stays */
@container iv (max-width: 820px) { .iv-per-l small { display: none; } }
/* the toolbar break, the one-row strip with its pinned to-do chip: .dk-bar-br · .dk-strip-s · .dk-pin in packages/ui/desk.css */
.iv-outside { margin: 0; }
/* #4 a row never hides its fact: two lines, the number whole */
/* the two-line rows: .dk-row · .dk-row-b · .dk-row-r in packages/ui/desk.css */
.iv-row .iv-src { margin-top: 2px; }
/* #5 money never breaks, never scrolls off */
.iv .da-kpi b { white-space: nowrap; overflow-wrap: normal; font-size: clamp(18px, 2.6cqw, 26px); }
.iv .da-kpi.big b { font-size: clamp(22px, 3.4cqw, 30px); }
@container iv (max-width: 900px) { .da-kpis--4 { grid-template-columns: 1fr 1fr; } }
.iv-table:not(.iv-table--narrow) .iv-tt { min-width: 0; }
@container iv (max-width: 1099px) {
  .iv-table:not(.iv-table--narrow) .iv-tt { grid-template-columns: 26px minmax(96px, .9fr) minmax(110px, 1.4fr) 62px minmax(100px, .9fr) minmax(84px, .8fr) minmax(84px, .8fr); }
  .iv-table:not(.iv-table--narrow) .c-d, .iv-table:not(.iv-table--narrow) .c-net, .iv-table:not(.iv-table--narrow) .c-tx, .iv-table:not(.iv-table--narrow) .c-act { display: none; }
}
.iv-tt > span.c-g, .iv-tt > span.c-p, .iv-tt > span.c-net, .iv-tt > span.c-tx { white-space: nowrap; }
.iv-ptbl .iv-pr { min-width: 0; }
.iv-pr > span { white-space: nowrap; }
@container iv (max-width: 900px) {
  .iv-pr, .iv-pr--h { grid-template-columns: minmax(150px, 2fr) 56px repeat(3, minmax(88px, 1fr)) minmax(120px, 1fr); }
  .iv-pr > span:nth-child(6), .iv-pr--h .iv-th:nth-child(6) { display: none; }
}
.iv-vr > b { position: sticky; left: 0; background: inherit; }
/* #7 the phone: the two directions and the inbox as tabs, nothing sticks but the bottom bar, no camera over an open item */
@container iv (max-width: 700px) {
  .iv-seg--main button:not([data-id="tab:out"]):not([data-id="tab:in"]):not(.on):not(.iv-seg-todo) { display: none; }
  .iv--open .iv-fab { display: none; }
  .iv-orig { position: static; }
  .iv-strip { flex-wrap: nowrap; }
}
/* #10 the denominator chip reads as the total, never as a filter that is on */
.iv-chip--all b { color: var(--bc-ink); }
/* should-fix: an image original shimmers until it paints, and says so when it fails; the share is quiet */
.iv-page--pic { background: #DEDAE4 linear-gradient(90deg, #DEDAE4, #E9E6EE, #DEDAE4); background-size: 200% 100%; animation: da-sk 1.6s linear infinite; }
.iv-page--pic img { position: relative; }
.iv-origfail { display: grid; place-items: center; gap: 6px; min-height: 220px; margin: 0; padding: 16px; text-align: center; font-size: 13px; color: var(--bc-ink-2); background: #F1EEF4; }
.iv .da-who-r--3 small { color: var(--bc-ink-3); }
.iv-det--empty .iv-acts { justify-content: center; margin-top: 4px; }
.iv-det--empty label.bc-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.iv-det--empty label.bc-btn .bc-icon { width: 15px; height: 15px; }
@container iv (max-width: 1099px) { .iv-table:not(.iv-table--narrow) .iv-tt { grid-template-columns: 26px minmax(96px, .9fr) minmax(110px, 1.3fr) 62px minmax(132px, 1fr) minmax(84px, .8fr) minmax(84px, .8fr); } }
.iv-tt--sub .c-s small { white-space: nowrap; }
.iv div.da-kpi { pointer-events: none; }   /* a static tile has no hover */
@container iv (max-width: 700px) { .iv-table:not(.iv-table--narrow) .iv-tt, .iv-table--narrow .iv-tt { grid-template-columns: minmax(104px, 1fr) minmax(0, 1.3fr) auto; } }
