/* Viganta Cleans. Quiet, bright, lots of white: the product should feel like a clean room. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f7f7f7;
  --line: #ebebeb;
  --line-strong: #dddddd;
  --ink: #222222;
  --ink-2: #484848;
  --muted: #717171;
  --faint: #b0b0b0;

  --brand: #0b7a6c;
  --brand-ink: #075e53;
  --brand-soft: #e7f5f2;
  --brand-softer: #f3faf8;

  --amber: #b45309;   --amber-soft: #fef3e2;
  --blue: #1d5fd1;    --blue-soft: #eaf1fd;
  --green: #0f7b3d;   --green-soft: #e6f5ec;
  --red: #c1352b;     --red-soft: #fdecea;
  --gray-soft: #f1f1f1;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.16);
  --sidebar: 256px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }

/* ---------- shell ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column;
  padding: 20px 14px;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand);
  display: grid; place-items: center; color: #fff;
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600;
  transition: background .15s;
}
.nav a:hover { background: var(--soft); }
.nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav a .count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 11px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; }
.me-info { min-width: 0; flex: 1; }
.me-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-role { font-size: 12px; color: var(--muted); }

.main { margin-left: var(--sidebar); flex: 1; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 36px 40px 80px; }

.topbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform .1s, background .15s, box-shadow .15s;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.brand { background: var(--brand); border-color: var(--brand); }
.btn.brand:hover { background: var(--brand-ink); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--soft); border-color: var(--ink); }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c4bf; }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: var(--soft); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input {
  height: 46px; width: 100%; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input-wrap { position: relative; }
.input-wrap .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-wrap .input { padding-left: 28px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-size: 12px; opacity: .7; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab {
  padding: 12px 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- surfaces ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16px; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat-label { color: var(--muted); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; line-height: 1; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.stat.accent { background: var(--brand-softer); border-color: #cfe9e3; }
.stat.accent .stat-value { color: var(--brand-ink); }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }

/* ---------- badges ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.open { background: var(--amber-soft); color: var(--amber); }
.badge.assigned { background: var(--blue-soft); color: var(--blue); }
.badge.in_progress { background: var(--brand-soft); color: var(--brand-ink); }
.badge.completed { background: var(--green-soft); color: var(--green); }
.badge.cancelled { background: var(--gray-soft); color: var(--muted); }
.badge.pending { background: var(--amber-soft); color: var(--amber); }
.badge.accepted { background: var(--green-soft); color: var(--green); }
.badge.declined { background: var(--red-soft); color: var(--red); }
.badge.closed { background: var(--gray-soft); color: var(--muted); }
.badge.inactive { background: var(--gray-soft); color: var(--muted); }
.badge.active { background: var(--green-soft); color: var(--green); }
.badge.plain::before { display: none; }

/* ---------- job cards ---------- */

.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.job-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
  cursor: pointer; background: #fff; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.job-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.job-top { display: flex; gap: 14px; align-items: flex-start; }
.date-tile {
  width: 54px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line);
  text-align: center; overflow: hidden;
}
.date-tile .m { background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 0; text-transform: uppercase; }
.date-tile .d { font-size: 20px; font-weight: 800; padding: 3px 0 0; line-height: 1.2; }
.date-tile .w { font-size: 10px; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.job-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.job-addr { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; gap: 4px; align-items: flex-start; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 13px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { color: var(--muted); }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.pay { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.pay small { font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; }

.offer-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--gray-soft); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .a { background: var(--green); }
.bar .d { background: #f0a39c; }

.avatars { display: flex; }
.avatars .av { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.avatars .av:first-child { margin-left: 0; }

.av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff;
}
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.av.lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- lists / tables ---------- */

.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--brand-softer); }
.list-row .t { font-weight: 700; }
.list-row .s { color: var(--muted); font-size: 13px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: var(--brand-softer); }
.table-wrap { overflow-x: auto; }

.feed-item { display: flex; gap: 12px; padding: 12px 22px; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex-shrink: 0; }
.feed-item .t { font-size: 13px; }
.feed-item .s { font-size: 12px; color: var(--muted); }

/* ---------- cleaners ---------- */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.person {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; cursor: pointer;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  display: flex; flex-direction: column; gap: 16px;
}
.person:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.person.off { opacity: .6; }
.person-top { display: flex; gap: 14px; align-items: center; }
.person-name { font-weight: 700; font-size: 16px; }
.person-sub { color: var(--muted); font-size: 13px; }
.person-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 14px; }
.person-stats div { text-align: center; }
.person-stats b { display: block; font-size: 18px; font-weight: 800; }
.person-stats span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- empty / loading ---------- */

