:root {
  --bg: #f6f4f0;
  --ink: #16130f;
  --muted: #7a7469;
  --surface: #f6f4f0;
  --surface-2: #efece6;
  --line: #e7e3dc;
  --accent: #16130f;
  --hl: #e8590c;
  --ok: #2f7d4f;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(22,19,15,.04), 0 12px 32px -18px rgba(22,19,15,.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 6px; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--hl); margin-bottom: 6px;
}
.sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; max-width: 56ch; }

/* ---------- шапка (как topbar сайта) ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 24px;
}
.hd .brand { font-weight: 800; letter-spacing: .02em; font-size: 15px; white-space: nowrap; }
.brand { line-height: 1.1; }
.brand-sub { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .46em; text-transform: uppercase; color: #e8590c; margin-top: 2px; }
.hd .brand b { color: var(--hl); margin: 0 4px; font-weight: 600; }
.hd .crumb { color: var(--muted); font-size: 14px; white-space: nowrap; }
.hd .sp { flex: 1; }
.hd .who { font-size: 13px; color: var(--muted); max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd a.lnk, .hd button.lnk {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  transition: border-color .15s ease; white-space: nowrap;
}
.hd a.lnk:hover, .hd button.lnk:hover { border-color: var(--ink); }

.wrap { max-width: 980px; margin: 0 auto; padding: 36px 24px 90px; }
/* разделы кабинета шире: слева навигация, справа содержимое */
.wrap-wide { max-width: 1240px; }

/* ---------- боковая навигация кабинета ---------- */
.crmgrid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.side-t {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint, #a49e93); padding: 0 12px 8px;
}
.side-i {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 12px; border: 1.5px solid transparent; transition: all .14s ease;
}
.side-i:hover { background: #fff; border-color: var(--line); }
.side-i.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.side-ic { font-size: 17px; line-height: 1; flex: none; }
.side-tx { min-width: 0; display: block; }
.side-tx b { display: block; font-size: 14.5px; font-weight: 600; }
.side-tx span { display: block; font-size: 12px; color: var(--muted); }
.side-i.on .side-tx span { color: rgba(255,255,255,.62); }
.side-main { min-width: 0; }
@media (max-width: 900px) {
  .crmgrid { grid-template-columns: 1fr; gap: 18px; }
  .side {
    position: static; flex-direction: row; gap: 8px;
    overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch;
  }
  .side-t { display: none; }
  .side-i { flex: 0 0 auto; padding: 9px 14px; background: #fff; border-color: var(--line); }
  .side-tx span { display: none; }
}
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.phead .btn { margin-bottom: 26px; }
.phead .row { margin-bottom: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.phead .row .btn { margin-bottom: 0; }

/* ---------- кнопки (пилюли, как на сайте) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-main { background: var(--accent); color: #fff; width: 100%; }
.btn-main:hover { background: #2c2823; }
.btn-main:disabled { opacity: .45; cursor: default; }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:disabled { opacity: .45; cursor: default; }

/* ---------- вход / регистрация ---------- */
.auth {
  max-width: 430px; margin: 7vh auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 34px 32px 28px;
}
.auth-logo { text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--muted); margin-bottom: 18px; }
.auth-logo b { color: var(--hl); margin: 0 3px; font-weight: 600; }
.auth h1 { font-size: 24px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.tabs {
  display: flex; gap: 5px; background: var(--surface-2);
  border-radius: 999px; padding: 5px; margin: 20px 0 6px;
}
.tabs button {
  flex: 1; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--muted); transition: all .15s ease;
}
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22,19,15,.12); }
.field { display: block; margin: 13px 0 0; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; background: #fff; font-family: inherit; transition: border-color .15s ease;
}
.field input:focus { outline: none; border-color: var(--ink); }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth form .btn-main { margin-top: 20px; }
.err {
  background: #fdf0ee; color: #b3362a; border: 1px solid #f3cfc7;
  border-radius: var(--r-sm); padding: 10px 13px; font-size: 14px; margin: 14px 0 0;
}
.hint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 16px; }

/* ---------- статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- фильтры и поиск ---------- */
.toolbar { margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 600; background: #fff; color: var(--muted);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-family: inherit; background: #fff; transition: border-color .15s ease;
}
.search:focus { outline: none; border-color: var(--ink); }

