:root {
  --brand-primary: #111827;
  --brand-primary-soft: #1F2937;
  --brand-ink: #0B1220;
  --brand-primary-dark: #0F172A;
  --brand-accent: #B8893B;
  --brand-accent-light: #F3E7D3;
  --brand-bg: #F7F7F3;
  --brand-surface: #FFFFFF;
  --brand-text: #111827;
  --brand-muted: #6B7280;
  --brand-border: #E5E7EB;
  --brand-soft: #F3F4F6;
  --brand-surface-soft: #FFFCF7;
  --brand-surface-hover: #F9FAFB;
  --brand-info: #2563EB;
  --brand-teal: #0F766E;
  --brand-success: #198754;
  --brand-warning: #F59E0B;
  --brand-danger: #DC3545;
  --brand-shape-ink: rgba(30, 42, 90, 0.08);
  --brand-shape-indigo: rgba(70, 86, 140, 0.12);
  --brand-shape-gold: rgba(217, 154, 37, 0.13);
  --brand-shape-paper: rgba(255, 255, 255, 0.62);
  --brand-page-clouds:
    radial-gradient(1180px 420px at -8% -18%, rgba(70, 86, 140, 0.1), transparent 62%),
    radial-gradient(960px 340px at 106% -12%, rgba(217, 154, 37, 0.09), transparent 64%),
    radial-gradient(920px 360px at 48% 118%, rgba(30, 42, 90, 0.06), transparent 72%),
    linear-gradient(180deg, #FFFDF8 0%, #F8F7F3 54%, #F1EEE6 100%);
  --brand-dashboard-clouds:
    radial-gradient(1120px 410px at -9% -12%, rgba(70, 86, 140, 0.1), transparent 62%),
    radial-gradient(980px 360px at 106% -6%, rgba(217, 154, 37, 0.09), transparent 64%),
    radial-gradient(880px 330px at 58% 112%, rgba(30, 42, 90, 0.07), transparent 72%),
    linear-gradient(180deg, #FFFDF8 0%, #F8F7F3 48%, #F0EDE5 100%);
  --brand-panel-clouds:
    radial-gradient(760px 270px at 100% -14%, rgba(217, 154, 37, 0.1), transparent 66%),
    radial-gradient(620px 240px at 0% 0%, rgba(70, 86, 140, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 252, 246, 0.97) 100%);
  --brand-surface-emphasis:
    radial-gradient(760px 270px at 100% -14%, rgba(217, 154, 37, 0.11), transparent 64%),
    radial-gradient(620px 240px at 0% 0%, rgba(70, 86, 140, 0.09), transparent 62%),
    linear-gradient(180deg, #FFFCF6 0%, #FFFFFF 100%);
  --brand-shadow-sm:
    0 10px 28px rgba(30, 42, 90, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.68) inset;
  --brand-shadow-md:
    0 18px 48px rgba(30, 42, 90, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  --brand-shadow-lg:
    0 28px 72px rgba(30, 42, 90, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  --brand-ring: 0 0 0 0.22rem rgba(30, 42, 90, 0.14);
  --brand-radius: 8px;
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 17, 24, 39;
  --bs-warning-rgb: 245, 158, 11;
  --bs-body-color: var(--brand-text);
  --bs-body-bg: var(--brand-bg);
  --bs-border-color: var(--brand-border);
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: var(--brand-primary-dark);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  min-height: 100%;
}

body {
  isolation: isolate;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--brand-page-clouds);
  background-attachment: fixed;
  color: var(--brand-text);
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  top: 6rem;
  right: -14vw;
  border-radius: 54% 46% 42% 58% / 48% 56% 44% 52%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 66% 70%, rgba(217, 154, 37, 0.11), transparent 44%),
    rgba(30, 42, 90, 0.07);
  filter: blur(2px);
}

body::after {
  width: min(42vw, 520px);
  height: min(34vw, 430px);
  left: -14vw;
  top: 34rem;
  border-radius: 44% 56% 58% 42% / 58% 46% 54% 42%;
  background:
    radial-gradient(circle at 68% 34%, rgba(255, 255, 255, 0.66), transparent 38%),
    rgba(217, 154, 37, 0.1);
  filter: blur(2px);
}

body.ct-app-body {
  background: var(--brand-dashboard-clouds);
  background-attachment: fixed;
}

body.ct-app-body::before {
  width: min(40vw, 520px);
  height: min(34vw, 430px);
  right: -12vw;
  top: 5.5rem;
  border-radius: 50% 50% 42% 58% / 44% 56% 44% 56%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.66), transparent 38%),
    rgba(217, 154, 37, 0.11);
}

body.ct-app-body::after {
  width: min(34vw, 440px);
  height: min(36vw, 460px);
  left: 18vw;
  top: auto;
  bottom: -15vw;
  border-radius: 58% 42% 54% 46% / 46% 60% 40% 54%;
  background:
    radial-gradient(circle at 66% 28%, rgba(255, 255, 255, 0.62), transparent 36%),
    rgba(70, 86, 140, 0.1);
}

body.ct-home-body {
  background:
    radial-gradient(980px 360px at 12% -16%, rgba(70, 86, 140, 0.15), transparent 62%),
    radial-gradient(760px 290px at 97% 14%, rgba(217, 154, 37, 0.13), transparent 66%),
    radial-gradient(860px 320px at 24% 92%, rgba(30, 42, 90, 0.055), transparent 74%),
    linear-gradient(180deg, #FFFCF6 0%, #F8F6F1 52%, #F2EBDD 100%);
}

body.ct-home-body::before {
  width: min(58vw, 720px);
  height: min(44vw, 560px);
  top: 4.5rem;
  right: -19vw;
  border-radius: 62% 38% 48% 52% / 36% 58% 42% 64%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.72), transparent 32%),
    radial-gradient(circle at 75% 69%, rgba(217, 154, 37, 0.13), transparent 43%),
    rgba(30, 42, 90, 0.075);
  filter: blur(2px);
}

body.ct-home-body::after {
  width: min(34vw, 430px);
  height: min(48vw, 610px);
  top: 28rem;
  left: -11vw;
  border-radius: 35% 65% 54% 46% / 62% 31% 69% 38%;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.64), transparent 36%),
    radial-gradient(circle at 35% 74%, rgba(70, 86, 140, 0.09), transparent 48%),
    rgba(217, 154, 37, 0.105);
  filter: blur(2px);
}

body > :not(script) {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-primary-dark);
  font-weight: 700;
  letter-spacing: 0;
}

a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-dark);
}

.text-secondary,
.text-muted {
  color: var(--brand-muted) !important;
}

.container,
.container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.container {
  max-width: 1140px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.75rem;
}

.row > * {
  width: 100%;
  max-width: 100%;
  padding-inline: 0.75rem;
}

.g-0 {
  gap: 0;
}

.g-2 {
  gap: 0.5rem 0;
}

.g-3 {
  gap: 1rem 0;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.d-inline,
.d-inline-block {
  display: inline-block;
}

.d-none {
  display: none;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}

.align-items-end {
  align-items: flex-end;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.ms-auto {
  margin-left: auto;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: right;
}

.small {
  font-size: 0.875rem;
}

.fw-semibold {
  font-weight: 650;
}

.fs-4 {
  font-size: 1.5rem;
}

.fs-5 {
  font-size: 1.25rem;
}

.h3 {
  font-size: 1.75rem;
}

.h4 {
  font-size: 1.5rem;
}

.h5 {
  font-size: 1.25rem;
}

.h6 {
  font-size: 1rem;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  z-index: 1080;
  display: none;
  min-width: 12rem;
  margin: 0.25rem 0 0;
  padding: 0.4rem;
  background: #fff;
  list-style: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  border-radius: 6px;
  color: var(--brand-text);
  padding: 0.5rem 0.65rem;
  text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--brand-surface-hover);
  color: var(--brand-primary-dark);
}

.dropdown-divider {
  border: 0;
  border-top: 1px solid var(--brand-border);
  margin: 0.35rem 0;
}

.collapse:not(.show) {
  display: none;
}

.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.card-body {
  padding: 1rem;
}

.navbar,
.navbar > .container-fluid,
.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-collapse {
  flex: 1 1 auto;
}

.navbar-toggler {
  margin-left: auto;
}

.navbar-nav {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.25rem 0.55rem;
}

.text-bg-light {
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-primary-dark);
}

.text-bg-success {
  background: rgba(47, 125, 91, 0.12);
  color: var(--brand-success);
}

.text-bg-secondary {
  background: rgba(107, 114, 128, 0.12);
  color: #4B5563;
}

.text-bg-warning {
  background: rgba(217, 154, 37, 0.16);
  color: var(--brand-warning);
}

.border {
  border: 1px solid var(--brand-border);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
}

.invalid-feedback {
  color: var(--brand-danger);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.d-block {
  display: block;
}

@media (min-width: 576px) {
  .d-sm-inline {
    display: inline;
  }
}

@media (min-width: 768px) {
  .col-md-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }

  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }

  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .d-md-flex {
    display: flex;
  }

  .flex-md-row {
    flex-direction: row;
  }

  .align-items-md-center {
    align-items: center;
  }

  .align-self-md-start {
    align-self: flex-start;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }

  .d-lg-none {
    display: none !important;
  }

  .d-lg-flex {
    display: flex !important;
  }
}

@media (min-width: 1200px) {
  .col-xl {
    flex: 1 0 0%;
  }

  .col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-xl-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

.ct-app-body {
  background: var(--brand-dashboard-clouds);
  background-attachment: fixed;
}

.ct-app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 272px minmax(0, 1fr);
}

.ct-sidebar {
  position: sticky;
  top: 0;
  z-index: 1040;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  border-right: 1px solid rgba(228, 222, 209, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 252, 246, 0.94) 100%);
  box-shadow: 16px 0 38px rgba(30, 42, 90, 0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.ct-sidebar-inner {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
}

.ct-brand {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
  color: var(--brand-primary-dark);
  text-decoration: none;
}

.ct-brand:hover {
  color: var(--brand-primary-dark);
}

.ct-brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 154, 37, 0.46);
  border-radius: var(--brand-radius);
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 42, 90, 0.18);
  font-size: 0.86rem;
  font-weight: 850;
}

.ct-brand-mark-img {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: var(--brand-radius);
  box-shadow: 0 12px 26px rgba(30, 42, 90, 0.18);
}

