/* Odysseus M · 작업 관측(manual-local.css) 디자인 시스템 계승 + 아르고스 3계층 오케스트라 관제 확장 */
:root {
  color-scheme: dark;
  --card: #0f1521;
  --card-2: #141c2b;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #34d399;
  --gold: #7dd3fc;
  --danger: #f87171;
  --muted: #8b9bb0;
  --mono: "JetBrains Mono", "Pretendard Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hidden {
  display: none !important;
}

main.app-shell {
  width: min(1480px, 98%);
  height: calc(100dvh - 1.2rem);
  margin: 0.6rem auto;
  padding: 1.1rem 1.4rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
}

body[data-view="logs"] main.app-shell,
body[data-view="infra"] main.app-shell {
  grid-template-rows: auto auto minmax(0, 1fr);
}

body[data-view="home"] .infra-only {
  display: none !important;
}

body[data-view="logs"] .home-only,
body[data-view="logs"] .infra-only {
  display: none !important;
}

body[data-view="infra"] .home-only,
body[data-view="infra"] .home-and-logs {
  display: none !important;
}

/* ==================== 헤더 ==================== */
.page-header,
.brand,
.toolbar,
.card-heading,
.dialog-heading,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  justify-content: flex-start;
}

.brand-img {
  border-radius: 10px;
  background: #f8fafc;
  border: 1.5px solid var(--gold);
  padding: 2px;
}

#tab-panel-dashboard h1,
#observation-dialog h1 {
  font-size: 22px;
  margin: 2px 0 0;
  letter-spacing: -0.02em;
}

#tab-panel-dashboard h2,
#observation-dialog h2 {
  font-size: 15.5px;
  margin: 0;
}

#tab-panel-dashboard h3,
#observation-dialog h3 {
  font-size: 14px;
  margin: 12px 0 8px;
  color: var(--accent);
}

#tab-panel-dashboard p,
#observation-dialog p {
  line-height: 1.45;
  color: var(--muted);
  margin: 3px 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-motto {
  font-size: 12px;
  margin: 0;
}

.view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#tab-panel-dashboard button:not(.run-card):not(.subtab-btn),
#observation-dialog button,
.view-button,
.filter-select {
  font: inherit;
  font-size: 12.5px;
  font-weight: 540;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 7px 12px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

#tab-panel-dashboard button:hover,
#observation-dialog button:hover,
.view-button:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: #ffffff;
}

#tab-panel-dashboard button:disabled,
#observation-dialog button:disabled {
  opacity: 0.45;
  cursor: default;
}

.view-button[aria-pressed="true"],
.btn-accent {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.16);
  color: #d1fae5;
  font-weight: 600;
}

.btn-primary {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(99, 102, 241, 0.2));
  color: #e0f2fe;
  font-weight: 600;
}

.btn-danger {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  font-weight: 600;
}

.chat-link-btn {
  border-color: rgba(96, 165, 250, 0.45);
  color: #bae6fd;
  font-weight: 600;
}

/* ==================== 연결 및 3계층 상태 바 ==================== */
.connection {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(20, 28, 43, 0.88), rgba(15, 21, 33, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 20px rgba(0, 0, 0, 0.22);
}

#tab-panel-dashboard {
  scrollbar-gutter: stable;
}

.conn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.connection strong {
  font-size: 13.5px;
  color: #e9eef5;
}

.connection p {
  font-size: 12px;
  margin-top: 4px;
}

.conn-pills {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
}

.conn-pills::-webkit-scrollbar {
  display: none;
}

.stat-pill,
#tab-panel-dashboard button.dash-quick-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: 11.5px;
  font-family: var(--mono);
  line-height: 1;
  padding: 0 11px;
  border-radius: 999px;
  background: #111820;
  border: 1px solid var(--line);
  color: #ccece2;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
}

#tab-panel-dashboard button.dash-quick-home-btn {
  font-family: inherit;
  font-weight: 600;
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.16);
  color: #bae6fd;
}

.stat-pill.warn {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
}

