:root {
  color-scheme: light;
  --accent: #8E1B33;
  --accent-pressed: #73142A;
  --accent-tint: rgba(142, 27, 51, 0.08);
  --accent-tint-2: rgba(142, 27, 51, 0.14);
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #AEAEB2;
  --sep: rgba(60, 60, 67, 0.12);
  --fill: rgba(118, 118, 128, 0.12);
  --green: #248A3D;
  --orange: #C25E00;
  --blue: #0066CC;
  --red: #D70015;
  --gray: #8E8E93;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); text-decoration: none; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: calc(52px + var(--safe-t)); padding: var(--safe-t) 12px 0;
  background: rgba(245, 245, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--sep); }
.topbar .tb-title { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 17px; opacity: 0; transition: opacity .2s; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.topbar.scrolled .tb-title, .topbar.compact .tb-title { opacity: 1; }
.tb-side { display: flex; align-items: center; gap: 4px; min-width: 44px; }
.tb-side.right { justify-content: flex-end; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); transition: background .15s; }
.icon-btn:active { background: var(--accent-tint); }
.back-btn { display: flex; align-items: center; gap: 2px; color: var(--accent); font-size: 17px; height: 40px; padding-right: 8px; }
.back-btn svg.i { width: 24px; height: 24px; stroke-width: 2.2; }

.page { padding: 4px 16px calc(110px + var(--safe-b)); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.large-title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 4px 2px; line-height: 1.15; }
.subtitle { color: var(--text-2); font-size: 15px; margin: 0 4px 18px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
  padding-bottom: var(--safe-b);
}
.tabbar-inner { display: flex; width: 100%; max-width: 640px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; color: var(--gray); font-size: 10.5px; font-weight: 500; position: relative; }
.tab svg.i { width: 26px; height: 26px; stroke-width: 1.7; }
.tab.active { color: var(--accent); }
.tab.active svg.i { stroke-width: 2.1; }
.badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.icon-btn .badge { top: 2px; left: auto; right: 0; }

/* ---------- sections ---------- */
.section { margin-top: 26px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 8px; }
.section-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.section-link { font-size: 15px; color: var(--accent); }
.section-caption { text-transform: uppercase; font-size: 13px; color: var(--text-2); margin: 0 16px 7px; letter-spacing: .02em; }
.section-foot { font-size: 13px; color: var(--text-2); margin: 7px 16px 0; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 12px; }
.card.tappable { cursor: pointer; transition: transform .15s; }
.card.tappable:active { transform: scale(.985); }