.ct-brand-logo {
  display: block;
  width: min(100%, 206px);
  height: auto;
}

.ct-brand-name,
.ct-brand-caption {
  display: block;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-brand-name {
  font-size: 1.02rem;
  font-weight: 850;
}

.ct-brand-caption {
  color: var(--brand-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.ct-sidebar-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 42px;
}

.ct-sidebar-action svg,
.ct-nav-icon svg,
.ct-quick-strip svg,
.ct-stat-icon svg {
  width: 1em;
  height: 1em;
  stroke-width: 2.1;
}

.ct-sidebar-nav {
  display: grid;
  flex: 1 1 auto;
  gap: 0.16rem;
  min-height: 0;
  margin-top: 0.15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  scrollbar-color: rgba(30, 42, 90, 0.22) transparent;
  scrollbar-width: thin;
}

.ct-nav-section-label {
  display: block;
  margin: 0.45rem 0 0.18rem;
  color: rgba(74, 83, 106, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
  padding-inline: 0.45rem;
  text-transform: uppercase;
}

.ct-nav-section-label:first-child {
  margin-top: 0;
}

.ct-sidebar-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  gap: 0.62rem;
  border: 1px solid transparent;
  border-radius: var(--brand-radius);
  color: #4A536A;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.18;
  padding: 0.42rem 0.56rem;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.ct-sidebar-nav a:hover,
.ct-sidebar-nav a:focus {
  border-color: rgba(30, 42, 90, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-primary-dark);
  transform: translateX(1px);
}

.ct-sidebar-nav a.active {
  border-color: rgba(30, 42, 90, 0.14);
  background:
    linear-gradient(90deg, rgba(30, 42, 90, 0.1), rgba(217, 154, 37, 0.09));
  color: var(--brand-primary-dark);
  box-shadow: 0 10px 24px rgba(30, 42, 90, 0.06);
}

.ct-sidebar-nav a.active::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand-accent);
}

.ct-nav-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 90, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 850;
}

.ct-nav-icon svg {
  width: 15px;
  height: 15px;
}

.ct-sidebar-card {
  display: grid;
  flex: 0 0 auto;
  gap: 0.24rem;
  border: 1px solid rgba(228, 222, 209, 0.92);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(90deg, rgba(217, 154, 37, 0.09) 0 3px, transparent 3px),
    rgba(255, 255, 255, 0.74);
  padding: 0.85rem;
  box-shadow: var(--brand-shadow-sm);
}

.ct-sidebar-card-label {
  color: var(--brand-accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ct-sidebar-card strong {
  color: var(--brand-primary-dark);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.ct-sidebar-card span:last-child {
  color: var(--brand-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.ct-app-main {
  isolation: isolate;
  position: relative;
  min-width: 0;
  background:
    radial-gradient(840px 300px at 98% -12%, rgba(217, 154, 37, 0.11), transparent 66%),
    radial-gradient(720px 260px at 0% 0%, rgba(70, 86, 140, 0.09), transparent 66%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.28) 0%, rgba(248, 246, 241, 0) 62%);
}

.ct-app-main::before {
  content: "";
  position: absolute;
  width: min(54vw, 760px);
  height: 300px;
  top: 4.5rem;
  left: clamp(0.75rem, 4vw, 4rem);
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.7), transparent 36%),
    radial-gradient(ellipse at 78% 38%, rgba(217, 154, 37, 0.1), transparent 44%),
    rgba(70, 86, 140, 0.06);
  filter: blur(3px);
  pointer-events: none;
}

.ct-topbar,
.ct-content-shell {
  position: relative;
  z-index: 1;
}

.ct-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(228, 222, 209, 0.78);
  background: rgba(255, 252, 246, 0.82);
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(14px);
}

.ct-topbar-title {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.ct-topbar-title span {
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.ct-topbar-title strong {
  color: var(--brand-primary-dark);
  font-size: 1rem;
  font-weight: 820;
}

.ct-account-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.58rem;
  border: 1px solid rgba(228, 222, 209, 0.94);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.05);
  color: var(--brand-primary-dark);
}

.ct-avatar {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.ct-content-shell {
  box-sizing: border-box;
  min-width: 0;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.ct-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(228, 222, 209, 0.72);
  border-radius: var(--brand-radius);
  background:
    radial-gradient(640px 220px at 100% -28%, rgba(184, 137, 59, 0.08), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 252, 246, 0.72));
  box-shadow: 0 10px 28px rgba(30, 42, 90, 0.045);
  margin-bottom: 1.1rem;
  padding: clamp(0.95rem, 2vw, 1.2rem);
}

.ct-page-header h1 {
  margin-bottom: 0.24rem;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.08;
}

.ct-page-title {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.ct-page-title-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(184, 137, 59, 0.26);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(184, 137, 59, 0.18), rgba(70, 86, 140, 0.08)),
    rgba(255, 255, 255, 0.78);
  color: var(--brand-primary-dark);
  box-shadow: 0 10px 22px rgba(30, 42, 90, 0.06);
}

.ct-page-title-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.25;
}

.ct-page-eyebrow {
  margin-bottom: 0.45rem;
  color: var(--brand-accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ct-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.ct-page-actions .btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
}

.ct-page-actions .btn svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.35;
}

.btn svg {
  flex: 0 0 auto;
}

.ct-dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  border: 1px solid rgba(228, 222, 209, 0.9);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(90deg, rgba(217, 154, 37, 0.18) 0 4px, transparent 4px 5.2rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3rem),
    linear-gradient(135deg, rgba(30, 42, 90, 0.98), rgba(20, 27, 61, 0.96));
  box-shadow: var(--brand-shadow-lg);
  color: #fff;
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.ct-dashboard-hero::before {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.16), transparent 32%),
    rgba(184, 137, 59, 0.14);
  pointer-events: none;
}

.ct-dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto 8% -5rem auto;
  width: 18rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(1px);
  pointer-events: none;
}

.ct-dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.ct-dashboard-hero h1,
.ct-dashboard-hero .ct-page-eyebrow {
  color: #fff;
}

.ct-dashboard-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.ct-dashboard-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.ct-dashboard-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 720;
  min-height: 32px;
  padding: 0.32rem 0.66rem;
}

.ct-dashboard-hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--brand-accent-light);
}

.ct-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  justify-content: flex-end;
}

.ct-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.ct-hero-actions svg {
  width: 17px;
  height: 17px;
}

.ct-hero-actions .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.42);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-color: #fff;
}

.ct-quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 1.2rem;
}

.ct-quick-strip a {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 0.68rem;
  border: 1px solid rgba(228, 222, 209, 0.9);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.84)),
    linear-gradient(90deg, rgba(217, 154, 37, 0.08), transparent);
  box-shadow: var(--brand-shadow-sm);
  color: var(--brand-primary-dark);
  font-weight: 760;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ct-quick-strip a:hover,
.ct-quick-strip a:focus {
  border-color: rgba(30, 42, 90, 0.16);
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-1px);
}

.ct-quick-strip a strong {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.18;
}

.ct-quick-strip a > svg {
  color: var(--brand-accent);
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.ct-quick-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 90, 0.1);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(145deg, rgba(30, 42, 90, 0.1), rgba(217, 154, 37, 0.12)),
    rgba(255, 255, 255, 0.78);
  color: var(--brand-primary);
}

.ct-quick-icon svg {
  width: 17px;
  height: 17px;
}

.ct-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ct-dashboard-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.ct-metric-grid-secondary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ct-dashboard-section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  margin: 0.35rem 0 0.65rem;
  text-transform: uppercase;
}

.ct-dashboard-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(228, 222, 209, 0.92);
}

.ct-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.ct-section-heading h2 {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.ct-section-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 90, 0.1);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(30, 42, 90, 0.08), rgba(217, 154, 37, 0.1)),
    rgba(255, 255, 255, 0.78);
  color: var(--brand-primary);
}

.ct-section-icon svg {
  width: 15px;
  height: 15px;
}

.ct-section-heading .small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ct-section-heading .small svg {
  width: 0.92rem;
  height: 0.92rem;
  color: var(--brand-accent);
  stroke-width: 2.35;
}

.ct-feed-item {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(228, 222, 209, 0.75);
  padding: 0.76rem 0;
}

.ct-feed-item:first-of-type {
  padding-top: 0;
}

.ct-feed-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(217, 154, 37, 0.12);
}

.ct-empty-state {
  border: 1px dashed rgba(30, 42, 90, 0.16);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.54);
  color: var(--brand-muted);
  padding: 1rem;
  text-align: center;
}

.ct-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(228, 222, 209, 0.82);
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(30, 42, 90, 0.04);
}

.ct-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--brand-primary-dark) !important;
  font-weight: 800;
}

.ct-navbar .nav-link {
  color: #4A536A !important;
  border: 1px solid transparent;
  border-radius: var(--brand-radius);
  font-weight: 650;
  padding-inline: 0.68rem;
}

.ct-navbar .nav-link:hover,
.ct-navbar .nav-link:focus {
  color: var(--brand-primary-dark) !important;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(30, 42, 90, 0.11);
}

.ct-navbar .navbar-text {
  color: var(--brand-muted) !important;
}

.navbar-dark .navbar-toggler {
  border-color: rgba(30, 42, 90, 0.18);
}

.navbar-dark .navbar-toggler-icon {
  filter: invert(1);
}

.btn {
  border-radius: var(--brand-radius);
  font-weight: 650;
}

.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-light {
  --bs-btn-color: #465069;
  --bs-btn-border-color: #D4CCBE;
  --bs-btn-hover-bg: #EFE8DA;
  --bs-btn-hover-border-color: #C9BEAD;
  --bs-btn-hover-color: var(--brand-primary-dark);
  --bs-btn-active-bg: #E8DFD0;
  --bs-btn-active-border-color: #C9BEAD;
  --bs-btn-active-color: var(--brand-primary-dark);
}

.ct-btn-primary,
.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 42, 90, 0.14);
}

.ct-btn-primary:hover,
.ct-btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}

.ct-btn-accent {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-primary-dark);
  font-weight: 750;
}

.ct-btn-accent:hover,
.ct-btn-accent:focus {
  background: #C98718;
  border-color: #C98718;
  color: var(--brand-primary-dark);
}

