/* Inblaj client portal — on top of /app.css (same tokens: --panel, --acc, --grad, --line…). */
.muted { color: var(--muted); font-size: 13.5px; }
.linkbtn { color: var(--acc); font-size: 13.5px; padding: 6px 4px; }
.linkbtn:hover { text-decoration: underline; }
.err { min-height: 18px; color: var(--bad); font-size: 13px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.sun { display: inline-block; width: 22px; height: 22px; flex: none; position: relative; }
.sun::before, .sun::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.sun::before { background: var(--grad); transform: scale(.55); box-shadow: 0 0 14px rgba(255, 166, 61, .7); animation: breathe 1.8s ease-in-out infinite; }
.sun::after { border: 2px solid transparent; border-top-color: var(--acc); border-right-color: color-mix(in srgb, var(--acc) 40%, transparent); animation: spin 1.1s linear infinite; }
.sun.sm { width: 16px; height: 16px; }
.grid-load { display: grid; place-items: center; padding: 40px 0; }
.grid-load .sun { width: 30px; height: 30px; }

/* ── onboarding ─────────────────────────────────────────────────────────────────────────────────────────── */
.ob { position: fixed; inset: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: calc(28px + var(--safe-t)) 16px calc(24px + var(--safe-b));
  background: radial-gradient(90% 60% at 50% 110%, rgba(242, 147, 42, .24), transparent 60%), radial-gradient(70% 50% at 50% -10%, rgba(255, 196, 90, .10), transparent 70%), var(--bg); }
.ob .horizon { position: fixed; inset: auto 0 0 0; height: 40vh; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 166, 61, .28), rgba(255, 120, 40, .06) 55%, transparent 75%); filter: blur(10px); }
.ob-card { position: relative; width: min(460px, 100%); margin: auto 0; padding: 32px 24px 24px; border-radius: var(--r-xl); text-align: center;
  background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: rise .45s var(--ease) both; }
.ob-card.wide { width: min(860px, 100%); text-align: start; padding: 26px 22px 22px; }
.ob-card .logo { width: 58px; height: 58px; margin: 0 auto 14px; display: block; filter: drop-shadow(0 6px 22px rgba(255, 166, 61, .45)); }
.ob-card h1 { margin: 0; font: 600 23px/1.3 var(--brand); }
.ob-card h2.q { margin: 18px 0 0; font: 600 19px/1.35 var(--brand); }
.ob-card .sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.ob-form { margin-top: 20px; display: grid; gap: 12px; }
.input.big { padding: 15px 16px; font-size: 17px; text-align: center; border-radius: 16px; }
.ob-form .btn { padding: 13px 16px; font-size: 15.5px; }
.ob-foot { position: relative; margin-top: 16px; display: flex; gap: 8px; justify-content: center; }
.ob-card .url { margin: 18px 0 0; font-size: 12.5px; color: var(--faint); word-break: break-all; }

/* research progress */
.rs-orb { position: relative; width: 96px; height: 96px; margin: 4px auto 18px; display: grid; place-items: center; }
.rs-orb img { width: 46px; height: 46px; filter: drop-shadow(0 6px 22px rgba(255, 166, 61, .6)); animation: breathe2 2.2s ease-in-out infinite; }
.rs-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--acc); border-left-color: color-mix(in srgb, var(--acc) 35%, transparent); animation: spin 1.4s linear infinite; }
.rs-orb .ring.r2 { inset: 12px; border-top-color: var(--gold-1); animation-duration: 2.3s; animation-direction: reverse; }
@keyframes breathe2 { 50% { transform: scale(.88); opacity: .8; } }
.rs-list { list-style: none; margin: 22px auto 0; padding: 0; display: grid; gap: 10px; max-width: 300px; text-align: start; }
.rs-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--faint); transition: color var(--t-med); }
.rs-list li .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); flex: none; }
.rs-list li .dot svg.i { width: 14px; height: 14px; stroke-width: 2.6; }
.rs-list li.done { color: var(--text-2); }
.rs-list li.done .dot { background: var(--grad); border-color: transparent; color: #1b1206; }
.rs-list li.now { color: var(--text); font-weight: 600; }
.rs-list li.now .dot { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); animation: pulse 1.4s ease-in-out infinite; }

