:root {
  --bg0: #fbfdff;
  --bg1: #f4f8fb;
  --card: rgba(255, 255, 255, .92);
  --card2: #f8fbff;
  --stroke: #dfe7f0;
  --text: #101828;
  --muted: #536273;
  --muted2: #748296;
  --accent: #0d9488;
  --accent2: #3b82f6;
  --accent3: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 18px 42px rgba(15, 23, 42, .08);
  --radius2: 8px;
  --max: 1080px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  letter-spacing: 0 !important;
}

html {
  background:
    linear-gradient(135deg, rgba(13, 148, 136, .07), transparent 34%),
    linear-gradient(225deg, rgba(59, 130, 246, .08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 55%, #ffffff 100%) !important;
  background-attachment: fixed;
}

body.sr-page {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100%;
  padding-bottom: 0;
}

.bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.12) 60%, transparent);
}

.bg-float span {
  position: absolute;
  color: rgba(13, 148, 136, .22);
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--size);
  opacity: 0;
  transform: translate(var(--sx), var(--sy));
  animation: sr-drift var(--dur) linear infinite;
  animation-delay: var(--delay);
  user-select: none;
}

@keyframes sr-drift {
  0% { transform: translate(var(--sx), var(--sy)) rotate(0deg); opacity: 0; }
  14% { opacity: var(--op); }
  100% { transform: translate(var(--ex), var(--ey)) rotate(var(--rot)); opacity: 0; }
}

a {
  color: inherit;
}

.sr-header {
  width: min(1140px, calc(100% - 32px));
  min-height: 74px;
  margin: 14px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(223, 231, 240, .88);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}

.sr-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.sr-logo,
.sr-feature-icon,
.calc-hero-icon,
.empty-icon {
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, #0f172a, #164e63 58%, #0d9488);
  color: #ffffff !important;
  box-shadow: 0 14px 26px rgba(13, 148, 136, .18);
}

.sr-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.sr-brand-name,
.sr-brand-sub {
  display: block;
}

.sr-brand-name {
  color: #101828;
  font-weight: 850;
  font-size: 18px;
}

.sr-brand-sub {
  margin-top: 1px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.sr-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sr-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sr-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #344054;
  font-weight: 800;
  text-decoration: none;
}

.sr-nav a:hover,
.sr-nav a.active {
  background: #ecfdf3;
  color: #0f766e;
}

.sr-sample-btn,
.sr-primary-link,
.sr-secondary-link {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid #bfd4ea;
  cursor: pointer;
}

.sr-sample-btn,
.sr-primary-link {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .16);
}

.sr-secondary-link {
  background: #ffffff;
  color: #101828;
}

.sr-sample-inline {
  margin-left: auto;
  white-space: nowrap;
}

.icon-btn,
.action-btn,
.chip,
.tab,
.primary,
.ibtn,
.kbtn {
  border-radius: 8px !important;
  font-family: var(--sans);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-color: #dfe7f0;
  background: #ffffff;
  color: #101828;
  box-shadow: none;
}

.sr-menu-btn {
  display: none;
}

.site-menu-panel {
  border-radius: 8px;
  background: rgba(255,255,255,.97) !important;
  border-color: #dfe7f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.site-menu-link {
  border-radius: 8px;
  background: #ffffff !important;
  border: 1px solid #dfe7f0;
}

.site-menu-link.featured {
  background: #f0fdfa !important;
}

.sr-main {
  width: min(1140px, calc(100% - 32px));
  margin: 30px auto 68px;
}

.sr-home {
  min-height: calc(100vh - 190px);
  display: grid;
  align-items: start;
}

.panel,
.sr-home-panel,
.sr-directory-hero,
.sr-link-directory,
.sr-related-inner {
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(223, 231, 240, .95) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow) !important;
}

.sr-home-panel {
  padding: clamp(26px, 4vw, 48px);
  display: grid;
  gap: 24px;
}

.sr-home-panel h1,
.sr-directory-hero h1,
.sr-section-head h2,
.sr-calc-heading h1,
.calc-suite-title {
  margin: 0;
  color: #101828;
  line-height: 1.04;
}

.sr-home-panel h1,
.sr-directory-hero h1,
.sr-calc-heading h1 {
  font-size: clamp(34px, 4.6vw, 58px);
}

.sr-eyebrow,
.calc-suite-kicker {
  margin: 0 0 9px;
  color: #0f766e !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2;
  text-transform: uppercase;
}

.calc-suite-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf3;
}

.sr-lead,
.sr-calc-heading p,
.calc-suite-sub {
  color: #536273 !important;
  line-height: 1.65;
}

.sr-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sr-directory-hero {
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.sr-feature-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #c7ddf6;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 253, 243, .85), rgba(239, 246, 255, .92));
  color: #101828;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sr-feature-card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 18px 36px rgba(37, 99, 235, .12);
}

.sr-feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}

.sr-feature-copy {
  display: grid;
  gap: 6px;
}

.sr-feature-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
}