.ct-kicker {
  color: var(--brand-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ct-home-hero {
  min-height: min(760px, calc(100vh - 96px));
  display: flex;
  align-items: center;
  padding-top: clamp(3rem, 8vw, 5.5rem) !important;
  padding-bottom: clamp(2.25rem, 6vw, 4.5rem) !important;
}

.ct-home-hero > .row {
  width: 100%;
}

.ct-home-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  letter-spacing: 0;
  line-height: 0.97;
}

.ct-home-hero .lead {
  max-width: 700px;
  color: #4B5563 !important;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.ct-home-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-home-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ct-home-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(228, 222, 209, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #465069;
  font-size: 0.84rem;
  font-weight: 720;
  min-height: 34px;
  padding: 0.35rem 0.72rem;
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.04);
}

.ct-home-proof-row svg {
  width: 16px;
  height: 16px;
  color: var(--brand-accent);
  stroke-width: 2.2;
}

.ct-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.ct-hero > * {
  position: relative;
  z-index: 1;
}

.ct-hero::before,
.ct-hero::after,
.ct-public-page::before,
.ct-public-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.ct-hero::before,
.ct-public-page::before {
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  top: 6rem;
  right: -14vw;
  border-radius: 54% 46% 42% 58% / 48% 56% 44% 52%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 66% 70%, rgba(217, 154, 37, 0.11), transparent 44%),
    rgba(30, 42, 90, 0.07);
  filter: blur(2px);
}

.ct-hero::after,
.ct-public-page::after {
  width: min(42vw, 520px);
  height: min(34vw, 430px);
  left: -14vw;
  top: 34rem;
  border-radius: 44% 56% 58% 42% / 58% 46% 54% 42%;
  background:
    radial-gradient(circle at 68% 34%, rgba(255, 255, 255, 0.66), transparent 38%),
    rgba(217, 154, 37, 0.1);
  filter: blur(2px);
}

.ct-hero::before {
  width: min(56vw, 680px);
  height: min(56vw, 680px);
  left: -18vw;
  right: auto;
  top: -16vw;
  border-radius: 44% 56% 62% 38% / 44% 48% 52% 56%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.74), transparent 34%),
    radial-gradient(circle at 74% 34%, rgba(217, 154, 37, 0.14), transparent 44%),
    rgba(70, 86, 140, 0.08);
  filter: blur(1px);
}

.ct-hero::after {
  width: min(38vw, 460px);
  height: min(38vw, 460px);
  left: auto;
  right: -11vw;
  top: auto;
  bottom: -10vw;
  border-radius: 58% 42% 46% 54% / 48% 60% 40% 52%;
  background:
    radial-gradient(circle at 64% 32%, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 32% 68%, rgba(30, 42, 90, 0.08), transparent 46%),
    rgba(217, 154, 37, 0.12);
  filter: blur(1px);
}

.ct-home-body .ct-hero::before {
  width: min(64vw, 760px);
  height: min(38vw, 470px);
  left: -10vw;
  top: -7.5rem;
  border-radius: 41% 59% 68% 32% / 44% 37% 63% 56%;
  transform: rotate(-7deg);
}

.ct-home-body .ct-hero::after {
  width: min(28vw, 360px);
  height: min(44vw, 520px);
  right: 6vw;
  bottom: -13rem;
  border-radius: 66% 34% 51% 49% / 33% 61% 39% 67%;
  transform: rotate(10deg);
}

.ct-panel,
.card,
.modal-content,
.dropdown-menu,
.alert {
  border: 1px solid rgba(228, 222, 209, 0.9);
  border-radius: var(--brand-radius);
}

.ct-panel,
.card {
  box-sizing: border-box;
  width: 100%;
  background: var(--brand-panel-clouds);
  box-shadow: var(--brand-shadow-sm);
}

.ct-panel {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.ct-hero-preview {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(228, 222, 209, 0.9);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.16) 0 4px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.96));
  box-shadow: var(--brand-shadow-lg);
  padding: clamp(1rem, 3vw, 1.25rem);
}

.ct-hero-preview-wide {
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
}

.ct-home-dashboard-preview {
  max-width: 620px;
  margin-left: auto;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.ct-hero-preview-wide .ct-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ct-hero-preview-wide .ct-preview-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ct-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(228, 222, 209, 0.86);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.ct-preview-topline span {
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.ct-preview-topline strong {
  color: var(--brand-primary-dark);
}

.ct-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ct-preview-stat,
.ct-mini-tile {
  border: 1px solid rgba(228, 222, 209, 0.88);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.78);
}

.ct-preview-stat {
  display: grid;
  gap: 0.25rem;
  min-height: 92px;
  align-content: end;
  padding: 0.85rem;
}

.ct-home-dashboard-preview .ct-preview-stat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 246, 0.78));
}

.ct-preview-stat span,
.ct-mini-tile span {
  color: var(--brand-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ct-preview-stat strong {
  color: var(--brand-primary-dark);
  font-size: 1.55rem;
  line-height: 1;
}

.ct-preview-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.ct-preview-list-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(228, 222, 209, 0.78);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.66);
  padding: 0.65rem 0.75rem;
}

.ct-preview-list-row span:first-child {
  color: var(--brand-primary-dark);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.ct-home-timeline {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.ct-timeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(228, 222, 209, 0.78);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.72rem;
}

.ct-timeline-row strong,
.ct-timeline-row span {
  display: block;
}

.ct-timeline-row strong {
  color: var(--brand-primary-dark);
  font-size: 0.93rem;
  line-height: 1.2;
}

.ct-timeline-row div span {
  color: var(--brand-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ct-timeline-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--brand-info);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.ct-timeline-dot.is-warning {
  background: var(--brand-warning);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.ct-timeline-dot.is-success {
  background: var(--brand-success);
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}

.ct-home-tile-grid,
.ct-audience-grid {
  display: grid;
  gap: 0.7rem;
}

.ct-home-tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-home-tile,
.ct-audience-card {
  border: 1px solid rgba(228, 222, 209, 0.88);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.04);
}

.ct-home-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 76px;
  padding: 0.85rem;
  color: var(--brand-primary-dark);
  font-weight: 680;
}

.ct-home-tile svg,
.ct-audience-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--brand-accent);
  stroke-width: 2.1;
}

.ct-feature-card .card-body {
  display: grid;
  align-content: start;
}

.ct-feature-card .card-body,
.ct-price-card .card-body {
  gap: 0.55rem;
}

.ct-feature-card,
.ct-price-card,
.ct-audience-card {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ct-feature-card:hover,
.ct-price-card:hover,
.ct-audience-card:hover {
  border-color: rgba(184, 137, 59, 0.28);
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-2px);
}

.ct-feature-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 90, 0.1);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(145deg, rgba(30, 42, 90, 0.08), rgba(184, 137, 59, 0.12)),
    rgba(255, 255, 255, 0.86);
  color: var(--brand-primary);
  margin-bottom: 0.6rem;
}

.ct-feature-icon svg {
  width: 18px;
  height: 18px;
}

.ct-mini-tile {
  min-height: 56px;
  padding: 0.82rem 0.9rem;
}

.ct-mini-tile strong {
  color: var(--brand-primary-dark);
  font-variant-numeric: tabular-nums;
}

.ct-price-card.is-featured {
  border-color: rgba(184, 137, 59, 0.42);
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.14) 0 4px, transparent 4px),
    var(--brand-panel-clouds);
  box-shadow: var(--brand-shadow-md);
}

.ct-price-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(184, 137, 59, 0.34);
  border-radius: 999px;
  background: rgba(243, 231, 211, 0.56);
  color: var(--brand-primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.22rem 0.58rem;
}

.ct-audience-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ct-audience-card {
  padding: 1rem;
}

.ct-audience-card h3 {
  margin-top: 0.72rem;
}

#homeFaq {
  --bs-accordion-active-bg: rgba(243, 231, 211, 0.72);
  --bs-accordion-active-color: var(--brand-primary-dark);
  --bs-accordion-btn-focus-border-color: rgba(184, 137, 59, 0.38);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.22rem rgba(184, 137, 59, 0.18);
  --bs-accordion-border-color: rgba(228, 222, 209, 0.9);
  --bs-accordion-bg: rgba(255, 255, 255, 0.76);
}

#homeFaq .accordion-item {
  overflow: hidden;
  border-color: rgba(228, 222, 209, 0.9);
  background: rgba(255, 255, 255, 0.76);
}

#homeFaq .accordion-button {
  color: var(--brand-primary-dark);
  font-weight: 760;
}

#homeFaq .accordion-button:focus {
  border-color: rgba(184, 137, 59, 0.38);
  box-shadow: 0 0 0 0.22rem rgba(184, 137, 59, 0.18);
}

#homeFaq .accordion-button:not(.collapsed) {
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.16) 0 4px, transparent 4px),
    rgba(243, 231, 211, 0.72);
  color: var(--brand-primary-dark);
  box-shadow: inset 0 -1px 0 rgba(228, 222, 209, 0.9);
}

.ct-legal-page {
  max-width: 980px;
  margin-inline: auto;
}

