:root {
  --sky-top: #b9e4f2;
  --sky-mid: #dff5ef;
  --leaf: #1f8a66;
  --leaf-deep: #14664a;
  --bottle: #9aaf96;
  --bottle-dark: #6f856c;
  --ink: #123028;
  --muted: #4d6a60;
  --warn: #c9852a;
  --rose: #c9899a;
  --safe: #2a9d6e;
  --line: rgba(18, 48, 40, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: #dce9e4;
}

a { color: var(--leaf); }

.app-shell {
  display: grid;
  place-items: center;
  padding: 24px 12px;
}

.phone-frame {
  width: min(390px, 100%);
  min-height: min(844px, 92vh);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 120% 60% at 50% -5%, var(--sky-top) 0%, transparent 55%),
    linear-gradient(180deg, var(--sky-mid) 0%, #f3faf7 42%, #eef7f2 100%);
  box-shadow:
    0 0 0 10px #1a2e28,
    0 0 0 12px #8fa894,
    0 30px 60px rgba(18, 48, 40, 0.28);
  display: flex;
  flex-direction: column;
}

.clouds {
  position: absolute; inset: 0 0 auto 0; height: 180px; pointer-events: none; overflow: hidden;
}
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  animation: drift 28s linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.c1 { width: 90px; height: 34px; top: 48px; left: -40px; }
.c1::before { width: 42px; height: 42px; top: -20px; left: 14px; }
.c1::after { width: 54px; height: 54px; top: -26px; left: 36px; }
.c2 { width: 110px; height: 38px; top: 72px; right: -50px; animation-duration: 36s; animation-direction: reverse; }
.c2::before { width: 48px; height: 48px; top: -22px; left: 18px; }
.c2::after { width: 60px; height: 60px; top: -28px; left: 44px; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(120px); }
}

.top {
  position: relative; z-index: 2;
  padding: 18px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--leaf-deep);
}
.brand span { color: var(--leaf); }
.brand.large { font-size: 2rem; margin-bottom: 8px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(145deg, var(--bottle), var(--leaf));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem;
  border: 2px solid rgba(255,255,255,0.8);
  text-transform: uppercase;
}

.scroll {
  flex: 1; overflow-y: auto; padding: 8px 18px 110px;
  position: relative; z-index: 2;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.hello { margin: 8px 0 18px; }
.hello h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hello p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
}
.stat {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(8px);
}
.stat .label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.stat .value { font-size: 1.55rem; font-weight: 700; margin-top: 4px; }
.stat.warn .value { color: var(--warn); }
.stat.ok .value { color: var(--safe); }

.section-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 6px 0 10px;
  font-weight: 600; font-size: 0.95rem;
}
.section-label a { color: var(--leaf); font-size: 0.82rem; text-decoration: none; font-weight: 600; }

