/* Nallium Axio — administration : même papier et même encre que le front des consommateurs ; le rail passe en
 * ardoise et la santé des services se lit d'un coup d'œil (pastilles), l'éditeur travaille en deux volets. */
.rail {
  background: #17283f;
}
.brand small {
  color: #9fb3c9;
}
main {
  max-width: 1440px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule);
  vertical-align: 1px;
}
.dot.green {
  background: var(--signal);
}
.dot.orange {
  background: #d48a1c;
}
.dot.red,
.dot.offline {
  background: var(--red);
}
.dot.offline {
  box-shadow: 0 0 0 3px var(--red-soft);
}
.ko-t {
  color: var(--red);
}
.inline {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
  margin: 0;
}
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}
.svc {
  display: grid;
  gap: 4px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
}
.svc.green {
  border-left-color: var(--signal);
}
.svc.orange {
  border-left-color: #d48a1c;
}
.svc.red,
.svc.offline {
  border-left-color: var(--red);
}
.svc b {
  font: 600 16px var(--display);
  font-stretch: 112%;
}
.svc span {
  font-size: 13px;
  color: var(--steel);
}
.svc .dot {
  position: absolute;
  opacity: 0;
}
.svc.add {
  border-style: dashed;
  border-left-width: 1px;
  color: var(--steel);
  align-content: center;
  justify-items: center;
  font-weight: 600;
}
.kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}
.kpi {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 13px;
  color: var(--steel);
  display: grid;
  min-width: 120px;
}
.kpi b {
  font: 800 24px/1.1 var(--display);
  font-stretch: 112%;
  color: var(--ink);
}
.kpi.ko {
  border-color: var(--red);
}
.kpi.ko b {
  color: var(--red);
}
ul.alerts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
ul.alerts li {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
}
ul.alerts li a {
  margin-left: 8px;
  color: var(--signal);
  font-weight: 600;
}
td.actions {
  white-space: nowrap;
  text-align: right;
}
.route {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 6px;
}
.sparks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.spark {
  margin: 0;
}
.spark svg {
  width: 240px;
  height: 40px;
  display: block;
}
.spark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.spark figcaption {
  font-size: 12px;
  color: var(--steel);
}
.bulkbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.bulkbar input {
  flex: 1;
  min-width: 220px;
}
.sheet.narrow {
  max-width: 720px;
}
.notice.ok {
  border-left-color: var(--signal);
  background: var(--signal-soft);
}
.notice ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* Éditeur */
details.meta {
  margin-bottom: 16px;
}
details.meta summary {
  cursor: pointer;
}
.metagrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 10px;
}
.metagrid .wide,
.cardgrid .wide {
  grid-column: 1 / -1;
}
.unit {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0 14px 6px 0;
}
.unit input {
  width: 110px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pane {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  min-width: 0;
}
.pane.preview {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: var(--paper);
}
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--ink);
  margin: -4px -4px 14px;
  flex-wrap: wrap;
}
.tabs button {
  font: 600 13px var(--body);
  background: none;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--steel);
  border-radius: 6px 6px 0 0;
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}
.card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.cardhead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cardtools {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.cardgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
}
.cardgrid .ax-check {
  align-self: end;
}
.ax-field input,
.ax-field select,
.ax-field textarea {
  width: 100%;
}
textarea.bad,
input.bad {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.varrow {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 8px;
  margin-bottom: 6px;
}
code.sha {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.lay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
}
.laytools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.laytools select {
  flex: 1;
}
ul.outline {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  max-height: 420px;
  overflow: auto;
}
.ol {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 6px 8px;
  font: 13px var(--body);
  cursor: pointer;
  color: var(--ink);
}
.ol:hover {
  background: var(--paper);
}
.ol.on {
  background: var(--ink);
  color: #fff;
}
.ol-t {
  font-weight: 600;
}
.ol-c {
  font-size: 11px;
  opacity: 0.7;
}
.props .cardgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pv-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.ax-node.is-selected {
  outline: 2px dashed var(--signal);
  outline-offset: 3px;
}
.preview .ax-node {
  cursor: pointer;
}
.pv-action {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.pv-action pre {
  margin: 6px 0 0;
  font-size: 12px;
  background: var(--paper);
  padding: 8px;
  border-radius: 6px;
  overflow: auto;
  max-height: 220px;
}
code.req {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
}
.pvform {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 4px 14px 12px;
}
.preview h3 {
  font: 600 14px var(--display);
  margin: 14px 0 6px;
}
ul.local {
  margin: 0 0 10px;
  padding: 8px 10px 8px 26px;
  background: var(--amber-soft);
  border-radius: 6px;
  font-size: 13px;
  color: var(--amber);
}
.ex {
  margin-top: 18px;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}
.ex-head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ex-head input {
  width: 120px;
}
.ex textarea {
  font-size: 12px;
}
.chips-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 12px 0 6px;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--sheet);
  overflow: hidden;
}
.chip button {
  font:
    12px ui-monospace,
    Menlo,
    monospace;
  background: none;
  border: none;
  padding: 3px 9px;
  cursor: pointer;
  color: var(--ink);
}
.chip button:hover {
  background: var(--signal-soft);
}
.chip.boolean {
  border-color: #9cc9b8;
}
.chip.number {
  border-color: #b7c4d6;
}
.chip.array {
  border-color: var(--ink);
}
.chip .rep {
  border-left: 1px solid var(--rule);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .workspace,
  .lay {
    grid-template-columns: 1fr;
  }
  .pane.preview {
    position: static;
    max-height: none;
  }
  .metagrid,
  .cardgrid {
    grid-template-columns: 1fr 1fr;
  }
}
.svc .tag {
  justify-self: start;
}
.laytools .btn {
  white-space: nowrap;
}

