:root {
  --navy: #102f3f;
  --navy-dark: #092330;
  --teal: #078c7e;
  --teal-dark: #066f66;
  --teal-soft: #e8f5f1;
  --gold: #e4aa42;
  --gold-soft: #fff5df;
  --ink: #15232b;
  --muted: #65757c;
  --line: #dfe9e7;
  --paper: #ffffff;
  --mist: #f4f8f7;
  --shadow: 0 18px 50px rgba(12, 47, 59, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.js-hidden {
  display: none !important;
}

.admin-table > [data-user-rows] {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.trust-strip {
  background: var(--navy-dark);
  color: #c9dbdd;
  font-size: 12px;
}

.trust-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trust-strip a {
  color: white;
  font-weight: 700;
}

.site-header {
  height: 70px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.site-logo {
  display: block;
  width: 100px;
  height: 50px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin-left: auto;
}

.main-nav>a,
.mega-trigger>button {
  font-size: 13px;
  color: #334950;
  font-weight: 750;
  background: transparent;
  border: 0;
  padding: 27px 0;
}

.main-nav>a:hover,
.mega-trigger>button:hover {
  color: var(--teal);
}

.mega-trigger {
  position: relative;
}

.mega-trigger>button span {
  font-size: 15px;
  margin-left: 4px;
}

.mega-menu {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  width: min(940px, calc(100vw - 64px));
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-43%) translateY(8px);
  background: white;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(9, 35, 48, .17);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-43%) translateY(0);
}

.mega-intro {
  border-radius: 13px;
  padding: 24px;
  color: white;
  background: var(--navy);
}

.mega-intro h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 11px 0;
}

.mega-intro p {
  color: #bed2d4;
  font-size: 13px;
  line-height: 1.65;
}

.mega-intro .text-link {
  color: #80ddd1;
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  align-content: start;
}

.mega-grid a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px;
  border-radius: 9px;
  font-size: 12px;
  color: #40545a;
}

.mega-grid a:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.mega-grid a span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--mist);
  color: var(--teal);
}

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

.account-header-button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 9px;
  align-items: center;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.account-header-button img,
