/* Frontpad cabinet: only what the kit (ui/components.css) does not provide. Spacing from the --space-* scale, colours from tokens. */

/* ---------- Overview: bars ---------- */
.legend-item[data-kind="sent"]::before, .legend-item[data-kind="failed"]::before { width: 10px; height: 10px; border-radius: 3px; }
.legend-item[data-kind="sent"] { --legend: var(--color-accent); }
.legend-item[data-kind="failed"] { --legend: var(--color-error-mark); }

/* ---------- Settings ---------- */
.settings-aside { order: 0; }
.secret-control { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-xs); min-width: min(100%, 26rem); }
.secret-control input { flex: 1 1 14rem; }
.secret-saved { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink-2); }
.secret-saved .icon { color: var(--color-muted); }
.secret-saved[hidden], .secret-control [hidden] { display: none; }
.group-title { margin: var(--space-lg) 0 0; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.panel-head + .setting + .group-title, .setting + .group-title { margin-top: var(--space-md); }
.map-list + .group-title { margin-top: var(--space-md); }
.group-title + .map-list { margin-top: var(--space-sm); }
.group-title + .setting { padding-top: var(--space-sm); border-top: 0; }
.suggest { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); padding-top: var(--space-sm); }
.suggest-label { color: var(--color-muted); font-size: var(--text-sm); }

.limit { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.limit-pips { display: inline-flex; gap: var(--space-3xs); }
.limit-pips i { width: 14px; height: 6px; border-radius: var(--radius-pill); background: var(--color-rule-2); transition: background-color var(--dur-micro) var(--ease-out); }
.limit-pips i.is-on { background: var(--color-accent); }
.limit.is-over { color: var(--color-error); }
.limit.is-over .limit-pips i.is-on { background: var(--color-error-mark); }

.map-list { display: grid; }
.map-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 96px; align-items: center; gap: var(--space-sm); padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); cursor: text; }
.map-row:first-child { border-top: 0; padding-top: 0; }
.map-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--color-neutral-mark)); }
.map-dot--none { background: none; box-shadow: inset 0 0 0 2px var(--color-rule-2); }
.map-name { display: grid; min-width: 0; }
.map-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.map-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-muted); font-size: var(--text-sm); }
.map-row:not(.is-mapped) .map-title { color: var(--color-ink-2); font-weight: 400; }
.map-input { text-align: center; font-family: var(--font-outlier); }
.map-row.is-mapped .map-input { border-color: var(--color-accent); background: var(--color-accent-wash); }


.steps { display: grid; gap: var(--space-sm); list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: var(--space-sm); }
.step-mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: var(--rule-hair) solid var(--color-rule-2); color: transparent; counter-increment: step; }
.step-mark .icon { width: 14px; height: 14px; }
.step.is-done .step-mark { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.step-body { display: grid; gap: var(--space-3xs); min-width: 0; }
.step-body a { font-weight: 500; }
.step-body a:hover { color: var(--color-accent-2); }
.step-sub { color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 40rem) { .map-row { grid-template-columns: 10px minmax(0, 1fr) 84px; } .secret-control { justify-content: flex-start; } #log-filter > button { padding: 0 var(--space-xs); } }

.frontpad-public .app-main { max-width: 76rem; margin: 0 auto; }
/* ---------- Guide page without the cabinet header ---------- */
.frontpad-public .app-main { max-width: 76rem; margin: 0 auto; }
