/* ===== PSC CMS - admin panel theme =====
   Registered through FilamentAsset (see AppServiceProvider), so it needs no Vite build:
   `php artisan filament:assets` publishes it, and the Docker entrypoint runs that on boot.
   The palette mirrors the public website - deep purple, gold accent, Manrope headings. */

:root {
  --psc-purple: #362B68;
  --psc-purple-deep: #241C4A;
  --psc-purple-mid: #5B4AA6;
  --psc-gold: #C8A348;
  --psc-gold-soft: rgba(200, 163, 72, 0.14);
  --psc-ink: #251F3F;
  --psc-muted: #6A6386;
  --psc-line: #E9E7F2;
  --psc-canvas: #F7F6FB;
  --psc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Manrope for anything that carries weight; Inter (the panel default) for body copy. */
.fi-header-heading,
.fi-simple-header-heading,
.fi-section-header-heading,
.fi-wi-stats-overview-stat-value,
.fi-modal-heading,
.fi-sidebar-group-label {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.fi-body { background-color: var(--psc-canvas); }
.dark .fi-body { background-color: #17132C; }

/* ---------- Sidebar: the one strongly branded surface ---------- */
.fi-sidebar,
.fi-sidebar-header {
  background: linear-gradient(180deg, var(--psc-purple) 0%, var(--psc-purple-deep) 100%);
  border-right: 0;
}
.fi-sidebar-header { box-shadow: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

/* The nav scrolls, and the platform's default scrollbar cuts a bright grey stripe — arrow
   buttons and all — down the purple. Both syntaxes are here on purpose: Chrome 121+ and
   Firefox honour `scrollbar-*`, older Chrome and Safari only the -webkit- pseudo-elements. */
.fi-sidebar .fi-sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.26) rgba(255, 255, 255, 0.06);
}
.fi-sidebar .fi-sidebar-nav::-webkit-scrollbar { width: 8px; }
.fi-sidebar .fi-sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
}
.fi-sidebar .fi-sidebar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.26);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color .3s var(--psc-ease);
}
.fi-sidebar .fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(200, 163, 72, 0.75);
}
/* Chrome on Windows draws stepper arrows unless they are asked to go away. */
.fi-sidebar .fi-sidebar-nav::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.fi-sidebar .fi-sidebar-nav::-webkit-scrollbar-corner { background: transparent; }

/* Every rule below is scoped to `.fi-sidebar` on purpose: Filament colours the label,
   the icon and the group rail with their own selectors, so a colour set on the row
   alone never reaches them. The extra class also outweighs Filament's own specificity. */
