/* ============================================================
   Refined Housekeeping — "Own It" Client Portal
   Botanical Noir applied to a member app. Derived from the
   design-system tokens (styles.css). No new colors invented.
   ============================================================ */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0a0908;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: var(--weight-body-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: 0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
:root { --ease: cubic-bezier(.4,0,.2,1); }

.gi { color: var(--gold); font-style: italic; }
.gold { color: var(--gold); }
.serif { font-family: var(--font-display); }

/* ---- Signature atoms ----------------------------------- */
.flank {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.flank::before, .flank::after { content: ""; height: 1px; width: 34px; background: var(--gold); opacity: 0.55; }
.flank.solo::after { display: none; }
.flank.solo.lead::before { display: none; }

.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.label-line {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-soft);
}
.hairline { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---- Buttons ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 15px 30px; border-radius: 2px;
  border: 1px solid transparent; transition: all 0.18s var(--ease);
  background: none; color: var(--cream); white-space: nowrap;
}
.btn-primary { background: var(--taupe); border-color: var(--taupe); color: var(--cream); }
.btn-primary:hover { background: #3a342c; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1611; font-weight: 500; }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(184,151,90,0.12); }
.btn-ghost { border-color: var(--rule-cream); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 11px; letter-spacing: 0.14em; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.textlink { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: 0.18s; }
.textlink:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---- Form fields (editorial underline) ----------------- */
.field { display: block; margin-bottom: 26px; }
.field > .flab {
  display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted-gold); margin-bottom: 10px;
}
.input {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--rule-cream); color: var(--cream);
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  letter-spacing: 0.02em; padding: 10px 2px; transition: border-color 0.18s;
}
.input::placeholder { color: var(--cream-faint); }
.input:focus { outline: none; border-color: var(--gold); }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.6; }
.input.boxed {
  border: 1px solid var(--rule-cream); border-radius: 2px; padding: 14px 16px; background: rgba(255,255,255,0.012);
}
.input.boxed:focus { border-color: var(--gold); }
.fhint { font-size: 12px; color: var(--cream-faint); margin-top: 8px; letter-spacing: 0.02em; }

/* selectable pill / choice chips */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  font-size: 12px; letter-spacing: 0.06em; color: var(--text-soft);
  border: 1px solid var(--rule-cream); border-radius: 999px;
  padding: 9px 16px; transition: 0.16s; background: transparent; user-select: none;
}
.choice:hover { border-color: var(--gold); color: var(--cream); }
.choice.on { border-color: var(--gold); background: rgba(184,151,90,0.14); color: var(--gold); }

/* toggle switch */
.switch { position: relative; width: 42px; height: 22px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--rule-cream); transition: 0.18s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream-faint); transition: 0.18s; }
.switch.on { border-color: var(--gold); background: rgba(184,151,90,0.2); }
.switch.on::after { left: 22px; background: var(--gold); }

/* ---- OTP ----------------------------------------------- */
.otp { display: flex; gap: 12px; justify-content: center; }
.otp .cell {
  width: 52px; height: 64px; border: 1px solid var(--rule-cream); border-radius: 3px;
  background: rgba(255,255,255,0.015); color: var(--cream); text-align: center;
  font-family: var(--font-display); font-size: 30px; letter-spacing: 0; transition: 0.16s;
}
.otp .cell:focus { outline: none; border-color: var(--gold); background: rgba(184,151,90,0.08); }
.otp .cell.filled { border-color: var(--gold); }

/* ---- Photo placeholder (shot-list driven) -------------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(184,151,90,0.05) 0 1px, transparent 1px 11px),
    linear-gradient(160deg, #16140f, #0e0d0b);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ph .ph-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: 0.06em; color: var(--muted-gold);
  border: 1px solid var(--rule); border-radius: 2px; padding: 7px 11px;
  background: rgba(10,9,8,0.6); line-height: 1.5; max-width: 86%;
}
.ph .ph-tag b { color: var(--cream); font-weight: 500; }

/* S-01 final photography placed (onboarding backdrop — Become / Verify / Payment / Edit).
   Web crop by default; portrait crop on real phones + the prototype Mobile toggle. */
