:root {
  --ground: #F3F1EC; --paper: #FFFFFF; --ink: #1C1F23; --muted: #5B6068; --line: #E4DFD5; --chip: #EAE6DD;
  --accent: #E8590C; --accent-ink: #B8440A; --accent-soft: #FFEBDD; --ok: #1F6B41; --ok-soft: #E3F1E8; --danger: #9B1C1C;
  --radius: 16px; --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #16181B; --paper: #202328; --ink: #EDEAE4; --muted: #A7ADB5; --line: #343840; --chip: #2B2F35;
  --accent: #FF7A33; --accent-ink: #FF9A5C; --accent-soft: #3A2518; --ok: #7BD3A0; --ok-soft: #1C3326; --danger: #FF9C92;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; padding-bottom: calc(76px + var(--safe-b)); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, .display { font-family: Unbounded, Onest, sans-serif; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 24px; margin: 4px 0 12px; }
h2 { font-size: 14px; font-family: Onest, sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.screen { max-width: 640px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 20px; }
.brand b { color: var(--accent); font-weight: inherit; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { display: block; border-radius: 22%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; width: 100%; }
.btn.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn.tg { background: #2AABEE; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .chip:focus-visible, .tabs a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .seg > :focus-visible, a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=number], textarea, select.input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 12px 14px; font-size: 16px; }
textarea { min-height: 110px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role { text-align: left; border: 2px solid var(--line); background: var(--paper); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.role b { font-size: 16px; } .role span { font-size: 13px; color: var(--muted); }
.role.on { border-color: var(--accent); background: var(--accent-soft); }
.profile-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 76px; height: 76px; border-radius: 22px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: Unbounded, sans-serif; font-size: 26px; overflow: hidden; flex: none; object-fit: cover; }
.avatar.sm { width: 48px; height: 48px; border-radius: 14px; font-size: 17px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--chip); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--chip); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.tile .del { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 10px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; cursor: pointer; }
.tile.add { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); background: transparent; cursor: pointer; color: var(--muted); font-size: 30px; }
.person { display: flex; gap: 12px; align-items: center; }
.person .t { flex: 1; min-width: 0; }
.person .t b { display: block; }
.soon { text-align: center; padding: 36px 20px; }
.soon .display { font-size: 18px; margin-bottom: 8px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--paper); border-top: 1px solid var(--line); padding: 6px 6px calc(8px + var(--safe-b)); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 12px; color: var(--muted); }
.tabs a.on { color: var(--accent-ink); font-weight: 700; }
.tabs svg { width: 22px; height: 22px; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; touch-action: none; overscroll-behavior: contain; }
.viewer .stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.viewer .stage img { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; }
.viewer .x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 30px; cursor: pointer; }
.viewer .nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.viewer .nav.prev { left: 8px; } .viewer .nav.next { right: 8px; }
.viewer .nav[hidden] { display: none; }
.viewer .cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(20px + var(--safe-b)); color: #fff; opacity: .75; text-align: center; font-size: 13px; pointer-events: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.err { color: var(--danger); font-size: 14px; }
.copy { display: flex; gap: 8px; align-items: center; }
.copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; background: var(--chip); padding: 8px 10px; border-radius: 8px; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.filters select { width: 100%; min-width: 0; min-height: 44px; }
/* ── этап 2: биржа ── */
.tab-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--chip); border-radius: 14px; }
.seg > * { border: 0; background: none; border-radius: 10px; min-height: 40px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.seg > .on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.order { display: flex; flex-direction: column; gap: 8px; }
.order-top, .order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-title { font-size: 17px; line-height: 1.3; display: block; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.count { font-size: 13px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.count.full { color: var(--muted); }
.plaque { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--chip); font-size: 14px; }
.plaque.warn { background: var(--accent-soft); color: var(--accent-ink); }
.plaque.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 32px; margin-top: -4px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
select.input { min-height: 48px; }
div.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { font-weight: 400; }
.row .field { min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.facts > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.resp { display: flex; flex-direction: column; gap: 10px; }
.resp-mini { display: flex; flex-direction: column; gap: 8px; }
.resp-mini > a { display: flex; flex-direction: column; gap: 2px; }
.price { font-weight: 700; font-size: 17px; }
.author { display: flex; flex-direction: column; gap: 10px; }
.author .kv { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps li { padding-top: 8px; font-size: 13px; color: var(--muted); border-top: 4px solid var(--line); }
.steps li.on { color: var(--ok); font-weight: 700; border-color: var(--ok); }
.steps li.bad { color: var(--ink); border-color: var(--muted); }
/* ── чаты ── */
.chat-row { display: flex; gap: 12px; align-items: center; }
.chat-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-row .line { display: flex; justify-content: space-between; gap: 8px; }
.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.unread { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avatar.xs { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
.chat { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--ground); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-head .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msgs { flex: 1; overflow-y: auto; padding: 12px max(16px, calc(50% - 304px)); display: flex; flex-direction: column; gap: 6px; }
.msg { align-self: flex-start; max-width: 82%; background: var(--paper); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px 6px; white-space: pre-line; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--accent-soft); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
.msg.sys { align-self: center; max-width: 92%; background: var(--chip); border: 0; border-radius: 12px; font-size: 14px; color: var(--muted); }
.day { align-self: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.chatbar { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(8px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--paper); }
.chatbox .chatbar { border-top: 0; }
.chatbar textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 14px; border-radius: 22px; }
.send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.send svg { width: 22px; height: 22px; }
/* ── этап 3: сообщество ── */
.list { display: flex; flex-direction: column; gap: 12px; }
.list:empty { display: none; }
.post { display: flex; flex-direction: column; gap: 10px; }
.post-text { white-space: pre-line; overflow-wrap: anywhere; }
a.post-text { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post .person .t, .comment .person .t { display: flex; flex-direction: column; }
.useful { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600; cursor: pointer; }
.useful svg { width: 18px; height: 18px; flex: none; }
.useful.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.useful:disabled { cursor: default; }
.useful:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile .more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); color: #fff; font-weight: 700; font-size: 20px; pointer-events: none; }
.feed-bar > select { flex: 1.4; min-width: 0; min-height: 48px; }
.feed-bar > .btn { flex: 1; width: auto; }
.comment { display: flex; flex-direction: column; gap: 8px; }
.comment.best { border: 2px solid var(--ok); }
.best-label { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 4px 8px; border-radius: 6px; }
.comment-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.comment-foot:empty { display: none; }
.modform { display: flex; gap: 8px; align-items: center; width: 100%; }
.modform input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 15px; }
.chip.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.chip:disabled { opacity: .5; }
.reply { display: flex; flex-direction: column; gap: 10px; }
.reply textarea { min-height: 90px; }
.group-row { display: flex; gap: 12px; align-items: center; }
.group-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.group-row .chip { flex: none; }
.top .chip.one { max-width: 60%; }
.btn.secondary.on { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; padding: 14px 8px; }
.stats b { display: block; font-family: Unbounded, sans-serif; font-size: 20px; line-height: 1.2; }
.stats span { font-size: 12px; color: var(--muted); }
/* ── этап 4: сообщения ── */
.search { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 12px 14px; font-size: 16px; }
.search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nowrap { white-space: nowrap; }
.avatar.group { background: var(--ink); color: var(--ground); }
.muted-ic { flex: none; color: var(--muted); display: flex; } .muted-ic svg { width: 18px; height: 18px; }
.unread.quiet { background: var(--muted); }
.chat-head .head-av { flex: none; display: flex; }
.icon-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 26px; line-height: 1; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { color: var(--accent-ink); background: var(--accent-soft); }
.icon-btn:focus-visible, .msg:focus-visible, .quote:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chatbox { border-top: 1px solid var(--line); background: var(--paper); }
.chat-err { padding: 8px 16px 0; }
.replybar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 0 16px; }
.replybar .t { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 3px solid var(--accent); padding-left: 10px; font-size: 14px; }
.replybar b { color: var(--accent-ink); }
.mrow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 100%; border-radius: 16px; transition: background .3s; }
.mrow.mine { align-items: flex-end; }
.mrow.flash { background: var(--accent-soft); }
.mrow > .msg { max-width: 82%; cursor: pointer; white-space: normal; }
.msg .txt { white-space: pre-line; overflow-wrap: anywhere; }
.msg.gone { color: var(--muted); cursor: default; background: transparent; border-style: dashed; }
.msg.media { padding: 4px 4px 6px; }
.msg.media .txt, .msg.media time, .msg.media .who, .msg.media .quote { margin-left: 8px; margin-right: 8px; }
.who { display: block; font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-bottom: 2px; }
.quote { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--accent); background: var(--chip); border-radius: 6px; padding: 4px 8px; margin: 2px 0 6px; font-size: 13px; cursor: pointer; }
.msg.mine .quote { background: rgba(0,0,0,.06); }
.quote span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.att { display: block; width: 260px; max-width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; background: var(--chip); cursor: pointer; }
.att-video { position: relative; height: 180px; border: 0; padding: 0; overflow: hidden; color: #fff; }
.att-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-video i { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 28px; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 22px; padding-left: 4px; }
.att-video:not(:has(img)) { background: linear-gradient(135deg, #3B4048, #1C1F23); }
.att-file { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 260px; padding: 4px 2px; }
.ficon { flex: none; width: 44px; height: 52px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; overflow: hidden; }
.fname { min-width: 0; display: flex; flex-direction: column; }
.fname b { font-size: 14px; overflow-wrap: anywhere; line-height: 1.3; }
.fname small { color: var(--muted); font-size: 12px; }
.ocard { display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 10px 12px; margin: 2px 0 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.ocard b { font-size: 15px; line-height: 1.3; }
.ocard-btn { align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.ticks { margin-left: 4px; letter-spacing: -3px; color: var(--muted); }
.ticks.on { color: var(--ok); }
.warn-plaque { max-width: 82%; font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; background: var(--paper); border-radius: 18px 18px 0 0; padding: 8px 8px calc(12px + var(--safe-b)); display: flex; flex-direction: column; max-height: 80dvh; overflow-y: auto; }
.sheet-title { padding: 10px 12px 6px; font-weight: 700; color: var(--muted); font-size: 14px; }
.sheet button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; justify-content: center; border: 0; background: none; text-align: left; padding: 8px 12px; border-radius: 12px; font-size: 16px; cursor: pointer; }
.sheet button small { color: var(--muted); font-size: 13px; }
.sheet button:hover, .sheet button:focus-visible { background: var(--chip); outline: none; }
.sheet button.danger { color: var(--danger); }
.sheet button.cancel { align-items: center; margin-top: 4px; color: var(--muted); font-weight: 600; }
.pick-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 12px; font-weight: 400; cursor: pointer; }
.pick input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.pick .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#picker { display: flex; flex-direction: column; gap: 8px; }
/* ── этап 5: отзывы, жалобы, модерация ── */
.badge.warn { background: var(--accent-soft); color: var(--danger); }
.linkbtn { align-self: center; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 10px; cursor: pointer; }
.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rates > div { display: flex; flex-direction: column; min-width: 0; }
.rates b { font-size: 15px; }
.review { display: flex; flex-direction: column; gap: 8px; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stars { color: var(--accent); font-size: 18px; letter-spacing: 1px; }
.reply-box { border-left: 3px solid var(--ok); background: var(--ok-soft); border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.reply-box b { color: var(--ok); font-size: 13px; }
.reply-form { display: flex; flex-direction: column; gap: 8px; }
.reply-form textarea { min-height: 70px; }
.rate { flex: none; font-weight: 700; color: var(--accent-ink); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.rate small { color: var(--muted); font-weight: 400; font-size: 12px; }
.people-bar > select { flex: 1.6; min-width: 0; min-height: 44px; }
.people-bar > .check { flex: 1; margin: 0; white-space: nowrap; }
.dealbar { padding: 8px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.deal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deal-row > span:first-child { min-width: 0; }
.deal-btns { display: flex; gap: 6px; flex: none; }
.dealbar .chip { white-space: nowrap; padding: 6px 12px; }
.dealbar .field textarea { min-height: 70px; }
.dealbar .err:empty { display: none; }
.star-pick { display: flex; gap: 6px; }
.star-pick button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--line); font-size: 26px; cursor: pointer; }
.star-pick button.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.star-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.blocked-card { display: flex; flex-direction: column; gap: 12px; border-color: var(--danger); }
.blocked-card .display { font-size: 20px; color: var(--danger); }
.blocked-card .kv { display: flex; flex-direction: column; gap: 2px; }
.mod-seg { grid-auto-columns: auto; overflow-x: auto; }
.mod-seg > * { padding: 0 10px; white-space: nowrap; }
.mod-item { display: flex; flex-direction: column; gap: 8px; }
.mod-item textarea, .mod-actions textarea { min-height: 70px; }
.mod-item .kv { display: flex; flex-direction: column; gap: 2px; }
.mod-item details { font-size: 14px; } .mod-item details > div { padding: 2px 0; }
.mod-actions { display: flex; flex-direction: column; gap: 10px; }
.log-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.log-row a, .mod-item a:not(.person) { text-decoration: underline; }
.stats small { display: block; font-size: 11px; color: var(--muted); }
.sheet.report { gap: 4px; padding: 8px 12px calc(12px + var(--safe-b)); }
.sheet.report .pick { min-height: 44px; }
.sheet.report .row .btn { width: auto; flex: 1; }
.sheet.report .err:empty { display: none; }
.sheet .btn { align-items: center; justify-content: center; background: var(--accent); color: #fff; border-radius: 14px; font-weight: 700; padding: 0 18px; }
.sheet .btn.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.sheet .btn:hover, .sheet .btn:focus-visible { background: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet .btn.secondary:hover { background: var(--chip); }
.count.hot { color: var(--danger); }
/* ── этап 6: команда компании ── */
.avatar.xxs { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.act-switch > button { gap: 8px; padding: 0 10px; min-height: 44px; }
.act-switch .one { min-width: 0; }
.team-row { gap: 10px; }
.team-strip { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.team-face { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
a.team-face span { text-decoration: underline; text-decoration-color: var(--line); }
a.plaque { color: inherit; }
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.msg.mine .who { color: var(--muted); }
.answered-by { color: var(--accent-ink); font-weight: 600; }
/* этап 7: телефон в анкете, лист ожидания, база пользователей */
input[type=tel], input[type=search] { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 12px 14px; font-size: 16px; }
.phone-field { padding: 12px; margin: 0 -12px; border-radius: 14px; }
.phone-field.need { background: var(--accent-soft); outline: 2px solid var(--accent); }
.phone-field.bad input[type=tel], .phone-field.need input[type=tel] { border-color: var(--accent); }
.need-note { color: var(--accent-ink); font-size: 13px; }
.phone-row { display: flex; flex-direction: column; gap: 8px; }
.phone-row .btn { min-height: 44px; font-size: 15px; }
.ok-mark { display: block; color: var(--ok); font-size: 13px; font-weight: 700; }
span.ok-mark { display: inline; }
.t .ok-mark, .phone-field .ok-mark { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; padding: 4px 0; }
.consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.consent a { text-decoration: underline; }
.consent.bad span { color: var(--danger); }
.wl-item { display: flex; flex-direction: column; gap: 10px; }
.nowrap { white-space: nowrap; }
.screen.wide { max-width: 1180px; }
.utable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.utable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.utable td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.utable tr:last-child td { border-bottom: 0; }
.utable tr.dup td { background: var(--accent-soft); }
.utable .badge { display: inline-block; margin-top: 2px; }
@media (max-width: 760px) {
  .utable, .utable tbody { display: block; border: 0; background: none; }
  .utable thead { display: none; }
  .utable tr { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
  .utable tr.dup { background: var(--accent-soft); border-color: var(--accent); }
  .utable tr.dup td { background: none; }
  .utable td { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 0; border: 0; }
  .utable td::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 600; padding-top: 2px; }
  .utable td:first-child { display: block; margin-bottom: 2px; }
  .utable td:first-child::before, .utable td:last-child::before { content: none; }
  .utable td:last-child { display: block; }
}
