:root {
  --tm-font-display: "Newsreader", Georgia, serif;
  --tm-font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --tm-bg: #f5f2ee;
  --tm-bg-alt: #ece8e2;
  --tm-surface: rgba(255, 255, 255, 0.9);
  --tm-surface-strong: #ffffff;
  --tm-surface-muted: #f7f5f1;
  --tm-ink: #172532;
  --tm-ink-soft: #273847;
  --tm-muted: #67727d;
  --tm-muted-soft: #7c8894;
  --tm-border: rgba(23, 37, 50, 0.1);
  --tm-border-strong: rgba(23, 37, 50, 0.16);
  --tm-primary: #2c4c60;
  --tm-primary-dark: #1c3341;
  --tm-primary-soft: #dfe8ee;
  --tm-accent: #68759a;
  --tm-success: #467064;
  --tm-warning: #a8783a;
  --tm-danger: #915c61;
  --tm-shadow-sm: 0 12px 28px rgba(20, 34, 46, 0.06);
  --tm-shadow-md: 0 22px 52px rgba(20, 34, 46, 0.08);
  --tm-shadow-lg: 0 34px 80px rgba(20, 34, 46, 0.11);
  --tm-radius-sm: 14px;
  --tm-radius-md: 20px;
  --tm-radius-lg: 28px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.theme-refined {
  position: relative;
  min-height: 100vh;
  font-family: var(--tm-font-body);
  color: var(--tm-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(104, 117, 154, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(44, 76, 96, 0.08), transparent 22%),
    linear-gradient(180deg, #f8f5f1 0%, #f4f1ec 44%, #f0ece6 100%);
}

body.theme-refined::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 24%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.55), transparent 18%);
  opacity: 0.9;
  z-index: -1;
}

body.theme-refined,
body.theme-refined p,
body.theme-refined li,
body.theme-refined input,
body.theme-refined select,
body.theme-refined textarea,
body.theme-refined button {
  font-family: var(--tm-font-body);
}

body.theme-refined h1,
body.theme-refined h2,
body.theme-refined h3,
body.theme-refined h4,
body.theme-refined h5,
body.theme-refined h6,
body.theme-refined .display-1,
body.theme-refined .display-2,
body.theme-refined .display-3,
body.theme-refined .display-4 {
  color: var(--tm-ink);
  font-family: var(--tm-font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
}

body.theme-refined .display-4,
body.theme-refined h1.display-4 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.98;
}

body.theme-refined a {
  color: var(--tm-primary);
  text-decoration: none;
}

body.theme-refined a:hover,
body.theme-refined a:focus {
  color: var(--tm-primary-dark);
}

body.theme-refined ::selection {
  background: rgba(44, 76, 96, 0.18);
  color: var(--tm-ink);
}

.site-navbar {
  padding: 1rem 0;
  background: rgba(248, 245, 241, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 37, 50, 0.06);
  box-shadow: 0 8px 30px rgba(20, 34, 46, 0.04);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-navbar.is-scrolled {
  padding: 0.78rem 0;
  background: rgba(248, 245, 241, 0.95);
  box-shadow: 0 16px 34px rgba(20, 34, 46, 0.08);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--tm-ink);
}

.site-brand:hover,
.site-brand:focus {
  color: var(--tm-ink);
}

.site-brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(223, 232, 238, 0.95));
  border: 1px solid rgba(44, 76, 96, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(20, 34, 46, 0.06);
  color: var(--tm-primary-dark);
}

.site-brand-mark i {
  font-size: 1.05rem;
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
}

.site-brand-copy small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-muted-soft);
}

.site-brand-copy strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-navbar .navbar-toggler {
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--tm-border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.22rem rgba(44, 76, 96, 0.12);
}

.main-nav-links {
  gap: 0.15rem;
}