.ph[data-shot="S-01"] {
  background-image: url("assets/portal-S01-threshold-web.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.ph[data-shot="S-01"] .ph-tag { display: none; }
.stage.phone .ph[data-shot="S-01"] { background-image: url("assets/portal-S01-threshold-mobile.jpg"); }
@media (max-width: 600px) {
  .ph[data-shot="S-01"] { background-image: url("assets/portal-S01-threshold-mobile.jpg"); }
}

/* S-02 final photography placed (Welcome — the home at rest). */
.ph[data-shot="S-02"] {
  background-image: url("assets/portal-S02-home-at-rest-web.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.ph[data-shot="S-02"] .ph-tag { display: none; }
.stage.phone .ph[data-shot="S-02"] { background-image: url("assets/portal-S02-home-at-rest-mobile.jpg"); }
@media (max-width: 600px) {
  .ph[data-shot="S-02"] { background-image: url("assets/portal-S02-home-at-rest-mobile.jpg"); }
}

/* S-03 final photography placed (Home dashboard — next-visit plate; subject right, text left). */
.ph[data-shot="S-03"] {
  background-image: url("assets/portal-S03-next-visit-web.jpg");
  background-size: cover; background-position: right center; background-repeat: no-repeat;
}
.ph[data-shot="S-03"] .ph-tag { display: none; }
.stage.phone .ph[data-shot="S-03"] { background-image: url("assets/portal-S03-next-visit-mobile.jpg"); }
@media (max-width: 600px) {
  .ph[data-shot="S-03"] { background-image: url("assets/portal-S03-next-visit-mobile.jpg"); }
}

/* image with the standing dark gradient overlay */
.plate { position: relative; overflow: hidden; }
.plate > img, .plate > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,5,0.30), rgba(8,7,5,0.66)); }
.plate .ov.lr { background: linear-gradient(90deg, rgba(8,7,5,0.85) 0%, rgba(8,7,5,0.45) 55%, rgba(8,7,5,0.30) 100%); }
.plate .ov.soft { background: linear-gradient(180deg, rgba(8,7,5,0.18), rgba(8,7,5,0.5)); }

/* ---- Cards --------------------------------------------- */
.card {
  background: var(--surface-card); border: 1px solid var(--rule);
  border-radius: 5px; padding: 26px 28px; transition: 0.2s var(--ease);
}
.card.inset { background: var(--panel-2); }
.card.rule-card { border: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-radius: 0; background: transparent; padding: 30px 0; }
.card.hoverable { cursor: pointer; }
.card.hoverable:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(0,0,0,.35); }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-gold); }
.stat .v { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.stat .s { font-size: 12px; color: var(--text-soft); letter-spacing: 0.02em; }

/* data chip */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted-gold); }
.chip.live { color: var(--gold); border-color: var(--gold); }
.chip.dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* list rows */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--rule); transition: 0.16s;
}
.row:first-child { border-top: 0; }
.row .rl { flex: 1; min-width: 0; }
.row .rt { font-size: 14.5px; color: var(--cream); letter-spacing: 0.01em; }
.row .rs { font-size: 12.5px; color: var(--text-soft); margin-top: 3px; letter-spacing: 0.01em; }
.row .rp { font-family: var(--font-display); font-size: 20px; color: var(--cream); white-space: nowrap; }
.row .rp .per { font-family: var(--font-body); font-size: 11px; color: var(--muted-gold); letter-spacing: 0.08em; }

/* numerals */
.num { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   PROTOTYPE STAGE + DEVICE FRAMING
   ============================================================ */
.stage {
  min-height: 100vh; display: flex; align-items: stretch; justify-content: center;
  padding: 0; transition: padding 0.3s var(--ease);
}
.stage.phone { align-items: center; padding: 40px 16px 120px; background:
  radial-gradient(1200px 700px at 50% -10%, #15130f 0%, #0a0908 60%); }

.app-frame { width: 100%; min-height: 100vh; position: relative; background: var(--noir); }

.stage.phone .app-frame {
  width: 402px; min-height: 0; height: 858px; max-height: calc(100vh - 80px);
  border-radius: 46px; border: 1px solid #2a2620; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 8px #080706;
}
.stage.phone .app-frame::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #080706; border-radius: 999px; z-index: 60;
}
.app-scroll { position: relative; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; }
.stage.phone .app-scroll { -webkit-overflow-scrolling: touch; }
.app-scroll::-webkit-scrollbar { width: 8px; }
.app-scroll::-webkit-scrollbar-thumb { background: #2a2620; border-radius: 8px; }

/* screens */
.screen { display: none; }
.screen.active { display: block; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.active { animation: none; } }

/* ============================================================
   ONBOARDING (centered editorial flow)
   ============================================================ */
.flow { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.stage.phone .flow { min-height: 858px; }
.flow-bg { position: absolute; inset: 0; z-index: 0; }
.flow-bg img, .flow-bg .ph { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.flow-bg .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,8,6,0.78), rgba(9,8,6,0.92)); }
.flow-top {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 34px; gap: 16px;
}
.flow-top .mk { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.04em; color: var(--cream); }
.flow-top .mk small { font-family: var(--font-body); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-gold); display: block; margin-top: 2px; }
.flow-steps { display: flex; align-items: center; gap: 10px; }
.flow-steps .st { width: 26px; height: 2px; background: var(--rule-cream); border-radius: 2px; transition: 0.25s; }
.flow-steps .st.done { background: var(--gold); opacity: 0.5; }
.flow-steps .st.now { background: var(--gold); }
.flow-body {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 24px 34px 54px; max-width: 760px; margin: 0 auto; width: 100%;
}
.flow-body.wide { max-width: 1040px; }
.flow-head { text-align: center; margin-bottom: 40px; }
.flow-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; margin-top: 18px; }
.flow-head .sub { font-weight: 300; font-size: 16px; color: var(--text-soft); line-height: 1.7; margin-top: 18px; max-width: 48ch; margin-left: auto; margin-right: auto; }
.flow-foot { text-align: center; margin-top: 30px; font-size: 12.5px; color: var(--cream-faint); letter-spacing: 0.02em; }
.flow-card {
  background: rgba(16,15,12,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule); border-radius: 6px; padding: 38px 40px;
}