/* ---------- карточки заявок ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.ordcard {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ordcard:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.ordcard .num { font-weight: 700; color: var(--muted); min-width: 44px; font-size: 14px; }
.ordcard .co { flex: 1; min-width: 0; }
.ordcard .co b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ordcard .co span { color: var(--muted); font-size: 13px; }
.ordcard .tot { font-weight: 700; white-space: nowrap; font-size: 15px; }
.ordcard .chev { color: var(--line); font-size: 22px; font-weight: 600; transition: color .15s ease, transform .15s ease; }
.ordcard:hover .chev { color: var(--hl); transform: translateX(2px); }
.empty {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: 48px 24px; text-align: center; color: var(--muted); font-size: 15px;
}
.empty-ic { font-size: 34px; margin-bottom: 10px; }

/* ---------- статусы ---------- */
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: .01em;
}
.s-nov { background: #e9effc; color: #2d55b8; }
.s-rab { background: #fdf3d7; color: #8f6400; }
.s-kp  { background: #f1e9fb; color: #6a3ab8; }
.s-sog { background: #e2f3ec; color: #157355; }
.s-pro { background: #fdeadb; color: #b45012; }
.s-otg { background: #e4f4e4; color: #237a36; }
.s-zak { background: var(--surface-2); color: #6f6a61; }
.s-otm { background: #fbe7e4; color: #b3362a; }
.b-opt { background: var(--ink); color: #fff; }

/* ---------- деталь заявки ---------- */
.back { color: var(--muted); font-size: 14px; margin-bottom: 16px; display: inline-block; transition: color .15s ease; }
.back:hover { color: var(--ink); }
.dhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.dhead h1 { margin: 0; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 22px 24px; margin: 16px 0;
}
.panel h3 {
  margin: 0 0 14px; font-size: 12.5px; color: var(--hl); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 999px; }
.btn-add {
  width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--hl); font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .12s ease;
}
.btn-add:hover { border-color: var(--hl); background: var(--hl); color: #fff; }
.repeat-hint { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.kv { display: flex; gap: 10px; margin: 7px 0; font-size: 15px; }
.kv .k { color: var(--muted); min-width: 140px; flex-shrink: 0; }
.items { width: 100%; border-collapse: collapse; }
.items td, .items th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; vertical-align: middle; }
.items th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.items tbody tr:last-child td { border-bottom: 0; }
.items tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 12px; font-size: 15px; }
.items td.r, .items th.r { text-align: right; white-space: nowrap; }
.items img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; }
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { padding: 10px 0 10px 18px; border-left: 2px solid var(--line); position: relative; font-size: 14.5px; }
.tl li::before {
  content: ""; position: absolute; left: -5px; top: 16px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--hl);
}
.tl li:first-child::before { background: var(--ink); }
.tl .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
select, textarea {
  font: inherit; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; background: #fff; transition: border-color .15s ease;
}
select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { width: 100%; resize: vertical; }
.center { min-height: 55vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ---------- пайплайн статусов (смена одним кликом) ---------- */
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2823; }
.btn-cancel { border: 1.5px solid #f0ccc5; background: #fff; color: #b3362a; }
.btn-cancel:hover { background: #b3362a; color: #fff; border-color: #b3362a; }
.pipeline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 3px; margin-bottom: 16px; }
.pipeline.is-cancelled { opacity: .5; filter: grayscale(.55); }
.pstep {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s ease;
}
.pstep .pdot { width: 9px; height: 9px; border-radius: 999px; background: var(--line); flex-shrink: 0; transition: background .15s ease; }
.pstep:hover { border-color: var(--ink); color: var(--ink); }
.pstep.step-done { color: var(--ok); border-color: #cfe6d8; background: #f2f9f5; }
.pstep.step-done .pdot { background: var(--ok); }
.pstep.step-cur { color: #fff; background: var(--hl); border-color: var(--hl); box-shadow: 0 8px 18px -10px var(--hl); }
.pstep.step-cur .pdot { background: #fff; }
.pline { width: 12px; height: 2px; background: var(--line); flex-shrink: 0; }
.pipe-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pipe-actions .btn { padding: 10px 18px; font-size: 14px; }
.pipe-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }
.cancel-note { background: #fbe7e4; color: #b3362a; border: 1px solid #f3cfc7; border-radius: var(--r-sm); padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px; }
.note-block { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.note-block .btn { align-self: flex-start; }

/* ---------- партнёрка ---------- */
.b-part { background: #f1e9fb; color: #6a3ab8; }
.pp { border: 1.5px solid #e8dcf7; background: linear-gradient(180deg, #fdfbff, #fff); }
.pp-h { color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 17px !important; }
.plink { display: flex; gap: 8px; margin: 10px 0 4px; }
.plink input {
  flex: 1; min-width: 0; font: inherit; font-size: 13.5px; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fff;
}
.pp-hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.pp-stats { margin: 16px 0 4px; }
.pp-deals { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.pdl { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pdl:last-child { border-bottom: 0; }
.pdl .num { color: var(--muted); font-weight: 700; min-width: 40px; font-size: 13px; }
.pdl .co { flex: 1; min-width: 0; }
.pdl .co b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdl .co span { color: var(--muted); font-size: 12px; }
.pdl .tot { font-weight: 700; white-space: nowrap; }
.pdl .pay { min-width: 90px; text-align: right; font-weight: 700; color: var(--ok); white-space: nowrap; }
.pform { display: flex; gap: 10px; flex-wrap: wrap; }
.pform input[name=email] { flex: 1; min-width: 220px; font: inherit; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; background: #fff; }
.pform input[name=pct] { width: 86px; font: inherit; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; background: #fff; text-align: center; }
.pform input:focus { outline: none; border-color: var(--ink); }
.ptr { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ptr:last-child { border-bottom: 0; }
.ptr.off { opacity: .5; }
.ptr .co { flex: 1; min-width: 0; }
.ptr .co b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptr .co span { color: var(--muted); font-size: 12.5px; }
.pct-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 700; transition: border-color .15s ease;
}
.pct-btn:hover { border-color: var(--ink); }
.ptr-n { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ptr-sum { font-size: 13.5px; white-space: nowrap; }
.ptr-earn { font-weight: 700; color: var(--ok); font-size: 13.5px; white-space: nowrap; }

/* ---------- клиенты ---------- */
.clrow {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 20px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.clrow:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.clrow .co { flex: 1; min-width: 0; }
.clrow .co b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.clrow .co span { color: var(--muted); font-size: 13px; }
/* заявки клиента прямо в строке: менеджер видит историю, не открывая карточку */
.cl-ords { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 190px; }
.cl-ord {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px;
  font-size: 12.5px; font-weight: 700; background: #fff; transition: all .14s ease;
}
.cl-ord i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.cl-ord:hover { border-color: var(--ink); }
.cl-more { font-size: 12px; color: var(--muted); }
.cl-noord { font-style: normal; font-size: 12.5px; color: var(--faint, #a49e93); }
.cl-sum { font-weight: 700; white-space: nowrap; font-size: 14.5px; min-width: 84px; text-align: right; }
.cl-last { color: var(--muted); font-size: 12.5px; white-space: nowrap; min-width: 108px; text-align: right; }
.clrow .chev { color: var(--line); font-size: 22px; font-weight: 600; transition: color .15s ease; }
.clrow:hover .chev { color: var(--hl); }
.tl li.act-mail { border-left-color: var(--hl); }
.tl li.act-mail::before { background: var(--hl); }

/* модалка письма клиенту */
.cmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cmodal-bg { position: absolute; inset: 0; background: rgba(22,19,15,.45); backdrop-filter: blur(2px); }
.cmodal-card {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 26px 24px;
}
.cmodal-card .field { margin-top: 14px; }
.cmodal-card textarea {
  width: 100%; resize: vertical; font: inherit; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 14px; background: #fff;
}
.cmodal-card textarea:focus { outline: none; border-color: var(--ink); }
.modal-x {
  position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 999px;
  font-size: 20px; line-height: 1; color: var(--muted); background: var(--surface-2);
}
.modal-x:hover { color: var(--ink); }

@media (max-width: 620px) {
  .hd { padding: 0 16px; gap: 10px; }
  .hd .who, .hd .crumb { display: none; }
  .wrap { padding: 26px 16px 70px; }
  .kv { flex-direction: column; gap: 2px; }
  .kv .k { min-width: 0; }
  .ordcard { flex-wrap: wrap; gap: 8px 14px; padding: 14px 16px; }
  .ordcard .co { flex-basis: 100%; order: -1; }
  .ordcard .chev { display: none; }
  .field2 { grid-template-columns: 1fr; gap: 0; }
  .auth { margin-top: 3vh; padding: 26px 22px 22px; }
  .pline { display: none; }
  .pipeline { gap: 6px; }
  .pstep { font-size: 12.5px; padding: 6px 12px 6px 9px; }
  .pipe-actions .btn, .note-block .btn { width: 100%; }
  .plink { flex-direction: column; }
  .pdl { flex-wrap: wrap; gap: 6px 10px; }
  .pdl .co { flex-basis: 100%; order: -1; }
  .ptr { flex-wrap: wrap; gap: 8px 12px; }
  .ptr .co { flex-basis: 100%; }
  .pform input[name=email] { min-width: 100%; }
  .clrow { flex-wrap: wrap; gap: 8px 14px; padding: 14px 16px; }
  .clrow .co { flex-basis: 100%; }
  .cl-last { display: none; }
}

/* ---------- «Охота»: цели аутрича ---------- */
/* бейджи стадий: серые до контакта, оранжевые касания, зелёные исходы */
.h-cel { background: var(--surface-2); color: var(--muted); }
.h-kon { background: #e8eef5; color: #3a5a7a; }
.h-mok { background: #efe8f5; color: #6a4a8a; }
.h-k1  { background: #fdeee2; color: #c2510a; }
.h-k2  { background: #fce3cf; color: #b34a08; }
.h-k3  { background: #fbd8bb; color: #a44306; }
.h-otv { background: #e3f2e8; color: #2f7d4f; }
.h-cnv { background: var(--ok); color: #fff; }
.h-otk { background: #fbe3e3; color: #b03535; }
.h-arh { background: #e6eef2; color: #5a7a8a; }
.b-seg { background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* строка цели в списке (по образцу .ordcard) */
.prow {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 18px 12px 12px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.prow:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.prow .co { flex: 1; min-width: 0; }
.prow .co b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.prow .co span { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .chev { color: var(--line); font-size: 22px; font-weight: 600; }
.prow:hover .chev { color: var(--hl); }
.p-mock { width: 52px; height: 52px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.p-mock img { width: 100%; height: 100%; object-fit: cover; }
.p-nomock { opacity: .45; font-size: 20px; }

/* подпись следующего шага */
.nx { font-size: 13px; color: var(--muted); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.nx-od { color: #b03535; font-weight: 600; }
.nx-today { color: var(--hl); font-weight: 600; }
.nx-none { color: #b03535; opacity: .75; font-style: italic; }

/* блок «Сегодня» на дашборде */
.td-panel { border-left: 3px solid var(--hl); }
.td-date { color: var(--muted); font-size: 13px; }
.td-list { display: flex; flex-direction: column; gap: 8px; }
.td-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px; transition: border-color .15s ease;
}
.td-row:hover { border-color: var(--ink); }
.td-row.od { border-left: 3px solid #b03535; }
.td-row .co { flex: 1; min-width: 0; }
.td-row .co b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-row .co span { color: var(--muted); font-size: 12.5px; }
.td-ic { font-size: 18px; }
.td-empty { color: var(--muted); font-size: 14.5px; margin: 4px 0; }
.td-empty a { color: var(--hl); font-weight: 600; }
.td-warn { color: #b03535; font-size: 13.5px; margin: 10px 0; }

/* карточка цели: две колонки */
.hunt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.hunt-grid > div { display: flex; flex-direction: column; }
.p-hint { color: var(--muted); font-size: 13.5px; }
.p-mockpanel img.p-mockimg { width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; }
.p-actions { display: flex; flex-direction: column; gap: 8px; }
.nx-block { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-block input[type=date] { flex-shrink: 0; }
.nx-block input {
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font: inherit; font-size: 14px; background: #fff;
}
.nx-block input:first-child { flex: 1; min-width: 160px; }
.nx-quick { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.mk-status { margin-top: 10px; font-size: 14px; color: var(--hl); font-weight: 600; }
.act-touch::before { background: var(--hl) !important; }
.field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; font: inherit; font-size: 14.5px; background: #fff;
}

@media (max-width: 800px) {
  .hunt-grid { grid-template-columns: 1fr; }
  .prow { flex-wrap: wrap; gap: 8px 12px; }
  .prow .co { flex-basis: 60%; }
  .prow .nx { max-width: 100%; }
}

/* согласия 152-ФЗ в форме регистрации */
.consent-row { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted, #7a7469); line-height: 1.45; cursor: pointer; margin-bottom: 10px; }
.consent-row input { margin-top: 2px; accent-color: #e8590c; flex: none; }
.consent-row a { color: #e8590c; text-decoration: underline; }
