/* OpenVibe.Bench: the developer service's own pieces. Colours come from the theme (--bg-*, --text-*, --border) and the room's accent
   (.ov-room: --room-accent, --room-strong, --room-fill, --room-on), so every theme, light or dark, wears it. Phone
   first; nothing scrolls sideways. Boards are JSON here; Report draws them. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-primary, #0a0f1c); color: var(--text-primary, #e6edf7); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; padding: 8px 12px; border-radius: 10px; background: var(--bg-card, #0f1729); color: inherit; }
.bm { display: block; }
.bm a { color: var(--room-strong); }
.bm .ovk-i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 64px; }
.bm-narrow { max-width: 620px; }
.bm-page-pad { padding-top: clamp(28px, 6vw, 64px); }
.bm h2 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.bm-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--room-strong); }
.bm-page-h { padding-top: clamp(20px, 4vw, 40px); margin-bottom: 22px; }
.bm-page-h h1, .bm-entry-h h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; overflow-wrap: anywhere; }
.bm-lede, .bm-summary { margin: 10px 0 0; max-width: 700px; color: var(--text-secondary, #96a7c2); line-height: 1.55; }
.bm-fine, .bm-muted { color: var(--text-muted, #7386a3); font-size: .88rem; line-height: 1.55; }
.bm-section { margin-top: clamp(28px, 4vw, 44px); }
.bm-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bm-count { color: var(--text-muted, #7386a3); font-size: .86rem; }
.bm-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.bm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--room-fill); color: var(--room-on) !important; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; }
.bm-btn-quiet { background: transparent; color: var(--text-primary, #e6edf7) !important; border: 1px solid var(--border, #1f2d47); }
.bm-btn-small { min-height: 34px; padding: 0 14px; font-size: .86rem; }
.bm-btn.is-mine { background: color-mix(in srgb, var(--room-accent) 22%, transparent); color: var(--room-strong) !important; }
.bm-btn:focus-visible { outline: 2px solid var(--room-accent); outline-offset: 2px; }
.bm-note { margin: 14px 0; padding: 11px 14px; border-radius: 14px; font-weight: 600; background: color-mix(in srgb, var(--room-accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--room-accent) 30%, transparent); }
.bm-note.is-bad { background: color-mix(in srgb, var(--error, #ef4444) 12%, transparent); border-color: color-mix(in srgb, var(--error, #ef4444) 35%, transparent); }
.bm-empty { display: grid; justify-items: start; gap: 10px; padding: 22px; border-radius: 18px; border: 1px dashed var(--border, #1f2d47); color: var(--text-secondary, #96a7c2); }
.bm-empty p { margin: 0; line-height: 1.5; }
.bm-empty h1 { margin: 0; font-size: 1.6rem; color: var(--text-primary, #e6edf7); }


.bm-card { padding: 18px; border-radius: 18px; background: var(--bg-card, #0f1729); border: 1px solid var(--border, #1f2d47); }
.bm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 20px 0 0; }
.bm-facts > div { padding: 12px 14px; border-radius: 14px; background: var(--bg-card, #0f1729); border: 1px solid var(--border, #1f2d47); min-width: 0; }
.bm-facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
.bm-facts dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.bm-eps { display: grid; gap: 10px; margin: 12px 0 0; }
.bm-eps > div { padding: 12px 14px; border-radius: 14px; background: var(--bg-card, #0f1729); border: 1px solid var(--border, #1f2d47); }
.bm-eps dt code { font-weight: 800; color: var(--room-strong); overflow-wrap: anywhere; }
.bm-eps dd { margin: 6px 0 0; color: var(--text-secondary, #96a7c2); line-height: 1.5; }

/* The hero stands alone (no room picture): a wide headline, then the four promises as a row of cards */
.bm-hero { max-width: 880px; padding: clamp(1.5rem, 5vw, 4.5rem) 0 1rem; }
.bm-hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; }
.bm-why { list-style: none; margin: 26px 0 8px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.bm-why li { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--border, #1f2d47); border-radius: 16px; background: var(--bg-card, #0f1729); line-height: 1.5; }
.bm-why b { font-size: 1rem; color: var(--room-strong); }
.bm-why span { color: var(--text-secondary, #96a7c2); font-size: .92rem; }
.bm-count { min-width: 28px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--room-accent) 16%, transparent); color: var(--room-strong); font-weight: 800; font-size: .8rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Kinds: a grid of monospace ids with their room and judge */
.bm-kinds { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.bm-kind { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border, #1f2d47); border-radius: 14px; background: var(--bg-card, #0f1729); min-width: 0; }
.bm-kind:hover { border-color: var(--room-accent); }
.bm-kind-link { font: 700 .95rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--room-strong); text-decoration: none; overflow-wrap: anywhere; }
.bm-kind-link:hover { text-decoration: underline; }
.bm-kind-link:focus-visible { outline: 2px solid var(--room-accent); outline-offset: 2px; border-radius: 4px; }
.bm-kind-meta { font-size: .82rem; color: var(--text-muted, #7386a3); }
