/* ============================================================================
   EGIS · BEME Funnel — Visual System
   Builds on tokens.css. A calm, cinematic, step-by-step engineering journey.
   ========================================================================== */

.beme-body { background: radial-gradient(circle at 50% -10%, #14100a 0%, var(--black) 55%); min-height: 100vh; }

/* ---- Top bar ------------------------------------------------------------ */
.beme-top {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad); background: rgba(5,5,6,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.beme-top .brand { display: flex; align-items: center; gap: 10px; }
.beme-top .brand img { width: 34px; filter: drop-shadow(0 0 10px rgba(242,194,0,.4)); }
.beme-top .brand b { font-family: var(--f-display); font-weight: 800; letter-spacing: .04em; }
.beme-top .save { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }

/* ---- Progress rail ------------------------------------------------------ */
.rail { display: flex; gap: 6px; align-items: center; }
.rail .dot { display: flex; align-items: center; gap: 8px; }
.rail .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--faint); background: var(--ink-2); transition: .4s;
}
.rail .lbl { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); transition: .4s; }
.rail .seg { width: 26px; height: 1px; background: var(--line); }
.rail .dot.active .n { border-color: var(--gold); color: #000; background: var(--grad-brand); box-shadow: var(--glow-gold); }
.rail .dot.active .lbl { color: var(--gold); }
.rail .dot.done .n { border-color: var(--green); color: var(--green); }
@media (max-width: 900px){ .rail .lbl { display: none; } }

/* ---- Stage --------------------------------------------------------------- */
.stage { max-width: 1080px; margin: 0 auto; padding: clamp(30px, 6vw, 64px) var(--pad) 160px; }
.step { animation: stepIn .6s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.step-head { margin-bottom: 34px; }
.step-head .kick { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.step-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; margin: 12px 0 12px; }
.step-head p { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

/* ---- Category chips ----------------------------------------------------- */
.cat-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--glass);
  color: var(--muted); cursor: pointer; font-size: .85rem; transition: .3s; white-space: nowrap;
}
.cat:hover { border-color: var(--line-strong); color: var(--white); }
.cat.active { background: var(--grad-brand); color: #071206; border-color: transparent; font-weight: 600; }

/* ---- Search ------------------------------------------------------------- */
.search-wrap { position: relative; margin-bottom: 24px; }
.search-wrap input {
  width: 100%; padding: 18px 20px 18px 52px; font-size: 1.05rem; color: var(--white);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; font-family: var(--f-body);
  transition: .3s;
}
.search-wrap input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(242,194,0,.08); }
.search-wrap .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; opacity: .6; }

/* ---- Load Builder layout (Step 1) -------------------------------------- */
.builder-grid { display: grid; grid-template-columns: 1fr 350px; gap: 26px; align-items: start; }
.builder-pick { min-width: 0; }
.builder-grid .app-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

.loadlist-panel {
  position: sticky; top: 92px; border: 1px solid var(--line-strong); border-radius: 20px;
  background: linear-gradient(170deg, rgba(242,194,0,.06), var(--ink)); overflow: hidden;
}
.ll-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ll-title { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; }
.ll-count { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ll-totals { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 14px; }
.llt { text-align: center; padding: 12px 6px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.llt .v { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; }
.llt .v span { font-size: .7rem; font-weight: 600; color: var(--faint); }
.llt .l { font-family: var(--f-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.llt.gold { background: linear-gradient(160deg, rgba(242,194,0,.18), var(--ink-2)); border-color: var(--line-strong); }
.llt.green { background: linear-gradient(160deg, rgba(86,176,51,.18), var(--ink-2)); }
.ll-items { max-height: 340px; overflow-y: auto; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.ll-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); animation: stepIn .35s var(--ease-out); }
.lli-ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-size: 1.25rem; background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid var(--line); overflow: hidden; }
.lli-ic img { width: 100%; height: 100%; object-fit: cover; }
.lli-main { flex: 1; min-width: 0; }
.lli-nm { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lli-x { color: var(--gold); font-family: var(--f-mono); font-size: .78rem; }
.lli-sub { font-family: var(--f-mono); font-size: .62rem; color: var(--faint); margin-top: 2px; }
.lli-sub b { color: var(--lime); }
.lli-act { display: flex; gap: 4px; }
.lli-act button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink-2); color: var(--muted); cursor: pointer; font-size: .8rem; transition: .3s; }
.lli-act button[data-edit]:hover { border-color: var(--gold); color: var(--gold); }
.lli-act button[data-del]:hover { border-color: #ff7a7a; color: #ff7a7a; }
.ll-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 20px; text-align: center; color: var(--faint); font-size: .86rem; }
.ll-empty .ic { font-size: 2rem; opacity: .5; }
.ll-done { width: calc(100% - 28px); margin: 14px; }

/* Config modal (capacity + usage for one appliance) */
.modal.cfg { width: min(440px, 100%); }
.cfg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cfg-ic { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid var(--line); overflow: hidden; }
.cfg-fields { display: flex; flex-direction: column; gap: 14px; }
.cfg-f label { display: block; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.cfg-f .stepper { display: flex; align-items: center; gap: 8px; }
.cfg-f .stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink); color: var(--white); cursor: pointer; font-size: 1.1rem; }
.cfg-f .stepper button:hover { border-color: var(--gold); color: var(--gold); }
.cfg-f .stepper input { flex: 1; text-align: center; padding: 9px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; color: var(--white); font-family: var(--f-mono); font-size: 1rem; }
.cfg-f .stepper .unit { font-family: var(--f-mono); font-size: .78rem; color: var(--faint); width: 20px; }
.cfg-live { text-align: center; margin: 18px 0; font-size: .9rem; color: var(--muted); }
.cfg-live b { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--gold); }