.account-header-button>span {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.account-header-button b {
  align-self: end;
  color: var(--navy);
  font-size: 10px;
  line-height: 1.1;
}

.account-header-button em {
  align-self: start;
  color: var(--teal);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.mobile-account-link {
  display: none;
}

.mobile-menu-button {
  display: none;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  transition: .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(7, 140, 126, .18);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-ghost {
  color: var(--navy);
  background: white;
  border-color: var(--line);
}

.button-soft {
  color: var(--navy);
  background: #edf4f2;
}

.button-outline {
  color: var(--navy);
  background: white;
  border-color: #b9ceca;
}

.button-gold {
  color: var(--navy-dark);
  background: var(--gold);
}

.button-large {
  min-height: 50px;
  padding: 0 23px;
  border-radius: 10px;
}

.button-full {
  width: 100%;
}

.eyebrow {
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
}

.eyebrow.light {
  color: #8bddd3;
}

.text-link {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

/* Homepage */
.home-hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 86% 18%, rgba(228, 170, 66, .12), transparent 25%), linear-gradient(112deg, #f4faf8 0%, #fff 58%, #f5fbf9 100%);
}

.home-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(12, 65, 64, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 65, 64, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 55px;
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c5ddd8;
  background: rgba(255, 255, 255, .78);
  color: var(--navy);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.hero-pill span {
  color: var(--teal);
}

.hero-copy h1 {
  margin: 19px 0;
  color: var(--navy);
  font-size: clamp(43px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -3.1px;
  font-weight: 820;
}

.hero-copy h1 em {
  color: var(--teal);
  font-style: normal;
  position: relative;
}

.hero-copy h1 em:after {
  content: "";
  position: absolute;
  height: 7px;
  background: var(--gold);
  opacity: .7;
  left: 1px;
  right: 0;
  bottom: 2px;
  border-radius: 100%;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-copy>p {
  max-width: 590px;
  color: #5f7076;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 11px;
  margin: 28px 0 31px;
}

.hero-trust {
  display: flex;
  gap: 0;
}

.hero-trust div {
  min-width: 115px;
  border-right: 1px solid #ccdcd8;
  padding: 0 20px;
}

.hero-trust div:first-child {
  padding-left: 0;
}

.hero-trust div:last-child {
  border: 0;
}

.hero-trust b {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.hero-trust span {
  color: var(--muted);
  font-size: 10px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.blueprint-grid {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background-color: #e9f4f1;
  background-image: linear-gradient(rgba(7, 140, 126, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 140, 126, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  clip-path: circle(46%);
}

.house-card {
  position: absolute;
  width: 338px;
  height: 378px;
  top: 48px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.4deg);
  background: white;
  border-radius: 19px;
  box-shadow: 0 28px 70px rgba(19, 69, 77, .18);
  border: 1px solid #dbe9e6;
  padding: 25px;
}

.house-sketch {
  position: relative;
  height: 238px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.house-sketch .roof {
  position: absolute;
  top: 35px;
  width: 232px;
  height: 130px;
  background: #e3eeea;
  clip-path: polygon(50% 0, 100% 70%, 92% 76%, 50% 23%, 8% 76%, 0 70%);
  filter: drop-shadow(0 7px 0 #b88a37);
}

.house-body {
  width: 206px;
  height: 145px;
  position: relative;
  background: #d5e4df;
  border: 5px solid var(--navy);
  border-top-width: 3px;
  box-shadow: inset 0 -23px 0 #bfd3cd;
}

.house-body:before,
.house-body:after {
  content: "";
  position: absolute;
  width: 42px;
  height: 55px;
  border: 4px solid var(--navy);
  background: #eff6f4;
  top: 25px;
}

.house-body:before {
  left: 20px;
}

.house-body:after {
  right: 20px;
}

.house-body i {
  position: absolute;
  width: 50px;
  height: 82px;
  background: var(--teal);
  bottom: 0;
  left: 76px;
  border: 4px solid var(--navy);
}

.house-body i:after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  right: 7px;
  top: 37px;
}

.dimension-line {
  position: absolute;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}

.dimension-line:before {
  content: "";
  position: absolute;
  background: var(--teal);
}

.dimension-line.horizontal {
  left: 58px;
  right: 58px;
  top: 272px;
  text-align: center;
  border-top: 1px solid var(--teal);
}

.dimension-line.horizontal span {
  background: white;
  padding: 0 8px;
  position: relative;
  top: -7px;
}

.dimension-line.vertical {
  right: 24px;
  top: 75px;
  bottom: 126px;
  border-left: 1px solid var(--teal);
}

.dimension-line.vertical span {
  position: absolute;
  top: 48%;
  right: -18px;
  background: white;
  padding: 5px 1px;
  transform: rotate(90deg);
}

.visual-caption {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.visual-caption>span {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--teal);
  font-weight: 800;
}

.visual-caption>b {
  font-size: 16px;
  display: block;
  color: var(--navy);
  margin-top: 2px;
}

.visual-caption div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}

.visual-caption em {
  font-size: 10px;
  color: var(--muted);
  font-style: normal;
}

.visual-caption strong {
  color: var(--teal);
  font-size: 13px;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 11px;
  padding: 11px 12px;
  min-width: 185px;
}

.floating-chip>span {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
}

.floating-chip b,
.floating-chip em {
  display: block;
  font-size: 10px;
  font-style: normal;
}

.floating-chip b {
  color: var(--navy);
}

.floating-chip em {
  color: var(--muted);
  margin-top: 2px;
}

.floating-chip i {
  margin-left: auto;
  color: var(--teal);
  background: var(--teal-soft);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
}

.chip-one {
  left: -10px;
  top: 63px;
}

.chip-two {
  right: -9px;
  top: 290px;
}

.measure-badge {
  position: absolute;
  left: 9px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 27px;
  transform: rotate(-3deg);
}

.measure-badge span {
  color: var(--navy);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.calculator-showcase {
  padding: 90px 0 95px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 35px;
}

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: var(--navy);
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  min-height: 214px;
  padding: 23px;
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: .2s ease;
  overflow: hidden;
}

.tool-card:after {
  content: "";
  position: absolute;
  height: 3px;
  left: 0;
  right: 100%;
  bottom: 0;
  background: var(--teal);
  transition: .25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #bdd7d2;
}

.tool-card:hover:after {
  right: 0;
}

.tool-card.featured {
  background: linear-gradient(145deg, var(--navy), #174c58);
  border: 0;
}

.tool-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 11px;
  font-size: 21px;
}

.tool-card.featured .tool-icon {
  background: rgba(255, 255, 255, .12);
  color: #8ce1d6;
}

.tool-card h3 {
  color: var(--navy);
  margin: 17px 0 7px;
  font-size: 16px;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 15px;
  font-size: 11px;
}

.tool-card b {
  color: var(--teal-dark);
  font-size: 11px;
}

.tool-card.featured h3,
.tool-card.featured b {
  color: white;
}

.tool-card.featured p {
  color: #bcd2d5;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.content-promise {
  background: var(--navy);
  color: white;
  overflow: hidden;
  position: relative;
}

.content-promise:after {
  content: "";
  width: 500px;
  height: 500px;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  right: -170px;
  top: -190px;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .02);
}

.promise-grid {
  min-height: 455px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 75px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.promise-grid h2 {
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -1.8px;
  margin: 13px 0;
}

.promise-grid>div:first-child p {
  color: #b9ced1;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.content-ratio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.content-ratio>div {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .055);
  border-radius: 13px;
  padding: 22px;
}

.content-ratio .ratio-main {
  grid-column: 1 / 3;
  background: rgba(7, 140, 126, .24);
}

.content-ratio b,
.content-ratio span {
  display: block;
}

.content-ratio b {
  color: var(--gold);
  font-size: 32px;
}

.content-ratio span {
  font-size: 13px;
  font-weight: 800;
  margin: 4px 0;
}

.content-ratio p {
  color: #b9ced1;
  font-size: 10px;
  margin: 0;
}

.how-section {
  padding: 90px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  text-align: center;
  margin-top: 55px;
}

.steps-grid>div {
  position: relative;
}

.steps-grid>div:not(:last-child):after {
  content: "";
  position: absolute;
  height: 1px;
  background: #cddbd8;
  width: 120px;
  right: -95px;
  top: 43px;
}

.steps-grid>div>span {
  position: absolute;
  top: -12px;
  left: calc(50% + 25px);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.steps-grid i {
  width: 82px;
  height: 82px;
  margin: auto;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 24px;
  font-style: normal;
  font-size: 28px;
  transform: rotate(2deg);
}

.steps-grid h3 {
  color: var(--navy);
  font-size: 16px;
  margin: 18px 0 6px;
}

.steps-grid p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  max-width: 260px;
  margin: auto;
}

.guide-preview {
  background: var(--mist);
  padding: 85px 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.guide-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 16px;
}

.guide-card.large {
  grid-row: 1 / 3;
  grid-template-columns: 1fr;
  align-items: initial;
}

.guide-art {
  min-height: 112px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-size: 30px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
}

.guide-card.large .guide-art {
  min-height: 205px;
  font-size: 70px;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 25px 25px;
}

.area-art {
  background: linear-gradient(135deg, #c4862b, var(--gold));
}

.guide-card em {
  color: var(--teal);
  font-size: 9px;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .6px;
}

.guide-card h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
  margin: 7px 0;
}

.guide-card.large h3 {
  font-size: 23px;
}

.guide-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.guide-card b {
  color: var(--teal-dark);
  font-size: 11px;
}

.cta-section {
  margin-top: 85px;
  margin-bottom: 85px;
  min-height: 225px;
  padding: 45px 55px;
  border-radius: 20px;
  background: linear-gradient(120deg, #0c3746, #0b605d);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-section:after {
  content: "⌂";
  position: absolute;
  right: 250px;
  color: rgba(255, 255, 255, .045);
  font-size: 220px;
}

.cta-section h2 {
  font-size: 31px;
  margin: 10px 0 5px;
  letter-spacing: -1.4px;
}

.cta-section p {
  color: #bdd1d3;
  font-size: 13px;
}

/* Footer */
.site-footer {
  background: #092530;
  color: white;
  padding-top: 65px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 70px;
  padding-bottom: 50px;
}

.footer-brand p {
  color: #9fb7bb;
  max-width: 320px;
  line-height: 1.7;
  font-size: 12px;
  margin: 20px 0 12px;
}

.footer-brand>a {
  font-size: 12px;
  color: #c6d8da;
}

.social-row {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.social-row a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid #31515a;
  color: #b8cacc;
  font-size: 12px;
}

.footer-group h3 {
  font-size: 13px;
  margin: 3px 0 18px;
}

.footer-group a {
  display: block;
  color: #9fb7bb;
  font-size: 11px;
  margin: 12px 0;
}

.footer-bottom {
  min-height: 63px;
  border-top: 1px solid #29454e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #78969b;
  font-size: 10px;
}

/* Calculator and content pages */
.page-hero,
.tool-hero {
  background: linear-gradient(135deg, #eef8f5, #fff);
  border-bottom: 1px solid var(--line);
}

.page-hero .shell {
  padding: 70px 0;
  max-width: 820px;
  margin-left: max(24px, calc((100vw - 1180px) / 2));
}

.page-hero h1,
.tool-hero h1 {
  color: var(--navy);
  font-size: 45px;
  letter-spacing: -2.2px;
  margin: 9px 0 11px;
}

.page-hero p,
.tool-hero p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 700px;
}

.all-tools {
  padding: 65px 0 90px;
}

.breadcrumbs {
  padding-top: 20px;
  display: flex;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.breadcrumbs b {
  color: var(--navy);
}

.tool-title-row {
  padding: 38px 0 54px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.tool-title-row .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-title-row .eyebrow i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  font-style: normal;
}

.tool-confidence {
  border-left: 3px solid var(--gold);
  padding: 10px 0 10px 14px;
  margin-bottom: 9px;
}

.tool-confidence b,
.tool-confidence span {
  display: block;
}

.tool-confidence b {
  color: var(--navy);
  font-size: 12px;
}

.tool-confidence span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1.45fr .7fr;
  gap: 22px;
  padding: 50px 0 60px;
  align-items: start;
}

.calculator-card,
.formula-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 13px 40px rgba(9, 58, 63, .07);
}

.calculator-card {
  padding: 28px;
}

.calculator-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 26px;
}

.calculator-head span {
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.calculator-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 21px;
}

.calculator-head button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.calc-field>span {
  display: block;
  color: #42565c;
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 7px;
}

.calc-field div {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid #cbdad7;
  border-radius: 9px;
  overflow: hidden;
}

.calc-field input {
  min-width: 0;
  height: 47px;
  border: 0;
  outline: 0;
  padding: 0 13px;
  color: var(--navy);
  font-weight: 800;
  background: white;
}

.calc-field div:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 140, 126, .09);
}

.calc-field em {
  min-width: 58px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  background: var(--mist);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  border-left: 1px solid var(--line);
}

.result-panel {
  margin-top: 25px;
  padding: 23px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--navy), #164f58);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-panel div>span {
  display: block;
  color: #a9cbce;
  font-size: 10px;
  margin-bottom: 5px;
}

.result-panel strong {
  font-size: 33px;
  letter-spacing: -1.4px;
}

.result-panel em {
  color: #8bddd3;
  font-style: normal;
  margin-left: 7px;
  font-size: 12px;
}

.save-result {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: white;
  border-radius: 8px;
  height: 38px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 800;
}

.save-result:disabled {
  cursor: default;
  opacity: .8;
}

.result-save-message {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 7px;
  background: #eaf7f3;
  color: var(--teal-dark);
  font-size: 9px;
}

.estimate-note {
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
  margin: 13px 0 0;
}

.formula-card {
  padding: 27px;
}

.formula-card h2 {
  color: var(--navy);
  font-size: 21px;
  margin: 6px 0 15px;
}

.formula-box {
  padding: 16px;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 800;
}

.formula-card h3 {
  color: var(--navy);
  font-size: 13px;
  margin: 23px 0 7px;
}

.formula-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.formula-card .text-link {
  display: inline-block;
  margin-top: 10px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 65px;
  padding: 45px 0 85px;
  border-top: 1px solid var(--line);
}

.guide-article {
  max-width: 760px;
}

.guide-article h2 {
  color: var(--navy);
  font-size: 27px;
  letter-spacing: -1px;
  margin: 40px 0 12px;
}

.guide-article>.eyebrow+h2 {
  margin-top: 10px;
}

.guide-article p,
.guide-article li {
  color: #53666c;
  font-size: 13px;
  line-height: 1.9;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  margin: 8px 0;
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.reference-table {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin: 20px 0;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
}

.table-row span {
  padding: 13px;
  font-size: 11px;
  color: #52666c;
  border-top: 1px solid var(--line);
}

.table-row span+span {
  border-left: 1px solid var(--line);
}

.table-head {
  background: var(--navy);
}

.table-head span {
  color: white;
  font-weight: 800;
  border: 0;
}

.guide-article details {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 9px 0;
  padding: 15px 17px;
}

.guide-article summary {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.guide-article details p {
  margin-bottom: 0;
}

.article-aside {
  padding-top: 30px;
}

.article-aside>div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.article-aside a {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 14px;
}

.article-aside a:hover {
  color: var(--teal);
}

.expert-note {
  background: var(--gold-soft);
  border-color: #f0d69f !important;
}

.expert-note b {
  color: #8c5f14;
  font-size: 12px;
}

.expert-note p {
  font-size: 10px;
  line-height: 1.6;
  color: #79633d;
}

.related-section {
  background: var(--mist);
  padding: 65px 0 75px;
}

.tool-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.tool-grid.compact .tool-card {
  min-height: 190px;
}

.info-hero .shell {
  margin-inline: auto;
  text-align: center;
}

.info-content {
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 70px;
}

.info-main article {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.info-main article>span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  margin-top: 6px;
}

.info-main h2 {
  color: var(--navy);
  margin: 0 0 9px;
  font-size: 25px;
}

.info-main p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 13px;
}

.contact-panel,
.next-panel {
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 16px;
}

.contact-panel {
  background: var(--navy);
  color: white;
}

.contact-panel h3 {
  font-size: 23px;
  margin: 9px 0;
}

.contact-panel p {
  color: #b9cccf;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 19px;
}

.next-panel {
  border: 1px solid var(--line);
}

.next-panel>b {
  color: var(--navy);
  font-size: 12px;
}

.next-panel a {
  display: block;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  margin-top: 13px;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
}

.auth-benefits {
  background: var(--navy);
  color: white;
  padding: 58px clamp(35px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-benefits:after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
  right: -190px;
  bottom: -70px;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .015);
}

.auth-brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: block;
  width: 170px;
  height: 59px;
  object-fit: contain;
  object-position: left center;
}

.auth-benefits h1 {
  font-size: 42px;
  line-height: 1.17;
  letter-spacing: -2px;
  max-width: 430px;
  margin: 13px 0;
}

.auth-benefits>div>p {
  color: #b5cdd0;
  font-size: 14px;
  line-height: 1.8;
  max-width: 440px;
}

.auth-benefits ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.auth-benefits li {
  position: relative;
  padding-left: 47px;
  margin: 22px 0;
}

.auth-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(95, 205, 190, .13);
  color: #76dacc;
  display: grid;
  place-items: center;
}

.auth-benefits li b,
.auth-benefits li span {
  display: block;
}

.auth-benefits li b {
  font-size: 12px;
}

.auth-benefits li span {
  color: #a7c0c4;
  font-size: 10px;
  margin-top: 3px;
}

.auth-disclaimer {
  color: #718f95;
  font-size: 9px;
  position: relative;
  z-index: 1;
}

.auth-form-side {
  background: #f7faf9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 40px;
}

.back-home {
  position: absolute;
  top: 30px;
  right: 35px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.auth-card {
  width: min(445px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  color: var(--navy);
  font-size: 29px;
  letter-spacing: -1.2px;
  margin: 8px 0;
}

.auth-card>p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 23px;
}

.auth-form>label {
  display: block;
  color: #405359;
  font-size: 10px;
  font-weight: 800;
  margin: 14px 0;
}

.auth-form input:not([type=checkbox]) {
  width: 100%;
  height: 46px;
  border: 1px solid #cad9d6;
  border-radius: 8px;
  padding: 0 12px;
  margin-top: 6px;
  outline: 0;
  font-size: 12px;
}

.auth-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 140, 126, .08);
}

.form-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.form-between a,
.check-control a {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.check-control {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-size: 9px !important;
  line-height: 1.5;
}

.auth-switch {
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 19px;
  color: var(--muted);
  font-size: 10px;
}

.auth-switch a {
  color: var(--teal);
  font-weight: 850;
}

.secure-note {
  position: absolute;
  bottom: 28px;
  color: #73858a;
  font-size: 9px;
}

.success-state {
  text-align: center;
  padding: 10px 0;
}

.success-state>span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 24px;
}

.success-state h3 {
  color: var(--navy);
}

.success-state p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Panels */
.panel-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px 1fr;
  background: #f4f7f6;
}

.panel-sidebar {
  background: var(--navy-dark);
  color: white;
  padding: 26px 17px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
}

.panel-logo {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.panel-logo-compact {
  display: none;
}

.role-badge {
  align-self: start;
  margin: 18px 8px 26px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  color: #8fb4b8;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.panel-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-sidebar nav button {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #9ab5b9;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.panel-sidebar nav button i {
  width: 20px;
  color: #73989e;
  font-style: normal;
  font-size: 14px;
}

.panel-sidebar nav button.active {
  color: white;
  background: var(--teal);
}

.panel-sidebar nav button.active i {
  color: white;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #294651;
  padding-top: 18px;
}

.mini-profile {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-profile>span,
.mini-profile>img,
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--teal);
  display: grid;
  place-items: center;
  color: white;
  font-size: 9px;
  font-weight: 900;
  object-fit: cover;
}

.avatar-photo {
  display: block;
}

.mini-profile b,
.mini-profile em {
  display: block;
}

.mini-profile b {
  font-size: 9px;
}

.mini-profile em {
  color: #77989e;
  font-size: 8px;
  font-style: normal;
}

.sidebar-bottom>a {
  color: #78969b;
  font-size: 9px;
  display: block;
  margin: 18px 4px 0;
}

.panel-main {
  min-width: 0;
}

.panel-top {
  min-height: 95px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 18px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-top h1 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -.8px;
}

.panel-top p {
  color: var(--muted);
  font-size: 9px;
  margin: 5px 0 0;
}

.mobile-role {
  display: none;
}

.panel-top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.panel-top-actions button {
  width: 33px;
  height: 33px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.panel-top-actions button i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #e14d4d;
  border-radius: 50%;
  top: 5px;
  right: 5px;
}

.panel-content {
  padding: 27px 33px 55px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 18px;
}

.stat-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  min-height: 115px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.stat-icon.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.stat-icon.gold {
  background: var(--gold-soft);
  color: #c08020;
}

.stat-icon.blue {
  background: #e9f1fb;
  color: #4275b7;
}

.stat-icon.red {
  background: #fbeeed;
  color: #c45d56;
}

.stat-card em,
.stat-card b,
.stat-card small {
  display: block;
  font-style: normal;
}

.stat-card em {
  color: var(--muted);
  font-size: 9px;
}

.stat-card b {
  color: var(--navy);
  font-size: 22px;
  margin: 2px 0;
}

.stat-card small {
  color: #829196;
  font-size: 8px;
}

.stat-card small.positive {
  color: var(--teal);
}

.panel-two-column {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 17px;
}

.panel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 17px;
}

.card-heading h2 {
  color: var(--navy);
  font-size: 14px;
  margin: 0;
}

.card-heading p {
  color: var(--muted);
  font-size: 8px;
  margin: 4px 0 0;
}

.card-heading a,
.card-heading>button:not(.button) {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}

.activity-list>div {
  min-height: 59px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #edf1f0;
}

.activity-list>div>span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
}

