.secret-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.secret-control input {
  min-width: 0;
}

.secret-control button {
  font-size: 11px;
  padding: 8px;
}

.dock {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.dock button {
  position: relative;
  min-width: 132px;
  flex: 1 0 132px;
  scroll-snap-align: start;
}

.dock i {
  position: absolute;
  top: 3px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  display: none;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font: 700 10px/1 system-ui;
}

.dock i.visible { display: grid; }
.dock i.running { display: grid; background: transparent; border: 2px solid #6d897a; border-top-color: var(--accent); animation: spin .8s linear infinite; }
.dock i.done { display: grid; background: #3f713d; }
.dock i.warning { display: grid; background: #816820; }
.dock i.failed { display: grid; background: #8e3832; }
.dock i.secondary-badge { right: 29px; }
.expert-entry { border-left: 1px solid var(--line); margin: 10px 0 10px 5px; padding-left: 10px; min-width: 0; }
.expert-entry summary { overflow-wrap: anywhere; cursor: pointer; }
.expert-entry summary small { display: block; color: var(--muted); font-size: 10px; }
.expert-entry .history-actions { margin: 7px 0; flex-wrap: wrap; }
.expert-entry .history-actions button { font-size: 11px; padding: 6px 9px; }
@keyframes spin { to { transform: rotate(360deg); } }

.node-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 12px;
}

.node-selector button { min-width: 150px; flex: 1 0 150px; text-align: left; display: flex; flex-direction: column; align-items: stretch; gap: 5px; white-space: normal; }
.node-selector button strong,.node-selector button small { display: block; width: 100%; line-height: 1.3; }
.node-selector button.active { background: var(--accent); color: #13200e; border-color: var(--accent); }
.nav-shell, .node-nav-shell { display: grid; grid-template-columns: 25px minmax(0,1fr) 25px; gap: 3px; align-items: center; min-width: 0; }
.nav-shell { position: sticky; top: 78px; z-index: 8; background: #0a0f0ef5; }
.nav-shell .dock { position: static; min-width: 0; margin: 8px 0; }
.scroll-arrow { padding: 8px 0; border: 0; font-size: 28px; color: var(--accent); background: transparent; }
.scroll-arrow:disabled { opacity: .2; }
.node-nav-shell .node-selector { min-width: 0; margin: 0; }
.node-nav-shell { margin-bottom: 12px; }
.node-selector strong,.node-selector small { overflow-wrap: anywhere; }
@media(max-width:620px) { .nav-shell { top: 68px; } }
.node-grid.single { display: block; }

.access-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.access-summary div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.access-summary strong { display: block; font-size: 22px; }
.access-summary span { color: var(--muted); font-size: 11px; }
.device-list { display: grid; gap: 9px; }
.device-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #0d1713; }
.device-head { display: flex; justify-content: space-between; gap: 8px; }
.device-head h3 { margin: 0 0 4px; font-size: 14px; }
.device-head p { margin: 0; color: var(--muted); font-size: 11px; }
.scope-list { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.scope-list span { padding: 5px 8px; border-radius: 99px; background: #203229; font-size: 10px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 13px 0; }
fieldset label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
fieldset input { width: auto; margin: 0; }

.job-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-progress small { display: block; color: var(--muted); margin-top: 4px; }
.job-progress>span { font-size: 23px; font-weight: 800; }
.progress-track { height: 8px; border-radius: 99px; background: #26352e; overflow: hidden; margin: 16px 0; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--accent2),var(--accent)); transition: width .35s; }
.job-log { max-height: 250px; overflow: auto; padding: 11px; border-radius: 11px; background: #08100d; color: #b8c6bf; font: 11px/1.55 ui-monospace,monospace; }
.job-log div { border-bottom: 1px solid #17241e; padding: 4px 0; }
.provider-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 7px; }
.provider-list label { padding: 9px; background: #101b16; border-radius: 9px; }
.provider-editor-row { display: grid; grid-template-columns: 120px 1fr 80px; gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--line); }

@media(max-width:620px) {
  .dock button { min-width: 108px; flex-basis: 108px; }
  .access-summary { grid-template-columns: 1fr 1fr; }
  .provider-editor-row { grid-template-columns: 1fr; }
}
