:root {
  --s42-ink: #14131a;
  --s42-ink-soft: #4c4a57;
  --s42-ink-faint: #7a7787;
  --s42-accent: #e5662f;
  --s42-accent-2: #1e7f6d;
  --s42-accent-3: #f2b134;
  --s42-bg: #f7f3ee;
  --s42-shadow: 0 18px 50px rgba(18, 17, 25, 0.16);
  --s42-font-sans: "Aptos", "Space Grotesk", "Segoe UI", "Trebuchet MS", sans-serif;
  --s42-font-display: "Aptos", "Fraunces", "Times New Roman", serif;
  --s42-tool-max-width: 960px;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0 !important;
  padding-top: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--s42-ink);
  font-family: var(--s42-font-sans);
  background: #f4f6fa;
}

body:not(.s42-landing):not(.s42-home-bootstrap) {
  background: #f0f1f5;
  --s42-page-top: 1.5rem;
  --s42-page-bottom: 2.5rem;
}

body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page {
  background: #f0f1f5;
}

body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page > .container,
body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page > .s42-container,
body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page > main > .container,
body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page > main > .s42-container {
  max-width: var(--s42-tool-max-width);
}

body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page-title {
  font-family: var(--s42-font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.5rem;
}

.s42-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s42-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 19, 26, 0.08);
  box-shadow: 0 6px 18px rgba(20, 19, 26, 0.06);
}

.s42-header .navbar {
  padding: 0.45rem 0;
}

/* Protect header layout from page-level ".container" overrides */
.s42-header .container,
.s42-header .container.s42-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.s42-header .navbar-brand {
  font-family: var(--s42-font-display);
  color: var(--s42-ink);
  letter-spacing: -0.02em;
}

.s42-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.92));
  border: 1px solid rgba(20, 19, 26, 0.08);
  box-shadow: 0 3px 10px rgba(20, 19, 26, 0.12);
}

.s42-brand-mark img {
  width: 28px;
  height: 28px;
  display: block;
}

.s42-brand-text {
  font-size: 1rem;
  font-weight: 700;
}

.s42-brand-sub {
  font-size: 0.66rem;
  color: var(--s42-ink-faint);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.s42-nav-link {
  color: var(--s42-ink) !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.s42-nav-link:hover,
.s42-nav-link:focus {
  color: var(--s42-accent-2) !important;
  background: rgba(30, 127, 109, 0.09);
  transform: translateY(-1px);
}

.s42-header .btn.nav-link {
  text-decoration: none;
  line-height: 1.2;
}

.s42-header .navbar-toggler {
  border-color: rgba(20, 19, 26, 0.18);
}

.s42-header .dropdown-menu {
  border-radius: 14px;
  border: 1px solid rgba(20, 19, 26, 0.08);
  box-shadow: var(--s42-shadow);
}

.s42-tools-menu {
  width: min(980px, 96vw);
}

.s42-mobile-tools {
  display: none;
}

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

.s42-tools-category {
  border: 1px solid rgba(20, 19, 26, 0.07);
  border-radius: 12px;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.65);
}

.s42-tools-category .dropdown-header {
  color: var(--s42-ink-soft);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem 0.45rem;
}

.s42-tool-link {
  border-radius: 10px;
  white-space: normal;
  padding: 0.5rem 0.55rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.s42-tool-link:hover,
.s42-tool-link:focus {
  background: rgba(229, 102, 47, 0.1);
  transform: translateY(-1px);
}

.s42-tool-link.active {
  background: rgba(229, 102, 47, 0.16);
  color: var(--s42-ink);
}

.s42-tool-link.disabled {
  opacity: 0.52;
}

.s42-menu-desc {
  font-size: 0.76rem;
  line-height: 1.25;
}

.s42-tool-icon {
  width: 1rem;
  text-align: center;
  margin-top: 0.2rem;
  color: var(--s42-accent-2);
}

.s42-tool-label-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.s42-beta-badge {
  --bs-badge-padding-x: 0.42rem;
  --bs-badge-padding-y: 0.18rem;
  font-size: 0.64rem;
  letter-spacing: 0;
  color: #713f12;
  background: #fef3c7;
  border: 1px solid #facc15;
}

.s42-user-bar .btn {
  border-radius: 999px;
}

.s42-user-name {
  font-size: 0.79rem;
  border: 1px solid rgba(20, 19, 26, 0.1);
}

.s42-mobile-account {
  display: grid;
  gap: 0.6rem;
  margin: 0.35rem 0 0.9rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 19, 26, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(20, 19, 26, 0.06);
}

.s42-mobile-account-head {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--s42-ink);
  font-weight: 800;
}

.s42-mobile-account-actions {
  display: grid;
  gap: 0.35rem;
}

.s42-mobile-account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--s42-ink);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.s42-mobile-account-link:hover,
.s42-mobile-account-link:focus {
  background: rgba(30, 127, 109, 0.09);
  color: var(--s42-accent-2);
}