.stat-pill.ok {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

/* ==================== 관측 2열 그리드 ==================== */
.overview,
.infra-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  min-height: 0;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.92), rgba(13, 19, 30, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.card-heading {
  flex-shrink: 0;
}

.card-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.scroll-region {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.status-value {
  font-size: 18px;
  color: #ccece2;
  font-weight: 700;
  margin: 0 0 6px;
}

.request-id {
  font-family: var(--mono);
  font-size: 12px;
  color: #93c5fd;
  overflow-wrap: anywhere;
}

.facts {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.fact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  font-size: 12.5px;
}

.fact dt {
  color: #8fa9bc;
  font-weight: 600;
}

.fact dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #e2e8f0;
}

.result-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-family: var(--mono);
  font-size: 12.5px;
  margin: 0;
  padding: 12px;
  background: #10161d;
  border: 1px solid #2b3742;
  border-radius: 8px;
  color: #dbe7f3;
}

/* ==================== 작업 기록 리스트 (records) ==================== */
.records {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  min-width: 0;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
  background: var(--card);
}

.records .toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}

.records .toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#observation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px;
  overflow-x: hidden;
  max-height: 520px;
}

#tab-panel-dashboard button.run-card,
.run-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  white-space: normal;
  padding: 11px 14px;
  border-radius: 9px;
  background: #131b24;
  border: 1px solid #2e3b47;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#tab-panel-dashboard button.run-card:hover,
.run-card:hover {
  border-color: var(--accent);
  background: #17222e;
}

.run-card[aria-current="true"] {
  border-color: var(--accent);
  background: rgba(121, 216, 191, 0.08);
}

.run-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.run-card-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 550;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.run-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.run-card-bottom .row-progress-wrap {
  flex: 1 1 200px;
  max-width: 340px;
  min-width: 150px;
  margin-top: 0;
}

.run-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #aebdcb;
  min-width: 0;
}

.run-card-sep {
  color: #64748b;
}

.run-card-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
}

.badge-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 76px;
  text-align: center;
}

