:root {
  /* Original TE.KVARTIRA palette — keep stable during feature work. */
  --ink: #15211c;
  --muted: #738079;
  --line: #e5e9e6;
  --bg: #f4f6f3;
  --panel: #fff;
  --green: #176347;
  --green2: #dff1e8;
  --gold: #c69a55;
  --red: #b94a4a;
  --amber: #b77824;
  --blue: #315f91;
  --shadow: 0 10px 35px rgba(24, 48, 38, 0.06);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #12261e;
  color: #fff;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 30px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #8eaa9d;
  border-radius: 12px;
  font-family: Georgia;
  font-size: 22px;
  color: #e9d7b5;
}
.brand b {
  display: block;
  font-size: 18px;
}
.brand small,
.sidebar-foot small {
  display: block;
  color: #9db0a8;
  font-size: 12px;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #aebdb7;
  text-align: left;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-item:hover,
.nav-item.active {
  background: #254238;
  color: #fff;
}
.nav-item.active {
  box-shadow: inset 3px 0 #d3ae71;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #294137;
  padding: 20px 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sidebar-foot b {
  display: block;
  font-size: 13px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5bcc91;
  box-shadow: 0 0 0 4px #214a39;
}
main {
  margin-left: 250px;
  min-height: 100vh;
  padding: 0 34px 50px;
}
header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  margin: 3px 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--green);
  margin: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.period,
.secondary,
.link-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d7e5dd;
  color: var(--green);
  font-weight: 700;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.alert {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff8eb;
  border: 1px solid #ead7b4;
  padding: 15px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.alert > span {
  font-size: 22px;
  color: var(--gold);
}
.alert p {
  margin: 3px 0;
  color: #6e675a;
  font-size: 14px;
}
.alert button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #795c2c;
  font-weight: 700;
  cursor: pointer;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.kpi > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.kpi strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}
.kpi em {
  position: absolute;
  right: 18px;
  top: 46px;
  font-style: normal;
  font-size: 12px;
}
.kpi small {
  display: block;
  color: #929b96;
  margin-top: 8px;
  font-size: 12px;
}
.up {
  color: var(--green);
}
.grid {
  display: grid;
  gap: 15px;
  margin: 15px 0;
}
.two-one {
  grid-template-columns: 2fr 1fr;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 21px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel h2,
.section-intro h2,
.portal-banner h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
}
.panel p,
.section-intro p,
.portal-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.legend {
  font-size: 11px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 5px 0 12px;
}
.legend i + * {
}
.legend i:nth-child(2) {
  background: var(--gold);
}
.chart {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 15px 10px 0;
}
.bar-group {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.bar {
  width: 14px;
  border-radius: 5px 5px 0 0;
  background: #316e56;
}
.bar.profit {
  background: #d3aa68;
}
.bar-group label {
  position: absolute;
  bottom: -22px;
  color: var(--muted);
  font-size: 10px;
}
.data-note {
  color: var(--muted);
  font-size: 13px;
  margin: 32px 0 0;
}
.kpi em.down { color: #b42318; }
.pulse-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.pulse-list > div:last-child {
  border: 0;
}
.pulse-icon {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.pulse-icon.amber {
  background: #fff0d9;
  color: var(--amber);
}
.pulse-icon.red {
  background: #fde8e8;
  color: var(--red);
}
.pulse-icon.blue {
  background: #e4eef9;
  color: var(--blue);
}
.pulse-list p {
  flex: 1;
}
.pulse-list b,
.pulse-list small {
  display: block;
}
.pulse-list strong {
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  color: #8b958f;
  font-weight: 500;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid #edf0ee;
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.meter {
  width: 70px;
  height: 5px;
  background: #e8ece9;
  border-radius: 8px;
  display: inline-block;
  margin-right: 8px;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 8px;
}
.badge {
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 11px;
}
.badge.green {
  background: #e0f2e9;
  color: #27684f;
}
.badge.amber {
  background: #fff1db;
  color: #94631e;
}
.badge.red {
  background: #fce6e6;
  color: #a33d3d;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 4px 0 22px;
}
.section-intro h2 {
  font-size: 30px;
  margin-top: 5px;
}
.section-intro > button,
.modal-save {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
}
.form-card h3 {
  font-size: 14px;
  margin: 8px 0 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 20px;
}
label {
  display: grid;
  gap: 7px;
  color: #626d67;
  font-size: 12px;
  font-weight: 600;
}
input {
  border: 1px solid #dfe5e1;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfb;
}
input:focus {
  outline: 2px solid #a5cbb9;
  border-color: transparent;
}
.result-card {
  background: #15382a;
  color: #fff;
  border-radius: 16px;
  padding: 27px;
  align-self: start;
  position: sticky;
  top: 18px;
  box-shadow: 0 18px 50px rgba(13, 51, 37, 0.18);
}
.result-card > p {
  color: #abc3b8;
  font-size: 13px;
  margin: 0 0 10px;
}
.result-card > strong {
  display: block;
  font-family: Georgia;
  font-size: 38px;
  font-weight: 500;
}
.result-badge {
  display: inline-block;
  margin: 10px 0 25px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #2b5745;
  color: #d4eadf;
  font-size: 11px;
}
.result-lines {
  border-top: 1px solid #365747;
}
.result-lines > div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #365747;
  font-size: 13px;
}
.result-lines span {
  color: #aac0b6;
}
.verdict {
  background: #244b3b;
  border-radius: 10px;
  padding: 13px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
}
.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 13px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.chip.active {
  background: #1a3b2e;
  color: #fff;
  border-color: #1a3b2e;
}
.kanban,
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.column {
  background: #edf0ed;
  border-radius: 14px;
  padding: 13px;
  min-height: 380px;
}
.column-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 3px 14px;
  font-size: 13px;
}
.column-head span {
  color: var(--muted);
}
.task,
.candidate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(20, 43, 34, 0.04);
}
.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--green);
}
.type.repair {
  color: var(--amber);
}
.task h3,
.candidate h3 {
  font-size: 14px;
  margin: 10px 0 5px;
}
.task p,
.candidate p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.task-foot,
.candidate-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.person {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dae7e0;
  color: var(--green);
  font-weight: 700;
}
.overdue {
  color: var(--red) !important;
  font-weight: 700;
}
.recruit-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 16px;
}
.recruit-kpis div {
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}
.recruit-kpis div:last-child {
  border: 0;
}
.recruit-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.recruit-kpis b {
  font-family: Georgia;
  font-size: 24px;
}
.pipeline {
  grid-template-columns: repeat(4, 1fr);
}
.candidate .score {
  font-size: 11px;
  background: #e3f2e9;
  color: var(--green);
  padding: 4px 7px;
  border-radius: 10px;
}
.search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  margin-bottom: 17px;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 14px;
  background: transparent;
}
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.kb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px;
  cursor: pointer;
  transition: 0.2s;
}
.kb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.kb-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e7f0eb;
  color: var(--green);
}
.kb-card h3 {
  font-size: 15px;
  margin: 16px 0 7px;
}
.kb-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.kb-card footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
}
.portal-banner {
  background: linear-gradient(120deg, #12392a, #245541);
  color: #fff;
  border-radius: 16px;
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.portal-banner .eyebrow,
.portal-banner p {
  color: #b8d0c5;
}
.owner-total {
  text-align: right;
}
.owner-total span,
.owner-total small {
  display: block;
  color: #b8d0c5;
  font-size: 12px;
}
.owner-total strong {
  display: block;
  font: 32px Georgia;
  margin: 5px 0;
}
.owner-kpis {
  margin-bottom: 16px;
}
.owner-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
.apartment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.apartment-card h3 {
  margin: 0 0 3px;
  font: 20px Georgia;
}
.apartment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.occupancy-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) var(--value), #e7ece9 0);
  position: relative;
}
.occupancy-ring:after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  background: #fff;
  border-radius: 50%;
}
.occupancy-ring b {
  z-index: 1;
  font-size: 16px;
}
.apt-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.apt-nums {
  display: flex;
  gap: 25px;
}
.apt-nums span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.apt-nums b {
  display: block;
  margin-top: 5px;
}
.statement {
  display: grid;
}
.statement > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.statement-total {
  font-size: 16px !important;
  background: #f0f6f3;
  padding: 15px !important;
  border: 0 !important;
  margin-top: 8px;
  border-radius: 9px;
}
.minus {
  color: #8c5555;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 16, 0.55);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.modal.show {
  display: grid;
}
.modal-box {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  position: relative;
}
.modal-box h2 {
  font: 24px Georgia;
}
.modal-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.modal-save {
  margin-top: 17px;
  width: 100%;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #173a2d;
  color: #fff;
  border-radius: 9px;
  padding: 13px 18px;
  transform: translateY(100px);
  transition: 0.25s;
  z-index: 60;
}
.toast.show {
  transform: none;
}
#menuBtn {
  display: none;
}
@media (max-width: 1050px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
  }
  .kb-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.review-summary{color:#c72e36;font-weight:700}.apartment-reviews{margin-top:34px}.apartment-review{margin:12px 0;padding:18px;border:1px solid #e8ded5;border-radius:16px;background:#fff}.apartment-review header{display:flex;justify-content:space-between;gap:12px}.apartment-review header b{color:#c72e36}.apartment-review header span{color:#716a64}.apartment-review p{margin-bottom:0;line-height:1.55}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar {
    width: 250px;
  }
  main {
    margin: 0;
    padding: 0 16px 35px;
  }
  header {
    height: 92px;
  }
  #menuBtn {
    display: inline;
    border: 0;
    background: transparent;
    font-size: 20px;
    margin-right: 8px;
  }
  header > div:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .eyebrow {
    width: calc(100% - 40px);
  }
  header h1 {
    margin-left: 40px;
    font-size: 23px;
  }
  .period {
    display: none;
  }
  .kpis,
  .two-one,
  .calc-layout,
  .owner-cards,
  .kb-grid,
  .pipeline,
  .kanban,
  .recruit-kpis {
    grid-template-columns: 1fr;
  }
  .section-intro {
    align-items: flex-start;
    gap: 15px;
  }
  .section-intro h2 {
    font-size: 25px;
  }
  .section-intro > button {
    white-space: nowrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .result-card {
    position: static;
  }
  .portal-banner {
    align-items: flex-start;
  }
  .owner-total {
    min-width: 120px;
  }
  .recruit-kpis div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.apartment-control-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:18px; align-items:start; }
