/* ——— Desktop Concepts Grid ——— */
.desktop-concepts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  max-width: 800px;
}
.dc-card {
  background: white;
  border: 1px solid var(--chalk);
  padding: 20px;
  border-radius: 6px;
}
.dc-num {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 6px;
}
.dc-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.dc-card p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--dust);
  margin: 0;
}


/* ——— Desktop Frame ——— */
.desktop-frame {
  margin-top: 24px;
  border: 1px solid var(--chalk);
  border-radius: 8px;
  overflow: hidden;
  max-width: 960px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.df-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f5f3f0;
  border-bottom: 1px solid var(--chalk);
}
.df-dots { display: flex; gap: 6px; }
.df-dot { width: 10px; height: 10px; border-radius: 50%; }
.df-dot-red { background: #ec6a5e; }
.df-dot-yellow { background: #f4bf4f; }
.df-dot-green { background: #61c554; }
.df-url {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--dust);
  margin-left: auto;
}


/* ——— Desktop Content ——— */
.df-content {
  display: flex;
  height: 480px;
  background: white;
  position: relative;
}


/* ——— Feed Sidebar ——— */
.df-sidebar {
  width: 260px;
  border-right: 1px solid #f0ede8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.3s;
}
.df-sidebar-header {
  padding: 16px 18px 12px;
}
.df-logo {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}


/* Bot dots strip */
.df-bot-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 10px;
  border-bottom: 1px solid #f0ede8;
  flex-wrap: wrap;
}
.df-bd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.df-bd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.df-bd-alive { background: #16a34a; box-shadow: 0 0 4px rgba(22,163,74,0.3); }
.df-bd-warn { background: #d4a017; box-shadow: 0 0 4px rgba(212,160,23,0.3); }
.df-bd-dead { background: #ccc; }
.df-bd-name {
  font-family: var(--mono);
  font-size: 0.35rem;
  font-weight: 700;
  color: var(--sand);
}
.df-bd-expanded .df-bd-dot {
  box-shadow: 0 0 0 2px rgba(212,160,23,0.3), 0 0 6px rgba(212,160,23,0.2);
}
.df-bd-summary {
  font-family: var(--mono);
  font-size: 0.4rem;
  color: var(--sand);
  margin-left: auto;
}


/* Expanded bot card in sidebar */
.df-bot-card {
  margin: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--chalk);
  border-radius: 8px;
  padding: 10px 12px;
}
.df-bc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.df-bc-name { font-size: 0.72rem; font-weight: 700; flex: 1; }
.df-bc-ctx { font-family: var(--mono); font-size: 0.55rem; color: #d4a017; }
.df-bc-bar {
  height: 3px;
  background: var(--chalk);
  border-radius: 2px;
  overflow: hidden;
}
.df-bc-fill { height: 100%; background: #d4a017; border-radius: 2px; }
.df-bc-meta {
  font-family: var(--mono);
  font-size: 0.45rem;
  color: var(--sand);
  margin: 4px 0 6px;
}
.df-bc-actions { display: flex; gap: 4px; }
.df-bc-btn {
  font-family: var(--mono);
  font-size: 0.42rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 0;
  flex: 1;
  border: 1px solid var(--chalk);
  border-radius: 4px;
  background: white;
  color: var(--dust);
  cursor: pointer;
}
.df-bc-btn-primary {
  background: var(--ember);
  color: white;
  border-color: var(--ember);
}


/* Feed items */
.df-feed-label {
  font-family: var(--mono);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 10px 18px 4px;
}
.df-feed {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
  scrollbar-width: none;
}
.df-feed::-webkit-scrollbar { display: none; }
.df-fi {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 6px;
  border-bottom: 1px solid #f8f6f3;
  font-size: 0.58rem;
}
.df-fi:last-child { border-bottom: none; }
.df-fi-alert {
  background: rgba(220,38,38,0.03);
  border-radius: 4px;
  border-bottom: none;
  margin-bottom: 2px;
}
.df-fi-proposal {
  background: rgba(13,148,136,0.03);
  border-radius: 4px;
  border-bottom: none;
  margin-bottom: 2px;
}
.df-fi-type {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 60px;
}
.df-fi-t-msg { color: var(--ember); }
.df-fi-t-prop { color: #0D9488; }
.df-fi-chain { background: rgba(212,88,10,0.03); border-radius: 4px; border-bottom: none; margin-bottom: 2px; cursor: pointer; }
.df-fi-alert .df-fi-type { color: #dc2626; }
.df-fi-body {
  flex: 1;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.df-fi-body strong { font-weight: 700; }
.df-fi-time {
  font-family: var(--mono);
  font-size: 0.42rem;
  color: var(--sand);
  flex-shrink: 0;
}
.df-fi-actions-inline {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.df-fi-approve, .df-fi-reject {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--chalk);
  background: white;
  font-size: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.df-fi-approve { color: #16a34a; }
.df-fi-reject { color: #c44; }


/* ——— Main content ——— */
.df-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: opacity 0.3s;
}
.df-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #f0ede8;
  flex-shrink: 0;
}
.df-main-tabs { display: flex; gap: 2px; }
.df-main-tab {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  color: var(--dust);
}
.df-main-tab-active {
  background: rgba(212,88,10,0.1);
  color: var(--ember);
}
.df-main-bot {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--sand);
}

.df-terminal {
  flex: 1;
  background: #111;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.7;
  color: #888;
  overflow-y: auto;
}
.df-tl { padding: 1px 0; }
.df-tp { color: var(--ember); }
.df-to { color: #555; }
@keyframes blink { 50% { opacity: 0; } }


/* ——— Slide-over panel ——— */
.df-slideover {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  background: var(--paper);
  border-left: 1px solid var(--chalk);
  box-shadow: -8px 0 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.df-so-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--chalk);
}
.df-so-title { font-size: 0.82rem; font-weight: 700; }
.df-so-close { font-size: 0.7rem; color: var(--sand); cursor: pointer; }
.df-so-filters {
  display: flex;
  gap: 4px;
  padding: 10px 18px;
}
.df-so-pill {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--chalk);
  color: var(--dust);
}
.df-so-pill-active {
  background: var(--ember);
  color: white;
}
.df-so-list { padding: 0 18px; flex: 1; overflow-y: auto; }
.df-so-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f3f0;
  font-size: 0.65rem;
}
.df-so-domain { font-weight: 600; }
.df-so-port { font-family: var(--mono); font-size: 0.55rem; color: var(--dust); }
.df-so-service {
  grid-column: 2 / -1;
  font-family: var(--mono);
  font-size: 0.48rem;
  color: var(--sand);
}


/* ——— Comparison ——— */
.desktop-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  max-width: 700px;
}
.dc-compare-item {
  background: white;
  border: 1px solid var(--chalk);
  padding: 16px;
  border-radius: 4px;
}
.dc-compare-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dc-compare-current { color: var(--sand); }
.dc-compare-greenfield { color: var(--ember); }
.dc-compare-item p { font-size: 0.78rem; line-height: 1.5; color: var(--dust); margin: 0; }


/* ——— Mobile ——— */
@media (max-width: 768px) {
  .desktop-concepts { grid-template-columns: 1fr; }
  .desktop-comparison { grid-template-columns: 1fr; }
  .df-content { flex-direction: column; height: auto; }
  .df-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--chalk); }
  .df-slideover { position: static; width: 100%; border-left: none; border-top: 1px solid var(--chalk); }
}
