/* Debug console: the simulation panels (Population, Builds, Social, Classements, Économie, Donjons, Climat, Observer) in a 500 px window. The parts every panel shares are in debug-kit.css; here: the foldable
   cards, the data table tools, the two-column forms, the settings rows, the charts, and the old panel classes put back on the console's light theme. */
.debug-console .nd-eco, .debug-console .nd-groups, .debug-console .bd-mainview { max-height: none; height: auto; overflow: visible; gap: 8px; }
.debug-console .eco-host { flex: none; overflow: visible; min-width: 0; }
.debug-console .eco-view { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.debug-console .bd-socialhost, .debug-console .bd-social { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.debug-console .dc-lbl { font-size: 11px; font-weight: 700; color: var(--dc-mute); }
.debug-console .dc-toolbar .dc-chips { flex: 1 1 auto; }
.debug-console .dc-sub { font-size: 12px; color: var(--dc-mute); }
.debug-console .dc-sub b { color: var(--dc-text); font-size: 13px; }
.debug-console .dc-motd { margin: 0 0 6px; font-style: italic; color: var(--dc-mute); }
.debug-console .small, .debug-console .mute.small { font-size: 11px; line-height: 1.4; margin: 0; }
.debug-console .eco-empty { margin: 4px 0; }
.debug-console .bd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.debug-console .dc-chiphost:empty { display: none; }
.debug-console .dc-chips { margin: 0; }
.debug-console .dc-chip { cursor: pointer; line-height: 1.5; }
.debug-console .dc-chip:hover:not(.on) { border-color: var(--dc-accent); }
.debug-console .gf-btn.on { background: var(--dc-accent); border-color: var(--dc-accent); color: #fff; }

/* search fields and forms */
.debug-console input.dc-search { flex: none; width: 100%; min-width: 120px; box-sizing: border-box; }
.debug-console .dc-toolbar > input.dc-search { flex: 1 1 150px; width: auto; }
.debug-console .dc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.debug-console .dc-form[hidden] { display: none; }
.debug-console .dc-form .dc-field { margin: 0; min-width: 0; }
.debug-console .dc-form input, .debug-console .dc-form select, .debug-console .dc-toolbar .dc-field select, .debug-console .dc-field input[type=search], .debug-console .dc-field input[type=number], .debug-console .dc-field select { width: 100%; min-width: 0; }
.debug-console .dc-field-inline { color: var(--dc-text); white-space: nowrap; }
.debug-console .dc-toolbar .dc-field { margin: 0; flex-direction: row; align-items: center; gap: 6px; }
.debug-console .dc-toolbar .dc-field select { width: auto; }
.debug-console .dc-count { margin-left: auto; font-size: 10px; color: var(--dc-mute); white-space: nowrap; }

/* foldable cards */
.debug-console details.dc-fold { padding: 0; }
.debug-console details.dc-fold > summary { display: flex; align-items: center; gap: 6px; padding: 7px 10px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--dc-accent); user-select: none; }
.debug-console details.dc-fold > summary::-webkit-details-marker { display: none; }
.debug-console details.dc-fold > summary::before { content: '▸'; font-size: 11px; color: var(--dc-mute); transition: transform .12s; }
.debug-console details.dc-fold[open] > summary::before { transform: rotate(90deg); }
.debug-console details.dc-fold[open] > summary { border-bottom: 1px solid var(--dc-line); }
.debug-console details.dc-fold > summary:hover { background: var(--dc-soft); }
.debug-console .dc-ft { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; flex: 0 1 auto; }
.debug-console .dc-fh { margin-left: auto; font-size: 10px; font-weight: 400; color: var(--dc-mute); text-transform: none; }
.debug-console .dc-fbody { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px 10px; min-width: 0; }
.debug-console details.dc-log { font-size: 11px; color: var(--dc-mute); } .debug-console details.dc-log > summary { cursor: pointer; font-weight: 700; color: var(--dc-text); }

/* metrics */
.debug-console .dc-metrics { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.debug-console .dc-metric small { font-size: 10px; line-height: 1.25; color: var(--dc-mute); overflow-wrap: anywhere; }
.debug-console .dc-metric strong { font-size: 16px; }

/* table cells */
.debug-console .dc-dt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.debug-console .dc-dt > .dc-toolbar { margin: 0; }
.debug-console .eco-table th { padding: 3px 5px; }
.debug-console .eco-table td { padding: 3px 5px; vertical-align: top; overflow-wrap: anywhere; }
.debug-console .eco-table td.mute { text-align: center; }
.debug-console .dc-c2 b, .debug-console .dc-amt { font-weight: 600; }
.debug-console .dc-c2 b, .debug-console .dc-c2 small, .debug-console .dc-amt small { display: block; }
.debug-console .dc-c2 small, .debug-console .dc-amt small, .debug-console .eco-table small { font-size: 10px; font-weight: 400; color: var(--dc-mute); line-height: 1.3; }
.debug-console .dc-amt { white-space: nowrap; } .debug-console .dc-amt.neg, .debug-console .eco-table tr.neg .dc-amt { color: var(--dc-bad); } .debug-console .dc-amt.pos, .debug-console .eco-table tr.pos .dc-amt { color: var(--dc-good); }
.debug-console .eco-table .pos { color: var(--dc-good); } .debug-console .eco-table .neg { color: var(--dc-bad); }
.debug-console .dc-when { white-space: nowrap; font-size: 10.5px; color: var(--dc-mute); }
.debug-console .dc-share { display: flex; flex-direction: column; gap: 2px; min-width: 70px; } .debug-console .dc-share .dc-bar { height: 4px; }
.debug-console .eco-table tr.odd td { background: #fbefd9; }
.debug-console .eco-table tr.on td { background: var(--dc-soft); box-shadow: inset 2px 0 var(--dc-accent); }
.debug-console .eco-table tr.bd-click { cursor: pointer; }
.debug-console .eco-table .gf-btn { white-space: nowrap; }
.debug-console .eco-alert { margin: 0; padding: 5px 8px; border-radius: 4px; background: #f5d9d6; color: var(--dc-bad); font-weight: 700; font-size: 12px; }
.debug-console .eco-kv { font-size: 12px; }

/* the settings of Population */
.debug-console .dc-set { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 4px; border-left: 3px solid transparent; }
.debug-console .dc-set:nth-child(odd) { background: #faf8f1; }
.debug-console .dc-set > .dc-setl { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
.debug-console .dc-set > .dc-setl b { font-weight: 600; } .debug-console .dc-set > .dc-setl small { font-size: 10px; color: var(--dc-mute); line-height: 1.3; }
.debug-console .dc-set input[type=number] { width: 84px; flex: none; text-align: right; }
.debug-console .dc-set.on { border-left-color: var(--dc-warn); background: #fbefd9; } .debug-console .dc-set.on .dc-setl b { color: var(--dc-warn); } .debug-console .dc-set .dc-def { color: var(--dc-warn); }

/* charts */
.debug-console .eco-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.debug-console .eco-fig { margin: 0; gap: 3px; min-width: 0; }
.debug-console .eco-fig figcaption { font-size: 12px; font-weight: 700; color: var(--dc-text); } .debug-console .eco-fig figcaption small { font-weight: 400; color: var(--dc-mute); font-size: 10.5px; }
.debug-console .eco-chart { display: block; width: 100%; height: auto; background: var(--dc-card); border: 1px solid var(--dc-line); border-radius: 4px; }
.debug-console .eco-chart .ax-t { font-size: 10px; fill: var(--dc-mute); } .debug-console .eco-chart .ax-base { stroke: var(--dc-mute); stroke-width: 1; opacity: .5; } .debug-console .eco-chart .ax-grid { stroke: var(--dc-line); stroke-width: 1; }
.debug-console .eco-chart .ax-dot { stroke: var(--dc-card); stroke-width: 1.5; }
.debug-console .eco-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--dc-text); }
.debug-console .eco-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* Social: groups */
.debug-console .bg-zones { display: flex; flex-direction: column; gap: 8px; }
.debug-console .bg-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.debug-console .bg-group { padding: 5px 7px; border: 1px solid var(--dc-line); border-radius: 5px; background: #fff; box-shadow: none; display: flex; flex-direction: column; gap: 1px; }
.debug-console .bg-ghead { font-size: 10px; font-weight: 800; color: var(--dc-mute); text-transform: uppercase; letter-spacing: .03em; }
.debug-console .bg-mem { display: flex; align-items: baseline; gap: 5px; padding: 1px 3px; border-radius: 3px; font-size: 12px; cursor: pointer; }
.debug-console .bg-mem:hover, .debug-console .bg-mem.on { background: var(--dc-soft); } .debug-console .bg-mem.dead { opacity: .55; }
.debug-console .bg-mem em { font-style: normal; font-size: 10.5px; color: var(--dc-mute); } .debug-console .bg-lead { color: var(--dc-warn); } .debug-console .bg-hp { margin-left: auto; font-size: 10.5px; color: var(--dc-mute); }
.debug-console .bg-solos { display: flex; flex-wrap: wrap; gap: 3px; }
.debug-console .bg-solo { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--dc-line); background: #fff; color: var(--dc-text); cursor: pointer; }
.debug-console .bg-solo.off { opacity: .6; font-style: italic; } .debug-console .bg-solo.on, .debug-console .bg-solo:hover { background: var(--dc-soft); border-color: var(--dc-accent); }
.debug-console .bd-sub, .debug-console .bd-zone { font-size: 11px; color: var(--dc-mute); }
.debug-console .bg-pick:empty { display: none; }

/* Donjons: the cards of the live instances on the light theme */
.debug-console .dgd-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.debug-console .dgd-card { position: relative; padding: 6px 8px; border: 1px solid var(--dc-line); border-radius: 6px; background: #fff; color: var(--dc-text); font-size: 11px; }
.debug-console .dgd-card.bots { border-color: #8fb3cf; background: #f3f8fc; } .debug-console .dgd-card.fail { box-shadow: inset 3px 0 0 var(--dc-bad); }
.debug-console .dgd-head { padding-right: 0; } .debug-console .dgd-eye { position: static; min-height: 22px; }
.debug-console .dgd-bosses { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.debug-console .dgd-chip { background: var(--dc-card); border-color: var(--dc-line); } .debug-console .dgd-chip.bots { background: #dcebf7; } .debug-console .dgd-chip.real { background: #dcefe0; } .debug-console .dgd-chip.fail { background: #f5d9d6; }
.debug-console .dgd-meter { background: #e7e3d4; } .debug-console .dgd-thin, .debug-console .dgd-bar { background: #e7e3d4; }
.debug-console .dgd-mem { background: #fff; border-color: var(--dc-line); } .debug-console .dgd-mem.ok { background: #dcefe0; } .debug-console .dgd-mem.bar { background: #f5d9d6; }

/* Climat */
.debug-console .env-timebox { display: flex; flex-direction: column; gap: 2px; } .debug-console .env-debug .env-clock { font-size: 26px; letter-spacing: 1px; color: var(--dc-accent); }
.debug-console .env-hour { display: flex; align-items: center; gap: 8px; } .debug-console .env-debug input[type=range] { flex: 1; width: auto; min-width: 0; padding: 0; min-height: 0; border: 0; background: none; }
.debug-console .env-zone { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--dc-line); }
.debug-console .spec-dbg-who .eco-tablewrap { max-height: 280px; overflow-y: auto; }
@media (max-width: 460px) { .debug-console .dc-form { grid-template-columns: minmax(0, 1fr); } }
