/* ConTender — дизайн-система. Темна преміум-тема (slate) з акцентами amber/blue.
   Довге тире в текстах не використовується. */
:root {
  --bg: #0b0f19;
  --panel: #0f172a;
  --panel2: #172033;
  --panel3: #1e293b;
  --line: #24324a;
  --line2: #33425e;
  --txt: #e8eef7;
  --muted: #94a3b8;
  --muted2: #64748b;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --green: #10b981;
  --yellow: #eab308;
  --red: #f43f5e;
  --indigo: #818cf8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.2px; }
code, .mono { font-family: "SF Mono", ui-monospace, "Roboto Mono", monospace; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #0d1424, #0b0f19); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; padding: 6px 8px 14px; }
.brand .b1 { color: var(--orange); } .brand .b2 { color: var(--blue); }
.brand .cube { width: 26px; height: 26px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), #b45309); border-radius: 8px; color: #1a1206; font-size: 14px; }
.role-pill { margin: 0 8px 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; }
.role-pill b { display: block; color: var(--txt); font-size: 13px; }
.role-pill span { color: var(--muted); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13px; border: 1px solid transparent; }
.nav-item .ic { width: 18px; text-align: center; opacity: .9; }
.nav-item:hover { background: var(--panel2); color: var(--txt); }
.nav-item.active { background: rgba(59, 130, 246, .14); color: #fff; border-color: rgba(59, 130, 246, .35); }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; }
.side-foot { margin-top: auto; font-size: 11px; color: var(--muted2); padding: 10px 8px 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11, 15, 25, .82); backdrop-filter: blur(8px); z-index: 20; }
.topbar h1 { font-size: 18px; }
.topbar .sub { color: var(--muted); font-size: 12px; }
.topbar .spacer { flex: 1; }
/* На телефоні шапка переноситься, а довга назва ролі обрізається трьома
   крапками: «Генеральний підрядник» виходив за правий край екрана 390px. */
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .topbar > div:first-child { min-width: 0; flex: 1 1 100%; }
  .topbar .spacer { display: none; }
  .topbar .chip.role { max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.demo-tag { background: rgba(245, 158, 11, .12); color: var(--orange); border: 1px solid rgba(245, 158, 11, .3); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.content { padding: 22px 26px 60px; max-width: 1400px; width: 100%; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 16px; }
/* елемент сітки має автоматичний мінімум за вмістом, тому широка таблиця всередині
   розсуває ВСЮ сторінку на телефоні. Без цього overflow-x на обгортці не рятує. */
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card h3 { font-size: 14px; margin-bottom: 4px; }
.card .cap { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted2); font-weight: 700; margin-bottom: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.kpi .l { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kpi .d { font-size: 11px; margin-top: 6px; font-weight: 600; }
.up { color: var(--green); } .down { color: var(--red); } .warn { color: var(--yellow); }

/* ---------- buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--panel3); color: var(--txt); border: 1px solid var(--line2); padding: 8px 13px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: linear-gradient(135deg, var(--blue), #2563eb); border-color: transparent; color: #fff; }
.btn.amber { background: linear-gradient(135deg, var(--orange), #d97706); border-color: transparent; color: #1a1206; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
/* ⛔ Заблокована дія не сміє виглядати доступною: кнопка «Підписати» при
   відкритому зауваженні була такою самою зеленою, як робоча, тому людина
   тисне і читає відсутність реакції як зламану програму. Стилю disabled
   у кабінеті не було ВЗАГАЛІ, тому це стосувалось кожної такої кнопки. */
.btn:disabled, .btn[disabled], button:disabled {
  opacity: .45; filter: saturate(.35); cursor: not-allowed; box-shadow: none;
}
.btn:disabled:hover, .btn[disabled]:hover, button:disabled:hover { border-color: var(--line2); transform: none; }
.btn.danger { border-color: rgba(244, 63, 94, .4); color: #fda4af; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.chip.green { background: rgba(16, 185, 129, .12); color: #6ee7b7; border-color: rgba(16, 185, 129, .3); }
.chip.yellow { background: rgba(234, 179, 8, .12); color: #fde047; border-color: rgba(234, 179, 8, .3); }
.chip.red { background: rgba(244, 63, 94, .12); color: #fda4af; border-color: rgba(244, 63, 94, .3); }
.chip.blue { background: rgba(59, 130, 246, .12); color: #93c5fd; border-color: rgba(59, 130, 246, .3); }
.chip.gray { background: var(--panel2); }
.chip.amber { background: rgba(245, 158, 11, .12); color: #fcd34d; border-color: rgba(245, 158, 11, .3); }

/* tier badges */
.tier { font-size: 10px; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.tier-Преміум { background: rgba(129, 140, 248, .15); color: #c7d2fe; }
.tier-Норма { background: rgba(59, 130, 246, .12); color: #93c5fd; }
.tier-Бюджет { background: rgba(100, 116, 139, .18); color: #cbd5e1; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted2); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: var(--panel2); }
.masked { color: var(--muted2); font-style: italic; }
.masked::before { content: "\1F441"; margin-right: 5px; opacity: .5; }

/* ---------- monitoring stage cards ---------- */
.stage { background: var(--panel2); border-left: 4px solid var(--line2); border-radius: 10px; padding: 12px; }
.stage.green { border-left-color: var(--green); }
.stage.yellow { border-left-color: var(--yellow); }
.stage.red { border-left-color: var(--red); }
.stage.gray { border-left-color: var(--muted2); }
.stage .pct { font-size: 20px; font-weight: 800; }
.bar { height: 7px; background: var(--panel3); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.bar > i { display: block; height: 100%; border-radius: 999px; }
.bar > i.blue { background: var(--blue); }
/* Великий прогрес-бар «Проєкт виконано на X%» на огляді, у грошах і в актах. */
.bar.pbar { height: 12px; margin: 10px 0 2px; }
.bar > i.green { background: var(--green); } .bar > i.yellow { background: var(--yellow); } .bar > i.red { background: var(--red); } .bar > i.gray { background: var(--muted2); }

/* cascade tree */
.casc { display: flex; flex-direction: column; gap: 10px; }
.casc .node { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; position: relative; }
.casc .node .lvl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted2); font-weight: 700; }
.casc .node .amt { font-size: 17px; font-weight: 800; }
.casc .node.masked-node { background: repeating-linear-gradient(45deg, var(--panel2), var(--panel2) 8px, #141d30 8px, #141d30 16px); }

/* ---------- misc ---------- */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.sec-title h2 { font-size: 17px; }
.divider { border-left: 3px solid var(--orange); padding-left: 12px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; gap: 10px; padding: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
/* ⛔ Бейдж у рядку списку розтягувався на всю висоту картки: `.li` це flex, а
   `align-items` за замовчуванням `stretch`, тому пігулка з `border-radius: 999px`
   на високій картці малювалась ВЕЛИКИМ ОВАЛОМ. Видно лише на повноекранному кадрі,
   тому знайдено скріншотом, а не тестом. */
.li > .chip { align-self: flex-start; flex: none; }
/* ⛔ Елемент flex має автоматичний мінімум за ВМІСТОМ, тому таблиця всередині рядка
   списку розсуває сам рядок, і `overflow-x` на `.tbl-wrap` не рятує: обгортка ширша
   за екран разом з батьком. Той самий урок, що вже двічі коштував горизонтального
   скролу на телефоні. */
.li > div { min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.dot.high { background: var(--red); } .dot.med { background: var(--yellow); } .dot.low { background: var(--green); }
.pipe { display: flex; gap: 0; }
.factor { flex: 1; text-align: center; padding: 6px 4px; }
.factor .fv { font-weight: 800; font-size: 15px; }
.factor .fl { font-size: 10px; color: var(--muted2); text-transform: uppercase; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.mini-bars i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; opacity: .8; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(3, 7, 18, .72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal .mh { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal .mb { padding: 18px; }
.x { background: var(--panel3); border: 1px solid var(--line2); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; color: var(--txt); padding: 9px 11px; font-size: 13px; }

/* toast */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--panel3); border: 1px solid var(--line2); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 200; max-width: 360px; font-size: 13px; opacity: 0; transform: translateY(10px); transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.toast.err { border-left-color: var(--red); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

/* ---------- assistant (central command) ---------- */
.as-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
/* елемент сітки і флексу має автоматичний мінімум за вмістом: без min-width:0
   широка таблиця у відповіді асистента розсуває всю колонку разом з шапкою. */
.as-wrap > *, .as-main > *, .as-thread > *, .as-msg > * { min-width: 0; }
.as-main { display: flex; flex-direction: column; min-height: calc(100vh - 130px); min-width: 0; }
.as-hero { background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(245,158,11,.08)); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.as-hero h2 { font-size: 18px; }
.as-hero p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.as-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 2px 12px; min-width: 0; }
.as-msg { max-width: 88%; }
.as-msg.user { align-self: flex-end; }
.as-bubble { padding: 11px 14px; border-radius: 14px; font-size: 14px; }
.as-msg.user .as-bubble { background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff; border-bottom-right-radius: 4px; }
.as-msg.bot .as-bubble { background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.as-msg.bot { align-self: flex-start; width: 100%; max-width: 100%; }
.as-w { margin-top: 10px; min-width: 0; }
.as-w > * { min-width: 0; }
.as-inbar { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 8px 8px 8px 14px; margin-top: 10px; position: sticky; bottom: 0; }
.as-inbar input { flex: 1; min-width: 0; background: transparent; border: none; color: var(--txt); font-size: 14px; outline: none; }
.as-mic { width: 40px; height: 40px; border-radius: 11px; background: var(--panel3); border: 1px solid var(--line2); color: var(--muted); font-size: 17px; display: grid; place-items: center; }
.as-mic.live { background: rgba(244,63,94,.15); border-color: var(--red); color: #fda4af; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,63,94,.4);} 50% { box-shadow: 0 0 0 7px rgba(244,63,94,0);} }
.as-send { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--blue), #2563eb); border: none; color: #fff; font-size: 17px; }
.as-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.as-chip { background: var(--panel2); border: 1px solid var(--line2); color: var(--txt); font-size: 12px; padding: 6px 11px; border-radius: 999px; font-weight: 500; }
.as-chip:hover { border-color: var(--blue); }
.as-confirm { background: var(--panel3); border: 1px solid var(--line2); border-left: 3px solid var(--orange); border-radius: 10px; padding: 11px 13px; margin-top: 10px; }
.as-confirm.danger { border-left-color: var(--red); }
.as-rail .card { margin-bottom: 12px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }
/* FAB */
.fab { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #d97706); border: none; color: #1a1206; font-size: 24px; box-shadow: 0 12px 28px -8px rgba(245,158,11,.5); z-index: 60; }
.fab:hover { transform: scale(1.06); }
/* agents catalog */
.ag-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.ag-card h4 { font-size: 13px; margin-bottom: 3px; }
.ag-card p { color: var(--muted); font-size: 11.5px; margin: 0; }
.ag-int { border-left: 3px solid var(--green); }
@media (max-width: 900px) { .as-wrap { grid-template-columns: 1fr; } .as-rail { display: none; } }

/* ---------- ТЗ: кошторис, зони, пакети, акти, гроші, ГПР, договір ---------- */
.drop { border: 1px dashed var(--line2); border-radius: 12px; padding: 22px 14px; text-align: center; color: var(--muted); background: var(--panel2); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--blue); background: rgba(59, 130, 246, .08); color: var(--txt); }
.ta { width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; color: var(--txt); padding: 9px 11px; font-family: inherit; font-size: 13px; resize: vertical; margin: 8px 0; }
.ta:focus { outline: none; border-color: var(--blue); }

/* редаговані клітинки таблиць (обсяг, ціна) */
input.mini, select.mini { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; color: var(--txt); padding: 4px 7px; font-family: inherit; font-size: 12px; max-width: 100%; }
input.mini:focus, select.mini:focus { outline: none; border-color: var(--blue); }
input.num { width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
input.num.auto, .num.auto { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .08); }
.hint-auto { color: var(--orange); font-size: 10px; }

/* широка таблиця гортається сама, а не розсуває сторінку */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap table { min-width: 720px; }
tr.excl td { opacity: .45; text-decoration: line-through; }
tr.excl td input, tr.excl td select { text-decoration: line-through; }
tr.excl td:first-child { border-left: 2px solid var(--muted2); }

/* договір: текст з виносками */
.doc { background: #f7f4ec; color: #1b1c1f; border-radius: 10px; padding: 20px 24px; font-family: "Georgia", "Times New Roman", serif; font-size: 14px; line-height: 1.75; max-height: 62vh; overflow-y: auto; white-space: pre-wrap; }
.doc mark { background: rgba(245, 158, 11, .38); color: inherit; border-radius: 3px; padding: 0 2px; cursor: pointer; }
.doc mark.ok { background: rgba(16, 185, 129, .32); }
.doc mark.no { background: rgba(244, 63, 94, .28); }
.doc mark.cur { outline: 2px solid var(--blue); outline-offset: 1px; }
/* Договір і зауваження поруч: текст ліворуч, протокол праворуч, без модалок. */
.docgrid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.docgrid > * { min-width: 0; }
.docside { position: sticky; top: 12px; max-height: 80vh; overflow-y: auto; }
.ann { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--panel2); }
.ann.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.ann-quote { font-style: italic; color: var(--muted); font-size: 12px; margin: 4px 0; overflow-wrap: anywhere; }
.thread { border-left: 2px solid var(--line); padding: 2px 0 2px 8px; margin-top: 6px; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .docgrid { grid-template-columns: 1fr; } .docside { position: static; max-height: none; } }

/* графік виконання робіт */
.gantt { display: grid; gap: 6px; }
.gantt .gline { margin-bottom: 12px; }
.gantt .bar { position: relative; height: 20px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.gantt .bar i { position: absolute; top: 0; bottom: 0; background: linear-gradient(135deg, var(--blue), #2563eb); border-radius: 5px; }
.gantt .bar u { position: absolute; top: 0; bottom: 0; background: rgba(16, 185, 129, .55); border-radius: 5px; text-decoration: none; }
.gantt .bar.late i { background: linear-gradient(135deg, var(--red), #be123c); }
.gantt .bar.warn i { background: linear-gradient(135deg, var(--yellow), #ca8a04); }

/* графік фінансування */
.fd-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.field.wide { grid-column: 1 / -1; }
.btn.green { background: linear-gradient(135deg, var(--green), #059669); border-color: transparent; color: #04241a; }
/* ⛔ «btn blue» це ГОЛОВНА дія екрана, і вона стоїть у розмітці 16 разів, а правила
   не було взагалі: «Заповнити ціни», «Скласти акт», «Подати пропозицію» малювались
   так само, як сусідня другорядна кнопка. Класи, яких немає у стилях, мовчать. */
.btn.blue { background: linear-gradient(135deg, var(--blue), #2563eb); border-color: transparent; color: #fff; }
.btn.blue:hover { filter: brightness(1.08); }
/* Назва роботи це найдовший текст рядка кошторису: 92px від input.num їй замало. */
input.mini.wide, .mini.wide { width: 100%; max-width: 100%; }
.x.tiny { font-size: 12px; padding: 2px 7px; }
@media (max-width: 900px) {
  .gantt .row { grid-template-columns: 120px 1fr; }
  .fd-row { grid-template-columns: 1fr 1fr; }
}

/* Широка таблиця гортається всередині своєї картки. Правило одне на всі розділи,
   бо таблиці малюються десятками місць і обгортку легко забути. */
.card:has(> table), .card:has(> .tbl-wrap) { overflow-x: auto; }
.card.pad0:has(table) { overflow-x: auto; }
.content, .main, .app { min-width: 0; }

/* Гілка каскаду поруч з рядком кошторису: хто тримає позицію і скільки. */
.holder { display: flex; align-items: center; gap: 4px; margin-top: 4px; white-space: nowrap; }
.holder-av { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(16, 185, 129, .18); color: #6ee7b7; font-size: 10px; font-weight: 700; flex: none; }
/* ---------- посилання для виконавця, запрошення і «Моя робота» ----------
   Першим робиться телефон: майстер відкриває посилання з месенджера. Кожен
   елемент рядка стискається (min-width:0), інакше довга назва роботи розсуває
   сторінку за екран на 390px. */
.pub { max-width: 560px; margin: 0 auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.pub > * { min-width: 0; }
.pub-top { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.pub-logo { width: 28px; height: 28px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line2); color: var(--orange); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.pub-in { margin-left: auto; font-size: 13px; }
.pub-head { border-left: 3px solid var(--orange); }
.pub-title { font-size: 18px; margin: 4px 0; overflow-wrap: anywhere; }
.pub-cta { border-left: 3px solid var(--blue); }
.pub-go { width: 100%; padding: 12px 16px; font-size: 15px; }
.pub-foot { text-align: center; }
.wk-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.wk-head { margin-bottom: 12px; }
.wk-note { margin-bottom: 12px; border-left: 3px solid var(--yellow); }
.wk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; }
.wk-tab { background: var(--panel2); border: 1px solid var(--line2); color: var(--txt); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.wk-tab.on { background: rgba(59, 130, 246, .16); border-color: var(--blue); color: #bfdbfe; }
.wk-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.wk-row:last-child { border-bottom: 0; }
.wk-row > * { min-width: 0; }
.wk-row > .chip { flex: none; }
.wk-main { flex: 1; min-width: 0; }
.wk-name { font-weight: 600; overflow-wrap: anywhere; }
.wk-sum { flex: none; white-space: nowrap; }
.wk-cb { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.wk-vol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.wk-vol input.mini { width: 90px; }
.wk-row.done .wk-name { color: #6ee7b7; }
.wk-row.excl { opacity: .5; }
.wk-row.excl .wk-name, .wk-row.excl .wk-main > .muted { text-decoration: line-through; }
/* Рядки форми попереднього тендера: етап і прапорець розділу кошторису. */
.pt-stage { align-items: center; }
.pt-sec { width: auto; }
