:root {
  --bg: #0d1015; --panel: #141920; --panel2: #1a2029; --panel3: #212835; --border: #283040;
  --text: #e8ebf0; --muted: #8a93a3; --accent: #e0a63a; --ok: #3fbf74; --warn: #f0b93a; --err: #e5534b; --info: #5b9dff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; background: var(--bg); color: var(--text); overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; }
button { cursor: pointer; white-space: nowrap; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #15110a; font-weight: 600; }
button.danger { color: var(--err); }
a { color: inherit; cursor: pointer; }
code { background: #0007; padding: 1px 4px; border-radius: 3px; font-size: 12px; }
kbd { background: var(--panel2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; font-size: 10.5px; margin: 0 1px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.warn { color: var(--warn); } .err { color: var(--err); } .ok { color: var(--ok); } .run { color: var(--info); }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--panel3); color: var(--muted); white-space: nowrap; }
.tag.pause { background: #3a2c12; color: var(--warn); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.on { background: var(--ok); } .dot.off { background: var(--err); }
.count:not(:empty) { background: var(--accent); color: #15110a; border-radius: 9px; padding: 0 7px; font-size: 11px; font-weight: 700; }

/* ---------- navigation ---------- */
#nav { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; overflow: auto; }
#nav header { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 8px; }
#brand { font-weight: 800; font-size: 15px; letter-spacing: .01em; }
#brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
#account, #scheduler { padding: 0 12px 8px; }
.acc { background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; }
.acc.warn { border-color: var(--err); }
.acc-h { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lim { display: grid; grid-template-columns: 52px 1fr 32px auto; gap: 6px; align-items: center; }
.lim i { color: var(--muted); font-style: normal; font-size: 10.5px; }
.bar { height: 5px; background: #0007; border-radius: 3px; overflow: hidden; }
.bar div { height: 100%; background: var(--ok); }
.lim.warm .bar div { background: var(--warn); } .lim.hot .bar div { background: var(--err); }
.sched { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); padding: 0 2px; }
.sched .qp { flex-basis: 100%; color: var(--warn); background: #3a2c12; border-radius: 6px; padding: 5px 7px; font-size: 11.5px; }
.nav-item { display: block; padding: 8px 14px; color: var(--text); text-decoration: none; font-size: 13.5px; border-left: 3px solid transparent; }
.nav-item:hover { background: var(--panel2); }
.nav-item.sel { background: var(--panel2); border-left-color: var(--accent); }
.nav-sec { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.nav-sec button { padding: 0 8px; font-size: 14px; line-height: 20px; }
#projects { list-style: none; margin: 0; padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
#projects li { padding: 7px 8px 7px 10px; border-radius: 6px; cursor: pointer; border-left: 3px solid var(--th); }
#projects li:hover { background: var(--panel2); }
#projects li.sel { background: var(--panel3); }
#projects li.empty { border: none; color: var(--muted); font-size: 12px; cursor: default; }
.pj-t { display: flex; gap: 6px; align-items: center; } .pj-t .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pj-s { display: flex; gap: 7px; font-size: 11.5px; color: var(--muted); margin-top: 2px; } .pj-s .cost { margin-left: auto; }
.nav-foot { margin-top: auto; padding: 8px 0; border-top: 1px solid var(--border); }

/* ---------- zone centrale ---------- */
#main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#view { flex: 1; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
#main:has(#office:not(.hidden)) #view { flex: 0 0 auto; overflow: visible; padding-bottom: 8px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.page-h .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.page-h[style*="--th"] h1::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--th); }
.objective { margin-top: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; max-width: 760px; }
.ph-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.back { color: var(--muted); font-size: 12px; text-decoration: none; display: inline-block; margin-bottom: 4px; }
.back:hover { color: var(--text); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tabs button { background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 7px 12px; color: var(--muted); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.banner { background: #16243a; border: 1px solid #2d4a70; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.kpi-v { font-size: 22px; font-weight: 700; } .kpis.small .kpi-v { font-size: 17px; }
.kpi-l { color: var(--muted); font-size: 12px; } .kpi-s { color: var(--muted); font-size: 11px; margin-top: 2px; }
.kpi.hot { border-color: var(--accent); } .kpi.hot .kpi-v { color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.card.pj { border-top: 3px solid var(--th); }
.card.dg { border-top: 3px solid #b8a0ff; }
.card.empty .card-b { color: var(--muted); }
.card.add { align-items: center; justify-content: center; color: var(--muted); border-style: dashed; cursor: pointer; min-height: 120px; }
.card.add:hover { color: var(--text); border-color: var(--accent); }
.card-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .card-h b { font-size: 15px; margin-right: auto; }
.card-b { font-size: 13px; line-height: 1.4; }
.card-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; } .card-a button { padding: 4px 10px; font-size: 12.5px; }
.pj-kpis { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); }
.pj-cost { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }

.board-bar { display: flex; gap: 12px; align-items: center; font-size: 12px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.col-h { font-weight: 600; font-size: 13px; display: flex; gap: 6px; }
.col .empty { text-align: center; padding: 10px; }
.tcard { background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.tcard.review { border-color: var(--accent); }
.tc-t { line-height: 1.35; } .tc-m { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 11.5px; }
.tc-r { font-size: 12px; color: #c9ced6; white-space: pre-wrap; } .tc-r summary { cursor: pointer; color: var(--muted); }
.tc-a { display: flex; gap: 6px; } .tc-a button { padding: 3px 9px; font-size: 12px; }
.tlist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

table.team, table.roles { width: 100%; border-collapse: collapse; font-size: 13px; }
table.team th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--border); }
table.team td { padding: 7px 10px; border-bottom: 1px solid #1f2530; }
table.team tbody tr { cursor: pointer; } table.team tbody tr:hover { background: var(--panel2); }
table.team td.act { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.row-a button { padding: 2px 8px; font-size: 12px; }
table.roles td { padding: 4px 8px 4px 0; }
.rtag { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--panel3); color: var(--muted); letter-spacing: .03em; }
.rtag.r-director { background: #3b2f5c; color: #d6c8ff; } .rtag.r-manager { background: var(--accent); color: #15110a; } .rtag.r-lead { background: #22405e; color: #bcd9ff; }

.badge { font-size: 11px; padding: 1px 7px; border-radius: 10px; white-space: nowrap; border: 1px solid currentColor; font-weight: 500; }
.st-running, .st-starting { color: var(--info); } .st-waiting_permission { color: var(--warn); } .st-idle { color: var(--ok); }
.st-queued { color: #a99bff; } .st-sleeping, .st-stopped { color: var(--muted); } .st-error { color: var(--err); }
.badge.st-running::before, .badge.st-starting::before { content: "● "; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.settings { display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.settings h3 { margin: 8px 0 0; font-size: 14px; }
.settings label, dialog label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.settings label > *, dialog label > * { color: var(--text); font-size: 13.5px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.org-edit { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.org-edit label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 11.5px; }
.org-edit select { padding: 3px 6px; font-size: 12.5px; }
#a-tasks summary { cursor: pointer; color: var(--muted); font-size: 13px; }

.feed { flex: 1; min-height: 200px; overflow: auto; display: flex; flex-direction: column; gap: 9px; padding: 4px 2px; }
.ev { max-width: 900px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; font-size: 13.5px; }
.ev.user { align-self: flex-end; background: #262d3a; padding: 8px 12px; border-radius: 10px; }
.ev.system { color: var(--muted); font-size: 12px; } .ev.notice { color: var(--info); font-size: 12px; }
.ev.result { border-left: 3px solid var(--accent); padding: 6px 12px; background: var(--panel); }
.ev.result.err { border-color: var(--err); } .ev .foot { color: var(--muted); font-size: 12px; margin-top: 6px; }
.ev.msg_in, .ev.msg_out { border-left: 3px solid var(--info); padding: 6px 12px; background: var(--panel); border-radius: 0 6px 6px 0; }
.ev.msg_out { border-color: var(--accent); align-self: flex-end; } .ev.meeting { border-color: #8f7bd8; }
.ev .who { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
details.tool { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; max-width: 900px; }
details.tool summary { cursor: pointer; font-family: ui-monospace, monospace; font-size: 12.5px; }
details.tool summary .ok { color: var(--ok); } details.tool summary .ko { color: var(--err); } details.tool summary .wait { color: var(--muted); }
details.tool pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; max-height: 360px; overflow: auto; margin: 8px 0 0; color: #c3c8d1; }
#a-pending:not(:empty) { display: flex; flex-direction: column; gap: 8px; background: #231f14; border: 1px solid #4a3d1a; border-radius: 8px; padding: 10px 12px; }
.perm { display: flex; gap: 12px; align-items: flex-start; } .perm.danger { color: #ffb4ae; }
.perm pre { flex: 1; margin: 0; font-size: 12px; white-space: pre-wrap; max-height: 160px; overflow: auto; }
.composer { display: flex; gap: 8px; padding-top: 4px; } .composer textarea { flex: 1; resize: vertical; }

/* ---------- file « À traiter » ---------- */
#rail { background: var(--panel); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; padding: 12px; gap: 8px; }
.rail-h { display: flex; align-items: center; gap: 8px; font-size: 15px; } .rail-h button { margin-left: auto; padding: 2px 7px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.7; }
#inbox { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ib { background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.ib.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ib-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ib.perm .ib-k { color: var(--warn); } .ib.perm.danger .ib-k { color: var(--err); } .ib.msg .ib-k { color: var(--accent); } .ib.err .ib-k { color: var(--err); } .ib.task .ib-k { color: var(--ok); }
.ib-w { color: var(--muted); font-size: 12px; margin-top: 1px; } .ib-title { font-weight: 600; margin-top: 5px; }
.ib pre { margin: 6px 0 0; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; max-height: 120px; overflow: auto; background: #0006; padding: 6px; border-radius: 4px; }
.ib-text { font-size: 12.5px; margin-top: 5px; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto; }
.ib-act { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .ib-act button { padding: 3px 9px; font-size: 12px; }
.ib-empty { text-align: center; color: var(--muted); padding: 40px 0; }
#delegated { font-size: 12px; color: var(--muted); } #delegated summary { cursor: pointer; }
#delegated-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 5px; max-height: 200px; overflow: auto; }
#delegated-list li { background: var(--panel2); border-radius: 6px; padding: 5px 7px; color: var(--text); }
.mini { float: right; } .mini button { padding: 0 6px; font-size: 11px; margin-left: 2px; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 12px; width: 600px; max-width: 95vw; }
dialog::backdrop { background: #000a; }
dialog form { display: flex; flex-direction: column; gap: 12px; } dialog h3 { margin: 0; }
.lbl { color: var(--muted); font-size: 12px; }
.checks { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.checks label { flex-direction: row !important; align-items: center; gap: 6px; color: var(--text) !important; font-size: 13.5px !important; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.toast { background: var(--panel3); border: 1px solid var(--accent); border-radius: 8px; padding: 9px 14px; max-width: 520px; cursor: pointer; box-shadow: 0 6px 20px #000a; font-size: 13px; }

/* ---------- étage 3D ---------- */
#office { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#office canvas { display: block; }
.o-labels { position: absolute; inset: 0; z-index: 1; } /* contexte d empilement : les étiquettes 3D restent sous les panneaux */
.o-toolbar { position: absolute; top: 10px; right: 12px; z-index: 2; display: flex; gap: 12px; align-items: center; background: #11151bd9; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.o-toolbar label { display: flex; gap: 4px; align-items: center; cursor: pointer; } .o-toolbar button { padding: 2px 8px; font-size: 12px; }
.o-label { pointer-events: auto; cursor: pointer; background: #11151be8; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 3px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; max-width: 220px; text-align: center; }
.o-label.sel { border-color: var(--accent); }
.o-label b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; font-size: 12px; }
.o-label .role { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.o-label small { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.o-bubble { pointer-events: auto; cursor: pointer; }
.o-bubble span { width: 26px; height: 26px; border-radius: 50%; background: var(--warn); color: #000; font-weight: 800; display: grid; place-items: center; animation: bounce .9s infinite; box-shadow: 0 0 12px var(--warn); }
@keyframes bounce { 50% { transform: translateY(-6px); } }
.o-room { pointer-events: none; color: #ffffff70; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 3px #000a; }
.o-team { pointer-events: none; color: #ffffffb0; font-size: 11px; font-weight: 600; white-space: nowrap; text-shadow: 0 1px 3px #000a; }
.o-human { pointer-events: none; color: var(--accent); font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px #000a; }
.o-floor { pointer-events: none; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.o-meeting { pointer-events: auto; cursor: pointer; background: #1a2433ee; border: 1px solid #3b6fb5; border-radius: 8px; padding: 5px 10px; display: flex; flex-direction: column; align-items: center; font-size: 12px; max-width: 260px; text-align: center; }
.o-meeting small { color: var(--muted); }
.o-flag { pointer-events: none; }
.o-flag span { display: inline-block; font-size: 34px; animation: wave .35s ease-in-out infinite alternate; transform-origin: bottom left; }
@keyframes wave { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }

@media (max-width: 1200px) { body { grid-template-columns: 220px minmax(0, 1fr) 290px; } .board { grid-template-columns: 1fr; } }

/* ---------- activité ---------- */
.small { font-size: 11.5px; }
.seg { display: inline-flex; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.seg button { background: none; border: none; padding: 4px 10px; font-size: 12.5px; color: var(--muted); }
.seg button.active { background: var(--panel3); color: var(--text); }
.activity { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ar { display: grid; grid-template-columns: 70px 110px 24px 1fr; gap: 8px; align-items: baseline; padding: 5px 10px; border-bottom: 1px solid #1d232d; font-size: 12.5px; cursor: pointer; }
.ar:hover { background: var(--panel2); }
.ar-t { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.ar-a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar.k-tool_use .ar-x { font-family: ui-monospace, monospace; font-size: 12px; color: #c9d1dc; }
.ar.k-text .ar-x { color: var(--muted); font-style: italic; }
.ar.k-msg_out .ar-x, .ar.k-msg_in .ar-x { color: var(--text); }
.ar.k-result .ar-x, .ar.k-notice .ar-x, .ar.k-system .ar-x { color: var(--muted); font-size: 11.5px; }

/* ---------- programmations ---------- */
.sched-t tr.off td { opacity: .5; }
.sched-t td { vertical-align: top; }
.switch { position: relative; display: inline-block; width: 32px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--panel3); border-radius: 9px; cursor: pointer; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: var(--muted); border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::before { transform: translateX(14px); background: #15110a; }
.modes { display: flex; gap: 4px; padding: 4px; } .modes label { flex-direction: row !important; align-items: center; gap: 6px; padding: 3px 8px; color: var(--text) !important; font-size: 13px !important; }
.days { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.days label { flex-direction: row !important; align-items: center; gap: 3px; background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; color: var(--text) !important; font-size: 12.5px !important; }

/* ---------- 3D : panneaux, bulles d'action ---------- */
#office:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.o-toolbar select { padding: 2px 6px; font-size: 12px; }
.o-help { cursor: help; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); color: var(--muted); font-weight: 700; }
.o-act { pointer-events: none; display: flex; align-items: center; gap: 5px; max-width: 260px; background: #0b0e13ee; border: 1px solid #3a4558; border-radius: 12px; padding: 3px 9px; font-size: 11.5px; box-shadow: 0 3px 10px #0008; }
.o-act .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, monospace; font-size: 11px; color: #dbe3ee; }
.o-act .dots { display: inline-flex; gap: 2px; } .o-act .dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--info); animation: blink 1.2s infinite; }
.o-act .dots i:nth-child(2) { animation-delay: .2s; } .o-act .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.o-label small.task { color: #d8dde6; font-family: inherit; }
.o-panel { position: absolute; z-index: 3; background: #11151bf0; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 8px 24px #000a; }
#o-live { top: 10px; left: 12px; width: 300px; max-height: calc(100% - 20px); overflow: auto; }
#o-card { bottom: 12px; left: 12px; width: 380px; max-height: 60%; overflow: auto; display: flex; flex-direction: column; gap: 7px; }
.op-h { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: default; }
#o-live .op-h { cursor: pointer; } .op-x { margin-left: auto; color: var(--muted); cursor: pointer; padding: 0 4px; }
.op-row { padding: 5px 6px; border-radius: 6px; cursor: pointer; margin-top: 3px; }
.op-row:hover { background: var(--panel2); } .op-row.sel { background: var(--panel3); }
.op-act { color: #c9d1dc; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 14px; font-family: ui-monospace, monospace; }
.dotst { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.oc-task { background: var(--panel2); border-left: 3px solid var(--accent); padding: 5px 8px; border-radius: 0 6px 6px 0; font-size: 12.5px; }
.oc-warn { color: var(--warn); font-size: 12px; }
.oc-feed { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.oc-feed .ar { grid-template-columns: 56px 20px minmax(0, 1fr); gap: 6px; font-size: 11.5px; } .oc-feed .ar-a { display: none; }
.oc-send { display: flex; gap: 6px; } .oc-send input { flex: 1; font-size: 12.5px; padding: 4px 8px; } .oc-send button { padding: 3px 10px; }

/* ---------- connexion ---------- */
body.login-page { display: grid; place-items: center; grid-template-columns: 1fr; }
.login-box { width: 340px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.login-box label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.login-box input { font-size: 15px; }
#msg { min-height: 18px; font-size: 12.5px; }

.acc-h { display: flex; align-items: center; gap: 6px; } .acc-h .mini-btn, .acc #acc-refresh { margin-left: auto; padding: 0 6px; font-size: 11px; line-height: 18px; }