@media (max-width: 980px){
  .builder-grid { grid-template-columns: 1fr; }
  .loadlist-panel { position: static; }
  .ll-items { max-height: none; }
}

/* ---- Appliance grid ----------------------------------------------------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.app-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass);
  cursor: pointer; transition: .3s; text-align: center;
}
.app-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--glass-2); }
.app-card.picked { border-color: var(--gold); background: rgba(242,194,0,.08); }
.app-card .thumb {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 1.9rem;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid var(--line); overflow: hidden;
}
.app-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-card .nm { font-size: .86rem; color: var(--white); line-height: 1.25; }
.app-card .w { font-family: var(--f-mono); font-size: .64rem; color: var(--faint); }
.app-card .badge { position: absolute; top: 8px; right: 8px; font-size: .55rem; font-family: var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--lime); background: rgba(140,198,62,.14);
  padding: 3px 7px; border-radius: 100px; }
.app-card .tick { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-brand); display: none; place-items: center; color: #000; font-size: .8rem; font-weight: 700; }
.app-card.picked .tick { display: grid; }

/* Add-custom card */
.app-card.add { border-style: dashed; }
.app-card.add .thumb { background: rgba(140,198,62,.08); color: var(--lime); }

/* ---- Selected tray ------------------------------------------------------ */
.tray {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(9,10,12,.9); backdrop-filter: blur(18px); border-top: 1px solid var(--line-strong);
  padding: 14px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(105%); transition: transform .5s var(--ease-out);
}
.tray.show { transform: none; }
.tray .count { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.tray .count b { color: var(--gold); font-size: 1.1rem; }
.tray .chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.tray .chips::-webkit-scrollbar { display: none; }
.tray .chip { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 100px; font-size: .78rem; }
.tray .chip .x { cursor: pointer; color: var(--faint); }
.tray .chip .x:hover { color: #ff6b6b; }

/* ---- Detail rows (step 2) ---------------------------------------------- */
.detail-list { display: flex; flex-direction: column; gap: 12px; }
.drow {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass);
}
.drow .who { display: flex; align-items: center; gap: 12px; }
.drow .who .thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid var(--line); overflow: hidden; }
.drow .who .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drow .who .nm { font-size: .95rem; }
.drow .who .sub { font-family: var(--f-mono); font-size: .62rem; color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.field .stepper { display: flex; align-items: center; gap: 6px; }
.field .stepper button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--ink-2); color: var(--white); cursor: pointer; font-size: 1rem; }
.field .stepper button:hover { border-color: var(--gold); color: var(--gold); }
.field input { width: 68px; text-align: center; padding: 6px; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 8px; color: var(--white); font-family: var(--f-mono); }
.when-chips { display: flex; gap: 4px; }
.when-chips button { padding: 6px 10px; border: 1px solid var(--line); background: var(--ink-2); color: var(--muted);
  border-radius: 8px; cursor: pointer; font-size: .72rem; }
