/* GateCleared prototype styles */
:root {
  --navy: #0f2a43; --navy2: #17395a; --green: #1fa37a; --green-d: #168562; --green-l: #e3f5ee;
  --amber: #b7791f; --amber-l: #fdf3e1; --red: #c53030; --red-l: #fde8e8; --blue-l: #e8f0fb; --blue: #2b6cb0;
  --ink: #16202b; --ink2: #4a5868; --line: #dde3ea; --bg: #f5f7fa; --card: #fff;
  --r: 12px; --sh: 0 1px 2px rgba(16,32,48,.06), 0 4px 14px rgba(16,32,48,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h2 { font-size: 1.45rem; } h3 { font-size: 1.1rem; }
p { margin: .3em 0 .8em; }
.muted { color: var(--ink2); } .small { font-size: .85rem; } .center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 14px; } .row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 12px; } .span2 { grid-column: span 2; }
.grid4 .span2 { grid-column: auto; }
.spacer { flex: 1; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 9px; padding: 9px 15px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); background: #fff; white-space: nowrap; }
.btn.primary { background: var(--green); color: #fff; } .btn.primary:hover { background: var(--green-d); }
.btn.ghost { border-color: var(--line); background: #fff; } .btn.ghost:hover { border-color: #b9c4d0; }
.btn.ok { background: var(--green); color: #fff; } .btn.danger { background: var(--red); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: .85rem; border-radius: 7px; } .btn.lg { padding: 13px 22px; font-size: 1.05rem; }
.btn.big { padding: 14px 30px; font-size: 1.15rem; } .btn.full { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
input, select, textarea { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
input[type=checkbox], input[type=radio] { width: auto; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink2); margin: 10px 0 0; }
label > input, label > select, label > textarea, label > .btn { margin-top: 4px; font-weight: 400; }
label.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
.lbl { font-size: .85rem; font-weight: 600; color: var(--ink2); margin: 12px 0 6px; }
.hint { background: var(--blue-l); color: #24476e; padding: 8px 12px; border-radius: 8px; font-size: .88rem; margin: 10px 0; }
.search { max-width: 320px; } .search.full { max-width: none; margin-bottom: 6px; }

/* pills, tags */
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: #edf0f4; color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--green-l); color: var(--green-d); } .pill.bad { background: var(--red-l); color: var(--red); } .pill.wait { background: var(--amber-l); color: var(--amber); }
.pill.big { font-size: 1rem; padding: 6px 14px; }
.kind { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: #edf0f4; color: var(--ink2); vertical-align: 2px; }
.k-group { background: #efe7fb; color: #6b3fb0; } .k-crew { background: #fff1e0; color: #a35b00; } .k-delivery { background: #e6f3fb; color: #1d6a99; } .k-person { background: #edf0f4; } .k-event { background: #fde7f1; color: #a3245d; } .k-ban { background: var(--red); color: #fff; } .res.banned, .card.banned { border-color: var(--red); } .k-res { background: var(--green-l); color: var(--green-d); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); margin-bottom: 10px; }
.card.flush { padding: 0; overflow: auto; }
.cards { display: flex; flex-direction: column; gap: 0; }
.cardgrid { align-items: start; } .cardgrid .card { margin: 0; }
.entry { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.entry-main { flex: 1; min-width: 0; } .entry-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.entry.dim { opacity: .6; }
.people { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; } .people span { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; font-size: .85rem; }
.meta { color: var(--ink2); font-size: .86rem; margin-top: 3px; }
.line { padding: 7px 0; border-bottom: 1px solid #eef1f5; } .line:last-child { border-bottom: 0; }
.empty { text-align: center; color: var(--ink2); padding: 30px 10px; } .empty.sm { padding: 10px; font-size: .9rem; } .empty.big { padding: 70px 20px; font-size: 1.1rem; }
.alert { padding: 10px 14px; border-radius: 9px; margin: 8px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.alert.bad { background: var(--red-l); color: #8a1f1f; } .alert.warn { background: var(--amber-l); color: #7a4f0f; } .alert.info { background: var(--blue-l); color: #24476e; } .alert.ok { background: var(--green-l); color: #135e45; }
.alert.ask { background: #fff7e0; border: 2px solid #f0c24b; color: var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink2); background: #f8fafc; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #f8fafc; }

/* tabs & segmented */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--ink2); cursor: pointer; }
.tab.on { background: var(--navy); color: #fff; } .tab .count { opacity: .7; font-weight: 500; margin-left: 3px; }
.toolbar { margin: 10px 0; gap: 10px; }
.segs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { border: 1px solid var(--line); background: #fff; padding: 8px 13px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--ink2); cursor: pointer; }
.seg.on { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.chips, .days { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; margin: 0; background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--green); background: var(--green-l); }
#members .row { margin: 6px 0; flex-wrap: nowrap; }

/* modal & toast */
#modal { position: fixed; inset: 0; background: rgba(10,24,38,.45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; z-index: 50; overflow: auto; }
.sheet { background: #fff; border-radius: 16px; padding: 20px 22px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sheet.wide { max-width: 760px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; font-weight: 500; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* event spreadsheet */
.sheetbar { margin: 12px 0 6px; }
.gridwrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { position: sticky; top: 0; background: #f1f4f8; font-size: .78rem; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--ink2); }
table.grid td { border-bottom: 1px solid #eef1f5; border-right: 1px solid #eef1f5; padding: 0; }
table.grid td.num { width: 36px; text-align: center; color: var(--ink2); font-size: .8rem; background: #f8fafc; }
table.grid input { border: 0; border-radius: 0; padding: 7px 8px; }
table.grid input:focus { outline: 2px solid var(--green); outline-offset: -2px; }
table.grid td:last-child { width: 40px; text-align: center; border-right: 0; }

/* guest pass */
.pass { text-align: center; } .pass-top { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-d); font-weight: 700; margin-bottom: 6px; }
.qr { width: 170px; height: 170px; margin: 14px auto 4px; display: block; border: 1px solid var(--line); border-radius: 10px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }

/* app shell (homeowner web + admin) */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.side.dark { background: var(--navy); color: #fff; border: 0; } .side.dark .muted { color: #9fb3c8; } .side.dark nav a { color: #d4e0ec; } .side.dark nav a.on { background: rgba(255,255,255,.12); color: #fff; } .side.dark .side-foot a { color: #9fb3c8; } .side.dark .brand { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; color: var(--green); }
.who { padding: 10px; background: var(--bg); border-radius: 10px; } .side.dark .who { background: rgba(255,255,255,.07); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.side nav a.on { background: var(--green-l); color: var(--green-d); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; } .side-foot a { color: var(--ink2); }
.main { padding: 26px 32px; max-width: 1100px; width: 100%; }

/* stats & charts */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 12px 0 18px; } .stats.mini { grid-template-columns: repeat(3, 1fr); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); }
.stat .n { font-size: 1.8rem; font-weight: 800; color: var(--navy); } .stat .l { color: var(--ink2); font-size: .85rem; }
.chart { width: 100%; height: auto; margin-top: 10px; } .chart .bar { fill: var(--green); } .chart .axis { font-size: 11px; fill: var(--ink2); } .chart .gridline { stroke: #eef1f5; } .chart .baseline { stroke: #c9d2dc; }

/* guard house */
.guard { min-height: 100vh; background: #eef2f6; }
.gbar { display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--navy); color: #fff; }
.gbar .brand { color: #fff; } .gbar .muted { color: #b6c7d8; } .gtitle { font-weight: 700; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.gbar select { width: auto; padding: 6px 10px; }
.guard.offline .gbar { background: #5a3a12; }
.banner { padding: 10px 20px; font-weight: 500; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner.warn { background: #fde7b0; color: #5a3a12; } .banner.ok { background: var(--green-l); color: #135e45; } .banner.bad { background: var(--red-l); color: #8a1f1f; } .banner.wait { background: #fff7e0; color: #6b4e0a; }
.gmain { display: grid; grid-template-columns: 1fr 340px; gap: 18px; padding: 18px 20px; }
.gsearch { display: flex; gap: 8px; } .gsearch input { font-size: 1.35rem; padding: 14px 16px; border-width: 2px; }
.gcols { display: grid; grid-template-columns: minmax(260px, 1fr) 1.3fr; gap: 14px; margin-top: 14px; }
.results { display: flex; flex-direction: column; gap: 8px; }
.res { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 11px 13px; font: inherit; cursor: pointer; color: var(--ink); }
.res:hover, .res:focus { border-color: var(--green); outline: 0; }
.card.big { padding: 20px; } .card.big h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.gright { background: #fff; border-radius: var(--r); padding: 12px; border: 1px solid var(--line); align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.gright .tabs { margin-bottom: 10px; }
.logrow { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #eef1f5; align-items: start; font-size: .9rem; }
.logrow .t { color: var(--ink2); font-variant-numeric: tabular-nums; }
.evlist { max-height: 260px; overflow: auto; margin-top: 6px; }

/* phone app */
.phone-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 30px; background: linear-gradient(160deg, #0f2a43, #1b4b6b); }
.phone-side { max-width: 300px; color: #dce7f1; } .phone-side .brand { color: #fff; margin-bottom: 14px; } .phone-side .muted { color: #a9bdd0; }
.phone { width: 390px; height: 800px; max-height: calc(100vh - 60px); background: var(--bg); border-radius: 44px; border: 10px solid #0a0f14; box-shadow: 0 30px 80px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.ph-status { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: .8rem; font-weight: 700; background: #fff; }
.ph-body { flex: 1; overflow: auto; padding: 14px 14px 20px; }
.ph-hello { font-size: 1.5rem; font-weight: 800; }
.ph-sec { font-weight: 700; margin: 18px 0 8px; color: var(--ink2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.qbtn { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--sh); }
.qbtn span { font-size: 1.6rem; }
.arr { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #e7ebf0; flex-wrap: wrap; } .arr .muted { margin-left: auto; }
.ph-tabs { display: flex; border-top: 1px solid var(--line); background: #fff; padding: 6px 4px 14px; }
.ph-tabs button { flex: 1; border: 0; background: none; font: inherit; font-size: .72rem; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; position: relative; }
.ph-tabs button span { font-size: 1.25rem; line-height: 1.2; } .ph-tabs button.on { color: var(--green-d); font-weight: 700; }
.ph-tabs button.plus span { background: var(--green); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-top: -14px; box-shadow: 0 4px 10px rgba(31,163,122,.4); }
.ph-tabs .dot { position: absolute; top: 0; right: 30%; }
.phone .entry { flex-direction: column; align-items: stretch; } .phone .entry-actions { justify-content: flex-start; }
.phone .alert.ask { flex-direction: column; align-items: stretch; } .phone .alert.ask .row { justify-content: stretch; } .phone .alert.ask .btn { flex: 1; }

/* marketing site */
.site { background: #fff; }
.snav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 5vw; position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); z-index: 10; border-bottom: 1px solid #eef1f5; }
.snav nav { display: flex; gap: 22px; } .snav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.hero { background: radial-gradient(1200px 500px at 80% -10%, #1f5b80 0%, transparent 60%), linear-gradient(170deg, #0f2a43 0%, #0c2236 100%); color: #fff; padding: 70px 5vw 80px; }
.hero-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .8rem; color: #7fd6b5; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.025em; line-height: 1.05; }
.hl { color: #4fd1a0; }
.lead { font-size: 1.18rem; color: #c8d7e5; max-width: 560px; margin: 18px 0 26px; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: #a9c3d8; font-size: .9rem; }
.hero-art { position: relative; height: 420px; }
.mock { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.guardmock { left: 0; top: 10px; width: 88%; padding: 0 0 16px; overflow: hidden; }
.mock-bar { background: var(--navy2); color: #cfe0ef; padding: 9px 12px; font-size: .8rem; display: flex; gap: 6px; align-items: center; } .mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4d6c88; } .mock-bar span { margin-left: 8px; }
.mock-search { margin: 14px; border: 2px solid var(--green); border-radius: 9px; padding: 10px 12px; font-size: 1.2rem; font-weight: 600; }
.mock-res { margin: 8px 14px; border: 2px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .mock-res .pill { margin-left: auto; } .mock-res .meta { width: 100%; } .mock-res.dim { opacity: .6; }
.mock-admit { margin: 10px 14px 0; background: var(--green); color: #fff; text-align: center; padding: 11px; border-radius: 9px; font-weight: 700; }
.phonemock { right: 0; bottom: -10px; width: 230px; height: 300px; border-radius: 30px; border: 7px solid #0a0f14; padding: 30px 12px 12px; background: var(--bg); }
.ph-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 14px; background: #0a0f14; border-radius: 10px; }
.mock-alert { background: #fff7e0; border: 2px solid #f0c24b; border-radius: 12px; padding: 10px; font-size: .85rem; }
.mbtn { flex: 1; text-align: center; padding: 6px; border-radius: 7px; font-weight: 700; font-size: .8rem; margin-top: 8px; } .mbtn.no { background: var(--red); color: #fff; } .mbtn.yes { background: var(--green); color: #fff; }
.mock-line { font-size: .8rem; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--green-d); }
.band { background: var(--green-l); padding: 26px 5vw; } .band-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.band b { display: block; font-size: 1.35rem; color: var(--navy); } .band span { color: var(--ink2); font-size: .92rem; }
.sec { padding: 80px 5vw; } .sec.alt { background: var(--bg); } .sec-in { max-width: 1180px; margin: 0 auto; } .sec-in.narrow { max-width: 760px; }
.sec h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; } .sub { font-size: 1.1rem; color: var(--ink2); max-width: 720px; margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--sh); }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; } .f h3 { color: var(--navy); } .f p { color: var(--ink2); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ticks { list-style: none; padding: 0; } .ticks li { padding: 6px 0 6px 28px; position: relative; } .ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.callout { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--sh); } .callout .banner { border-radius: 10px; }
.compare td:first-child { font-weight: 700; } .compare td:last-child { color: var(--green-d); font-weight: 600; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; } summary { font-weight: 700; cursor: pointer; } details p { color: var(--ink2); margin: 10px 0 0; }
.cta { background: linear-gradient(170deg, #0f2a43, #133a5a); color: #fff; } .cta .sub { color: #c8d7e5; margin-left: auto; margin-right: auto; } .cta a { color: #7fd6b5; } .cta .muted { color: #a9c3d8; }
.demo-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; max-width: 1000px; margin: 0 auto 16px; }
.sfoot { background: #0a1d2f; color: #b6c7d8; padding: 50px 5vw 24px; } .sfoot .brand { color: #fff; } .sfoot .muted { color: #8aa2b8; }
.sfoot-in { max-width: 1180px; margin: 0 auto 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; } .sfoot-in > div { display: flex; flex-direction: column; gap: 8px; } .sfoot a { color: #b6c7d8; text-decoration: none; } .sfoot b { color: #fff; }
.login { max-width: 1100px; margin: 0 auto; padding: 50px 5vw 70px; text-align: center; }
.logins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; text-align: left; }
.login-card { padding: 22px; } .login-card .btn.primary { margin-top: 14px; } .login-card > a { display: block; text-align: center; margin-top: 10px; }
.g .gmark { font-weight: 800; color: #4285f4; } .or { text-align: center; color: var(--ink2); font-size: .8rem; margin: 10px 0 0; }

/* responsive */
@media (max-width: 1000px) {
  .hero-in, .split { grid-template-columns: 1fr; } .hero-art { height: 380px; } .feat, .steps { grid-template-columns: 1fr 1fr; }
  .gmain { grid-template-columns: 1fr; } .gcols { grid-template-columns: 1fr; } .gright { max-height: none; }
  .stats { grid-template-columns: repeat(3, 1fr); } .demo-form { grid-template-columns: 1fr 1fr; } .snav nav { display: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .side nav { flex-direction: row; flex-wrap: wrap; } .side-foot { flex-direction: row; gap: 14px; }
  .main { padding: 18px 14px; } .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .entry { flex-direction: column; align-items: stretch; }
  .feat, .steps, .band-in, .logins, .sfoot-in, .demo-form { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; }
  .hero-art { display: none; } .phone-side { display: none; } .phone-stage { padding: 0; background: var(--bg); }
  .phone { width: 100%; height: 100vh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .gbar { flex-wrap: wrap; } .gsearch { flex-wrap: wrap; } .gsearch input { font-size: 1.1rem; }
}

/* household records */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: #dfe7ef; color: var(--navy); font-weight: 700; }
.photofield { display: flex; gap: 14px; align-items: center; margin: 6px 0 4px; } .photofield .btn { margin-right: 6px; }
.hhrow { display: flex; gap: 12px; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid #eef1f5; padding: 9px 2px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.hhrow:hover { background: #f8fafc; } .hhrow > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .chev { color: var(--ink2); font-size: 1.3rem; }
.carbadge { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .05em; border: 2px solid var(--navy); border-radius: 6px; padding: 3px 8px; background: #fff; font-size: .85rem; flex: none; }
.lockbox { display: flex; gap: 10px; background: #f4f6f9; border: 1px dashed #c9d2dc; border-radius: 10px; padding: 10px 12px; margin-top: 14px; } .lock { font-size: 1.2rem; }
.facegrid { display: flex; flex-wrap: wrap; gap: 14px; } .face { display: flex; gap: 10px; align-items: center; min-width: 200px; }
.tagrow { display: grid; grid-template-columns: auto 1fr 150px auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.k-pet { background: #fff4d6; color: #8a6100; }
@media (max-width: 760px) { .tagrow { grid-template-columns: auto 1fr; } }

/* rented homes */
.rentcard { border-left: 4px solid var(--amber); }
.perms { list-style: none; padding: 0; margin: 6px 0 0; } .perms li { padding: 4px 0 4px 26px; position: relative; }
.perms li::before { position: absolute; left: 0; font-weight: 800; } .perms .yes::before { content: "\2713"; color: var(--green); } .perms .no { color: var(--ink2); } .perms .no::before { content: "\2715"; color: var(--red); } .perms .info::before { content: "i"; color: var(--blue); left: 4px; }
input.tiny { width: 64px; display: inline-block; padding: 4px 6px; margin-left: 4px; }
label.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; } label.inline input { width: auto; margin: 0; }
.persona { margin: 0; font-size: .78rem; } .persona select { margin-top: 4px; font-size: .85rem; padding: 6px 8px; }
.who { display: flex; gap: 10px; align-items: center; }
.ph-body .persona { margin-bottom: 8px; }

/* associations */
.apill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: #e6eef8; color: #22528a; vertical-align: 1px; }
.apill.a-ter { background: #f3e8ff; color: #6b3fb0; }
.meta.bad { color: var(--red); font-weight: 600; }
.persona.dark { color: #c9d6e3; } .persona.dark select { background: #17395a; color: #fff; border-color: #2d5379; }
.scopefilter select { width: auto; }
.rights { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 4px; font: inherit; font-weight: 600; cursor: pointer; }
.slot.on { background: var(--green); color: #fff; border-color: var(--green); } .slot.taken { background: #eef1f5; color: #9aa6b2; text-decoration: line-through; cursor: not-allowed; }
@media (max-width: 760px) { .rights { grid-template-columns: 1fr; } }

/* fobs */
input.tiny2 { width: 108px; display: inline-block; padding: 4px 6px; } input.w140 { width: 140px; } .pad { padding: 12px 14px; }

.units { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .unit { border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; font-size: .85rem; } .unit.res { border-color: var(--green); background: var(--green-l); color: var(--green-d); font-weight: 600; }
.unitrow { margin: 6px 0; flex-wrap: nowrap; } .unitrow input:not([type=checkbox]) { max-width: 280px; } .unitrow .chk { margin: 0; white-space: nowrap; }

.hoursgrid { grid-template-columns: 170px 1fr 1fr; align-items: end; } .hoursgrid > span { font-weight: 600; padding-bottom: 10px; }
.bo { padding: 6px 0; border-top: 1px solid #eef1f5; font-size: .88rem; } .alert.small { font-size: .82rem; padding: 6px 10px; }
@media (max-width: 760px) { .hoursgrid { grid-template-columns: 1fr 1fr; } .hoursgrid > span { grid-column: span 2; padding: 0; } }

#fobhh { width: auto; max-width: 280px; } .tbl td:has(> .carbadge) { white-space: nowrap; } .tbl td { overflow-wrap: normal; }

/* dialer */
.dialer h3 { margin: 0; } .dial-who { display: flex; gap: 14px; align-items: center; margin: 12px 0; } .dial-num { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dial-state { font-size: 1.1rem; font-weight: 700; padding: 10px 14px; border-radius: 10px; margin: 8px 0; background: #fff7e0; color: #6b4e0a; }
.dial-state.connected { background: var(--green-l); color: var(--green-d); }
.dialer .row { margin-top: 8px; }

.hourtbl td { padding: 4px 6px; border: 0; vertical-align: middle; } .hourtbl input[type=time] { width: 130px; } .hourtbl .chk { margin: 0; } .hourtbl input:disabled { opacity: .4; }

/* support tickets */
.card.tk { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; } .card.tk.unread { border-color: var(--blue); }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 46vh; overflow: auto; }
.msg { border-radius: 10px; padding: 9px 12px; background: var(--bg); border: 1px solid var(--line); max-width: 88%; }
.msg.mgmt { align-self: flex-end; background: var(--blue-l); border-color: #c9daf0; } .msg.internal { background: #fff7e0; border-style: dashed; border-color: #e5c66b; }
.tkphoto { max-width: 200px; border-radius: 8px; margin: 6px 6px 0 0; display: inline-block; }
.count-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .75rem; text-align: center; margin-left: 4px; }
.tbl tr.bold td { font-weight: 700; } .bad { color: var(--red); }
.topicrow { flex-wrap: nowrap; margin: 6px 0; } .topicrow input:not([type=checkbox]) { flex: 1; } .topicrow .chk { margin: 0; }
a.alert { text-decoration: none; display: block; }

.sysline { align-self: center; font-size: .8rem; color: var(--ink2); background: #f1f4f8; border-radius: 99px; padding: 3px 12px; }
.email pre { white-space: pre-wrap; font: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }

/* notices & surveys */
.unreadcard { border-left: 4px solid var(--blue); } .chanstats { display: flex; gap: 6px; flex-wrap: wrap; }
button.alert { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.sq { padding: 12px 0; border-bottom: 1px solid #eef1f5; } .sqt { font-weight: 600; margin-bottom: 6px; } .sq .chk { margin: 4px 0; }
.qbox { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; background: #fbfcfd; } .qbox > input { margin: 8px 0; } .qbox select { width: auto; }
.opts .row { flex-wrap: nowrap; margin: 4px 0; } .optmark { color: var(--ink2); width: 18px; }
.meter { display: inline-block; width: 80px; height: 8px; background: #eef1f5; border-radius: 4px; vertical-align: middle; overflow: hidden; } .meter span { display: block; height: 100%; background: var(--green); }
.rq { padding: 14px 0; border-bottom: 1px solid #eef1f5; } .rbar { display: grid; grid-template-columns: minmax(90px, 200px) 1fr 90px; gap: 10px; align-items: center; margin: 6px 0; }
.rt { background: #eef1f5; border-radius: 5px; height: 14px; overflow: hidden; } .rf { display: block; height: 100%; background: #9cc9b8; border-radius: 5px; } .rf.top { background: var(--green); } .rn { font-variant-numeric: tabular-nums; text-align: right; }
.quote { background: var(--bg); border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: .92rem; }

select.w180 { width: 180px; flex: none; }

.banrow { padding: 8px 2px; border-bottom: 1px solid #eef1f5; } .gright .row input { flex: 1; }

.review { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-bottom: 10px; }
@media (max-width: 720px) { .review { grid-template-columns: 1fr; } }
.speedbig { font-size: 15px; display: flex; gap: 8px; align-items: baseline; } .speedbig b { font-size: 30px; }
.camshot { height: 120px; border-radius: 10px; background: linear-gradient(135deg,#2b3442,#4a5668); color: #c9d2de; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin: 8px 0; font-size: 12px; }
.suggest { background: #eef6ff; border: 1px solid #cfe3fb; border-radius: 10px; padding: 10px 12px; margin: 8px 0 10px; font-size: 14px; } .suggest .muted { display: block; font-size: 12px; margin-top: 3px; }
tr.counts td { background: #fff7e8; } .counts-tag { color: #9a6200; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid #e3e8ef; margin: 6px 0 14px; } .subtabs a { padding: 8px 12px; color: #4a5568; text-decoration: none; border-bottom: 2px solid transparent; } .subtabs a.on { color: #0b5cad; border-color: #0b5cad; font-weight: 600; }
.ladder { align-items: center; margin: 4px 0; } .ladder span { width: 110px; } .ladder input { width: 110px; }
.ladderview { display: flex; gap: 14px; margin: 6px 0; font-size: 15px; }
.card.flat { box-shadow: none; border: 1px solid #e3e8ef; }

/* operator console, setup checklist, join page */
.opr { min-height: 100vh; background: var(--bg, #f4f6f9); } .opr-main { max-width: 1180px; margin: 0 auto; padding: 22px; }
.statrow { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 14px; } .statrow .stat { padding: 10px 16px; display: flex; flex-direction: column; min-width: 110px; }
.statrow .stat b { font-size: 1.5rem; color: var(--navy); } .statrow .stat span { color: var(--ink2); font-size: .82rem; } .statrow .stat.warn b { color: #b26a00; }
.progress { height: 8px; background: #e3e8ef; border-radius: 6px; overflow: hidden; margin: 4px 0 14px; } .progress span { display: block; height: 100%; background: var(--green, #1f9d6e); }
.step { padding: 12px 16px; } .step .stephead { cursor: pointer; } .stepnum { width: 28px; height: 28px; border-radius: 50%; background: #e7edf5; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.step.done .stepnum { background: var(--green, #1f9d6e); color: #fff; } .step.open { border: 2px solid #9cc3ea; } .stepbody { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1f5; }
.stepbody input { min-width: 0; } ul.plain { margin: 0 0 10px; padding-left: 18px; line-height: 1.7; }
.setupbadge { display: block; margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #2b4f74; color: #fff; font-size: .82rem; text-decoration: none; }
.problems { max-height: 180px; overflow: auto; border: 1px solid #eee2c8; background: #fffaf0; border-radius: 8px; padding: 8px 10px; font-size: .85rem; margin-bottom: 10px; }
.problems .error { color: #a12b2b; } .problems .warn { color: #7a4f0f; }
.join .joincard { max-width: 440px; margin: 0 auto; } .joinpick { display: flex; justify-content: space-between; text-decoration: none; color: inherit; margin: 8px 0; }
.empty-state { max-width: 520px; margin: 80px auto; text-align: center; } .banner.practice { background: #fff3d6; color: #7a4f0f; }
.center { text-align: center; } .side-foot a + a { margin-left: 0; }
.sulist { display: flex; flex-direction: column; gap: 10px; } .sulist .stephead { flex-wrap: nowrap; } .sulist .stephead > .row { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
label.btn { display: inline-flex; width: auto; margin: 0; } label.btn:not(.ghost) { border: 1px solid var(--line, #d5dbe3); background: #fff; }

.login-card.single { max-width: 420px; margin: 0 auto; text-align: left; } .login-card.single h1 { margin-top: 0; font-size: 1.8rem; }
.demo-note { margin-top: 12px; text-align: center; }
.logins.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } a.demo-role { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; } a.demo-role .btn { margin-top: auto; }

.sfoot.mini { padding: 18px 0; } .sfoot.mini .sfoot-in { display: block; text-align: center; }

.opbanner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff4d6; border: 1px solid #f0c24b; color: #5c4209; border-radius: 10px; padding: 9px 14px; margin-bottom: 14px; font-size: .88rem; }
.opbanner a { font-weight: 700; color: #5c4209; white-space: nowrap; } td.nowrap { flex-wrap: nowrap; white-space: nowrap; }

.fsec { font-weight: 700; color: var(--navy); margin: 14px 0 2px; padding-top: 10px; border-top: 1px solid #eef1f5; } .fsec:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .fgrid .full { grid-column: 1 / -1; } .fgrid.tight { grid-template-columns: 1.6fr 1fr; gap: 0 10px; }
.fgrid label { margin-top: 8px; } .fgrid input, .fgrid select { width: 100%; }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.optbl td { vertical-align: top; } .opacts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; } .backup { margin-top: 6px; }

.nw { white-space: nowrap; } .nowrapflex { flex-wrap: nowrap; } #opstate { width: auto; min-width: 180px; }

.nactions { margin-top: 8px; gap: 8px; } .resp { margin: 8px 0; } .resp .ra { margin-top: 8px; } .resp .quote { margin: 2px 0 0; }

.personlink { font-weight: 600; } .contactgrid { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 14px 0 6px; } .contactgrid .lbl { margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; } @media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } }
.pill.prio-low { background: #eef1f5; color: #5a6675; } .pill.prio-normal { background: #e7f1fb; color: #24476e; } .pill.prio-high { background: #fff1d6; color: #8a5a00; } .pill.prio-urgent { background: #fbe3e3; color: #a12b2b; }
.readmark { color: #1f7a55; font-weight: 600; }

table.tbl thead th { cursor: pointer; user-select: none; white-space: nowrap; } table.tbl thead th:empty { cursor: default; }
table.tbl thead th.sorted { color: var(--navy, #0f2a43); } table.tbl thead th.sorted::after { content: ' \25B2'; font-size: .7em; } table.tbl thead th.sorted[data-dir="desc"]::after { content: ' \25BC'; }