.apartment-control-layout > aside { position:sticky; top:12px; }
.apartment-control-layout > aside > input { width:100%; margin-bottom:10px; }
.apartment-control-list { display:grid; gap:7px; max-height:72vh; overflow:auto; padding-right:4px; }
.apartment-control-list button { position:relative; text-align:left; border:1px solid var(--line); background:#fff; border-radius:16px; padding:12px; display:grid; gap:3px; color:var(--ink); }
.apartment-control-list button span { font-size:12px; color:var(--muted); }
.apartment-control-list button em { position:absolute; right:9px; top:9px; font-size:11px; background:var(--red); color:#fff; border-radius:99px; padding:2px 6px; }
.apartment-control-list button.active { background:var(--ink); color:#fff; }
.apartment-control-list button.active span { color:#eee; }
.apartment-control-detail { display:grid; gap:14px; min-width:0; }
.apartment-control-head,.apartment-panel { background:#fff; border:1px solid var(--line); border-radius:22px; padding:18px; }
.apartment-control-head { display:flex; justify-content:space-between; gap:16px; align-items:end; }
.apartment-control-head h2,.apartment-panel h3 { margin:3px 0; }
.apartment-control-head label { max-width:310px; }
.inspection-head,.inspection-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.inspection-head { padding:10px 12px; color:var(--muted); font-size:13px; }
.inspection-row { border-top:1px solid var(--line); padding:13px 0; }
.cleaner-result,.manager-result { display:grid; gap:8px; align-content:start; }
.cleaner-result > span { font-size:12px; color:var(--muted); }
.manager-result textarea { min-height:62px; }
.inspection-photos { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.inspection-photos img,.purchase-records img { width:54px; height:54px; border-radius:10px; object-fit:cover; }
.apartment-action-form { display:grid; grid-template-columns:minmax(180px,1.5fr) minmax(180px,1.5fr) minmax(180px,1fr); gap:10px; align-items:end; margin-top:12px; }
.apartment-action-form textarea { grid-row:span 2; }
.apartment-action-form .camera-btn { min-height:48px; }
.apartment-records,.purchase-records { display:grid; gap:8px; margin-top:14px; }
.apartment-records article,.purchase-records article { border:1px solid var(--line); border-radius:15px; padding:12px; display:grid; gap:5px; }
.apartment-records article { grid-template-columns:1fr auto; align-items:center; }
.apartment-records article span { font-size:13px; color:var(--muted); }
.purchase-records header { display:flex; justify-content:space-between; gap:12px; }
.purchase-actions { display:flex; gap:8px; }
.purchase-actions button { border:1px solid var(--line); background:#fff; border-radius:10px; padding:8px 12px; }
@media (max-width:760px) {
  .apartment-control-layout { grid-template-columns:1fr; }
  .apartment-control-layout > aside { position:static; }
  .apartment-control-list { display:flex; max-height:none; overflow:auto; }
  .apartment-control-list button { min-width:170px; }
  .apartment-control-head { align-items:stretch; flex-direction:column; }
  .inspection-head { display:none; }
  .inspection-row { grid-template-columns:1fr; }
  .manager-result { background:var(--milk); border-radius:14px; padding:10px; }
  .apartment-action-form { grid-template-columns:1fr; }
  .apartment-action-form textarea { grid-row:auto; }
  .apartment-records article { grid-template-columns:1fr; }
}
.sidebar {
  width: 268px;
  padding: 22px 14px;
  overflow-y: auto;
}
.brand {
  padding-bottom: 20px;
}
.sidebar nav {
  gap: 3px;
}
.nav-label {
  color: #668076;
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 800;
  padding: 16px 14px 5px;
}
.nav-item {
  padding: 10px 14px;
  font-size: 13px;
}
main {
  margin-left: 268px;
}
.top-gap {
  margin-top: 16px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.search.compact {
  margin: 0;
  max-width: 420px;
  flex: 1;
}
.sync-status {
  background: #fff4de;
  border: 1px solid #ecd5a8;
  color: #7c5b23;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
}
.sync-status i,
.integration-strip i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d09a3b;
  margin-right: 6px;
}
.booking-calendar {
  overflow-x: auto;
  display: grid;
  grid-template-columns: 180px repeat(7, minmax(80px, 1fr));
  min-width: 820px;
}
.cal-cell {
  padding: 11px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  min-height: 43px;
}
.cal-head {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.cal-name {
  font-weight: 700;
}
.cal-booked {
  background: #dcece4;
  color: #245d47;
  border-radius: 5px;
  margin: 4px;
  padding: 7px;
}
.cal-turn {
  background: #f5e5c8;
  color: #795d2c;
}
.integration-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.integration-strip span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
}
.integration-strip i.ok {
  background: #43a778;
}
.integration-strip i.wait {
  background: #d09a3b;
}
.crm-layout,
.guest-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 15px;
}
.funnel-row {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 12px;
}
.funnel-bar {
  height: 24px;
  background: #dfece5;
  border-radius: 5px;
}
.contact-list > div,
.incident-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list p,
.incident-list p {
  margin: 0;
  flex: 1;
  font-size: 12px;
}
.contact-list small,
.incident-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.channel {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e5eee9;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.expense-row {
  display: grid;
  grid-template-columns: 140px 1fr 85px;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
  font-size: 12px;
}
.expense-track {
  height: 8px;
  background: #edf0ee;
  border-radius: 8px;
  overflow: hidden;
}
.expense-track i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 8px;
}
.signal-list p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 12px;
}
.signal-list span {
  color: var(--muted);
  text-align: right;
}
.process-steps,
.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.process-steps > div,
.roadmap > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  gap: 10px;
}
.process-steps b,
.roadmap > div > b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8ece9;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.process-steps span,
.roadmap span {
  font-size: 12px;
  font-weight: 700;
}
.process-steps small,
.roadmap small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.process-steps .done b,
.roadmap .now b {
  background: #dff1e8;
  color: var(--green);
}
.process-steps .active {
  border-color: #caa76d;
  background: #fff9ee;
}
.growth-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.growth-board .column {
  min-height: 320px;
}
.site-preview {
  background: #f8f4ec;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5ddcd;
}
.site-top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  color: #17362a;
}
.site-top > b {
  font: 22px Georgia;
}
.site-top span {
  font-size: 12px;
}
.site-top em {
  font-style: normal;
  color: var(--muted);
}
.site-hero {
  padding: 70px 6% 50px;
  background: linear-gradient(125deg, #173c2d, #2f6650);
  color: #fff;
}
.site-hero > p {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #bcd0c7;
}
.site-hero h2 {
  font: 42px Georgia;
  margin: 12px 0 36px;
}
.booking-search {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 8px;
  max-width: 920px;
}
.booking-search label {
  padding: 8px 12px;
  border-right: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.booking-search b {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-top: 4px;
}
.booking-search button {
  border: 0;
  background: #c39a5e;
  color: #fff;
  border-radius: 8px;
  padding: 0 20px;
}
.site-results {
  padding: 30px 6% 45px;
}
.site-results h3 {
  font: 24px Georgia;
}
.site-results > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.site-results article {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 7px;
}
.site-results small {
  color: var(--muted);
}
.apt-photo {
  height: 110px;
  border-radius: 8px;
  background: #dfe9e3;
  display: grid;
  place-items: center;
  font: 24px Georgia;
  color: var(--green);
}
.apt-photo.dark {
  background: #d1c9bd;
  color: #674f3c;
}
.apt-photo.gold {
  background: #eadbbc;
  color: #866534;
}
.guest-banner {
  background: linear-gradient(120deg, #243d5b, #3d6388);
}
.guest-actions {
  display: grid;
  gap: 8px;
}
.guest-actions button {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: #fbfcfb;
  padding: 13px;
  border-radius: 9px;
  color: var(--ink);
  text-align: left;
}
.timeline > div {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timeline b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8ece9;
  display: grid;
  place-items: center;
}
.timeline .done b {
  background: #dff1e8;
  color: var(--green);
}
.timeline .active b {
  background: #f4e1bd;
  color: #8a651f;
}
.timeline span {
  font-size: 13px;
  font-weight: 700;
}
.timeline small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.architecture {
  background: #15382a;
  color: #fff;
  border-radius: 16px;
  padding: 26px;
}
.arch-core {
  text-align: center;
  background: #234c3c;
  border: 1px solid #456e5c;
  border-radius: 12px;
  padding: 18px;
  max-width: 580px;
  margin: auto;
}
.arch-core b {
  display: block;
  font: 24px Georgia;
}
.arch-core span {
  display: block;
  color: #b9cec4;
  font-size: 12px;
  margin-top: 6px;
}
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.arch-grid > div {
  background: #1d4435;
  border-radius: 10px;
  padding: 15px;
}
.arch-grid b {
  display: block;
  font-size: 13px;
}
.arch-grid span {
  display: block;
  color: #afc7bc;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.5;
}
.needs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.needs-grid > div {
  background: #f7f9f7;
  border-radius: 10px;
  padding: 14px;
}
.needs-grid b,
.needs-grid span {
  display: block;
}
.needs-grid b {
  font-size: 13px;
}
.needs-grid span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .sidebar {
    width: 268px;
  }
  main {
    margin: 0;
  }
  .kpis,
  .two-one,
  .calc-layout,
  .owner-cards,
  .kb-grid,
  .pipeline,
  .kanban,
  .recruit-kpis,
  .crm-layout,
  .guest-layout,
  .arch-grid,
  .needs-grid,
  .growth-board,
  .process-steps,
  .roadmap {
    grid-template-columns: 1fr;
  }
  .site-top span {
    display: none;
  }
  .site-hero {
    padding: 45px 20px;
  }
  .site-hero h2 {
    font-size: 32px;
  }
  .booking-search {
    grid-template-columns: 1fr;
  }
  .booking-search label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .booking-search button {
    padding: 13px;
  }
  .site-results {
    padding: 25px 20px;
  }
  .site-results > div {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
}

/* Service operations module */
button,
input,
select,
textarea {
  font: inherit;
}
select,
textarea {
  border: 1px solid #dfe5e1;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfb;
}
textarea {
  resize: vertical;
  line-height: 1.45;
}
.primary {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wide {
  width: 100%;
  margin-top: 16px;
}
.ops-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin: 3px 0 18px;
}
.ops-head h2 {
  font: 500 30px Georgia;
  margin: 5px 0;
}
.ops-head > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.role-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #e7ece9;
  padding: 4px;
  border-radius: 10px;
}
.role-switch > span {
  font-size: 11px;
  color: var(--muted);
  padding: 0 8px;
}
.role-switch button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 9px 11px;
  color: #5d6963;
  cursor: pointer;
  font-size: 12px;
}
.role-switch button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 9px rgba(21, 56, 42, 0.09);
  font-weight: 700;
}
.ops-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px 15px;
  border-radius: 13px;
  margin-bottom: 14px;
}
.ops-toolbar label {
  min-width: 150px;
}
.ops-toolbar select,
.ops-toolbar input {
  padding: 9px 10px;
}
.ops-toolbar .cloud-state {
  margin-left: auto;
}
.ops-toolbar > button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.cloud-state {
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
}
.cloud-state i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43a778;
  margin-right: 6px;
}
.cloud-state i.warn {
  background: #d09a3b;
}
.ops-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.ops-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
}
.ops-kpi span,
.ops-kpi small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.ops-kpi strong {
  display: block;
  font: 27px Georgia;
  margin: 6px 0;
}
.ops-kpi.danger {
  border-color: #e7b9b9;
  background: #fffafa;
}
.ops-kpi.danger strong,
.ops-kpi.danger small {
  color: var(--red);
}
.ops-tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  overflow-x: auto;
}
.ops-tabs button {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.ops-tabs button.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
}
.ops-tabs b {
  background: #e5ebe7;
  border-radius: 20px;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 10px;
}
.ops-view {
  display: none;
}
.ops-view.active {
  display: block;
}
.ops-split {
  display: grid;
  grid-template-columns: minmax(250px, 0.74fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
}
.ops-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}
.ops-list-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  cursor: pointer;
  color: var(--ink);
}
.ops-list-card.active {
  border-color: #9ebdac;
  box-shadow: 0 0 0 2px #dcebe3;
}
.ops-list-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ops-list-card h3 {
  font-size: 15px;
  margin: 11px 0 4px;
}
.ops-list-card p,
.ops-list-card small {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.mini-progress {
  height: 4px;
  background: #edf0ee;
  border-radius: 5px;
  margin-top: 11px;
  overflow: hidden;
}
.mini-progress i {
  display: block;
  height: 100%;
  background: var(--green);
}
.status {
  display: inline-block;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #ecefed;
  color: #66716b;
}
.status.in_progress {
  background: #e4eef9;
  color: #3d6388;
}
.status.submitted {
  background: #fff0d9;
  color: #8b641f;
}
.status.rework {
  background: #fde8e8;
  color: #9d4141;
}
.status.approved {
  background: #dff1e8;
  color: #27684f;
}
.ops-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-height: 420px;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.detail-title h2 {
  font: 24px Georgia;
  margin: 9px 0 4px;
}
.detail-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.detail-score {
  text-align: right;
}
.detail-score strong,
.detail-score small {
  display: block;
}
.detail-score strong {
  font: 28px Georgia;
  color: var(--green);
}
.detail-score small {
  font-size: 10px;
  color: var(--muted);
}
.cleaner-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f8f6;
  border-radius: 10px;
  padding: 11px;
  margin: 14px 0;
}
.cleaner-banner b,
.cleaner-banner small {
  display: block;
  font-size: 12px;
}
.cleaner-banner small {
  color: var(--muted);
  margin-top: 3px;
}
.cleaner-banner em {
  margin-left: auto;
  color: var(--red);
  font-size: 11px;
  font-style: normal;
  max-width: 48%;
}
.cleaner-banner em.cleaning-deadline {
  color: var(--green);
  font-weight: 600;
}
.checklist-groups {
  display: grid;
  gap: 10px;
}
.check-group {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.check-group h3 {
  display: flex;
  justify-content: space-between;
  background: #f5f7f5;
  margin: 0;
  padding: 10px 13px;
  font-size: 12px;
}
.check-group h3 span {
  color: var(--muted);
  font-weight: 400;
}
.check-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-top: 1px solid #edf0ee;
}
.check-main {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.check-main input {
  margin-top: 2px;
  accent-color: var(--green);
}
.check-row.done .check-main span {
  color: #75817b;
}
.check-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.camera-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.camera-btn.required {
  border-color: #d4b982;
  background: #fffaf0;
  color: #80622b;
}
.camera-btn input,
.file-field input {
  display: none;
}
.photo-thumb {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  overflow: hidden;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note-field {
  margin-top: 14px;
}
.note-field textarea {
  width: 100%;
}
.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.ready-lock {
  background: #e1f1e8;
  color: #27684f;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
}
.critical-block {
  display: flex;
  flex-direction: column;
  background: #fde9e9;
  border: 1px solid #efc8c8;
  color: #913e3e;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
.critical-block span {
  font-size: 11px;
  margin-top: 4px;
}
.manager-check {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.manager-check > div {
  background: #f5f8f6;
  border-radius: 9px;
  padding: 12px;
}
.manager-check span,
.manager-check b {
  display: block;
}
.manager-check span {
  font-size: 10px;
  color: var(--muted);
}
.manager-check b {
  font-size: 17px;
  margin-top: 4px;
}
.manager-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.manager-photos a {
  position: relative;
  height: 110px;
  border-radius: 9px;
  overflow: hidden;
  background: #edf0ee;
}
.manager-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.manager-photos span {
  position: absolute;
  inset: auto 5px 5px;
  background: rgba(14, 37, 28, 0.8);
  color: #fff;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 9px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}
.ops-form {
  display: grid;
  gap: 12px;
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.guest-review-list {
  display: grid;
  gap: 9px;
}
.guest-review-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}
.guest-review-list article > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.guest-review-list b,
.guest-review-list small {
  display: block;
}
.guest-review-list small {
  color: var(--muted);
  font-size: 10px;
  margin-left: auto;
}
.guest-review-list p {
  font-size: 12px;
  line-height: 1.5;
  margin: 11px 0;
  color: var(--ink);
}
.guest-review-list footer {
  display: flex;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}
.rating {
  background: #fff0d9;
  color: #8c651e;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 11px;
}
.issue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 13px;
}
.issue-head h2 {
  font: 23px Georgia;
  margin: 0 0 4px;
}
.issue-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.issue-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  align-items: start;
}
.issue-column {
  background: #e9edea;
  border-radius: 12px;
  padding: 10px;
  min-height: 320px;
}
.issue-column > header {
  display: flex;
  justify-content: space-between;
  padding: 5px 3px 12px;
  font-size: 12px;
}
.issue-column > header span {
  color: var(--muted);
}
.issue-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #b9c4be;
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 9px;
}
.issue-card.priority-critical {
  border-top-color: #c85959;
}
.issue-card.priority-high {
  border-top-color: #dc8b42;
}
.issue-card.priority-medium {
  border-top-color: #d6b15d;
}
.issue-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
}
.issue-card .priority {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.issue-card small {
  font-size: 10px;
  color: var(--muted);
}
.issue-card h3 {
  font-size: 13px;
  margin: 9px 0 5px;
}
.issue-card > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 9px;
}
.issue-card dl {
  margin: 0;
}
.issue-card dl div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding: 4px 0;
}
.issue-card dt {
  color: var(--muted);
}
.issue-card dd {
  margin: 0;
}
.issue-photos {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 4px;
  margin: 7px 0;
}
.issue-photos img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
}
.card-action {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  padding: 10px 0 0;
  margin-top: 9px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.card-action.verify {
  color: #27684f;
}
.resolution-field {
  margin-top: 10px;
}
.resolution-field textarea {
  width: 100%;
  font-size: 11px;
  padding: 8px;
}
.resolution {
  background: #f2f6f3;
  border-radius: 7px;
  padding: 8px !important;
  color: var(--ink) !important;
}
.verified-mark {
  display: block;
  color: #27684f;
  background: #e2f1e9;
  padding: 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}
.ops-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.ops-empty.large {
  min-height: 340px;
  justify-content: center;
}
.ops-empty b {
  color: var(--ink);
}
.ops-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 16, 0.62);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 16px;
}
.ops-modal.show {
  display: grid;
}
.ops-modal-box {
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 15px;
  padding: 22px;
  position: relative;
  display: grid;
  gap: 12px;
}
.ops-modal-box h2 {
  font: 25px Georgia;
  margin: 0;
}
.ops-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}
.file-field {
  border: 1px dashed #c9d3cd;
  border-radius: 9px;
  padding: 13px;
  text-align: center;
  cursor: pointer;
}
.file-field span {
  font-weight: 700;
  color: var(--green);
}
.toast.error {
  background: #9d4141;
}