.badge-state.PLANNED,
.badge-state.RUNNING {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.badge-state.AUDITED_PASS,
.badge-state.COMPLETED,
.badge-state.COMPLETE {
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.badge-state.BLOCKED,
.badge-state.FAILED {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

/* ==================== 인프라 뷰 (6대 노드 · 8슬롯 · 스냅샷) ==================== */
.node-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.node-card {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(15, 22, 34, 0.85);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.node-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.node-card-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}

.infra-right-split {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slots-list,
.snapshots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-row,
.snap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(15, 22, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.075);
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.plan-chip-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(15, 23, 34, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.plan-chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.plan-chip-sub {
  font-size: 11.5px;
  color: #9fb3c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-mode-active {
  outline: 2px solid #60a5fa !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35) !important;
  font-weight: 700 !important;
}

.live-action-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(56, 217, 169, 0.14);
  border: 1px solid rgba(56, 217, 169, 0.55);
  color: #d3f9d8;
  font-size: 12.8px;
  line-height: 1.5;
}

/* ==================== 상세 다이얼로그 (Odysseus M 스타일) ==================== */
dialog {
  width: min(880px, 94vw);
  max-height: 88dvh;
  padding: 0;
  border: 1px solid #577084;
  border-radius: 12px;
  background: #141e28;
  color: inherit;
}

dialog::backdrop {
  background: rgba(5, 10, 16, 0.8);
}

.dialog-heading {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-scroll {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(88dvh - 68px);
}

.events {
  padding-left: 20px;
  line-height: 1.8;
  font-size: 13px;
  color: #c3d1dc;
}

.hint,
#observation-notice {
  font-size: 12px;
  color: #91a9ba;
}

.empty {
  padding: 18px 8px;
  color: #8fa4b4;
}

/* ==================== [신규] 세부 메뉴 탭 (Sub-Tabs) & 슬림 배너 ==================== */
.connection-slim {
  padding: 8px 14px;
  flex-shrink: 0;
}

.connection-slim .conn-top {
  gap: 8px;
}

.connection-slim #conn-headline {
  font-size: 13.5px;
}

#tab-panel-dashboard button.dash-quick-home-btn {
  padding: 3px 10px;
  font-size: 11.5px;
  border-radius: 999px;
  border-color: rgba(56, 217, 169, 0.7);
  background: rgba(56, 217, 169, 0.22);
  color: #ffffff;
  font-weight: 700;
}

.subtab-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(15, 22, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  min-height: 54px;
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(10px);
}

.subtab-btn {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #9fb3c8;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.subtab-btn.subtab-home-btn {
  flex: 0 0 auto;
  background: rgba(56, 217, 169, 0.18);
  border-color: rgba(56, 217, 169, 0.65);
  color: #a7f3d0;
  font-weight: 700;
}

.subtab-btn.subtab-home-btn:hover {
  background: rgba(56, 217, 169, 0.3);
  border-color: #38d9a9;
  color: #ffffff;
}

.subtab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.subtab-btn.active {
  background: linear-gradient(135deg, rgba(56, 217, 169, 0.2), rgba(59, 130, 246, 0.2));
  border-color: rgba(56, 217, 169, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.subtab-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  animation: fadeInSubtab 0.18s ease-out;
}

.subtab-panel.active {
  display: flex;
}

@keyframes fadeInSubtab {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== [신규] 직관적 바 그래프 & 쉬운 사용 가이드 스타일 ==================== */
.visual-bars-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
}

.visual-bar-card {
  background: linear-gradient(180deg, rgba(20, 29, 44, 0.96) 0%, rgba(16, 23, 35, 0.96) 100%);
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.card-sub-desc {
  margin-top: 3px;
  font-size: 12px;
  color: #93a8b8;
  font-weight: 400;
}

.visual-bar-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-metric-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.bar-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 13px;
  min-width: 0;
}

.bar-metric-title {
  font-weight: 600;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  word-break: keep-all;
}

.bar-metric-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #7ee2b8;
  white-space: normal;
  word-break: keep-all;
}

.bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.green {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.bar-fill.blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bar-fill.gold {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.bar-fill.red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.stage-7-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.stage-7-item {
  padding: 7px 6px;
  border-radius: 8px;
  background: rgba(19, 28, 42, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.stage-7-item.pending {
  border-color: rgba(129, 140, 248, 0.4);
}

.stage-7-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #6ee7b7;
}

.stage-7-name {
  font-size: 11px;
  color: #dce6f0;
  line-height: 1.25;
}

.stage-7-mini-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.stage-7-mini-fill {
  height: 100%;
  background: #34d399;
}

/* 개별 작업 목록 내 진행률 바 그래프 */
.row-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.row-progress-track {
  flex: 1;
  max-width: 220px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.row-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.row-progress-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 🧭 자동 운전 · 서버 신호등 · 백업 쉬운 사용 설명서 카드 */
.easy-guide-banner {
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(22, 38, 56, 0.92), rgba(17, 27, 42, 0.95));
  border: 1px solid rgba(56, 217, 169, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.easy-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.easy-guide-header strong {
  font-size: 13.5px;
  color: #f8fafc;
}

.easy-guide-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 217, 169, 0.18);
  border: 1px solid rgba(56, 217, 169, 0.45);
  color: #a7f3d0;
  white-space: nowrap;
}

.easy-guide-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.easy-guide-col {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(11, 16, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.easy-guide-num {
  font-size: 12.5px;
  font-weight: 600;
  color: #7dd3fc;
  white-space: nowrap;
}

.easy-guide-col p {
  font-size: 12px;
  line-height: 1.4;
  color: #d1dde6;
}

@media (max-width: 980px) {
  .visual-bars-section,
  .overview,
  .infra-grid,
  .easy-guide-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main.app-shell {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto auto auto auto;
    padding: 12px;
  }
  .subtab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px;
  }
  .subtab-nav::-webkit-scrollbar {
    display: none;
  }
  .subtab-btn {
    padding: 7px 11px;
    font-size: 12px;
  }
  .page-header,
  .card-heading,
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-right {
    align-items: flex-start;
  }
  .node-cards-grid {
    grid-template-columns: 1fr;
  }
  .run-card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Spacious Credit Summary, Detail Tabs & Work List Grid (v5.9.6.0) */
#dash-subview-observe,
#dash-subview-infra {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.subtab-panel.active {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spacious-credit-card {
  padding: 24px 28px !important;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.spacious-credit-card .card-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spacious-credit-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credit-cal-drawer {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.credit-cal-drawer[open] {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.credit-cal-summary {
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: #c7d2fe;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.credit-cal-summary::-webkit-details-marker {
  display: none;
}

.credit-cal-summary::after {
  content: "펼치기 ▾";
  font-size: 11.5px;
  font-weight: 600;
  color: #818cf8;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
}

.credit-cal-drawer[open] .credit-cal-summary::after {
  content: "접기 ▴";
}

.credit-cal-summary.credit-static-bar {
  cursor: default;
}

.credit-cal-summary.credit-static-bar::after {
  display: none;
}

.credit-static-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #6ee7b7;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
}

.credit-cal-body {
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credit-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

.credit-item-card {
  height: 100%;
  min-height: 158px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(17, 25, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.credit-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(22, 32, 50, 0.85);
}

.credit-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.credit-item-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.credit-item-sub {
  font-size: 12px;
  line-height: 1.4;
  color: #94a3b8;
  margin-top: 4px;
}

.credit-item-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.credit-pct-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.75);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.credit-pct-pill.green {
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
}

.credit-pct-pill.blue {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}

.credit-pct-pill.gold {
  border-color: rgba(129, 140, 248, 0.52);
  background: rgba(99, 102, 241, 0.18);
  color: #e0e7ff;
}

.credit-pct-pill.red {
  border-color: rgba(248, 113, 113, 0.52);
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.credit-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-track.secondary {
  height: 9px;
  opacity: 0.9;
}

.bar-sub-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-sub-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #94a3b8;
}

.bar-sub-label strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 650;
  color: #e2e8f0;
}

.credit-reset-foot {
  font-size: 12.5px;
  color: #a5b4fc;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.credit-reserve-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

/* 📋 ④ 전체 작업 목록 & 📈 ① 작업 진행률 — 외곽 카드 프레임 규격 통일 (28px 32px / 20px) */
#dash-subview-observe .overview-card,
#dash-subview-infra .overview-card,
.records {
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, rgba(20, 29, 44, 0.96) 0%, rgba(16, 23, 35, 0.96) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.records {
  flex: 1;
  gap: 20px;
  justify-content: space-between;
}

#observation-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 124px;
  align-content: start;
  gap: 16px;
  padding: 4px 2px;
  max-height: none;
  overflow: visible;
}

#tab-panel-dashboard button.run-card,
.run-card {
  height: 124px !important;
  min-height: 124px !important;
  max-height: 124px !important;
  padding: 18px 20px !important;
  gap: 12px !important;
  border-radius: 14px;
  background: rgba(19, 27, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.2);
  justify-content: space-between !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.run-card-top {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  align-items: flex-start !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.badge-state {
  width: 124px !important;
  min-width: 124px !important;
  max-width: 124px !important;
  height: 28px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.run-card-title {
  flex: 1 !important;
  min-width: 0 !important;
  font-size: 13.5px !important;
  line-height: 20px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.run-card-bottom {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.run-card-bottom .row-progress-wrap {
  flex: 0 0 176px !important;
  width: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  margin-top: 0 !important;
}

.run-card-meta {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.run-card-meta .request-id {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 📈 ① 현재 작업 진행률 — 과도한 세로 여백 제거 & 동일 행 카드 높이 100% 정렬 */
[data-obs-subtab-panel="progress"] {
  min-height: auto;
  justify-content: flex-start;
  gap: 18px;
}

[data-obs-subtab-panel="progress"] > .overview-card {
  margin-top: 0 !important;
  justify-content: flex-start;
  gap: 16px;
}

#obs-task-bar-chart {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.progress-top-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

#obs-task-bar-chart .bar-metric-group.progress-stat-card {
  height: 100% !important;
  min-height: 144px !important;
  max-height: none !important;
  padding: 18px 20px;
  gap: 10px;
  border-radius: 16px;
  background: rgba(17, 25, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  justify-content: space-between;
  box-sizing: border-box;
}

.progress-stat-sub {
  font-size: 12.5px;
  color: #cbd5e1 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

#obs-task-bar-chart .bar-metric-group.progress-stage7-card {
  padding: 20px 22px;
  gap: 14px;
  border-radius: 16px;
  background: rgba(17, 25, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.progress-stage7-card .stage-7-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 10px;
}

.progress-stage7-card .stage-7-item {
  height: 100% !important;
  min-height: 104px !important;
  max-height: none !important;
  padding: 12px 10px;
  border-radius: 12px;
  gap: 8px;
  justify-content: space-between;
  box-sizing: border-box;
}

.progress-stage7-card .stage-7-code {
  font-size: 13px;
}

.progress-stage7-card .stage-7-name {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-stage7-card .stage-7-mini-bar {
  height: 7px;
}

.stage-7-ms {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #94a3b8;
}

#observation-current {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

#observation-current .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px 16px;
  margin: 8px 0;
}

#observation-current .fact {
  height: 100% !important;
  min-height: 52px !important;
  max-height: none !important;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  align-items: center;
  box-sizing: border-box;
}

#observation-current .fact dd {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.credit-summary-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.credit-item-card {
  height: 100% !important;
  min-height: 158px !important;
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 680px) {
  .credit-summary-grid,
  #observation-list,
  .progress-top-cards-grid,
  #observation-current .facts,
  .codex-book-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .progress-stage7-card .stage-7-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spacious-credit-card,
  .records,
  [data-obs-subtab-panel="progress"] {
    padding: 20px 18px !important;
    min-height: auto;
  }
}

/* ==================== UI/UX Pro Max · CSS Typography & Skill Codex (v5.9.9.0) ==================== */
#tab-panel-dashboard h1,
#tab-panel-dashboard h2,
#tab-panel-dashboard h3,
.credit-item-name {
  text-wrap: balance;
  word-break: keep-all;
}

#tab-panel-dashboard p,
.card-sub-desc,
.progress-stat-sub,
.run-card-title {
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.codex-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 12px;
}

.codex-book-card {
  height: 100% !important;
  min-height: 240px !important;
  max-height: none !important;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(17, 25, 40, 0.78);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow: visible !important;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease;
}

.codex-book-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.48);
}

.codex-book-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.codex-book-head strong {
  font-size: 14px;
  line-height: 1.35;
  color: #f8fafc;
  flex: 1 1 160px;
  min-width: 0;
  word-break: keep-all;
}

.codex-book-head .credit-pct-pill {
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px !important;
  padding: 3px 8px !important;
}

.codex-book-use {
  font-size: 12px;
  line-height: 1.45;
  color: #93c5fd !important;
  margin: 0 !important;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.codex-article-list {
  margin: 2px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.2px;
  color: #cbd5e1;
  line-height: 1.5;
  overflow: visible;
}

.codex-article-list code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ==================== [v6.0.0.1] 🧭 서버·자동운전 5대 세부탭 모든 카드 1fr 균일 정렬 (잘림 0%) ==================== */
.node-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

.node-card {
  height: 100% !important;
  min-height: 210px !important;
  max-height: none !important;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(17, 25, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow: visible;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, background 0.18s ease;
}

.node-card .hint {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.4;
  margin: 0 !important;
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(21, 31, 48, 0.88);
}

.node-card.node-live {
  border-color: rgba(52, 211, 153, 0.38);
}

.node-card.node-standby {
  opacity: 0.86;
}

.node-card-top strong {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.node-master-path {
  font-family: var(--mono);
  font-size: 12px !important;
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(96, 165, 250, 0.22);
  padding: 5px 10px;
  border-radius: 8px;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 68px;
  gap: 10px;
  margin-top: 12px;
}

.plan-chip-card {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

/* ⏰ ② 24시간 자동시간표 — 8구간 2열(4×2) 카드 규격 1fr 균일 정렬 */
#infra-slots-list.slots-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

/* 🛟 ③ 안전 백업·복원 — 2열 금고 카드 규격 1fr 균일 정렬 */
#infra-snapshots-list.snapshots-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

.slot-row,
.snap-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(17, 25, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: visible;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, background 0.18s ease;
}

#infra-slots-list .slot-row {
  height: 100% !important;
  min-height: 176px !important;
  max-height: none !important;
}

#infra-snapshots-list .snap-row {
  height: 100% !important;
  min-height: 148px !important;
  max-height: none !important;
}

.slot-row:hover,
.snap-row:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(21, 31, 48, 0.88);
}

.slot-row.slot-current {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.11), rgba(17, 25, 40, 0.88));
}

.slot-row.slot-recent-exec {
  border-color: rgba(96, 165, 250, 0.65);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.13), rgba(17, 25, 40, 0.9));
}

.slot-row-head,
.snap-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slot-row-title,
.snap-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-row-actions,
.snap-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 🛠️ ④ 자동 수리 & 스킬 법전 — 상단 코어 요약 2열 그리드 규격 균일화 (글자 잘림 0%) */
#chs-platform-core-box > .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px 16px;
  margin-bottom: 18px;
}

#chs-platform-core-box > .facts .fact {
  height: 100% !important;
  min-height: 60px !important;
  max-height: none !important;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.075);
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
}

#chs-platform-core-box > .facts .fact dt {
  flex-shrink: 0;
  min-width: 118px;
}

#chs-platform-core-box > .facts .fact dd {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

/* 모던 글래스모피즘 입력 모달 (#argos-action-dialog) */
dialog.argos-action-dialog {
  width: min(560px, 94vw);
  margin: auto;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.98), rgba(12, 18, 30, 0.99));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  padding: 0;
}

dialog.argos-action-dialog::backdrop {
  background: rgba(4, 8, 16, 0.76);
  backdrop-filter: blur(8px);
}

.argos-action-dialog-form {
  display: flex;
  flex-direction: column;
}

.argos-action-dialog-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.argos-dialog-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.argos-preset-chip {
  font-size: 12px !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(59, 130, 246, 0.14) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  color: #bfdbfe !important;
}

.argos-preset-chip:hover {
  background: rgba(59, 130, 246, 0.28) !important;
  color: #ffffff !important;
}

.argos-dialog-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.argos-dialog-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.argos-dialog-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(9, 13, 22, 0.9);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.argos-dialog-field input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.argos-action-dialog-foot {
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 768px) {
  .dashboard-panel-wrap {
    padding: 8px 10px !important;
    gap: 10px !important;
  }
  .connection.connection-slim {
    padding: 8px 11px !important;
    border-radius: 12px;
  }
  .connection-slim #conn-headline {
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  .subtab-nav {
    display: flex !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding: 5px !important;
    min-height: 44px !important;
  }
  .subtab-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 34px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
  #dash-subview-observe .overview-card,
  #dash-subview-infra .overview-card,
  .records {
    padding: 15px 13px !important;
    border-radius: 15px !important;
  }
  #infra-slots-list.slots-list,
  #infra-snapshots-list.snapshots-list,
  .node-cards-grid,
  #chs-platform-core-box > .facts,
  .plan-chip-grid,
  .credit-summary-grid,
  #observation-list,
  .progress-top-cards-grid,
  #observation-current .facts,
  .codex-book-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 12px !important;
  }
  #infra-slots-list .slot-row,
  #infra-snapshots-list .snap-row,
  .node-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .slot-row-head,
  .snap-row-head {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .slot-row-title,
  .snap-row-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
  }
  .slot-row-actions,
  .snap-row-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .slot-row-actions button,
  .snap-row-actions button {
    width: 100% !important;
    font-size: 11.5px !important;
    padding: 8px 6px !important;
  }
  #tab-panel-dashboard button.run-card,
  .run-card {
    height: auto !important;
    min-height: 104px !important;
    max-height: none !important;
    padding: 14px !important;
  }
  .run-card-top {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .run-card-title {
    height: auto !important;
    min-height: 0 !important;
    max-height: 42px !important;
  }
  .run-card-bottom {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}