/* tier selection */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier-opt {
  position: relative; text-align: left; background: rgba(16,15,12,0.7);
  border: 1px solid var(--rule); border-radius: 5px; padding: 30px 26px 26px;
  transition: 0.18s var(--ease); cursor: pointer;
}
.tier-opt:hover { border-color: var(--gold); transform: translateY(-3px); }
.tier-opt.sel { border-color: var(--gold); background: linear-gradient(180deg, #1d1a13, #141109); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tier-opt .feat-tag { position: absolute; top: -10px; left: 26px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #1a1611; background: var(--gold); padding: 4px 10px; border-radius: 2px; }
.tier-opt .tn { font-family: var(--font-display); font-size: 30px; }
.tier-opt .price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.tier-opt .price .amt { font-family: var(--font-display); font-size: 40px; color: var(--gold); line-height: 1; }
.tier-opt .price .per { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-gold); }
.tier-opt .td { font-size: 13px; font-weight: 300; color: var(--text-soft); line-height: 1.55; margin-top: 14px; min-height: 60px; }
.tier-opt ul { list-style: none; padding: 0; margin: 18px 0 0; }
.tier-opt li { font-size: 13px; font-weight: 300; color: var(--cream); padding: 9px 0; border-top: 1px solid var(--rule); display: flex; gap: 10px; align-items: baseline; }
.tier-opt li::before { content: "—"; color: var(--gold); }
.tier-opt .radio { position: absolute; top: 26px; right: 24px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--rule-cream); transition: 0.16s; }
.tier-opt.sel .radio { border-color: var(--gold); background: radial-gradient(circle at center, var(--gold) 0 5px, transparent 6px); }

.onetime-note { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; justify-content: center; padding: 20px 24px; border: 1px solid var(--rule); border-radius: 4px; background: rgba(16,15,12,0.5); }
.onetime-note .ot { font-size: 13px; color: var(--text-soft); font-weight: 300; }
.onetime-note .ot b { color: var(--cream); font-weight: 400; }
.onetime-note .ot .amt { color: var(--gold); font-family: var(--font-display); font-size: 17px; }

/* profile questionnaire sections */
.q-section { border-top: 1px solid var(--rule); padding: 30px 0; }
.q-section:first-of-type { border-top: 0; padding-top: 6px; }
.q-section .qhead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.q-section .qhead .num { white-space: nowrap; }
.q-section .qhead h3 { font-size: 26px; }
.q-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }

/* payment summary */
.pay-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: start; }
.pay-summary { background: var(--panel-2); border: 1px solid var(--rule); border-radius: 5px; padding: 30px 30px 26px; }
.pay-summary .ln { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--text-soft); }
.pay-summary .ln:first-of-type { border-top: 0; }
.pay-summary .ln .vv { color: var(--cream); }
.pay-summary .ln.total { border-top: 1px solid var(--gold); margin-top: 6px; padding-top: 16px; }
.pay-summary .ln.total .kk { color: var(--cream); font-size: 13px; letter-spacing: 0.04em; }
.pay-summary .ln.total .vv { font-family: var(--font-display); font-size: 28px; color: var(--gold); }
.assurances { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.assurance { display: flex; gap: 12px; align-items: flex-start; }
.assurance .ic { color: var(--gold); flex: none; margin-top: 2px; }
.assurance .at { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; font-weight: 300; }
.assurance .at b { color: var(--cream); font-weight: 400; }

.stripe-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.06em; color: var(--cream-faint); margin-top: 18px; }

