/*
 * Sample Powerful web app: Plumb Line Remodeling, a made-up contractor.
 * Modeled on the ARC remodeling build: a dark site with a quote card in the hero, services, a
 * four-step process, a stats band, before-and-after projects, the estimate wizard with photos,
 * a customer project page and the owner's admin. Archivo, set narrow for the headings.
 */
@font-face {
  font-family: "Archivo";
  src: url("../shared/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --coal-950: #0d0f0e;
  --coal-900: #141716;
  --coal-850: #1a1e1c;
  --coal-800: #222724;
  --coal-700: #2f3531;
  --coal-600: #434b46;
  --copper: #f08a3c;
  --copper-600: #d9732a;
  --copper-300: #f8b47f;
  --paper: #ffffff;
  --paper-2: #f5f4f1;
  --ink: #141716;
  --muted: #5f6661;
  --edge: #e2e1dc;
  --ok: #2e8540;
  --ok-soft: #e2f0e5;
  --wait: #9a6a12;
  --wait-soft: #f8ecd2;
  --info: #2a72cc;
  --info-soft: #e3ecf8;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 "Archivo", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Archivo", "Arial Narrow", Impact, sans-serif;
  font-stretch: 72%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
}
.kicker {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.dark {
  background: var(--coal-950);
  color: #eef1ee;
}
.dark .muted,
.muted-dark {
  color: #a9b2ac;
}
.muted {
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font: 800 0.95rem/1 "Archivo", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--go {
  background: var(--copper);
  color: #1b0f05;
}
.btn--go:hover {
  background: var(--copper-300);
}
.btn--line {
  border-color: currentColor;
  background: transparent;
}
.btn--dark {
  background: var(--coal-900);
  color: #fff;
}
.btn--soft {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--edge);
}
.btn--sm {
  min-height: 38px;
  padding: 0 0.9rem;
  font-size: 0.8rem;
}
.btn--block {
  width: 100%;
}

/* ---------- top ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(13 15 14 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--coal-800);
  color: #fff;
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  width: 40px;
  height: 40px;
}
.logo b {
  font: 800 1.3rem/0.9 "Archivo", sans-serif;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.logo small {
  display: block;
  color: var(--copper);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.3em;
}
.nav__links {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}
.nav__links a {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #dfe5e1;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--copper);
}
.nav__end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }
  .nav__end {
    margin-left: 0;
  }
  .nav__menu {
    display: none !important;
  }
}
.nav__menu {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--coal-700);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav__drawer {
  border-top: 1px solid var(--coal-800);
}
.nav__drawer a {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--coal-800);
  font-weight: 700;
  text-decoration: none;
}
.banner {
  background: var(--copper);
  color: #1b0f05;
  font-weight: 700;
  text-align: center;
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(90deg, rgb(13 15 14 / 0.96) 0%, rgb(13 15 14 / 0.82) 55%, rgb(13 15 14 / 0.65) 100%), url("img/kitchen-after.svg") center / cover no-repeat;
  color: #fff;
}
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
@media (min-width: 1000px) {
  .hero .wrap {
    grid-template-columns: 1.2fr 0.9fr;
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }
}
.tagline {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--copper-600);
  border-radius: 999px;
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.8rem, 7.5vw, 5.3rem);
}
.hero h1 span {
  color: var(--copper);
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: #c9d1cc;
  font-size: 1.1rem;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.trust .icon {
  color: var(--copper);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-weight: 700;
}
.quote-card {
  padding: 1.6rem;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}
.quote-card h2 {
  font-size: 1.6rem;
}
.quote-card p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.form__row {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 520px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.3rem;
}
.field label,
.field .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
textarea.input {
  min-height: 90px;
  padding: 0.7rem 0.85rem;
}
.input:focus {
  outline: 2px solid var(--copper);
  border-color: transparent;
}
.fine {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- sections ---------- */
.section {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }
}
.section__head {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.section__head h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.section__head p {
  margin-top: 0.9rem;
}
.svc {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .svc {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .svc {
    grid-template-columns: repeat(3, 1fr);
  }
}
.svc a {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1.5rem;
  border: 1px solid var(--coal-800);
  border-radius: 10px;
  background: linear-gradient(160deg, var(--coal-850), var(--coal-900));
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.svc a:hover {
  border-color: var(--copper-600);
  transform: translateY(-2px);
}
.svc__icon {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgb(240 138 60 / 0.14);
  color: var(--copper);
  font-size: 1.4rem;
}
.svc h3 {
  margin-top: auto;
  font-size: 1.5rem;
  color: #fff;
}
.svc p {
  margin-top: 0.4rem;
  color: #a9b2ac;
}
.svc span.go {
  margin-top: 0.9rem;
  color: var(--copper);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.process {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}
.process div {
  padding: 1.6rem;
  border: 1px solid var(--coal-800);
  border-radius: 10px;
  background: var(--coal-900);
}
.process b {
  display: block;
  font: 800 2.6rem/1 "Archivo", sans-serif;
  font-stretch: 72%;
  color: var(--copper);
}
.process h3 {
  margin-top: 0.75rem;
  font-size: 1.35rem;
  color: #fff;
}
.process p {
  margin-top: 0.4rem;
  color: #a9b2ac;
}
.stats {
  background: var(--copper);
  color: #1b0f05;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats .wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats b {
  display: block;
  font: 800 3.2rem/1 "Archivo", sans-serif;
  font-stretch: 72%;
}
.stats span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.filters button {
  min-height: 40px;
  padding: 0 1rem;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.9rem "Archivo", sans-serif;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  border-color: var(--coal-900);
  background: var(--coal-900);
  color: #fff;
}
.projects {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .projects {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
.projects li[hidden] {
  display: none;
}
.project {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--paper);
}
.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project__body {
  padding: 1rem 1.1rem 1.2rem;
}
.project__body h3 {
  font-size: 1.25rem;
}
.project__body p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--copper-600);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}
.compare .after {
  clip-path: inset(0 0 0 var(--pos));
}
.compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--copper);
  pointer-events: none;
}
.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare__labels {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.compare__labels span {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgb(13 15 14 / 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reviews {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}
.review {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--paper);
}
.review .stars {
  color: var(--copper-600);
  letter-spacing: 0.12em;
}
.review blockquote {
  margin: 0.75rem 0 0;
}
.review figcaption {
  margin-top: 1rem;
  font-weight: 800;
}
.review figcaption span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}
.area {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .area {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}
.area img {
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 10px;
}
.towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}
.towns li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.towns .icon {
  color: var(--copper-600);
}
.cta {
  background: radial-gradient(ellipse at top, var(--coal-800), var(--coal-950) 70%);
  color: #fff;
  text-align: center;
}
.cta .wrap {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.cta h2 {
  margin-top: 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.cta .btn {
  margin-top: 1.75rem;
}
.footer {
  background: var(--coal-950);
  color: #c9d1cc;
  border-top: 1px solid var(--coal-800);
  font-size: 0.95rem;
}
.footer .wrap {
  display: grid;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer .wrap {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.footer h2 {
  margin-bottom: 0.6rem;
  color: var(--copper);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer__base {
  border-top: 1px solid var(--coal-800);
  padding: 1.1rem 1rem;
  color: #7f8983;
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- estimate wizard ---------- */
.wizard-page {
  min-height: 100vh;
  background: var(--paper-2);
}
.wizard {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}
.wizard h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}
.wizard__card {
  margin-top: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgb(20 23 22 / 0.06);
}
.progress {
  display: flex;
  gap: 4px;
}
.progress span {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--edge);
}
.progress span.is-on {
  background: var(--copper);
}
.step-label {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.q {
  margin-top: 1.25rem;
  font-size: 1.9rem;
}
.q-hint {
  margin-top: 0.4rem;
  color: var(--muted);
}
.options {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
@media (min-width: 560px) {
  .options {
    grid-template-columns: 1fr 1fr;
  }
}
.options button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 60px;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--edge);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 700 1rem "Archivo", sans-serif;
  text-align: left;
  cursor: pointer;
}
.options button .icon {
  color: var(--copper-600);
  font-size: 1.3rem;
}
.options button[aria-pressed="true"] {
  border-color: var(--copper);
  background: #fff4ea;
  box-shadow: inset 0 0 0 1px var(--copper);
}
.wizard__nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding: 2rem 1rem;
  border: 2px dashed var(--edge);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.drop:hover {
  border-color: var(--copper);
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop .icon {
  font-size: 1.8rem;
  color: var(--copper-600);
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.thumbs img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
}
.done-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 10px;
  background: var(--ok-soft);
}

/* ---------- app pages: project page and admin ---------- */
.app {
  min-height: 100vh;
  background: var(--paper-2);
}
.app-top {
  background: var(--coal-950);
  color: #fff;
}
.app-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.panel {
  padding: 1.4rem;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--paper);
}
.panel + .panel {
  margin-top: 1rem;
}
.panel h2 {
  font-size: 1.45rem;
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.pill--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill--wait {
  background: var(--wait-soft);
  color: var(--wait);
}
.pill--info {
  background: var(--info-soft);
  color: var(--info);
}
.pill--new {
  background: #fde4d2;
  color: #a2470f;
}
.pill--plain {
  background: var(--paper-2);
  color: var(--muted);
}
.portal {
  display: grid;
  gap: 1rem;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}
@media (min-width: 1000px) {
  .portal {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}
.portal h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}
.timeline {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.8rem;
  padding-bottom: 1.1rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--edge);
}
.timeline li:last-child::before {
  display: none;
}
.timeline .dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--edge);
  background: var(--paper);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
}
.timeline .is-done .dot {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}
.timeline .is-now .dot {
  border-color: var(--copper);
  background: #fff4ea;
  color: var(--copper-600);
}
.timeline b {
  display: block;
}
.timeline p {
  color: var(--muted);
  font-size: 0.92rem;
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.strip figcaption {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.strip figure {
  margin: 0;
}
.docs {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.docs li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--edge);
}
.docs li:last-child {
  border-bottom: 0;
}
.docs .icon {
  color: var(--copper-600);
  font-size: 1.3rem;
}
.docs span {
  flex: 1;
}
.docs small {
  display: block;
  color: var(--muted);
}
.msgs {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.msg {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px 12px 12px 3px;
  background: var(--paper-2);
  font-size: 0.95rem;
}
.msg small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.msg--me {
  justify-self: end;
  border-radius: 12px 12px 3px 12px;
  background: #fff4ea;
}
.pay {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.pay li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--edge);
}
.pay li:last-child {
  border-bottom: 0;
}
.meter {
  height: 10px;
  margin-top: 1rem;
  border-radius: 99px;
  background: var(--edge);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--copper);
}

/* admin */
.admin {
  display: grid;
  min-height: 100vh;
  background: var(--paper-2);
}
@media (min-width: 1024px) {
  .admin {
    grid-template-columns: 250px 1fr;
  }
}
.admin__side {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1rem;
  background: var(--coal-950);
  color: #dfe5e1;
}
@media (min-width: 1024px) {
  .admin__side {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
  }
}
.admin__side nav {
  display: grid;
  gap: 2px;
}
.admin__side nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.admin__side nav a:hover,
.admin__side nav a.is-on {
  background: var(--coal-800);
  color: #fff;
}
.admin__side nav a.is-on .icon {
  color: var(--copper);
}
.admin__side nav .pill {
  margin-left: auto;
}
.admin__side .foot-note {
  margin-top: auto;
  font-size: 0.85rem;
  color: #8e9892;
}
.admin__main {
  min-width: 0;
  padding: 1.5rem 1rem 6rem;
}
@media (min-width: 640px) {
  .admin__main {
    padding: 2rem 2rem 4rem;
  }
}
.admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin__head h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.admin__mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -1.5rem -1rem 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--coal-950);
  color: #fff;
}
.admin__tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding-bottom: 0.25rem;
}
.admin__tabs a {
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.admin__tabs a.is-on {
  border-color: var(--coal-900);
  background: var(--coal-900);
  color: #fff;
}
@media (min-width: 1024px) {
  .admin__mobile,
  .admin__tabs {
    display: none;
  }
}
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}
.kpi {
  padding: 1rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--paper);
}
.kpi span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi b {
  display: block;
  margin-top: 0.3rem;
  font: 800 2.2rem/1 "Archivo", sans-serif;
  font-stretch: 72%;
}
.lead {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--edge);
}
@media (min-width: 800px) {
  .lead {
    grid-template-columns: 1.3fr 1fr auto;
    align-items: center;
  }
}
.lead:last-child {
  border-bottom: 0;
}
.lead b {
  font-size: 1.05rem;
}
.lead p {
  color: var(--muted);
  font-size: 0.92rem;
}
.lead__photos {
  display: flex;
  gap: 0.35rem;
}
.lead__photos img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}
.lead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--edge);
  text-align: left;
  vertical-align: middle;
}
.table th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.table .input {
  min-height: 40px;
  max-width: 140px;
}
.scroll-x {
  overflow-x: auto;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--paper);
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
}
.split-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1000px) {
  .split-2 {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }
}
.types {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.types li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--edge);
}
.types li:last-child {
  border-bottom: 0;
}
.types span {
  flex: 1;
  font-weight: 700;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--copper-600);
}
.preview-banner {
  padding: 0.55rem 1rem;
  border-radius: 6px;
  background: var(--copper);
  color: #1b0f05;
  font-weight: 700;
  text-align: center;
}
.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--coal-950);
  border-top: 1px solid var(--coal-800);
}
.app-tabbar a {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem 0.7rem;
  color: #a9b2ac;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.app-tabbar a.is-on {
  color: var(--copper);
}
.app-tabbar .icon {
  font-size: 1.35rem;
}
@media (min-width: 1024px) {
  .app-tabbar {
    display: none;
  }
}