.ct-legal-page .ct-panel {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.ct-legal-page h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.ct-legal-page h2:first-of-type {
  margin-top: 0.5rem;
}

.ct-legal-page h3 {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  color: var(--brand-primary-dark);
  font-size: 0.96rem;
}

.ct-legal-page p,
.ct-legal-page address,
.ct-legal-page li {
  color: #3A4358;
  line-height: 1.65;
}

.ct-contact-page {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.ct-contact-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: end;
  border: 1px solid rgba(228, 222, 209, 0.9);
  border-radius: var(--brand-radius);
  background: var(--brand-surface-emphasis);
  box-shadow: var(--brand-shadow-md);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.ct-contact-hero h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
}

.ct-contact-hero p {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.ct-contact-quick-card,
.ct-contact-info-card {
  border: 1px solid rgba(228, 222, 209, 0.92);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--brand-shadow-sm);
}

.ct-contact-quick-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.ct-contact-quick-card span {
  color: var(--brand-accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ct-contact-quick-card strong {
  color: var(--brand-primary-dark);
  font-size: 1.08rem;
  line-height: 1.2;
}

.ct-contact-quick-card p {
  color: var(--brand-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ct-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1rem, 3vw, 1.25rem);
  align-items: start;
}

.ct-contact-form-panel {
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.ct-contact-form-panel .errorlist {
  margin: 0.4rem 0 0;
  color: var(--brand-danger);
  font-size: 0.84rem;
  list-style: none;
  padding-left: 0;
}

.ct-contact-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
}

.ct-contact-aside {
  display: grid;
  gap: 0.85rem;
}

.ct-contact-info-card {
  display: grid;
  gap: 0.58rem;
  padding: 1rem;
}

.ct-contact-info-card h2 {
  margin-bottom: 0;
}

.ct-contact-info-card p,
.ct-contact-list {
  color: #3A4358;
  line-height: 1.55;
}

.ct-contact-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 90, 0.1);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(145deg, rgba(30, 42, 90, 0.1), rgba(217, 154, 37, 0.12)),
    rgba(255, 255, 255, 0.86);
  color: var(--brand-primary);
}

.ct-contact-icon svg {
  width: 18px;
  height: 18px;
}

.ct-contact-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.ct-logout-stage {
  min-height: min(70vh, 620px);
}

.ct-logout-modal .modal-dialog {
  max-width: 520px;
}

.ct-logout-modal .modal-content {
  overflow: hidden;
  background: var(--brand-surface-emphasis);
  box-shadow: var(--brand-shadow-lg);
}

.ct-logout-modal .modal-header,
.ct-logout-modal .modal-footer {
  border-color: rgba(228, 222, 209, 0.82);
}

.ct-logout-modal .modal-header {
  align-items: flex-start;
  background:
    radial-gradient(420px 150px at 100% -18%, rgba(217, 154, 37, 0.12), transparent 72%),
    rgba(255, 255, 255, 0.58);
}

.ct-logout-modal .modal-body {
  padding-block: 1.25rem;
}

.ct-logout-modal .modal-footer {
  gap: 0.6rem;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.54);
}

.ct-public-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--brand-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 247, 244, 0.98));
  color: #3A4358;
  padding: clamp(1.35rem, 3vw, 2rem) 0;
}

.ct-public-footer-inner,
.ct-public-footer-bottom {
  position: relative;
  width: min(100%, 1140px);
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.ct-public-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.2rem, 5vw, 3rem);
  align-items: center;
}

.ct-public-footer-main {
  display: grid;
  gap: 0.75rem;
}

.ct-public-footer-brand {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.72rem;
  color: var(--brand-primary-dark);
  text-decoration: none;
}

.ct-public-footer-brand:hover,
.ct-public-footer-brand:focus {
  color: var(--brand-primary-dark);
}

.ct-public-footer-note {
  max-width: 560px;
  color: var(--brand-muted);
  line-height: 1.6;
}

.ct-public-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.ct-public-footer-links a {
  display: inline-flex;
  align-items: center;
  color: #384258;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.2;
  padding-block: 0.28rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ct-public-footer-links a:hover,
.ct-public-footer-links a:focus {
  color: var(--brand-primary-dark);
}

.ct-public-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid rgba(228, 222, 209, 0.82);
  margin-top: 1.15rem;
  color: var(--brand-muted);
  font-size: 0.82rem;
  padding-top: 0.9rem;
}

.ct-panel.row,
form.ct-panel.row {
  margin-inline: 0;
}

.card {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.card:hover {
  border-color: rgba(30, 42, 90, 0.16);
  box-shadow: var(--brand-shadow-md);
}

.ct-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 118px;
  align-content: end;
  gap: 0.28rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 246, 0.98) 100%);
  box-shadow: var(--brand-shadow-sm);
  padding: 1rem 1rem 0.96rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ct-stat-featured {
  min-height: 142px;
  background:
    radial-gradient(180px 110px at 100% 0%, rgba(184, 137, 59, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 252, 246, 0.98) 100%);
}

.ct-stat-featured.is-calendar {
  background:
    radial-gradient(180px 110px at 100% 0%, rgba(37, 99, 235, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.97) 100%);
}

.ct-stat-featured.is-work {
  background:
    radial-gradient(180px 110px at 100% 0%, rgba(15, 118, 110, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 253, 251, 0.97) 100%);
}

.ct-stat-featured.is-money {
  background:
    radial-gradient(180px 110px at 100% 0%, rgba(184, 137, 59, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 252, 246, 0.98) 100%);
}

.ct-stat-featured.is-alert {
  background:
    radial-gradient(180px 110px at 100% 0%, rgba(220, 53, 69, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 248, 248, 0.97) 100%);
}

.ct-stat-featured strong {
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
}

.ct-stat-featured small {
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
}

.ct-stat-compact {
  min-height: 94px;
  padding: 0.86rem;
}

.ct-stat-compact .ct-stat-icon {
  width: 32px;
  height: 32px;
}

.ct-stat-compact strong {
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
}

.ct-stat::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(184, 137, 59, 0.9), rgba(184, 137, 59, 0.22) 58%, transparent 100%);
}

.ct-stat::before {
  content: "";
  position: absolute;
  right: -26px;
  top: -28px;
  width: 120px;
  height: 120px;
  background:
    radial-gradient(circle, rgba(184, 137, 59, 0.12) 0%, rgba(184, 137, 59, 0.06) 34%, transparent 70%);
  pointer-events: none;
}

.ct-stat:hover {
  border-color: rgba(30, 42, 90, 0.16);
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-2px);
}

.ct-stat > span:not(.ct-stat-icon) {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
}

.ct-stat > span:not(.ct-stat-icon) svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--brand-accent);
  stroke-width: 2.35;
}

.ct-stat strong {
  display: block;
  color: var(--brand-primary-dark);
  font-size: clamp(1.18rem, 2vw, 1.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.ct-stat-icon {
  position: absolute;
  top: 0.86rem;
  right: 0.86rem;
  z-index: 1;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 90, 0.1);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 231, 211, 0.72)),
    rgba(255, 255, 255, 0.86);
  color: var(--brand-primary);
  box-shadow: 0 8px 18px rgba(30, 42, 90, 0.07);
}

.ct-stat-icon svg {
  width: 18px;
  height: 18px;
}

.ct-dashboard-panel {
  background:
    radial-gradient(520px 190px at 100% -18%, rgba(184, 137, 59, 0.08), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.94));
}

.ct-dashboard-panel-main {
  min-height: 100%;
}

.ct-dashboard-table {
  margin-bottom: 0;
}

.ct-dashboard-table .table {
  margin-bottom: 0;
}

.ct-dashboard-table thead th {
  color: var(--brand-muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ct-dashboard-table tbody td {
  border-color: rgba(228, 222, 209, 0.76);
  padding-block: 0.72rem;
}

.ct-dashboard-mobile-list {
  display: none;
}

.ct-dashboard-case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  border: 1px solid rgba(228, 222, 209, 0.88);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-primary-dark);
  padding: 0.8rem;
  text-decoration: none;
}

.ct-dashboard-case-card strong,
.ct-dashboard-case-card small {
  display: block;
}

.ct-dashboard-case-card strong {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ct-dashboard-case-card small {
  color: var(--brand-muted);
  margin-top: 0.18rem;
}

.ct-dashboard-case-date {
  color: var(--brand-primary-dark);
  font-weight: 850;
}

.ct-dashboard-case-card .badge {
  grid-column: 1 / -1;
  width: fit-content;
}

.ct-court-board-panel {
  overflow: hidden;
  background:
    radial-gradient(520px 180px at 100% -32%, rgba(184, 137, 59, 0.08), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.9));
}

.ct-court-board-group {
  border: 1px solid rgba(228, 222, 209, 0.72);
  border-radius: calc(var(--brand-radius) + 2px);
  background: rgba(255, 255, 255, 0.54);
  padding: 0.75rem;
}

.ct-court-board-group:last-child {
  margin-bottom: 0 !important;
}

.ct-court-board-group h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-primary-dark);
  font-weight: 800;
}

.ct-court-board-court-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(184, 137, 59, 0.24);
  border-radius: 0.55rem;
  background: rgba(243, 231, 211, 0.52);
  color: var(--brand-primary);
}

.ct-court-board-court-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.35;
}

.ct-court-board-panel .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
}

.ct-court-board-panel .btn-sm svg {
  width: 0.88rem;
  height: 0.88rem;
  stroke-width: 2.35;
}

.ct-court-board-panel form.d-flex {
  align-items: center;
}

.ct-court-board-panel .form-control-sm {
  min-width: 9.5rem;
}

.ct-detail-list {
  display: grid;
  gap: 0.62rem;
}

.ct-detail-list dt {
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.1;
}

.ct-detail-list dd {
  margin: -0.38rem 0 0;
  color: var(--brand-primary-dark);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.ct-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.65rem;
}

.ct-tool-grid a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-primary-dark);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.ct-tool-grid a:hover,
.ct-tool-grid a:focus {
  border-color: rgba(30, 42, 90, 0.22);
  background: #fff;
  box-shadow: var(--brand-shadow-sm);
}

.ct-draft-paper {
  min-height: 14rem;
  max-height: 28rem;
  overflow: auto;
  border: 1px solid rgba(228, 222, 209, 0.9);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  padding: 1rem;
  white-space: pre-wrap;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"] {
  border-color: #D8D0C2;
  border-radius: var(--brand-radius);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--brand-text);
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus {
  background-color: #fff;
  border-color: rgba(30, 42, 90, 0.55);
  box-shadow: var(--brand-ring);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #8B91A0;
}

.form-label {
  color: #35405C;
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.form-check {
  border: 1px solid rgba(228, 222, 209, 0.88);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.72);
  min-height: 42px;
  padding: 0.62rem 0.78rem;
}

.form-check .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.form-check-label {
  color: var(--brand-primary-dark);
  font-weight: 680;
}

.errorlist {
  border: 1px solid rgba(220, 53, 69, 0.16);
  border-radius: var(--brand-radius);
  background: rgba(220, 53, 69, 0.08);
  color: var(--brand-danger);
  font-size: 0.86rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem 0.75rem 1.6rem;
}

.ct-searchable-select {
  display: grid;
  gap: 0.4rem;
  position: relative;
  width: 100%;
}

.ct-searchable-select-input {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.96);
}