/* welcome */
.welcome-wrap { text-align: center; }
.welcome-wrap .seal { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.04em; color: var(--gold); }
.welcome-wrap h1 { font-size: clamp(40px, 6vw, 66px); margin-top: 14px; }
.reset-card-mini {
  background: #efe7d6; color: #1c1814; border-radius: 3px; padding: 30px 30px 34px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6); max-width: 380px; margin: 36px auto 0; transform: rotate(-1.2deg); text-align: left;
}
.reset-card-mini .seal2 { font-family: var(--font-display); font-size: 26px; color: #9a7b43; }
.reset-card-mini .body2 { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.5; margin-top: 18px; color: #221d17; }
.reset-card-mini .sign2 { font-family: var(--font-display); font-style: italic; font-size: 17px; margin-top: 16px; color: #4a3f31; }

/* ============================================================
   MEMBER PORTAL CHROME
   ============================================================ */
.portal { display: grid; min-height: 100vh; grid-template-columns: 248px 1fr; }
.portal.topnav { grid-template-columns: 1fr; }

/* sidebar (nav pattern A) */
.sidebar {
  position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--rule);
  background: linear-gradient(180deg, #100f0c, #0c0b09); display: flex; flex-direction: column;
  padding: 28px 22px; z-index: 20;
}
.sidebar .brand { padding: 4px 8px 26px; border-bottom: 1px solid var(--rule); }
.sidebar .brand .mk { font-family: var(--font-display); font-size: 23px; letter-spacing: 0.04em; }
.sidebar .brand small { font-family: var(--font-body); font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-gold); display: block; margin-top: 3px; }
.snav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; flex: 1; }
.snav a {
  display: flex; align-items: center; gap: 13px; padding: 12px 12px; border-radius: 3px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream);
  opacity: 0.7; transition: 0.16s; position: relative;
}
.snav a .ic { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.snav a:hover { opacity: 1; color: var(--gold); background: rgba(184,151,90,0.06); }
.snav a.on { opacity: 1; color: var(--gold); background: rgba(184,151,90,0.1); }
.snav a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--gold); border-radius: 2px; }
.sidebar .who { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; color: var(--gold); flex: none; }
.sidebar .who .nm { font-size: 13px; color: var(--cream); }
.sidebar .who .pl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-gold); margin-top: 2px; }

/* top nav (nav pattern B) */
.topbar { display: none; }
.portal.topnav .topbar {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 22px 40px 0; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20;
  background: rgba(17,17,17,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.portal.topnav .sidebar { display: none; }
.topbar .tbrow { width: 100%; max-width: 1160px; display: flex; align-items: center; justify-content: space-between; }
.topbar .mk { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.05em; }
.topbar .mk small { font-family: var(--font-body); font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-gold); display: block; }
.tnav { display: flex; gap: 30px; padding-bottom: 14px; }
.tnav a { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); opacity: 0.72; padding-bottom: 10px; border-bottom: 1px solid transparent; transition: 0.16s; }
.tnav a:hover { opacity: 1; color: var(--gold); }
.tnav a.on { opacity: 1; color: var(--gold); border-color: var(--gold); }

/* bottom tabs (mobile) */
.tabbar { display: none; }

/* main content */
.main { min-width: 0; position: relative; }
.main-inner { max-width: 1080px; margin: 0 auto; padding: 46px 48px 90px; }
.portal.topnav .main-inner { padding-top: 42px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; }
.pagehead .sub { font-size: 14px; color: var(--text-soft); font-weight: 300; margin-top: 10px; letter-spacing: 0.01em; }

/* greeting strip / next visit plate */
.nextvisit {
  position: relative; min-height: 280px; border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end;
  border: 1px solid var(--rule); margin-bottom: 28px;
}
.nextvisit .body { position: relative; z-index: 2; padding: 34px 36px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nextvisit .when { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin-top: 10px; }
.nextvisit .meta { font-size: 13px; color: var(--text-soft); margin-top: 12px; letter-spacing: 0.02em; }
.nextvisit .meta b { color: var(--cream); font-weight: 400; }

/* dashboard grids */
.dash { display: grid; gap: 24px; }
.dash.ledger { grid-template-columns: 1.55fr 1fr; align-items: start; }
.dash-col { display: grid; gap: 24px; min-width: 0; }
.cardhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; }
.cardhead h3 { font-size: 22px; }
.cardhead .more { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border: 1px solid var(--rule); border-radius: 4px; transition: 0.16s; }
.quick a:hover { border-color: var(--gold); background: rgba(184,151,90,0.06); }
.quick a .ic { color: var(--gold); flex: none; }
.quick a .qt { font-size: 12px; letter-spacing: 0.08em; color: var(--cream); }

