:root { --bg: #0b0e14; --panel: #141926; --line: #262d40; --text: #e6e8ef; --muted: #9aa3b8; --brand: #6a4dff; --brand2: #2f6bff; --ok: #1fae5b; --warn: #e0a400; --bad: #e5484d; --info: #3b82f6; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); font-weight: 600; }
.top img { border-radius: 7px; }
.top .link { margin-left: auto; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
h1 { font-size: 1.3em; margin: 0 0 12px; }
label { display: block; margin: 10px 0; font-size: .92em; color: var(--muted); }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font-size: 16px; color: var(--text); background: #0f1320; border: 1px solid var(--line); border-radius: 10px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.row { display: flex; gap: 8px; align-items: stretch; }
.row input { flex: 1; min-width: 0; }
button { font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: #1c2233; color: var(--text); cursor: pointer; white-space: nowrap; }
button.primary { width: 100%; margin-top: 8px; border: 0; background: linear-gradient(90deg, var(--brand2), var(--brand)); color: #fff; font-weight: 600; }
button:disabled { opacity: .6; cursor: default; }
button.link { background: none; border: 0; color: #a99bff; padding: 4px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { flex: 1 1 0; min-width: 0; white-space: normal; padding: 10px 6px; font-size: .92em; line-height: 1.2; }
.tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
details { margin: 8px 0; } summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.req { color: var(--muted); font-size: .85em; }
.msg { color: #ff9b9e; min-height: 1em; margin: 6px 0; }
.small { font-size: .85em; } .muted { color: var(--muted); }
.hidden { display: none !important; }
video { width: 100%; max-height: 260px; border-radius: 10px; background: #000; object-fit: cover; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .85em; letter-spacing: .02em; color: #fff; }
.b-win { background: var(--ok); } .b-small { background: var(--warn); color: #1a1300; } .b-no { background: var(--bad); } .b-approval { background: var(--info); } .b-price { background: #4b5470; }
.res { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.res img, .res .ph { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.res h2 { font-size: 1em; margin: 6px 0; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; font-size: .9em; }
.nums span:nth-child(odd) { color: var(--muted); }
.big { font-size: 1.1em; font-weight: 700; margin: 6px 0; }
.find { padding: 12px 0; border-bottom: 1px solid var(--line); }
.find:last-child { border-bottom: 0; }
@media (min-width: 900px) { main { max-width: 760px; } }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 16px; width: min(92vw, 420px); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.row .primary { margin-top: 0; }
button.invest { margin-top: 8px; }
.inv { padding: 12px 0; border-bottom: 1px solid var(--line); } .inv:last-child { border-bottom: 0; }
.inv h3 { font-size: 1em; margin: 4px 0; }
.offer { border: 1px dashed var(--brand); border-radius: 10px; padding: 8px; margin-top: 8px; }
.pre { white-space: pre-wrap; }
.verdict { font-size: 1.15em; font-weight: 700; padding: 10px 12px; border-radius: 10px; margin: 12px 0 4px; }
.v-yes { background: rgba(31,174,91,.18); color: #7ee2a8; border: 1px solid var(--ok); }
.v-approval { background: rgba(59,130,246,.18); color: #9cc2ff; border: 1px solid var(--info); }
.v-no { background: rgba(229,72,77,.18); color: #ff9b9e; border: 1px solid var(--bad); }
.status { display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 999px; font-size: .8em; border: 1px solid var(--line); color: var(--muted); }
.s-bought { color: #7ee2a8; border-color: var(--ok); } .s-watching { color: #9cc2ff; border-color: var(--info); } .s-skipped { color: var(--muted); }
.send { margin-top: 12px; } .send h3 { margin: 0 0 6px; } .neg { color: #ff9b9e; }
.switch { display: flex; align-items: center; gap: 8px; color: var(--text); } .switch input { width: auto; display: inline; margin: 0; }
.sent { border-color: var(--ok); }
/* statuses mirrored from our decision: Sent → Reviewing → Approved / Bought / Not this time */
.s-sent { color: #c9cfdf; } .s-reviewing { color: #9cc2ff; border-color: var(--info); } .s-approved { color: #7ee2a8; border-color: var(--ok); } .s-not-this-time, .s-denied { color: #ff9b9e; border-color: var(--bad); }
.steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 8px 0; flex-wrap: wrap; font-size: .82em; }
.steps li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.steps li.done { color: #c9cfdf; border-color: #3a4360; } .steps li.now { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 700; }
.steps li.now.no { background: var(--bad); border-color: var(--bad); }
.reason { color: #ffb4b6; margin: 4px 0; } .counter { color: #9cc2ff; font-weight: 600; margin: 4px 0; }

/* the product photo (from our own server) and its placeholder: grey box, first letter, "photo coming" – never a broken image */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #2a3045; color: #c9cfdf; border-radius: 8px; flex: none; text-align: center; overflow: hidden; }
.ph b { font-size: 1.6em; line-height: 1; } .ph span { font-size: .62em; color: var(--muted); margin-top: 3px; }
.res .ph { margin: 0; }
/* My finds – one card per product (concept page 6) */
.cards { padding: 4px 14px; }
.pcard { padding: 14px 0; }
.phead { display: flex; gap: 12px; align-items: flex-start; }
.phead img.thumb, .phead .ph.thumb { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; }
.phead .ph.thumb { background: #2a3045; }
.ptitle { min-width: 0; flex: 1; } .ptitle h3 { font-size: 1em; margin: 0 0 6px; overflow-wrap: anywhere; } .ptitle p { margin: 4px 0 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips .status { margin-left: 0; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .8em; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.chip-bad { background: var(--bad); border-color: var(--bad); color: #fff; } .chip-ask { background: rgba(224,164,0,.18); border-color: var(--warn); color: #ffd36b; } .chip-ok { color: #7ee2a8; border-color: var(--ok); }
.earn { margin: 8px 0 0; font-weight: 600; color: #c9cfdf; }
details.more { margin: 10px 0 0; border-top: 1px dashed var(--line); } details.more > summary { padding: 12px 0; font-weight: 600; color: #a99bff; min-height: 44px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .two label { min-width: 0; }
.sect { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; } .sect h4 { margin: 4px 0 8px; font-size: .95em; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sect select { margin-bottom: 8px; }
.upbtn { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 11px 14px; border-radius: 10px; border: 1px dashed var(--brand); color: var(--text); background: #171c2b; font-weight: 600; cursor: pointer; text-align: center; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; } .frow a { color: #a99bff; overflow-wrap: anywhere; min-width: 0; } .frow .link { min-height: 40px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-bottom: 10px; } .gal figure { margin: 0; min-width: 0; } .gal figcaption { color: var(--muted); }
.gal img.gimg, .gal .ph.gimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #2a3045; }
.note { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0; } .note p { margin: 2px 0; overflow-wrap: anywhere; }
.note.ask { border-color: var(--warn); background: rgba(224,164,0,.12); } .note.mine { background: #171c2b; }
.pcard button.invest { width: 100%; margin-top: 10px; min-height: 44px; }
