/*
Template Name: Adminova
Author: Adminova
Description: Premium static HTML admin dashboard template.
Editable source: scripts/styles/adminova.css. Rebuild with --assets-only.
Version: 1.0.0

Table of Contents
01. Design Tokens
02. Base Elements
03. App Shell and Sidebar
04. Topbar, Menus, and Layout Switcher
05. Page Structure and Reusable Components
06. Dashboard Sections
07. Apps
08. Components and Inner Pages
09. Authentication Pages
10. Responsive Rules
*/

/* 01. Design Tokens */
:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --ink: #171923;
  --text: #303442;
  --muted: #737b8c;
  --line: #e1e6ef;
  --primary: #7367f0;
  --primary-2: #00bad1;
  --accent: #ff9f43;
  --success: #28c76f;
  --danger: #ea5455;
  --warning: #ffb020;
  --sidebar: #ffffff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow: 0 16px 42px rgba(34, 41, 70, .09);
  --shadow-soft: 0 10px 28px rgba(34, 41, 70, .06);
  --shadow-lift: 0 24px 70px rgba(34, 41, 70, .14);
}
[data-theme="dark"] {
  --bg: #171923;
  --surface: #24283b;
  --surface-2: #1e2233;
  --ink: #f7f8ff;
  --text: #d8dcf0;
  --muted: #9aa3bd;
  --line: #343b55;
  --sidebar: #202437;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, .22);
  --shadow-lift: 0 26px 80px rgba(0, 0, 0, .34);
}

/* 02. Base Elements */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55; letter-spacing: 0; }
body, .app { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:where(a, button, input, select, textarea, .form-check-input, .nav-link, .dropdown-item, .layout-choice):focus,
:where(a, button, input, select, textarea, .form-check-input, .nav-link, .dropdown-item, .layout-choice):focus-visible { outline: 0; box-shadow: none; }

/* 03. App Shell and Sidebar */
.app { min-height: 100vh; display: flex; background:
  linear-gradient(135deg, rgba(115,103,240,.07) 0%, transparent 28%),
  linear-gradient(315deg, rgba(0,186,209,.06) 0%, transparent 32%),
  var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 286px; padding: 18px 16px; overflow-y: auto; z-index: 1040; background: linear-gradient(180deg, var(--sidebar), color-mix(in srgb, var(--sidebar) 94%, var(--surface-2))); border-right: 1px solid var(--line); box-shadow: 14px 0 38px rgba(34,41,70,.06); transition: transform .25s ease, width .2s ease; }
.brand { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 10px; margin-bottom: 18px; }
.brand-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-weight: 900; font-size: 20px; background: linear-gradient(135deg, #00bad1, #7367f0 52%, #ff9f43); box-shadow: 0 14px 28px rgba(115,103,240,.24); }
.brand strong { display: block; color: var(--ink); font-size: 20px; line-height: 1.1; }
.brand span:last-child { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.nav-group { margin: 8px 0; }
.nav-head { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.nav-head span { display: inline-flex; align-items: center; gap: 10px; }
.nav-head i:first-child { color: var(--primary); font-size: 15px; }
.nav-panel { display: grid; gap: 3px; padding: 4px 0 8px; }
.nav-link { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 750; }
.nav-link i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: var(--surface-2); font-size: 13px; }
.nav-link:hover, .nav-link.active { color: #fff; background: linear-gradient(90deg, var(--primary), #8f7cff); box-shadow: 0 10px 24px rgba(115,103,240,.28); }
.nav-link:hover i, .nav-link.active i { color: #fff; background: rgba(255,255,255,.18); }
.main { min-width: 0; flex: 1; margin-left: 286px; }

/* 04. Topbar, Menus, and Layout Switcher */
.topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 14px 28px; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,247,251,.82)); border-bottom: 1px solid rgba(225,230,239,.82); box-shadow: 0 16px 42px rgba(34,41,70,.07); backdrop-filter: blur(18px); }
[data-theme="dark"] .topbar { background: linear-gradient(180deg, rgba(31,34,48,.92), rgba(23,25,35,.78)); border-color: rgba(52,59,85,.75); }
.mobile-menu, .icon-btn, .profile-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 82%, var(--surface-2))); color: var(--text); box-shadow: var(--shadow-soft); transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.mobile-menu:hover, .icon-btn:hover, .profile-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 42%, var(--line)); color: var(--primary); box-shadow: var(--shadow); }
.top-search { flex: 1; max-width: 520px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--surface-2))); color: var(--muted); font-weight: 800; box-shadow: var(--shadow-soft); }
.top-search i { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--primary); background: rgba(115,103,240,.11); }
.top-search kbd { margin-left: auto; border: 0; background: var(--surface-2); color: var(--muted); border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 900; }
.topbar-status { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border: 1px solid rgba(40,199,111,.20); border-radius: 999px; background: rgba(40,199,111,.08); color: var(--success); font-weight: 900; white-space: nowrap; }
.topbar-status i { font-size: 9px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.profile-btn { width: 52px; height: 52px; padding: 4px; border-radius: 50%; }
.profile-btn img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.top-actions .dropdown { position: relative; }
.top-actions .dropdown-menu { min-width: 280px; max-width: calc(100vw - 32px); max-height: calc(100vh - 112px); overflow: auto; padding: 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); }
.dropdown-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 12px; color: var(--ink); font-size: 13px; font-weight: 900; }
.layout-menu { width: min(340px, calc(100vw - 32px)); }
.layout-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.layout-choice { width: 100%; min-height: 78px; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-align: left; }
.layout-choice:hover, .layout-choice.active { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); background: rgba(115,103,240,.09); color: var(--primary); }
.layout-choice i { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--primary); }
.layout-choice strong { display: block; color: var(--ink); line-height: 1.1; }
.layout-choice span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.notice-menu { width: min(360px, calc(100vw - 32px)); }
.notice-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 10px; }
.notice-item:hover { background: var(--surface-2); }
.notice-item i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: rgba(115,103,240,.11); }
.notice-item strong { display: block; color: var(--ink); font-size: 13px; }
.notice-item span { display: block; color: var(--muted); font-size: 12px; }
.profile-menu { width: min(300px, calc(100vw - 32px)); }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.profile-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.profile-card strong { display: block; color: var(--ink); }
.profile-card span { color: var(--muted); font-size: 12px; }
.profile-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 10px; color: var(--text); font-weight: 750; }
.profile-menu .dropdown-item:hover { color: var(--primary); background: rgba(115,103,240,.10); }
.horizontal-nav { display: none; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 28px 14px; background: rgba(246,247,251,.74); border-bottom: 1px solid rgba(225,230,239,.75); backdrop-filter: blur(18px); position: sticky; top: 82px; z-index: 1020; overflow: visible; }
.horizontal-nav .dropdown-toggle { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-weight: 850; }
.horizontal-nav .dropdown-toggle:hover, .horizontal-nav .dropdown-toggle.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.horizontal-nav .dropdown-menu { min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.horizontal-nav .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 9px 10px; color: var(--text); font-weight: 750; }
.horizontal-nav .dropdown-item.active, .horizontal-nav .dropdown-item:hover { color: var(--primary); background: rgba(115,103,240,.10); }

/* 05. Page Structure and Reusable Components */
.content { padding: 28px; }
.page-title { position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin-bottom: 26px; padding: 24px 26px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background:
  linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,247,252,.88) 58%, rgba(232,248,250,.84));
  box-shadow: var(--shadow); }
