:root {
  color-scheme: light;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --page-bg: #f5f7fb;
  --page-bg-2: #eef3f8;
  --panel-bg: #ffffff;
  --panel-strong: #ffffff;
  --panel-muted: #f7f9fc;
  --surface-raised: #ffffff;
  --surface-soft: #fbfcfe;

  --line-soft: #dfe7f1;
  --line-strong: #c8d3e1;
  --line-table: #e8edf4;

  --text: #082451;
  --text-strong: #061b3b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --accent: #f26a12;
  --accent-hover: #df5d0a;
  --accent-soft: rgba(242, 106, 18, 0.11);
  --accent-border: rgba(242, 106, 18, 0.34);

  --primary: #073b82;
  --primary-hover: #052f68;
  --primary-soft: #eaf1fb;
  --primary-border: #bed2ec;

  --critical: #dc2626;
  --critical-soft: #fee2e2;
  --warning: #f59e0b;
  --warning-soft: #fff3d6;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --info: #2563eb;
  --info-soft: #dbeafe;

  --shadow-xs: 0 1px 2px rgba(8, 36, 81, 0.04);
  --shadow-sm: 0 8px 22px rgba(8, 36, 81, 0.06);
  --shadow-md: 0 18px 42px rgba(8, 36, 81, 0.1);
  --shadow-soft: 0 10px 28px rgba(8, 36, 81, 0.07);

  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;

  --side-rail-width: 166px;
  --side-rail-compact-width: 72px;
  --topbar-height: 64px;
  --content-max: 1500px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0b1220;
  --page-bg-2: #111827;
  --panel-bg: #111827;
  --panel-strong: #162033;
  --panel-muted: #0f172a;
  --surface-raised: #111827;
  --surface-soft: #0f172a;
  --line-soft: rgba(226, 232, 240, 0.12);
  --line-strong: rgba(226, 232, 240, 0.2);
  --line-table: rgba(226, 232, 240, 0.11);
  --text: #e6eefb;
  --text-strong: #f8fafc;
  --text-muted: #a8b3c6;
  --text-faint: #74839a;
  --accent-soft: rgba(242, 106, 18, 0.18);
  --primary-soft: rgba(37, 99, 235, 0.15);
  --primary-border: rgba(96, 165, 250, 0.3);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 260px),
    radial-gradient(circle at 100% 0%, rgba(242, 106, 18, 0.08), transparent 420px);
}

html[data-theme="dark"] body::before {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0) 260px),
    radial-gradient(circle at 100% 0%, rgba(242, 106, 18, 0.1), transparent 420px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

html[data-theme="dark"] a {
  color: #93c5fd;
}

:focus-visible {
  outline: 3px solid rgba(242, 106, 18, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 0.75rem 1rem;
  color: var(--text);
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--side-rail-width) minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: var(--side-rail-width);
  height: 100vh;
  padding: 16px 10px;
  border-right: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 6px 0 28px rgba(8, 36, 81, 0.03);
}

html[data-theme="dark"] .side-rail {
  background: rgba(17, 24, 39, 0.94);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  margin: 0 0 1.15rem 0;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.brand-mark__glyph {
  position: relative;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand-mark__glyph::after {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid var(--panel-bg);
  border-radius: 50%;
  background: var(--accent);
}

.rail-nav {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
}

.side-rail .moduletable,
.side-rail .rail-nav__menu,
.side-rail .rail-nav__fallback,
.side-rail .mod-menu,
.side-rail .nav,
.side-rail ul,
.side-rail .cs-rail-menu {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-rail li {
  min-width: 0;
}

.side-rail .mod-menu a,
.side-rail .nav a,
.side-rail .rail-nav__link,
.side-rail .cs-rail-menu__link,
.side-rail .cs-rail-menu__label,
.rail-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 44px;
  padding: 0 0.72rem;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.side-rail .mod-menu a::before,
.side-rail .nav a::before,
.side-rail .rail-nav__link::before,
.side-rail .cs-rail-menu__link::before,
.side-rail .cs-rail-menu__label::before,
.rail-nav__item::before {
  position: absolute;
  left: -10px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  content: "";
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: transparent;
}

.side-rail .mod-menu a:hover,
.side-rail .nav a:hover,
.side-rail .rail-nav__link:hover,
.side-rail .cs-rail-menu__link:hover,
.side-rail .cs-rail-menu__label:hover,
.rail-nav__item:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: transparent;
  transform: translateX(1px);
}

.side-rail .mod-menu .active > a,
.side-rail .mod-menu .current > a,
.side-rail .nav .active > a,
.side-rail .nav .current > a,
.side-rail .current > a,
.side-rail .active > a,
.side-rail .cs-rail-menu__link.is-active,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.side-rail .rail-nav__link.is-active,
.rail-nav__item.is-active {
  color: var(--primary);
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.32);
}

html[data-theme="dark"] .side-rail .mod-menu .active > a,
html[data-theme="dark"] .side-rail .mod-menu .current > a,
html[data-theme="dark"] .side-rail .nav .active > a,
html[data-theme="dark"] .side-rail .nav .current > a,
html[data-theme="dark"] .side-rail .current > a,
html[data-theme="dark"] .side-rail .active > a,
html[data-theme="dark"] .side-rail .cs-rail-menu__link.is-active,
html[data-theme="dark"] .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
html[data-theme="dark"] .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
html[data-theme="dark"] .side-rail .rail-nav__link.is-active,
html[data-theme="dark"] .rail-nav__item.is-active {
  background: rgba(59, 130, 246, 0.14);
}

.side-rail .mod-menu .active > a::before,
.side-rail .mod-menu .current > a::before,
.side-rail .nav .active > a::before,
.side-rail .nav .current > a::before,
.side-rail .current > a::before,
.side-rail .active > a::before,
.side-rail .cs-rail-menu__link.is-active::before,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before,
.side-rail .rail-nav__link.is-active::before,
.rail-nav__item.is-active::before {
  background: var(--accent);
}

.side-rail .rail-nav__link img,
.side-rail .mod-menu img,
.side-rail .nav img,
.side-rail .cs-rail-menu__icon,
.rail-nav__item img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.92;
}

.side-rail .mod-menu a span,
.side-rail .nav a span,
.side-rail .cs-rail-menu__text,
.side-rail .rail-nav__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  font-size: 0.8rem;
}

.rail-collapse {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: auto;
  padding: 0;
  color: var(--primary);
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
  transition: background 160ms ease, transform 160ms ease;
}

.rail-collapse:hover {
  background: var(--primary-soft);
  transform: translateX(-1px);
}

.rail-collapse img {
  width: 18px;
  height: 18px;
}

body.rail-is-compact .app-shell {
  grid-template-columns: var(--side-rail-compact-width) minmax(0, 1fr);
}

body.rail-is-compact .side-rail {
  width: var(--side-rail-compact-width);
  align-items: center;
  padding-inline: 10px;
}

body.rail-is-compact .brand-mark {
  margin-inline: auto;
}

body.rail-is-compact .side-rail .mod-menu a,
body.rail-is-compact .side-rail .nav a,
body.rail-is-compact .side-rail .rail-nav__link,
body.rail-is-compact .side-rail .cs-rail-menu__link,
body.rail-is-compact .side-rail .cs-rail-menu__label,
body.rail-is-compact .rail-nav__item {
  justify-content: center;
  width: 44px;
  padding: 0;
}

body.rail-is-compact .side-rail .mod-menu a span,
body.rail-is-compact .side-rail .nav a span,
body.rail-is-compact .side-rail .cs-rail-menu__text,
body.rail-is-compact .side-rail .rail-nav__text {
  display: none;
}

