:root {
  --background: #0b0d0f;
  --sidebar: #101215;
  --surface: #15181c;
  --surface-secondary: #1c2025;
  --surface-raised: #22272d;
  --border: #2a3037;
  --border-strong: #39414a;
  --text-primary: #f2f3f4;
  --text-secondary: #aeb6c1;
  --text-muted: #929ca9;
  --accent: #d62839;
  --accent-hover: #ed3348;
  --success: #35a56c;
  --warning: #d9902f;
  --danger: #e04d5d;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-subtle: 0 10px 30px rgb(0 0 0 / 16%);
}

html { background: var(--background); }
body.control-room { margin: 0; min-width: 0; background: var(--background); color: var(--text-primary); font: 14px/1.5 system-ui, sans-serif; }
body.control-room * { scrollbar-color: var(--border-strong) var(--background); }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-secondary); color: var(--text-primary); font-size: 12px; font-weight: 650; line-height: 1; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.btn:hover { border-color: #505a65; background: var(--surface-raised); }
.btn.btn--primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.btn--primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn.btn--danger { border-color: rgb(224 77 93 / 60%); color: #ffb3bc; }
.btn.btn--danger:hover { background: rgb(214 40 57 / 14%); }
.btn.btn--quiet { border-color: transparent; background: transparent; color: var(--text-secondary); }
.btn.btn--quiet:hover { border-color: var(--border); background: var(--surface-secondary); color: var(--text-primary); }
.ui-card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-subtle); }
.ui-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.ui-card__body { padding: 16px; }
.stat-chip { min-width: 140px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.stat-chip__label { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat-chip__value { margin-top: 5px; color: var(--text-primary); font-size: 20px; font-weight: 650; line-height: 1; }
.stat-chip__meta { margin-top: 5px; color: var(--text-secondary); font-size: 11px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.search-input { min-width: 260px; flex: 1 1 320px; }
.control-room input:not([type="checkbox"]):not([type="radio"]), .control-room select, .control-room textarea { border-color: var(--border) !important; border-radius: var(--radius-sm) !important; background-color: #0e1114 !important; color: var(--text-primary) !important; box-shadow: none !important; }
.control-room input:focus, .control-room select:focus, .control-room textarea:focus { outline: 2px solid rgb(214 40 57 / 45%); outline-offset: 1px; border-color: var(--accent) !important; }
.control-room input::placeholder, .control-room textarea::placeholder { color: var(--text-muted); }
.filter-pill { display: inline-flex; min-height: 30px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; background: transparent; color: var(--text-secondary); font-size: 11px; font-weight: 650; }
.filter-pill:hover { border-color: var(--border-strong); color: var(--text-primary); }
.filter-pill.is-active { border-color: rgb(214 40 57 / 70%); background: rgb(214 40 57 / 13%); color: #ffd2d7; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; color: var(--text-secondary); font-size: 10px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-badge--active { border-color: rgb(53 165 108 / 50%); color: #77ce9b; }
.status-badge--warning { border-color: rgb(217 144 47 / 55%); color: #efb767; }
.status-badge--inactive { color: var(--text-muted); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table--wide { min-width: 74rem; }
.data-table th { height: 38px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.data-table td { height: 48px; border-bottom: 1px solid rgb(42 48 55 / 72%); color: var(--text-secondary); vertical-align: middle; }
.data-table tbody tr { transition: background-color 100ms ease; }
.data-table tbody tr:hover { background: rgb(255 255 255 / 2.5%); }
.data-table a { color: #f1c2c8; }
.data-table a:hover { color: #fff; }
.toggle { position: relative; display: inline-flex; width: 32px; height: 18px; vertical-align: middle; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { width: 100%; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--border); transition: .14s ease; }
.toggle span::after { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #d5d9dd; content: ""; transition: .14s ease; }
.toggle input:checked + span { border-color: var(--accent); background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(14px); background: #fff; }
.toggle input:focus-visible + span { outline: 2px solid rgb(214 40 57 / 55%); outline-offset: 2px; }
.accordion-summary { list-style: none; }
.accordion-summary::-webkit-details-marker { display: none; }
.empty-state { padding: 36px 18px; color: var(--text-secondary); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; color: var(--text-secondary); font-size: 12px; }
.pagination > div { display: flex; gap: 6px; }
.action-menu { position: relative; }
.action-menu > summary { list-style: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu__panel { position: absolute; z-index: 30; right: 0; min-width: 172px; margin-top: 6px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-subtle); }
.action-menu__item { display: block; width: 100%; min-height: 30px; padding: 7px 8px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; text-align: left; }
.action-menu__item:hover { background: rgb(255 255 255 / 5%); color: var(--text-primary); }
.action-menu__item--danger { color: #ffadb7; }
.modal-shell { position: fixed; z-index: 70; inset: 0; overflow-y: auto; padding: 24px; background: rgb(0 0 0 / 74%); }
.modal-shell.flex { align-items: center; justify-content: center; }
.modal-panel { width: min(960px, 100%); max-height: calc(100vh - 48px); margin: 0 auto; overflow-y: auto; }
.planning-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 11px; }
.planning-indicator::before { width: 6px; height: 6px; border-radius: 50%; background: var(--success); content: ""; }
.planning-indicator--late { color: #f0b25f; }
.planning-indicator--late::before { background: var(--warning); }
.planning-indicator--idle::before { background: var(--text-muted); }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0e1114; }
.tab-button { min-height: 32px; padding: 7px 11px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.tab-button:hover { background: var(--surface-secondary); color: var(--text-primary); }
.tab-button.is-active { border-color: var(--border-strong); background: var(--surface-raised); color: var(--text-primary); }
.summary-strip { display: grid; grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(120px, .7fr)); overflow: hidden; }
.summary-strip__item { min-width: 0; padding: 13px 16px; border-right: 1px solid var(--border); }
.summary-strip__item:last-child { border-right: 0; }
.summary-strip__label, .key-value__label { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.summary-strip__value { margin-top: 5px; overflow: hidden; color: var(--text-primary); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.summary-strip__meta { margin-top: 3px; overflow: hidden; color: var(--text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.key-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--border); }
.key-value { min-width: 0; padding: 11px 12px; background: var(--surface); }
.key-value__value { margin-top: 4px; overflow-wrap: anywhere; color: var(--text-primary); font-size: 12px; }
.section-heading { color: var(--text-primary); font-size: 14px; font-weight: 650; }
.section-kicker { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.copy-button { display: inline-flex; align-items: center; min-height: 25px; margin-left: 6px; padding: 4px 7px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 10px; }
.copy-button:hover { background: var(--surface-secondary); color: var(--text-primary); }

/* Player command copy centre */
.command-copy-page { display: grid; gap: 14px; }
.command-copy-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.command-copy-stats { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 8px; }
.command-copy-stats .stat-chip { min-width: 0; padding: 10px 12px; }
.command-copy-stats .stat-chip__value { font-size: 18px; }
.command-copy-layout { display: grid; grid-template-columns: minmax(560px, 1.5fr) minmax(330px, .75fr); align-items: start; gap: 12px; }
.command-copy-catalogue { min-width: 0; overflow: hidden; }
.command-copy-toolbar select { min-width: 150px; min-height: 34px; padding: 6px 9px; font-size: 11px; }
.command-copy-list { display: grid; }
.command-copy-entry { border-bottom: 1px solid var(--border); }
.command-copy-entry:last-child { border-bottom: 0; }
.command-copy-entry__summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; cursor: pointer; }
.command-copy-entry__summary:hover { background: rgb(255 255 255 / 2.5%); }
.command-copy-entry[open] > .command-copy-entry__summary { background: var(--surface-secondary); }
.command-copy-entry__identity { display: grid; min-width: 0; gap: 4px; }
.command-copy-entry__identity code { overflow: hidden; color: var(--text-primary); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.command-copy-entry__identity span { overflow: hidden; color: var(--text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.command-copy-entry__badges { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.command-copy-module { padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.command-copy-form { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 11px 12px; padding: 14px 15px; border-top: 1px solid var(--border); background: #111417; }
.command-copy-form > label { display: grid; gap: 5px; color: var(--text-secondary); font-size: 10px; font-weight: 650; text-transform: uppercase; }
.command-copy-form textarea, .command-copy-form input { padding: 8px 9px; font-size: 12px; font-weight: 400; text-transform: none; }
.command-copy-form small { color: var(--text-muted); font-size: 10px; font-weight: 400; line-height: 1.4; text-transform: none; }
.command-copy-form .span-2 { grid-column: span 2; }
.command-copy-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.command-copy-visibility { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 11px; }
.command-copy-key { color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; }
.command-copy-preview { position: sticky; top: 14px; overflow: hidden; }
.command-copy-preview__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.command-copy-chat { display: grid; gap: 8px; min-height: 220px; max-height: 520px; padding: 14px; overflow-y: auto; background: #0c0f12; }
.command-copy-chat__message { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 7px; }
.command-copy-chat__message > span { margin-top: 3px; padding: 2px 3px; border-radius: 3px; background: rgb(214 40 57 / 18%); color: #f2aab2; font-size: 8px; font-weight: 800; text-align: center; }
.command-copy-chat__message p { padding: 7px 9px; border: 1px solid var(--border); border-radius: 4px 9px 9px 9px; background: var(--surface); color: #e7e9eb; font-size: 11px; line-height: 1.45; }
.command-copy-preview__note { padding: 11px 13px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 10px; line-height: 1.45; }

/* Chat command operations */
.chat-command-page { display: grid; gap: 14px; }
.chat-command-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.chat-command-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.chat-command-warning { padding: 10px 13px; border-left: 3px solid var(--warning); background: rgb(217 144 47 / 8%); color: #efc687; font-size: 11px; }
.chat-command-health { display: grid; grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(110px, .55fr)); overflow: hidden; }
.chat-command-health > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--border); }
.chat-command-health > div:last-child { border-right: 0; }
.chat-command-health > div:not(.chat-command-health__main) span, .chat-command-health > div:not(.chat-command-health__main) strong { display: block; }
.chat-command-health > div:not(.chat-command-health__main) span { color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.chat-command-health > div:not(.chat-command-health__main) strong { margin-top: 5px; overflow: hidden; color: var(--text-primary); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.chat-command-health__main { display: flex; align-items: center; gap: 11px; }
.chat-command-health__main > div { display: grid; min-width: 0; gap: 3px; }
.chat-command-health__main strong, .chat-command-health__main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-command-health__main strong { color: var(--text-primary); font-size: 12px; }
.chat-command-health__main small { color: var(--text-muted); font-size: 9px; }
.chat-command-events { overflow: hidden; }
.chat-command-toolbar select { min-width: 140px; min-height: 34px; padding: 6px 9px; font-size: 11px; }
.chat-command-table-wrap { min-width: 0; overflow-x: auto; }
.chat-command-table { min-width: 920px; }
.chat-command-table th, .chat-command-table td, .chat-command-cursors th, .chat-command-cursors td { padding: 8px 12px; text-align: left; }
.chat-command-table th:nth-child(1) { width: 15%; }
.chat-command-table th:nth-child(2) { width: 20%; }
.chat-command-table th:nth-child(3) { width: 18%; }
.chat-command-table th:nth-child(4) { width: 12%; }
.chat-command-table td strong, .chat-command-table td small { display: block; }
.chat-command-table td strong { color: var(--text-primary); font-size: 11px; font-weight: 650; }
.chat-command-table td small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.chat-command-table td code { color: #f1c2c8; font-size: 11px; font-weight: 700; }
.chat-command-date { color: var(--text-muted) !important; font-size: 10px; white-space: nowrap; }
.chat-command-result { max-width: 460px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chat-command-diagnostics { overflow: hidden; }
.chat-command-diagnostics > summary { display: flex; cursor: pointer; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.chat-command-diagnostics > summary strong { color: var(--text-primary); font-size: 12px; }
.chat-command-diagnostics > summary > span { color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.chat-command-diagnostics[open] > summary { border-bottom: 1px solid var(--border); }
.chat-command-diagnostics[open] > summary > span { font-size: 0; }
.chat-command-diagnostics[open] > summary > span::after { content: "Masquer"; font-size: 10px; }
.chat-command-diagnostics__body { display: grid; gap: 16px; padding: 14px; }
.chat-command-key-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chat-command-errors { display: grid; gap: 6px; margin-top: 8px; }
.chat-command-errors > div { padding: 8px 9px; border: 1px solid rgb(224 77 93 / 30%); border-radius: var(--radius-sm); color: #d99ca4; font-size: 10px; }
.chat-command-errors p { color: var(--text-muted); font-size: 10px; }
.chat-command-cursors { min-width: 900px; margin-top: 8px; }
.chat-command-cursors td:first-child { max-width: 420px; overflow: hidden; color: var(--text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Explorer, bulk action and side-drawer primitives */
.explorer-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 590px; overflow: hidden; }
.explorer-sidebar { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--border); background: #111417; }
.explorer-sidebar__header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); }
.explorer-sidebar__note { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.explorer-nav { display: grid; padding: 7px; }
.explorer-nav__row { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; }
.explorer-nav__item { display: flex; width: 100%; min-width: 0; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-left: 2px solid transparent; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; text-align: left; }
.explorer-nav__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explorer-nav__item strong { color: var(--text-muted); font-size: 10px; font-weight: 650; }
.explorer-nav__item:hover { background: var(--surface-secondary); color: var(--text-primary); }
.explorer-nav__item.is-active { border-left-color: var(--accent); background: var(--surface-secondary); color: var(--text-primary); }
.explorer-nav__more { display: grid; min-height: 28px; cursor: pointer; place-items: center; list-style: none; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 11px; }
.explorer-nav__more:hover { background: var(--surface-secondary); color: var(--text-primary); }
.explorer-content { min-width: 0; overflow: hidden; }
.bulk-bar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 12px; border-bottom: 1px solid rgb(214 40 57 / 38%); background: rgb(214 40 57 / 8%); color: var(--text-secondary); font-size: 11px; }
.bulk-bar strong { margin-right: auto; color: #ffd2d7; }
.drawer-shell { position: fixed; z-index: 60; inset: 0; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgb(0 0 0 / 65%); }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(560px, calc(100vw - 280px)); height: 100%; overflow-y: auto; border-left: 1px solid var(--border); background: var(--surface); box-shadow: -22px 0 55px rgb(0 0 0 / 35%); }
.drawer-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); background: rgb(21 24 28 / 97%); backdrop-filter: blur(8px); }
.drawer-body { display: grid; gap: 13px; padding: 16px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.drawer-notice { padding: 10px 12px; border-left: 3px solid var(--warning); background: rgb(217 144 47 / 8%); color: #efc687; font-size: 11px; line-height: 1.45; }
.usage-list { display: grid; gap: 6px; }
.usage-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 11px; }
.usage-list__item:hover { border-color: var(--border-strong); background: var(--surface-secondary); }
.usage-list__item strong, .usage-list__item small { display: block; }
.usage-list__item strong { color: var(--text-primary); font-weight: 650; }
.usage-list__item small { margin-top: 2px; color: var(--text-muted); }
.usage-list__item em { color: var(--text-secondary); font-style: normal; white-space: nowrap; }

.database-page { display: grid; gap: 12px; }
.database-page__notice { padding: 10px 13px; border-left: 3px solid var(--warning); color: var(--text-secondary); font-size: 12px; }
.database-technical > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; }
.database-technical > summary::after { color: var(--text-muted); content: "Afficher"; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.database-technical[open] > summary::after { content: "Masquer"; }
.database-technical__body { padding: 0 14px 14px; }
.database-workspace { overflow: hidden; }
.database-workspace__tabs { padding: 12px 14px 0; }
.database-workspace__pane { padding: 14px; }
.database-table-link { color: #f3c3c9; font-weight: 650; }
.database-table-link:hover { color: #fff; text-decoration: underline; }
.database-modal-header { position: sticky; z-index: 4; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); background: rgb(21 24 28 / 97%); backdrop-filter: blur(8px); }
.database-modal-body { display: grid; gap: 14px; padding: 14px 16px 18px; }
.database-modal-summary { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 8px; color: var(--text-secondary); font-size: 11px; }
.database-modal-summary strong { color: var(--text-primary); font-weight: 650; }
.database-section { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.database-section__header { padding: 11px 13px; border-bottom: 1px solid var(--border); }
.database-section__body { padding: 13px; }
.database-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.survival-stat-chip { min-width: 132px; flex: 1 1 132px; }

/* Master/detail workspaces */
.master-detail { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(560px, 1.45fr); min-height: 590px; }
.master-detail__master { min-width: 0; border-right: 1px solid var(--border); background: #111417; }
.master-detail__detail { min-width: 0; background: var(--surface); }
.master-list { max-height: 660px; overflow-y: auto; }
.master-list__item { display: block; width: 100%; padding: 13px 15px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; color: var(--text-secondary); text-align: left; transition: background-color 110ms ease, border-color 110ms ease; }
.master-list__item:hover { background: rgb(255 255 255 / 3%); color: var(--text-primary); }
.master-list__item.is-active { border-left-color: var(--accent); background: var(--surface-secondary); color: var(--text-primary); }
.master-list__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-primary); font-size: 13px; font-weight: 650; }
.master-list__meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 6px; color: var(--text-muted); font-size: 10px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.detail-body { display: grid; gap: 14px; padding: 16px; }
.detail-section { border: 1px solid var(--border); border-radius: var(--radius-md); background: #121519; }
.detail-section__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.detail-section__body { padding: 12px; }
.compact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.compact-form-grid label { display: grid; gap: 5px; color: var(--text-secondary); font-size: 11px; }
.compact-form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.accordion-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 11px 14px; }
.accordion-card > summary::after { color: var(--text-muted); content: "Afficher"; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.accordion-card[open] > summary::after { content: "Masquer"; }
.accordion-card__body { border-top: 1px solid var(--border); }
.modal-panel--compact { width: min(720px, 100%); }
.modal-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 16px; border-bottom: 1px solid var(--border); background: rgb(21 24 28 / 97%); }
.modal-body { padding: 16px; }
.rewards-page { display: grid; gap: 14px; }
.rewards-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.rewards-stats { display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); gap: 8px; }
.rewards-stats .stat-chip { min-width: 0; padding: 10px 12px; }
.rewards-stats .stat-chip__value { font-size: 17px; }
.rewards-toolbar select { min-width: 130px; min-height: 34px; padding: 6px 9px; font-size: 11px; }
.rewards-results { margin-left: auto; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.reward-detail-empty { display: grid; min-height: 520px; place-items: center; padding: 32px; color: var(--text-secondary); text-align: center; }
.reward-link-list { display: flex; flex-wrap: wrap; gap: 7px; }
.reward-link-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 7px 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary); font-size: 11px; }
.reward-link-chip button { color: #ffadb7; font-weight: 700; }
.reward-link-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; margin-top: 10px; }
.reward-history-stack { display: grid; gap: 10px; }
.reward-history-stack .ui-card { box-shadow: none; }
.zones-page { display: grid; gap: 14px; }
.zones-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.zones-stats { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 8px; }
.zones-stats .stat-chip { min-width: 0; padding: 10px 12px; }
.zones-stats .stat-chip__value { font-size: 18px; }
.zones-toolbar select { min-height: 34px; padding: 6px 8px; font-size: 11px; }
.zones-table { min-width: 900px; }
.zones-table__name { max-width: 260px; overflow: hidden; color: #f1c2c8; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.zones-table__name:hover { color: #fff; }
.zones-table__id { max-width: 260px; margin-top: 3px; overflow: hidden; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

/* Shared folder explorer used by Passive Events and Dynamic Quests. */
.explorer-page { display: grid; width: min(100%, 1660px); margin-inline: auto; gap: 12px; }
.explorer-page__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.explorer-page__header h1 { margin-top: 3px; color: var(--text-primary); font-size: 20px; font-weight: 700; }
.explorer-page__header p { margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.explorer-page__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.status-summary { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-muted); font-size: 11px; }
.status-summary span { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.status-summary strong { color: var(--text-primary); }
.alert { padding: 10px 13px; border: 1px solid; border-radius: var(--radius-md); font-size: 12px; }
.alert--success { border-color: #237b59; background: rgb(24 92 66 / 36%); color: #b8f2d9; }
.alert--danger { border-color: #8d2b39; background: rgb(105 25 38 / 40%); color: #ffc2ca; }

/* Dashboard audit control room */
.dashboard-page { display: grid; gap: 14px; }
.health-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.health-strip__item { min-width: 0; padding: 9px 12px; border-right: 1px solid var(--border); }
.health-strip__item:last-child { border-right: 0; }
.health-strip__heading { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.health-strip__detail { display: flex; min-height: 25px; align-items: center; gap: 5px; margin: 2px 0 0 14px; }
.health-strip__item small { min-width: 0; overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.health-strip__item .btn { min-height: 24px; margin-left: auto; padding: 3px 6px; font-size: 9px; }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.health-dot--ok { background: var(--success); box-shadow: 0 0 0 3px rgb(53 165 108 / 12%); }
.health-dot--error { background: var(--danger); box-shadow: 0 0 0 3px rgb(224 77 93 / 12%); }
.health-dot--idle, .health-dot--unknown { background: var(--warning); }
.test-result { display: inline-block; margin-left: 5px; font-size: 10px; }
.test-result--ok { color: #77ce9b; }
.test-result--error { color: #ff9aa6; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr); gap: 14px; }
.dashboard-side { display: grid; align-content: start; gap: 14px; }
.dashboard-activity__header { min-height: 55px; padding-block: 9px; }
.activity-live-controls { display: flex; align-items: center; gap: 8px; }
.activity-updated { color: var(--text-muted); font-size: 9px; }
.activity-auto-toggle { min-height: 28px; padding: 5px 8px; font-size: 10px; }
.activity-filters { border-bottom: 1px solid var(--border); }
.activity-filters__main { display: grid; grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(125px, 1fr)) auto; gap: 8px; padding: 9px 12px; }
.activity-filter { display: grid; min-width: 0; gap: 4px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.activity-filters input, .activity-filters select { min-width: 0; height: 31px; padding: 5px 7px; font-size: 11px; }
.activity-filters__actions { display: flex; align-items: end; gap: 5px; }
.activity-filters__actions .btn { min-height: 31px; padding-inline: 9px; }
.activity-filters__advanced { border-top: 1px solid rgb(42 48 55 / 60%); }
.activity-filters__advanced > summary { width: max-content; padding: 7px 12px; cursor: pointer; color: var(--text-secondary); font-size: 10px; font-weight: 650; list-style-position: inside; }
.activity-filters__advanced-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; padding: 0 12px 10px; }
.activity-active-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 12px; border-bottom: 1px solid var(--border); }
.activity-active-filters .filter-pill { min-height: 25px; padding: 3px 8px; font-size: 9px; text-transform: none; }
.activity-table-wrap { width: 100%; overflow-x: auto; }
.activity-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.activity-table th { height: 30px; padding: 0 9px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.activity-table th:nth-child(1) { width: 76px; }
.activity-table th:nth-child(2) { width: 145px; }
.activity-table th:nth-child(3) { width: 125px; }
.activity-table th:nth-child(4) { width: 160px; }
.activity-table th:nth-child(6) { width: 100px; text-align: right; }
.activity-table td { height: 47px; padding: 5px 9px; border-bottom: 1px solid rgb(42 48 55 / 72%); color: var(--text-secondary); font-size: 11px; }
.activity-table__row { cursor: pointer; transition: background-color 100ms ease; }
.activity-table__row:hover, .activity-table__row:focus-visible { outline: none; background: rgb(255 255 255 / 3%); }
.activity-table__time { color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px !important; white-space: nowrap; }
.activity-table__actor, .activity-table__actor-label, .activity-table__module, .activity-table__action, .activity-table__target { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-table__actor { color: #f1c2c8; font-weight: 700; text-align: left; }
.activity-table__actor:hover { color: #fff; text-decoration: underline; }
.activity-table__actor-label { color: var(--text-primary); font-weight: 700; }
.activity-table__module { color: var(--text-secondary); }
.activity-table__action { color: var(--text-primary); font-size: 11px; font-weight: 650; }
.activity-table__target { color: #c4c9cf; }
.activity-table__status-cell { text-align: right; }
.activity-status { display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary); font-size: 10px; font-weight: 650; white-space: nowrap; }
.activity-status__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.activity-status--success { color: #77ce9b; }
.activity-status--success .activity-status__dot { background: var(--success); }
.activity-status--failed, .activity-status--denied { color: #ff9aa6; }
.activity-status--failed .activity-status__dot, .activity-status--denied .activity-status__dot { background: var(--danger); }
.activity-status--partial, .activity-status--expired, .activity-status--cancelled { color: #efb767; }
.activity-status--partial .activity-status__dot, .activity-status--expired .activity-status__dot, .activity-status--cancelled .activity-status__dot { background: var(--warning); }
.activity-pagination { padding-block: 8px; }
.active-team-card__header { min-height: 46px; padding: 10px 12px; }
.active-team { display: grid; padding: 4px; }
.active-team__row { display: flex; width: 100%; min-width: 0; align-items: flex-start; gap: 8px; padding: 8px; border-radius: var(--radius-sm); color: var(--text-secondary); text-align: left; }
.active-team__row:hover { background: var(--surface-secondary); }
.active-team__row .session-chip__status { margin-top: 4px; flex: 0 0 auto; }
.active-team__content { min-width: 0; }
.active-team__content strong, .active-team__content small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-team__content strong { color: var(--text-primary); font-size: 11px; }
.active-team__content small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.empty-state--compact { padding: 14px 12px; font-size: 11px; }
.audit-description { padding: 11px 12px; border-left: 3px solid var(--accent); background: rgb(214 40 57 / 7%); color: var(--text-secondary); font-size: 12px; }
.audit-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--border); gap: 1px; }
.audit-summary > div { min-width: 0; padding: 9px 10px; background: var(--surface); }
.audit-summary span, .audit-summary strong { display: block; }
.audit-summary span { color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.audit-summary strong { margin-top: 3px; overflow-wrap: anywhere; color: var(--text-primary); font-size: 11px; }
.audit-changes h3 { margin-bottom: 7px; color: var(--text-primary); font-size: 11px; font-weight: 700; }
.audit-changes__table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.audit-changes__table { width: 100%; border-collapse: collapse; font-size: 10px; }
.audit-changes__table th, .audit-changes__table td { padding: 8px 9px; border-bottom: 1px solid var(--border); text-align: left; }
.audit-changes__table thead th { color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.audit-changes__table tbody th { color: var(--text-secondary); font-weight: 650; }
.audit-changes__table tr.is-changed td:last-child { background: rgb(53 165 108 / 8%); color: #a7e1c0; }
.audit-technical { border: 1px solid var(--border); border-radius: var(--radius-md); }
.audit-technical > summary { padding: 9px 11px; cursor: pointer; color: var(--text-secondary); font-size: 10px; font-weight: 650; }
.audit-technical__body { padding: 0 11px 11px; color: var(--text-muted); font-size: 10px; }
.audit-technical__body dl { display: grid; gap: 5px; margin-bottom: 8px; }
.audit-technical__body dl div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; }
.audit-technical__body dt { color: var(--text-secondary); }
.audit-technical__body dd { overflow-wrap: anywhere; }

@media (max-width: 1500px) {
  .activity-filters__main { grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(110px, 1fr)); }
  .activity-filters__actions { grid-column: -2 / -1; justify-content: flex-end; }
}

@media (max-width: 1280px) {
  .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-side { grid-row: 2; }
  .active-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-filters__main { grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(120px, 1fr)) auto; }
  .activity-filters__actions { grid-column: auto; }
}

@media (max-width: 1100px) {
  .health-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .health-strip__item:nth-child(3) { border-right: 0; }
  .health-strip__item:nth-child(n+4) { border-top: 1px solid var(--border); }
  .activity-filters__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-filter--search { grid-column: 1 / -1; }
  .activity-filters__actions { justify-content: flex-end; }
  .activity-filters__advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-table th:nth-child(3), .activity-table td:nth-child(3) { display: none; }
}
.explorer-nav__section { display: grid; gap: 2px; padding: 4px 0 8px; }
.explorer-nav__section + .explorer-nav__section { border-top: 1px solid var(--border); }
.explorer-nav__heading { padding: 8px 9px 4px; color: var(--text-muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.explorer-nav__heading--action { display: flex; align-items: center; justify-content: space-between; }
.explorer-nav__folder { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; }
.explorer-nav__item--system span::before { margin-right: 7px; color: var(--text-muted); content: "◇"; }
.explorer-nav__empty { padding: 8px 9px; color: var(--text-muted); font-size: 10px; }
.icon-button { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); }
.icon-button:hover { border-color: var(--border-strong); color: var(--text-primary); }
.explorer-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; color: var(--text-muted); font-size: 11px; }
.explorer-summary strong { color: var(--text-primary); font-weight: 700; }
.explorer-content__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.explorer-toolbar { flex-wrap: nowrap; }
.explorer-toolbar .search-input { min-width: 230px; flex: 1 1 300px; }
.explorer-toolbar select { min-width: 130px; }
.explorer-table { min-width: 980px; }
.explorer-table th, .explorer-table td { padding-inline: 10px; }
.explorer-table__name { display: inline-block; max-width: 260px; overflow: hidden; color: #f1c2c8; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.explorer-table__meta { max-width: 270px; margin-top: 3px; overflow: hidden; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.explorer-table__title { color: #f1c2c8; font-size: 12px; font-weight: 650; }
.explorer-table__title:hover { color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.form-grid .span-2 { grid-column: span 2; }
.form-label { display: grid; gap: 5px; color: var(--text-secondary); font-size: 11px; }
.form-label input, .form-label textarea, .form-label select { width: 100%; }
.toggle-label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 11px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.accordion { border: 1px solid var(--border); border-radius: var(--radius-md); background: #111418; }
.accordion > summary { padding: 10px 12px; cursor: pointer; color: var(--text-secondary); font-size: 11px; font-weight: 650; }
.accordion__body { padding: 12px; border-top: 1px solid var(--border); }
.compact-list { display: grid; gap: 6px; }
.compact-list__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.compact-list__row strong, .compact-list__row span { display: block; }
.compact-list__row strong { color: var(--text-primary); font-size: 11px; }
.compact-list__row span { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.row-actions { display: flex; min-width: 112px; align-items: center; justify-content: flex-end; gap: 7px; }
.row-actions__more { display: grid; width: 30px; min-height: 30px; cursor: pointer; place-items: center; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); }
.row-actions__more::-webkit-details-marker { display: none; }
.row-actions__more:hover { border-color: var(--border-strong); color: var(--text-primary); }
.action-menu__form { padding: 6px 8px; }
.action-menu__form label { display: grid; gap: 5px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
.action-menu__form select { width: 100%; min-height: 30px; padding: 4px 7px; font-size: 11px; text-transform: none; }
.toolbar-more { position: relative; }
.toolbar-more > summary { list-style: none; white-space: nowrap; }
.toolbar-more > summary::-webkit-details-marker { display: none; }
.toolbar-more__panel { position: absolute; z-index: 35; top: calc(100% + 6px); right: 0; display: grid; min-width: 260px; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-subtle); }
.toolbar-more__panel label { display: grid; gap: 5px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
.modal-panel--wide { width: min(1180px, 100%); }
.modal-stack { display: grid; gap: 10px; }
.secondary-data-row { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #111417; color: var(--text-secondary); font-size: 11px; }
.secondary-data-row strong, .secondary-data-row small { display: block; }
.secondary-data-row strong { color: var(--text-primary); font-size: 12px; }
.secondary-data-row small { margin-top: 3px; color: var(--text-muted); }
.secondary-data-row p { margin-top: 5px; color: var(--text-secondary); }
.secondary-data-row time { color: var(--text-muted); white-space: nowrap; }

@media (max-width: 1439px) {
  .explorer-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .explorer-toolbar { flex-wrap: wrap; }
  .explorer-toolbar .search-input { flex-basis: calc(100% - 310px); }
}

@media (max-width: 900px) {
  .explorer-page__header { flex-direction: column; }
  .explorer-layout { grid-template-columns: 1fr; min-height: 0; overflow: visible; }
  .explorer-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .explorer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explorer-sidebar__note { display: none; }
  .explorer-content { overflow: visible; }
  .bulk-bar { flex-wrap: wrap; }
  .bulk-bar strong { width: 100%; }
  .key-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .explorer-nav { grid-template-columns: 1fr; }
  .explorer-toolbar > * { width: 100%; }
  .toolbar-more__panel { position: static; min-width: 0; margin-top: 6px; }
  .secondary-data-row { align-items: flex-start; flex-direction: column; }
}
.usage-badge { display: inline-flex; min-height: 25px; align-items: center; border: 1px solid rgb(217 144 47 / 45%); border-radius: 999px; padding: 3px 8px; color: #efb767; font-size: 10px; font-weight: 700; }
.compact-form-grid label.flex-row { display: flex; align-items: center; gap: 8px; }
.tpe-page { display: grid; gap: 14px; }
.tpe-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tpe-stats { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 8px; }
.tpe-stats .stat-chip { min-width: 0; padding: 10px 12px; }
.tpe-stats .stat-chip__value { font-size: 18px; }
.tpe-toolbar select { min-height: 34px; padding: 6px 9px; font-size: 11px; }
.tpe-search { min-width: 240px; flex: 1 1 360px; }
.tpe-search .search-input { width: 100%; }
.tpe-identity-list, .tpe-transaction-list { display: grid; }
.tpe-identity-row { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(260px, 1.2fr) minmax(220px, .85fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 12px 16px; border-bottom: 1px solid rgb(42 48 55 / 72%); color: var(--text-secondary); }
.tpe-identity-row:hover, .tpe-transaction-row:hover { background: rgb(255 255 255 / 2.5%); }
.tpe-identity-row__action, .tpe-transaction-row__action { justify-self: end; }
.tpe-row-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tpe-copy-line { display: flex; min-width: 0; align-items: center; gap: 7px; }
.tpe-steam-id { margin-top: 4px; }
.tpe-copy-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-button--icon { display: inline-flex; width: 26px; height: 26px; flex: 0 0 26px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; }
.copy-button--icon:hover { border-color: var(--border); background: var(--surface-secondary); color: var(--text-primary); }
.tpe-public-id { color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 22px; font-weight: 750; letter-spacing: .14em; }
.tpe-target-id { color: #f4b7bf; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 750; letter-spacing: .08em; }
.tpe-transaction-row { display: grid; grid-template-columns: minmax(115px, .7fr) minmax(75px, .4fr) minmax(220px, 1.3fr) minmax(100px, .55fr) minmax(135px, .7fr) minmax(175px, .85fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px 16px; border-bottom: 1px solid rgb(42 48 55 / 72%); color: var(--text-secondary); }
.tpe-party { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tpe-modal { width: min(520px, calc(100vw - 48px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; overflow: hidden; color: var(--text-primary); }
.tpe-modal::backdrop { background: rgb(0 0 0 / 76%); }
.tpe-modal-summary.key-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpe-modal-summary .key-value__value { overflow-wrap: anywhere; }
.tpe-modal-warning { padding: 9px 10px; border-left: 3px solid var(--warning); background: rgb(217 144 47 / 8%); color: #efc687; font-size: 11px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1500px) {
  .summary-strip { grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(105px, .7fr)); }
  .key-value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .explorer-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .zones-toolbar .search-input { min-width: 200px; flex-basis: 100%; }
  .zones-table { min-width: 790px; }
}
@media (max-width: 1100px) {
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip__item { border-bottom: 1px solid var(--border); }
  .key-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .database-two-column { grid-template-columns: 1fr; }
  .master-detail { grid-template-columns: 1fr; }
  .master-detail__master { border-right: 0; border-bottom: 1px solid var(--border); }
  .master-list { max-height: 340px; }
  .rewards-stats { grid-template-columns: repeat(4, minmax(105px, 1fr)); }
  .tpe-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpe-identity-row { grid-template-columns: minmax(140px, .65fr) minmax(240px, 1.2fr) minmax(180px, .8fr) auto; }
  .tpe-transaction-row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .tpe-transaction-row__action { justify-self: start; }
}

@media (max-width: 767px) {
  body.control-room.tpe-responsive-page { min-width: 0; }
  .tpe-responsive-page .app-shell { display: block; min-width: 0; }
  .tpe-responsive-page .app-sidebar { position: static; height: auto; max-height: 220px; border-right: 0; border-bottom: 1px solid var(--border); }
  .tpe-responsive-page .app-content { padding: 14px 12px 24px; }
  .tpe-responsive-page .topbar { align-items: flex-start; margin-bottom: 14px; }
  .tpe-page { gap: 10px; }
  .tpe-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tpe-stats .stat-chip { padding: 9px; }
  .tpe-stats .stat-chip__meta { display: none; }
  .tpe-identities-heading { align-items: flex-start; }
  .tpe-toolbar { align-items: stretch; padding: 10px; }
  .tpe-toolbar > * { width: 100%; }
  .tpe-search { min-width: 0; flex-basis: 100%; }
  .tpe-identity-row, .tpe-transaction-row { grid-template-columns: 1fr; align-items: start; gap: 10px; padding: 13px 12px; }
  .tpe-identity-row__action, .tpe-transaction-row__action { width: 100%; justify-self: stretch; }
  .tpe-identity-row__action .btn, .tpe-transaction-row__action .btn { width: 100%; }
  .tpe-transaction-row__action form { width: 100%; }
  .tpe-modal { width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; }
  .tpe-modal-summary.key-value-grid { grid-template-columns: 1fr; }
  .pagination { align-items: stretch; flex-direction: column; }
}

/* Migration layer for active legacy modules.
   It deliberately targets visual utility patterns only: functional attributes,
   field names and module-specific JavaScript contracts remain untouched. */
.module-page { min-width: 0; color: var(--text-primary); }
.module-page > :first-child { margin-top: 0 !important; }
.module-page :is(.space-y-6, .space-y-5) > :not([hidden]) ~ :not([hidden]) { margin-top: 16px !important; }
.module-page :is(.gap-6) { gap: 16px !important; }
.module-page :is(.mb-6) { margin-bottom: 16px !important; }
.module-page :is(.mt-6) { margin-top: 16px !important; }
.module-page :is(.p-6) { padding: 16px !important; }
.module-page :is(.p-5) { padding: 16px !important; }
.module-page :is(.px-5) { padding-left: 16px !important; padding-right: 16px !important; }
.module-page :is(.py-5) { padding-top: 16px !important; padding-bottom: 16px !important; }

.module-page :is(section, article, div, form, details)[class*="border-slate-8"][class*="bg-slate-9"],
.module-page :is(section, article, div, form, details)[class*="border-slate-7"][class*="bg-slate-9"] {
  border-color: var(--border) !important;
  border-radius: var(--radius-md) !important;
  background-color: var(--surface) !important;
  box-shadow: none !important;
}
.module-page :is(div, form, pre, code)[class*="bg-slate-950"] {
  border-color: var(--border) !important;
  background-color: #0e1114 !important;
}
.module-page [class*="divide-slate-8"] > :not([hidden]) ~ :not([hidden]),
.module-page [class*="border-slate-8"] { border-color: var(--border) !important; }
.module-page [class*="border-slate-7"] { border-color: var(--border-strong) !important; }
.module-page [class*="text-slate-50"],
.module-page [class*="text-slate-100"],
.module-page [class*="text-slate-200"] { color: var(--text-primary) !important; }
.module-page [class*="text-slate-300"],
.module-page [class*="text-slate-400"] { color: var(--text-secondary) !important; }
.module-page [class*="text-slate-500"] { color: var(--text-muted) !important; }
.module-page [class*="text-cyan"],
.module-page [class*="text-sky"],
.module-page [class*="text-blue"],
.module-page [class*="text-indigo"] { color: #f1a3ad !important; }

.module-page :is(h2, h3, h4) { color: var(--text-primary); letter-spacing: -.01em; }
.module-page h2 { font-size: 16px; font-weight: 650; }
.module-page h3 { font-size: 14px; font-weight: 650; }
.module-page h4 { font-size: 13px; font-weight: 650; }
.module-page :is(h1, h2)[class*="text-2xl"],
.module-page :is(h1, h2)[class*="text-xl"] { font-size: 16px !important; }
.module-page [class*="text-3xl"] { font-size: 20px !important; line-height: 1.1 !important; font-weight: 650 !important; }

.module-page :is(button, a)[class*="bg-slate-7"],
.module-page :is(button, a)[class*="bg-slate-8"] {
  min-height: 34px;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
  font-size: 12px !important;
  font-weight: 650;
}
.module-page :is(button, a)[class*="bg-emerald"],
.module-page :is(button, a)[class*="bg-green"] {
  min-height: 34px;
  border: 1px solid var(--accent) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650;
}
.module-page :is(button, a)[class*="bg-emerald"]:hover,
.module-page :is(button, a)[class*="bg-green"]:hover { background: var(--accent-hover) !important; }
.module-page :is(button, a)[class*="bg-blue"],
.module-page :is(button, a)[class*="bg-cyan"],
.module-page :is(button, a)[class*="bg-sky"],
.module-page :is(button, a)[class*="bg-indigo"] {
  min-height: 34px;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
  font-size: 12px !important;
  font-weight: 650;
}
.module-page :is(button, a)[class*="bg-blue"]:hover,
.module-page :is(button, a)[class*="bg-cyan"]:hover,
.module-page :is(button, a)[class*="bg-sky"]:hover,
.module-page :is(button, a)[class*="bg-indigo"]:hover { background: var(--surface-raised) !important; }
.module-page :is(button, a)[class*="bg-red"] {
  min-height: 34px;
  border: 1px solid rgb(224 77 93 / 60%) !important;
  border-radius: var(--radius-sm) !important;
  background: rgb(214 40 57 / 13%) !important;
  color: #ffb3bc !important;
  font-size: 12px !important;
  font-weight: 650;
}
.module-page :is(button, a):focus-visible,
.module-page summary:focus-visible {
  outline: 2px solid rgb(214 40 57 / 55%);
  outline-offset: 2px;
}
.module-page :is(button, a)[disabled],
.module-page :is(button, a).disabled { cursor: not-allowed; opacity: .5; }

.module-page table { width: 100%; border-collapse: collapse; font-size: 13px; }
.module-page table thead { background: #0e1114 !important; }
.module-page table th {
  height: 38px;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.module-page table td {
  height: 46px;
  border-color: rgb(42 48 55 / 72%) !important;
  color: var(--text-secondary);
}
.module-page table tbody tr { transition: background-color 100ms ease; }
.module-page table tbody tr:hover { background: rgb(255 255 255 / 2.5%) !important; }
.module-page :is(th, td)[class*="p-4"] { padding: 10px 12px !important; }
.module-page :is(th, td)[class*="p-3"] { padding: 9px 12px !important; }

.module-page label { color: var(--text-secondary); }
.module-page fieldset { border-color: var(--border); }
.module-page legend { color: var(--text-primary); }
.module-page input[type="checkbox"],
.module-page input[type="radio"] { accent-color: var(--accent); }
.module-page :is(input, select, textarea):disabled { cursor: not-allowed; opacity: .55; }

.module-page [class*="border-emerald"][class*="bg-emerald"] {
  border-color: rgb(53 165 108 / 45%) !important;
  background: rgb(53 165 108 / 9%) !important;
}
.module-page [class*="border-amber"][class*="bg-amber"] {
  border-color: rgb(217 144 47 / 48%) !important;
  background: rgb(217 144 47 / 9%) !important;
}
.module-page [class*="border-red"][class*="bg-red"],
.module-page [class*="border-rose"][class*="bg-rose"] {
  border-color: rgb(224 77 93 / 48%) !important;
  background: rgb(214 40 57 / 9%) !important;
}
.module-page details > summary { cursor: pointer; }
.module-page details[open] > summary { border-bottom-color: var(--border); }
.module-page pre { border-radius: var(--radius-sm) !important; font-size: 11px; line-height: 1.45; }

.module-page .module-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.module-page .module-toolbar > form { display: flex; flex-wrap: wrap; gap: 8px; }
.module-page .module-section-title {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Shared workflow editors: a stable structure navigator and one focused editor. */
.workflow-shell {
  width: min(100%, 1520px);
  margin-inline: auto;
}
.workflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.workflow-header__main { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }
.workflow-header__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.workflow-header__title { margin: 2px 0 0; font-size: 18px; font-weight: 680; }
.workflow-header__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; color: var(--text-muted); font-size: 11px; }
.workflow-editor {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.workflow-editor__nav {
  position: sticky;
  top: 16px;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.workflow-nav__header { padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
.workflow-nav__eyebrow { color: var(--text-muted); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.workflow-nav__title { margin-top: 3px; color: var(--text-primary); font-size: 13px; font-weight: 680; }
.workflow-nav__group { padding: 8px; }
.workflow-nav__group.is-long { max-height: calc(100vh - 150px); overflow-y: auto; }
.workflow-nav__label { padding: 8px 8px 5px; color: var(--text-muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.workflow-nav__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}
.workflow-nav__item:hover { background: rgb(255 255 255 / 3%); color: var(--text-primary); }
.workflow-nav__item.is-active { border-left-color: var(--accent); background: var(--surface-secondary); color: var(--text-primary); }
.workflow-nav__item-title { display: block; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.workflow-nav__item-meta { display: block; margin-top: 2px; overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-nav__count { min-width: 22px; color: var(--text-muted); font-size: 10px; text-align: right; }
.workflow-editor__detail { min-width: 0; min-height: 0; overflow: visible; }
.workflow-panel { min-height: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.workflow-panel--plain { padding: 0; border: 0; background: transparent; }
.workflow-panel[hidden] { display: none !important; }
.workflow-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.workflow-panel__title { font-size: 15px; font-weight: 680; }
.workflow-panel__help { max-width: 740px; margin-top: 3px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.workflow-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.workflow-form-grid > .is-wide { grid-column: 1 / -1; }
.workflow-subsection { padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.workflow-subsection + .workflow-subsection { margin-top: 12px; }
.workflow-sticky-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.workflow-action-list { display: grid; gap: 8px; }
.workflow-action-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.workflow-action-card > summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 9px 12px; list-style: none; }
.workflow-action-card > summary::-webkit-details-marker { display: none; }
.workflow-action-card[open] > summary { border-bottom: 1px solid var(--border); background: var(--surface-secondary); }
.workflow-action-card__body { padding: 12px; }
.workflow-notice { padding: 10px 12px; border-left: 3px solid var(--warning); background: rgb(217 144 47 / 8%); color: #e7c28d; font-size: 11px; line-height: 1.5; }
.workflow-section + .workflow-section { margin-top: 16px; }
.workflow-section__header { margin-bottom: 10px; }
.workflow-section__title { color: var(--text-primary); font-size: 13px; font-weight: 680; }
.workflow-section__help { margin-top: 3px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.workflow-master-detail { display: grid; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); align-items: start; gap: 16px; }
.workflow-master-detail__nav { position: sticky; top: 16px; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.workflow-master-detail__list { display: grid; gap: 4px; padding: 8px; }
.workflow-master-detail__list.is-long { max-height: calc(100vh - 150px); overflow-y: auto; }
.workflow-master-detail__content { min-width: 0; overflow: visible; }
.workflow-master-panel { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.workflow-master-panel[hidden] { display: none !important; }
.workflow-message-list { display: grid; gap: 6px; }
.workflow-message-row { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0e1114; }
.workflow-message-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 42px; padding: 8px 11px; list-style: none; cursor: pointer; }
.workflow-message-row > summary::-webkit-details-marker { display: none; }
.workflow-message-row[open] > summary { border-bottom: 1px solid var(--border); background: var(--surface-secondary); }
.workflow-message-row__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(120px, 1fr); align-items: end; gap: 12px; padding: 12px; }
.workflow-message-row__body label { display: grid; gap: 6px; color: var(--text-secondary); font-size: 11px; }
.workflow-message-row__body textarea { width: 100%; min-height: 104px; resize: vertical; }
.workflow-message-row__body input[type="number"] { width: min(100%, 140px); }
.workflow-message-row__delay-control { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.workflow-message-row__state { color: var(--text-muted); font-size: 10px; }
.workflow-dialogue { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-secondary); }
.workflow-dialogue__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.workflow-dialogue__continuation { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0e1114; color: var(--text-secondary); font-size: 11px; }
.workflow-dialogue__continuation[hidden] { display: none !important; }
.workflow-dialogue__continuation input { margin-top: 2px; }
.workflow-dialogue__continuation span { display: grid; gap: 2px; }
.workflow-dialogue__continuation strong { color: var(--text-primary); font-size: 11px; }
.workflow-dialogue__continuation small { color: var(--text-muted); font-size: 10px; }
.workflow-dialogue__empty { padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 11px; text-align: center; }
.workflow-dialogue__empty[hidden] { display: none; }
.workflow-dialogue__list { display: grid; gap: 7px; }
.workflow-dialogue__actions { display: flex; justify-content: flex-end; }
.workflow-dialogue-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0e1114; }
.workflow-dialogue-item > summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 8px 11px; list-style: none; cursor: pointer; }
.workflow-dialogue-item > summary::-webkit-details-marker { display: none; }
.workflow-dialogue-item[open] > summary { border-bottom: 1px solid var(--border); background: var(--surface); }
.workflow-dialogue-item__order { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-secondary); font-size: 10px; font-weight: 700; }
.workflow-dialogue-item__summary { overflow: hidden; color: var(--text-primary); font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.workflow-dialogue-item__delay { color: var(--text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.workflow-dialogue-item__body { display: grid; gap: 12px; padding: 12px; }
.workflow-dialogue-item__message { display: grid; gap: 6px; color: var(--text-secondary); font-size: 11px; }
.workflow-dialogue-item__message textarea { width: 100%; min-height: 112px; resize: vertical; }
.workflow-dialogue-item__settings { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.workflow-dialogue-item__settings > label { display: grid; gap: 6px; color: var(--text-secondary); font-size: 11px; }
.workflow-dialogue-item__delay-control { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.workflow-dialogue-item__delay-control input { width: 96px; }
.workflow-dialogue-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.workflow-automation-list { display: grid; gap: 6px; }
.workflow-automation-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0e1114; }
.workflow-automation-item > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 9px 11px; list-style: none; cursor: pointer; }
.workflow-automation-item > summary::-webkit-details-marker { display: none; }
.workflow-automation-item[open] > summary { border-bottom: 1px solid var(--border); background: var(--surface-secondary); }
.workflow-automation-item__body { padding: 12px; }

@media (max-width: 1365px) {
  .workflow-editor { grid-template-columns: 220px minmax(0, 1fr); }
  .workflow-master-detail { grid-template-columns: 270px minmax(0, 1fr); }
  .workflow-form-grid { grid-template-columns: 1fr; }
  .workflow-form-grid > .is-wide { grid-column: auto; }
}

@media (max-width: 1180px) {
  .command-copy-layout { grid-template-columns: 1fr; }
  .command-copy-preview { position: static; }
  .chat-command-health { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chat-command-health__main { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .command-copy-header { align-items: stretch; flex-direction: column; }
  .command-copy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-copy-toolbar > * { width: 100%; }
  .command-copy-toolbar .search-input { min-width: 0; }
  .command-copy-entry__summary { align-items: flex-start; flex-direction: column; }
  .command-copy-entry__badges { flex-wrap: wrap; }
  .command-copy-form { grid-template-columns: 1fr; }
  .command-copy-form .span-2 { grid-column: auto; }
  .command-copy-form__footer { align-items: stretch; flex-direction: column; }
  .chat-command-header { align-items: stretch; flex-direction: column; }
  .chat-command-actions { justify-content: flex-start; }
  .chat-command-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-command-health > div:nth-child(3) { border-right: 0; }
  .chat-command-health > div { border-bottom: 1px solid var(--border); }
  .chat-command-toolbar > * { width: 100%; }
  .chat-command-toolbar .search-input { min-width: 0; }
  .chat-command-key-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .workflow-editor, .workflow-master-detail { grid-template-columns: 1fr; }
  .workflow-editor__nav, .workflow-master-detail__nav { position: static; }
  .workflow-nav__group { display: flex; flex-wrap: wrap; gap: 4px; }
  .workflow-nav__group.is-long { max-height: none; overflow: visible; }
  .workflow-nav__label { width: 100%; }
  .workflow-nav__item { width: auto; min-width: 180px; flex: 1 1 180px; }
  .workflow-master-detail__list { display: flex; flex-wrap: wrap; }
  .workflow-master-detail__list .workflow-nav__item { flex: 1 1 220px; }
  .workflow-master-detail__list.is-long { max-height: none; overflow: visible; }
}
@media (max-width: 700px) {
  .workflow-header { align-items: flex-start; }
  .workflow-header__actions { justify-content: flex-start; }
  .workflow-message-row__body { grid-template-columns: 1fr; }
  .workflow-dialogue__header, .workflow-dialogue-item__settings { align-items: stretch; flex-direction: column; }
  .workflow-dialogue-item__actions { justify-content: flex-start; }
}

@media (max-width: 1500px) {
  .notifications-message-column { display: none; }
  .notifications-table { min-width: 66rem; }
  .notifications-table th { width: auto !important; }
}


/* Admin users */
.admin-users-page { display: grid; gap: 14px; }
.admin-users-alert { padding: 10px 12px; border: 1px solid; border-radius: var(--radius-sm); font-size: 12px; }
.admin-users-alert--success { border-color: rgb(53 165 108 / 45%); background: rgb(53 165 108 / 10%); color: #8addac; }
.admin-users-alert--error { border-color: rgb(224 77 93 / 55%); background: rgb(224 77 93 / 10%); color: #ffb3bc; }
.admin-users-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-users-header h2 { margin-top: 3px; font-size: 18px; font-weight: 680; }
.admin-users-header p { margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.admin-users-workspace { grid-template-columns: minmax(245px, 300px) minmax(560px, 1fr); min-height: 680px; overflow: hidden; }
.admin-users-master { position: relative; }
.admin-users-search { position: sticky; z-index: 2; top: 0; display: grid; gap: 9px; padding: 12px; border-bottom: 1px solid var(--border); background: #111417; }
.admin-users-search .search-input { min-width: 0; width: 100%; }
.admin-users-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-users-filters .filter-pill { min-height: 25px; padding: 3px 8px; }
.admin-users-list { max-height: calc(100vh - 255px); min-height: 500px; }
.admin-user-detail-header h2 { margin-top: 3px; font-size: 18px; font-weight: 680; }
.admin-user-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; color: var(--text-muted); font-size: 11px; }
.admin-users-help { color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.admin-users-owner-note, .admin-users-protection { padding: 9px 11px; border-left: 3px solid var(--warning); background: rgb(217 144 47 / 8%); color: #e7c28d; font-size: 11px; }
.admin-permission-groups { display: grid; gap: 12px; }
.admin-permission-group { min-width: 0; padding: 0; }
.admin-permission-group legend { margin-bottom: 7px; color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.admin-permission-grid label { display: flex; min-width: 0; align-items: center; gap: 7px; min-height: 32px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0e1114; color: var(--text-secondary); font-size: 11px; }
.admin-permission-grid label:hover { border-color: var(--border-strong); color: var(--text-primary); }
.admin-permission-grid input:disabled + span { color: var(--text-muted); }
.admin-users-savebar { position: sticky; z-index: 5; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgb(21 24 28 / 96%); box-shadow: 0 -8px 24px rgb(0 0 0 / 18%); }
.admin-users-savebar span { color: var(--text-muted); font-size: 10px; }
.admin-users-history { margin: 0 16px 14px; box-shadow: none; }
.admin-users-history > summary { cursor: pointer; }
.admin-users-history > summary > span { color: var(--text-muted); font-size: 10px; }
.admin-users-history .compact-list { padding: 12px; }
.admin-users-danger-zone { margin: 0 16px 16px; border-color: rgb(224 77 93 / 35%); }
.admin-users-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-users-actions strong { font-size: 12px; }
.admin-users-actions p { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.admin-users-actions .btn:disabled, .admin-users-danger-zone .btn:disabled { cursor: not-allowed; opacity: .42; }

@media (max-width: 1500px) {
  .admin-users-workspace { grid-template-columns: 255px minmax(560px, 1fr); }
  .admin-permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .admin-users-workspace { grid-template-columns: 1fr; }
  .admin-users-workspace .master-detail__master { border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-users-list { display: flex; min-height: 0; max-height: 250px; overflow: auto; }
  .admin-users-list .master-list__item { min-width: 230px; border-right: 1px solid var(--border); }
}

/* Kits control room */
.kits-page { display: grid; width: min(100%, 1680px); gap: 14px; margin-inline: auto; }
.kits-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.kits-header h1 { margin-top: 3px; color: var(--text-primary); font-size: 20px; font-weight: 680; letter-spacing: -.02em; }
.kits-header p { margin-top: 4px; color: var(--text-secondary); font-size: 12px; }
.kits-header__actions, .kits-detail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.kits-notice { padding: 10px 12px; border: 1px solid; border-radius: var(--radius-sm); font-size: 12px; }
.kits-notice--success { border-color: rgb(53 165 108 / 45%); background: rgb(53 165 108 / 9%); color: #8addac; }
.kits-notice--error { border-color: rgb(224 77 93 / 55%); background: rgb(224 77 93 / 9%); color: #ffb3bc; }
.kits-stats { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 8px; }
.kits-stats .stat-chip { min-width: 0; padding: 10px 12px; }
.kits-stats .stat-chip__value { font-size: 18px; }
.kits-workspace { overflow: hidden; }
.kits-toolbar select { min-width: 150px; min-height: 34px; padding: 6px 9px; font-size: 11px; }
.kits-filter-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.kits-results { margin-left: auto; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.kits-master-detail { grid-template-columns: minmax(280px, 340px) minmax(560px, 1fr); min-height: 620px; align-items: start; }
.kits-list-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.kits-list-heading strong { color: var(--text-primary); font-size: 12px; }
.kits-list-heading span { color: var(--text-muted); font-size: 10px; }
.kits-workspace .master-list { max-height: none; overflow: visible; }
.kits-workspace .kits-master-list--long { max-height: min(720px, calc(100vh - 190px)); overflow-y: auto; }
.kit-master-item[hidden], [data-kit-panel][hidden] { display: none !important; }
.kits-detail-header h2 { margin-top: 3px; font-size: 18px; font-weight: 680; }
.kits-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: var(--text-muted); font-size: 10px; }
.kits-detail-nav { margin: 12px 16px 0; }
.kits-detail-nav.tab-list { display: inline-flex; }
.kit-command-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--border); }
.kit-command-summary > div { min-width: 0; padding: 10px 11px; background: #0e1114; }
.kit-command-summary span, .kit-command-summary small { display: block; overflow: hidden; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.kit-command-summary strong { display: block; margin-top: 4px; overflow: hidden; color: var(--text-primary); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.kit-command-summary small { margin-top: 3px; color: #efb767; }
.kit-form { display: grid; gap: 12px; }
.kit-form small, .compact-form-grid small { color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.kit-form code, .kit-section-intro code { color: #efb3bb; font-size: 10px; }
.kit-toggle-stack { display: grid; align-content: center; gap: 12px; padding: 8px 0; }
.kit-items { display: grid; gap: 7px; padding: 10px; }
.kit-item-row { display: grid; grid-template-columns: minmax(180px, 2fr) 90px minmax(150px, 1.25fr) auto; align-items: end; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0e1114; }
.kit-item-row label, .kit-grant-form label { display: grid; gap: 5px; color: var(--text-secondary); font-size: 10px; }
.kit-item-row input { width: 100%; min-width: 0; }
.kit-item-row .remove-kit-item { color: #ffadb7; }
.scum-asset-picker { position: relative; }
.scum-asset-picker small { min-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scum-asset-suggestions { position: absolute; z-index: 40; top: calc(100% + 4px); right: 0; left: 0; max-height: 280px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #111417; box-shadow: 0 14px 30px rgb(0 0 0 / 40%); }
.scum-asset-suggestions[hidden] { display: none; }
.scum-asset-suggestions button { display: grid; width: 100%; gap: 2px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text-primary); text-align: left; }
.scum-asset-suggestions button:hover, .scum-asset-suggestions button:focus { background: rgb(255 255 255 / 6%); outline: none; }
.scum-asset-suggestions button strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scum-asset-suggestions button span, .scum-asset-suggestions__empty { color: var(--text-muted); font-size: 9px; }
.scum-asset-suggestions__empty { padding: 10px; }
.kit-form-actions { padding: 2px 0 0; }
.kit-section-intro { margin-bottom: 12px; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.kit-policy-override { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--warning); background: rgb(217 144 47 / 8%); color: #efc687; font-size: 10px; }
.kit-inline-action { margin-top: 8px; }
.kit-grant-form { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr) auto; align-items: end; gap: 10px; }
.kit-grant-result { margin-top: 12px; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0e1114; color: var(--text-secondary); font-size: 11px; }
.kits-history { overflow: hidden; }
.kits-history > summary { cursor: pointer; }
.kits-history > summary > span:first-child { display: grid; gap: 3px; }
.kits-history > summary > span:last-child { margin-left: auto; color: var(--text-muted); font-size: 10px; }
.kits-history td { padding: 9px 12px; }
.kit-create-modal { width: min(1040px, 100%); }
.kit-create-modal .modal-header h2 { margin-top: 3px; font-size: 17px; }
.kit-create-modal .modal-header p { margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.status-badge--danger { border-color: rgb(224 77 93 / 50%); color: #ff8f9c; }
.scum-catalog-page { display: grid; width: min(100%, 1680px); gap: 14px; margin-inline: auto; }
.scum-catalog-browser { overflow: hidden; }
.scum-catalog-browser code { color: #efb3bb; font-size: 10px; }

@media (max-width: 1365px) {
  .kits-master-detail { grid-template-columns: 270px minmax(0, 1fr); }
  .kit-command-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-item-row { grid-template-columns: minmax(180px, 1.6fr) 82px minmax(130px, 1fr) auto; }
}
@media (max-width: 1100px) {
  .kits-master-detail { grid-template-columns: 1fr; }
  .kits-master-detail .master-detail__master { border-right: 0; border-bottom: 1px solid var(--border); }
  .kits-workspace .master-list, .kits-workspace .kits-master-list--long { display: flex; max-height: none; overflow-x: auto; overflow-y: visible; }
  .kits-workspace .master-list__item { min-width: 235px; border-right: 1px solid var(--border); }
}
.kit-definitions-page { display: grid; width: min(100%, 1680px); gap: 14px; margin-inline: auto; }
.kit-definition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.kit-definition-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: #111417; }
.kit-definition-card[hidden] { display: none; }
.kit-definition-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border); }
.kit-definition-card h2 { margin-top: 3px; font-size: 14px; font-weight: 680; }
.kit-definition-card header p { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.kit-definition-command { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.kit-definition-command span, .kit-definition-command small { display: block; color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.kit-definition-command strong { display: block; margin-top: 4px; color: var(--text-primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.kit-definition-command small { margin-top: 4px; text-transform: none; }
.kit-definition-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.kit-definition-facts > div { min-width: 0; padding: 9px 11px; background: var(--surface); }
.kit-definition-facts span { display: block; color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.kit-definition-facts strong { display: block; margin-top: 3px; overflow: hidden; color: var(--text-primary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.kit-definition-items { min-height: 62px; padding: 10px 12px; border-top: 1px solid var(--border); }
.kit-definition-items span { color: var(--text-primary); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.kit-definition-items p { margin-top: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.kit-definition-technical { border-top: 1px solid var(--border); }
.kit-definition-technical summary { padding: 9px 12px; color: var(--text-secondary); font-size: 10px; list-style: none; }
.kit-definition-technical summary::-webkit-details-marker { display: none; }
.kit-definition-technical summary::after { float: right; color: var(--text-muted); content: "Afficher"; text-transform: uppercase; }
.kit-definition-technical[open] summary::after { content: "Masquer"; }
.kit-definition-technical dl { display: grid; gap: 7px; padding: 0 12px 12px; }
.kit-definition-technical dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; font-size: 10px; }
.kit-definition-technical dt { color: var(--text-muted); }
.kit-definition-technical dd { min-width: 0; color: var(--text-secondary); overflow-wrap: anywhere; }
.kit-definition-empty { grid-column: 1 / -1; }
.kit-definition-note { padding: 10px 12px; border-left: 3px solid var(--border-strong); color: var(--text-muted); font-size: 10px; }
@media (max-width: 1500px) { .kit-definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kits v2 — catalog-first layout aligned with Passive Events */
.kits-page--clean { width: min(100%, 1900px); gap: 14px; }
.kits-overview { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.kits-overview p { color: var(--text-secondary); font-size: 12px; }
.kits-overview__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.kits-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-top: 9px; color: var(--text-muted); font-size: 11px; }
.kits-summary strong { color: var(--text-primary); font-weight: 700; }
.kits-catalog { overflow: hidden; }
.kits-catalog__header h2 { color: var(--text-primary); font-size: 15px; font-weight: 680; }
.kits-catalog__header p { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.kits-toolbar .search-input { min-width: 340px; }
.kits-table { min-width: 1080px; }
.kits-table th, .kits-table td { padding: 8px 12px; text-align: left; }
.kits-table th:last-child, .kits-table td:last-child { text-align: right; }
.kits-table__name { color: #f0b6bd; font-size: 12px; font-weight: 680; }
.kits-table__meta, .kits-table__compat { display: block; margin-top: 3px; color: var(--text-muted); font-size: 9px; line-height: 1.35; }
.kits-table__compat { color: #c68e5d; }
.kits-table__command { color: var(--text-primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.kit-table-row[hidden] { display: none; }
.kit-editor-modal { width: min(1120px, 100%); }
.kit-editor-modal .modal-header h2 { margin-top: 3px; color: var(--text-primary); font-size: 18px; font-weight: 680; }
.kit-editor-modal .modal-header p { margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.kits-editor-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 7px; color: var(--text-muted); font-size: 10px; }
.kit-editor-tabs { margin: 12px 16px 0; }
.kit-editor-tabs.tab-list { display: inline-flex; }
.kit-editor-body { min-width: 0; padding: 0 16px 16px; }
.kit-editor-body [data-kit-panel][hidden] { display: none !important; }
.kit-form--clean { gap: 0; }
.kit-form-section { padding: 16px 0; border-bottom: 1px solid var(--border); }
.kit-form-section:last-child { border-bottom: 0; }
.kit-form-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.kit-form-section > header h3 { margin-top: 2px; color: var(--text-primary); font-size: 13px; font-weight: 680; }
.kit-form--clean .compact-form-grid { gap: 10px 12px; }
.kit-form--clean .compact-form-grid label { gap: 4px; }
.kit-form--clean :is(input, select, textarea) { width: 100%; min-height: 34px; padding: 7px 9px; font-size: 11px; }
.kit-form--clean textarea { min-height: 58px; resize: vertical; }
.kit-toggle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 8px 0; }
.kit-items-head, .kit-item-row { display: grid; grid-template-columns: minmax(260px, 2fr) 72px minmax(180px, 1.2fr) 30px; gap: 8px; }
.kit-items-head { padding: 0 8px 6px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.kit-items { gap: 4px; padding: 0; }
.kit-item-row { align-items: start; padding: 7px 8px; border: 0; border-top: 1px solid rgb(42 48 55 / 72%); border-radius: 0; background: transparent; }
.kit-item-row:first-child { border-top-color: var(--border); }
.kit-item-row > :is(input, label > input) { min-width: 0; min-height: 32px; padding: 6px 8px; font-size: 11px; }
.kit-item-row .scum-asset-picker { display: grid; min-width: 0; gap: 2px; }
.kit-item-row .scum-asset-picker small { min-height: 11px; color: var(--text-muted); font-size: 8px; }
.kit-item-remove { display: grid; width: 28px; height: 28px; margin-top: 2px; place-items: center; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 17px; line-height: 1; }
.kit-item-remove:hover { border-color: rgb(224 77 93 / 45%); background: rgb(224 77 93 / 9%); color: #ffadb7; }
.kit-savebar { position: sticky; z-index: 3; bottom: -16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -16px -16px; padding: 11px 16px; border-top: 1px solid var(--border); background: rgb(21 24 28 / 97%); box-shadow: 0 -10px 24px rgb(0 0 0 / 18%); }
.kit-savebar > span { color: var(--text-muted); font-size: 9px; }
.kit-savebar > div { display: flex; gap: 7px; }
.kit-editor-body .kit-grant-form { margin-top: 4px; }
.scum-catalog-page, .kit-definitions-page { width: min(100%, 1900px); }
.scum-catalog-page .kits-overview, .kit-definitions-page .kits-overview { margin-bottom: 0; }
.scum-catalog-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin-top: 8px; color: var(--text-muted); font-size: 11px; }
.scum-catalog-summary strong { color: var(--text-primary); }
.scum-catalog-table { min-width: 980px; }
.scum-catalog-table th, .scum-catalog-table td { padding: 8px 12px; }
.kit-definition-row[hidden] { display: none; }
.kit-definitions-table { min-width: 1180px; }
.kit-definition-summary { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1365px) {
  .kits-overview { align-items: stretch; flex-direction: column; }
  .kits-overview__actions { justify-content: flex-start; }
  .kit-editor-modal { width: min(1020px, 100%); }
}

/* Notifications — compact supervision and natural-height editor */
.notification-page { display: grid; width: min(100%, 1900px); gap: 14px; margin-inline: auto; }
.notification-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.notification-header > div:first-child { min-width: 0; }
.notification-header p { color: var(--text-secondary); font-size: 12px; }
.notification-header__actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; justify-content: flex-end; gap: 7px; }
.notification-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: 9px; color: var(--text-muted); font-size: 11px; }
.notification-summary strong { color: var(--text-primary); font-weight: 700; }
.notification-summary__separator { color: var(--border-strong); }
.notification-summary__warning, .notification-summary__warning strong { color: #efb767; }
.notification-notice { padding: 10px 12px; border: 1px solid; border-radius: var(--radius-sm); font-size: 12px; }
.notification-notice--success { border-color: rgb(53 165 108 / 45%); background: rgb(53 165 108 / 9%); color: #8addac; }
.notification-notice--error { border-color: rgb(224 77 93 / 55%); background: rgb(224 77 93 / 9%); color: #ffb3bc; }
.notification-catalog { min-width: 0; overflow: hidden; }
.notification-catalog__header h2 { margin-top: 3px; color: var(--text-primary); font-size: 15px; font-weight: 680; }
.notification-catalog__header p { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.notification-toolbar .search-input { min-width: 320px; }
.notification-toolbar select { min-width: 145px; min-height: 34px; padding: 6px 9px; font-size: 11px; }
.notification-table-wrap { min-width: 0; overflow-x: auto; }
.notification-table { min-width: 1080px; }
.notification-table th, .notification-table td, .notification-runs-table th, .notification-runs-table td { padding: 8px 12px; text-align: left; }
.notification-table th:nth-child(1) { width: 31%; }
.notification-table th:nth-child(2) { width: 9%; }
.notification-table th:nth-child(3) { width: 14%; }
.notification-table th:nth-child(4) { width: 15%; }
.notification-table th:nth-child(5) { width: 12%; }
.notification-table th:nth-child(6) { width: 8%; }
.notification-table th:nth-child(7) { width: 11%; }
.notification-table__identity a { display: block; overflow: hidden; color: #f0b6bd; font-size: 12px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.notification-table__identity p { max-width: 520px; margin-top: 3px; overflow: hidden; color: var(--text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.notification-table__identity small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.notification-channel { display: inline-flex; border: 1px solid; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.notification-channel--announce { border-color: rgb(104 145 183 / 45%); color: #9fc3e3; }
.notification-channel--chat { border-color: rgb(217 144 47 / 50%); color: #efb767; }
.notification-table__schedule strong, .notification-table__schedule small { display: block; }
.notification-table__schedule strong { color: var(--text-primary); font-size: 11px; font-weight: 600; }
.notification-table__schedule small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.notification-table__date { color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.notification-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.notification-row-actions .btn { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.notification-more { display: grid; width: 30px; height: 29px; cursor: pointer; place-items: center; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 10px; letter-spacing: 1px; }
.notification-more::-webkit-details-marker { display: none; }
.notification-more:hover { border-color: var(--border-strong); background: var(--surface-secondary); color: var(--text-primary); }
.notification-history { overflow: visible; box-shadow: none; }
.notification-history > summary { display: flex; cursor: pointer; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; }
.notification-history > summary > span:first-child { display: grid; gap: 3px; }
.notification-history > summary strong { color: var(--text-primary); font-size: 12px; }
.notification-history > summary > span:last-child { color: var(--text-muted); font-size: 10px; }
.notification-history[open] > summary { border-bottom: 1px solid var(--border); }
.notification-runs-table { min-width: 940px; }
.notification-runs-table td small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.notification-run-message { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-run-error { max-width: 240px; overflow: hidden; color: #d99ca4 !important; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.notification-modal-shell { display: grid; align-items: start; padding: 28px; }
.notification-modal-backdrop { position: fixed; inset: 0; }
.notification-editor { position: relative; width: min(1060px, 100%); max-height: none; overflow: visible; }
.notification-editor__header { position: sticky; z-index: 5; top: -28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 16px; border-bottom: 1px solid var(--border); background: rgb(21 24 28 / 97%); backdrop-filter: blur(8px); }
.notification-editor__header h2 { margin-top: 3px; color: var(--text-primary); font-size: 18px; font-weight: 680; }
.notification-editor__header p { margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.notification-form { display: grid; }
.notification-presets { border-bottom: 1px solid var(--border); }
.notification-presets > summary { display: flex; cursor: pointer; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; }
.notification-presets > summary > span:first-child { display: grid; gap: 2px; }
.notification-presets > summary strong { color: var(--text-primary); font-size: 11px; }
.notification-presets > summary small, .notification-presets > summary > span:last-child { color: var(--text-muted); font-size: 9px; }
.notification-presets[open] > summary { background: #111417; }
.notification-preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 16px 12px; background: #111417; }
.notification-preset { display: grid; min-width: 0; gap: 3px; padding: 8px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); text-align: left; }
.notification-preset:hover { border-color: var(--border-strong); background: var(--surface-secondary); }
.notification-preset strong { overflow: hidden; color: var(--text-primary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.notification-preset span { color: var(--text-muted); font-size: 9px; }
.notification-form-section { padding: 15px 16px; border-bottom: 1px solid var(--border); }
.notification-form-section > header { margin-bottom: 10px; }
.notification-form-section h3 { margin-top: 2px; color: var(--text-primary); font-size: 13px; font-weight: 680; }
.notification-section-help { margin: -5px 0 11px; color: var(--text-muted); font-size: 10px; }
.notification-form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .7fr) minmax(210px, .9fr); gap: 10px 12px; }
.notification-field { display: grid; min-width: 0; align-content: start; gap: 5px; color: var(--text-secondary); font-size: 10px; }
.notification-field--full { grid-column: 1 / -1; }
.notification-field input, .notification-field select, .notification-field textarea { width: 100%; min-width: 0; min-height: 34px; padding: 7px 9px; font-size: 11px; }
.notification-field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.notification-field small { color: var(--text-muted); font-size: 9px; }
.notification-schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px 12px; }
.notification-interval-fields { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; }
.notification-savebar { position: sticky; z-index: 4; bottom: -28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; background: rgb(21 24 28 / 97%); box-shadow: 0 -10px 24px rgb(0 0 0 / 18%); backdrop-filter: blur(8px); }
.notification-savebar > label { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 11px; }
.notification-savebar > label strong { color: var(--text-primary); font-weight: 600; }
.notification-savebar > div { display: flex; gap: 7px; }

@media (max-width: 1365px) {
  .notification-header { align-items: stretch; flex-direction: column; }
  .notification-header__actions { justify-content: flex-start; }
  .notification-toolbar .search-input { min-width: 260px; }
  .notification-editor { width: min(980px, 100%); }
  .notification-form-grid { grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr); }
  .notification-form-grid #notification-chat-type-wrap { grid-column: 2; }
  .notification-field--full { grid-column: 1 / -1; }
}

/* HELLA4EVER shell and responsive component rules. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ff8793; outline-offset: 3px; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
.app-shell { min-height: 100vh; display: block; }
.app-content { min-width: 0; padding: 24px 28px 40px; }
.hella-header { position: relative; z-index: 40; display: flex; align-items: center; gap: 24px; min-height: 76px; padding: 12px 28px; border-bottom: 1px solid var(--border); background: #111417; }
.hella-brand { display: flex; flex-shrink: 0; align-items: center; gap: 10px; color: #f2f3f4; font-size: 15px; font-weight: 800; letter-spacing: .055em; }
.hella-brand span span { color: #ee4d5c; }
.hella-brand small { display: block; color: var(--text-muted); font-size: 8px; letter-spacing: .18em; margin-top: 2px; }
.hella-brand__mark { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #a32d38; border-radius: 8px; background: #351a20; font-size: 19px; position: relative; }
.hella-brand__mark span { position: absolute; font-size: 9px; right: 4px; bottom: 1px; }
.hella-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.hella-icon { width: 17px; height: 17px; flex-shrink: 0; }
.hella-nav__trigger, .hella-account__trigger { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 9px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; list-style: none; border: 1px solid transparent; }
summary::-webkit-details-marker { display: none; }
.hella-nav__trigger:hover, .hella-account__trigger:hover, .hella-dropdown[open] > summary { background: var(--surface-secondary); color: white; }
.hella-nav__trigger.is-active, .hella-dropdown.is-active > summary { color: #ffb4bd; background: #381d24; border-color: #6c2934; }
.hella-chevron { margin-left: 2px; color: var(--text-muted); }
.hella-dropdown { position: relative; }
.hella-dropdown__panel { position: absolute; left: 0; top: calc(100% + 9px); width: 264px; max-height: min(70vh, 600px); overflow: auto; padding: 8px; border: 1px solid var(--border-strong); border-radius: 9px; background: #191d23; box-shadow: 0 15px 40px #0008; }
.hella-dropdown__label { display: block; padding: 8px 10px; color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.hella-dropdown__link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 10px; color: #d4dae2; border-radius: 5px; font-size: 13px; text-align: left; }
.hella-dropdown__link:hover, .hella-dropdown__link:focus-visible { background: #292e37; color: white; }
.hella-dropdown__link.is-active { color: #ffb4bd; background: #381d24; }
.hella-account { margin-left: auto; }
.hella-account .hella-dropdown__panel { right: 0; left: auto; width: 230px; }
.hella-account__name { display: block; padding: 5px 10px 12px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.btn.hella-mobile-toggle { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.topbar__eyebrow { margin-bottom: 5px; color: var(--text-muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.topbar__eyebrow span { margin: 0 7px; color: #e14a5b; }
.topbar h1 { color: var(--text-primary); font-size: 25px; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.hella-environment { flex-shrink: 0; border: 1px solid var(--border); border-radius: 5px; padding: 5px 8px; color: var(--text-muted); font-size: 10px; }
.skip-link { position: fixed; top: 4px; left: 8px; z-index: 9999; padding: 12px; background: #d62839; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.module-page { min-width: 0; }
.module-page > *, .module-page form, .module-page label { min-width: 0; }
.module-page :where(div, section, header, aside) { min-width: 0; }
.module-page :is(p, code, .text-xs) { overflow-wrap: anywhere; }
.explorer-page, .zones-page { grid-template-columns: minmax(0, 1fr); }
.module-page > form, .module-page > .workflow-editor { max-width: 1440px; }
.ui-card { box-shadow: none; }
.ui-card__header, .explorer-page__header { flex-wrap: wrap; }
.btn, button.btn { min-height: 36px; line-height: 1.3; }
.control-room :is(input, select, textarea) { max-width: 100%; }
.control-room input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .control-room select { min-height: 36px; padding: 7px 9px; }
.control-room textarea { min-height: 80px; padding: 9px; }
.control-room input:-webkit-autofill { -webkit-text-fill-color: var(--text-primary); -webkit-box-shadow: 0 0 0 1000px #0e1114 inset !important; caret-color: var(--text-primary); }
.data-table th { color: #a6afba; font-size: 11px; }
.data-table td { font-size: 12px; }
.hella-table-scroll { max-width: 100%; overflow: auto; }
.btn.hella-folder-toggle { display: none; }
.explorer-layout { grid-template-columns: 210px minmax(0, 1fr); }
.explorer-sidebar { background: #121519; }
.explorer-nav__item { min-height: 38px; }
.explorer-page__header p { max-width: 760px; line-height: 1.6; }
.explorer-summary { flex-wrap: wrap; row-gap: 6px; }
.toolbar :is(input, select) { min-height: 36px; }
.toolbar .search-input { min-width: min(240px, 100%); }
.hella-request-status { position: fixed; z-index: 2000; right: 20px; bottom: 20px; max-width: min(460px, calc(100vw - 40px)); padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: #1b2129; color: white; }
.hella-request-status[data-state="error"] { border-color: var(--danger); background: #381b23; }
.login-page .login-panel { border-top: 3px solid var(--accent); box-shadow: 0 24px 70px #0005; }
.login-page .ui-card__header { padding: 28px 28px 20px; }
.login-page .ui-card__body { padding: 24px 28px 28px; }
@media (max-width: 1250px) {
  .hella-header { gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
  .hella-nav { order: 3; width: 100%; flex-basis: 100%; }
  .hella-account { margin-left: auto; }
}
@media (max-width: 760px) {
  .app-content { padding: 18px 12px 28px; }
  .hella-header { padding: 10px 12px; gap: 10px; }
  .hella-brand { font-size: 13px; }
  .hella-brand__mark { width: 30px; height: 32px; }
  .hella-brand small { font-size: 7px; }
  .btn.hella-mobile-toggle { display: inline-flex; margin-left: auto; font-size: 11px; padding-inline: 8px; }
  .hella-account { margin-left: 0; }
  .hella-account__trigger { padding: 8px; }
  .hella-account__trigger > span { display: none; }
  .hella-nav { display: none; align-items: stretch; gap: 4px; }
  .hella-nav.is-open { display: flex; flex-direction: column; }
  .hella-nav__trigger { width: 100%; min-height: 44px; }
  .hella-nav .hella-dropdown__panel { position: static; width: 100%; max-height: 45vh; margin: 4px 0; box-shadow: none; }
  .hella-nav .hella-chevron { margin-left: auto; }
  .topbar { align-items: flex-start; margin-bottom: 18px; }
  .topbar h1 { font-size: 22px; }
  .hella-environment { font-size: 9px; }
  .explorer-layout { display: block; min-height: 0; }
  .explorer-sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; }
  .btn.hella-folder-toggle { display: flex; width: 100%; }
  .explorer-sidebar:not(.is-open) > :not(.hella-folder-toggle) { display: none; }
  .explorer-sidebar.is-open .explorer-nav { max-height: 280px; overflow-y: auto; }
  .explorer-page__header, .command-copy-header, .chat-command-header { flex-direction: column; align-items: stretch; }
  .toolbar { padding: 12px; align-items: stretch; }
  .toolbar > :is(input, select) { flex: 1 1 140px; min-width: 0; }
  .toolbar .search-input { flex-basis: 100%; min-width: 0; }
  .toolbar-more__panel { width: min(300px, 80vw); }
  .pagination { flex-wrap: wrap; }
  .summary-strip, .key-value-grid, .command-copy-stats, .chat-command-health, .kits-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zones-stats, .rewards-stats, .health-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-copy-layout, .command-copy-form, .kit-grant-form, .notification-form-grid, .notification-schedule-grid, .notification-preset-grid, .kit-definition-grid { grid-template-columns: minmax(0, 1fr); }
  .command-copy-form .span-2, .notification-form-grid #notification-chat-type-wrap { grid-column: auto; }
  .module-page .grid-cols-2, .module-page .grid-cols-3, .module-page .grid-cols-4 { grid-template-columns: minmax(0, 1fr); }
  .search-input, .stat-chip { min-width: 0; }
  .modal-shell, .notification-modal-shell { padding: 10px; }
  .modal-panel { max-height: calc(100dvh - 20px); }
  .notification-editor__header, .notification-savebar { position: static; flex-wrap: wrap; }
  .tab-list { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.staff-overview { padding: 20px; border-bottom: 1px solid var(--border); }
.staff-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.staff-heading h2,.staff-section h2 {font-size:22px;font-weight:650;}
.staff-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px;margin:16px 0;}
.staff-grid--two {grid-template-columns:repeat(2,minmax(0,1fr));}
.staff-stat,.staff-panel {padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-raised,#17202a);display:flex;flex-direction:column;gap:7px;min-width:0;}
.staff-stat strong {font-size:32px;color:#a4e98f;line-height:1.1;}
.staff-actions {display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;}
.staff-muted,.staff-stat small,.staff-list small {color:var(--text-secondary);font-size:12px;}
.staff-list {margin:10px 0;padding:0;list-style:none;}
.staff-list li {display:flex;flex-direction:column;gap:4px;padding:10px 0;border-bottom:1px solid var(--border);}
.staff-list a {color:#a4e98f;}
.staff-section {margin:16px 0;padding:20px;border:1px solid var(--border);border-radius:10px;}
.staff-section h3,.staff-overview h3 {font-weight:650;font-size:15px;}
.staff-section summary {cursor:pointer;color:var(--text-secondary);padding:7px 0;}
.staff-section pre {white-space:pre-wrap;overflow-wrap:anywhere;}
.staff-journey {counter-reset:steps;display:grid;gap:12px;margin:16px 0;list-style:none;padding:0;}
.staff-journey>li {border-left:3px solid #94cd73;padding:8px 16px;background:#111a23;}
.staff-dirty {background:#392e16;color:#f3d78a;padding:9px 14px;border-radius:6px;margin:10px 0;}
.staff-picker {margin:8px 0;}.staff-picker input {width:100%;}.staff-picker button {display:block;text-align:left;width:100%;margin:4px 0;}
.staff-catalog {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:12px;padding:16px;}
.staff-confirm {position:fixed;inset:0;margin:auto;width:min(460px,calc(100% - 32px));background:#18212b;color:#eef2f7;box-shadow:0 24px 80px #0009;}
.staff-confirm::backdrop {background:#000a;}
@media(max-width:700px){.staff-grid--two{grid-template-columns:1fr}.staff-overview,.staff-section{padding:14px}.staff-stat strong{font-size:27px}}

/* HELLA expressive components shared across all staff modules. */
body.hella-expressive {
  --accent: #ff354d; --accent-hover: #ff5367; --background:#101216;
  --surface:#1a1e25; --surface-secondary:#242a33; --border:#353b47;
  --border-strong:#4b5361; --text-primary:#f5f6f8; --text-secondary:#bac2cf; --text-muted:#a0a9b8;
  background:radial-gradient(ellipse at 90% 0%,#57212a30,transparent 38%),#101216;
  font-size:15px;
}
.hella-expressive .app-content {padding:30px 34px 48px;max-width:1760px;margin:auto;}
.hella-expressive .hella-header {background:#14171dee;border-bottom:1px solid #593039;box-shadow:0 4px 26px #0004;}
.hella-expressive .hella-brand__mark {background:linear-gradient(145deg,#fa2544,#84162b);border-color:#ff7586;box-shadow:0 0 24px #f52d4b30;color:#fff;}
.hella-expressive .hella-brand__mark span {color:#fff;}
.hella-expressive .hella-nav__trigger {font-size:13px;min-height:44px;}
.hella-expressive .hella-nav__trigger.is-active,.hella-expressive .hella-dropdown.is-active>summary {background:linear-gradient(135deg,#651c2c,#391a24);color:#fff;border-color:#e64560;box-shadow:inset 0 1px #ff859833,0 0 18px #ef304223;}
.hella-expressive .hella-nav__trigger.is-active svg,.hella-expressive .hella-dropdown.is-active>summary svg {color:#ff657b;}
.hella-expressive .topbar {margin-bottom:24px;}
.hella-expressive .topbar h1 {font-size:30px;font-weight:750;letter-spacing:-.035em;}
.hella-expressive .topbar__eyebrow {font-size:11px;letter-spacing:.14em;color:#aeb6c5;}
.hella-expressive .hella-environment {border-color:#63323b;background:#351b2370;color:#ffbac4;font-size:11px;}
.hella-expressive .btn {font-size:13px;font-weight:650;min-height:42px;padding:10px 15px;border-color:#444c5a;background:#292f39;transition:background 140ms,border-color 140ms,transform 140ms,box-shadow 140ms;}
.hella-expressive .btn:hover {background:#353d49;border-color:#7e5260;transform:translateY(-1px);}
.hella-expressive .btn.btn--primary {background:linear-gradient(135deg,#fa304c,#d61937);border:1px solid #ff657c;color:#fff;box-shadow:0 5px 20px #f12c4430,inset 0 1px #ffafbb45;}
.hella-expressive .btn.btn--primary:hover {background:linear-gradient(135deg,#ff4861,#ef2545);box-shadow:0 6px 25px #ff29474a;}
.hella-expressive .btn.btn--quiet {background:#202630;}
.hella-expressive .section-kicker,.hella-kicker {display:flex;align-items:center;gap:8px;font-size:11px;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:#ff7187;}
.hella-kicker::before {content:'';width:20px;height:3px;background:#ff354d;box-shadow:0 0 10px #ff354d80;}
.hella-pictogram {width:22px;height:22px;flex-shrink:0;}
.hella-hero {position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px 32px;border:1px solid #71303f;border-left:3px solid #ff354d;border-radius:14px;background:linear-gradient(110deg,#301d27 0%,#221e28 48%,#1c222c 100%);overflow:hidden;box-shadow:0 8px 28px #0003,inset 0 1px #ff69871c;}
.hella-hero::after {content:'';position:absolute;inset:0 0 0 40%;z-index:-1;background:linear-gradient(90deg,transparent,#ef2e4820),repeating-linear-gradient(125deg,transparent 0 32px,#ffffff03 32px 33px);mask-image:linear-gradient(90deg,transparent,#000);}
.hella-hero h2 {font-size:clamp(25px,2.6vw,38px);font-weight:780;line-height:1.15;letter-spacing:-.04em;margin:12px 0 10px;max-width:680px;}
.hella-hero p {font-size:14px;line-height:1.6;color:#c3c8d4;max-width:610px;}
.hella-hero__emblem {display:grid;place-items:center;width:116px;height:116px;border-radius:25px;border:1px solid #ae405660;background:linear-gradient(145deg,#ff38591b,#371c2a40);color:#ff5b73;transform:rotate(-8deg);box-shadow:0 0 45px #ff354d12;flex-shrink:0;}
.hella-hero__emblem svg {width:66px;height:66px;transform:rotate(8deg);stroke-width:1.15;}
.hella-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0;}
.hella-metric {display:flex;flex-direction:column;position:relative;padding:22px 24px;border:1px solid #3a414e;border-radius:12px;background:linear-gradient(135deg,#282e39,#1c2129);overflow:hidden;transition:border-color 150ms,transform 150ms,box-shadow 150ms;min-width:0;}
a.hella-metric:hover {transform:translateY(-3px);border-color:#d4425c;box-shadow:0 8px 28px #0005,0 0 16px #ef304216;}
.hella-metric::before {content:'';position:absolute;left:0;top:24px;width:3px;height:33px;background:#ff354d;box-shadow:0 0 12px #ff354d80;}
.hella-metric__top {display:flex;align-items:center;justify-content:space-between;gap:14px;color:#d4d8e1;font-size:13px;font-weight:600;}
.hella-icon-box {display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#5823326b;border:1px solid #8733466b;color:#ff5b76;}
.hella-metric__value {font-size:42px;letter-spacing:-.045em;line-height:1.2;font-weight:760;color:#fff;margin:9px 0 7px;}
.hella-metric--text .hella-metric__value {font-size:24px;margin:17px 0 13px;}
.hella-metric small {font-size:12px;line-height:1.5;color:#aeb8c8;padding-right:18px;}
.hella-metric__arrow {position:absolute;right:22px;bottom:21px;color:#ff6079;}
.hella-metric__arrow svg {width:17px;height:17px;}
.hella-expressive .staff-overview {padding:0;border:0;}
.hella-expressive .dashboard-health-card {background:transparent;border:0;padding:0;}
.hella-expressive .staff-actions {gap:10px;margin:20px 0 24px;}
.hella-expressive .staff-actions .btn {display:flex;align-items:center;gap:9px;}
.hella-panels {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;margin:22px 0;}
.hella-section {border:1px solid #39414e;border-radius:12px;background:linear-gradient(145deg,#202630,#191e26);padding:23px;min-width:0;}
.hella-section__heading {display:flex;align-items:center;gap:10px;margin-bottom:15px;}
.hella-section__heading>.hella-pictogram {color:#ff617b;}
.hella-section__heading h3,.hella-section__heading h2 {font-size:18px;letter-spacing:-.02em;font-weight:700;}
.hella-section--warning {border-color:#80623570;background:linear-gradient(135deg,#312b21,#20242c 70%);}
.hella-section--warning .hella-section__heading>.hella-pictogram {color:#ffc16d;}
.hella-expressive .staff-list {margin:0;}
.hella-expressive .staff-list li {position:relative;padding:13px 0 13px 17px;border-color:#39414b;gap:5px;}
.hella-expressive .staff-list li::before {content:'';position:absolute;left:0;top:22px;width:5px;height:5px;border-radius:50%;background:#fa425e;}
.hella-expressive .staff-list li:last-child {border-bottom:0;}
.hella-expressive .staff-list a {color:#f0f3f8;font-weight:650;font-size:14px;}
.hella-expressive .staff-list a:hover {color:#ff7d90;}
.hella-expressive .staff-list span {font-size:13px;color:#bac5d2;}
.hella-expressive .staff-list small,.hella-expressive .staff-muted {color:#a7b2c2;font-size:12px;}
.hella-expressive .staff-list details {font-size:12px;color:#ffc16d;}
.hella-expressive .health-strip {padding:19px 22px;border:1px solid #373e4a;border-radius:12px;background:#1c2129;gap:16px;}
.hella-expressive .health-strip__heading {font-size:13px;}
.hella-expressive .health-strip .btn {font-size:11px;min-height:30px;padding:5px 10px;}
.hella-expressive .dashboard-columns {margin-top:24px;}
.hella-expressive .ui-card {background:#1b2028;border-color:#363e4b;border-radius:12px;}
.hella-expressive .ui-card.dashboard-health-card {background:transparent;border:0;}
.hella-expressive .section-heading {font-size:20px;}
.hella-expressive .data-table th {font-size:11px;letter-spacing:.07em;color:#b7c0ce;padding:14px 17px;background:#252c37;}
.hella-expressive .data-table td {font-size:13px;padding:15px 17px;border-color:#323a47;}
.hella-expressive .data-table tr:hover td {background:#2b2f3a;}
.hella-expressive input:not([type=checkbox]),.hella-expressive select {background:#141921;border-color:#434c5c;color:#edf1f7;min-height:43px;font-size:13px;}
.hella-expressive input:focus,.hella-expressive select:focus {border-color:#f14c69;box-shadow:0 0 0 3px #ff354d18;}
.hella-vehicle-page {display:grid;gap:22px;}
.hella-vehicle-page .hella-metrics {margin:0;}
.hella-vehicle-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}
.hella-vehicle-actions .btn {display:flex;align-items:center;gap:9px;}
.hella-notice {display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border:1px solid #b584394f;border-left:3px solid #eab05b;border-radius:8px;background:#3b2e1952;color:#efcc96;font-size:13px;line-height:1.6;}
.hella-notice strong {color:#ffe0ad;}
.hella-chip {display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:5px 8px;font-size:11px;font-weight:650;border:1px solid #586174;color:#c8d0dd;background:#303744;white-space:nowrap;}
.hella-chip--success {border-color:#377c6159;background:#1c46374a;color:#7ee5b8;}
.hella-chip--warning {border-color:#b8843c70;background:#59412550;color:#ffcd84;}
.hella-chip--error {border-color:#c04a6070;background:#6e263850;color:#ffa4b6;}
.hella-chip::before {content:'';width:5px;height:5px;background:currentColor;border-radius:50%;}
.hella-vehicle-filters {display:flex;gap:10px;flex-wrap:wrap;align-items:end;}
.hella-vehicle-filters label {display:grid;gap:6px;flex:1 1 140px;font-size:12px;color:#b6c0d0;}
.hella-vehicle-filters label:first-child {flex:2 1 210px;}
.hella-vehicle-filters .hella-limit {flex:0 1 90px;}
.hella-table-panel {border:1px solid #39414e;border-radius:12px;background:#1b2029;overflow:hidden;}
.hella-table-panel>.hella-section__heading {padding:20px 22px;margin:0;border-bottom:1px solid #353d49;}
.hella-table-panel .hella-table-scroll {margin:0;}
.hella-vehicle-identity {display:flex;align-items:center;gap:12px;min-width:170px;}
.hella-vehicle-identity .hella-icon-box {width:46px;height:46px;background:linear-gradient(135deg,#332732,#222d3d);flex-shrink:0;}
.hella-vehicle-identity strong {display:block;font-size:14px;color:#fff;}
.hella-vehicle-identity small {display:block;color:#aeb8c8;margin-top:4px;font-size:11px;}
.hella-expressive details.hella-diagnostics {background:#191e26;border:1px solid #3a424f;border-radius:10px;padding:0;}
.hella-diagnostics>summary {display:flex;align-items:center;gap:12px;padding:18px 22px;list-style:none;font-weight:650;font-size:14px;}
.hella-diagnostics>summary .hella-pictogram {color:#ff6a80;}
.hella-diagnostics>summary::after {content:'+';margin-left:auto;font-size:22px;color:#ff6a80;font-weight:400;}
.hella-diagnostics[open]>summary::after {content:'−';}
.hella-diagnostics__body {border-top:1px solid #343c49;padding:22px;font-size:13px;}
.hella-diagnostic-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;}
.hella-diagnostic-grid dt {color:#aeb7c6;font-size:11px;text-transform:uppercase;letter-spacing:.07em;}
.hella-diagnostic-grid dd {margin-top:7px;color:#eff2f7;overflow-wrap:anywhere;}
.hella-empty {display:flex;flex-direction:column;align-items:center;text-align:center;padding:42px 20px;gap:12px;background:radial-gradient(ellipse at 50% 0,#74304020,transparent 65%);}
.hella-empty>.hella-icon-box {width:64px;height:64px;border-radius:16px;}.hella-empty svg {width:34px;height:34px;}
.hella-empty h3 {font-size:20px;font-weight:650;color:#f1f4f8;}.hella-empty p {font-size:14px;max-width:450px;color:#b3becc;line-height:1.65;}
@media(min-width:1500px){.hella-expressive .app-content{padding-left:48px;padding-right:48px}}
@media(max-width:900px){.hella-panels{grid-template-columns:1fr}.hella-hero{padding:24px}.hella-hero__emblem{width:85px;height:85px}.hella-metric{padding:18px}.hella-metric__value{font-size:36px}}
@media(max-width:650px){.hella-expressive .app-content{padding:22px 14px}.hella-expressive .topbar h1{font-size:27px}.hella-expressive .topbar{gap:8px;align-items:flex-start}.hella-expressive .hella-environment{max-width:100px;text-align:center}.hella-hero{padding:24px 20px}.hella-hero h2{font-size:29px}.hella-hero__emblem{display:none}.hella-metrics{grid-template-columns:1fr;gap:12px;margin:16px 0}.hella-metric{padding:16px 20px}.hella-metric__value{font-size:37px;margin:0 0 4px}.hella-metric__top{font-size:13px}.hella-icon-box{width:35px;height:35px}.hella-section{padding:18px}.hella-expressive .staff-actions .btn{flex:1 1 44%;justify-content:center;font-size:12px;padding:10px}.hella-expressive .staff-actions .hella-pictogram{width:18px}.hella-vehicle-actions{flex-direction:column}.hella-vehicle-actions .btn{justify-content:center;width:100%}.hella-expressive .health-strip{padding:16px}.hella-diagnostic-grid{grid-template-columns:1fr}.hella-vehicle-filters label{flex-basis:42%}.hella-vehicle-filters label:first-child{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.hella-expressive *{transition:none!important;scroll-behavior:auto!important}.hella-expressive a:hover,.hella-expressive .btn:hover{transform:none!important}}

/* Global staff presentation: compact chrome, readable content, controlled red light. */
.hella-expressive .hella-header {flex-wrap:wrap;gap:10px 22px;padding:10px 24px 0}
.hella-expressive .hella-nav {justify-content:space-between;gap:6px}
.hella-expressive .hella-nav__trigger {justify-content:center;flex:1;background:transparent;transition:background 150ms,color 150ms,border-color 150ms}
.hella-expressive .hella-nav__trigger[aria-expanded=true],.hella-expressive .hella-nav__trigger.is-active {background:linear-gradient(135deg,#661c2c,#301b25);border-color:#f34460;color:#fff;box-shadow:0 0 18px #fa304322}
.hella-subnav {order:4;flex:0 0 100%;min-width:0}
.hella-subnav__panel {display:flex;flex-wrap:wrap;gap:5px;padding:10px 0 12px;border-top:1px solid #43303b;animation:hella-fade 170ms ease-out}
.hella-subnav__link {padding:7px 12px;border:1px solid transparent;border-radius:6px;color:#c4cad5;font-size:13px;transition:background 140ms,color 140ms}
.hella-subnav__link:hover {background:#2b2632;color:#fff}
.hella-subnav__link.is-active {background:#43212d;border-color:#923449;color:#ffb9c5;box-shadow:inset 0 -2px #ff3555}
.hella-expressive .app-content {max-width:none;padding:20px 24px 36px;width:100%}
.hella-expressive .topbar {margin-bottom:16px}
.hella-expressive .topbar h1 {font-size:28px}
.hella-expressive .btn {min-height:36px;padding:7px 12px}
.hella-expressive .module-page>form,.hella-expressive .module-page>.workflow-editor {max-width:none}
.hella-expressive .ui-card,.hella-expressive .explorer-sidebar,.hella-expressive .workflow-panel {background:linear-gradient(145deg,#222833,#191d25);border-color:#3c424f}
.hella-expressive :is(.ui-card__header,.explorer-page__header) {padding:16px 20px;border-bottom-color:#42313b}
.hella-expressive :is(.ui-card__body,.workflow-panel) {padding:18px 20px}
.hella-expressive :is(.section-heading,.explorer-page__header h2,.ui-card__header h2) {color:#f3f5fa;font-weight:700}
.hella-expressive :is(.explorer-nav__item.is-active,.workflow-tab.is-active) {border-color:#d93655;background:#492330;color:#ffbcc8;box-shadow:inset 3px 0 #ff3555}
.hella-expressive .explorer-layout {gap:16px}
.hella-expressive .explorer-sidebar {border-top:2px solid #b93650}
.hella-expressive .data-table td {padding:12px 16px}
.hella-expressive .data-table th {padding:11px 16px}
.hella-expressive :is(input:not([type=checkbox]):not([type=radio]),select) {min-height:36px}
.hella-expressive .hella-hero {padding:20px 24px}
.hella-expressive .hella-hero h2 {font-size:30px;margin:8px 0}
.hella-expressive .hella-hero__emblem {width:85px;height:85px}
.hella-expressive .hella-metrics {gap:14px;margin:16px 0}
.hella-expressive .hella-metric {padding:16px 20px}
.hella-expressive .hella-metric__value {font-size:34px}
.hella-expressive .hella-metric--text .hella-metric__value {font-size:20px}
.hella-vehicle-page {gap:12px}
.hella-vehicle-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px}
.hella-vehicle-toolbar .hella-kicker::before {display:none}
.hella-vehicle-actions {margin:0;gap:8px}
.hella-vehicle-actions .hella-pictogram {width:17px;height:17px}
.hella-vehicle-page .hella-metrics {margin:0;gap:10px}
.hella-vehicle-page .hella-metric {display:grid;grid-template-columns:1fr auto;align-items:center;padding:10px 16px;gap:3px 12px}
.hella-vehicle-page .hella-metric__top {font-size:12px}
.hella-vehicle-page .hella-metric__top .hella-icon-box {display:none}
.hella-vehicle-page .hella-metric__value {font-size:27px;margin:0;grid-column:2;grid-row:1 / 3}
.hella-vehicle-page .hella-metric--text .hella-metric__value {font-size:16px;grid-row:1;max-width:180px}
.hella-vehicle-page .hella-metric small {font-size:11px;grid-column:1;padding:0}
.hella-vehicle-page .hella-metric--text small {grid-column:1 / -1}
.hella-vehicle-page .hella-metric::before {top:14px;height:25px}
.hella-vehicle-page .hella-notice {padding:8px 12px;font-size:12px;align-items:center}
.hella-notice a {text-decoration:underline;text-underline-offset:3px;margin-left:6px}
.hella-vehicle-page .hella-filter-panel {padding:12px 16px}
.hella-vehicle-page .hella-vehicle-filters {gap:8px}
.hella-vehicle-page .hella-vehicle-filters label {flex-basis:125px;gap:4px;font-size:11px}
.hella-vehicle-page .hella-vehicle-filters label:first-child {flex-basis:185px}
.hella-vehicle-page .hella-vehicle-filters .hella-limit {flex:0 1 76px}
.hella-table-panel>.hella-section__heading {padding:12px 16px}
.hella-diagnostics>summary {padding:12px 16px}
.hella-expressive .module-page {animation:hella-fade 190ms ease-out}
@keyframes hella-fade {from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:1250px){.hella-expressive .hella-nav{order:3;flex-basis:100%}.hella-expressive .hella-header{gap:8px}.hella-subnav__panel{padding:8px 0}}
@media(max-width:760px){.hella-expressive .app-content{padding:16px 12px 28px}.hella-expressive .hella-header{padding:10px 12px 0}.hella-expressive .hella-nav.is-open{display:grid;grid-template-columns:1fr 1fr}.hella-expressive .hella-nav__trigger{white-space:normal;font-size:12px}.hella-subnav__panel{flex-wrap:nowrap;overflow-x:auto}.hella-subnav__link{white-space:nowrap}.hella-vehicle-page .hella-metrics{grid-template-columns:1fr 1fr}.hella-vehicle-page .hella-metric:last-child{grid-column:1/-1}.hella-vehicle-toolbar{flex-wrap:wrap}.hella-vehicle-actions{flex-direction:row}.hella-vehicle-actions .btn{width:auto}.hella-vehicle-page .hella-vehicle-filters label{flex-basis:42%}.hella-vehicle-page .hella-vehicle-filters label:first-child{flex-basis:100%}.hella-vehicle-page .hella-notice{align-items:flex-start}.hella-expressive .topbar h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.hella-expressive *{animation:none!important;transition:none!important}}
.hella-expressive .explorer-page {gap:12px}
.hella-expressive .explorer-page__header {padding:8px 0 10px}
.hella-expressive .explorer-page__header p {margin-top:4px;font-size:13px}
.hella-expressive .status-summary {gap:7px;margin:0}
.hella-expressive .explorer-table__meta {font-size:11px;color:#aab5c6;letter-spacing:normal}
.hella-expressive .explorer-table__name {font-size:14px;color:#f2e5ed}
.hella-expressive .staff-catalog article {border-color:#404654;background:linear-gradient(140deg,#292a36,#1d232d)}
.hella-expressive .staff-catalog article:hover {border-color:#dc3c5a;box-shadow:0 0 20px #ef304215}
.hella-expressive .staff-journey>li {border-left-color:#f13c59;background:linear-gradient(100deg,#36202c,#1b232e)}
.hella-expressive .staff-list a {color:#ffc0cb}
.hella-expressive .staff-stat strong {color:#fff}