.s42-footer {
  margin-top: auto;
  background: #faf8f5;
  font-family: var(--s42-font-sans);
}

.s42-page {
  flex: 1 0 auto;
  padding-top: var(--s42-page-top, 0);
  padding-bottom: var(--s42-page-bottom, 2rem);
}

body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page .card,
body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page .s42-panel,
body:not(.s42-landing):not(.s42-home-bootstrap) .s42-page .s42-tool-frame {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid rgba(20, 19, 26, 0.08);
  box-shadow: 0 0.125rem 0.25rem rgba(20, 19, 26, 0.08);
}

body.s42-home-bootstrap {
  --s42-page-top: 0.95rem;
  --s42-page-bottom: 2.2rem;
  background:
    radial-gradient(1200px 440px at -8% -18%, rgba(229, 102, 47, 0.18), transparent 58%),
    radial-gradient(920px 360px at 102% -10%, rgba(30, 127, 109, 0.18), transparent 56%),
    linear-gradient(180deg, #f8efe2 0%, #f5f7fb 42%, #eef3f7 100%);
}

.s42-home .s42-page {
  position: relative;
  overflow: clip;
}

.s42-home .s42-page::before {
  content: "";
  position: absolute;
  inset: 1.25rem auto auto 50%;
  width: min(1120px, calc(100% - 2rem));
  height: 520px;
  transform: translateX(-50%);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(20, 19, 26, 0.03) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(20, 19, 26, 0.02) 0 1px, transparent 1px 72px);
  opacity: 0.55;
  pointer-events: none;
}

.s42-home .s42-page > main {
  position: relative;
  z-index: 1;
}

.s42-home-main {
  position: relative;
  z-index: 1;
}

.s42-home-hero {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 14% 20%, rgba(242, 177, 52, 0.26), transparent 48%),
    radial-gradient(circle at 92% 100%, rgba(30, 127, 109, 0.18), transparent 54%);
  box-shadow: 0 24px 60px rgba(20, 19, 26, 0.16);
  animation: s42-fade-up 0.45s ease both;
}

.s42-home-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(229, 102, 47, 0.18), transparent 65%);
  pointer-events: none;
}

.s42-home-badge {
  background: rgba(255, 255, 255, 0.76);
  color: var(--s42-ink);
  border-color: rgba(20, 19, 26, 0.12) !important;
  backdrop-filter: blur(12px);
}

.s42-home-badge i {
  color: var(--s42-accent);
}

.s42-home-eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--s42-accent-2);
}

.s42-home-title {
  font-family: var(--s42-font-display);
  font-size: clamp(2.15rem, 3.3vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1.05rem;
  max-width: 15ch;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.s42-home-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--s42-ink-soft);
  max-width: 62ch;
  margin: 0 0 0.8rem;
}

.s42-home-sublead {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--s42-ink-faint);
  max-width: 64ch;
  margin: 0 0 1.4rem;
}

.s42-home-actions .btn,
.s42-home-cta .btn {
  border-radius: 999px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.s42-home-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(30, 127, 109, 0.18);
  background: rgba(30, 127, 109, 0.08);
  color: var(--s42-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.s42-home-user-chip i {
  color: var(--s42-accent-2);
}

.s42-home-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.s42-home-signals span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 19, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--s42-ink-soft);
  font-size: 0.86rem;
  box-shadow: 0 10px 18px rgba(20, 19, 26, 0.06);
}

.s42-home-panel {
  position: relative;
  border-radius: 1.3rem;
  overflow: hidden;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 177, 52, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(20, 19, 26, 0.96), rgba(35, 33, 44, 0.96));
  box-shadow: 0 26px 54px rgba(20, 19, 26, 0.26);
  animation: s42-fade-up 0.55s ease both;
}

.s42-home-panel-top,
.s42-home-steps,
.s42-home-panel-note {
  position: relative;
  z-index: 1;
}

.s42-home-panel-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.s42-home-panel-icon {
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.s42-home-panel-label {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.68);
}

.s42-home-panel h2 {
  color: #fff;
  line-height: 1.12;
}

.s42-home-panel .text-body-secondary {
  color: rgba(244, 241, 235, 0.76) !important;
  position: relative;
  z-index: 1;
}