body.rail-is-compact .rail-collapse img {
  transform: rotate(180deg);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] .topbar {
  background: rgba(17, 24, 39, 0.9);
}

.topbar__system,
.topbar__actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar__system {
  gap: 1rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.topbar__actions {
  gap: 0.9rem;
}

.topbar__menu-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--primary);
  background: transparent;
}

.topbar__menu-button span,
.topbar__menu-button::before,
.topbar__menu-button::after {
  display: block;
  width: 16px;
  height: 2px;
  content: "";
  border-radius: var(--radius-full);
  background: currentColor;
}

.topbar__menu-button::before {
  position: absolute;
  transform: translateY(-5px);
}

.topbar__menu-button::after {
  position: absolute;
  transform: translateY(5px);
}

.topbar__menu-button:hover {
  background: var(--primary-soft);
}

.topbar__brand {
  display: grid;
  grid-template-columns: 34px minmax(0, auto);
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.topbar__brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 4px;
  font-size: 0.63rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__brand strong,
.topbar__brand small {
  display: block;
  min-width: 0;
  line-height: 1.1;
}

.topbar__brand strong {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar__brand small {
  margin-top: 0.18rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.connection-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--primary);
  background: var(--panel-bg);
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  transform: translateY(-1px);
}

.icon-button img {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.24rem;
  color: #ffffff;
  background: var(--accent);
  border: 2px solid var(--panel-bg);
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 900;
}

.user-pill {
  display: grid;
  grid-template-columns: 34px minmax(0, auto) 14px;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0 0.85rem;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.user-pill__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.user-pill strong,
.user-pill small,
.team-lockup strong,
.team-lockup small {
  display: block;
  min-width: 0;
  line-height: 1.1;
}

.user-pill strong {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
}

.user-pill small {
  margin-top: 0.18rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.user-pill > img:last-child {
  width: 14px;
  height: 14px;
}

.team-lockup {
  min-width: 82px;
  text-align: center;
}

.team-lockup strong {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.team-lockup small {
  margin-top: 0.18rem;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.topbar .moduletable {
  min-width: 0;
}

.topbar .mod-menu,
.topbar .nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar .mod-menu a,
.topbar .nav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 20px 28px 34px;
}

.app-shell[data-layout="fluid"] .dashboard {
  --content-max: 100%;
}

.panel,
.module-card.cycling-module-card {
  position: relative;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.panel::before {
  display: none;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 114px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 62%, rgba(242, 106, 18, 0.08) 100%);
}

html[data-theme="dark"] .hero-card {
  background: linear-gradient(135deg, var(--panel-bg) 0%, var(--panel-bg) 62%, rgba(242, 106, 18, 0.11) 100%);
}

.hero-card__visual,
.cs-template img[src$="hero-bike.svg"],
.cs-template img[src*="/hero-bike.svg"],
.cs-template img[src$="/icons/bike.svg"],
.cs-template img[src*="/icons/bike.svg"],
.cs-template img[src$="part-frame.svg"],
.cs-template img[src*="/part-frame.svg"] {
  display: none !important;
}

.eyebrow,
.fact-chip__title {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card h1,
.default-hero-title {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 3.2vw, 3.05rem);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-card p:last-child,
.default-hero-copy {
  max-width: 62ch;
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 560;
}

.quick-facts,
.dashboard-grid,
.notification-panel,
.content-grid,
.footer-panel {
  margin-top: 12px;
}

.dashboard-grid {
  display: grid;
  gap: 12px;
}

.dashboard-grid--single {
  grid-template-columns: 1fr;
}

.dashboard-grid--two,
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.dashboard-grid--three,
.dashboard-grid--events {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid--overview {
  grid-template-columns: 1.1fr 1fr 0.9fr;
}

.module-card__header,
.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.module-card__title,
.panel__header h2,
.event-card h3,
.weather-panel h2,
.forecast-panel h2,
.time-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-card__body,
.component-panel,
.sidebar-panel,
.footer-panel,
.weather-panel,
.forecast-panel,
.time-panel,
.event-card__body {
  padding: 18px;
}

.module-card--plain,
.module-card--plain .module-card__body,
.hero-card .module-card,
.hero-card .module-card__body {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fact-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0 1rem;
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.fact-chip__icon,
.section-title-inline__icon,
.event-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--primary-soft);
}

.fact-chip__icon img,
.section-title-inline__icon img,
.event-card__icon img {
  width: 18px;
  height: 18px;
}

.fact-chip__text {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 760;
}

.section-title-inline,
.event-card__titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title-inline {
  margin-bottom: 1rem;
}

.event-card__titlebar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.weather-now {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.75fr);
  gap: 12px;
}

.weather-now__main,
.weather-stat,
.time-item,
.cs-mini-card,
.cs-category-card,
.cs-stat-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.weather-now__main {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 1rem;
}

.weather-now__main img {
  width: 46px;
  height: 46px;
  margin-bottom: 0.75rem;
}

.weather-now__city,
.weather-now__condition,
.time-item__city,
.time-item__date {
  margin: 0;
}

.weather-now__city,
.time-item__city {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weather-now__temp {
  margin: 0.15rem 0;
  color: var(--text-strong);
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.weather-now__condition,
.forecast-copy,
.forecast-updated,
.time-item__date,
.event-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.weather-stats {
  display: grid;
  gap: 0.75rem;
}

.weather-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 68px;
  padding: 0.85rem;
}

.weather-stat img {
  width: 24px;
  height: 24px;
}

.weather-stat span,
.weather-stat strong {
  display: block;
}

.weather-stat span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.weather-stat strong {
  margin-top: 0.1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.forecast-copy,
.rain-risk,
.forecast-updated {
  margin-top: 1rem;
}

.rain-risk__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rain-risk__track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--panel-muted);
}

.rain-risk__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.time-panel::after {
  display: none;
}

.time-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.time-item {
  padding: 1rem;
}

.time-item + .time-item {
  padding-left: 1rem;
  border-left: 0;
}

.time-item__clock {
  margin: 0.5rem 0 0;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.content-grid.has-sidebar-left.has-sidebar-right {
  grid-template-columns: minmax(220px, 0.24fr) minmax(0, 1fr) minmax(280px, 0.28fr);
}

.content-grid.has-sidebar-left:not(.has-sidebar-right) {
  grid-template-columns: minmax(220px, 0.24fr) minmax(0, 1fr);
}

.content-grid.has-sidebar-right:not(.has-sidebar-left) {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.28fr);
}

.component-panel:not(.panel) {
  padding: 0;
}

.component-panel .item-page,
.component-panel .com-content-article,
.component-panel .blog,
.component-panel .categories-list,
.component-panel .category-list,
.component-panel .com-users-login,
.component-panel .login,
.sidebar-panel .moduletable,
.sidebar-panel .module-card {
  min-width: 0;
}

.component-panel .page-header,
.component-panel .icons,
.component-panel .edit-icon,
.component-panel .article-info,
.component-panel .article-info-term,
.component-panel dl.article-info {
  display: none !important;
}

.component-panel h1,
.component-panel h2,
.component-panel h3,
.component-panel h4,
.component-panel .page-header h1,
.component-panel .page-header h2 {
  color: var(--text-strong);
  line-height: 1.1;
}

.component-panel h1,
.component-panel .page-header h1 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.component-panel h2 {
  font-size: clamp(1.25rem, 1.4vw, 1.65rem);
}

.component-panel p,
.component-panel li,
.component-panel dd,
.component-panel dt {
  color: var(--text-muted);
  line-height: 1.65;
}

.component-panel img {
  height: auto;
  border-radius: var(--radius-sm);
}

.component-panel input[type="text"],
.component-panel input[type="password"],
.component-panel input[type="email"],
.component-panel input[type="search"],
.component-panel input[type="url"],
.component-panel input[type="tel"],
.component-panel input[type="number"],
.component-panel select,
.component-panel textarea,
.sidebar-panel input[type="text"],
.sidebar-panel input[type="password"],
.sidebar-panel input[type="email"],
.sidebar-panel input[type="search"],
.sidebar-panel select,
.sidebar-panel textarea,
.cs-auth-card input[type="text"],
.cs-auth-card input[type="password"],
.cs-auth-card input[type="email"],
.cs-auth-card input[type="search"],
.cs-auth-card input[type="url"],
.cs-auth-card input[type="tel"],
.cs-input {
  width: 100%;
  min-height: 42px;
  padding: 0 0.9rem;
  color: var(--text);
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(8, 36, 81, 0.02);
}

.component-panel textarea,
.sidebar-panel textarea,
.cs-auth-card textarea {
  min-height: 110px;
  padding-block: 0.8rem;
}

.component-panel input::placeholder,
.sidebar-panel input::placeholder,
.cs-auth-card input::placeholder {
  color: var(--text-faint);
}

.component-panel table,
.notification-table,
.cs-data-table,
.cs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  background: var(--panel-bg);
}

.table-wrap,
.cs-data-table-wrap,
.table-responsive.cs-data-table-wrap,
.component-panel .table-responsive,
.component-panel .com-content-article table {
  max-width: 100%;
  overflow-x: auto;
}

.cs-data-table-wrap,
.table-responsive.cs-data-table-wrap,
.component-panel table {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.component-panel th,
.component-panel td,
.notification-table th,
.notification-table td,
.cs-data-table th,
.cs-data-table td,
.cs-table th,
.cs-table td {
  padding: 0.72rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-table);
}

.component-panel th,
.notification-table th,
.cs-data-table th,
.cs-table th {
  color: var(--text);
  background: var(--panel-muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.component-panel tbody tr:last-child td,
.notification-table tbody tr:last-child td,
.cs-data-table tbody tr:last-child td,
.cs-table tbody tr:last-child td {
  border-bottom: 0;
}

.component-panel tbody tr:hover,
.notification-table tbody tr:hover,
.cs-data-table tbody tr:hover,
.cs-table tbody tr:hover {
  background: rgba(7, 59, 130, 0.035);
}

.component-panel .btn,
.component-panel button,
.component-panel input[type="submit"],
.sidebar-panel .btn,
.sidebar-panel button,
.sidebar-panel input[type="submit"],
.cs-auth-card .btn,
.cs-auth-card button,
.cs-auth-card input[type="submit"],
.readmore a,
.pagenavigation a,
.pagination a,
.pagination span,
.open-button,
.cs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 1rem;
  color: var(--primary);
  background: var(--panel-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.component-panel .btn:hover,
.component-panel button:hover,
.component-panel input[type="submit"]:hover,
.sidebar-panel .btn:hover,
.sidebar-panel button:hover,
.sidebar-panel input[type="submit"]:hover,
.cs-auth-card .btn:hover,
.cs-auth-card button:hover,
.cs-auth-card input[type="submit"]:hover,
.readmore a:hover,
.pagenavigation a:hover,
.pagination a:hover,
.open-button:hover,
.cs-button:hover {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.component-panel .btn-primary,
.component-panel button[type="submit"],
.component-panel input[type="submit"],
.sidebar-panel .btn-primary,
.sidebar-panel button[type="submit"],
.sidebar-panel input[type="submit"],
.cs-auth-card .btn-primary,
.cs-auth-card button[type="submit"],
.cs-auth-card input[type="submit"],
.cs-button--primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.component-panel .btn-primary:hover,
.component-panel button[type="submit"]:hover,
.component-panel input[type="submit"]:hover,
.sidebar-panel .btn-primary:hover,
.sidebar-panel button[type="submit"]:hover,
.sidebar-panel input[type="submit"]:hover,
.cs-auth-card .btn-primary:hover,
.cs-auth-card button[type="submit"]:hover,
.cs-auth-card input[type="submit"]:hover,
.cs-button--primary:hover {
  color: #ffffff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.cs-button--accent {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.cs-button--accent:hover {
  color: #ffffff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.pagination,
.com-content-category-blog__pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pagination ul {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  min-width: 34px;
  min-height: 34px;
  padding: 0 0.7rem;
  border-radius: 8px;
}

.pagination .active a,
.pagination .active span,
.pagination .page-item.active .page-link {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.severity-summary,
.tag-row,
.cs-tag-row,
.cs-toolbar,
.cs-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.severity-summary {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.severity-summary .critical {
  color: var(--critical);
}

.severity-summary .warning {
  color: var(--warning);
}

.tag,
.cs-tag,
.severity-pill,
.badge-pill,
.cs-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 24px;
  padding: 0.25rem 0.58rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.tag,
.cs-tag,
.badge-pill {
  color: var(--primary);
  background: var(--primary-soft);
}

.severity-pill--warning,
.cs-status--warning,
.cs-status--in-use {
  color: #b45309;
  background: var(--warning-soft);
}

.severity-pill--critical,
.cs-status--critical,
.cs-status--out-of-stock,
.cs-status--low-stock {
  color: var(--critical);
  background: var(--critical-soft);
}

.cs-status--success,
.cs-status--available {
  color: var(--success);
  background: var(--success-soft);
}

.item-cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.item-cell__image {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--panel-muted);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
}

.item-cell__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-cell strong,
.item-cell span {
  display: block;
}

.item-cell strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.item-cell span {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.stock-number {
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.sidebar-panel {
  align-self: start;
}

.sidebar-panel .module-card + .module-card,
.sidebar-panel .moduletable + .moduletable {
  margin-top: 14px;
}

.sidebar-panel .mod-menu,
.sidebar-panel .nav,
.sidebar-panel ul.menu {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-panel .mod-menu a,
.sidebar-panel .nav a,
.sidebar-panel ul.menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  color: var(--text);
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}

.sidebar-panel .mod-menu a:hover,
.sidebar-panel .nav a:hover,
.sidebar-panel ul.menu a:hover,
.sidebar-panel .mod-menu .active > a,
.sidebar-panel .nav .active > a,
.sidebar-panel ul.menu .active > a {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.cs-template .jmoddiv,
.cs-template .jmodedit,
.cs-template .btn.jmodedit,
.cs-template .joomla-edit-module,
.cs-template .module-edit-link,
.cs-template .side-rail .btn-group.jmoddiv,
.cs-template .sidebar-panel .btn-group.jmoddiv {
  display: none !important;
}

.joomla-messages,
#system-message-container {
  margin: 0 0 12px;
}

.dashboard > #system-message-container:not(:empty),
.dashboard > .joomla-messages:not(:empty) {
  margin-top: 12px;
}

#system-message-container joomla-alert,
.alert,
.alert-message,
.alert-warning,
.alert-error,
.alert-success {
  display: block;
  margin-bottom: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.alert-warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: var(--warning-soft);
}

.alert-error,
.alert-danger {
  border-color: rgba(220, 38, 38, 0.28);
  background: var(--critical-soft);
}

.alert-success {
  border-color: rgba(22, 163, 74, 0.28);
  background: var(--success-soft);
}

.cs-migrated-data-index,
.cs-migrated-data-detail,
.cs-card,
.cs-table-card {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.cs-migrated-data-index h3,
.cs-migrated-data-detail h2 {
  margin-top: 0;
}

.cs-migrated-data-links,
.cs-card-grid,
.cs-category-grid,
.cs-quick-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cs-category-grid,
.cs-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs-migrated-data-links li,
.cs-quick-list li,
.cs-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.cs-migrated-data-links a,
.cs-list-row a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

.cs-migrated-data-links a:hover,
.cs-list-row a:hover {
  text-decoration: underline;
}

.cs-migrated-data-links span,
.cs-list-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.cs-category-card,
.cs-stat-card {
  display: grid;
  align-content: center;
  min-height: 64px;
  padding: 0.9rem;
}

.cs-category-card strong,
.cs-stat-card strong {
  display: block;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.cs-category-card small,
.cs-stat-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.error-page,
.offline-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.error-card,
.offline-card {
  width: min(720px, 100%);
  padding: 2rem;
}

.error-code {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 950;
  line-height: 0.9;
}

.cs-visually-hidden,
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  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;
}

[data-toast-root] {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  gap: 0.75rem;
}

.toast {
  max-width: 320px;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

body.cs-template.cs-auth-only {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 50% -12%, rgba(242, 106, 18, 0.12), transparent 360px),
    var(--page-bg);
}

body.cs-template.cs-auth-only .skip-link,
body.cs-template.cs-auth-only .app-shell,
body.cs-template.cs-auth-only .topbar,
body.cs-template.cs-auth-only .side-rail,
body.cs-template.cs-auth-only .hero-card,
body.cs-template.cs-auth-only .sidebar-panel,
body.cs-template.cs-auth-only .footer-panel {
  display: none !important;
}

.cs-auth-shell {
  display: grid;
  place-items: center;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.cs-auth-card {
  width: 100%;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  overflow: visible;
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.cs-auth-card::before {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 0 1.1rem;
  color: #ffffff;
  content: "CS";
  background: var(--primary);
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 40px;
  text-align: center;
  letter-spacing: -0.04em;
}

.cs-auth-card #system-message-container,
.cs-auth-card .joomla-messages {
  margin: 0 0 1rem;
}

.cs-auth-card .page-header,
.cs-auth-card .article-info,
.cs-auth-card .com-users-login__options > legend,
.cs-auth-card legend.visually-hidden {
  display: none !important;
}

.cs-auth-card .com-users-login,
.cs-auth-card .login,
.cs-auth-card form,
.cs-auth-card fieldset {
  display: grid;
  gap: 0.95rem;
  width: 100%;
}

.cs-auth-card fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cs-auth-card .control-group,
.cs-auth-card .form-group,
.cs-auth-card .mb-3,
.cs-auth-card .control-label,
.cs-auth-card .controls {
  display: grid;
  gap: 0.42rem;
  width: 100%;
  margin: 0;
}

.cs-auth-card label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 850;
}

.cs-auth-card input[type="text"],
.cs-auth-card input[type="password"],
.cs-auth-card input[type="email"],
.cs-auth-card input[type="search"],
.cs-auth-card input[type="url"],
.cs-auth-card input[type="tel"] {
  min-height: 46px;
}

.cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-auth-card .form-check,
.cs-auth-card .remember,
.cs-auth-card .mod-login__remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cs-auth-card input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.cs-auth-card ul,
.cs-auth-card .com-users-login__options,
.cs-auth-card .login + ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.cs-auth-card img,
.cs-auth-card svg {
  max-width: 42px;
  max-height: 42px;
}

@media (max-width: 1240px) {
  .content-grid.has-sidebar-left.has-sidebar-right,
  .content-grid.has-sidebar-left:not(.has-sidebar-right),
  .content-grid.has-sidebar-right:not(.has-sidebar-left),
  .dashboard-grid--three,
  .dashboard-grid--two,
  .dashboard-grid--events,
  .dashboard-grid--overview,
  .quick-facts,
  .cs-category-grid,
  .cs-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  :root {
    --side-rail-width: 100%;
  }

  .app-shell,
  body.rail-is-compact .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail,
  body.rail-is-compact .side-rail {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 72px;
    padding: 10px 12px;
    border-top: 1px solid var(--line-soft);
    border-right: 0;
  }

  .brand-mark,
  .rail-collapse {
    display: none;
  }

  .rail-nav,
  .side-rail .moduletable,
  .side-rail .rail-nav__menu,
  .side-rail .rail-nav__fallback,
  .side-rail .mod-menu,
  .side-rail .nav,
  .side-rail .cs-rail-menu {
    grid-auto-flow: column;
    grid-auto-columns: minmax(48px, 1fr);
    width: 100%;
    overflow-x: auto;
  }

  .side-rail .mod-menu a,
  .side-rail .nav a,
  .side-rail .rail-nav__link,
  .side-rail .cs-rail-menu__link,
  .side-rail .cs-rail-menu__label,
  body.rail-is-compact .side-rail .mod-menu a,
  body.rail-is-compact .side-rail .nav a,
  body.rail-is-compact .side-rail .rail-nav__link,
  body.rail-is-compact .side-rail .cs-rail-menu__link,
  body.rail-is-compact .side-rail .cs-rail-menu__label {
    justify-content: center;
    width: 48px;
    min-height: 48px;
    padding: 0;
  }

  .side-rail .mod-menu a span,
  .side-rail .nav a span,
  .side-rail .cs-rail-menu__text,
  .side-rail .rail-nav__text,
  body.rail-is-compact .side-rail .mod-menu a span,
  body.rail-is-compact .side-rail .nav a span,
  body.rail-is-compact .side-rail .cs-rail-menu__text,
  body.rail-is-compact .side-rail .rail-nav__text {
    display: none;
  }

  .topbar {
    padding: 0 14px;
  }

  .topbar__brand small,
  .team-lockup {
    display: none;
  }

  .dashboard {
    padding: 16px 14px 92px;
  }

  .hero-card {
    min-height: auto;
    padding: 20px;
  }

  .weather-now,
  .time-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar__actions {
    gap: 0.45rem;
  }

  .topbar__brand {
    grid-template-columns: 30px minmax(0, auto);
  }

  .topbar__brand-icon {
    width: 30px;
    height: 30px;
  }

  .topbar__brand strong {
    font-size: 0.72rem;
  }

  .user-pill {
    grid-template-columns: 32px 14px;
    padding: 0 0.5rem;
  }

  .user-pill span {
    display: none;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .team-lockup {
    display: none;
  }

  .hero-card h1,
  .default-hero-title {
    font-size: 2rem;
    letter-spacing: 0.04em;
  }

  .module-card__header,
  .panel__header,
  .module-card__body,
  .component-panel,
  .sidebar-panel,
  .footer-panel,
  .weather-panel,
  .forecast-panel,
  .time-panel,
  .event-card__body {
    padding: 14px;
  }

  .component-panel .btn,
  .component-panel button,
  .component-panel input[type="submit"],
  .sidebar-panel .btn,
  .sidebar-panel button,
  .sidebar-panel input[type="submit"],
  .cs-auth-card .btn,
  .cs-auth-card button,
  .cs-auth-card input[type="submit"],
  .open-button,
  .cs-button {
    min-height: 38px;
    padding-inline: 0.85rem;
  }
}

/* Current template topbar markup aliases */
.topbar__menu {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.topbar__menu span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.topbar__menu:hover {
  background: var(--primary-soft);
}

.topbar-brand {
  display: grid;
  grid-template-columns: 34px minmax(0, auto);
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.topbar-brand:hover {
  text-decoration: none;
}

.topbar-brand__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 4px;
  font-size: 0.63rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-brand__copy,
.topbar-brand__copy strong,
.topbar-brand__copy small {
  display: block;
  min-width: 0;
  line-height: 1.1;
}

.topbar-brand__copy strong {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-brand__copy small {
  max-width: 34ch;
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .topbar-brand {
    grid-template-columns: 30px minmax(0, auto);
  }

  .topbar-brand__logo {
    width: 30px;
    height: 30px;
  }

  .topbar-brand__copy strong {
    font-size: 0.72rem;
  }

  .topbar-brand__copy small {
    display: none;
  }
}


/* 1.0.38 - login form compact cleanup */
.cs-auth-shell {
  width: min(390px, 100%);
}

.cs-auth-brand {
  margin-bottom: 1rem;
}

.cs-auth-brand__symbol {
  max-width: 170px;
}

.cs-auth-brand__wordmark {
  max-width: 340px;
}

.cs-auth-card {
  max-width: 372px;
  padding: 1.15rem 1.2rem 1.3rem;
  border-radius: 22px;
}

.cs-auth-card::before,
.cs-auth-card #system-message-container,
.cs-auth-card .joomla-messages,
.cs-auth-card .alert,
.cs-auth-card .message,
.cs-auth-card .system-message,
.cs-auth-card .joomla-alert,
.cs-auth-card .com-users-login__passkey,
.cs-auth-card .passkey,
.cs-auth-card .passkey-login,
.cs-auth-card [class*="passkey"],
.cs-auth-card [data-webauthn-button],
.cs-auth-card a[href*="view=reset"],
.cs-auth-card a[href*="view=remind"],
.cs-auth-card .com-users-login__options,
.cs-auth-card .login + ul,
.cs-auth-card ul {
  display: none !important;
}

.cs-auth-card .com-users-login,
.cs-auth-card .login,
.cs-auth-card form,
.cs-auth-card fieldset {
  gap: 0.78rem;
}

.cs-auth-card label {
  font-size: 0.83rem;
  font-weight: 850;
}

.cs-auth-card input[type="text"],
.cs-auth-card input[type="password"],
.cs-auth-card input[type="email"],
.cs-auth-card input[type="search"],
.cs-auth-card input[type="url"],
.cs-auth-card input[type="tel"] {
  min-height: 42px;
}

.cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-auth-card .form-check,
.cs-auth-card .remember,
.cs-auth-card .mod-login__remember,
.cs-auth-card .com-users-login__remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-auth-card .form-check label,
.cs-auth-card .remember label,
.cs-auth-card .mod-login__remember label,
.cs-auth-card .com-users-login__remember label {
  color: var(--accent);
}

.cs-auth-card input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
}

.cs-auth-card .btn,
.cs-auth-card button,
.cs-auth-card input[type="submit"] {
  min-height: 44px;
}


/* v1.0.39 final sidebar visual polish */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link {
  border-width: 2px !important;
  border-color: #cfdbea !important;
  border-radius: 16px !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  border-width: 2px !important;
  border-color: #c9d6e7 !important;
  border-radius: 14px !important;
}


/* v1.0.40 login cleanup: remove unused controls and correct compact form */
.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  gap: 14px !important;
}

.cs-template .cs-auth-brand__symbol {
  width: min(150px, 60%) !important;
  max-width: 150px !important;
}

.cs-template .cs-auth-brand__wordmark {
  width: min(300px, 92%) !important;
  max-width: 300px !important;
}

.cs-template .cs-auth-card {
  max-width: 335px !important;
  padding: 1.05rem 1.1rem 1.2rem !important;
  border-radius: 22px !important;
}

.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .com-users-login__passkey,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card .passkey-login,
.cs-template .cs-auth-card .webauthn,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [class*="webauthn"],
.cs-template .cs-auth-card [data-webauthn-button],
.cs-template .cs-auth-card a[href*="view=reset"],
.cs-template .cs-auth-card a[href*="view=remind"],
.cs-template .cs-auth-card input[name*="secretkey"],
.cs-template .cs-auth-card input[id*="secretkey"],
.cs-template .cs-auth-card input[name*="otp"],
.cs-template .cs-auth-card input[id*="otp"],
.cs-template .cs-auth-card input[name*="totp"],
.cs-template .cs-auth-card input[id*="totp"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.cs-template .cs-auth-card .control-group:has(input[name*="secretkey"]),
.cs-template .cs-auth-card .control-group:has(input[id*="secretkey"]),
.cs-template .cs-auth-card .control-group:has(input[name*="otp"]),
.cs-template .cs-auth-card .control-group:has(input[id*="otp"]),
.cs-template .cs-auth-card .control-group:has(input[name*="totp"]),
.cs-template .cs-auth-card .control-group:has(input[id*="totp"]),
.cs-template .cs-auth-card .form-group:has(input[name*="secretkey"]),
.cs-template .cs-auth-card .form-group:has(input[id*="secretkey"]),
.cs-template .cs-auth-card .mb-3:has(input[name*="secretkey"]),
.cs-template .cs-auth-card .mb-3:has(input[id*="secretkey"]),
.cs-template .cs-auth-card .control-group:has([class*="passkey"]),
.cs-template .cs-auth-card .form-group:has([class*="passkey"]),
.cs-template .cs-auth-card .mb-3:has([class*="passkey"]),
.cs-template .cs-auth-card .control-group:has([data-webauthn-button]),
.cs-template .cs-auth-card .form-group:has([data-webauthn-button]),
.cs-template .cs-auth-card .mb-3:has([data-webauthn-button]) {
  display: none !important;
}

.cs-template .cs-auth-card label.cs-auth-remember-label,
.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-template .cs-auth-card .form-check label,
.cs-template .cs-auth-card .remember label,
.cs-template .cs-auth-card .mod-login__remember label,
.cs-template .cs-auth-card .com-users-login__remember label {
  color: #ff6a00 !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"] {
  min-height: 42px !important;
}

.cs-template .cs-auth-card .btn,
.cs-template .cs-auth-card button,
.cs-template .cs-auth-card input[type="submit"] {
  min-height: 42px !important;
}


/* v1.0.41 sidebar logo border/button reset fallback */
.cs-template .brand-mark,
.cs-template .brand-mark--split-original {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active {
  background: #eef4fb !important;
  border: 1.4px solid #d1deec !important;
}


/* v1.0.42 final login cleanup */
body.cs-template.cs-auth-only {
  background: #f4f7fb !important;
}

.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  gap: 16px !important;
}

.cs-template .cs-auth-brand {
  margin-bottom: 0 !important;
}

.cs-template .cs-auth-brand__symbol {
  max-width: 150px !important;
}

.cs-template .cs-auth-brand__wordmark {
  max-width: 300px !important;
}

.cs-template .cs-auth-card {
  width: min(330px, 100%) !important;
  max-width: 330px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card::before,
.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .com-users-login__passkey,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card .passkey-login,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [data-webauthn-button],
.cs-template .cs-auth-card a[href*="view=reset"],
.cs-template .cs-auth-card a[href*="view=remind"],
.cs-template .cs-auth-card input[name*="secretkey"],
.cs-template .cs-auth-card input[id*="secretkey"],
.cs-template .cs-auth-card label[for*="secretkey"],
.cs-template .cs-auth-card input[name*="otp"],
.cs-template .cs-auth-card input[id*="otp"],
.cs-template .cs-auth-card label[for*="otp"],
.cs-template .cs-auth-card ul,
.cs-template .cs-auth-card .com-users-login__options,
.cs-template .cs-auth-card .login + ul,
.cs-template .cs-auth-card .list-unstyled,
.cs-template .cs-auth-card .nav {
  display: none !important;
}

.cs-template .cs-auth-card .com-users-login,
.cs-template .cs-auth-card .login,
.cs-template .cs-auth-card form,
.cs-template .cs-auth-card fieldset {
  display: grid !important;
  gap: 0.78rem !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card .control-group,
.cs-template .cs-auth-card .form-group,
.cs-template .cs-auth-card .mb-3,
.cs-template .cs-auth-card .control-label,
.cs-template .cs-auth-card .controls {
  display: grid !important;
  gap: 0.35rem !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

.cs-template .cs-auth-card label {
  color: #0b285f !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"],
.cs-template .cs-auth-card input[type="search"],
.cs-template .cs-auth-card input[type="url"],
.cs-template .cs-auth-card input[type="tel"] {
  min-height: 42px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1.4px solid #cad8e9 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card input[type="text"]:focus,
.cs-template .cs-auth-card input[type="password"]:focus {
  border-color: #ff7a21 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.14) !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-template .cs-auth-card .form-check,
.cs-template .cs-auth-card .remember,
.cs-template .cs-auth-card .mod-login__remember,
.cs-template .cs-auth-card .com-users-login__remember {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin-top: 0.08rem !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-template .cs-auth-card .form-check label,
.cs-template .cs-auth-card .remember label,
.cs-template .cs-auth-card .mod-login__remember label,
.cs-template .cs-auth-card .com-users-login__remember label {
  color: #ff6a00 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-card input[type="checkbox"] {
  width: 0.95rem !important;
  height: 0.95rem !important;
  accent-color: #ff6a00 !important;
}

.cs-template .cs-auth-card .btn,
.cs-template .cs-auth-card button,
.cs-template .cs-auth-card input[type="submit"] {
  min-height: 44px !important;
  width: 100% !important;
  border-radius: 11px !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card button[type="submit"],
.cs-template .cs-auth-card .btn-primary,
.cs-template .cs-auth-card input[type="submit"] {
  background: #142b63 !important;
  border-color: #142b63 !important;
  color: #ffffff !important;
}


/* v1.0.43 visible clean login form */
.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  gap: 16px !important;
}

.cs-template .cs-auth-card {
  width: min(330px, 100%) !important;
  max-width: 330px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cs-template .cs-auth-card .com-users-login,
.cs-template .cs-auth-card .login,
.cs-template .cs-auth-card form,
.cs-template .cs-auth-card fieldset {
  display: grid !important;
  gap: 0.78rem !important;
  width: 100% !important;
  background: transparent !important;
}

.cs-template .cs-auth-card .control-group,
.cs-template .cs-auth-card .form-group,
.cs-template .cs-auth-card .mb-3,
.cs-template .cs-auth-card .control-label,
.cs-template .cs-auth-card .controls {
  display: grid !important;
  gap: 0.35rem !important;
  width: 100% !important;
  margin: 0 !important;
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"] {
  display: block !important;
  min-height: 42px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1.4px solid #cad8e9 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card label {
  color: #0b285f !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-template .cs-auth-card .form-check,
.cs-template .cs-auth-card .remember,
.cs-template .cs-auth-card .mod-login__remember,
.cs-template .cs-auth-card .com-users-login__remember {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin-top: 0.05rem !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-template .cs-auth-card .form-check label,
.cs-template .cs-auth-card .remember label,
.cs-template .cs-auth-card .mod-login__remember label,
.cs-template .cs-auth-card .com-users-login__remember label {
  color: #ff6a00 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-card input[type="checkbox"] {
  display: inline-block !important;
  width: 0.95rem !important;
  height: 0.95rem !important;
  accent-color: #ff6a00 !important;
}

.cs-template .cs-auth-card button[type="submit"],
.cs-template .cs-auth-card .btn-primary,
.cs-template .cs-auth-card input[type="submit"] {
  display: block !important;
  min-height: 44px !important;
  width: 100% !important;
  border-radius: 11px !important;
  font-weight: 850 !important;
  background: #142b63 !important;
  border-color: #142b63 !important;
  color: #ffffff !important;
}

.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .com-users-login__passkey,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card .passkey-login,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [data-webauthn-button],
.cs-template .cs-auth-card a[href*="view=reset"],
.cs-template .cs-auth-card a[href*="view=remind"],
.cs-template .cs-auth-card input[name*="secretkey"],
.cs-template .cs-auth-card input[id*="secretkey"],
.cs-template .cs-auth-card label[for*="secretkey"],
.cs-template .cs-auth-card input[name*="otp"],
.cs-template .cs-auth-card input[id*="otp"],
.cs-template .cs-auth-card label[for*="otp"],
.cs-template .cs-auth-card ul,
.cs-template .cs-auth-card .com-users-login__options,
.cs-template .cs-auth-card .login + ul,
.cs-template .cs-auth-card .list-unstyled,
.cs-template .cs-auth-card .nav {
  display: none !important;
}


/* v1.0.44 minimal login form and reference-style left sidebar */
body.cs-template.cs-auth-only {
  background: #f4f7fb !important;
}

.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding: 28px 18px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 16px !important;
}

.cs-template .cs-auth-brand {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.cs-template .cs-auth-brand__symbol {
  width: 146px !important;
  max-width: 146px !important;
  height: auto !important;
}

.cs-template .cs-auth-brand__wordmark {
  width: 300px !important;
  max-width: 300px !important;
  height: auto !important;
}

.cs-template .cs-auth-card,
.cs-template .cs-auth-card--minimal {
  width: min(320px, 100%) !important;
  max-width: 320px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cs-template .cs-auth-card::before,
.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .com-users-login,
.cs-template .cs-auth-card .login,
.cs-template .cs-auth-card fieldset,
.cs-template .cs-auth-card ul,
.cs-template .cs-auth-card .com-users-login__options,
.cs-template .cs-auth-card .login + ul,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [data-webauthn-button] {
  display: none !important;
}

.cs-template .cs-auth-card .cs-auth-form {
  display: grid !important;
  gap: 0.82rem !important;
  width: 100% !important;
  background: transparent !important;
}

.cs-template .cs-auth-field {
  display: grid !important;
  gap: 0.34rem !important;
  width: 100% !important;
}

.cs-template .cs-auth-field label {
  color: #0b285f !important;
  font-size: 0.83rem !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-field input {
  display: block !important;
  width: 100% !important;
  min-height: 42px !important;
  background: #ffffff !important;
  border: 1.45px solid #c8d7e9 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #0b285f !important;
}

.cs-template .cs-auth-field input:focus {
  border-color: #ff7a21 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.15) !important;
  outline: none !important;
}

.cs-template .cs-auth-remember {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  color: #ff6a00 !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-remember input {
  width: 0.95rem !important;
  height: 0.95rem !important;
  accent-color: #ff6a00 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-submit {
  width: 100% !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #142b63 !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-submit:hover,
.cs-template .cs-auth-submit:focus {
  background: #0f2252 !important;
}

/* Reference-style sidebar: rounded white buttons, active blue tint, single orange bar. */
.cs-template .side-rail {
  background: #ffffff !important;
  border-right: 1px solid #dce5f1 !important;
  padding: 14px 10px 16px !important;
  gap: 10px !important;
}

.cs-template .brand-mark,
.cs-template .brand-mark--split-original {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  border-radius: 0 !important;
}

.cs-template .brand-mark--split-original {
  min-height: 122px !important;
  margin: 0 auto 8px !important;
  padding: 3px 2px 6px !important;
  gap: 3px !important;
}

.cs-template .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 118px !important;
  max-height: 62px !important;
}

.cs-template .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 132px !important;
  max-height: 50px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 64px !important;
  padding: 8px 12px !important;
  gap: 12px !important;
  background: #ffffff !important;
  border: 1.45px solid #d2deec !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover {
  background: #f7fbff !important;
  border-color: #c2d1e2 !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  background: #eef4fb !important;
  border-color: #c7d5e6 !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  display: none !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: -10px !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: #ff6a00 !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 5px !important;
  border: 1.35px solid #d2deec !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__icon {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  color: #08285d !important;
  font-size: 15px !important;
  line-height: 1.16 !important;
  font-weight: 800 !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 42px) !important;
  max-width: 128px !important;
  min-height: 118px !important;
  margin: 4px auto !important;
  padding: 8px !important;
  background: #ffffff !important;
  border: 1.45px solid #d7e1ee !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 92% !important;
  max-height: 96px !important;
}

.cs-template .topbar__menu--toggle,
.cs-template .rail-collapse,
.cs-template [data-action="toggle-rail"] {
  display: none !important;
}


/* v1.0.45 minimal guest login */
.cs-template.cs-auth-only .cs-auth-shell {
  min-height: 100vh;
  padding: clamp(36px, 7vh, 64px) 24px;
}

.cs-template.cs-auth-only .cs-auth-brand {
  margin-bottom: 20px;
}

.cs-template.cs-auth-only .cs-auth-brand__symbol {
  max-width: 120px;
}

.cs-template.cs-auth-only .cs-auth-brand__wordmark {
  max-width: 320px;
}

.cs-template.cs-auth-only .cs-auth-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
  max-width: 320px;
}

.cs-login-minimal,
.cs-login-minimal-form {
  width: 100%;
}

.cs-login-minimal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-login-minimal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-login-minimal__field label {
  margin: 0;
  color: #142b6f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cs-login-minimal__field input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #c8d4e6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #142b6f;
  font-size: 15px;
  padding: 0 14px;
  box-shadow: none;
}

.cs-login-minimal__field input:focus {
  outline: none;
  border-color: #ff6a13;
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.12);
}

.cs-login-minimal__submit {
  align-self: center;
  min-width: 164px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: #ff6a13;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
  padding: 0 22px;
  box-shadow: 0 10px 24px rgba(255, 106, 19, 0.22);
}

.cs-login-minimal__submit:hover,
.cs-login-minimal__submit:focus {
  background: #ef5e08;
  color: #fff;
}

.cs-template.cs-auth-only #system-message-container,
.cs-template.cs-auth-only .joomla-alert,
.cs-template.cs-auth-only .alert,
.cs-template.cs-auth-only .message,
.cs-template.cs-auth-only .system-message,
.cs-template.cs-auth-only .mod-login__remember,
.cs-template.cs-auth-only .com-users-login__remember,
.cs-template.cs-auth-only .com-users-login__passkey,
.cs-template.cs-auth-only .passkey,
.cs-template.cs-auth-only .passkey-login,
.cs-template.cs-auth-only [class*="passkey"],
.cs-template.cs-auth-only [data-webauthn-button],
.cs-template.cs-auth-only a[href*="view=reset"],
.cs-template.cs-auth-only a[href*="view=remind"] {
  display: none !important;
}


/* v1.0.46 sidebar visual enhancement and Jayco logo card polish */
.cs-template .side-rail {
  padding: 16px 11px 18px !important;
  gap: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
}

.cs-template .brand-mark--split-original {
  margin: 0 auto 10px !important;
  padding: 4px 2px 8px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  gap: 10px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 68px !important;
  padding: 9px 12px !important;
  gap: 13px !important;
  border: 1.5px solid #d2dceb !important;
  border-radius: 19px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset !important;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  transform: translateY(-1px) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
  border-color: #c4d2e2 !important;
  box-shadow: 0 8px 18px rgba(17, 39, 91, 0.06), 0 1px 0 rgba(255,255,255,0.96) inset !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  background: linear-gradient(180deg, #f6faff 0%, #edf3fb 100%) !important;
  border-color: #c4d3e5 !important;
  box-shadow: 0 10px 22px rgba(20, 43, 99, 0.06), 0 1px 0 rgba(255,255,255,0.96) inset !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before {
  left: -9px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 3px !important;
  background: linear-gradient(180deg, #ff7c2a 0%, #ff5f00 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.08) !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  padding: 5px !important;
  border: 1.45px solid #d0dced !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link .cs-rail-menu__icon-box {
  border-color: #c6d5e7 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 6px 14px rgba(17, 39, 91, 0.05) !important;
}

.cs-template .side-rail .cs-rail-menu__icon {
  max-width: 40px !important;
  max-height: 40px !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  color: #092a60 !important;
  font-size: 15px !important;
  line-height: 1.14 !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 32px) !important;
  max-width: 134px !important;
  min-height: 120px !important;
  margin: 6px auto !important;
  padding: 12px 10px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px dashed #c9d6e7 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), inset 0 -12px 18px rgba(228,236,245,0.32) !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 92% !important;
  max-height: 98px !important;
  display: block !important;
}


/* v1.0.47 login redirect, compact sidebar icons and transparent Jayco image */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 60px !important;
  padding: 5px 10px !important;
  gap: 10px !important;
  border-radius: 17px !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 3px !important;
  border-radius: 16px !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  font-size: 14.5px !important;
  line-height: 1.13 !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 34px) !important;
  max-width: 132px !important;
  min-height: 116px !important;
  padding: 10px 9px !important;
  border: 1px dashed #c9d6e7 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,250,252,0.86)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), inset 0 -14px 18px rgba(228,236,245,0.32) !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 94% !important;
  max-height: 96px !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
}

.cs-template .cs-auth-remember,
.cs-template .cs-auth-card input[name=\"remember\"],
.cs-template .cs-auth-card input[type=\"checkbox\"] {
  display: none !important;
}

.cs-template .cs-auth-submit,
.cs-login-minimal__submit {
  width: auto !important;
  min-width: 156px !important;
  max-width: 180px !important;
  min-height: 40px !important;
  align-self: center !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #ff6a13 !important;
  color: #fff !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 24px rgba(255, 106, 19, 0.2) !important;
}

.cs-template .cs-auth-submit:hover,
.cs-login-minimal__submit:hover {
  background: #f05e05 !important;
}


/* v1.0.48 logo artifact cleanup */
.cs-template .brand-mark,
.cs-template .brand-mark--split-original,
.cs-template .cs-auth-brand {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.cs-template .brand-mark__symbol-original,
.cs-template .brand-mark__wordmark-original,
.cs-template .cs-auth-brand__symbol,
.cs-template .cs-auth-brand__wordmark,
.cs-template .topbar-brand__logo,
.cs-template .team-lockup--brand img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.cs-template .side-rail__team-logo-image {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* v1.0.56 sidebar active indicator internalized */
.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  content: none !important;
  display: none !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before,
.cs-template .side-rail .mod-menu .current > a::before,
.cs-template .side-rail .mod-menu .active > a::before,
.cs-template .side-rail .nav .current > a::before,
.cs-template .side-rail .nav .active > a::before,
.cs-template .side-rail .mod-menu a[aria-current="page"]::before,
.cs-template .side-rail .nav a[aria-current="page"]::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 6px !important;
  top: 7px !important;
  bottom: 7px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff7c2a 0%, #ff5f00 100%) !important;
  box-shadow: none !important;
}


/* v1.0.62 - drastic sidebar orange external line removal + defined button borders */
/* Kill every external/sidebar pseudo marker that may have survived from older releases. */
.cs-template .side-rail *::before,
.cs-template .side-rail *::after,
.side-rail *::before,
.side-rail *::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* All sidebar buttons keep the same clear border in every state. */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a,
.side-rail .cs-rail-menu__link,
.side-rail .rail-nav__link,
.side-rail .mod-menu a,
.side-rail .nav a {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 10px !important;
  gap: 8px !important;
  border: 2px solid #cfdbea !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Hover state: border remains visible and defined. */
.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover,
.side-rail .cs-rail-menu__link:hover,
.side-rail .rail-nav__link:hover,
.side-rail .mod-menu a:hover,
.side-rail .nav a:hover {
  border-color: #b9c8da !important;
  background: #f7fbff !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Selected state: no external orange line. The accent is the button's own left border. */
.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .active > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"],
.side-rail .cs-rail-menu__link.is-active,
.side-rail .rail-nav__link.is-active,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.side-rail .mod-menu .active > a,
.side-rail .mod-menu .current > a,
.side-rail .nav .active > a,
.side-rail .nav .current > a,
.side-rail .current > a,
.side-rail .active > a,
.side-rail .mod-menu a[aria-current="page"],
.side-rail .nav a[aria-current="page"] {
  border-top-color: #b9c8da !important;
  border-right-color: #b9c8da !important;
  border-bottom-color: #b9c8da !important;
  border-left: 4px solid #ff7a1a !important;
  background: #eef4fb !important;
  box-shadow: none !important;
  padding-left: 8px !important;
  transform: none !important;
}

/* Keep icon boxes inside the button clean and aligned. */
.cs-template .side-rail .cs-rail-menu__icon-box,
.side-rail .cs-rail-menu__icon-box {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border: 1.5px solid #d4dfed !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img,
.side-rail .cs-rail-menu__icon,
.side-rail .rail-nav__link img,
.side-rail .mod-menu img,
.side-rail .nav img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span,
.side-rail .cs-rail-menu__text,
.side-rail .rail-nav__text,
.side-rail .mod-menu a span,
.side-rail .nav a span {
  font-size: 13px !important;
  line-height: 1 !important;
  color: #08285d !important;
}


/* v1.0.62 - definitive left sidebar orange stray-bar removal */
.cs-template .side-rail,
.side-rail {
  overflow: visible !important;
}

.cs-template .side-rail ul,
.cs-template .side-rail li,
.cs-template .side-rail .mod-menu,
.cs-template .side-rail .nav,
.side-rail ul,
.side-rail li,
.side-rail .mod-menu,
.side-rail .nav {
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Remove any detached orange marker from wrappers/items/pseudo-elements. */
.cs-template .side-rail ul::before,
.cs-template .side-rail ul::after,
.cs-template .side-rail li::before,
.cs-template .side-rail li::after,
.cs-template .side-rail .mod-menu::before,
.cs-template .side-rail .mod-menu::after,
.cs-template .side-rail .nav::before,
.cs-template .side-rail .nav::after,
.cs-template .side-rail .mod-menu li::before,
.cs-template .side-rail .mod-menu li::after,
.cs-template .side-rail .nav li::before,
.cs-template .side-rail .nav li::after,
.side-rail ul::before,
.side-rail ul::after,
.side-rail li::before,
.side-rail li::after,
.side-rail .mod-menu::before,
.side-rail .mod-menu::after,
.side-rail .nav::before,
.side-rail .nav::after,
.side-rail .mod-menu li::before,
.side-rail .mod-menu li::after,
.side-rail .nav li::before,
.side-rail .nav li::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep all buttons identical in size and with a clear border. */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a,
.side-rail .cs-rail-menu__link,
.side-rail .rail-nav__link,
.side-rail .mod-menu a,
.side-rail .nav a {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 12px !important;
  border: 2px solid #cfdbea !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover,
.side-rail .cs-rail-menu__link:hover,
.side-rail .rail-nav__link:hover,
.side-rail .mod-menu a:hover,
.side-rail .nav a:hover {
  border-color: #b9c8da !important;
  background: #f7fbff !important;
  box-shadow: none !important;
}

/* Active/current state without any orange external or internal bar. */
.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .active > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"],
.side-rail .cs-rail-menu__link.is-active,
.side-rail .rail-nav__link.is-active,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.side-rail .mod-menu .active > a,
.side-rail .mod-menu .current > a,
.side-rail .nav .active > a,
.side-rail .nav .current > a,
.side-rail .current > a,
.side-rail .active > a,
.side-rail .mod-menu a[aria-current="page"],
.side-rail .nav a[aria-current="page"] {
  padding-left: 12px !important;
  border: 2px solid #c5d5e8 !important;
  background: #eef4fb !important;
  box-shadow: none !important;
  outline: 0 !important;
}


/* v1.0.62 - keep button graphic effect, finer minimalist borders, no external orange bar */
.cs-template .side-rail,
.side-rail {
  overflow: visible !important;
}

/* Definitive removal of external/orphan orange markers. */
.cs-template .side-rail ul::before,
.cs-template .side-rail ul::after,
.cs-template .side-rail li::before,
.cs-template .side-rail li::after,
.cs-template .side-rail .cs-rail-menu__item::before,
.cs-template .side-rail .cs-rail-menu__item::after,
.cs-template .side-rail .rail-nav__item::before,
.cs-template .side-rail .rail-nav__item::after,
.cs-template .side-rail .mod-menu::before,
.cs-template .side-rail .mod-menu::after,
.cs-template .side-rail .nav::before,
.cs-template .side-rail .nav::after,
.side-rail ul::before,
.side-rail ul::after,
.side-rail li::before,
.side-rail li::after,
.side-rail .cs-rail-menu__item::before,
.side-rail .cs-rail-menu__item::after,
.side-rail .rail-nav__item::before,
.side-rail .rail-nav__item::after,
.side-rail .mod-menu::before,
.side-rail .mod-menu::after,
.side-rail .nav::before,
.side-rail .nav::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Maintain the graphical button effect with finer, minimalist borders. */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a,
.side-rail .cs-rail-menu__link,
.side-rail .rail-nav__link,
.side-rail .mod-menu a,
.side-rail .nav a {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  border: 1px solid #c7d3e1 !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 2px 6px rgba(18, 43, 91, 0.018) !important;
  box-sizing: border-box !important;
}

/* Hover keeps borders crisp and the same visual language. */
.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover,
.side-rail .cs-rail-menu__link:hover,
.side-rail .rail-nav__link:hover,
.side-rail .mod-menu a:hover,
.side-rail .nav a:hover {
  border-color: #b2c1d3 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 3px 8px rgba(18, 43, 91, 0.028) !important;
}

/* Active/selected: defined border, no external orange line. */
.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .active > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"],
.side-rail .cs-rail-menu__link.is-active,
.side-rail .rail-nav__link.is-active,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.side-rail .mod-menu .active > a,
.side-rail .mod-menu .current > a,
.side-rail .nav .active > a,
.side-rail .nav .current > a,
.side-rail .current > a,
.side-rail .active > a,
.side-rail .mod-menu a[aria-current="page"],
.side-rail .nav a[aria-current="page"] {
  border: 1px solid #9fb3ca !important;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 3px 8px rgba(18, 43, 91, 0.028) !important;
  outline: 0 !important;
}

/* Keep any active marker, if used, internal only. */
.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before,
.side-rail .cs-rail-menu__link::before,
.side-rail .rail-nav__link::before,
.side-rail .mod-menu a::before,
.side-rail .nav a::before {
  content: none !important;
  display: none !important;
}