.activity-list b,
.activity-list em {
  display: block;
}

.activity-list b {
  color: var(--navy);
  font-size: 9px;
}

.activity-list em {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  margin-top: 3px;
}

.activity-list strong {
  color: var(--navy);
  font-size: 11px;
}

.activity-list small {
  color: var(--muted);
  font-weight: 500;
}

.project-progress .card-heading>span {
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
}

.progress-track {
  height: 6px;
  border-radius: 9px;
  background: #e7efed;
  overflow: hidden;
}

.progress-track i {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--teal);
}

.project-progress ul {
  list-style: none;
  padding: 8px 0;
}

.project-progress li {
  font-size: 9px;
  color: var(--muted);
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.project-progress li:before {
  content: "○";
  position: absolute;
  left: 0;
}

.project-progress li.done {
  color: var(--navy);
}

.project-progress li.done:before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

.quick-tools {
  margin-top: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
}

.quick-tools>div:last-child {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.quick-tools>div:last-child a {
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
}

.quick-tools>div:last-child span {
  color: var(--teal);
  font-size: 16px;
}

/* Editor */
.editor-workspace {
  padding: 22px 30px 55px;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.editor-toolbar>div:first-child {
  background: #e9efed;
  border-radius: 8px;
  padding: 3px;
}

.editor-toolbar>div:first-child button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}

.editor-toolbar>div:first-child button.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
}

.editor-toolbar>div:last-child {
  display: flex;
  gap: 7px;
}

.editor-notice {
  background: #e8f6f1;
  color: var(--teal-dark);
  border: 1px solid #b8ded5;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 9px;
  margin-bottom: 13px;
}

.editor-notice button {
  float: right;
  border: 0;
  background: transparent;
  color: inherit;
}

.editor-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 15px;
  align-items: start;
}