.fi-sidebar .fi-sidebar-group-label {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fi-sidebar .fi-sidebar-group-btn:hover .fi-sidebar-group-label { color: #FFFFFF; }
.fi-sidebar .fi-sidebar-group-btn .fi-icon,
.fi-sidebar .fi-sidebar-group-collapse-btn { color: rgba(255, 255, 255, 0.4); }
.fi-sidebar .fi-sidebar-group-btn { cursor: pointer; }

/* ---------- Group open/close animation ----------
   Filament's markup asks for `x-collapse`, but its JS bundle never registers that Alpine
   directive (it ships float, load-css, load-js, sortable, tooltip and mousetrap only), so
   groups snapped open and shut. The height and fade are done here instead, keyed off the
   `fi-collapsed` class Filament already toggles on the group.

   `display` is forced only while the sidebar is expanded, so the icon-only sidebar keeps
   using its dropdown. Each group's open height arrives as --psc-group-h from the accordion
   script; the fallback keeps every item reachable if that script never runs. */
.fi-sidebar.fi-sidebar-open .fi-sidebar-group-items {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  max-height: var(--psc-group-h, 100rem);
  opacity: 1;
  transition: max-height .42s var(--psc-ease), opacity .3s var(--psc-ease);
}
/* The `:not` guard keeps the unlabelled group (Dashboard) visible whatever happens —
   Filament renders it as a collapsible group too. */
.fi-sidebar.fi-sidebar-open .fi-sidebar-group.fi-collapsed:not([data-group-label=""]) .fi-sidebar-group-items {
  max-height: 0;
  opacity: 0;
}
.fi-sidebar .fi-sidebar-group-collapse-btn {
  transition: rotate .42s var(--psc-ease), color .3s var(--psc-ease);
}

.fi-sidebar .fi-sidebar-item-btn {
  border-radius: 10px;
  transition: background-color .4s var(--psc-ease);
}
.fi-sidebar .fi-sidebar-item-label {
  color: rgba(255, 255, 255, 0.78);
  transition: color .3s var(--psc-ease);
}
.fi-sidebar .fi-sidebar-item-btn .fi-icon {
  color: rgba(255, 255, 255, 0.52);
  transition: color .3s var(--psc-ease);
}
/* The dot-and-line rail drawn beside items that sit inside a group. */
.fi-sidebar .fi-sidebar-item-grouped-border-part { background-color: rgba(255, 255, 255, 0.3); }
.fi-sidebar .fi-sidebar-item-grouped-border-part-not-first,
.fi-sidebar .fi-sidebar-item-grouped-border-part-not-last { background-color: rgba(255, 255, 255, 0.16); }

.fi-sidebar .fi-sidebar-item-btn:hover { background-color: rgba(255, 255, 255, 0.08); }
.fi-sidebar .fi-sidebar-item-btn:hover .fi-sidebar-item-label { color: #FFFFFF; }
.fi-sidebar .fi-sidebar-item-btn:hover .fi-icon { color: var(--psc-gold); }
.fi-sidebar .fi-sidebar-item-btn:hover .fi-sidebar-item-grouped-border-part { background-color: var(--psc-gold); }
.fi-sidebar .fi-sidebar-item-btn:focus-visible {
  outline: 2px solid var(--psc-gold);
  outline-offset: -2px;
}

/* Active item: gold wash plus the hairline rule the website uses for its section nav.
   Filament marks the active row with `fi-active`, not `fi-sidebar-item-active`. */
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
  background-color: var(--psc-gold-soft);
  box-shadow: inset 3px 0 0 var(--psc-gold);
}
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label {
  color: #FFFFFF;
  font-weight: 700;
}
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: var(--psc-gold); }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-grouped-border > .fi-sidebar-item-grouped-border-part {
  background-color: var(--psc-gold);
}

/* The collapse handle sits on the same dark field as the brand block. */
.fi-topbar-close-collapse-sidebar-btn,
.fi-topbar-open-collapse-sidebar-btn { color: rgba(255, 255, 255, 0.6); }
.fi-topbar-close-collapse-sidebar-btn:hover,
.fi-topbar-open-collapse-sidebar-btn:hover { color: var(--psc-gold); }

/* ---------- Topbar ---------- */
.fi-topbar > nav {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--psc-line);
  box-shadow: none;
}
.dark .fi-topbar > nav { background-color: #201A3D; border-bottom-color: rgba(255, 255, 255, 0.08); }

/* ---------- Page headings ---------- */
.fi-header-heading { font-weight: 800; color: var(--psc-ink); }
.dark .fi-header-heading { color: #F4F2FA; }
.fi-header-subheading { color: var(--psc-muted); }

/* ---------- Cards, sections, widgets ---------- */
.fi-section,
.fi-wi-stats-overview-stat,
.fi-ta-ctn {
  border: 1px solid var(--psc-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(54, 43, 104, 0.04);
}
.dark .fi-section,
.dark .fi-wi-stats-overview-stat,
.dark .fi-ta-ctn { border-color: rgba(255, 255, 255, 0.09); }

/* ---------- Stat cards: the numeral does the talking ---------- */
.fi-wi-stats-overview-stat {
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--psc-ease), box-shadow .5s var(--psc-ease);
}
.fi-wi-stats-overview-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--psc-gold);
  opacity: 0;
  transition: opacity .4s var(--psc-ease);
}
.fi-wi-stats-overview-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(54, 43, 104, 0.12);
}
.fi-wi-stats-overview-stat:hover::before { opacity: 1; }

