.dashboard-command-center {
  width: 100%;
  min-width: 0;
  color: var(--white, #f8fafc);
}

html[data-theme-resolved="light"] .dashboard-command-center {
  color: var(--ink, #111827);
}

body[data-active-view="dashboard"] .workspace-board {
  grid-template-columns: minmax(0, 1fr);
}

body[data-active-view="dashboard"] .dashboard-view {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.dashboard-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-skeleton span {
  min-height: 180px;
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 70%);
  background-size: 220% 100%;
  animation: dashboardSkeleton 1.3s linear infinite;
}

.dashboard-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.dashboard-main-column,
.dashboard-section,
.command-center-panel {
  min-width: 0;
}

.dashboard-main-column {
  display: grid;
  gap: 18px;
}

.dashboard-companion-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--companion-accent, var(--accent)) 25%, rgba(148,163,184,.14));
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,28,48,.84), rgba(10,19,35,.76));
  padding: 13px 15px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.dashboard-companion-slot > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-companion-slot .companion-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.dashboard-companion-slot span,
.dashboard-companion-slot small {
  color: var(--muted, #94a3b8);
  font-size: 11px;
}

.dashboard-companion-slot strong {
  color: var(--white, #f8fafc);
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-companion-slot button {
  min-height: 34px;
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(79,124,255,.16);
  box-shadow: none;
  font-size: 11px;
}

html[data-theme-resolved="light"] .dashboard-companion-slot {
  border-color: color-mix(in srgb, var(--companion-accent, var(--primary)) 28%, rgba(15,23,42,.12));
  background: linear-gradient(135deg, color-mix(in srgb, var(--companion-accent, var(--primary)) 7%, white), #ffffff);
  box-shadow: 0 14px 34px rgba(30, 41, 59, .09);
}

html[data-theme-resolved="light"] .dashboard-companion-slot strong {
  color: var(--ink, #111827);
}

.dashboard-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(79,124,255,.24), transparent 38%),
    linear-gradient(145deg, rgba(17,31,54,.96), rgba(10,18,33,.94));
  box-shadow: 0 18px 50px rgba(2, 8, 23, .2);
}

html[data-theme-resolved="light"] .dashboard-mobile-header {
  border-color: rgba(15, 23, 42, .11);
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 18px 44px rgba(30, 41, 59, .09);
}

html[data-theme-resolved="light"] .dashboard-mobile-header h1,
html[data-theme-resolved="light"] .dashboard-section h2,
html[data-theme-resolved="light"] .dashboard-section h3,
html[data-theme-resolved="light"] .command-center-panel h2,
html[data-theme-resolved="light"] .command-center-panel h3,
html[data-theme-resolved="light"] .continue-action strong,
html[data-theme-resolved="light"] .quick-action-card strong,
html[data-theme-resolved="light"] .today-metric-card strong,
html[data-theme-resolved="light"] .recent-project-card strong,
html[data-theme-resolved="light"] .platform-status-card strong,
html[data-theme-resolved="light"] .analytics-kpi-card strong {
  color: var(--ink, #111827);
}

.dashboard-mobile-header span,
.dashboard-section__header span,
.command-center-panel > header span {
  color: #72e7ff;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dashboard-mobile-header h1 {
  margin: 5px 0 6px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.dashboard-mobile-header small {
  color: var(--muted, #94a3b8);
}

.dashboard-mobile-header > button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(125,211,252,.22);
  border-radius: 15px;
  background: rgba(15, 30, 52, .9);
  color: #dff8ff;
}

.dashboard-mobile-header > button b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #5f8cff;
  color: white;
  font-size: .65rem;
}

.dashboard-section,
.command-center-panel {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(16, 27, 47, .92), rgba(9, 17, 31, .9));
  box-shadow: 0 14px 38px rgba(2, 8, 23, .14);
}

.dashboard-section {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.dashboard-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-section__header h2,
.command-center-panel h2,
.command-center-panel h3 {
  margin: 3px 0 0;
}

.dashboard-section__header h2 {
  font-size: 1.15rem;
  font-weight: 820;
  letter-spacing: -.015em;
}

.dashboard-text-action,
.command-center-panel button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #8feaff;
  font-weight: 800;
}

.dashboard-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.dashboard-text-action .dashboard-icon,
.command-center-panel button .dashboard-icon,
.recent-project-card button .dashboard-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.continue-actions {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.continue-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 15px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 17px;
  background: rgba(20, 34, 57, .78);
  color: #f8fafc;
  text-align: left;
}

.continue-action--primary {
  border-color: rgba(91, 192, 255, .4);
  background: linear-gradient(135deg, rgba(65, 107, 232, .42), rgba(31, 150, 181, .2));
}

.continue-action span,
.quick-action-card span,
.platform-status-card div {
  min-width: 0;
}

.continue-action strong,
.continue-action small,
.quick-action-card strong,
.quick-action-card small {
  display: block;
}

.continue-action small,
.quick-action-card small,
.recent-project-card small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted, #94a3b8);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-action:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  background: rgba(17, 29, 49, .72);
  color: #f8fafc;
  text-align: left;
}

.quick-action-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(79,124,255,.28), rgba(55,196,218,.14));
  color: #8feaff;
}

