/* Bleed context (6 Oct): the ring beside the composer and its card. Atelier tokens only, so
   light and dark follow the theme; the ring is drawn, never an emoji. */
.bc-ring { flex: none; display: inline-grid; place-items: center; width: var(--b-row, 36px); height: var(--b-row, 36px); padding: 0; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; transition: background .16s, color .16s; }
.bc-ring:hover, .bc-ring[aria-expanded="true"] { background: var(--b-hover, color-mix(in srgb, var(--ink) 5%, transparent)); color: var(--soft); }
.bc-ring:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.bc-ring svg { width: 18px; height: 18px; display: block; overflow: visible; }
.bc-ring circle { fill: none; stroke-width: 2.6; }
.bc-track { stroke: var(--rule2); }
.bc-arc { stroke: currentColor; stroke-linecap: round; transition: stroke-dasharray .5s var(--ease), stroke .2s; }
.bc-ring[data-level="ok"] .bc-arc { stroke: var(--soft); }
.bc-ring[data-level="high"] .bc-arc { stroke: var(--warn); }
.bc-ring[data-level="full"] .bc-arc { stroke: var(--stop); }
.bc-ring[data-level="full"] .bc-track { stroke: color-mix(in srgb, var(--stop) 28%, var(--rule2)); }
/* capacity not known: a dashed ring, and no arc that could be read as a share */
.bc-ring[data-level="unknown"] .bc-track { stroke-dasharray: 2.4 3.25; }
.bc-ring[data-level="unknown"] .bc-arc { stroke: transparent; }
.bc-ring[data-level="working"] .bc-arc { stroke: var(--gold); stroke-dasharray: 16 57 !important; transform-origin: 12px 12px; animation: bc-spin 1.1s linear infinite; }
@keyframes bc-spin { to { transform: rotate(270deg); } }

.bc-pop { position: fixed; z-index: 105; box-sizing: border-box; overflow: auto; padding: 16px 20px 12px; border-radius: var(--r-lg); border: 1px solid var(--rule2); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); font-size: 13px; line-height: 1.45; animation: bc-in .18s var(--ease) both; }
.bc-pop[hidden] { display: none; }
@keyframes bc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bc-head h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.bc-model { margin: 2px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.bc-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.bc-x:hover { background: var(--b-hover, var(--bg2)); color: var(--ink); }
.bc-figure { margin: 8px 0 8px; color: var(--soft); }
.bc-figure strong { margin-right: 6px; font-size: 26px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bc-figure.high strong { color: var(--warn); }
.bc-figure.full strong { color: var(--stop); }
.bc-figure.none { color: var(--soft); }
.bc-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; padding: 10px 0; border-block: 1px solid var(--rule); }
.bc-rows dt { color: var(--muted); white-space: nowrap; }
.bc-rows dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.bc-note { display: block; color: var(--muted); font-size: 12px; }
.bc-notes { margin: 0 0 10px; padding: 0 0 0 16px; color: var(--soft); font-size: 12px; }
.bc-notes li + li { margin-top: 4px; }
.bc-actions { display: grid; gap: 6px; margin: 0 0 6px; }
.bc-compact { justify-content: space-between; width: 100%; min-height: 38px; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--rule2); background: var(--paper2); color: var(--ink); font-weight: 600; }
.bc-compact:hover:not(:disabled) { border-color: var(--gold-line); background: var(--accent2); color: var(--accent3); }
.bc-compact:disabled { color: var(--muted); cursor: default; }
.bc-pop kbd { font: 500 11px var(--text, inherit); color: var(--soft); border: 1px solid var(--rule2); border-radius: 4px; padding: 1px 6px; background: var(--paper); white-space: nowrap; }
.bc-said { margin: 0; color: var(--soft); font-size: 12px; }
.bc-said:empty { display: none; }
.bc-said.good { color: var(--ok); }
.bc-said.bad { color: var(--stop); }
.bc-switch { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; width: 100%; padding: 8px 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); text-align: left; font-weight: 400; }
.bc-switch:hover { background: transparent; color: var(--ink); }
.bc-switch-track { flex: none; position: relative; width: 34px; height: 20px; margin-top: 1px; border-radius: 999px; background: var(--rule2); transition: background .2s; }
.bc-switch-dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.bc-switch[aria-checked="true"] .bc-switch-track { background: var(--gold); }
.bc-switch[aria-checked="true"] .bc-switch-dot { transform: translateX(14px); }
.bc-switch-text { display: grid; gap: 1px; }
.bc-switch-text strong { font-weight: 600; }
.bc-switch-text span { color: var(--muted); font-size: 12px; }
.bc-switch:disabled { opacity: .55; cursor: default; }
.bc-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 28px; padding: 6px 0 2px; color: var(--soft); font-size: 12px; }
.bc-keys em { font-style: normal; color: var(--muted); }
.bc-keys .bc-or { color: var(--muted); margin-right: auto; }
.bc-keys.capture { color: var(--accent3); font-weight: 600; }
.bc-link { min-height: 24px; padding: 2px 6px; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bc-link:hover { background: transparent; color: var(--accent3); }
.bc-link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.bc-foot { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11.5px; }
.bc-pop button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) {
  .bc-ring { width: 40px; height: 40px; }
  .bc-pop { left: 12px !important; width: calc(100vw - 24px) !important; }
  .bc-link { min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .bc-ring[data-level="working"] .bc-arc, .bc-pop { animation: none; } .bc-arc, .bc-switch-dot { transition: none; } }