.seo-card {
  margin-bottom: 14px;
}

.seo-score {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 8px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.form-grid label,
.editor-aside label {
  color: #43565c;
  font-size: 8px;
  font-weight: 800;
}

.form-grid .full {
  grid-column: 1 / 3;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.editor-aside input,
.editor-aside select {
  width: 100%;
  border: 1px solid #cedbd9;
  border-radius: 7px;
  padding: 9px 10px;
  margin-top: 5px;
  color: var(--navy);
  font-size: 9px;
  outline: 0;
  background: white;
}

.form-grid textarea {
  min-height: 62px;
  resize: vertical;
}

.form-grid small {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 7px;
  margin-top: 3px;
}

.block-add-bar {
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 11px;
}

.block-add-bar span {
  font-size: 8px;
  font-weight: 800;
  margin-right: auto;
}

.block-add-bar button,
.block-add-bar label {
  height: 29px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: white;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 750;
  cursor: pointer;
}

.block-add-bar input,
.image-drop input {
  display: none;
}

.content-block {
  display: grid;
  grid-template-columns: 20px 24px 1fr 20px;
  gap: 8px;
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 10px;
  margin-bottom: 9px;
}

.content-block:hover {
  border-color: #a9cac4;
}

.drag-handle,
.delete-block {
  border: 0;
  background: transparent;
  color: #9babad;
  padding: 1px;
}

.drag-handle {
  cursor: grab;
}

.delete-block:hover {
  color: #c54e48;
}

.block-number {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 900;
}

.block-fields>span {
  color: var(--teal);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .5px;
}

.block-fields input,
.block-fields textarea {
  width: 100%;
  border: 1px solid #d7e1df;
  border-radius: 6px;
  margin-top: 5px;
  padding: 9px;
  color: var(--navy);
  font-size: 9px;
}

.block-fields input {
  font-weight: 800;
}

.block-fields textarea {
  resize: vertical;
  line-height: 1.5;
}

.editor-aside {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.editor-aside h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 12px;
}

.editor-aside label {
  display: block;
  margin-top: 10px;
}

.checklist p {
  color: var(--muted);
  font-size: 8px;
  padding-left: 16px;
  position: relative;
}

.checklist p:before {
  content: "○";
  position: absolute;
  left: 0;
}

.checklist p.done {
  color: var(--navy);
}

.checklist p.done:before {
  content: "✓";
  color: var(--teal);
}

.image-drop {
  min-height: 95px;
  border: 1px dashed #a9c7c1;
  border-radius: 8px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--teal) !important;
  background: #f6fbf9;
  cursor: pointer;
}

.image-drop b {
  color: var(--navy);
  margin: 6px 0 2px;
}

.image-drop small {
  color: var(--muted);
  font-size: 7px;
}

.content-preview {
  max-width: 820px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 50px 65px;
}

.content-preview h1 {
  color: var(--navy);
  font-size: 34px;
  letter-spacing: -1.4px;
}

.content-preview h2 {
  color: var(--navy);
  margin-top: 35px;
}

.content-preview p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.content-preview .preview-lead {
  font-size: 15px;
}

.content-preview pre,
.preview-image {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--navy);
  white-space: pre-wrap;
  font-size: 11px;
}

/* Admin */
.admin-grid {
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 15px;
  margin-bottom: 15px;
}

.traffic-card {
  min-height: 265px;
}

.card-heading select {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 8px;
  padding: 5px;
}

.chart-bars {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 11px;
  padding: 15px 8px 0;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(#edf2f1 1px, transparent 1px);
  background-size: 100% 45px;
}

.chart-bars>div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 7px;
}