.ct-searchable-select-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.ct-searchable-select-results {
  display: grid;
  max-height: 15rem;
  overflow-y: auto;
  gap: 0.18rem;
  border: 1px solid rgba(30, 42, 90, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(30, 42, 90, 0.16);
  overflow: hidden auto;
  padding: 0.35rem;
}

.ct-searchable-select-results[hidden] {
  display: none;
}

.ct-searchable-select-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--brand-primary-dark);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.3;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.ct-searchable-select-option:hover,
.ct-searchable-select-option:focus,
.ct-searchable-select-option.is-active {
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.16), rgba(70, 86, 140, 0.08));
  color: var(--brand-primary);
  outline: none;
}

.ct-searchable-select-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ct-searchable-select-option mark {
  border-radius: 0.45rem;
  background: rgba(217, 154, 37, 0.24);
  color: inherit;
  font-weight: 850;
  padding: 0.02rem 0.12rem;
}

.ct-searchable-select-option-badge {
  border: 1px solid rgba(184, 137, 59, 0.26);
  border-radius: 999px;
  background: rgba(243, 231, 211, 0.52);
  color: var(--brand-primary-dark);
  font-size: 0.68rem;
  font-weight: 820;
  padding: 0.16rem 0.42rem;
  white-space: nowrap;
}

.ct-searchable-select-empty,
.ct-searchable-select-more {
  color: var(--brand-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.55rem 0.65rem;
}

.ct-searchable-select-empty {
  border: 1px dashed rgba(30, 42, 90, 0.16);
  border-radius: 13px;
  background: rgba(248, 247, 244, 0.72);
}

.ct-searchable-select-meta {
  min-height: 1rem;
  color: var(--brand-muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

form.ct-panel {
  align-items: end;
  background:
    radial-gradient(600px 180px at 100% -30%, rgba(184, 137, 59, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 246, 0.92));
}

form.ct-panel .form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin-bottom: 0.36rem;
}

form.ct-panel .form-label svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--brand-accent);
  stroke-width: 2.35;
}

.ct-panel > form {
  position: relative;
}

.ct-panel > form .row {
  align-items: end;
}

.ct-mobile-search {
  position: relative;
  border-color: rgba(228, 222, 209, 0.94);
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.12) 0 4px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.9));
}

.ct-mobile-search input[type="search"],
.ct-mobile-search input[name="q"] {
  padding-left: 0.9rem;
}

.ct-task-filter,
.ct-case-filter,
.ct-client-filter,
.ct-document-filter,
.ct-fee-filter,
.ct-draft-system-filter,
.ct-draft-chamber-filter,
.ct-draft-document-filter,
.ct-note-filter,
.ct-report-filter,
.ct-pending-filter,
.ct-hearing-filter {
  margin-inline: 0;
}

.ct-task-filter .form-control,
.ct-task-filter .form-select,
.ct-case-filter .form-control,
.ct-case-filter .form-select,
.ct-client-filter .form-control,
.ct-client-filter .form-select,
.ct-document-filter .form-control,
.ct-document-filter .form-select,
.ct-fee-filter .form-control,
.ct-fee-filter .form-select,
.ct-draft-system-filter .form-control,
.ct-draft-system-filter .form-select,
.ct-draft-chamber-filter .form-control,
.ct-draft-chamber-filter .form-select,
.ct-draft-document-filter .form-control,
.ct-draft-document-filter .form-select,
.ct-note-filter .form-control,
.ct-note-filter .form-select,
.ct-report-filter .form-control,
.ct-report-filter .form-select,
.ct-report-filter .btn,
.ct-pending-filter .form-control,
.ct-pending-filter .form-select,
.ct-hearing-filter .form-control,
.ct-hearing-filter .form-select {
  width: 100%;
  min-height: 46px;
}

.ct-report-filter .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.ct-report-filter .btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

@media (min-width: 992px) {
  .ct-task-filter,
  .ct-case-filter,
  .ct-client-filter,
  .ct-document-filter,
  .ct-fee-filter,
  .ct-draft-system-filter,
  .ct-draft-chamber-filter,
  .ct-draft-document-filter,
  .ct-note-filter,
  .ct-report-filter,
  .ct-pending-filter,
  .ct-hearing-filter {
    flex-wrap: nowrap;
    align-items: flex-end;
    overflow-x: auto;
  }

  .ct-task-filter > [class*="col-"],
  .ct-case-filter > [class*="col-"],
  .ct-client-filter > [class*="col-"],
  .ct-document-filter > [class*="col-"],
  .ct-fee-filter > [class*="col-"],
  .ct-draft-system-filter > [class*="col-"],
  .ct-draft-chamber-filter > [class*="col-"],
  .ct-draft-document-filter > [class*="col-"],
  .ct-note-filter > [class*="col-"],
  .ct-report-filter > [class*="col-"],
  .ct-pending-filter > [class*="col-"],
  .ct-hearing-filter > [class*="col-"] {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  .ct-task-filter > [class*="col-"]:has(input[name="q"]),
  .ct-case-filter > [class*="col-"]:has(input[name="q"]),
  .ct-client-filter > [class*="col-"]:has(input[name="q"]),
  .ct-document-filter > [class*="col-"]:has(input[name="q"]),
  .ct-fee-filter > [class*="col-"]:has(input[name="q"]),
  .ct-draft-system-filter > [class*="col-"]:has(input[name="q"]),
  .ct-draft-chamber-filter > [class*="col-"]:has(input[name="q"]),
  .ct-draft-document-filter > [class*="col-"]:has(input[name="q"]),
  .ct-note-filter > [class*="col-"]:has(input[name="q"]),
  .ct-report-filter > [class*="col-"]:has(input[name="q"]),
  .ct-pending-filter > [class*="col-"]:has(input[name="q"]),
  .ct-hearing-filter > [class*="col-"]:has(input[name="q"]) {
    flex-grow: 1.45;
  }
}

.ct-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-top: 1px solid rgba(228, 222, 209, 0.78);
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.ct-form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 42px;
}

.ct-panel form .btn:not(.btn-close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.ct-panel form .btn svg {
  width: 0.98rem;
  height: 0.98rem;
  stroke-width: 2.35;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--brand-text);
  --bs-table-striped-bg: #FBF9F4;
  border-collapse: separate;
  border-spacing: 0 0.55rem;
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  border-bottom: 0;
  padding: 0.9rem 0.82rem;
  vertical-align: middle;
}

.table thead th {
  border-bottom: 0;
  background: transparent;
  color: #5D6475;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  padding-block: 0.25rem;
  text-transform: uppercase;
}

.table tbody tr {
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}

.table tbody tr > * {
  border-top: 1px solid rgba(228, 222, 209, 0.88);
  border-bottom: 1px solid rgba(228, 222, 209, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 246, 0.9));
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.045);
}

.table tbody tr > :first-child {
  border-left: 1px solid rgba(228, 222, 209, 0.88);
  border-radius: var(--brand-radius) 0 0 var(--brand-radius);
  box-shadow:
    inset 4px 0 0 rgba(184, 137, 59, 0.2),
    0 8px 20px rgba(30, 42, 90, 0.045);
  padding-left: 1rem;
}

.table tbody tr > :last-child {
  border-right: 1px solid rgba(228, 222, 209, 0.88);
  border-radius: 0 var(--brand-radius) var(--brand-radius) 0;
}

.table tbody tr:hover {
  filter: saturate(1.02);
  transform: translateY(-1px);
}

.table tbody tr:hover > * {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 231, 211, 0.42));
  border-color: rgba(184, 137, 59, 0.32);
}

.table .btn-sm {
  min-height: 34px;
  padding-inline: 0.68rem;
}

.table a.fw-semibold,
.table a:not(.btn) {
  color: var(--brand-primary-dark);
  text-decoration: none;
}

.table a:not(.btn):hover,
.table a:not(.btn):focus {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.table .text-end {
  white-space: nowrap;
}

.table td .badge {
  border: 1px solid rgba(30, 42, 90, 0.08);
}

.table td[colspan] {
  padding: 1.2rem;
}

.table tbody tr > td[colspan] {
  border-inline: 1px solid rgba(228, 222, 209, 0.88);
  border-radius: var(--brand-radius);
  box-shadow:
    inset 4px 0 0 rgba(184, 137, 59, 0.16),
    0 8px 20px rgba(30, 42, 90, 0.045);
}

.table-responsive {
  border: 1px solid rgba(228, 222, 209, 0.72);
  border-radius: calc(var(--brand-radius) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 252, 246, 0.42));
  padding: 0.35rem;
}

.dropdown-menu {
  box-shadow: var(--brand-shadow-md);
}

.badge {
  border-radius: 999px;
  font-weight: 650;
}

.list-group-item {
  border-color: var(--brand-border);
  background: rgba(255, 255, 255, 0.66);
}

.alert {
  background:
    linear-gradient(90deg, rgba(217, 154, 37, 0.08) 0 3px, transparent 3px),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--brand-shadow-sm);
}

.ct-toast-container {
  top: calc(76px + env(safe-area-inset-top));
  right: 0.9rem;
  z-index: 1090;
  width: min(420px, calc(100vw - 1.5rem));
  padding: 0;
  pointer-events: none;
}

.ct-app-body .ct-toast-container {
  top: calc(82px + env(safe-area-inset-top));
}

.ct-message-toast {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(184, 137, 59, 0.36);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.18) 0 4px, transparent 4px),
    linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
  box-shadow:
    0 18px 44px rgba(17, 24, 39, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  color: var(--brand-text);
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.ct-message-toast .toast-header {
  gap: 0.55rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.92);
  background:
    linear-gradient(180deg, rgba(248, 247, 244, 0.98), rgba(255, 255, 255, 0.98));
  color: var(--brand-primary-dark);
}

.ct-message-toast .toast-body {
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  padding-left: 1rem;
}

.htmx-request {
  cursor: progress;
}

.htmx-request .btn,
.btn.htmx-request {
  opacity: 0.72;
  pointer-events: none;
}

.ct-toast-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(30, 42, 90, 0.1);
}

.ct-toast-success .ct-toast-dot {
  background: var(--brand-success);
  box-shadow: 0 0 0 4px rgba(47, 125, 91, 0.12);
}

.ct-toast-danger .ct-toast-dot {
  background: var(--brand-danger);
  box-shadow: 0 0 0 4px rgba(163, 61, 61, 0.12);
}

.ct-toast-warning .ct-toast-dot {
  background: var(--brand-warning);
  box-shadow: 0 0 0 4px rgba(167, 103, 18, 0.12);
}