.s42-home-steps {
  display: grid;
  gap: 0.8rem;
}

.s42-home-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.s42-home-step strong {
  color: var(--s42-accent-3);
  font-size: 1.05rem;
  line-height: 1.2;
}

.s42-home-step span {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.s42-home-panel-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.s42-home-feature,
.s42-home-story,
.s42-home-faq {
  border-radius: 1.2rem;
  animation: s42-fade-up 0.45s ease both;
}

.s42-home-feature {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(30, 127, 109, 0.05), rgba(229, 102, 47, 0.05));
}

.s42-home-feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(229, 102, 47, 0.16), rgba(30, 127, 109, 0.16));
  color: var(--s42-accent-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.s42-home-section-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--s42-accent-2);
}

.s42-home-section-title {
  font-family: var(--s42-font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.s42-home-story {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 0 0, rgba(30, 127, 109, 0.1), transparent 28%);
}

.s42-home-quote {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(229, 102, 47, 0.16);
  background: rgba(229, 102, 47, 0.08);
  color: var(--s42-ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.s42-home-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.s42-home-mini-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 19, 26, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.s42-home-mini-card strong {
  font-size: 0.98rem;
}

.s42-home-faq {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 100% 0, rgba(242, 177, 52, 0.1), transparent 26%);
}

.s42-home-faq-list {
  display: grid;
  gap: 0.85rem;
}

.s42-home-faq-item {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 19, 26, 0.08);
  background: rgba(248, 250, 252, 0.92);
}

.s42-home-faq-item h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.s42-home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.4rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(20, 19, 26, 0.08);
  background:
    linear-gradient(135deg, rgba(30, 127, 109, 0.12), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 100% 0, rgba(242, 177, 52, 0.18), transparent 28%);
  box-shadow: 0 18px 40px rgba(20, 19, 26, 0.08);
  animation: s42-fade-up 0.5s ease both;
}

.s42-animate-up {
  animation: s42-fade-up 0.45s ease both;
}

.s42-auth-page {
  --s42-page-top: 1.1rem;
  --s42-page-bottom: 2.1rem;
}

.s42-auth-main,
.s42-admin-main {
  position: relative;
  z-index: 1;
}

.s42-auth-card {
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 12% 8%, rgba(242, 177, 52, 0.2), transparent 48%);
}

.s42-auth-icon,
.s42-admin-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(229, 102, 47, 0.2), rgba(30, 127, 109, 0.18));
  color: var(--s42-accent-2);
  font-size: 1rem;
  flex-shrink: 0;
}

.s42-auth-page .form-control:focus,
.s42-admin-page .form-control:focus,
.s42-admin-page .form-select:focus,
.s42-admin-page .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(30, 127, 109, 0.18);
  border-color: rgba(30, 127, 109, 0.42);
}

.s42-admin-page {
  --s42-page-top: 1rem;
  --s42-page-bottom: 2rem;
}

.s42-admin-hero {
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 12% 8%, rgba(30, 127, 109, 0.2), transparent 48%);
}

.s42-admin-card {
  border-radius: 1rem;
}

.s42-admin-accordion .accordion-item {
  border-radius: 0.9rem;
}

.s42-admin-accordion .accordion-button {
  font-weight: 600;
  background: #fff;
  box-shadow: none;
  border: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.s42-admin-accordion .accordion-button::after {
  margin-left: auto;
  flex: 0 0 auto;
}

.s42-admin-accordion .accordion-button > .fw-semibold {
  min-width: min(100%, 12rem);
  overflow-wrap: anywhere;
}

.s42-admin-accordion .accordion-button > .badge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.s42-admin-accordion .accordion-button:not(.collapsed) {
  color: var(--s42-ink);
  background: rgba(30, 127, 109, 0.08);
}

.s42-admin-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(30, 127, 109, 0.2);
}

.s42-admin-users-accordion .s42-user-last-login-summary {
  color: rgba(76, 74, 87, 0.58) !important;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.82;
  white-space: nowrap;
}

.s42-users-sort-select {
  min-width: 11rem;
}

.s42-users-sort-form {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .s42-admin-users-accordion .accordion-button::after {
    margin-left: 0.4rem;
  }

  .s42-admin-users-accordion .accordion-button:not(.collapsed) .s42-user-last-login-summary {
    display: none !important;
  }
}

.s42-tool-status-badge {
  border: 1px solid currentColor;
  font-weight: 700;
}