.chart-bars i {
  width: min(30px, 70%);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(var(--teal), #39b9a9);
}

.chart-bars span {
  color: var(--muted);
  font-size: 7px;
}

.online {
  color: var(--teal);
  font-size: 8px;
  font-weight: 850;
}

.system-card>div:not(.card-heading) {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf2f1;
  color: var(--muted);
  font-size: 8px;
}

.system-card>div b {
  color: var(--navy);
}

.system-card .button {
  margin-top: 13px;
}

.user-table-card {
  padding: 0;
  overflow: hidden;
}

.user-table-card>.card-heading {
  padding: 20px 20px 0;
}

.table-tools {
  display: flex;
  gap: 7px;
  padding: 0 20px 13px;
}

.table-tools input,
.table-tools select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 8px;
  color: var(--navy);
}

.table-tools input {
  flex: 1;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 2fr .7fr .7fr .7fr 1.45fr;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border-top: 1px solid #edf2f1;
  color: var(--muted);
  font-size: 8px;
}

.admin-table-row.head {
  min-height: 31px;
  background: #f7f9f9;
  color: #7a8a8e;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 850;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-cell>i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.user-cell>img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 7px;
}

.user-cell b,
.user-cell em {
  display: block;
}

.user-cell b {
  color: var(--navy);
  font-size: 8px;
}

.user-cell em {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  margin-top: 2px;
  font-weight: 500;
}

.role-chip,
.status-chip {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 7px;
}

.role-chip.admin {
  background: #e8eff7;
  color: #466d9f;
}

.role-chip.editor {
  background: var(--gold-soft);
  color: #976318;
}

.role-chip.member {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.status-chip.active {
  color: var(--teal);
}

.status-chip.suspended {
  color: #bf4b49;
}

.user-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-table-row .user-actions button {
  border: 1px solid var(--line);
  background: white;
  color: var(--teal-dark);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 7px;
  font-weight: 800;
}

.admin-table-row .user-actions button.danger {
  color: #b84640;
}

.admin-table-row .user-actions button:disabled {
  color: #aab5b7;
  cursor: not-allowed;
}

.table-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
}

.admin-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 29, 39, .7);
}

.admin-user-form {
  width: min(520px, 100%);
  padding: 26px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
}

.admin-user-form>label,
.profile-form-card label {
  display: block;
  color: #43565c;
  font-size: 9px;
  font-weight: 800;
  margin: 12px 0;
}

.admin-user-form input,
.admin-user-form select,
.profile-form-card input {
  width: 100%;
  border: 1px solid #cedbd9;
  border-radius: 7px;
  padding: 10px;
  margin-top: 5px;
  color: var(--navy);
  background: white;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* Multi-unit calculator controls */
.unit-support-note {
  margin: -2px 0 18px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f1f8f6;
  border: 1px solid #d2e7e2;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.unit-support-note b {
  color: var(--teal-dark);
}

.calc-field>div.has-unit-select {
  padding-right: 0;
}

.calc-field>div.has-unit-select input {
  min-width: 0;
}

.calc-field>div.has-unit-select select {
  width: 142px;
  height: 100%;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f7faf9;
  color: var(--navy);
  padding: 0 9px;
  font-size: 9px;
  font-weight: 750;
  outline: 0;
}

/* Shared long-form sections */
.long-article-section {
  padding-top: 75px;
  padding-bottom: 85px;
}

.long-article-section>h2 {
  max-width: 820px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin: 13px 0 38px;
}

.long-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.long-copy-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: white;
}

.long-copy-grid h3 {
  color: var(--navy);
  font-size: 18px;
  margin: 0 0 13px;
}

.long-copy-grid p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 0 0 12px;
}

.long-copy-grid p:last-child {
  margin-bottom: 0;
}

/* Home long-form article */
.home-long-article {
  padding-top: 90px;
  padding-bottom: 35px;
}

.home-article-copy {
  max-width: 940px;
  margin: 40px auto 0;
}

.home-article-copy article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.home-article-copy article>span {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.home-article-copy h3 {
  color: var(--navy);
  font-size: 21px;
  margin: 0 0 12px;
}

.home-article-copy p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 0 0 10px;
}