/* identity */
.id-head { text-align: center; margin-bottom: 18px; }
.idc { display: grid; gap: 16px; }
.idc-hero { --bc: var(--acc); display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 22%, var(--panel-2)), var(--panel-2) 70%); border: 1px solid var(--line); }
.idc-logo { width: 84px; height: 84px; flex: none; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.idc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.idc-name { min-width: 0; }
.idc-name h2 { margin: 0; font: 700 22px/1.25 var(--brand); }
.idc-name p { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.idc-name a { display: inline-block; margin-top: 6px; font-size: 13px; }
.idc-sum { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-2); }
.id-sec { padding: 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.id-sec h4 { margin: 0 0 10px; font: 600 13px var(--brand); color: var(--muted); letter-spacing: .02em; }
.id-sec p { margin: 0; font-size: 14px; color: var(--text-2); }
.id-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sells { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sell { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.sell img, .sell .ph { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; background: var(--panel-3); }
.sell .ph { display: grid; place-items: center; color: var(--faint); }
.sell div { min-width: 0; }
.sell b { display: block; font-size: 14px; font-weight: 600; }
.sell small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sws { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { display: grid; justify-items: center; gap: 4px; }
.sw i { width: 40px; height: 40px; border-radius: 12px; background: var(--c); border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sw small { font-size: 10.5px; color: var(--faint); font-family: ui-monospace, monospace; }
.usp { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.usp li::marker { color: var(--acc); }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.prods figure { margin: 0; min-width: 0; }
.prods img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--panel-3); display: block; }
.prods figcaption { margin-top: 5px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-retry { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); word-break: break-all; }
.id-extra { margin-top: 16px; }
.input.area { resize: vertical; min-height: 84px; line-height: 1.6; }
.id-acts { display: flex; justify-content: flex-end; margin-top: 14px; }
.id-acts .btn { min-width: 150px; padding: 13px 18px; }

/* ── shell: sidebar on desktop, tab bar on phone ───────────────────────────────────────────────────────── */
.pshell { --side: 260px; }
.me-brand { display: flex; align-items: center; gap: 10px; margin: 6px 12px 12px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.me-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; padding: 4px; flex: none; }
.me-brand .av, .side-foot .av { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #1b1206; font: 600 16px var(--brand); flex: none; }
.side-foot .av { width: 32px; height: 32px; border-radius: 50%; font-size: 14px; }
.me-brand div { min-width: 0; }
.me-brand b { display: block; font: 600 14px/1.3 var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-brand small { display: block; font-size: 12px; color: var(--muted); }
.pnav { display: grid; gap: 2px; padding: 0 10px; }
.pnav .nv { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; transition: background var(--t-fast), color var(--t-fast); }
.pnav .nv:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.pnav .nv.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.lim { flex: 1; display: flex; align-items: flex-end; padding: 14px 18px; }
.lim small { font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.tabbar { display: none; }
.top.mob { display: none; }
.tlogo { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; flex: none; }

/* pages */
.page { max-width: 1040px; margin: 0 auto; padding: 26px 22px 40px; position: relative; }
.page > header.ph { margin-bottom: 20px; }
.page > header.ph h1 { margin: 0; font: 600 26px/1.25 var(--brand); }
.page > header.ph p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sec-h { margin: 28px 0 12px; font: 600 15px var(--brand); color: var(--text-2); }
.empty { display: grid; justify-items: center; gap: 12px; padding: 60px 16px; text-align: center; color: var(--muted); }
.empty .eart { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.empty .eart svg.i { width: 34px; height: 34px; }
.empty p { margin: 0; font-size: 15px; }

/* My work */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.wcard { text-align: start; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.wcard:hover { transform: translateY(-2px); border-color: var(--acc-line); box-shadow: var(--shadow); }
.wthumb { position: relative; aspect-ratio: 4 / 5; background: var(--panel-3); overflow: hidden; }
.wthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wthumb img.broken, .dimg img.broken, .dv img.broken { opacity: 0; }
.playb { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .5); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); }
.playb svg.i { fill: currentColor; stroke: none; }
.playb.big { width: 64px; height: 64px; }
.wmeta { padding: 10px 12px 12px; display: grid; gap: 3px; }
.wmeta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wmeta small { font-size: 12px; color: var(--faint); }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--acc); }
.kind svg.i { width: 14px; height: 14px; }
.kind.design { color: var(--info); }
.viewer .vbox { width: min(900px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: rise .3s var(--ease) both; }
.vhead { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .vhead { padding: 10px 16px 10px 10px; }
.vhead b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vframe { flex: 1; min-height: 0; background: #000; display: grid; place-items: center; }
.vframe iframe { width: 100%; height: min(72vh, 680px); border: 0; display: block; }
.vframe.img img { max-width: 100%; max-height: 72vh; display: block; }
.vacts { display: flex; gap: 8px; justify-content: flex-end; padding: 12px; flex-wrap: wrap; }

/* Create */
.newgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.newcard { position: relative; overflow: hidden; display: grid; gap: 6px; text-align: start; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.newcard::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 166, 61, .2), transparent); pointer-events: none; }
.newcard:hover { transform: translateY(-2px); border-color: var(--acc-line); box-shadow: var(--shadow); }
.newcard b { font: 600 18px/1.3 var(--brand); margin-top: 6px; }
.newcard small { color: var(--muted); font-size: 13.5px; }
.nic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #1b1206; flex: none; }
.slist { display: grid; gap: 8px; }
.scard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color var(--t-fast), background var(--t-fast); }
.scard:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.sic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); flex: none; }
.sic.design { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.sx { flex: 1; min-width: 0; display: grid; gap: 5px; }
.sx b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir=rtl] .sx b { text-align: right; } html[dir=ltr] .sx b { text-align: left; }
.sx small { font-size: 12px; color: var(--muted); }
.prog { display: flex; gap: 4px; max-width: 200px; }
.prog i { flex: 1; height: 4px; border-radius: 3px; background: var(--line-2); }
.prog i.d { background: var(--acc); }
.prog i.n { background: linear-gradient(90deg, var(--acc), var(--line-2)); }
.scard .chev { color: var(--faint); }

/* brief sheet */
.scrim.sheet { align-items: center; }
.modal.brief, .modal.vpick { width: min(600px, 100%); display: grid; gap: 16px; padding: 20px; }
.bhead { display: flex; align-items: center; gap: 12px; }
.bhead h3 { flex: 1; margin: 0; font: 600 19px/1.3 var(--brand); }
.bhead .nic { width: 38px; height: 38px; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chipb { padding: 8px 13px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.chipb:hover { border-color: var(--line-2); color: var(--text); }
.chipb.on { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); font-weight: 600; }
.vrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
[dir="rtl"] .vchip { padding: 4px 4px 4px 12px; }
.modal .acts .btn { min-width: 160px; padding: 12px 18px; }

/* voices */
.vplay { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1b1206; flex: none; transition: transform var(--t-fast); }
.vplay svg.i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
[dir="rtl"] .vplay svg.i { transform: scaleX(-1); }
.vplay.big { width: 46px; height: 46px; }
.vplay.big svg.i { width: 18px; height: 18px; }
.vplay.on { animation: pulse 1.2s ease-in-out infinite; box-shadow: 0 0 0 5px var(--acc-soft); }
.vlist { display: grid; gap: 10px; }
.vlist.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.modal.vpick .vlist { max-height: 66vh; overflow: auto; padding: 2px; }
.vcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color var(--t-fast), background var(--t-fast); }
.modal .vcard { background: var(--panel-2); }
.vcard.picked, .vcard.def { border-color: var(--acc-line); }
.vcard.picked { background: var(--acc-soft); }
.vx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.vx b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; flex-wrap: wrap; }
.vx small { font-size: 12px; color: var(--muted); }
.vx > .btn { justify-self: start; margin-top: 6px; }
.vx p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--acc-soft); color: var(--acc); }
.badge svg.i { width: 12px; height: 12px; fill: currentColor; }
.wavebar { display: flex; align-items: center; gap: 2px; height: 22px; margin: 2px 0; }
.wavebar i { flex: 1; max-width: 4px; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--acc) 55%, var(--line-2)); }