/* The icon sits in a tinted badge beside the label. Filament renders it with no colour of
   its own there, so the tint is the panel purple rather than the stat's status colour. */
.fi-wi-stats-overview-stat-label-ctn { align-items: center; gap: 10px; }
.fi-wi-stats-overview-stat-label-ctn > .fi-icon {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(91, 74, 166, 0.11);
  color: var(--psc-purple-mid);
}
.dark .fi-wi-stats-overview-stat-label-ctn > .fi-icon {
  background: rgba(255, 255, 255, 0.09);
  color: #C0B4EC;
}
.fi-wi-stats-overview-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--psc-muted);
}
.fi-wi-stats-overview-stat-value {
  font-weight: 800;
  font-size: 2.15rem;
  line-height: 1.05;
  color: var(--psc-purple);
}
.dark .fi-wi-stats-overview-stat-value { color: #FFFFFF; }
.fi-wi-stats-overview-stat-description { font-size: 12.5px; }

/* ---------- Card headers ----------
   Charts and table widgets render through Filament's section component, which is plainer
   than the two hand-built panels. Matching them up makes the dashboard read as one piece. */
.fi-section-header-heading {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--psc-ink);
}
.dark .fi-section-header-heading { color: #F4F2FA; }
.fi-section-header-description { font-size: 12.5px; color: var(--psc-muted); }

/* ---------- Dashboard entrance ----------
   Widgets ease in once on load, in reading order, rather than all snapping in together. */
@keyframes psc-widget-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
/* `backwards`, not `both`: once it ends the wrapper drops its transform, so it stops being
   a containing block that would trap dropdowns and modals inside the card. */
.fi-wi-widget {
  animation: psc-widget-in .55s cubic-bezier(.22, .61, .21, 1) backwards;
}
.fi-wi-widget:nth-child(2) { animation-delay: .05s; }
.fi-wi-widget:nth-child(3) { animation-delay: .1s; }
.fi-wi-widget:nth-child(4) { animation-delay: .15s; }
.fi-wi-widget:nth-child(5) { animation-delay: .2s; }
.fi-wi-widget:nth-child(n + 6) { animation-delay: .25s; }

/* ---------- Tables ---------- */
.fi-ta-header-cell {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--psc-muted);
}
.fi-ta-row { transition: background-color .3s var(--psc-ease); }
.fi-ta-row:hover { background-color: rgba(200, 163, 72, 0.05); }

/* ---------- Buttons ---------- */
.fi-btn { border-radius: 10px; font-weight: 700; }

/* ---------- Login ---------- */
.fi-simple-layout { background: var(--psc-canvas); }
.dark .fi-simple-layout { background: #17132C; }
.fi-simple-main {
  border: 1px solid var(--psc-line);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(54, 43, 104, 0.12);
}
.dark .fi-simple-main { border-color: rgba(255, 255, 255, 0.09); }
.fi-simple-header-heading { font-weight: 800; color: var(--psc-purple); }
.dark .fi-simple-header-heading { color: #FFFFFF; }

/* Crest + wordmark above the login card, injected by a render hook. */
.psc-login-brand { text-align: center; margin-bottom: 26px; }
.psc-login-brand img { height: 62px; width: auto; margin: 0 auto 14px; display: block; }
.psc-login-brand-name {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--psc-purple);
  letter-spacing: -0.01em;
}
.dark .psc-login-brand-name { color: #FFFFFF; }
.psc-login-brand-tag {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--psc-gold);
}

/* Sign-off pinned under the sidebar navigation. */
.psc-sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.7;
}
.psc-sidebar-foot strong { color: var(--psc-gold); font-weight: 700; }

/* ---------- Dashboard greeting band ---------- */
.psc-dash-band {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 30px 32px;
  background: linear-gradient(100deg, var(--psc-purple-deep) 0%, var(--psc-purple) 62%, #43357F 100%);
}
.psc-dash-band-ring {
  position: absolute;
  right: 4%;
  top: -120%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(200, 163, 72, 0.18);
  pointer-events: none;
}
.psc-dash-band-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--psc-gold);
}
.psc-dash-band-title {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 12px 0 0;
}
.psc-dash-band-sub {
  margin: 10px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}
