/* Стиль за макетом власника (docs/product/design/mini-app-v1.png): світлий фон, темно-синій, золотий акцент. */
:root {
  --bg: #f3f5f9; --card: #ffffff; --ink: #172040; --muted: #6b7390; --line: #e4e8f1;
  --navy: #1c2752; --gold: #c8962e; --gold-soft: #fbf1db;
  --ok: #2f9e62; --ok-soft: #e3f5ea; --blue-soft: #e6eefc; --blue: #2f5bb7;
  --grey-soft: #eceef3; --red: #c0392b; --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
main { max-width: 520px; margin: 0 auto; padding: 16px; }
h1 { font-size: 30px; margin: 4px 0 14px; letter-spacing: -0.5px; }
h2 { font-size: 18px; margin: 18px 0 8px; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(23, 32, 64, .06); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); font-size: 13px; }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; }
.banner { background: linear-gradient(135deg, #1c2752, #2d3b73); color: #fff; border-radius: var(--radius);
  padding: 18px; margin-bottom: 12px; }
.banner small { letter-spacing: 1.5px; text-transform: uppercase; opacity: .75; font-size: 11px; }
.banner b { display: block; font-size: 22px; margin: 6px 0; }
.tiles, .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--card); border-radius: 14px; padding: 12px; text-decoration: none; color: inherit; }
.tile b { display: block; font-size: 20px; }
.action { background: var(--card); border-radius: 14px; padding: 10px 4px; text-align: center; font-size: 12px;
  text-decoration: none; color: inherit; }
