/* =====================================================================
   Turnover Configuration  (.tvc-*)
   Turnover Flow           (.tv-*)
   ===================================================================== */

/* ── Config page ─────────────────────────────────────────────────────── */
.tvc-page {
  padding: 0 0 60px;
  max-width: 1200px;
}

.tvc-header {
  margin-bottom: 20px;
}
.tvc-header__title {
  margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #111;
}
.tvc-header__sub {
  margin: 0; font-size: 13px; color: #6b7280;
}

.tvc-alert {
  padding: 12px 16px; border-radius: 8px; font-size: 13px;
  font-weight: 600; margin-bottom: 16px;
}
.tvc-alert--ok  { background: #d1fae5; color: #065f46; }
.tvc-alert--err { background: #fee2e2; color: #991b1b; }

/* Tabs */
.tvc-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid #e6e8ec;
  margin-bottom: 24px;
}
.tvc-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  text-decoration: none; color: #6b7280;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .12s, border-color .12s;
}
.tvc-tab:hover { color: #1c1c1c; }
.tvc-tab.is-active { color: var(--highlight,#e49e00); border-bottom-color: var(--highlight,#e49e00); }

.tvc-section-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #6b7280; margin-bottom: 12px;
}

.tvc-empty {
  padding: 20px; background: #f9fafb; border-radius: 8px;
  color: #9ca3af; font-size: 13px; text-align: center;
}

/* Buttons */
.tvc-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  border-radius: 6px; border: 1px solid #d1d5db;
  background: #fff; color: #374151; cursor: pointer;
  transition: background .1s, border-color .1s; white-space: nowrap;
}
.tvc-btn:hover { background: #f3f4f6; }
.tvc-btn--primary {
  background: var(--highlight,#e49e00);
  border-color: var(--highlight,#e49e00);
  color: #fff;
}
.tvc-btn--primary:hover { background: #c98d00; border-color: #c98d00; }
.tvc-btn--secondary { background: #f9fafb; }

/* Form fields */
.tvc-field {
  display: flex; flex-direction: column; gap: 4px;
}
.tvc-field label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #6b7280;
}
.tvc-field small { font-weight: 400; text-transform: none; letter-spacing: 0; color: #9ca3af; }
.tvc-field input,
.tvc-field select {
  height: 36px; padding: 0 10px;
  background: #fff; border: 1px solid #d1d5db;
  border-radius: 6px; font-family: inherit; font-size: 13px; color: #1c1c1c;
  outline: none; transition: border-color .12s;
}
.tvc-field input:focus,
.tvc-field select:focus { border-color: var(--highlight,#e49e00); }
.tvc-field--full { grid-column: 1 / -1; }

/* ── Rooms tab layout ─────────────────────────────────────────────────── */
.tvc-layout {
  display: grid; grid-template-columns: 220px minmax(0,1fr);
  gap: 24px; align-items: start;
}

.tvc-apt-list {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 10px;
  overflow: hidden;
}
.tvc-apt-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid #f0f2f5; transition: background .1s;
}
.tvc-apt-item:last-child { border-bottom: 0; }
.tvc-apt-item:hover { background: #f9fafb; }
.tvc-apt-item.is-active { background: #fff8e6; }
.tvc-apt-item strong { font-size: 13px; font-weight: 700; color: #1c1c1c; }
.tvc-apt-item span   { font-size: 11px; color: #9ca3af; }

.tvc-room-editor {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 10px;
  padding: 20px;
}

/* Room rows */
.tvc-room-row {
  display: grid; grid-template-columns: 24px 1fr 36px;
  gap: 10px; align-items: start;
  padding: 12px; margin-bottom: 10px;
  background: #f9fafb; border: 1px solid #e6e8ec; border-radius: 8px;
  cursor: grab;
}
.tvc-room-row:active { cursor: grabbing; }
.tvc-room-row__drag {
  font-size: 18px; color: #9ca3af; cursor: grab;
  padding-top: 6px; user-select: none;
}
.tvc-room-row__fields {
  display: grid; grid-template-columns: 200px 200px 1fr;
  gap: 10px;
}
.tvc-room-row__del {
  background: none; border: none; padding: 6px;
  border-radius: 6px; cursor: pointer; color: #9ca3af;
  transition: background .1s, color .1s;
  margin-top: 4px;
}
.tvc-room-row__del:hover { background: #fee2e2; color: #b91c1c; }

.tvc-add-row {
  display: flex; gap: 8px; align-items: center;
  padding: 12px; background: #f9fafb; border-radius: 8px;
  border: 1px dashed #d1d5db; margin-top: 4px;
}
.tvc-add-row select {
  flex: 1; height: 36px; padding: 0 10px;
  background: #fff; border: 1px solid #d1d5db;
  border-radius: 6px; font-family: inherit; font-size: 13px; color: #1c1c1c;
}

.tvc-form-actions {
  display: flex; justify-content: flex-end; margin-top: 16px;
}

/* ── Photos tab ───────────────────────────────────────────────────────── */
.tvc-photos-layout {
  display: grid; grid-template-columns: 340px minmax(0,1fr);
  gap: 24px; align-items: start;
}

.tvc-upload-card {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 10px;
  padding: 20px; position: sticky; top: 80px;
}
.tvc-upload-form { display: flex; flex-direction: column; gap: 14px; }

.tvc-photo-drop {
  border: 2px dashed #d1d5db; border-radius: 8px;
  padding: 24px; text-align: center;
  cursor: pointer; transition: border-color .12s, background .12s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #9ca3af; font-size: 13px;
}
.tvc-photo-drop.is-over,
.tvc-photo-drop:hover { border-color: var(--highlight,#e49e00); background: #fff8e6; }
.tvc-photo-drop i { font-size: 28px; }
.tvc-photo-drop input[type="file"] { display: none; }

.tvc-photo-preview {
  width: 100%; border-radius: 8px; object-fit: cover;
  max-height: 200px; margin-top: 8px;
}

.tvc-photo-library { display: flex; flex-direction: column; gap: 20px; }

.tvc-photo-group { }
.tvc-photo-group__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #1c1c1c;
  margin: 0 0 12px;
}
.tvc-photo-group__title span {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px;
  background: #f3f4f6; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
}

.tvc-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 10px;
}
.tvc-photo-item {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 8px;
  overflow: hidden;
}
.tvc-photo-item__img-wrap { position: relative; }
.tvc-photo-item__img-wrap img {
  width: 100%; height: 120px; object-fit: cover; display: block;
}
.tvc-photo-item__del {
  position: absolute; top: 6px; right: 6px;
}
.tvc-photo-item__del button {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(0,0,0,.55); border: none; cursor: pointer;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background .1s;
}
.tvc-photo-item__del button:hover { background: #b91c1c; }
.tvc-photo-item__info {
  padding: 8px 10px;
}
.tvc-photo-item__info strong {
  display: block; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tvc-photo-item__info small {
  display: block; font-size: 11px; color: #9ca3af; margin-top: 2px;
}

/* ── Arrival Kit tab ──────────────────────────────────────────────────── */
.tvc-kit-view { max-width: 640px; }
.tvc-kit-intro { font-size: 13px; color: #6b7280; margin-bottom: 20px; }
.tvc-kit-group { margin-bottom: 20px; }
.tvc-kit-group h3 {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #6b7280; margin: 0 0 10px;
}
.tvc-kit-list { display: flex; flex-direction: column; gap: 4px; }
.tvc-kit-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff;
  border: 1px solid #e6e8ec; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #1c1c1c;
}
.tvc-kit-item i { color: var(--highlight,#e49e00); font-size: 16px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .tvc-layout { grid-template-columns: 1fr; }
  .tvc-apt-list { display: flex; flex-wrap: wrap; border-radius: 8px; }
  .tvc-apt-item { flex: 1; min-width: 140px; border-bottom: 0; border-right: 1px solid #f0f2f5; }
  .tvc-photos-layout { grid-template-columns: 1fr; }
  .tvc-upload-card { position: static; }
  .tvc-room-row__fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tvc-room-row { grid-template-columns: 24px 1fr 36px; }
  .tvc-room-row__fields { grid-template-columns: 1fr; }
}


/* =====================================================================
   Turnover Flow  (.tv-*)  — Mobile/iPad first
   Full-screen step wizard used by cleaners on device
   ===================================================================== */

/* The flow page takes over the entire screen */
.tv-page {
  min-height: 100dvh;
  background: #f6f6f4;
  display: flex; flex-direction: column;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.tv-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #fff; border-bottom: 1px solid #e6e8ec;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.tv-topbar__back {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: #f3f4f6; border: none; cursor: pointer;
  text-decoration: none; color: #374151;
  font-size: 20px; flex-shrink: 0;
  transition: background .12s;
}
.tv-topbar__back:hover { background: #e5e7eb; }
.tv-topbar__info { flex: 1; min-width: 0; }
.tv-topbar__apt {
  font-size: 16px; font-weight: 800; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-topbar__date { font-size: 12px; color: #9ca3af; margin-top: 1px; }
.tv-topbar__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Live timer */
.tv-timer {
  display: flex; flex-direction: column; align-items: flex-end;
}
.tv-timer__time {
  font-size: 18px; font-weight: 900; color: #111;
  letter-spacing: -.02em; line-height: 1;
}
.tv-timer__label { font-size: 10px; color: #9ca3af; font-weight: 700; text-transform: uppercase; }

/* Pause button in topbar */
.tv-pause-btn {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: #f3f4f6; border: 1px solid #e6e8ec;
  border-radius: 8px; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 700; color: #374151;
  transition: background .1s;
}
.tv-pause-btn:hover { background: #e5e7eb; }
.tv-pause-btn--active {
  background: #fff8e6; border-color: var(--highlight,#e49e00);
  color: var(--highlight,#e49e00);
}

/* ── Progress bar ────────────────────────────────────────────────────── */
.tv-progress {
  background: #e6e8ec; height: 4px;
}
.tv-progress__fill {
  height: 4px; background: var(--highlight,#e49e00);
  transition: width .35s ease;
}

/* ── Phase strip ─────────────────────────────────────────────────────── */
.tv-phases {
  display: flex; align-items: center;
  padding: 12px 18px; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  background: #fff; border-bottom: 1px solid #f0f2f5;
}
.tv-phases::-webkit-scrollbar { display: none; }
.tv-phase {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  background: #f3f4f6; color: #6b7280;
  border: 1.5px solid transparent;
  transition: all .15s;
  flex-shrink: 0;
}
.tv-phase.is-done   { background: #d1fae5; color: #065f46; }
.tv-phase.is-active { background: #fff8e6; color: var(--highlight,#e49e00); border-color: var(--highlight,#e49e00); }
.tv-phase__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ── Screen body ─────────────────────────────────────────────────────── */
.tv-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 20px 18px 100px;
  max-width: 700px; width: 100%; margin: 0 auto;
}

/* ── Big step header ─────────────────────────────────────────────────── */
.tv-step-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 22px;
}
.tv-step-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: #fff8e6; color: var(--highlight,#e49e00);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.tv-step-head__text {}
.tv-step-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--highlight,#e49e00); margin-bottom: 4px;
}
.tv-step-title {
  font-size: clamp(22px, 5vw, 32px); font-weight: 900;
  color: #111; line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 6px;
}
.tv-step-desc {
  font-size: 14px; color: #6b7280; line-height: 1.5; margin: 0;
}

/* ── Checklist cards ─────────────────────────────────────────────────── */
.tv-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.tv-check {
  background: #fff; border: 2px solid #e6e8ec;
  border-radius: 14px; padding: 16px;
  transition: border-color .15s;
}
.tv-check.is-answered-yes  { border-color: #10b981; background: #f0fdf4; }
.tv-check.is-answered-no   { border-color: #ef4444; background: #fef2f2; }
.tv-check.is-answered-na   { border-color: #9ca3af; background: #f9fafb; }

.tv-check__q {
  font-size: 16px; font-weight: 700; color: #111; margin-bottom: 14px;
  line-height: 1.35;
}

.tv-check__answers {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.tv-check__answers label { display: block; }
.tv-check__answers input  { display: none; }
.tv-check__answers span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; border-radius: 10px;
  border: 2px solid #e6e8ec; background: #f9fafb;
  font-size: 13px; font-weight: 800; cursor: pointer;
  transition: all .12s; color: #374151;
}
.tv-check__answers input:checked + span {
  border-color: currentColor;
}
/* Yes = green */
.tv-check__answers .tv-ans--yes input:checked + span { background: #10b981; border-color: #10b981; color: #fff; }
/* No = red */
.tv-check__answers .tv-ans--no input:checked + span  { background: #ef4444; border-color: #ef4444; color: #fff; }
/* N/A = grey */
.tv-check__answers .tv-ans--na input:checked + span  { background: #6b7280; border-color: #6b7280; color: #fff; }

.tv-check__note {
  margin-top: 10px;
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e6e8ec; border-radius: 8px;
  font-family: inherit; font-size: 13px; color: #1c1c1c;
  resize: none; outline: none; background: #fff;
  display: none;
}
.tv-check.is-answered-no .tv-check__note { display: block; }

/* ── Photo requirement ───────────────────────────────────────────────── */
.tv-photo-req {
  background: #fff; border: 2px solid #e6e8ec; border-radius: 14px;
  padding: 16px; margin-bottom: 20px;
}
.tv-photo-req.is-done { border-color: #10b981; background: #f0fdf4; }
.tv-photo-req__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.tv-photo-req__head i { font-size: 22px; color: var(--highlight,#e49e00); }
.tv-photo-req__head strong { font-size: 15px; font-weight: 800; color: #111; }
.tv-photo-req__head .tv-photo-badge {
  margin-left: auto; padding: 3px 8px; border-radius: 999px;
  background: #f3f4f6; font-size: 11px; font-weight: 700; color: #6b7280;
}
.tv-photo-req.is-done .tv-photo-badge { background: #d1fae5; color: #065f46; }

/* Example photo (Musterfoto) */
.tv-example-photo {
  border-radius: 10px; overflow: hidden; margin-bottom: 10px;
  border: 1px solid #e6e8ec; cursor: pointer;
}
.tv-example-photo img { width: 100%; height: 140px; object-fit: cover; display: block; }
.tv-example-photo__caption {
  padding: 8px 10px; background: #f9fafb;
  font-size: 11px; color: #6b7280; font-weight: 600;
}
.tv-example-photo__caption strong { color: #1c1c1c; display: block; }

.tv-photo-thumb-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.tv-photo-thumb {
  width: 70px; height: 70px; border-radius: 10px;
  object-fit: cover; border: 2px solid #e6e8ec;
}

.tv-upload-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; border-radius: 12px;
  border: 2px dashed #d1d5db; background: #f9fafb;
  font-size: 14px; font-weight: 700; color: #6b7280;
  cursor: pointer; transition: all .12s;
}
.tv-upload-btn:hover { border-color: var(--highlight,#e49e00); background: #fff8e6; color: var(--highlight,#e49e00); }
.tv-upload-btn input { display: none; }

/* ── Damage / Missing buttons ────────────────────────────────────────── */
.tv-quick-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.tv-quick-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid #e6e8ec; background: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  color: #374151; transition: all .1s; font-family: inherit;
}
.tv-quick-btn--damage { color: #b91c1c; border-color: #fca5a5; }
.tv-quick-btn--damage:hover { background: #fef2f2; }
.tv-quick-btn--missing { color: #1d4ed8; border-color: #bfdbfe; }
.tv-quick-btn--missing:hover { background: #eff6ff; }

/* ── Room selection screen ───────────────────────────────────────────── */
.tv-room-list { display: flex; flex-direction: column; gap: 10px; }
.tv-room-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 18px; border-radius: 14px;
  background: #fff; border: 2px solid #e6e8ec;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: all .15s;
}
.tv-room-btn:hover { border-color: var(--highlight,#e49e00); }
.tv-room-btn.is-done  { border-color: #10b981; background: #f0fdf4; }
.tv-room-btn.is-active { border-color: var(--highlight,#e49e00); background: #fff8e6; }

.tv-room-btn__icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: #f3f4f6; display: flex; align-items: center;
  justify-content: center; font-size: 24px; flex-shrink: 0;
  color: #6b7280;
}
.tv-room-btn.is-done .tv-room-btn__icon { background: #d1fae5; color: #065f46; }
.tv-room-btn.is-active .tv-room-btn__icon { background: #fff8e6; color: var(--highlight,#e49e00); }

.tv-room-btn__body { flex: 1; min-width: 0; }
.tv-room-btn__name { font-size: 17px; font-weight: 800; color: #111; }
.tv-room-btn__status { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.tv-room-btn.is-done .tv-room-btn__status { color: #059669; }

.tv-room-btn__check {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f3f4f6; display: flex; align-items: center;
  justify-content: center; font-size: 14px; flex-shrink: 0;
}
.tv-room-btn.is-done .tv-room-btn__check { background: #10b981; color: #fff; }

/* ── Sticky footer action ────────────────────────────────────────────── */
.tv-sticky-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 14px 18px;
  background: linear-gradient(to top, #f6f6f4 80%, transparent);
}
.tv-next-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 700px; margin: 0 auto;
  height: 58px; border-radius: 16px;
  background: var(--highlight,#e49e00); border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 900; color: #fff;
  box-shadow: 0 4px 16px rgba(228,158,0,.4);
  transition: filter .12s;
}
.tv-next-btn:disabled {
  background: #e6e8ec; color: #9ca3af; box-shadow: none; cursor: not-allowed;
}
.tv-next-btn:not(:disabled):hover { filter: brightness(.94); }

.tv-next-btn--green {
  background: #10b981;
  box-shadow: 0 4px 16px rgba(16,185,129,.35);
}

/* ── Mini-Check (arrival) ────────────────────────────────────────────── */
.tv-mini-checks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.tv-mini-check-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 14px; border-radius: 14px;
  border: 2px solid #e6e8ec; background: #fff;
  cursor: pointer; font-family: inherit; font-size: 13px;
  font-weight: 800; color: #374151;
  transition: all .15s;
}
.tv-mini-check-btn i { font-size: 28px; }
.tv-mini-check-btn:hover { border-color: var(--highlight,#e49e00); background: #fff8e6; }
.tv-mini-check-btn.is-ok    { border-color: #10b981; background: #f0fdf4; color: #065f46; }
.tv-mini-check-btn.is-issue { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }

/* ── Start / complete screens ────────────────────────────────────────── */
.tv-start-screen, .tv-complete-screen {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px;
}
.tv-start-screen__icon, .tv-complete-screen__icon {
  font-size: 64px; margin-bottom: 20px;
}
.tv-start-screen h2, .tv-complete-screen h2 {
  font-size: 28px; font-weight: 900; color: #111; margin: 0 0 10px;
}
.tv-start-screen p, .tv-complete-screen p {
  font-size: 15px; color: #6b7280; margin: 0 0 28px; line-height: 1.55; max-width: 340px;
}
.tv-complete-screen__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; width: 100%; max-width: 320px; margin-bottom: 28px;
}
.tv-complete-screen__stat {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 12px;
  padding: 14px; text-align: center;
}
.tv-complete-screen__stat strong { display: block; font-size: 24px; font-weight: 900; color: #111; }
.tv-complete-screen__stat span   { font-size: 11px; color: #9ca3af; font-weight: 700; text-transform: uppercase; }

/* ── Damage / missing modals ─────────────────────────────────────────── */
.tv-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.5); display: flex; align-items: flex-end;
}
.tv-modal-overlay[hidden] { display: none; }
.tv-modal {
  width: 100%; background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 36px;
  max-height: 88dvh; overflow-y: auto;
  animation: tv-modal-in .22s ease;
}
@keyframes tv-modal-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.tv-modal__handle {
  width: 40px; height: 4px; border-radius: 999px;
  background: #d1d5db; margin: 0 auto 16px;
}
.tv-modal h3 { font-size: 20px; font-weight: 900; color: #111; margin: 0 0 16px; }
.tv-modal__form { display: flex; flex-direction: column; gap: 12px; }
.tv-modal__field { display: flex; flex-direction: column; gap: 4px; }
.tv-modal__field label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.tv-modal__field input,
.tv-modal__field textarea,
.tv-modal__field select {
  padding: 12px 14px; border: 1.5px solid #d1d5db; border-radius: 10px;
  font-family: inherit; font-size: 14px; color: #1c1c1c; outline: none; resize: none;
  transition: border-color .12s;
}
.tv-modal__field input:focus,
.tv-modal__field textarea:focus,
.tv-modal__field select:focus { border-color: var(--highlight,#e49e00); }

.tv-modal__btns { display: flex; gap: 8px; margin-top: 8px; }
.tv-modal__btn {
  flex: 1; height: 52px; border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; border: none;
}
.tv-modal__btn--cancel { background: #f3f4f6; color: #374151; }
.tv-modal__btn--submit { background: var(--highlight,#e49e00); color: #fff; }

/* ── Pause modal ─────────────────────────────────────────────────────── */
.tv-pause-modal .tv-modal { text-align: center; }
.tv-pause-modal .tv-modal h3 { font-size: 24px; }
.tv-pause-modal .tv-modal p  { color: #6b7280; margin: 0 0 20px; }
.tv-pause-modal__btns { display: flex; flex-direction: column; gap: 10px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .tv-body { padding: 28px 24px 110px; }
  .tv-mini-checks { grid-template-columns: repeat(4, 1fr); }
  .tv-check__answers span { min-height: 56px; font-size: 14px; }
}

/* Apartment list with building groups */
.tvc-apt-group { border-bottom: 1px solid #f0f2f5; }
.tvc-apt-group:last-child { border-bottom: 0; }
.tvc-apt-group__label {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: #6b7280;
  background: #f9fafb; border-bottom: 1px solid #f0f2f5;
}
.tvc-apt-group__badge { margin-left: auto; font-size: 14px; }
.tvc-apt-item--building { background: #fff8e6 !important; }
.tvc-apt-item--building:hover { background: #fef3c7 !important; }
.tvc-apt-item--child { padding-left: 22px !important; }

/* Buildings tab */
.tvc-buildings-view { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.tvc-building-card { background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; overflow: hidden; }
.tvc-building-card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #f9fafb; border-bottom: 1px solid #e6e8ec;
}
.tvc-building-card__head strong { font-size: 15px; font-weight: 800; color: #111; }
.tvc-building-card__head span   { font-size: 12px; color: #9ca3af; }
.tvc-building-card__apts {
  margin-left: auto; padding: 3px 8px; border-radius: 999px;
  background: #e6e8ec; font-size: 11px; font-weight: 700; color: #374151;
}
.tvc-building-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tvc-building-card__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px;
}
.tvc-building-card__row:last-of-type { border-bottom: 0; }
.tvc-building-card__row > span   { color: #6b7280; }
.tvc-building-card__row > strong { font-weight: 700; color: #1c1c1c; }
.tvc-building-card__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tvc-building-card__form  { border-top: 1px solid #f3f4f6; padding-top: 12px; }
.tvc-chip {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #f3f4f6; color: #374151; display: inline-flex; align-items: center; gap: 5px;
}
.tvc-chip--done { background: #d1fae5; color: #065f46; }
