:root {
  --navy: #17395f;
  --navy-deep: #0d2743;
  --green: #167452;
  --green-soft: #e7f1ec;
  --paper: #efe5d6;
  --paper-light: #f7f2e9;
  --ink: #17212b;
  --muted: #697684;
  --line: #dfe4e7;
  --surface: #ffffff;
  --background: #f4f3ef;
  --shadow: 0 18px 50px rgba(19, 43, 68, 0.12);
  --radius: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 92% 4%, rgba(22, 116, 82, 0.08), transparent 22rem),
    var(--background);
  color: var(--ink);
  line-height: 1.45;
}

button,
select,
input {
  font: inherit;
}

button,
select,
input[type="range"] {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 116, 82, 0.35);
  outline-offset: 3px;
}

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 10px max(18px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(23, 57, 95, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.055em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

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

.data-date {
  color: var(--muted);
  font-size: 0.78rem;
}

.install-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23, 57, 95, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 750;
}

main {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 30px;
  align-items: end;
  padding: 34px 38px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(105deg, rgba(13, 39, 67, 0.98), rgba(23, 57, 95, 0.95)),
    var(--navy);
  color: white;
  box-shadow: 0 22px 55px rgba(13, 39, 67, 0.18);
}

.intro::after {
  content: "";
  position: absolute;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.intro .eyebrow {
  color: #80d3ad;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.intro-note {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
}

.view-switch {
  display: flex;
  width: fit-content;
  margin: 26px 0 30px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
}

.view-button,
.mode-button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.view-button.is-active,
.mode-button.is-active {
  background: var(--navy);
  color: white;
  box-shadow: 0 7px 18px rgba(23, 57, 95, 0.16);
}

.view-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.75rem;
}

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

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.text-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 750;
}

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
  margin-bottom: 22px;
}

.filters label,
.field-label,
.parameter-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

select,
input[type="number"] {
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid #d8dee2;
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 57, 95, 0.11);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 38, 58, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-visual-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  text-align: left;
}

.project-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-card:hover .project-visual {
  transform: scale(1.018);
}

.visual-data {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 229, 214, 0.55)),
    var(--paper);
}

.visual-data::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(23, 57, 95, 0.16);
  border-radius: 14px;
}

.visual-data img {
  width: 48px;
  height: 48px;
}

.visual-data strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
}

.visual-data span {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(13, 39, 67, 0.86);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px;
}

.project-kicker {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-name {
  margin-bottom: 13px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.05;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 17px;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  list-style: none;
}

.metrics li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metrics svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.card-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-price-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.card-price {
  display: block;
  color: var(--navy);
  font-size: 1.24rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.calculate-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.empty-state {
  place-items: center;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed #c8d0d4;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-state strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.calculator-shell {
  max-width: 820px;
  padding: 26px;
  border: 1px solid rgba(23, 57, 95, 0.1);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.calculator-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 26px;
  padding: 5px;
  border-radius: 15px;
  background: #edf1f3;
}

.calculator-panel {
  min-height: 340px;
}

.wide-select {
  width: 100%;
  margin: 8px 0 16px;
}

.variant-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.variant-button {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.variant-button strong,
.variant-button span {
  display: block;
}

.variant-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.variant-button.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px var(--green);
}

.price-result,
.estimate-card {
  padding: 23px;
  border-radius: 20px;
  background: var(--navy);
  color: white;
}

.result-kicker,
.estimate-card > p {
  margin-bottom: 7px;
  color: #9ed8be;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-price,
.estimate-card output {
  display: block;
  margin-bottom: 17px;
  font-size: clamp(2rem, 7vw, 3.3rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
}

.result-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.result-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.result-facts strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.result-actions span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.light-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: white;
  color: var(--navy);
  font-weight: 800;
}

.parameter-row {
  margin-bottom: 25px;
}

.parameter-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.input-with-unit input {
  width: 90px;
  padding: 0 10px;
  text-align: right;
}

input[type="range"] {
  width: 100%;
  margin: 20px 0 4px;
  accent-color: var(--green);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
}

fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
}

legend small {
  font-size: inherit;
  font-weight: 500;
}

.chip-group {
  display: flex;
  gap: 8px;
}

.chip-group input,
.package-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-group span {
  display: grid;
  min-width: 50px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-weight: 800;
}

.chip-group input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.package-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.package-options label > span {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.package-options strong,
.package-options small {
  display: block;
}

.package-options small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.package-options input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.estimate-card {
  margin-top: 6px;
}

.estimate-breakdown {
  display: grid;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.breakdown-row strong {
  color: white;
}

.matches {
  margin-top: 22px;
}

.matches-title {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.match-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
}

.method-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-note {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  max-width: 820px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #d9dedf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-note strong {
  color: var(--navy);
}

.legal-note p {
  margin: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 calc(24px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer span {
  color: var(--navy);
  font-weight: 850;
  letter-spacing: 0.05em;
}

footer a {
  color: var(--green);
  text-decoration: none;
}

.bottom-nav {
  display: none;
}

.project-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(880px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: white;
  box-shadow: 0 34px 90px rgba(8, 25, 43, 0.3);
}

.project-dialog::backdrop {
  background: rgba(7, 20, 34, 0.63);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
  max-height: min(880px, calc(100dvh - 28px));
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(13, 39, 67, 0.82);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.dialog-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper);
}

.dialog-data-visual {
  border-radius: 0;
}

.dialog-body {
  padding: 26px;
}

.dialog-title {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}

.dialog-status {
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 0.86rem;
}

.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.dialog-metric {
  padding: 13px;
  background: #f7f9fa;
}

.dialog-metric span,
.dialog-metric strong {
  display: block;
}

.dialog-metric span {
  color: var(--muted);
  font-size: 0.7rem;
}

.dialog-metric strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 0.94rem;
}

.dialog-prices {
  display: grid;
  gap: 9px;
  margin-bottom: 25px;
}

.dialog-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border-radius: 14px;
  background: var(--navy);
  color: white;
}

.dialog-price-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.dialog-price-row strong {
  font-size: 1.15rem;
}

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

.scope-columns h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1rem;
}

.scope-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  list-style: none;
}

.scope-columns li {
  position: relative;
  padding-left: 18px;
}

.scope-columns li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.scope-columns .excludes li::before {
  background: #b9c0c6;
}

.dialog-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--green-soft);
  color: #3d5a4e;
  font-size: 0.82rem;
}