.quick-action-card > .dashboard-icon {
  width: 16px;
  color: #7f91aa;
}

.provider-manager-shortcut {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 13px 15px;
  border: 1px solid rgba(124, 108, 255, .3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(80, 72, 204, .2), rgba(41, 148, 184, .12));
  color: #f8fafc;
  text-align: left;
}

.provider-manager-shortcut__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(112, 93, 255, .34), rgba(66, 211, 230, .16));
  color: #a9f2ff;
}

.provider-manager-shortcut strong,
.provider-manager-shortcut small {
  display: block;
}

.provider-manager-shortcut small {
  margin-top: 4px;
  color: var(--muted, #94a3b8);
  font-size: .74rem;
}

.provider-manager-shortcut__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a9f2ff;
  font-size: .74rem;
  font-weight: 850;
}

.provider-manager-shortcut__action .dashboard-icon {
  width: 16px;
  height: 16px;
}

.today-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.today-metric-card,
.today-recommendation,
.dashboard-kpi-grid article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 100px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 15px;
  background: rgba(10, 20, 36, .72);
}

.today-metric-card span,
.today-recommendation span,
.dashboard-kpi-grid span {
  color: var(--muted, #94a3b8);
  font-size: .72rem;
}

.today-metric-card strong,
.dashboard-kpi-grid strong {
  font-size: 1.35rem;
}

.today-metric-card small {
  color: #718198;
  font-size: .7rem;
}

.today-recommendation {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  border-color: rgba(104, 211, 255, .24);
  background:
    radial-gradient(circle at 92% 20%, rgba(97, 85, 255, .2), transparent 34%),
    linear-gradient(135deg, rgba(44, 84, 170, .18), rgba(10, 20, 36, .78));
}

.today-recommendation span,
.today-recommendation p {
  grid-column: 1;
  margin: 0;
}

.today-recommendation > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8deaff;
  font-weight: 850;
}

.today-recommendation > span .dashboard-icon {
  width: 16px;
  height: 16px;
}

.today-recommendation button {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / 3;
  align-items: center;
  align-self: center;
  gap: 6px;
  min-height: 42px;
  border: 1px solid rgba(99,226,255,.2);
  border-radius: 12px;
  background: rgba(58, 109, 221, .18);
  color: #c9f5ff;
}

.recent-projects-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.recent-project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 17px;
  background: rgba(10, 20, 36, .78);
}

.recent-project-card__preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(94, 91, 255, .38), transparent 55%), #101c32;
}

.recent-project-card__preview img {
  width: 100%;
  height: 116px;
  object-fit: cover;
}

.recent-project-card__preview > span:last-child {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 11, 23, .78);
  color: #d9f8ff;
  font-size: .66rem;
  font-weight: 800;
}

.recent-project-card__placeholder .dashboard-icon {
  width: 38px;
  height: 38px;
  color: rgba(168, 239, 255, .8);
}

.recent-project-card__body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.recent-project-card button,
.dashboard-empty-state button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  margin-top: 4px;
  border: 1px solid rgba(99,226,255,.2);
  border-radius: 12px;
  background: rgba(55, 105, 218, .18);
  color: #bff5ff;
  font-weight: 800;
}

.platform-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.platform-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 15px;
  background: rgba(10, 20, 36, .72);
  box-shadow: 0 7px 18px rgba(2, 8, 23, .08);
}

.platform-status-card__mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #172943;
  color: #c5eaff;
  font-size: .7rem;
  font-weight: 900;
}

.platform-status-card strong,
.platform-status-card span {
  display: block;
}

.platform-status-card span {
  margin-top: 3px;
  color: var(--muted, #94a3b8);
  font-size: .7rem;
}

.platform-status-card span i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #718198;
}

.platform-status-card.is-connected {
  border-color: rgba(80, 217, 144, .22);
  background: linear-gradient(135deg, rgba(29, 112, 77, .13), rgba(10, 20, 36, .74));
}

