/* ═══════════════════════════════════════════════════════
   MOCKUP.CSS – UI Mockup Components for HAFS Portal
   Pure HTML/CSS application screenshots
   ═══════════════════════════════════════════════════════ */

/* ═══════ MOCKUP CONTAINER ═══════ */
.mockup {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,165,92,0.08);
  background: var(--bg-primary);
  max-width: 100%;
}

.mockup-browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0D1B2A;
  border-bottom: 1px solid var(--border);
  min-height: 38px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mockup-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.mockup-dots i:nth-child(1) { background: #F87171; }
.mockup-dots i:nth-child(2) { background: #FBBF24; }
.mockup-dots i:nth-child(3) { background: #4ADE80; }

.mockup-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-caption {
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

/* ═══════ APP LAYOUT ═══════ */
.mockup-app {
  display: flex;
  min-height: 400px;
  max-height: 520px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
}

.mockup-app * {
  box-sizing: border-box;
}

/* ═══════ SIDEBAR (inside mockup) ═══════ */
.m-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #0A1628;
  border-right: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.m-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.m-sidebar-logo .m-logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent-gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.m-sidebar-logo span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.m-nav-group {
  padding: 0 8px;
  margin-bottom: 8px;
}

.m-nav-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold-dim);
  padding: 4px 8px;
}

.m-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: default;
  transition: background 0.15s;
}

.m-nav-item:hover {
  background: var(--glow);
}

.m-nav-item.active {
  background: rgba(200,165,92,0.1);
  color: var(--accent-gold);
  font-weight: 600;
}

.m-nav-icon {
  font-size: 13px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* ═══════ MAIN AREA ═══════ */
.m-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* ═══════ TOPBAR ═══════ */
.m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: #0D1B2A;
  flex-shrink: 0;
}

.m-topbar-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.m-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 160px;
}

.m-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-deep);
}

.m-notification {
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  cursor: default;
}

.m-notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1px solid #0D1B2A;
}

/* ═══════ CONTENT AREA ═══════ */
.m-content {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  background: var(--bg-deep);
}

.m-content::-webkit-scrollbar { width: 4px; }
.m-content::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 2px; }