.home-article-cta {
  max-width: 940px;
  margin: 20px auto 0;
  padding: 25px 28px;
  border-radius: 14px;
  background: var(--mist);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.home-article-cta b {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.home-article-cta p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

/* Blog */
.blog-hero {
  background: linear-gradient(135deg, #eef8f5, #fffaf0);
}

.blog-index {
  padding-top: 45px;
  padding-bottom: 70px;
}

.api-banner {
  background: #fff9e9;
  color: #7b611d;
  border: 1px solid #ead79b;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 9px;
  margin-bottom: 18px;
}

.blog-tools {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
  margin-bottom: 25px;
}

.blog-tools input,
.blog-tools select,
.admin-search {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 0 13px;
  color: var(--navy);
  font-size: 10px;
  outline: 0;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 52, 55, .09);
}

.blog-card-art {
  min-height: 190px;
  display: grid;
  place-items: center;
  background-color: var(--mist);
  background-position: center;
  background-size: cover;
  color: var(--teal);
}

.blog-card-art span {
  font-size: 44px;
  font-weight: 900;
}

.blog-card-copy {
  padding: 23px;
}

.blog-card-copy>span {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 7px;
  font-weight: 900;
}

.blog-card-copy h2 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
  margin: 10px 0;
}

.blog-card-copy h2 a {
  color: inherit;
}

.blog-card-copy p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  min-height: 50px;
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.article-hero {
  padding: 55px 0 65px;
  background: linear-gradient(135deg, #f1f9f7, #fff);
}

.article-hero .breadcrumbs {
  margin-bottom: 42px;
}

.article-hero h1 {
  max-width: 900px;
  color: var(--navy);
  font-size: clamp(38px, 5vw, 61px);
  letter-spacing: -2.8px;
  line-height: 1.02;
  margin: 14px 0 20px;
}

.article-hero>.shell>p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 25px;
  color: #6d8587;
  font-size: 9px;
  font-weight: 750;
}

.blog-article {
  max-width: 850px;
  padding-top: 65px;
  padding-bottom: 90px;
}

.article-cover {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 38px;
}

.blog-article .article-lead {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.75;
}

.blog-article section {
  margin-top: 42px;
}

.blog-article h2 {
  color: var(--navy);
  font-size: 28px;
  letter-spacing: -1px;
}

.blog-article p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.professional-note {
  margin-top: 48px;
  padding: 22px;
  border-radius: 10px;
  background: #fff8e7;
  border: 1px solid #ebdaa8;
  color: #715d27;
  font-size: 11px;
  line-height: 1.7;
}

.article-loading {
  min-height: 60vh;
  padding-top: 80px;
  padding-bottom: 80px;
}

.blog-editorial-guide {
  border-top: 1px solid var(--line);
}

/* Pricing */
.pricing-hero {
  text-align: center;
}

.pricing-hero .shell p {
  margin-inline: auto;
}

.pricing-section {
  padding-top: 55px;
  padding-bottom: 45px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 31px 27px 27px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.pricing-card.featured {
  border: 2px solid var(--teal);
  box-shadow: 0 18px 50px rgba(17, 113, 100, .12);
}

.popular-label {
  position: absolute;
  top: -13px;
  right: 22px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  padding: 7px 11px;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .5px;
}

.plan-name {
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
}

.pricing-card>p {
  color: var(--muted);
  font-size: 10px;
  min-height: 25px;
}

.plan-price {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 20px 0;
}

.plan-price b {
  color: var(--navy);
  font-size: 42px;
  letter-spacing: -2px;
}

.plan-price span {
  color: var(--muted);
  font-size: 9px;
  padding-bottom: 9px;
}

.pricing-card ul {
  list-style: none;
  padding: 17px 0 20px;
  border-top: 1px solid var(--line);
}

.pricing-card li {
  color: #4f6669;
  font-size: 10px;
  margin: 12px 0;
}

.pricing-card li::first-letter {
  color: var(--teal);
}

.pricing-fineprint {
  max-width: 850px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.pricing-notice {
  margin-bottom: 25px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 22px;
  padding-top: 55px;
  padding-bottom: 45px;
}

.contact-form {
  padding: 30px;
}

.contact-form>h2 {
  color: var(--navy);
  font-size: 27px;
  margin: 0 0 5px;
}

.contact-form>p {
  color: var(--muted);
  font-size: 10px;
}

.contact-form .form-grid {
  margin: 25px 0 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}

.contact-details span {
  display: block;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.contact-details a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
  word-break: break-word;
}

.contact-details p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Authentication and protected panels */
.form-alert {
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 9px;
  line-height: 1.55;
  margin: 13px 0;
}

.form-alert.error {
  background: #fff0ef;
  color: #a43d38;
  border: 1px solid #efc1bd;
}

.form-alert.success {
  background: #eaf7f3;
  color: var(--teal-dark);
  border: 1px solid #bce0d6;
}

.demo-credentials {
  margin-top: 17px;
  padding: 13px;
  border-radius: 8px;
  background: #f5f8f7;
  border: 1px solid var(--line);
}

.demo-credentials b,
.demo-credentials span {
  display: block;
}

.demo-credentials b {
  color: var(--navy);
  font-size: 9px;
  margin-bottom: 7px;
}

.demo-credentials span {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.8;
  word-break: break-word;
}

.panel-access {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: var(--mist);
}

.panel-access>div {
  max-width: 430px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 45px;
}

.access-logo {
  display: block;
  width: 210px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  margin: 0 auto 22px;
}

.panel-access h1 {
  color: var(--navy);
  font-size: 27px;
}

.panel-access p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.panel-access .button,
.panel-access .text-link {
  display: block;
  margin-top: 14px;
}

.panel-sidebar nav a {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9bacb0;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
}

.panel-sidebar nav a i {
  width: 18px;
  color: #7f9296;
  font-size: 12px;
  font-style: normal;
}

.panel-sidebar nav a.active,
.panel-sidebar nav a:hover {
  background: rgba(35, 174, 151, .12);
  color: white;
}

.panel-sidebar nav a.active i,
.panel-sidebar nav a:hover i {
  color: #51d6bd;
}

.sidebar-bottom>button {
  border: 0;
  background: transparent;
  color: #91a2a6;
  font-size: 8px;
  padding: 8px 0;
  text-align: left;
  cursor: pointer;
}

.view-site-link {
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
}

.admin-header-link {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 850;
}

.admin-shortcuts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  color: white;
  border-radius: 11px;
  padding: 19px 21px;
  margin-bottom: 18px;
}

.admin-shortcuts b,
.admin-shortcuts span {
  display: block;
}

.admin-shortcuts b {
  font-size: 13px;
}

.admin-shortcuts span {
  margin-top: 5px;
  color: #aebfc2;
  font-size: 8px;
}

/* Blog administration */
.blog-admin-grid {
  display: grid;
  grid-template-columns: minmax(330px, .75fr) minmax(430px, 1.25fr);
  gap: 16px;
  align-items: start;
}

.blog-post-list {
  padding: 20px;
  position: sticky;
  top: 15px;
}

.admin-search {
  width: 100%;
  margin-bottom: 12px;
}

.post-list {
  max-height: 720px;
  overflow: auto;
}

.post-list article {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 2px;
  border-top: 1px solid #edf2f1;
}

.post-list h3 {
  color: var(--navy);
  font-size: 11px;
  line-height: 1.4;
  margin: 8px 0 4px;
}

.post-list p {
  color: var(--muted);
  font-size: 7px;
  margin: 0;
  word-break: break-word;
}

.post-list article>div:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-list button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  color: var(--teal-dark);
  font-size: 7px;
  padding: 5px 8px;
}

.post-list button.danger {
  color: #bd4842;
}

.blog-editor-form {
  padding: 24px;
}

.blog-editor-form>label,
.image-control>label {
  display: block;
  color: #43565c;
  font-size: 8px;
  font-weight: 800;
  margin: 12px 0;
}

.blog-editor-form input,
.blog-editor-form textarea,
.blog-editor-form select {
  width: 100%;
  border: 1px solid #cedbd9;
  border-radius: 7px;
  padding: 10px;
  margin-top: 5px;
  color: var(--navy);
  font-size: 9px;
  background: white;
  outline: 0;
}

.blog-editor-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.blog-editor-form small {
  float: right;
  color: var(--muted);
  font-size: 7px;
  margin-top: 3px;
}

.image-control {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
}

.image-control img {
  width: 120px;
  height: 75px;
  border-radius: 7px;
  object-fit: cover;
}

.block-builder {
  margin: 18px 0;
}

.block-empty {
  min-height: 110px;
  border: 1px dashed #b8cfca;
  border-radius: 9px;
  display: grid;
  place-content: center;
  text-align: center;
  background: #f8fbfa;
}

.block-empty b,
.block-empty span {
  display: block;
}

.block-empty b {
  color: var(--navy);
  font-size: 10px;
}

.block-empty span {
  color: var(--muted);
  font-size: 8px;
  margin-top: 5px;
}

.blog-content-block {
  margin-top: 10px;
  box-shadow: 0 5px 16px rgba(15, 52, 55, .04);
}

.blog-content-block:active {
  cursor: grabbing;
}

.table-block-editor {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfa;
  overflow-x: auto;
}

.table-block-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.table-block-actions button {
  border: 1px solid #bdd4cf;
  background: white;
  color: var(--teal-dark);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 7px;
  font-weight: 800;
}

.table-block-actions button:disabled {
  color: #9dabad;
  cursor: not-allowed;
}

.table-input-grid {
  display: grid;
  gap: 5px;
  min-width: max-content;
}

.table-input-grid>input,
.table-cell-input {
  min-width: 120px;
  margin: 0;
}

.table-input-grid .table-heading-input {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  font-weight: 800;
}

.table-cell-input {
  position: relative;
}

.table-cell-input input {
  margin: 0;
  padding-right: 24px;
}

.table-cell-input button {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #be4a44;
  background: transparent;
}

/* Member dashboard and profile */
.member-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.member-guides-card {
  grid-column: 1 / 3;
}

.member-data-card {
  min-width: 0;
}

.member-record-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #edf2f1;
}

.member-record-list article>span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
}

.member-record-list b,
.member-record-list em {
  display: block;
}

.member-record-list b {
  color: var(--navy);
  font-size: 9px;
}

.member-record-list em {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  text-transform: capitalize;
  margin-top: 3px;
}

.member-record-list p {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.record-actions {
  display: flex;
  gap: 5px;
}

.record-actions button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--teal-dark);
  padding: 5px 7px;
  font-size: 7px;
  font-weight: 800;
}

.record-actions button.danger {
  color: #b84640;
}