.page-title:before { content:""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent)); }
.page-title:after { content:""; position: absolute; right: -32px; bottom: -42px; width: 245px; height: 155px; transform: rotate(-14deg); border-radius: 34px; background: linear-gradient(135deg, rgba(115,103,240,.08), rgba(0,186,209,.08)); pointer-events: none; }
[data-theme="dark"] .page-title { background: linear-gradient(135deg, rgba(31,34,48,.94), rgba(23,25,35,.90) 62%, rgba(14,72,82,.55)); }
.page-heading, .page-actions { position: relative; z-index: 1; }
.page-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.page-title-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page-icon { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 16px 34px rgba(115,103,240,.24); font-size: 24px; }
.page-title h1 { margin: 0; color: var(--ink); font-size: 32px; line-height: 1.08; font-weight: 900; letter-spacing: 0; }
.page-title p { max-width: 760px; margin: 7px 0 0; color: var(--muted); }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.page-meta span { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 12px; font-weight: 850; box-shadow: 0 8px 20px rgba(34,41,70,.04); }
[data-theme="dark"] .page-meta span { background: rgba(255,255,255,.06); }
.page-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm); font-weight: 850; box-shadow: none; }
.btn:focus, .btn:focus-visible, .btn-check:focus + .btn, .btn-close:focus { outline: 0; box-shadow: none; }
.btn-sm { min-height: 34px; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: #6558e8; --bs-btn-hover-border-color: #6558e8; box-shadow: 0 12px 26px rgba(115,103,240,.22); }
.btn-soft { border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--surface-2))); color: var(--text); box-shadow: var(--shadow-soft); }
.btn:hover { transform: translateY(-1px); }
.cardx { min-width: 0; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 96%, var(--surface-2))); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.cardx.equal-card, .grid-12 > .cardx, .metric-grid > .cardx, .commerce-card-grid > .cardx, .pricing-grid > .cardx, .academy-grid > .cardx, .page-panel > .cardx, .component-hero > .cardx { display: flex; flex-direction: column; height: 100%; }
.cardx-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px 0; }
.cardx-head h2 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 850; }
.cardx-head p { margin: 4px 0 0; color: var(--muted); }
.cardx-body { min-width: 0; padding: 24px; }
.grid-12 > .cardx > .cardx-body, .commerce-card-grid > .cardx > .cardx-body, .pricing-grid > .cardx > .cardx-body, .academy-grid > .cardx > .cardx-body, .page-panel > .cardx > .cardx-body { flex: 1; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .6fr); gap: 24px; margin-bottom: 24px; }
.hero > * { min-width: 0; }
.hero-main { min-height: 290px; padding: 32px; color: #fff; overflow: hidden; position: relative; border-radius: var(--radius-lg); background: linear-gradient(135deg, #222058 0%, #7367f0 48%, #00bad1 100%); box-shadow: 0 22px 60px rgba(71,66,166,.30); }
.hero-main:after { content:""; position: absolute; width: 330px; height: 180px; right: -80px; bottom: -70px; transform: rotate(-18deg); border-radius: 36px; background: rgba(255,255,255,.13); }
.hero-main h2 { position: relative; z-index: 1; max-width: 670px; margin: 8px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: 0; font-weight: 900; }
.hero-main p { position: relative; z-index: 1; max-width: 620px; color: rgba(255,255,255,.78); margin: 0 0 24px; font-size: 15px; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: grid; gap: 16px; align-content: stretch; }
.hero-side > .cardx { height: 100%; }
.mini-stat { padding: 20px; min-height: 137px; }
.mini-stat span { color: var(--muted); font-weight: 800; }
.mini-stat strong { display: block; color: var(--ink); font-size: 30px; line-height: 1; margin-top: 10px; }
.mini-stat em { display: inline-flex; margin-top: 14px; font-style: normal; color: var(--success); font-weight: 900; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; align-items: stretch; margin-bottom: 24px; }
.metric { padding: 22px; position: relative; overflow: hidden; }
.metric:after { content:""; position: absolute; right: -22px; top: -28px; width: 116px; height: 74px; transform: rotate(15deg); border-radius: 24px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.metric .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--primary); font-size: 20px; margin-bottom: 18px; box-shadow: 0 12px 24px rgba(115,103,240,.22); }
.metric:nth-child(2) .icon { background: var(--primary-2); }
.metric:nth-child(3) .icon { background: var(--accent); }
.metric:nth-child(4) .icon { background: var(--success); }
.metric span { color: var(--muted); font-weight: 800; }
.metric strong { display: block; color: var(--ink); font-size: 28px; margin-top: 5px; }