.platform-status-card.is-connected span i {
  background: #50d990;
  box-shadow: 0 0 8px rgba(80,217,144,.65);
}

.platform-status-card.is-attention {
  border-color: rgba(250, 204, 21, .28);
  background: linear-gradient(135deg, rgba(148, 109, 18, .14), rgba(10, 20, 36, .74));
}

.platform-status-card.is-attention span i {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, .5);
}

.platform-status-card.is-error {
  border-color: rgba(248, 113, 113, .28);
  background: linear-gradient(135deg, rgba(145, 43, 57, .14), rgba(10, 20, 36, .74));
}

.platform-status-card.is-error span i {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, .48);
}

.platform-status-card.is-disconnected span i {
  background: #64748b;
}

.platform-status-card button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 11px;
  background: rgba(25, 42, 68, .76);
  color: #dcecff;
  font-size: .7rem;
  font-weight: 800;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpi-grid article {
  min-height: 82px;
}

.analytics-kpi-card {
  min-width: 0;
}

.analytics-kpi-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.analytics-kpi-card header i {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(100, 116, 139, .12);
  color: #7f91a9;
  font-size: .65rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.analytics-kpi-card[data-trend-direction="up"] header i {
  background: rgba(80, 217, 144, .13);
  color: #76e6aa;
}

.analytics-kpi-card[data-trend-direction="down"] header i {
  background: rgba(248, 113, 113, .13);
  color: #fca5a5;
}

.analytics-kpi-card.is-empty strong {
  margin-top: 5px;
  color: #a8b5c8;
  font-size: .82rem;
  line-height: 1.25;
}

.analytics-kpi-card small {
  color: #66768d;
  font-size: .65rem;
  line-height: 1.35;
}

.command-center-panel {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.command-center-panel > header,
.command-center-panel > section {
  padding: 20px;
}

.command-center-panel > header {
  background: radial-gradient(circle at 100% 0%, rgba(83, 112, 255, .24), transparent 55%);
}

.command-center-panel > section {
  border-top: 1px solid rgba(148,163,184,.12);
}

.command-center-panel > .command-ai-recommendation {
  position: relative;
  overflow: hidden;
  border-top-color: rgba(99, 226, 255, .24);
  background:
    radial-gradient(circle at 100% 0%, rgba(100, 83, 255, .25), transparent 48%),
    linear-gradient(145deg, rgba(39, 72, 153, .22), rgba(12, 25, 45, .9));
}

.command-ai-recommendation::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(125, 231, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.command-ai-recommendation__heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.command-ai-recommendation__heading > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(143, 234, 255, .22);
  border-radius: 13px;
  background: rgba(75, 104, 223, .25);
  color: #a4f2ff;
}

.command-ai-recommendation__heading small {
  display: block;
  margin-bottom: 2px;
  color: #7ce9ff;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.command-ai-recommendation p {
  position: relative;
  z-index: 1;
  color: #c7d5e7;
}

.command-ai-recommendation button {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid rgba(125, 231, 255, .24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(71, 111, 235, .35), rgba(48, 175, 198, .18));
  box-shadow: 0 8px 22px rgba(28, 73, 151, .18);
  color: #d9faff;
}

.command-center-panel h3 {
  font-size: .88rem;
}

.command-center-panel p {
  margin: 9px 0 6px;
  color: var(--muted, #94a3b8);
  font-size: .82rem;
  line-height: 1.55;
}

.command-activity-list {
  display: grid;
  gap: 12px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.command-activity-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.command-activity-list li > i {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 10px rgba(103,232,249,.5);
}

.command-activity-list strong,
.command-activity-list span {
  display: block;
}

.command-activity-list strong {
  font-size: .76rem;
}

.command-activity-list span {
  margin-top: 3px;
  color: #718198;
  font-size: .66rem;
}

.dashboard-empty-state {
  color: var(--muted, #94a3b8);
}

.dashboard-empty-state--large {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 160px;
  padding: 22px;
  border: 1px dashed rgba(148,163,184,.22);
  border-radius: 17px;
  text-align: center;
}

.mobile-bottom-nav {
  display: none;
}

.quick-action-card,
.continue-action,
.provider-manager-shortcut,
.dashboard-text-action,
.dashboard-mobile-header button,
.platform-status-card button,
.recent-project-card button,
.today-recommendation button,
.command-center-panel button,
.mobile-bottom-nav a {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.quick-action-card:hover,
.continue-action:not(:disabled):hover,
.provider-manager-shortcut:hover,
.platform-status-card button:hover,
.recent-project-card button:hover {
  border-color: rgba(103,232,249,.35);
  box-shadow: 0 12px 28px rgba(2, 8, 23, .22), 0 0 0 1px rgba(103, 232, 249, .04);
  transform: translateY(-1px) scale(1.01);
}

.dashboard-section:hover,
.platform-status-card:hover,
.recent-project-card:hover {
  box-shadow: 0 18px 42px rgba(2, 8, 23, .2);
}

.dashboard-section,
.platform-status-card,
.recent-project-card {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.dashboard-command-center button:focus-visible,
.mobile-bottom-nav a:focus-visible {
  outline: 3px solid rgba(103,232,249,.7);
  outline-offset: 2px;
}

.dashboard-command-center button:active,
.mobile-bottom-nav a:active {
  transform: scale(.98);
}

@keyframes dashboardSkeleton {
  to { background-position: -220% 0; }
}

@media (max-width: 1180px) {
  .dashboard-command-layout {
    grid-template-columns: 1fr;
  }

  .command-center-panel {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .command-center-panel > header {
    grid-column: 1 / -1;
  }

  .command-center-panel > section {
    border-top: 1px solid rgba(148,163,184,.12);
  }

  .command-center-panel > section + section {
    border-left: 1px solid rgba(148,163,184,.12);
  }

  .today-metric-grid,
  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-active-view="dashboard"] .workspace-board {
    padding: 16px;
  }

  body[data-active-view="dashboard"] .dashboard-view {
    padding: 0;
  }

  .continue-actions {
    grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr));
  }

  .quick-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .app-sidebar {
    display: flex;
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  }

  .topbar > .brand-lockup,
  .topbar > .project-chip,
  .topbar > .user-plan-menu {
    display: none;
  }

  .topbar-actions {
    display: block;
    min-width: 0;
  }

  .topbar-language {
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    width: 100%;
  }

  .app-shell {
    min-height: 100dvh;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .workspace-board,
  body[data-active-view="dashboard"] .workspace-board {
    width: 100%;
    padding: 0;
  }

  .view-shell,
  body[data-active-view="dashboard"] .dashboard-view {
    width: 100%;
    padding: 0;
    border-radius: 0;
  }

  .dashboard-command-layout {
    display: block;
  }

  .dashboard-main-column {
    gap: 12px;
  }

  .dashboard-companion-slot {
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0 12px;
  }

  .dashboard-companion-slot button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-mobile-header {
    padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 18px;
    border-width: 0 0 1px;
    border-radius: 0 0 24px 24px;
  }

  .dashboard-mobile-header h1 {
    font-size: 1.45rem;
  }

  .dashboard-mobile-header small {
    font-size: .72rem;
  }

  .dashboard-section {
    gap: 13px;
    margin: 0 12px;
    padding: 16px;
    border-radius: 19px;
  }

  .dashboard-section__header h2 {
    font-size: 1.05rem;
  }

  .dashboard-text-action {
    min-height: 44px;
    padding: 0 2px;
    font-size: .72rem;
  }

  .continue-actions {
    grid-template-columns: 1fr 1fr;
  }

  .continue-action {
    min-height: 76px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 13px;
  }

  .continue-action--primary {
    grid-column: 1 / -1;
  }

  .continue-action > .dashboard-icon:last-child {
    display: none;
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-action-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 82px;
    padding: 12px 10px;
  }

  .quick-action-card > .dashboard-icon:last-child {
    display: none;
  }

  .quick-action-card small {
    font-size: .68rem;
  }

  .provider-manager-shortcut {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .provider-manager-shortcut__action {
    grid-column: 2;
  }

  .today-metric-grid,
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-metric-card,
  .dashboard-kpi-grid article {
    min-height: 88px;
    padding: 12px;
  }

  .today-recommendation {
    grid-template-columns: 1fr;
  }

  .today-recommendation button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .recent-projects-track {
    display: flex;
    gap: 11px;
    margin-inline: -16px;
    padding: 0 16px 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .recent-projects-track::-webkit-scrollbar {
    display: none;
  }

  .recent-project-card {
    width: min(78vw, 290px);
    flex: 0 0 min(78vw, 290px);
    scroll-snap-align: start;
  }

  .platform-status-grid {
    grid-template-columns: 1fr;
  }

  .platform-status-card {
    min-height: 66px;
  }

  .command-center-panel {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 7px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
    border-top: 1px solid rgba(148,163,184,.2);
    background: rgba(7, 14, 27, .94);
    box-shadow: 0 -12px 35px rgba(2,8,23,.38);
    backdrop-filter: blur(20px);
  }

  .mobile-bottom-nav a {
    display: flex;
    min-width: 0;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 13px;
    color: #7f91a9;
    font-size: .62rem;
    font-weight: 760;
    text-decoration: none;
  }

  .mobile-bottom-nav .dashboard-icon {
    width: 21px;
    height: 21px;
  }

  .mobile-bottom-nav a.is-active {
    background: linear-gradient(145deg, rgba(72,112,235,.3), rgba(46,173,199,.13));
    color: #c8f7ff;
  }

  body:has(dialog[open]) .mobile-bottom-nav,
  body:has(.language-dialog:not([hidden])) .mobile-bottom-nav {
    visibility: hidden;
  }
}

@media (max-width: 359px) {
  .dashboard-section {
    margin-inline: 8px;
    padding: 13px;
  }

  .dashboard-mobile-header {
    padding-inline: 12px;
  }

  .quick-action-card__icon {
    width: 36px;
    height: 36px;
  }

  .quick-action-card {
    gap: 8px;
  }

  .platform-status-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .platform-status-card button {
    grid-column: 1 / -1;
  }

  .mobile-bottom-nav a {
    font-size: .56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-skeleton span {
    animation: none;
  }

  .dashboard-command-center *,
  .mobile-bottom-nav * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Light appearance: clear dark gradient layers instead of only recoloring text. */
html[data-theme-resolved="light"] .dashboard-section,
html[data-theme-resolved="light"] .command-center-panel {
  border-color: rgba(15, 23, 42, .11);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 14px 38px rgba(30, 41, 59, .08);
}

html[data-theme-resolved="light"] .continue-action,
html[data-theme-resolved="light"] .quick-action-card,
html[data-theme-resolved="light"] .today-metric-card,
html[data-theme-resolved="light"] .dashboard-kpi-grid article,
html[data-theme-resolved="light"] .recent-project-card,
html[data-theme-resolved="light"] .platform-status-card,
html[data-theme-resolved="light"] .dashboard-empty-state {
  border-color: rgba(15, 23, 42, .11);
  background: rgba(255, 255, 255, .94);
  color: var(--ink, #111827);
  box-shadow: 0 8px 24px rgba(30, 41, 59, .055);
}

html[data-theme-resolved="light"] .continue-action--primary,
html[data-theme-resolved="light"] .provider-manager-shortcut {
  border-color: color-mix(in srgb, var(--primary) 26%, rgba(15,23,42,.1));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, white), color-mix(in srgb, var(--accent) 8%, white));
  color: var(--ink, #111827);
}

html[data-theme-resolved="light"] .today-recommendation,
html[data-theme-resolved="light"] .command-center-panel > .command-ai-recommendation {
  border-color: color-mix(in srgb, var(--primary) 24%, rgba(15,23,42,.1));
  background:
    radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--primary) 5%, #f8fafc));
  color: var(--ink, #111827);
}

html[data-theme-resolved="light"] .platform-status-card.is-connected {
  border-color: rgba(22, 163, 74, .24);
  background: linear-gradient(135deg, rgba(220, 252, 231, .86), #ffffff);
}

html[data-theme-resolved="light"] .platform-status-card.is-attention {
  border-color: rgba(202, 138, 4, .26);
  background: linear-gradient(135deg, rgba(254, 249, 195, .78), #ffffff);
}

html[data-theme-resolved="light"] .platform-status-card.is-error {
  border-color: rgba(220, 38, 38, .22);
  background: linear-gradient(135deg, rgba(254, 226, 226, .78), #ffffff);
}

html[data-theme-resolved="light"] .platform-status-card__mark,
html[data-theme-resolved="light"] .platform-status-card button,
html[data-theme-resolved="light"] .recent-project-card button,
html[data-theme-resolved="light"] .dashboard-empty-state button,
html[data-theme-resolved="light"] .today-recommendation button,
html[data-theme-resolved="light"] .dashboard-companion-slot button,
html[data-theme-resolved="light"] .command-ai-recommendation button {
  border-color: rgba(15, 23, 42, .12);
  background: color-mix(in srgb, var(--primary) 9%, white);
  color: #23324a;
}

html[data-theme-resolved="light"] .dashboard-text-action,
html[data-theme-resolved="light"] .command-center-panel > header span,
html[data-theme-resolved="light"] .dashboard-section__header span,
html[data-theme-resolved="light"] .dashboard-mobile-header span {
  color: color-mix(in srgb, var(--primary) 72%, #0f172a);
}

html[data-theme-resolved="light"] .command-center-panel > section {
  border-top-color: rgba(15, 23, 42, .1);
}
