/* ============================================================
   Roomz — Resident Service Requests Portal
   Shared design tokens + components (resident webview & ops dashboard)
   Cues: roomz.rent (Inter, brand blue, clean surfaces) and the Roomz
   app (pill tabs, soft gradient headers, rounded cards, bottom bar).
   ============================================================ */
:root { --brand: #0029FF; --brand-600: #0020CC; --brand-50: #EEF1FF; --brand-100: #DCE2FF; --ink: #111111; --ink-2: #3A3B40; --muted: #808080; --line: #ECECF1; --line-2: #E2E2EA; --chip: #F3F3F6; --bg: #F8F8FE; --surface: #FFFFFF; --coral: #FD5B56; --coral-50: #FFEDEC; --yellow: #FBC83D; --yellow-50: #FFF7E0; --peri: #A1A8F9; --peri-50: #F0F1FF; --mint: #19A866; --mint-50: #E6F7EE; --red: #E0241B; --red-50: #FDECEB; --amber: #B7791F; --amber-50: #FFF4E0; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px; --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05); --shadow: 0 2px 6px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .06); --shadow-lg: 0 12px 40px rgba(5, 10, 36, .16); --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.32, .72, 0, 1); }
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.muted { color: var(--muted); }
.flip-rtl {  }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--brand-600); }
.btn-soft { background: var(--brand-50); color: var(--brand); }
.btn-soft:hover:not([disabled]) { background: var(--brand-100); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { background: var(--chip); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-soft { background: var(--red-50); color: var(--red); }
.btn-success { background: var(--mint); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; position: relative; color: var(--ink);
}
.icon-btn:hover { background: var(--chip); }
.badge-dot {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 18px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600;
}
.lang-toggle:hover { background: var(--chip); }
/* ---------- Pills / segmented (app style) ---------- */
.seg { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0;
  background: var(--chip); color: var(--ink); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--brand); color: #fff; }
.seg button .count { font-size: 12px; opacity: .7; font-weight: 600; }
.chip { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 18px; }
/* ---------- Status badges ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 13px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { background: var(--brand-50); color: var(--brand); }
.st-review { background: var(--amber-50); color: var(--amber); }
.st-progress { background: var(--peri-50); color: #4B53D6; }
.st-scheduled { background: var(--peri-50); color: #4B53D6; }
.st-completed, .st-accepted { background: var(--mint-50); color: var(--mint); }
.st-rejected { background: var(--red-50); color: var(--red); }
.st-residentCancelled { background: var(--chip); color: var(--ink-2); }
/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 20px; }
.label { font-weight: 600; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.label .opt { font-weight: 500; color: var(--muted); font-size: 12px; }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r);
  border: 1.5px solid var(--line-2); background: #fff; outline: none; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.input[readonly] { background: var(--chip); border-color: transparent; color: var(--ink-2); }
.select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] .select { background-position: left 14px center; }
.input-affix { position: relative; }
.input-affix .affix {
  position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 14px;
  color: var(--muted); font-weight: 600; font-size: 13px; pointer-events: none;
}
.input-affix .input { padding-inline-end: 56px; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select, .field.has-error .drop { border-color: var(--red); }
.field.has-error .opt-grid .opt-card { border-color: #F5B5B2; }
.err { color: var(--red); font-size: 12.5px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.err:empty { display: none; }
.opt-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff;
  text-align: start; min-height: 64px; transition: border-color .15s, background .15s;
}
.opt-card.row { flex-direction: row; align-items: center; }
.opt-card:hover { border-color: #C9CCF8; }
.opt-card[aria-checked="true"] { border-color: var(--brand); background: var(--brand-50); }
.opt-card[aria-checked="true"]::after {
  content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.opt-card[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.opt-card .oc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--ink); }
.opt-card[aria-checked="true"] .oc-ic { background: #fff; color: var(--brand); }
.opt-card .oc-t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.opt-card .oc-d { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.drop {
  display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed #C9CCF8;
  border-radius: var(--r); background: var(--peri-50); cursor: pointer; transition: background .15s;
}
.drop:hover { background: var(--brand-50); }
.drop .oc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); flex: none; }
.drop b { display: block; font-size: 14px; }
.drop span { font-size: 12.5px; color: var(--muted); }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px;
  background: var(--chip); font-size: 13px; max-width: 100%;
}
[dir="rtl"] .file { padding: 6px 10px 6px 6px; }
.file img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.file .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file button { border: 0; background: transparent; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.file button:hover { background: #fff; color: var(--red); }
.slot { display: grid; grid-template-columns: 30px minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.slot .input { font-size: 14px; min-height: 46px; padding: 10px 8px !important; }
.input[type="date"], .input[type="time"] { min-width: 0; -webkit-appearance: none; appearance: none; text-align: start; }
.field, .opt-grid > * { min-width: 0; }
.slot + .slot { margin-top: 10px; }
.slot .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.slot-err { padding-inline-start: 44px; margin-top: 4px; }
/* ---------- Cards / layout primitives ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 18px; }
.section-title { font-size: 18px; font-weight: 700; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 520px) {
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { font-size: 12.5px; margin-top: 12px; }
  .kv dt:first-child { margin-top: 0; }
  .kv dd { margin-top: 2px; }
}
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .e-ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); font-size: 13.5px; line-height: 1.45; }
.note .icon { margin-top: 1px; }
.note-info { background: var(--brand-50); color: #1A2FA8; }
.note-warn { background: var(--amber-50); color: #7A5310; }
.note-danger { background: var(--red-50); color: #9C1A14; }
.note-success { background: var(--mint-50); color: #0E6E41; }
/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-inline-start: 28px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 4px #fff; z-index: 1; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 10px; top: 14px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.timeline .tl-t { font-weight: 600; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.timeline .tl-m { font-size: 12.5px; color: var(--muted); }
.timeline .tl-r { margin-top: 6px; font-size: 13px; background: var(--chip); padding: 8px 10px; border-radius: 10px; color: var(--ink-2); }
/* Progress bars */
.stackbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--chip); }
.stackbar span { display: block; height: 100%; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-inline-start: auto; font-weight: 600; }
.legend small { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
/* ---------- Modal / sheet ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(5, 10, 36, .45); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease;
}
.sheet {
  width: 100%; max-width: 520px; background: #fff; border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(20px + var(--safe-b)); max-height: 92vh; overflow: auto;
  animation: up .22s cubic-bezier(.32, .72, 0, 1);
}
.sheet .grab { width: 40px; height: 4px; background: var(--line-2); border-radius: 2px; margin: 0 auto 14px; }
.sheet h3 { font-size: 18px; margin-bottom: 6px; }
.sheet .sheet-actions { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 640px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 20px; padding: 24px; }
  .sheet .grab { display: none; }
  .sheet .sheet-actions { grid-template-columns: 1fr 1fr; }
  .sheet .sheet-actions.one { grid-template-columns: 1fr; }
}
@keyframes fade { from { opacity: 0; }; }
@keyframes up { from { transform: translateY(40px); opacity: 0; }; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; margin: 8px auto 16px; background: var(--mint-50); color: var(--mint); display: grid; place-items: center; }
.success-ic .icon { width: 36px; height: 36px; }
/* Toast */
.toasts { position: fixed; z-index: 200; inset-inline: 0; bottom: calc(84px + var(--safe-b)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 440px;
  animation: up .2s ease;
}
.toast.error { background: var(--red); }
/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; inset-inline-end: 16px; background: #fff; }
/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.03em; }
.logo svg { width: 30px; height: 22px; color: var(--brand); }
.st-active { background: var(--brand-50); color: var(--brand); }
/* ---------- Maintenance: confirmed slot ---------- */
.slots-list li.chosen { outline: 1.5px solid var(--mint); background: var(--mint-50); }
.slot-chosen { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: auto; font-size: 12px; font-weight: 700; color: var(--mint); }
.slot-chosen .icon-sm { width: 13px; height: 13px; }
.slot-roomz { display: inline-flex; align-items: center; margin-inline-start: auto; padding: 1px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.slot-roomz + .slot-chosen { margin-inline-start: 6px; }
/* ============================================================
   Motion: loading, saving, page changes, sheets, panels.
   Everything here is switched off for people who ask their
   device for reduced motion (last block).
   ============================================================ */
/* First load: three dots until the page has its data */
.boot { min-height: 70vh; display: flex; align-items: center; justify-content: center; gap: 8px; }
.boot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); opacity: .25; animation: bootDot 1s var(--ease-out) infinite; }
.boot-dot:nth-child(2) { animation-delay: .15s; }
.boot-dot:nth-child(3) { animation-delay: .3s; }
@keyframes bootDot { 0%, 100% { opacity: .25; transform: translateY(0) scale(.9); } 40% { opacity: 1; transform: translateY(-6px) scale(1); }; }
/* Saving: the pressed button shows a spinner; a thin bar runs along the top */
.is-busy { position: relative; pointer-events: none; color: transparent !important; }
.is-busy > * { visibility: hidden; }
.is-busy::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: var(--busy-c, #fff) var(--busy-c, #fff) transparent transparent;
  animation: spin .7s linear infinite; visibility: visible;
}
.btn-ghost.is-busy, .btn-danger-soft.is-busy, .btn-wa-soft.is-busy, .icon-btn.is-busy { --busy-c: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); }; }
html.is-saving body::before {
  content: ""; position: fixed; z-index: 400; top: 0; inset-inline: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 40% 100%; background-repeat: no-repeat;
  animation: saveBar 1s var(--ease-out) infinite;
}
@keyframes saveBar { from { background-position: -40% 0; } to { background-position: 140% 0; }; }
/* Buttons and cards respond to touch */
.btn { transition: background .15s, border-color .15s, box-shadow .2s, transform .12s var(--ease-out), opacity .15s; }
.btn:active:not([disabled]) { transform: scale(.97); }
.icon-btn { transition: background .15s, transform .12s var(--ease-out); }
.icon-btn:active { transform: scale(.92); }
/* Page changes: cross-fade (View Transitions where supported) … */
::view-transition-old(root) { animation: vtOut .16s ease-in both; }
::view-transition-new(root) { animation: vtIn .26s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; }; }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); }; }
/* … and the new page's content rises in, list items one after another */
@keyframes rise { from { opacity: 0; transform: translateY(10px); }; }
.nav-enter .o-main-in > *, .nav-enter .r-main > * { animation: rise .32s var(--ease-out) both; }
.nav-enter .o-main-in > :nth-child(2), .nav-enter .r-main > :nth-child(2) { animation-delay: .04s; }
.nav-enter .o-main-in > :nth-child(3), .nav-enter .r-main > :nth-child(3) { animation-delay: .08s; }
.nav-enter .o-main-in > :nth-child(n+4), .nav-enter .r-main > :nth-child(n+4) { animation-delay: .12s; }
.nav-enter :is(.tbl tbody tr, .tbl-cards > *, .req-card, .svc, .n-item, .o-tile, .m-tile) { animation: rise .34s var(--ease-out) both; }
.nav-enter :is(.tbl tbody tr, .tbl-cards > *, .req-card, .svc, .n-item, .o-tile, .m-tile):nth-child(2) { animation-delay: .03s; }
.nav-enter :is(.tbl tbody tr, .tbl-cards > *, .req-card, .svc, .n-item, .o-tile, .m-tile):nth-child(3) { animation-delay: .06s; }
.nav-enter :is(.tbl tbody tr, .tbl-cards > *, .req-card, .svc, .n-item, .o-tile, .m-tile):nth-child(4) { animation-delay: .09s; }
.nav-enter :is(.tbl tbody tr, .tbl-cards > *, .req-card, .svc, .n-item, .o-tile, .m-tile):nth-child(5) { animation-delay: .12s; }
.nav-enter :is(.tbl tbody tr, .tbl-cards > *, .req-card, .svc, .n-item, .o-tile, .m-tile):nth-child(n+6) { animation-delay: .15s; }
/* Sheets close the way they opened */
.overlay.closing { animation: fadeOut .18s ease forwards; pointer-events: none; }
.overlay.closing .sheet { animation: down .18s ease-in forwards; }
@keyframes fadeOut { to { opacity: 0; }; }
@keyframes down { to { transform: translateY(24px); opacity: 0; }; }
@media (min-width: 640px) {
  .sheet { animation: pop .24s var(--ease-spring); }
  .overlay.closing .sheet { animation: popOut .16s ease-in forwards; }
}
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: 0; }; }
@keyframes popOut { to { transform: scale(.97); opacity: 0; }; }
/* Toasts slide away */
.toast { transition: opacity .25s, transform .25s var(--ease-out); }
.toast.leaving { opacity: 0; transform: translateY(10px); }
/* Open/close details (Change visit time, Suggest another time) */
details[open] > :not(summary) { animation: rise .22s var(--ease-out) both; }
summary .icon { transition: transform .2s var(--ease-out); }
details[open] > summary .icon { transform: rotate(45deg); }
/* Status badges settle in when they change */
[data-flash] .status { animation: pop .35s var(--ease-spring) both; animation-delay: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .is-busy::after, .boot-dot { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
.st-reactivated { background: var(--peri-50); color: #4B53D6; }

/* Maintenance form: service picker (first 6 + More services with search) */
.opt-card .oc-ic { flex: none; } /* keep the icon square when the name wraps */
.opt-card[hidden] { display: none; }
.svc-more { margin-top: 10px; }
.svc-find { position: relative; margin-bottom: 10px; }
.svc-find .icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.svc-find .input { padding-inline-start: 36px; }
.svc-none { margin-top: 8px; }

/* Stars (ratings) */
.stars { display: inline-flex; gap: 1px; color: #D8D9E0; font-size: 15px; letter-spacing: 0; line-height: 1; }
.stars i { font-style: normal; }
.stars i.on { color: #F2A900; }
.rt-c { margin-top: 4px; font-size: 13px; color: var(--ink-2); }

/* Renter request page: where it is */
.tracker { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.tracker li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; }
.tracker li:not(:last-child)::after { content: ""; position: absolute; top: 14px; inset-inline-start: calc(50% + 18px); width: calc(100% - 36px + 6px); height: 2px; background: var(--line-2); }
.tracker li.done:not(:last-child)::after { background: var(--mint); }
.tr-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--chip); color: var(--muted); }
.tracker li.done .tr-dot { background: var(--mint); color: #fff; }
.tracker li.now .tr-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.tracker li.bad .tr-dot { background: var(--red); color: #fff; }
.tr-x { display: grid; gap: 1px; }
.tr-x b { font-size: 12.5px; line-height: 1.25; }
.tracker li.todo .tr-x b { color: var(--muted); font-weight: 600; }
.tr-x small { font-size: 11.5px; color: var(--muted); }
/* Rate the visit */
.rate-card { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: var(--r); background: var(--yellow-50); text-align: center; }
.rate-card .muted { font-size: 13px; }
.rate-stars { display: flex; justify-content: center; gap: 6px; direction: ltr; }
.rate-stars button { width: 44px; height: 44px; border: 0; background: none; font-size: 32px; line-height: 1; color: #D8D9E0; cursor: pointer; transition: transform .12s; }
.rate-stars button.on { color: #F2A900; }
.rate-stars button:active { transform: scale(.9); }