.when-chips button.on { background: var(--grad-brand); color: #000; border-color: transparent; font-weight: 600; }
@media (max-width: 760px){ .drow { grid-template-columns: 1fr 1fr; } .drow .who { grid-column: 1 / -1; } }

/* ---- Preferences (step 3) ---------------------------------------------- */
.pref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pref-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); }
.pref-card h3 { font-family: var(--f-head); font-size: 1.05rem; margin-bottom: 6px; }
.pref-card p { color: var(--faint); font-size: .82rem; margin-bottom: 16px; }
.region-opts { display: flex; flex-direction: column; gap: 8px; }
.region-opts .r { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .3s; }
.region-opts .r:hover { border-color: var(--line-strong); }
.region-opts .r.on { border-color: var(--gold); background: rgba(242,194,0,.06); }
.region-opts .r .eg { font-size: .74rem; color: var(--faint); }
.region-opts .r .psh { font-family: var(--f-mono); color: var(--lime); font-size: .78rem; }
.slider-big { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 100px; outline: none;
  background: linear-gradient(90deg, var(--green), var(--gold)); margin: 8px 0; }
.slider-big::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 4px solid var(--gold); cursor: pointer; box-shadow: var(--glow-gold); }
.slider-val { font-family: var(--f-display); font-weight: 800; font-size: 2rem; }
.slider-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .6rem; color: var(--faint); margin-top: 4px; }
@media (max-width: 760px){ .pref-grid { grid-template-columns: 1fr; } }