/* 06. Dashboard Sections */
.dashboard-brief { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.dashboard-brief .focus-card { margin: 0; }
.signal-stack { display: grid; gap: 14px; align-content: stretch; }
.signal-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.signal-card span { color: var(--muted); font-weight: 800; }
.signal-card strong { display: block; color: var(--ink); font-size: 24px; }
.dashboard-section { margin-top: 24px; align-items: stretch; }
.dashboard-section .mini-stat { min-height: auto; padding: 16px; }
.action-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.action-strip article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.action-strip i { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; color: var(--primary); background: rgba(115,103,240,.11); }
.action-strip strong { display: block; color: var(--ink); }
.action-strip span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.dashboard-lower { align-items: stretch; }
.ops-snapshot { overflow: hidden; color: #fff; background: linear-gradient(145deg, #172033, #5146c7 58%, #0ea5a4); }
.ops-snapshot .cardx-head h2, .ops-snapshot .cardx-head p { color: #fff; }
.ops-snapshot .cardx-head p, .ops-snapshot .ops-meter span { color: rgba(255,255,255,.72); }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ops-tile { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); background: rgba(255,255,255,.12); }
.ops-tile span { color: rgba(255,255,255,.74); font-weight: 850; }
.ops-tile strong { color: #fff; font-size: 30px; line-height: 1; }
.ops-tile em { color: #dff9ed; font-style: normal; font-weight: 900; }
.ops-meter { display: grid; gap: 8px; margin-top: 14px; }
.ops-meter span { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 850; }
.ops-meter i { display: block; height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.20); }
.ops-meter i:before { content:""; display: block; width: 74%; height: 100%; border-radius: inherit; background: #fff; }
.execution-card .cardx-body { display: grid; gap: 14px; }
.execution-step { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 82%, var(--surface-2))); }
.execution-step > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--primary); font-weight: 900; box-shadow: 0 10px 22px rgba(115,103,240,.25); }
.execution-step strong { display: block; color: var(--ink); }
.execution-step small { color: var(--muted); font-weight: 750; }
.execution-step em { color: var(--muted); font-style: normal; font-size: 12px; font-weight: 900; }
.ranked-card .cardx-body { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.rank-row > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: rgba(115,103,240,.11); font-weight: 900; }
.rank-row strong { display: block; color: var(--ink); }
.rank-row small { color: var(--muted); font-weight: 750; }
.rank-row .status { white-space: nowrap; }
.crm-command, .store-command, .project-command, .academy-command { display: grid; gap: 24px; margin-bottom: 24px; }
.crm-command { grid-template-columns: minmax(0,1fr) 380px; align-items: stretch; }
.crm-command-panel, .commerce-command-panel, .project-command-panel { position: relative; overflow: hidden; padding: 26px; border-radius: var(--radius-lg); color: #fff; box-shadow: var(--shadow-lift); }
.crm-command-panel { background: linear-gradient(135deg, #19234b 0%, #5c52da 56%, #0ea5a4 100%); }
.commerce-command-panel { background: linear-gradient(135deg, #15324f 0%, #0ea5a4 55%, #28c76f 100%); }
.project-command-panel { background: linear-gradient(135deg, #271b4f 0%, #7367f0 58%, #ff9f43 100%); }
.crm-command-panel:after, .commerce-command-panel:after, .project-command-panel:after { content:""; position: absolute; width: 360px; height: 190px; right: -105px; bottom: -78px; transform: rotate(-18deg); border-radius: 38px; background: rgba(255,255,255,.13); }
.crm-command-panel > *, .commerce-command-panel > *, .project-command-panel > * { position: relative; z-index: 1; }
.command-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.92); font-size: 12px; font-weight: 900; }
.command-title { max-width: 760px; margin: 18px 0 12px; font-size: 36px; line-height: 1.06; font-weight: 900; }
.command-copy { max-width: 720px; margin: 0; color: rgba(255,255,255,.80); }
.command-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.command-stats span { padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); background: rgba(255,255,255,.13); font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.command-stats strong { display: block; color: #fff; font-size: 28px; line-height: 1; margin-top: 8px; }
.command-stats em { display: block; margin-top: 7px; color: rgba(255,255,255,.74); font-style: normal; font-size: 12px; }
.command-progress { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.command-progress article { padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); background: rgba(255,255,255,.11); }
.command-progress strong { display: block; color: #fff; font-size: 15px; }
.command-progress span { display: block; color: rgba(255,255,255,.72); font-size: 12px; margin: 4px 0 10px; }
.command-progress .forecast-meter { background: rgba(255,255,255,.18); }
.command-progress .forecast-meter span { background: #fff; }
.crm-side-panel { height: 100%; }
.crm-cockpit-card { height: 100%; padding: 24px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(145deg, #172033, #0ea5a4); box-shadow: 0 18px 44px rgba(14,165,164,.20); }
.crm-cockpit-card strong.score { display: block; margin: 14px 0 8px; font-size: 56px; line-height: 1; }
.crm-cockpit-card p { color: rgba(255,255,255,.78); }
.crm-cockpit-card .signal-feed article { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.11); }
.crm-cockpit-card .signal-feed i { color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.crm-cockpit-card .signal-feed strong { color: #fff; }
.crm-cockpit-card .signal-feed span { color: rgba(255,255,255,.72); }
.signal-feed { display: grid; gap: 12px; }
.signal-feed article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.signal-feed i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: rgba(115,103,240,.11); }
.signal-feed strong { display: block; color: var(--ink); }
.signal-feed span { color: var(--muted); font-size: 12px; }
.deal-board { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.deal-stage { min-height: 280px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 82%, var(--surface-2))); }
.deal-stage h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 900; }
.deal-stage h2 span { color: var(--muted); font-size: 12px; }
.deal-card { display: grid; gap: 8px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-soft); }
.deal-card strong { color: var(--ink); }
.deal-card span { color: var(--muted); font-size: 13px; }
.crm-forecast { display: grid; gap: 14px; }
.forecast-meter { height: 12px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.forecast-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--success)); }
.crm-insights, .commerce-insights, .project-insights { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; margin-bottom: 24px; }
.insight-tile { padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--surface-2))); box-shadow: var(--shadow); }
.insight-tile i { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 11px; color: #fff; background: var(--primary); }
.insight-tile strong { display: block; color: var(--ink); font-size: 18px; }
.insight-tile span { color: var(--muted); }
.store-command { grid-template-columns: minmax(0,1fr) 380px; align-items: stretch; }
.store-kpi-column { display: grid; gap: 14px; }
.commerce-map { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.commerce-map span { min-height: 92px; display: grid; align-content: center; gap: 6px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.commerce-map strong { color: var(--ink); font-size: 20px; }
.commerce-map small { color: var(--muted); font-weight: 800; }
.fulfillment-lanes { display: grid; gap: 12px; }
.fulfillment-lane { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--primary) 4%)); box-shadow: var(--shadow-soft); }
.fulfillment-lane h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 900; }
.fulfillment-lane h2 i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--primary); font-size: 15px; }
.fulfillment-lane span { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.fulfillment-lane span strong { color: var(--ink); white-space: nowrap; }
.fulfillment-lane span:first-of-type { border-top: 0; }
.project-command { grid-template-columns: minmax(0,1fr) 360px; align-items: start; }
.project-command-panel { padding: 22px; }
.project-command-panel .command-title { max-width: 720px; font-size: 32px; }
.project-command-panel .command-copy { max-width: 720px; }
.project-dashboard-flow { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 24px; align-items: start; }
.project-flow-main, .project-flow-side { display: grid; gap: 24px; align-content: start; }
.project-dashboard-flow .metric-grid, .project-dashboard-flow .project-insights { margin-bottom: 0; }
.project-dashboard-flow .metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.project-dashboard-flow .metric { padding: 16px; }
.project-dashboard-flow .metric .icon { margin-bottom: 14px; }
.project-dashboard-flow .metric strong { font-size: 26px; }
.release-track { display: grid; gap: 14px; }
.release-item { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.release-item time { color: var(--primary); font-weight: 900; }
.release-item strong { color: var(--ink); }
.release-item p { margin: 3px 0 0; color: var(--muted); }
.portfolio-map { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.portfolio-map article { min-height: 86px; padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); background: rgba(255,255,255,.12); }
.portfolio-map strong { display: block; color: #fff; font-size: 24px; }
.portfolio-map span { color: rgba(255,255,255,.75); }
.capacity-list { display: grid; gap: 12px; }
.capacity-list span { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; color: var(--muted); font-weight: 800; }
.capacity-bar { grid-column: 1 / -1; height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.capacity-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.capacity-actions { display: grid; gap: 10px; margin-top: 18px; }
.capacity-actions span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 850; }
.capacity-actions em { color: var(--muted); font-style: normal; font-size: 12px; }
.academy-command { grid-template-columns: 370px minmax(0,1fr); }
.live-class-panel { min-height: 100%; padding: 24px; color: #fff; border-radius: var(--radius-lg); background: linear-gradient(145deg, #163143, #0ea5a4); box-shadow: 0 18px 44px rgba(14,165,164,.24); }
.live-class-panel h2 { max-width: 300px; margin: 14px 0; font-size: 32px; line-height: 1.08; font-weight: 900; }
.live-class-panel p { color: rgba(255,255,255,.78); }
.live-class-panel .class-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.20); }
.learner-board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.lesson-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.lesson-row i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: rgba(115,103,240,.11); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.grid-12 > * { width: auto !important; max-width: none !important; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.chart { min-height: 280px; }
.list { display: grid; gap: 14px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface) 88%, var(--surface-2)); }
.list-item i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: rgba(115,103,240,.11); }
.list-item strong { display: block; color: var(--ink); }
.list-item span { color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; background: rgba(40,199,111,.13); color: #1f9d58; }
.status.warn { background: rgba(255,159,67,.15); color: #c87118; }
.status.danger { background: rgba(234,84,85,.13); color: #d43d3e; }
.table { color: var(--text); margin: 0; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 86%, var(--surface))); border-color: var(--line); padding: 14px 16px; }
.table td { border-color: var(--line); padding: 16px; vertical-align: middle; }
.table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.form-control, .form-select { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: var(--surface); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.form-control:hover, .form-select:hover { border-color: color-mix(in srgb, var(--primary) 42%, var(--line)); }
.form-control:focus, .form-select:focus { border-color: var(--line); box-shadow: none; background-color: var(--surface); color: var(--text); }
.form-control::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); opacity: 1; }
.form-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23737b8c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px 12px; }
.form-select:disabled, .form-control:disabled { color: var(--muted); background-color: var(--surface-2); opacity: 1; }
.form-select.is-enhanced { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.custom-select { position: relative; min-width: min(260px, 100%); }
.custom-select-control { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--surface-2))); color: var(--text); font-weight: 800; text-align: left; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.custom-select-control:hover, .custom-select.open .custom-select-control { color: var(--ink); border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); background: var(--surface); }
.custom-select-control i { color: var(--muted); transition: transform .18s ease, color .18s ease; }
.custom-select.open .custom-select-control i { color: var(--primary); transform: rotate(180deg); }
.custom-select-menu { position: absolute; z-index: 1060; top: calc(100% + 8px); left: 0; right: 0; display: none; max-height: 260px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-lift); }
.custom-select.open .custom-select-menu { display: grid; gap: 4px; }
.custom-select-option { min-height: 38px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-weight: 800; text-align: left; transition: background-color .15s ease, color .15s ease; }
.custom-select-option:hover, .custom-select-option.hover, .custom-select-option.active { color: var(--primary); background: rgba(115,103,240,.10); }
.custom-select-option.active::after { content: "\2713"; font-weight: 900; color: var(--primary); }
.custom-select.disabled { opacity: .65; pointer-events: none; }
.filter-row .custom-select { width: min(260px, 100%); }
.input-group .custom-select { flex: 1 1 auto; min-width: 0; }
.auth-card .custom-select-control, .auth-card .custom-select-menu { background: #fff; color: #171923; }
.form-check-input { border-color: var(--line); cursor: pointer; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.input-group-text { border-color: var(--line); background: var(--surface-2); color: var(--muted); }

/* 07. Apps */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(260px,1fr)); gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { min-height: 560px; padding: 16px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface-2) 86%, var(--surface)); border: 1px solid var(--line); }
.kanban-col h2 { margin: 0 0 14px; color: var(--ink); font-size: 15px; }
.task-card { padding: 15px; margin-bottom: 12px; }
.mail-shell, .chat-shell, .file-shell { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 22px; align-items: start; }
.app-menu { padding: 16px; }
.app-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 800; }
.app-menu a.active, .app-menu a:hover { background: rgba(115,103,240,.12); color: var(--primary); }
.app-menu small { display: block; margin: 18px 12px 8px; color: var(--muted); font-weight: 900; text-transform: uppercase; font-size: 11px; }
.app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.app-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.app-stat-row span { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-soft); }
.app-stat-row strong { display: block; color: var(--ink); font-size: 20px; margin-top: 3px; }
.mail-layout { display: grid; grid-template-columns: 260px minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.mail-summary { display: grid; gap: 10px; margin: 16px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 86%, var(--surface-2))); box-shadow: var(--shadow-soft); }
.mail-summary span { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 850; }
.mail-summary strong { color: var(--ink); font-size: 18px; }
.mail-label-dot { width: 10px; height: 10px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.mail-preview.cardx, .chat-window.cardx, .contact-stage.cardx, .contact-profile.cardx { display: flex; flex-direction: column; }
.mail-preview { min-height: 520px; display: grid; grid-template-rows: auto 1fr auto; }
.mail-thread { display: grid; gap: 14px; }
.mail-thread article { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.chat-layout { display: grid; grid-template-columns: 280px minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.chat-contact { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 9px; }
.chat-contact.active, .chat-contact:hover { background: rgba(115,103,240,.10); color: var(--primary); }
.chat-window { min-height: 500px; display: grid; grid-template-rows: auto 1fr auto; }
.chat-body { overflow: auto; }
.message { max-width: 70%; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 12px; }
.message.me { margin-left: auto; color: #fff; background: var(--primary); }
.presence-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: inline-block; }
.calendar-box { min-height: 650px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.calendar-agenda { display: grid; gap: 12px; }
.calendar-agenda article { padding: 14px; border-left: 4px solid var(--primary); border-radius: var(--radius-md); background: var(--surface-2); }
.kanban-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.kanban-col-head h2 { margin: 0; }
.kanban-col-head span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--muted); font-weight: 900; }
.task-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.task-card .avatar-stack { display: flex; }
.task-card .avatar-stack img { width: 26px; height: 26px; border: 2px solid var(--surface); margin-left: -7px; }
.task-card .avatar-stack img:first-child { margin-left: 0; }
.task-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
.task-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.file-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 22px; align-items: start; }
.storage-card { padding: 18px; color: #fff; border-radius: var(--radius-md); background: linear-gradient(145deg, #24284f, #7367f0 60%, #00bad1); }
.file-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.notes-layout { display: grid; grid-template-columns: 280px minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.note-card { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.note-editor textarea { min-height: 360px; }
.contacts-layout { display: grid; grid-template-columns: 240px minmax(0,1fr) 318px; gap: 18px; align-items: start; }
.contact-stage { display: grid; grid-template-rows: auto auto minmax(0,1fr); min-height: 560px; }
.contact-segment { display: grid; gap: 10px; }
.contact-segment button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-weight: 850; box-shadow: var(--shadow-soft); }
.contact-segment button.active { color: var(--primary); border-color: rgba(115,103,240,.25); background: rgba(115,103,240,.11); }
.contact-table { display: grid; gap: 10px; }
.contact-row { display: grid; grid-template-columns: minmax(178px,1fr) 68px 92px auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.contact-row.header { color: var(--muted); background: var(--surface-2); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.contact-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-person .avatar { width: 44px; height: 44px; }
.contact-person strong, .contact-row strong { color: var(--ink); }
.contact-person span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-row > strong, .contact-row.header span:nth-child(4) { display: none; }
.contact-profile { display: grid; grid-template-rows: auto auto 1fr; min-height: 560px; }
.contact-cover { padding: 22px; color: #fff; background: linear-gradient(135deg, #1f2937, #7367f0 58%, #00bad1); }
.contact-cover .avatar { width: 70px; height: 70px; border: 3px solid rgba(255,255,255,.65); margin-bottom: 14px; }
.contact-cover p { color: rgba(255,255,255,.78); margin: 0; }
.contact-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.contact-meta-grid span { padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-weight: 800; }
.contact-meta-grid strong { display: block; color: var(--ink); margin-top: 4px; }

/* 08. Components and Inner Pages */
.page-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.page-tabs .nav-link { min-height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: none; }
.page-tabs .nav-link.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.tab-showcase { display: grid; gap: 24px; }
.tab-card { min-height: 300px; overflow: hidden; }
.tab-card .nav-tabs { border-bottom-color: var(--line); }
.tab-card .nav-tabs .nav-link { min-height: 58px; padding: 14px 22px; border: 0; border-bottom: 3px solid transparent; color: var(--text); font-weight: 850; }
.tab-card .nav-tabs .nav-link.active { color: var(--primary); background: transparent; border-bottom-color: var(--primary); }
.tab-card .nav-tabs.icon-tabs .nav-link { display: inline-flex; align-items: center; gap: 9px; }
.tab-copy { color: var(--muted); font-size: 16px; line-height: 1.65; }
.vertical-tabs { display: grid; grid-template-columns: 190px minmax(0,1fr); min-height: 260px; }
.vertical-tabs .nav { padding: 16px; border-right: 1px solid var(--line); }
.vertical-tabs .nav-link { justify-content: flex-start; width: 100%; min-height: 48px; border-radius: 0; color: var(--text); font-weight: 850; text-align: left; }
.vertical-tabs .nav-link.active { color: var(--primary); background: transparent; border-right: 3px solid var(--primary); }
.bottom-tabs .tab-content { min-height: 210px; }
.bottom-tabs .nav-tabs { border-top: 1px solid var(--line); border-bottom: 0; }
.bottom-tabs .nav-tabs .nav-link { border-bottom: 0; border-top: 3px solid transparent; }
.bottom-tabs .nav-tabs .nav-link.active { border-top-color: var(--primary); }
.pill-tabs { gap: 10px; }
.pill-tabs .nav-link { min-height: 48px; padding: 12px 24px; border-radius: 8px; color: var(--text); font-weight: 850; }
.pill-tabs .nav-link.active { color: #fff; background: var(--primary); box-shadow: 0 12px 28px rgba(115,103,240,.28); }
.filled-pills { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.filled-pills .nav-link { width: 100%; min-height: 54px; border: 0; border-radius: 9px; color: var(--text); background: transparent; font-weight: 850; }
.filled-pills .nav-link.active { color: #fff; background: var(--primary); }
.segmented-tabs { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.segmented-tabs .nav-link { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 8px; color: var(--text); font-weight: 850; }
.segmented-tabs .nav-link.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row .form-control, .filter-row .form-select { width: min(260px, 100%); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card { padding: 20px; }
.product-art { height: 130px; border-radius: var(--radius-md); margin-bottom: 14px; background: linear-gradient(135deg, rgba(115,103,240,.14), rgba(0,186,209,.16)); display: grid; place-items: center; color: var(--primary); font-size: 42px; }
.commerce-page-hero { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.commerce-brief { padding: 26px; color: #fff; border-radius: var(--radius-lg); background: linear-gradient(145deg, #12324f, #0ea5a4 58%, #28c76f); box-shadow: 0 18px 44px rgba(14,165,164,.20); }
.commerce-brief h2 { max-width: 680px; margin: 12px 0; font-size: 34px; line-height: 1.08; font-weight: 900; }
.commerce-brief p { color: rgba(255,255,255,.78); }
.commerce-page-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: start; }
.commerce-side { padding: 16px; display: grid; align-content: start; gap: 12px; }
.commerce-side a, .commerce-side button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-weight: 850; text-align: left; box-shadow: var(--shadow-soft); }
.commerce-side a.active, .commerce-side button.active { color: var(--primary); background: rgba(115,103,240,.11); border-color: rgba(115,103,240,.30); }
.commerce-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.commerce-product { padding: 20px; display: grid; gap: 14px; }
.commerce-product .product-art { height: 160px; margin: 0; }
.commerce-product footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.commerce-order-row, .commerce-customer-row, .review-card { display: grid; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.commerce-order-row { grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; }
.commerce-customer-row { grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; }
.commerce-order-row i, .commerce-customer-row i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: rgba(115,103,240,.11); }
.commerce-timeline { display: grid; gap: 12px; }
.commerce-timeline article { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
.commerce-timeline span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 900; }
.review-card { grid-template-columns: minmax(0,1fr) auto; align-items: start; }
.review-stars { color: var(--accent); font-size: 16px; letter-spacing: 1px; }
.settings-block { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.profile-cover { min-height: 180px; border-radius: var(--radius-lg); padding: 26px; color: #fff; background: linear-gradient(135deg, #232946, #7367f0 55%, #00bad1); display: flex; align-items: flex-end; gap: 16px; box-shadow: var(--shadow-lift); }
.profile-cover img { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.72); }
.profile-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.profile-summary-grid span { padding: 13px; border-radius: var(--radius-md); background: rgba(255,255,255,.14); color: rgba(255,255,255,.82); font-weight: 850; }
.profile-summary-grid strong { display: block; color: #fff; font-size: 22px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: stretch; }
.pricing-card { padding: 26px; display: grid; gap: 16px; }
.pricing-card.featured { border-color: rgba(115,103,240,.5); box-shadow: 0 20px 55px rgba(115,103,240,.18); }
.pricing-card ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pricing-card li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 750; }
.pricing-card li i { color: var(--success); }
.settings-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 22px; }
.settings-nav { padding: 14px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.settings-nav .nav-link { color: var(--text); box-shadow: none; background: transparent; }
.settings-nav .nav-link.active { color: #fff; background: var(--primary); }
.page-panel { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: stretch; gap: 24px; margin-bottom: 24px; }
.page-hero-card { min-height: 100%; display: grid; align-content: center; justify-items: start; padding: 26px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(145deg, #17334f, #0ea5a4); box-shadow: 0 18px 42px rgba(14,165,164,.20); }
.page-hero-card h2 { margin: 10px 0; font-size: 34px; line-height: 1.08; font-weight: 900; }
.page-hero-card p { color: rgba(255,255,255,.78); }
.billing-method, .key-row, .faq-search-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.billing-method { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.billing-method i, .key-row i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: rgba(115,103,240,.11); }
.key-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: 12px; }
.faq-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 24px; }
.faq-search-card { position: sticky; top: 96px; align-self: start; }
.timeline-line { position: relative; display: grid; gap: 18px; }
.timeline-step { display: flex; gap: 14px; }
.timeline-step span:first-child { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 900; }
.component-hero { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: stretch; margin-bottom: 24px; }
.component-showcase { padding: 24px; min-height: 250px; display: grid; align-content: center; gap: 18px; overflow: hidden; }
.component-showcase h2 { margin: 0; color: var(--ink); font-size: 30px; font-weight: 900; }
.component-showcase p { max-width: 680px; margin: 0; color: var(--muted); }
.component-count { padding: 24px; color: #fff; border-radius: var(--radius-lg); background: linear-gradient(145deg, #24284f, #7367f0 62%, #00bad1); box-shadow: var(--shadow-lift); }
.component-count strong { display: block; font-size: 48px; line-height: 1; margin: 12px 0; }
.button-matrix { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.button-row:last-child { border-bottom: 0; }
.icon-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(42px, 42px)); gap: 10px; max-width: 100%; }
.soft-btn-set { display: flex; flex-wrap: wrap; gap: 10px; }
.soft-primary { color: var(--primary); background: rgba(115,103,240,.12); border-color: transparent; }
.soft-success { color: #159257; background: rgba(40,199,111,.14); border-color: transparent; }
.soft-warning { color: #b86914; background: rgba(255,159,67,.17); border-color: transparent; }
.soft-danger { color: var(--danger); background: rgba(234,84,85,.13); border-color: transparent; }
.sample-card { padding: 18px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.sample-card figure { height: 86px; margin: 0 0 16px; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(115,103,240,.14), rgba(0,186,209,.16)); display: grid; place-items: center; color: var(--primary); font-size: 34px; }
.profile-mini { display: flex; align-items: center; gap: 12px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.stat-strip span { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 850; }
.modal-preview { min-height: 260px; border-radius: var(--radius-md); border: 1px dashed var(--line); background: var(--surface-2); display: grid; place-items: center; padding: 24px; }
.alert-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.alert-callout { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 17px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft); }
.alert-callout i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--primary); }
.alert-callout.success i { background: var(--success); }
.alert-callout.warning i { background: var(--accent); }
.alert-callout.danger i { background: var(--danger); }
.form-section { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-dense { display: grid; gap: 12px; }
.table-actions { display: flex; gap: 6px; }
.palette { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.swatch { min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; border-radius: var(--radius-md); color: #fff; font-weight: 850; }
.chart-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.timeline-rich { position: relative; display: grid; gap: 18px; }
.timeline-rich:before { content:""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-card { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; }
.timeline-card > i { z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); }
.timeline-compact { display: grid; gap: 10px; }
.timeline-compact span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.empty-state { padding: 36px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--surface-2))); }
.empty-state i { display: block; color: var(--primary); font-size: 42px; margin-bottom: 10px; }
.split-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; margin-bottom: 24px; }
.focus-card { min-height: 310px; padding: 30px; color: #fff; border-radius: var(--radius-lg); background: linear-gradient(135deg, #15183a, #7367f0 58%, #00bad1); box-shadow: var(--shadow-lift); }
.focus-card h2 { max-width: 620px; margin: 12px 0; font-size: 38px; line-height: 1.06; font-weight: 900; }
.focus-card p { max-width: 610px; color: rgba(255,255,255,.78); }
.insight-stack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.funnel { display: grid; gap: 12px; }
.funnel-step { display: grid; grid-template-columns: 110px minmax(0,1fr) 70px; align-items: center; gap: 12px; }
.funnel-bar { height: 12px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.funnel-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.commerce-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: stretch; }
.order-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.warehouse-map { min-height: 340px; border-radius: var(--radius-lg); padding: 18px; background: linear-gradient(135deg, rgba(115,103,240,.12), rgba(0,186,209,.15)); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.warehouse-zone { display: grid; align-content: space-between; gap: 10px; min-height: 96px; padding: 14px; border-radius: var(--radius-md); background: rgba(255,255,255,.80); border: 1px solid rgba(255,255,255,.86); box-shadow: var(--shadow-soft); }
.warehouse-zone strong { display: block; color: var(--ink); font-size: 17px; }
.warehouse-zone span { color: var(--muted); font-size: 12px; font-weight: 850; }
.warehouse-zone em { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(115,103,240,.12); }
.warehouse-zone em:before { content:""; display: block; width: var(--load); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.sprint-board { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 24px; }
.milestone { padding: 16px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.ledger-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 24px; align-items: stretch; }
.cash-card { padding: 24px; color: #fff; border-radius: var(--radius-lg); background: linear-gradient(145deg, #13263f, #0ea5a4); box-shadow: var(--shadow-lift); }
.cash-card strong { display: block; font-size: 42px; line-height: 1; margin: 14px 0; }
.ticket-board { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 24px; align-items: stretch; }
.sla-ring { width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--success) 0 82%, var(--surface-2) 82% 100%); display: grid; place-items: center; }
.sla-ring span { width: 124px; height: 124px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 30px; font-weight: 900; }
.academy-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.course-card { min-height: 240px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.course-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--primary); font-size: 24px; }

/* 09. Authentication Pages */
.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #15213c, #7367f0 52%, #00bad1); }
.auth-shell { width: min(980px, 100%); display: grid; grid-template-columns: minmax(0,1fr) 460px; overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.12); box-shadow: 0 28px 90px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
.auth-panel { padding: 34px; color: #fff; background: linear-gradient(145deg, rgba(21,24,58,.95), rgba(15,118,140,.88)); }
.auth-panel .brand strong { color: #fff; }
.auth-panel .brand span span { color: rgba(255,255,255,.74); }
.auth-panel h2 { margin: 70px 0 12px; font-size: 38px; line-height: 1.06; font-weight: 900; }
.auth-panel p { color: rgba(255,255,255,.74); }
.auth-panel .mini-stat { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.auth-panel .mini-stat span, .auth-panel .mini-stat strong, .auth-panel .mini-stat em { color: #fff; }
.auth-card { width: 100%; padding: 34px; border-radius: 0; background: #fff; box-shadow: none; }
.auth-card .brand { padding: 0; margin-bottom: 24px; }
.auth-card .form-select, .auth-card .form-control { background-color: #fff; color: #171923; }
.auth-card .form-label { color: #303442; font-weight: 800; }
.auth-card .form-check-label, .auth-card .text-muted { color: #737b8c !important; }
.auth-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.auth-code .form-control { min-height: 54px; padding: 0; text-align: center; font-size: 22px; font-weight: 900; }
.auth-utility { width: min(520px, 100%); padding: 34px; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.24); text-align: center; }
.auth-utility i { display: inline-grid; place-items: center; width: 66px; height: 66px; margin-bottom: 18px; border-radius: 16px; color: #fff; background: var(--primary); font-size: 30px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 28px 30px; color: var(--muted); border-top: 1px solid var(--line); }
.command-modal .modal-content { position: relative; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; overflow: visible; }
.command-search-head { margin-bottom: 14px; }
.command-close { position: absolute; top: -26px; right: -26px; z-index: 3; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; background: #ffffff; color: #303442; box-shadow: 0 18px 38px rgba(15,23,42,.24); font-size: 34px; line-height: 1; font-weight: 400; }
.command-close:hover { color: #fff; border-color: var(--danger); background: var(--danger); }
.modal-backdrop { border: 0; }
.command-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.command-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9px; border: 1px solid var(--line); }
.command-list a:hover { color: var(--primary); background: rgba(115,103,240,.10); }
body[data-layout="compact"] .sidebar { width: 92px; }
body[data-layout="compact"] .sidebar .brand span:last-child, body[data-layout="compact"] .nav-head span span, body[data-layout="compact"] .nav-link span, body[data-layout="compact"] .nav-head .bi-chevron-down { display: none; }
body[data-layout="compact"] .main { margin-left: 92px; }
body[data-layout="detached"] .sidebar { inset: 18px auto 18px 18px; height: auto; border-radius: 14px; border: 1px solid var(--line); }
body[data-layout="detached"] .main { margin-left: 318px; }
body[data-layout="wide"] .content { max-width: 1680px; margin: 0 auto; }
body[data-layout="horizontal"] { display: block; }
body[data-layout="horizontal"] .sidebar { display: none; }
body[data-layout="horizontal"] .main { margin-left: 0; }
body[data-layout="horizontal"] .topbar { top: 0; }
body[data-layout="horizontal"] .horizontal-nav { display: flex; overflow: visible; }
body[data-layout="horizontal"] .content { max-width: 1500px; margin: 0 auto; width: 100%; }

/* 10. Responsive Rules */
@media (max-width: 1199px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero, .split-hero, .dashboard-brief, .crm-command, .store-command, .project-command, .project-dashboard-flow, .academy-command, .commerce-layout, .sprint-board, .ledger-grid, .ticket-board, .commerce-page-hero, .commerce-page-grid, .mail-shell, .chat-shell, .file-shell, .mail-layout, .chat-layout, .calendar-layout, .task-layout, .file-layout, .notes-layout, .contacts-layout { grid-template-columns: 1fr; }
  .action-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .deal-board, .fulfillment-lanes, .learner-board, .project-dashboard-flow .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portfolio-map { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .command-progress { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .academy-grid, .component-hero, .form-section, .alert-grid, .chart-mini-grid { grid-template-columns: 1fr; }
  .product-grid, .commerce-card-grid, .settings-block, .pricing-grid, .settings-grid, .page-panel, .faq-grid, .auth-shell, .palette, .contact-grid { grid-template-columns: 1fr; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}
@media (max-width: 991px) {
  .sidebar { transform: translateX(-105%); }
  .sidebar.show { transform: translateX(0); box-shadow: 0 20px 70px rgba(0,0,0,.25); }
  .main, body[data-layout] .main { width: 100%; max-width: 100vw; margin-left: 0; }
  .topbar { padding: 12px 16px; }
  .deal-board, .fulfillment-lanes, .learner-board { grid-template-columns: 1fr; }
  .portfolio-map { grid-template-columns: 1fr; }
  .command-progress { grid-template-columns: 1fr; }
  .release-item { grid-template-columns: 1fr; }
  .commerce-order-row, .commerce-customer-row, .review-card { grid-template-columns: 1fr; }
  .content { width: 100%; max-width: 100vw; padding: 20px 16px; overflow: hidden; }
  .content > * { max-width: 100%; }
  .top-search { max-width: none; }
  .top-search span, .top-search kbd, .layout-label, .topbar-status { display: none; }
  body[data-layout="horizontal"] .horizontal-nav { display: none; }
  .vertical-tabs { grid-template-columns: 1fr; }
  .vertical-tabs .nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .filled-pills { grid-template-columns: 1fr; }
  .action-strip { grid-template-columns: 1fr; }
  .profile-summary-grid { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
}
@media (max-width: 575px) {
  .page-title { display: block; padding: 18px; border-radius: 14px; }
  .page-title .page-actions { margin-top: 14px; }
  .page-title-main { align-items: flex-start; }
  .page-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }
  .page-title h1 { font-size: 26px; }
  .page-meta span { width: 100%; justify-content: center; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-main { width: 100%; max-width: calc(100vw - 32px); padding: 22px; min-height: 330px; overflow: hidden; }
  .hero-main h2 { max-width: calc(100% - 24px); font-size: 28px; overflow-wrap: break-word; }
  .hero-main p { max-width: calc(100% - 24px); overflow-wrap: break-word; }
  .page-title p { max-width: calc(100% - 12px); overflow-wrap: break-word; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: calc(100% - 24px); justify-content: center; white-space: normal; }
  .top-actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .top-actions { display: none; }
  .top-search { min-width: 0; max-width: calc(100vw - 88px); }
  .command-close { top: -20px; right: -8px; width: 44px; height: 44px; font-size: 30px; }
  .footer { display: block; }
}
/*
Template Name: Adminova
Description: Optional visual refinement layer for the Adminova HTML template.

Table of Contents
01. Surfaces, Typography, and Controls
02. Dashboard Overrides
03. Analytics Workspace
04. Demo Feedback Toast
05. Accessible Image Lightbox
06. Responsive and Accessibility Rules
*/

/* 01. Surfaces, Typography, and Controls */
:root {
  --bg: #f5f6fa;
  --surface-2: #f3f4f8;
  --ink: #202433;
  --text: #444b5d;
  --muted: #6f778a;
  --line: #e7e9f0;
  --primary: #635bdb;
  --primary-2: #239d95;
  --accent: #e8a14b;
  --success: #19835d;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow: 0 3px 12px rgba(24,34,56,.035);
  --shadow-soft: 0 2px 5px rgba(24,34,56,.025);
  --shadow-lift: 0 16px 48px rgba(24,34,56,.12);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141720;
  --surface: #1d212d;
  --surface-2: #252a38;
  --sidebar: #191d28;
  --ink: #eff1f8;
  --text: #c8cddd;
  --muted: #9fa8be;
  --line: #303647;
  --success: #65d3a7;
  --shadow: 0 3px 12px rgba(0,0,0,.1);
}
body { -webkit-font-smoothing: antialiased; }
.app { background: var(--bg); }
.sidebar { background: var(--sidebar); box-shadow: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.brand { margin-bottom: 24px; }
.brand-logo { background: #635bdb; box-shadow: 0 5px 12px #635bdb24; border-radius: 12px; }
.brand strong { font-weight: 750; letter-spacing: -.7px; }
.brand span:last-child { font-weight: 500; }
.nav-head { font-size: 10px; font-weight: 650; letter-spacing: 1.15px; }
.sidebar .nav-link { font-size: 13px; font-weight: 550; transition: background .16s, color .16s; }
.sidebar .nav-link i { background: transparent; font-size: 16px; }
.sidebar .nav-link:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.sidebar .nav-link:hover i { background: transparent; color: var(--primary); }
.sidebar .nav-link.active { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); box-shadow: inset 3px 0 var(--primary); }
.sidebar .nav-link.active i { color: var(--primary); background: transparent; }
[data-theme="dark"] .sidebar .nav-link.active { color: #c0baff; }
[data-theme="dark"] .sidebar .nav-link.active i { color: inherit; }
.topbar, [data-theme="dark"] .topbar { background: color-mix(in srgb, var(--surface) 94%, transparent); border-color: var(--line); box-shadow: none; }
.top-search { height: 44px; font-weight: 500; font-size: 13px; background: var(--surface-2); border-color: transparent; box-shadow: none; }
.top-search i { background: transparent; color: var(--muted); }
.top-search kbd { background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.icon-btn, .mobile-menu, .profile-btn { box-shadow: none; background: var(--surface); border-radius: 11px; }
.profile-btn { width: 42px; height: 42px; border-radius: 50%; }
.topbar-status { height: 32px; font-size: 11px; font-weight: 600; }
.horizontal-nav { background: var(--surface); border-color: var(--line); }
.horizontal-nav .dropdown-toggle { font-size: 12px; font-weight: 550; }
.page-title, [data-theme="dark"] .page-title { padding: 4px 0 22px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; align-items: center; }
.page-title::before, .page-title::after { display: none; }
.page-kicker { font-size: 10px; font-weight: 600; letter-spacing: 1px; margin-bottom: 14px; }
.page-title h1 { font-size: 29px; line-height: 1.2; font-weight: 650; letter-spacing: -.9px; }
.page-title p { font-size: 13px; max-width: 630px; }
.page-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 21px; box-shadow: none; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.page-meta { gap: 14px; margin-top: 14px; }
.page-meta span { padding: 0; min-height: 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 11px; font-weight: 500; }
[data-theme="dark"] .page-meta span { background: transparent; }
.btn { font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { box-shadow: 0 3px 6px #635bdb1a; }
.btn-soft { background: var(--surface); box-shadow: none; }
.cardx { background: var(--surface); }
.cardx-head h2 { font-size: 16px; font-weight: 650; letter-spacing: -.3px; }
.cardx-head p { font-size: 12px; }
.metric { padding: 22px; }
.metric::after { display: none; }
.metric .icon { width: 38px; height: 38px; font-size: 18px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); box-shadow: none; margin-bottom: 20px; }
.metric:nth-child(2) .icon { color: var(--primary-2); background: color-mix(in srgb, var(--primary-2) 12%, var(--surface)); }
.metric:nth-child(3) .icon { color: #a96b17; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.metric:nth-child(4) .icon { color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.metric > span:not(.icon) { font-size: 12px; font-weight: 500; }
.metric strong { font-size: 30px; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric small { margin-top: 6px; font-size: 11px; }
.mini-stat span, .signal-card span { font-weight: 500; }
.mini-stat strong, .signal-card strong { font-weight: 650; letter-spacing: -.6px; }
.status { font-weight: 600; font-size: 11px; padding: 4px 9px; }
[data-theme="dark"] .status { color: #79deb0; }
[data-theme="dark"] .status.warn { color: #f2bf7c; }
[data-theme="dark"] .status.danger { color: #ffa4a6; }
.table { --bs-table-color: var(--text); --bs-table-bg: transparent; --bs-table-border-color: var(--line); }
.table th { background: var(--surface-2); font-weight: 600; font-size: 10px; letter-spacing: .7px; }
.table td { font-size: 13px; }
.table tbody tr:hover > * { background: color-mix(in srgb, var(--primary) 3%, var(--surface)); }
.form-control, .form-select { font-size: 13px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
:where(a, button, input, select, textarea, .nav-link, .layout-choice):focus-visible,
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.focus-card { background: #292643; box-shadow: none; }
.focus-card h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.8px; }
.crm-command-panel, .project-command-panel, .hero-main, .ops-snapshot { background: #292643; box-shadow: none; }
.commerce-command-panel, .crm-cockpit-card, .live-class-panel, .commerce-brief { background: #214b4a; box-shadow: none; }
.commerce-layout { align-items: start; }
.commerce-layout > .cardx { height: auto; align-self: start; }
.commerce-layout-main { min-width: 0; }
.commerce-layout-main > .cardx { height: auto; }
.commerce-layout .warehouse-map { min-height: 0; }
.command-title, .project-command-panel .command-title, .live-class-panel h2 { font-size: clamp(25px, 2.4vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.7px; }
.command-stats span { background: #ffffff08; font-weight: 500; box-shadow: none; }
.command-stats strong { font-weight: 600; }
.command-stats em { font-weight: 400; }
.insight-tile { background: var(--surface); }
.insight-tile strong { font-size: 15px; font-weight: 600; }
.insight-tile i { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); box-shadow: none; }
[data-theme="dark"] .text-success { color: #65d3a7 !important; }
[data-theme="dark"] .text-danger { color: #ffa4a6 !important; }
[data-theme="dark"] .text-muted { color: var(--muted) !important; }
.analytics-insight, #audience-report, #campaign-performance { scroll-margin-top: 150px; }
.footer { font-size: 12px; }
/* 04. Demo Feedback Toast */
.demo-toast { position: fixed; z-index: 2000; inset-inline-end: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: #202433; color: #fff; box-shadow: 0 14px 32px rgba(20,24,44,.22); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.demo-toast.show { opacity: 1; transform: translateY(0); }
.demo-toast-success::before { content: '✓'; margin-inline-end: 8px; color: #65d3a7; }
[data-theme="dark"] .demo-toast { background: #fff; color: #202433; border-color: var(--line); }

/* 05. Accessible Image Lightbox */
body.lightbox-open { overflow: hidden; }
.demo-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 28px; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.demo-lightbox.is-open { visibility: visible; opacity: 1; }
.demo-lightbox-backdrop { position: absolute; inset: 0; background: rgba(11, 14, 24, .78); backdrop-filter: blur(5px); }
.demo-lightbox-dialog { position: relative; z-index: 1; max-width: min(1100px, 94vw); max-height: 92vh; margin: 0; padding: 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.demo-lightbox-image { display: block; max-width: min(1060px, 90vw); max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.demo-lightbox-close { position: absolute; top: -15px; right: -15px; z-index: 2; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 25px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-lift); }
.demo-lightbox-close:hover, .demo-lightbox-close:focus-visible { color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent); outline-offset: 2px; }
[data-lightbox] { cursor: zoom-in; }

/* Analytics: a compact welcome, readable KPIs, and a chart-led workspace. */
.analytics-welcome { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 24px; background: var(--surface); }
.analytics-eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 8px; }
.analytics-welcome h2 { color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -.7px; margin: 0 0 7px; }
.analytics-welcome p { color: var(--muted); margin: 0; font-size: 13px; }
.analytics-period { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 12px; white-space: nowrap; }
.analytics-period i { color: var(--primary); }
.analytics-main { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); gap: 24px; margin-bottom: 24px; }
.analytics-main .cardx { overflow: hidden; }
.analytics-main .chart { height: 275px; min-height: 0; position: relative; }
.analytics-summary { padding: 20px 24px 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.analytics-summary strong { color: var(--ink); font-size: 32px; font-weight: 600; letter-spacing: -1px; }
.analytics-legend { display: flex; gap: 16px; padding: 0 24px 22px; font-size: 11px; color: var(--muted); }
.analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-legend span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.analytics-legend span + span::before { background: var(--primary-2); }
.analytics-insight { background: #292643; border: 1px solid #393653; color: #fff; padding: 26px; border-radius: 16px; position: relative; overflow: hidden; }
.analytics-insight::before { content: ''; position: absolute; width: 220px; height: 220px; border: 1px solid #ffffff12; border-radius: 50%; inset-inline-end: -100px; top: -100px; box-shadow: 0 0 0 30px #ffffff04, 0 0 0 60px #ffffff03; pointer-events: none; }
.analytics-insight .analytics-eyebrow { color: #beb8df; }
.analytics-insight h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.5px; font-weight: 550; margin: 22px 0 12px; }
.analytics-insight p { color: #c5c1d8; font-size: 13px; line-height: 1.7; }
.analytics-insight .insight-value { color: #c4b5ff; font-size: 56px; font-weight: 550; letter-spacing: -2px; line-height: 1.2; margin: 18px 0 2px; }
.analytics-insight .btn { margin-top: 16px; }
.analytics-bottom { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 24px; }
.analytics-bottom .funnel { gap: 20px; }
.analytics-bottom .funnel-step { grid-template-columns: 70px minmax(0,1fr) 42px; font-size: 12px; }
.analytics-bottom .funnel-step strong { font-weight: 550; }
.analytics-bottom .funnel-bar { height: 8px; }
.analytics-bottom .funnel-bar span { background: var(--primary); }
.analytics-task { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.analytics-task:last-child { border-bottom: 0; }
.analytics-task > i { color: var(--primary); font-size: 18px; }
.analytics-task strong { display: block; font-size: 13px; font-weight: 550; color: var(--ink); }
.analytics-task small { font-size: 11px; color: var(--muted); }
.analytics-task > a { margin-inline-start: auto; }
.auth-layout { background: #eef0f7; }
.auth-panel { background: #292643; }
.auth-panel h2 { font-weight: 600; letter-spacing: -1px; }
.auth-shell { border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.auth-card, .auth-utility { color-scheme: light; color: #444b5d; }
.auth-card h1, .auth-card h2, .auth-utility h1 { color: #202433; }
.auth-card .brand strong { color: #202433; }

@media (max-width: 1199px) {
  .analytics-main { grid-template-columns: minmax(0,1fr); }
  .analytics-bottom { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 575px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 26px; }
  .metric .icon { width: 32px; height: 32px; margin-bottom: 14px; }
  .page-title { padding: 0 0 20px; }
  .page-title h1 { font-size: 25px; }
  .page-title .page-actions { justify-content: flex-start; }
  .page-meta span { width: auto; }
  .analytics-welcome { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 22px; }
  .analytics-welcome h2 { font-size: 21px; }
  .analytics-period { width: fit-content; }
  .analytics-main .cardx-head { align-items: flex-start; }
  .analytics-summary { gap: 8px; }
  .analytics-legend { flex-wrap: wrap; }
  .analytics-insight { padding: 24px; }
  .analytics-task { flex-wrap: wrap; }
}
@media (max-width: 359px) {
  .metric-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/*
Template Name: Adminova
Description: Product editor and browser-saved catalog styles.

Table of Contents
01. Product Editor Layout
02. Media and Variant Controls
03. Catalog Cards and Filters
04. Responsive Product Rules
*/

/* 01. Product Editor Layout */
.product-demo-note { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.product-demo-note i { color: var(--primary); }
.product-editor { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.product-editor-main, .product-editor-side { display: grid; gap: 24px; min-width: 0; }
.product-editor .cardx { min-width: 0; }
.product-editor .analytics-eyebrow { margin-bottom: 10px; }
.product-editor .form-label { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.product-editor .form-control { padding: 11px 13px; }
.product-editor select.form-control, .product-catalog-filters select { appearance: auto; }
.product-editor small { display: block; font-size: 11px; margin-top: 7px; }
.product-fields { display: grid; gap: 20px; }
.product-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-upload { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--primary) 3%, var(--surface)); text-align: center; cursor: pointer; }
.product-upload:hover { border-color: var(--primary); }
.product-upload > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--primary); font-size: 22px; }
.product-upload strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.product-upload span { color: var(--muted); font-size: 11px; }
.product-upload input { max-width: 100%; font-size: 12px; margin-top: 8px; }
/* 02. Media and Variant Controls */
.product-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.product-image-grid:empty { display: none; }
.product-image-tile { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.product-image-tile img { width: 100%; height: 125px; object-fit: contain; background: var(--surface-2); }
.product-image-tile > div { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 8px; }
.product-image-tile button { font-size: 11px; }
.product-margin { padding: 12px 16px; border-radius: 10px; background: var(--surface-2); align-self: end; }
.product-margin span { font-size: 11px; color: var(--muted); }
.product-margin strong { display: block; color: var(--ink); font-size: 22px; font-weight: 600; }
.product-check { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.product-check input { flex-shrink: 0; margin: 0; }
.product-variants { min-width: 500px; }
.product-variants .form-control { min-width: 95px; padding: 8px; }
.product-variants td { padding: 10px 8px; }
.product-preview-image { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--primary); font-size: 42px; overflow: hidden; }
.product-preview-image img { width: 100%; height: 100%; object-fit: contain; }
.product-preview-title { color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -.4px; overflow-wrap: anywhere; }
#preview-description { overflow-wrap: anywhere; }
.product-preview-price { display: flex; align-items: center; gap: 10px; }
.product-preview-price strong { color: var(--ink); font-size: 24px; font-weight: 600; }
.product-preview-price del { color: var(--muted); font-size: 13px; }
.product-feedback { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--line); font-size: 13px; }
.product-feedback.is-error { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--ink); border-color: var(--danger); }
.product-feedback.is-success { background: color-mix(in srgb, var(--success) 8%, var(--surface)); color: var(--ink); }
.product-catalog-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)); gap: 12px; }
.product-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.product-catalog-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.product-catalog-art { display: grid; place-items: center; aspect-ratio: 4/3; background: color-mix(in srgb, var(--primary) 6%, var(--surface-2)); position: relative; color: var(--primary); font-size: 52px; }
.product-catalog-card:nth-child(3n+2) .product-catalog-art { background: color-mix(in srgb, var(--primary-2) 8%, var(--surface-2)); color: var(--primary-2); }
.product-catalog-card:nth-child(3n+3) .product-catalog-art { background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); color: #a96b17; }
.product-catalog-art img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.product-catalog-art .status { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.product-catalog-body { padding: 20px; }
.product-catalog-body h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; overflow-wrap: anywhere; }
.product-catalog-body h3 a:hover { color: var(--primary); }
.product-catalog-price { display: flex; align-items: center; gap: 8px; }
.product-catalog-price strong { color: var(--ink); font-size: 22px; font-weight: 600; }
.product-catalog-price del { color: var(--muted); font-size: 12px; }
.product-catalog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: 11px; }
.product-catalog-metrics .metric { padding: 20px; }
.product-editor [hidden], #catalog-empty[hidden], #product-feedback[hidden] { display: none !important; }
@media (max-width: 1199px) {
  .product-editor { grid-template-columns: minmax(0,1fr); }
  .product-editor-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-editor-side > :first-child { grid-row: span 2; }
  .product-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575px) {
  .product-editor-side, .product-field-pair, .product-catalog-grid, .product-catalog-filters { grid-template-columns: minmax(0,1fr); }
  .product-editor-side > :first-child { grid-row: auto; }
  #product-catalog > .cardx-head { flex-wrap: wrap; }
  .product-editor .cardx-head, .product-editor .cardx-body, #product-catalog > .cardx-body { padding-inline: 18px; }
}

/* Shared Analytics layout for Bootstrap, Tailwind HTML, and Next.js. */
.analytics-dashboard{display:grid;gap:24px;min-width:0;color:var(--ink);font-size:13px;line-height:1.55}
.analytics-dashboard *{box-sizing:border-box}
.analytics-dashboard h2,.analytics-dashboard p{margin:0}
.analytics-dashboard svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.analytics-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
.analytics-card-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px;padding:22px 24px;border-bottom:1px solid var(--line)}
.analytics-card-header h2{font-size:16px;font-weight:600;letter-spacing:-.3px;line-height:1.4}
.analytics-card-header p{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.55}
.analytics-dashboard .analytics-eyebrow{display:block;margin:0 0 9px;color:var(--muted);font-size:10px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase}
.analytics-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px}
.analytics-intro h2{font-size:23px;font-weight:600;letter-spacing:-.6px}
.analytics-intro p{margin-top:8px;color:var(--muted);font-size:12px}
.analytics-period-control{display:flex;align-items:center;gap:10px;flex:none;border:1px solid var(--line);border-radius:10px;padding:9px 12px;color:var(--muted)}
.analytics-period-control svg{color:var(--primary)}
.analytics-period-control select{max-width:150px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;padding:3px;cursor:pointer}
.analytics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.analytics-metric{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.analytics-metric-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}
.analytics-metric>span:not(.analytics-metric-icon){color:var(--muted);font-size:12px}
.analytics-metric-value{display:flex;align-items:center;justify-content:space-between;gap:10px;align-self:stretch;flex-wrap:wrap}
.analytics-metric-value strong{font-size:clamp(24px,2vw,32px);font-weight:600;letter-spacing:-.8px;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap}
.analytics-metric small{font-size:11px;color:var(--muted)}
.analytics-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:600;white-space:nowrap;background:color-mix(in srgb,var(--success,#19835d) 9%,var(--surface));color:var(--success,#19835d)}
.analytics-badge[data-tone=warning]{background:color-mix(in srgb,#e8a14b 12%,var(--surface));color:#99611c}
.analytics-badge[data-tone=danger]{background:color-mix(in srgb,#dc3545 9%,var(--surface));color:#b83a4d}
.analytics-overview-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:24px;align-items:stretch}
.analytics-audience-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px;padding:22px 24px 0}
.analytics-audience-summary strong{font-size:32px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.analytics-audience-summary>span:last-child{font-size:11px;color:var(--muted)}
.analytics-audience-chart{position:relative;height:270px;min-height:0;margin:18px 20px 0}
.analytics-chart-legend{display:flex;flex-wrap:wrap;gap:18px;padding:16px 24px 22px;color:var(--muted);font-size:11px}
.analytics-chart-legend span{display:inline-flex;align-items:center;gap:7px}
.analytics-chart-legend i,.analytics-channel-legend i{display:inline-block;width:8px;height:8px;flex:none;border-radius:50%}
.analytics-insight-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:15px;padding:28px;border-radius:16px;border:1px solid #393653;background:#292643;color:#fff;overflow:hidden}
.analytics-insight-card::before{content:'';position:absolute;inset-inline-end:-110px;top:-100px;width:230px;height:230px;border:1px solid #ffffff12;border-radius:50%;box-shadow:0 0 0 30px #ffffff04,0 0 0 60px #ffffff03;pointer-events:none}
.analytics-insight-card .analytics-eyebrow{color:#beb8df;margin-bottom:4px}
.analytics-insight-card h2{font-size:23px;line-height:1.35;font-weight:550;letter-spacing:-.5px}
.analytics-insight-card strong{font-size:54px;line-height:1.15;font-weight:550;letter-spacing:-2px;color:#c4b5ff}
.analytics-insight-card p{font-size:12px;line-height:1.8;color:#c5c1d8}
.analytics-insight-card .analytics-button{margin-top:auto;background:#fff;color:#292643;border-color:#fff}
.analytics-detail-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:stretch}
.analytics-detail-grid>.analytics-card{display:flex;flex-direction:column;height:100%}
.analytics-detail-grid .analytics-card-header{flex:none;min-height:92px}
.analytics-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:11px;font-weight:550;text-decoration:none;white-space:nowrap;cursor:pointer}
.analytics-button:hover{background:var(--surface-2,var(--subtle));color:var(--primary)}
.analytics-search-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.analytics-search-field{flex:1;min-width:140px;margin:0}
.analytics-input{width:100%;min-height:40px;border:1px solid var(--line);border-radius:9px;padding:10px 12px;font:inherit;font-size:12px;color:var(--ink);background:var(--surface)}
.analytics-search-toolbar>span{color:var(--muted);font-size:11px;white-space:nowrap}
.analytics-table-wrap{overflow-x:auto;flex:1}
.analytics-table{width:100%;margin:0;border-collapse:collapse;text-align:start;font-size:12px}
.analytics-table th{text-align:start;padding:13px 20px;background:var(--surface-2,var(--subtle));font-size:10px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.analytics-table td{height:65px;padding:16px 20px;border-bottom:1px solid var(--line);vertical-align:middle;color:var(--ink);font-variant-numeric:tabular-nums}
.analytics-table th:nth-child(2),.analytics-table td:nth-child(2){text-align:end;white-space:nowrap}
.analytics-table th:last-child,.analytics-table td:last-child{width:110px;text-align:end}
.analytics-table td:first-child{font-weight:500}
.analytics-card-note{padding:15px 20px;color:var(--muted);font-size:10px;line-height:1.6}
.analytics-funnel-body{display:flex;flex-direction:column;flex:1;gap:20px;padding:22px 24px}
.analytics-funnel-list{display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:21px}
.analytics-funnel-step{display:grid;grid-template-columns:78px minmax(0,1fr) minmax(65px,auto);align-items:center;column-gap:12px;row-gap:4px;font-size:12px}
.analytics-funnel-step>strong{font-weight:500}
.analytics-funnel-step>[data-funnel]{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink)}
.analytics-funnel-step>small{grid-column:2/-1;color:var(--muted);font-size:10px;text-align:end}
.analytics-funnel-track{height:8px;overflow:hidden;border-radius:99px;background:var(--surface-2,var(--subtle))}
.analytics-funnel-track>span{display:block;min-width:2px;height:100%;border-radius:inherit;background:var(--primary)}
.analytics-funnel-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-radius:9px;background:color-mix(in srgb,var(--success,#19835d) 6%,var(--surface));font-size:11px;color:var(--muted)}
.analytics-funnel-summary strong{color:var(--success,#19835d);font-size:19px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.analytics-actions-body{display:flex;flex:1;flex-direction:column;padding:5px 24px}
.analytics-action{display:flex;align-items:center;gap:12px;flex:1;padding:20px 0;border-bottom:1px solid var(--line)}
.analytics-action:last-child{border-bottom:0}
.analytics-action>svg{color:var(--primary)}
.analytics-action>div{flex:1;min-width:0}
.analytics-action strong{display:block;font-size:12px;font-weight:500;line-height:1.5}
.analytics-action small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.6}
.analytics-channels-body{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:22px 24px;gap:24px}
.analytics-channel-chart{position:relative;width:100%;max-width:240px;height:200px;flex:none}
.analytics-channel-total{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;pointer-events:none}
.analytics-channel-total strong{font-size:28px;font-weight:600;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.analytics-channel-total span{font-size:10px;color:var(--muted)}
.analytics-channel-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 20px;margin:0;padding:0;list-style:none;font-size:11px;color:var(--muted)}
.analytics-channel-legend li{display:flex;align-items:center;gap:7px}
.analytics-channel-legend strong{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.analytics-dashboard :focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 50%,transparent);outline-offset:3px}
.analytics-feedback{margin:0;color:var(--muted);font-size:11px}
.analytics-dashboard [hidden]{display:none!important}
[data-theme=dark] .analytics-badge{color:#85d8b5}
[data-theme=dark] .analytics-badge[data-tone=warning]{color:#efbd77}
[data-theme=dark] .analytics-badge[data-tone=danger]{color:#ff9fa5}
[data-theme=dark] .analytics-funnel-summary strong{color:#85d8b5}
@media(max-width:1199px){.analytics-overview-grid,.analytics-detail-grid{grid-template-columns:minmax(0,1fr)}.analytics-detail-grid>.analytics-card{height:auto}.analytics-card-header,.analytics-detail-grid .analytics-card-header{min-height:0}.analytics-funnel-list{gap:20px}.analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){.analytics-dashboard{gap:18px}.analytics-intro{align-items:flex-start;flex-direction:column;padding:22px}.analytics-intro h2{font-size:21px}.analytics-metrics{gap:12px}.analytics-metric{padding:17px;gap:12px}.analytics-metric-value{align-items:flex-start;flex-direction:column}.analytics-metric-value strong{font-size:25px}.analytics-card-header{padding:20px}.analytics-card-header h2{font-size:15px}.analytics-funnel-body,.analytics-actions-body,.analytics-channels-body{padding-inline:20px}.analytics-funnel-step{grid-template-columns:66px minmax(0,1fr) 64px;gap:8px}.analytics-action{flex-wrap:wrap}.analytics-action .analytics-button{margin-inline-start:30px}.analytics-audience-chart{height:230px;margin-inline:10px}.analytics-table th,.analytics-table td{padding-inline:14px}.analytics-table td:first-child{min-width:140px}.analytics-overview-grid,.analytics-detail-grid{gap:18px}}
.analytics-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.analytics-channel-legend small{display:block;margin-top:3px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.analytics-button:disabled{opacity:.5;cursor:not-allowed}