.dialog-action {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-weight: 850;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: calc(18px + var(--safe-bottom));
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--navy-deep);
  color: white;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .app-header {
    min-height: 64px;
    padding: 9px 16px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 0.83rem;
  }

  .brand-copy small,
  .data-date {
    display: none;
  }

  .install-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.8rem;
  }

  main {
    width: min(100% - 24px, 640px);
    padding-top: 12px;
    padding-bottom: calc(96px + var(--safe-bottom));
  }

  .intro {
    gap: 13px;
    padding: 24px 21px;
    border-radius: 21px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .intro-note {
    font-size: 0.86rem;
  }

  .view-switch {
    display: none;
  }

  .app-view {
    padding-top: 24px;
  }

  .section-heading {
    align-items: center;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 2.3rem;
  }

  .text-button {
    font-size: 0.82rem;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filters label {
    gap: 5px;
    font-size: 0.72rem;
  }

  select {
    min-height: 46px;
    padding: 0 30px 0 10px;
    font-size: 0.88rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-body {
    padding: 17px;
  }

  .project-name {
    font-size: 1.65rem;
  }

  .calculator-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .calculator-mode {
    margin-bottom: 21px;
  }

  .mode-button {
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .variant-picker,
  .package-options {
    grid-template-columns: 1fr;
  }

  .package-options label > span {
    min-height: 69px;
  }

  .price-result,
  .estimate-card {
    padding: 20px;
  }

  .result-facts {
    grid-template-columns: 1fr 1fr;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .light-button {
    width: 100%;
  }

  .legal-note {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  footer {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    z-index: 48;
    right: 10px;
    bottom: calc(8px + var(--safe-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(13, 39, 67, 0.94);
    box-shadow: 0 15px 42px rgba(7, 22, 38, 0.32);
    backdrop-filter: blur(16px);
  }

  .bottom-nav-button {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 750;
  }

  .bottom-nav-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .bottom-nav-button.is-active {
    background: white;
    color: var(--navy);
  }

  .project-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 10px);
    margin: auto 0 0;
    border-radius: 23px 23px 0 0;
  }

  .dialog-shell {
    max-height: calc(100dvh - 10px);
    padding-bottom: var(--safe-bottom);
  }

  .dialog-body {
    padding: 21px;
  }

  .dialog-metrics {
    grid-template-columns: 1fr 1fr;
  }

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

  .toast {
    right: 12px;
    bottom: calc(82px + var(--safe-bottom));
    left: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