/* add-ons menu */
.addon-cat { margin-bottom: 38px; }
.addon-cat .cathead { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.addon-cat .cathead h3 { font-size: 24px; white-space: nowrap; }
.addon-cat .cathead .ln { flex: 1; height: 1px; background: var(--rule); }
.addon-row { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid var(--rule); }
.addon-row .al { flex: 1; min-width: 0; }
.addon-row .at { font-size: 15px; color: var(--cream); letter-spacing: 0.01em; }
.addon-row .ad { font-size: 12.5px; color: var(--text-soft); margin-top: 3px; font-weight: 300; }
.addon-row .apr { font-family: var(--font-display); font-size: 21px; color: var(--cream); white-space: nowrap; }
.addon-row .apr .u { font-family: var(--font-body); font-size: 11px; color: var(--muted-gold); letter-spacing: 0.06em; }
.addbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule-cream); color: var(--gold); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: 0.16s; flex: none; background: transparent; line-height: 1; }
.addbtn:hover { border-color: var(--gold); background: rgba(184,151,90,0.12); }
.addbtn.on { border-color: var(--gold); background: var(--gold); color: #1a1611; }

/* request tray */
.tray {
  position: sticky; bottom: 0; margin-top: 8px; background: rgba(16,15,12,0.96); backdrop-filter: blur(10px);
  border: 1px solid var(--gold); border-radius: 6px; padding: 18px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.tray .tc { font-size: 13px; color: var(--text-soft); }
.tray .tc b { font-family: var(--font-display); font-size: 22px; color: var(--gold); }

/* schedule / calendar */
.cal { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.cal .calhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.cal .calhead .mo { font-family: var(--font-display); font-size: 24px; }
.cal .calhead button { width: 32px; height: 32px; border: 1px solid var(--rule-cream); border-radius: 3px; background: transparent; color: var(--cream); transition: 0.16s; }
.cal .calhead button:hover { border-color: var(--gold); color: var(--gold); }
.cal .dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 18px 0; }
.cal .dow span { text-align: center; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-gold); }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px 18px 18px; }
.cal .day { aspect-ratio: 1; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--text-soft); position: relative; transition: 0.14s; border: 1px solid transparent; }
.cal .day.mute { color: var(--cream-faint); }
.cal .day.pick:hover { border-color: var(--rule-cream); cursor: pointer; }
.cal .day.visit { background: rgba(184,151,90,0.12); border-color: var(--gold); color: var(--gold); cursor: pointer; }
.cal .day.visit::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-top: 4px; }
.cal .day.today { color: var(--cream); border-color: var(--rule-cream); }

/* messages */
.thread { display: flex; flex-direction: column; gap: 16px; padding: 8px 2px 24px; }
.msg { max-width: 76%; padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.55; font-weight: 300; letter-spacing: 0.01em; }
.msg.them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--rule); border-bottom-left-radius: 3px; color: var(--cream); }
.msg.me { align-self: flex-end; background: rgba(184,151,90,0.14); border: 1px solid var(--rule); border-bottom-right-radius: 3px; color: var(--cream); }
.msg .mfrom { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-gold); margin-bottom: 6px; }
.msg-day { text-align: center; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-faint); margin: 10px 0; }
.composer { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--rule); padding-top: 18px; }
.composer .input { border: 1px solid var(--rule-cream); border-radius: 999px; padding: 13px 20px; }

/* receipts */
.receipt-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.receipt-row:first-child { border-top: 0; }
.receipt-row .rd { font-size: 13px; color: var(--text-soft); width: 110px; flex: none; letter-spacing: 0.02em; }
.receipt-row .rl2 { flex: 1; font-size: 14px; color: var(--cream); }
.receipt-row .ra { font-family: var(--font-display); font-size: 18px; color: var(--cream); }
.receipt-row .rstat { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* profile readout */
.profrow { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.profrow:first-child { border-top: 0; }
.profrow .pk { width: 180px; flex: none; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-gold); padding-top: 3px; }
.profrow .pv { flex: 1; font-size: 14.5px; color: var(--cream); font-weight: 300; line-height: 1.5; }
.profrow .pv .tagset { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   TEAM APP SHELL
   ============================================================ */
.team { min-height: 100vh; background: #0c0b09; }
.team-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: rgba(12,11,9,0.95); backdrop-filter: blur(12px); z-index: 20; }
.team-top .mk { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.04em; }
.team-top .mk small { font-family: var(--font-body); font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-gold); display: block; }
.team-inner { max-width: 880px; margin: 0 auto; padding: 30px 26px 80px; }
.team-tabs { display: flex; gap: 8px; margin-bottom: 26px; }
.team-tabs button { flex: 1; padding: 11px; border: 1px solid var(--rule); border-radius: 3px; background: transparent; color: var(--text-soft); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; transition: 0.16s; }
.team-tabs button.on { border-color: var(--gold); color: var(--gold); background: rgba(184,151,90,0.08); }
.team-view { display: none; }
.team-view.on { display: block; animation: fadeUp 0.3s var(--ease); }

.visit-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 5px; margin-bottom: 12px; transition: 0.16s; cursor: pointer; }
.visit-item:hover { border-color: var(--gold); }
.visit-item .vt { font-family: var(--font-display); font-size: 22px; flex: none; width: 70px; text-align: center; color: var(--gold); }
.visit-item .vt small { display: block; font-family: var(--font-body); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-gold); }
.visit-item .vl { flex: 1; }
.visit-item .va { font-size: 15px; color: var(--cream); }
.visit-item .vs { font-size: 12.5px; color: var(--text-soft); margin-top: 3px; }
.visit-item .vstat { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-gold); }
.visit-item .vstat.done { color: var(--gold); }

