:root {
  --ink: #1b2430; --ink-2: #4a5566; --ink-3: #7a8494;
  --line: #e3e6eb; --line-2: #d3d8df;
  --bg: #f6f7f9; --panel: #ffffff;
  --brand: #140C59; --brand-2: #2A2275; --brand-tint: #ECEBF6;
  --good: #1d7a4f; --good-tint: #e6f4ec;
  --warn: #9a6200; --warn-tint: #fdf3e1;
  --bad: #b3261e; --bad-tint: #fbe9e7;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.45; }
a { color: var(--brand-2); }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 650; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-3); }
.boot { padding: 48px; color: var(--ink-3); }

/* ---- sign-in / setup cards ---- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; width: 100%; max-width: 420px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card.wide { max-width: 560px; }
.brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brandline img { width: 34px; height: 34px; }
.brandline b { font-size: 15px; }
.brandline span { display: block; font-size: 12px; color: var(--ink-3); }

/* ---- forms ---- */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
input, select, textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-tint); border-color: var(--brand-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); margin: 10px 0; }
.check input { width: auto; }
input.otp { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.appsetup img.qr { display: block; margin: 8px auto; width: 220px; height: auto; max-width: 100%; }
.appsetup code.secret { font-size: 15px; letter-spacing: 1px; word-break: break-word; user-select: all; }
.appsetup ol { padding-left: 18px; }
button, .btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 9px 14px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover { background: var(--brand-2); }
button.ghost, .btn.ghost { background: #fff; color: var(--brand); border-color: var(--line-2); }
button.ghost:hover, .btn.ghost:hover { background: var(--brand-tint); }
button.danger { background: #fff; color: var(--bad); border-color: #f0c9c5; }
button.small, .btn.small { padding: 5px 10px; font-size: 12.5px; }
button:disabled { opacity: .55; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.err { background: var(--bad-tint); color: var(--bad); border-radius: 8px; padding: 9px 12px; margin-top: 12px; font-size: 13px; }
.ok { background: var(--good-tint); color: var(--good); border-radius: 8px; padding: 9px 12px; margin-top: 12px; font-size: 13px; }
.note { background: var(--warn-tint); color: #6b4500; border-radius: 8px; padding: 10px 12px; font-size: 13px; }

/* ---- app shell ---- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: #dfe7f2; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; }
.side .logo img { width: 30px; height: 30px; }
.side .logo b { font-size: 14.5px; display: block; }
.side .logo span { font-size: 11.5px; color: #a9bad1; }
.side a { color: #dfe7f2; text-decoration: none; padding: 8px 10px; border-radius: 7px; display: flex; justify-content: space-between; align-items: center; }
.side a:hover { background: rgba(255, 255, 255, .07); }
.side a.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.side a.soon { color: #8ea2bf; pointer-events: none; }
.side .group { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8ea2bf; padding: 16px 10px 6px; }
.side .group-btn { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; width: 100%; cursor: pointer; margin-top: 10px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; padding: 10px 10px; border-radius: 7px; background: rgba(255, 255, 255, .06); }
.side .group-btn:hover { background: rgba(255, 255, 255, .11); }
.side .group-btn:focus-visible { outline: 2px solid #64C2E6; outline-offset: 1px; }
.side .group-btn .chev { font-size: 12px; color: #a9bad1; }
.side .grp { display: flex; flex-direction: column; gap: 1px; padding: 4px 0 4px 8px; }
.side .grp[hidden] { display: none; }
.tag { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #c9d6e8; }
.main { padding: 0 0 48px; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 2; }
.test-banner { font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-tint); padding: 4px 10px; border-radius: 99px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.who b { font-weight: 600; }
.page { padding: 24px 28px; max-width: 1180px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.kpis { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.kpi b { display: block; font-size: 20px; font-weight: 650; }
.kpi span { font-size: 12px; color: var(--ink-3); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--brand-tint); color: var(--brand); }
.pill.grey { background: #eef0f3; color: var(--ink-2); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.good { background: var(--good-tint); color: var(--good); }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---- dialog ---- */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(16, 24, 40, .25); }
dialog::backdrop { background: rgba(16, 24, 40, .45); }
dialog form { padding: 22px 24px; }
.temp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; background: var(--brand-tint); padding: 10px 12px; border-radius: 8px; margin: 8px 0; user-select: all; }

/* phone header: logo, Home, menu and your initials (the full menu slides in from the left) */
.mbar, .macct, .mback { display: none; }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .mbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; background: #140C59; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; }
  .mbar .mlogo { display: flex; align-items: center; }
  .mbar .mlogo img { height: 30px; width: auto; }
  .mbar .mhome { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #140C59; border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; font-size: 15px; }
  .mbar .mmenu, .mbar .mav { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
  .mbar .mmenu { margin-left: auto; color: #fff; }
  .mbar .mav { background: #64C2E6; color: #140C59; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
  .mback:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 8, 40, .45); }
  .macct:not([hidden]) { display: grid; gap: 8px; position: fixed; top: calc(62px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 60; background: #fff; border-radius: 14px; padding: 16px; min-width: 220px; box-shadow: 0 16px 40px rgba(16, 24, 40, .3); }
  .side { display: none; }
  .side.open { display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 84vw); z-index: 60; overflow-y: auto; padding: calc(18px + env(safe-area-inset-top, 0px)) 12px 24px; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  .top { display: none; }
  .page { padding: 16px; }
  .row { grid-template-columns: 1fr; }
}

/* ---- Module 1 ---- */
.proj { width: auto; padding: 6px 10px; font-weight: 600; }
.top .who:first-child { gap: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.tab { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.tab:hover { background: var(--brand-tint); }
.tab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab .count { font-size: 11.5px; opacity: .8; margin-left: 4px; }
.search { max-width: 320px; margin-bottom: 10px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8fafc; }
tr.dim td { color: var(--ink-3); }
.small { font-size: 12px; }
.bad-t { color: var(--bad); font-weight: 600; }
.kpi.bad b { color: var(--bad); }
.crumbs { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }
.crumbs a { text-decoration: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two .panel { margin-bottom: 16px; }
table.kv th { width: 38%; color: var(--ink-3); font-weight: 600; white-space: normal; }
table.kv th, table.kv td { border-bottom: 1px solid var(--line); padding: 7px 8px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
label.sub { margin-top: 4px; font-weight: 500; }
fieldset.appl { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 14px; margin: 14px 0 0; }
fieldset.appl legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
details summary { cursor: pointer; color: var(--brand-2); font-weight: 600; margin-top: 12px; font-size: 13px; }
dialog.wide { width: min(720px, calc(100vw - 32px)); }
dialog form { max-height: calc(100vh - 48px); overflow-y: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* unit grid */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--line-2); }
.floors { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.floor { display: flex; gap: 4px; align-items: center; }
.fl { width: 30px; text-align: right; font-size: 11.5px; color: var(--ink-3); margin-right: 6px; flex: none; font-variant-numeric: tabular-nums; }
.unit { width: 52px; height: 28px; padding: 0; justify-content: center; font-size: 11.5px; font-weight: 600; border-radius: 6px; position: relative; flex: none; }
.s-available { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }
.s-blocked { background: var(--warn-tint); color: var(--warn); border: 1px solid #f1d9a8; }
.s-booked { background: #dbe7f6; color: var(--brand); border: 1px solid #c3d5ee; }
.s-registered { background: var(--brand-2); color: #fff; border: 1px solid var(--brand-2); }
.s-held { background: #eceef1; color: var(--ink-2); border: 1px dashed #b8bfc9; }
.s-refuge, .s-rehab, .s-society { background: repeating-linear-gradient(45deg, #f1f2f4, #f1f2f4 4px, #e4e6ea 4px, #e4e6ea 8px); color: var(--ink-3); border: 1px solid var(--line-2); }
.unit:hover { filter: brightness(.95); background-color: inherit; }
.unit.overdue::after, .overdue-sw { content: ''; }
.unit.overdue::after { position: absolute; top: -1px; right: -1px; width: 0; height: 0; border-top: 10px solid var(--bad); border-left: 10px solid transparent; border-top-right-radius: 6px; }
.overdue-sw { background: var(--bad); border-color: var(--bad); }

/* ageing */
.ageing { display: grid; gap: 8px; max-width: 640px; }
.age { display: grid; grid-template-columns: 90px 1fr 110px; align-items: center; gap: 10px; font-size: 13px; }
.age .bar { height: 10px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.age .bar i { display: block; height: 100%; background: var(--bad); border-radius: 99px; }
.age b { text-align: right; font-variant-numeric: tabular-nums; }

/* statement */
.st-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--brand); padding-bottom: 12px; margin-bottom: 12px; }
.st-head .right { text-align: right; }
table.lines { margin: 14px 0; font-size: 12.5px; }
table.lines th, table.lines td { padding: 6px 8px; }

@media (max-width: 820px) { .two { grid-template-columns: 1fr; } .row3 { grid-template-columns: 1fr 1fr; } }
@media print {
  .no-print, .side, .top { display: none !important; }
  .shell { display: block; } body { background: #fff; } .page { padding: 0; max-width: none; }
  .panel { border: 0; padding: 0; }
}
.statement table.kv th { width: 16%; }
.statement table.kv td { width: 34%; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
textarea { resize: vertical; }
@media (max-width: 820px) { .row4 { grid-template-columns: 1fr 1fr; } }
.towers { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 16px; align-items: start; }
.towers > .panel { margin: 0; min-width: 0; }
@media (max-width: 640px) { .towers { grid-template-columns: 1fr; } }
.towers .tower h2 { margin: 0 0 10px; font-size: 16px; }

/* home: navy hero with the greeting, then project and tool tiles (same look as the staff portal's Home) */
.side .logo { text-decoration: none; flex-direction: column; align-items: flex-start; gap: 6px; }
.side .logo:hover { background: none; }
.side .logo img.wordmark { width: 128px; height: auto; }
.side .logo b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #a9bad1; }
.side .logo div { display: flex; gap: 8px; align-items: baseline; }
.hero { background: #140C59; background-image: radial-gradient(1100px 340px at 85% -160px, rgba(100,194,230,.30), transparent 60%); color: #fff; margin: -24px -28px 0; padding: 28px 28px 74px; clip-path: inset(0 -100vmax 0 0); box-shadow: 100vmax 0 0 #140C59; }
.hero-in { display: grid; gap: 8px; }
.hero .eyebrow { font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #64C2E6; }
.hero h1 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -.02em; color: #fff; }
.hero p { margin: 0; color: #C6CCEB; max-width: 60ch; }
.hero .back { justify-self: start; color: #C6CCEB; text-decoration: none; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.hero .back:hover { color: #fff; }
.hnote { margin: -10px 0 0; color: var(--ink-3); font-size: 13px; }
.hm { margin-top: -48px; display: grid; gap: 26px; position: relative; }
.hgroup { display: grid; gap: 12px; }
.hgroup h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.hgroup:first-child h2 { color: #C6CCEB; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(20,12,89,.05), 0 8px 24px rgba(20,12,89,.07); color: #140C59; text-decoration: none; min-height: 176px; }
a.tile:hover { border-color: var(--tone); transform: translateY(-2px); }
.tile .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tone); color: #fff; }
.tile .ic svg { width: 27px; height: 27px; }
.tile h3 { font-size: 19px; font-weight: 800; margin: 0; }
.tile p { margin: 3px 0 0; color: var(--ink-3); font-size: 14px; }
.tile .open { font-weight: 700; font-size: 14px; color: var(--tone); }
.tile .status { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #FBEFD9; color: #8A5A10; }
.tile.soon { background: #F7F8F5; box-shadow: none; border-style: dashed; }
.tile.soon .ic { opacity: .55; }
@media (max-width: 700px) { .hero { margin: -16px -16px 0; padding: 20px 16px 70px; } }
@media (prefers-reduced-motion: no-preference) { a.tile { transition: transform .15s, border-color .15s; } }

/* accounts registers: wide sheet-like tables */
.acc-grid { max-height: 70vh; overflow: auto; }
.acc-grid th { position: sticky; top: 0; background: #fff; z-index: 1; white-space: nowrap; }
.acc-grid td { white-space: nowrap; font-size: 12.5px; }
.acc-grid td.wrap { white-space: normal; min-width: 220px; max-width: 360px; }
.acc-grid tr[data-id] { cursor: pointer; }
.acc-grid tr[data-id]:hover td { background: #f8fafc; }
.acc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; margin: 10px 0; }
.acc-form .wide { grid-column: 1 / -1; }
.good-t { color: var(--good); font-weight: 600; }
tr.tot td { background: #f7f8fb; }
dialog.wide { width: min(980px, 96vw); }

/* Daily To-Do */
.kpis + .panel { margin-top: 16px; }
.tdl { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.td { display: grid; grid-template-columns: 28px 1fr 230px; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.td.hi { border-left: 3px solid var(--bad); padding-left: 8px; }
.td.done .td-title, .td.done .td-title a { color: var(--ink-3); text-decoration: line-through; }
.td-tick input { width: 20px; height: 20px; margin-top: 2px; cursor: pointer; }
.td-title { font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.td-title a { color: inherit; }
.td-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--ink-3); }
.td-who { display: grid; gap: 6px; }
.td-who select, .td-who input { width: 100%; padding: 5px 8px; font-size: 13px; }
button.link { background: none; border: 0; padding: 0; color: var(--brand); font-size: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 760px) { .td { grid-template-columns: 28px 1fr; } .td-who { grid-column: 2; } }

/* Training */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; }
.tr video { width: 100%; aspect-ratio: 16 / 10; background: #140C59; display: block; }
.tr-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.tr-body h3 { margin: 0; font-size: 16.5px; }
.tr-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.sec { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.cancel-box { border-color: var(--bad); }

/* Dream India Realty logo on the sign-in card */
.brandlogo { display: grid; justify-items: start; gap: 6px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.brandlogo img { width: 230px; height: auto; max-width: 100%; }
.brandlogo span { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---- Management dashboard ---- */
.mg { gap: 22px; }
.mg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.mg-sec { display: grid; gap: 10px; }
.mg-sec h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.mg-card { --tone: var(--brand-2); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: 12px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-width: 0; }
.mg-card.good { --tone: var(--good); } .mg-card.warn { --tone: #d18b0b; } .mg-card.bad { --tone: var(--bad); }
.mg-top { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.mg-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mg-v { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.mg-s { font-size: 12.5px; color: var(--ink-2); }
.mg-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.mg-l li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.mg-l li span, .mg-l li a { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.mg-l li b { font-weight: 600; white-space: nowrap; text-align: right; }
.mg-l li.good b { color: var(--good); } .mg-l li.warn b { color: var(--warn); } .mg-l li.bad b { color: var(--bad); }
.mg-h { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.mg-n { font-size: 12px; color: var(--ink-3); margin: 0; }
.mg-go { margin-top: auto; font-size: 13px; font-weight: 600; text-decoration: none; align-self: flex-end; }
@media (max-width: 520px) { .mg-v { font-size: 21px; } .mg-l li b { white-space: normal; } }

/* back link above every department page */
.crumb { display: flex; gap: 18px; align-items: center; padding: 14px 28px 0; font-size: 14px; font-weight: 600; }
.crumb a { text-decoration: none; color: var(--brand-2); }
.crumb a + a { color: var(--ink-3); font-weight: 500; }
@media (max-width: 720px) { .crumb { padding: 12px 16px 0; } }

/* communication with buyers */
.msgs { display: grid; gap: 10px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
.msg.in { border-left: 3px solid var(--brand-2); }
.msg.out { border-left: 3px solid var(--line-2); background: #fafbfc; }
.msg.unread { box-shadow: 0 0 0 2px var(--brand-tint); }
.msg-h { font-size: 13px; }
.msg-s { font-weight: 600; margin-top: 4px; }
.msg-b { margin-top: 6px; font-size: 13.5px; white-space: normal; overflow-wrap: anywhere; }
.msg-b.clip { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.msg-a { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.msg-x { margin-top: 6px; }

.mail-prev { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #fff; }
.mail-prev textarea { width: 100%; margin: 8px 0; }
.mail-sig { margin: 0; font: inherit; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; border-top: 1px dashed var(--line); padding-top: 8px; }
.mbadge { margin-left: 10px; background: var(--bad); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-decoration: none; }

/* CRM ↔ Accounts messages */
.chat { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.cmsg { max-width: 78%; padding: 10px 12px; border-radius: 10px; background: #f3f5f9; border: 1px solid #e3e7ef; align-self: flex-start; }
.cmsg.me { align-self: flex-end; background: #eaf3fb; border-color: #cfe1f3; }
.cmsg.sys { align-self: center; max-width: 92%; background: #fbf8ef; border-color: #eee2bf; }
.cmsg.open { border-left: 4px solid #c0392b; }
.cmeta { font-size: 12px; margin-bottom: 4px; }
.cbody { white-space: normal; word-wrap: break-word; }
.cact { margin-top: 6px; font-size: 12px; }
.pill.warn { background: #fdf1dc; color: #8a5a00; }
@media (max-width: 640px) { .cmsg { max-width: 94%; } }

/* chat window on every page */
.chatw { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chatb { width: 56px; height: 56px; border-radius: 50%; font-size: 24px; padding: 0; box-shadow: 0 6px 18px rgba(20,12,89,.28); position: relative; }
.chatn { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #c0392b; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.chatp { width: 380px; height: min(560px, calc(100vh - 110px)); background: #fff; border: 1px solid #dfe3ec; border-radius: 14px; box-shadow: 0 12px 40px rgba(20,12,89,.22); display: flex; flex-direction: column; overflow: hidden; }
.chatp[hidden], .chatpop[hidden] { display: none; }
.chath { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--brand, #140C59); color: #fff; }
.chath a { color: #fff; margin-right: 10px; }
.chatx { background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; padding: 0 4px; box-shadow: none; }
.chatl { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fafbfd; }
.chatl .cmsg { max-width: 88%; font-size: 13px; }
.chatl .cmsg.sys { max-width: 96%; }
.chatf { border-top: 1px solid #e3e7ef; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.chatr { display: flex; gap: 6px; align-items: center; }
.chatr input[name=unit] { width: 110px; margin: 0; }
.chatr select { margin: 0; width: auto; }
.chatr textarea { flex: 1; margin: 0; resize: none; font-size: 13px; }
.chatr .check { margin: 0; white-space: nowrap; }
.chatpop { max-width: 320px; background: #fff; border: 1px solid #dfe3ec; border-left: 4px solid var(--brand, #140C59); border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(20,12,89,.2); font-size: 13px; cursor: pointer; }
@media (max-width: 640px) { .chatw { right: 12px; bottom: 12px; } .chatw.on { left: 12px; } .chatp { width: 100%; height: calc(100vh - 100px); } }
@media print { .chatw { display: none; } }

.chats { background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 12px; padding: 3px 8px; margin-right: 10px; border-radius: 6px; box-shadow: none; }
.chats:hover { background: rgba(255,255,255,.25); }

/* sales summary strip */
.ss-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ss-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.ss-b { border: 1px solid #e3e7ef; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: #fbfcfe; }
.ss-b.good { border-left: 4px solid #1e8e5a; } .ss-b.warn { border-left: 4px solid #c58b00; } .ss-b.brand { border-left: 4px solid #140C59; background: #f3f2fb; }
.ss-l { font-size: 12px; color: #5c6478; text-transform: uppercase; letter-spacing: .03em; }
.ss-v { font-size: 22px; } .ss-s { font-size: 12px; color: #5c6478; }
.ss-t td, .ss-t th { white-space: nowrap; }
.warn-t { color: #8a5a00; }
.ss { min-width: 0; max-width: 100%; }
.ss .table-wrap { overflow-x: auto; }
.ss-b.grey { border-left: 4px solid #8a93a6; }

.upd { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 1000; background: #140C59; color: #fff; padding: 10px 14px; border-radius: 10px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 24px rgba(20,12,89,.3); font-size: 14px; }
.upd button { background: #fff; color: #140C59; border: 0; padding: 6px 12px; border-radius: 6px; font-weight: 600; }

.depbar { border-left: 4px solid #140C59; }
.mbadge.dep { background: #140C59; }

/* ---------- flat file: one window per flat ---------- */
.ff-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ff-head h1 { margin: 0 0 4px; font-size: 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ff-names { font-weight: 600; color: var(--ink-2); }
.ff-head p { margin: 0 0 10px; }
.ff-people { display: grid; gap: 6px; }
.ff-person { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.ff-person span { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.ff-person a { font-weight: 600; }
.ff-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ff-money .kpi { background: #f6f7fb; border-radius: 10px; padding: 10px 12px; }
.ff-money .kpi.bad b { color: var(--bad, #b42318); }
.ff-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: stretch; }
.ff-actions > button, .ff-actions > .ff-more > summary { margin: 0; height: 100%; display: inline-flex; align-items: center; }
.ff-more { position: relative; }
.ff-more summary { list-style: none; cursor: pointer; }
.ff-more summary::-webkit-details-marker { display: none; }
.ff-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20,12,89,.15); padding: 6px; display: grid; }
.ff-menu a, .ff-menu button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.ff-menu a:hover, .ff-menu button:hover { background: var(--brand-tint); }
.ff-menu .bad-t { color: var(--bad, #b42318); }
.ff-tabs { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; padding-bottom: 2px; }
.ff-tabs button { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 auto; text-align: center; justify-content: center; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
  padding: 10px 14px; border: 1.5px solid #140C59; border-radius: 10px; background: #fff; color: #140C59; font-weight: 700; font-size: 14px; }
.ff-tabs button:hover { background: #ECEBF6; }
.ff-tabs button[aria-selected="true"] { background: #140C59; color: #fff; }
.ff-tabs button:focus-visible { outline: 2px solid #140C59; outline-offset: 2px; }
.ff-n:empty { display: none; }
.ff-n { font-size: 12px; background: #ECEBF6; color: #140C59; border-radius: 10px; padding: 1px 8px; }
.ff-n.hot { background: #fde2e1; color: #b42318; }
.ff-tabs button[aria-selected="true"] .ff-n { background: rgba(255,255,255,.2); color: #fff; }
.ff-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ff-next > div { display: grid; gap: 3px; background: #f6f7fb; border-radius: 10px; padding: 10px 12px; }
.ff-next b { font-size: 15px; }
.ff-chat { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.ff-cm { background: #f6f7fb; border-radius: 10px; padding: 8px 12px; }
.ff-cm.sys { background: #fff8e6; }
@media (max-width: 860px) { .ff-head { grid-template-columns: 1fr; } .ff-money { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ff-tabs button { flex: 0 0 auto; } }

/* flats & buyers: quick filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #140C59; background: #fff; color: #140C59; font-weight: 700; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.chip b { font-size: 12.5px; background: #ECEBF6; border-radius: 10px; padding: 1px 8px; }
.chip.hot b { background: #fde2e1; color: #b42318; }
.chip:hover { background: #ECEBF6; }
.chip.on { background: #140C59; color: #fff; }
.chip.on b { background: rgba(255,255,255,.2); color: #fff; }
.chip:focus-visible { outline: 2px solid #140C59; outline-offset: 2px; }
table.flats tr.click:hover td { background: var(--brand-tint); }
/* CRM department page: the daily work big, the tools smaller underneath */
.hgroup.more { margin-top: 26px; }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.tiles.small .tile { min-height: 0; padding: 14px; gap: 6px; box-shadow: 0 1px 2px rgba(20,12,89,.05); }
.tiles.small .tile p { display: none; }
/* a buyer's new email or WhatsApp: pop-up above the Dream Chat button */
.mailpop { position: fixed; right: 18px; bottom: 92px; z-index: 60; max-width: 340px; background: #fff; color: var(--ink); border: 1.5px solid #140C59; border-left: 6px solid #0E8C9B; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(20,12,89,.2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.mailpop b { color: #140C59; }
.mailpop[hidden] { display: none; }
/* management dashboard: the daily view */
.mg-tabs button { flex: 0 0 auto; min-width: 130px; }
.mg-six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mg-big { --tone: #140C59; display: grid; gap: 4px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--tone); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(20,12,89,.06); min-width: 0; }
.mg-big:hover { border-color: #9AA6C8; border-left-color: var(--tone); }
.mg-big.good { --tone: var(--good); } .mg-big.warn { --tone: #d18b0b; } .mg-big.bad { --tone: var(--bad); }
.mg-big .mg-v { font-size: 30px; letter-spacing: -.01em; color: #140C59; }
.mg-big.bad .mg-v { color: var(--bad); }
.mg-big .mg-s { font-size: 13.5px; }
.mg-cnt { display: inline-block; margin-left: 6px; background: var(--bad); color: #fff; border-radius: 10px; padding: 0 8px; font-size: 12px; letter-spacing: 0; vertical-align: 1px; }
.mg-att { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mg-att a { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.mg-att a:hover { background: var(--brand-tint); }
.mg-att .dot { width: 10px; height: 10px; border-radius: 50%; background: #d18b0b; }
.mg-att li.bad .dot { background: var(--bad); }
.mg-att li.bad a { border-left: 4px solid var(--bad); } .mg-att li.warn a { border-left: 4px solid #d18b0b; }
.mg-att b { color: #140C59; }
.mg-clear { background: var(--good-tint); color: var(--good); border-radius: 12px; padding: 16px 18px; font-weight: 700; font-size: 15px; }
@media (max-width: 900px) { .mg-six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mg-six { grid-template-columns: 1fr; gap: 10px; } .mg-big { padding: 14px 16px; } .mg-big .mg-v { font-size: 26px; } .mg-bar { flex-wrap: wrap; } }
.mg-six + .mg-sec { margin-top: 12px; }
table.flats td:first-child, table.flats td .pill { white-space: nowrap; }
/* management dashboard in the Collections dashboard's look */
.mg-hero .hero-in { padding-bottom: 0; }
.mg-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #C6CCEB; font-size: 14px; margin: 6px 0 14px; }
.mg-sync .dot { width: 9px; height: 9px; border-radius: 50%; background: #3FBF7F; }
.mg-act { margin-left: auto; display: inline-flex; gap: 8px; }
.mg-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.mg-btn:hover { background: rgba(255,255,255,.1); }
.mg-tabs2 { display: flex; gap: 28px; overflow-x: auto; }
.mg-tabs2 button { all: unset; cursor: pointer; padding: 10px 2px 12px; color: #C6CCEB; font-weight: 700; font-size: 17px; border-bottom: 4px solid transparent; white-space: nowrap; }
.mg-tabs2 button[aria-selected="true"] { color: #fff; border-bottom-color: #64C2E6; }
.mg-tabs2 button:focus-visible { outline: 2px solid #64C2E6; outline-offset: 2px; }
.mfigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #D9DDD6; border-radius: 14px; overflow: hidden; }
.mfigs.in { border-radius: 10px; }
.mfig { display: grid; align-content: start; gap: 4px; padding: 18px 20px; box-shadow: 0 0 0 .5px #D9DDD6; color: inherit; text-decoration: none; min-width: 0; }
.mfig:hover { box-shadow: 0 0 0 2px #64C2E6 inset; }
.mfig span { font-size: 15px; color: #5E6A72; }
.mfig b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: #140C59; line-height: 1.15; overflow-wrap: anywhere; }
.mfig small { font-size: 14px; color: #5E6A72; line-height: 1.4; }
.mfig.good b { color: #117A65; } .mfig.warn b { color: #B7791F; } .mfig.bad b { color: #B42318; }
.mfig ul { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #ECEEE9; display: grid; gap: 3px; }
.mfig li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #5E6A72; }
.mfig li i { font-style: normal; min-width: 0; overflow-wrap: anywhere; } .mfig li em { font-style: normal; font-weight: 600; color: #140C59; white-space: nowrap; }
.mfig li.good em { color: #117A65; } .mfig li.warn em { color: #B7791F; } .mfig li.bad em { color: #B42318; }
.mpanel { background: #fff; border: 1px solid #D9DDD6; border-radius: 14px; padding: 18px 20px; display: grid; gap: 14px; margin-top: 18px; }
.mpanel h2 { margin: 0; font-size: 20px; color: #140C59; letter-spacing: 0; text-transform: none; }
.mpanel .mg-att a { border-color: #ECEEE9; }
@media (max-width: 900px) { .mfigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mfig { padding: 14px 14px; } .mfig b { font-size: 24px; } .mfig span { font-size: 14px; } .mfig small { font-size: 12.5px; } .mpanel { padding: 14px; } .mg-tabs2 button { font-size: 16px; } .mg-act { margin-left: 0; } }
.kpi.kbtn { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: 6px 10px; margin: -6px -10px; border-radius: 10px; }
.kpi.kbtn:hover { background: var(--brand-tint); }
.kpi.kbtn.bad b { color: var(--bad); }
.kpi.kbtn:focus-visible { outline: 2px solid var(--brand); }
details.cm-teams > summary { cursor: pointer; list-style: none; }
details.cm-teams > summary::-webkit-details-marker { display: none; }
details.cm-teams > summary::before { content: '▸ '; color: var(--ink-3); }
details.cm-teams[open] > summary::before { content: '▾ '; }
/* department pages: five smaller tiles a row, so every page fits on one screen */
.tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tiles.five .tile { min-height: 0; padding: 14px; gap: 8px; border-radius: 14px; }
.tiles.five .tile .ic { width: 38px; height: 38px; border-radius: 10px; }
.tiles.five .tile .ic svg { width: 20px; height: 20px; }
.tiles.five .tile h3 { font-size: 15.5px; line-height: 1.25; }
.tiles.five .tile p { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tiles.five .tile .open { font-size: 13px; }
.hm .hgroup { gap: 10px; }
@media (max-width: 1250px) { .tiles.five { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tiles.five .tile p { display: none; } }
/* Collections dashboard */
.csvg { width: 100%; height: auto; display: block; font: 11px system-ui, -apple-system, Segoe UI, sans-serif; fill: #5E6A72; }
.cleg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #5E6A72; }
.cleg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.csub { margin: 4px 0 0; font-size: 14px; color: #5E6A72; font-weight: 600; }
.cdays { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.cdlist { display: grid; gap: 4px; max-height: 520px; overflow: auto; padding-right: 4px; }
.cdlist button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #ECEEE9; border-radius: 10px; background: #fff; font-size: 14px; color: #140C59; }
.cdlist button small { display: block; color: #5E6A72; font-size: 12px; }
.cdlist button b { color: #117A65; white-space: nowrap; }
.cdlist button[aria-pressed="true"] { border-color: #140C59; box-shadow: inset 0 0 0 1px #140C59; }
.cdlist button:hover { background: #F6F7FB; }
@media (max-width: 800px) { .cdays { grid-template-columns: 1fr; } .cdlist { max-height: 260px; } }
/* Collections page */
.cv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.cv-card { display: grid; gap: 4px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: inherit; text-decoration: none; border-top: 4px solid #140C59; }
a.cv-card:hover { background: var(--brand-tint); }
.cv-card.good { border-top-color: var(--good); } .cv-card.warn { border-top-color: #D18B0B; } .cv-card.bad { border-top-color: var(--bad); }
.cv-card span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.cv-card b { font-size: 28px; color: #140C59; letter-spacing: -.01em; }
.cv-card small { font-size: 13px; color: var(--ink-2); }
.cv-card small b { font-size: 13px; }
.cv-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cv-h h2 { margin: 0; }
.cv-stack { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #EEF0EC; }
.cv-stack i { display: block; height: 100%; }
.cv-legend { display: grid; gap: 8px; margin-top: 14px; }
.cv-legend div { display: grid; grid-template-columns: 14px 1fr auto 52px; gap: 10px; align-items: center; font-size: 14px; }
.cv-legend i { width: 12px; height: 12px; border-radius: 3px; }
.cv-legend b { font-variant-numeric: tabular-nums; } .cv-legend em { font-style: normal; color: var(--ink-3); text-align: right; font-size: 13px; }
.cv-age { display: grid; gap: 8px; }
.cv-age a { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; padding: 4px 6px; border-radius: 8px; }
.cv-age a:hover { background: var(--brand-tint); }
.cv-age b { text-align: right; font-variant-numeric: tabular-nums; }
.cv-bar { height: 10px; border-radius: 6px; background: #EEF0EC; overflow: hidden; }
.cv-bar i { display: block; height: 100%; background: var(--good); border-radius: 6px; }
.cv-sub { margin: 16px 0 6px; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.cv-top div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 5px 0; border-bottom: 1px solid #F0F1EE; }
.cv-top div:last-child { border-bottom: 0; }
.cv-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cv-next > div { display: grid; gap: 3px; background: #f6f7fb; border-radius: 10px; padding: 12px 14px; }
.cv-next span { font-size: 13px; color: var(--ink-3); } .cv-next b { font-size: 18px; color: #140C59; } .cv-next small { font-size: 13px; color: var(--ink-2); }
.cv-wings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cv-wing { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.cv-wing h3 { margin: 0; font-size: 16px; color: #140C59; }
.cv-wrow { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .cv-wrow span { color: var(--ink-3); } .warn-t { color: #B7791F; }
@media (max-width: 1000px) { .cv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cv-kpis { grid-template-columns: 1fr; } .cv-card b { font-size: 24px; } .cv-age a { grid-template-columns: 90px 1fr 80px; } }
.cv-card small b.bad-t { color: var(--bad); } .cv-card small b.good-t { color: var(--good); }
.hubtabs { margin: 18px 28px -6px; max-width: 1124px; }
.hubtabs button { flex: 0 1 auto; min-width: 170px; }
@media (max-width: 720px) { .hubtabs { margin: 14px 16px -6px; } .hubtabs button { min-width: 0; } }

.cv-wrow.small { font-size: 13px; } .cv-wrow.small span { color: var(--ink-2); }
/* one look everywhere: headings in Dream India navy */
.page h1, .page-head h1, .panel h2 { color: #140C59; }
.page .hero h1 { color: #fff; } /* the greeting on the dark banner */
/* tables: short values stay on one line; the action buttons stack instead of running off the edge */
.pill { white-space: nowrap; }
td:first-child, td a[href^="#/booking/"] { white-space: nowrap; }
td.row-acts { white-space: normal; min-width: 128px; }
td.row-acts button, td.row-acts .btn { display: flex; width: 100%; justify-content: center; margin: 0 0 4px; }

/* registration checklist on the flat file */
.regsteps{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.regsteps li{display:flex;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--line,#e3e3ea);border-radius:10px;background:#fff}
.regsteps li.done{background:var(--brand-tint)}
.regsteps li.next{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand) inset}
.rs-dot{flex:0 0 22px;height:22px;border-radius:50%;border:2px solid #b9b9c8;display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:#fff}
.regsteps li.done .rs-dot{background:var(--brand);border-color:var(--brand)}
.regsteps li.next .rs-dot{border-color:var(--brand)}

/* contact icons on the flat file */
.ff-person .ff-icons{gap:8px;align-items:center}
.ff-person a.ic{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--line,#e3e3ea);background:#fff;color:var(--brand);font-weight:400;text-decoration:none}
.ff-person a.ic:hover{background:var(--brand-tint)}
.ff-person a.ic-wa{color:#1a9e55}
.ff-person a.ic-wa:hover{background:#e7f6ee}

/* flat file: every section on one page; the buttons stay at the top and jump to a section */
.ff-jump { position: sticky; top: 0; z-index: 6; background: var(--bg, #F6F6FA); padding: 8px 0; margin-bottom: 6px; }
.ff-pane { scroll-margin-top: 76px; }
.ff-pane + .ff-pane { margin-top: 22px; }
h2.ff-sec { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #5E6480); margin: 0 0 10px; padding-top: 6px; border-top: 2px solid var(--brand-tint, #ECEBF6); }
/* phone: filter buttons in one row you swipe sideways, instead of a tall stack */
@media (max-width: 820px) { .chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chips .chip { flex: 0 0 auto; } }

/* DreamComm (company chat) button */
.dcomm { position: relative; background: linear-gradient(120deg, #2563EB, #1E3A8A); border-color: #1E3A8A; }
.dcomm .chatn, .mdcomm .chatn { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; border-radius: 10px; background: #1d7a4f; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.mdcomm { display: none; position: relative; }
.mdcomm img { display: block; border-radius: 7px; }
@media (max-width: 820px) { .mdcomm { display: block; } .top .dcomm { display: none; } }

/* the menu on the left and the column headings of long tables stay in view while the page scrolls */
@media (min-width: 821px) {
  .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: start; scrollbar-width: thin; }
  .table-wrap { max-height: calc(100vh - 150px); overflow: auto; }
  .table-wrap thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; box-shadow: 0 1px 0 var(--line); }
}