.ct-toast-info .ct-toast-dot {
  background: var(--brand-primary-soft);
  box-shadow: 0 0 0 4px rgba(70, 86, 140, 0.12);
}

.auth-card,
.account-card {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface-emphasis);
  box-shadow: var(--brand-shadow-md);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-primary-dark);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 154, 37, 0.42);
  border-radius: var(--brand-radius);
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 42, 90, 0.18);
  font-weight: 800;
}

.brand-mark-img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: var(--brand-radius);
  box-shadow: 0 10px 24px rgba(30, 42, 90, 0.18);
}

.brand-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

.brand-name {
  display: block;
  font-weight: 800;
  line-height: 1.1;
}

.brand-caption {
  display: block;
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.section-kicker {
  color: var(--brand-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-shell {
  min-height: calc(100vh - 160px);
  padding: clamp(1.25rem, 4vw, 3rem) 0;
}

.auth-aside,
.auth-card {
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow-md);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  border-radius: var(--brand-radius) 0 0 var(--brand-radius);
  background:
    linear-gradient(90deg, rgba(217, 154, 37, 0.22) 0 4px, transparent 4px 5.2rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 3rem),
    linear-gradient(145deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-aside .brand-name,
.auth-aside .auth-title {
  color: #fff;
}

.auth-aside .brand-caption,
.auth-copy {
  color: rgba(255, 255, 255, 0.78);
}

.auth-aside .brand-mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-aside .brand-mark-img {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.auth-aside .brand-logo {
  width: min(100%, 400px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  padding: 0.42rem 0.6rem;
}

.auth-title {
  max-width: 560px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.auth-copy {
  max-width: 540px;
  font-size: 1.02rem;
}

.auth-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.auth-meta-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 650;
  padding: 0.42rem 0.7rem;
}

.auth-card {
  min-height: 100%;
  border-left: 0;
  border-radius: 0 var(--brand-radius) var(--brand-radius) 0;
  padding: clamp(1.35rem, 4vw, 2.35rem);
}

.auth-card-header {
  margin-bottom: 1.35rem;
}

.google-button {
  --bs-btn-color: var(--brand-text);
  --bs-btn-bg: rgba(255, 255, 255, 0.86);
  --bs-btn-border-color: #D8D0C2;
  --bs-btn-hover-color: var(--brand-primary-dark);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: rgba(30, 42, 90, 0.26);
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 10px 24px rgba(30, 42, 90, 0.05);
}

.google-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #4285F4;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #E5E7EB;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem 0;
  color: var(--brand-muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brand-border);
}

.ct-public-page {
  min-height: 100vh;
  background: var(--brand-page-clouds);
  color: var(--brand-text);
}

body.ct-client-status-body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background:
    radial-gradient(720px 280px at 12% -10%, rgba(70, 86, 140, 0.12), transparent 66%),
    radial-gradient(620px 240px at 104% 4%, rgba(217, 154, 37, 0.13), transparent 68%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2eb 100%);
}

body.ct-client-status-body::before,
body.ct-client-status-body::after {
  display: none;
}

body.ct-client-status-body > :not(script) {
  position: relative;
  z-index: 1;
}

.ct-client-status-body .ct-public-footer {
  flex-shrink: 0;
  margin-top: auto;
  overflow: visible;
  border-top-color: rgba(228, 222, 209, 0.9);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.95rem 0;
}

.ct-client-status-body .ct-public-footer-inner,
.ct-client-status-body .ct-public-footer-bottom {
  width: min(100%, 1040px);
}

.ct-client-status-body .ct-public-footer-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
}

.ct-client-status-body .ct-public-footer-main {
  gap: 0;
}

.ct-client-status-body .ct-public-footer-brand {
  gap: 0.55rem;
}

.ct-client-status-body .ct-brand-mark-img {
  width: 34px;
  height: 34px;
}

.ct-client-status-body .ct-public-footer-note {
  display: none;
}

.ct-client-status-body .ct-public-footer-links {
  gap: 0.25rem 0.8rem;
}

.ct-client-status-body .ct-public-footer-links a {
  font-size: 0.82rem;
  min-height: 34px;
}

.ct-client-status-body .ct-public-footer-bottom {
  align-items: center;
  margin-top: 0.55rem;
  font-size: 0.76rem;
  padding-top: 0.55rem;
}

.ct-client-status-main {
  width: min(100%, 1040px);
  flex: 1 0 auto;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem) 0.75rem clamp(1.6rem, 4vw, 3rem);
}

.ct-client-status-hero,
.ct-client-error-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228, 222, 209, 0.92);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.18) 0 4px, transparent 4px),
    radial-gradient(760px 280px at 100% -28%, rgba(184, 137, 59, 0.13), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 246, 0.95));
  box-shadow: var(--brand-shadow-md);
}

.ct-client-status-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.ct-client-status-kicker {
  display: block;
  color: var(--brand-accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.ct-client-status-hero h1,
.ct-client-error-card h1 {
  color: var(--brand-primary-dark);
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}

.ct-client-status-hero p,
.ct-client-error-card p {
  color: var(--brand-muted);
  margin: 0.55rem 0 0;
}

.ct-client-status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(184, 137, 59, 0.3);
  border-radius: 999px;
  background: rgba(243, 231, 211, 0.52);
  color: var(--brand-primary-dark);
  font-size: 0.78rem;
  font-weight: 820;
  min-height: 34px;
  padding: 0.35rem 0.72rem;
}

.ct-client-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.ct-client-status-card,
.ct-client-update-card,
.ct-client-document-item,
.ct-client-empty {
  border: 1px solid rgba(228, 222, 209, 0.9);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--brand-shadow-sm);
}

.ct-client-status-card {
  display: grid;
  gap: 0.28rem;
  min-height: 118px;
  align-content: end;
  padding: 1rem;
}

.ct-client-status-card span,
.ct-client-status-card small,
.ct-client-document-item span,
.ct-client-disclaimer,
.ct-client-section-heading span {
  color: var(--brand-muted);
}

.ct-client-status-card span,
.ct-client-section-heading span {
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ct-client-status-card strong {
  color: var(--brand-primary-dark);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ct-client-status-card small {
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.ct-client-status-section {
  margin-top: clamp(1rem, 3vw, 1.35rem);
}

.ct-client-section-heading {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.65rem;
}

.ct-client-section-heading h2 {
  font-size: 1.05rem;
  margin: 0;
}

.ct-client-update-card {
  color: var(--brand-primary-dark);
  line-height: 1.6;
  padding: 1rem;
}

.ct-client-document-list {
  display: grid;
  gap: 0.65rem;
}

.ct-client-document-item {
  padding: 0.9rem 1rem;
}

.ct-client-document-item strong,
.ct-client-document-item span {
  display: block;
}

.ct-client-document-item strong {
  color: var(--brand-primary-dark);
}

.ct-client-document-item span {
  font-size: 0.84rem;
  margin-top: 0.12rem;
}

.ct-client-empty {
  color: var(--brand-muted);
  padding: 1rem;
}

.ct-client-disclaimer {
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 1rem 0 0;
}

.ct-client-error-card {
  width: min(100%, 680px);
  margin: clamp(2rem, 8vw, 4rem) auto;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.ct-mobile-appbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  min-height: calc(58px + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--brand-primary);
  color: #fff;
  padding: calc(0.55rem + env(safe-area-inset-top)) 0.9rem 0.55rem;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.ct-mobile-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.58rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 820;
  text-decoration: none;
}

.ct-mobile-brand:hover,
.ct-mobile-brand:focus {
  color: #fff;
}

.ct-mobile-brand .ct-brand-mark {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  font-size: 0.74rem;
}

.ct-mobile-appbar-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}

.ct-icon-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0;
}

.ct-icon-button:hover,
.ct-icon-button:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ct-icon-button svg {
  width: 19px;
  height: 19px;
}

.ct-notification-button {
  position: relative;
  text-decoration: none;
}

.ct-topbar .ct-notification-button {
  border-color: rgba(228, 222, 209, 0.94);
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-primary-dark);
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.05);
}

.ct-topbar .ct-notification-button:hover,
.ct-topbar .ct-notification-button:focus {
  background: #fff;
  color: var(--brand-primary-dark);
}

.ct-notification-badge {
  position: absolute;
  top: -0.22rem;
  right: -0.25rem;
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand-danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.ct-notification-menu {
  width: min(380px, calc(100vw - 1.5rem));
  border: 1px solid rgba(228, 222, 209, 0.96);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow-md);
  padding: 0;
  overflow: hidden;
}

.ct-notification-menu-header,
.ct-notification-menu-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 252, 246, 0.95);
}

.ct-notification-menu-header span {
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ct-notification-menu-list {
  max-height: 360px;
  overflow: auto;
}

.ct-notification-preview {
  display: grid;
  gap: 0.22rem;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-text);
  padding: 0.82rem 0.9rem;
  text-decoration: none;
}

.ct-notification-preview:hover,
.ct-notification-preview:focus {
  background: var(--brand-surface-hover);
  color: var(--brand-text);
}

.ct-notification-preview.is-unread {
  border-left: 4px solid var(--brand-accent);
  background: rgba(243, 231, 211, 0.28);
}

.ct-notification-preview-title {
  font-weight: 800;
}

.ct-notification-preview-message,
.ct-notification-preview-meta {
  color: var(--brand-muted);
  font-size: 0.82rem;
}

.ct-notification-empty {
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
  padding: 1.2rem 0.9rem;
  text-align: center;
}

.ct-notification-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ct-notification-filters a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-primary-dark);
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.ct-notification-filters a.active,
.ct-notification-filters a:hover,
.ct-notification-filters a:focus {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.ct-notification-list-panel {
  display: grid;
  gap: 0.75rem;
}

.ct-notification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(228, 222, 209, 0.94);
  border-radius: var(--brand-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--brand-shadow-sm);
  padding: 1rem;
}

.ct-notification-card.is-unread {
  border-left: 4px solid var(--brand-accent);
}

.ct-notification-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.ct-notification-card h2 {
  margin: 0;
  font-size: 1rem;
}

.ct-notification-card p {
  margin: 0.45rem 0 0;
  color: var(--brand-muted);
}

