/* Стиль за макетом власника (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; }