[hidden] {
  display: none !important;
}
.incomplete-block {
  background: #fff8eb;
  border: 1px solid #ead7b4;
  color: #795c2c;
  border-radius: 9px;
  padding: 10px 12px;
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.4;
}
.role-switch.locked > span,
.role-switch.locked button:not(.active) {
  display: none;
}
.role-switch.locked button.active {
  cursor: default;
}
.reported-mark {
  display: block;
  color: #27684f;
  background: #e2f1e9;
  padding: 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 9px;
}
.report-rules {
  border: 1px solid #ead7b4;
  background: #fffaf0;
  border-radius: 11px;
  padding: 14px;
  margin: 14px 0;
}
.report-rules > b {
  font-size: 14px;
  color: #6f5222;
}
.report-rules p {
  font-size: 12px;
  line-height: 1.5;
  margin: 7px 0;
  color: #625b50;
}
.report-rules details {
  border-top: 1px solid #eadfca;
  margin-top: 10px;
  padding-top: 10px;
}
.report-rules summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #6f5222;
}
.report-rules ul {
  margin: 9px 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.6;
}
.before-photos {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  margin-bottom: 12px;
}
.photo-section-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}
.photo-section-head h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.photo-section-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.photo-section-head > b {
  background: #e5ebe7;
  color: var(--green);
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.report-photo,
.photo-add {
  height: 88px;
  border-radius: 9px;
  overflow: hidden;
}
.report-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c8c0;
  color: var(--green);
  cursor: pointer;
  font-size: 22px;
  background: #f8faf9;
}
.photo-add span {
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}
.photo-add input {
  display: none;
}
.photo-add.disabled {
  opacity: 0.45;
  cursor: default;
}
.checklist-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 2px;
}
.checklist-note b {
  font-size: 13px;
}
.checklist-note span {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  max-width: 58%;
}
.report-finish {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.report-finish label {
  font-size: 12px;
  font-weight: 600;
}
.report-finish select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.manager-photo-title {
  font-size: 12px;
  margin: 15px 0 7px;
}
.manager-check {
  grid-template-columns: repeat(5, 1fr);
}
.report-photo {
  position: relative;
}
.report-photo > span {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2d6c52;
  color: #fff;
  font-weight: 800;
}
.photo-add.disabled {
  opacity: 0.55;
}
.checklist-note > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.checklist-note .photo-progress {
  color: #76581f;
  background: #fff5df;
  border-radius: 20px;
  padding: 4px 8px;
}
.checklist-note > span {
  max-width: 48%;
}
.camera-btn.uploaded {
  border-color: #8eb7a3;
  background: #e7f3ec;
  color: #27684f;
  font-weight: 700;
}
.camera-btn.upload-error {
  border-color: #d38a8a;
  background: #fff1f1;
  color: #943f3f;
}
.photo-thumb.added {
  position: relative;
  width: 48px;
  height: 48px;
}
.photo-thumb.added i {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2d6c52;
  color: #fff;
  font-size: 10px;
  font-style: normal;
}
.upload-error-text {
  flex-basis: 100%;
  width: 100%;
  margin: 6px 0 0;
  color: #943f3f;
  font-size: 11px;
  line-height: 1.4;
}
.check-row {
  flex-wrap: wrap;
}
.manager-finance {
  border: 1px solid #d9e4de;
  background: #f7faf8;
  border-radius: 11px;
  padding: 14px;
  margin-top: 16px;
  display: grid;
  gap: 11px;
}
.manager-finance h3 {
  margin: 0;
  font-size: 14px;
}
.manager-finance label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}
.manager-finance textarea,
.manager-finance input,
.manager-finance select {
  width: 100%;
}
.manager-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pay-adjustment {
  border-top: 1px solid #dfe7e2;
  padding-top: 10px;
}
.pay-adjustment p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
}
.evidence-photos {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.evidence-photos a {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  overflow: hidden;
}
.evidence-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stats-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.stats-toolbar h2 {
  font: 28px Georgia;
  margin: 4px 0;
}
.stats-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.stats-dates {
  display: flex;
  gap: 8px;
}
.stats-dates label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.stats-dates input {
  padding: 9px;
}
.stats-panel {
  margin-bottom: 14px;
}
.bonus-rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-bottom: 15px;
}
.bonus-rules span {
  font-size: 11px;
  line-height: 1.45;
  background: #f5f8f6;
  padding: 10px;
  border-radius: 8px;
}
.bonus-rules strong {
  display: block;
  color: var(--green);
  font-size: 14px;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
}
.stats-table th,
.stats-table td {
  text-align: left;
  padding: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.stats-table th {
  color: var(--muted);
  white-space: nowrap;
}

.table-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.bonus-state {
  display: inline-flex;
  max-width: 210px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.bonus-state.top { background: #dcfce7; color: #166534; }
.bonus-state.mid { background: #fef3c7; color: #92400e; }
.bonus-state.none { background: #fee2e2; color: #991b1b; }
.review-cell {
  max-width: 260px;
  line-height: 1.4;
}
.issue-manager-fields {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.issue-manager-fields > p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}
.issue-planning {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}
.issue-planning > b {
  font-size: 10px;
  color: var(--green);
}
.issue-planning label {
  display: grid;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.issue-planning input,
.issue-planning textarea {
  width: 100%;
  padding: 8px;
  font-size: 11px;
}
.issue-planning .card-action {
  margin-top: 2px;
}
.cleaner-today,
.cleaner-feedback {
  margin-bottom: 14px;
}
.cleaner-today .panel-head,
.cleaner-feedback .panel-head {
  margin-bottom: 10px;
}
.cleaner-today h2,
.cleaner-feedback h2 {
  font: 22px Georgia;
  margin: 3px 0;
}
.today-cleanings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.today-cleanings > button {
  display: grid;
  width: 100%;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 15px 17px;
  cursor: pointer;
  color: var(--ink);
}
.today-cleanings > button .status {
  width: max-content;
}
.today-cleanings > button b {
  font-size: 15px;
}
.today-cleanings > button small {
  font-size: 11px;
  color: var(--muted);
}
.cleanliness-feedback {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.cleanliness-feedback article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}
.cleanliness-feedback article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cleanliness-feedback article span {
  color: #8b641f;
  font-size: 11px;
  font-weight: 700;
}
.cleanliness-feedback p {
  font-size: 12px;
  line-height: 1.45;
  margin: 9px 0;
}
.cleanliness-feedback small {
  font-size: 10px;
  color: var(--muted);
}
.salary-period {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #dfe6e2;
  border: 1px solid #dfe6e2;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.salary-period > div {
  display: grid;
  gap: 4px;
  background: #f5f8f6;
  padding: 15px 17px;
}
.salary-period span,
.salary-period small {
  font-size: 11px;
  color: var(--muted);
}
.salary-period b {
  font-size: 16px;
  color: var(--green);
}
.salary-chart {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}
.salary-bar {
  display: grid;
  grid-template-columns: 70px minmax(120px, 1fr) 100px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.salary-bar > span {
  color: var(--muted);
  text-transform: capitalize;
}
.salary-bar > div {
  display: flex;
  height: 12px;
  background: #edf1ef;
  border-radius: 20px;
  overflow: hidden;
}
.salary-bar i {
  display: block;
  background: #2f6d53;
}
.salary-bar em {
  display: block;
  background: #d7ad55;
}
.salary-bar > b {
  text-align: right;
  font-size: 11px;
}
.schedule-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}
.availability-form {
  display: grid;
  gap: 13px;
}
.week-picker {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
}
.availability-days {
  display: grid;
  gap: 7px;
}
.availability-day {
  display: grid;
  grid-template-columns: 62px 1fr 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
}
.availability-day > div:first-child b,
.availability-day > div:first-child span {
  display: block;
}
.availability-day > div:first-child span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.availability-day select,
.availability-day input {
  min-width: 0;
  width: 100%;
  padding: 8px;
  font-size: 11px;
}
.availability-time {
  display: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
}
.availability-time.show {
  display: grid;
}
.availability-list {
  display: grid;
  gap: 10px;
}
.availability-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}
.availability-list header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.availability-list header b,
.availability-list header span {
  display: block;
}
.availability-list header span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.availability-list header em {
  font-style: normal;
  font-size: 10px;
  color: var(--green);
  background: #e2f1e9;
  border-radius: 20px;
  padding: 5px 8px;
  height: max-content;
}
.week-summary {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 11px;
}
.week-summary span {
  display: grid;
  gap: 3px;
  text-align: center;
  background: #eef3f0;
  border-radius: 7px;
  padding: 7px 3px;
  font-size: 9px;
  color: #52615a;
}
.week-summary span b {
  font-size: 11px;
}
.week-summary span.off {
  background: #fdeaea;
  color: #944747;
}
.week-summary span.limited {
  background: #fff3dc;
  color: #856125;
}
.availability-list article > p {
  font-size: 11px;
  margin: 10px 0 0;
  color: var(--muted);
}
.safe-code {
  margin-top: 8px !important;
  color: #334a3f !important;
}
.safe-code b {
  background: #e5eee9;
  border-radius: 6px;
  padding: 4px 8px;
  letter-spacing: 0.08em;
}
.handoff-note,
.manager-message {
  border: 1px solid #dfc58f;
  background: #fff7e7;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}
.handoff-note b,
.manager-message b {
  font-size: 12px;
}
.handoff-note p,
.manager-message p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.45;
}
.handoff-note span {
  font-size: 10px;
  color: var(--muted);
}
.manager-message {
  border-color: #b9d2c5;
  background: #eef7f2;
}
.problem-btn {
  border: 1px solid #e0bbbb;
  background: #fff5f5;
  color: #954747;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 10px;
  white-space: nowrap;
}
.ready-lock.decline {
  background: #fdeaea;
  color: #944747;
}
.history-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}
.history-head h2 {
  font: 26px Georgia;
  margin: 0 0 4px;
}
.history-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.history-timeline {
  display: grid;
  gap: 9px;
}
.history-timeline article {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}
.history-timeline time {
  font-size: 11px;
  color: var(--muted);
}
.history-timeline span,
.history-timeline b {
  display: block;
}
.history-timeline span {
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
}
.history-timeline b {
  font-size: 13px;
  margin: 4px 0;
}
.history-timeline p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.alerts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.alerts-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #7da991;
  border-radius: 9px;
  padding: 13px;
}
.alerts-list article.warning {
  border-left-color: #d6a44a;
}
.alerts-list article.danger {
  border-left-color: #bd5555;
}
.alerts-list b,
.alerts-list strong {
  display: block;
}
.alerts-list b {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.alerts-list strong {
  font-size: 14px;
  margin: 6px 0;
}
.alerts-list p {
  font-size: 11px;
  margin: 0;
  color: var(--muted);
}
.close-payroll {
  margin-top: 14px;
}
.payroll-state {
  font-size: 11px;
  color: var(--muted);
}
.assignment-editor {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr auto;
  gap: 8px;
  align-items: end;
  background: #eef4f1;
  border-radius: 10px;
  padding: 11px;
  margin-bottom: 12px;
}
.assignment-editor label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.assignment-editor input {
  min-width: 0;
  width: 100%;
  padding: 8px;
}
.service-integration {
  margin-bottom: 14px;
}
.errands-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
}
.errand-list {
  display: grid;
  gap: 10px;
}
.errand-card {
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
}
.errand-card header,
.errand-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.errand-card header span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}
.errand-card h3,
.errand-card p {
  margin: 3px 0 0;
}
.errand-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.errand-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
}
.errand-card dl div {
  background: var(--bg);
  border-radius: 8px;
  padding: 9px;
}
.errand-card dt {
  color: var(--muted);
  font-size: 9px;
}
.errand-card dd {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 700;
}
.errand-note {
  background: #eef7f2;
  border-radius: 8px;
  padding: 9px;
}
.errand-note.warning {
  background: #fff3dc;
}
.errand-photos {
  display: flex;
  gap: 7px;
}
.errand-photos a {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
}
.errand-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.errand-complete {
  display: grid;
  gap: 9px;
}
.errand-complete label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}
/* Cleaner view: the original theme, with only task-relevant content. */
.cleaner-view .ops-head > div:first-child,
.cleaner-view .role-switch.locked,
.cleaner-view #cloudState,
.cleaner-view #cleaningList,
.cleaner-view .issue-head > div > p,
.cleaner-view .stats-toolbar > div > p,
.cleaner-view .panel-head > div > .eyebrow,
.cleaner-view #ops-schedule .schedule-layout > article .panel-head p {
  display: none;
}
.cleaner-view .ops-head:has(.role-switch.locked) {
  display: none;
}
.cleaner-view #ops-cleanings .ops-split,
.cleaner-view .schedule-layout,
.cleaner-view .errands-layout {
  grid-template-columns: minmax(0, 1fr);
}
.cleaner-view #opsKpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cleaner-view #opsKpis .ops-kpi:first-child {
  display: none;
}
.cleaner-view #opsKpis .ops-kpi:nth-child(4) small {
  display: none;
}
.cleaner-view #opsKpis .ops-kpi {
  padding: 12px;
}
.cleaner-view .panel-head {
  margin-bottom: 10px;
}
.cleaner-view .panel-head h2 {
  font-family: Georgia, serif;
  font-weight: 500;
}
.cleaner-view #cleanerTodayDate:empty,
.cleaner-view .cleaner-banner:not(:has(em)) {
  display: none;
}
.cleaner-view .report-rules > summary {
  border: 0;
  cursor: pointer;
}
.cleaner-view .photo-section-head p {
  display: none;
}
@media (max-width: 1100px) {
  .issue-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .ops-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .errands-layout {
    grid-template-columns: 1fr;
  }
  .errand-card dl {
    grid-template-columns: 1fr;
  }
  .ops-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .role-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .role-switch > span {
    grid-column: 1/-1;
    padding: 5px;
  }
  .ops-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .ops-toolbar label {
    min-width: 0;
  }
  .ops-toolbar .cloud-state {
    margin-left: 0;
  }
  .ops-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .ops-split,
  .reviews-grid,
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .ops-list {
    max-height: none;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .ops-detail {
    padding: 14px;
  }
  .check-row {
    flex-direction: column;
  }
  .check-tools {
    justify-content: flex-end;
  }
  .manager-photos {
    grid-template-columns: repeat(2, 1fr);
  }
  .issue-board {
    grid-template-columns: 1fr;
  }
  .issue-column {
    min-height: 0;
  }
  .form-grid.three,
  .report-finish,
  .manager-fields {
    grid-template-columns: 1fr;
  }
  .detail-actions {
    flex-direction: column;
  }
  .detail-actions button {
    width: 100%;
  }
  .manager-check {
    grid-template-columns: 1fr 1fr;
  }
  .issue-head {
    align-items: flex-start;
    gap: 10px;
  }
  .issue-head button {
    white-space: nowrap;
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .checklist-note {
    align-items: flex-start;
    flex-direction: column;
  }
  .checklist-note span {
    text-align: left;
    max-width: none;
  }
  .stats-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .stats-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bonus-rules {
    grid-template-columns: 1fr 1fr;
  }
  .stats-panel {
    overflow: hidden;
  }
  .stats-panel .table-wrap {
    overflow-x: auto;
  }
  .availability-day {
    grid-template-columns: 54px 1fr;
  }
  .availability-time {
    grid-column: 1/-1;
  }
  .week-summary {
    grid-template-columns: repeat(4, 1fr);
  }
  .today-cleanings,
  .cleanliness-feedback {
    grid-template-columns: 1fr;
  }
  .salary-period {
    grid-template-columns: 1fr;
  }
  .salary-bar {
    grid-template-columns: 58px 1fr 82px;
  }
}
@media (max-width: 430px) {
  .ops-kpis,
  .ops-list {
    grid-template-columns: 1fr;
  }
  .role-switch {
    grid-template-columns: 1fr;
  }
  .role-switch > span {
    grid-column: auto;
  }
  .camera-btn span {
    display: none;
  }
  .ops-head h2 {
    font-size: 26px;
  }
}

/* Cleaner home: daily work and live indicators fit in the opening viewport. */
@media (max-width: 760px) {
  .cleaner-view .ops-toolbar { margin-bottom: 7px; }
  .cleaner-view .ops-toolbar .apartment-filter,
  .cleaner-view .ops-toolbar #addTask { display: none; }
  .cleaner-view #opsKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .cleaner-view #opsKpis .ops-kpi { min-height: 0; padding: 8px 10px; }
  .cleaner-view #opsKpis .ops-kpi span { font-size: 11px; line-height: 1.2; }
  .cleaner-view #opsKpis .ops-kpi strong { font-size: 22px; margin: 3px 0 0; }
  .cleaner-view .cleaner-today { padding: 10px; margin-bottom: 8px; }
  .cleaner-view .cleaner-today .panel-head { margin-bottom: 6px; }
  .cleaner-view .cleaner-today h2 { font-size: 19px; margin: 0; }
  .cleaner-view .today-cleanings { gap: 5px; max-height: 38dvh; overflow-y: auto; }
  .cleaner-view .today-cleanings > button { grid-template-columns: auto minmax(0,1fr); gap: 2px 7px; padding: 8px 10px; }
  .cleaner-view .today-cleanings > button .status { grid-row: 1/3; align-self: center; }
  .cleaner-view .today-cleanings > button small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cleaner-view .ops-tabs { margin: 6px 0; }
}
@media (max-width: 430px) {
  .cleaner-view #opsKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .alerts-list {
    grid-template-columns: 1fr;
  }
  .history-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .history-timeline article {
    grid-template-columns: 1fr;
  }
  .problem-btn {
    font-size: 11px;
  }
  .check-tools {
    flex-wrap: wrap;
  }
  .assignment-editor {
    grid-template-columns: 1fr;
  }
  .assignment-editor button {
    width: 100%;
  }
}