.site-navbar .nav-link {
  color: var(--tm-muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: var(--tm-ink);
  background: rgba(255, 255, 255, 0.68);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.82rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:focus-visible {
  box-shadow: 0 0 0 0.24rem rgba(44, 76, 96, 0.14);
}

.btn-sm {
  padding: 0.64rem 1.05rem;
}

.btn-lg {
  padding: 1rem 1.55rem;
}

.btn-primary {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
  box-shadow: 0 14px 30px rgba(28, 51, 65, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  color: #fff;
  background: linear-gradient(135deg, #32546a 0%, #223b4a 100%) !important;
  box-shadow: 0 16px 32px rgba(28, 51, 65, 0.22);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  background: rgba(255, 255, 255, 0.68);
  border-width: 1px;
}

.btn-outline-primary {
  color: var(--tm-primary-dark);
  border-color: rgba(44, 76, 96, 0.16);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active {
  color: var(--tm-primary-dark) !important;
  border-color: rgba(44, 76, 96, 0.22) !important;
  background: rgba(223, 232, 238, 0.78) !important;
}

.btn-outline-secondary {
  color: var(--tm-ink-soft);
  border-color: var(--tm-border);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible,
.btn-outline-secondary:active {
  color: var(--tm-ink) !important;
  background: rgba(240, 236, 230, 0.9) !important;
  border-color: var(--tm-border-strong) !important;
}

.btn-outline-danger {
  color: var(--tm-danger);
  border-color: rgba(145, 92, 97, 0.18);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus-visible,
.btn-outline-danger:active {
  color: #fff !important;
  background: var(--tm-danger) !important;
  border-color: var(--tm-danger) !important;
}

.btn-success,
.btn-outline-success:hover,
.btn-outline-success:focus-visible,
.btn-outline-success:active {
  background: linear-gradient(135deg, #4b7067 0%, #3b5a53 100%);
  border-color: transparent;
  color: #fff !important;
}

.btn-link {
  color: var(--tm-primary);
}

.card,
.card-soft,
.surface-card,
.surface-card-muted,
.dashboard-note-card,
.legal-card,
.not-found-card {
  border-radius: var(--tm-radius-lg);
  border: 1px solid var(--tm-border);
  background: var(--tm-surface);
  box-shadow: var(--tm-shadow-sm);
  backdrop-filter: blur(14px);
}

.surface-card-muted,
.dashboard-note-card {
  background: rgba(247, 245, 241, 0.88);
}

.text-muted,
.small.text-muted,
.form-text {
  color: var(--tm-muted) !important;
}

.form-label {
  margin-bottom: 0.55rem;
  color: var(--tm-ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-control,
.form-select {
  min-height: 3.25rem;
  padding: 0.84rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 37, 50, 0.11);
  background: rgba(255, 255, 255, 0.9);
  color: var(--tm-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea.form-control {
  min-height: auto;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #95a0aa;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(44, 76, 96, 0.28);
  background: #fff;
  box-shadow: 0 0 0 0.24rem rgba(44, 76, 96, 0.11);
}

.form-check-input {
  border-color: rgba(23, 37, 50, 0.2);
}

.form-check-input:checked {
  background-color: var(--tm-primary-dark);
  border-color: var(--tm-primary-dark);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(44, 76, 96, 0.1);
}

.alert {
  border-radius: 20px;
  border-width: 1px;
  padding: 1rem 1.2rem;
  box-shadow: var(--tm-shadow-sm);
}

.alert-info {
  color: #2b4a5d;
  background: rgba(223, 232, 238, 0.86);
  border-color: rgba(44, 76, 96, 0.12);
}

.alert-warning {
  color: #6d4e21;
  background: rgba(252, 245, 228, 0.9);
  border-color: rgba(168, 120, 58, 0.14);
}

.badge {
  border-radius: 999px;
  padding: 0.55em 0.8em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-bg-primary {
  background: rgba(44, 76, 96, 0.12) !important;
  color: var(--tm-primary-dark) !important;
}

.text-bg-success {
  background: rgba(70, 112, 100, 0.12) !important;
  color: #36544d !important;
}

.text-bg-warning {
  background: rgba(168, 120, 58, 0.14) !important;
  color: #7d5927 !important;
}

.text-bg-danger {
  background: rgba(145, 92, 97, 0.12) !important;
  color: #8a4f56 !important;
}

.text-bg-secondary,
.text-bg-light {
  background: rgba(111, 123, 138, 0.12) !important;
  color: #566170 !important;
}

.table {
  --bs-table-bg: transparent;
  color: var(--tm-ink);
}

.table > :not(caption) > * > * {
  padding: 1rem 1.05rem;
  border-bottom-color: rgba(23, 37, 50, 0.08);
}

.table-light th,
.dashboard-table-shell thead th {
  background: rgba(246, 244, 240, 0.94) !important;
  color: var(--tm-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.58);
}

.table-responsive {
  border-radius: 0 0 var(--tm-radius-lg) var(--tm-radius-lg);
}

.pagination {
  gap: 0.45rem;
}

.page-link {
  border-radius: 999px !important;
  min-width: 2.7rem;
  padding: 0.7rem 0.95rem;
  text-align: center;
  border-color: rgba(23, 37, 50, 0.1);
  color: var(--tm-primary-dark);
  background: rgba(255, 255, 255, 0.82);
}

.page-item.active .page-link {
  border-color: transparent;
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
}

.list-group-item {
  border-color: rgba(23, 37, 50, 0.08);
  background: transparent;
}

.empty-state {
  padding: 1.35rem 1.2rem;
  border-radius: 20px;
  text-align: center;
  color: var(--tm-muted);
  background: rgba(247, 245, 241, 0.84);
  border: 1px dashed rgba(23, 37, 50, 0.12);
}

.loader-skeleton {
  height: 3.2rem;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(223, 232, 238, 0.7), rgba(255, 255, 255, 0.95), rgba(223, 232, 238, 0.7));
  background-size: 200% 100%;
  animation: tmShimmer 1.3s linear infinite;
}

@keyframes tmShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.modal-dialog {
  max-width: 560px;
}

.modal-content {
  border: 1px solid rgba(23, 37, 50, 0.08);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(249, 247, 244, 0.97);
  box-shadow: 0 24px 72px rgba(20, 34, 46, 0.14);
  backdrop-filter: blur(18px);
}

.modal-header,
.modal-footer {
  border-color: rgba(23, 37, 50, 0.08);
  padding: 1.2rem 1.4rem;
}

.modal-body {
  padding: 1.35rem 1.4rem 1.45rem;
}

.btn-close {
  opacity: 0.55;
}

.modal-backdrop.show {
  opacity: 0.38;
}

.toast-container {
  z-index: 1085;
}

.toast {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(20, 34, 46, 0.12);
  backdrop-filter: blur(14px);
}

.section-eyebrow,
.auth-eyebrow,
.dashboard-section-tag,
.view-header-kicker,
.dashboard-page-kicker,
.footer-title,
.agenda-side-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--tm-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.04;
}

.section-subtitle {
  max-width: 54rem;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(23, 37, 50, 0.08);
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--tm-shadow-sm);
}

.accordion-button {
  padding: 1.2rem 1.4rem;
  background: transparent;
  color: var(--tm-ink);
  font-weight: 800;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(247, 245, 241, 0.9);
  color: var(--tm-primary-dark);
}

.accordion-body {
  padding: 1rem 1.4rem 1.35rem;
  color: var(--tm-muted);
  line-height: 1.75;
}

.home-landing section {
  position: relative;
}

.hero-section.hero-psychiatry {
  position: relative;
  overflow: hidden;
  padding: 3.4rem;
  border-radius: 36px;
  border: 1px solid rgba(23, 37, 50, 0.08);
  background:
    radial-gradient(circle at 95% 6%, rgba(104, 117, 154, 0.14), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(44, 76, 96, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 238, 0.96));
  box-shadow: var(--tm-shadow-lg);
}

.hero-badge,
.hero-chip,
.dashboard-chip,
.agenda-status-badge,
.dashboard-agenda-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 76, 96, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: var(--tm-ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-chip-row,
.dashboard-chip-row,
.hero-inline-trust,
.footer-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-inline-trust span,
.footer-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tm-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-identity-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--tm-muted);
}

.hero-identity-note span,
.hero-identity-note a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-visual-card,
.trust-command-panel,
.authority-card,
.emotional-copy-card,
.process-card,
.agenda-side-card,
.contact-side-card,
.final-cta-card,
.auth-side-card,
.auth-form-card,
.legal-hero,
.legal-card,
.not-found-card {
  border-radius: 30px;
  border: 1px solid rgba(23, 37, 50, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 241, 0.94));
  box-shadow: var(--tm-shadow-md);
}

.hero-visual-card {
  padding: 1.4rem;
}

.hero-orbit {
  position: relative;
  min-height: 17rem;
  margin-bottom: 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(44, 76, 96, 0.08);
  background: radial-gradient(circle at center, rgba(223, 232, 238, 0.88), rgba(255, 255, 255, 0.6) 56%, rgba(255, 255, 255, 0) 72%);
}

.hero-orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 5.8rem;
  height: 5.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(28, 51, 65, 0.22);
}

.hero-orbit-core i {
  font-size: 1.45rem;
}

.hero-orbit-tag {
  position: absolute;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 37, 50, 0.08);
  color: var(--tm-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(20, 34, 46, 0.06);
}

.hero-orbit-tag-top { top: 1.35rem; left: 50%; transform: translateX(-50%); }
.hero-orbit-tag-left { left: 1rem; top: 50%; transform: translateY(-50%); }
.hero-orbit-tag-right { right: 1rem; top: 50%; transform: translateY(-50%); }
.hero-orbit-tag-bottom { bottom: 1.35rem; left: 50%; transform: translateX(-50%); }

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

.hero-insight-card {
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 37, 50, 0.07);
  background: rgba(255, 255, 255, 0.84);
}

.hero-insight-card i,
.complaint-icon,
.seal-card i,
.process-step,
.dashboard-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-insight-card i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 15px;
  background: rgba(223, 232, 238, 0.84);
  color: var(--tm-primary-dark);
}

.hero-insight-card strong {
  font-size: 0.98rem;
  color: var(--tm-ink);
}

.hero-insight-card span {
  color: var(--tm-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.complaint-card,
.process-card {
  height: 100%;
}

.complaint-card .card-body,
.process-card .card-body,
.agenda-side-card .card-body,
.contact-side-card .card-body {
  padding: 1.55rem;
}

.complaint-icon {
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: rgba(223, 232, 238, 0.88);
  color: var(--tm-primary-dark);
  font-size: 1rem;
}

.complaint-card h3,
.process-card h3,
.authority-card h3,
.agenda-side-card h3 {
  margin-bottom: 0.65rem;
  font-family: var(--tm-font-body);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.complaint-card p,
.process-card p,
.authority-card p,
.agenda-side-card p {
  color: var(--tm-muted);
  line-height: 1.7;
}

.trust-command-panel,
.authority-stack {
  height: 100%;
}

.trust-command-panel {
  padding: 2rem;
}

.trust-points {
  display: grid;
  gap: 0.85rem;
}

.trust-points div,
.seal-card,
.agenda-side-list li,
.contact-side-list div {
  display: flex;
  align-items: flex-start;
  gap: 0.78rem;
}

.trust-points i,
.contact-side-list i {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(223, 232, 238, 0.88);
  color: var(--tm-primary-dark);
}

.trust-points span,
.contact-side-list span {
  color: var(--tm-ink-soft);
  line-height: 1.6;
  font-weight: 600;
}

.authority-stack {
  display: grid;
  gap: 1rem;
}

.authority-card {
  padding: 1.65rem;
}

.authority-kicker {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--tm-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.seal-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 37, 50, 0.08);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  color: var(--tm-ink-soft);
}

.seal-card i {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 16px;
  background: rgba(223, 232, 238, 0.9);
  color: var(--tm-primary-dark);
}

.emotional-copy-card,
.process-card {
  padding: 1.6rem;
}

.emotional-copy-card strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: var(--tm-ink);
}

.emotional-copy-card p {
  color: var(--tm-muted);
  line-height: 1.7;
}

.clinical-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(168, 120, 58, 0.12);
  background: rgba(253, 248, 239, 0.86);
  color: #7a5b2d;
}

.clinical-disclaimer i {
  margin-top: 0.08rem;
}

.process-step {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(223, 232, 238, 0.9);
  color: var(--tm-primary-dark);
  font-size: 1rem;
  font-weight: 800;
}

.agenda-wrapper,
.dashboard-panel,
.dashboard-table-card,
.dashboard-quick-card,
.dashboard-page-hero,
.stat-card,
.dashboard-highlight-card {
  border: 1px solid rgba(23, 37, 50, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 241, 0.94));
  box-shadow: var(--tm-shadow-md);
}

.agenda-wrapper,
.dashboard-panel,
.dashboard-table-card,
.dashboard-quick-card,
.dashboard-highlight-card,
.dashboard-page-hero,
.dashboard-upcoming-card,
.dashboard-mini-card,
.dashboard-notification-item,
.stat-card {
  border-radius: 30px;
}

.agenda-wrapper {
  overflow: hidden;
}

.agenda-wrapper-header,
.dashboard-table-toolbar,
.dashboard-panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem 1rem;
}

.agenda-nav-row,
.dashboard-action-row {
  gap: 0.6rem;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.85rem;
  padding: 0 1.45rem 1.45rem;
}

.slot-btn {
  min-height: 3.15rem;
  border: 1px solid rgba(44, 76, 96, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--tm-primary-dark);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.slot-btn:hover,
.slot-btn:focus-visible,
.slot-btn.is-selected {
  transform: translateY(-1px);
  border-color: rgba(44, 76, 96, 0.24);
  background: rgba(223, 232, 238, 0.86);
  box-shadow: 0 10px 20px rgba(20, 34, 46, 0.08);
}

.agenda-side-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 0;
  list-style: none;
}

.agenda-side-list li i {
  color: var(--tm-primary-dark);
  margin-top: 0.16rem;
}

.agenda-side-note,
.auth-helper,
.dashboard-quick-note {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(247, 245, 241, 0.86);
  border: 1px solid rgba(23, 37, 50, 0.08);
  color: var(--tm-muted);
}

.final-cta-card {
  padding: 2rem 2.15rem;
}

.final-cta-meta {
  color: var(--tm-muted);
  font-size: 0.85rem;
  text-align: center;
}

.contact-side-list,
.auth-side-list {
  display: grid;
  gap: 0.9rem;
}

.auth-shell {
  padding-top: 1rem;
}

.auth-page-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.auth-page-subtitle {
  max-width: 48rem;
  color: var(--tm-muted);
  font-size: 1rem;
}

.auth-benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  background: rgba(247, 245, 241, 0.88);
  border: 1px solid rgba(23, 37, 50, 0.08);
  color: var(--tm-ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-form-card .card-body,
.auth-side-card .card-body {
  padding: 2rem;
}

.auth-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.auth-link-row a {
  font-weight: 700;
}

.auth-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.auth-progress-step {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(247, 245, 241, 0.84);
  border: 1px solid rgba(23, 37, 50, 0.08);
  color: var(--tm-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-progress-step.active {
  background: rgba(223, 232, 238, 0.88);
  color: var(--tm-primary-dark);
}

.auth-section {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(23, 37, 50, 0.08);
}

.auth-section:first-of-type {
  border-top: 0;
  padding-top: 0.35rem;
}

.auth-section-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.auth-section-index {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(223, 232, 238, 0.9);
  color: var(--tm-primary-dark);
  font-weight: 800;
}

.auth-section-header h2 {
  margin-bottom: 0.35rem;
  font-family: var(--tm-font-body);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-section-header p,
.auth-side-list p,
.auth-time-note {
  color: var(--tm-muted);
  margin-bottom: 0;
}

.auth-side-list div {
  display: flex;
  gap: 0.9rem;
}

.auth-side-list span {
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(223, 232, 238, 0.9);
  color: var(--tm-primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-shell,
.not-found-shell {
  max-width: 960px;
}

.legal-hero,
.not-found-card {
  padding: 2.1rem;
  margin-bottom: 1.4rem;
}

.legal-card {
  padding: 2rem 2.15rem;
}

.legal-card h2,
.not-found-card h1 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-family: var(--tm-font-body);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li,
.not-found-card p {
  color: var(--tm-muted);
  line-height: 1.8;
}

.legal-card ul {
  padding-left: 1.1rem;
}

body.dashboard-page {
  background:
    radial-gradient(circle at left top, rgba(104, 117, 154, 0.08), transparent 22%),
    linear-gradient(180deg, #f5f2ee 0%, #efebe5 100%);
}

body.dashboard-page .dashboard-shell,
body.dashboard-page .dashboard-main {
  position: relative;
}

body.dashboard-page .dashboard-sidebar {
  min-height: calc(100vh - 76px);
  padding: 1.05rem 1rem;
  background: linear-gradient(180deg, #203443 0%, #22394a 60%, #1d3140 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 20px 0 42px rgba(17, 28, 39, 0.1);
}

body.dashboard-page .dashboard-sidebar-brand {
  margin: 0;
  padding: 1.35rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body.dashboard-page .dashboard-sidebar-kicker {
  color: rgba(231, 237, 243, 0.64);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.dashboard-page .dashboard-sidebar-brand h5 {
  margin-top: 0.25rem;
  color: #f9fbff;
  font-family: var(--tm-font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

body.dashboard-page .dashboard-sidebar-brand p,
body.dashboard-page .dashboard-sidebar-footer span {
  color: rgba(231, 237, 243, 0.76);
}

body.dashboard-page .dashboard-sidebar-nav {
  gap: 0.35rem;
  margin-top: 1.1rem;
}

body.dashboard-page .dashboard-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 18px;
  color: rgba(240, 245, 251, 0.82);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

body.dashboard-page .dashboard-sidebar .nav-link i {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.dashboard-page .dashboard-sidebar .nav-link.active,
body.dashboard-page .dashboard-sidebar .nav-link:hover,
body.dashboard-page .dashboard-sidebar .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

body.dashboard-page .dashboard-sidebar .nav-link.active i,
body.dashboard-page .dashboard-sidebar .nav-link:hover i,
body.dashboard-page .dashboard-sidebar .nav-link:focus i {
  background: rgba(255, 255, 255, 0.92);
  color: var(--tm-primary-dark);
}

body.dashboard-page .dashboard-sidebar-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dashboard-page .dashboard-main,
body.dashboard-page .col-lg-10,
body.dashboard-page .col-xl-10 {
  min-height: calc(100vh - 76px);
}

body.dashboard-page .dashboard-panel,
body.dashboard-page .dashboard-quick-card,
body.dashboard-page .dashboard-table-card,
body.dashboard-page .card-soft,
body.dashboard-page .stat-card,
body.dashboard-page .dashboard-upcoming-card,
body.dashboard-page .dashboard-mini-card,
body.dashboard-page .dashboard-notification-item,
body.dashboard-page .dashboard-quick-note {
  border-color: rgba(23, 37, 50, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 241, 0.94));
  box-shadow: var(--tm-shadow-md);
}

body.dashboard-page .dashboard-chip {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(23, 37, 50, 0.08);
  color: var(--tm-ink-soft);
}

.dashboard-page-hero,
.dashboard-highlight-card {
  overflow: hidden;
}

.dashboard-page-hero {
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(104, 117, 154, 0.16), transparent 24%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(245, 242, 238, 0.95));
}

.dashboard-page-title,
.view-header-title {
  margin-bottom: 0.9rem;
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  line-height: 1.02;
}

.dashboard-page-text,
.view-header-subtitle,
.dashboard-panel-subtitle {
  color: var(--tm-muted) !important;
  font-size: 0.99rem;
  line-height: 1.78;
}

.dashboard-highlight-card {
  height: 100%;
  padding: 1.55rem;
  color: #f4f9ff;
  background: linear-gradient(145deg, #253d4c 0%, #22384a 55%, #1c3140 100%);
  box-shadow: 0 24px 48px rgba(19, 34, 45, 0.16);
}

body.dashboard-page .dashboard-highlight-card {
  background: linear-gradient(145deg, #253d4c 0%, #22384a 55%, #1c3140 100%);
  color: #f4f9ff;
  box-shadow: 0 24px 48px rgba(19, 34, 45, 0.16);
}

.dashboard-highlight-label {
  color: rgba(243, 247, 252, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-highlight-value {
  margin: 0.5rem 0 0.9rem;
  font-family: var(--tm-font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.dashboard-highlight-note,
.dashboard-highlight-meta,
.dashboard-highlight-label {
  color: rgba(243, 247, 252, 0.74) !important;
}

.dashboard-highlight-meta {
  display: grid;
  gap: 0.45rem;
}

.dashboard-stat-card .card-body,
.dashboard-panel .card-body,
.dashboard-quick-card .card-body {
  padding: 1.45rem;
}

.dashboard-stat-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.dashboard-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: rgba(223, 232, 238, 0.9);
  color: var(--tm-primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.dashboard-page .dashboard-stat-icon {
  background: rgba(223, 232, 238, 0.9);
  color: var(--tm-primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-stat-icon.warning {
  background: rgba(252, 245, 228, 0.95);
  color: #91652f;
}

body.dashboard-page .dashboard-stat-icon.warning {
  background: rgba(252, 245, 228, 0.95);
  color: #91652f;
}

.dashboard-stat-icon.success {
  background: rgba(228, 240, 234, 0.94);
  color: #3d6258;
}

body.dashboard-page .dashboard-stat-icon.success {
  background: rgba(228, 240, 234, 0.94);
  color: #3d6258;
}

.dashboard-stat-icon.primary {
  background: rgba(223, 232, 238, 0.94);
  color: #29495d;
}

body.dashboard-page .dashboard-stat-icon.primary {
  background: rgba(223, 232, 238, 0.94);
  color: #29495d;
}

.stat-number {
  font-family: var(--tm-font-display);
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-panel-title {
  margin-bottom: 0.4rem;
  font-family: var(--tm-font-body);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-quick-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.1rem 0 1.2rem;
  padding-left: 0;
  list-style: none;
}

.dashboard-quick-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.dashboard-quick-list i {
  color: var(--tm-primary-dark);
}

.dashboard-upcoming-card,
.dashboard-mini-card,
.dashboard-notification-item,
.dashboard-quick-note,
.dashboard-note-card {
  padding: 1.2rem;
}

.dashboard-upcoming-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-bottom: 0.9rem;
  color: var(--tm-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-mini-label,
.view-header-meta span {
  color: var(--tm-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-notification-list,
.dashboard-note-list {
  display: grid;
  gap: 0.9rem;
}

.dashboard-notification-item {
  border-radius: 22px;
  border: 1px solid rgba(23, 37, 50, 0.08);
  background: rgba(247, 245, 241, 0.9);
}

.dashboard-notification-item.is-unread {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 28px rgba(20, 34, 46, 0.06);
}

body.dashboard-page .dashboard-notification-item.is-unread {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(23, 37, 50, 0.08);
  box-shadow: 0 16px 28px rgba(20, 34, 46, 0.06);
}

.dashboard-notification-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.dashboard-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
  box-shadow: 0 0 0 6px rgba(44, 76, 96, 0.08);
}

body.dashboard-page .dashboard-dot {
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
  box-shadow: 0 0 0 6px rgba(44, 76, 96, 0.08);
}

.dashboard-status-text.success {
  color: #3f665d;
  font-weight: 700;
}

.dashboard-status-text.muted {
  color: var(--tm-muted);
  font-weight: 700;
}

.view-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.view-header h1,
.view-header-title {
  margin-bottom: 0.65rem;
}

.view-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.view-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 37, 50, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.view-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.view-header-actions .form-select,
.view-header-actions .form-control {
  min-width: 210px;
}

.dashboard-note-card {
  padding: 1.25rem 1.35rem;
}

.dashboard-note-card h2,
.dashboard-note-card h3,
.profile-summary-card h2,
.receipt-card h2 {
  margin-bottom: 0.55rem;
  font-family: var(--tm-font-body);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-note-card p,
.dashboard-note-card li {
  color: var(--tm-muted);
  line-height: 1.72;
}

body.dashboard-page .dashboard-table-toolbar,
body.dashboard-page .dashboard-shell .table-responsive,
body.dashboard-page .dashboard-table-shell thead th,
body.dashboard-page .table-light th,
body.dashboard-page .dashboard-shell .list-group-item {
  border-color: rgba(23, 37, 50, 0.08);
}

body.dashboard-page .dashboard-table-shell thead th,
body.dashboard-page .table-light th {
  background: rgba(246, 244, 240, 0.94);
  color: var(--tm-muted);
}

body.dashboard-page .table tbody td {
  border-color: rgba(23, 37, 50, 0.08);
}

body.dashboard-page .page-link {
  border-color: rgba(23, 37, 50, 0.1);
  color: var(--tm-primary-dark);
  background: rgba(255, 255, 255, 0.82);
}

body.dashboard-page .page-item.active .page-link {
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
  border-color: transparent;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.95rem;
}

.detail-item {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(23, 37, 50, 0.08);
  background: rgba(247, 245, 241, 0.86);
}

.detail-item.detail-item-wide {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--tm-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value {
  color: var(--tm-ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.6;
}

.receipt-card {
  padding: 1.95rem;
}

.receipt-card .receipt-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.receipt-card .receipt-brand {
  display: grid;
  gap: 0.25rem;
}

.receipt-card .receipt-brand small {
  color: var(--tm-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 0.95rem;
}

.timeline-item {
  position: relative;
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(23, 37, 50, 0.08);
  background: rgba(247, 245, 241, 0.88);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 1.1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tm-primary-dark);
}

.appointment-save-spinner,
.appointment-save-success-icon,
.appointment-save-error-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(223, 232, 238, 0.95);
  color: var(--tm-primary-dark);
  font-size: 1.45rem;
}

.appointment-save-success-icon {
  background: rgba(228, 240, 234, 0.95);
  color: #3d6258;
}

.appointment-save-error-icon {
  background: rgba(244, 230, 231, 0.95);
  color: var(--tm-danger);
}

.appointment-save-progress {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(223, 232, 238, 0.75);
}

.appointment-save-progress .progress-bar {
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
}

.site-footer {
  position: relative;
  margin-top: 4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)), #f1ede7;
  border-top: 1px solid rgba(23, 37, 50, 0.08);
}

body.dashboard-page .site-footer,
body.public-page .site-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)), #f1ede7;
  border-top: 1px solid rgba(23, 37, 50, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-brand small {
  display: block;
  color: var(--tm-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand h5 {
  margin-bottom: 0;
  font-family: var(--tm-font-display);
  font-size: 2rem;
}

.footer-lead {
  color: var(--tm-muted);
  line-height: 1.78;
}

.footer-link-list {
  display: grid;
  gap: 0.65rem;
}

.footer-link-list a {
  color: var(--tm-ink-soft);
  font-weight: 700;
}

.footer-contact-list {
  display: grid;
  gap: 0.65rem;
}

.footer-contact-list p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-divider {
  height: 1px;
  margin: 2rem 0 1.5rem;
  background: rgba(23, 37, 50, 0.08);
}

.footer-registry {
  letter-spacing: 0.04em;
}

.booking-fab a,
.mobile-sticky-cta {
  box-shadow: 0 18px 36px rgba(20, 34, 46, 0.16);
}

.booking-fab a {
  background: linear-gradient(135deg, #29495d 0%, #1c3341 100%);
}

.mobile-sticky-cta {
  border-radius: 24px 24px 0 0;
  background: rgba(245, 242, 238, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(23, 37, 50, 0.08);
}

.mobile-sticky-cta small {
  color: var(--tm-muted);
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .hero-section.hero-psychiatry {
    padding: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .site-navbar {
    padding: 0.9rem 0;
  }

  .site-navbar .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(23, 37, 50, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--tm-shadow-sm);
  }

  .main-nav-links {
    gap: 0.35rem;
  }

  .site-navbar .nav-link {
    border-radius: 16px;
  }

  .hero-section.hero-psychiatry,
  .dashboard-page-hero,
  .final-cta-card,
  .legal-hero,
  .legal-card {
    padding: 1.7rem;
  }

  .hero-visual-grid,
  .seal-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-page .dashboard-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .view-header {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .section-title,
  .dashboard-page-title,
  .view-header-title,
  .auth-page-title {
    max-width: none;
  }

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

  .auth-submit-row,
  .auth-link-row,
  .receipt-card .receipt-header,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section.hero-psychiatry,
  .dashboard-page-hero,
  .legal-hero,
  .legal-card,
  .not-found-card,
  .auth-form-card .card-body,
  .auth-side-card .card-body {
    padding: 1.35rem;
  }

  .hero-chip-row,
  .dashboard-chip-row,
  .hero-inline-trust,
  .footer-trust-row,
  .view-header-meta {
    gap: 0.55rem;
  }

  .slot-grid {
    padding: 0 1rem 1rem;
  }

  .agenda-wrapper-header,
  .dashboard-table-toolbar,
  .dashboard-panel-header {
    padding: 1rem;
  }
}

/* Palette correction 20260407e */
:root {
  --tm-primary: #36506a;
  --tm-primary-dark: #1f3447;
  --tm-primary-soft: #e5ecf4;
  --tm-accent: #7a83a3;
  --tm-ink: #1a2835;
  --tm-ink-soft: #293847;
  --tm-muted: #62707c;
  --tm-muted-soft: #788490;
  --tm-success: #547466;
}

body.theme-refined {
  background:
    radial-gradient(circle at top left, rgba(122, 131, 163, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(54, 80, 106, 0.08), transparent 22%),
    linear-gradient(180deg, #fbf8f4 0%, #f5f1eb 42%, #f1ece5 100%);
}

body.theme-refined h1,
body.theme-refined h2,
body.theme-refined h3,
body.theme-refined h4,
body.theme-refined h5,
body.theme-refined h6,
body.theme-refined .display-1,
body.theme-refined .display-2,
body.theme-refined .display-3,
body.theme-refined .display-4 {
  color: #1a2835;
}

body.theme-refined .text-muted,
body.theme-refined .small.text-muted,
body.theme-refined .form-text {
  color: #66727d !important;
}

body.theme-refined .btn-primary,
body.theme-refined .btn-primary:hover,
body.theme-refined .btn-primary:focus-visible,
body.theme-refined .btn-primary:active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #24384d 0%, #36506a 100%) !important;
}

body.theme-refined .btn-outline-primary {
  color: #24384d !important;
  border-color: rgba(36, 56, 77, 0.16) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body.theme-refined .btn-outline-primary:hover,
body.theme-refined .btn-outline-primary:focus-visible,
body.theme-refined .btn-outline-primary:active {
  color: #1f3447 !important;
  background: #eef3f8 !important;
  border-color: rgba(36, 56, 77, 0.22) !important;
}

body.theme-refined .site-navbar .nav-link {
  color: #30404f;
}

body.theme-refined .site-navbar .nav-link:hover,
body.theme-refined .site-navbar .nav-link:focus {
  color: #1f3447;
  background: rgba(230, 236, 244, 0.8);
}

body.theme-refined .site-navbar .btn-outline-primary {
  color: #2a4054 !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

body.theme-refined .site-navbar .btn-primary {
  box-shadow: 0 16px 30px rgba(31, 52, 71, 0.18);
}

body.public-page.theme-refined .hero-section.hero-psychiatry,
body.theme-refined .hero-section.hero-psychiatry {
  background:
    radial-gradient(circle at 95% 6%, rgba(122, 131, 163, 0.12), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(54, 80, 106, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 242, 237, 0.98)) !important;
  border-color: rgba(31, 52, 71, 0.08);
}

body.public-page.theme-refined .hero-section.hero-psychiatry h1,
body.theme-refined .hero-section.hero-psychiatry h1 {
  color: #1c2c39 !important;
}

body.public-page.theme-refined .hero-badge,
body.public-page.theme-refined .hero-chip,
body.public-page.theme-refined .section-eyebrow,
body.public-page.theme-refined .agenda-status-badge,
body.public-page.theme-refined .dashboard-agenda-pill,
body.theme-refined .hero-badge,
body.theme-refined .hero-chip,
body.theme-refined .section-eyebrow,
body.theme-refined .agenda-status-badge,
body.theme-refined .dashboard-agenda-pill {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(36, 56, 77, 0.12) !important;
  color: #314355 !important;
  box-shadow: none;
}

body.public-page.theme-refined .hero-badge i,
body.public-page.theme-refined .hero-chip i,
body.public-page.theme-refined .section-eyebrow i,
body.public-page.theme-refined .agenda-status-badge i,
body.theme-refined .hero-badge i,
body.theme-refined .hero-chip i,
body.theme-refined .section-eyebrow i,
body.theme-refined .agenda-status-badge i {
  color: #36506a !important;
}

body.public-page.theme-refined .hero-inline-trust span,
body.theme-refined .hero-inline-trust span {
  color: #4d6274;
}

body.public-page.theme-refined .hero-identity-note,
body.theme-refined .hero-identity-note {
  color: #617183;
}

body.public-page.theme-refined .hero-visual-card,
body.public-page.theme-refined .authority-card,
body.public-page.theme-refined .seal-card,
body.public-page.theme-refined .complaint-card,
body.public-page.theme-refined .agenda-wrapper,
body.public-page.theme-refined .contact-side-card,
body.public-page.theme-refined .final-cta-card,
body.theme-refined .hero-visual-card,
body.theme-refined .authority-card,
body.theme-refined .seal-card,
body.theme-refined .complaint-card,
body.theme-refined .agenda-wrapper,
body.theme-refined .contact-side-card,
body.theme-refined .final-cta-card {
  border-color: rgba(31, 52, 71, 0.08) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 238, 0.96)) !important;
}

body.public-page.theme-refined .hero-orbit,
body.theme-refined .hero-orbit {
  background: radial-gradient(circle at center, rgba(229, 236, 244, 0.9), rgba(255, 255, 255, 0.68) 56%, rgba(255, 255, 255, 0) 72%) !important;
}

body.public-page.theme-refined .hero-orbit-core,
body.theme-refined .hero-orbit-core {
  background: linear-gradient(135deg, #30495f 0%, #48657f 100%) !important;
}

body.public-page.theme-refined .hero-insight-card i,
body.public-page.theme-refined .complaint-icon,
body.public-page.theme-refined .seal-card i,
body.public-page.theme-refined .process-step,
body.theme-refined .hero-insight-card i,
body.theme-refined .complaint-icon,
body.theme-refined .seal-card i,
body.theme-refined .process-step {
  background: linear-gradient(145deg, #e8eef5 0%, #dce6f0 100%) !important;
  color: #2c4257 !important;
}

body.public-page.theme-refined .agenda-side-card,
body.theme-refined .agenda-side-card {
  background: linear-gradient(160deg, #2a4155 0%, #34506a 100%) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 26px 44px rgba(31, 52, 71, 0.16) !important;
}

body.public-page.theme-refined .agenda-side-card h3,
body.public-page.theme-refined .agenda-side-card .small,
body.public-page.theme-refined .agenda-side-card .agenda-side-label,
body.public-page.theme-refined .agenda-side-card li,
body.public-page.theme-refined .agenda-side-card strong,
body.theme-refined .agenda-side-card h3,
body.theme-refined .agenda-side-card .small,
body.theme-refined .agenda-side-card .agenda-side-label,
body.theme-refined .agenda-side-card li,
body.theme-refined .agenda-side-card strong {
  color: rgba(245, 249, 255, 0.94) !important;
}

body.public-page.theme-refined .agenda-side-card .agenda-side-note,
body.theme-refined .agenda-side-card .agenda-side-note {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(245, 249, 255, 0.88) !important;
}

body.public-page.theme-refined .agenda-side-card .btn-primary,
body.theme-refined .agenda-side-card .btn-primary {
  background: #ffffff !important;
  color: #244058 !important;
  box-shadow: none !important;
}

body.public-page.theme-refined .agenda-side-card .btn-primary:hover,
body.theme-refined .agenda-side-card .btn-primary:hover {
  background: #eef3f8 !important;
  color: #1f3447 !important;
}

body.public-page.theme-refined .slot-btn,
body.theme-refined .slot-btn {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(56, 79, 101, 0.16) !important;
  color: #2a4054 !important;
}

body.public-page.theme-refined .slot-btn:hover,
body.public-page.theme-refined .slot-btn:focus-visible,
body.public-page.theme-refined .slot-btn.is-selected,
body.theme-refined .slot-btn:hover,
body.theme-refined .slot-btn:focus-visible,
body.theme-refined .slot-btn.is-selected {
  background: #eaf0f6 !important;
  border-color: rgba(36, 56, 77, 0.24) !important;
  color: #1f3447 !important;
}

body.theme-refined .text-bg-success {
  background: rgba(84, 116, 102, 0.12) !important;
  color: #3f5b51 !important;
}

body.dashboard-page.theme-refined,
body.dashboard-page.theme-refined .dashboard-sidebar {
  color: #1a2835;
}

body.dashboard-page.theme-refined .dashboard-sidebar {
  background: linear-gradient(180deg, #233747 0%, #243c4e 60%, #1e3241 100%) !important;
}

body.dashboard-page.theme-refined .dashboard-highlight-card {
  background: linear-gradient(145deg, #24394b 0%, #2e4760 55%, #395472 100%) !important;
}

/* Contrast and typography correction 20260407f */
:root {
  --tm-font-display: "Newsreader", Georgia, serif;
  --tm-font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --tm-primary: #334b63;
  --tm-primary-dark: #1f3142;
  --tm-primary-soft: #e7edf4;
  --tm-accent: #616b85;
  --tm-ink: #16222d;
  --tm-ink-soft: #283746;
  --tm-muted: #566474;
  --tm-muted-soft: #6c7786;
}

body.theme-refined,
body.theme-refined p,
body.theme-refined li,
body.theme-refined input,
body.theme-refined select,
body.theme-refined textarea,
body.theme-refined button {
  font-family: var(--tm-font-body);
}

body.theme-refined h1,
body.theme-refined h2,
body.theme-refined h3,
body.theme-refined h4,
body.theme-refined h5,
body.theme-refined h6,
body.theme-refined .display-1,
body.theme-refined .display-2,
body.theme-refined .display-3,
body.theme-refined .display-4 {
  font-family: var(--tm-font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
}

body.theme-refined .site-brand-copy small,
body.theme-refined .section-eyebrow,
body.theme-refined .auth-eyebrow,
body.theme-refined .view-header-kicker,
body.theme-refined .dashboard-section-tag,
body.theme-refined .dashboard-page-kicker,
body.theme-refined .agenda-side-label {
  color: #465669 !important;
}

body.theme-refined .section-eyebrow,
body.theme-refined .auth-eyebrow,
body.theme-refined .view-header-kicker,
body.theme-refined .dashboard-section-tag,
body.theme-refined .dashboard-page-kicker,
body.theme-refined .agenda-status-badge,
body.theme-refined .dashboard-agenda-pill,
body.theme-refined .hero-badge,
body.theme-refined .hero-chip,
body.theme-refined .auth-chip,
body.theme-refined .dashboard-chip {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(31, 49, 66, 0.12) !important;
  color: #334357 !important;
}

body.theme-refined .hero-chip i,
body.theme-refined .hero-badge i,
body.theme-refined .auth-chip i,
body.theme-refined .dashboard-chip i,
body.theme-refined .agenda-status-badge i,
body.theme-refined .dashboard-agenda-pill i {
  color: #314b66 !important;
}

body.theme-refined .hero-identity-note {
  gap: 0.7rem;
  color: #435366 !important;
}

body.theme-refined .hero-identity-note span,
body.theme-refined .hero-identity-note > span {
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 49, 66, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: #435366 !important;
  font-weight: 600;
}

body.theme-refined .hero-identity-note a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2e4357 !important;
  font-weight: 700;
}

body.theme-refined .hero-identity-note a:hover,
body.theme-refined .hero-identity-note a:focus {
  color: #1f3142 !important;
}

body.theme-refined .hero-inline-trust span {
  color: #45586b !important;
}

body.theme-refined .hero-orbit-tag,
body.theme-refined .view-header-meta span,
body.theme-refined .detail-label {
  color: #4a5b6e !important;
}

body.theme-refined .hero-insight-card i,
body.theme-refined .complaint-icon,
body.theme-refined .seal-card i,
body.theme-refined .process-step,
body.theme-refined .dashboard-stat-icon,
body.theme-refined .auth-side-list span,
body.theme-refined .auth-section-index {
  background: linear-gradient(145deg, #dfe7f0 0%, #ced9e6 100%) !important;
  color: #243b51 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-refined .dashboard-stat-icon.primary {
  background: linear-gradient(145deg, #dbe5f0 0%, #cad7e4 100%) !important;
  color: #243b51 !important;
}

body.theme-refined .dashboard-stat-icon.success {
  background: linear-gradient(145deg, #dde8e3 0%, #d0dfd8 100%) !important;
  color: #425b52 !important;
}

body.theme-refined .dashboard-stat-icon.warning {
  background: linear-gradient(145deg, #f3e8d5 0%, #eadbbf 100%) !important;
  color: #7a5a2d !important;
}

body.theme-refined .text-bg-primary {
  background: rgba(51, 75, 99, 0.12) !important;
  color: #23384d !important;
}

body.theme-refined .text-bg-success {
  background: rgba(84, 105, 94, 0.12) !important;
  color: #3f554d !important;
}

body.theme-refined .slot-btn {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(31, 49, 66, 0.14) !important;
  color: #27394c !important;
}

body.theme-refined .slot-btn:hover,
body.theme-refined .slot-btn:focus-visible,
body.theme-refined .slot-btn.is-selected {
  background: #e6edf5 !important;
  border-color: rgba(31, 49, 66, 0.24) !important;
  color: #1f3142 !important;
}

body.public-page.theme-refined .agenda-side-card,
body.theme-refined .agenda-side-card {
  background: linear-gradient(160deg, #25394b 0%, #314b63 100%) !important;
}

body.public-page.theme-refined .agenda-side-card h3,
body.public-page.theme-refined .agenda-side-card .small,
body.public-page.theme-refined .agenda-side-card li,
body.public-page.theme-refined .agenda-side-card strong,
body.public-page.theme-refined .agenda-side-card .agenda-side-label,
body.theme-refined .agenda-side-card h3,
body.theme-refined .agenda-side-card .small,
body.theme-refined .agenda-side-card li,
body.theme-refined .agenda-side-card strong,
body.theme-refined .agenda-side-card .agenda-side-label {
  color: rgba(247, 250, 255, 0.96) !important;
}

body.theme-refined .agenda-side-card .agenda-side-note {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(241, 247, 255, 0.92) !important;
}

body.theme-refined .agenda-side-card .btn-primary {
  background: #ffffff !important;
  color: #23384d !important;
}

body.theme-refined .agenda-side-card .btn-primary:hover {
  background: #edf2f7 !important;
  color: #1f3142 !important;
}

body.theme-refined .dashboard-chip {
  color: #304153 !important;
}

body.theme-refined .dashboard-dot {
  background: linear-gradient(135deg, #314b63 0%, #223749 100%) !important;
  box-shadow: 0 0 0 5px rgba(49, 75, 99, 0.1) !important;
}

body.theme-refined .dashboard-highlight-card,
body.dashboard-page.theme-refined .dashboard-highlight-card {
  background: linear-gradient(145deg, #223647 0%, #2c445b 55%, #36516d 100%) !important;
}

body.theme-refined .site-navbar .btn-primary,
body.theme-refined .booking-fab a,
body.theme-refined .mobile-sticky-cta .btn {
  background: linear-gradient(135deg, #223647 0%, #334b63 100%) !important;
  color: #ffffff !important;
}