.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 380px; margin: 8px auto 20px; }

.skeleton { background: linear-gradient(90deg, #f3f3f3 25%, #ececec 37%, #f3f3f3 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--radius-lg); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- drawer / modal ---------- */

.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: #fff; z-index: 61; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slide .28s var(--ease);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: #fff; z-index: 61; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: pop .25s var(--ease);
}
@keyframes pop { from { transform: translate(-50%, -46%); opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 17px; font-weight: 700; flex: 1; }
.sheet-body { padding: 22px; overflow-y: auto; flex: 1; }
.sheet-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.detail-hero { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.detail-hero h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 4px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.kv .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.kv .v { font-weight: 600; margin-top: 2px; }
.section-title { font-size: 15px; font-weight: 700; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.note { background: var(--soft); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; color: var(--ink-2); }
.note.key { background: var(--amber-soft); color: #7a3e06; }

.offer-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offer-row:last-child { border-bottom: 0; }
.offer-row .who { flex: 1; min-width: 0; }
.offer-row .who b { display: block; }
.offer-row .who small { color: var(--muted); }

.secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px; font-weight: 700; letter-spacing: .06em;
  background: var(--brand-soft); color: var(--brand-ink);
  padding: 14px 18px; border-radius: 12px; text-align: center; user-select: all;
}

/* service type picker */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.svc {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  display: flex; gap: 10px; align-items: center; font-weight: 600; background: #fff; text-align: left;
}
.svc:hover { border-color: var(--ink); }
.svc.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--soft); }
.svc svg { color: var(--brand); }

.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-strong); border-radius: 10px; height: 46px; padding: 0 6px 0 14px; }
.stepper b { font-size: 15px; }
.stepper div { display: flex; gap: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.stepper button:hover { border-color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: default; }

/* ---------- toasts ---------- */

#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 600; box-shadow: var(--shadow-lg); animation: toast .3s var(--ease);
  display: flex; align-items: center; gap: 10px;
}
.toast.err { background: var(--red); }
@keyframes toast { from { transform: translateY(12px); opacity: 0; } }

/* ---------- login ---------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 2px, transparent 3px) 0 0 / 46px 46px,
    linear-gradient(160deg, #0e8f7e 0%, #0b7a6c 45%, #07574d 100%);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-art h2 { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 440px; }
.auth-art p { opacity: .85; max-width: 400px; font-size: 16px; }
.bubble { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.04) 60%); }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; margin: 24px 0 6px; }
.auth-box > p { color: var(--muted); margin: 0 0 28px; }
.err-text { color: var(--red); font-weight: 600; font-size: 13px; }

/* ---------- cleaner view ---------- */

.offer-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm);
}
.offer-card .band {
  background: var(--brand-softer); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line);
}
.offer-card .band .pay { font-size: 22px; color: var(--brand-ink); }
.offer-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.offer-card .actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 0 18px 18px; }

.bottom-nav { display: none; }


