:root {
  --bg: #f5f8fb;
  --bg-grad-start: #f7fbfd;
  --bg-grad-end: #f2f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --surface-dark: #0f2742;
  --primary: #0e7490;
  --primary-deep: #0b5d75;
  --primary-ink: #123f61;
  --accent: #f59e0b;
  --accent-soft: #fef3d5;
  --blue-soft: #dff5ff;
  --text: #122033;
  --muted: #66768a;
  --border: #dce4ee;
  --success: #0f9d58;
  --danger: #d14343;
  --shadow: 0 20px 45px rgba(10, 32, 56, 0.08);
  --sidebar-start: #0c2038;
  --sidebar-end: #12355a;
  --topbar-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  --topbar-border: rgba(255, 255, 255, 0.75);
  --hero-bg:
    radial-gradient(circle at top left, rgba(14, 116, 144, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.2), transparent 24%),
    linear-gradient(135deg, #f8fcff 0%, #edf6fa 58%, #fff8ec 100%);
  --public-header-bg: rgba(255, 255, 255, 0.82);
  --public-header-border: rgba(255, 255, 255, 0.65);
  --public-footer-bg:
    radial-gradient(circle at 10% 0%, rgba(14, 116, 144, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  --tile-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 248, 0.9));
  --quick-link-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 251, 0.95));
  --archive-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.95));
  --auth-shell-bg:
    radial-gradient(circle at top, rgba(14, 116, 144, 0.16), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.1), transparent 16%),
    linear-gradient(135deg, #ecf5f8, #f8fbfd);
  --analytics-bg:
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.08), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
  --profile-card-bg:
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.12), transparent 28%),
    linear-gradient(145deg, #f8fcff 0%, #edf6fa 100%);
  --empty-bg: rgba(255, 255, 255, 0.7);
  --theme-toggle-bg: rgba(255, 255, 255, 0.78);
  --theme-toggle-border: rgba(14, 116, 144, 0.1);
  --theme-toggle-text: #123f61;
  --table-hover: rgba(14, 116, 144, 0.05);
  --chart-bar: #0e7490;
  --chart-grid: rgba(102, 118, 138, 0.18);
  --chart-label: #66768a;
}

:root[data-theme="dark"] {
  --bg: #0a1220;
  --bg-grad-start: #0b1424;
  --bg-grad-end: #111d30;
  --surface: #111c2e;
  --surface-soft: #162235;
  --surface-dark: #08111d;
  --primary: #2cc2cf;
  --primary-deep: #1fa1ad;
  --primary-ink: #d9fbff;
  --accent: #f3b34c;
  --accent-soft: rgba(243, 179, 76, 0.18);
  --blue-soft: rgba(62, 175, 255, 0.14);
  --text: #edf4fb;
  --muted: #94a8bf;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  --sidebar-start: #08101d;
  --sidebar-end: #10213a;
  --topbar-bg: linear-gradient(135deg, rgba(17, 28, 46, 0.96), rgba(17, 28, 46, 0.82));
  --topbar-border: rgba(148, 163, 184, 0.12);
  --hero-bg:
    radial-gradient(circle at top left, rgba(44, 194, 207, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(243, 179, 76, 0.16), transparent 26%),
    linear-gradient(135deg, #0d1728 0%, #122136 55%, #1b2437 100%);
  --public-header-bg: rgba(12, 21, 34, 0.9);
  --public-header-border: rgba(148, 163, 184, 0.12);
  --public-footer-bg:
    radial-gradient(circle at 10% 0%, rgba(44, 194, 207, 0.08), transparent 26%),
    linear-gradient(180deg, #0c1524 0%, #0f1b2e 100%);
  --tile-bg: linear-gradient(145deg, rgba(18, 30, 49, 0.96), rgba(17, 28, 46, 0.9));
  --quick-link-bg: linear-gradient(145deg, rgba(18, 30, 49, 0.9), rgba(16, 26, 42, 0.96));
  --archive-card-bg: linear-gradient(145deg, rgba(17, 28, 46, 0.98), rgba(13, 23, 40, 0.95));
  --auth-shell-bg:
    radial-gradient(circle at top, rgba(44, 194, 207, 0.14), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(243, 179, 76, 0.1), transparent 18%),
    linear-gradient(135deg, #091321, #111d30);
  --analytics-bg:
    radial-gradient(circle at top right, rgba(44, 194, 207, 0.08), transparent 26%),
    linear-gradient(145deg, #111c2e 0%, #0f1a2c 100%);
  --profile-card-bg:
    radial-gradient(circle at top right, rgba(44, 194, 207, 0.1), transparent 28%),
    linear-gradient(145deg, #121f33 0%, #0f1b2f 100%);
  --empty-bg: rgba(17, 28, 46, 0.62);
  --theme-toggle-bg: rgba(17, 28, 46, 0.88);
  --theme-toggle-border: rgba(148, 163, 184, 0.14);
  --theme-toggle-text: #ecf7ff;
  --table-hover: rgba(44, 194, 207, 0.08);
  --chart-bar: #2cc2cf;
  --chart-grid: rgba(148, 163, 184, 0.14);
  --chart-label: #94a8bf;
}

html {
  font-size: 15px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 116, 144, 0.08), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.08), transparent 18%),
    linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(44, 194, 207, 0.08), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(243, 179, 76, 0.06), transparent 18%),
    linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
}

a {
  text-decoration: none;
}

.app-shell {
  position: relative;
  overflow-x: hidden;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1090;
}

.app-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.24s ease;
}

.sidebar-shell {
  background: linear-gradient(180deg, var(--sidebar-start) 0%, var(--sidebar-end) 100%);
  color: #fff;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: transform 0.24s ease, padding 0.24s ease, width 0.24s ease, box-shadow 0.24s ease;
  z-index: 1100;
}

.sidebar-shell::before,
.sidebar-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.sidebar-shell::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -50px;
  background: radial-gradient(circle, rgba(44, 194, 207, 0.22), transparent 70%);
}

.sidebar-shell::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.18), transparent 68%);
}

.sidebar-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.sidebar-brand-copy {
  min-width: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.sidebar-brand-copy h5 {
  color: rgba(255, 255, 255, 0.96);
}

.sidebar-shell .text-muted,
.sidebar-brand-copy .small,
.sidebar-brand-copy .text-muted {
  color: rgba(226, 238, 249, 0.72) !important;
}

.sidebar-badge {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  padding: 0.45rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(6, 18, 31, 0.26);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(3, 14, 24, 0.24));
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, padding 0.2s ease, gap 0.2s ease;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-link-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.main-shell {
  padding: 1.5rem;
  min-width: 0;
}

.topbar-shell {
  background: var(--topbar-bg);
  border: 1px solid var(--topbar-border);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 1050;
}

.topbar-heading-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.topbar-shell::after {
  content: "";
  position: absolute;
  inset: auto -24px -54px auto;
  width: 180px;
  height: 120px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.14), transparent 72%);
  pointer-events: none;
}