.cyl {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(18,48,40,0.07);
}
.bottle { width: 48px; height: 64px; position: relative; }
.bottle .body {
  position: absolute; inset: 12px 6px 0;
  background: linear-gradient(180deg, #b7c7b0 0%, var(--bottle) 40%, var(--bottle-dark) 100%);
  border-radius: 8px 8px 10px 10px;
  box-shadow: inset 4px 0 0 rgba(255,255,255,0.25);
}
.bottle .body-r410 {
  background: linear-gradient(180deg, #c9b8bc, #b08a96 55%, #8a6570);
}
.bottle .body-ofn {
  background: linear-gradient(180deg, #b7c7b0, #7d9478 60%, #5a6e58);
}
.bottle .shoulder {
  position: absolute; top: 4px; left: 10px; right: 10px; height: 16px;
  background: #c5d4bf; border-radius: 8px 8px 2px 2px;
}
.bottle .valve {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 10px; height: 8px; background: #6a7a68; border-radius: 2px;
}
.bottle .band {
  position: absolute; top: 18px; left: 6px; right: 6px; height: 8px;
  background: #c45c5c; border-radius: 1px;
}
.bottle .label-chip {
  position: absolute; bottom: 10px; left: 10px; right: 10px; height: 16px;
  background: #f7f4ef; border-radius: 3px;
  font-size: 0.45rem; font-weight: 700; display: grid; place-items: center;
  color: var(--ink);
}
.meta .gas { font-weight: 700; font-size: 0.98rem; }
.meta .loc { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.pill {
  font-size: 0.68rem; font-weight: 700; padding: 6px 9px; border-radius: 999px;
  background: #e8f5ee; color: var(--safe); white-space: nowrap;
}
.pill.amber { background: #f8efe0; color: var(--warn); }
.pill.rose { background: #f6e8ec; color: #a85c70; }

/* Location kind — pill background matches the swatch (van / depot / site) */
.pill.loc-tone-van   { background: #3d6eb0; color: #fff; }
.pill.loc-tone-depot { background: #2a9d6e; color: #fff; }
.pill.loc-tone-site  { background: #c9852a; color: #fff; }

.loc-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(18, 48, 40, 0.12);
}
.loc-swatch.loc-tone-van   { background: #3d6eb0; }
.loc-swatch.loc-tone-depot { background: #2a9d6e; }
.loc-swatch.loc-tone-site  { background: #c9852a; }

.admin-row .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-card {
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}
.empty-card code {
  font-size: 0.8rem;
  background: #e8f2ec;
  padding: 2px 6px;
  border-radius: 6px;
}

.plan-grid { display: grid; gap: 12px; }
.plan-card {
  display: flex;
  flex-direction: column;
}
.plan-card .plan-btn,
.plan-card .btn-primary {
  width: 100%;
  margin-top: auto;
  padding: 0 18px;
  box-sizing: border-box;
  white-space: nowrap;
}
.plan-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.plan-card.current {
  border-color: rgba(20, 102, 74, 0.28);
  box-shadow: 0 0 0 1px rgba(20, 102, 74, 0.18);
}

.dock {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 5;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(18,48,40,0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 8px 4px 10px;
  box-shadow: 0 12px 32px rgba(18,48,40,0.14);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 0.65rem; font-weight: 600;
  min-height: 48px; justify-content: center;
  text-decoration: none;
}
.tab.active { color: var(--leaf-deep); }
.tab svg { width: 22px; height: 22px; }
.scan-wrap { display: flex; justify-content: center; position: relative; order: 3; }
.dock > a.tab[href="/"] { order: 1; }
.dock > a.tab[href="/stock"] { order: 2; }
.dock > a.tab[href="/returns"] { order: 4; }
.dock > a.tab[href="/me"] { order: 5; }
.scan {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(145deg, #2fb887, var(--leaf-deep));
  color: #fff; border: 4px solid #f3faf7;
  display: grid; place-items: center;
  margin-top: -34px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 102, 74, 0.35);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(20, 102, 74, 0.35); }
  50% { box-shadow: 0 10px 24px rgba(20, 102, 74, 0.35), 0 0 0 10px rgba(47, 184, 135, 0.18); }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 120% 60% at 50% -5%, var(--sky-top) 0%, transparent 55%),
    linear-gradient(180deg, var(--sky-mid), #eef7f2);
}
.auth-card {
  width: min(400px, 100%);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(18,48,40,0.1);
}
.auth-lede { color: var(--muted); margin-bottom: 20px; line-height: 1.4; }
.auth-form { display: grid; gap: 12px; width: 100%; max-width: 100%; min-width: 0; }
.auth-form label {
  display: grid; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  min-width: 0;
  max-width: 100%;
}
.auth-form input,
.auth-form select,
.auth-form textarea {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18,48,40,0.14);
  padding: 0 14px;
  font: 500 1rem Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.auth-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2314664a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.panel-card {
  background: rgba(255,255,255,0.85);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 520px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.auth-form input[type="radio"],
.auth-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  flex-shrink: 0;
  accent-color: var(--leaf-deep);
}
.btn-primary {
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #2fb887, var(--leaf-deep));
  color: #fff;
  font: 700 1rem Outfit, system-ui, sans-serif;
  cursor: pointer;
  margin-top: 4px;
  padding: 0 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.auth-foot { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.check-row input[type="radio"],
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.contents-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px 12px;
  margin: 4px 0 10px;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.contents-fieldset legend {
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.contents-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(18,48,40,0.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.contents-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contents-option:has(input:checked) {
  border-color: var(--leaf);
  background: rgba(31, 138, 102, 0.08);
}
.contents-option input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.contents-fieldset .weight-wrap {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.weight-wrap.is-hidden { display: none !important; }
.is-hidden { display: none !important; }
.legal-card { max-width: 560px; text-align: left; }
.legal-body { font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.legal-body h2 { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; margin: 18px 0 6px; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; }
.checklist li { margin: 8px 0; font-size: 0.95rem; }
.form-error { color: #a33; margin-bottom: 12px; font-weight: 600; }

@media (max-width: 420px) {
  .app-shell { padding: 0; background: #000; }
  .phone-frame {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Phase 4–5 field workflows */
.cyl-link { text-decoration: none; color: inherit; }
.back-inline {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.7);
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.filter-row {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px;
  padding-bottom: 4px; scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}
.chip.active {
  background: var(--leaf-deep);
  color: #e8f8f3;
  border-color: var(--leaf-deep);
}
.chip.loc-tone-van {
  background: #e8eef8;
  color: #2c5080;
  border-color: #3d6eb0;
}
.chip.loc-tone-van.active {
  background: #3d6eb0;
  color: #fff;
  border-color: #3d6eb0;
}
.chip.loc-tone-depot {
  background: #e4f5ee;
  color: #14664a;
  border-color: #2a9d6e;
}
.chip.loc-tone-depot.active {
  background: #2a9d6e;
  color: #fff;
  border-color: #2a9d6e;
}
.chip.loc-tone-site {
  background: #f8eee4;
  color: #8a4f22;
  border-color: #c9852a;
}
.chip.loc-tone-site.active {
  background: #c9852a;
  color: #fff;
  border-color: #c9852a;
}
.reader-wrap {
  background: #0f2a24;
  border-radius: 20px;
  overflow: hidden;
  min-height: 240px;
  margin-bottom: 14px;
  position: relative;
}
#reader { width: 100%; min-height: 220px; }
.scan-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 10px 0 4px;
}
.manual-form {
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.manual-form label {
  display: grid; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.manual-form input, .auth-form select, .auth-form input[type="number"], .auth-form input[type="text"] {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18,48,40,0.14);
  padding: 0 14px;
  font: 500 1rem Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hint { margin-top: 12px; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.linkish {
  background: none; border: none; color: var(--leaf); font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 0;
}
.detail-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.detail-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.bottle-lg { width: 64px; height: 86px; }
.bottle-lg .body { inset: 16px 8px 0; }
.bottle-lg .shoulder { top: 6px; left: 14px; right: 14px; height: 18px; }
.bottle-lg .label-chip { font-size: 0.55rem; bottom: 12px; }

/* —— Bottle content + rental gauges —— */
.bottle-panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 28px rgba(18, 48, 40, 0.06);
  margin-bottom: 4px;
}
.panel-top {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}
.panel-top .meta h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cyl-gauge {
  width: 78px;
  height: 118px;
  position: relative;
  margin: 0 auto;
  --fill: 0;
}
.cyl-gauge .valve {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 12px; height: 9px; background: #6a7a68; border-radius: 2px; z-index: 3;
}
.cyl-gauge .shoulder {
  position: absolute; top: 7px; left: 16px; right: 16px; height: 18px;
  background: #c5d4bf; border-radius: 8px 8px 2px 2px; z-index: 2;
}
.cyl-gauge .shell {
  position: absolute; inset: 18px 10px 0;
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(180deg, #c8d5c2 0%, #8fa088 100%);
  overflow: hidden;
  box-shadow:
    inset 5px 0 0 rgba(255,255,255,0.28),
    inset -3px 0 8px rgba(18,48,40,0.12);
}
.cyl-gauge .shell.tone-r32 { background: linear-gradient(180deg, #d4c4c4 0%, #9a7a7a 100%); }
.cyl-gauge .shell.tone-r410 { background: linear-gradient(180deg, #d4c8cc 0%, #9a8088 100%); }
.cyl-gauge .shell.tone-ofn { background: linear-gradient(180deg, #c5d0c0 0%, #6f856c 100%); }
.cyl-gauge .shell.tone-recovery { background: linear-gradient(180deg, #d0c8bc 0%, #8a8070 100%); }
.cyl-gauge .fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--fill) * 1%);
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cyl-gauge .fill.tone-r32 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25), transparent 28%),
    linear-gradient(180deg, #d64545 0%, #9e2f2f 100%);
}
.cyl-gauge .fill.tone-r410 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 28%),
    linear-gradient(180deg, #c9899a 0%, #8a6570 100%);
}
.cyl-gauge .fill.tone-ofn,
.cyl-gauge .fill.tone-default,
.cyl-gauge .fill.tone-recovery {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(180deg, #8aa083 0%, #4a5c48 100%);
}
.cyl-gauge .fill.tone-recovery {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(180deg, #b89a6a 0%, #6e5a3c 100%);
}
.cyl-gauge .fill::before {
  content: "";
  position: absolute; left: 6%; right: 6%; top: 0;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: translateY(-45%);
}
.cyl-gauge .band {
  position: absolute; top: 28px; left: 10px; right: 10px; height: 9px;
  background: #d64545; border-radius: 1px; z-index: 2;
}
.cyl-gauge .label-chip {
  position: absolute; bottom: 14px; left: 16px; right: 16px; height: 18px;
  background: #f7f4ef; border-radius: 3px; z-index: 2;
  font-size: 0.55rem; font-weight: 700;
  display: grid; place-items: center;
  color: var(--ink);
}
.cyl-gauge .pct {
  position: absolute; inset: 18px 10px 0;
  display: grid; place-items: center;
  z-index: 2;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  pointer-events: none;
}
.readouts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.readout-row-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}
.readout-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.readout {
  background: #f3faf7;
  border-radius: 12px;
  padding: 8px 8px 9px;
  text-align: center;
}
.readout .k {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.readout .v {
  font-size: 0.95rem; font-weight: 700; margin-top: 2px;
}
.readout .v em { font-style: normal; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.readouts.ofn-readouts .readout-row {
  grid-template-columns: 1fr 1fr 1fr;
}
.rental {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
}
.rental .label-row {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.78rem;
}
.rental .label-row strong { font-weight: 700; }
.rental .label-row span { color: var(--muted); }
.rental-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 48, 40, 0.08);
  overflow: hidden;
  grid-column: 1;
}
.rental-fill {
  height: 100%;
  width: calc(var(--remain) * 1%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--safe) 100%);
  transition: width 0.7s ease;
}
.rental-fill.warn {
  background: linear-gradient(90deg, #d4a04a 0%, var(--warn) 100%);
}
.rental-fill.danger {
  background: linear-gradient(90deg, #c96a5a 0%, #b54a4a 100%);
}
.rental-fill.overdue {
  width: 100%;
  opacity: 0.35;
}
.days {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--leaf-deep);
}
.days.warn { color: var(--warn); }
.days.danger { color: #b54a4a; }

/* Stock list mini fill */
.bottle .mini-shell {
  position: absolute; inset: 12px 6px 0;
  border-radius: 8px 8px 10px 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #b7c7b0 0%, var(--bottle-dark) 100%);
  box-shadow: inset 4px 0 0 rgba(255,255,255,0.25);
}
.bottle .mini-shell.tone-r32 { background: linear-gradient(180deg, #c9b8bc, #8a6570); }
.bottle .mini-shell.tone-r410 { background: linear-gradient(180deg, #c9b8bc, #8a6570); }
.bottle .mini-shell.tone-ofn { background: linear-gradient(180deg, #b7c7b0, #5a6e58); }
.bottle .mini-shell.tone-recovery { background: linear-gradient(180deg, #c9bba8, #7a6a52); }
.bottle .mini-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--fill, 0) * 1%);
}
.bottle .mini-fill.tone-r32 { background: linear-gradient(180deg, #d64545, #9e2f2f); }
.bottle .mini-fill.tone-r410 { background: linear-gradient(180deg, #c9899a, #8a6570); }
.bottle .mini-fill.tone-ofn,
.bottle .mini-fill.tone-default { background: linear-gradient(180deg, #8aa083, #4a5c48); }
.bottle .mini-fill.tone-recovery { background: linear-gradient(180deg, #b89a6a, #6e5a3c); }
.bottle .shoulder { z-index: 2; }
.bottle .valve { z-index: 3; }
.bottle .band { z-index: 2; }
.bottle .label-chip { z-index: 2; }
.bottle.has-gauge .body { display: none; }
.muted { color: var(--muted); font-size: 0.88rem; }
.loc-line { margin: 0 0 14px; }
.action-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.act-btn {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18,48,40,0.1);
  background: rgba(255,255,255,0.9);
  font: 700 0.95rem Outfit, system-ui, sans-serif;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  padding: 0 16px;
}
.act-btn.warn { color: #9a5a12; background: #f8efe0; }
.pulse-once { animation: pulseGrid 1.2s ease; }
@keyframes pulseGrid {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 4px rgba(47, 184, 135, 0.25); border-radius: 16px; }
}
.log-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.log-meta { text-align: right; font-weight: 600; white-space: nowrap; }
.co2e { color: var(--leaf-deep); font-size: 0.78rem; font-weight: 700; }
.warn-text { color: #9a3412; font-weight: 600; }
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(10, 30, 24, 0.45); z-index: 40;
}
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(390px, 100%);
  background: #f7fcf9;
  border-radius: 24px 24px 0 0;
  padding: 12px 18px 28px;
  z-index: 50;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
  max-height: 85vh;
  overflow-y: auto;
}
.sheet .handle {
  width: 42px; height: 4px; border-radius: 99px;
  background: rgba(18,48,40,0.18);
  margin: 4px auto 14px;
}
.sheet h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.btn-ghost {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18,48,40,0.12);
  background: transparent;
  font: 600 0.95rem Outfit, system-ui, sans-serif;
  color: var(--ink);
  cursor: pointer;
  padding: 0 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.hidden { display: none !important; }
.co2-preview { font-size: 0.85rem; }

.stat-link { text-decoration: none; color: inherit; display: block; }
.select-cyl {
  cursor: pointer;
  grid-template-columns: 28px 56px 1fr auto;
}
.select-cyl input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--leaf-deep);
}
.batch-bar {
  position: sticky;
  bottom: 90px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(18,48,40,0.12);
}
.batch-supplier {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.batch-supplier select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18,48,40,0.14);
  padding: 0 14px;
  font: 500 1rem Outfit, system-ui, sans-serif;
  background: #fff;
}
.note-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(18,48,40,0.07);
  text-decoration: none;
  color: inherit;
}
.report-card { margin-bottom: 12px; }
.report-h {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.btn-link {
  display: grid;
  place-items: center;
  text-decoration: none;
  margin-top: 12px;
}
a.act-btn {
  display: flex;
  align-items: center;
}

.admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(18,48,40,0.07);
}
.admin-row .pill {
  border: none;
  cursor: pointer;
  font: inherit;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.admin-row .pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.value-sm { font-size: 1.15rem !important; }

.admin-supplier { margin-bottom: 14px; }
.branch-panel {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18,48,40,0.07);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 12px 14px 14px;
}
.branch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(18,48,40,0.06);
}
.branch-row:last-of-type { border-bottom: none; margin-bottom: 8px; }
.branch-form { margin-top: 8px; gap: 8px; }
.branch-form label { font-size: 0.88rem; }

.help-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(18,48,40,0.07);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.help-card:active { transform: scale(0.98); }
.help-card-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8f6f1;
}
.help-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  counter-reset: helpstep;
}
.help-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.help-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent, #2a6b5a);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.help-step-body h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  margin: 4px 0 6px;
  color: var(--ink);
}
.help-step-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 12px;
}
.help-step-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  border: 1px solid rgba(18,48,40,0.06);
}

/* Mobile dock: hide office-only chrome */
.dock-branding,
.scan-label,
.dock-reports,
.dock-admin {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Desktop / office web shell (≥900px) — viewport-based, not UA sniffing     */
/* -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  body {
    background:
      radial-gradient(ellipse 80% 50% at 10% -10%, #cfeef7 0%, transparent 55%),
      radial-gradient(ellipse 70% 40% at 90% 0%, #c9ebd8 0%, transparent 50%),
      linear-gradient(180deg, #eef7f3 0%, #e4efe8 100%);
  }

  .app-shell {
    display: block;
    padding: 0;
    min-height: 100vh;
  }

  .phone-frame {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.35), transparent 120px),
      transparent;
  }

  .phone-frame > .top {
    grid-column: 2;
    grid-row: 1;
    padding: 18px 36px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .phone-frame > .top .brand {
    /* Brand lives in the sidebar on desktop */
    display: none;
  }

  .phone-frame > .scroll {
    grid-column: 2;
    grid-row: 2;
    padding: 28px 36px 48px;
    max-width: 1040px;
    width: 100%;
    min-width: 0;
  }

  .phone-frame > .scroll > .panel-card,
  .phone-frame > .scroll > .auth-form.panel-card {
    max-width: 520px;
  }

  .phone-frame > .dock {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    height: 100vh;
    width: auto;
    margin: 0;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 22px 14px 24px;
    z-index: 15;
  }

  .dock-branding {
    display: block;
    padding: 4px 12px 20px;
  }
  .dock-brand {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--leaf-deep);
  }
  .dock-brand span { color: var(--leaf); }
  .dock-caption {
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .dock .tab {
    order: 1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
  }
  .dock .tab.active {
    background: #e7f5ee;
    color: var(--leaf-deep);
  }
  .dock .tab.dock-reports { display: flex; order: 5; margin-top: 0; }
  .dock > a.tab[href="/me"] { order: 20; margin-top: auto; }
  .dock .tab.dock-admin { display: flex; order: 21; }
  .admin-nav { flex-wrap: wrap; }
  #dash-stats.stats {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .scan-wrap {
    order: 1;
    margin: 8px 0 14px;
    display: block;
  }
  .dock > a.tab[href="/"] { order: 2; }
  .dock > a.tab[href="/stock"] { order: 3; }
  .dock > a.tab[href="/returns"] { order: 4; }
  .scan {
    width: 100%;
    height: 48px;
    margin-top: 0;
    border-radius: 14px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: none;
    box-shadow: 0 8px 20px rgba(20, 102, 74, 0.22);
  }
  .scan svg { width: 20px; height: 20px; }
  .scan-label {
    display: inline;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .clouds { opacity: 0.55; height: 220px; }

  .stats {
    grid-template-columns: repeat(2, minmax(140px, 220px));
  }
  .hello h1 { font-size: 2rem; }
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .batch-bar {
    bottom: 24px;
    max-width: 520px;
  }

  /* Action sheets become centred dialogs on desktop */
  .sheet {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 48px));
    border-radius: 22px;
    max-height: min(80vh, 640px);
    box-shadow: 0 24px 60px rgba(18, 48, 40, 0.22);
  }
  .sheet .handle { display: none; }

  .reader-wrap {
    max-width: 520px;
  }

  .auth-card {
    width: min(420px, 100%);
  }
}

/* Mid tablets: slightly wider phone frame without full office chrome */
@media (min-width: 600px) and (max-width: 899px) {
  .app-shell { padding: 28px 16px; }
  .phone-frame {
    width: min(430px, 100%);
  }
}

/* Offline connectivity banner (top) */
.offline-banner {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #b42318;
  color: #fff7f6;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(120, 20, 16, 0.28);
}
.offline-banner.is-hidden { display: none; }
.offline-banner strong {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.offline-banner span {
  font-weight: 500;
  opacity: 0.95;
}

/* Push phone content down slightly when offline banner is visible */
html.fgas-offline .phone-frame > .top {
  padding-top: 88px;
}
html.fgas-offline .phone-frame > .scroll {
  padding-top: 4px;
}

/* Offline sync banner */
.sync-banner {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 96px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 48, 40, 0.92);
  color: #f3faf7;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(18, 48, 40, 0.28);
}
.sync-banner.is-hidden { display: none; }
.sync-banner-text { flex: 1; line-height: 1.3; }
.sync-banner-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--leaf-deep);
  background: #e8f6ef;
  cursor: pointer;
  white-space: nowrap;
}
.sync-banner-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.offline-page h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  margin: 24px 0 12px;
}
.offline-page p {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.45;
}
.offline-page .offline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.offline-page .btn-primary,
.offline-page .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  padding: 0 16px;
}
.offline-page .btn-ghost {
  border: 1px solid rgba(18, 48, 40, 0.14);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}


@media (min-width: 900px) {
  .offline-banner {
    position: fixed;
    left: auto;
    right: 28px;
    top: 28px;
    width: min(360px, calc(100vw - 56px));
  }
  .sync-banner {
    position: fixed;
    left: auto;
    right: 28px;
    bottom: 28px;
    width: min(360px, calc(100vw - 56px));
  }
  html.fgas-offline .phone-frame > .top {
    padding-top: 18px;
  }
}

/* -------------------------------------------------------------------------- */
/* Public marketing homepage                                                  */
/* -------------------------------------------------------------------------- */
body.marketing-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #cfeef7 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 0%, #c9ebd8 0%, transparent 50%),
    linear-gradient(180deg, #eef7f3 0%, #e4efe8 100%);
}

.mkt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.mkt-nav .brand { text-decoration: none; }
.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mkt-nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.mkt-nav-cta {
  padding: 10px 14px !important;
  min-height: 0 !important;
  font-size: 0.88rem !important;
  text-decoration: none;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}
.mkt-nav-sub {
  font-weight: 700;
}

.mkt-top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 28px;
  display: grid;
  gap: 24px;
  align-items: start;
}
.mkt-main h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
}
.mkt-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}
.mkt-lede, .mkt-fine, .mkt-section-lede {
  color: var(--muted);
  line-height: 1.5;
}
.mkt-lede { font-size: 1.02rem; max-width: 40rem; }
.mkt-fine { margin-top: 8px; font-size: 0.88rem; }
.mkt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.mkt-actions .btn-primary,
.mkt-actions .btn-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  margin-top: 0;
}
.mkt-actions .btn-primary { color: #fff; }
.mkt-actions-center { justify-content: center; margin-top: 28px; }

.mkt-hero-shot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

/* Phone mock keeps iPhone proportions (393×852) and is not stretched. */
.marketing-shell .phone-frame.mkt-phone {
  width: 240px;
  max-width: 240px;
  aspect-ratio: 393 / 852;
  height: auto;
  min-height: 0;
  pointer-events: none;
  user-select: none;
}
.marketing-shell .mkt-phone > .scroll {
  padding: 4px 12px 88px;
  overflow: hidden;
  flex: 1;
}
.marketing-shell .mkt-phone .hello h1 { font-size: 1.35rem; }
.marketing-shell .mkt-phone .hello p { font-size: 0.78rem; }
.marketing-shell .mkt-phone .cyl { margin-bottom: 8px; }
.marketing-shell .mkt-phone .dock-branding,
.marketing-shell .mkt-phone .scan-label { display: none !important; }
.marketing-shell .mkt-phone .dock > .tab:nth-of-type(1) { order: 1; }
.marketing-shell .mkt-phone .dock > .tab:nth-of-type(2) { order: 2; }
.marketing-shell .mkt-phone .scan-wrap { order: 3; }
.marketing-shell .mkt-phone .dock > .tab:nth-of-type(3) { order: 4; }
.marketing-shell .mkt-phone .dock > .tab:nth-of-type(4) { order: 5; }

.mkt-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 20px 48px;
}
.mkt-section h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.mkt-section-lede { margin-bottom: 16px; max-width: 40rem; }

.mkt-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mkt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.mkt-table th, .mkt-table td {
  text-align: left;
  padding: 8px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.mkt-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mkt-table tbody th {
  width: 34%;
  font-weight: 700;
  color: var(--leaf-deep);
}
.mkt-table tbody tr:last-child th,
.mkt-table tbody tr:last-child td { border-bottom: none; }

.mkt-plans { margin-top: 8px; }
.mkt-foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.mkt-foot a { color: var(--muted); }

@media (max-width: 720px) {
  .mkt-nav-links a:not(.mkt-nav-cta) { display: none; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .marketing-shell .phone-frame.mkt-phone {
    width: 240px;
    max-width: 240px;
  }
}

@media (min-width: 900px) {
  .mkt-top {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 32px;
    gap: 28px;
  }
  .plan-grid.mkt-plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mkt-hero-shot {
    align-self: center;
    height: auto;
  }

  .marketing-shell .phone-frame.mkt-phone {
    display: flex;
    flex-direction: column;
    width: 240px;
    max-width: 240px;
    aspect-ratio: 393 / 852;
    height: auto;
    min-height: 0;
    border-radius: 36px;
    overflow: hidden;
    box-shadow:
      0 0 0 10px #1a2e28,
      0 0 0 12px #8fa894,
      0 30px 60px rgba(18, 48, 40, 0.28);
    background:
      radial-gradient(ellipse 120% 60% at 50% -5%, var(--sky-top) 0%, transparent 55%),
      linear-gradient(180deg, var(--sky-mid) 0%, #f3faf7 42%, #eef7f2 100%);
  }
  .marketing-shell .mkt-phone > .top {
    grid-column: auto;
    grid-row: auto;
    position: relative;
    padding: 14px 16px 4px;
    border: none;
    background: transparent;
    backdrop-filter: none;
  }
  .marketing-shell .mkt-phone > .top .brand { display: block; }
  .marketing-shell .mkt-phone > .scroll {
    grid-column: auto;
    grid-row: auto;
    padding: 4px 12px 88px;
    max-width: none;
    flex: 1;
  }
  .marketing-shell .mkt-phone > .dock {
    grid-column: auto;
    grid-row: auto;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 14px;
    top: auto;
    height: 72px;
    width: auto;
    margin: 0;
    border-radius: 24px;
    border: 1px solid rgba(18,48,40,0.08);
    border-right: 1px solid rgba(18,48,40,0.08);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 12px 32px rgba(18,48,40,0.14);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0;
    padding: 8px 4px 10px;
  }
  .marketing-shell .mkt-phone .dock .tab {
    order: unset;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 0;
    border-radius: 0;
    font-size: 0.58rem;
    background: transparent;
  }
  .marketing-shell .mkt-phone .dock > a.tab[href="/"],
  .marketing-shell .mkt-phone .dock > .tab:nth-of-type(1) { order: 1; }
  .marketing-shell .mkt-phone .dock > .tab:nth-of-type(2) { order: 2; }
  .marketing-shell .mkt-phone .scan-wrap {
    display: flex;
    justify-content: center;
    order: 3;
    margin: 0;
  }
  .marketing-shell .mkt-phone .dock > .tab:nth-of-type(3) { order: 4; }
  .marketing-shell .mkt-phone .dock > .tab:nth-of-type(4) { order: 5; }
  .marketing-shell .mkt-phone .scan {
    width: 64px;
    height: 64px;
    margin-top: -34px;
    border-radius: 50%;
    border: 4px solid #f3faf7;
    display: grid;
    place-items: center;
    animation: none;
  }
  .marketing-shell .mkt-phone .scan svg { width: 22px; height: 22px; }
  .marketing-shell .mkt-phone .hello h1 { font-size: 1.35rem; }
}