/* --- Éditeur v2 : tuiles d'actions, configuration d'une action, concepteur d'assistant ------------------------- */
.lbl {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 12px 0 4px;
}
.tag.src {
  background: #e8edf2;
}
.ro [data-bind],
.ro .btn.danger {
  pointer-events: none;
  opacity: 0.7;
}
.act-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.act-tile {
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: left;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.act-tile:hover {
  border-color: var(--ink);
}
.act-tile code {
  font-size: 11px;
  color: var(--steel);
}
.act-tile.add {
  border-style: dashed;
  cursor: default;
}
.act-tile.add select {
  width: 100%;
}
.cfg {
  border-top: 1px solid var(--rule);
  padding-top: 6px;
  margin-top: 12px;
}
.cfg h3 {
  font: 600 15px var(--display);
  font-stretch: 112%;
  margin: 8px 0 6px;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 6px;
}
.icon-pick {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
  color: var(--ink);
}
.icon-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.icon-pick:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.icon-pick:has(input:focus-visible),
.swatch:has(input:focus-visible),
.seg label:has(input:focus-visible) {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}
.swatches {
  display: flex;
  gap: 8px;
}
.swatch {
  margin: 0;
  cursor: pointer;
}
.swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.swatch span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 0 0 2px var(--sheet),
    0 0 0 3px var(--rule);
}
.swatch:has(input:checked) span {
  box-shadow:
    0 0 0 2px var(--sheet),
    0 0 0 4px var(--ink);
}
.seg {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.seg label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
}
.seg label:has(input:checked) span {
  background: var(--ink);
  color: #fff;
}
.designer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.wsteps {
  display: grid;
  gap: 10px;
}
.step {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafb;
}
.step.over {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: grab;
}
.step-head .btn {
  margin-left: auto;
}
.grip {
  color: var(--steel);
  letter-spacing: -2px;
  cursor: grab;
}
ul.fields {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 4px;
}
.fld {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: grab;
  font-size: 13px;
}
.fld.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.fld code {
  font-size: 11px;
  color: var(--steel);
}
.fld .req {
  font-size: 11px;
  color: var(--red);
}
.fld .cond {
  font-size: 11px;
  color: var(--amber);
}
.drop-end {
  font-size: 12px;
  color: var(--steel);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
}
.fprops {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  position: sticky;
  top: 8px;
}
.fprops h4,
.fprops h5 {
  margin: 0 0 6px;
  font: 600 14px var(--display);
}
.fprops h5 {
  margin-top: 12px;
  font-size: 13px;
}
.fprops .cardgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pvsteps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.pvwiz h4 {
  font: 600 14px var(--display);
  margin: 14px 0 6px;
}
.btn.file {
  display: inline-block;
}

@media (max-width: 1100px) {
  .designer {
    grid-template-columns: 1fr;
  }
}

.workspace:has(.designer) {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.step-head b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