.content-shell {
  padding-top: 1.5rem;
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.page-heading {
  font-size: 1.5rem;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.topbar-actions > * {
  max-width: 100%;
  min-width: 0;
}

.sidebar-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--theme-toggle-border);
  background: var(--theme-toggle-bg);
  color: var(--theme-toggle-text);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 39, 66, 0.08);
}

.sidebar-toggle:hover,
.theme-toggle:hover {
  color: var(--primary-ink);
  border-color: rgba(44, 194, 207, 0.22);
}

.sidebar-toggle {
  border-radius: 16px;
  width: 48px;
  min-width: 48px;
  padding-inline: 0;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-toggle i {
  font-size: 1rem;
}

.sidebar-toggle-text {
  white-space: nowrap;
  display: none;
}

.topbar-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(14, 116, 144, 0.1);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 39, 66, 0.06);
}

.topbar-profile:hover {
  color: var(--primary-ink);
  background: rgba(255, 255, 255, 0.92);
}

.topbar-profile-trigger {
  border: 0;
  cursor: pointer;
  text-align: left;
}

.topbar-profile-trigger::after {
  display: none;
}

.topbar-profile-chevron {
  margin-right: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.topbar-profile-trigger[aria-expanded="true"] .topbar-profile-chevron {
  transform: rotate(180deg);
}

.topbar-user-dropdown {
  width: min(19rem, calc(100vw - 2rem));
  margin-top: 0.65rem !important;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(15, 39, 66, 0.18);
  z-index: 1100;
}

.topbar-user-dropdown-heading {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.55rem 0.7rem 0.65rem;
}

.topbar-user-dropdown-heading strong {
  color: var(--text);
  font-size: 0.92rem;
}

.topbar-user-dropdown-heading span {
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar-user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  font-weight: 600;
}

.topbar-user-dropdown .dropdown-item i {
  width: 1.25rem;
  color: var(--primary);
  text-align: center;
}

.topbar-user-dropdown .dropdown-item:hover,
.topbar-user-dropdown .dropdown-item:focus {
  color: var(--primary-ink);
  background: var(--surface-soft);
}

.topbar-user-dropdown .dropdown-divider {
  border-color: var(--border);
}

.topbar-user-dropdown .topbar-logout-item,
.topbar-user-dropdown .topbar-logout-item i {
  color: var(--danger);
}

.topbar-profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.topbar-profile-meta strong {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-profile-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-profile-avatar,
.user-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.18), rgba(245, 158, 11, 0.16));
  color: var(--primary-ink);
  font-weight: 800;
}

.topbar-profile-avatar img,
.user-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
}

.stat-card {
  padding: 1.25rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.stat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(15, 39, 66, 0.1);
}

.stat-card-link:focus-visible {
  outline: 2px solid rgba(14, 116, 144, 0.28);
  outline-offset: 3px;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -36px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(6px);
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 24px rgba(15, 39, 66, 0.08);
}

.stat-card-teal {
  background: linear-gradient(135deg, #e5fbfd 0%, #f9feff 100%);
}

.stat-card-blue {
  background: linear-gradient(135deg, #ebf5ff 0%, #fbfdff 100%);
}

.stat-card-amber {
  background: linear-gradient(135deg, #fff5df 0%, #fffdf8 100%);
}

.stat-card-slate {
  background: linear-gradient(135deg, #edf3f9 0%, #fcfdff 100%);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-heading {
  font-size: 1.05rem;
  font-weight: 700;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.badge-soft {
  background: rgba(14, 116, 144, 0.08);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-panel {
  background: var(--hero-bg);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-panel-carousel-only {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-carousel-shell {
  width: 100%;
  margin: 0;
}

.public-home-carousel {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(15, 39, 66, 0.16);
  background: rgba(8, 18, 31, 0.9);
}

.public-carousel-card {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: end;
}

.public-carousel-card-standalone {
  min-height: 650px;
  background:
    linear-gradient(180deg, rgba(18, 40, 63, 0.9), rgba(10, 23, 38, 0.96));
  border-radius: 0;
}

.public-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.public-carousel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.84) 0%, rgba(7, 17, 29, 0.58) 46%, rgba(7, 17, 29, 0.18) 100%),
    linear-gradient(180deg, rgba(14, 116, 144, 0.14), rgba(245, 158, 11, 0.08));
}

.public-carousel-overlay-standalone {
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.34) 0%, rgba(8, 18, 31, 0.08) 18%, rgba(8, 18, 31, 0.05) 82%, rgba(8, 18, 31, 0.3) 100%);
}

.public-carousel-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2.25rem 2.5rem 2.6rem;
  color: #f5fbff;
}

.public-carousel-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0;
}

.public-carousel-text {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: rgba(237, 247, 255, 0.9);
  font-size: 1.02rem;
}

.public-home-carousel .carousel-indicators {
  margin-bottom: 1rem;
}

.public-home-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.public-home-carousel .carousel-control-prev,
.public-home-carousel .carousel-control-next {
  width: 7%;
}

.public-home-carousel .carousel-control-prev-icon,
.public-home-carousel .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(7, 17, 29, 0.55);
  background-size: 50%;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: 10%;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.12), transparent 72%);
}

.hero-panel::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.04;
  font-weight: 800;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-stack,
.quick-links,
.metric-grid,
.content-grid,
.auth-card,
.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-stack {
  padding: 1.5rem;
  position: relative;
}

.metric-grid {
  padding: 1rem;
}

.metric-tile {
  border-radius: 18px;
  background: var(--tile-bg);
  padding: 1rem;
  height: 100%;
  border: 1px solid rgba(14, 116, 144, 0.08);
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
}

.quick-links {
  padding: 1rem;
}

.quick-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--quick-link-bg);
}

.quick-link-item:hover {
  background: var(--surface-soft);
}

.public-header {
  background: var(--public-header-bg);
  border-bottom: 1px solid var(--public-header-border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.public-header .nav-link,
.public-header .navbar-brand,
.public-header .navbar-toggler {
  color: var(--text);
}

.public-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--public-footer-bg);
}

.content-grid {
  padding: 1.25rem;
}

.archive-card,
.timeline-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  background: var(--archive-card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 39, 66, 0.08);
}

.timeline-item {
  border-left: 3px solid rgba(14, 116, 144, 0.15);
  padding-left: 1rem;
  margin-left: 0.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: -7px;
  top: 0.25rem;
}