.member-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 20px;
  border: 1px dashed #c6d8d4;
  border-radius: 9px;
  background: #f9fbfb;
}

.member-empty.compact {
  min-height: 110px;
}

.member-empty b {
  color: var(--navy);
  font-size: 11px;
}

.member-empty p {
  max-width: 320px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.project-add-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
  margin-bottom: 12px;
}

.project-add-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  color: var(--navy);
  font-size: 8px;
}

.project-add-form .button {
  min-height: 36px;
  font-size: 8px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 17px;
  align-items: start;
}

.profile-photo-card {
  grid-row: span 2;
  text-align: center;
}

.profile-photo-card h2,
.profile-form-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.profile-photo-card p,
.profile-form-card>p {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.profile-photo-preview {
  width: 140px;
  height: 140px;
  margin: 24px auto 14px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--teal-soft);
}

.profile-photo-preview img,
.profile-photo-preview span {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 40px;
  font-weight: 900;
}

.profile-photo-card label {
  margin-top: 10px;
}

.profile-photo-card input {
  display: none;
}

.profile-form-card small {
  color: var(--muted);
  font-size: 7px;
}

.profile-form-card input:disabled {
  background: #f3f6f5;
  color: #879396;
}

/* Structured public articles */
.article-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
}

.article-save-row span {
  color: var(--teal-dark);
  font-size: 9px;
}