.brief { display: grid; gap: 18px; }
.brief-block { border: 1px solid var(--rule); border-radius: 5px; padding: 22px 24px; }
.brief-block.warn { border-color: rgba(184,151,90,0.5); background: rgba(184,151,90,0.05); }
.brief-block .bh { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.brief-block .bb { font-size: 14.5px; color: var(--cream); font-weight: 300; line-height: 1.6; }
.brief-block .tagset { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   PROTOTYPE CONTROL PANEL
   ============================================================ */
.proto {
  position: fixed; right: 18px; bottom: 18px; z-index: 200; width: 286px;
  background: rgba(14,13,11,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  font-family: var(--font-body); overflow: hidden; transition: 0.25s var(--ease);
}
.proto.min { width: 188px; }
.proto-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.proto-head .pt { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.proto-head button { background: none; border: 0; color: var(--cream-faint); font-size: 16px; line-height: 1; padding: 0 2px; }
.proto-head button:hover { color: var(--gold); }
.proto-body { padding: 14px 16px 16px; max-height: 70vh; overflow-y: auto; }
.proto.min .proto-body { display: none; }
.proto-grp { margin-bottom: 16px; }
.proto-grp:last-child { margin-bottom: 0; }
.proto-grp .gl { font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-gold); margin-bottom: 8px; }
.seg { display: flex; gap: 5px; }
.seg button {
  flex: 1; padding: 8px 6px; border: 1px solid var(--rule-cream); border-radius: 3px; background: transparent;
  color: var(--text-soft); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; transition: 0.14s;
}
.seg button.on { border-color: var(--gold); color: var(--gold); background: rgba(184,151,90,0.12); }
.proto-jump { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.proto-jump button {
  padding: 8px 6px; border: 1px solid var(--rule); border-radius: 3px; background: transparent;
  color: var(--text-soft); font-size: 9.5px; letter-spacing: 0.06em; transition: 0.14s; text-align: left;
}
.proto-jump button:hover { border-color: var(--gold); color: var(--cream); }
.proto-jump button.on { border-color: var(--gold); color: var(--gold); background: rgba(184,151,90,0.1); }
.proto-jump .full { grid-column: 1 / -1; }
.proto-note { font-size: 10px; color: var(--cream-faint); line-height: 1.5; margin-top: 4px; }

/* ============================================================
   THE REFINED PROFILE — cream / linen surface
   Per build spec: the member-facing Profile is light/cream
   (the dark app is the owner review copy). Echoes the Reset
   Card + printed courtesy. Consent-first, safety-gated.
   ============================================================ */
.cream-wrap { background: #100f0c; padding: 0; }
.cream {
  --c-ink: #20190f; --c-ink-soft: #5c5142; --c-ink-faint: #8a7d68;
  --c-gold: #9a7b43; --c-rule: rgba(60,48,28,0.22); --c-rule-strong: #b8975a;
  --c-paper: #f1eae0; --c-paper-2: #e9e0d2;
  background:
    radial-gradient(1200px 500px at 80% -8%, #f6f0e6 0%, transparent 60%),
    linear-gradient(180deg, #f1eae0, #ece2d2);
  color: var(--c-ink); font-family: var(--font-body); position: relative;
}
.cream .paper-edge { height: 4px; background: linear-gradient(90deg, transparent, var(--c-rule-strong), transparent); opacity: 0.7; }
.cream-inner { max-width: 760px; margin: 0 auto; padding: 48px 50px 64px; }
.stage.phone .cream-inner { padding: 32px 24px 56px; }

.cream .pf-top { text-align: center; margin-bottom: 14px; }
.cream .pf-mk { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.05em; color: var(--c-ink); }
.cream .pf-mk small { display: block; font-family: var(--font-body); font-size: 8.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--c-gold); margin-top: 4px; }
.cream .pf-flank { display: inline-flex; align-items: center; gap: 12px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-gold); margin: 20px 0 14px; }
.cream .pf-flank::before, .cream .pf-flank::after { content: ""; height: 1px; width: 32px; background: var(--c-gold); opacity: 0.6; }
.cream .pf-title { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 46px); line-height: 1.06; letter-spacing: 0.02em; text-align: center; }
.cream .pf-sub { text-align: center; font-size: 14.5px; font-weight: 300; color: var(--c-ink-soft); line-height: 1.7; margin: 16px auto 0; max-width: 52ch; }

/* progress through the record */
.pf-progress { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 26px 0 4px; flex-wrap: wrap; }
.pf-progress .pp { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink-faint); display: flex; align-items: center; gap: 8px; }
.pf-progress .pp .bar { width: 22px; height: 2px; background: var(--c-rule); border-radius: 2px; }
.pf-progress .pp.done .bar, .pf-progress .pp.now .bar { background: var(--c-gold); }
.pf-progress .pp.now { color: var(--c-gold); }

.cream hr.pf-rule { border: 0; height: 1px; background: var(--c-rule); margin: 0; }

/* sections */
.pf-section { padding: 36px 0; border-top: 1px solid var(--c-rule); }
.pf-section:first-of-type { border-top: 0; }
.pf-sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.pf-sec-head .pf-letter { font-family: var(--font-display); font-size: 17px; color: var(--c-gold); letter-spacing: 0.04em; white-space: nowrap; }
.pf-sec-head h3 { font-family: var(--font-display); font-size: 28px; color: var(--c-ink); letter-spacing: 0.02em; }
.pf-sec-head .pf-scope { margin-left: auto; font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-ink-faint); border: 1px solid var(--c-rule); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pf-sec-intro { font-size: 13.5px; font-weight: 300; color: var(--c-ink-soft); line-height: 1.65; margin-bottom: 22px; max-width: 60ch; }

/* cream fields */
.pf-field { margin-bottom: 22px; }
.pf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.stage.phone .pf-grid2 { grid-template-columns: 1fr; }
.pf-lab { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 9px; }
.pf-lab .req { color: #b5544a; margin-left: 5px; }
.pf-lab .opt { color: var(--c-ink-faint); font-weight: 400; letter-spacing: 0.06em; text-transform: none; margin-left: 6px; font-size: 11px; }
.pf-input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(60,48,28,0.3);
  color: var(--c-ink); font-family: var(--font-body); font-size: 16px; font-weight: 300;
  padding: 9px 2px; letter-spacing: 0.01em; transition: border-color 0.16s;
}
.pf-input::placeholder { color: var(--c-ink-faint); opacity: 0.7; }
.pf-input:focus { outline: none; border-color: var(--c-gold); }
textarea.pf-input { resize: vertical; min-height: 70px; line-height: 1.6; border: 1px solid rgba(60,48,28,0.26); border-radius: 3px; padding: 12px 14px; }
.pf-hint { font-size: 12px; color: var(--c-ink-faint); margin-top: 7px; font-weight: 300; }

/* cream choices */
.pf-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.pf-choice { font-size: 12.5px; letter-spacing: 0.04em; color: var(--c-ink-soft); border: 1px solid rgba(60,48,28,0.3); border-radius: 999px; padding: 9px 15px; transition: 0.14s; background: transparent; user-select: none; }
.pf-choice:hover { border-color: var(--c-gold); color: var(--c-ink); }
.pf-choice.on { border-color: var(--c-gold); background: rgba(154,123,67,0.16); color: #6b521f; }

/* consent toggles — default off */
.consent { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-top: 1px solid var(--c-rule); }
.consent:first-of-type { border-top: 0; }
.consent .cl { flex: 1; }
.consent .ct { font-size: 14.5px; color: var(--c-ink); letter-spacing: 0.01em; }
.consent .cd { font-size: 12.5px; color: var(--c-ink-soft); margin-top: 4px; font-weight: 300; line-height: 1.5; }
.consent .cd.locked { color: #9a6a4a; }
.cswitch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #ddd2bf; border: 1px solid rgba(60,48,28,0.3); transition: 0.18s; flex: none; margin-top: 2px; cursor: pointer; }
.cswitch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: 0.18s; }
.cswitch.on { background: var(--c-gold); border-color: var(--c-gold); }
.cswitch.on::after { left: 22px; }
.cswitch.locked { opacity: 0.45; pointer-events: none; background: #d8cdba; }
.consent-default { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink-faint); border: 1px solid var(--c-rule); border-radius: 2px; padding: 2px 7px; align-self: flex-start; margin-top: 4px; }

/* reveal blocks (conditional) */
.pf-reveal { display: none; padding: 18px 0 6px 20px; margin-left: 4px; border-left: 2px solid rgba(154,123,67,0.4); margin-top: 6px; }
.pf-reveal.show { display: block; animation: fadeUp 0.3s var(--ease); }

/* safety / notice banners */
.pf-notice { display: flex; gap: 13px; align-items: flex-start; border-radius: 4px; padding: 16px 18px; font-size: 13px; line-height: 1.55; font-weight: 300; margin: 6px 0 4px; }
.pf-notice .ni { flex: none; margin-top: 1px; }
.pf-notice.safety { background: rgba(181,84,74,0.1); border: 1px solid rgba(181,84,74,0.4); color: #7a3a33; }
.pf-notice.safety b { color: #5e2a25; font-weight: 500; }
.pf-notice.vault { background: rgba(154,123,67,0.1); border: 1px solid rgba(154,123,67,0.4); color: #6b521f; }
.pf-notice.vault b { color: #4f3c15; font-weight: 500; }
.pf-notice.excl { background: rgba(60,48,28,0.05); border: 1px solid var(--c-rule); color: var(--c-ink-soft); }

/* repeatable group (pets, rooms) */
.pf-repeat { border: 1px solid var(--c-rule); border-radius: 5px; padding: 22px 22px 8px; margin-bottom: 14px; background: rgba(255,255,255,0.25); }
.pf-repeat .rh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pf-repeat .rh .rn { font-family: var(--font-display); font-size: 20px; color: var(--c-ink); }
.pf-addmore { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); border: 1px solid var(--c-gold); border-radius: 2px; padding: 11px 18px; background: transparent; transition: 0.16s; }
.pf-addmore:hover { background: rgba(154,123,67,0.12); }

/* acknowledgment / signature */
.pf-sign { border: 1px solid rgba(60,48,28,0.3); border-radius: 4px; height: 92px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.3); position: relative; }
.pf-sign .sigtext { font-family: var(--font-display); font-style: italic; font-size: 30px; color: #2b2114; }
.pf-sign .sigline { position: absolute; left: 22px; right: 22px; bottom: 22px; border-bottom: 1px solid rgba(60,48,28,0.3); }
.pf-ack { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--c-rule); }
.pf-ack:first-of-type { border-top: 0; }
.pf-check { width: 22px; height: 22px; border: 1px solid var(--c-gold); border-radius: 3px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--c-gold); font-size: 14px; transition: 0.14s; margin-top: 1px; cursor: pointer; background: transparent; }
.pf-check.on { background: var(--c-gold); color: #fff; }
.pf-ack .ak { font-size: 13.5px; color: var(--c-ink); line-height: 1.55; font-weight: 300; }
.pf-ack .ak b { font-weight: 500; }

/* cream buttons */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 16px 32px; border-radius: 2px; border: 1px solid transparent; transition: all 0.18s var(--ease); }
.pf-btn-primary { background: #2b2114; color: #f1eae0; border-color: #2b2114; }
.pf-btn-primary:hover { background: #3d2f1c; }
.pf-btn-gold { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }
.pf-btn-gold:hover { background: #ad8b50; }
.pf-btn-outline { border-color: rgba(60,48,28,0.4); color: var(--c-ink); }
.pf-btn-outline:hover { border-color: var(--c-gold); color: var(--c-gold); }
.pf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--c-rule); flex-wrap: wrap; }
.pf-foot .pf-save { font-size: 12px; color: var(--c-ink-faint); font-weight: 300; }

/* portal profile record (readout in cream, sits in dark app) */
.profile-record { border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }

/* toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--dark-2); border: 1px solid var(--gold); color: var(--cream); padding: 13px 24px;
  border-radius: 3px; font-size: 13px; letter-spacing: 0.03em; z-index: 250; transition: 0.3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RESPONSIVE — phone frame & true small screens
   ============================================================ */
.stage.phone .portal { grid-template-columns: 1fr; }
.stage.phone .sidebar, .stage.phone .portal.topnav .topbar { display: none; }
.stage.phone .main-inner { padding: 30px 20px 110px; }
.stage.phone .dash.ledger { grid-template-columns: 1fr; }
.stage.phone .tier-grid { grid-template-columns: 1fr; }
.stage.phone .q-grid2 { grid-template-columns: 1fr; }
.stage.phone .pay-grid { grid-template-columns: 1fr; }
.stage.phone .quick { grid-template-columns: 1fr; }
.stage.phone .flow-body { padding: 18px 22px 40px; }
.stage.phone .flow-top { padding: 18px 22px; }
.stage.phone .flow-card { padding: 26px 22px; }
.stage.phone .tabbar {
  display: flex; position: absolute; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(12,11,9,0.97); backdrop-filter: blur(14px); border-top: 1px solid var(--rule);
  padding: 10px 8px 14px; justify-content: space-around;
}
.stage.phone .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--cream); opacity: 0.6; transition: 0.16s; padding: 4px 10px; }
.stage.phone .tabbar a .ic { width: 19px; height: 19px; }
.stage.phone .tabbar a .tl { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.stage.phone .tabbar a.on { opacity: 1; color: var(--gold); }
.stage.phone .pagehead h1 { font-size: 30px; }
.stage.phone .nextvisit .body { padding: 24px 22px; }

/* when the real browser is narrow (mobile users), collapse desktop chrome too */
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .sidebar, .portal.topnav .topbar { display: none !important; }
  .main-inner { padding: 28px 20px 110px; }
  .dash.ledger { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .q-grid2, .pay-grid, .quick { grid-template-columns: 1fr; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: rgba(12,11,9,0.97); backdrop-filter: blur(14px); border-top: 1px solid var(--rule);
    padding: 10px 8px 14px; justify-content: space-around;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--cream); opacity: 0.6; padding: 4px 10px; }
  .tabbar a .tl { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; }
  .tabbar a.on { opacity: 1; color: var(--gold); }
  /* keep the prototype controls reachable on narrow screens — lift above the
     mobile tab bar and let the body scroll instead of hiding it */
  .proto { right: 12px; bottom: 78px; width: 220px; }
  .proto .proto-body { max-height: 50vh; }
}
.tabbar { display: none; }