.order-business-card {
  margin-left: calc(var(--order-level, 0) * 1.15rem);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.order-business-card.is-current {
  --current-card-shadow: rgba(202, 138, 4, 0.24);
  border: 2px solid #eab308;
  background: linear-gradient(115deg, rgba(254, 240, 138, 0.78), rgba(254, 249, 195, 0.58) 58%, var(--archive-card-bg));
  box-shadow: 0 14px 34px var(--current-card-shadow);
  transform: translateX(4px);
  animation: current-agenda-card-in 0.35s ease-out, current-agenda-card-glow 3s ease-in-out 0.35s infinite;
}

.order-business-card.is-current::before {
  content: "";
  position: absolute;
  inset: 0.7rem auto 0.7rem -2px;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: #eab308;
}

:root[data-theme="dark"] .order-business-card.is-current {
  --current-card-shadow: rgba(52, 211, 153, 0.27);
  border-color: #34d399;
  background: linear-gradient(115deg, rgba(6, 78, 59, 0.78), rgba(13, 148, 136, 0.2) 60%, var(--archive-card-bg));
}

:root[data-theme="dark"] .order-business-card.is-current::before {
  background: #34d399;
}

.order-business-card.is-completed {
  opacity: 0.72;
}

.order-business-main {
  min-width: min(100%, 28rem);
}

.order-business-title {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.current-agenda-indicator {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 7px 18px rgba(21, 128, 61, 0.3);
}

.order-business-card.is-current .current-agenda-indicator {
  display: inline-flex;
}

.current-agenda-pulse {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: current-agenda-pulse 1.8s ease-out infinite;
}

@keyframes current-agenda-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.62);
  }
  70% {
    box-shadow: 0 0 0 0.42rem rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes current-agenda-card-in {
  from {
    opacity: 0.78;
    transform: translateX(0) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateX(4px) scale(1);
  }
}

@keyframes current-agenda-card-glow {
  0%, 100% {
    box-shadow: 0 14px 34px var(--current-card-shadow);
  }
  50% {
    box-shadow: 0 17px 42px var(--current-card-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-business-card.is-current,
  .current-agenda-pulse {
    animation: none;
  }
}

.order-business-label {
  min-width: 2.4rem;
  color: var(--primary);
  font-weight: 800;
}

.order-business-description {
  margin-top: 0.45rem;
  padding-left: 2.95rem;
  color: var(--text);
  display: grid;
  gap: 0.2rem;
}

.order-business-edit {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.auth-shell {
  background: var(--auth-shell-bg);
}

.auth-shell-toolbar {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  max-width: 980px;
  width: 100%;
  overflow: hidden;
}

.auth-panel {
  padding: 2rem;
}

.auth-brand {
  background: linear-gradient(145deg, #10304d, #0e7490);
  color: white;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-brand::before {
  width: 220px;
  height: 220px;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.auth-brand::after {
  width: 190px;
  height: 190px;
  left: -70px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 66%);
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  width: 86px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(6, 18, 31, 0.18));
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.auth-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand-tagline {
  font-size: 0.95rem;
  color: rgba(232, 245, 255, 0.78);
}

.form-shell {
  padding: 1.5rem;
}

.profile-hero-card {
  height: 100%;
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(14, 116, 144, 0.1);
  background: var(--profile-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.profile-avatar-shell {
  width: 150px;
  height: 150px;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 116, 144, 0.08);
  box-shadow: 0 18px 34px rgba(15, 39, 66, 0.12);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  color: rgba(18, 63, 97, 0.46);
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 116, 144, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 242, 247, 0.86));
}

.table-card {
  padding: 1.2rem;
  max-width: 100%;
}

.table-card .table-responsive,
.table-card .dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.table-card .table,
.table-card table.dataTable {
  width: 100% !important;
}

.document-filter-actions > * {
  flex: 1 1 180px;
}

.document-filter-actions .btn {
  justify-content: center;
}

.table thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.chat-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
}

.chat-thread-list,
.chat-message-pane {
  padding: 1rem;
}

.chat-message {
  border-radius: 18px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  max-width: 720px;
}

.chat-message.mine {
  background: rgba(14, 116, 144, 0.12);
  margin-left: auto;
}

.chat-message.theirs {
  background: var(--surface-soft);
}

.calendar-shell {
  padding: 1rem;
}

.calendar-shell .fc {
  --fc-border-color: rgba(117, 140, 166, 0.16);
  --fc-neutral-bg-color: rgba(117, 140, 166, 0.08);
  --fc-list-event-hover-bg-color: rgba(14, 116, 144, 0.08);
  --fc-page-bg-color: transparent;
  --fc-today-bg-color: rgba(14, 116, 144, 0.08);
}

.calendar-shell .fc-theme-standard td,
.calendar-shell .fc-theme-standard th,
.calendar-shell .fc-theme-standard .fc-scrollgrid {
  border-color: rgba(117, 140, 166, 0.14);
}

.calendar-shell .fc .fc-toolbar {
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.calendar-shell .fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 1rem;
}

.calendar-shell .fc .fc-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.calendar-shell .fc .fc-button {
  border-radius: 16px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-ink);
  box-shadow: none;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.calendar-shell .fc .fc-button:hover,
.calendar-shell .fc .fc-button:focus,
.calendar-shell .fc .fc-button:active,
.calendar-shell .fc .fc-button-primary:not(:disabled).fc-button-active {
  background: rgba(14, 116, 144, 0.12);
  border-color: rgba(14, 116, 144, 0.24);
  color: var(--primary-ink);
  box-shadow: none;
}

.calendar-shell .fc .fc-col-header-cell-cushion,
.calendar-shell .fc .fc-daygrid-day-number,
.calendar-shell .fc .fc-list-day-text,
.calendar-shell .fc .fc-list-day-side-text {
  color: var(--body-color);
  text-decoration: none;
  font-weight: 600;
}

.calendar-shell .fc .fc-event {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 39, 66, 0.08);
}

.calendar-shell .fc .fc-daygrid-day-frame {
  min-height: 8rem;
}

.calendar-shell .fc .fc-daygrid-event {
  padding: 0.2rem 0.4rem;
  white-space: normal;
  align-items: flex-start;
}

.calendar-shell .fc .fc-daygrid-event .fc-event-main,
.calendar-shell .fc .fc-daygrid-event .fc-event-title,
.calendar-shell .fc .fc-daygrid-event .fc-event-title-container {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  line-height: 1.2;
}

.calendar-shell .fc .fc-daygrid-dot-event .fc-event-title {
  white-space: normal;
}

.calendar-shell .fc .fc-list-event-title a {
  color: inherit;
  text-decoration: none;
}

.calendar-shell .fc .fc-list-empty {
  background: transparent;
}

.dashboard-calendar-shell {
  position: relative;
  overflow: hidden;
}

.dashboard-calendar {
  min-height: 520px;
}

.dashboard-calendar .fc {
  --fc-border-color: rgba(117, 140, 166, 0.16);
  --fc-neutral-bg-color: rgba(117, 140, 166, 0.08);
  --fc-list-event-hover-bg-color: rgba(14, 116, 144, 0.08);
  --fc-page-bg-color: transparent;
  --fc-today-bg-color: rgba(14, 116, 144, 0.08);
}

.dashboard-calendar .fc-theme-standard td,
.dashboard-calendar .fc-theme-standard th,
.dashboard-calendar .fc-theme-standard .fc-scrollgrid {
  border-color: rgba(117, 140, 166, 0.14);
}

.dashboard-calendar .fc .fc-toolbar {
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-calendar .fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 1rem;
}

.dashboard-calendar .fc .fc-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.dashboard-calendar .fc .fc-button {
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-ink);
  box-shadow: none;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.dashboard-calendar .fc .fc-button:hover,
.dashboard-calendar .fc .fc-button:focus,
.dashboard-calendar .fc .fc-button:active,
.dashboard-calendar .fc .fc-button-primary:not(:disabled).fc-button-active {
  background: rgba(14, 116, 144, 0.12);
  border-color: rgba(14, 116, 144, 0.24);
  color: var(--primary-ink);
  box-shadow: none;
}

.dashboard-calendar .fc .fc-col-header-cell-cushion,
.dashboard-calendar .fc .fc-daygrid-day-number,
.dashboard-calendar .fc .fc-list-day-text,
.dashboard-calendar .fc .fc-list-day-side-text {
  color: var(--body-color);
  text-decoration: none;
  font-weight: 600;
}

.dashboard-calendar .fc .fc-event {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 39, 66, 0.08);
}

.dashboard-calendar .fc .fc-daygrid-event {
  padding: 0.15rem 0.35rem;
}

.dashboard-calendar .fc .fc-list-event-title a {
  color: inherit;
  text-decoration: none;
}

.dashboard-calendar .fc .fc-list-empty {
  background: transparent;
}

.attachment-list {
  display: grid;
  gap: 0.9rem;
}

.session-row-toggle-hint {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.session-list-detail-row > td {
  padding: 0 0 0.85rem;
  border-top: 0;
}

.session-list-detail-card {
  margin: 0 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  background: rgba(245, 251, 255, 0.88);
}

.session-list-detail-grid {
  display: grid;
  gap: 0.75rem;
}

.session-list-detail-item {
  display: grid;
  gap: 0.15rem;
}

.session-list-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.session-list-detail-value {
  color: var(--text);
}

.attachment-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--archive-card-bg);
}

.attachment-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0.55rem;
}

