/* «Підрядники» — екрани працівників (public/outsource.js): «Стільці», «Забрати в підрядника», «Оплати підрядникам», «Підрядники». Лише класи .os-, лише під html.v8.
   Старий Safari (iPad на iPadOS 14, старі iPhone): без gap у flex — відступи полями; inset — чотирма сторонами; пропорції фото — через padding-top.
   Кнопки — варіант 1 (public/v8.css): головна — голуба заливка (.sm-btn), повторювана — м'яка (.sm-btn.sm), третя — біла (.sm-btn.ghost), небезпечна — червоний контур
   (.sm-btn.os-danger); корал — ніколи не кнопка, зелений — лише стан «зроблено». */
/* змінні спільних компонентів .sm-* (чипи, позначки, кнопки) — як у public/assembly.css: без них чип без тла */
html.v8 .os { --sm-ink: #1E2A4A; --sm-ink2: #586B82; --sm-mute: #8A9BB3; --sm-well: #E4E8EE; --sm-blue: #1B6FD6; --sm-coral: #F26B52; --sm-shadow: 0 8px 24px rgba(30, 42, 74, .08); display: block; min-width: 0; max-width: 1100px; color: var(--ink); }
html.v8 .os > * + * { margin-top: 12px; }
html.v8 .os.os-screen { max-width: 760px; }
html.v8 .os > .os-flash-slot:empty { display: none; }
html.v8 .os-i { flex: none; display: block; }

/* ---------- заголовок ---------- */
html.v8 .os-head { display: block; }
html.v8 .os-eyebrow { display: block; margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
html.v8 .sm-title.os-h { margin: 0; }
html.v8 .os-lead { margin: 6px 0 0; max-width: 640px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
html.v8 .os-status { margin: 0; padding: 12px 4px; font-size: 13px; color: var(--ink-2); }
html.v8 .os-flash { margin: 0; padding: 10px 14px; border-radius: 14px; background: #D9F5EB; color: #0A6B4A; font-size: 13px; line-height: 1.45; }
html.v8 .banner.os-err, html.v8 .banner.os-errbox { display: block; padding: 10px 14px; }
html.v8 .banner.os-err p, html.v8 .banner.os-errbox p { margin: 0; font-size: 13px; line-height: 1.45; }
html.v8 .banner.os-errbox .sm-btn { margin-top: 8px; }
html.v8 .os-hint { display: block; padding: 22px 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-align: center; }
html.v8 .os-hint > b { display: block; font-size: 16px; font-weight: 700; }
html.v8 .os-hint > span { display: block; max-width: 460px; margin: 4px auto 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
html.v8 .os-cap { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
html.v8 p.os-cap, html.v8 p.os-empty, html.v8 p.os-foot { margin: 0; }
html.v8 .os-empty { padding: 6px 2px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
html.v8 .os-foot { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
html.v8 .os-bad { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--bad); }
html.v8 .os-ok { margin: 0; font-size: 13px; font-weight: 600; color: var(--good); }

/* ---------- секції й картки ---------- */
html.v8 .os-sec { display: block; min-width: 0; }
html.v8 .os-sec > * + * { margin-top: 10px; }
html.v8 .os-sec h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
html.v8 .os h4 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
html.v8 .os-sech { display: flex; flex-wrap: wrap; align-items: center; min-height: 28px; }
html.v8 .os-sech > h3 { margin-right: 8px; }
html.v8 .os-sech > .sm-btn { margin-left: auto; }
html.v8 .os-cnt { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
html.v8 .os-desc, html.v8 .os-form, html.v8 .os-price, html.v8 .os-pt, html.v8 .os-plans, html.v8 .os-owed, html.v8 .os-ctr, html.v8 .os-ctrf, html.v8 .os-people, html.v8 .os-models, html.v8 .os-prices, html.v8 .os-sum, html.v8 .os-pc {
  padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
}
html.v8 .os-desc-t { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .sm-pill.os-pill { flex: 0 1 auto; max-width: 100%; height: auto; min-height: 20px; padding: 2px 8px; line-height: 1.25; white-space: normal; }
html.v8 .sm-pill.os-grey { background: var(--v8-well); color: var(--ink-2); }

/* ---------- кнопки ---------- */
/* поле під кнопками компенсуємо лише в кінці блоку: від’ємне поле злилося б із верхнім полем наступного заголовка */
html.v8 .os-btns { display: flex; flex-wrap: wrap; align-items: center; margin: 0 -8px 0 0; }
html.v8 .os-btns:last-child { margin-bottom: -8px; }
html.v8 .os-btns > * { margin: 0 8px 8px 0; }
html.v8 .os-btns:empty { display: none; }
html.v8 .os .sm-btn { max-width: 100%; height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; white-space: normal; line-height: 1.25; text-align: center; }
html.v8 .os .sm-btn.sm { min-height: 34px; }
html.v8 .sm-btn.os-wide { display: flex; width: 100%; min-height: 48px; border-radius: 14px; font-size: 15px; }
html.v8 .sm-btn.os-danger { background: #fff; color: var(--v8-danger); box-shadow: inset 0 0 0 1.5px var(--v8-danger); }
html.v8 .sm-btn.os-danger.sure { background: var(--v8-danger-soft); }
/* загальне наведення .sm-btn у public/v8.css — не в @media (hover): без цього рядка на телефоні після дотику кнопка ставала синьою з червоним текстом */
html.v8 .sm-btn.os-danger:not([disabled]):hover { background: var(--v8-danger-soft); color: var(--v8-danger); }
html.v8 .os-acts { display: block; }
html.v8 a.sm-btn.os-a { text-decoration: none; }
html.v8 .os-back { display: inline-flex; align-items: center; min-height: 36px; margin: 0 0 0 -8px; padding: 0 8px 0 2px; border: 0; background: none; color: var(--accent-strong); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
html.v8 .os-back .os-i { margin-right: 2px; }
html.v8 .os-lnk { display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0 2px; border: 0; background: none; color: var(--accent-strong); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
html.v8 .os-lnk .os-i { margin-right: 4px; }
html.v8 .os-back:focus-visible, html.v8 .os-lnk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
html.v8 .os-chips { margin-bottom: 0; }

/* ---------- поля ---------- */
html.v8 .os-f { display: block; min-width: 0; }
html.v8 .os-f > * + * { margin-top: 6px; }
html.v8 .os-fl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
html.v8 .os-in { display: block; box-sizing: border-box; width: 100%; }
html.v8 textarea.os-area { resize: vertical; min-height: 72px; line-height: 1.4; }
html.v8 select.os-sel { width: 100%; }
html.v8 .os-fh { display: none; font-size: 12px; line-height: 1.4; }
html.v8 .os-f.os-miss > .os-fh-miss { display: block; color: #C8392A; }
html.v8 .os-f.os-check > .os-fh-check { display: block; color: #7A5E00; }
html.v8 .os-f.os-miss input.os-in, html.v8 .os-f.os-miss textarea.os-in { border-color: #E59A8F; background: #FFF6F4; }
html.v8 .os-f.os-check input.os-in, html.v8 .os-f.os-check textarea.os-in { border-color: #E6C65C; background: #FFFBEA; }
html.v8 .os-f.os-miss > .os-chips .sm-chip { box-shadow: inset 0 0 0 1.5px #E59A8F; }
html.v8 .os-two { display: flex; align-items: flex-start; }
html.v8 .os-two > * { flex: 1 1 0%; min-width: 0; }
html.v8 .os-two > * + * { margin-left: 10px; }
html.v8 .os-fg > .os-two + .os-two { margin-top: 8px; }
html.v8 .os-mf { display: block; min-width: 0; }
html.v8 .os-mfl { display: block; margin: 0 0 3px; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
html.v8 .os-col > * + * { margin-top: 8px; }
html.v8 .os-tone { display: flex; align-items: center; }
html.v8 .os-tone > .os-in { flex: 1 1 auto; min-width: 0; }
html.v8 .os-tone > .os-dot { margin-right: 10px; }
/* кружечок тону: справжній шматочок зразка (public/img/tones/), поки вантажиться — колір; без тону — пунктир */
html.v8 .os-dot { position: relative; display: inline-block; flex: none; box-sizing: border-box; width: 16px; height: 16px; border-radius: 50%; overflow: hidden; background: #E4E8EE; border: 1px solid rgba(30, 42, 74, .16); }
html.v8 .os-dot.big { width: 32px; height: 32px; }
html.v8 .os-dot img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.v8 .os-dot.none { background: #fff; border: 1.5px dashed rgba(30, 42, 74, .3); }
html.v8 .os-ck { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; cursor: pointer; }
html.v8 .os-ck > input { margin: 0 8px 0 0; }
html.v8 .os-cks { display: flex; flex-wrap: wrap; margin: 0 -14px -4px 0; }
html.v8 .os-cks > * { margin: 0 14px 4px 0; }

/* ---------- «Чекає на вас» ---------- */
html.v8 .os-tlist > * + * { margin-top: 8px; }
html.v8 .os-task { display: flex; align-items: flex-start; box-sizing: border-box; width: 100%; margin: 0; padding: 12px 14px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow), inset 4px 0 0 var(--accent-strong); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
html.v8 .os-task[data-kind="fabric"] { box-shadow: var(--shadow), inset 4px 0 0 var(--bad); }
html.v8 .os-task-t { flex: 1 1 auto; min-width: 0; }
html.v8 .os-task-t > b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
html.v8 .os-task-t > span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-task-a { flex: none; margin-left: 10px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
html.v8 .os-task:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- «Подати» ---------- */
html.v8 .os-cands { display: flex; flex-wrap: wrap; margin: 0 -10px -10px 0; }
html.v8 .os-cand { flex: 0 0 auto; display: block; box-sizing: border-box; width: calc(100% - 10px); margin: 0 10px 10px 0; padding: 12px 14px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
html.v8 .os-cand > span { display: block; }
html.v8 .os-cand > * + * { margin-top: 4px; }
html.v8 .os-cand > .os-pill { display: inline-flex; margin-top: 6px; }
html.v8 .os-cand-h { font-size: 15px; font-weight: 700; line-height: 1.3; }
html.v8 .os-cand-m { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
html.v8 .os-cand-d { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-cand.off { background: var(--v8-well); box-shadow: none; color: var(--ink-2); cursor: default; }
html.v8 .os-cand.off .os-cand-h { color: var(--ink-2); }
html.v8 .os-cand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- форма «Подати» ---------- */
html.v8 .os-dh { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
html.v8 .os-dhead > * + * { margin-top: 4px; }
html.v8 .os-dtitle { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-dmeta { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
html.v8 .os-form > * + * { margin-top: 14px; }

/* ---------- «Мої стільці» ---------- */
html.v8 .os-rows > * + * { margin-top: 8px; }
html.v8 .os-row { border-radius: 16px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
html.v8 .os-row.done { opacity: .82; }
html.v8 .os-row.open { box-shadow: inset 0 0 0 1.5px var(--accent-wash), var(--shadow); opacity: 1; }
html.v8 .os-rsum { display: flex; align-items: flex-start; box-sizing: border-box; width: 100%; margin: 0; padding: 12px 10px 12px 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.v8 .os-rsum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
html.v8 .os-thumb { position: relative; display: block; flex: none; width: 52px; height: 52px; margin-right: 12px; border-radius: 12px; overflow: hidden; background: var(--v8-well); }
html.v8 .os-thumb img, html.v8 .os-thumb .os-noimg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
html.v8 .os-rt { flex: 1 1 auto; min-width: 0; display: block; }
html.v8 .os-rt > span { display: block; }
html.v8 .os-rt > * + * { margin-top: 3px; }
html.v8 .os-rh { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: -4px; }
html.v8 .os-rh > b { margin: 0 8px 4px 0; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-rh > .os-pill { margin: 0 6px 4px 0; }
html.v8 .os-rs { font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--ink); }
html.v8 .os-rm { font-size: 12px; line-height: 1.4; color: var(--ink-2); overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-rm.bad { color: #C8392A; font-weight: 600; }
html.v8 .os-rm.os-money { color: var(--ink); font-weight: 600; }
html.v8 .os-chev { flex: none; margin: 2px 0 0 8px; color: var(--ink-3); }
html.v8 .os-rdet { padding: 0 14px 14px; border-top: 1px solid var(--line); }
html.v8 .os-rdet > * { margin-top: 12px; }
html.v8 .os-sub { display: block; padding: 12px; border-radius: 14px; background: var(--surface-2); }
html.v8 .os-sub > * + * { margin-top: 8px; }
html.v8 .os-sub .sm-chip:not(.on) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
html.v8 .os-quote { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-ans { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .sm-btn.os-donebtn { margin-top: 12px; }
html.v8 .os-done { margin-top: 8px; }
/* викраска поруч з еталоном тону */
html.v8 .os-swpair { display: flex; align-items: center; }
html.v8 .os-swph { position: relative; display: block; flex: none; width: 112px; height: 112px; margin: 0 12px 0 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--v8-well); cursor: zoom-in; }
html.v8 .os-swph img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
html.v8 .os-swph.none { display: flex; align-items: center; justify-content: center; color: var(--ink-3); cursor: default; }
html.v8 .os-swtone { display: flex; align-items: center; min-width: 0; font-size: 13px; line-height: 1.4; }
html.v8 .os-swtone > .os-dot { margin-right: 8px; }
/* фото «Готово» — квадратні плитки */
html.v8 .os-photos { display: flex; flex-wrap: wrap; margin: 0 -8px -8px 0; }
html.v8 .os-ph { flex: 0 0 auto; display: block; width: calc(33.333% - 8px); margin: 0 8px 8px 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
html.v8 .os-ar { position: relative; display: block; height: 0; padding-top: 100%; border-radius: 12px; overflow: hidden; background: var(--v8-well); }
html.v8 .os-ar img, html.v8 .os-ar .os-noimg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
html.v8 .os-noimg { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
html.v8 img.os-broken { visibility: hidden; }
html.v8 .os-ph:focus-visible, html.v8 .os-swph:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
/* посилання для клієнта — як у «Погодженні» */
html.v8 .os-link > * + * { margin-top: 8px; }
html.v8 .os-url { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: break-word; word-wrap: break-word; word-break: break-all; -webkit-user-select: all; user-select: all; }
html.v8 .os-urlrow { display: flex; align-items: center; justify-content: space-between; }
html.v8 .os-urlrow > .os-cap { flex: 1 1 0%; min-width: 0; margin-right: 10px; }
html.v8 .os-copy { flex: none; min-height: 40px; margin: 0; padding: 0 14px; border: 0; border-radius: 12px; background: var(--accent-wash); color: var(--accent-strong); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
html.v8 .os-copy.is-done { background: var(--good); color: #fff; }
html.v8 .os-tmp { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }

/* ---------- «Забрати в підрядника» ---------- */
html.v8 .os-sum { font-size: 14px; line-height: 1.45; }
html.v8 .os-sum > b { font-weight: 700; }
html.v8 .os-sum > span { color: var(--ink-2); }
html.v8 .os-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
html.v8 .os-sech + .os-line, html.v8 h4 + .os-line, html.v8 .os-cap + .os-line { border-top: 0; }
html.v8 .os-line.off { opacity: .6; }
html.v8 .os-line-t { flex: 1 1 200px; min-width: 0; margin-right: 10px; }
html.v8 .os-line-t > * { display: block; }
html.v8 .os-line-t > b { font-size: 14px; font-weight: 600; line-height: 1.35; }
html.v8 .os-line-t > span { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-line > .sm-btn, html.v8 .os-line > .os-btns { flex: none; margin-top: 4px; }
html.v8 .os-line > .os-btns { margin-bottom: -8px; }
html.v8 .os-pt-h { display: flex; align-items: flex-start; justify-content: space-between; }
html.v8 .os-pt-t { flex: 1 1 auto; min-width: 0; }
html.v8 .os-pt-t > * { display: block; }
html.v8 .os-pt-t > * + * { margin-top: 2px; }
html.v8 .os-map { flex: none; display: inline-flex; align-items: center; min-height: 32px; margin-left: 10px; color: var(--accent-strong); font-size: 13px; font-weight: 600; text-decoration: none; }
html.v8 .os-map .os-i { margin-right: 4px; }
html.v8 .os-ptl { display: flex; flex-wrap: wrap; align-items: center; }
html.v8 .os-ptl > b { margin-right: 8px; font-weight: 600; }
html.v8 .os-ptl > .os-map { margin-left: 0; }
html.v8 .os-soon { color: var(--ink-2); }
html.v8 .os-prows > * + * { border-top: 1px solid var(--line); }
html.v8 .os-prow { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 4px 0; font-size: 13.5px; line-height: 1.35; }
html.v8 .os-prow-t { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-prow-n { flex: none; margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
html.v8 .os-pick-l { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 40px; cursor: pointer; }
html.v8 .os-pick-l > input { flex: none; width: 20px; height: 20px; margin: 0 10px 0 0; }
html.v8 .os-pick-n { display: flex; align-items: center; flex: none; margin-left: 10px; font-size: 12.5px; color: var(--ink-2); }
html.v8 .os-in.os-num { width: 64px; margin-right: 6px; text-align: center; }
html.v8 .os-prow.os-pick.on .os-pick-l > span { font-weight: 600; }

/* ---------- «Оплати підрядникам» ---------- */
html.v8 .os-paytop { display: flex; align-items: stretch; }
html.v8 .os-paytop > .os-pc { flex: 1 1 0%; min-width: 0; }
html.v8 .os-paytop > .os-pc + .os-pc { margin-left: 12px; }
html.v8 .os-pc > * { display: block; }
html.v8 .os-pc > * + * { margin-top: 4px; }
html.v8 .os-pc-t { font-size: 13px; font-weight: 600; color: var(--ink-2); }
html.v8 .os-pc-n { font-size: 24px; font-weight: 700; line-height: 1.15; }
html.v8 .os-pc.late { box-shadow: var(--shadow), inset 4px 0 0 var(--bad); }
html.v8 .os-paylist > .os-pay + .os-pay { margin-top: 8px; }
html.v8 .os-pay { display: block; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
html.v8 .os-pay.late { box-shadow: var(--shadow), inset 4px 0 0 var(--bad); }
html.v8 .os-pay-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
html.v8 .os-pay-t { flex: 1 1 200px; min-width: 0; margin-right: 10px; }
html.v8 .os-pay-t > * { display: block; }
html.v8 .os-pay-t > * + * { margin-top: 2px; }
html.v8 .os-pay-t > b { font-size: 14px; font-weight: 600; line-height: 1.35; }
html.v8 .os-pay-due { font-size: 17px; font-weight: 700; line-height: 1.3; }
html.v8 .os-pay-m { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
html.v8 .os-pay-m.bad { color: #C8392A; font-weight: 600; }
html.v8 .os-pay-top > .sm-btn { flex: none; margin-top: 4px; }
html.v8 .os-payf { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
html.v8 .os-payf > * + * { margin-top: 10px; }
html.v8 .os-owed > * + * { margin-top: 8px; }
html.v8 .os-owed-n { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
html.v8 .os-owed-n > span { margin-right: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
html.v8 .os-owed-n > b { font-size: 24px; font-weight: 700; }

/* ---------- «Підрядники» ---------- */
html.v8 .os-kv { display: block; }
html.v8 .os-kv-r { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; line-height: 1.4; }
html.v8 .os-kv-r + .os-kv-r { border-top: 1px solid var(--line); }
html.v8 .os-kv-r > span { flex: none; max-width: 45%; margin-right: 12px; color: var(--ink-2); }
html.v8 .os-kv-r > b, html.v8 .os-kv-r > div { min-width: 0; font-weight: 600; text-align: right; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-ctrf > * + *, html.v8 .os-people > * + *, html.v8 .os-models > * + *, html.v8 .os-prices > * + * { margin-top: 10px; }
html.v8 .os-rowsed > * + * { margin-top: 8px; }
html.v8 .os-edrow { display: flex; align-items: center; }
html.v8 .os-edrow > .os-in { flex: 1 1 0%; min-width: 0; }
html.v8 .os-edrow > .os-in + .os-in { margin-left: 8px; }
html.v8 .os-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 0 6px; padding: 0; border: 0; border-radius: 18px; background: var(--v8-well); color: var(--ink-2); cursor: pointer; }
html.v8 .os-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.v8 .os-in.os-linkin { font-size: 13px; }
html.v8 .os-qr { display: flex; align-items: center; }
html.v8 .os-qr > svg { flex: none; margin-right: 12px; background: #fff; }
html.v8 .os-line select.os-sel { width: auto; min-width: 130px; }
html.v8 .os-next { color: var(--accent-strong); }
html.v8 .os-hist { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-hist + .os-hist { margin-top: 4px; }

/* ---------- «Підрядники»: огляд підрядника (власник; Микола, 12.11.2026, питання 191; макет — секція 17, docs/design/v8-src/v8contractor.py: side_owner, att, tr, tbl, money_card,
   phone_owner, phone_owner_order). Числа, «Потребує уваги» й гроші — білі картки; корал — лише позначки (крапка, лічильник, «не сплачено»), кнопки — голубі ---------- */
html.v8 .os.os-ov { max-width: none; }
html.v8 .os.os-ov > * + * { margin-top: 16px; }
html.v8 .os-ovh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
html.v8 .os-ovh-t { flex: 1 1 240px; min-width: 0; margin-right: 16px; }
html.v8 .os-ovh-t > .sm-title { margin: 0; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-ovh-s { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
html.v8 .os-ovh-a { display: flex; align-items: center; flex: none; margin-top: 8px; }
html.v8 .os-eye { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
html.v8 .os-eye .os-i { margin-right: 6px; }
html.v8 .os-morew { position: relative; flex: none; margin-left: 10px; }
html.v8 .os-more { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink); cursor: pointer; }
html.v8 .os-menu { position: absolute; top: 42px; right: 0; z-index: 40; box-sizing: border-box; width: 220px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(30, 42, 74, .18); }
html.v8 .os-mi { display: block; box-sizing: border-box; width: 100%; min-height: 40px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
html.v8 .os-eye:focus-visible, html.v8 .os-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.v8 .os-mi:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* чотири числа: на телефоні 2 × 2, від 900 px — у рядок */
html.v8 .os-kpis { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0 -10px -10px 0; }
html.v8 .os-kpi { flex: 0 0 auto; box-sizing: border-box; width: calc(50% - 10px); margin: 0 10px 10px 0; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
html.v8 .os-kpi > * { display: block; }
html.v8 .os-kpi-l { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
html.v8 .os-kpi-v { margin-top: 4px; font-size: 26px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
html.v8 .os-kpi-v.coral { color: var(--v8-coral-ink); }
html.v8 .os-kpi-c { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
/* картки «Потребує уваги», «Гроші», «Замовлення» */
html.v8 .os-card { display: block; min-width: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
html.v8 .os-card-h { display: flex; flex-wrap: wrap; align-items: center; padding: 14px 18px 10px; }
html.v8 .os-card-h > h3 { margin: 0 8px 0 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
html.v8 .os-ball { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--v8-coral); color: #fff; font-size: 11px; font-weight: 700; }
html.v8 .os-gcnt { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 13px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 12px; font-weight: 600; }
html.v8 .os-card-h > .os-seg { margin-left: auto; }
html.v8 .os-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--v8-well); }
html.v8 .os-seg > button { flex: 0 0 auto; min-height: 30px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
html.v8 .os-seg > button + button { margin-left: 2px; }
html.v8 .os-seg > button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(30, 42, 74, .1); }
html.v8 .os-seg > button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* «Потребує уваги»: крапка зліва, текст, м’яка кнопка праворуч (на вузькому екрані — під текстом) */
html.v8 .os-aitem { border-top: 1px solid var(--line); }
html.v8 .os-arow { position: relative; display: flex; flex-wrap: wrap; align-items: center; padding: 11px 18px 11px 39px; font-size: 14px; }
html.v8 .os-adot { position: absolute; top: 16px; left: 18px; display: block; width: 9px; height: 9px; border-radius: 5px; background: var(--v8-coral); }
html.v8 .os-atx { flex: 1 1 240px; min-width: 0; margin-right: 12px; }
html.v8 .os-atx > * { display: block; }
html.v8 .os-atx > b { font-weight: 600; line-height: 1.35; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-atx > span { margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--ink-2); overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-arow > .sm-btn { flex: none; margin: 4px 0; }
html.v8 .os-aitem > .os-err { margin: 0 18px 12px 39px; }
html.v8 .os .sm-btn.os-sent, html.v8 .os .sm-btn.os-sent[disabled] { background: var(--v8-well); color: var(--ink-2); opacity: 1; cursor: default; }
html.v8 .os .sm-btn.is-done, html.v8 .os .sm-btn.is-done:not([disabled]):hover { background: var(--good); color: #fff; }
/* «Гроші» */
html.v8 .os-cash { padding-bottom: 4px; }
html.v8 .os-li { display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; min-height: 40px; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 14px; }
html.v8 .os-li > span { min-width: 0; margin-right: 10px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
html.v8 .os-li > b { flex: none; font-weight: 700; white-space: nowrap; }
html.v8 .os-li > b.good { color: var(--good); }
html.v8 .os-li > b.warn { color: var(--v8-coral-ink); }
html.v8 .os-li > .os-lnk { flex: none; min-height: 24px; }
html.v8 .os-ovmid > * + * { margin-top: 12px; }
/* «Замовлення»: на ПК — таблиця, на телефоні й планшеті — рядки */
html.v8 .os-tbl { display: none; }
html.v8 .os-tr { display: flex; align-items: center; box-sizing: border-box; width: 100%; margin: 0; padding: 9px 18px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 13px; line-height: 1.35; color: var(--ink); text-align: left; }
html.v8 button.os-tr { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.v8 button.os-tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html.v8 .os-tr.os-th { padding-top: 4px; padding-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
html.v8 .os-tr > span { flex: none; min-width: 0; margin-right: 12px; }
html.v8 .os-tr > .os-c1 { display: flex; align-items: center; width: 220px; }
html.v8 .os-tr > .os-c2 { display: flex; align-items: center; width: 210px; }
html.v8 .os-tr > .os-c3 { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v8 .os-tr > .os-c4 { width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v8 .os-tr > .os-c5 { width: 60px; }
html.v8 .os-tr > .os-c6 { width: 90px; margin-right: 0; }
html.v8 .os-c1 > .os-av { margin-right: 10px; }
html.v8 .os-no { display: block; min-width: 0; }
html.v8 .os-no > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v8 .os-no > b { font-weight: 600; }
html.v8 .os-no > span { font-size: 12px; color: var(--ink-2); }
html.v8 .os-wh { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v8 .os-meter { position: relative; display: block; flex: none; width: 64px; height: 6px; margin-right: 8px; border-radius: 3px; background: var(--track); overflow: hidden; }
html.v8 .os-meter > i { position: absolute; top: 0; bottom: 0; left: 0; display: block; border-radius: 3px; background: var(--accent); }
html.v8 .os-late { color: var(--v8-coral-ink); font-weight: 700; }
html.v8 .os-orow { display: flex; align-items: center; box-sizing: border-box; width: 100%; min-height: 68px; margin: 0; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.v8 .os-orow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html.v8 .os-orow > .os-av { margin-right: 12px; }
html.v8 .os-orow-t { flex: 1 1 auto; min-width: 0; }
html.v8 .os-orow-t > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v8 .os-orow-t > b { font-size: 15px; font-weight: 600; line-height: 19px; }
html.v8 .os-orow-t > span { margin-top: 3px; font-size: 13px; line-height: 17px; color: var(--ink-2); }
html.v8 .os-orow-m { flex: none; margin-left: 10px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
html.v8 .os-orow-m.os-late { color: var(--v8-coral-ink); font-weight: 600; }
html.v8 p.os-pad { padding: 4px 18px 16px; }
html.v8 .os-gone { padding: 10px 18px 14px; border-top: 1px solid var(--line); }
/* фото-заглушка: фото «Готово» чи літера моделі; кружечок тону — у куті */
html.v8 .os-av { position: relative; display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 48px; height: 48px; border: 1px solid #E4E8EE; border-radius: 14px; background: #fff; }
html.v8 .os-av.s36 { width: 36px; height: 36px; border-radius: 10px; }
html.v8 .os-av.s72 { width: 72px; height: 72px; border-radius: 20px; }
html.v8 .os-av > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
html.v8 .os-av-l { font-size: 18px; font-weight: 700; line-height: 1; color: var(--ink-3); }
html.v8 .os-av.s36 .os-av-l { font-size: 14px; }
html.v8 .os-av.s72 .os-av-l { font-size: 28px; }
html.v8 .os-av-t { position: absolute; right: -5px; bottom: -5px; display: block; box-sizing: border-box; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 9px; background: #E4E8EE; box-shadow: 0 1px 3px rgba(30, 42, 74, .25); overflow: hidden; }
html.v8 .os-av-t > img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.v8 .os-av.s72 .os-av-t { width: 22px; height: 22px; border-radius: 11px; }
/* картка замовлення для власника */
html.v8 .os-hero { display: flex; align-items: center; }
html.v8 .os-hero > .os-av { margin-right: 16px; }
html.v8 .os-hero-t { flex: 1 1 auto; min-width: 0; }
html.v8 .os-hero-t > h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; overflow-wrap: break-word; word-wrap: break-word; }
html.v8 .os-hero-t > p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
html.v8 .os-chs { display: flex; flex-wrap: wrap; margin-right: -6px; margin-bottom: -6px; }
html.v8 .os-ch { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 28px; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink); }
html.v8 .os-ch.coral { background: var(--v8-coral-soft); color: var(--v8-coral-ink); box-shadow: none; }
html.v8 .os-ch.blue { background: var(--accent-wash); color: var(--accent-strong); box-shadow: none; }
html.v8 .os-list { display: block; border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
html.v8 .os-list > * + * { border-top: 1px solid var(--line); }
html.v8 .os-mrow, html.v8 .os-prt, html.v8 .os-hrow { display: flex; align-items: center; box-sizing: border-box; min-height: 48px; padding: 12px 14px; }
html.v8 .os-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; margin-right: 10px; border-radius: 11px; background: var(--v8-well); color: var(--ink-2); }
html.v8 .os-ic.ok { background: #D9F5EB; color: #087A54; }
html.v8 .os-mrow-t { flex: 1 1 auto; min-width: 0; font-size: 14px; }
html.v8 .os-mrow-t > * { display: block; }
html.v8 .os-mrow-t > b { font-weight: 500; }
html.v8 .os-mrow-t > span { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
html.v8 .os-msum { flex: none; margin-left: 10px; font-size: 15px; font-weight: 700; white-space: nowrap; }
html.v8 .os-cact > * + * { margin-top: 8px; }
html.v8 .os-sentto { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
html.v8 .os-osec > * + * { margin-top: 8px; }
html.v8 .os-sh { margin: 0; padding: 0 4px; font-size: 15px; font-weight: 700; }
html.v8 .os-prt-t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; }
html.v8 .os-prt-s { flex: none; margin-left: 10px; font-size: 12px; color: var(--ink-2); }
html.v8 .os-hrow { align-items: flex-start; }
html.v8 .os-hrow > span { flex: none; width: 64px; margin-right: 12px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
html.v8 .os-hrow > b { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 400; line-height: 1.4; overflow-wrap: break-word; word-wrap: break-word; }

/* ---------- фото на весь екран ---------- */
html.v8 .os-view { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; background: rgba(10, 14, 24, .95); color: #fff; }
html.v8 .os-v-stage { position: absolute; top: 56px; right: 0; bottom: 24px; left: 0; display: flex; align-items: center; justify-content: center; }
html.v8 .os-v-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
html.v8 .os-v-top { position: absolute; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 18px; }
html.v8 .os-v-n { font-size: 14px; font-weight: 600; }
html.v8 .os-v-x, html.v8 .os-v-nav { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
html.v8 .os-v-x { width: 40px; height: 40px; border-radius: 20px; }
html.v8 .os-v-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 22px; }
html.v8 .os-v-nav.os-prev { left: 10px; }
html.v8 .os-v-nav.os-nextb { right: 10px; }
html.v8 .os-v-x:focus-visible, html.v8 .os-v-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- наведення — лише там, де є миша ---------- */
@media (hover: hover) {
  html.v8 .os-cand:not(.off):hover, html.v8 .os-task:hover { box-shadow: 0 10px 28px rgba(30, 42, 74, .14); }
  html.v8 .os-copy:not(.is-done):hover { background: var(--v8-act-soft-hover); }
  html.v8 .os-back:hover, html.v8 .os-lnk:hover, html.v8 .os-map:hover { text-decoration: underline; }
  html.v8 .os-x:hover { background: #DADFE6; }
  html.v8 .os-v-x:hover, html.v8 .os-v-nav:hover { background: rgba(255, 255, 255, .26); }
}

/* ---------- ширше: планшет і ПК ---------- */
@media (min-width: 600px) {
  html.v8 .os-ph { width: calc(25% - 8px); }
}
@media (min-width: 720px) {
  html.v8 .os-cand { width: calc(50% - 10px); }
  html.v8 .os-dtitle { font-size: 26px; }
}
@media (min-width: 1400px) {
  html.v8 .os-cand { width: calc(33.333% - 10px); }
}
/* телефон: дві колонки полів — одна під одною; поля від 16 px — інакше iPhone збільшує сторінку, щойно торкнулись поля */
@media (max-width: 479px) {
  html.v8 .os-two { display: block; }
  html.v8 .os-two > * + * { margin-left: 0; margin-top: 10px; }
  html.v8 .os-fg > .os-two > * + * { margin-top: 8px; }
  html.v8 .os-paytop { display: block; }
  html.v8 .os-paytop > .os-pc + .os-pc { margin-left: 0; margin-top: 10px; }
  html.v8 .os-swph { width: 96px; height: 96px; }
}
@media (max-width: 767px) {
  html.v8 .os input.os-in:not([type="checkbox"]):not([type="radio"]):not([type="file"]), html.v8 .os textarea.os-in, html.v8 .os select.os-in { font-size: 16px; }
}
/* огляд підрядника: від 900 px числа в рядок; від 1180 px (ПК) — «Гроші» праворуч поруч з «Потребує уваги», замовлення таблицею; телефон — фільтр на всю ширину */
@media (min-width: 900px) {
  html.v8 .os-kpis { margin: 0 -14px -14px 0; }
  html.v8 .os-kpi { width: calc(25% - 14px); margin: 0 14px 14px 0; padding: 16px 18px; }
  html.v8 .os-kpi-v { font-size: 30px; }
}
@media (min-width: 1180px) {
  html.v8 .os-tbl { display: block; }
  html.v8 .os-olist { display: none; }
  html.v8 .os-ovmid { display: flex; align-items: flex-start; }
  html.v8 .os-ovmid > .os-att { flex: 1 1 auto; min-width: 0; }
  html.v8 .os-ovmid > .os-cash { flex: none; width: 330px; margin: 0 0 0 auto; }
  html.v8 .os-ovmid > .os-att + .os-cash { margin: 0 0 0 18px; }
}
@media (max-width: 559px) {
  html.v8 .os-card-h > .os-seg { width: 100%; margin: 10px 0 0; }
  html.v8 .os-seg > button { flex: 1 1 0%; padding: 0 4px; }
  html.v8 .os-hero-t > h2 { font-size: 24px; }
}
@media (max-width: 379px) {
  html.v8 .os-kpi-v { font-size: 22px; }
}
