/* Control room demo (/fr/salle-de-controle): dark stage, holographic head, ring of agents, detail panel. */
.cr-section { padding: 0 max(3vw, 12px) 12px; }
.cr { position: relative; height: clamp(640px, 88vh, 920px); overflow: hidden; border-radius: 14px; background: #02050b; color: #e6f6ff; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.cr button { font: inherit; }
.cr-noscript { padding: 24px; color: #cfe6f2; }
.cr-demo-note { max-width: 1100px; margin: 10px auto 0; font-size: 14px; color: #57534d; text-align: center; }
.cr-stage { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; }
.cr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 10; pointer-events: none; }
.cr-labels { position: absolute; inset: 0; }
.cr-label { position: absolute; left: 0; top: 0; width: 136px; height: 118px; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; cursor: pointer; }
.cr-label-name { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.cr-label-status, .cr-stat-l, .cr-box-title, .cr-mono, .cr-time, .cr-verdict, .cr-small { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.cr-label-status { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.cr-header { position: absolute; top: 0; left: 0; right: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 22px; pointer-events: none; }
.cr-header > * { pointer-events: auto; }
.cr-brand-name { font-weight: 700; letter-spacing: 0.36em; font-size: 16px; }
.cr-right { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cr-pills { display: flex; gap: 4px; align-items: center; padding: 4px; border: 1px solid #1d3a4c; border-radius: 999px; background: rgba(5, 14, 24, 0.8); }
.cr-pill-label { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #8fb3c7; padding: 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.cr-btn { min-height: 40px; padding: 0 14px; border: 1px solid #1d3a4c; border-radius: 999px; background: rgba(5, 14, 24, 0.8); color: #e6f6ff; font-size: 13px; font-weight: 500; cursor: pointer; }
.cr-pills .cr-btn { border: 0; background: transparent; color: #cfe6f2; }
.cr-btn.on, .cr-pills .cr-btn.on { background: #5ee7ff; color: #03060c; }
.cr-btn:focus-visible, .cr-label:focus-visible, .cr-round:focus-visible, .cr-tab:focus-visible, .cr-switch:focus-visible { outline: 2px solid #5ee7ff; outline-offset: 3px; }
.cr-stat-v { font-family: ui-monospace, Menlo, monospace; font-size: 22px; }
.cr-stat-l { font-size: 11px; letter-spacing: 0.06em; color: #8fb3c7; text-transform: uppercase; }
.cr-side { position: absolute; left: 22px; top: 110px; z-index: 30; width: 220px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.cr-box { border: 1px solid #16334a; border-radius: 6px; background: rgba(3, 12, 22, 0.75); padding: 10px 12px; }
.cr-box-title { font-size: 10.5px; letter-spacing: 0.1em; color: #8fb3c7; text-transform: uppercase; margin-bottom: 6px; }
.cr-box-text { font-size: 13px; line-height: 1.45; color: #cfe6f2; }
.cr-wave { fill: none; stroke: #5ee7ff; stroke-width: 1.3; }
.cr-icon { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cr-panel { position: absolute; z-index: 50; right: 22px; top: 100px; width: 400px; max-height: calc(100% - 130px); overflow: auto; box-sizing: border-box; padding: 20px; border: 1px solid #5ee7ff; border-radius: 14px; background: rgba(3, 10, 20, 0.94); display: flex; flex-direction: column; gap: 12px; }
.cr-panel[hidden] { display: none; }
.cr-panel-head { display: flex; gap: 12px; align-items: flex-start; }
.cr-panel-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.cr-grow { flex: 1; min-width: 0; }
.cr-round { flex: none; width: 44px; height: 44px; border: 1px solid #1d3a4c; border-radius: 50%; background: rgba(5, 14, 24, 0.8); color: #e6f6ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-actions .cr-btn { border-radius: 8px; }
.cr-warn { border-color: #ffa24c; color: #ffa24c; background: transparent; }
.cr-warn.on { background: #ffa24c; color: #03060c; }
.cr-ok { border-color: #5ee7ff; color: #5ee7ff; background: transparent; }
.cr-wide { width: 100%; border-radius: 10px; border-color: #5ee7ff; color: #5ee7ff; background: transparent; }
.cr-chip { min-height: 34px; font-size: 12px; }
.cr-notice { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #5ee7ff; }
.cr-alert { padding: 10px 12px; border-radius: 8px; border: 1px solid #ffa24c; color: #ffd2a8; font-size: 13px; line-height: 1.4; }
.cr-tabs { display: flex; gap: 4px; border-bottom: 1px solid #12293a; }
.cr-tab { min-height: 40px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8fb3c7; font-size: 13px; font-weight: 500; cursor: pointer; }
.cr-tab.on { color: #e6f6ff; }
.cr-card { padding: 12px; border-radius: 10px; border: 1px solid #1d3a4c; background: rgba(10, 24, 38, 0.8); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; }
.cr-card-title { font-size: 14px; font-weight: 600; }
.cr-reason { border-color: #ffa24c; background: rgba(255, 162, 76, 0.08); }
.cr-mono { font-size: 12px; }
.cr-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #12293a; font-size: 14px; line-height: 1.35; }
.cr-time { flex: none; width: 82px; font-size: 11px; color: #8fb3c7; }
.cr-verdict { flex: none; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid; }
.cr-switch { flex: none; width: 52px; height: 30px; padding: 3px; border-radius: 999px; border: 1px solid #3a4b58; background: transparent; display: flex; justify-content: flex-start; cursor: pointer; }
.cr-switch span { width: 22px; height: 22px; border-radius: 50%; background: #5b6b77; }
.cr-switch.on { justify-content: flex-end; border-color: #5ee7ff; background: rgba(94, 231, 255, 0.18); }
.cr-switch.on span { background: #5ee7ff; }
.cr-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px 12px; pointer-events: none; }
.cr-bottom > * { pointer-events: auto; }
.cr-subtitle { max-width: 680px; width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid #1d3a4c; border-radius: 12px; background: rgba(3, 10, 20, 0.8); display: flex; gap: 14px; align-items: center; }
.cr-bars { display: flex; gap: 3px; align-items: center; height: 26px; flex: none; }
.cr-bar { width: 3px; height: 4px; border-radius: 2px; background: #5ee7ff; }
.cr-line { margin: 0; font-size: 16px; line-height: 1.4; }
.cr-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #8fb3c7; }
.cr-small { font-size: 11px; color: #8fb3c7; text-align: center; }
.cr-nowebgl { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 35; max-width: 320px; text-align: center; color: #cfe6f2; font-size: 14px; }
.cr-nowebgl[hidden] { display: none; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
@media (max-width: 1100px) { .cr-side { display: none; } }
@media (max-width: 760px) {
    .cr { height: 680px; }
    .cr-header { padding: 12px; }
    .cr-panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 70%; }
    .cr-subtitle { display: none; }
    .cr-label { width: 108px; }
    .cr-header { gap: 8px; }
    .cr-header .cr-stat, .cr-pill-label, .cr-brand .cr-stat-l, .cr-controls span, .cr-label-status { display: none; }
    .cr-btn { min-height: 36px; padding: 0 10px; font-size: 12px; }
    .cr-label-name { font-size: 11px; }
}