.attachment-view-button {
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(14, 116, 144, 0.2);
}

.attachment-view-button .bi {
  font-size: 1.1rem;
}

.attachment-secondary-action,
.attachment-archive-action .btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.document-detail-heading-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.document-detail-primary-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.document-top-view-button {
  min-width: 220px;
  min-height: 64px;
  padding: 0.8rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  text-align: left;
  box-shadow: 0 14px 28px rgba(14, 116, 144, 0.24);
}

.document-top-view-button > .bi {
  flex: 0 0 auto;
  font-size: 1.45rem;
}

.document-top-view-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.document-top-view-button strong {
  font-size: 0.98rem;
}

.document-top-view-button small {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.84;
}

.document-history-setting {
  min-height: 58px;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--archive-card-bg);
}

.role-selection {
  position: relative;
}

.role-selection-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-selection-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--archive-card-bg);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.role-selection-card:hover {
  border-color: rgba(44, 194, 207, 0.3);
  transform: translateY(-1px);
}

.role-selection-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(117, 140, 166, 0.42);
  background: rgba(255, 255, 255, 0.54);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: all 0.18s ease;
}

.role-selection-check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
}

.role-selection-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.role-selection-title {
  font-weight: 700;
  color: var(--text);
}

.role-selection-description {
  color: var(--muted);
  font-size: 0.95rem;
}

.role-selection-input:focus-visible + .role-selection-card {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(44, 194, 207, 0.14);
  border-color: rgba(44, 194, 207, 0.45);
}

.role-selection-input:checked + .role-selection-card {
  border-color: rgba(44, 194, 207, 0.45);
  background: linear-gradient(145deg, rgba(44, 194, 207, 0.12), rgba(255, 255, 255, 0.95));
  box-shadow: 0 14px 28px rgba(15, 39, 66, 0.08);
}

.role-selection-input:checked + .role-selection-card .role-selection-check {
  border-color: rgba(14, 116, 144, 0.86);
  background: rgba(14, 116, 144, 0.9);
}

.role-selection-input:checked + .role-selection-card .role-selection-check::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

.attachment-modal-dialog {
  margin: 1rem auto;
}

.modal-backdrop {
  z-index: 1190;
}

#attachmentPreviewModal {
  z-index: 1200;
}

.attachment-modal-content {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: min(92vh, 980px);
}

.attachment-modal-content .modal-body {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 0.75rem 1rem;
  flex: 1 1 auto;
}

.attachment-preview-shell {
  width: 100%;
  min-height: 72vh;
  border-radius: 22px;
  border: 1px dashed rgba(117, 140, 166, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 251, 0.95));
  padding: 0.75rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.attachment-preview-empty,
.attachment-preview-fallback,
.attachment-preview-audio {
  width: 100%;
  max-width: 540px;
  text-align: center;
  color: var(--muted);
}

.attachment-preview-empty i,
.attachment-preview-fallback i,
.attachment-preview-audio i {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.attachment-preview-image,
.attachment-preview-frame,
.attachment-preview-media {
  width: 100%;
  min-height: 68vh;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.attachment-preview-image {
  object-fit: contain;
}

.attachment-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 18, 31, 0.76);
  color: #fff;
  box-shadow: 0 14px 28px rgba(7, 16, 30, 0.24);
  transform: translateY(-50%);
}

.attachment-preview-nav:hover,
.attachment-preview-nav:focus-visible {
  background: rgba(14, 116, 144, 0.94);
  color: #fff;
}

.attachment-preview-nav-prev {
  left: 1.4rem;
}

.attachment-preview-nav-next {
  right: 1.4rem;
}

.analytics-shell {
  background: var(--analytics-bg);
}

.dashboard-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.dashboard-shortcuts-shell {
  background:
    linear-gradient(135deg, rgba(236, 251, 255, 0.96), rgba(255, 248, 238, 0.96));
  border: 1px solid rgba(14, 116, 144, 0.08);
  color: var(--primary-ink);
}

.dashboard-shortcuts-shell .card-heading {
  color: var(--primary-ink);
}

.dashboard-shortcuts-shell .text-muted,
.dashboard-shortcuts-shell .small.text-muted {
  color: var(--muted) !important;
}

.dashboard-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.dashboard-shortcut-btn {
  min-width: 180px;
  padding: 0.75rem 1.2rem;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(14, 116, 144, 0.16);
  color: var(--primary-ink);
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(15, 39, 66, 0.05);
}

.dashboard-shortcut-btn:hover,
.dashboard-shortcut-btn:focus-visible {
  background: rgba(14, 116, 144, 0.08);
  border-color: rgba(14, 116, 144, 0.3);
  color: var(--primary-ink);
}

.hero-feature-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-ink);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(15, 39, 66, 0.05);
}

.hero-visual {
  position: relative;
  border-radius: 26px;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(236, 251, 255, 0.92), rgba(255, 247, 232, 0.96));
  border: 1px solid rgba(14, 116, 144, 0.08);
  overflow: hidden;
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero-orb-a {
  width: 90px;
  height: 90px;
  top: 18px;
  left: 18px;
  background: rgba(44, 194, 207, 0.18);
}

.hero-orb-b {
  width: 60px;
  height: 60px;
  right: 20px;
  top: 26px;
  background: rgba(245, 158, 11, 0.22);
}

.hero-orb-c {
  width: 120px;
  height: 120px;
  right: 38px;
  bottom: 10px;
  background: rgba(14, 116, 144, 0.08);
}

.hero-floating-card {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 116, 144, 0.08);
  box-shadow: 0 16px 28px rgba(15, 39, 66, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-floating-card-top {
  top: 18px;
  right: 14px;
}

.hero-floating-card-bottom {
  left: 18px;
  bottom: 16px;
}

.archive-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(14, 116, 144, 0.1);
  color: var(--primary);
}