.psc-dash-band-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.psc-dash-band-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 0;
}
.psc-dash-band-meta > div { min-width: 96px; }
.psc-dash-band-meta dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.psc-dash-band-meta dd {
  margin: 5px 0 0;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--psc-gold);
  line-height: 1;
}

/* Shortcuts into the work that usually follows opening the dashboard. */
.psc-dash-band-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.psc-dash-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .4s var(--psc-ease), border-color .4s var(--psc-ease), transform .4s var(--psc-ease);
}
.psc-dash-action svg { width: 15px; height: 15px; color: var(--psc-gold); }
.psc-dash-action:hover {
  background: rgba(200, 163, 72, 0.2);
  border-color: rgba(200, 163, 72, 0.55);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.psc-dash-action:focus-visible { outline: 2px solid var(--psc-gold); outline-offset: 2px; }
.psc-dash-action-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 99px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Total visitors panel ---------- */
.psc-vis { padding: 0; overflow: hidden; }
.psc-vis-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--psc-line);
}
.dark .psc-vis-head { border-bottom-color: rgba(255, 255, 255, 0.09); }
.psc-vis-head-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.12);
  color: #16A34A;
}
.psc-vis-head-icon svg { width: 20px; height: 20px; }
.psc-vis-head-text { flex: 1; min-width: 0; }
.psc-vis-head-text h3 {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--psc-ink);
}
.dark .psc-vis-head-text h3 { color: #F4F2FA; }
.psc-vis-head-text p { margin: 3px 0 0; font-size: 12.5px; color: var(--psc-muted); }

.psc-vis-period {
  flex: none;
  border: 1px solid var(--psc-line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--psc-ink);
  background: #FFFFFF;
  cursor: pointer;
}
.dark .psc-vis-period {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F4F2FA;
}
.psc-vis-period:focus-visible { outline: 2px solid var(--psc-gold); outline-offset: 1px; }

.psc-vis-body { padding: 22px; }

.psc-vis-gauge { position: relative; max-width: 300px; margin: 0 auto 6px; }
.psc-vis-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.psc-vis-track { stroke: #EFEDF6; }
.dark .psc-vis-track { stroke: rgba(255, 255, 255, 0.1); }
.psc-vis-gauge-centre {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
}
.psc-vis-gauge-percent {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--psc-ink);
}
.dark .psc-vis-gauge-percent { color: #FFFFFF; }
.psc-vis-gauge-total { margin-top: 6px; font-size: 12.5px; color: var(--psc-muted); }
.psc-vis-gauge-sub { margin-top: 2px; font-size: 11.5px; color: #9490A9; }

.psc-vis-list { list-style: none; margin: 18px 0 0; padding: 0; }
.psc-vis-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-top: 1px solid var(--psc-line);
  font-size: 14px;
}
.dark .psc-vis-list li { border-top-color: rgba(255, 255, 255, 0.08); }
.psc-vis-list li:first-child { border-top: 0; }
.psc-vis-swatch { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.psc-vis-label { flex: 1; min-width: 0; color: var(--psc-ink); }
.dark .psc-vis-label { color: #F4F2FA; }
.psc-vis-count {
  font-variant-numeric: tabular-nums;
  color: var(--psc-muted);
}
.psc-vis-percent {
  width: 46px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--psc-ink);
}
.dark .psc-vis-percent { color: #F4F2FA; }

.psc-vis-empty { text-align: center; padding: 30px 20px 34px; }
.psc-vis-empty svg { width: 26px; height: 26px; color: var(--psc-purple-mid); }
.psc-vis-empty-title {
  margin-top: 12px;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--psc-ink);
}
.dark .psc-vis-empty-title { color: #F4F2FA; }
.psc-vis-empty p {
  margin: 8px auto 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--psc-muted);
}

/* ---------- Server performance panel ---------- */
.psc-perf { padding: 0; overflow: hidden; }
.psc-perf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--psc-line);
}
.dark .psc-perf-head { border-bottom-color: rgba(255, 255, 255, 0.09); }
.psc-perf-head-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 74, 166, 0.12);
  color: var(--psc-purple-mid);
}
.psc-perf-head-icon svg { width: 20px; height: 20px; }
.psc-perf-head-text { flex: 1; min-width: 0; }
.psc-perf-head-text h3 {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--psc-ink);
}
.dark .psc-perf-head-text h3 { color: #F4F2FA; }
.psc-perf-head-text p { margin: 3px 0 0; font-size: 12.5px; color: var(--psc-muted); }

.psc-perf-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(22, 163, 74, 0.12);
  color: #15803D;
}
.psc-perf-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.psc-perf-badge-warn { background: rgba(200, 163, 72, 0.16); color: #96701F; }
.dark .psc-perf-badge { color: #4ADE80; }
.dark .psc-perf-badge-warn { color: var(--psc-gold); }

.psc-perf-body { padding: 20px 22px 22px; }
.psc-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.psc-perf-metric {
  border: 1px solid var(--psc-line);
  border-radius: 14px;
  padding: 14px 16px 15px;
}
.dark .psc-perf-metric { border-color: rgba(255, 255, 255, 0.09); }
.psc-perf-metric-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.psc-perf-metric-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--psc-muted);
}
.psc-perf-metric-value {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--psc-ink);
  letter-spacing: -0.01em;
}
.dark .psc-perf-metric-value { color: #FFFFFF; }
.psc-perf-value-ok { color: #15803D; }
.psc-perf-value-bad { color: #B91C1C; }
.dark .psc-perf-value-ok { color: #4ADE80; }
.dark .psc-perf-value-bad { color: #FCA5A5; }

.psc-perf-bar {
  margin-top: 11px;
  height: 5px;
  border-radius: 99px;
  background: #EFEDF6;
  overflow: hidden;
}
.dark .psc-perf-bar { background: rgba(255, 255, 255, 0.1); }
.psc-perf-bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width .6s var(--psc-ease);
}
.psc-perf-bar-ok { background: #16A34A; }
.psc-perf-bar-warn { background: var(--psc-gold); }
.psc-perf-bar-critical { background: #DC2626; }

.psc-perf-metric-detail {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--psc-muted);
  line-height: 1.5;
}
.psc-perf-dot-line { display: flex; align-items: center; gap: 7px; }
.psc-perf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  flex: none;
}
.psc-perf-dot-bad { background: #DC2626; }

.psc-perf-errors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}
.psc-perf-clear,
.psc-perf-note,
.psc-perf-error {
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.55;
}
.psc-perf-clear {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(22, 163, 74, 0.08);
  color: #15803D;
}
.psc-perf-clear svg { width: 17px; height: 17px; flex: none; }
.dark .psc-perf-clear { color: #4ADE80; }
.psc-perf-note { background: #F4F3F9; color: var(--psc-muted); }
.dark .psc-perf-note { background: rgba(255, 255, 255, 0.05); }
.psc-perf-error { background: rgba(220, 38, 38, 0.07); }
.psc-perf-error-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}
.psc-perf-error-level {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #B91C1C;
}
.psc-perf-error-ago { font-size: 11.5px; color: var(--psc-muted); }
.psc-perf-error p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--psc-ink);
  word-break: break-word;
}
.dark .psc-perf-error p { color: #F4F2FA; }

@media (prefers-reduced-motion: reduce) {
  .fi-wi-stats-overview-stat,
  .fi-sidebar-item-btn,
  .fi-ta-row,
  .fi-sidebar .fi-sidebar-group-collapse-btn,
  .fi-sidebar.fi-sidebar-open .fi-sidebar-group-items,
  .psc-perf-bar-fill,
  .psc-dash-action { transition: none; }
  .fi-wi-stats-overview-stat:hover,
  .psc-dash-action:hover { transform: none; }
  .fi-wi-widget { animation: none; }
}
