:root {
  --bg: #0A0F14;
  --panel: #111820;
  --raise: #16202A;
  --line: #1E2A35;
  --line-2: #2A3946;
  --ink: #E6EDF3;
  --ink-2: #B7C4D0;
  --muted: #7F93A5;
  --accent: #3CC6B2;
  --accent-ink: #04201C;
  --accent-soft: rgba(60, 198, 178, .12);
  --amber: #F0B84A;
  --danger: #F28B7B;
  --danger-soft: rgba(242, 139, 123, .1);
  --bar-off: #243442;
  --data: #8DA8FF; --lead: #F0B84A; --saas: #CF9FF0;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- горна лента ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 20, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 20px;
  display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand svg, .login-mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.brand .dot, .login-mark .dot { fill: var(--amber); stroke: none; }
.sections { display: flex; gap: 4px; height: 100%; }
.sections a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 14px; position: relative; }
.sections a:hover { color: var(--ink); }
.sections a[aria-current="page"] { color: var(--ink); }
.sections a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.out { margin-left: auto; }
.sweep { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; display: none; }
.sweep::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: sweep 1.6s ease-in-out infinite; }
body[data-busy="1"] .sweep { display: block; }
@keyframes sweep { from { left: -30%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .sweep::after { animation: none; left: 0; width: 100%; opacity: .5; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }

/* ---------- заглавие на раздела ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.lede { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.status { margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.alert { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--danger-soft);
  color: var(--danger); border: 1px solid rgba(242, 139, 123, .25); font-size: 14px; }

/* ---------- бутони ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink);
  font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #3A4D5D; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; filter: none; }
.ghost.sm { min-height: 34px; padding: 0 12px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }

/* ---------- пазарен пулс ---------- */
.pulse { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 24px; }
.pulse-col { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.pulse h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.pulse h2 small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rank li { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; }
.rk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.rk-bar { height: 8px; border-radius: 4px; background: var(--bar-off); overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.rk-val { text-align: right; font-weight: 650; }
.tbl-wrap { overflow-x: auto; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini th { text-align: right; color: var(--muted); font-weight: 600; padding: 0 0 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini th:first-child, .mini td:first-child { text-align: left; padding-left: 0; }
.mini td { padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.mini td:first-child { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.mini tr:last-child td { border-bottom: 0; }
.mini .bad { color: var(--danger); font-weight: 650; }
.mini a { text-decoration: none; color: var(--ink); }
.mini a:hover { color: var(--accent); }

/* ---------- табове ---------- */
.tabs { display: flex; gap: 6px; margin: 28px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 12px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  white-space: nowrap; position: relative; }
.tabs a b { margin-left: 4px; font-weight: 700; color: var(--muted); background: var(--raise); border-radius: 6px; padding: 1px 7px; font-size: 12.5px; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] b { color: var(--accent); background: var(--accent-soft); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); }

/* ---------- списък ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); transition: opacity .25s; }
.row.gone { opacity: 0; }
summary { list-style: none; cursor: pointer; display: flex; gap: 20px; align-items: center; padding: 18px 4px; }
summary::-webkit-details-marker { display: none; }
summary:hover .r-title { color: #fff; }
.r-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.r-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.r-kind { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.t-apify_actor .r-kind { color: var(--data); } .t-lead_gen .r-kind { color: var(--lead); } .t-micro_saas .r-kind { color: var(--saas); }
.r-sub { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
details[open] .r-sub { -webkit-line-clamp: unset; }
.r-side { display: flex; align-items: center; gap: 10px; flex: none; }
.r-score { font-weight: 800; font-size: 16px; min-width: 30px; text-align: right; }
.sig { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.sig i { width: 5px; border-radius: 1.5px; background: var(--bar-off); }
.sig i:nth-child(1) { height: 6px; } .sig i:nth-child(2) { height: 9px; } .sig i:nth-child(3) { height: 13px; }
.sig i:nth-child(4) { height: 16px; } .sig i:nth-child(5) { height: 20px; }
.sig i.on { background: var(--accent); }

.body { padding: 0 4px 24px; }
.body h3 { margin: 18px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.body p { margin: 0; color: var(--ink-2); max-width: 66ch; }
.grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.facts { margin: 18px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--panel); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.facts dt { color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 0; font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 10px; text-align: right; }
.seg { display: inline-block; width: 64px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) calc(var(--v) * 10%), var(--bar-off) 0); }
blockquote { margin: 8px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--line-2); color: var(--muted); font-style: italic; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.files code { font-size: 12.5px; background: var(--raise); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; color: var(--ink-2); }
.note-line { margin: 0 0 4px !important; padding: 9px 12px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); font-size: 14px; }
.note-line.warn { color: var(--danger); background: var(--danger-soft); border-color: rgba(242, 139, 123, .25); }
.note-line.live { color: var(--accent); background: var(--accent-soft); border-color: rgba(60, 198, 178, .25); }
.next { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.next h3 { margin-top: 0; }
.next ol { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.empty { padding: 56px 8px; max-width: 520px; }
.empty h2 { margin: 0 0 6px; font-size: 19px; }
.empty p { margin: 0; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center; z-index: 20; }
.toast.show { opacity: 1; }

/* ---------- вход ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login form { width: min(100%, 360px); }
.login-mark { width: 40px; height: 40px; margin-bottom: 18px; }
.login h1 { font-size: 34px; }
.login p { color: var(--muted); margin: 6px 0 24px; }
.login input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; }
.login input:focus { outline: none; border-color: var(--accent); }
.login .btn { margin-top: 12px; min-height: 48px; }
.err { color: var(--danger); margin: 10px 0 0 !important; font-size: 14px; }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .bar-in { gap: 14px; padding: 0 16px; }
  .brand span { display: none; }
  .sections a { padding: 0 8px; }
  .wrap { padding: 20px 16px 72px; }
  .head { flex-direction: column; align-items: stretch; }
  .head .btn { width: 100%; }
  h1 { font-size: 26px; }
  .pulse, .grid { grid-template-columns: 1fr; }
  .grid { gap: 0; }
  .rank li { grid-template-columns: 92px 1fr 56px; }
  summary { gap: 14px; padding: 16px 0; }
  .body { padding: 0 0 22px; }
  .r-sub { -webkit-line-clamp: 2; }
  .actions .btn { flex: 1 1 140px; }
  .mini td:first-child { max-width: 150px; }
}

.sample { margin: 6px 0 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  font: 12.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-2); max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ---------- продажби ---------- */
.sales { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.sales-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sales h2 { margin: 0; font-size: 15px; font-weight: 700; }
.sm-btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 14px 0 0; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.kpis > div { background: var(--raise); padding: 12px 14px; }
.kpis dt { color: var(--muted); font-size: 12.5px; }
.kpis dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sales-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.sales-note a { color: var(--accent); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.assets { margin-top: 16px; }
.assets td:first-child { max-width: 340px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px var(--accent-soft); }
.auto-h { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.autos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.autos li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ---------- моите актори ---------- */
.acards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.acard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.acard header { display: flex; gap: 12px; align-items: center; }
.acard header img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.acard h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.acard h2 a { text-decoration: none; }
.acard h2 a:hover { color: var(--accent); }
.acard header p { margin: 2px 0 0; font-size: 13px; }
.acard h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.acard .facts { margin-top: 14px; }
.delta { font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--raise); color: var(--muted); }
.delta.up { color: var(--accent); background: var(--accent-soft); }
.delta.down { color: var(--danger); background: var(--danger-soft); }
.kpis dd small.delta { font-size: 12px; vertical-align: middle; }
.rankpos { font-size: 16px; color: var(--amber); }
.good { color: var(--accent) !important; }
.bad { color: var(--danger); font-weight: 650; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 14px; }
.spark i { flex: 1; min-height: 2px; background: var(--accent); opacity: .75; border-radius: 2px 2px 0 0; }
.kw { margin-top: 16px; display: grid; gap: 6px; }
.kw label { font-size: 12.5px; color: var(--muted); }
.kw div { display: flex; gap: 8px; }
.kw input { flex: 1; min-width: 0; min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 14px; }
.kw input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sales-head span { display: flex; gap: 8px; }
@media (max-width: 860px) { .acards { grid-template-columns: 1fr; } }

/* ---------- поръчки ---------- */
.panel { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.panel > summary { padding: 14px 0; }
.gform { display: grid; gap: 12px; padding: 0 0 18px; }
.gform label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.gform input, .gform textarea, .proposal, .price-edit input { width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font: inherit; font-size: 14px; }
.gform textarea, .proposal { resize: vertical; line-height: 1.5; }
.gform input:focus, .gform textarea:focus, .proposal:focus, .price-edit input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gform .check { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.gform .check input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.gform .btn { justify-self: start; }
.proposal { margin-top: 6px; }
.price-edit { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.price-edit input { width: 110px; }
.r-price { font-weight: 750; font-size: 14.5px; color: var(--amber); white-space: nowrap; }
.plat-freelancer { color: #8DA8FF !important; } .plat-upwork { color: #7BD389 !important; }
.desc { white-space: pre-line; max-height: 260px; overflow: auto; }
@media (max-width: 760px) { .gform .two { grid-template-columns: 1fr; } .r-price { display: none; } }

/* ---------- поръчки: карти, удобни за телефон ---------- */
.chips { display: flex; gap: 8px; margin: 16px 0 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips > div { flex: 0 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.chips dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chips dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; }
.tabs.sticky { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--bg); margin-top: 18px; }
.gcards { display: grid; gap: 12px; margin-top: 14px; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; min-width: 0;
  transition: opacity .25s, transform .25s; scroll-margin-top: 120px; }
.gcard.gone { opacity: 0; transform: translateX(24px); }
.gcard.done { border-color: var(--accent); }
.gcard header { display: flex; align-items: center; gap: 10px; }
.gcard .meta { font-size: 12.5px; font-weight: 650; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { flex: 0 0 auto; min-width: 40px; text-align: center; font-weight: 800; font-size: 15px; padding: 3px 8px; border-radius: 8px;
  background: var(--raise); color: var(--ink-2); }
.score.s7, .score.s8, .score.s9, .score.s10 { background: var(--accent-soft); color: var(--accent); }
.score.s6 { background: rgba(240, 184, 74, .12); color: var(--amber); }
.gcard h2 { margin: 8px 0 0; font-size: 16.5px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gcard .sum { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.gcard .line { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.gcard .line b { color: var(--amber); font-size: 15px; }
.gcard .risk { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.gcard .note-line { margin: 8px 0 0 !important; }
.gcard .send { margin-top: 12px; min-height: 50px; font-size: 15.5px; font-weight: 750; }
.send.counting { background: var(--amber); border-color: var(--amber); color: #2A1C00; }
.send.sent { background: var(--raise); border-color: var(--accent); color: var(--accent); opacity: 1; }
.gcard .more { margin-top: 10px; border-top: 1px solid var(--line); }
.gcard .more > summary { padding: 10px 0 2px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; display: block; }
.gcard .more > summary::after { content: " ▾"; color: var(--muted); }
.gcard .more[open] > summary::after { content: " ▴"; }
.gcard .more h3 { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.gcard .proposal { width: 100%; min-height: 160px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; }
.gcard .edits { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.gcard .edits label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.gcard .edits input { width: 96px; min-height: 42px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 16px; }
.rewrite { display: flex; gap: 8px; margin-top: 10px; }
.rewrite input { flex: 1; min-width: 0; min-height: 42px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 15px; }
.gcard .actions { margin-top: 10px; gap: 8px; }
.gcard .actions .btn { flex: 1 1 0; min-height: 40px; font-size: 14px; }
.gcard .facts { margin-top: 12px; }

/* ---------- асистент ---------- */
.chat { display: grid; gap: 10px; margin-top: 16px; padding-bottom: 8px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg p { margin: 0; white-space: pre-line; }
.msg p + p { margin-top: 6px; }
.msg.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.typing p { color: var(--muted); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
.msg .did { font-size: 13.5px; color: var(--accent); }
.msg .did.warn { color: var(--danger); }
.confirm { margin-top: 10px; display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--raise); }
.confirm b { font-size: 14px; }
.confirm .send { min-height: 46px; }
.suggest { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: 0 0 auto; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px;
  padding: 8px 12px; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.ask { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin-top: 10px; display: flex; align-items: flex-end; gap: 8px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; z-index: 6; }
.ask textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px;
  padding: 9px 8px; resize: none; max-height: 140px; outline: none; line-height: 1.4; }
.ask button { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center; cursor: pointer; }
.ask .go { background: var(--accent); color: var(--accent-ink); }
.ask .mic { background: var(--raise); color: var(--ink-2); }
.ask .mic.on { background: var(--danger); color: #fff; }
.ask svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-head { align-items: center; }
.chat-head .ghost.sm { width: auto !important; }

/* ---------- долна навигация (телефон) ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .sections { display: none; }
  .bar-in { justify-content: space-between; height: 52px; }
  .brand span { display: inline; }
  .tabs.sticky { top: calc(52px + env(safe-area-inset-top, 0px)); }
  .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .dock { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(10, 15, 20, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .dock a { display: grid; justify-items: center; gap: 3px; padding: 4px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 650; }
  .dock svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock a[aria-current="page"] { color: var(--accent); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .ask { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .head .btn.sm-btn { width: 100%; min-height: 42px; }
  .msg { max-width: 94%; }
}

/* ---------- пари, проекти ---------- */
.money { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 10px; padding: 6px 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink); background: var(--accent-soft); border: 1px solid rgba(60, 198, 178, .3); white-space: nowrap; }
.money svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.money b { color: var(--accent); font-size: 15px; }
.money small { color: var(--muted); font-size: 12px; }
.money[aria-current="page"] { border-color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber);
  color: #2A1C00; font-style: normal; font-size: 11px; font-weight: 800; margin-left: 4px; }
.dock a { position: relative; }
.dock .badge { position: absolute; top: 0; left: 55%; margin: 0; }
.pill { flex: 0 0 auto; font-size: 12px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--raise); color: var(--ink-2); }
.st-offered .pill, .st-funded .pill { background: rgba(240, 184, 74, .15); color: var(--amber); }
.st-paid .pill { background: var(--accent-soft); color: var(--accent); }
.st-offered, .st-funded { border-color: rgba(240, 184, 74, .45); }
.next-step { margin-top: 10px; display: grid; gap: 10px; }
.next-step p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 .btn { flex: 1 1 140px; }
.next-step .wide { min-height: 50px; font-size: 15.5px; font-weight: 750; }
.paid { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.paid label { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.paid input { width: 110px; min-height: 42px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font: inherit; font-size: 16px; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0 4px; }
.link.danger { color: var(--danger); }
.files { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.files a { color: var(--ink); overflow-wrap: anywhere; }
.files small { color: var(--muted); }
.upload { cursor: pointer; }
.bigmoney { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.bigmoney > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.bigmoney span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.bigmoney b { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.bigmoney .muted-b { color: var(--ink-2); }
.sub-h { margin: 26px 0 8px; font-size: 15px; color: var(--muted); }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ledger li { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--panel); padding: 12px 14px; font-size: 14px; }
.ledger li > span:first-child, .ledger li > a { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.ledger .src { color: var(--muted); font-weight: 650; margin-right: 6px; }
.gform select { width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font: inherit; font-size: 14px; }
@media (max-width: 760px) {
  .money small { display: none; }
  .money { margin-right: 6px; padding: 6px 10px; }
  .bigmoney { grid-template-columns: 1fr 1fr; }
  .bigmoney > div:first-child { grid-column: 1 / -1; }
  .bigmoney b { font-size: 24px; }
  .dock a { font-size: 10.5px; }
  .dock svg { width: 22px; height: 22px; }
  .gform input, .gform select, .gform textarea { font-size: 16px; }
}

.report > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.report .learn { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.report .ledger { margin-bottom: 16px; }
.report .ledger a { color: var(--ink); text-decoration: none; }

.award { margin: 8px 0 0; font-size: 13.5px; font-weight: 650; padding: 6px 10px; border-radius: 8px; background: var(--raise); color: var(--ink-2); display: inline-block; }
.aw-pending, .aw-awarded { background: var(--accent-soft); color: var(--accent); }
.aw-rejected, .aw-revoked, .aw-lost { color: var(--muted); }
.alerts { max-width: 1120px; margin: 0 auto; padding: 10px 20px 0; display: grid; gap: 8px; }
.alerts div { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(60, 198, 178, .35); font-weight: 650; }
.alerts a { color: var(--ink); text-decoration: none; flex: 1; }
.alerts button { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
@media (max-width: 760px) { .alerts { padding: 10px 16px 0; } }

.gear { display: none; color: var(--muted); }
.gear svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.netline { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.netline a { color: var(--accent); }
.panel.set { padding: 16px 18px 18px; }
.panel.set h2 { margin: 0 0 10px; font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel.set p { font-size: 14px; line-height: 1.5; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.steps { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.steps code { background: var(--raise); padding: 1px 6px; border-radius: 5px; }
.two-in { display: flex; gap: 8px; }
.small { font-size: 13px; }
@media (max-width: 760px) { .gear { display: inline-flex; margin-right: 6px; } }