.article-data-table-wrap {
  overflow-x: auto;
  margin: 18px 0 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.article-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.article-data-table th,
.article-data-table td {
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  line-height: 1.5;
}

.article-data-table th {
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.article-data-table td {
  color: var(--muted);
}

.article-data-table tr:last-child td {
  border-bottom: 0;
}

.article-data-table th:last-child,
.article-data-table td:last-child {
  border-right: 0;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 17px;
  }

  .main-nav>a,
  .mega-trigger>button {
    font-size: 11px;
  }

  .header-actions .button-ghost {
    display: none;
  }

  .hero-grid {
    gap: 20px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .chip-one {
    left: 0;
  }

  .chip-two {
    right: 0;
  }

  .stat-grid.four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 680px);
  }

  .trust-contact,
  .header-actions {
    display: none;
  }

  .site-header {
    height: 68px;
  }

  .mobile-menu-button {
    display: flex;
    margin-left: auto;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
  }

  .mobile-menu-button span {
    width: 21px;
    height: 2px;
    background: var(--navy);
  }

  .main-nav {
    position: absolute;
    display: none;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav>a,
  .mega-trigger>button {
    display: block;
    width: 100%;
    padding: 12px 5px;
    text-align: left;
  }

  .main-nav .mobile-account-link {
    display: block;
    color: var(--teal);
  }

  .mega-menu {
    position: static;
    display: none;
    width: 100%;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 10px;
    grid-template-columns: 1fr;
  }

  .mega-menu.is-open {
    display: grid;
  }

  .mega-intro {
    display: none;
  }

  .mega-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .promise-grid,
  .calculator-layout,
  .content-layout,
  .info-content {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: initial;
  }

  .hero-grid {
    padding: 55px 0 35px;
  }

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

  .hero-copy>p {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    min-height: 465px;
    max-width: 540px;
    width: 100%;
    margin: auto;
  }

  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .promise-grid {
    padding: 65px 0;
    gap: 35px;
  }

  .steps-grid {
    gap: 30px;
  }

  .steps-grid>div:not(:last-child):after {
    display: none;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .guide-card.large {
    grid-row: auto;
  }

  .cta-section {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
  }

  .footer-brand {
    grid-column: 1 / 4;
  }

  .tool-title-row {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .content-layout {
    gap: 15px;
  }

  .article-aside {
    display: none;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-benefits {
    min-height: 350px;
  }

  .auth-benefits ul,
  .auth-disclaimer {
    display: none;
  }

  .auth-form-side {
    min-height: 700px;
  }

  .panel-layout {
    grid-template-columns: 70px 1fr;
  }

  .panel-sidebar {
    padding: 18px 10px;
  }

  .role-badge,
  .panel-sidebar nav button:not(.active) {
    font-size: 0;
  }

  .panel-brand {
    padding: 0;
  }

  .panel-logo-full {
    display: none;
  }

  .panel-logo-compact {
    display: block;
    width: 50px;
    height: 50px;
  }

  .panel-sidebar nav button {
    justify-content: center;
    padding: 0;
  }

  .panel-sidebar nav button i {
    width: auto;
    font-size: 15px;
  }

  .mini-profile div,
  .sidebar-bottom>a {
    display: none;
  }

  .panel-two-column,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .member-dashboard-grid,
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .member-guides-card {
    grid-column: auto;
  }

  .profile-photo-card {
    grid-row: auto;
  }

  .editor-columns {
    grid-template-columns: 1fr;
  }

  .editor-aside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 500px);
  }

  .hero-copy h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }

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

  .hero-trust div {
    min-width: auto;
    padding: 0 12px;
  }

  .hero-visual {
    min-height: 390px;
    transform: scale(.83);
    margin-top: -35px;
    margin-bottom: -35px;
  }

  .house-card {
    left: 50%;
  }

  .chip-one {
    left: -45px;
  }

  .chip-two {
    right: -45px;
  }

  .tool-grid,
  .tool-grid.compact {
    grid-template-columns: 1fr;
  }

  .calculator-showcase,
  .how-section {
    padding: 65px 0;
  }

  .content-ratio {
    grid-template-columns: 1fr;
  }

  .content-ratio .ratio-main {
    grid-column: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-columns: 95px 1fr;
  }

  .guide-card.large {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 35px 25px;
    margin-top: 55px;
    margin-bottom: 55px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / 3;
  }

  .footer-group:last-child {
    grid-column: 1 / 3;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .page-hero h1,
  .tool-hero h1 {
    font-size: 36px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span+span {
    border-left: 0;
  }

  .info-content {
    padding-top: 40px;
  }

  .auth-benefits {
    padding: 40px 25px;
  }

  .auth-benefits h1 {
    font-size: 31px;
  }

  .auth-form-side {
    padding: 70px 16px;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .panel-layout {
    display: block;
  }

  .panel-sidebar {
    position: static;
    height: auto;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .panel-sidebar nav {
    flex-direction: row;
    margin-left: auto;
  }

  .panel-sidebar nav button:nth-child(n+4),
  .role-badge,
  .sidebar-bottom {
    display: none;
  }

  .panel-top {
    padding: 17px 16px;
  }

  .panel-top h1 {
    font-size: 17px;
  }

  .panel-top p {
    display: none;
  }

  .mobile-role {
    display: block;
    font-size: 7px;
    color: var(--teal);
    text-transform: uppercase;
    font-weight: 900;
  }

  .panel-content,
  .editor-workspace {
    padding: 16px 12px 40px;
  }

  .stat-grid,
  .stat-grid.four {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    min-width: 0;
    padding: 12px;
  }

  .stat-icon {
    display: none;
  }

  .quick-tools>div:last-child {
    grid-template-columns: 1fr 1fr;
  }

  .editor-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .editor-toolbar>div:last-child {
    justify-content: flex-end;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .block-add-bar {
    flex-wrap: wrap;
  }

  .block-add-bar span {
    width: 100%;
  }

  .editor-aside {
    grid-template-columns: 1fr;
  }

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

  .admin-table-row {
    min-width: 650px;
  }
}

@media (max-width: 1050px) {
  .blog-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-admin-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-list {
    position: static;
  }
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .pricing-card.featured {
    order: -1;
  }

  .long-copy-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .panel-sidebar nav a:not(.active) {
    font-size: 0;
  }

  .panel-sidebar nav a {
    justify-content: center;
    padding: 0;
  }

  .panel-sidebar nav a i {
    width: auto;
    font-size: 15px;
  }

  .blog-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .calc-field>div.has-unit-select {
    align-items: stretch;
  }

  .calc-field>div.has-unit-select select {
    width: 126px;
    font-size: 8px;
  }

  .blog-tools,
  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-art {
    min-height: 170px;
  }

  .long-article-section {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .long-copy-grid article {
    padding: 22px;
  }

  .home-article-copy article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-article-cta,
  .admin-shortcuts {
    align-items: stretch;
    flex-direction: column;
  }

  .article-meta {
    flex-direction: column;
    gap: 7px;
  }

  .blog-article .article-lead {
    font-size: 15px;
  }

  .contact-form {
    padding: 22px 16px;
  }

  .panel-sidebar nav a:nth-child(n+4) {
    display: none;
  }

  .image-control {
    grid-template-columns: 1fr;
  }

  .post-list article {
    flex-direction: column;
  }

  .post-list article>div:last-child {
    flex-direction: row;
  }

  .project-add-form {
    grid-template-columns: 1fr;
  }

  .member-record-list article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .record-actions {
    grid-column: 2;
  }

  .article-save-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 2026 calculator toolkit expansion */
.mega-menu {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: min(980px, calc(100vw - 40px));
  max-height: min(80vh, 720px);
  overflow: hidden;
}

.mega-menu-head {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 24px;
  padding-bottom: 17px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mega-menu-head>div {
  display: grid;
  gap: 5px;
}

.mega-menu-head strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.mega-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
}

.mega-category {
  --category-color: #087f73;
  min-width: 0;
  padding: 2px 12px 15px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mega-category:nth-child(2) {
  --category-color: #1d62a8;
}

.mega-category:nth-child(3) {
  --category-color: #b05b08;
}

.mega-category:nth-child(4) {
  --category-color: #7048a8;
}

.mega-category:nth-child(5) {
  --category-color: #b13d50;
}

.mega-category:nth-child(6) {
  --category-color: #247448;
}

.mega-category:nth-child(7) {
  --category-color: #986b00;
}

.mega-category:nth-child(8) {
  --category-color: #0b7285;
}

.mega-category:nth-child(9) {
  --category-color: #4d5d9b;
}

.mega-category h4 {
  margin: 0 0 9px;
  padding-bottom: 7px;
  border-bottom: 2px solid currentColor;
  color: var(--category-color);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .02em;
}

.mega-category-links {
  display: grid;
  gap: 3px;
}

.mega-category .mega-tool {
  min-height: 39px;
  padding: 5px 6px;
}

.mega-category .mega-tool span {
  flex: 0 0 28px;
}

.mega-grid .mega-tool.is-extra,
.mega-grid .mega-category.is-extra-only {
  display: none;
}

.mega-grid.show-all .mega-tool.is-extra {
  display: flex;
}

.mega-grid.show-all .mega-category.is-extra-only {
  display: block;
}

.mega-grid a span i,
.tool-icon i {
  font-size: 14px;
  line-height: 1;
}

.mega-menu-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 17px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.mega-view-all:hover,
.mega-view-all:focus-visible {
  color: var(--teal);
}

.mega-view-all span {
  font-size: 16px;
  transition: transform .2s ease;
}

.mega-view-all:hover span,
.mega-view-all:focus-visible span {
  transform: translateX(3px);
}

.mega-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #aed6cf;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.mega-more-button:hover,
.mega-more-button:focus-visible {
  border-color: var(--teal);
  background: #d7f3ee;
}

.mega-more-button i {
  transition: transform .2s ease;
}

.mega-more-button[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.tool-card .tool-icon+h2,
.tool-card .tool-icon+h3 {
  margin-top: 17px;
}

.home-tool-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 14px 16px;
  border: 1px solid #cfe3df;
  border-radius: 13px;
  background: #f4fbf9;
}

.home-tool-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.home-tool-filter-label i {
  color: var(--teal);
}

.home-tool-filter-bar {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  padding-bottom: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-tool-filter-bar button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #c8ddd9;
  border-radius: 999px;
  background: white;
  color: #40545a;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: .2s ease;
}

.home-tool-filter-bar button:hover,
.home-tool-filter-bar button:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.home-tool-filter-bar button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 6px 16px rgba(16, 140, 125, .18);
}

.home-tool-filter-count {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.free-use-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  margin: 10px 0 12px;
  padding: 8px 12px;
  border: 1px solid #b8ddd6;
  border-radius: 999px;
  background: #eaf8f5;
  color: #35585a;
  font-size: 14px;
  line-height: 1.35;
}

.free-use-note i,
.free-use-note b {
  color: var(--teal-dark);
}

.free-use-note span {
  color: #92aaa8;
}

.tool-card h2,
.tool-card h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.tool-card.featured h2,
.tool-card.featured h3,
.tool-card.featured b {
  color: white;
}

.formula-card .example-heading {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 17px;
}

.seo-guide-section {
  scroll-margin-top: 110px;
}

.cost-guide-box {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #cce2dc;
  border-radius: 11px;
  background: var(--teal-soft);
}

.cost-guide-box b {
  color: var(--teal-dark);
  font-size: 12px;
}

.cost-guide-box p {
  margin: 7px 0 0;
}

.footer-grid {
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 45px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .mega-menu {
    width: 100%;
    max-height: 68vh;
    overflow: auto;
  }

  .mega-menu-head {
    align-items: flex-start;
  }

  .mega-menu-head strong {
    font-size: 16px;
  }

  .mega-grid {
    grid-template-columns: 1fr 1fr;
    max-height: none;
    overflow: visible;
  }

  .home-tool-filter {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .home-tool-filter-bar {
    width: 100%;
  }

  .home-tool-filter-count {
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / 3;
  }

  .footer-group:last-child {
    grid-column: 1 / 3;
  }
}

@media (max-width: 460px) {
  .mega-grid {
    grid-template-columns: 1fr;
  }

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

  .table-row {
    min-width: 620px;
  }
}

/* Reliable touch navigation and an independently scrollable mobile mega menu. */
@media (max-width: 820px) {
  .main-nav {
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mega-trigger {
    position: static;
  }

  .mega-trigger>button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    touch-action: manipulation;
  }

  .mega-trigger>button span {
    transition: transform .2s ease;
  }

  .mega-trigger>button[aria-expanded="true"] span {
    transform: rotate(180deg);
  }

  .mega-menu {
    height: min(68vh, 620px);
    height: min(68dvh, 620px);
    max-height: min(68vh, 620px);
    max-height: min(68dvh, 620px);
    overflow: hidden;
    border-radius: 13px;
  }

  .mega-grid {
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .mega-menu-actions {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: 10px;
    padding-top: 12px;
    background: #fff;
  }

  .mega-view-all,
  .mega-more-button {
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 460px) {
  .mega-menu {
    height: min(72vh, 620px);
    height: min(72dvh, 620px);
    max-height: min(72vh, 620px);
    max-height: min(72dvh, 620px);
  }

  .mega-menu-actions {
    gap: 10px;
  }

  .mega-more-button {
    padding-inline: 13px;
  }
}