.s42-tool-status-visible {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.s42-tool-status-hidden,
.s42-tool-status-private {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.s42-tool-status-public {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.s42-tool-status-admin {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fdba74;
}

.s42-tools-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.s42-check-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dbe1ea;
  border-radius: 0.8rem;
  padding: 0.65rem 0.75rem;
  padding-left: 0.75rem !important;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.s42-check-chip:hover {
  border-color: #86b7fe;
  box-shadow: 0 0.35rem 0.8rem rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
}

.s42-check-chip.is-disabled {
  opacity: 1;
  background: linear-gradient(180deg, #f2fbf5 0%, #e4f6ea 100%);
  border-color: #9acfae;
  color: #235239;
}

.s42-check-chip.is-disabled:hover {
  border-color: #8abf9f;
  box-shadow: 0 0.35rem 0.8rem rgba(50, 138, 86, 0.12);
  transform: none;
}

.s42-check-chip.is-admin-only-blocked {
  background: linear-gradient(180deg, #fff8e1 0%, #ffedb6 100%);
  border-color: #e6b642;
  color: #6b4700;
}

.s42-check-chip.is-admin-only-blocked:hover {
  border-color: #c9951d;
  box-shadow: 0 0.35rem 0.8rem rgba(201, 149, 29, 0.16);
}

.s42-check-chip.is-admin-only-blocked .form-check-label {
  color: #6b4700;
}

.s42-check-chip .form-check-input {
  float: none;
  margin-left: 0;
  position: static;
  margin-top: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.s42-check-chip .form-check-label {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.2;
  flex: 1 1 auto;
}

.s42-check-chip.is-disabled .form-check-input,
.s42-check-chip.is-disabled .form-check-label {
  cursor: not-allowed;
}

.s42-check-chip.is-disabled .form-check-label {
  color: #235239;
}

@keyframes s42-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Landing pages (login/admin) */
html:has(> body.s42-landing) {
  max-width: 100%;
  overflow-x: hidden;
}

.s42-landing {
  font-family: var(--s42-font-sans);
  background: var(--s42-bg);
  color: var(--s42-ink);
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.s42-landing::before,
.s42-landing::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.s42-landing::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, var(--s42-accent-3), transparent 60%);
  top: -120px;
  right: -140px;
}

.s42-landing::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 40% 40%, var(--s42-accent-2), transparent 60%);
  bottom: 0;
  left: -180px;
}

@media (max-width: 1199.98px) {
  .s42-header .navbar-collapse {
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
  }

  .s42-header .navbar-collapse.show {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.8rem;
  }

  .s42-header .navbar-collapse.collapsing {
    overflow-y: hidden;
  }

  .s42-tools-layout {
    grid-template-columns: 1fr;
  }

  .s42-tools-menu {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .s42-nav-link {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
  }

  .s42-mobile-tools {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.3rem;
  }

  .s42-mobile-tools-head {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(30, 127, 109, 0.09);
    color: var(--s42-accent-2);
    font-weight: 700;
    width: fit-content;
    max-width: 100%;
  }

  .s42-mobile-tools-list {
    display: grid;
    gap: 0.75rem;
  }

  .s42-mobile-tools-category {
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(20, 19, 26, 0.06);
  }

  .s42-user-bar {
    border-top: 1px dashed rgba(20, 19, 26, 0.12);
    margin-top: 0.65rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  .s42-header .navbar {
    padding: 0.35rem 0;
  }

  .s42-home .s42-page::before {
    width: calc(100% - 1.5rem);
    height: 460px;
  }

  .s42-home-title {
    max-width: none;
  }

  .s42-home-mini-grid {
    grid-template-columns: 1fr;
  }

  .s42-home-cta {
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .s42-container {
    padding: 0 1rem;
  }

  .s42-brand-sub {
    display: none;
  }

  .s42-kpi-card {
    padding: 0.5rem 0.55rem;
  }

  .s42-tool-avatar {
    width: 2.05rem;
    height: 2.05rem;
  }

  .s42-home .s42-page::before {
    top: 0.8rem;
    height: 420px;
    border-radius: 1.4rem;
  }

  .s42-home-hero,
  .s42-home-panel,
  .s42-home-feature,
  .s42-home-story,
  .s42-home-faq,
  .s42-home-cta {
    border-radius: 1rem;
  }

  .s42-home-title {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .s42-home-lead {
    font-size: 1rem;
  }

  .s42-home-actions .btn,
  .s42-home-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .s42-home-user-chip {
    width: 100%;
    align-items: flex-start;
  }

  .s42-home-signals span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .s42-home-panel,
  .s42-home-cta {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.s42-hidden-modal-backdrop {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media print {
  .s42-header,
  .s42-footer {
    display: none !important;
  }
}
