/* Тендер Асистент — робоче місце тендерника. Світла й темна тема, телефон і комп'ютер. */
:root {
  --bg: #F3F5F9;
  --bg-2: #EAEEF5;
  --card: #FFFFFF;
  --ink: #0D1526;
  --ink-2: #33415A;
  --muted: #5D6A80;
  --line: #E3E8F0;
  --accent: #3157E8;
  --accent-2: #5B3FE0;
  --accent-soft: #EBF0FE;
  --good: #0E7F57;
  --good-soft: #E2F5EC;
  --warn: #A95A06;
  --warn-soft: #FDF1E2;
  --bad: #BE3328;
  --bad-soft: #FCEAE8;
  --violet-soft: #F0ECFE;
  --shadow: 0 1px 2px rgba(13, 21, 38, .05), 0 6px 20px rgba(13, 21, 38, .06);
  --shadow-up: 0 2px 4px rgba(13, 21, 38, .06), 0 14px 36px rgba(13, 21, 38, .12);
  --r: 18px;
  --r-sm: 12px;
  --side: #0E1A33;
  --side-ink: #DCE4F5;
  --side-muted: #95A3BF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1120; --bg-2: #0F182B; --card: #121C31; --ink: #E8EDF7; --ink-2: #C3CDE0; --muted: #94A2BB;
    --line: #1F2C46; --accent: #7591FF; --accent-2: #9C87FF; --accent-soft: #1A2650; --good: #49C793;
    --good-soft: #10302A; --warn: #F0A55A; --warn-soft: #362612; --bad: #F2847A; --bad-soft: #3A1A1A;
    --violet-soft: #231C45; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --side: #08101F;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1120; --bg-2: #0F182B; --card: #121C31; --ink: #E8EDF7; --ink-2: #C3CDE0; --muted: #94A2BB;
  --line: #1F2C46; --accent: #7591FF; --accent-2: #9C87FF; --accent-soft: #1A2650; --good: #49C793;
  --good-soft: #10302A; --warn: #F0A55A; --warn-soft: #362612; --bad: #F2847A; --bad-soft: #3A1A1A;
  --violet-soft: #231C45; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --side: #08101F;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- каркас ---------- */
.app { min-height: 100vh; display: flex; }
.side {
  width: 248px; flex: none; background: var(--side); color: var(--side-ink); padding: 22px 14px;
  display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px rgba(49, 87, 232, .35);
}
.brand b { display: block; font-size: 15.5px; color: #fff; letter-spacing: -.01em; }
.brand span { font-size: 12px; color: var(--side-muted); }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side a.nav {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--side-ink);
  font-weight: 600; transition: background .15s;
}
.side a.nav:hover { background: rgba(255, 255, 255, .06); }
.side a.nav.on { background: rgba(255, 255, 255, .11); color: #fff; }
.side a.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; font-size: 12.5px; color: var(--side-muted); padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.side-foot a { color: #A9BCFF; font-weight: 700; }
.main { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1280px; }
.tabs { display: none; }

@media (max-width: 899px) {
  .side { display: none; }
  .main { padding: 14px 14px 104px; }
  .tabs {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .tabs a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted);
    font-size: 11px; font-weight: 700; border-radius: 12px;
  }
  .tabs a.on { color: var(--accent); }
  .tabs a.on svg { transform: translateY(-1px); }
}

/* ---------- заголовок сторінки ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.eyebrow { font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 13.5px;
  margin-bottom: 10px; background: none; border: 0; padding: 4px 0;
}
@media (max-width: 899px) { .head h1 { font-size: 23px; } }

/* ---------- картки й сітки ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card h2 { margin: 0 0 14px; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card h2 .more { margin-left: auto; font-size: 13px; font-weight: 700; }
.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 899px) { .grid.two { grid-template-columns: 1fr; } .grid.kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.kpi { position: relative; overflow: hidden; }
.kpi .label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kpi .value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kpi .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.kpi .ico { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
@media (max-width: 899px) { .kpi { padding: 14px; } .kpi .value { font-size: 22px; } .kpi .ico { display: none; } }

.hello {
  border-radius: 22px; padding: 22px 22px 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2347D6 0%, #4A36D4 60%, #6A3BD8 100%); box-shadow: 0 12px 34px rgba(49, 87, 232, .28);
}
.hello h1 { margin: 2px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hello p { margin: 0; opacity: .88; font-size: 14px; }
.hello .stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hello .stat { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 9px 13px; min-width: 104px; }
.hello .stat b { display: block; font-size: 20px; font-weight: 800; }
.hello .stat span { font-size: 12px; opacity: .85; }
@media (max-width: 899px) {
  .hello { padding: 18px 16px; }
  .hello h1 { font-size: 22px; }
  .hello .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hello .stat { min-width: 0; padding: 8px 10px; }
  .hello .stat b { font-size: 18px; }
  .hello .stat span { font-size: 11px; display: block; line-height: 1.25; }
}
.hello::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
}

/* ---------- списки ---------- */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 13px; padding: 12px 6px; border-radius: 14px; color: var(--ink);
  border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left;
}
.row:last-child { border-bottom: 0; }
a.row:hover, button.row:hover { background: var(--bg); }
.row .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.row .body { flex: 1; min-width: 0; }
.row .t { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { text-align: right; flex: none; font-size: 13px; font-weight: 700; }
.empty { color: var(--muted); font-size: 14px; padding: 18px 6px; text-align: center; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- позначки ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.muted { background: var(--bg-2); color: var(--ink-2); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.violet { background: var(--violet-soft); color: var(--accent-2); }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.bar { height: 7px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s; }
.bar.good > i { background: var(--good); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; transition: transform .08s, box-shadow .15s;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(49, 87, 232, .3); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn.ghost { background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.input {
  display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 13px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- дошка ---------- */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; margin: 0 -2px; }
.col { flex: 0 0 286px; scroll-snap-align: start; background: var(--bg-2); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.col-head b { font-size: 14px; font-weight: 800; }
.col-head .cnt { background: var(--card); border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 800; }
.col-head .sum { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.col-hint { font-size: 12px; color: var(--muted); padding: 0 4px; display: flex; gap: 5px; align-items: center; }
.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 13px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .15s; cursor: pointer;
}
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.tcard .t { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .b { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.tcard .amt { font-weight: 800; font-size: 14px; }
.tcard .ck { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.tcard .ck .bar { flex: 1; }
.tcard .line { font-size: 12.5px; color: var(--ink-2); }
.drop-empty { border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 14px; padding: 16px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
@media (max-width: 899px) { .col { flex-basis: 84vw; } }

/* ---------- закупівля ---------- */
.hero { padding: 22px; }
.hero .title { font-size: 21px; font-weight: 800; letter-spacing: -.015em; margin: 6px 0 8px; line-height: 1.3; }
.hero .metaline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.fact { background: var(--bg); border-radius: 14px; padding: 11px 13px; }
.fact span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.fact b { font-size: 15.5px; font-weight: 800; }
.steps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.step {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 13px 8px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 700; font-size: 13px; color: var(--ink-2);
}
.step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--bg-2); }
.step.done { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.step.done i { background: var(--card); }
.step.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.step.on i { background: rgba(255,255,255,.22); }
.step[disabled] { cursor: default; opacity: .8; }
.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 13px; cursor: pointer;
  transition: background .15s; border: 1px solid transparent;
}
.check:hover { background: var(--bg); }
.check .box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid color-mix(in srgb, var(--muted) 55%, transparent);
  flex: none; display: grid; place-items: center; margin-top: 1px; transition: all .15s;
}
.check.on .box { background: var(--good); border-color: var(--good); color: #fff; }
.check.on .txt { color: var(--muted); }
.check .txt { font-size: 14px; }
.check .cond { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--accent-2); }
.note { font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 10px 12px; }

/* ---------- календар ---------- */
.day { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: 0; }
.day .date { width: 56px; flex: none; text-align: center; background: var(--bg); border-radius: 14px; padding: 7px 0; height: fit-content; }
.day .date b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.day .date span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.day.today .date { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.day.today .date span { color: rgba(255,255,255,.85); }
.day .evs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ev { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); }
.ev .t { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .s { font-size: 12px; color: var(--muted); }

/* ---------- графіки й таблиці ---------- */
.chart { width: 100%; height: 220px; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.hbar .top span:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .top span:last-child { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.hbar .track { height: 9px; background: var(--bg-2); border-radius: 99px; overflow: hidden; display: flex; }
.hbar .track i { display: block; height: 100%; }
.hbar .track i.a { background: var(--accent); }
.hbar .track i.b { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl .name { font-weight: 700; }
.tbl .sub { font-size: 12px; color: var(--muted); }
.timeline { display: flex; flex-wrap: wrap; gap: 10px; }
.tl { flex: 1 1 150px; background: var(--bg); border-radius: 14px; padding: 11px 13px; }
.tl span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.tl b { font-size: 15px; }

/* ---------- службове ---------- */
.skel { background: linear-gradient(90deg, var(--bg-2) 25%, var(--line) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: 14px; }
@keyframes sh { to { background-position: -200% 0; } }
.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: #0D1526; color: #fff; padding: 11px 16px; border-radius: 13px; font-weight: 700; font-size: 14px; z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: all .25s; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spin { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: grid; place-items: center; text-align: center; min-height: 60vh; gap: 12px; }
.center .big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; margin: 0 auto 6px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- сторінка входу для гостей ---------- */
body.guest .side, body.guest .tabs { display: none; }
body.guest .main { max-width: none; padding: 0; }
.g { max-width: 1180px; margin: 0 auto; padding: 24px 28px 40px; }
.g-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.g-top .brand b { color: var(--ink); }
.g-top .brand span { color: var(--muted); }
.g-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.g-copy h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.03em; margin: 10px 0 16px; font-weight: 800; }
.g-lead { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 540px; }
.btn.tg { background: #2AABEE; color: #fff; border-color: transparent; min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 15px; box-shadow: 0 10px 24px rgba(42, 171, 238, .35); }
.btn.tg:hover { background: #229ED9; }
.g-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.g-warn { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 13px; font-weight: 700; font-size: 14px; margin: 0 0 14px; }
.g-visual { position: relative; height: 380px; }
.g-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-up); padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; width: 300px; }
.g-card .label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.g-card b { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.g-card .sub { font-size: 13px; color: var(--muted); }
.g-card.a { top: 0; left: 6%; }
.g-card.b { top: 120px; right: 0; width: 320px; }
.g-card.c { bottom: 6px; left: 0; }
.g-card.c b { font-size: 17px; }
.g-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--good); font-weight: 700; }
.g-line.muted { color: var(--muted); font-weight: 600; }
.g-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 54px; }
.g-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.g-feature .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; padding: 0; }
.g-feature b { display: block; font-size: 16px; margin-bottom: 4px; }
.g-feature p { margin: 0; color: var(--muted); font-size: 14px; }
.g-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; }
.g-wait { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-up); max-width: 560px; }
.g-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.g-steps div { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.g-steps i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.g-qr-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.g-qr { background: #fff; padding: 8px; border-radius: 14px; border: 1px solid var(--line); width: 166px; height: 166px; }
.g-qr img, .g-qr canvas { display: block; }
.g-qr-side { flex: 1; min-width: 200px; }
.g-status { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-2); margin: 12px 0 8px; }
@media (max-width: 899px) {
  .g { padding: 16px 16px 30px; }
  .g-top { margin-bottom: 20px; }
  .g-hero { grid-template-columns: 1fr; gap: 26px; }
  .g-copy h1 { font-size: 32px; }
  .g-lead { font-size: 15.5px; }
  .btn.tg { width: 100%; }
  .g-visual { height: 300px; }
  .g-card { width: 250px; padding: 14px 16px; }
  .g-card.b { width: 260px; top: 100px; }
  .g-card b { font-size: 18px; }
  .g-features { grid-template-columns: 1fr; margin-top: 30px; }
  .g-qr { display: none; }
}

/* ---------- пошук і фільтри ---------- */
.results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.results > * { min-width: 0; }
.results .tcard { cursor: pointer; }
.input .btn { margin-right: -8px; }
button.chip { border: 0; cursor: pointer; font-family: inherit; }
.frow { display: flex; gap: 14px; align-items: flex-start; }
.frow h2 { display: flex; align-items: center; gap: 8px; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form .lbl { font-weight: 800; font-size: 14px; margin-top: 12px; }
.form .lbl:first-child { margin-top: 0; }
.form .lbl .muted { font-weight: 600; }
.form .hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.form .err { margin: 4px 0 0; min-height: 18px; color: var(--bad); font-size: 13.5px; font-weight: 700; }
.pick { display: flex; flex-wrap: wrap; gap: 7px; }
.pick .chip { padding: 7px 12px; font-size: 13px; transition: transform .08s; }
.pick .chip:active { transform: scale(.96); }
.two-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#fbsugg .list { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 2px 8px; background: var(--card); max-height: 290px; overflow: auto; }
@media (max-width: 899px) { .results { grid-template-columns: minmax(0, 1fr); } .input .btn { padding: 0 10px; } }
.sub-h { font-size: 14.5px; font-weight: 800; margin: 18px 0 8px; }
.card .grid.kpis .kpi { box-shadow: none; background: var(--bg); border-color: transparent; }

/* ---------- пошук як на Prozorro ---------- */
.pz { display: flex; flex-direction: column; gap: 14px; }
.pz .input { box-shadow: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06); transition: background .12s, border-color .12s;
}
.pill:hover { background: var(--bg); }
.pill.open { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pill.on { border-color: var(--accent); }
.pill i { font-style: normal; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.ppanel { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ppanel .lbl { font-weight: 800; font-size: 14px; }
.ppanel .seg { flex-wrap: wrap; align-self: flex-start; }
.ppanel #psugg .list { border: 1px solid var(--line); border-radius: 14px; padding: 2px 8px; max-height: 320px; overflow: auto; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 2px; max-height: 340px; overflow: auto; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.opt:hover { background: var(--bg); }
.opt .box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; }
.opt .box.round { border-radius: 50%; }
.opt.on .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt.on { font-weight: 700; }
.pfoot { display: flex; justify-content: flex-end; gap: 8px; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 11px; border-radius: 10px; background: var(--good-soft); color: var(--ink); font-size: 13px; font-weight: 600; max-width: 100%; }
.achip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 5px; border-radius: 6px; }
.achip button:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.reset { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 0 0; align-self: flex-start; }
.reset:hover { color: var(--ink); }
.myf { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.sbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sbar p { margin: 0; color: var(--muted); font-size: 14px; }
.sbar p b { color: var(--ink); }
.sort { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sort select { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 2px; }
.tcard .ref { font-size: 12px; color: var(--muted); }
.more-wrap { text-align: center; margin-top: 16px; }
@media (max-width: 899px) {
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -2px; padding: 0 2px 4px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pz .input .btn { padding: 0 10px; }
}
.pz > div:empty { display: none; }
.two-inputs > * { min-width: 0; }
.input input[type="date"] { width: 100%; min-width: 0; font: inherit; color: var(--ink); }
@media (max-width: 899px) { .ppanel .two-inputs { grid-template-columns: 1fr; } }

/* ---------- результати пошуку рядками, як на Prozorro ---------- */
.pzlist { display: flex; flex-direction: column; gap: 14px; }
.pzrow { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .15s; }
.pzrow:hover { box-shadow: var(--shadow-up); }
.pzr-title { display: block; color: var(--accent); font-size: 17px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.pzr-title:hover { text-decoration: underline; }
.pzr-status { margin: 12px 0 14px; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pzr-status b { color: var(--good); font-weight: 700; }
.pzr-status b.done { color: var(--muted); }
.pzr-status i { font-style: normal; color: var(--accent); }
.pzr-info { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 13.5px; }
.pzr-info dt { color: var(--ink); font-weight: 600; border-bottom: 1px dotted var(--line); align-self: start; padding-bottom: 2px; }
.pzr-info dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.pzr-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; color: var(--muted); }
.pzr-amt { color: var(--good); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pzr-amt small { font-size: 12.5px; font-weight: 600; }
.ogroup { font-weight: 800; font-size: 13.5px; margin: 10px 0 4px; }
.ogroup:first-child { margin-top: 0; }
.pscroll { max-height: 380px; overflow: auto; }
.pscroll .opts { max-height: none; overflow: visible; }
@media (max-width: 899px) {
  .pzrow { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .pzr-title { font-size: 15.5px; }
  .pzr-info { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pzr-info dd { margin-bottom: 6px; }
  .pzr-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .pzr-side > span { width: 100%; }
  .pzr-amt { margin: 0 auto 0 0; }
}

/* ---------- сторінка закупівлі ---------- */
.att { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.att li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.att li i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12.5px; margin-top: 1px; }
.att li.warn i { background: var(--warn-soft); color: var(--warn); }
.att li.good i { background: var(--good-soft); color: var(--good); }
.att li.info i { background: var(--accent-soft); color: var(--accent); }
.sum-a { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sum-a > .spin + .muted { margin-left: 8px; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sum-grid > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sum-grid span { font-size: 12.5px; color: var(--muted); }
.sum-grid b { font-size: 20px; }
.sum-grid small { font-size: 12px; color: var(--muted); }
.sum-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.sum-who .chip { cursor: pointer; border: 0; font-family: inherit; }
.desc { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.tbl.items td { vertical-align: top; font-size: 13.5px; }
.tbl.items td:first-child { min-width: 260px; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv a { color: var(--accent); }
.lbl-s { font-weight: 800; font-size: 13.5px; margin: 4px 0 6px; }
.plain { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.more-d summary, .qa summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 6px 0; }
.qa { border-top: 1px solid var(--line); padding: 6px 0; }
.qa:first-of-type { border-top: 0; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qa p { margin: 6px 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.qa .answer { background: var(--good-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-line; }
.row .ic.ext { width: 46px; font-size: 11px; text-transform: uppercase; font-weight: 800; }
.help-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.form textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 15px; background: var(--card); color: var(--ink); resize: vertical; }
.ck-cat { font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 12px 4px; }
.ck-cat:first-child { margin-top: 2px; }
.check .ck-rm { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.check .ck-rm:hover { background: var(--bg-2); color: var(--ink); }
.ck-add { margin-top: 12px; box-shadow: none; }
@media (max-width: 899px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .tbl.items td:first-child { min-width: 200px; }
}
.grid.two .kv { grid-template-columns: 130px minmax(0, 1fr); }
@media (max-width: 899px) { .grid.two .kv { grid-template-columns: minmax(0, 1fr); } }
.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px 18px; }
.feat-i { display: flex; gap: 12px; align-items: flex-start; }
.feat-i .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.feat-i .ic.emo { font-size: 18px; }
.feat-i b { font-size: 14.5px; }
.feat-i p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.fmode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.fmode .seg button { font-size: 12.5px; padding: 6px 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row b { font-size: 14.5px; }
.toggle-row p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.toggle-row .seg { flex-wrap: wrap; }
.switch { flex: none; width: 46px; height: 28px; border-radius: 99px; border: 0; background: var(--bg-2); position: relative; cursor: pointer; transition: background .15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.switch.on { background: var(--accent); }
.switch.on i { left: 21px; }
.card.dim { opacity: .55; }
@media (max-width: 899px) { .toggle-row { flex-wrap: wrap; } }
.g-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0 10px; }
.g-or::before, .g-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#tgwidget { min-height: 40px; }

/* ---------- команда ---------- */
.tcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.tcol { background: var(--bg-2); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 140px; }
.badge.dark { background: var(--card); color: var(--ink); }
.task { background: var(--card); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; border: 1px solid transparent; }
.task.late { border-color: var(--bad); }
.task .t { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.task .t:hover { color: var(--accent); }
.task .b { font-size: 12px; color: var(--muted); }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.task .note-t { margin: 0; font-size: 13px; color: var(--ink-2); }
.task .actions { gap: 6px; }
select.mini, select.full { border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; padding: 6px 8px; max-width: 100%; }
select.full { width: 100%; font-size: 15px; padding: 11px 12px; border-radius: 14px; }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; vertical-align: middle; }
.member { border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .row { border-bottom: 0; flex-wrap: wrap; }
.member .end { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.member-items { padding: 0 6px 10px 56px; }
.sub-row { padding: 8px 6px; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.copy-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--bg); padding: 8px 10px; border-radius: 10px; font-size: 12.5px; }
.copy-row .lbl-s { width: 100%; margin: 0; }
@media (max-width: 899px) {
  .tcols { grid-template-columns: minmax(0, 1fr); }
  .member-items { padding-left: 6px; }
  .member .end { justify-content: flex-start; width: 100%; }
}
.stack > div:empty { display: none; }
.att-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.team-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.team-switch .chip { border: 0; cursor: pointer; font-family: inherit; }

/* ---------- база знань ---------- */
.kb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kb-steps li { display: flex; gap: 12px; align-items: flex-start; }
.kb-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }
.kb-steps b { font-size: 14.5px; }
.kb-steps p { margin: 2px 0 2px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.kb-steps.compact { gap: 8px; }
.kb-steps.compact li { font-size: 14px; align-items: center; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 14px; align-items: start; }
.kb-art summary { cursor: pointer; font-weight: 800; font-size: 15.5px; display: flex; gap: 10px; align-items: center; list-style: none; }
.kb-art summary::-webkit-details-marker { display: none; }
.kb-art summary::after { content: "＋"; margin-left: auto; color: var(--muted); font-weight: 600; }
.kb-art[open] summary::after { content: "－"; }
.kb-art .emo { font-size: 20px; }
.kb-body { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.kb-body h4 { margin: 14px 0 6px; font-size: 14px; color: var(--ink); }
.kb-body ul, .kb-body ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 5px; }
.kb-body a { color: var(--accent); }
.kb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-tbl td { font-size: 13.5px; vertical-align: top; }
.kb-tbl td:first-child { color: var(--muted); width: 42%; }
.kb-hint { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.kb-hint a { color: var(--accent); font-weight: 700; }
.kb-hint .icon-btn { margin-left: auto; }
.card.next { border: 1px solid var(--accent-soft); }
