/* Shared visual system. Keep navigation, content and workflow behavior intact. */
@font-face { font-family: 'Pstay Sans'; src: url('/fonts/be-vietnam-pro-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pstay Sans'; src: url('/fonts/be-vietnam-pro-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pstay Sans'; src: url('/fonts/be-vietnam-pro-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pstay Sans'; src: url('/fonts/be-vietnam-pro-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root, body.ws-mode, body.ops-user:has(#tab-account:not([hidden])) {
  --sans: 'Pstay Sans', sans-serif;
  --ink: #243e50; --text: #4b606c; --muted: #697b85;
  --accent: #2474b5; --accent-dark: #1c6095; --accent-soft: #edf5fa;
  --bg: #faf9f6; --sand: #f1f3f0; --line: #e4e9e9;
  --surface-shadow: 0 4px 24px #243e5007, 0 1px 3px #243e5004;
}
body { line-height: 1.65; }
body.ws-mode, body.ops-user:has(#tab-account:not([hidden])) { background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4 { letter-spacing: -.035em; line-height: 1.35; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  border-color: #dce3e5; border-radius: 12px; background-color: #fcfdfd;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
input:focus, select:focus, textarea:focus { background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px #2474b512; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.form label { color: var(--text); line-height: 1.5; }
.btn { font-weight: 500; text-transform: none; letter-spacing: 0; box-shadow: 0 3px 8px #2474b51a; }
.btn.ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--accent-soft); }
.section-title { letter-spacing: -.045em; font-weight: 500; }
.panel, .dash, .login-split { box-shadow: var(--surface-shadow); border: 1px solid #e9edec; }
.card, .stat { background: #f4f6f4; }
.room { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--surface-shadow); }
.room .img { border-radius: 0; }
.room:hover .img { transform: none; }
.room .body { padding: 14px 16px 16px; }
.searchbar { box-shadow: 0 12px 40px #193e5624; }
.searchbar .sb-field :is(input,select) { background: transparent; border-radius: 0; }
.login-media { background: #edf4f6; }
.login-media img { filter: none; }
.plan { border: 0; box-shadow: var(--surface-shadow); }
.plan.featured { background: #edf5fa; box-shadow: inset 0 0 0 1px #d2e4ef; }
.plan .price { font-weight: 500; }
.plan h3 { letter-spacing: .05em; font-weight: 500; }
dialog { box-shadow: 0 24px 80px #193e5633; max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog::backdrop { background: #193e5666; }
.table-wrap { background: #fff; border-color: var(--line); }
th { background: #f3f6f6; font-weight: 500; }
td { border-bottom-color: #edf0ef; }

/* Workspace: quiet surfaces, generous type, and one clear accent per screen. */
body.ops-user #accountView :is(button,input,select,textarea) { font-family: var(--sans); }
body.ops-user #accountView :is(h1,h2,h3,b,strong) { letter-spacing: -.025em; }
body.ops-user #accountView .m-title h1 { font-size: 30px; font-weight: 500; }
body.ops-user #accountView .m-greet h1 { font-size: 28px; font-weight: 500; line-height: 1.4; }
body.ops-user #accountView .m-greet small, body.ops-user #accountView .m-sec small { letter-spacing: .04em; font-weight: 500; }
body.ops-user #accountView .m-logo { background: #e8f1f6; color: var(--accent); border-radius: 16px; }
body.ops-user #accountView .m-bell { border: 0; box-shadow: var(--surface-shadow); border-radius: 50%; }
body.ops-user #accountView .m-revenue { background: #193e56; color: #fff; border: 0; border-radius: 24px; padding: 28px; box-shadow: 0 8px 24px #193e5612; }
body.ops-user #accountView .m-revenue::after { display: none; }
body.ops-user #accountView .m-revenue :is(small,.m-sub) { color: #d5e4ed; opacity: 1; }
body.ops-user #accountView .m-revenue strong { font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -.045em; }
body.ops-user #accountView .m-stats { gap: 12px; }
body.ops-user #accountView .m-stats a { border: 0; border-radius: 20px; padding: 20px 16px; box-shadow: var(--surface-shadow); }
body.ops-user #accountView .m-stats b { font-size: 28px; font-weight: 500; }
body.ops-user #accountView .m-sec h2 { font-size: 20px; font-weight: 500; }
body.ops-user #accountView .m-todo { border: 0; border-radius: 16px; padding: 16px; box-shadow: var(--surface-shadow); }
body.ops-user #accountView .m-todo.unread { background: #edf5fa; }
body.ops-user #accountView .m-building { border: 0; border-radius: 20px; padding: 20px; box-shadow: var(--surface-shadow); gap: 16px; }
body.ops-user #accountView .m-building:hover { box-shadow: 0 6px 28px #243e5010; background: #fdfefe; }
body.ops-user #accountView .m-thumb { width: 80px; height: 88px; border-radius: 14px; background-color: #e8f0f3; color: #58798b; }
body.ops-user #accountView .m-thumb small { background: #e2ebef; color: #466577; padding: 4px; }
body.ops-user #accountView .m-binfo > b { font-weight: 500; }
body.ops-user #accountView .m-bmeta { font-size: 12px; gap: 6px 10px; }
body.ops-user #accountView .m-bmeta em { border-radius: 999px; padding: 4px 9px; }
body.ops-user #accountView .m-add { border: 1px dashed #c8d9e1; border-radius: 18px; padding: 18px; background: transparent; }
body.ops-user #accountView .m-empty { border: 0; background: #f0f3f1; border-radius: 18px; padding: 24px; font-size: 13px; }
body.ops-user #accountView .m-resume { border: 0; background: #eaf2f5; border-radius: 14px; }
body.ops-user #accountView .m-menu > * { border: 0; border-radius: 16px; box-shadow: var(--surface-shadow); padding: 18px; }
body.ops-user #accountView .m-avatar { background: #e7f0f5; color: var(--accent); font-weight: 500; }
body.ops-user #accountView .ws-page-heading .btn { border-radius: 12px; font-weight: 500; }
body.ops-user #accountView .ob-wizard { background: #fff; }
body.ops-user #accountView .ob-wizard .ob-card { border-top-color: #edf0ef; }
body.ops-user #accountView .ob-card h2 { font-weight: 500; font-size: 22px; }
body.ops-user #accountView .ob-step::before { height: 1px; }
body.ops-user #accountView .ob-dot { font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
body.ops-user #accountView .ob-step.current .ob-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
body.ops-user #accountView .ob-step.current .ob-label { font-weight: 500; }
body.ops-user #accountView .ob-foot { background: #fff; }
body.ops-user #accountView .m-page, body.ws-mode .ws-main > .dash { border: 0; box-shadow: none; }
body.ops-user #accountView .ob-unit { background: #2474b5; box-shadow: none; border-radius: 12px; }
body.ops-user #accountView .ob-unit.free { background: #e3f0f7; color: #215b80; }
body.ops-user #accountView .ob-empty { background: #eef1f0; color: #73848b; border-radius: 12px; }
body.ops-user #accountView .ob-row.sel { border-color: #a9cbdc; background: #f6fafc; }
body.ops-user #accountView .ob-cell.on { outline-color: var(--accent); }
body.ops-user #accountView .ob-key-unit, body.ops-user #accountView .ob-chip.on { background: var(--accent); }
body.ops-user #accountView .ob-key-free { background: #eef1f0; }
body.ops-user #accountView .ob-plus { background: none; color: var(--accent); }
body.ops-user #accountView .ob-unitrow { background: #f7f9f9; border: 0; border-radius: 14px; }

/* Operations styles are scoped to web; Host keeps its existing stylesheet. */
body .ops { font-family: var(--sans); }
body .ops-meta, body .ops-dlg label { color: var(--muted); line-height: 1.6; }
body #accountView .ops-item, body .ops-card { border: 0; background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--surface-shadow); }
body #accountView .ops-item .ops-item { background: #f5f8f8; box-shadow: none; border-radius: 12px; padding: 16px; }
body .ops-item h4 { color: var(--ink); font-weight: 500; font-size: 16px; }
body .ops-act { gap: 8px; margin-top: 14px; }
body .ops-btn { background: var(--accent); border-radius: 10px; padding: 10px 14px; min-height: 40px; font-weight: 500; }
body .ops-btn.ghost { color: var(--ink); background: #edf3f5; }
body .ops-btn.danger { background: #faeeee; color: #a12e29; }
body .ops-tag { background: #edf3f5; color: #486879; padding: 4px 9px; font-weight: 400; }
body .ops-empty { border: 0; border-radius: 16px; background: #f0f3f1; color: var(--muted); padding: 28px 16px; }
body .ops-tabs button { background: #fff; color: var(--text); border-color: var(--line); padding: 9px 14px; }
body .ops-tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
body .ops-tabs b { background: var(--accent); }
body .ops-dlg { font-family: var(--sans); color: var(--ink); padding: 28px; border-radius: 24px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 24px 80px #193e5633; }
body .ops-dlg::backdrop { background: #193e5666; }
body .ops-dlg h3 { font-weight: 500; margin-bottom: 20px; }
body .ops-dlg form { gap: 16px; }
body .ops-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body .ops-dlg label, body .ops-dlg input, body .ops-dlg select { min-width: 0; }
body .ops-dlg :is(input,textarea,select) { border: 1px solid #dce3e5; border-radius: 12px; padding: 12px; font-size: 16px; }
body .ops-lines td { border-bottom-color: var(--line); padding: 10px 4px; }

@media (min-width: 768px) {
  body.ws-mode { --header-h: 72px; }
  body.ws-mode .topbar { box-shadow: 0 1px 0 #e9edec; }
  body.ws-mode .ws { grid-template-columns: 220px minmax(0,1fr); gap: 40px; }
  body.ws-mode .ws-side { border-right: 0; background: transparent; padding: 28px 12px; }
  body.ws-mode .ws-nav { gap: 4px; }
  body.ws-mode .ws-nav a { padding: 11px 14px; border-radius: 12px; font-weight: 400; }
  body.ws-mode .ws-nav a.active { background: #e5eff5; color: #205f89; font-weight: 500; }
  body.ws-mode .ws-group { letter-spacing: .04em; font-weight: 500; margin-top: 24px; }
  body.ws-mode .ws-main { padding-top: 36px; }
  body.ws-mode .ws-main .ob-wizard { padding: 28px 32px; border: 0; border-radius: 24px; box-shadow: var(--surface-shadow); }
  body.ws-mode .ws-main .m-home { gap: 0 24px; }
}
@media (min-width: 768px) and (max-width: 1050px) {
  body.ws-mode .ws { grid-template-columns: 196px minmax(0,1fr); gap: 24px; }
  body.ops-user #accountView .m-stats a { padding: 16px 10px; }
}
@media (max-width: 767px) {
  body #accountView .dash:not(.ob-wizard) > .header-row { gap: 12px; margin-bottom: 16px; }
  body #accountView .dash:not(.ob-wizard) > .header-row .head-crumb { display: none; }
  body #accountView .dash:not(.ob-wizard) > .header-row h1 { font-size: 22px; line-height: 1.3; margin: 0; }
  body #accountView .dash:not(.ob-wizard) > .header-row .head-title .muted { font-size: 13px; overflow-wrap: anywhere; }
  body #accountView .dash:not(.ob-wizard) > .header-row .head-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; contain: none; margin: 0; padding: 0; gap: 6px; overflow: visible; }
  body #accountView .dash:not(.ob-wizard) > .header-row .head-actions .btn { min-height: 44px; padding: 8px 4px; gap: 4px; font-size: 12px; }
  body #accountView .dash:not(.ob-wizard) > .header-row .head-actions .ic { width: 15px; height: 15px; }
  body #accountView .dash:not(.ob-wizard) > .header-row .head-actions .ic-chev { display: none; }
  body.ops-user #accountView > .m-page { padding: 20px 16px; }
  body.ops-user #accountView .m-greet h1, body.ops-user #accountView .m-title h1 { font-size: 23px; }
  body.ops-user #accountView .m-revenue { padding: 24px; border-radius: 22px; }
  body.ops-user #accountView .m-stats { gap: 8px; }
  body.ops-user #accountView .m-stats a { padding: 14px 10px; border-radius: 16px; }
  body.ops-user #accountView .m-stats b { font-size: 25px; }
  body.ops-user #accountView .m-building { padding: 14px; gap: 12px; border-radius: 18px; }
  body.ops-user #accountView .m-thumb { width: 62px; height: 72px; }
  body.ops-user #accountView .m-todo { padding: 14px; }
  body.ops-user #accountView .ob-card h2 { font-size: 19px; }
  body.ops-user #accountView .ob-wizard { background: var(--bg); }
  body.ops-user #accountView .ob-wizard .ob-card { background: transparent; }
  body.ops-user #accountView .ob-foot { background: var(--bg); }
  body #accountView .ops-item { border-radius: 16px; padding: 16px; }
  body .ops-btn { min-height: 44px; }
  body .ops-dlg { padding: 20px; border-radius: 20px; }
  body .mobile-dock, body.ops-user .mobile-dock { height: 68px; width: min(420px, calc(100% - 24px)); padding: 6px; gap: 4px; border-radius: 999px; background: #fff; border: 0; box-shadow: 0 6px 28px #193e561a; }
  body .mobile-dock a, body.ops-user .mobile-dock a { display: flex; align-items: center; justify-content: center; flex: 1; height: 56px; border-radius: 999px; color: #22272d; }
  body .mobile-dock a .ic, body.ops-user .mobile-dock a .ic { width: 28px; height: 28px; stroke-width: 2; }
  body .mobile-dock a.active, body.ops-user .mobile-dock a.active { color: #1478ed; background: #e1efff; }
  body .mobile-dock .ic-homeFilled, body.ops-user .mobile-dock .ic-homeFilled { display: none; }
  body .mobile-dock a.active .ic-homeFilled, body.ops-user .mobile-dock a.active .ic-homeFilled { display: block; }
  body .mobile-dock a.active .ic-home, body.ops-user .mobile-dock a.active .ic-home { display: none; }
  body .mobile-dock .dock-badge { top: 2px; left: auto; right: calc(50% - 24px); box-shadow: 0 0 0 2px #fff; }
  .room { border-radius: 16px; }
  .room .body { padding: 12px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 380px) {
  body .ops-dlg .ops-row { grid-template-columns: minmax(0, 1fr); }
}

/* ===== D-106 — Owner/Admin workspace look (follows the overview mockup the user chose: Lumistay) =====
   One coherent layer on top of the older ones: Be Vietnam Pro, confident headings, light sidebar,
   deep-blue revenue card, tinted metric icons, building cards with a gradient thumbnail. */
body.ops-user:has(#tab-account:not([hidden])), body.ws-mode { --ink: #17293a; --text: #3f5161; --muted: #6b7c8a; --line: #e4eaf0; --bg: #f5f7fa; --accent: #2474b5; --accent-soft: #e9f2fb; background: var(--bg); color: var(--text); }
body.ops-user #accountView :is(h1, h2, h3) { color: var(--ink); letter-spacing: -.01em; }
body.ops-user #accountView .m-greet small { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
body.ops-user #accountView .m-greet h1 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 2px 0 0; }
body.ops-user #accountView .m-logo { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #2f86cc, #193e56); color: #fff; box-shadow: 0 6px 16px #193e5633; }
body.ops-user #accountView .m-bell { width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px #17293a0a; }
/* revenue: the hero card */
body.ops-user #accountView .m-revenue { position: relative; overflow: hidden; border: 0; border-radius: 24px; padding: 26px 26px 24px; color: #fff;
  background: linear-gradient(140deg, #183a54 0%, #1f5277 55%, #2a6ea3 100%); box-shadow: 0 16px 34px #193e5633; }
body.ops-user #accountView .m-revenue::before { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; opacity: .14;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 34px); mask-image: linear-gradient(transparent, #000); }
body.ops-user #accountView .m-revenue::after { content: ""; display: block; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; border: 1px solid #ffffff40; }
body.ops-user #accountView .m-revenue small { color: #cfe0ec; font-size: 11px; font-weight: 600; letter-spacing: .12em; opacity: 1; }
body.ops-user #accountView .m-revenue strong { display: block; font-size: clamp(34px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.02em; margin: 10px 0 12px; color: #fff; font-variant-numeric: tabular-nums; }
body.ops-user #accountView .m-revenue .m-sub { color: #dbe8f1; font-size: 13px; }
body.ops-user #accountView .m-revenue .m-sub em { color: #fff; background: #ffffff26; }
/* three metrics */
body.ops-user #accountView .m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.ops-user #accountView .m-stats a { display: grid; align-content: start; gap: 4px; padding: 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px #17293a08; color: var(--ink); text-decoration: none; }
body.ops-user #accountView .m-stats b { font-size: 26px; font-weight: 700; margin-top: 10px; line-height: 1.1; }
body.ops-user #accountView .m-stats small { font-size: 13px; color: var(--muted); }
body.ops-user #accountView .m-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
body.ops-user #accountView .m-ic.blue { background: #e4f0fb; color: #2474b5; }
body.ops-user #accountView .m-ic.green { background: #e2f4ea; color: #2f7a3f; }
body.ops-user #accountView .m-ic.orange { background: #fdeadf; color: #c2602b; }
/* section headers */
body.ops-user #accountView .m-sec { display: flex; justify-content: space-between; align-items: flex-end; margin: 26px 0 12px; }
body.ops-user #accountView .m-sec small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
body.ops-user #accountView .m-sec h2 { font-size: 20px; font-weight: 700; margin: 2px 0 0; }
body.ops-user #accountView .m-sec a { font-size: 14px; font-weight: 600; color: var(--accent); }
body.ops-user #accountView .m-count { min-width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
/* lists: to-do, inbox, buildings, account menu */
body.ops-user #accountView .m-list { display: grid; gap: 10px; }
body.ops-user #accountView :is(.m-todo, .m-building, .m-menu > *) { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px #17293a08; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
body.ops-user #accountView :is(.m-todo, .m-building, .m-menu > *):hover { border-color: #b9d6ee; box-shadow: 0 6px 20px #17293a12; }
body.ops-user #accountView .m-todo b, body.ops-user #accountView .m-binfo > b { font-size: 15px; font-weight: 600; color: var(--ink); }
body.ops-user #accountView .m-todo small, body.ops-user #accountView .m-binfo > .muted { font-size: 13px; color: var(--muted); }
body.ops-user #accountView .m-thumb { position: relative; width: 84px; height: 84px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background-color: #22557a; background-image: linear-gradient(140deg, #22557a, #2f86cc); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px #ffffff1f; }
body.ops-user #accountView .m-thumb .ic { width: 30px; height: 30px; opacity: .92; }
body.ops-user #accountView .m-binfo { flex: 1; min-width: 0; display: grid; gap: 4px; }
body.ops-user #accountView .m-bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
body.ops-user #accountView .m-unit-count b { color: var(--ink); font-weight: 700; }
body.ops-user #accountView .m-bmeta em { font-style: normal; font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
body.ops-user #accountView .m-bmeta em.vacant { background: #e2f4ea; color: #2f7a3f; }
body.ops-user #accountView .m-bmeta em.full { background: #eef2f5; color: var(--muted); }
body.ops-user #accountView .m-add { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px dashed #b9cfdf; background: transparent; color: var(--ink); box-shadow: none; }
body.ops-user #accountView .m-add > span:first-child { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
body.ops-user #accountView .m-add b { font-weight: 600; }
body.ops-user #accountView .m-empty { padding: 18px; border-radius: 18px; background: #fff; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
body.ops-user #accountView .m-title h1 { font-size: 26px; font-weight: 700; }
@media (min-width: 768px) {
  /* light sidebar, same blue pill as the mobile dock */
  body.ws-mode .ws-side { background: #fff; border-right: 1px solid var(--line); padding: 24px 14px; min-height: calc(100vh - var(--header-h)); color: var(--text); }
  body.ws-mode .ws-nav { gap: 2px; }
  body.ws-mode .ws-nav a { color: var(--text); padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; gap: 12px; }
  body.ws-mode .ws-nav a .ic { width: 19px; height: 19px; color: var(--muted); }
  body.ws-mode .ws-nav a:hover { background: #f2f6fa; color: var(--ink); }
  body.ws-mode .ws-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: none; }
  body.ws-mode .ws-nav a.active .ic { color: var(--accent); }
  body.ws-mode .ws-group { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; margin: 18px 12px 6px; }
  body.ws-mode .ws-sep { background: var(--line); }
  body.ws-mode .ws-main { padding: 28px 8px 40px; }
  body.ws-mode .ws-main .m-home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 24px; row-gap: 0; align-items: stretch; }
  body.ws-mode .ws-main .m-home > .m-greet { grid-column: 1 / -1; margin-bottom: 18px; }
  body.ws-mode .ws-main .m-home > .m-revenue { grid-column: 1; }
  body.ws-mode .ws-main .m-home > .m-stats { grid-column: 2; }
  body.ws-mode .ws-main .m-home > .m-stats a { align-content: space-between; }
  body.ws-mode .ws-main .m-home > :is(.m-todo-list, .m-bld-list, .m-todo-sec, .m-bld-sec) { align-self: start; }
}
@media (max-width: 767px) {
  body.ops-user #accountView .m-greet h1 { font-size: 21px; }
  body.ops-user #accountView .m-revenue { padding: 22px; border-radius: 22px; }
  body.ops-user #accountView .m-stats { gap: 8px; margin-top: 12px; }
  body.ops-user #accountView .m-stats a { padding: 14px 12px; border-radius: 18px; }
  body.ops-user #accountView .m-stats b { font-size: 23px; }
  body.ops-user #accountView .m-thumb { width: 68px; height: 68px; border-radius: 14px; }
}

/* ===== D-107 — operations lists as structured cards (tours, tickets, contracts, invoices, requests, commissions) ===== */
body.ops-user #accountView .m-title { margin-bottom: 20px; }
body.ops-user #accountView .m-title h1 { margin: 0; }
body .ops .ops-list { display: grid; gap: 12px; }
body .ops .ops-item.oc { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px #17293a08; }
body .ops .oc-lead { flex: none; }
body .ops .oc-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #1f5277; background: linear-gradient(135deg, #e3f0fb, #cfe3f5); }
body .ops .oc-date { width: 56px; padding: 8px 0 7px; border-radius: 14px; display: grid; justify-items: center; line-height: 1.05; background: linear-gradient(160deg, #1f5277, #2f86cc); color: #fff; }
body .ops .oc-date b { font-size: 22px; font-weight: 700; }
body .ops .oc-date small { font-size: 11px; opacity: .85; }
body .ops .oc-date em { font-style: normal; font-size: 11px; font-weight: 600; margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: #ffffff26; }
body .ops .oc-body { flex: 1; min-width: 0; }
body .ops .oc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body .ops .oc-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
body .ops .oc-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
body .ops .oc-code { font-variant-numeric: tabular-nums; color: var(--text); }
body .ops .oc-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
body .ops .ops-tag { margin: 0; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; border: 0; }
body .ops .ops-tag.t-ok { background: #e2f4ea; color: #23703a; }
body .ops .ops-tag.t-warn { background: #fff3d9; color: #9a5b00; }
body .ops .ops-tag.t-bad { background: #fde6e4; color: #b3261e; }
body .ops .ops-tag.t-info { background: #e4f0fb; color: #1f62a0; }
body .ops .ops-tag.t-muted { background: #eef2f5; color: #6b7c8a; }
body .ops .oc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #eef2f5; }
body .ops .oc-facts div { min-width: 0; }
body .ops .oc-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
body .ops .oc-facts dd { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
body .ops .oc-facts dd small { color: var(--muted); font-size: 12px; }
body .ops .oc-due { color: #b3261e; }
body .ops .oc-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
body .ops .oc-desc { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #f6f8fa; color: var(--text); font-size: 14px; }
body .ops .ops-warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff6e6; color: #8a5300; font-size: 13.5px; }
body .ops .oc-act { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
body .ops .ops-lines { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13.5px; }
body .ops .ops-lines td { padding: 7px 0; border-top: 1px solid #eef2f5; color: var(--text); }
body .ops .ops-lines td:nth-child(2) { color: var(--muted); text-align: center; width: 60px; }
body .ops .ops-empty { padding: 28px; border-radius: 18px; background: #fff; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
@media (max-width: 767px) {
  body .ops .ops-item.oc { padding: 14px; gap: 12px; border-radius: 16px; }
  body .ops .oc-avatar { width: 40px; height: 40px; font-size: 14px; }
  body .ops .oc-date { width: 50px; }
  body .ops .oc-top { flex-direction: column; gap: 6px; }
  body .ops .oc-tags { justify-content: flex-start; }
  body .ops .oc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  /* section chips on phones: small, single row, no scrollbar */
  body.ops-user #accountView .ops-tabs { gap: 6px; padding: 0 0 4px; margin-bottom: 14px; scrollbar-width: none; }
  body.ops-user #accountView .ops-tabs::-webkit-scrollbar { display: none; }
  body.ops-user #accountView .ops-tabs button { padding: 7px 12px; font-size: 13px; border-radius: 999px; }
  body.ops-user #accountView .m-title h1 { font-size: 22px; }
}
body .ops .oc-code { white-space: nowrap; }
body .ops .oc-facts dd { overflow-wrap: break-word; }

/* ===== D-108 — Tài khoản: entries expand in place (no popup, no page jump) ===== */
body #accountView .m-acc { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px #17293a08; overflow: hidden; }
body #accountView .m-acc > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; color: var(--ink); font-weight: 500; }
body #accountView .m-acc > summary::-webkit-details-marker { display: none; }
body #accountView .m-acc > summary span { flex: 1; }
body #accountView .m-acc > summary .m-go { transition: transform .2s; }
body #accountView .m-acc[open] > summary { border-bottom: 1px solid #eef2f5; }
body #accountView .m-acc[open] > summary .m-go { transform: rotate(90deg); color: var(--accent); }
body #accountView .m-acc-body { padding: 14px 16px 18px; }
body #accountView .m-acc-dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
body #accountView .m-acc-dl dt { color: var(--muted); }
body #accountView .m-acc-dl dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
body #accountView .m-acc-note { margin: 12px 0 0; font-size: 13px; }
body #accountView .m-acc-guide { font-size: 14px; }
body #accountView .m-acc-guide h2 { display: none; }
body #accountView .m-acc-guide h3 { font-size: 15px; margin: 14px 0 6px; }
body #accountView .m-acc-guide :is(ol, ul) { padding-left: 20px; margin: 0; }
body #accountView .m-acc-rooms { display: grid; gap: 10px; }
body #accountView .m-acc-room { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
body #accountView .m-acc-room img, body #accountView .m-acc-noimg { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
body #accountView .m-acc-noimg { display: grid; place-items: center; background: linear-gradient(140deg, #22557a, #2f86cc); color: #fff; }
body #accountView .m-acc-room span { display: grid; gap: 2px; min-width: 0; }
body #accountView .m-acc-room b { font-size: 14px; font-weight: 600; }
body #accountView .m-acc-room small { font-size: 12px; color: var(--muted); }
body #accountView .m-acc-room em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); }
body #accountView .m-acc-ops .ops-tabs { display: flex !important; }
body #accountView .m-acc-admin .dash { padding: 0; box-shadow: none; background: none; }
body #accountView .m-menu > details.m-acc, body.ops-user #accountView .m-menu > details.m-acc { display: block; padding: 0; gap: 0; }

/* D-110 viewing-hour presets: tap to select, selected = blue pill */
body .ob-sub-label { font-size: 14px; color: var(--text); margin: 12px 0 6px; }
body .ob-times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
body .ob-time { position: relative; cursor: pointer; }
body .ob-time input { position: absolute; opacity: 0; pointer-events: none; }
body .ob-time span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
body .ob-time input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
body .ob-time input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* toast: readable when the message wraps */
#toast { border-radius: 16px; max-width: min(420px, calc(100vw - 32px)); line-height: 1.45; text-align: left; }

/* Fixed-cost rows on phones: name on its own line, amount + remove below (no squeezed column) */
@media (max-width: 767px) {
  body #accountView .ob-wizard .ob-cost, body #accountView .ob-cost { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
  body #accountView .ob-cost > label:first-child { grid-column: 1 / -1; }
  body #accountView .ob-cost > label:nth-child(2) { grid-column: 1; }
  body #accountView .ob-cost > .btn { grid-column: 2; margin-bottom: 4px; }
}
/* room-type cards: viewing hours line + two actions */
body .ob-hours { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); margin-top: 4px; }
body .ob-hours .ic { width: 15px; height: 15px; color: var(--muted); }
body .ob-room-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) { body .ob-room-act { grid-column: 1 / -1; justify-content: stretch; } body .ob-room-act .btn { flex: 1; } }
@media (max-width: 767px) { body #accountView .ob-cost > label:nth-child(2) > * { width: 100%; max-width: none; } }

/* Building cards (D-112): setup gap tag + show/hide switch beside each card */
body.ops-user #accountView .m-bwrap { position: relative; }
body.ops-user #accountView .m-bwrap > .m-building { width: 100%; }
body.ops-user #accountView .m-bwrap:has(> .m-vis) > .m-building { padding-right: 92px; }
body.ops-user #accountView .m-bmeta em.todo { background: #fff3e0; color: #a35a00; white-space: normal; border-radius: 10px; line-height: 1.4; }
body.ops-user #accountView .m-vis { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: #f3f5f7; color: var(--muted); font: 600 12px/1 inherit; cursor: pointer; }
body.ops-user #accountView .m-vis i { width: 26px; height: 16px; border-radius: 999px; background: #c9d1d9; position: relative; transition: background .15s; }
body.ops-user #accountView .m-vis i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
body.ops-user #accountView .m-vis.on { background: #e2f4ea; border-color: #bfe3cc; color: #2f7a3f; }
body.ops-user #accountView .m-vis.on i { background: #2f9a52; }
body.ops-user #accountView .m-vis.on i::after { left: 12px; }
body.ops-user #accountView .m-vis:disabled { opacity: .6; }
body.ops-user #accountView .m-bwrap .m-go { align-self: flex-end; }
body.ops-user #accountView .m-draft { border-style: dashed; }

/* Compact "+" add button in section headings (owner buildings / admin properties) */
.btn.ws-add { flex: none; padding: 0; width: 44px; height: 44px; min-height: 44px; border-radius: 12px; display: inline-grid; place-items: center; }
.btn.ws-add .ic { width: 22px; height: 22px; }
body.ops-user #accountView .ws-page-heading .btn.ws-add { padding: 0; width: 44px; height: 44px; }

/* Phone cards: reserve the full width for details instead of narrow side columns. */
@media (max-width: 767px) {
  body.ops-user #accountView .ws-page-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  body.ops-user #accountView .ws-page-heading .btn { align-self: flex-start; font-size: 14px; }
  /* keep the "+" add button on the same row as the title, pinned right */
  body.ops-user #accountView .ws-page-heading:has(.ws-add) { flex-direction: row; align-items: center; }
  body.ops-user #accountView .ws-page-heading .btn.ws-add { align-self: center; }
  body.ops-user #accountView .m-bwrap { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
  body.ops-user #accountView .m-bwrap > .m-building,
  body.ops-user #accountView .m-bwrap:has(> .m-vis) > .m-building {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) 18px; align-items: start;
    padding: 14px; gap: 12px; border: 0; border-radius: 0; box-shadow: none;
  }
  body.ops-user #accountView .m-bwrap .m-thumb { width: 52px; height: 52px; border-radius: 12px; }
  body.ops-user #accountView .m-bwrap .m-binfo > b { white-space: normal; overflow-wrap: break-word; }
  body.ops-user #accountView .m-bwrap .m-binfo > .muted { align-items: flex-start; overflow: visible; }
  body.ops-user #accountView .m-bwrap .m-binfo > .muted .ic { margin-top: 3px; }
  body.ops-user #accountView .m-bwrap .m-bmeta { grid-column: 1 / -1; }
  body.ops-user #accountView .m-bwrap .m-binfo { display: contents; }
  body.ops-user #accountView .m-bwrap .m-binfo > b { grid-column: 2; grid-row: 1; }
  body.ops-user #accountView .m-bwrap .m-binfo > .muted { grid-column: 2; grid-row: 2; margin: 0; }
  body.ops-user #accountView .m-bwrap .m-thumb { grid-row: 1 / 3; }
  body.ops-user #accountView .m-bwrap .m-go { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  body.ops-user #accountView .m-bwrap .m-vis { position: static; display: flex; width: fit-content; margin: 0 14px 12px auto; min-height: 44px; font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1; }
  body .ops .ops-item.oc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  body .ops .oc-body { display: contents; }
  body .ops .oc-top { grid-column: 2; min-width: 0; }
  body .ops .oc-body > :not(.oc-top) { grid-column: 1 / -1; margin-top: 0; min-width: 0; }
  body .ops .oc-head { min-width: 0; }
  body .ops :is(.oc-title, .oc-sub, .oc-code) { overflow-wrap: anywhere; white-space: normal; }
  body .ops .oc-act .ops-btn { flex: 1 1 100px; min-height: 44px; white-space: nowrap; }
}
@media (max-width: 380px) {
  body .ops .oc-facts { grid-template-columns: minmax(0, 1fr); }
}

/* Phone dock sized like the Facebook app bar (D-114): ~52px tall, 24px icons, compact active pill */
@media (max-width: 767px) {
  :root { --mobile-dock-space: calc(68px + env(safe-area-inset-bottom)); }
  body .mobile-dock, body.ops-user .mobile-dock { height: 52px; bottom: calc(6px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 420px; padding: 4px 8px; gap: 0; justify-content: space-around; box-shadow: 0 4px 18px #193e5614; }
  body .mobile-dock a, body.ops-user .mobile-dock a { flex: 0 0 56px; height: 40px; border-radius: 999px; }
  body .mobile-dock a .ic, body.ops-user .mobile-dock a .ic { width: 24px; height: 24px; }
  body .mobile-dock .dock-badge { top: 0; right: calc(50% - 20px); }
}
/* room type card: viewing hours read as one line of text, wrapping normally */
body .ob-hours, body #accountView .ob-hours { display: block; font-size: 13px; line-height: 1.45; }
body .ob-hours .ic { display: inline-block; vertical-align: -2px; margin-right: 4px; }
/* step 4: bulk add folded under the floor plan */
body .ob-quick { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
body .ob-quick > summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
body .ob-quick > summary::-webkit-details-marker { display: none; }
body .ob-quick > summary .ic { width: 16px; height: 16px; }
body .ob-quick[open] > summary { margin-bottom: 10px; }
/* room type card: photo top-aligned, secondary lines at body-small size */
body #accountView .ob-room { align-items: start; }
body #accountView .ob-room { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
body #accountView .ob-room > img, body #accountView .ob-room > .ob-noimg { align-self: start; width: 64px; height: 64px; }
body #accountView .ob-room > div:not(.ob-room-act) { font-size: 15px; line-height: 1.4; }
body #accountView .ob-room > div:not(.ob-room-act) .muted { font-size: 13.5px; }
body #accountView .ob-room .ob-hours, body #accountView .ob-room .ob-ok, body #accountView .ob-room .ob-warn { font-size: 13px; margin-top: 4px; }
/* phone notifications card (D-115) */
body .push-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; line-height: 1.45; }
body .push-card p { margin: 0 0 8px; }
body .push-card p:last-child { margin-bottom: 0; }
body .push-card .ic { width: 16px; height: 16px; vertical-align: -3px; color: #2f7a3f; }
body .push-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
body .m-acc-body .push-card { border: 0; padding: 0; margin: 0; background: none; }

/* Viewing calendar (D-116) */
body .ops .cal-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
body .ops .cal-nav { display: flex; align-items: center; gap: 6px; }
body .ops .cal-nav b { min-width: 118px; text-align: center; font-size: 16px; }
body .ops .cal-nav .ops-btn { min-width: 36px; }
body .ops .cal-filter { display: flex; gap: 8px; flex-wrap: wrap; }
body .ops .cal-filter select { min-width: 0; max-width: 220px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; }
body .ops .cal-sum { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
body .ops .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
body .ops .cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; }
body .ops .cal-d { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 92px; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: #f8fafc; font: inherit; text-align: left; cursor: pointer; color: var(--ink); overflow: hidden; }
body .ops .cal-d.empty { background: none; cursor: default; }
body .ops .cal-d.past { opacity: .62; }
body .ops .cal-d:hover { border-color: #b9d6ee; }
body .ops .cal-d.today b { color: #fff; background: var(--accent); border-radius: 999px; width: 24px; height: 24px; display: inline-grid; place-items: center; }
body .ops .cal-d.sel { border-color: var(--accent); background: #eef6ff; opacity: 1; }
body .ops .cal-d b { font-size: 13px; }
body .ops .cal-items { display: flex; flex-direction: column; gap: 2px; }
body .ops .cal-items i { font-style: normal; font-size: 11.5px; line-height: 1.3; padding: 1px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #e4f0fb; color: #1f62a0; }
body .ops .cal-items i.t-ok { background: #e2f4ea; color: #2f7a3f; }
body .ops .cal-items i.t-bad { background: #fde8e8; color: #b42318; }
body .ops .cal-items i.t-muted { background: #eef1f4; color: #8a94a0; text-decoration: line-through; }
body .ops .cal-items i.cal-more { background: none; color: var(--muted); }
body .ops .cal-n { display: none; }
body .ops .cal-day-h { margin: 16px 0 8px; font-size: 15px; }
@media (max-width: 767px) {
  body .ops .cal-bar { flex-direction: column; align-items: stretch; }
  body .ops .cal-nav { justify-content: space-between; }
  body .ops .cal-filter select { flex: 1; max-width: none; }
  body .ops .cal-grid { padding: 6px; gap: 2px; }
  body .ops .cal-d { min-height: 46px; padding: 4px 2px; align-items: center; background: none; }
  body .ops .cal-d b { font-size: 13px; }
  body .ops .cal-items { display: none; }
  body .ops .cal-n { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
}
@media (max-width: 380px) {
  body .ops .cal-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  body .ops .cal-nav b { text-align: center; white-space: nowrap; }
  body .ops .cal-nav [data-cal="today"] { grid-column: 1 / -1; white-space: nowrap; }
}

/* Bảng quản trị (D-123) */
body #accountView .subtabs .sub-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--bad, #c0392b); color: #fff; font-size: 11px; font-weight: 700; }
body #accountView .adm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
body #accountView .chips { display: flex; flex-wrap: wrap; gap: 6px; }
body #accountView .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
body #accountView .chip b { font-size: 12px; color: var(--muted); }
body #accountView .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
body #accountView .chip.on b { color: #dbeafe; }
body #accountView .adm-h { margin: 18px 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
body #accountView .adm-h:first-child { margin-top: 0; }
body #accountView .stat-link { font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); }
body #accountView .stat-link:hover { border-color: #b9d6ee; }
body #accountView .adm-prop { margin-bottom: 14px; }
body #accountView .adm-prop-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
body #accountView .adm-prop-head .muted { font-size: 13.5px; margin-top: 2px; }
@media (max-width: 767px) { body #accountView .head-actions { flex-wrap: wrap; max-width: 100%; min-width: 0; } body #accountView .head-actions > * { min-width: 0; } }

/* Meter photo reading (D-124) */
body .ops .ops-meters { display: grid; gap: 12px; }
body .ops .ops-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: end; }
body .ops .ops-meter .ops-snap { cursor: pointer; white-space: nowrap; margin-bottom: 2px; }
body .ops .ops-meter-msg { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.45; }
body .ops .ops-meter-msg:empty { display: none; }
body .ops .ops-meter-msg.warn { color: #9a5b00; }

/* Customer rental progress (D-125) */
body .journey { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
body .journey + .journey { margin-top: 12px; }
body .jr-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
body .jr-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; counter-reset: none; }
body .jr-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; line-height: 1.25; color: var(--muted); }
body .jr-steps li::before { content: ''; position: absolute; top: 13px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; background: var(--line); }
body .jr-steps li:first-child::before { display: none; }
body .jr-steps li.done::before, body .jr-steps li.cur::before { background: var(--accent); }
body .jr-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; font-style: normal; font-weight: 700; font-size: 12px; background: #eef2f5; color: var(--muted); }
body .jr-steps li.done i { background: var(--accent); color: #fff; }
body .jr-steps li.cur i { background: #fff; color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
body .jr-steps li.cur span { color: var(--ink); font-weight: 600; }
body .jr-now { background: #f5f9fd; border-radius: 12px; padding: 12px; }
body .jr-now p { margin: 4px 0 0; }
body .jr-now .actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
body .req-discount { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
body .req-discount > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
@media (max-width: 767px) { body .jr-steps li span { font-size: 10.5px; } body .jr-steps i { width: 24px; height: 24px; } body .jr-steps li::before { top: 12px; } }

/* Owner ticket review / documents open in place under the card (D-126) */
/* Tenant workspace: the apartment and support requests are the main content. */
body .customer-portal { display: grid; gap: 20px; color: var(--ink); }
body .customer-portal .portal-card { margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
body .customer-portal .portal-card > h3 { font-size: 18px; margin: 0 0 18px; }
body .customer-apartment + .customer-apartment { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
body .apartment-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
body .customer-portal .apartment-head h3 { font-size: 20px; margin: 0; line-height: 1.4; }
body .apartment-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
body .apartment-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 20px 0; }
body .apartment-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
body .apartment-facts dd { margin: 0; font-size: 16px; font-weight: 600; }
body .customer-portal :is(p, dd, h3, h4) { overflow-wrap: anywhere; }
body .customer-portal .actions { display: flex; flex-wrap: wrap; gap: 8px; }
body .customer-portal .btn, body .tenant-invoice .btn { min-height: 44px; font-size: 14px; padding: 10px 16px; }
body :is(.apartment-requests, .apartment-invoices) { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
body .customer-portal :is(.apartment-requests, .apartment-invoices) > h3 { font-size: 18px; margin: 0 0 12px; }
body .tenant-count { display: inline-grid; place-items: center; min-width: 24px; padding: 2px 6px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
body .tenant-request { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; margin-top: 10px; font-size: 15px; line-height: 1.5; }
body .tenant-request.pending { background: #f0f7fe; border-color: #c9dfef; }
body .tenant-request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
body .tenant-request .tenant-request-head h4 { font-size: 16px; line-height: 1.4; margin: 0; }
body .tenant-status { display: inline-flex; width: fit-content; align-items: center; padding: 5px 10px; border-radius: 999px; background: #edf1f4; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
body .tenant-status.pending { background: #dcecfb; color: #1f62a0; }
body .tenant-status.finished { background: #e2f4ea; color: #23703a; }
body .tenant-status.rejected { background: #fde6e4; color: #b3261e; }
body .tenant-request .tenant-date { font-size: 13px; color: var(--muted); margin: 5px 0 12px; }
body .tenant-request :is(.tenant-description, .tenant-detail) { margin: 8px 0 0; }
body .tenant-description { white-space: pre-line; }
body .tenant-followup { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
body .tenant-reply { margin-top: 14px; border-left: 3px solid var(--accent); padding: 8px 12px; background: #fff; border-radius: 0 8px 8px 0; }
body .tenant-reply b { font-size: 13px; }
body .tenant-reply p { margin: 4px 0 0; white-space: pre-line; }
body .tenant-invoice { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
body .tenant-invoice p { margin: 4px 0 8px; color: var(--muted); }
body .customer-history { margin-top: 16px; font-size: 14px; }
body .customer-history > summary, body .journey-progress > summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; color: var(--accent); }
body .journey-progress .jr-steps { margin-top: 12px; }
@media (max-width: 767px) {
  body .customer-portal { gap: 14px; }
  body .customer-portal .portal-card { padding: 16px; }
  body .customer-portal .apartment-head h3 { font-size: 18px; }
  body .apartment-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
  body .apartment-facts > div:first-child { grid-column: 1 / -1; }
  body .customer-portal .actions .btn { flex: 1 1 160px; }
  body .tenant-request { padding: 14px; }
  body .journey-progress .jr-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body .journey-progress .jr-steps li { flex-direction: row; gap: 10px; text-align: left; }
  body .journey-progress .jr-steps li span { font-size: 13px; }
  body .journey-progress .jr-steps li::before { display: none; }
}
body .ops .oc-panel { margin-top: 14px; padding: 14px; border-radius: 14px; background: #f5f9fd; border: 1px solid #dbe8f4; }
body .ops .oc-form { display: grid; gap: 10px; }
body .ops .oc-docs { display: grid; gap: 12px; }
body .ops .oc-docs figure { margin: 0; display: grid; gap: 8px; }
body .ops .oc-docs img { width: 100%; max-width: 560px; max-height: 70vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
body .ops .oc-docs figcaption { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Cross-role readability pass: compact summaries, readable records, mobile tables as cards. */
body #accountView .empty { padding: 18px 16px; font-size: 14px; }
body #accountView .portal-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
body #accountView .portal-card > h3 { font-size: 18px; margin-bottom: 14px; }
body #accountView .portal-row, body #accountView .portal-item { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
body #accountView .portal-card .btn { min-height: 44px; font-size: 14px; padding: 10px 14px; }
body #accountView .portal-item .actions:empty { display: none; }
body #accountView .portal-item .muted { font-size: 14px; }
body #accountView .m-todo b, body #accountView .m-todo small { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
body #accountView #mInbox .m-todo { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 8px 12px; }
body #accountView #mInbox .m-todo > .m-ic { grid-row: 1 / 3; }
body #accountView #mInbox .m-todo time { grid-column: 2; text-align: left; font-size: 12px; margin: 0; }
body #accountView #mInbox .m-todo small { font-size: 14px; margin-top: 4px; line-height: 1.45; }
body #accountView .subtabs button, body .ops .ops-tabs button { min-height: 44px; }
body .ops .ops-item:not(.oc) h4 { font-size: 16px; margin: 0 0 8px; line-height: 1.4; }
body .ops .ops-item:not(.oc) .ops-meta { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
body .ops .ops-item:not(.oc) .ops-act { margin-top: 12px; }
body .ops .ops-btn { min-height: 44px; }
body .ops .ops-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
body .ops .ops-card { min-height: 100px; padding: 16px; border: 1px solid var(--line); box-shadow: none; font-size: 14px; }
body .ops .ops-card strong { font-size: 24px; margin-bottom: 6px; }
body #accountView .status { white-space: normal; display: inline-flex; line-height: 1.4; }
@media (max-width: 767px) {
  body #accountView .stats, body .ops .ops-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 16px; }
  body #accountView .stat { min-width: 0; padding: 14px; border-radius: 14px; }
  body #accountView .stat b { font-size: clamp(18px, 5.5vw, 24px); line-height: 1.3; overflow-wrap: anywhere; }
  body #accountView .stat span { display: block; font-size: 13px; line-height: 1.4; margin-top: 6px; }
  body .ops .ops-card { padding: 14px; border-radius: 14px; }
  body #accountView .subtabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; gap: 6px; margin: 16px 0; scrollbar-width: none; }
  body #accountView .subtabs button { flex: none; padding: 8px 12px; font-size: 14px; }
  body #accountView .adm-bar > *, body #accountView .adm-bar .actions > * { min-width: 0; max-width: 100%; }
  body #accountView .adm-bar .actions { width: 100%; }
  body #accountView .adm-bar .actions select, body #accountView .adm-bar .actions .btn { flex: 1 1 180px; }
  body #accountView .responsive-table { border: 0; background: transparent; overflow: visible; }
  body #accountView .responsive-table table, body #accountView .responsive-table tbody { display: block; width: 100%; min-width: 0; }
  body #accountView .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body #accountView .responsive-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
  body #accountView .responsive-table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
  body #accountView .responsive-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
  body #accountView .responsive-table td[data-label=""]::before { display: none; }
  body #accountView .responsive-table td.actions, body #accountView .responsive-table td[data-label=""] { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  body #accountView .responsive-table td.actions::before { width: 100%; }
  body #accountView .responsive-table td.actions .btn { flex: 1 1 100px; min-height: 44px; }
  body #accountView .responsive-table :is(input:not([type=checkbox]), select) { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
  body #accountView .responsive-table .check { flex-wrap: wrap; }
  body #accountView .adm-prop { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  body #accountView .adm-prop .responsive-table tr { background: #f8fafc; padding: 12px; }
  body #accountView .portal-card { padding: 16px; }
  body #accountView .portal-row > *, body #accountView .portal-item > * { min-width: 0; max-width: 100%; }
  body #accountView .portal-row .actions { width: 100%; }
  body #accountView .portal-row .btn { flex: 1 1 120px; }
  body #accountView .ops-item:not(.oc) .ops-act .ops-btn { flex: 1 1 120px; }
  body #accountView .m-acc-dl { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  body #accountView .m-acc-dl dd { margin-bottom: 10px; }
}
@media (max-width: 359px) {
  body #accountView .responsive-table tr { grid-template-columns: minmax(0, 1fr); }
}
body #accountView .portal-record { padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
body #accountView .portal-record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
body #accountView .portal-record-head h4 { font-size: 16px; margin: 0; line-height: 1.4; }
body #accountView .portal-record-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
body #accountView .portal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; margin: 14px 0; }
body #accountView .portal-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
body #accountView .portal-facts dd { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
body #accountView .portal-facts .wide { grid-column: 1 / -1; }
body .ops .oc-head { min-width: 0; flex: 1; }
body .ops .oc-facts dt { font-size: 12px; }
body .ops .oc-facts dd { font-size: 15px; }
body .ops .catalog-room { box-shadow: none; background: #f8fafc; border: 1px solid var(--line); padding: 14px; }
body .ops .catalog-fees { margin-bottom: 14px; }
@media (max-width: 767px) {
  body #accountView .portal-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body #accountView .portal-record { padding: 14px; }
  body #accountView .portal-record .actions .btn { flex: 1 1 120px; }
  body #accountView :is(input, select, textarea), body .ops-dlg :is(input, select, textarea) { font-size: 16px; }
  body .ops .catalog-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  body #accountView .portal-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) {
  body #accountView .responsive-table th { white-space: normal; }
  body #accountView .responsive-table :is(th, td) { padding: 12px 10px; }
  body #accountView .responsive-table input[type=number] { min-width: 100px; width: 110px; }
}

/* Monthly billing checklist (D-127) */
body .ops .ops-bill { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 18px; }
body .ops .ops-bill-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
body .ops .ops-bill-bar b { font-size: 16px; min-width: 150px; text-align: center; }
body .ops .ops-bill-wrap { overflow-x: auto; margin-top: 10px; }
body .ops .ops-bill-t { width: 100%; border-collapse: collapse; font-size: 14px; }
body .ops .ops-bill-t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
body .ops .ops-bill-t td { padding: 10px 8px; border-bottom: 1px solid #eef2f5; vertical-align: top; }
body .ops .ops-bill-t td small { color: var(--muted); }
body .ops .ops-sub { margin: 4px 0 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 767px) {
  body .ops .ops-bill-t thead { display: none; }
  body .ops .ops-bill-t tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #eef2f5; }
  body .ops .ops-bill-t td { border: 0; padding: 0; }
  body .ops .ops-bill-t td:first-child, body .ops .ops-bill-t td:last-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body .ops .ops-bill-t td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
}

/* Role themes (D-129): Chủ nhà = Pstay blue, Admin = indigo, Môi giới = teal.
   ":not(#r):not(#o)" only raises specificity above the workspace colour rules that use :has(#tab-account …). */
body[data-role]:not(#r):not(#o) { --role: var(--accent); }
body[data-role="owner"]:not(#r):not(#o) { --role: #2474b5; --role-soft: #e9f2fb; }
body[data-role="admin"]:not(#r):not(#o) { --accent: #5b45c2; --accent-dark: #47349f; --accent-soft: #efecfb; --role: #5b45c2; --role-soft: #efecfb; --bg: #f6f5fc; }
body[data-role="broker"]:not(#r):not(#o) { --accent: #0f8a6c; --accent-dark: #0b6d55; --accent-soft: #e5f5ef; --role: #0f8a6c; --role-soft: #e5f5ef; --bg: #f3f9f6; }
body[data-role="admin"]:not(#r):not(#o), body[data-role="broker"]:not(#r):not(#o) { background: var(--bg); }
body[data-role] #topbar { box-shadow: inset 0 3px 0 var(--role); }
body .role-chip { align-self: center; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--role-soft, #e9f2fb); color: var(--role, #2474b5); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
body[data-role] .btn:not(.ghost):not(.danger):not(.sm.ghost), body[data-role] .ops .ops-btn:not(.ghost):not(.danger) { background: var(--accent); border-color: var(--accent); }
body[data-role] .mobile-dock a.active { color: var(--role) !important; background: var(--role-soft) !important; }
body[data-role] #wsSide a.active, body[data-role] #wsSide a[aria-current="page"] { color: var(--role); background: var(--role-soft); }
body[data-role] #wsSide a.active .ic, body[data-role] #wsSide a[aria-current="page"] .ic { color: var(--role); }
@media (max-width: 767px) { body .role-chip { margin-left: 6px; padding: 3px 8px; font-size: 11px; } }
body .role-chip { margin-right: auto; }
body[data-role] .subtabs button.active { background: var(--role); border-color: var(--role); color: #fff; }
/* Admin accounts & tokens on the Tổng quan page (D-130) */
body.ops-user #accountView .m-home .m-acc-sec, body.ops-user #accountView .m-home #homeAccounts { grid-column: 1 / -1; }
body.ops-user #accountView #homeAccounts { padding: 16px; overflow-x: auto; }

/* Room type amenities (D-131) */
body .ob-amen { display: grid; gap: 8px; }
body .ob-amen-g { display: grid; gap: 6px; }
body .ob-amen-g > span { font-size: 13px; color: var(--muted); font-weight: 600; }
body .amen-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
body .amen-chips span.amen { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #eef5fb; color: #1f5f93; font-weight: 600; }
body .amen-chips .ic { width: 15px; height: 15px; flex: none; }

/* Step 4 reference layout: keep workspace fonts and the wizard header unchanged. */
body.ops-user #accountView .ob-plan-step { --plan-accent: #1677ee; --plan-line: #dce8fa; }
body.ops-user #accountView .ob-plan-step .ob-card { padding-bottom: 0; }
body.ops-user #accountView .ob-plan-step .ob-layoutwrap { margin: 0; padding: 0; border: 0; }
body.ops-user #accountView .ob-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
body.ops-user #accountView .ob-plan-heading h2 { margin: 0 0 5px; }
body.ops-user #accountView .ob-plan-heading p { margin: 0; font-size: 14px; }
body.ops-user #accountView .ob-plan-step :is(.ob-card, .ob-foot) .btn { min-height: 40px; box-shadow: none; }
body.ops-user #accountView .ob-plan-step :is(.ob-card, .ob-foot) .btn.ghost { background: #fff; border: 1px solid var(--plan-line); }
body.ops-user #accountView .ob-plan-heading .ob-add-floor { color: var(--plan-accent); border-color: #8db8ff; flex-shrink: 0; padding: 8px 14px; }
body.ops-user #accountView .ob-plan-floors { display: grid; gap: 12px; }
body.ops-user #accountView .ob-plan-floor { display: flex; align-items: stretch; gap: 16px; padding: 16px; border: 1px solid var(--plan-line); border-radius: 12px; background: linear-gradient(105deg, #f5f9ff, #fcfdff); }
body.ops-user #accountView .ob-floor-menu { position: relative; flex: 0 0 155px; border-right: 1px solid var(--plan-line); padding-right: 16px; }
body.ops-user #accountView .ob-floor-menu summary { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 72px; cursor: pointer; list-style: none; }
body.ops-user #accountView .ob-floor-menu summary::-webkit-details-marker { display: none; }
body.ops-user #accountView .ob-floor-menu summary > .ic-building { width: 26px; height: 26px; flex-shrink: 0; }
body.ops-user #accountView .ob-floor-menu summary > span { flex: 1; overflow-wrap: anywhere; }
body.ops-user #accountView .ob-floor-menu summary > .ic-chev { width: 16px; height: 16px; transform: rotate(90deg); }
body.ops-user #accountView .ob-floor-actions { position: absolute; z-index: 3; top: 100%; left: 0; margin-top: 6px; width: 165px; padding: 6px; display: grid; gap: 4px; background: white; border: 1px solid var(--plan-line); border-radius: 14px; box-shadow: 0 8px 24px #193e5614; }
body.ops-user #accountView .ob-floor-actions .btn { justify-content: flex-start; width: 100%; border: 0; border-radius: 8px; }
body.ops-user #accountView .ob-floor-actions [data-floorrm] { color: var(--bad); }
body.ops-user #accountView .ob-floor-actions [data-floorrm] > span { width: 18px; font-size: 22px; line-height: 1; text-align: center; }
body.ops-user #accountView .ob-plan-rooms { display: flex; gap: 14px; flex: 1; min-width: 0; overflow-x: auto; padding: 1px; }
body.ops-user #accountView .ob-plan-room { position: relative; flex: 1 0 125px; min-width: 125px; border: 1px solid var(--plan-line); border-radius: 9px; background: #f5f8fd; color: var(--ink); text-align: left; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 72px; cursor: pointer; }
body.ops-user #accountView .ob-plan-room > .ic-edit { position: absolute; top: 13px; right: 13px; width: 16px; height: 16px; }
body.ops-user #accountView .ob-plan-room.on { color: #fff; background: linear-gradient(115deg, #1379ef, #2180ee); border-color: var(--plan-accent); }
body.ops-user #accountView .ob-room-code { padding-right: 18px; overflow-wrap: anywhere; }
body.ops-user #accountView .ob-room-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
body.ops-user #accountView .ob-room-state i { width: 8px; height: 8px; border-radius: 50%; background: #c7d3e3; flex-shrink: 0; }
body.ops-user #accountView .ob-room-state.configured { color: #008e91; border-radius: 999px; padding: 4px 8px; background: #e4f6f5; }
body.ops-user #accountView .ob-room-state.configured i { background: #079d9f; }
body.ops-user #accountView .ob-plan-room.on .ob-room-state { color: #fff; padding: 4px 7px; border-radius: 999px; background: #ffffff25; }
body.ops-user #accountView .ob-plan-room.on .ob-room-state i { background: #fff; }
body.ops-user #accountView .ob-plan-add { flex: 0 0 125px; min-height: 72px; border: 1px dashed #82b3ff; border-radius: 9px; background: #fafcff; color: var(--plan-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; cursor: pointer; }
body.ops-user #accountView .ob-plan-step :is(.ob-plan-room, .ob-plan-add, summary):focus-visible { outline: 2px solid var(--plan-accent); outline-offset: -2px; }
body.ops-user #accountView .ob-plan-step .ob-celledit { margin: 16px 0 0; }
body.ops-user #accountView .ob-plan-step .ob-room-editor { border: 1px solid var(--plan-line); border-radius: 12px; padding: 0; margin: 0; display: block; overflow: hidden; }
body.ops-user #accountView .ob-room-editor-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 12px; background: #f9fbff; }
body.ops-user #accountView .ob-room-editor-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
body.ops-user #accountView .ob-room-editor-head b { font-size: 17px; overflow-wrap: anywhere; }
body.ops-user #accountView .ob-room-editor-head .ob-room-state { margin-left: 8px; }
body.ops-user #accountView .ob-room-editor-head .ob-close { flex-shrink: 0; width: 34px; min-height: 34px; height: 34px; }
body.ops-user #accountView .ob-room-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 22px; padding: 20px; align-items: start; }
body.ops-user #accountView .ob-room-fields > * { min-width: 0; margin: 0; }
body.ops-user #accountView .ob-room-fields label { display: grid; gap: 6px; font-size: 13px; }
body.ops-user #accountView .ob-room-fields :is(input, select) { border-color: var(--plan-line); background: #fff; border-radius: 9px; padding: 9px 12px; min-height: 40px; }
body.ops-user #accountView .ob-room-fields .ob-room-type-extra { grid-column: 1 / -1; }
body.ops-user #accountView .ob-room-amenities { display: grid; gap: 8px; font-size: 13px; }
body.ops-user #accountView .ob-room-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 40px; }
body.ops-user #accountView .ob-room-chip { display: inline-flex; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--plan-line); background: #f7faff; font-size: 12px; }
body.ops-user #accountView .ob-room-fields .ob-photos { margin: 0; }
body.ops-user #accountView .ob-room-fields .ob-section-head { margin-bottom: 8px; font-size: 13px; }
body.ops-user #accountView .ob-room-fields .ob-section-head b { font-weight: inherit; }
body.ops-user #accountView .ob-room-fields .ob-photo-count { font-size: 11px; }
body.ops-user #accountView .ob-room-fields .ob-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
body.ops-user #accountView .ob-room-fields :is(.ob-slot, .ob-thumb) { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 8px; }
body.ops-user #accountView .ob-room-fields .ob-slot { border: 1px dashed #82b3ff; background: #fafcff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; }
body.ops-user #accountView .ob-room-fields .ob-slot .ob-dash { display: none; }
body.ops-user #accountView .ob-room-fields .ob-slot .ob-plus { position: static; transform: none; height: 26px; line-height: 26px; font-size: 26px; color: var(--plan-accent); }
body.ops-user #accountView .ob-room-fields .ob-slot:has(.ic) .ob-plus { display: none; }
body.ops-user #accountView .ob-room-fields .ob-slot .ic { color: var(--plan-accent); width: 24px; height: 24px; }
body.ops-user #accountView .ob-room-fields .ob-addphoto { position: static; color: var(--plan-accent); font-size: 11px; }
body.ops-user #accountView .ob-room-photo-tip { display: flex; align-items: center; gap: 10px; align-self: center; border-radius: 10px; background: #f1f6ff; color: var(--plan-accent); padding: 14px 16px; font-size: 12px; line-height: 1.5; }
body.ops-user #accountView .ob-room-photo-tip .ic { flex-shrink: 0; }
body.ops-user #accountView .ob-room-editor .ob-edit-actions { padding: 4px 20px 20px; justify-content: space-between; gap: 12px; }
body.ops-user #accountView .ob-room-editor .ob-room-save-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }
body.ops-user #accountView .ob-room-editor .ob-edit-actions .btn { padding: 7px 16px; font-size: 13px; }
body.ops-user #accountView .ob-room-editor .ob-room-delete { color: var(--bad); border-color: #f1bdbd; }
body.ops-user #accountView .ob-plan-step :is([data-cellsave], .ob-primary) { background: linear-gradient(115deg, #1379ef, #2180ee); color: #fff; }
body.ops-user #accountView .ob-plan-step .ob-foot { position: static; border-top: 1px solid #edf2fa; padding: 16px 0 0; margin-top: 16px; }
@media (max-width: 767px) {
  body.ops-user #accountView .ob-plan-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  body.ops-user #accountView .ob-plan-heading .ob-add-floor { min-height: 44px; }
  body.ops-user #accountView .ob-plan-floor { display: block; padding: 12px; }
  body.ops-user #accountView .ob-floor-menu { border-right: 0; padding: 0 0 8px; border-bottom: 1px solid var(--plan-line); margin-bottom: 10px; }
  body.ops-user #accountView .ob-floor-menu summary { min-height: 44px; }
  body.ops-user #accountView .ob-floor-actions { top: 100%; left: auto; right: 0; }
  body.ops-user #accountView .ob-plan-room { flex-basis: 132px; }
  body.ops-user #accountView .ob-room-fields { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 18px; }
  body.ops-user #accountView .ob-room-editor-head { padding: 10px 16px; }
  body.ops-user #accountView .ob-room-editor-head .ob-close { width: 44px; height: 44px; }
  body.ops-user #accountView .ob-room-editor .ob-edit-actions { padding: 0 16px 16px; }
  body.ops-user #accountView .ob-room-editor .ob-room-save-actions { width: 100%; margin: 0; }
  body.ops-user #accountView .ob-room-save-actions .btn { flex: 1; min-height: 44px; }
  body.ops-user #accountView .ob-room-fields :is(input, select) { min-height: 44px; }
}
body.ops-user #accountView .ob-plan-floors { min-width: 0; grid-template-columns: minmax(0, 1fr); }
body.ops-user #accountView .ob-plan-floor { min-width: 0; }
body.ops-user #accountView .ob-plan-rooms { max-width: 100%; }

/* Setup photos use the page scroll; amenity groups share available desktop space. */
body.ops-user #accountView .ob-wizard .ob-photos .ob-thumbs { flex-wrap: wrap; overflow: visible; max-height: none; height: auto; }
body.ops-user #accountView .ob-wizard .ob-photos .ob-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; margin: 0; }
body.ops-user #accountView .ob-wizard .ob-photos .ob-slot .ob-plus { position: static; transform: none; flex: none; line-height: 1; }
body.ops-user #accountView .ob-wizard .ob-photos .ob-addphoto { flex: none; margin: 0; line-height: 1.4; text-align: center; }
body.ops-user #accountView .ob-amen { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: 12px 24px; align-items: start; }
body.ops-user #accountView .ob-amen > :is(.ob-sub, label) { grid-column: 1 / -1; }
body.ops-user #accountView .ob-amen-g { min-width: 0; }
@media (max-width: 767px) {
  body.ops-user #accountView .ob-amen { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Setup flow header: title + "Để sau" only; room-type cards keep their actions in a right column. */
body .ob-wizard .ob-head { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
body .ob-wizard .ob-head .ob-exit { flex: none; min-height: 40px; }
body .ob-wizard .ob-foot .ob-primary { margin-left: auto; }
@media (min-width: 768px) {
  body #accountView .ob-room { grid-template-columns: 64px minmax(0, 1fr) auto; }
  body #accountView .ob-room-act { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
}

/* Room editor amenities: toggle chips; changing them makes the room's own list. */
body.ops-user #accountView .ob-room-amen-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
body.ops-user #accountView .ob-amen-reset { border: 0; background: none; padding: 4px 0; color: var(--plan-accent); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
body.ops-user #accountView button.ob-room-chip { font: inherit; font-size: 12px; color: var(--muted); background: #fff; cursor: pointer; min-height: 32px; }
body.ops-user #accountView button.ob-room-chip.on { color: var(--plan-accent); background: #eef5ff; border-color: var(--plan-accent); font-weight: 600; }
body.ops-user #accountView .ob-amen-add { display: flex; gap: 8px; }
body.ops-user #accountView .ob-amen-add input { flex: 1; min-width: 0; }
body.ops-user #accountView .ob-amen-add .btn { flex: none; min-height: 40px; }

/* Room-type list: one pencil per card, "+" to add a type (icon-only, labelled for screen readers). */
body #accountView .ob-wizard .ob-icon-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
body #accountView .ob-wizard .ob-icon-btn .ic { width: 18px; height: 18px; margin: 0; }
body #accountView .ob-wizard .ob-add-type { width: 44px; height: 44px; margin-top: 4px; }
body #accountView .ob-wizard .ob-add-type .ic { width: 20px; height: 20px; }
body #accountView .ob-wizard .ob-room { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
body #accountView .ob-wizard .ob-room-act { grid-column: auto; flex-direction: row; align-self: center; }

/* Floor menu: one clean dropdown, rows without their own borders. */
body.ops-user #accountView .ob-plan-step .ob-floor-actions { width: 170px; padding: 4px; gap: 0; border-radius: 12px; }
body.ops-user #accountView .ob-plan-step .ob-floor-actions .btn.ghost { justify-content: flex-start; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; font-weight: 500; font-size: 14px; }
body.ops-user #accountView .ob-plan-step .ob-floor-actions .btn.ghost:hover { background: #f2f7ff; }
body.ops-user #accountView .ob-plan-step .ob-floor-actions .btn.ghost[data-floorrm]:hover { background: #fff3f2; }
body.ops-user #accountView .ob-plan-step .ob-floor-actions .btn .ic { width: 16px; height: 16px; }

/* Step 6 "Mở bán": one card per room type — viewing hours, broker commission, show/hide. */
body .ob-sell { display: grid; gap: 14px; }
body .ob-sell-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
body .ob-sell-card > header { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
body .ob-sell-card > header > img, body .ob-sell-card > header > .ob-noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; font-size: 11px; }
body .ob-sell-card > header b { font-size: 15px; }
body .ob-sell-card > header .muted { font-size: 13px; }
body .ob-sell-status { font-size: 13px; margin-top: 2px; font-weight: 600; }
body .ob-sell-status.ok { color: var(--ok, #1f8a4c); }
body .ob-sell-status.todo { color: var(--warn, #b26a00); }
body .ob-sell-status.off { color: var(--muted); }
body .ob-sell-status::before { content: "● "; }
body .ob-sell-status:empty::before { margin: 0; } /* ok state: just the green dot, no text */
body .ob-sell-vis { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; }
body .ob-sell-vis .ic { width: 20px; height: 20px; }
body .ob-sell-vis.on { color: var(--accent); border-color: #bcd8ef; background: var(--accent-soft, #eaf4fb); }
body .ob-sell-body { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; padding: 14px; }
body .ob-sell-hours { display: grid; gap: 8px; min-width: 0; }
body .ob-sell-hours .ob-days, body .ob-sell-hours .ob-times { margin: 0; }
/* Compact viewing-time picker: chosen times as removable chips + quick-fill + custom add */
body .ob-time-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body .ob-time-chips:empty { display: none; }
body .ob-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
body .ob-chip button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.25); color: #fff; cursor: pointer; }
body .ob-chip .ic { width: 12px; height: 12px; }
body .ob-time-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body .ob-time-add { flex: 1 1 140px; min-width: 120px; max-width: 220px; }
body .ob-sell-warn { margin: 0 0 12px; }
@media (max-width: 767px) {
  body .ob-sell-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body .ob-sell-hours [data-times-extra] { max-width: none; }
}
body .ops-dlg .ops-row.ops-cost { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: end; }
body .ops-dlg .ops-cost [data-rmcost] { width: 40px; height: 44px; padding: 0; }
body .ob-sell-days .ob-time span { min-width: 46px; text-align: center; }
body .ops-dlg .ops-cost + .ops-cost { margin-top: 10px; }

/* Broker workspace (D-134): account menu, floor plan with status/price per room, rule filters. */

body .bp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; }
body .bp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
body .bp-chip { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
body .bp-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
body .bp-legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
body .bp-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; background: var(--dot); }
body .s-open { --dot: #12a36f; } body .s-booking { --dot: #e29a15; } body .s-close { --dot: #a3adb4; }
body .bp-building { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
body .bp-building + .bp-building { margin-top: 12px; }
body .bp-building > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; }
body .bp-building > header small { color: var(--muted); font-size: 12px; }
body .bp-floor { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
body .bp-floor-label { font-size: 13px; color: var(--muted); font-weight: 600; }
body .bp-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
body .bp-unit { position: relative; display: grid; gap: 2px; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--dot); background: #fff; color: var(--ink); font: inherit; cursor: pointer; min-height: 84px; }
body .bp-unit b { font-size: 15px; }
body .bp-unit small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .bp-unit .bp-price { font-size: 13px; font-weight: 600; }
body .bp-unit i { font-style: normal; font-size: 11px; color: var(--dot); font-weight: 600; }
body .bp-unit.s-open:hover { border-color: var(--dot); box-shadow: 0 2px 10px #12a36f22; }
body .bp-unit.s-booking { background: #fffaf0; }
body .bp-unit.s-close { background: #f4f6f7; color: var(--muted); cursor: default; }
body .bp-unit.s-close i { color: var(--muted); }
body .bp-unit.dim { opacity: .3; }
body .bp-photos { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; }
body .bp-photos img { flex: none; width: 140px; height: 100px; object-fit: cover; border-radius: 10px; }
body .bp-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; font-size: 14px; }
body .bp-state { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f4f6f7; color: var(--dot); }
@media (max-width: 767px) {
  body .bp-floor { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  body .bp-units { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  body .bp-legend { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1099px) { body.ops-user #accountView .ob-amen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body .form [data-newcust]:not([hidden]) { display: flex; flex-direction: column; gap: 18px; }
body.ops-user #accountView .ob-amen .ob-time span { white-space: nowrap; }

/* Compact viewing form: one room context, one close action, one submit action. */
dialog.tv-compact { width: min(520px, calc(100vw - 32px)); padding: 24px; }
body .tv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body .tv-head h2 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
body .tv-x, body .tv-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; }
body .tv-x { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
body .tv-x:hover { background: var(--accent-soft); color: var(--ink); }
body .tv-x .ic, body .tv-icon .ic { width: 20px; height: 20px; }
body .tv-context { margin: 14px 0 20px; overflow-wrap: anywhere; }
body .tv-context b { font-weight: 500; color: var(--ink); }
body .tv-context p, body .tv-help { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
body .tv-help { margin: 12px 0 16px; }
body .tv-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
body .tv-lbl { margin-top: 8px; font-weight: 500; font-size: 14px; color: var(--ink); }
body .tv-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
body .tv-slots .muted { grid-column: 1 / -1; margin: 0; }
body .tv-slot { position: relative; cursor: pointer; }
body .tv-slot input { position: absolute; opacity: 0; pointer-events: none; }
body .tv-slot span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-variant-numeric: tabular-nums; font-size: 14px; }
body .tv-slot span .ic { display: none; }
body .tv-slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
body .tv-slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
body .tv-note { margin-top: 6px; }
body .tv-note summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; cursor: pointer; list-style: none; color: var(--muted); font-size: 14px; }
body .tv-note summary::-webkit-details-marker { display: none; }
body .tv-note summary::before { content: '+'; font-size: 20px; line-height: 1; }
body .tv-note[open] summary::before { content: '\2212'; }
body .tv textarea, body .tv-form input { width: 100%; min-width: 0; box-sizing: border-box; }
body .tv textarea { resize: vertical; }
body .tv-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
body .tv-tip { margin: 0 auto 0 0; max-width: 28ch; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 540px) {
  dialog.tv-compact { padding: 20px; }
  body .tv-head h2 { font-size: 20px; }
  body .tv-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body .req-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }

/* Broker plan cards (D-138): thumbnail + code/type/price/status, allowed-rule icons bottom right. */
body .bp-units { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
body .bp-unit { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; min-height: 0; border: 1px solid var(--line); border-left-width: 1px; border-radius: 12px; }
body .bp-unit.s-open { border-color: #9fd9bf; }
body .bp-unit.s-booking { border-color: #f0cf8e; }
body .bp-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: #eef2f5; color: var(--muted); }
body .bp-thumb .ic { width: 24px; height: 24px; }
body .bp-info { display: grid; gap: 2px; min-width: 0; justify-items: start; }
body .bp-info b { font-size: 15px; }
body .bp-info small { font-size: 12px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .bp-info .bp-price { font-size: 14px; font-weight: 700; }
body .bp-pill { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--dot); }
body .bp-unit.s-close .bp-pill { background: #a3adb4; }
body .bp-rules { position: absolute; right: 10px; bottom: 9px; display: flex; gap: 6px; color: var(--muted); }
body .bp-rules span { display: inline-grid; }
body .bp-rules .ic { width: 16px; height: 16px; }
body .bp-floor-label { display: grid; gap: 2px; }
body .bp-floor-label small { font-weight: 400; font-size: 12px; }
body .bp-chip { display: inline-flex; align-items: center; gap: 6px; }
body .bp-chip .ic { width: 15px; height: 15px; }
body .bp-dot { width: 9px; height: 9px; border-radius: 50%; background: #12a36f; }
body .bp-chip[aria-pressed="true"] .bp-dot { background: #fff; }
body .bp-floor { grid-template-columns: 80px minmax(0, 1fr); }
@media (max-width: 767px) {
  body .bp-floor { grid-template-columns: minmax(0, 1fr); }
  body .bp-units { grid-template-columns: minmax(0, 1fr); }
}
body .bp-unit .bp-pill { color: #fff; }
body[data-role="broker"] .account-link > svg { display: none; }
body .bp-unit.s-close i.bp-pill { color: #fff; }
body .bk-ended > summary { cursor: pointer; font-weight: 600; font-size: 16px; }
body .bk-ended[open] > summary { margin-bottom: 12px; }
body .bk-ended .portal-record + .portal-record { margin-top: 10px; }
@media (min-width: 768px) {
  body[data-role="broker"] .tabs a:is([data-tab="services"], [data-tab="partners"], [data-tab="guide"]) { display: none; }
}
body .bp-rules { gap: 8px; color: var(--ink); }
body .bp-rules .ic { width: 18px; height: 18px; }
body .pay-qr { margin: 4px auto 12px; display: grid; justify-items: center; gap: 6px; }
body .pay-qr img { width: 240px; height: 240px; max-width: 100%; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
body .pay-qr figcaption { font-size: 12px; color: var(--muted); text-align: center; }
body .tvr-act a.ops-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
body .ops-dlg label.ops-radio { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
body .ops-dlg .ops-radio input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--accent); box-shadow: none; border: 0; background: none; }
body .ops-dlg .ops-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
body .ob-contract { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; }
body .ob-contract > summary { cursor: pointer; font-weight: 600; font-size: 16px; }
body .ob-contract[open] > summary { margin-bottom: 10px; }
body .ob-contract > * + * { margin-top: 12px; }

/* Building card — cover image on top, details below (owner & admin). Placed last so it
   also wins over the phone-grid rules above for .m-bwrap > .m-building. */
body.ops-user #accountView .m-bcard { position: relative; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: var(--surface-shadow); }
body.ops-user #accountView .m-bcard > .m-building { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none; }
body.ops-user #accountView .m-bcard .m-cover { width: 100%; height: 170px; display: grid; place-items: center; background: linear-gradient(140deg, #22557a, #2f86cc) center/cover; color: #fff; }
body.ops-user #accountView .m-bcard .m-cover .ic { width: 42px; height: 42px; opacity: .9; }
body.ops-user #accountView .m-bcard .m-binfo { display: grid; gap: 5px; padding: 14px 16px 16px; min-width: 0; }
body.ops-user #accountView .m-bcard .m-binfo > b { grid-column: auto; grid-row: auto; font-size: 17px; font-weight: 600; white-space: normal; }
body.ops-user #accountView .m-bcard .m-binfo > .muted { grid-column: auto; grid-row: auto; margin: 0; white-space: normal; }
body.ops-user #accountView .m-bcard .m-bmeta { grid-column: auto; margin-top: 6px; }
body.ops-user #accountView .m-bcard .m-go { display: none; }
body.ops-user #accountView .m-bcard:has(> .m-vis) > .m-building { padding-right: 0; }
/* Visibility toggle = eye icon button floating on the cover (eye-off when shown, eye when hidden) */
body.ops-user #accountView .m-bcard .m-vis { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 1px 6px #0004; cursor: pointer; }
body.ops-user #accountView .m-bcard .m-vis .ic { width: 20px; height: 20px; }
body.ops-user #accountView .m-bcard .m-vis i { display: none; }
body.ops-user #accountView .m-bcard.is-hidden > .m-building { opacity: .5; }
body.ops-user #accountView .m-bcard.is-hidden { background: #f5f6f8; }
body.ops-user #accountView .m-bcard.is-hidden .m-vis { color: var(--accent); }

/* Customer workspace: content rows instead of nested cards (D-157). */
body.customer-user:has(#tab-account:not([hidden])) .topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
body.customer-user #tab-account > .hero, body.customer-user:has(#tab-account:not([hidden])) > .fab { display: none; }
body.customer-user #tab-account .account-wrap { max-width: 1000px; margin: 0 auto; padding: calc(var(--header-h) + 24px) 24px 40px; }
body.customer-user #accountView > .dash { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body .customer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
body .customer-heading h1 { font-size: 26px; line-height: 1.3; margin: 0; font-weight: 600; }
body .customer-heading p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
body .customer-nav, body .apartment-tools { display: flex; align-items: center; gap: 8px; }
body .customer-nav a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border-radius: 50%; text-decoration: none; }
body .customer-nav a:hover { background: var(--accent-soft); }
body.customer-user #accountView .customer-portal > .portal-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body .customer-portal .portal-card > h3 { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 14px; }
body .customer-portal .journey { padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
body .customer-portal .journey + .journey { margin-top: 12px; }
body .customer-portal .jr-head { align-items: center; justify-content: space-between; flex-wrap: nowrap; margin: 0 0 6px; gap: 12px; }
body .customer-portal .jr-head > div { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
body .customer-portal .jr-head b { font-size: 18px; font-weight: 600; }
body .customer-portal .room-contact { flex: none; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; background: transparent; }
body .customer-portal .room-contact:hover { background: var(--accent-soft); }
body .customer-portal .jr-now { padding: 0; background: transparent; border-radius: 0; }
body .customer-portal .jr-now > b { display: block; margin: 4px 0 6px; font-size: 18px; font-weight: 500; }
body .customer-portal .jr-now p { font-size: 14px; line-height: 1.6; }
body .customer-portal .journey-progress > summary { font-size: 13px; min-height: 44px; padding: 10px 0; font-weight: 500; }
body .sign-step { width: 100%; min-width: 0; }
body .sign-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body .sign-actions .icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; }
body .sign-upload { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 8px; overflow: hidden; cursor: pointer; min-height: 44px; }
body .sign-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
body .sign-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
body .customer-portal .customer-history .portal-item { padding: 8px 0; border: 0; background: transparent; border-radius: 0; }
body .customer-portal .tenant-request { border: 0; border-top: 1px solid var(--line); padding: 16px 0; background: transparent; border-radius: 0; }
body .customer-portal .tenant-reply { background: transparent; border-radius: 0; }
body .customer-back { color: var(--accent); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
body.customer-user #accountView .m-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
body.customer-user #accountView .install-hint { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
@media (max-width: 767px) {
  body.customer-user #tab-account .account-wrap { padding: calc(var(--header-h) + 20px) 16px 32px; }
  body .customer-heading { margin-bottom: 24px; }
  body .customer-heading h1 { font-size: 23px; }
  body .customer-nav, body.customer-user .customer-back { display: none; }
  body .customer-portal .jr-head b { font-size: 16px; }
  body .customer-portal .jr-now > b { font-size: 16px; }
  body .customer-portal .jr-now .actions .btn { flex: 0 1 auto; }
  body .sign-actions .sign-upload { flex: 1 1 auto; }
  .topbar.open ~ .mobile-dock { visibility: hidden; }
  body .tabs .account-link { display: none; }
}
body.customer-user:has(#tab-account:not([hidden])) > .footer { display: none; }
body.customer-user #tab-account .account-wrap { min-height: calc(100dvh - var(--mobile-dock-space, 0px)); }
body.customer-user #accountView .m-menu { gap: 0; }
body.customer-user #accountView .m-menu > * { border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; }

/* One dismissal per modal, shared across customer, broker and admin forms. */
#modalBody.has-dismiss{position:relative;padding-top:36px}
#modalBody .modal-dismiss{position:absolute;right:0;top:0;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}
#modalBody .modal-dismiss:hover{background:var(--accent-soft,#eaf3fb);color:var(--ink)}

/* D-160: broker workspace shares the owner shell, including on mobile. */
body[data-role="broker"][data-tab="account"] #tab-account > .hero,
body[data-role="broker"][data-tab="account"] > .footer{display:none}
body[data-role="broker"][data-tab="account"] #tab-account .account-wrap{padding-top:calc(var(--header-h) + 20px)}
body[data-role="broker"] #accountView .dash:not(.ob-wizard){border:0;box-shadow:none;background:transparent}

/* D-161: consistent phone cards, readable profile data and one dock destination per action. */
@media(max-width:767px){
 body .mobile-dock a,body.ops-user .mobile-dock a{height:44px;flex:1;max-width:80px}
 body.ops-user #accountView .m-bcard > .m-building,
 body.ops-user #accountView .m-bcard:has(> .m-vis) > .m-building{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0}
 body.ops-user #accountView .m-bcard .m-cover{display:grid;width:100%;height:156px;min-height:156px;flex:none;background-size:cover;background-position:center}
 body.ops-user #accountView .m-bcard .m-binfo{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:14px 16px 16px}
 body.ops-user #accountView .m-bcard .m-binfo > :is(b,.muted,.m-bmeta){grid-column:auto;grid-row:auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
 body.ops-user #accountView .m-bcard .m-vis{position:absolute;top:10px;right:10px;width:44px;height:44px;margin:0;display:grid;place-items:center}
 body #accountView .m-me{align-items:flex-start;gap:12px}
 body #accountView .m-me > span:last-child{min-width:0;overflow-wrap:anywhere}
 body #accountView .m-me b{font-size:17px;line-height:1.5}
 body #accountView .m-me small{display:block;overflow-wrap:anywhere;line-height:1.6}
 body #accountView .m-acc-dl dd{min-width:0;overflow-wrap:anywhere;line-height:1.6}
 body #accountView .m-menu > details.m-acc{display:block}
 body #accountView .m-menu > details.m-acc > summary{min-height:44px}
 body #accountView{padding-bottom:12px}
}

/* D-162: public navigation hierarchy and translucent search surface. */
#tabs .nav-primary,#tabs .nav-utilities{display:flex;align-items:center}
#tabs .nav-primary{gap:24px}
#tabs .nav-utilities{gap:14px;border-left:1px solid #ffffff50;padding-left:22px}
#tabs a{white-space:nowrap}
@media(min-width:1081px){
 body:not(.ops-user) .topbar-inner{gap:36px}
 body:not(.ops-user) #tabs{flex:1;gap:28px;justify-content:space-between;min-width:0}
 #tabs .nav-primary{margin-inline:auto}
 #tabs .nav-primary a{padding:10px 12px;border-radius:999px;font-size:14px}
 #tabs .nav-primary a::after,#tabs .account-link::after{display:none}
 #tabs .nav-primary a:is(:hover,.active){background:#ffffff22}
 #tabs .account-link{margin-left:0;border:1px solid #ffffff65;border-radius:999px;padding:10px 16px;font-size:14px;gap:8px}
 #tabs .lang-link{display:grid;place-items:center;min-width:36px;min-height:36px;padding:5px 9px;font-size:12px}
 .topbar.scrolled #tabs .nav-utilities{border-color:var(--line)}
 .topbar.scrolled #tabs .nav-primary a:is(:hover,.active){background:var(--accent-soft);color:var(--accent)}
 .topbar.scrolled #tabs .account-link{border-color:var(--line);background:#fff}
}
#roomFilters.searchbar{background:linear-gradient(115deg,rgba(255,255,255,.58),rgba(255,255,255,.42));border:1px solid #ffffff85;backdrop-filter:blur(22px) saturate(120%);-webkit-backdrop-filter:blur(22px) saturate(120%);box-shadow:0 18px 48px #102c3c26,inset 0 1px 0 #ffffff60}
#roomFilters .sb-field{border-color:#193e5626}
#roomFilters .sb-field>span{color:#193e56;font-weight:600}
#roomFilters :is(input,select){color:#17293a;background:transparent;border-radius:0;box-shadow:none}
#roomFilters input::placeholder{color:#425566;opacity:1}
#roomFilters :is(input,select):focus-visible{outline:2px solid #2474b5;outline-offset:5px;border-radius:4px}
#roomFilters select option{background:#fff;color:#17293a}
#roomFilters .btn{flex-shrink:0;box-shadow:0 5px 16px #193e5630}
@media(max-width:1080px){
 #tabs .nav-primary,#tabs .nav-utilities{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:0}
 #tabs .nav-utilities{border-left:0;border-top:1px solid var(--line);padding:8px 0 0;margin-top:6px}
 #tabs .nav-primary a,#tabs .nav-utilities a{white-space:normal;margin-left:0}
 .topbar-inner{gap:16px}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#roomFilters.searchbar{background:linear-gradient(115deg,#ffffffeb,#ffffffd9)}}

/* Owner review: real rooms, kept in their configured floor positions. */
body .owner-review .or-heading h2{margin:0;font-size:24px}
body .owner-review .or-heading p{margin:6px 0;color:var(--muted)}
body .owner-review .or-heading>span{font-size:13px;color:var(--muted)}
body .owner-review h3{margin:24px 0 12px;font-size:20px}
body .or-filters{display:flex;flex-wrap:wrap;gap:8px}
body .or-filters button{display:inline-flex;align-items:center;gap:6px;min-height:44px}
body .or-hint{font-size:12px;margin:12px 0}
body .or-plan{overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:16px;padding:16px}
body .or-floor{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;min-width:fit-content;border-top:1px solid var(--line);padding:16px 0}
body .or-floor:first-child{border-top:0;padding-top:0}body .or-floor:last-child{padding-bottom:0}
body .or-floor>header{display:grid;align-content:center;gap:6px;color:var(--muted);font-size:14px}
body .or-floor>header small{font-weight:400}
body .or-cells{display:grid;grid-template-columns:repeat(var(--or-cols),minmax(240px,1fr));gap:12px}
body .or-unit{position:relative;display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:14px;min-height:160px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink)}
body .or-photo{height:90px;display:grid;place-items:center;border-radius:12px;overflow:hidden;background:var(--bg)}
body .or-photo img{width:100%;height:100%;object-fit:cover}body .or-photo>.ic{width:28px;height:28px;color:var(--muted)}
body .or-info{display:grid;gap:5px;min-width:0;padding-bottom:24px}
body .or-info>b{font-size:20px}body .or-info>span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}body .or-info>strong{font-size:16px}
body .or-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}body .or-tags small{font-size:11px;color:var(--muted)}
body .or-status{background:#e5f5ed;color:#167148;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:600}
body .or-unit.s-booking .or-status{color:#946211;background:#fff3d9}body .or-unit:is(.s-close,.s-maintenance) .or-status{background:#eef1f5;color:#617387}
body .or-rules{position:absolute;bottom:14px;right:16px;display:flex;gap:10px}body .or-rules .ic{width:19px;height:19px}
body .or-unit.or-dim{opacity:.3}body .or-gap{border:1px dashed var(--line);border-radius:16px}
body .or-details{margin-top:22px}body .or-details summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:500}
body .or-fees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0}
body .or-fees dt{color:var(--muted);font-size:13px;margin:0 0 5px}body .or-fees dd{margin:0;font-weight:500;overflow-wrap:anywhere}
@media(max-width:600px){body .or-floor{grid-template-columns:minmax(0,1fr);gap:10px}body .or-floor>header{display:flex;align-items:center;gap:8px}body .or-plan{padding:12px}body .or-cells{grid-template-columns:repeat(var(--or-cols),minmax(240px,1fr))}body .or-fees{grid-template-columns:minmax(0,1fr)}}