.archive-icon-warm {
  background: rgba(245, 158, 11, 0.14);
  color: #c07c09;
}

.archive-icon-calm {
  background: rgba(36, 117, 193, 0.12);
  color: #2466a8;
}

.archive-icon-news {
  background: rgba(23, 162, 184, 0.12);
  color: #137b8b;
}

.archive-card-notice {
  position: relative;
}

.archive-card-notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), rgba(14, 116, 144, 0.22));
}

.public-brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 252, 0.98));
  box-shadow: 0 12px 24px rgba(15, 39, 66, 0.08);
}

.public-brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.public-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.public-brand-copy strong {
  color: var(--text);
}

.public-brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-signin-btn {
  font-size: 1rem;
  font-weight: 700;
  min-width: 112px;
}

.public-social-widget {
  padding: 1rem;
}

.public-social-embed {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.public-social-embed iframe {
  width: 100%;
  max-width: 100%;
  display: block;
}

.public-portal-carousel-thumb {
  width: 88px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.news-post-card {
  padding: 1.5rem;
}

.news-post-cover,
.news-post-video {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(8, 18, 31, 0.8);
}

.news-post-embed {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(8, 18, 31, 0.82);
}

.news-post-embed iframe,
.news-post-embed video,
.news-post-embed embed,
.news-post-embed object {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
}

.news-post-content {
  color: var(--text);
  line-height: 1.75;
}

.news-post-content p:last-child {
  margin-bottom: 0;
}

.verify-entry-card {
  padding: 1.5rem;
}

.verify-scanner-shell {
  border: 1px dashed var(--border);
  border-radius: 22px;
  padding: 1rem;
  background: var(--empty-bg);
}

.verify-camera-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(8, 18, 31, 0.92);
  aspect-ratio: 4 / 3;
}

.verify-camera-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.verify-camera-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 18, 31, 0.3), transparent 18%, transparent 82%, rgba(8, 18, 31, 0.3)),
    linear-gradient(180deg, rgba(8, 18, 31, 0.3), transparent 18%, transparent 82%, rgba(8, 18, 31, 0.3));
}

.public-portal-carousel-preview {
  width: min(100%, 460px);
  border-radius: 20px;
  display: block;
  border: 1px solid var(--border);
}

.auth-visual {
  position: relative;
  z-index: 1;
}

.auth-illustration {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.auth-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.settings-brand-preview {
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.64);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 84px;
}

.settings-brand-image {
  max-width: 140px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.settings-brand-preview-seal {
  min-width: 120px;
  min-height: 120px;
  border-radius: 50%;
}

.settings-brand-image-seal {
  max-width: 100px;
  max-height: 100px;
}

.settings-brand-card {
  height: 100%;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--archive-card-bg);
}

.auth-municipality-logo-shell {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.auth-municipality-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  flex: 0 0 auto;
}

.auth-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.83rem;
  font-weight: 700;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(14, 116, 144, 0.08);
  color: var(--primary);
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--empty-bg);
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple,
.form-control,
.form-select {
  min-height: 48px;
  border-color: var(--border);
  border-radius: 14px;
  background-color: var(--surface);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(44, 194, 207, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(44, 194, 207, 0.14);
}

.form-control::placeholder {
  color: var(--muted);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-hover-bg: var(--table-hover);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

.public-search-box {
  background: var(--surface);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.public-home-highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
}

.public-home-highlight-card {
  height: 100%;
}

.public-home-mini-links {
  display: grid;
  gap: 0.75rem;
}

.user-avatar-stack {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.official-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  background: var(--archive-card-bg);
  box-shadow: 0 16px 32px rgba(15, 39, 66, 0.06);
}

.official-feature-card {
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 28px;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(14, 116, 144, 0.12), rgba(255, 255, 255, 0.98));
  box-shadow: 0 24px 48px rgba(15, 39, 66, 0.12);
}

.official-group + .official-group {
  margin-top: 2rem;
}

.official-group-separated {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.official-group-title {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.official-photo-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.12), rgba(245, 158, 11, 0.12));
  aspect-ratio: 4 / 4.6;
}

.official-photo-shell-featured {
  aspect-ratio: 4 / 4.2;
  min-height: 100%;
}

.official-photo-shell-compact {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.official-photo,
.official-photo-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.official-photo {
  object-fit: cover;
}

.official-photo-placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-ink);
}

.official-photo-placeholder-compact {
  font-size: 1.1rem;
}

.official-feature-badge {
  background: rgba(14, 116, 144, 0.14);
  color: var(--primary-ink);
}

.official-feature-label {
  letter-spacing: 0.14em;
}

.official-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.official-feature-bio {
  max-width: 62ch;
  line-height: 1.7;
}

.official-card-compact {
  padding: 0.7rem;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(15, 39, 66, 0.05);
}

.official-card-compact .official-meta {
  text-align: center;
}

.official-card-compact .official-meta .fw-semibold {
  font-size: 0.92rem;
}

.official-card-compact .official-meta .small {
  font-size: 0.74rem;
}

