/* ABC Access Hub */
:root {
  --navy: #10243b; --navy-2: #173352; --ink: #13202f; --text: #263445; --muted: #7b8796; --line: #e6e9ee;
  --bg: #f5f6f8; --panel: #fff; --teal: #0f8f7e; --teal-dark: #0b7566; --teal-soft: #e3f4f1;
  --ok: #0f8a4b; --ok-bg: #e4f5ec; --bad: #c0392b; --bad-bg: #fdecea; --warn: #9a6200; --warn-bg: #fff3d9;
  --info: #1f5f9e; --info-bg: #e7f0fa; --radius: 12px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 var(--sans); color: var(--text); background: var(--bg); }
.hidden { display: none !important; }
button { font: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.block { display: block; }
small, .help { color: var(--muted); font-size: 12.5px; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .01em; }
.right { text-align: right; }
.center { text-align: center; margin: 16px 0; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.bad-text { color: var(--bad) !important; }
.warn-text { color: var(--warn); }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.period, .aside-dot { color: #2fd0b0; }
.period { color: var(--teal); }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .15s; }
.button.primary { background: var(--teal); color: #fff; }
.button.primary:hover { background: var(--teal-dark); }
.button.outline { background: #fff; border-color: var(--line); color: var(--ink); }
.button.outline:hover { border-color: #c8cfd8; }
.button.danger-outline { background: #fff; border-color: #f0c9c4; color: var(--bad); }
.button.danger-outline:hover { background: var(--bad-bg); }
.button.small { padding: 6px 11px; font-size: 13px; }
.button.block { width: 100%; justify-content: space-between; padding: 14px 18px; margin-top: 10px; }
.button:disabled { opacity: .6; cursor: progress; }
.text-button { background: none; border: none; color: var(--teal); font-weight: 600; cursor: pointer; padding: 4px 0; }
.link, .link-strong { color: var(--teal); cursor: pointer; }
.link { text-decoration: underline; }
.link-strong { font-weight: 600; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* ---------- sign in ---------- */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 420px); background: #fff; }
.login-photo { grid-column: 1 / -1; grid-row: 1; margin: 18px; min-width: 0; border-radius: 18px; position: relative; overflow: hidden;
  background: #cfd8dc; box-shadow: 0 18px 40px rgba(16, 36, 59, .16); isolation: isolate; }
.login-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--login-bg, radial-gradient(circle at 30% 20%, #1d5fbf 0, #123a6b 35%, #0b2446 75%));
  transform-origin: 45% 55%; animation: kenburns 38s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1.2%, -0.6%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 36px !important; }
.pw-eye { position: absolute; right: 2px; top: 6px; background: none; border: none; color: #5b6876; cursor: pointer; padding: 6px; border-radius: 6px; }
.pw-eye:hover, .pw-eye.on { color: var(--teal); }
.caps-warn { margin: -8px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.aside-features { list-style: none; padding: 0; margin: -6px 0 26px; display: grid; gap: 9px; font-size: 13.5px; color: rgba(255, 255, 255, .92); }
.aside-features li { display: flex; align-items: center; gap: 10px; }
.aside-features span { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 12px;
  background: rgba(47, 208, 176, .18); color: #2fd0b0; border: 1px solid rgba(47, 208, 176, .3); text-shadow: none; }
.login-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 25, 45, .30) 0%, rgba(10, 25, 45, .08) 35%, rgba(10, 25, 45, 0) 55%); }
.login-photo img { display: none; }
.login-card { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; position: relative; z-index: 2;
  display: flex; flex-direction: column; width: min(400px, calc(100% - 100px)); margin: 0 0 0 52px; padding: 36px 34px 28px;
  background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .55); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(8, 22, 40, .25); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
@media (min-width: 1001px) {
  .login-card { animation: rise .7s .1s ease-out both; }
  .aside-content > * { animation: rise .7s ease-out both; }
  .aside-content > *:nth-child(2) { animation-delay: .25s; } .aside-content > *:nth-child(3) { animation-delay: .35s; }
  .aside-content > *:nth-child(4) { animation-delay: .45s; } .aside-content > *:nth-child(5) { animation-delay: .55s; }
  .aside-content > *:nth-child(n+6) { animation-delay: .65s; }
  .login-screen .login-card > p { color: #2c3a48; }
  .login-screen .login-card .login-footer { color: #33414f; border-top-color: rgba(16, 36, 59, .15); }
  .login-card #login-form input { border-bottom-color: rgba(16, 36, 59, .28); }
  .login-card #login-form input::placeholder { color: #5b6876; }
  .login-card .eyebrow { color: #0b7566; }
}
.logo-box { width: 42px; height: 42px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center;
  font: 700 21px var(--serif); position: relative; margin-bottom: 22px; }
.logo-box span { position: absolute; top: 3px; right: 5px; font-size: 9px; color: #2fd0b0; }
.logo-box.small { width: 34px; height: 34px; font-size: 17px; margin: 0; }
.login-card h1 { font: 400 38px/1.15 var(--serif); color: var(--ink); margin: 0 0 12px; letter-spacing: -.01em; }
.login-card > p { color: var(--muted); margin: 0 0 30px; }
#login-form label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 6px; }
#login-form input { width: 100%; border: none; border-bottom: 1px solid #dfe3e8; padding: 10px 2px 11px; font-size: 15px; background: transparent; margin-bottom: 14px; }
#login-form input:focus { outline: none; border-bottom: 2px solid var(--teal); padding-bottom: 10px; }
.form-error { color: var(--bad); font-size: 14px; min-height: 1.2em; margin-top: 10px; }
.login-footer { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; margin-top: 34px; padding-top: 18px; border-top: 1px solid #eef0f3; font-size: 12px; color: #a0a8b3; }
.login-footer > span { white-space: nowrap; }
.mobile-abc-credit { display: none; }
.login-aside { grid-column: 2; grid-row: 1; position: relative; z-index: 1; padding: 18px 18px 18px 0; }
.aside-content { height: 100%; border-radius: 0 18px 18px 0; padding: 44px 34px 44px 76px; color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
  text-shadow: 0 1px 12px rgba(5, 18, 38, .35);
  background: linear-gradient(90deg, rgba(11, 36, 70, 0) 0%, rgba(11, 36, 70, .55) 16%, rgba(11, 38, 74, .82) 38%, rgba(12, 52, 88, .9) 70%, rgba(14, 78, 108, .92) 100%); }
.aside-content::after { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; right: -230px; top: -190px; border: 1px solid rgba(255, 255, 255, .07); }
.aside-mark, .abc-brand-caption { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: rgba(255, 255, 255, .78); }
.login-aside h2 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 18px; }
.login-aside p { color: rgba(255, 255, 255, .85); max-width: 440px; margin: 0 0 26px; font-size: 14.5px; }
.abc-brand-panel { display: flex; flex-direction: column; gap: 12px; }
.abc-logo-card { background: #fff; border-radius: 12px; padding: 12px 14px; width: 100%; max-width: 300px; text-shadow: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.abc-logo-card img, .mobile-abc-credit img { display: block; width: 100%; height: auto; }
.abc-text-logo { text-align: center; color: #1b2d8f; padding: 10px 4px; }
.abc-text-logo b { display: block; font: italic 900 40px/1 var(--sans); letter-spacing: -.02em; }
.abc-text-logo strong { display: block; font-size: 16px; margin-top: 4px; }
.abc-text-logo small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #2a3fb3; margin-top: 4px; }
.aside-line { height: 1px; background: rgba(255, 255, 255, .15); margin: 32px 0 14px; }
.aside-smallprint { font-size: 12px; color: rgba(255, 255, 255, .65); }

/* ---------- shell ---------- */
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #c9d3df; display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; }
.brand strong { display: block; color: #fff; font: 600 18px var(--serif); }
.brand small { display: block; font-size: 9.5px; letter-spacing: .2em; color: #7f93ab; }
.sidebar-label, .sidebar-caption { font-size: 10px; letter-spacing: .18em; color: #6f849c; padding: 0 10px 10px; }
nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; background: none; border: none; color: #c9d3df; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-item.active { background: rgba(47, 208, 176, .14); color: #fff; box-shadow: inset 3px 0 0 #2fd0b0; }
.nav-icon { width: 18px; text-align: center; opacity: .85; }
.live-pill, .count-pill { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; }
.live-pill { background: rgba(255, 255, 255, .08); color: #8193a8; }
.live-pill.on { background: rgba(47, 208, 176, .18); color: #2fd0b0; }
.count-pill { background: #f0b429; color: #3b2a00; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; }
.sidebar-status { padding: 0 10px; font-weight: 600; font-size: 13.5px; }
.sidebar-status.ok { color: #2fd0b0; }
.sidebar-status.bad { color: #f2a65a; }
.sidebar-note { padding: 6px 10px 14px; font-size: 12px; color: #7f93ab; }
.signout { background: none; border: 1px solid rgba(255, 255, 255, .12); color: #c9d3df; padding: 9px 12px; border-radius: 8px; width: 100%; text-align: left; cursor: pointer; }
.signout:hover { background: rgba(255, 255, 255, .05); }
.sidebar-scrim, .menu-btn { display: none; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.breadcrumb { color: var(--muted); font-size: 14px; flex: 1; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.prototype { font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 5px 10px; border-radius: 999px; background: #eef1f5; color: var(--muted); }
.prototype.live { background: var(--teal-soft); color: var(--teal); }
.prototype.offline { background: var(--warn-bg); color: var(--warn); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.main-content { padding: 30px 32px 60px; max-width: 1280px; }

/* ---------- page parts ---------- */
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-heading h1 { font: 400 34px/1.15 var(--serif); color: var(--ink); margin: 0 0 6px; }
.page-heading p { margin: 0; color: var(--muted); max-width: 640px; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.stat-value { display: block; font: 400 32px/1.2 var(--serif); color: var(--ink); margin: 6px 0 4px; }
.stat-value.small-val { font-size: 22px; }
.stat-foot { font-size: 12.5px; color: var(--muted); }
.stat-foot strong { color: var(--ink); }
.panels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 16px; margin: 0; color: var(--ink); }
.panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.panel-tools { display: flex; gap: 10px; align-items: center; }
.panel-tools select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.panel-body { padding: 6px 20px 12px; }
.empty { color: var(--muted); text-align: center; padding: 26px 12px !important; font-size: 14px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f2f5; }
.list-row:last-child { border-bottom: none; }
.list-row.flat { border: none; padding: 0; }
.list-row strong { display: block; color: var(--ink); font-size: 14.5px; }
.list-row small { display: block; }
.clickable { cursor: pointer; }
.list-row.clickable:hover { background: #fafbfc; }
.mini-avatar { width: 34px; height: 34px; border-radius: 50%; background: #eef2f6; color: var(--navy); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.mini-avatar.ok { background: var(--ok-bg); color: var(--ok); }
.mini-avatar.bad { background: var(--bad-bg); color: var(--bad); }
.mini-avatar.car { font-size: 15px; }
.connection-card { padding: 26px 20px; text-align: center; }
.connection-symbol { font-size: 34px; color: #b5bec9; }
.connection-symbol.ok { color: var(--teal); }
.connection-symbol.bad { color: #f2a65a; }
.connection-card h3 { margin: 6px 0 4px; font: 400 22px var(--serif); color: var(--ink); }
.connection-card p { color: var(--muted); margin: 0 auto 16px; max-width: 360px; font-size: 14px; }
.connection-meta { display: inline-flex; gap: 10px; align-items: baseline; background: #f5f7f9; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; }
.connection-meta span { font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: #f0f6fb; border: 1px solid #d9e7f3; color: #2a4560; border-radius: 10px; padding: 13px 16px; margin-bottom: 16px; font-size: 14px; }
.notice > span { font-size: 16px; line-height: 1.3; }
.notice.warning { background: var(--warn-bg); border-color: #f3dca6; color: #6b4b06; }
.quick-search, .searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.quick-search { margin-bottom: 18px; max-width: 420px; }
.quick-search input, .searchbox input { border: none; outline: none; padding: 11px 0; flex: 1; background: transparent; min-width: 0; }
.quick-search span, .searchbox span { color: var(--muted); }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.table-toolbar .searchbox { flex: 1; max-width: 460px; }
#resident-count { color: var(--muted); font-size: 13.5px; }

/* ---------- tables & pills ---------- */
.table-wrapper, .table-wrap { overflow-x: auto; max-width: 100%; position: relative; }
.security-grid > *, .settings-stack > * { min-width: 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 11px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid #f0f2f5; vertical-align: top; font-size: 14px; }
tr:last-child td { border-bottom: none; }
tr.clickable:hover td { background: #f8fbfa; }
tr.fresh td { animation: flash 3s ease-out; }
@keyframes flash { from { background: #fff3c4; } to { background: transparent; } }
.unknown { color: var(--warn); font-weight: 600; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: #eef1f4; color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: var(--info-bg); color: var(--info); }
.door-chip { display: inline-block; background: #eef4f3; color: #245e56; border-radius: 6px; padding: 2px 8px; font-size: 12px; margin: 2px 2px 2px 0; }
.door-chip.open { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .searchbox { flex: 1; min-width: 220px; }
.filters select, .filters input[type=date] { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fff; }

/* ---------- lots ---------- */
.lot-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.lot-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-align: left; cursor: pointer; transition: .15s; }
.lot-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(15, 143, 126, .08); }
.lot-card.suspended { background: #fdf8f7; }
.lot-number { width: 62px; height: 58px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 400 21px var(--serif); flex: none; }
.lot-number small { font: 700 8.5px var(--sans); letter-spacing: .16em; color: #8ca3bd; }
.lot-card.suspended .lot-number { background: #7b3b33; }
.lot-info { flex: 1; min-width: 0; }
.lot-info strong { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-flags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.back-link { background: none; border: none; color: var(--teal); font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 14px; }
.flag-row { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- controllers & sync ---------- */
.row-actions { display: inline-flex; gap: 6px; align-items: center; position: relative; }
details.more { position: relative; }
details.more summary { list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more .menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16, 36, 59, .14); padding: 6px; z-index: 30; min-width: 240px; display: flex; flex-direction: column; }
details.more .menu button { background: none; border: none; text-align: left; padding: 9px 12px; border-radius: 7px; cursor: pointer; color: var(--ink); }
details.more .menu button:hover { background: #f3f6f8; }
details.more .menu button.danger { color: var(--bad); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 18px 20px 8px; }
.status-grid strong { display: block; color: var(--ink); margin-top: 4px; }
.door-status { padding: 6px 20px 18px; }
.sync-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card.small .stat-value { font-size: 26px; }

/* ---------- modal & forms ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 22, 38, .5); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 16px; width: min(660px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 8px; position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-header h2 { font: 400 26px var(--serif); margin: 0; color: var(--ink); }
.close-modal { background: #f2f4f7; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal-form { padding: 8px 24px 22px; }
.modal-intro { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .field-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.req { color: var(--bad); }
.field input, .field select, .field textarea, .inline-form input, .inline-form select, .stack-form input {
  border: 1px solid #dde2e8; border-radius: 8px; padding: 10px 11px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus, .stack-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 143, 126, .12); }
.wide { grid-column: 1 / -1; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
label.check.small { font-size: 12.5px; color: var(--muted); margin-left: auto; }
label.check input { width: 16px; height: 16px; accent-color: var(--teal); }
.door-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.door-group-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.door-group-head small { color: var(--muted); }
.door-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.sync-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.sync-line { font-size: 13px; padding: 6px 10px; border-radius: 7px; background: #f6f8fa; }
.sync-line.done { background: var(--ok-bg); color: #145c37; }
.sync-line.failed { background: var(--bad-bg); color: var(--bad); }
.sync-line.pending, .sync-line.running { background: var(--warn-bg); color: #6b4b06; }
.modal-actions { display: flex; gap: 8px; margin-top: 20px; align-items: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.inline-form input, .inline-form select { flex: 1; min-width: 130px; width: auto; }
.stack-form { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.stack-form .button { align-self: flex-start; }

/* ---------- people on a lot ---------- */
.people-list { padding: 14px 20px 18px; display: grid; gap: 12px; }
.person-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.person-card.loose { background: #fbfaf6; border-style: dashed; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head strong { display: block; color: var(--ink); font-size: 15.5px; }
.person-head small { display: block; }
.item-rows { margin: 12px 0 0 46px; display: flex; flex-direction: column; gap: 6px; }
.item-row { display: flex; align-items: center; gap: 10px; background: #f7f9fa; border-radius: 9px; padding: 8px 10px; }
.item-icon { width: 26px; text-align: center; font-size: 15px; flex: none; }
.item-icon.tag { color: var(--teal); }
.item-main { flex: 1; min-width: 0; background: none; border: none; text-align: left; padding: 0; cursor: pointer; color: inherit; }
.item-main strong { display: block; color: var(--ink); }
.item-main small { display: block; }
.item-main:hover strong { color: var(--teal); text-decoration: underline; }
.item-status { flex: none; }
.remove-btn { flex: none; background: #fff; border: 1px solid #f0c9c4; color: var(--bad); border-radius: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.remove-btn:hover { background: var(--bad-bg); }
.item-row.vehicle { align-items: flex-start; padding: 10px 12px; }
.item-row.vehicle .item-icon { padding-top: 2px; }
.plate { font-size: 15px; letter-spacing: .04em; }
.access-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e1e6ea; font-size: 13px; }
.access-kind { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 2px 7px; border-radius: 5px; }
.access-line .item-status { margin-left: auto; }
.item-empty { color: var(--muted); font-size: 13.5px; padding: 4px 0; }
.person-actions { display: flex; gap: 8px; margin: 12px 0 0 46px; }
.form-section { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.form-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.form-section small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.gates-details summary { cursor: pointer; color: var(--muted); font-size: 13.5px; padding: 4px 0; }
.gates-details[open] summary { margin-bottom: 6px; }

/* ---------- import, backups ---------- */
.file-drop { border: 2px dashed #d5dce3; border-radius: 12px; padding: 18px; text-align: center; background: #fafbfc; }
.file-drop input { font-size: 14px; }
.import-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 10px; }
.import-summary div { background: #f5f7f9; border-radius: 9px; padding: 8px 10px; text-align: center; }
.import-summary b { display: block; font: 400 22px var(--serif); color: var(--ink); }
.import-summary .bad-text b { color: var(--bad); }
.import-summary span { font-size: 11.5px; color: var(--muted); }
.import-table { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.import-table td, .import-table th { padding: 7px 10px; font-size: 13px; }
.backup-status { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 12px; }
.wide-panel { grid-column: 1 / -1; }
.settings-stack { display: grid; max-width: 900px; }

/* viewer role */
body.viewer .admin-only { display: none !important; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 100; max-width: 92vw; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--bad); }

/* ---------- responsive ---------- */
@media (max-width: 1150px) and (min-width: 1001px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-photo { margin: 18px; }
  .login-aside { display: none; }
  .login-card .mobile-abc-credit { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--muted); }
  .login-card .mobile-abc-credit img, .login-card .mobile-abc-credit .abc-text-logo { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-photo::before, .login-card, .aside-content > * { animation: none !important; }
}
@media (max-width: 1000px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-photo { grid-row: auto; order: -1; margin: 14px 14px 0; height: 210px; }
  .login-photo::before { background-size: cover; background-position: 50% 58%; }
  .login-photo::after { display: none; }
  .login-card { grid-row: auto; justify-self: stretch; width: auto; margin: 0; padding: 30px 26px 40px; background: #fff; box-shadow: none; border-radius: 0; backdrop-filter: none; }
  .mobile-abc-credit { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--muted); }
  .mobile-abc-credit img, .mobile-abc-credit .abc-text-logo { width: min(260px, 80%); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .22s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 55; }
  .menu-btn { display: block; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 36px; font-size: 18px; cursor: pointer; }
  .topbar { padding: 12px 16px; }
  .main-content { padding: 22px 16px 50px; }
  .panels-grid { grid-template-columns: 1fr; }
  .sync-summary { grid-template-columns: repeat(2, 1fr); }
  .page-heading h1 { font-size: 28px; }
}
@media (max-width: 600px) {
  .prototype { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .import-summary { grid-template-columns: repeat(3, 1fr); }
  .stat-value { font-size: 26px; }
  .lot-directory { grid-template-columns: 1fr; }
  .login-card h1 { font-size: 31px; }
  th, td { padding: 10px 10px; }
  .people-list { padding: 12px; }
  .item-rows, .person-actions { margin-left: 0; }
  .item-row { flex-wrap: wrap; }
  .item-main { flex-basis: calc(100% - 40px); }
  .item-status { margin-left: 36px; }
  .remove-btn { margin-left: auto; }
  .stack-table thead { display: none; }
  .stack-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .stack-table td { display: block; padding: 4px 0; border: none; text-align: right; overflow: hidden; }
  .stack-table td:first-child { display: block; text-align: left; padding-bottom: 6px; }
  .stack-table td[data-label]::before { content: attr(data-label); float: left; color: var(--muted); font-size: 12px; margin-right: 12px; padding-top: 2px; }
  .stack-table td:first-child::before { content: none; }
  .stack-table td .empty, .stack-table td.empty { display: block; text-align: center; }
}

/* ---- v1.0: modules, security console, dues, settings ---- */
body.no-security .mod-security, body.no-dues .mod-dues, body.no-sup .sup-only, body.no-sup .sup-gate { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pill.neutral { background: #eef1f5; color: #4f5b6b; }
.button.danger { background: #b42318; border-color: #b42318; color: #fff; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.button-row .button { flex: 1 1 140px; justify-content: center; }
.security-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.security-grid .panel { margin-bottom: 0; }
.stack-form .lbl { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: -4px; }
.stack-form .button-row .button { align-self: stretch; }
.lot-card, .hold-card { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.lot-card { background: #f0f6fb; border: 1px solid #d9e7f3; color: #2a4560; }
.hold-card { background: #fdf1ef; border: 1px solid #f3cfc8; color: #8a2a1b; }
.lot-card strong, .hold-card strong { display: block; margin-bottom: 2px; }
#view-security .panel-head .heading-actions { display: flex; gap: 8px; }
#view-security .panel-head input, #view-security .panel-head select, #view-dues .panel-head select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; background: #fff; }
.row-actions .button.small { white-space: nowrap; }
.stats-grid.compact { margin-bottom: 16px; }
.small-value { font-size: 20px !important; }
.door-chip.visitor { background: #e8effa; color: #123f80; }
#settings-panels { margin-top: 0; }
#settings-panels label.check.wide { align-items: flex-start; padding: 6px 0; }
#settings-panels label.check.wide input { margin-top: 3px; }
#settings-panels .notice { margin: 4px 0 0; }
#settings-panels .notice a { font-weight: 600; }
.panel-body.form-grid { padding: 16px 20px; }
@media (max-width: 1000px) { .security-grid { grid-template-columns: 1fr; } }
#visitor-form { padding: 16px 20px 20px; }
#view-security .table-wrap, #view-dues .table-wrap { overflow-x: auto; }
#view-security td, #view-dues td { padding: 10px 12px; }
#view-security th, #view-dues th { padding: 10px 12px; }
#visitors-table .row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#visitors-table td:first-child { min-width: 120px; }
.panel-body.stack-form { padding: 16px 20px; }
label.check.locked { opacity: .75; cursor: default; }
body.no-portal .mod-portal { display: none !important; }
#visitors-table tr.asking td { background: #fffaf0; }
#vf-notes { margin-top: -2px; }
#visitor-form select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }
.logo-box b { font: inherit; }
#setup-wrap { display: grid; gap: 6px; }
.site-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.site-code-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f0f6fb; border: 1px solid #d9e7f3; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.brand-preview { width: 260px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: radial-gradient(circle at 30% 20%, #1d5fbf 0, #123a6b 35%, #0b2446 75%) center / cover no-repeat; border: 1px solid var(--line); }
body.has-photo .sidebar > .brand { background: linear-gradient(90deg, rgba(11,36,70,.88), rgba(11,36,70,.55)), var(--photo) center 55% / cover no-repeat; border-radius: 12px; padding: 16px 12px; margin-bottom: 16px; }
#restore-link { margin-top: 14px; font-size: 13px; text-align: left; }
.button.muted-btn { opacity: .65; }
body.viewer [data-lot] { cursor: default; text-decoration: none; }
.staff-only { display: none; }
body.viewer .staff-only { display: block; }

body:not(.dev) .dev-only { display: none !important; }
.dev-badge { margin: 0 0 14px; padding: 6px 10px; border-radius: 8px; background: rgba(245, 180, 60, .15); color: #f5b43c; font-size: 11px; letter-spacing: .12em; font-weight: 700; text-align: center; }
body:not(.dev) #view-overview .panels-grid { grid-template-columns: 1fr; }

/* v1.7: requests, bulletins */
.notice.danger { background: #fdecec; border-color: #f5c2c2; color: #7a1d1d; }
.bulletin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .bulletin-grid { grid-template-columns: 1fr; } }
.bulletin-row { align-items: flex-start; }
.bulletin-row.withdrawn { opacity: .55; }
.bulletin-row strong { display: block; margin-top: 6px; }
.bulletin-stats { display: flex; gap: 14px; text-align: center; }
.bulletin-stats span { font-size: 11px; color: var(--muted, #6b7280); text-transform: uppercase; letter-spacing: .06em; }
.bulletin-stats b { display: block; font-size: 20px; color: var(--ink, #111827); letter-spacing: 0; }
.bulletin-reach { font-size: 14px; }
.request-row { align-items: flex-start; }
.request-row .button-row { flex-wrap: nowrap; }
#requests-filter { min-width: 160px; }

/* v1.8: messages */
.messages-panel { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 560px; padding: 0; overflow: hidden; }
.thread-list { border-right: 1px solid var(--line, #e5e7eb); overflow-y: auto; max-height: 680px; }
.thread { display: flex; gap: 10px; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line, #e5e7eb); background: none; text-align: left; cursor: pointer; font: inherit; }
.thread:hover { background: rgba(15, 118, 110, .05); }
.thread.on { background: rgba(15, 118, 110, .10); }
.thread .grow { min-width: 0; }
.thread small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted, #6b7280); }
.thread.unread strong { color: #0f766e; }
.thread-view { display: flex; flex-direction: column; min-width: 0; }
.thread-view .empty-state { margin: auto; color: var(--muted, #6b7280); }
.thread-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line, #e5e7eb); }
.thread-head small { display: block; color: var(--muted, #6b7280); }
.bubbles { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 520px; background: #f8fafc; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line, #e5e7eb); align-self: flex-start; }
.bubble.office { align-self: flex-end; background: #0f766e; color: #fff; border-color: #0f766e; }
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble small { display: block; margin-top: 4px; font-size: 11px; opacity: .75; }
.reply { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line, #e5e7eb); }
.reply textarea { flex: 1; resize: vertical; }
.center { text-align: center; }
@media (max-width: 900px) { .messages-panel { grid-template-columns: 1fr; } .thread-list { max-height: 260px; border-right: 0; } }

.guard-only { display: none !important; }
body.viewer .guard-only { display: flex !important; }
.messages-panel.single { grid-template-columns: 1fr; }
.thread.guard { background: rgba(15, 23, 42, .03); }

/* v1.9: finance */
body.no-finance .mod-finance { display: none !important; }
body.finance-on .qb-only { display: none !important; }
.pay-row { align-items: flex-start; }
.proof-thumb { width: 84px; height: 84px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #e5e7eb); display: grid; place-items: center; background: #f8fafc; font-weight: 700; color: #64748b; }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ok-text { color: #15803d; }
.link-button { background: none; border: 0; padding: 0; color: #0f766e; font: inherit; font-weight: 600; cursor: pointer; }

/* ===== alerts (v2.0.4) ===== */
.top-actions { position: relative; }
.alerts-btn { position: relative; border: 1px solid var(--line, #dfe5ec); background: #fff; border-radius: 10px; width: 40px; height: 38px; font-size: 18px; cursor: pointer; }
.alerts-count, .bn-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #e03131; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.menu-btn { position: relative; }
.menu-dot, .bn-dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: #e03131; box-shadow: 0 0 0 2px #fff; }
.alerts-menu { position: absolute; right: 0; top: 46px; width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(10, 30, 50, .25); z-index: 60; }
.alerts-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #edf0f4; }
.alert-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f1f3f6; padding: 11px 14px; cursor: pointer; font: inherit; }
.alert-row:hover { background: #f6f9fb; }
.alert-row small, .alert-card small { display: block; color: #5b6b7c; }
.alert-row .grow, .alert-card .grow { flex: 1; min-width: 0; }
.alert-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: #e7f5f2; display: grid; place-items: center; font-size: 15px; }
.alert-stack { position: fixed; right: 18px; top: 74px; z-index: 70; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.alert-card { pointer-events: auto; display: flex; gap: 10px; align-items: center; background: #fff; border-left: 5px solid #0f9d8a; border-radius: 12px; padding: 12px 12px 12px 14px; box-shadow: 0 14px 40px rgba(10, 30, 50, .22); animation: alertIn .25s ease-out; transition: opacity .8s; }
.alert-card.fade { opacity: 0; }
.alert-card.request { border-left-color: #1c7ed6; } .alert-card.message, .alert-card.guard { border-left-color: #7048e8; }
.alert-card.payment { border-left-color: #f08c00; } .alert-card.deny { border-left-color: #e03131; } .alert-card.allow, .alert-card.arrived { border-left-color: #2f9e44; }
.alert-x { border: 0; background: none; font-size: 20px; color: #8a97a5; cursor: pointer; padding: 0 4px; }
@keyframes alertIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bottom-nav { display: none; }
@media (max-width: 1000px) {
  .bottom-nav { display: flex; flex-direction: row; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy, #0d2236); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
  .bottom-nav button { flex: 1; min-width: 0; background: none; border: 0; color: #b8c6d6; font-size: 11px; font-weight: 600; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; cursor: pointer; }
  .bottom-nav button.on { color: #2fd0b0; }
  .bn-icon { position: relative; font-size: 19px; line-height: 24px; }
  .bn-badge { top: -4px; right: -14px; box-shadow: 0 0 0 2px var(--navy, #0d2236); }
  .bn-dot { top: 0; right: -6px; box-shadow: 0 0 0 2px var(--navy, #0d2236); }
  .main, main { padding-bottom: 84px; }
  .alert-stack { top: auto; bottom: 86px; right: 12px; left: 12px; width: auto; }
}

/* ===== sign-in page: features ===== */
.login-screen { grid-template-rows: minmax(100vh, auto) auto; }
.aside-more { display: inline-block; margin: -10px 0 24px; color: #8ff0db; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.aside-more:hover { text-decoration: underline; }
.features-wrap { grid-column: 1 / -1; grid-row: 2; padding: 56px clamp(20px, 5vw, 72px) 64px; background: linear-gradient(180deg, #fff 0%, #f3f7f9 100%); }
.features-head { max-width: 760px; margin-bottom: 28px; }
.features-head h2 { font: 400 clamp(28px, 3vw, 40px)/1.12 var(--serif); color: var(--ink); margin: 8px 0 12px; letter-spacing: -.01em; }
.features-head p { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }
.features-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.features-group { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #5b6876; margin: 30px 0 14px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.f-card { background: #fff; border: 1px solid #e3e9ef; border-radius: 16px; padding: 20px 20px 18px; box-shadow: 0 6px 18px rgba(16, 36, 59, .05); transition: transform .2s, box-shadow .2s; }
.f-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 36, 59, .10); }
.f-card.add { background: #fbfcfd; border-style: dashed; }
.f-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.f-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; font-weight: 800; background: #e7f5f2; color: #0b7566; }
.f-card.add .f-icon { background: #eef1f5; color: #3b4a5a; }
.f-card h4 { margin: 0 0 6px; font-size: 16.5px; color: var(--ink); }
.f-card p { margin: 0; color: #4b5867; font-size: 14px; line-height: 1.5; }
.f-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.f-tag.core { background: #e8eef7; color: #1d4f91; }
.f-tag.on { background: #dcf5ec; color: #0b7a55; }
.f-tag.add { background: #fff3dc; color: #9a5b00; }
.features-cta { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 16px; padding: 20px 24px; }
.features-cta strong { display: block; font-size: 16px; } .features-cta span { color: rgba(255, 255, 255, .8); font-size: 14px; }
@media (max-width: 1000px) {
  .login-screen { grid-template-rows: auto; }
  .features-wrap { grid-row: auto; padding: 36px 18px 44px; }
}
@media (min-width: 900px) { #features-core { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { #features-addons { grid-template-columns: repeat(3, 1fr); } }
.f-tag.trial { background: #ede7ff; color: #5b3cc4; }
.f-card.trial { border-color: #d9cffd; }
.f-card.trial .f-icon { background: #f1ecff; color: #5b3cc4; }
.trial-note { background: #f4f0ff; border: 1px solid #ddd2fe; color: #3d2c84; border-radius: 12px; padding: 12px 16px; margin: -4px 0 16px; font-size: 14px; }
@media (min-width: 1100px) { #features-core { grid-template-columns: repeat(5, 1fr); } #features-core .f-card p { font-size: 13.5px; } }
@media (min-width: 900px) and (max-width: 1099px) { #features-core { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { #features-addons { grid-template-columns: repeat(3, 1fr); } }
.f-card.f-cta { background: var(--navy); border-color: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.f-card.f-cta .f-icon { background: rgba(255, 255, 255, .12); color: #2fd0b0; margin-bottom: 12px; }
.f-card.f-cta h4 { color: #fff; } .f-card.f-cta p { color: rgba(255, 255, 255, .8); }
.features-foot { margin-top: 26px; text-align: center; }

/* ===== brochure heading ===== */
.brochure-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-bottom: 10px; }
.bh-text h2 { font: 400 clamp(34px, 3.6vw, 50px)/1.05 var(--serif); color: var(--ink); margin: 10px 0 18px; letter-spacing: -.01em; }
.bh-text h2 > span { display: block; font: 600 clamp(17px, 1.5vw, 21px)/1.3 var(--sans); color: #0b7566; margin-top: 10px; letter-spacing: 0; }
.bh-text p { color: #3f4c5a; font-size: 15.5px; line-height: 1.6; margin: 0 0 12px; max-width: 760px; }
.bh-text .features-legend { margin-top: 18px; }
.bh-brand { background: #fff; border: 1px solid #e3e9ef; border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(16, 36, 59, .08); display: flex; flex-direction: column; gap: 16px; }
.bh-logo img { display: block; width: 100%; height: auto; }
.bh-contact, .cta-contact { display: flex; flex-direction: column; gap: 8px; }
.bh-contact a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; background: #f3f7f9; border-radius: 10px; }
.bh-contact a:hover { background: #e7f5f2; }
.cta-contact { margin-top: 14px; gap: 4px; } .cta-contact a { color: #8ff0db; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.bh-print { align-self: stretch; }
@media (max-width: 1000px) { .brochure-head { grid-template-columns: 1fr; gap: 22px; } .bh-brand { max-width: 420px; } }

/* print / PDF: just the brochure */
@media print {
  body.print-brochure .login-card, body.print-brochure .login-photo, body.print-brochure .login-aside, body.print-brochure .features-foot,
  body.print-brochure .bh-print, body.print-brochure #toast, body.print-brochure #dashboard-screen { display: none !important; }
  body.print-brochure .login-screen { display: block !important; min-height: 0; }
  body.print-brochure .features-wrap { min-height: 0; padding: 0; background: #fff; }
  body.print-brochure .f-card { break-inside: avoid; box-shadow: none; }
  body.print-brochure .f-card.f-cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-brochure * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 12mm; }
}
@media print {
  body.print-brochure { background: #fff; }
  body.print-brochure .brochure-head { grid-template-columns: minmax(0, 1fr) 200px !important; gap: 22px !important; }
  body.print-brochure .bh-text h2 { font-size: 34px; margin: 6px 0 10px; }
  body.print-brochure .bh-text h2 > span { font-size: 15px; }
  body.print-brochure .bh-text p { font-size: 11.5px; line-height: 1.5; margin-bottom: 8px; }
  body.print-brochure .bh-brand { padding: 12px; gap: 8px; box-shadow: none; }
  body.print-brochure .bh-contact a { font-size: 10px; padding: 5px 8px; }
  body.print-brochure .features-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  body.print-brochure #features-core { grid-template-columns: repeat(5, 1fr) !important; }
  body.print-brochure .f-card { padding: 12px; border-radius: 10px; }
  body.print-brochure .f-card h4 { font-size: 12.5px; margin-bottom: 4px; }
  body.print-brochure .f-card p, body.print-brochure .cta-contact a { font-size: 10px !important; line-height: 1.4; }
  body.print-brochure .f-icon { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  body.print-brochure .f-top { margin-bottom: 8px; }
  body.print-brochure .f-tag { font-size: 8.5px; padding: 3px 7px; }
  body.print-brochure .features-group { margin: 16px 0 8px; font-size: 10px; break-after: avoid; }
  body.print-brochure .trial-note { font-size: 10.5px; padding: 8px 12px; margin-bottom: 10px; }
  body.print-brochure .features-legend { margin-top: 10px; }
}
@media print { body.print-brochure .features-wrap { zoom: .86; } body.print-brochure .f-card { break-inside: avoid; } }

/* ===== packages ===== */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg { position: relative; background: #fff; border: 1px solid #e3e9ef; border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 6px 18px rgba(16, 36, 59, .05); }
.pkg-where { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5b6876; }
.pkg h4 { font: 400 30px/1.1 var(--serif); margin: 6px 0 6px; color: var(--ink); }
.pkg p { margin: 0 0 12px; color: #4b5867; font-size: 14px; }
.pkg-lead { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.pkg ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: #2b3845; }
.pkg li.opt { color: #9a5b00; }
.pkg-essentials { border-top: 5px solid #1d4f91; }
.pkg-connected { border-top: 5px solid #0f9d8a; }
.pkg-complete { border-top: 5px solid #0b2446; background: linear-gradient(180deg, #fff 0%, #f5f8fb 100%); }
.pkg.mine { border-color: #5b3cc4; box-shadow: 0 0 0 2px #5b3cc4, 0 14px 30px rgba(91, 60, 196, .15); }
.pkg-ribbon { position: absolute; top: -12px; right: 18px; background: #5b3cc4; color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.pkg-ribbon.pop { background: #0f9d8a; }
.f-tag.add.pk-connected { background: #dff5f1; color: #0b7566; }
.f-tag.add.pk-complete { background: #e6ebf3; color: #0b2446; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }
@media print {
  body.print-brochure .packages { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
  body.print-brochure .pkg { padding: 12px; border-radius: 10px; box-shadow: none; }
  body.print-brochure .pkg.mine { box-shadow: 0 0 0 2px #5b3cc4; }
  body.print-brochure .pkg h4 { font-size: 20px; } body.print-brochure .pkg p, body.print-brochure .pkg ul { font-size: 10px; gap: 3px; }
  body.print-brochure .pkg-where, body.print-brochure .pkg-lead { font-size: 9px; } body.print-brochure .pkg-ribbon { font-size: 8.5px; top: -9px; }
}
@media print { body.print-brochure #addons-head { break-before: page; margin-top: 0; } }

/* two-step sign-in */
.twostep h3 { margin: 0 0 6px; font-size: 18px; }
.twostep ol { padding-left: 18px; margin: 6px 0; }
.twostep input { width: 100%; font-size: 22px; letter-spacing: .2em; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 10px; margin: 6px 0 4px; text-align: center; }
.twostep .text-button { margin-top: 8px; }
.qr-box { width: 180px; margin: 6px auto; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid #e3e9ef; }
.qr-box svg { width: 100%; height: auto; display: block; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; background: #f3f7f9; border-radius: 10px; padding: 12px; font-size: 16px; text-align: center; }
.twostep .pw-input { font-size: 16px; letter-spacing: normal; text-align: left; }
.pw-rules { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 2px; }

/* data protection panel */
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.dp-grid .wide { grid-column: 1 / -1; }
.dp-grid h3 { font-size: 15px; margin: 0 0 6px; }
.ret-grid { display: grid; gap: 6px; }
.ret-grid label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.ret-grid input { width: 70px; padding: 5px 8px; border: 1px solid var(--line, #dfe5ec); border-radius: 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.privacy-text { white-space: pre-line; font-size: 13.5px; line-height: 1.5; max-height: 55vh; overflow: auto; }
@media (max-width: 900px) { .dp-grid { grid-template-columns: 1fr; } }
.dp-band { margin-top: 26px; display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid #d7e6f5; border-left: 6px solid #1d4f91; border-radius: 16px; padding: 22px 24px; }
.dp-badge { width: 52px; height: 52px; flex: none; border-radius: 14px; background: #e8eef7; display: grid; place-items: center; font-size: 26px; }
.dp-band h3 { margin: 4px 0 8px; font-size: 19px; color: var(--ink); }
.dp-band p { margin: 0 0 10px; color: #3f4c5a; font-size: 14.5px; line-height: 1.55; }
.dp-band ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; font-size: 13.5px; color: #2b3845; }
.dp-band li::before { content: "✓ "; color: #0b7566; font-weight: 700; }
.dp-band small { color: #6b7886; }
@media (max-width: 900px) { .dp-band ul { grid-template-columns: 1fr; } }
@media print { body.print-brochure .dp-band { padding: 12px 14px; margin-top: 12px; break-inside: avoid; } body.print-brochure .dp-band h3 { font-size: 13px; } body.print-brochure .dp-band p, body.print-brochure .dp-band ul { font-size: 9.5px; } body.print-brochure .dp-badge { width: 34px; height: 34px; font-size: 18px; } }

/* Office staff: no finance, dues, audit or logins management */
body.staff .mgmt-only{display:none !important}
.dp-band.one-stop { border-left-color: #0f8f7e; }
@media print { body.print-brochure .bands { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; margin-top: 12px; }
  body.print-brochure .bands .dp-band { margin-top: 0; } body.print-brochure .bands .dp-band ul { grid-template-columns: 1fr; } }

/* Estate sign-in */
.login-card .entry-logo { display: block; width: 152px; height: auto; margin: 0 0 18px; }
.entry-help { display: none; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.entry-help a { color: #125282; font-weight: 700; }
.login-card > .entry-support { margin: 10px 0 0; font-size: 13px; }
#login-screen.show-features { display: block; }
#login-screen.show-features > :is(.login-card, .login-photo, .login-aside) { display: none; }
#login-screen.show-features > .features-wrap { min-height: 100vh; }
@media (max-width: 1000px) {
  .entry-help { display: flex; }
}
@media (max-width: 760px) {
  .login-photo { height: clamp(105px, 22vw, 155px); }
  .login-card .entry-logo { width: 126px; }
}
@media (min-width: 1001px) {
  .login-screen { grid-template-columns: minmax(0, 1fr) minmax(400px, 38%); }
  .login-card { grid-column: 2; justify-self: center; width: min(460px, calc(100% - 48px)); margin: 28px 0; background: #fff; backdrop-filter: none; }
  .login-aside { grid-column: 1; padding: 18px 0 18px 18px; }
  .aside-content { border-radius: 18px 0 0 18px; padding: clamp(30px, 5vw, 80px); background: linear-gradient(90deg, rgba(11, 36, 70, .94), rgba(11, 36, 70, .58), rgba(11, 36, 70, .12)); }
}

/* Split sign-in with the entrance photo visible through the form panel. */
.login-screen .entry-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: #10243b; }
.login-screen .entry-brand .entry-logo { width: clamp(82px, 26%, 122px); margin: 0; }
.entry-brand strong, .entry-brand small { display: block; }
.entry-brand small { margin-top: 3px; color: #42566c; }
.login-screen .login-card h1 { font: 760 clamp(26px, 3vw, 38px)/1.13 system-ui, sans-serif; }
.login-screen .login-card .entry-help { display: flex; }
.login-screen .login-card #login-form label { margin-bottom: 5px; }
.login-screen .login-card #login-form input {
  border: 1px solid #9baebf;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .65);
}
.login-screen .login-card #login-form input:focus { outline: 2px solid #1565aa; outline-offset: 1px; }
.login-screen .login-card #login-form .primary { background: #0756ad; color: #fff; }
.entry-help a:focus-visible { outline: 2px solid #1565aa; outline-offset: 3px; }
@media (min-width: 1001px) {
  .login-screen { grid-template-columns: minmax(0, 55fr) minmax(400px, 45fr); }
  .login-photo { margin: 0; border-radius: 0; box-shadow: none; }
  .login-photo::before, .login-card, .aside-content > * { animation: none; }
  .login-aside { padding: 0; }
  .login-aside .aside-content {
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 0;
    padding: clamp(32px, 5vw, 76px);
    background: linear-gradient(180deg, #071b3857, #071b3814 30%, #071b38e8 100%);
  }
  .aside-content::after { display: none; }
  .entry-hero-copy { margin-top: auto; padding-top: 28vh; }
  .entry-hero-copy h2 { font: 800 clamp(44px, 5.4vw, 84px)/.99 system-ui, sans-serif; }
  .entry-hero-copy h2 span { color: #81e3fb; }
  .login-screen .login-card {
    width: 100%;
    height: 100%;
    margin: 0;
    justify-content: center;
    padding: clamp(28px, 5vw, 86px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(245, 250, 255, .85);
    backdrop-filter: blur(5px);
  }
}

.preview-support { margin-top:22px; padding:14px 16px; border:1px solid #ccd9e7; border-radius:10px; background:#f4f8fccc; color:#33495e; font-size:13px; }
.login-screen .login-card > p { margin-bottom:18px; }
.login-screen .login-card .entry-brand { margin-bottom:20px; }
@media (min-width:1001px) {
 .login-screen { grid-template-columns:minmax(0,55fr) minmax(0,45fr); }
 .login-screen .login-card { padding:32px clamp(28px,6vw,110px); background:rgba(249,251,254,.88); backdrop-filter:blur(4px); }
 .entry-hero-copy { padding-top:0; }
 .login-aside .entry-hero-copy h2 { font-size:clamp(36px,4.6vw,70px); }
}
@media (max-width:1000px) {
 .login-screen { grid-template-columns:minmax(0,1fr); grid-template-rows:clamp(225px,65vw,380px) auto; }
 .login-screen .login-photo { grid-area:1 / 1; order:0; height:auto; margin:0; border-radius:0; box-shadow:none; }
 .login-screen .login-photo::before { animation:none; background-position:center 52%; }
 .login-screen .login-aside { display:block; grid-area:1 / 1; padding:0; }
 .login-aside .aside-content { padding:20px 24px; border-radius:0; justify-content:space-between; background:linear-gradient(180deg,#071b3866,transparent 34%,#071b38e0); }
 .aside-content::after,.entry-hero-copy p,.aside-smallprint { display:none; }
 .login-aside .entry-hero-copy { margin-top:auto; padding:0; }
 .login-aside .entry-hero-copy h2 { margin:0; font:800 clamp(32px,8vw,57px)/1.03 system-ui,sans-serif; }
 .entry-hero-copy h2 span { color:#81e3fb; }
 .login-screen .login-card { grid-area:2 / 1; width:min(100%,520px); justify-self:center; margin:0; padding:26px 24px 32px; border:0; background:#fff; }
 .login-screen .login-card h1 { font-size:30px; }
}
 .login-screen .login-card .entry-help { margin: 8px 0 0; font-size: 12px; }
 .login-screen .login-card .entry-help a { font-weight: 500; }
 .login-screen .login-card .login-footer { margin-top: 18px; padding-top: 12px; color: #495d72; }
 .login-aside .aside-mark { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero-greeting { margin-bottom: 8px; color: #fff; font-weight: 700; font-size: 15px; }
.hero-services {display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0 0 18px}
.hero-services li {display:inline-flex;align-items:center;gap:6px;color:#fff;background:#ffffff22;border:1px solid #ffffff55;border-radius:7px;padding:6px 9px;font-size:12px}
@media(min-width:1001px) {
 .login-screen {grid-template-columns:minmax(0,53fr) minmax(0,47fr)}
 .login-aside .aside-content {padding:clamp(28px,4.7vw,72px);background:linear-gradient(180deg,#0c253c42,transparent 42%,#0a2442db 100%)}
 .login-aside .entry-hero-copy h2 {font-size:clamp(35px,4.3vw,68px);margin:10px 0 14px}
 .login-screen .login-card {position:relative;padding:64px clamp(24px,7vw,128px) 28px;background:rgba(246,249,250,.70);backdrop-filter:blur(3px)}
 .login-screen .login-card .entry-brand {margin-bottom:22px}
 .login-screen .login-card h1 {font-size:clamp(26px,2.4vw,38px)}
}
.hero-services svg {width:15px;height:15px;flex:none;color:#81e3fb}
@media (max-width: 1000px) {
  .login-screen { grid-template-rows: minmax(clamp(360px, 72vw, 480px), auto) auto; }
  .login-aside .aside-content {
    padding: 20px clamp(14px, 5vw, 28px);
    background: linear-gradient(180deg, #071b3866, transparent 22%, #071b38b8 54%, #071b38f0);
  }
  .login-aside .entry-hero-copy { padding-top: clamp(65px, 16vw, 150px); }
  .login-aside .entry-hero-copy p {
    display: block;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.45;
  }
  .hero-services { gap: 6px; margin: 0; }
  .hero-services li { font-size: 11px; padding: 4px 7px; }
}
.login-screen .login-card .entry-help {font-size:12px;gap:6px 15px}

.login-screen .login-card .entry-brand { align-items: center; justify-content: flex-start; width: 100%; }
.login-screen .login-card .entry-brand .entry-logo { display: block; flex: none; align-self: center; background: transparent; }

.login-screen .login-card .entry-brand .entry-logo { width: clamp(100px, 32%, 150px); }
.login-screen .entry-brand strong { font-size: clamp(19px, 2vw, 27px); line-height: 1.12; }
.login-screen .entry-brand small { font-size: 10px; line-height: 1.4; }
.login-screen .login-card .entry-help { margin-top: 16px; }

.login-screen .login-card .entry-brand {
  --brand-logo-width: clamp(96px, 32%, 148px);
  gap: clamp(9px, 3vw, 18px);
}
.login-screen .login-card .entry-brand .entry-logo { width: var(--brand-logo-width); }
.login-screen .entry-brand > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}
.login-screen .entry-brand strong { font-size: clamp(21px, 2.5vw, 34px); line-height: 1.08; }
.login-screen .entry-brand small { margin: 0; font-size: clamp(10px, 1.05vw, 14px); line-height: 1.25; }
@media (max-width: 380px) {
  .login-screen .entry-brand strong { font-size: 19px; }
}

.login-screen { --abc-brand-navy: #102747; --abc-brand-blue: #075cba; }
.login-screen .entry-brand strong { color: var(--abc-brand-navy); }
.login-screen .entry-brand strong span { color: var(--abc-brand-blue); }
.login-screen .entry-brand small { color: #405674; }
.login-screen .login-card #login-form .primary { background: var(--abc-brand-blue); }
.login-screen .login-card #login-form .primary:hover { background: #064e9f; }
.hero-services svg { color: #81c8ff; }
.abc-tagline { color: var(--abc-brand-navy); font-weight: 700; margin: 0 0 14px; }
.brand-hub { white-space: nowrap; }
.brand-tm { font-size: .42em; line-height: 0; margin-left: .12em; vertical-align: super; }

.sign-in-options {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:12px;font-size:13px}
.login-screen .login-card #login-form .sign-in-options label {display:inline-flex;align-items:center;gap:7px;margin:0;font-size:inherit}
.login-screen .login-card #login-form .sign-in-options input {width:16px;height:16px;margin:0;padding:0;accent-color:var(--abc-brand-blue)}
.sign-in-options a {color:var(--abc-brand-blue);font-weight:600}
#account-help:focus {outline:2px solid var(--abc-brand-blue);outline-offset:3px}

#recovery-dialog {width:min(440px,calc(100vw - 32px));border:1px solid #b7cce0;border-radius:14px;padding:24px;color:#102747}
#recovery-dialog::backdrop {background:#10274780}
#recovery-request input {display:block;width:100%;margin:6px 0 12px;padding:10px}
#recovery-request button {margin-inline-end:6px}

/* ===== v2.1.3 sign-in: the entrance photo fills the screen; the form sits on a soft, see-through
   panel on the left that blends into the photo (ABC navy #102747, Hub blue #075cba). ===== */
.login-screen { --hub: #075cba; --abcnavy: #102747; }
.login-screen .brand-hub, .login-screen .hub { color: var(--hub); white-space: nowrap; }
.login-screen .brand-tm { font-size: .42em; margin-left: .1em; }
.login-screen .sign-in-options { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.login-screen .remember { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 13.5px !important; font-weight: 500 !important; color: var(--abcnavy); min-height: 36px; cursor: pointer; }
.login-screen #login-form .remember input { width: 17px !important; height: 17px; margin: 0 !important; padding: 0 !important; accent-color: var(--hub); border: none !important; }
.login-screen #forgot-password { color: var(--hub); font-weight: 600; padding: 8px 0; }
.login-screen #login-form .primary { background: var(--hub) !important; border-color: var(--hub) !important; display: flex; justify-content: space-between; align-items: center; min-height: 50px; border-radius: 8px; box-shadow: 0 8px 20px rgba(7, 92, 186, .25); }
.login-screen #login-form .primary:hover { background: #064e9f !important; }
@media (min-width: 1001px) {
  .login-screen { grid-template-columns: minmax(380px, 34%) minmax(0, 1fr); padding: 0; }
  .login-photo { grid-column: 1 / -1; grid-row: 1; margin: 18px; border-radius: 18px; box-shadow: 0 18px 40px rgba(16, 36, 59, .16); }
  .login-photo::before { background-size: auto 175%; background-position: 0% 54%; }
  .login-photo::after { display: block; background: linear-gradient(90deg, rgba(246, 249, 250, .68) 0%, rgba(246, 249, 250, .60) 30%, rgba(246, 249, 250, .36) 40%, rgba(246, 249, 250, .08) 50%, rgba(246, 249, 250, 0) 58%);
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 32%, transparent 52%); mask-image: linear-gradient(90deg, #000 0%, #000 32%, transparent 52%); }
  .login-screen .login-card { grid-column: 1; grid-row: 1; align-self: center; justify-self: stretch; width: auto; height: auto; margin: 18px 0 18px 18px;
    padding: 48px 32px 28px clamp(36px, 4.4vw, 64px); background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
  .login-screen .entry-brand .entry-logo { width: 96px; }
  .login-screen .entry-brand strong { font-size: 24px; font-weight: 800; white-space: nowrap; }
  .login-screen .login-card h1 { font: 700 34px/1.1 system-ui, "Segoe UI", sans-serif; color: var(--abcnavy); margin: 8px 0 8px; }
  .login-screen .login-card > p { color: #2c3a48; margin: 0 0 18px; font-size: 14.5px; }
  .login-screen .login-card #login-form input:not([type=checkbox]) { border: 0; border-bottom: 1px solid rgba(16, 39, 71, .3); border-radius: 0; background: transparent; padding: 10px 2px 11px; }
  .login-screen .login-card #login-form input:not([type=checkbox]):focus { outline: none; border-bottom: 2px solid var(--hub); }
  .login-screen .login-card .entry-help { display: flex; gap: 6px 16px; font-size: 12px; }
  .login-screen .login-card .entry-help a { color: var(--hub); font-weight: 500; }
  .login-aside { grid-column: 2; grid-row: 1; padding: 18px 18px 18px 0; }
  .login-aside .aside-content { height: 100%; border-radius: 0 18px 18px 0; justify-content: space-between; align-items: flex-end; text-align: right;
    padding: 40px 52px 48px; background: linear-gradient(180deg, rgba(12, 37, 60, .22) 0%, rgba(12, 37, 60, 0) 40%, rgba(10, 36, 66, .25) 60%, rgba(10, 36, 66, .78) 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); text-shadow: 0 1px 14px rgba(5, 18, 38, .45); }
  .login-aside .aside-content::after { display: none; }
  .entry-hero-copy { margin-top: auto; padding-top: 0; display: flex; flex-direction: column; align-items: flex-end; max-width: 560px; }
  .entry-hero-copy h2 { font: 800 clamp(40px, 4.2vw, 58px)/1.04 system-ui, "Segoe UI", sans-serif; letter-spacing: -.02em; }
  .entry-hero-copy h2 span { color: #fff; }
  .entry-hero-copy .hero-services { justify-content: flex-end; text-shadow: none; }
}
/* phone and small tablet: photo on top with the welcome on it, the form on a white card that overlaps it */
@media (max-width: 1000px) {
  .login-screen { grid-template-rows: auto auto auto; }
  .login-photo { grid-column: 1; grid-row: 1; order: 0; margin: 0; height: 300px; border-radius: 0; box-shadow: none; }
  .login-photo::before { background-size: cover; background-position: 50% 60%; }
  .login-photo::after { display: block; background: linear-gradient(180deg, rgba(7, 27, 56, .45), rgba(7, 27, 56, 0) 30%, rgba(7, 27, 56, .72) 62%, rgba(7, 27, 56, .94)); }
  .login-aside { display: block; grid-column: 1; grid-row: 1; padding: 0; height: 300px; z-index: 2; }
  .login-aside .aside-content { height: 100%; padding: calc(28px + env(safe-area-inset-top)) 22px 34px; background: none; border-radius: 0; justify-content: space-between; align-items: flex-start; text-align: left; -webkit-mask-image: none; mask-image: none; }
  .login-aside .aside-content::after, .login-aside .entry-hero-copy p, .login-aside .hero-services, .login-aside .aside-more { display: none; }
  .entry-hero-copy { padding-top: 0; margin-top: auto; }
  .entry-hero-copy h2 { font: 800 32px/1.05 system-ui, "Segoe UI", sans-serif; margin: 6px 0 0; letter-spacing: -.02em; }
  .entry-hero-copy h2 span { color: #fff; }
  .login-screen .login-card { grid-row: 2; position: relative; z-index: 3; margin: -20px 0 0; border-radius: 20px 20px 0 0; padding: 24px 22px 32px; background: #fff; box-shadow: none; }
  .login-screen .entry-brand { margin-bottom: 14px; } .login-screen .entry-brand .entry-logo { width: 88px; }
  .login-screen .entry-brand strong { font-size: 21px; font-weight: 800; }
  .login-screen .login-card h1 { font: 700 26px/1.15 system-ui, "Segoe UI", sans-serif; margin: 4px 0 6px; }
  .login-screen .login-card #login-form input:not([type=checkbox]) { font-size: 16px; min-height: 48px; }
  .features-wrap { grid-row: 3; }
}
/* forgot-password dialog (both sign-in pages) */
.reset-dialog { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 24px 22px 18px; color: #102747; box-shadow: 0 24px 60px rgba(8, 22, 40, .35); font-family: inherit; }
.reset-dialog::backdrop { background: rgba(10, 25, 45, .45); }
.reset-dialog h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.reset-dialog .rd-intro { margin: 0 0 14px; color: #405674; font-size: 14.5px; line-height: 1.5; }
.reset-dialog label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.reset-dialog input { width: 100%; box-sizing: border-box; min-height: 48px; border: 1px solid #c8d4e3; border-radius: 10px; padding: 0 14px; font-size: 16px; }
.reset-dialog input:focus { outline: 2px solid #075cba; outline-offset: 1px; }
.reset-dialog .rd-send { width: 100%; margin-top: 12px; min-height: 48px; border: 0; border-radius: 10px; background: #075cba; color: #fff; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.reset-dialog .rd-status:not(:empty) { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #e8f1fb; color: #0b4f9c; font-size: 14px; }
.reset-dialog .rd-small { margin: 12px 0 0; font-size: 13px; color: #405674; }
.reset-dialog .rd-more { margin-top: 10px; border-top: 1px solid #e3e9f1; padding-top: 8px; font-size: 13.5px; color: #405674; }
.reset-dialog .rd-more summary { cursor: pointer; color: #075cba; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.reset-dialog .rd-more p { margin: 4px 0 0; line-height: 1.5; }
.reset-dialog .rd-close { display: block; margin: 12px auto 0; min-height: 40px; padding: 0 18px; border: 0; background: none; color: #405674; font-weight: 600; cursor: pointer; }

/* ---- v2.1.4: the office doesn't act at the gate; Send to security; staff and payments ---- */
body.office .gate-console { display: none !important; }
body:not(.office) .office-only { display: none !important; }
body.staff.finance-on .no-fin-only { display: none !important; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .split-grid { grid-template-columns: 1fr; } }
.ss-row .pill { white-space: nowrap; }

/* ======================================================================================================
   v2.1.4 - management & staff screens in the same look as the resident and security apps (approved mockup)
   Only the signed-in console (#dashboard-screen); the sign-in page is unchanged.
   ====================================================================================================== */
#dashboard-screen { --navy: #102747; --ink: #102747; --text: #2c3a48; --muted: #405674; --line: #e3e9f1; --bg: #eef2f8;
  --teal: #075cba; --teal-dark: #064e9f; --teal-soft: #e8f1fb; --serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; background: #eef2f8; }
#dashboard-screen.app-shell { grid-template-columns: 264px minmax(0, 1fr); }
#dashboard-screen .period { display: none; }
#dashboard-screen .eyebrow { color: var(--teal); }
#dashboard-screen h1, #dashboard-screen h2, #dashboard-screen h3 { font-family: var(--sans); }
/* sidebar: a white card */
#dashboard-screen .sidebar { background: #fff; color: #2c3a48; border: 1px solid #e3e9f1; border-radius: 14px; margin: 88px 0 20px 20px; height: calc(100vh - 108px);
  top: 88px; padding: 12px 10px; overflow-y: auto; }
#dashboard-screen .sidebar > .brand { display: none; }
#dashboard-screen .sidebar-label, #dashboard-screen .sidebar-caption { color: #8696aa; }
#dashboard-screen .nav-item { color: #2c3a48; font-size: 14.5px; font-weight: 500; min-height: 44px; padding: 0 14px; border-radius: 10px; }
#dashboard-screen .nav-item:hover { background: #f3f6fb; color: #102747; }
#dashboard-screen .nav-item.active { background: #e8f1fb; color: #075cba; font-weight: 700; box-shadow: none; }
#dashboard-screen .nav-icon { color: #5b6876; opacity: 1; }
#dashboard-screen .nav-item.active .nav-icon { color: #075cba; }
#dashboard-screen .live-pill { background: #eef2f8; color: #5b6876; }
#dashboard-screen .live-pill.on { background: #e3f4ea; color: #17683b; }
#dashboard-screen .count-pill { background: #075cba; color: #fff; }
#dashboard-screen .sidebar-bottom { border-top: 1px solid #e3e9f1; }
#dashboard-screen .signout { color: #2c3a48; border-color: #e3e9f1; }
#dashboard-screen .signout:hover { background: #f3f6fb; }
#dashboard-screen .dev-badge { color: #075cba; }
#dashboard-screen .sidebar-status.ok { color: #17683b; }
#dashboard-screen .sidebar-note { color: #5b6876; }
/* header across the top */
#dashboard-screen .topbar { position: fixed; left: 0; right: 0; top: 0; height: 68px; padding: 0 24px; gap: 14px; z-index: 40; border-bottom: 1px solid #e3e9f1; }
#dashboard-screen .main-content { padding: 88px 24px 60px 20px; max-width: 1320px; }
.top-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-brand img { width: 84px; height: auto; flex: none; }
.top-brand strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.1; color: #102747; }
.top-brand .hub { color: #075cba; white-space: nowrap; }
.top-brand sup { font-size: .42em; line-height: 0; margin-left: .12em; }
.top-brand small { display: block; font-size: 12.5px; color: #405674; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dashboard-screen .breadcrumb { display: none; }
.top-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(360px, 34vw); height: 44px; background: #f3f6fb; border: 1px solid #dfe6ef; border-radius: 10px; padding: 0 12px; color: #405674; }
.top-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent; font-size: 14.5px; outline: none; padding: 0; }
#dashboard-screen .top-actions { margin-left: 0; }
body.viewer #dashboard-screen .top-actions { margin-left: auto; }
#dashboard-screen .alerts-btn { width: 44px; height: 44px; border: 1px solid #c8d4e3; border-radius: 10px; background: #fff; }
#dashboard-screen .avatar { width: 44px; height: 44px; background: #102747; font-size: 14px; }
#dashboard-screen .prototype { display: none; }
/* page heading: the photo banner */
#dashboard-screen .page-heading { align-items: center; padding: 26px 28px; border-radius: 14px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(10,36,66,.92), rgba(10,36,66,.6) 60%, rgba(10,36,66,.3)), var(--photo, url(/static/generic-entrance.svg)) 50% 58% / cover no-repeat, #24446b; }
#dashboard-screen .page-heading .eyebrow { color: #cfe3ff; font-size: 11.5px; letter-spacing: .16em; margin-bottom: 4px; }
#dashboard-screen .page-heading h1 { font: 800 30px/1.15 var(--sans); color: #fff; letter-spacing: -.01em; }
#dashboard-screen .page-heading p { color: #dbe6f5; }
#dashboard-screen .page-heading .button.outline { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
#dashboard-screen .page-heading .button.outline:hover { background: rgba(255,255,255,.22); }
#dashboard-screen .page-heading .button.danger-outline { background: #fff; }
/* buttons and cards */
#dashboard-screen .button { border-radius: 10px; min-height: 44px; font-weight: 700; }
#dashboard-screen .button.small { min-height: 34px; border-radius: 8px; }
#dashboard-screen .button.primary { background: #075cba; }
#dashboard-screen .button.primary:hover { background: #064e9f; }
#dashboard-screen .button.outline { border-color: #c8d4e3; }
#dashboard-screen .stat-card, #dashboard-screen .panel { border-color: #e3e9f1; border-radius: 14px; }
#dashboard-screen .stat-label { font-size: 13px; font-weight: 600; letter-spacing: 0; color: #405674; text-transform: lowercase; }
#dashboard-screen .stat-label::first-letter { text-transform: uppercase; }
#dashboard-screen .stat-value { font: 800 32px/1.1 var(--sans); color: #102747; }
#dashboard-screen .panel-head h2 { font-size: 18px; font-weight: 700; color: #102747; }
#dashboard-screen .quick-search { display: none; }
#dashboard-screen .split-grid .button-row input[type=time] { flex: 1; min-width: 0; }
#dashboard-screen .split-grid .button-row { flex-wrap: nowrap; }
@media (max-width: 900px) {
  #dashboard-screen.app-shell { grid-template-columns: 1fr; }
  #dashboard-screen .sidebar { margin: 0; top: 0; height: 100vh; border-radius: 0; border: 0; }
  #dashboard-screen .topbar { padding: 0 12px; height: 60px; }
  #dashboard-screen .main-content { padding: 76px 14px 90px; }
  .top-brand img { width: 60px; }
  .top-brand strong { font-size: 16px; }
  .top-search { display: none; }
  #dashboard-screen .page-heading { padding: 20px 18px; }
  #dashboard-screen .page-heading h1 { font-size: 24px; }
  #dashboard-screen .quick-search { display: flex; }
}

#dashboard-screen .nav-icon { width: 20px; display: inline-flex; }
#dashboard-screen .alerts-btn { position: relative; display: grid; place-items: center; color: #102747; cursor: pointer; }
#dashboard-screen .alerts-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: #075cba; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
#dashboard-screen .stats-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
#dashboard-screen a.text-button, #dashboard-screen .text-button { text-decoration: none; }
#dashboard-screen .link-button, #dashboard-screen .link, #dashboard-screen .link-strong { color: #075cba; }
#dashboard-screen .panel-head input, #dashboard-screen .panel-head select { height: 38px; border: 1px solid #c8d4e3; border-radius: 8px; padding: 0 10px; background: #fff; }
@media (min-width: 1100px) { #dashboard-screen #view-overview .panels-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } }

/* v2.1.4 - ABC brand blue (from the ABC Automated Systems logo, #0132B3): solid blue menu, soft blue background */
#dashboard-screen { --abc: #0132b3; --abc-dark: #012280; --teal: #0132b3; --teal-dark: #012280; --teal-soft: #e3eafb; background: #e3eaf5; }
#dashboard-screen .sidebar { background: linear-gradient(180deg, #0132b3 0%, #01247f 100%); border: 0; color: #dbe5ff; box-shadow: 0 10px 30px rgba(1, 34, 128, .25); }
#dashboard-screen .sidebar-label, #dashboard-screen .sidebar-caption { color: #9fb5ef; }
#dashboard-screen .nav-item { color: #e4ebff; }
#dashboard-screen .nav-icon, #dashboard-screen .nav-item .nav-icon { color: #b9caf7; }
#dashboard-screen .nav-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
#dashboard-screen .nav-item.active { background: #fff; color: #0132b3; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
#dashboard-screen .nav-item.active .nav-icon { color: #0132b3; }
#dashboard-screen .live-pill { background: rgba(255, 255, 255, .14); color: #dbe5ff; }
#dashboard-screen .live-pill.on { background: #3ccf8e; color: #04361f; }
#dashboard-screen .nav-item.active .live-pill { background: #e3eafb; color: #0132b3; }
#dashboard-screen .count-pill { background: #ffc531; color: #3b2a00; }
#dashboard-screen .sidebar-bottom { border-top-color: rgba(255, 255, 255, .16); }
#dashboard-screen .signout { color: #fff; border-color: rgba(255, 255, 255, .3); }
#dashboard-screen .signout:hover { background: rgba(255, 255, 255, .1); }
#dashboard-screen .dev-badge { color: #ffc531; }
#dashboard-screen .sidebar-status.ok { color: #7ff0bd; }
#dashboard-screen .sidebar-note { color: #b9caf7; }
#dashboard-screen .topbar { border-bottom: 3px solid #0132b3; box-shadow: 0 2px 12px rgba(1, 34, 128, .08); }
#dashboard-screen .top-search { background: #eef2fb; border-color: #cfdaf3; }
#dashboard-screen .page-heading { background: linear-gradient(90deg, rgba(1, 34, 128, .94), rgba(1, 50, 179, .72) 55%, rgba(1, 50, 179, .35)), var(--photo, url(/static/generic-entrance.svg)) 50% 58% / cover no-repeat, #0132b3; }
#dashboard-screen .button.primary { background: #0132b3; }
#dashboard-screen .button.primary:hover { background: #012280; }
#dashboard-screen .page-heading .button.primary { background: #fff; color: #0132b3; }
#dashboard-screen .page-heading .button.primary:hover { background: #e3eafb; }
#dashboard-screen .stat-card { border: 0; box-shadow: 0 1px 3px rgba(1, 34, 128, .08); border-top: 4px solid #0132b3; }
#dashboard-screen .panel { border: 0; box-shadow: 0 1px 3px rgba(1, 34, 128, .08); }
#dashboard-screen .panel-head { background: #f6f8fd; border-bottom-color: #e3eaf5; }
#dashboard-screen .text-button, #dashboard-screen .link-button, #dashboard-screen .eyebrow, #dashboard-screen a { color: #0132b3; }
#dashboard-screen .page-heading .eyebrow { color: #cfdcff; }
#dashboard-screen .avatar { background: #0132b3; }
#dashboard-screen .alerts-count { background: #e03131; }
@media (max-width: 900px) { #dashboard-screen .sidebar { box-shadow: none; } }
@media (max-width: 600px) {
  .top-brand img { display: none; }
  .top-brand small { max-width: 46vw; }
  #dashboard-screen .topbar { gap: 8px; }
  #dashboard-screen .alerts-btn, #dashboard-screen .avatar { width: 40px; height: 40px; }
}
#dashboard-screen .bottom-nav { background: linear-gradient(180deg, #0132b3, #01247f); }

/* ===== v2.1.6 - Soft look (default): grey-blue page, off-white cards, deep navy menu; bright ABC blue only on buttons and links ===== */
#dashboard-screen { background: #dde3ec; --text: #26334a; }
#dashboard-screen .topbar { background: #f3f5f9; border-bottom: 3px solid #0b2160; box-shadow: none; }
#dashboard-screen .top-search { background: #e6ebf2; border-color: #cdd5e1; }
#dashboard-screen .sidebar { background: linear-gradient(180deg, #0d2257 0%, #081738 100%); box-shadow: 0 8px 24px rgba(5, 15, 40, .25); }
#dashboard-screen .nav-item.active { background: #e8edf6; color: #0b2a7a; box-shadow: none; }
#dashboard-screen .nav-item.active .nav-icon { color: #0b2a7a; }
#dashboard-screen .page-heading { background: linear-gradient(90deg, rgba(8, 23, 56, .96), rgba(13, 34, 87, .85) 55%, rgba(13, 34, 87, .55)), var(--photo, url(/static/generic-entrance.svg)) 50% 58% / cover no-repeat, #0d2257; }
#dashboard-screen .stat-card, #dashboard-screen .panel, #dashboard-screen .lot-card, #dashboard-screen .searchbox, #dashboard-screen .person-card { background: #f6f8fb; box-shadow: 0 1px 2px rgba(10, 25, 60, .06); }
#dashboard-screen .stat-card { border-top: 3px solid #3a5aa8; }
#dashboard-screen .panel-head, #dashboard-screen th { background: #eef1f6; border-bottom-color: #dde3ec; }
#dashboard-screen .stat-value, #dashboard-screen .panel-head h2 { color: #16244a; }
#dashboard-screen input, #dashboard-screen select, #dashboard-screen textarea { background: #fbfcfd; }
#dashboard-screen .alerts-btn { background: #f3f5f9; }
#dashboard-screen .avatar { background: #0d2257; }
#dashboard-screen .lot-number { background: #16244a; }
#dashboard-screen .bottom-nav { background: linear-gradient(180deg, #0d2257, #081738); }
.modal-box, .alerts-menu, .alert-card { background: #f8f9fc; }
/* the switch button (top bar) */
#dashboard-screen .help-btn, #dashboard-screen .theme-toggle { width: 44px; height: 44px; border: 1px solid #c8d4e3; border-radius: 10px; background: #f3f5f9; color: #16244a; font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center; flex: none; }
#dashboard-screen .help-btn:hover, #dashboard-screen .theme-toggle:hover { background: #e6ebf2; }
#dashboard-screen .help-btn { text-decoration: none; }

/* ===== v2.1.6 - Dark look (each person can switch it on) ===== */
html[data-theme=dark] #dashboard-screen { background: #0c1322; color: #d6deeb; --text: #d6deeb; --ink: #e8eef8; --navy: #e8eef8; --muted: #93a3bd; --line: #243250; }
html[data-theme=dark] #dashboard-screen .topbar { background: #111a2e; border-bottom: 1px solid #243250; }
html[data-theme=dark] #dashboard-screen .top-brand, html[data-theme=dark] #dashboard-screen .top-brand * { color: #e8eef8; }
html[data-theme=dark] #dashboard-screen .top-search { background: #18233b; border-color: #2a3a5c; color: #d6deeb; }
html[data-theme=dark] #dashboard-screen .top-search input { color: #d6deeb; background: transparent; }
html[data-theme=dark] #dashboard-screen .sidebar { background: #0f1829; border: 1px solid #1f2b45; box-shadow: none; }
html[data-theme=dark] #dashboard-screen .nav-item.active { background: #1d3a8a; color: #fff; }
html[data-theme=dark] #dashboard-screen .nav-item.active .nav-icon { color: #fff; }
html[data-theme=dark] #dashboard-screen .page-heading { background: linear-gradient(90deg, rgba(10, 18, 36, .96), rgba(17, 30, 62, .88) 55%, rgba(17, 30, 62, .6)), var(--photo, url(/static/generic-entrance.svg)) 50% 58% / cover no-repeat, #111a2e; }
html[data-theme=dark] #dashboard-screen .stat-card, html[data-theme=dark] #dashboard-screen .panel, html[data-theme=dark] #dashboard-screen .lot-card,
html[data-theme=dark] #dashboard-screen .person-card, html[data-theme=dark] #dashboard-screen .f-card, html[data-theme=dark] #dashboard-screen .bubble { background: #131d33; border-color: #22304d; box-shadow: none; color: #d6deeb; }
html[data-theme=dark] #dashboard-screen .stat-card { border-top: 3px solid #2d55c4; }
html[data-theme=dark] #dashboard-screen .panel-head, html[data-theme=dark] #dashboard-screen th { background: #18233b; border-bottom-color: #22304d; color: #93a3bd; }
html[data-theme=dark] #dashboard-screen .stat-value, html[data-theme=dark] #dashboard-screen .panel-head h2, html[data-theme=dark] #dashboard-screen h1,
html[data-theme=dark] #dashboard-screen h2, html[data-theme=dark] #dashboard-screen h3, html[data-theme=dark] #dashboard-screen strong { color: #eef3fb; }
html[data-theme=dark] #dashboard-screen .stat-label, html[data-theme=dark] #dashboard-screen p, html[data-theme=dark] #dashboard-screen small,
html[data-theme=dark] #dashboard-screen .muted, html[data-theme=dark] #dashboard-screen .empty { color: #93a3bd; }
html[data-theme=dark] #dashboard-screen td, html[data-theme=dark] #dashboard-screen li, html[data-theme=dark] #dashboard-screen .list-row { color: #d6deeb; border-color: #22304d; }
html[data-theme=dark] #dashboard-screen input, html[data-theme=dark] #dashboard-screen select, html[data-theme=dark] #dashboard-screen textarea,
html[data-theme=dark] .modal-box input, html[data-theme=dark] .modal-box select, html[data-theme=dark] .modal-box textarea { background: #18233b; color: #e8eef8; border-color: #2a3a5c; }
html[data-theme=dark] #dashboard-screen .button.outline, html[data-theme=dark] .modal-box .button.outline { background: transparent; color: #d6deeb; border-color: #34466b; }
html[data-theme=dark] #dashboard-screen .button.danger-outline { background: transparent; }
html[data-theme=dark] #dashboard-screen .text-button, html[data-theme=dark] #dashboard-screen .link-button, html[data-theme=dark] #dashboard-screen .eyebrow,
html[data-theme=dark] #dashboard-screen a, html[data-theme=dark] .modal-box .eyebrow { color: #7fa2ff; }
html[data-theme=dark] #dashboard-screen .page-heading .eyebrow { color: #a9bfff; }
html[data-theme=dark] #dashboard-screen .page-heading p { color: #c3cfe3; }
html[data-theme=dark] #dashboard-screen .page-heading h1 { color: #fff; }
html[data-theme=dark] #dashboard-screen .alerts-btn, html[data-theme=dark] #dashboard-screen .help-btn, html[data-theme=dark] #dashboard-screen .theme-toggle { background: #18233b; border-color: #2a3a5c; color: #d6deeb; }
html[data-theme=dark] #dashboard-screen .avatar { background: #2d55c4; }
html[data-theme=dark] #dashboard-screen .lot-number { background: #22345c; color: #eef3fb; }
html[data-theme=dark] #dashboard-screen .lot-number small { color: #8ea3c8; }
html[data-theme=dark] #dashboard-screen .lot-card.suspended .lot-number { background: #6a2f2a; }
html[data-theme=dark] #dashboard-screen .notice, html[data-theme=dark] .modal-box .notice { background: #16243f; border-color: #2a3a5c; color: #c9d5e8; }
html[data-theme=dark] #dashboard-screen .notice.warning, html[data-theme=dark] .modal-box .notice.warning { background: #2b2414; border-color: #5a4a20; color: #ecd9a6; }
html[data-theme=dark] #dashboard-screen .notice.warning strong { color: #ffe3a1; }
html[data-theme=dark] #dashboard-screen .notice.danger, html[data-theme=dark] .modal-box .notice.danger { background: #2e1719; border-color: #5d2a2e; color: #f2c4c4; }
html[data-theme=dark] #dashboard-screen .searchbox { background: #18233b; border-color: #2a3a5c; color: #93a3bd; }
html[data-theme=dark] #dashboard-screen .searchbox input { background: transparent; border: 0; }
html[data-theme=dark] #dashboard-screen .bottom-nav { background: #0f1829; border-top: 1px solid #1f2b45; }
html[data-theme=dark] .modal-box, html[data-theme=dark] .modal-header, html[data-theme=dark] .alerts-menu, html[data-theme=dark] .alert-card,
html[data-theme=dark] #dashboard-screen details.more .menu { background: #131d33; color: #d6deeb; border-color: #22304d; }
html[data-theme=dark] .modal-box h2, html[data-theme=dark] .modal-box h3, html[data-theme=dark] .modal-box strong, html[data-theme=dark] .modal-box label,
html[data-theme=dark] .alerts-menu strong, html[data-theme=dark] .alert-card strong { color: #eef3fb; }
html[data-theme=dark] .modal-box p, html[data-theme=dark] .modal-box small, html[data-theme=dark] .alerts-menu small { color: #93a3bd; }
html[data-theme=dark] .close-modal { color: #d6deeb; background: transparent; }
html[data-theme=dark] #dashboard-screen .page-heading .button.danger-outline { background: #fff; color: #a3281b; border-color: #fff; }
html[data-theme=dark] #dashboard-screen .button.danger-outline { color: #f2a49a; border-color: #6d2a26; }

/* ===== v2.1.7 - lighter page banner: navy only behind the words, so the community's photo shows ===== */
#dashboard-screen .page-heading { background: linear-gradient(90deg, rgba(8,23,56,.86) 0%, rgba(8,23,56,.62) 38%, rgba(13,34,87,.18) 72%, rgba(13,34,87,0) 100%), var(--photo, url(/static/generic-entrance.svg)) 50% 58% / cover no-repeat, #0d2257; }
#dashboard-screen .page-heading h1, #dashboard-screen .page-heading p, #dashboard-screen .page-heading .eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,.45); }
html[data-theme=dark] #dashboard-screen .page-heading { background: linear-gradient(90deg, rgba(10,18,36,.9) 0%, rgba(10,18,36,.68) 38%, rgba(17,30,62,.3) 72%, rgba(17,30,62,.12) 100%), var(--photo, url(/static/generic-entrance.svg)) 50% 58% / cover no-repeat, #111a2e; }
#dashboard-screen .page-heading .button.outline { background: rgba(8,23,56,.6); border-color: rgba(255,255,255,.85); }
/* v2.1.11: community logo */
.logo-box.has-logo { background: #fff; border: 1px solid var(--line); padding: 3px; overflow: hidden; }
.logo-box.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview { width: 96px; height: 96px; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.logo-preview img { max-width: 88px; max-height: 88px; object-fit: contain; }