.ct-notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin-top: 0.65rem;
  color: var(--brand-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.ct-notification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.ct-priority-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.ct-priority-low {
  background: var(--brand-soft);
  color: var(--brand-muted);
}

.ct-priority-normal {
  background: var(--brand-accent-light);
  color: var(--brand-primary-dark);
}

.ct-priority-high {
  background: rgba(245, 158, 11, 0.16);
  color: #8A4B00;
}

.ct-priority-urgent {
  background: rgba(220, 53, 69, 0.12);
  color: var(--brand-danger);
}

.ct-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ct-mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(229, 231, 235, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -14px 30px rgba(17, 24, 39, 0.09);
  padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
  backdrop-filter: blur(14px);
}

.ct-mobile-bottom-nav a,
.ct-mobile-bottom-nav button {
  display: grid;
  min-width: 0;
  min-height: 52px;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4B5563;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
}

.ct-mobile-bottom-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.ct-mobile-bottom-nav .active {
  background: rgba(17, 24, 39, 0.08);
  color: var(--brand-primary);
}

.ct-mobile-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 1031;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-primary);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.24);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.ct-mobile-sheet {
  height: auto;
  max-height: min(78vh, 620px);
  border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.ct-mobile-sheet .offcanvas-header {
  border-bottom: 1px solid var(--brand-border);
}

.ct-mobile-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ct-mobile-sheet-grid a {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 730;
  line-height: 1.15;
  padding: 0.78rem;
  text-decoration: none;
}

.ct-mobile-sheet-grid svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--brand-accent);
}

.ct-install-prompt {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  display: flex;
  width: min(430px, calc(100vw - 2rem));
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--brand-shadow-lg);
  padding: 0.85rem;
}

.ct-install-prompt[hidden] {
  display: none;
}

.ct-install-prompt strong,
.ct-install-prompt span {
  display: block;
}

.ct-install-prompt span {
  color: var(--brand-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.ct-install-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.ct-offline-shell {
  display: grid;
  width: min(100%, 520px);
  min-height: min(72vh, 620px);
  align-content: center;
  justify-items: center;
  gap: 1rem;
  margin-inline: auto;
  text-align: center;
  padding: 1.25rem;
}

.ct-mobile-card-list {
  display: grid;
  gap: 0.75rem;
}

.ct-mobile-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(228, 222, 209, 0.92);
  border-radius: var(--brand-radius);
  background:
    linear-gradient(90deg, rgba(184, 137, 59, 0.2) 0 4px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.92));
  box-shadow: var(--brand-shadow-sm);
  padding: 0.95rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ct-mobile-card:hover,
.ct-mobile-card:focus-within {
  border-color: rgba(184, 137, 59, 0.32);
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-1px);
}

.ct-mobile-card > * {
  position: relative;
  z-index: 1;
}