.user-avatar-sm {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.sidebar-collapsed .app-frame {
  grid-template-columns: 132px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar-shell {
  padding-inline: 0.85rem;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
}

body.sidebar-collapsed .sidebar-badge {
  margin-inline: auto;
}

body.sidebar-collapsed .sidebar-brand-copy {
  opacity: 0;
  width: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-nav .nav-link {
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.55rem;
  min-height: 84px;
  text-align: center;
}

body.sidebar-collapsed .sidebar-nav .nav-link i {
  margin: 0;
  font-size: 1.2rem;
}

body.sidebar-collapsed .sidebar-link-label {
  opacity: 1;
  width: auto;
  transform: none;
  pointer-events: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 700;
}

:root[data-theme="dark"] .sidebar-nav .nav-link {
  color: rgba(236, 247, 255, 0.8);
}

:root[data-theme="dark"] .sidebar-nav .nav-link:hover,
:root[data-theme="dark"] .sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .stat-card-teal {
  background: linear-gradient(135deg, rgba(18, 35, 52, 0.96) 0%, rgba(13, 25, 40, 0.96) 100%);
}

:root[data-theme="dark"] .stat-card-blue {
  background: linear-gradient(135deg, rgba(18, 31, 55, 0.96) 0%, rgba(13, 24, 43, 0.96) 100%);
}

:root[data-theme="dark"] .stat-card-amber {
  background: linear-gradient(135deg, rgba(42, 31, 16, 0.92) 0%, rgba(28, 24, 17, 0.96) 100%);
}

:root[data-theme="dark"] .stat-card-slate {
  background: linear-gradient(135deg, rgba(19, 29, 44, 0.96) 0%, rgba(13, 22, 35, 0.98) 100%);
}

:root[data-theme="dark"] .dashboard-shortcuts-shell {
  background:
    linear-gradient(135deg, rgba(19, 33, 48, 0.98), rgba(24, 31, 43, 0.98));
  border-color: rgba(123, 209, 255, 0.14);
  color: rgba(238, 247, 255, 0.96);
}

:root[data-theme="dark"] .dashboard-shortcuts-shell .card-heading {
  color: rgba(245, 250, 255, 0.98);
}

:root[data-theme="dark"] .dashboard-shortcuts-shell .text-muted,
:root[data-theme="dark"] .dashboard-shortcuts-shell .small.text-muted {
  color: rgba(207, 222, 238, 0.78) !important;
}

:root[data-theme="dark"] .dashboard-shortcut-btn {
  background: rgba(12, 23, 36, 0.72);
  border-color: rgba(123, 209, 255, 0.28);
  color: rgba(221, 245, 255, 0.96);
  box-shadow: 0 16px 28px rgba(3, 10, 20, 0.24);
}

:root[data-theme="dark"] .dashboard-shortcut-btn:hover,
:root[data-theme="dark"] .dashboard-shortcut-btn:focus-visible {
  background: rgba(25, 63, 86, 0.56);
  border-color: rgba(123, 209, 255, 0.42);
  color: #f4fbff;
}

:root[data-theme="dark"] .session-list-detail-card {
  background: rgba(16, 28, 42, 0.92);
  border-color: rgba(123, 209, 255, 0.14);
}

:root[data-theme="dark"] .session-list-detail-label {
  color: rgba(207, 222, 238, 0.76);
}

:root[data-theme="dark"] .session-list-detail-value,
:root[data-theme="dark"] .session-row-toggle-hint {
  color: rgba(236, 247, 255, 0.9);
}

:root[data-theme="dark"] .stat-icon,
:root[data-theme="dark"] .hero-floating-card,
:root[data-theme="dark"] .topbar-profile,
:root[data-theme="dark"] .profile-avatar-shell {
  background: rgba(17, 28, 46, 0.9);
}

:root[data-theme="dark"] .topbar-profile:hover {
  background: rgba(20, 34, 54, 0.96);
}

:root[data-theme="dark"] .topbar-user-dropdown {
  box-shadow: 0 22px 52px rgba(2, 8, 17, 0.5);
}

:root[data-theme="dark"] .archive-icon,
:root[data-theme="dark"] .badge-soft,
:root[data-theme="dark"] .badge-status {
  background: rgba(44, 194, 207, 0.12);
  color: #bffbff;
}

:root[data-theme="dark"] .archive-icon-warm {
  background: rgba(243, 179, 76, 0.12);
  color: #ffd69a;
}

:root[data-theme="dark"] .archive-icon-calm {
  background: rgba(87, 162, 255, 0.14);
  color: #9ecaff;
}

:root[data-theme="dark"] .archive-icon-news {
  background: rgba(64, 224, 208, 0.12);
  color: #9df4eb;
}

:root[data-theme="dark"] .quick-link-item:hover {
  background: rgba(44, 194, 207, 0.08);
}

:root[data-theme="dark"] .feature-pill {
  background: rgba(17, 28, 46, 0.8);
  border-color: rgba(44, 194, 207, 0.12);
  color: #ecf7ff;
}

:root[data-theme="dark"] .hero-visual {
  background: linear-gradient(145deg, rgba(14, 24, 39, 0.94), rgba(26, 31, 45, 0.96));
  border-color: rgba(44, 194, 207, 0.12);
}

:root[data-theme="dark"] .hero-panel::before,
:root[data-theme="dark"] .hero-panel::after,
:root[data-theme="dark"] .sidebar-shell::before,
:root[data-theme="dark"] .sidebar-shell::after,
:root[data-theme="dark"] .topbar-shell::after {
  opacity: 0.65;
}

:root[data-theme="dark"] .auth-feature-chip {
  background: rgba(17, 28, 46, 0.42);
}

:root[data-theme="dark"] .profile-avatar-placeholder {
  color: rgba(217, 251, 255, 0.34);
  background:
    radial-gradient(circle at 30% 20%, rgba(44, 194, 207, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(17, 28, 46, 0.96), rgba(18, 32, 52, 0.88));
}

:root[data-theme="dark"] .public-header .btn-outline-primary,
:root[data-theme="dark"] .btn-outline-primary {
  color: #bffbff;
  border-color: rgba(44, 194, 207, 0.28);
}

:root[data-theme="dark"] .public-header .btn-outline-primary:hover,
:root[data-theme="dark"] .btn-outline-primary:hover {
  background: rgba(44, 194, 207, 0.12);
  color: #ecfeff;
  border-color: rgba(44, 194, 207, 0.36);
}

:root[data-theme="dark"] .public-header .btn-light {
  background: rgba(17, 28, 46, 0.88);
  border-color: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

:root[data-theme="dark"] .public-home-carousel {
  border-color: rgba(123, 209, 255, 0.12);
  box-shadow: 0 24px 48px rgba(2, 8, 17, 0.36);
}

:root[data-theme="dark"] .public-social-embed {
  background: rgba(8, 17, 29, 0.82);
  border-color: rgba(123, 209, 255, 0.12);
}

.field-required {
  color: var(--danger);
  font-weight: 700;
}

.field-optional {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.linked-matter-list {
  display: grid;
  gap: 0.85rem;
}

.linked-matter-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.04);
}

[data-linked-matters-table] tbody tr.linked-row-active > td {
  background: rgba(var(--accent-rgb), 0.08);
}

.session-gallery-layout {
  display: grid;
  gap: 0.45rem;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(var(--accent-rgb), 0.08);
}

.session-gallery-1 {
  grid-template-columns: 1fr;
}

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

.session-gallery-3 {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.session-gallery-3 .session-gallery-tile:first-child {
  grid-row: 1 / span 2;
}

.session-gallery-4,
.session-gallery-5 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-gallery-tile {
  position: relative;
  min-width: 0;
  min-height: 10rem;
  border: 0;
  padding: 0;
  background: rgba(var(--accent-rgb), 0.08);
  cursor: pointer;
  overflow: hidden;
}

.session-gallery-1 .session-gallery-tile {
  min-height: 20rem;
}

.session-gallery-2 .session-gallery-tile,
.session-gallery-4 .session-gallery-tile,
.session-gallery-5 .session-gallery-tile {
  aspect-ratio: 1 / 1;
}

.session-gallery-3 .session-gallery-tile:first-child {
  min-height: 20rem;
}

.session-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.session-gallery-tile:hover img {
  transform: scale(1.03);
}

.session-gallery-zoom,
.session-gallery-overflow {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.04), rgba(10, 16, 28, 0.72));
}

.session-gallery-zoom {
  justify-content: flex-end;
  padding: 0.75rem;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.session-gallery-tile:hover .session-gallery-zoom {
  opacity: 1;
}

.session-gallery-overflow {
  inset: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  background: rgba(10, 16, 28, 0.56);
}

.vote-member-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(var(--accent-rgb), 0.04);
}

.topbar-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .hero-panel-carousel-only .container,
  .hero-panel-carousel-only .hero-carousel-shell {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .app-frame,
  .hero-grid,
  .chat-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-shell {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    height: 100vh;
    transform: translateX(-108%);
    padding: 1.35rem;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar-shell {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .main-shell {
    padding: 1rem;
  }

  .topbar-shell {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-height: 72px;
    padding: 0.7rem 0.8rem;
  }

  .topbar-heading-group {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
  }

  .topbar-nav-buttons {
    flex: 0 0 auto;
    width: auto;
    gap: 0.45rem;
  }

  .topbar-actions {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
  }

  .topbar-user-menu,
  .topbar-profile-trigger {
    width: auto;
  }

  .sidebar-toggle,
  .theme-toggle {
    justify-content: center;
  }

  .topbar-actions .theme-toggle,
  .topbar-actions .btn,
  .topbar-actions form {
    width: 100%;
  }

  .topbar-actions form .btn {
    width: 100%;
  }

  .sidebar-toggle {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding-inline: 0.75rem;
  }

  .sidebar-toggle-text {
    display: inline;
  }

  .topbar-heading-group .eyebrow {
    display: none;
  }

  .topbar-heading-group .page-heading {
    max-width: 12rem;
    overflow: hidden;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-profile-trigger {
    gap: 0.6rem;
    padding: 0.35rem 0.45rem;
  }

  .topbar-profile-trigger .topbar-profile-avatar {
    width: 40px;
    height: 40px;
  }

  .topbar-profile-trigger .topbar-profile-meta {
    max-width: 10.5rem;
  }

  .sidebar-brand-copy,
  .sidebar-link-label {
    opacity: 1;
    width: auto;
    transform: none;
    pointer-events: auto;
  }

  .sidebar-nav .nav-link {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .hero-floating-card {
    position: static;
    margin-top: 0.75rem;
  }

  .public-carousel-card {
    min-height: 360px;
  }

  .hero-carousel-shell {
    max-width: 100%;
  }

  .public-home-highlight-grid {
    grid-template-columns: 1fr;
  }

  .public-home-carousel {
    overflow: visible;
  }

  .public-carousel-card-standalone {
    min-height: 0;
    aspect-ratio: auto;
    display: block;
  }

  .public-carousel-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
  }

  .public-carousel-overlay-standalone {
    inset: 0;
  }

  .dashboard-calendar {
    min-height: 460px;
  }

  .dashboard-shortcuts {
    width: 100%;
  }

  .dashboard-shortcut-btn {
    flex: 1 1 220px;
  }

  .attachment-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-detail-heading {
    flex-direction: column;
  }

  .document-detail-primary-actions,
  .document-top-view-button {
    width: 100%;
  }

  .document-detail-primary-actions {
    align-items: stretch;
  }

  .document-detail-primary-actions .badge-status {
    align-self: flex-start;
  }

  .attachment-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .attachment-view-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .attachment-secondary-action,
  .attachment-archive-action,
  .attachment-archive-action .btn {
    width: 100%;
  }

  .linked-matter-card {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-calendar .fc .fc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-calendar .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }

  .dashboard-calendar .fc .fc-button-group,
  .dashboard-calendar .fc .fc-toolbar-chunk:last-child {
    flex-wrap: wrap;
  }

  .calendar-shell .fc .fc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-shell .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }

  .calendar-shell .fc .fc-button-group,
  .calendar-shell .fc .fc-toolbar-chunk:last-child {
    flex-wrap: wrap;
  }

  .surface-card {
    border-radius: 20px;
  }

  .form-shell,
  .table-card {
    padding: 1rem;
  }

  .table-card .dataTables_wrapper .row {
    row-gap: 0.75rem;
  }

  .table-card .dataTables_filter input,
  .table-card .dataTables_length select {
    width: 100%;
    max-width: 100%;
  }

  .document-filter-actions > * {
    flex-basis: 100%;
  }
}

@media (max-width: 767.98px) {
  .main-shell {
    padding: 0.65rem;
  }

  .content-shell {
    padding-top: 0.75rem;
  }

  .topbar-shell {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-height: 64px;
    padding: 0.55rem 0.65rem;
  }

  .topbar-heading-group {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
  }

  .topbar-heading-group > div:last-child {
    min-width: 0;
  }

  .topbar-nav-buttons {
    width: auto;
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .topbar-nav-buttons .sidebar-toggle {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
  }

  .topbar-nav-buttons .sidebar-toggle-text {
    display: none;
  }

  .topbar-actions {
    flex: 0 0 auto;
    width: auto;
  }

  .page-heading {
    display: -webkit-box;
    overflow: hidden;
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.12;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .eyebrow {
    display: none;
  }

  .topbar-profile-trigger {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0.15rem;
  }

  .topbar-profile-trigger .topbar-profile-meta,
  .topbar-profile-trigger .topbar-profile-chevron {
    display: none;
  }

  .topbar-profile-trigger .topbar-profile-avatar {
    width: 36px;
    height: 36px;
  }

  .session-detail-header {
    gap: 0.6rem !important;
    margin-bottom: 0.85rem !important;
  }

  .session-detail-summary {
    width: 100%;
  }

  .session-detail-summary .badge-soft {
    margin-bottom: 0.35rem !important;
    padding: 0.25rem 0.55rem;
    font-size: 0.68rem;
  }

  .session-detail-summary h3 {
    font-size: 1.18rem;
    line-height: 1.18;
  }

  .session-detail-summary .text-muted {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .session-detail-actions {
    width: 100%;
    gap: 0.35rem !important;
  }

  .session-detail-actions .btn {
    min-height: 34px;
    padding: 0.32rem 0.58rem;
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .session-detail-actions .btn i {
    margin-right: 0.2rem !important;
  }

  .session-detail-actions form {
    display: inline-flex !important;
  }

  .session-list-table tbody tr[data-session-row] {
    cursor: pointer;
  }

  .session-list-table tbody tr[data-session-row] > td {
    vertical-align: top;
  }

  .surface-card,
  .topbar-shell {
    border-radius: 18px;
  }

  .form-shell,
  .table-card {
    padding: 0.9rem;
  }

  .document-filter-form .col-lg-4,
  .document-filter-form .col-lg-2 {
    width: 100%;
  }

  .document-filter-actions .btn {
    width: 100%;
  }

  .table-card .dataTables_wrapper {
    font-size: 0.92rem;
  }

  .table-card .table thead th,
  .table-card table.dataTable thead th {
    font-size: 0.74rem;
  }

  .badge-soft,
  .badge-status {
    max-width: 100%;
    white-space: normal;
  }

  .public-signin-btn {
    width: 100%;
    justify-content: center;
  }

  .public-social-widget {
    padding: 0.85rem;
  }

  .dashboard-calendar {
    min-height: 360px;
  }

  .attachment-preview-shell {
    min-height: calc(100dvh - 10.75rem);
    padding: 0.35rem;
    border-radius: 0;
    border-style: solid;
  }

  .attachment-preview-image,
  .attachment-preview-frame,
  .attachment-preview-media {
    min-height: calc(100dvh - 11.5rem);
    border-radius: 0.85rem;
  }

  .attachment-modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100dvh;
  }

  .attachment-modal-content {
    min-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .attachment-modal-content .modal-header,
  .attachment-modal-content .modal-footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .attachment-modal-content .modal-body {
    padding: 0.35rem 0.5rem 0.5rem;
  }

  .attachment-modal-content .modal-footer {
    gap: 0.65rem;
  }

  .attachment-modal-content .modal-footer .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .attachment-preview-nav-prev {
    left: 0.6rem;
  }

  .attachment-preview-nav-next {
    right: 0.6rem;
  }

  .dashboard-calendar .fc .fc-button {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .dashboard-calendar .fc .fc-toolbar-title {
    text-align: center;
  }

  .calendar-shell .fc .fc-button {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .calendar-shell .fc .fc-toolbar-title {
    text-align: center;
  }

  .calendar-shell .fc .fc-daygrid-day-frame {
    min-height: 6.5rem;
  }
}

.public-monitor-shell {
  background:
    radial-gradient(circle at top left, rgba(14, 116, 144, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #edf5fa 100%);
}

.leaderboard-shell {
  padding: 2rem 0 4rem;
}

.leaderboard-shell-monitor {
  padding: 1rem 0 2rem;
}

.leaderboard-container {
  display: grid;
  gap: 1.5rem;
}

.leaderboard-hero,
.leaderboard-filter-panel,
.leaderboard-summary-card,
.leaderboard-member-card {
  background: var(--archive-card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.leaderboard-hero {
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.leaderboard-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.5rem 0 0.75rem;
  line-height: 1;
}

.leaderboard-subtitle {
  margin: 0;
  max-width: 58rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.leaderboard-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.leaderboard-generated {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.leaderboard-range-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.12), rgba(245, 158, 11, 0.1));
  color: var(--primary-ink);
  border-radius: 999px;
  font-weight: 700;
}

.leaderboard-filter-panel {
  padding: 1.25rem;
}

.leaderboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.leaderboard-summary-card {
  padding: 1.2rem;
}

.leaderboard-summary-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.leaderboard-member-card {
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.leaderboard-member-card-spotlight {
  padding: 1.6rem;
}

.leaderboard-member-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.14), transparent 30%);
  pointer-events: none;
}

.leaderboard-rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 12px 25px rgba(14, 116, 144, 0.22);
}

.leaderboard-member-top {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.leaderboard-member-top-spotlight {
  align-items: flex-start;
  gap: 1.35rem;
}

.leaderboard-member-photo {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(160deg, rgba(39, 113, 160, 0.2), rgba(18, 29, 53, 0.08));
  border: 1px solid rgba(92, 195, 221, 0.22);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary-ink);
  box-shadow: 0 12px 28px rgba(8, 20, 41, 0.16);
}

.leaderboard-member-photo-sm {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.leaderboard-member-photo-lg {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.leaderboard-member-photo-xl {
  width: 168px;
  height: 168px;
  border-radius: 38px;
}

.leaderboard-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaderboard-member-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.leaderboard-member-meta h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
}

.leaderboard-member-meta-spotlight h3 {
  font-size: 1.8rem;
}

.leaderboard-member-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.leaderboard-position {
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 600;
}

.leaderboard-score {
  margin-top: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.95rem;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(41, 137, 191, 0.2), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(74, 155, 196, 0.18);
}

.leaderboard-score-label,
.leaderboard-mini-score span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaderboard-score strong,
.leaderboard-mini-score strong {
  font-size: 1.65rem;
  line-height: 1;
}

.leaderboard-mini-score {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(41, 137, 191, 0.16), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(74, 155, 196, 0.14);
}

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

.leaderboard-stat-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leaderboard-stat-grid-spotlight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.leaderboard-stat-pill {
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(35, 120, 170, 0.18), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(74, 155, 196, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.leaderboard-stat-pill span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaderboard-stat-pill strong {
  font-size: 1.05rem;
}

.leaderboard-committee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.leaderboard-highlight-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.leaderboard-highlight-list li {
  color: var(--text);
  line-height: 1.45;
}

.leaderboard-highlight-list-compact li {
  font-size: 0.96rem;
}

.leaderboard-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.leaderboard-section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: 1.6rem;
}

.leaderboard-section-heading p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  text-align: right;
}

.leaderboard-member-summary {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.leaderboard-member-summary-compact {
  gap: 0.45rem;
}

.leaderboard-summary-line {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.1);
  line-height: 1.4;
  color: var(--text);
}

:root[data-theme="dark"] .leaderboard-member-card-featured::before {
  background:
    radial-gradient(circle at top right, rgba(65, 208, 222, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(240, 178, 79, 0.18), transparent 30%);
}

:root[data-theme="dark"] .leaderboard-range-chip {
  background: linear-gradient(145deg, rgba(30, 157, 177, 0.28), rgba(223, 156, 48, 0.22));
  color: rgba(245, 251, 255, 0.96);
  border: 1px solid rgba(96, 217, 229, 0.18);
}

:root[data-theme="dark"] .leaderboard-score,
:root[data-theme="dark"] .leaderboard-mini-score {
  background: linear-gradient(155deg, rgba(49, 123, 170, 0.38), rgba(18, 31, 50, 0.92));
  border-color: rgba(115, 208, 234, 0.22);
}

:root[data-theme="dark"] .leaderboard-stat-pill {
  background: linear-gradient(155deg, rgba(45, 112, 155, 0.34), rgba(17, 28, 46, 0.94));
  border-color: rgba(115, 208, 234, 0.18);
}

:root[data-theme="dark"] .leaderboard-score-label,
:root[data-theme="dark"] .leaderboard-mini-score span,
:root[data-theme="dark"] .leaderboard-stat-pill span,
:root[data-theme="dark"] .leaderboard-position,
:root[data-theme="dark"] .leaderboard-generated,
:root[data-theme="dark"] .leaderboard-subtitle,
:root[data-theme="dark"] .leaderboard-section-heading p {
  color: rgba(219, 233, 245, 0.82);
}

:root[data-theme="dark"] .leaderboard-summary-line {
  background: linear-gradient(155deg, rgba(20, 90, 126, 0.34), rgba(13, 23, 39, 0.96));
  border-color: rgba(96, 217, 229, 0.12);
}

:root[data-theme="dark"] .leaderboard-member-photo {
  background: linear-gradient(160deg, rgba(46, 121, 166, 0.42), rgba(11, 18, 31, 0.92));
  border-color: rgba(96, 217, 229, 0.22);
}

@media (max-width: 1199.98px) {
  .leaderboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leaderboard-podium,
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-section-heading p {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .leaderboard-shell {
    padding: 1.25rem 0 2rem;
  }

  .leaderboard-hero {
    padding: 1.25rem;
    flex-direction: column;
  }

  .leaderboard-hero-side {
    align-items: stretch;
    width: 100%;
  }

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

  .leaderboard-member-card,
  .leaderboard-filter-panel {
    padding: 1rem;
  }

  .leaderboard-member-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .leaderboard-member-top-spotlight,
  .leaderboard-member-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-mini-score {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .leaderboard-stat-grid,
  .leaderboard-stat-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-stat-grid-spotlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-member-photo {
    width: 88px;
    height: 88px;
  }

  .leaderboard-member-photo-lg,
  .leaderboard-member-photo-xl {
    width: 104px;
    height: 104px;
    border-radius: 28px;
  }
}