.tiles, .actions { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tiles.four { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
button:disabled { opacity: .5; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #1f2937; color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 10; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.p-ACCEPTED { background: var(--blue-soft); color: var(--blue); }
.p-ASSIGNED { background: var(--gold-soft); color: #8a6414; }
.p-IN_PROGRESS { background: var(--gold-soft); color: #8a6414; }
.p-COMPLETED { background: var(--ok-soft); color: var(--ok); }
.u-emergency { color: var(--red); font-weight: 700; }
.u-urgent { color: #b86e00; font-weight: 600; }
.p-CANCELLED { background: var(--grey-soft); color: var(--muted); }
.tabs { display: flex; background: var(--grey-soft); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-size: 14px; }
.tabs a.on { background: var(--navy); color: #fff; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card.row { display: flex; }
html, body { overflow-x: hidden; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px; font-size: 16px;
  font-weight: 600; background: var(--navy); color: #fff; text-align: center; text-decoration: none;
  cursor: pointer; margin-top: 10px; }
.btn.light { background: var(--card); color: var(--ink); }
.btn.danger { background: var(--card); color: var(--red); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice button { border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px;
  font-size: 15px; cursor: pointer; color: var(--ink); }
.choice button.on { border-color: var(--navy); background: var(--blue-soft); }
textarea, input, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font: inherit; background: var(--card); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
label { display: block; margin: 12px 0 6px; font-weight: 600; }
.error { color: var(--red); margin-top: 10px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 18px 34px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.steps li::after { content: ""; position: absolute; left: 10px; top: 26px; bottom: 2px; width: 2px;
  background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--navy); border-color: var(--navy); }
.steps li.now::before { border-color: var(--gold); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--gold); }
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--card);
  border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
#tabbar a { flex: 1; text-align: center; font-size: 11px; color: var(--muted); text-decoration: none; }
#tabbar a.on { color: var(--gold); font-weight: 600; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle; }
.gold { color: var(--gold); }
.red { color: var(--red); }
.small { font-size: 12px; }
.pre { white-space: pre-line; margin: 6px 0; }
.title { margin: 4px 0; font-size: 18px; }
.gap { gap: 8px; }
.link { color: var(--blue); text-decoration: none; font-size: 14px; }
.sec h2 { font-size: 17px; }
.head .brand { color: var(--gold); }
.head .bell { color: var(--navy); }
/* Головна мешканця — як на макеті: невелика панель «Будинок сьогодні» з фото будинку. */
.banner-photo { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #1f2a4f;
  color: #fff; min-height: 128px; margin-bottom: 10px; text-decoration: none; }
.banner-photo img { position: absolute; right: 0; top: 0; height: 100%; width: auto; }
.banner-photo .shade { position: absolute; inset: 0; background: linear-gradient(90deg, #1f2a4f 42%, rgba(31, 42, 79, 0) 78%); }
.banner-photo .txt { position: relative; padding: 12px 14px; max-width: 64%; }
.banner-photo .eyebrow { font-size: 10px; letter-spacing: 1.4px; opacity: .8; }
.banner-photo b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 17px; line-height: 1.2; margin: 5px 0 4px; }
.banner-photo span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; opacity: .85; }
.banner-photo em { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-style: normal; font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); border-radius: 9px; padding: 4px 10px; }
.banner-photo em i, .strip .chip i { width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; display: inline-block; }
/* Персонал: невелика панель «найважливіше зараз» (власник 20.10.2026). */
.strip { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px;
  margin-bottom: 10px; border-left: 4px solid #3ccf7a; }
.strip .eyebrow { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); }
.strip b { font-size: 14px; }
a.strip { color: inherit; text-decoration: none; }
.strip .chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 8px; border-radius: 9px;
  background: var(--bg); white-space: nowrap; }
.strip.t-warn { border-left-color: #f0a63a; } .strip.t-warn .chip i { background: #f0a63a; }
.strip.t-bad { border-left-color: #e5533d; } .strip.t-bad .chip i { background: #e5533d; }
.tile b { display: block; margin-top: 4px; }
.action { display: block; }
.action .round { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); margin: 0 auto 4px; }
.action .round.main { background: var(--gold); color: #fff; }
.actions.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.sq { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg);
  color: var(--navy); }
#tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.card select, .card textarea, .card input { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chips .btn { width: auto; flex: 1 1 40%; padding: 12px; border: 2px solid var(--navy); }
.chips .btn.on { background: var(--navy); color: #fff; }
/* Виконані заявки (Р-11, п. 5): непереглянуті — темний жирний текст, синя смуга і крапка; переглянуті — світліші. */
.review.unread { border-left: 4px solid var(--blue); }
.review.unread b { font-weight: 800; color: #111a35; }
.review.seen b { font-weight: 400; color: var(--muted); }
.review .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.tile.unread { border-left: 3px solid var(--blue); }
.card.rework { border-left: 4px solid var(--red); }
/* Головна голови без дублювань (Р-11, п. 6; head-home-v5.png). */
.card.attn { border-left: 4px solid var(--red); }
.card.attn.ok { border-left-color: var(--ok); }
.card.attn .eyebrow { font-size: 11px; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 4px; }
.prow { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none; }
.card.attn .eyebrow + .prow, .card.attn > .prow:first-child { border-top: none; }
.tag { font-size: 11px; font-weight: 700; border-radius: 8px; padding: 2px 7px; white-space: nowrap; margin-top: 2px; }
.tag.t-red { background: #fde4e2; color: var(--red); }
.tag.t-amber { background: var(--gold-soft); color: #8a6414; }
.tag.t-grey { background: var(--grey-soft); color: var(--muted); }
.link.all { display: block; text-align: right; margin-top: 4px; }
/* Архів (Р-11, п. 7): свайп рядка і «Скасувати». */
.swipe-wrap { position: relative; }
.swipe-wrap::before { content: attr(data-label); position: absolute; inset: 0 0 10px 0; border-radius: var(--radius);
  background: #5c6478; color: #fff; display: flex; align-items: center; justify-content: flex-end; padding: 0 16px;
  font-weight: 700; font-size: 13px; }
.swipe-wrap.back::before { justify-content: flex-start; background: var(--ok); }
.swipe-wrap > a { position: relative; touch-action: pan-y; transition: transform .2s; }
.swipe-wrap > a.swiping { transition: none; }
.snack { position: fixed; left: 16px; right: 16px; bottom: 84px; max-width: 488px; margin: 0 auto; background: #1f2937;
  color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; font-size: 14px; z-index: 11; }
.snack button { background: none; border: 0; color: #8fb3ff; font-weight: 700; font-size: 14px; cursor: pointer; }
.hint { text-align: center; }

/* Один застосунок (Р-11, пп. 1, 9): кнопка середовища в шапці, аркуш «Де я зараз», фільтр напрямів. */
.env-btn { font: inherit; font-weight: 700; font-size: 17px; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 30, 60, .3); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 70px 12px 0; }
.sheet-card { background: var(--card); border-radius: 18px; padding: 16px; width: 100%; max-width: 480px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey-soft); border-radius: 12px; padding: 3px; margin: 8px 0 4px; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 10px; font: inherit; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; font-weight: 600; }
.seg button:disabled { opacity: .45; cursor: default; }
.place { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.place.on b::after { content: " ✓"; color: var(--navy); }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.fchips button { font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer; }
.fchips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.dir { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 8px; padding: 2px 7px; margin-right: 6px; background: var(--blue-soft); color: var(--navy); vertical-align: 1px; }
/* Коротка назва заявки одним рядком; повний текст — у «Опис проблеми» (власник 25.10.2026). */
.title.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .row > .grow { min-width: 0; }
.row.pad8 { padding: 8px 0; }
/* Уточнення координатора без відповіді (власник 25.10.2026): помітно і в картці, і в списку, і на Головній. */
.card.ask { border-left: 4px solid var(--gold); background: var(--gold-soft); }
.p-ask { background: var(--gold); color: #fff; }
.banner-photo em.ask i { background: var(--gold); }
/* Дзвіночок і список сповіщень (власник 25.10.2026). */
.head .bell { position: relative; display: inline-flex; padding: 4px; }
.bell .badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.card.notice { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; }
.card.notice .pre { margin: 0 0 4px; }
.card.notice.unread { font-weight: 600; border-left: 4px solid var(--blue); }
.card.notice.seen { color: var(--muted); }
.notice .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
/* Аварійне оголошення (Р-12, О2; design/emergency-v1.png). */
.card.emerg { background: #fdecec; border: 1px solid #f3b4b4; border-left: 5px solid var(--red); }
.card.emerg .ey { font-size: 11px; letter-spacing: .07em; color: #c02828; font-weight: 700; }
.card.emerg b { display: block; font-size: 16px; margin: 4px 0; }
.btn.red, .seg button.on.red { background: var(--red); color: #fff; border-color: var(--red); }
.card.emerg .ok { color: var(--ok); font-weight: 600; margin-top: 8px; }
.card.emerg .stat { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; text-decoration: none; }
.card.emerg .stat b { display: inline; font-size: 13px; margin: 0; color: var(--ink); }
.card.emerg .bar { height: 8px; border-radius: 4px; background: #fff; margin-top: 6px; overflow: hidden; }
.card.emerg .bar i { display: block; height: 100%; background: var(--ok); }
/* Налаштування ОСББ (design/settings-v1.png). */
.grp { font-size: 11px; letter-spacing: .07em; color: var(--muted); margin: 12px 2px 6px; }
.card.list { padding: 4px 14px; }
.card.list .it { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.card.list .it:last-child { border-bottom: 0; }
.card.list button.it { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.card.list button.it:last-child { border-bottom: 0; }
.chg { font-size: 11px; background: var(--gold-soft); color: #8a6410; border-radius: 8px; padding: 2px 7px; font-weight: 600; }
.setting .row { display: flex; align-items: center; gap: 6px; }
.setting .sval { margin-left: auto; font-size: 16px; color: var(--navy); }
/* Повзунок з кроками (design/slider-v1.png): ті самі значення й межі, що й раніше кнопки. */
.slide { position: relative; height: 36px; margin: 12px 12px 0; }
.slide input { position: absolute; inset: 0 -12px; width: calc(100% + 24px); height: 36px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; border: 0; padding: 0; box-shadow: none; border-radius: 0; touch-action: pan-y; }
.slide::before, .slide::after { content: ""; position: absolute; top: 16px; height: 4px; border-radius: 2px; left: 0; }
.slide::before { right: 0; background: var(--line); }
.slide::after { width: var(--p); background: var(--navy); }
.slide .tick { position: absolute; top: 13px; width: 2px; height: 10px; margin-left: -1px; background: #b9bfcc; z-index: 1; }
.slide .dmark { position: absolute; top: 6px; height: 24px; margin-left: -1px; border-left: 2px dashed var(--muted); z-index: 1; }
.slide input::-webkit-slider-runnable-track { background: none; height: 36px; }
.slide input::-moz-range-track { background: none; }
.slide input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: 4px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(20,30,60,.25); position: relative; z-index: 2; }
.slide input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(20,30,60,.25); }
.slide input:focus-visible { outline: none; }
.slide input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--blue-soft); }
.slide .bub { position: absolute; top: -26px; left: var(--p); transform: translateX(-50%); background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; border-radius: 8px; padding: 2px 8px; white-space: nowrap; display: none; }
.slide.drag .bub { display: block; }
.slabels { position: relative; height: 18px; margin: 2px 12px 0; font-size: 11.5px; color: var(--muted); }
.slabels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.slabels span:first-child { transform: none; margin-left: -12px; }
.slabels span:last-child { transform: translateX(-100%); margin-left: 12px; }
.eff { background: var(--blue-soft); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--navy); margin-top: 8px; }
.link.rst { background: none; border: 0; padding: 0; margin-top: 8px; font: inherit; font-size: 13px; color: var(--blue); cursor: pointer; }
.card.log > div { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.card.log > div:last-child { border-bottom: 0; }
/* Підтвердження мешканців (design/onboarding-v1.png). */
.hidden { display: none; }
.hero { background: linear-gradient(90deg, #1f2a4f 55%, #5b6e9c); color: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.hero small { opacity: .85; font-size: 11px; letter-spacing: .08em; }
.hero b { display: block; font-size: 17px; margin: 4px 0; }
.card.wait { border-left: 4px solid var(--gold); }
.note.ok, .note.warn { border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 6px 0; }
.note.ok { background: #ddf5e6; color: #1b6e40; }
.note.warn { background: var(--gold-soft); color: #7a5a10; }
.step-label { font-size: 11px; letter-spacing: .07em; color: var(--muted); margin: 6px 2px; }
.chg.good { background: #ddf5e6; color: #1b6e40; }

/* «Хто виконує роботи» (Р-10, картинка workers-v1.png) */
button.link { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 14px; color: var(--blue); cursor: pointer; min-height: 36px; }
.card.list button.it.link { color: var(--blue); font-weight: 600; }
.card.list .it button.link { margin-left: auto; color: var(--red); font-size: 16px; }
.card.list .it button[data-cancel] { color: var(--blue); font-size: 13px; }
.choice-card { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); font: inherit; color: inherit; cursor: pointer; margin: 8px 0; }
.choice-card:focus-visible, .choice-card:hover { border-color: var(--ink); }
.btn.danger-fill { background: var(--red); color: #fff; }
#copy { border: 1.5px solid var(--ink); }

/* «⚡ Одразу передавати» (З7) */
.card.list button.it.auto-row { color: inherit; }
.sw { width: 42px; height: 24px; border-radius: 12px; background: var(--ink); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.sw.off { background: var(--line); }
.sw.off::after { right: auto; left: 3px; }

/* Виправлене оголошення (Р-12, О10) */
.edited { margin-top: 8px; flex-wrap: wrap; align-items: center; }
.edited .link.fix { font-weight: 600; }
.card.old-version { opacity: .75; }

/* Візит майстра (З6, visit-v4.png): невеликі кнопки (власник 27.10.2026) */
.sb { display: inline-block; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; border-radius: 10px; margin: 6px 6px 0 0; cursor: pointer; border: 1.3px solid transparent; }
.sb.m { background: var(--ink); color: #fff; }
.sb.s { background: var(--card); color: var(--ink); border-color: var(--ink); }
.sb.r { background: var(--card); color: var(--red); border-color: #e5a6a0; }
.card.visit .h { font-size: 17px; font-weight: 700; margin: 4px 0; }
.card.visit.warmish { background: #fff8e6; }
.card.visit.stuck { border-left: 4px solid var(--red); }
.visit-pick select { flex: 1; min-height: 44px; font-size: 16px; }
.visit-note { margin: 6px 0; }

/* Нічна тиша (картинка night-quiet-v1): перемикач і «з … до …» */
.quiet-switch { justify-content: space-between; align-items: center; min-height: 44px; }
.quiet-switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 15px; background: #d5d9e3; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.quiet-switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.quiet-switch input:checked { background: var(--ok); }
.quiet-switch input:checked::after { left: 23px; }
.quiet-times { margin: 8px 0 6px; }
.quiet-times select { min-height: 48px; font-size: 20px; font-weight: 700; }

/* «Люди і посади» (план v3, PR 6) */
.note.info { border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 6px 0; background: var(--card); }
.field { display: block; margin: 10px 0; font-size: 14px; }
.field select, .field input { margin-top: 6px; min-height: 44px; font-size: 16px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 160px; }

/* Виправлення №1: `.field { display: block }` перекривав атрибут `hidden` — сховане поле було видно. */
[hidden], .field[hidden] { display: none !important; }

/* «Люди» (рішення власника 06.11.2026; макет people-mockup.png) */
.st { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; flex: none; }
.st.w { background: var(--ok-soft); color: var(--ok); }
.st.p { background: var(--blue-soft); color: var(--blue); }
.st.c { background: var(--gold-soft); color: #8a6414; }
.st.e { background: var(--grey-soft); color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.btn.sm { padding: 10px; font-size: 14px; margin-top: 0; }
.btn.sm.mt8 { margin-top: 10px; } /* кнопка під текстом картки, на всю ширину */
.card.attn .two .btn.light { border: 1.5px solid var(--line); }
input.search { margin: 10px 0; }
.lbl { font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
.card > .lbl:first-child { margin-top: 0; }
.sel { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--navy); border-radius: 12px; padding: 6px 6px 6px 12px; background: var(--card); min-height: 44px; }
.duty-row { margin-bottom: 8px; }
.duty-row select { border: 1.5px solid var(--navy); min-height: 44px; }
.duty-hint { background: var(--ok-soft); color: #1f6b42; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-top: 6px; }
.center { text-align: center; margin-top: 8px; }
details.more { margin-top: 14px; }
details.more summary, details.card summary { cursor: pointer; list-style: none; }
details.more summary::-webkit-details-marker, details.card summary::-webkit-details-marker { display: none; }
details.more .card { margin-top: 10px; }
.chk { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; margin: 0; font-weight: 400; cursor: pointer; }
.checks > .chk:first-child { border-top: 0; }
.chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); flex: none; }
.sum { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.sum .add { color: var(--ok); font-weight: 600; }
.sum .rem { color: var(--red); font-weight: 600; }
.card.list button.it .st { margin-left: auto; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button.card.attn.waiting { display: block; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; border-left: 4px solid var(--red); cursor: pointer; }
[data-waiting] > .card.attn { border-left-color: var(--gold); }
.card.ask-kind { background: var(--bg); margin: 8px 0; }
.note.warn b { font-size: 14px; }
.copy-buf { position: fixed; left: -9999px; top: 0; opacity: 0; }
textarea#raw { min-height: 90px; margin-top: 8px; }

/* Анкета працівника (рішення власника 06.11.2026, 17:57) */
.field.bad input, .phone-row.bad input[type="tel"] { border: 1.5px solid var(--red); background: #fff6f5; }
.field.bad { color: var(--red); }
.phones.bad { outline: 1.5px solid var(--red); outline-offset: 4px; border-radius: 12px; }
.phone-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.phone-row input[type="tel"] { flex: 1; min-height: 44px; font-size: 16px; margin: 0; }
.phone-row .prim { display: flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; font-size: 13px; white-space: nowrap; }
.phone-row .prim input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
a.card.row.ask { border-left: 4px solid var(--gold); }
/* Крок 7, «Оновити список власників»: дії рядка — сині посилання в один-два ряди */
.acts { flex-wrap: wrap; gap: 4px 16px; }
.card.list .it .acts button.link { margin-left: 0; color: var(--blue); font-size: 14px; }
.acts button.link:disabled { color: var(--muted); cursor: default; }
.chk input[type="checkbox"] { width: auto; margin: 0; flex: none; }
/* З4 «Фото до заявки»: мініатюри з ✕ і перегляд великого фото */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.thumb { position: relative; width: 76px; height: 76px; }
.thumb-open { width: 100%; height: 100%; padding: 0; border: 1px solid #d5dbe7; border-radius: 10px; overflow: hidden; background: #f3f5fa; }
.thumb-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #2b3550; color: #fff; font-size: 13px; line-height: 26px; padding: 0; }
.photo-block { margin-top: 8px; }
.photo-view .sheet-card img { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto 10px; border-radius: 8px; }

/* Публічна демоверсія: позначка на кожному екрані й готові варіанти під полями. */
.demo-banner { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 14px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.demo-banner .small { color: var(--muted); margin-top: 2px; }
.demo-switch { margin-top: 8px; border: 0; border-radius: 10px; padding: 8px 12px; background: var(--navy);
  color: #fff; font-size: 14px; }
.demo-chips { margin: 6px 0 10px; font-size: 13px; }
.demo-chips summary { color: var(--blue); cursor: pointer; }
.demo-chips button { display: inline-block; margin: 6px 6px 0 0; border: 1px solid var(--line);
  background: var(--card); border-radius: 10px; padding: 6px 10px; font-size: 13px; color: var(--ink); text-align: left; }