/* ---------- onboarding wizard ---------- */

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.back-link:hover { color: var(--ink); }
.wiz-steps { display: flex; gap: 8px; margin: 0 0 28px; overflow-x: auto; padding-bottom: 2px; }
.wiz-step {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer;
}
.wiz-step:disabled { cursor: default; opacity: .55; }
.wiz-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 12px; }
.wiz-step.on { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.wiz-step.on .n { background: var(--ink); color: #fff; }
.wiz-step.done .n { background: var(--brand); color: #fff; }
.wiz-step.done { color: var(--ink-2); }
.wiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.wiz-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.wiz-section { padding: 24px; }
.wiz-section + .wiz-section { border-top: 1px solid var(--line); }
.wiz-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

.quote-card { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.quote-top { padding: 22px; background: var(--brand-softer); border-bottom: 1px solid var(--line); }
.quote-price { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.quote-price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.quote-lines { padding: 14px 22px 18px; }
.qline { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
.qline b { color: var(--ink); }
.qline.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 14px; }
.qline.good b { color: var(--green); }
.qline.warn b { color: var(--red); }
.warn-box { background: var(--amber-soft); color: #7a3e06; border-radius: 12px; padding: 10px 12px; font-size: 12px; font-weight: 600; display: flex; gap: 8px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; cursor: pointer; background: #fff; text-align: left;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--ink); }
.choice .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.choice b { font-size: 16px; }
.choice span { color: var(--muted); font-size: 13px; }
.choice.yes .ci { background: var(--green-soft); color: var(--green); }
.choice.no .ci { background: var(--red-soft); color: var(--red); }
.choice.on.yes { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.choice.on.no { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

.locked { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 16px; background: var(--green-soft); flex-wrap: wrap; }
.locked .ci { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; }
.locked.no { background: var(--red-soft); }
.locked.no .ci { color: var(--red); }

.addon {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; cursor: pointer; text-align: left; width: 100%;
}
.addon:hover { border-color: var(--ink); }
.addon .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.addon.on { border-color: var(--ink); background: var(--soft); }
.addon.on .box { background: var(--ink); border-color: var(--ink); }
.addon .nm { flex: 1; font-weight: 600; }
.addon .pr { font-weight: 700; white-space: nowrap; }
.addon .pr small { color: var(--muted); font-weight: 500; }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.success { text-align: center; padding: 40px 24px 28px; }
.success .big { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.success h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.success p { color: var(--muted); margin: 8px 0 0; }

.banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius-lg);
  background: var(--blue-soft); color: #173f8a; margin-bottom: 24px; font-weight: 600; flex-wrap: wrap;
}
.banner .spacer { flex: 1; }

.badge.ob-quote { background: var(--amber-soft); color: var(--amber); }
.badge.ob-accepted { background: var(--blue-soft); color: var(--blue); }
.badge.ob-booked { background: var(--green-soft); color: var(--green); }
.badge.ob-declined { background: var(--red-soft); color: var(--red); }
.badge.starter { background: var(--amber-soft); color: var(--amber); cursor: pointer; border: 0; font-family: inherit; }
.badge.starter::before { display: none; }

/* ---------- calendar ---------- */

.cal { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.cal-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cal-head h3 { font-size: 17px; font-weight: 800; flex: 1; letter-spacing: -0.01em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); }
.cal-day {
  min-height: 104px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px;
  cursor: pointer; display: flex; flex-direction: column; gap: 3px; background: #fff; text-align: left; min-width: 0; font: inherit;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--brand-softer); }
.cal-day.out { background: #fcfcfc; }
.cal-day.out .dn { color: var(--faint); }
.cal-day.past, .cal-day.past:hover { cursor: default; background: repeating-linear-gradient(135deg, #fafafa 0 6px, #f4f4f4 6px 12px); }
.cal-day .dn { font-size: 12px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 2px; }
.cal-day.today .dn { background: var(--brand); color: #fff; }
.cal-day.sel { box-shadow: inset 0 0 0 2px var(--ink); background: var(--soft); }
.cal-chip {
  font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--gray-soft); color: var(--ink-2); border-left: 3px solid var(--line-strong);
}
.cal-chip.s-open { background: var(--amber-soft); border-color: var(--amber); color: #7a3e06; }
.cal-chip.s-assigned { background: var(--blue-soft); border-color: var(--blue); color: #173f8a; }
.cal-chip.s-in_progress { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.cal-chip.s-completed { background: var(--green-soft); border-color: var(--green); color: #0b5a2d; }
.cal-chip.new { background: var(--ink); border-color: var(--ink); color: #fff; }
.cal-more { font-size: 11px; color: var(--muted); font-weight: 600; padding-left: 4px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-dots { display: none; }

.slot { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.slot:last-child { border-bottom: 0; }
.slot:hover { background: var(--brand-softer); }
.slot .tm { width: 96px; flex-shrink: 0; font-weight: 700; font-size: 13px; }
.slot .tm small { display: block; color: var(--muted); font-weight: 500; }
.date-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.date-pills span { background: var(--soft); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 600; }

/* ---------- pricing ---------- */

.price-table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table th.r, .price-table td.r { text-align: right; }
.price-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--brand-softer); }
.cell {
  height: 38px; width: 100%; min-width: 60px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  outline: none; font-weight: 600; transition: border-color .15s, background .15s;
}
.cell:hover { border-color: var(--line-strong); background: #fff; }
.cell:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.cell.num { text-align: right; }
.cell-wrap { position: relative; }
.cell-wrap .pre, .cell-wrap .post { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.cell-wrap .pre { left: 10px; }
.cell-wrap .post { right: 10px; }
.cell-wrap.has-post .cell.num { padding-right: 34px; }
.cell-wrap.has-pre .cell { padding-left: 22px; text-align: left; }
.home-cell { display: flex; gap: 6px; align-items: center; }
.home-cell select.cell { width: 100px; min-width: 0; padding: 0 6px; }
.home-cell .cell-wrap { width: 96px; }
.computed { font-weight: 800; white-space: nowrap; }
.margin-pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.margin-pill.low { background: var(--red-soft); color: var(--red); }
.row-del { opacity: .25; transition: opacity .15s; }
tr:hover .row-del { opacity: 1; }
.save-bar {
  position: fixed; left: calc(var(--sidebar) + 24px); right: 24px; bottom: 20px; z-index: 40;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 12px 12px 20px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); animation: toast .25s var(--ease);
  max-width: 900px; margin: 0 auto;
}
.save-bar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.save-bar .btn.ghost:hover { background: rgba(255,255,255,.1); }
.save-bar .btn.brand { background: #fff; color: var(--ink); border-color: #fff; }
.hint-line { font-size: 12px; color: var(--muted); padding: 12px 22px; border-top: 1px solid var(--line); }
.suggest { background: var(--brand-softer); border: 1px solid #cfe9e3; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--brand-ink); display: flex; gap: 10px; align-items: center; }
.suggest > span { flex: 1; min-width: 0; }

@media (max-width: 1100px) {
  .wiz-grid { grid-template-columns: 1fr; }
  .wiz-side { position: static; }
}
@media (max-width: 860px) {
  .save-bar { left: 12px; right: 12px; bottom: 12px; }
  .cal-day { min-height: 60px; padding: 4px; }
  .cal-chip, .cal-more { display: none; }
  .cal-dots { display: flex; gap: 3px; flex-wrap: wrap; padding: 0 2px; }
  .cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
  .cal-dots i.s-open { background: var(--amber); }
  .cal-dots i.s-assigned { background: var(--blue); }
  .cal-dots i.s-in_progress { background: var(--brand); }
  .cal-dots i.s-completed { background: var(--green); }
  .cal-dow { padding: 8px 4px; text-align: center; }
  .choice-grid, .addon-grid { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .main { margin-left: 0; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 10px 16px;
  }
  .topbar .brand { padding: 0; }
  .page { padding: 22px 16px 100px; }
  .page-head h1 { font-size: 24px; }
  .page-head .btn { width: 100%; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .job-list { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .drawer { width: 100vw; }

  /* cleaners live on their phones: give them a tab bar */
  .shell.cleaner .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav .dot { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; }
  .shell.cleaner .topbar .menu-btn { display: none; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
  .modal { top: auto; bottom: 0; left: 0; transform: none; width: 100vw; border-radius: 20px 20px 0 0; max-height: 92vh; animation: up .28s var(--ease); }
  @keyframes up { from { transform: translateY(30px); opacity: 0; } }
}