/* grouped list */
.group { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; position: relative; width: 100%; text-align: left; background: var(--card); }
.row + .row::before { content: ''; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--sep); }
.row.has-icon + .row::before, .row + .row.has-icon::before { left: 60px; }
button.row:active, .row.tappable:active { background: #EDEDF0; }
.row.tappable { cursor: pointer; }
.row-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--accent); flex: none; }
.row-icon svg.i { width: 19px; height: 19px; stroke-width: 2; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 14px; color: var(--text-2); margin-top: 1px; }
.row-value { color: var(--text-2); font-size: 16px; white-space: nowrap; }
.row-chev { color: var(--text-3); }
.row-chev svg.i { width: 18px; height: 18px; stroke-width: 2.2; }
.row.destructive .row-title { color: var(--red); }
.row.accent .row-title { color: var(--accent); }
.empty { text-align: center; color: var(--text-2); padding: 28px 16px; font-size: 15px; }
.empty .i { width: 40px; height: 40px; color: var(--text-3); margin-bottom: 8px; stroke-width: 1.4; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; font-size: 17px; font-weight: 600; transition: background .15s, transform .1s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-pressed); }
.btn.tinted { background: var(--accent-tint); color: var(--accent); }
.btn.tinted:active { background: var(--accent-tint-2); }
.btn.plain { background: var(--fill); color: var(--text); }
.btn.danger { background: rgba(215, 0, 21, 0.08); color: var(--red); }
.btn.small { height: 36px; padding: 0 16px; font-size: 15px; border-radius: 999px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg.i { width: 20px; height: 20px; stroke-width: 2.2; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }
.stack > * + * { margin-top: 10px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.gray { background: rgba(142, 142, 147, .14); color: #636366; }
.pill.orange { background: rgba(194, 94, 0, .1); color: var(--orange); }
.pill.blue { background: rgba(0, 102, 204, .1); color: var(--blue); }
.pill.red { background: rgba(215, 0, 21, .09); color: var(--red); }
.pill.green { background: rgba(36, 138, 61, .1); color: var(--green); }
.pill.accent { background: var(--accent-tint); color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin: 0 4px 6px; }
.input, .textarea, .select {
  width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: var(--radius-sm);
  background: var(--fill); outline: none; font-size: 17px; transition: box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.input:focus, .textarea:focus, .select:focus { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-row { display: flex; gap: 10px; }
.field-row > .field { flex: 1; min-width: 0; }
.card .input, .card .textarea, .card .select { background: var(--bg); }
.form-error { color: var(--red); font-size: 14px; margin: -4px 4px 12px; }

.seg { display: flex; background: var(--fill); border-radius: 10px; padding: 2px; margin-bottom: 16px; }
.seg button { flex: 1; height: 32px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); transition: background .2s, box-shadow .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: #E9E9EA; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.colors button.on { outline: 2.5px solid var(--text); outline-offset: 2px; }

/* ---------- checklist ---------- */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; position: relative; width: 100%; text-align: left; background: var(--card); }
.check + .check::before { content: ''; position: absolute; top: 0; right: 0; left: 52px; height: .5px; background: var(--sep); }
.check .box { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C7C7CC; flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s; margin-top: -1px; }
.check .box svg.i { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; }
.check.done .box { background: var(--accent); border-color: var(--accent); }
.check.done .box svg.i { opacity: 1; }
.check.done .check-text { color: var(--text-3); text-decoration: line-through; }
.check:active .box { transform: scale(.88); }
.check.readonly { cursor: default; }
.check.readonly:active .box { transform: none; }
.check-text { flex: 1; font-size: 16px; line-height: 1.35; }

.progress { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s ease; }
.progress.green > div { background: var(--green); }

/* ---------- hero ---------- */
.hero-day { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.hero-time { font-size: 17px; color: var(--text-2); margin-top: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; }
.kv + .kv { border-top: .5px solid var(--sep); }
.kv .k { color: var(--text-2); }
.kv .v { text-align: right; font-weight: 500; }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.note-box { background: var(--accent-tint); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; white-space: pre-wrap; }
.note-box.warn { background: rgba(215, 0, 21, .07); }
.pre { white-space: pre-wrap; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { font-size: 20px; font-weight: 700; padding-left: 4px; }
.cal-month span { color: var(--accent); }
.cal-nav { display: flex; gap: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); padding-bottom: 6px; text-transform: uppercase; }
.cal-day { display: flex; flex-direction: column; align-items: center; height: 52px; padding-top: 3px; }
.cal-day .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; transition: background .15s; }
.cal-day.other .n { color: var(--text-3); }
.cal-day.weekend:not(.other) .n { color: var(--text-2); }
.cal-day.today .n { color: var(--accent); font-weight: 700; }
.cal-day.sel .n { background: var(--accent); color: #fff; font-weight: 600; }
.cal-day.sel .n, .cal-day.sel.weekend:not(.other) .n, .cal-day.today.sel .n { background: var(--accent); color: #fff; }
.cal-dots { display: flex; gap: 3px; height: 6px; margin-top: 3px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }

/* ---------- cleaning list item ---------- */
.ci { display: flex; gap: 14px; align-items: center; }
.ci-time { width: 54px; flex: none; text-align: center; }
.ci-time b { display: block; font-size: 17px; font-weight: 600; }
.ci-time small { font-size: 12px; color: var(--text-2); }
.ci-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--accent); flex: none; }

/* ---------- media ---------- */
.video-wrap { border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; display: block; max-height: 70vh; }
.media-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 6px 2px 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.thumbs a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--fill); display: block; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-progress { margin-top: 12px; }
.upload-progress .small { margin-bottom: 6px; display: flex; justify-content: space-between; }

/* ---------- sheet ---------- */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .32); display: flex; align-items: flex-end; justify-content: center; animation: bd-in .25s ease; }
.backdrop.closing { animation: bd-out .22s ease forwards; }
@keyframes bd-in { from { opacity: 0; } }
@keyframes bd-out { to { opacity: 0; } }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; overflow-y: auto; animation: sh-in .32s cubic-bezier(.2, .9, .3, 1); padding-bottom: calc(20px + var(--safe-b)); }
.backdrop.closing .sheet { animation: sh-out .22s ease forwards; }
@keyframes sh-in { from { transform: translateY(100%); } }
@keyframes sh-out { to { transform: translateY(100%); } }
.sheet-grabber { width: 36px; height: 5px; border-radius: 3px; background: #C7C7CC; margin: 7px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.sheet-head h2 { font-size: 17px; font-weight: 600; margin: 0 8px; text-align: center; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head .side { flex: none; min-width: 64px; font-size: 17px; color: var(--accent); }
.sheet-head .side.right { text-align: right; font-weight: 600; }
.sheet-body { padding: 4px 16px 0; }

.action-sheet { width: 100%; max-width: 640px; padding: 0 8px calc(8px + var(--safe-b)); animation: sh-in .3s cubic-bezier(.2, .9, .3, 1); }
.backdrop.closing .action-sheet { animation: sh-out .22s ease forwards; }
.action-group { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.action-group .msg { padding: 14px 16px; text-align: center; font-size: 13px; color: var(--text-2); border-bottom: .5px solid var(--sep); }
.action-group .msg b { display: block; font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.action-group button { display: block; width: 100%; height: 57px; font-size: 20px; color: var(--accent); }
.action-group button + button { border-top: .5px solid var(--sep); }
.action-group button.destructive { color: var(--red); }
.action-group button.cancel { font-weight: 600; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); z-index: 200; background: rgba(29, 29, 31, .92); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); animation: toast-in .3s cubic-bezier(.2, .9, .3, 1); max-width: calc(100% - 32px); text-align: center; }
.toast.err { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 24px calc(24px + var(--safe-b)); max-width: 420px; margin: 0 auto; }
.logo { width: 76px; height: 76px; border-radius: 20px; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 10px 30px rgba(142, 27, 51, .3); }
.logo svg.i { width: 40px; height: 40px; stroke-width: 1.8; }
.login h1 { text-align: center; font-size: 32px; letter-spacing: -0.02em; margin: 0; }
.login p.lead { text-align: center; color: var(--text-2); margin: 6px 0 30px; }
.login .input { background: #fff; box-shadow: var(--shadow); }
.login .hint { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 18px; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 13px 16px; position: relative; width: 100%; text-align: left; background: var(--card); }
.notif + .notif::before { content: ''; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--sep); }
.notif .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.notif .unread-dot.read { background: transparent; }
.notif-title { font-weight: 600; font-size: 15px; }
.notif-body { font-size: 15px; color: var(--text-2); margin-top: 1px; }
.notif-time { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.banner { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.banner .row-icon { width: 38px; height: 38px; border-radius: 10px; }
.banner-text { flex: 1; font-size: 14px; color: var(--text-2); }
.banner-text b { display: block; color: var(--text); font-size: 15px; margin-bottom: 1px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick button { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; }
.quick button:active { transform: scale(.97); }
.quick .row-icon { width: 36px; height: 36px; border-radius: 10px; }
.quick b { font-size: 15px; font-weight: 600; line-height: 1.25; }

.avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 17px; flex: none; }
.avatar.lg { width: 76px; height: 76px; font-size: 32px; margin: 0 auto 10px; }

.add-inline { display: flex; gap: 8px; margin-bottom: 16px; }
.add-inline .input { background: #fff; box-shadow: var(--shadow); }
.add-inline .btn { height: 48px; width: 48px; padding: 0; flex: none; }

.tpl-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 16px; position: relative; }
.tpl-item + .tpl-item::before { content: ''; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--sep); }
.tpl-item input { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 16px; min-width: 0; }
.tpl-item .icon-btn { color: var(--text-3); width: 36px; height: 36px; }
.tpl-section-name { width: 100%; border: 0; background: transparent; outline: 0; font-size: 13px; text-transform: uppercase; color: var(--text-2); letter-spacing: .02em; padding: 0 16px 7px; font-weight: 500; }

@media (min-width: 700px) {
  .page { padding-top: 12px; }
  .sheet { border-radius: 20px; margin-bottom: 24px; max-height: 86vh; }
  .backdrop { align-items: center; }
}

/* ---------- подсказки при вводе ---------- */
.suggest { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin: -8px 0 16px; animation: fade .15s ease; }
.suggest button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; font-size: 16px; text-align: left; position: relative; }
.suggest button + button::before { content: ''; position: absolute; top: 0; right: 0; left: 46px; height: .5px; background: var(--sep); }
.suggest button:active { background: #EDEDF0; }
.suggest svg.i { width: 18px; height: 18px; color: var(--accent); }
.sheet .suggest { margin: -6px 0 14px; }

/* ---------- демо ---------- */
.demo-bar { display: flex; align-items: center; gap: 12px; background: var(--accent-tint); border-radius: var(--radius-sm); padding: 10px 12px 10px 14px; margin: 0 0 14px; font-size: 13px; color: var(--text-2); line-height: 1.3; }
.demo-bar > div { flex: 1; }
.demo-bar b { display: block; color: var(--accent); font-size: 14px; }
.demo-bar .btn.small { height: 32px; padding: 0 12px; font-size: 13px; flex: none; background: #fff; }
.demo-link { display: block; margin: 10px auto 0; color: var(--accent); font-size: 15px; padding: 8px; }

/* ---------- фото в чек-листе ---------- */
.check:not(.readonly) { cursor: pointer; }
.check-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.photo-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 2px 8px 2px 6px; }
.photo-tag svg.i { width: 14px; height: 14px; stroke-width: 2; }
.check.done .photo-tag { color: var(--orange); background: rgba(194, 94, 0, .1); }
.check-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.check-photos a { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--fill); display: block; }
.check-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.check-cam { width: 36px; height: 36px; margin: -6px -6px -6px 0; flex: none; }
.check.uploading { opacity: .5; pointer-events: none; }
.check.uploading .box { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.85); } }

/* ---------- состояние квартиры ---------- */
.apt-status { display: flex; align-items: center; gap: 14px; }
.apt-status .apt-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.apt-status .apt-icon svg.i { width: 26px; height: 26px; stroke-width: 2; }
.apt-status .apt-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.apt-status .apt-sub { font-size: 14px; color: var(--text-2); margin-top: 2px; line-height: 1.35; }
.apt-card.ready { background: linear-gradient(0deg, rgba(36, 138, 61, .07), rgba(36, 138, 61, .07)), var(--card); }
.apt-card.dirty { background: linear-gradient(0deg, rgba(215, 0, 21, .06), rgba(215, 0, 21, .06)), var(--card); }
.apt-card.stay { background: linear-gradient(0deg, rgba(0, 102, 204, .06), rgba(0, 102, 204, .06)), var(--card); }
.apt-card.cleaning { background: linear-gradient(0deg, var(--accent-tint), var(--accent-tint)), var(--card); }
.tpl-item .tpl-photo.on { color: var(--accent); background: var(--accent-tint); }
