/* Match the mall workbench without changing other console pages or the login form. */
#appView:is([data-workspace="overview"], [data-workspace="malls"]) {
  --console-line: #e7eaee;
  --console-muted: #6b7280;
  --console-blue: #4080ff;
  background: #f8f9fa;
}
#appView:is([data-workspace="overview"], [data-workspace="malls"]) .content { padding: 24px 26px 30px; color: #333; }
#appView[data-workspace="malls"] main > header { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; clip-path: inset(50%); }
#appView :is(.console-dashboard, .cw-workspace) { min-width: 0; }
#appView .console-dashboard { gap: 22px; }
#appView .console-welcome { gap: 14px; padding: 0 0 2px; border: 0; }
#appView .console-welcome p, #appView .cw-heading .cw-eyebrow { margin: 0 0 5px; color: #777; font-size: 12px; }
#appView .console-welcome h2 { margin: 0 0 5px; color: #222; font-size: 22px; font-weight: 650; line-height: 1.45; }
#appView .console-welcome div > span { color: #6b7280; font-size: 13px; }
#appView .console-welcome .console-avatar-large { width: 50px; height: 50px; flex-basis: 50px; font-size: 22px; border-radius: 12px; }
#appView .console-welcome > .console-welcome-actions { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
#appView:is([data-workspace="overview"], [data-workspace="malls"]) .mini-action { color: #555; border-color: #dde1e7; border-radius: 6px; background: #fff; }
#appView:is([data-workspace="overview"], [data-workspace="malls"]) .mini-action:hover { color: #2867d1; border-color: #9dbfff; background: #f7faff; }
#appView .console-welcome .primary-action, #appView[data-workspace="malls"] .cw-heading > button { border: 1px solid #4080ff; border-radius: 6px; color: #fff; background: #4080ff; }
#appView .console-stat-grid, #appView[data-workspace="malls"] .cw-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; border: 0; }
#appView .console-stat, #appView[data-workspace="malls"] .cw-metric {
  --stat-accent: #4080ff; --stat-wash: #edf4ff;
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 10px; min-width: 0; padding: 18px 20px;
  border: 1px solid #e7eaee; border-radius: 12px; background: #fff; color: #333;
  box-shadow: 0 2px 12px rgb(0 0 0 / 6%); transition: transform .2s ease, box-shadow .2s ease;
}
#appView :is(.console-stat, .cw-metric).green { --stat-accent: #168777; --stat-wash: #eaf8f3; }
#appView :is(.console-stat, .cw-metric).amber { --stat-accent: #c7780a; --stat-wash: #fff4e4; }
#appView :is(.console-stat, .cw-metric).coral { --stat-accent: #cf5769; --stat-wash: #fff0f2; }
/* Decorative light sweep only; no invented trend charts or business data. */
#appView :is(.console-stat, .cw-metric)::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 25%, var(--stat-wash) 50%, transparent 75%); transform: translateX(-110%); animation: console-stat-sweep 12s ease-in-out infinite; pointer-events: none; }
#appView :is(.console-stat, .cw-metric):nth-child(2)::before { animation-delay: 1s; }
#appView :is(.console-stat, .cw-metric):nth-child(3)::before { animation-delay: 2s; }
#appView :is(.console-stat, .cw-metric):nth-child(4)::before { animation-delay: 3s; }
#appView .console-stat:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / 8%); }
#appView .console-stat > span, #appView[data-workspace="malls"] .cw-metric > span { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; color: #616773; font-size: 13px; }
#appView .console-stat-icon { display: inline-grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--stat-wash); color: var(--stat-accent); }
#appView .console-stat strong, #appView[data-workspace="malls"] .cw-metric strong { margin: 0; color: #222; font-size: 30px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
#appView .console-stat small { display: flex; padding-top: 10px; border-color: #edf0f3; color: #737983; font-size: 12px; }
#appView .console-stat small svg { width: 14px; height: 14px; flex-basis: 14px; color: #8c96a5; }
#appView .console-stat:is(.blue, .green, .amber, .coral) { border-color: #e7eaee; }
#appView .cw-metric .console-stat-icon { color: var(--stat-accent); }
#appView .console-shortcuts { padding: 0; }
#appView .console-section h2, #appView .cw-heading h2, #appView .cw-help h2 { color: #292c33; font-size: 16px; font-weight: 650; }
#appView .console-shortcuts h2 { margin-bottom: 12px; }
#appView .console-shortcuts > div { gap: 0; border-block: 1px solid #e7eaee; background: #fff; }
#appView .console-shortcuts button { min-height: 98px; padding: 14px 6px; gap: 9px; border: 0; border-radius: 0; background: transparent; color: #555; }
#appView .console-shortcuts button:hover { background: #f6f8fc; color: #2867d1; }
#appView .console-shortcut-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #eef4ff; }
#appView .console-shortcut-icon svg { width: 20px; height: 20px; }
#appView .console-shortcuts button:nth-child(3n) .console-shortcut-icon { background: #edf7f2; }
#appView .console-shortcuts button:nth-child(3n + 2) .console-shortcut-icon { background: #fff5e7; }
#appView .console-overview-columns { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; background: #fff; border-block: 1px solid #e7eaee; }
#appView .console-overview-columns > section { padding: 18px 20px; }
#appView .console-overview-columns > section + section { border-left: 1px solid #edf0f2; }
#appView .console-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 12px; }
#appView .console-section-heading h2 { margin: 0; }
#appView .console-section-heading h2 svg, #appView .cw-heading h2 svg { color: #7c8796; }
#appView .cw-task-count { color: #916017; background: #fff4e4; padding: 3px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
#appView .console-text-action { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: transparent; color: #3975d5; font-size: 12px; cursor: pointer; }
#appView .console-text-action svg { width: 14px; height: 14px; flex-basis: 14px; }
#appView .console-task-list { border: 0; }
#appView .console-task-list button { gap: 10px; padding: 12px 0; color: #414750; border-radius: 0; }
#appView .console-task-list button:hover { background: #fafbfc; }
#appView .console-task-list strong { font-size: 13px; font-weight: 600; }
#appView .console-task-list small { color: #727986; font-size: 12px; line-height: 1.6; }
#appView .console-task-list small + small { color: #818894; font-size: 11px; }
#appView .console-task-list > button > svg:last-child { color: #939ba8; width: 14px; height: 14px; flex-basis: 14px; }
#appView .console-account-facts { gap: 0; margin: 0 0 13px; }
#appView .console-account-facts > div { padding: 11px 0; border-bottom: 1px solid #f1f2f4; }
#appView .console-account-facts dt { color: #777e89; }
#appView .console-account-facts dd { color: #414750; }
#appView .cw-overview { padding: 0; background: transparent; }
#appView .cw-overview .cw-heading { align-items: center; margin-bottom: 14px; }
#appView .cw-heading p { color: #747b86; }
#appView[data-workspace="malls"] .cw-workspace { padding: 0; border: 0; background: transparent; }
#appView[data-workspace="malls"] .cw-heading { align-items: center; margin-bottom: 22px; }
#appView[data-workspace="malls"] .cw-heading h2 { font-size: 22px; }
#appView[data-workspace="malls"] .cw-toolbar { padding: 20px 0; gap: 10px; }
#appView[data-workspace="malls"] .cw-toolbar label { color: #676e79; font-size: 12px; }
#appView[data-workspace="malls"] .cw-toolbar input, #appView[data-workspace="malls"] .cw-toolbar select { color: #333; border-color: #dce0e6; border-radius: 6px; }
#appView[data-workspace="malls"] .cw-toolbar > button { height: 40px; width: 40px; padding: 0; }
#appView :is(.cw-overview, .cw-workspace) .cw-license { padding: 18px 20px; margin-bottom: 14px; border: 1px solid #e7eaee; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 3%); }
#appView .cw-overview .cw-license:last-child { padding-bottom: 18px; margin-bottom: 0; }
#appView .cw-license header { padding: 0; background: none; align-items: center; }
#appView .cw-license-title { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; }
#appView .cw-license-title > div { min-width: 0; }
#appView .cw-license-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid #e2ebff; border-radius: 8px; background: #f2f6ff; color: #4080ff; }
#appView .cw-license h3 { color: #30343c; margin: 0 0 4px; font-size: 16px; }
#appView .cw-license small { color: #7a818d; }
#appView .cw-license-facts { gap: 18px 30px; padding: 16px 0; margin: 14px 0 0; border-top: 1px solid #f0f1f3; color: #767e89; }
#appView .cw-license-facts strong { color: #3b424b; font-weight: 500; }
#appView .cw-install-hint { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; margin: 0; border-left: 2px solid #efb858; background: #fffbf3; color: #8b6c34; font-size: 12px; line-height: 1.7; }
#appView .cw-install-hint svg { width: 15px; height: 15px; flex-basis: 15px; margin-top: 3px; }
#appView .cw-license footer { margin-top: 14px; gap: 8px; }
#appView .cw-mall { color: #494f59; }
#appView .cw-mall-access { background: #f8fafc; border-left-color: #bccfed; }
#appView .cw-mall-access code { color: #485c75; }
#appView .cw-access-details { grid-column: 1 / -1; }
#appView .cw-access-details summary { width: fit-content; padding: 8px 0; color: #68788e; font-size: 12px; cursor: pointer; }
#appView .cw-access-details summary:focus-visible { outline: 2px solid #4080ff; outline-offset: 3px; }
#appView .cw-access-details[open] summary { margin-bottom: 4px; }
#appView .cw-pagination { border: 0; padding-top: 4px; color: #747b86; }
#appView .cw-help { border-top: 1px solid #e7eaee; padding: 20px 0 0; gap: 12px 24px; }
#appView .cw-help h2 { color: #66707e; font-size: 13px; }
#appView .cw-help a { color: #6b7584; font-size: 12px; }
#appView .cw-help a:hover { color: #2867d1; }
#appView :is(.console-dashboard, .cw-workspace) :is(button, a, input, select):focus-visible { outline: 2px solid #4080ff; outline-offset: 3px; }
@keyframes console-stat-sweep { 0%, 55% { transform: translateX(-110%); } 90%, 100% { transform: translateX(110%); } }
@media (max-width: 1150px) {
  #appView .console-stat-grid, #appView[data-workspace="malls"] .cw-metrics { gap: 12px; }
  #appView .console-stat, #appView[data-workspace="malls"] .cw-metric { padding: 14px; }
  #appView .console-overview-columns { grid-template-columns: minmax(0, 1fr); }
  #appView .console-overview-columns > section + section { border-left: 0; border-top: 1px solid #edf0f2; }
}
@media (max-width: 800px) {
  #appView:is([data-workspace="overview"], [data-workspace="malls"]) .content { padding: 20px 16px 24px; }
  #appView .console-welcome { grid-template-columns: 50px minmax(0, 1fr); }
  #appView .console-welcome > .console-welcome-actions { grid-column: 1 / -1; justify-content: flex-start; }
  #appView .console-welcome h2, #appView[data-workspace="malls"] .cw-heading h2 { font-size: 20px; }
  #appView .console-stat-grid, #appView[data-workspace="malls"] .cw-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #appView .console-stat { min-height: 142px; }
  #appView .console-shortcuts > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #appView .console-shortcuts button { min-height: 90px; font-size: 12px; }
  #appView[data-workspace="malls"] .cw-toolbar > button { width: 44px; height: 44px; }
  #appView .console-text-action { min-height: 44px; }
  #appView .cw-help a { min-height: 36px; }
}
@media (max-width: 600px) {
  #appView .console-dashboard { gap: 18px; }
  #appView .console-overview-columns > section, #appView :is(.cw-overview, .cw-workspace) .cw-license { padding: 16px; }
  #appView .cw-overview .cw-license:last-child { padding-bottom: 16px; }
  #appView .cw-license-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0; }
  #appView .cw-license-facts > span { display: grid; gap: 4px; }
  #appView .cw-license-facts > span:first-child { grid-column: 1 / -1; }
  #appView .cw-license-facts strong { margin: 0; }
  #appView .cw-license-title { gap: 10px; }
  #appView .cw-license-title small { font-size: 11px; }
  #appView .cw-license footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #appView .cw-license footer .mini-action { font-size: 12px; padding: 8px 6px; }
  #appView .cw-license-icon { width: 34px; height: 34px; flex-basis: 34px; }
  #appView .cw-heading { gap: 12px; }
  #appView .console-stat strong, #appView[data-workspace="malls"] .cw-metric strong { font-size: 27px; }
}
@media (max-width: 360px) {
  #appView .console-stat, #appView[data-workspace="malls"] .cw-metric { padding: 12px; }
  #appView .console-stat-icon { width: 28px; height: 28px; flex-basis: 28px; }
  #appView .console-stat small { font-size: 11px; gap: 4px; }
  #appView .console-shortcuts > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #appView :is(.console-stat, .cw-metric)::before { animation: none; }
  #appView .console-stat { transition: none; }
  #appView .console-stat:hover { transform: none; }
}