/* ═══════ METRICS ROW ═══════ */
.m-metrics {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.m-metric {
  flex: 1;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.m-metric-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.m-metric-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.m-metric-change {
  font-size: 9px;
  margin-top: 4px;
  font-weight: 600;
}

.m-metric-change.up { color: var(--success); }
.m-metric-change.down { color: var(--danger); }

/* ═══════ TABLE ═══════ */
.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.m-table thead th {
  background: #0F1E36;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border-strong);
}

.m-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.m-table tbody tr:hover td {
  background: rgba(200,165,92,0.03);
}

.m-table tbody td strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ═══════ BADGE ═══════ */
.m-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

.m-badge.green  { background: rgba(74,222,128,0.15); color: #4ADE80; }
.m-badge.yellow { background: rgba(251,191,36,0.15); color: #FBBF24; }
.m-badge.red    { background: rgba(248,113,113,0.15); color: #F87171; }
.m-badge.blue   { background: rgba(96,165,250,0.15); color: #60A5FA; }
.m-badge.gold   { background: rgba(200,165,92,0.15); color: #C8A55C; }
.m-badge.purple { background: rgba(168,85,247,0.15); color: #A855F7; }
.m-badge.cyan   { background: rgba(34,211,238,0.15); color: #22D3EE; }
.m-badge.gray   { background: rgba(148,163,184,0.12); color: #94A3B8; }

/* ═══════ BUTTON ═══════ */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: default;
  border: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.m-btn.primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  color: var(--bg-deep);
}

.m-btn.secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.m-btn.danger {
  background: rgba(248,113,113,0.15);
  color: var(--danger);
}

.m-btn.success {
  background: rgba(74,222,128,0.15);
  color: var(--success);
}

.m-btn.ghost {
  background: transparent;
  color: var(--accent-gold);
}

/* ═══════ CARD ═══════ */
.m-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.m-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.m-card-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
}

.m-card-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════ FORM ═══════ */
.m-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-form-row {
  display: flex;
  gap: 12px;
}

.m-form-row .m-form-group {
  flex: 1;
}

.m-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.m-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.m-input:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.m-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.m-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 60px;
  resize: none;
}

/* ═══════ CHAT ═══════ */
.m-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.m-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-bottom: 12px;
}

.m-chat-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
}

.m-chat-msg.bot {
  align-self: flex-start;
}

.m-chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.m-chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.m-chat-msg.bot .m-chat-avatar {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  color: var(--bg-deep);
}

.m-chat-msg.user .m-chat-avatar {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.m-chat-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.m-chat-msg.bot .m-chat-bubble {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.m-chat-msg.user .m-chat-bubble {
  background: rgba(200,165,92,0.12);
  color: var(--text-primary);
  border: 1px solid rgba(200,165,92,0.25);
  border-bottom-right-radius: 4px;
}

.m-chat-quick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.m-chat-quick {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  background: rgba(200,165,92,0.08);
  border: 1px solid rgba(200,165,92,0.2);
  color: var(--accent-gold);
  cursor: default;
}

.m-chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.m-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.m-chat-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  cursor: default;
  border: none;
}

/* ═══════ KANBAN ═══════ */
.m-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.m-kanban::-webkit-scrollbar { height: 4px; }
.m-kanban::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 2px; }

.m-kanban-col {
  min-width: 180px;
  flex: 1;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

.m-kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.m-kanban-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.m-kanban-count {
  font-size: 9px;
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 8px;
  color: var(--text-muted);
}

.m-kanban-cards {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

.m-kanban-card-title {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.m-kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
}

/* ═══════ HEATMAP ═══════ */
.m-heatmap {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
}

.m-heatmap-cell {
  border-radius: 3px;
  padding: 4px 5px;
  font-size: 8px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-heatmap-cell.h0 { background: rgba(255,255,255,0.03); color: var(--text-muted); }
.m-heatmap-cell.h1 { background: rgba(74,222,128,0.15); color: #4ADE80; }
.m-heatmap-cell.h2 { background: rgba(251,191,36,0.2); color: #FBBF24; }
.m-heatmap-cell.h3 { background: rgba(251,146,60,0.25); color: #FB923C; }
.m-heatmap-cell.h4 { background: rgba(248,113,113,0.3); color: #F87171; }
.m-heatmap-cell.h5 { background: rgba(239,68,68,0.4); color: #EF4444; }

.m-heatmap-header {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 2px 4px;
}

/* ═══════ TIMELINE ═══════ */
.m-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.m-timeline-item {
  position: relative;
  padding: 0 0 14px 16px;
}

.m-timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-deep);
}

.m-timeline-item.minor::before {
  background: var(--text-muted);
  width: 6px;
  height: 6px;
  left: -20px;
  top: 5px;
}

.m-timeline-time {
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.m-timeline-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.m-timeline-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════ CHART BAR ═══════ */
.m-chart-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-bar-label {
  font-size: 10px;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: right;
}

.m-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.m-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-gold-dim), var(--accent-gold));
  transition: width 0.3s;
}

.m-bar-fill.green { background: linear-gradient(90deg, #166534, #4ADE80); }
.m-bar-fill.blue  { background: linear-gradient(90deg, #1E3A5F, #60A5FA); }
.m-bar-fill.red   { background: linear-gradient(90deg, #7F1D1D, #F87171); }

.m-bar-value {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 32px;
}

/* ═══════ PROGRESS ═══════ */
.m-progress {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.m-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-gold);
}

.m-progress-fill.green { background: var(--success); }
.m-progress-fill.blue  { background: var(--info); }
.m-progress-fill.red   { background: var(--danger); }
.m-progress-fill.yellow { background: var(--warning); }

/* ═══════ SPLIT VIEW ═══════ */
.m-split {
  display: flex;
  gap: 0;
  height: 100%;
}

.m-split-left {
  flex: 1;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px;
}

.m-split-right {
  width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 16px;
  background: rgba(200,165,92,0.02);
}

/* ═══════ TABS ═══════ */
.m-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.m-tab {
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: default;
}

.m-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* ═══════ TAG ═══════ */
.m-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ═══════ SCORE CIRCLE ═══════ */
.m-score {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-gold);
  flex-shrink: 0;
}

.m-score-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.m-score-label {
  font-size: 7px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.m-score.green  { border-color: var(--success); }
.m-score.green .m-score-value { color: var(--success); }
.m-score.red    { border-color: var(--danger); }
.m-score.red .m-score-value { color: var(--danger); }
.m-score.yellow { border-color: var(--warning); }
.m-score.yellow .m-score-value { color: var(--warning); }

/* ═══════ ATTACHMENT ═══════ */
.m-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-secondary);
}

/* ═══════ SLA TIMER ═══════ */
.m-sla {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
}

.m-sla.ok { color: var(--success); }
.m-sla.warn { color: var(--warning); }
.m-sla.breach { color: var(--danger); }

/* ═══════ AI SUGGESTION ═══════ */
.m-ai-suggestion {
  background: rgba(200,165,92,0.06);
  border: 1px solid rgba(200,165,92,0.15);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.m-ai-suggestion-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.m-ai-suggestion-content {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.m-ai-confidence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--accent-gold-dim);
  margin-top: 4px;
}

/* ═══════ FILTER BAR ═══════ */
.m-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.m-filter {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  cursor: default;
}

.m-filter.active {
  background: rgba(200,165,92,0.1);
  border-color: rgba(200,165,92,0.3);
  color: var(--accent-gold);
}

/* ═══════ GRID LAYOUTS ═══════ */
.m-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.m-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.m-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}

/* ═══════ PLAYBOOK STEP ═══════ */
.m-playbook-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.m-playbook-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.m-playbook-num.done {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.3);
  color: var(--success);
}

.m-playbook-num.active {
  background: rgba(200,165,92,0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.m-playbook-info {
  flex: 1;
}

.m-playbook-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.m-playbook-desc {
  font-size: 9px;
  color: var(--text-muted);
}

/* ═══════ SESSION PLAYER (mock) ═══════ */
.m-player {
  background: #000;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 12px;
}

.m-player-screen {
  background: #1a1a2e;
  border-radius: 4px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #4ADE80;
  position: relative;
  overflow: hidden;
}

.m-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
}

.m-player-btn {
  font-size: 12px;
  color: var(--text-muted);
  cursor: default;
}

.m-player-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.m-player-progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 2px;
}

.m-player-time {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ═══════ LOG LINE ═══════ */
.m-log {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  padding: 8px 10px;
  background: #0a0e17;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.m-log-line {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.m-log-time { color: var(--text-muted); min-width: 80px; }
.m-log-level { min-width: 44px; font-weight: 600; }
.m-log-level.info { color: var(--info); }
.m-log-level.warn { color: var(--warning); }
.m-log-level.error { color: var(--danger); }
.m-log-level.debug { color: #A855F7; }
.m-log-msg { color: var(--text-secondary); }

/* ═══════ DEPENDENCY MAP ═══════ */
.m-dep-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
}

.m-dep-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-primary);
}

.m-dep-node.healthy { border-color: rgba(74,222,128,0.3); }
.m-dep-node.degraded { border-color: rgba(251,191,36,0.3); }
.m-dep-node.down { border-color: rgba(248,113,113,0.3); }

.m-dep-node .m-dep-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.m-dep-node.healthy .m-dep-dot { background: var(--success); }
.m-dep-node.degraded .m-dep-dot { background: var(--warning); }
.m-dep-node.down .m-dep-dot { background: var(--danger); }

.m-dep-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

.m-dep-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════ MOCKUP NO-SIDEBAR (full-width variant) ═══════ */
.mockup-app.no-sidebar .m-main {
  width: 100%;
}

/* ═══════ LOGIN FORM ═══════ */
.m-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--bg-deep);
}

.m-login-card {
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.m-login-logo {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent-gold);
  border-radius: 10px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-gold);
}

.m-login-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.m-login-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.m-mfa-code {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.m-mfa-digit {
  width: 36px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ═══════ APPROVAL LIST ═══════ */
.m-approval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.m-approval-info {
  flex: 1;
}

.m-approval-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.m-approval-meta {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

.m-approval-actions {
  display: flex;
  gap: 6px;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
  .mockup-app {
    flex-direction: column;
    max-height: none;
  }

  .m-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .m-sidebar-logo { display: none; }
  .m-nav-group { display: flex; gap: 4px; padding: 0; margin: 0; }
  .m-nav-label { display: none; }
  .m-nav-item { white-space: nowrap; padding: 4px 8px; font-size: 10px; }
  .m-nav-icon { display: none; }

  .m-split { flex-direction: column; }
  .m-split-right { width: 100%; border-right: none; border-top: 1px solid var(--border); }

  .m-kanban { flex-direction: column; }
  .m-kanban-col { min-width: 100%; }

  .m-grid-2, .m-grid-3, .m-grid-4 { grid-template-columns: 1fr; }

  .m-metrics { flex-direction: column; }
}

/* ═══════ PRINT ═══════ */
@media print {
  .mockup {
    break-inside: avoid;
    box-shadow: none;
    border: 2px solid #ccc;
  }

  .mockup-browser {
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
  }

  .mockup-dots i:nth-child(1) { background: #e88; }
  .mockup-dots i:nth-child(2) { background: #eb8; }
  .mockup-dots i:nth-child(3) { background: #8c8; }

  .mockup-url { color: #666; background: #e8e8e8; }
  .mockup-caption { background: #f5f5f5; color: #666; border-color: #ddd; }

  .mockup-app { background: white; }
  .m-sidebar { background: #f5f5f5; border-color: #ddd; }
  .m-topbar { background: #f0f0f0; border-color: #ddd; }
  .m-content { background: #fafafa; }
  .m-card, .m-table, .m-metric { background: white; border-color: #ddd; }
  .m-badge { border: 1px solid currentColor; }
}
