/* build 2026-11-19a */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", "DejaVu Sans", sans-serif;
  background: #edf1f7;
  color: #1b2a4a;
}
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e9f2;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: relative;
}
.logo { font-size: 22px; font-weight: 700; color: #1e2a4a; line-height: 1.1; }
.logo span { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2.5px; color: #6b7793; }
.company { position: absolute; left: 50%; transform: translateX(-50%); font-size: 15px; font-weight: 600; color: #1b2a4a; }
.signout { font-size: 14.5px; font-weight: 600; color: #2f5bd7; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.4px; }
.sub { margin-top: 6px; font-size: 15px; color: #5d6b89; }
.chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.chip {
  background: #ffffff; border-radius: 20px; padding: 9px 15px;
  font-size: 13.5px; color: #5d6b89; display: flex; align-items: center; gap: 8px;
  border: 1px solid #eef1f7;
}
.chip b { color: #1b2a4a; font-size: 14px; }
.chip .sep { color: #c3cbdd; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.red { background: #e5484d; } .dot.amber { background: #f5a524; } .dot.green { background: #30a46c; }
.searchrow { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 220px; height: 46px; border: none; border-radius: 10px;
  background: #ffffff; padding: 0 16px; font-size: 14.5px; color: #8a94ab;
}
.filters { display: flex; gap: 8px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: 20px; background: #ffffff;
  font-size: 14px; font-weight: 600; color: #1b2a4a; display: flex; align-items: center;
  border: 1px solid #eef1f7;
}
.filter.active { background: #1e2a4a; color: #ffffff; border-color: #1e2a4a; }
.card { background: #ffffff; border-radius: 14px; border: 1px solid #e9edf5; margin-top: 20px; overflow: hidden; }
.card-head { padding: 18px 24px; font-size: 16.5px; font-weight: 700; border-bottom: 1px solid #eef1f7; }
.table-head, .trow {
  display: grid;
  grid-template-columns: 1.8fr 1.25fr 1.35fr 1.5fr 1.25fr 1.05fr;
  gap: 16px; align-items: center; padding: 0 24px;
}
.table-head { padding: 14px 24px; font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; color: #8a94ab; border-bottom: 1px solid #eef1f7; }
.trow { padding: 18px 24px; border-bottom: 1px solid #f0f3f9; }
.trow:last-child { border-bottom: none; }
.bname { font-size: 15.5px; font-weight: 700; }
.bsub { font-size: 13px; color: #8a94ab; margin-top: 3px; }
.cell { font-size: 14.5px; }
.cell .big { font-weight: 700; font-size: 15.5px; }
.cell .note { font-size: 13px; margin-top: 3px; }
.amber { color: #b45309; } .red { color: #d92d20; } .muted { color: #8a94ab; }
.link { color: #2f5bd7; font-weight: 600; text-decoration: none; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.red-pill { background: #fdecea; color: #d92d20; }
.amber-pill { background: #fdf3e1; color: #b45309; }
.green-pill { background: #e7f5ee; color: #18794e; }
.status-cell { text-align: right; }
.foot { text-align: center; color: #8a94ab; font-size: 13.5px; margin-top: 26px; }
.back { color: #2f5bd7; font-size: 14px; font-weight: 600; text-decoration: none; }
.bh1 { font-size: 30px; font-weight: 700; margin-top: 14px; letter-spacing: -0.4px; }
.timeline { display: flex; padding: 26px 24px 24px; position: relative; }
.tl-line { position: absolute; top: 39px; left: 9%; right: 9%; height: 2px; background: #e3e8f2; }
.tl-step { flex: 1; position: relative; text-align: center; }
.tl-dot {
  width: 26px; height: 26px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff; border: 2.5px solid #d5dbe8; position: relative; z-index: 1;
  color: #ffffff; font-size: 14px; font-weight: 700;
}
.tl-step.done .tl-dot { background: #1e2a4a; border-color: #1e2a4a; }
.tl-step.current .tl-dot { border-color: #1e2a4a; background: #ffffff; }
.tl-step.current .tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2f5bd7; }
.tl-label { margin-top: 10px; font-size: 14px; font-weight: 600; color: #8a94ab; }
.tl-step.done .tl-label, .tl-step.current .tl-label { color: #1b2a4a; }
.tl-step.current .tl-label { font-weight: 700; }
.tl-detail { margin-top: 4px; font-size: 12.5px; color: #8a94ab; line-height: 1.45; }
.tl-detail b { color: #1b2a4a; font-size: 13px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 24px; border-top: 1px solid #eef1f7; }
.card-foot .q { font-size: 14.5px; font-weight: 600; }
.card-foot .a { font-size: 13px; color: #8a94ab; margin-top: 2px; }
.btn-outline {
  border: 1.5px solid #2f5bd7; color: #2f5bd7; border-radius: 10px; padding: 11px 18px;
  font-size: 14px; font-weight: 700; white-space: nowrap; background: #ffffff; text-decoration: none;
}
.sched { display: grid; grid-template-columns: 1fr 1fr; }
.sched > div { padding: 20px 24px; }
.sched > div:first-child { border-right: 1px solid #eef1f7; }
.sched h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; color: #8a94ab; margin-bottom: 12px; }
.sched .due { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sched .note { margin-top: 8px; font-size: 13.5px; color: #5d6b89; }
.empty { padding: 22px 24px 26px; }
.empty .t { font-size: 15px; font-weight: 700; }
.empty .d { margin-top: 6px; font-size: 14px; color: #5d6b89; line-height: 1.55; max-width: 640px; }

@media (max-width: 600px) {
  .topbar { padding: 0 18px; }
  .company { display: none; }
  .logo { font-size: 19px; } .logo span { font-size: 8px; }
  .wrap { padding: 26px 16px 48px; }
  h1, .bh1 { font-size: 26px; }
  .chips { flex-direction: column; align-items: flex-start; }
  .searchrow { display: block; }
  .search { width: 100%; }
  .filters { margin-top: 10px; flex-wrap: wrap; }
  .table-head { display: none; }
  .trow { display: block; padding: 18px; position: relative; }
  .trow .status-cell { position: absolute; top: 16px; right: 16px; }
  .trow .cell { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; font-size: 14px; }
  .trow .cell::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: #8a94ab; padding-top: 3px; }
  .trow .cell .v { text-align: right; }
  .trow .cell .note { margin-top: 2px; }
  .sched { grid-template-columns: 1fr; }
  .sched > div:first-child { border-right: none; border-bottom: 1px solid #eef1f7; }
  .timeline { flex-direction: column; padding: 20px 24px; }
  .tl-line { left: 36px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; }
  .tl-step { display: flex; gap: 14px; text-align: left; padding: 11px 0; flex: none; }
  .tl-dot { margin: 0; flex: none; }
  .tl-label { margin-top: 2px; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .btn-outline { width: 100%; text-align: center; }
}

.flats-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.flats-summary { font-size: 13.5px; font-weight: 500; color: #5d6b89; }
.flats-summary b { color: #1b2a4a; font-weight: 700; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; }
.fgroup { padding: 16px 24px 18px; }
.fgroup:first-child { border-right: 1px solid #eef1f7; }
.fgroup h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; color: #8a94ab; margin-bottom: 8px; }
.frow { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f4f6fb; font-size: 14px; font-weight: 600; }
.frow:last-child { border-bottom: none; }
.fstatus { display: flex; align-items: center; gap: 10px; }
.ftime { font-size: 12.5px; font-weight: 500; color: #8a94ab; min-width: 86px; text-align: right; }
.blue-pill { background: #e8eefc; color: #2f5bd7; }
.flats-foot { padding: 14px 24px; border-top: 1px solid #eef1f7; font-size: 13px; color: #8a94ab; line-height: 1.55; }
@media (max-width: 600px) {
  .fgrid { grid-template-columns: 1fr; }
  .fgroup:first-child { border-right: none; border-bottom: 1px solid #eef1f7; }
}

.bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 14px 24px 0; background: #eef1f7; }
.bar span { display: block; height: 100%; }
.bar .b-ins { background: #30a46c; } .bar .b-bkd { background: #2f5bd7; } .bar .b-arr { background: #f5a524; }
.legend { display: flex; gap: 18px; padding: 10px 24px 0; font-size: 12.5px; color: #5d6b89; flex-wrap: wrap; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* multiple visits */
.next-label { padding: 20px 24px 0; font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; color: #8a94ab; }
.more { border-top: 1px solid #eef1f7; padding: 14px 24px 8px; }
.more h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; color: #8a94ab; margin-bottom: 4px; }
.vrow { display: grid; grid-template-columns: 168px 1fr 172px auto; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid #f4f6fb; }
.vrow:last-child { border-bottom: none; }
.vdate .d { font-size: 15px; font-weight: 700; }
.vdate .t { font-size: 12.5px; color: #8a94ab; margin-top: 2px; }
.vname { font-size: 14.5px; font-weight: 700; }
.vscope { font-size: 13px; color: #5d6b89; margin-top: 2px; }
.vmini { display: flex; align-items: center; }
.vmini .md { width: 9px; height: 9px; border-radius: 50%; background: #d5dbe8; flex: none; }
.vmini .md.done { background: #1e2a4a; }
.vmini .md.cur { width: 13px; height: 13px; background: #ffffff; border: 2.5px solid #2f5bd7; }
.vmini .mc { width: 16px; height: 2px; background: #e3e8f2; flex: none; }
.vmini .mc.done { background: #1e2a4a; }
.vcap { font-size: 12px; color: #8a94ab; margin-top: 6px; }
.vpast { padding: 12px 24px; border-top: 1px solid #eef1f7; font-size: 13px; color: #8a94ab; }
@media (max-width: 600px) {
  .vrow { grid-template-columns: 1fr auto; row-gap: 10px; }
  .vstep { grid-column: 1 / -1; }
}