.ct-mobile-card-header,
.ct-mobile-card-actions,
.ct-mobile-card-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ct-mobile-card-title {
  color: var(--brand-primary);
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.ct-mobile-card-header {
  align-items: flex-start;
}

.ct-mobile-card-header .badge {
  flex: 0 0 auto;
}

.ct-mobile-card-row {
  border: 1px solid rgba(228, 222, 209, 0.78);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.55rem 0.62rem;
}

.ct-mobile-card-meta {
  color: var(--brand-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ct-mobile-card-label {
  color: var(--brand-muted);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ct-mobile-card-value {
  color: var(--brand-primary);
  font-weight: 680;
  text-align: right;
}

.ct-mobile-card-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  border-top: 1px solid rgba(228, 222, 209, 0.78);
  margin-top: 0.1rem;
  padding-top: 0.7rem;
}

.ct-mobile-card-actions .btn,
.ct-mobile-card-actions form {
  flex: 1 1 auto;
}

.ct-mobile-card-actions .btn {
  min-height: 40px;
}

.ct-mobile-card-actions form .btn,
.ct-mobile-card-actions form select {
  width: 100%;
}

.ct-table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.ct-mobile-group-heading {
  position: sticky;
  top: calc(58px + env(safe-area-inset-top));
  z-index: 2;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: rgba(248, 247, 244, 0.96);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  padding: 0.52rem 0.7rem;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.ct-mobile-search {
  border-radius: 10px;
  box-shadow: var(--brand-shadow-sm);
}

.ct-mobile-search input[type="search"],
.ct-mobile-search input[name="q"] {
  min-height: 48px;
  font-size: 1rem;
}

.ct-form-actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 991.98px) {
  body.ct-home-body {
    background:
      radial-gradient(520px 220px at 18% -8%, rgba(70, 86, 140, 0.13), transparent 64%),
      radial-gradient(420px 180px at 100% 8%, rgba(217, 154, 37, 0.13), transparent 64%),
      linear-gradient(180deg, #FFFDF8 0%, #F8F7F3 46%, #F1EEE6 100%);
    background-attachment: scroll;
  }

  body.ct-home-body::before,
  body.ct-home-body::after {
    display: none;
  }

  body.ct-app-body {
    background: var(--brand-bg);
  }

  body.ct-app-body::before,
  body.ct-app-body::after,
  .ct-app-main::before {
    display: none;
  }

  .ct-app-shell {
    display: block;
  }

  .ct-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 310px);
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    border-right: 1px solid rgba(228, 222, 209, 0.95);
    box-shadow: 24px 0 58px rgba(20, 27, 61, 0.18);
  }

  .ct-sidebar-inner {
    padding: 0.95rem;
  }

  .ct-sidebar-nav a {
    min-height: 40px;
  }

  .ct-sidebar:not(.show) {
    display: none !important;
  }

  .ct-content-shell {
    padding: 0.95rem 0.85rem calc(6rem + env(safe-area-inset-bottom));
  }

  .ct-mobile-appbar {
    min-height: calc(64px + env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(31, 41, 55, 0.96));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
  }

  .ct-mobile-brand .ct-brand-mark-img {
    width: 36px;
    height: 36px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  .ct-icon-button {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.13);
  }

  .ct-mobile-bottom-nav {
    right: 0.7rem;
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    left: 0.7rem;
    border: 1px solid rgba(228, 222, 209, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.38rem;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(18px);
  }

  .ct-mobile-bottom-nav a,
  .ct-mobile-bottom-nav button {
    min-height: 50px;
    border-radius: 14px;
  }

  .ct-mobile-bottom-nav .active {
    background:
      linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(184, 137, 59, 0.11));
    color: var(--brand-primary-dark);
  }

  .ct-mobile-fab {
    right: 1.1rem;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    background:
      linear-gradient(145deg, #C99A4B, var(--brand-accent));
    box-shadow:
      0 18px 34px rgba(17, 24, 39, 0.25),
      0 0 0 7px rgba(184, 137, 59, 0.12);
  }

  .ct-mobile-sheet {
    border: 1px solid rgba(228, 222, 209, 0.96);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.98));
    box-shadow: 0 -24px 58px rgba(17, 24, 39, 0.22);
  }

  .ct-mobile-sheet .offcanvas-header::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.18);
    transform: translateX(-50%);
  }

  .ct-mobile-sheet .offcanvas-header {
    position: relative;
    padding-top: 1.25rem;
  }

  .ct-mobile-sheet-grid a {
    min-height: 66px;
    border-color: rgba(228, 222, 209, 0.92);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(30, 42, 90, 0.04);
  }

  .ct-mobile-card,
  .ct-mobile-search,
  .ct-notification-card {
    border-color: rgba(228, 222, 209, 0.92);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--brand-shadow-sm);
  }

  .ct-navbar {
    min-height: calc(64px + env(safe-area-inset-top));
    border-bottom: 1px solid rgba(228, 222, 209, 0.74);
    background: rgba(255, 255, 255, 0.82) !important;
    padding-top: env(safe-area-inset-top);
    backdrop-filter: blur(18px);
  }

  .ct-navbar > .container-fluid {
    padding-inline: 0.85rem;
  }

  .ct-navbar .navbar-brand {
    min-width: 0;
  }

  .ct-navbar .ct-brand-logo {
    width: min(45vw, 170px);
  }

  .ct-navbar .navbar-toggler {
    width: 42px;
    height: 42px;
    border-color: rgba(30, 42, 90, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(30, 42, 90, 0.05);
    padding: 0.42rem;
  }

  .ct-navbar .navbar-toggler-icon {
    width: 1.15em;
    height: 1.15em;
  }

  .ct-page-header,
  .ct-dashboard-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ct-page-header {
    flex-direction: column;
  }

  .ct-page-actions,
  .ct-hero-actions {
    justify-content: flex-start;
  }

  .ct-dashboard-hero .ct-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ct-home-hero {
    position: relative;
    min-height: auto;
    overflow: visible;
    border-bottom: 1px solid rgba(228, 222, 209, 0.7);
    margin-inline: -0.75rem;
    padding: 2rem 0.75rem 1.35rem !important;
  }

  .ct-home-hero h1 {
    max-width: 760px;
    font-size: clamp(2.1rem, 8vw, 3.1rem);
    line-height: 1;
    text-wrap: balance;
  }

  .ct-home-hero .lead {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .ct-home-actions {
    gap: 0.65rem;
  }

  .ct-home-dashboard-preview {
    max-width: none;
    margin-left: 0;
    border-color: rgba(228, 222, 209, 0.86);
    background:
      linear-gradient(90deg, rgba(184, 137, 59, 0.2) 0 4px, transparent 4px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 246, 0.9));
    box-shadow: 0 18px 44px rgba(30, 42, 90, 0.12);
  }

  .ct-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-page-header {
    margin-bottom: 0.85rem;
  }

  .ct-page-header h1 {
    font-size: 1.45rem;
  }

  .ct-page-header p:not(.ct-page-eyebrow) {
    font-size: 0.9rem;
  }

  .ct-page-actions .btn,
  .ct-hero-actions .btn {
    min-height: 44px;
    flex: 1 1 auto;
  }

  .ct-dashboard-hero .ct-hero-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .ct-quick-strip {
    display: flex;
    gap: 0.65rem;
    margin: 0.7rem -0.85rem 1rem;
    overflow-x: auto;
    padding: 0.1rem 0.85rem 0.35rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .ct-quick-strip::-webkit-scrollbar {
    display: none;
  }

  .ct-quick-strip a {
    flex: 0 0 min(72vw, 270px);
    min-height: 62px;
    scroll-snap-align: start;
  }

  .ct-quick-strip a > svg {
    display: none;
  }

  .ct-dashboard-priority-grid,
  .ct-hero-preview-wide .ct-preview-grid,
  .ct-metric-grid {
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-dashboard-hero {
    box-sizing: border-box;
    margin-inline: -0.85rem;
    margin-top: -0.95rem;
    border-radius: 0 0 18px 18px;
    border-inline: 0;
    padding: 1.1rem 0.95rem 1.2rem;
  }

  .ct-dashboard-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .ct-dashboard-hero p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .ct-dashboard-hero-meta {
    flex-wrap: wrap;
    margin-inline: 0;
    overflow: visible;
    padding-inline: 0;
    scrollbar-width: auto;
    scroll-snap-type: none;
  }

  .ct-dashboard-hero-meta::-webkit-scrollbar {
    display: none;
  }

  .ct-dashboard-hero-meta span {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    scroll-snap-align: none;
    white-space: normal;
  }

  .ct-dashboard-hero {
    display: block;
    margin: 0 0 0.8rem;
    border: 1px solid rgba(228, 222, 209, 0.92);
    border-radius: 16px;
    background:
      linear-gradient(90deg, rgba(184, 137, 59, 0.9) 0 4px, transparent 4px),
      rgba(255, 255, 255, 0.86);
    box-shadow: var(--brand-shadow-sm);
    color: var(--brand-primary-dark);
    padding: 0.9rem 1rem;
  }

  .ct-dashboard-hero::before,
  .ct-dashboard-hero::after,
  .ct-dashboard-hero .ct-page-eyebrow,
  .ct-dashboard-hero-description,
  .ct-dashboard-hero-meta,
  .ct-dashboard-hero .ct-hero-actions,
  .ct-quick-strip,
  .ct-dashboard-secondary,
  .ct-dashboard-mobile-detail {
    display: none;
  }

  .ct-dashboard-hero h1 {
    margin: 0 !important;
    color: var(--brand-primary-dark);
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .ct-dashboard-priority-grid {
    margin-bottom: 0.8rem;
  }

  .ct-stat-featured small {
    display: none;
  }

  .ct-dashboard-table {
    display: none;
  }

  .ct-dashboard-mobile-list {
    display: grid;
    gap: 0.65rem;
  }

  .ct-stat {
    min-height: 112px;
    padding: 0.9rem;
  }

  .ct-stat-featured {
    min-height: 120px;
  }

  .ct-stat-compact {
    min-height: 96px;
  }

  .ct-dashboard-panel {
    border-radius: 14px;
  }

  .ct-section-heading {
    align-items: flex-start;
  }

  .ct-section-heading h2 {
    font-size: 1rem;
  }

  .ct-panel {
    padding: 0.9rem;
  }

  form.ct-panel .row,
  .ct-panel.row {
    gap: 0.75rem 0;
  }

  :is(
    .ct-task-filter,
    .ct-case-filter,
    .ct-document-filter,
    .ct-fee-filter,
    .ct-draft-system-filter,
    .ct-draft-chamber-filter,
    .ct-draft-document-filter,
    .ct-note-filter,
    .ct-report-filter,
    .ct-pending-filter,
    .ct-hearing-filter
  ).row {
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.85rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  :is(
    .ct-task-filter,
    .ct-case-filter,
    .ct-document-filter,
    .ct-fee-filter,
    .ct-draft-system-filter,
    .ct-draft-chamber-filter,
    .ct-draft-document-filter,
    .ct-note-filter,
    .ct-report-filter,
    .ct-pending-filter,
    .ct-hearing-filter
  ).row::-webkit-scrollbar {
    display: none;
  }

  :is(
    .ct-task-filter,
    .ct-case-filter,
    .ct-document-filter,
    .ct-fee-filter,
    .ct-draft-system-filter,
    .ct-draft-chamber-filter,
    .ct-draft-document-filter,
    .ct-note-filter,
    .ct-report-filter,
    .ct-pending-filter,
    .ct-hearing-filter
  ).row > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: 0 0 min(72vw, 265px);
    padding-inline: 0;
    scroll-snap-align: start;
  }

  input,
  select,
  textarea,
  .form-control,
  .form-select {
    min-height: 46px;
  }

  .ct-form-actions {
    position: sticky;
    right: -0.9rem;
    bottom: calc(73px + env(safe-area-inset-bottom));
    left: -0.9rem;
    z-index: 5;
    margin-inline: -0.9rem;
    border-top: 1px solid var(--brand-border);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.75rem 0.9rem;
    backdrop-filter: blur(10px);
  }

  .ct-form-actions .btn {
    min-height: 46px;
    flex: 1 1 0;
  }

  body.ct-app-body:has(.ct-form-actions) .ct-mobile-fab {
    display: none !important;
  }

  .ct-toast-container {
    top: calc(78px + env(safe-area-inset-top));
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .ct-install-prompt {
    right: 0.75rem;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 0.75rem;
    width: auto;
    border-color: rgba(228, 222, 209, 0.96);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.98));
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.18);
  }

  .ct-install-actions .btn {
    flex: 1 1 0;
  }

  .ct-public-footer-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ct-contact-hero,
  .ct-contact-layout {
    grid-template-columns: 1fr;
  }

  .ct-public-footer-links {
    max-width: 640px;
    justify-content: flex-start;
  }

  .ct-navbar .navbar-collapse {
    margin-top: 0.75rem;
    border: 1px solid rgba(228, 222, 209, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--brand-shadow-sm);
    padding: 0.75rem;
  }

  .ct-navbar .navbar-collapse .d-flex {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem !important;
  }

  .ct-navbar .nav-link {
    min-height: 40px;
  }

  .ct-navbar .navbar-collapse .btn {
    min-height: 38px;
    padding: 0.38rem 0.82rem;
    font-size: 0.875rem;
  }

  .ct-client-status-main {
    padding-top: 1rem;
  }

  .ct-client-status-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .ct-client-status-grid {
    grid-template-columns: 1fr;
  }

  .ct-client-status-card {
    min-height: 94px;
  }

  .ct-stat {
    min-height: 104px;
  }

  .auth-aside,
  .auth-card {
    border-radius: var(--brand-radius);
  }

  .auth-card {
    border-left: 1px solid var(--brand-border);
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-inline: 1rem;
  }

  .ct-navbar > .container-fluid {
    padding-inline: 0.85rem;
  }

  .ct-home-body main.container {
    padding-top: 0.85rem !important;
  }

  .ct-home-hero {
    margin-inline: -1rem;
    padding-inline: 1rem !important;
  }

  .ct-home-hero .ct-kicker {
    font-size: 0.72rem;
  }

  .ct-home-hero h1 {
    font-size: clamp(2rem, 11vw, 2.72rem);
  }

  .ct-home-hero .text-muted:not(.lead) {
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .ct-quick-strip,
  .ct-dashboard-priority-grid,
  .ct-metric-grid,
  .ct-home-tile-grid,
  .ct-audience-grid,
  .ct-hero-preview-wide .ct-preview-list,
  .ct-preview-grid,
  .ct-public-footer-links {
    grid-template-columns: 1fr;
  }

  .ct-dashboard-priority-grid,
  .ct-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-dashboard-priority-grid {
    gap: 0.58rem;
  }

  .ct-dashboard-hero .ct-hero-actions {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .ct-dashboard-hero .ct-hero-actions .btn {
    min-height: 46px;
  }

  .ct-stat {
    min-height: 104px;
    padding: 0.78rem;
  }

  .ct-stat-featured {
    min-height: 116px;
  }

  .ct-stat-featured small {
    display: none;
  }

  .ct-stat > span:not(.ct-stat-icon) {
    font-size: 0.68rem;
  }

  .ct-stat strong {
    font-size: 1.32rem;
  }

  .ct-stat-icon,
  .ct-stat-compact .ct-stat-icon {
    width: 30px;
    height: 30px;
    top: 0.68rem;
    right: 0.68rem;
  }

  .ct-stat-icon svg {
    width: 15px;
    height: 15px;
  }

  .ct-home-proof-row {
    flex-wrap: nowrap;
    margin-inline: -1rem;
    overflow-x: auto;
    padding: 0 1rem 0.15rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .ct-home-proof-row::-webkit-scrollbar {
    display: none;
  }

  .ct-home-actions .btn {
    width: 100%;
  }

  .ct-home-proof-row span {
    width: auto;
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .ct-timeline-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ct-timeline-row .badge {
    grid-column: 2;
    justify-self: start;
  }

  .ct-hero-preview {
    padding: 0.85rem;
  }

  .ct-preview-topline {
    align-items: flex-start;
  }

  .ct-preview-stat {
    min-height: 82px;
  }

  .ct-timeline-row {
    padding: 0.68rem;
  }

  .ct-home-tile,
  .ct-audience-card,
  .ct-feature-card .card-body,
  .ct-price-card .card-body {
    padding: 0.9rem;
  }

  .ct-home-tile {
    min-height: 64px;
  }

  .ct-feature-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.3rem;
  }

  .ct-price-card ul {
    padding-left: 1.05rem;
  }

  .ct-panel {
    border-radius: 14px;
  }

  .ct-mobile-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .ct-mobile-sheet-grid a {
    flex-direction: column;
    justify-content: center;
    gap: 0.38rem;
    min-height: 72px;
    font-size: 0.78rem;
    text-align: center;
  }

  .ct-mobile-bottom-nav span {
    font-size: 0.64rem;
  }

  .ct-mobile-fab {
    width: 54px;
    height: 54px;
  }

  .ct-public-footer {
    padding-block: 1rem;
  }

  .ct-client-status-main {
    padding-inline: 1rem;
  }

  .ct-client-status-hero,
  .ct-client-error-card,
  .ct-client-status-card,
  .ct-client-update-card,
  .ct-client-document-item,
  .ct-client-empty {
    border-radius: 14px;
  }

  .ct-client-status-pill {
    width: 100%;
    justify-content: center;
  }

  .ct-public-footer-bottom {
    flex-direction: column;
  }

  .ct-notification-card {
    grid-template-columns: 1fr;
  }

  .ct-notification-actions {
    justify-content: stretch;
  }

  .ct-notification-actions .btn,
  .ct-notification-actions form {
    width: 100%;
  }
}