.sr-feature-text {
  color: #475467;
  font-size: 16px;
  line-height: 1.55;
}

.sr-feature-arrow {
  color: #2563eb;
  font-weight: 900;
  font-size: 30px;
}

.sr-link-directory {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 36px);
}

.sr-section-head {
  margin-bottom: 22px;
}

.sr-section-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
}

.sr-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 26px 28px;
  align-items: start;
}

.sr-link-group {
  min-width: 0;
}

.sr-link-group h2 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 20px;
  line-height: 1.2;
}

.sr-link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-link-group a,
.sr-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #101828;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.sr-link-group a:hover,
.sr-related-links a:hover {
  border-color: #6ee7b7;
  background: #ecfdf3;
  color: #0f766e;
}

.wrap,
.bottom-help {
  width: min(100%, calc(100% - 32px));
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.sr-calculator-main {
  margin-top: 28px;
  margin-bottom: 38px;
}

.main-col {
  width: 100%;
}

.sr-step-panel {
  padding: clamp(20px, 3vw, 30px);
}

.sr-calc-heading {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, .9), rgba(239, 246, 255, .9));
  border: 1px solid #d9e8f8;
}

.sr-step-tabs {
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.input-bar.sr-step-input-bar {
  position: relative;
  min-height: 106px;
  padding: 14px 132px 14px 16px;
  border: 1px solid #bfd4ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.sr-step-input-bar .mq-input,
.sr-step-input-bar .txt-input {
  width: 100%;
  min-height: 74px;
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
}

.sr-step-input-bar .txt-input {
  resize: vertical;
  line-height: 1.5;
}

.sr-step-input-bar .mq-input .mq-root-block,
.sr-step-input-bar .mathquill-editable .mq-root-block {
  white-space: normal !important;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.sr-input-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ibtn {
  width: 36px;
  height: 36px;
  border: 1px solid #d8e3ef;
  background: #f8fbff;
  color: #101828;
  box-shadow: none;
}

.ibtn.upload {
  background: #eff6ff;
  color: #1d4ed8;
}

.primary {
  min-height: 50px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #ffffff;
  border: 0;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .16);
}

.primary:hover {
  filter: brightness(.98);
}

.tab {
  border: 1px solid #d8e3ef;
  background: #ffffff;
  color: #536273;
  font-weight: 850;
}

.tab.active {
  background: #101828;
  color: #ffffff;
  border-color: #101828;
}

.preview-box,
.inline-answer-box,
.answer-box,
.fc-num,
.answer-mode-select,
.fc-select,
.fc-decimal-input {
  background: #f8fbff !important;
  border-color: #d8e3ef !important;
  color: #101828 !important;
}

.calc-suite-panel {
  padding: clamp(20px, 3vw, 30px) !important;
}

.calc-suite-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #d9e8f8;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, .92), rgba(255, 251, 235, .55) 44%, rgba(239, 246, 255, .9));
}

.calc-suite-title {
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 48px);
}

.calc-hero-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
}

.calc-builder {
  border-radius: 8px;
}

.fc-label,
.preview-title,
.inline-answer-label,
.answer-mode-label {
  color: #101828 !important;
  font-weight: 850;
}

.fc-note,
.calc-builder-copy,
.empty-sub {
  color: #667085 !important;
}

.drawer {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.drawer-card {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 8px 8px 0 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  border-color: #d8e3ef !important;
  box-shadow: 0 -18px 48px rgba(15, 23, 42, .16) !important;
}

.kp-carousel {
  touch-action: pan-y;
}

.kp-track {
  will-change: transform;
}

.kbtn {
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06) !important;
}

.sr-related {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.sr-related-inner {
  padding: 24px;
}

.sr-related h2 {
  margin: 0 0 14px;
  color: #101828;
}

.sr-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-footer {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #667085;
  font-size: 14px;
}

.sr-footer a {
  color: #344054;
  text-decoration: none;
  font-weight: 700;
}

.toast {
  border-radius: 8px;
}

@media (max-width: 760px) {
  .sr-header {
    width: min(100% - 24px, 1140px);
    padding: 0 12px;
  }

  .sr-nav {
    display: none;
  }

  .sr-menu-btn {
    display: grid;
  }

  .sr-main,
  .wrap,
  .sr-related,
  .sr-footer {
    width: calc(100% - 24px);
  }

  .sr-feature-card,
  .calc-suite-hero {
    grid-template-columns: 1fr;
  }

  .sr-feature-arrow {
    display: none;
  }

  .sr-step-tabs {
    align-items: stretch;
  }

  .sr-step-tabs,
  .tabs {
    flex-wrap: wrap;
  }

  .sr-sample-inline {
    margin-left: 0;
    width: 100%;
  }

  .input-bar.sr-step-input-bar {
    padding-right: 12px;
    padding-bottom: 58px;
  }

  .sr-input-actions {
    top: auto;
    right: 12px;
    bottom: 12px;
    transform: none;
  }

  .calc-fields-grid {
    grid-template-columns: 1fr !important;
  }
}
