/* ============================================
   COMMAND CENTER — War Room Transformation
   TradeForge Company Workspace
   ============================================ */

/* ── Command Zone ── */
.cmd-command-zone {
  padding: 14px 0 0;
}

.cmd-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cmd-strip-block {
  background: linear-gradient(180deg, rgba(46, 49, 54, 0.96), rgba(46, 49, 54, 0.82));
  border: 1px solid rgba(181, 183, 185, 0.10);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 88px;
}

.cmd-strip-block h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted, #a3adb8);
  margin: 0 0 10px;
  font-weight: 700;
}

.cmd-strip-block--action {
  border-left: 3px solid #d56666;
}

.cmd-strip-block--priority {
  border-left: 3px solid #f0b768;
}

.cmd-strip-block--revenue {
  border-left: 3px solid #63b3ed;
}

.cmd-strip-item {
  font-size: 12px;
  color: var(--text, #e8edf2);
  padding: 6px 0;
  border-bottom: 1px solid rgba(181, 183, 185, 0.06);
  line-height: 1.45;
}

.cmd-strip-item:last-child {
  border-bottom: none;
}

.cmd-strip-item a {
  color: var(--bronze, #8c6a3e);
  text-decoration: none;
  font-weight: 600;
}

.cmd-strip-empty {
  font-size: 12px;
  color: var(--muted, #a3adb8);
  font-style: normal;
  line-height: 1.5;
}

.cmd-strip-subhead {
  display: block;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted, #a3adb8);
  margin-top: 2px;
  font-weight: 600;
}

.cmd-strip-group + .cmd-strip-group {
  margin-top: 8px;
}

.cmd-strip-group-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #a3adb8);
  margin: 0 0 4px;
  font-weight: 700;
}

.cmd-strip-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.cmd-severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cmd-severity--red {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cmd-severity--yellow {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cmd-severity--green {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.cmd-strip-empty-state--guided {
  display: grid;
  gap: 8px;
}

.cmd-strip-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cmd-strip-empty-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--bronze, #8c6a3e);
  text-decoration: none;
  background: rgba(140, 106, 62, 0.12);
  border: 1px solid rgba(140, 106, 62, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
}

.cmd-strip-empty-link:hover {
  background: rgba(140, 106, 62, 0.24);
  border-color: rgba(140, 106, 62, 0.45);
}

/* ── Zone Titles ── */
.cmd-zone-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bronze, #8c6a3e);
  margin: 0 0 10px;
  font-weight: 700;
}

/* ── Live Ops Zone ── */
.cmd-ops-zone {
  padding: 14px 0 0;
}

/* ── Execute Zone ── */
.cmd-execute-zone {
  padding: 16px 0 8px;
}

.cmd-execute-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cmd-execute-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(140,106,62,0.08);
  border: 1px solid rgba(140,106,62,0.24);
  border-radius: 10px;
  color: var(--text, #e8edf2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  min-height: 48px;
}

.cmd-execute-btn:hover,
.cmd-execute-btn:active {
  background: rgba(140,106,62,0.20);
  border-color: rgba(140,106,62,0.5);
  transform: translateY(-1px);
}

.cmd-execute-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Systems Zone (collapsed modules) ── */
.cmd-systems-zone {
  padding: 16px 0 30px;
}

.cmd-systems-wrapper {
  background: none;
  border: none;
}

.cmd-systems-toggle {
  width: 100%;
  padding: 14px 16px;
  background: var(--card, #181c22);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--muted, #a3adb8);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.cmd-systems-toggle::-webkit-details-marker {
  display: none;
}

.cmd-systems-toggle::marker {
  display: none;
  content: "";
}

.cmd-systems-toggle::after {
  content: "\25B8";
  font-size: 12px;
  transition: transform 0.2s;
}

details[open] > .cmd-systems-toggle::after {
  transform: rotate(90deg);
}

.cmd-systems-body {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.cmd-module {
  background: var(--card, #181c22);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.cmd-module > summary {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #a3adb8);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.cmd-module > summary::-webkit-details-marker {
  display: none;
}

.cmd-module > summary::marker {
  display: none;
  content: "";
}

.cmd-module > summary::after {
  content: "\25B8";
  font-size: 10px;
  margin-left: auto;
  transition: transform 0.2s;
}

.cmd-module[open] > summary::after {
  transform: rotate(90deg);
}

.cmd-module > summary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cmd-module-body {
  padding: 0 14px 14px;
}

/* Override ucmd-panel inside systems zone so content shows when details is open */
.cmd-systems-body .ucmd-panel {
  display: block !important;
}

/* ── Simplified header ── */
.cmd-page-header {
  padding: 10px 0 4px;
}

.cmd-page-header h1 {
  font-size: 18px;
  margin: 0;
  color: var(--text, #e8edf2);
}

.cmd-page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cmd-header-actions {
  display: flex;
  gap: 8px;
}

/* ── Lock icon for restricted sections ── */
.cmd-lock-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted, #a3adb8);
  opacity: 0.6;
  cursor: help;
}

.cmd-lock-icon svg {
  width: 12px;
  height: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cmd-execute-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmd-page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .cmd-execute-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMMAND CENTER — Action Feed Items
   ============================================ */

/* Feed item (used in activity feed, issues, procurement) */
.cmd-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(181,183,185,0.08);
}

.cmd-feed-item:last-child {
  border-bottom: none;
}

.cmd-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.cmd-feed-body {
  flex: 1;
  min-width: 0;
}

.cmd-feed-header {
  font-size: 11px;
  color: var(--muted, #a3adb8);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cmd-feed-actor {
  font-weight: 700;
  color: #fff;
}

.cmd-feed-entity {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e8edf2);
  line-height: 1.45;
}

.cmd-feed-time {
  font-size: 11px;
  color: var(--muted, #a3adb8);
  margin-top: 3px;
}

.cmd-feed-action-btn {
  flex-shrink: 0;
  align-self: center;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bronze, #8c6a3e);
  background: rgba(140,106,62,0.10);
  border: 1px solid rgba(140,106,62,0.25);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.cmd-feed-action-btn:hover {
  background: rgba(140,106,62,0.22);
  border-color: rgba(140,106,62,0.5);
}

/* Priority border accents */
.cmd-priority--critical {
  border-left: 2px solid #ef4444;
  padding-left: 8px;
  margin-left: -2px;
}

.cmd-priority--attention {
  border-left: 2px solid #f59e0b;
  padding-left: 8px;
  margin-left: -2px;
}

.cmd-priority--info {
  border-left: 2px solid rgba(140, 106, 62, 0.6);
  padding-left: 8px;
  margin-left: -2px;
}

/* ============================================
   COMMAND CENTER — Project Snapshots
   ============================================ */

.cmd-project-snapshot {
  display: block;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(46, 49, 54, 0.96), rgba(46, 49, 54, 0.82));
  border: 1px solid rgba(181, 183, 185, 0.10);
  border-left: 3px solid rgba(140, 106, 62, 0.4);
  border-radius: var(--r, 8px);
  text-decoration: none;
  color: var(--text, #e8edf2);
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  margin-bottom: 10px;
}

.cmd-project-snapshot:hover {
  border-color: rgba(140, 106, 62, 0.5);
  border-left-color: var(--bronze, #8c6a3e);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cmd-project-snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cmd-project-snapshot-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-project-snapshot-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
  background: rgba(106,191,105,0.12);
  color: #6abf69;
  border: 1px solid rgba(106,191,105,0.25);
}

.cmd-status--completed, .cmd-status--closed {
  background: rgba(107,114,128,0.12);
  color: #6b7280;
  border-color: rgba(107,114,128,0.25);
}

.cmd-status--in-progress, .cmd-status--active {
  background: rgba(99,179,237,0.12);
  color: #63b3ed;
  border-color: rgba(99,179,237,0.25);
}

.cmd-status--planning, .cmd-status--pending, .cmd-status--draft {
  background: rgba(251,191,36,0.10);
  color: #fbbf24;
  border-color: rgba(251,191,36,0.25);
}

.cmd-project-snapshot-phase {
  font-size: 11px;
  color: var(--muted, #a3adb8);
  margin-bottom: 8px;
}

.cmd-project-snapshot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted, #a3adb8);
  margin-bottom: 6px;
}

.cmd-snapshot-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.cmd-snapshot-badge--issue {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
}

.cmd-snapshot-badge--overdue {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}

.cmd-project-snapshot-next {
  font-size: 12px;
  color: var(--ash, #b5b7b9);
  line-height: 1.4;
}

.cmd-next-label {
  font-weight: 700;
  color: var(--bronze, #8c6a3e);
}

/* ============================================
   COMMAND CENTER — Command Strip Action Rows
   ============================================ */

.cmd-strip-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.cmd-strip-action-row + .cmd-strip-action-row {
  border-top: 1px solid rgba(181,183,185,0.06);
}

.cmd-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cmd-strip-row-text {
  flex: 1;
  font-size: 12px;
  color: var(--text, #e8edf2);
  line-height: 1.45;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-strip-row-link {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--bronze, #8c6a3e);
  text-decoration: none;
  white-space: nowrap;
}

.cmd-strip-row-link:hover {
  text-decoration: underline;
}

/* Strip empty state */
.cmd-strip-empty-state {
  padding: 4px 0;
}

.cmd-strip-empty-text {
  font-size: 12px;
  color: var(--muted, #a3adb8);
  line-height: 1.5;
}

/* Strip action items (for company workspace blocks) */
.cmd-strip-action-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(181, 183, 185, 0.06);
}

.cmd-strip-action-item:last-child {
  border-bottom: none;
}

.cmd-strip-action-content {
  flex: 1;
  min-width: 0;
}

.cmd-strip-action-title {
  display: block;
  font-size: 12px;
  color: var(--text, #e8edf2);
  line-height: 1.4;
}

.cmd-strip-action-detail {
  display: block;
  font-size: 11px;
  color: var(--muted, #a3adb8);
  margin-top: 1px;
}

.cmd-strip-action-link {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--bronze, #8c6a3e);
  text-decoration: none;
  align-self: center;
}

.cmd-strip-action-link:hover {
  text-decoration: underline;
}

/* ============================================
   COMMAND CENTER — Today's Work Items
   ============================================ */

.cmd-today-item {
  display: block;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(46, 49, 54, 0.96), rgba(46, 49, 54, 0.82));
  border: 1px solid rgba(181, 183, 185, 0.10);
  border-radius: var(--r, 8px);
  text-decoration: none;
  color: var(--text, #e8edf2);
  margin-bottom: 8px;
  transition: border-color 0.15s, transform 0.1s;
}

.cmd-today-item:hover {
  border-color: rgba(140, 106, 62, 0.5);
  transform: translateY(-1px);
}

.cmd-today-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
}

.cmd-today-detail {
  font-size: 11px;
  color: var(--muted, #a3adb8);
  margin-top: 3px;
  line-height: 1.4;
}

/* ============================================
   COMMAND CENTER — Metric Cards Bar
   ============================================ */

.cmd-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cmd-metric-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(46, 49, 54, 0.96), rgba(46, 49, 54, 0.82));
  border: 1px solid rgba(181, 183, 185, 0.10);
  border-radius: var(--r, 8px);
  text-decoration: none;
  color: var(--text, #e8edf2);
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.cmd-metric-card:hover {
  border-color: rgba(140, 106, 62, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cmd-metric-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.cmd-metric-value:empty,
.cmd-metric-value[data-loading] {
  color: var(--muted, #a3adb8);
  font-size: 16px;
}

.cmd-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bronze, #8c6a3e);
  margin-top: 6px;
}

.cmd-metric-copy {
  font-size: 11px;
  color: var(--muted, #a3adb8);
  margin-top: 4px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .cmd-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .cmd-metrics-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cmd-metric-card {
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .cmd-metric-value {
    font-size: 18px;
    min-width: 40px;
  }

  .cmd-metric-label {
    margin-top: 0;
  }

  .cmd-metric-copy {
    margin-top: 2px;
  }
}

/* ============================================
   COMMAND CENTER — Mobile responsiveness for new components
   ============================================ */

@media (max-width: 620px) {
  .cmd-feed-item {
    padding: 10px 0;
    gap: 8px;
  }

  .cmd-feed-action-btn {
    padding: 5px 12px;
    font-size: 10px;
    min-height: 28px;
  }

  .cmd-project-snapshot {
    padding: 12px 14px;
    margin-bottom: 8px;
  }

  .cmd-project-snapshot-name {
    font-size: 13px;
  }

  .cmd-project-snapshot-meta {
    font-size: 10px;
  }

  .cmd-strip-action-row {
    gap: 6px;
  }

  .cmd-strip-row-text {
    font-size: 11px;
  }

  .cmd-today-item {
    padding: 10px 12px;
  }
}

/* ============================================
   COMMAND CENTER — Dashboard UI Foundation
   Portal Dashboard Layout
   ============================================ */

/* Command Strip — Dashboard variant */
.cmd-strip-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(46, 49, 54, 0.96), rgba(46, 49, 54, 0.82));
  border: 1px solid rgba(181, 183, 185, 0.10);
  border-left: 3px solid var(--bronze);
  border-radius: var(--r);
  transition: border-color 0.15s;
}

.cmd-strip-cell:first-child {
  border-left-color: #d56666;
}

.cmd-strip-cell:nth-child(2) {
  border-left-color: #f0b768;
}

.cmd-strip-cell:nth-child(3) {
  border-left-color: #63b3ed;
}

.cmd-strip-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--bronze);
  margin-top: 1px;
}

.cmd-strip-icon svg {
  width: 20px;
  height: 20px;
}

.cmd-strip-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cmd-strip-value {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* Quick Action Bar */
.cmd-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmd-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(46, 49, 54, 0.96), rgba(46, 49, 54, 0.82));
  border: 1px solid rgba(181, 183, 185, 0.12);
  border-radius: var(--r);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
  min-height: 44px;
}

.cmd-quick-btn:hover {
  border-color: rgba(140, 106, 62, 0.55);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cmd-quick-btn svg {
  width: 16px;
  height: 16px;
  color: var(--bronze);
  flex-shrink: 0;
}

/* Main Content Grid */
.cmd-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
}

/* Empty State */
.cmd-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  border: 1px dashed rgba(181, 183, 185, 0.18);
  border-radius: 12px;
  background: rgba(46, 49, 54, 0.20);
}

.cmd-empty-state svg {
  width: 32px;
  height: 32px;
  color: rgba(140, 106, 62, 0.35);
  margin-bottom: 12px;
}

.cmd-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 320px;
}

.cmd-empty-state .cmd-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bronze, #8c6a3e);
  background: rgba(140, 106, 62, 0.10);
  border: 1px solid rgba(140, 106, 62, 0.25);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.cmd-empty-state .cmd-empty-action:hover {
  background: rgba(140, 106, 62, 0.22);
  border-color: rgba(140, 106, 62, 0.5);
}

/* Loading Skeletons */
@keyframes cmd-skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.cmd-skeleton {
  background: rgba(181, 183, 185, 0.08);
  border-radius: 6px;
  animation: cmd-skeleton-pulse 1.5s ease-in-out infinite;
}

.cmd-skeleton-line {
  height: 12px;
  margin-bottom: 8px;
  background: rgba(181, 183, 185, 0.08);
  border-radius: 4px;
  animation: cmd-skeleton-pulse 1.5s ease-in-out infinite;
}

.cmd-skeleton-line:last-child {
  width: 60%;
  margin-bottom: 0;
}

.cmd-skeleton-card {
  padding: 14px 16px;
  background: rgba(46, 49, 54, 0.5);
  border: 1px solid rgba(181, 183, 185, 0.06);
  border-radius: var(--r, 8px);
  margin-bottom: 10px;
}

.cmd-skeleton-card .cmd-skeleton-line:first-child {
  width: 40%;
  height: 14px;
  margin-bottom: 10px;
}

/* Error State */
.cmd-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid rgba(213, 102, 102, 0.15);
  border-radius: 12px;
  background: rgba(213, 102, 102, 0.04);
}

.cmd-error-state svg {
  width: 28px;
  height: 28px;
  color: rgba(213, 102, 102, 0.5);
  margin-bottom: 10px;
}

.cmd-error-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 360px;
}

.cmd-error-state .cmd-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text, #e8edf2);
  background: rgba(181, 183, 185, 0.08);
  border: 1px solid rgba(181, 183, 185, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.cmd-error-state .cmd-retry-btn:hover {
  background: rgba(181, 183, 185, 0.15);
}

/* ============================================
   COMMAND CENTER — Revenue & Briefing Responsiveness
   ============================================ */

@media (max-width: 768px) {
  .cmd-rev-cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 620px) {
  .cmd-rev-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Support links */
.cmd-support-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Dashboard responsive overrides */
@media (max-width: 980px) {
  .cmd-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .cmd-quick-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cmd-quick-btn {
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .cmd-strip-cell {
    padding: 14px;
  }

  .cmd-empty-state {
    padding: 24px 16px;
  }

  .cmd-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cmd-strip-block {
    min-height: auto;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .cmd-quick-bar {
    grid-template-columns: 1fr;
  }
}