/* My brand */
.brandbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 18px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.inrow { display: flex; gap: 8px; }
.inrow .input { flex: 1; min-width: 0; }
.brandbox { padding: 0; }

/* ── session ────────────────────────────────────────────────────────────────────────────────────────────── */
.stepwrap { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); overflow-x: auto; scrollbar-width: none; }
.stepbar { list-style: none; margin: 0 auto; padding: 10px 16px; max-width: 820px; display: flex; align-items: center; gap: 6px; }
.stepbar li { flex: 1; display: flex; align-items: center; gap: 7px; min-width: max-content; font-size: 13px; color: var(--faint); }
.stepbar li:not(:last-child)::after { content: ""; flex: 1; min-width: 12px; height: 2px; border-radius: 2px; background: var(--line-2); margin-inline-start: 4px; }
.stepbar li.sdone:not(:last-child)::after { background: var(--acc); }
.stepbar .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-size: 12px; font-weight: 600; flex: none; }
.stepbar .num svg.i { width: 13px; height: 13px; stroke-width: 2.8; }
.stepbar li.sdone { color: var(--text-2); }
.stepbar li.sdone .num { background: var(--grad); border-color: transparent; color: #1b1206; }
.stepbar li.scur { color: var(--text); font-weight: 600; }
.stepbar li.scur .num { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.msg.user.briefmsg .bubble { background: var(--panel); border-color: var(--acc-line); }

/* cards inside AI messages */
.card-opts { display: grid; gap: 10px; margin-top: 12px; }
.opt { padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); display: grid; gap: 8px; transition: border-color var(--t-fast), background var(--t-fast); }
.opt.picked { border-color: var(--acc); background: var(--acc-soft); }
.card-opts.done .opt:not(.picked) { opacity: .55; }
.oh { display: flex; align-items: center; gap: 10px; }
.oh .on { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #1b1206; font-weight: 700; font-size: 13px; flex: none; }
.oh b { flex: 1; min-width: 0; font: 600 15.5px/1.35 var(--brand); }
.oh .dur { font-size: 12px; color: var(--muted); white-space: nowrap; }
.opt .hook { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.opt details summary { cursor: pointer; font-size: 13px; color: var(--acc); list-style: none; }
.opt details summary::-webkit-details-marker { display: none; }
.otext { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); white-space: pre-wrap; font-size: 14px; line-height: 1.8; }
.onotes { margin-top: 6px; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; }
.opt > .btn { justify-self: start; }
.card-voices { display: grid; gap: 8px; margin-top: 12px; }
.card-voices.done .vcard:not(.picked) { opacity: .55; }
.defbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); padding: 4px 2px; cursor: pointer; }
.defbox input { width: 18px; height: 18px; accent-color: var(--acc); }
.card-takes { display: grid; gap: 8px; margin-top: 12px; }
.card-takes .take { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.card-takes .take.picked { border-color: var(--acc); background: var(--acc-soft); }
.card-takes .files { flex: 1; min-width: 0; margin: 0; }
.card-takes .aud { margin: 0; border: 0; background: none; padding: 0; }
.card-designs { margin-top: 12px; }
.dgrid { --ar: 9 / 16; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.dit { display: grid; gap: 8px; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.dit.picked { border-color: var(--acc); background: var(--acc-soft); }
.card-designs.done .dit:not(.picked) { opacity: .55; }
.dimg { position: relative; display: block; width: 100%; aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; background: var(--panel-3); cursor: zoom-in; }
.dimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dimg .dn { position: absolute; top: 6px; inset-inline-start: 6px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; }
.dit .btn { width: 100%; }
.saved { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--ok); font-weight: 600; }
.saved svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.card-deliv { margin-top: 12px; max-width: 460px; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--acc-line); display: grid; gap: 10px; }
.dv { --ar: 9 / 16; position: relative; width: 100%; aspect-ratio: var(--ar); max-height: 70vh; border-radius: 12px; overflow: hidden; background: #000; }
.dv img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.dv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-deliv .dimg { aspect-ratio: auto; }
.card-deliv .dimg img { height: auto; }
.dvm { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; flex-wrap: wrap; }
.dvm b { font: 600 15px var(--brand); }
.dvm .saved { margin: 0; }
.dva { display: flex; gap: 8px; padding: 0 4px 4px; }
.dva .btn { flex: 1; }
.lightbox .lbimg { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* ── phone ──────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pside { display: none; }
  .top.mob { display: flex; }
  .tabbar { position: fixed; z-index: 20; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + var(--safe-b));
    background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar .nv { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
  .tabbar .nv:hover { text-decoration: none; }
  .tabbar .nv.on { color: var(--acc); font-weight: 600; }
  .tabbar .nv.on svg.i { filter: drop-shadow(0 2px 8px rgba(255, 166, 61, .5)); }
  .pshell .main { padding-bottom: calc(62px + var(--safe-b)); }
  body.in-session .tabbar { display: none; }
  body.in-session .pshell .main { padding-bottom: 0; }
  .page { padding: 18px 14px 28px; }
  .page > header.ph { display: none; }
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .newgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .newcard { padding: 14px; }
  .newcard b { font-size: 16px; }
  .newcard small { font-size: 12.5px; }
  .vlist.grid { grid-template-columns: 1fr; }
  .brandbar { grid-template-columns: 1fr; }
  .ob-card.wide { padding: 20px 14px 16px; }
  .idc-hero { padding: 14px; gap: 12px; }
  .idc-logo { width: 66px; height: 66px; border-radius: 14px; }
  .idc-name h2 { font-size: 19px; }
  .sells { grid-template-columns: 1fr; }
  .prods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepbar { padding: 8px 12px; }
  .stepbar li { font-size: 12px; gap: 5px; }
  .stepbar li:not(.scur) .l { display: none; }
  .scrim.sheet { align-items: end; padding: 0; }
  .scrim.sheet .modal { width: 100%; border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: calc(20px + var(--safe-b)); }
  .modal .acts .btn { flex: 1; }
  .toasts { bottom: calc(80px + var(--safe-b)); }
}