/* ---- Report (step 4) ---------------------------------------------------- */
.report { display: flex; flex-direction: column; gap: 16px; }
.rsection { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--glass); }
.rsection > .rhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; }
.rsection > .rhead .lft { display: flex; align-items: center; gap: 14px; }
.rsection > .rhead .num { font-family: var(--f-mono); font-size: .72rem; color: var(--gold); }
.rsection > .rhead h3 { font-family: var(--f-head); font-size: 1.15rem; }
.rsection > .rhead .chev { transition: transform .4s; color: var(--faint); }
.rsection.open > .rhead .chev { transform: rotate(180deg); }
.rbody { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.rsection.open .rbody { max-height: 3000px; }
.rbody-inner { padding: 4px 22px 24px; }

/* headline stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.scard { padding: 18px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.scard .v { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; }
.scard .l { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.scard.gold { background: linear-gradient(160deg, rgba(242,194,0,.16), var(--ink)); border-color: var(--line-strong); }
.scard.green { background: linear-gradient(160deg, rgba(86,176,51,.16), var(--ink)); }

/* scenario cards */
.scen-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.scen { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; transition: .3s; }
.scen:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.scen.on { border-color: var(--gold); background: rgba(242,194,0,.06); }
.scen h4 { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.scen .note { font-size: .8rem; color: var(--muted); min-height: 54px; }
.scen .price { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; margin: 10px 0 2px; }
.scen .sub { font-family: var(--f-mono); font-size: .62rem; color: var(--faint); }
@media (max-width: 760px){ .scen-grid { grid-template-columns: 1fr; } }

/* comparison cards (battery/inverter) */
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.cmp { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); }
.cmp.reco { border-color: var(--green); }
.cmp h4 { font-family: var(--f-head); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.cmp .tag { font-family: var(--f-mono); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime);
  background: rgba(140,198,62,.14); padding: 3px 8px; border-radius: 100px; }
.cmp .row { display: flex; gap: 8px; font-size: .82rem; margin-top: 8px; color: var(--muted); }
.cmp .pro::before { content: "✓ "; color: var(--green); }
.cmp .con::before { content: "✕ "; color: #ff7a7a; }
.cmp .best { margin-top: 12px; font-size: .8rem; color: var(--silver); font-style: italic; }
.cmp .meta { display: flex; gap: 14px; margin-top: 12px; font-family: var(--f-mono); font-size: .68rem; color: var(--faint); }

/* BOM table */
.bom { width: 100%; border-collapse: collapse; }
.bom th, .bom td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.bom th { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.bom td.num { text-align: right; font-family: var(--f-mono); }
.bom tr.total td { border-top: 2px solid var(--gold); border-bottom: none; font-weight: 700; font-size: 1.05rem; padding-top: 16px; }
.bom tr.total td.num { color: var(--gold); }

/* ---- Products (step 5) -------------------------------------------------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.prod { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--glass); transition: .3s; }
.prod:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.prod .top { height: 120px; display: grid; place-items: center; font-size: 2.6rem;
  background: radial-gradient(circle at 40% 20%, rgba(242,194,0,.2), transparent 60%), var(--ink-2); position: relative; }
.prod .sup { position: absolute; top: 10px; left: 10px; font-family: var(--f-mono); font-size: .55rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--lime); background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 100px; border: 1px solid var(--line); }
.prod .body { padding: 14px; }
.prod .nm { font-size: .92rem; margin-bottom: 4px; }
.prod .spec { font-family: var(--f-mono); font-size: .66rem; color: var(--faint); margin-bottom: 10px; }
.prod .pr { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; }
.prod .add { width: 100%; margin-top: 10px; }
.brand-capture { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 18px; background: rgba(140,198,62,.05); margin-top: 22px; }

/* ---- Proposal / commit (step 6) ---------------------------------------- */
.proposal { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.summary-card { border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.summary-card .sc-head { padding: 22px; background: linear-gradient(160deg, rgba(242,194,0,.14), var(--ink)); }
.summary-card .sc-body { padding: 22px; }
.line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.line b { color: var(--white); }
.line.grand { border: none; padding-top: 16px; font-size: 1.3rem; }
.line.grand b { color: var(--gold); font-family: var(--f-display); }
.deposit-badge { text-align: center; padding: 18px; border-radius: 16px; background: var(--grad-brand); color: #071206; margin-top: 16px; }
.deposit-badge .v { font-family: var(--f-display); font-weight: 800; font-size: 2rem; }
.deposit-badge .l { font-size: .8rem; font-weight: 600; letter-spacing: .05em; }

.install-opts { display: flex; flex-direction: column; gap: 10px; }
.iopt { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: .3s; }
.iopt:hover { border-color: var(--line-strong); }
.iopt.on { border-color: var(--gold); background: rgba(242,194,0,.06); }
.iopt .fee { font-family: var(--f-mono); font-size: .78rem; }
.iopt .fee.free { color: var(--green); }
.iopt .fee.up { color: var(--gold); }

/* confidence + timeline */
.confidence { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin: 8px 0 30px; }
.conf { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); text-align: center; }
.conf .i { font-size: 1.6rem; }
.conf .t { font-size: .82rem; margin-top: 8px; color: var(--white); }
.conf .d { font-size: .72rem; color: var(--faint); margin-top: 4px; }

.timeline { position: relative; margin-left: 14px; padding-left: 30px; border-left: 2px solid var(--line); }
.tl { position: relative; padding: 0 0 30px; }
.tl::before { content: ""; position: absolute; left: -40px; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink-2); border: 2px solid var(--gold); display: grid; place-items: center; }
.tl.done::before { background: var(--grad-brand); border-color: transparent; }
.tl h4 { font-family: var(--f-head); font-size: 1.05rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.tl .step-no { font-family: var(--f-mono); font-size: .62rem; color: var(--gold); }
.tl p { color: var(--muted); font-size: .9rem; }
.tl .mini { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }

/* checklist demo */
.checklist { display: flex; flex-direction: column; gap: 6px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .86rem; }
.chk:hover { background: var(--glass); }
.chk .box { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; }
.chk.on .box { background: var(--grad-brand); border-color: transparent; color: #000; }
.chk.on .lbl { color: var(--faint); text-decoration: line-through; }
.verify-row { display: flex; gap: 10px; margin-top: 12px; }
.verify-row .v-pill { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.verify-row .v-pill.signed { border-color: var(--green); color: var(--green); }

.sign-pad { height: 90px; border: 1px dashed var(--line-strong); border-radius: 12px; display: grid; place-items: center;
  color: var(--faint); font-family: var(--f-mono); font-size: .74rem; cursor: crosshair; background: var(--ink-2); }
.sign-pad.signed { border-style: solid; border-color: var(--green); color: var(--green); }

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

/* ---- Nav buttons -------------------------------------------------------- */
.nav-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: flex; justify-content: space-between; gap: 16px; padding: 16px var(--pad);
  background: rgba(5,5,6,.85); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.nav-bar.with-tray { bottom: 68px; }

/* ---- Modal -------------------------------------------------------------- */
.modal-bg { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: none; place-items: center; padding: 20px; }
.modal-bg.show { display: grid; }
.modal { width: min(460px, 100%); background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; }
.modal h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.modal input[type=text], .modal input[type=number] { width: 100%; padding: 14px; background: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; color: var(--white); margin-bottom: 14px; font-family: var(--f-body); }
.modal .up { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer;
  color: var(--muted); margin-bottom: 14px; }
.modal .up img { max-height: 120px; margin: 0 auto 8px; border-radius: 8px; }
.modal-actions { display: flex; gap: 10px; }
.toast-host { position: fixed; top: 80px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 18px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 40px rgba(0,0,0,.5); font-size: .88rem; animation: toastIn .4s var(--ease-out); max-width: 320px; }
.toast.ok { border-left: 3px solid var(--green); }
.toast.grad { border-left: 3px solid var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.hint-banner { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(86,176,51,.08);
  border: 1px solid var(--line); border-left: 3px solid var(--green); margin-bottom: 24px; font-size: .92rem; color: var(--silver); }
.empty { text-align: center; padding: 60px 20px; color: var(--faint); }
