/* Живой макет интерфейса VDS-40 в кейсе */
.window-title { margin-left: 10px; font: 500 12px var(--mono); color: var(--muted); }

.dash {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 330px;
  font: 12px/1.4 var(--mono);
}
.dash i { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; vertical-align: 1px; }
.dash i.ok { background: #28c840; box-shadow: 0 0 8px rgba(40, 200, 64, 0.7); animation: pulse 2.4s ease-in-out infinite; }
.dash i.warn { background: #febc2e; box-shadow: 0 0 8px rgba(254, 188, 46, 0.7); animation: pulse 1s ease-in-out infinite; }
.dash i.off { background: #3a424c; }
@keyframes pulse { 50% { opacity: 0.45; } }

.dash-side { padding: 14px 10px; border-right: 1px solid var(--border); background: rgba(0, 0, 0, 0.18); }
.dash-group { margin: 6px 6px 8px; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.dash-group:not(:first-child) { margin-top: 18px; }
.dash-srv { margin: 0 0 2px; padding: 6px 8px; border-radius: 7px; color: var(--muted); }
.dash-srv.active { background: rgba(94, 240, 180, 0.1); color: var(--text); }

.dash-main { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-width: 0; }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.metric span { display: block; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.metric b { display: block; margin: 4px 0 8px; font-size: 20px; font-weight: 500; color: var(--text); }
.bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; margin: 0; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.8s var(--ease); }
.spark { display: block; width: 100%; height: 22px; margin-top: -4px; }

.dash-services { padding: 4px 12px; border: 1px solid var(--border); border-radius: 10px; }
.dash-services p { display: flex; align-items: center; margin: 0; padding: 7px 0; color: var(--text); }
.dash-services p + p { border-top: 1px solid var(--border); }
.dash-services span { margin-left: auto; color: var(--muted); font-size: 11px; }

.dash-term { padding: 10px 12px; border-radius: 10px; background: #05070a; color: var(--text); white-space: nowrap; overflow: hidden; }
.dash-term .prompt { color: var(--accent); }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

@media (max-width: 560px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .metric b { font-size: 16px; }
}

/* Мини-макет Chronicle в кейсе: мессенджер-архив с CRM-карточкой */
.chron { display: grid; grid-template-columns: 150px minmax(0, 1fr); font: 12px/1.45 var(--sans); }
.chron-col { min-width: 0; padding: 12px; }
.chron-mgrs { border-right: 1px solid var(--border); background: rgba(0, 0, 0, 0.22); }
.chron-h { margin: 0 0 8px; color: var(--muted); font: 600 11px var(--mono); }
.mgr { display: flex; align-items: center; gap: 8px; margin: 0 -6px 2px; padding: 6px; border-radius: 8px; }
.mgr.on { background: rgba(45, 212, 191, 0.12); box-shadow: inset 2px 0 0 #2dd4bf; }
.mgr b { display: block; font-size: 12px; }
.mgr small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.av { position: relative; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #2a3442; font-size: 10px; font-weight: 700; }
.av i { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #12161c; }
.av i.ok { background: #4ade80; }
.av i.bad { background: #f87171; }
.conv-h b { display: block; font-size: 13px; }
.conv-h small { color: var(--muted); font: 10.5px var(--mono); }
.crm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 10px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, 0.02); font-size: 11px; }
.crm-tag { padding: 1px 6px; border-radius: 5px; background: rgba(251, 191, 36, 0.14); color: #fbbf24; font: 600 9.5px var(--mono); letter-spacing: 0.08em; }
.crm-ok { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: rgba(74, 222, 128, 0.12); color: #4ade80; font-weight: 600; }
.thread { display: flex; flex-direction: column; gap: 7px; }
.bub { max-width: 86%; margin: 0; padding: 7px 10px; border-radius: 11px; opacity: 0; animation: line-in 0.5s var(--ease) forwards; animation-delay: calc(0.3s + var(--i) * 0.45s); }
.bub small { display: block; margin-top: 3px; color: var(--muted); font: 10px var(--mono); }
.bub.in { align-self: flex-start; background: #1f2630; border-bottom-left-radius: 3px; }
.bub.out { align-self: flex-end; background: #15302b; border-bottom-right-radius: 3px; }
.bub.hit { box-shadow: 0 0 0 1.5px #f87171; }
.bub.del { background: rgba(248, 113, 113, 0.08); border: 1px dashed rgba(248, 113, 113, 0.6); color: var(--muted); }
.bub em { font-style: normal; color: #fbbf24; }
.bub .flag { color: #f87171; font-weight: 600; }
@media (max-width: 560px) {
  .chron { grid-template-columns: 1fr; }
  .chron-mgrs { display: none; }
}
