/* CiCC-Stat v1.1.0 — Sapphire / Cyan Studio Glassmorphism & Statistical Lab UI */
html body.cicc-product-dark-page.cicc-stat-app-page,
html[data-theme="light"] body.cicc-product-dark-page.cicc-stat-app-page,
html[data-theme="dark"] body.cicc-product-dark-page.cicc-stat-app-page {
  background: #040a16 !important;
  color: #f8fafc !important;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  margin: 0;
}

.cstat-page-wrap {
  padding-top: 68px;
  min-height: 100vh;
  overflow-x: clip;
  color: #f8fafc;
  background-color: #040a16;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.14) 0%, transparent 38%),
    radial-gradient(rgba(56, 189, 248, 0.10) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

/* Full-Width 2-Tier Studio Command Bar */
.cstat-bar {
  position: sticky;
  top: 104px;
  z-index: 880;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
  background: rgba(7, 15, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(14, 165, 233, 0.36);
  padding: 9px clamp(14px, 3vw, 48px) 10px;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body:has(#site-header.header-hidden) .cstat-bar,
body.cstat-header-hidden .cstat-bar {
  top: 36px !important;
}
.cstat-bar-inner {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cstat-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cstat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cstat-brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 62%, #10b981 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cstat-brand-text strong {
  display: block;
  font-size: 14px;
  color: #ffffff !important;
  line-height: 1.2;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.cstat-brand-text span {
  display: block;
  font-size: 10.5px;
  color: #7dd3fc !important;
  white-space: nowrap;
}

.cstat-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.cstat-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(12, 24, 48, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.cstat-bar-link:hover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.22);
  color: #ffffff !important;
}

.cstat-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}
.cstat-tab-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(12, 24, 48, 0.76);
  color: #cbd5e1 !important;
  font-size: 11.8px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cstat-tab-btn:hover {
  border-color: #38bdf8;
  color: #ffffff !important;
  background: rgba(14, 165, 233, 0.2);
  transform: translateY(-1px);
}
.cstat-tab-btn.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border-color: #7dd3fc;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Main Container */
.cstat-container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 16px clamp(14px, 3vw, 48px) 72px;
  box-sizing: border-box;
}
.cstat-container *,
.cstat-container *::before,
.cstat-container *::after {
  box-sizing: border-box;
}

.cstat-hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.24), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(16, 185, 129, 0.14), transparent 50%),
    linear-gradient(160deg, rgba(11, 22, 46, 0.96) 0%, rgba(6, 12, 26, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 14px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-width: 0;
  max-width: 100%;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-hero-strip h1 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 35%, #7dd3fc 85%, #6ee7b7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-hero-strip p {
  font-size: 13px;
  color: #cbd5e1 !important;
  margin: 0;
}

.cstat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cstat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(11, 22, 46, 0.9);
  color: #e0f2fe !important;
  white-space: nowrap;
}
.cstat-pill.acc { background: rgba(14, 165, 233, 0.22); border-color: #0ea5e9; color: #bae6fd !important; }
.cstat-pill.green { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.5); color: #34d399 !important; }
.cstat-pill.amber { background: rgba(245, 158, 11, 0.18); border-color: rgba(251, 191, 36, 0.5); color: #fbbf24 !important; }
.cstat-pill.rose { background: rgba(244, 63, 94, 0.22); border-color: rgba(251, 113, 133, 0.52); color: #fda4af !important; }
.cstat-pulse-pill { box-shadow: 0 0 14px rgba(16, 185, 129, 0.26); }

@keyframes cstatFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cstat-panel { display: none; }
.cstat-panel.is-active {
  display: block;
  animation: cstatFadeUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sub-tool Navigation Pills */
.cstat-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 8px;
  background: rgba(8, 17, 36, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
}
.cstat-sub-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(14, 28, 56, 0.72);
  color: #cbd5e1 !important;
  font-size: 12.2px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.cstat-sub-btn:hover {
  border-color: #38bdf8;
  color: #ffffff !important;
  background: rgba(14, 165, 233, 0.2);
}
.cstat-sub-btn.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border-color: #7dd3fc;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

/* Cards & Grids */
.cstat-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.cstat-grid-asym {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}
.cstat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cstat-kpi-grid,
.cstat-kpi-grid-4,
.cstat-kpi-grid-5 {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.cstat-kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cstat-kpi-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.cstat-grid-2 > *,
.cstat-grid-asym > *,
.cstat-grid-3 > *,
.cstat-kpi-grid-4 > *,
.cstat-kpi-grid-5 > * {
  min-width: 0;
}

.cstat-card {
  background: linear-gradient(165deg, rgba(12, 24, 50, 0.92) 0%, rgba(6, 13, 28, 0.96) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 15px;
  padding: 15px 16px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cstat-drawer {
  background: rgba(5, 11, 24, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.34) !important;
  border-radius: 13px;
  padding: 13px 15px;
  margin: 10px 0 12px;
}
.cstat-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-card-head h2,
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-card-head h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
}

.cstat-kpi-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(11, 22, 46, 0.95), rgba(5, 11, 24, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 10px 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cstat-kpi-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}
.cstat-kpi-grid-4 > :nth-child(2)::before,
.cstat-kpi-grid-5 > :nth-child(2)::before { background: linear-gradient(90deg, #10b981, #34d399); }
.cstat-kpi-grid-4 > :nth-child(3)::before,
.cstat-kpi-grid-5 > :nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.cstat-kpi-grid-4 > :nth-child(4)::before,
.cstat-kpi-grid-5 > :nth-child(4)::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.cstat-kpi-grid-5 > :nth-child(5)::before { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.cstat-kpi-box small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #7dd3fc !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cstat-kpi-box strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.cstat-kpi-box span {
  font-size: 11.5px;
  color: #94a3b8 !important;
}

.cstat-verdict {
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(14, 165, 233, 0.12);
  color: #e0f2fe !important;
}
.cstat-verdict.is-sig {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7 !important;
}
.cstat-verdict.is-warn {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a !important;
}
.cstat-verdict.is-bad {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af !important;
}

.cstat-eq-box {
  background: linear-gradient(135deg, rgba(10, 20, 42, 0.96), rgba(5, 11, 24, 0.98));
  border: 1px solid rgba(14, 165, 233, 0.42);
  border-left: 4px solid #0ea5e9;
  border-radius: 11px;
  padding: 12px 15px;
  font-family: monospace;
  font-size: 13px;
  color: #e0f2fe !important;
  margin-bottom: 14px;
  overflow-x: auto;
}

/* Forms & Buttons */
.cstat-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.cstat-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #7dd3fc !important;
  margin-bottom: 4px;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-field select,
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-field input[type="number"],
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-field input[type="text"],
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-field textarea {
  width: 100% !important;
  max-width: 100% !important;
  background: #040914 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-field select:focus,
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-field input:focus,
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-field textarea:focus {
  outline: none !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}
.cstat-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}
.cstat-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(11, 22, 46, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.26);
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
}

.cstat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0;
}
.cstat-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(12, 24, 50, 0.92);
  color: #f8fafc !important;
  font-size: 12.8px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.cstat-btn:hover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.22);
  transform: translateY(-1px);
}
.cstat-btn.primary,
.cstat-btn.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
  border-color: #7dd3fc !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.36);
}
.cstat-btn.emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #6ee7b7;
  color: #ffffff !important;
}
.cstat-btn.danger {
  border-color: rgba(244, 63, 94, 0.45);
  color: #fda4af !important;
}

/* Canvas & Tables */
.cstat-canvas-box {
  background: #040914;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 0 28px rgba(14, 165, 233, 0.08);
}
.cstat-canvas-box canvas {
  display: block;
  width: 100%;
  height: auto;
}

.cstat-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  background: rgba(5, 11, 24, 0.94);
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.45) #040914;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-table {
  display: table !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 12.5px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-table th {
  background: rgba(14, 30, 62, 0.96) !important;
  color: #7dd3fc !important;
  font-weight: 700 !important;
  padding: 9px 11px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.26) !important;
  white-space: nowrap;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-table td {
  background: transparent !important;
  color: #e2e8f0 !important;
  padding: 7px 11px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-table tbody tr:hover td {
  background: rgba(14, 165, 233, 0.1) !important;
}

/* Worksheet Data Grid */
.cstat-ws-wrap {
  width: 100%;
  max-height: 490px;
  overflow: auto;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  background: #030812;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.45) #030812;
}
.cstat-ws-wrap::-webkit-scrollbar,
.cstat-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.cstat-ws-wrap::-webkit-scrollbar-track,
.cstat-table-wrap::-webkit-scrollbar-track {
  background: #030812;
}
.cstat-ws-wrap::-webkit-scrollbar-thumb,
.cstat-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.42);
  border-radius: 999px;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table {
  display: table !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0d1d3a !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  padding: 7px 8px !important;
  min-width: 132px;
  width: auto !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table th.cstat-ws-rowidx,
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table td.cstat-ws-rowidx {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 48px !important;
  width: 48px !important;
  max-width: 54px !important;
  text-align: center !important;
  background: #0a162d !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  padding: 6px 4px !important;
  border: 1px solid rgba(56, 189, 248, 0.16) !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table thead th.cstat-ws-rowidx {
  z-index: 4;
}
.cstat-ws-colhead {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cstat-ws-colid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #38bdf8;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-colname {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  background: #040914 !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 6px !important;
  padding: 4px 7px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table tbody td {
  background: #050d1c !important;
  color: #f1f5f9 !important;
  padding: 0 !important;
  border: 1px solid rgba(56, 189, 248, 0.14) !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table tbody tr:nth-child(even) td:not(.cstat-ws-rowidx) {
  background: #081326 !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-table tbody tr:hover td:not(.cstat-ws-rowidx) {
  background: rgba(14, 165, 233, 0.14) !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-cell {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
  color: #f1f5f9 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 6px 9px !important;
  font-size: 12.5px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  box-shadow: none !important;
}
html body.cicc-product-dark-page.cicc-stat-app-page .site-main .cstat-ws-cell:focus {
  outline: none !important;
  background: rgba(14, 165, 233, 0.22) !important;
  box-shadow: inset 0 0 0 1px #38bdf8 !important;
}

.cstat-case-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(12, 24, 50, 0.94), rgba(6, 13, 28, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}
.cstat-case-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
}
.cstat-case-card h3 { margin: 0; font-size: 16px; color: #ffffff !important; }
.cstat-case-card p { margin: 0; font-size: 13px; color: #cbd5e1 !important; flex: 1; }

.cstat-toast {
  position: fixed;
  top: 224px;
  right: 24px;
  z-index: 950;
  background: rgba(7, 15, 32, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid #0ea5e9;
  color: #ffffff !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cstat-toast.is-show { opacity: 1; transform: translateY(0); }
.cstat-toast.is-green { border-color: #34d399; color: #6ee7b7 !important; }
.cstat-toast.is-amber { border-color: #fbbf24; color: #fde68a !important; }

.cstat-footer-note {
  margin-top: 24px;
  background: rgba(8, 17, 36, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 12.5px;
  color: #94a3b8 !important;
}

@media (max-width: 1220px) {
  .cstat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cstat-tab-btn {
    width: auto;
    flex: 1 1 auto;
    padding: 7px 11px;
  }
}

@media (max-width: 1024px) {
  .cstat-grid-2,
  .cstat-grid-asym,
  .cstat-grid-3 {
    grid-template-columns: 1fr;
  }
  .cstat-kpi-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cstat-kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .cstat-bar { padding: 8px 12px 9px; }
  .cstat-kpi-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cstat-bar { position: relative; top: 0 !important; padding: 10px 12px; }
  body:has(#site-header.header-hidden) .cstat-bar,
  body.cstat-header-hidden .cstat-bar { top: 0 !important; }
  .cstat-bar-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .cstat-brand-text span { white-space: normal; }
  .cstat-bar-links { display: flex; width: 100%; gap: 6px; }
  .cstat-bar-link { flex: 1 1 0; justify-content: center; font-size: 11.5px; padding: 6px 8px; }
  .cstat-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 7px; }
  .cstat-tab-btn { flex: 1 1 calc(50% - 6px); font-size: 11.5px; padding: 7px 8px; }
  .cstat-container { padding: 16px 12px 84px; }
  html body.cicc-product-dark-page .site-main .cstat-hero-strip h1 { font-size: 20px; }
  .cstat-toast { left: 12px; right: 12px; top: auto; bottom: 78px; }
}
