/* ==========================================================================
   Fate Ondaba — Property Maintenance
   Mobile-first design system. Breakpoints: 600 · 768 · 1024 · 1280 · 1440 · 1920
   ========================================================================== */

:root {
  --blue: #1877F2;
  --blue-600: #166FE5;
  --blue-700: #0F5BD0;
  --blue-50: #EAF2FF;
  --blue-100: #D6E6FF;
  --navy: #0F172A;
  --ink: #111827;
  --text: #1F2937;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E5E7EB;
  --line-2: #F0F2F5;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --green: #16A34A;
  --green-50: #E9F8EF;
  --amber: #F59E0B;
  --amber-700: #B45309;
  --amber-50: #FEF5E3;
  --red: #DC2626;
  --red-50: #FDECEC;
  --wa: #25D366;
  --wa-700: #128C4B;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, .10), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .22);
  --shadow-blue: 0 8px 20px -8px rgba(24, 119, 242, .55);
  --ring: 0 0 0 3px rgba(24, 119, 242, .35);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topbar-h: 60px;
  --bottomnav-h: 68px;
  --sidebar-w: 248px;
  --summary-w: 340px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-lg { width: 24px; height: 24px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 700; color: var(--ink); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { height: 40px; width: auto; display: block; }
.sidebar .logo-img { height: 58px; }
.auth-card .logo-img { height: 64px; }
.staff-topbar .logo-img { height: 36px; }
.invoice-logo .logo-img { height: 56px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .18s var(--ease), color .18s, box-shadow .18s, transform .12s var(--ease), border-color .18s;
  -webkit-tap-highlight-color: transparent; user-select: none; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: #A9C9F7; box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: var(--blue-50); color: var(--blue-700); }
.btn-secondary:hover { background: var(--blue-100); color: var(--blue-700); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-wa { background: var(--wa-700); color: #fff; }
.btn-wa:hover { background: #0f7a41; color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #F5C2C2; }
.btn-danger:hover { background: var(--red-50); color: var(--red); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 54px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-ghost.is-loading::after, .btn-secondary.is-loading::after { border-color: rgba(24,119,242,.3); border-top-color: var(--blue); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink);
  position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; font-size: 13px; }
.link-btn:hover { color: var(--blue-700); text-decoration: underline; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; 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-green { background: var(--green-50); color: #15803D; }
.badge-blue { background: var(--blue-50); color: var(--blue-700); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-grey { background: #F1F2F4; color: #4B5563; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: all .15s;
}
.chip:hover { border-color: var(--blue-100); color: var(--blue-700); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(15,23,42,.04); }
.card-pad { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0; }
.card-head h2, .card-head h3 { font-size: 16px; }
.card-head + .menu-list, .card-head + div { margin-top: 8px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-title h2 { font-size: 18px; }
.section-title a { font-size: 13px; font-weight: 700; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { min-height: 100vh; display: flex; }
.sidebar { display: none; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h); display: flex; align-items: center; gap: 8px;
  padding: 0 12px 0 16px; background: rgba(247, 248, 250, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-title { flex: 1; text-align: center; font-weight: 800; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-back { margin-left: -8px; }
.topbar-spacer { width: 44px; }
.topbar .logo { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.topbar-search, .topbar-location, .topbar-account-label { display: none; }
.account-trigger { border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 800; font-size: 13px;
  background: linear-gradient(135deg, var(--navy), #334155); color: #fff; letter-spacing: .02em;
}
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.content { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px calc(var(--bottomnav-h) + 28px + var(--safe-b)); }
.no-bottomnav .content { padding-bottom: 32px; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--bottomnav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: #6B7280;
  font-size: 11px; font-weight: 600; -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.bottom-nav a .ic { width: 23px; height: 23px; }
.bottom-nav a[aria-current="page"] { color: var(--blue); }
.bottom-nav a[aria-current="page"] .ic { stroke-width: 2.3; }
.bottom-nav .nav-book { position: relative; color: var(--ink); }
.bottom-nav .nav-book .book-fab {
  width: 54px; height: 54px; border-radius: 50%; margin-top: -30px; display: grid; place-items: center; background: var(--blue); color: #fff;
  box-shadow: 0 10px 20px -6px rgba(24,119,242,.6), 0 0 0 5px #fff; transition: transform .2s var(--ease);
}
.bottom-nav .nav-book:active .book-fab { transform: scale(.94); }
.bottom-nav .nav-book .book-fab .ic { width: 26px; height: 26px; stroke-width: 2.5; }
.no-bottomnav .bottom-nav { display: none; }

/* ---------- Flash / toast ---------- */
.flash-stack { display: grid; gap: 8px; margin: 4px 0 12px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; animation: drop .35s var(--ease); }
.flash .ic { margin-top: 1px; }
.flash-success { background: var(--green-50); color: #14532D; }
.flash-error { background: var(--red-50); color: #7F1D1D; }
.flash-info { background: var(--blue-50); color: #1E3A8A; }
.toast-wrap { position: fixed; left: 50%; bottom: calc(var(--bottomnav-h) + 16px + var(--safe-b)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: rise .3s var(--ease); pointer-events: auto; }
.toast.is-error { background: #7F1D1D; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }

/* ==========================================================================
   Home
   ========================================================================== */
.hero-m { padding: 10px 0 18px; }
.hero-m h1 { font-size: 31px; line-height: 1.12; letter-spacing: -.035em; max-width: 12ch; }
.hero-m p { color: var(--muted); margin-top: 8px; font-size: 15px; max-width: 34ch; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 188px; border-radius: var(--r-lg);
  overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); -webkit-tap-highlight-color: transparent; border: 0; padding: 0; text-align: left; width: 100%;
}
.service-card::before { content: ""; position: absolute; inset: 0; z-index: 0; outline: 2.5px solid transparent; outline-offset: -2.5px; border-radius: inherit; transition: outline-color .2s; }
.service-card img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 72%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,23,42,0) 18%, rgba(15,23,42,.55) 48%, rgba(15,23,42,.94) 70%, #0F172A 100%); }
.service-card:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card:hover img { transform: scale(1.06); }
.service-card:active { transform: scale(.985); }
.service-card .sc-icon { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(24,119,242,.5); }
.service-card .sc-icon .ic { width: 19px; height: 19px; color: #fff; }
.service-card .sc-body { padding: 12px 12px 12px; display: flex; align-items: flex-end; gap: 8px; }
.service-card .sc-name { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.service-card .sc-tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.35; color: rgba(255,255,255,.82); margin-top: 3px; font-weight: 500; }
.service-card .sc-go { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.service-card .sc-go .ic { width: 16px; height: 16px; stroke-width: 2.5; }
.service-card:hover .sc-go { transform: translateX(2px); background: var(--blue); color: #fff; }
.service-card .sc-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .25s var(--ease); box-shadow: 0 0 0 2px #fff; }
.service-card .sc-check .ic { width: 15px; height: 15px; stroke-width: 3; }
.service-card.is-selected::before { outline-color: var(--blue); }
.service-card.is-selected { box-shadow: 0 0 0 3px var(--blue), var(--shadow-lg); }
.service-card.is-selected .sc-check { transform: scale(1); }

.emergency-strip {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: #fff;
  border: 1px solid #F8D5D5; color: var(--ink); box-shadow: var(--shadow-xs); transition: border-color .2s, box-shadow .2s;
}
.emergency-strip:hover { border-color: #F0A8A8; color: var(--ink); box-shadow: var(--shadow-sm); }
.emergency-strip .es-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; flex: none; }
.emergency-strip b { display: block; font-size: 14.5px; }
.emergency-strip span { font-size: 12.5px; color: var(--muted); }
.emergency-strip .ic-chev { color: var(--red); }

.next-card { display: flex; gap: 12px; align-items: center; padding: 12px; }
.next-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.live-card { background: linear-gradient(135deg, #0F172A 0%, #16274A 100%); color: #fff; border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.live-card h3 { color: #fff; }
.live-card .muted { color: rgba(255,255,255,.7); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 1.8s infinite; flex: none; }
.live-progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); margin: 14px 0 8px; overflow: hidden; }
.live-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60A5FA, var(--blue)); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.trust-item { display: flex; gap: 10px; align-items: center; padding: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-xs); font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.trust-item .ic { color: var(--blue); width: 26px; height: 26px; stroke-width: 1.8; }

.how-steps { display: grid; gap: 10px; counter-reset: s; }
.how-step { display: flex; gap: 12px; align-items: flex-start; }
.how-step::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.how-step b { display: block; color: var(--ink); font-size: 14px; }
.how-step span { font-size: 13px; color: var(--muted); }

/* Desktop hero banner */
.hero-d { display: none; }

/* ==========================================================================
   Booking workspace
   ========================================================================== */
.stepper { display: flex; align-items: flex-start; justify-content: space-between; position: relative; padding: 6px 4px 16px; }
.stepper::before { content: ""; position: absolute; top: 17px; left: 12%; right: 12%; height: 2px; background: var(--line); }
.stepper .st-bar { position: absolute; top: 17px; left: 12%; height: 2px; background: var(--blue); transition: width .4s var(--ease); width: 0; }
.stepper button { position: relative; z-index: 1; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stepper .st-dot { position: relative; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; transition: all .25s var(--ease); font-size: 11px; font-weight: 800; }
.stepper .st-dot .ic { width: 13px; height: 13px; stroke-width: 3.2; opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.stepper .is-current { color: var(--blue); }
.stepper .is-current .st-dot { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); background: var(--blue); }
.stepper .is-done { color: var(--ink); }
.stepper .is-done .st-dot { background: var(--blue); border-color: var(--blue); }
.stepper .is-done .st-dot .ic { opacity: 1; transform: none; }
.stepper .st-num { display: none; }

.book-layout { display: block; }
.panel { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 16px; margin-bottom: 14px; border: 1px solid rgba(15,23,42,.04); }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.panel-title .pt-num { display: none; }
.panel-title h2 { font-size: 21px; letter-spacing: -.025em; }
.panel-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.step-panel { display: none; animation: stepIn .35s var(--ease); }
.step-panel.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.step-panel.is-back { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateX(-14px); } }

.urgency-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--line-2); border-radius: 14px; margin-bottom: 16px; }
.urgency-toggle button { height: 44px; border: 0; background: transparent; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s var(--ease); }
.urgency-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.urgency-toggle button[data-mode="emergency"][aria-pressed="true"] { color: var(--red); }
.urgency-toggle .ic { width: 17px; height: 17px; }

.service-grid.compact .service-card { min-height: 128px; }
.service-grid.compact .service-card img { height: 66%; }
.service-grid.compact .sc-tag { display: none; }
.service-grid.compact .sc-go { display: none; }
.service-grid.compact .sc-name { font-size: 15px; }
.service-grid.compact .sc-icon { width: 30px; height: 30px; }
.service-grid.compact .sc-icon .ic { width: 16px; height: 16px; }
.service-card.is-disabled { opacity: .45; filter: grayscale(.7); pointer-events: none; }

.selected-service { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--bg); margin-bottom: 16px; }
.selected-service img { width: 64px; height: 56px; object-fit: cover; border-radius: 10px; }
.selected-service .ss-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.selected-service .ss-icon .ic { width: 16px; height: 16px; }

.issue-list { display: grid; gap: 8px; margin-top: 4px; }
.issue-list-title { font-weight: 800; color: var(--ink); font-size: 15px; margin: 22px 0 10px; }
.issue {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; width: 100%; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s;
}
.issue:hover { border-color: #BFD6FB; }
.issue .issue-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; color: var(--ink); flex: none; transition: all .15s; }
.issue .issue-ic .ic { width: 18px; height: 18px; }
.issue .issue-name { flex: 1; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.issue .issue-price { font-size: 12px; color: var(--muted); font-weight: 600; text-align: right; }
.issue .issue-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CBD5E1; flex: none; display: grid; place-items: center; transition: all .15s; }
.issue[aria-checked="true"] { border-color: var(--blue); background: #F7FAFF; box-shadow: 0 0 0 3px var(--blue-50); }
.issue[aria-checked="true"] .issue-ic { background: var(--blue); color: #fff; }
.issue[aria-checked="true"] .issue-radio { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.issue-list.is-empty { padding: 18px; border: 1.5px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Calendar ---------- */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { font-size: 17px; font-weight: 800; }
.cal-nav { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.cal-nav:hover:not(:disabled) { background: var(--line-2); }
.cal-nav:disabled { color: #D1D5DB; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; row-gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; max-height: 48px; border: 0; background: transparent; border-radius: 50%; font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; width: 100%; max-width: 46px; transition: background .15s, color .15s, transform .15s var(--ease);
}
.cal-day::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.cal-day.is-available::after { background: var(--green); }
.cal-day.is-limited::after { background: var(--amber); width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg); }
.cal-day.is-available:hover, .cal-day.is-limited:hover { background: var(--blue-50); }
.cal-day.is-unavailable, .cal-day.is-past { color: #C4C8CF; cursor: not-allowed; }
.cal-day.is-unavailable:not(.is-past) { text-decoration: line-through; text-decoration-color: #D1D5DB; }
.cal-day.is-outside { visibility: hidden; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--blue-100); }
.cal-day.is-selected { background: var(--blue) !important; color: #fff; box-shadow: 0 6px 14px -4px rgba(24,119,242,.6); transform: scale(1.02); }
.cal-day.is-selected::after { background: #fff; }
.cal.is-loading .cal-grid { opacity: .45; pointer-events: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg-available { background: var(--green); }
.lg-limited { background: var(--amber); border-radius: 1px !important; transform: rotate(45deg); }
.lg-selected { background: var(--blue); }
.lg-unavailable { background: #D1D5DB; }

.times { margin-top: 20px; }
.times-title { font-weight: 800; color: var(--ink); font-size: 16px; }
.times-sub { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.time-slot {
  height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink);
  transition: all .15s var(--ease); display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; padding: 0 4px;
}
.time-slot:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--blue); color: var(--blue); }
.time-slot[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.time-slot:disabled { background: var(--line-2); color: #B0B6BF; border-color: transparent; text-decoration: line-through; cursor: not-allowed; }
.times-empty { padding: 20px 14px; text-align: center; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 14px; }
.skeleton { background: linear-gradient(90deg, #EEF0F3 25%, #F6F7F9 50%, #EEF0F3 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton.time-slot { border: 0; }

.emergency-box { border-radius: var(--r); background: var(--red-50); padding: 16px; color: #7F1D1D; }
.emergency-box h3 { color: #7F1D1D; display: flex; gap: 8px; align-items: center; }
.emergency-box ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.emergency-box li + li { margin-top: 4px; }
.emergency-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.emergency-actions .btn { height: 46px; }

/* ---------- Forms ---------- */
.field { display: block; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 12px; }
.field label, .label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.label-hint { font-weight: 500; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: #9CA3AF; }
.input:hover, .textarea:hover, .select:hover { border-color: #D1D5DB; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--red); }
.field-error { display: none; color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.field.has-error .field-error { display: flex; gap: 4px; align-items: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field + .field { margin-top: 0; }
.field-row-2-1 { grid-template-columns: 1.6fr 1fr; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.counter.is-over { color: var(--red); }
.textarea-wrap { position: relative; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggest-chips button { height: 30px; font-size: 12.5px; padding: 0 10px; }

.radio-list { display: grid; gap: 4px; }
.radio-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.radio-item:hover { background: var(--bg); }
.radio-item input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.radio-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-tile { position: relative; }
.radio-tile input { position: absolute; opacity: 0; inset: 0; }
.radio-tile span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: center; transition: all .15s; cursor: pointer; }
.radio-tile span .ic { color: var(--muted); }
.radio-tile input:checked + span { border-color: var(--blue); background: #F7FAFF; color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-50); }
.radio-tile input:checked + span .ic { color: var(--blue); }
.radio-tile input:focus-visible + span { box-shadow: var(--ring); }

/* ---------- Photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-add {
  aspect-ratio: 1; border: 1.5px dashed #C7D2E0; border-radius: 12px; background: #FBFCFE; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; position: relative;
}
.field .photo-add { display: flex; margin: 0; font-size: 12.5px; }
.photo-add:hover, .photo-add.is-drag { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); }
.photo-add .ic { width: 24px; height: 24px; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line-2); animation: fade .3s; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .photo-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,23,42,.72); color: #fff; display: grid; place-items: center; }
.photo .photo-x .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.photo .photo-progress { position: absolute; inset: auto 8px 8px 8px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.5); overflow: hidden; }
.photo .photo-progress span { display: block; height: 100%; background: var(--blue); width: 0; transition: width .2s; }
.photo.is-uploading img { filter: brightness(.7); }
.photo.is-failed { outline: 2px solid var(--red); }
.photo-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; }

/* ---------- Address & estimate ---------- */
.saved-props { display: grid; gap: 8px; margin-bottom: 14px; }
.saved-prop { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; width: 100%; transition: all .15s; }
.saved-prop:hover { border-color: #BFD6FB; }
.saved-prop .sp-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; flex: none; color: var(--ink); }
.saved-prop b { display: block; font-size: 14px; color: var(--ink); }
.saved-prop span { font-size: 12.5px; color: var(--muted); }
.saved-prop[aria-checked="true"] { border-color: var(--blue); background: #F7FAFF; }
.saved-prop[aria-checked="true"] .sp-ic { background: var(--blue); color: #fff; }
.loc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 12px; border-radius: 12px; border: 0; background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: 14px; transition: background .15s; }
.loc-btn:hover { background: var(--blue-100); }

.estimate { border-radius: var(--r); padding: 16px; background: var(--green-50); display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; transition: background .3s; }
.estimate .est-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.estimate .est-label { font-size: 13px; font-weight: 700; color: #14532D; }
.estimate .est-value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; margin: 2px 0; }
.estimate .est-note { font-size: 12.5px; color: #3F6B50; }
.estimate.is-inspection { background: var(--amber-50); }
.estimate.is-inspection .est-ic { background: var(--amber); }
.estimate.is-inspection .est-label { color: var(--amber-700); }
.estimate.is-inspection .est-note { color: #7C5A1C; }
.estimate.is-emergency { background: var(--red-50); }
.estimate.is-emergency .est-ic { background: var(--red); }
.estimate.is-emergency .est-label, .estimate.is-emergency .est-note { color: #7F1D1D; }
.estimate.is-empty { background: var(--bg); }
.estimate.is-empty .est-ic { background: #CBD5E1; }
.estimate.is-empty .est-value { font-size: 16px; color: var(--muted); }
.info-note { display: flex; gap: 10px; padding: 12px 14px; background: var(--blue-50); border-radius: 12px; font-size: 12.5px; color: #1E3A8A; margin-top: 12px; line-height: 1.45; }
.info-note .ic { color: var(--blue); width: 17px; height: 17px; margin-top: 1px; }

/* ---------- Review / summary ---------- */
.summary-list { display: grid; gap: 0; }
.summary-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.summary-item:last-child { border-bottom: 0; }
.summary-item > .ic { color: var(--ink); margin-top: 2px; }
.summary-item .si-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.summary-item .si-value { font-size: 14.5px; color: var(--ink); font-weight: 700; line-height: 1.35; word-break: break-word; }
.summary-item .si-value.is-empty { color: var(--muted-2); font-weight: 500; }
.summary-item .si-value.desc { font-weight: 500; font-size: 13.5px; }
.summary-item .link-btn { margin-left: auto; flex: none; }
.summary-photos { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.summary-photos img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.summary-service { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.summary-service img { width: 88px; height: 76px; border-radius: 12px; object-fit: cover; }
.summary-service .ss-name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.summary-service .ss-type { font-size: 13px; color: var(--muted); }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.secure-note .ic { width: 14px; height: 14px; }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 16px calc(10px + var(--safe-b)); background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center;
}
.action-bar .btn { flex: 1; }
.action-bar .btn-back { flex: 0 0 34%; }
.action-bar .ab-est { display: none; }
.page-book .bottom-nav { display: none; }
.page-book .content { padding-bottom: calc(96px + var(--safe-b)); }
.book-summary { display: none; }

/* ---------- Confirmation ---------- */
.success-hero { text-align: center; padding: 20px 8px 8px; position: relative; }
.success-check { width: 84px; height: 84px; margin: 8px auto 16px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(24,119,242,.6); animation: pop .6s var(--ease); }
.success-check .ic { width: 42px; height: 42px; stroke-width: 3; }
.success-check.is-pending { background: var(--red); box-shadow: 0 16px 30px -10px rgba(220,38,38,.5); }
@keyframes pop { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; width: 7px; height: 7px; border-radius: 2px; opacity: 0; animation: confetti 1.6s var(--ease) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(260deg); } }
.success-hero h1 { font-size: 26px; }
.ref-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 4px; }
.ref-box b { font-size: 17px; letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Bookings & tracking
   ========================================================================== */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 -16px 16px; padding: 0 16px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; padding: 12px 12px; font-weight: 700; font-size: 14px; color: var(--muted); background: none; border: 0; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--blue); }
.tabs [aria-selected="true"]::after, .tabs [aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 3px 3px 0 0; background: var(--blue); }
.tabs .count { font-size: 11px; background: var(--line-2); color: var(--muted); border-radius: 99px; padding: 1px 7px; }
.tab-panel[hidden] { display: none; }

.booking-card { padding: 12px; }
.booking-card + .booking-card { margin-top: 12px; }
.bc-top { display: flex; gap: 12px; }
.bc-top img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.bc-top h3 { font-size: 16px; }
.bc-meta { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.bc-meta b { color: var(--text); font-weight: 600; }
.bc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bc-actions .btn { height: 42px; font-size: 13.5px; }
.bc-tech { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; background: var(--bg); border-radius: 10px; font-size: 13px; }
.bc-tech .avatar { width: 28px; height: 28px; font-size: 11px; }
.emergency-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--red); background: var(--red-50); padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }

.empty { text-align: center; padding: 36px 20px; }
.empty .empty-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .empty-ic .ic { width: 30px; height: 30px; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); font-size: 14px; margin: 6px auto 16px; max-width: 34ch; }

.detail-head { display: flex; gap: 12px; align-items: center; }
.detail-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.detail-head h1 { font-size: 20px; }
.ref { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.is-done::before { background: var(--blue); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; color: #fff; position: relative; z-index: 1; }
.tl-dot .ic { width: 15px; height: 15px; stroke-width: 3; }
.tl-item.is-done .tl-dot { background: var(--blue); border-color: var(--blue); }
.tl-item.is-current .tl-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-50); animation: ring 2s infinite; }
.tl-item.is-current .tl-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.tl-item.is-todo .tl-dot { background: #F3F4F6; border-color: #E5E7EB; }
.tl-label { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.3; margin-top: 3px; }
.tl-item.is-current .tl-label { color: var(--blue); }
.tl-item.is-todo .tl-label { color: var(--muted); font-weight: 600; }
.tl-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tl-item.is-current .tl-sub { color: var(--blue-700); font-weight: 600; }
@keyframes ring { 50% { box-shadow: 0 0 0 9px rgba(24,119,242,.08); } }

.tech-card { display: flex; gap: 12px; align-items: center; }
.tech-card .avatar { width: 48px; height: 48px; font-size: 16px; background: linear-gradient(135deg, var(--blue), #0B4FB8); }
.stars { display: inline-flex; gap: 1px; color: var(--amber); }
.stars .ic { width: 14px; height: 14px; fill: currentColor; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery a { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block; background: var(--line-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery .g-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(15,23,42,.75); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: capitalize; }
.report-block + .report-block { margin-top: 14px; }
.report-block h4 { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.report-block ul { margin: 0; padding-left: 18px; font-size: 14px; }
.star-input { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { cursor: pointer; color: #D1D5DB; transition: color .15s, transform .15s; }
.star-input label .ic { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--amber); }
.star-input input:focus-visible + label { box-shadow: var(--ring); border-radius: 6px; }
.table-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-lines th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--line); }
.table-lines td { padding: 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table-lines .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.table-lines tfoot td { border: 0; padding: 4px 0; }
.table-lines tfoot tr:last-child td { font-weight: 800; font-size: 16px; color: var(--ink); padding-top: 10px; }
.sticky-actions { position: sticky; bottom: calc(var(--bottomnav-h) + 10px + var(--safe-b)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding: 8px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: var(--shadow); z-index: 5; }

/* ---------- Sheet / modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 80; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; background: #fff; border-radius: 22px 22px 0 0; max-height: 92vh; overflow: auto;
  padding: 8px 16px calc(20px + var(--safe-b)); box-shadow: var(--shadow-lg); animation: sheetUp .32s var(--ease);
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: #D1D5DB; margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { font-size: 19px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10,14,24,.92); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255,255,255,.12); }

/* ==========================================================================
   Projects (before / after)
   ========================================================================== */
.project { overflow: hidden; }
.project + .project { margin-top: 16px; }
.ba { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; user-select: none; touch-action: pan-y; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.3); pointer-events: none; }
.ba .ba-handle { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); pointer-events: none; color: var(--ink); }
.ba .ba-handle .ic { width: 22px; height: 22px; }
.ba .ba-label { position: absolute; bottom: 10px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; pointer-events: none; }
.ba .ba-label.l { left: 10px; background: rgba(15,23,42,.8); color: #fff; }
.ba .ba-label.r { right: 10px; background: var(--blue); color: #fff; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type=range]:focus-visible ~ .ba-handle { box-shadow: 0 0 0 4px rgba(24,119,242,.6); }
.project-body { padding: 14px 16px 16px; }
.project-body h3 { font-size: 17px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.project-meta span { display: inline-flex; gap: 5px; align-items: center; }

/* ==========================================================================
   Property & account
   ========================================================================== */
.property-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--navy); }
.property-hero img { width: 100%; height: 100%; object-fit: cover; }
.property-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,23,42,.7)); }
.property-hero .ph-tag { position: absolute; top: 12px; right: 12px; z-index: 1; }
.property-hero .ph-title { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 1; color: #fff; }
.property-hero .ph-title h2 { color: #fff; font-size: 20px; }
.property-hero .ph-title p { font-size: 13px; color: rgba(255,255,255,.85); }
.menu-list { list-style: none; margin: 0; padding: 4px 0; }
.menu-list li + li { border-top: 1px solid var(--line-2); }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 10px 16px; color: var(--ink); font-weight: 600; font-size: 14.5px; width: 100%; background: none; border: 0; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--bg); color: var(--ink); }
.menu-list .ic { color: var(--ink); }
.menu-list .ml-end { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.menu-list .ml-end .ic { color: #9CA3AF; }
.menu-list .is-danger, .menu-list .is-danger .ic { color: var(--red); }
.prop-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); border-radius: 12px; }
.prop-item:hover { background: var(--bg); color: var(--ink); }
.prop-item.is-active { background: var(--blue-50); }
.prop-item .pi-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; flex: none; }
.prop-item.is-active .pi-ic { background: var(--blue); color: #fff; }
.prop-item b { display: block; font-size: 14px; }
.prop-item span { font-size: 12.5px; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.profile-head { text-align: center; padding: 20px 16px 16px; }
.profile-head .avatar { margin: 0 auto 10px; }
.profile-head h2 { font-size: 19px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .15s; font-size: 12.5px; color: var(--muted); }
.segmented span b { color: var(--ink); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.segmented input:checked + span { border-color: var(--blue); background: #F7FAFF; box-shadow: 0 0 0 3px var(--blue-50); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }
.plan-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.plan-item:last-child { border-bottom: 0; }
.plan-item .pl-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }

/* Messages */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; background: #fff; box-shadow: var(--shadow-xs); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.msg .msg-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg.me .msg-meta { color: rgba(255,255,255,.75); text-align: right; }
.msg .msg-from { font-size: 11.5px; font-weight: 700; color: var(--blue-700); margin-bottom: 2px; }
.msg .msg-ref { display: inline-block; font-size: 11px; font-weight: 700; background: var(--line-2); color: var(--muted); padding: 1px 7px; border-radius: 6px; margin-bottom: 4px; }
.msg.me .msg-ref { background: rgba(255,255,255,.2); color: #fff; }
.composer { position: sticky; bottom: calc(var(--bottomnav-h) + 8px + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; background: #fff; padding: 8px; border-radius: 18px; box-shadow: var(--shadow); }
.composer textarea { flex: 1; border: 0; resize: none; min-height: 40px; max-height: 120px; padding: 9px 10px; font-size: 15px; outline: none; background: transparent; }
.composer .btn { --h: 42px; padding: 0 14px; }
.composer .select { height: 40px; font-size: 13px; }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px 16px; color: var(--ink); }
.notif + .notif { border-top: 1px solid var(--line-2); }
.notif:hover { background: var(--bg); color: var(--ink); }
.notif .n-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.notif.is-unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 6px; vertical-align: middle; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, #DCE9FF 0%, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card { padding: 24px 20px; }
.auth-card .logo { margin-bottom: 20px; }
.demo-logins { display: grid; gap: 8px; margin-top: 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Search dropdown */
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; border: 1px solid var(--line); }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.search-results a:hover, .search-results a.is-active { background: var(--blue-50); }
.search-results .sr-type { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); width: 58px; flex: none; }
.search-results .sr-sub { font-size: 12px; color: var(--muted); }
.search-results .sr-empty { padding: 12px; font-size: 13px; color: var(--muted); }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; z-index: 60; animation: drop .2s var(--ease); }
.dropdown-menu a, .dropdown-menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; background: none; border: 0; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }

/* Help page */
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.wa-card { background: linear-gradient(135deg, #0B6B3A, #128C4B); color: #fff; border-radius: var(--r-lg); padding: 18px; }
.wa-card h3 { color: #fff; }
.wa-card p { color: rgba(255,255,255,.85); font-size: 14px; margin: 4px 0 14px; }
.wa-card .btn { background: #fff; color: #0B6B3A; }

/* ==========================================================================
   Tablet ≥ 600 / 768
   ========================================================================== */
@media (min-width: 600px) {
  .content { max-width: 760px; padding-left: 24px; padding-right: 24px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .service-card { min-height: 210px; }
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .tabs { margin: 0 0 16px; padding: 0; }
  .radio-tiles { grid-template-columns: repeat(6, 1fr); }
  .sheet { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 24px; border-radius: 22px; animation: modalIn .28s var(--ease); }
  .sheet::before { display: none; }
  @keyframes modalIn { from { opacity: 0; transform: translate(-50%, 16px); } }
  .projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .projects-grid .project + .project { margin-top: 0; }
  .action-bar { padding-left: max(24px, calc(50% - 356px)); padding-right: max(24px, calc(50% - 356px)); }
}
@media (min-width: 768px) {
  .content { max-width: 920px; padding-top: 16px; }
  .hero-m h1 { font-size: 38px; max-width: none; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .home-grid .home-aside > * + * { margin-top: 14px; }
  .home-grid .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 22px; }
  .booking-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .booking-list .booking-card + .booking-card { margin-top: 0; }
  .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
  .detail-grid .detail-aside > * + * { margin-top: 14px; }
  .account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
  .property-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
  .sticky-actions { position: static; box-shadow: none; padding: 0; background: none; }
  .toast-wrap { bottom: 96px; }
}

/* ==========================================================================
   Desktop ≥ 1024 — sidebar + header + multi-column workspace
   ========================================================================== */
@media (min-width: 1024px) {
  body { font-size: 15px; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; width: var(--sidebar-w); flex: none; padding: 20px 14px 16px;
    background: #fff; border-right: 1px solid var(--line); overflow-y: auto;
  }
  .sidebar .logo { padding: 2px 10px 22px; }
  .side-nav { display: grid; gap: 2px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 12px; color: #374151; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
  .side-nav a:hover { background: var(--bg); color: var(--ink); }
  .side-nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
  .side-nav a[aria-current="page"] .ic { stroke-width: 2.3; }
  .side-nav .sn-badge { margin-left: auto; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
  .side-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 18px 14px 6px; }
  .side-emergency { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--red-50); color: #991B1B; font-weight: 700; font-size: 13.5px; }
  .side-emergency:hover { color: #7F1D1D; background: #FBDADA; }
  .side-help { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
  .side-help .ic-lg { width: 30px; height: 30px; color: var(--ink); margin-bottom: 8px; }
  .side-help b { display: block; color: var(--ink); font-size: 16px; }
  .side-help p { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
  .side-help .btn { --h: 42px; font-size: 14px; }

  .topbar { height: 72px; padding: 0 28px; gap: 12px; background: rgba(247,248,250,.9); }
  .topbar .logo, .topbar-back, .topbar-title, .topbar-spacer { display: none; }
  .topbar-search { display: block; position: relative; flex: 1; max-width: 520px; }
  .topbar-search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #EEF0F3; padding: 0 44px 0 16px; font-size: 14px; transition: all .15s; }
  .topbar-search input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: var(--ring); }
  .topbar-search .ic { position: absolute; right: 14px; top: 13px; color: var(--ink); pointer-events: none; }
  .topbar-actions { margin-left: auto; gap: 8px; }
  .topbar-location { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
  .topbar-location .select { height: 40px; border: 0; padding: 0 28px 0 0; background-position: right 0 center; width: auto; font-weight: 600; font-size: 14px; }
  .topbar-location .select:focus { box-shadow: none; }
  .account-trigger { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 4px; border-radius: 14px; border: 0; background: transparent; font-weight: 600; color: var(--ink); }
  .account-trigger:hover { background: var(--line-2); }
  .topbar-account-label { display: inline; font-size: 14px; }

  .content { max-width: 1240px; padding: 8px 28px 48px; }
  .bottom-nav { display: none; }
  .toast-wrap { bottom: 28px; }
  .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
  .page-head h1 { font-size: 30px; }

  /* Home */
  .hero-m { display: none; }
  .hero-d {
    display: flex; position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 230px; background: var(--navy); color: #fff; margin-bottom: 24px; isolation: isolate;
  }
  .hero-d img { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; z-index: -2; }
  .hero-d::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0B1220 34%, rgba(11,18,32,.86) 50%, rgba(11,18,32,.25) 78%, rgba(11,18,32,.1)); }
  .hero-d .hd-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
  .hero-d .eyebrow { color: rgba(255,255,255,.8); letter-spacing: .32em; font-weight: 700; }
  .hero-d h1 { color: #fff; font-size: 52px; letter-spacing: -.04em; margin: 8px 0 6px; line-height: 1.02; }
  .hero-d h1 span { color: #4C95F7; }
  .hero-d p { color: rgba(255,255,255,.86); font-size: 17px; }
  .hero-d .hd-trust { display: flex; gap: 26px; margin-top: 20px; }
  .hero-d .hd-trust div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
  .hero-d .hd-trust .ic { width: 28px; height: 28px; color: #4C95F7; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .home-grid .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .service-card { min-height: 232px; }
  .service-card .sc-icon { top: 14px; left: 14px; width: 42px; height: 42px; }
  .service-card .sc-icon .ic { width: 22px; height: 22px; }
  .service-card .sc-body { padding: 14px; }
  .service-card .sc-name { font-size: 21px; }
  .service-card .sc-tag { font-size: 12.5px; }
  .service-card .sc-go { width: 34px; height: 34px; }
  .home-intro h2 { font-size: 24px; }

  /* Booking workspace: 2 columns + persistent summary */
  .page-book .content { max-width: none; padding-bottom: 40px; }
  .book-shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--summary-w); gap: 24px; align-items: start; }
  .book-main { min-width: 0; }
  .stepper { justify-content: flex-start; gap: 0; padding: 14px 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
  .stepper::before, .stepper .st-bar { display: none; }
  .stepper button { flex-direction: row; gap: 10px; font-size: 14px; flex: 1; justify-content: flex-start; color: var(--muted); }
  .stepper button:not(:last-child)::after { content: ""; flex: 1; min-width: 24px; height: 2px; background: var(--line); margin: 0 14px; border-radius: 2px; }
  .stepper button.is-done:not(:last-child)::after { background: var(--blue); }
  .stepper .st-dot { width: 34px; height: 34px; font-size: 14px; background: var(--line-2); border: 0; color: var(--muted); flex: none; }
  .stepper .st-num { display: inline; }
  .stepper .is-done .st-num, .stepper .is-current .st-num { color: #fff; }
  .stepper .is-done .st-num { display: none; }
  .stepper .is-current .st-dot { background: var(--blue); box-shadow: none; }
  .stepper .is-done .st-dot { color: #fff; }
  .stepper .st-dot .ic { position: absolute; }
  .stepper .st-text { white-space: nowrap; }
  .book-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .book-layout > [data-step="1"], .book-layout > [data-step="4"] { grid-column: 1 / -1; }
  .panel-address [data-address-form], .panel-address [data-contact] { max-width: none; }
  .panel-address .saved-props { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .panel-address .panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .panel-address .panel-cols [data-contact] { margin-top: 0 !important; }
  .step-panel { display: block !important; animation: none; }
  .step-panel[data-step="5"] { display: none !important; }
  .panel { padding: 22px; margin-bottom: 0; }
  .panel-title .pt-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; flex: none; }
  .panel.is-invalid { box-shadow: 0 0 0 2px var(--red), var(--shadow-sm); }
  .service-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid.compact .service-card { min-height: 170px; }
  .service-grid.compact .sc-tag { display: block; font-size: 11px; }
  .service-grid.compact .sc-icon { top: 10px; bottom: auto; left: 10px; width: 34px; height: 34px; }
  .issue-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .issue .issue-price { display: none; }
  .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .radio-tiles { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .action-bar { display: none; }
  .panel-address .panel-cols:has([data-address-form][hidden]) { grid-template-columns: 1fr; }
  .panel-address .panel-cols:has([data-address-form][hidden]) [data-contact] { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .panel-address .panel-cols:has([data-address-form][hidden]) [data-contact] > .label, .panel-address .panel-cols:has([data-address-form][hidden]) [data-contact] > p { grid-column: 1 / -1; }
  .panel-address [data-contact] .field + .field { margin-top: 0; }
  .selected-service { display: none; }
  .book-summary {
    display: block; position: sticky; top: 88px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 20px; border: 1px solid rgba(15,23,42,.04);
    max-height: calc(100vh - 104px); overflow-y: auto;
  }
  .book-summary h2 { font-size: 20px; margin-bottom: 14px; }
  .book-summary .estimate { margin-top: 14px; background: var(--blue-50); }
  .book-summary .estimate .est-ic { background: var(--blue); }
  .book-summary .estimate .est-label { color: var(--ink); }
  .book-summary .estimate .est-note { color: var(--muted); }
  .book-summary .estimate.is-inspection { background: var(--amber-50); }
  .book-summary .estimate.is-inspection .est-ic { background: var(--amber); }
  .book-summary .estimate.is-emergency { background: var(--red-50); }
  .book-summary .estimate.is-emergency .est-ic { background: var(--red); }
  .book-summary .estimate.is-empty { background: var(--bg); }
  .book-summary .estimate.is-empty .est-ic { background: #CBD5E1; }
  .book-summary .btn-lg { margin-top: 14px; }
  .summary-missing { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
  .panel-address .estimate { display: none; }

  .booking-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
  .account-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
  .property-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  .tabs { margin-bottom: 20px; }
  .composer { bottom: 16px; }
  .sticky-actions { position: static; }
}
@media (min-width: 1280px) {
  :root { --summary-w: 360px; --sidebar-w: 260px; }
  .content { padding-left: 36px; padding-right: 36px; }
  .topbar { padding: 0 36px; }
  .service-grid.compact .service-card { min-height: 190px; }
  .booking-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1440px) {
  .content { max-width: 1400px; }
  .book-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
  .hero-d { min-height: 260px; }
  .hero-d h1 { font-size: 60px; }
}
@media (min-width: 1920px) {
  :root { --summary-w: 400px; }
  .content { max-width: 1640px; }
  body { font-size: 16px; }
}
@media (max-width: 1023px) {
  .page-head { margin: 4px 0 14px; }
  .page-head h1 { font-size: 24px; }
  .desktop-only { display: none !important; }
}
@media (min-width: 1024px) { .mobile-only { display: none !important; } }
@media (max-width: 767px) { .md-up { display: none !important; } }
@media (min-width: 768px) { .sm-only { display: none !important; } }
@media (max-width: 380px) {
  .hero-m h1 { font-size: 27px; }
  .service-card { min-height: 172px; }
  .service-card .sc-name { font-size: 15.5px; }
  .service-card .sc-tag { font-size: 10.5px; }
  .time-slot { font-size: 13px; }
  .stepper button { font-size: 10.5px; }
  .urgency-toggle button { font-size: 12.5px; }
  .urgency-toggle button .ic { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .bottom-nav, .no-print, .action-bar { display: none !important; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* Guest → account invite */
.account-invite { border: 1.5px solid var(--blue-100); background: linear-gradient(180deg, #F5F9FF, #fff); }
.account-invite .ai-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
