:root {
  --navy: #1F4E78;
  --navy-ink: #163a5a;
  --section: #D6E4F0;
  --header: #D9D9D9;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1b1f24;
  --muted: #5d6670;
  --line: #c9ced4;
  --line-soft: #e3e6ea;
  --dirty: #fff3bf;
  --dirty-line: #e0b400;
  --done: #1d6b3a;
  --danger: #b42318;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.4 var(--font); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

/* ---------- generic ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.brand { background: var(--navy); color: #fff; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 22px; }
.brand h1 { font-size: 24px; letter-spacing: .2px; }
.brand p { margin: 4px 0 0; opacity: .8; font-size: 15px; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 20px; margin-bottom: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); background: none; border: 0; padding: 8px 0; margin-bottom: 8px; font-weight: 600; }
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
label.field small { display: block; color: var(--muted); margin-top: 4px; font-size: 13px; }
input[type=text], input[type=number], input[type=email], select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 17px;
}
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(31,78,120,.35); outline-offset: 1px; }
.btn { min-height: 48px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:disabled { background: #9fb0c0; border-color: #9fb0c0; cursor: default; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.err { color: var(--danger); font-weight: 600; margin: 8px 0; }

/* ---------- main menu ---------- */
.menu { display: grid; gap: 14px; }
.menu button { display: flex; gap: 16px; align-items: center; text-align: left; width: 100%; padding: 20px; min-height: 92px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.menu button:active { background: #eef3f8; }
.menu .ico { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--section); color: var(--navy); display: grid; place-items: center; }
.menu .ico svg { width: 28px; height: 28px; }
.menu b { display: block; font-size: 19px; }
.menu span.d { color: var(--muted); font-size: 14.5px; }

/* lot label editor */
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.lots .lot { position: relative; }
.lots .lot small { position: absolute; top: 3px; left: 8px; font-size: 10px; color: var(--muted); }
.lots .lot input { padding-top: 16px; min-height: 52px; text-align: center; font-weight: 600; }
.lots .lot button.x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--danger); font-weight: 700; line-height: 1; padding: 0; }

/* ---------- editor ---------- */
.editor { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.topbar { flex: none; background: var(--navy); color: #fff; padding: 10px 12px calc(10px) 12px; padding-top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; }
.topbar .home { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 8px; min-height: 44px; padding: 0 14px; font-weight: 600; }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title span { font-size: 13px; opacity: .8; }
.save { min-height: 44px; padding: 0 20px; border-radius: 8px; border: 0; background: #fff; color: var(--navy); font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.save:disabled { background: rgba(255,255,255,.2); color: rgba(255,255,255,.75); cursor: default; }
.save .n { background: var(--dirty-line); color: #1b1f24; border-radius: 999px; padding: 1px 8px; font-size: 13px; }
.subbar { flex: none; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: #eceff2; padding: 4px; border-radius: 10px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; min-height: 40px; border-radius: 7px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.subbar select { width: auto; min-width: 200px; max-width: 320px; min-height: 44px; font-size: 15px; }
.subbar .status { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.subbar .status.warn { color: #8a6100; font-weight: 600; }
.subbar .status.bad { color: var(--danger); font-weight: 600; }
.subbar .link { background: none; border: 0; color: var(--navy); font-weight: 600; min-height: 44px; padding: 0 6px; }

.gridwrap { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; overscroll-behavior: contain; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.grid th, table.grid td { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
table.grid thead th { position: sticky; top: 0; z-index: 3; background: var(--header); font-weight: 700; height: 40px; padding: 0 4px; border-bottom: 1px solid var(--line); }
table.grid .desc { position: sticky; left: 0; z-index: 2; background: #fff; width: 300px; min-width: 300px; max-width: 300px; padding: 8px 10px; text-align: left; font-weight: 400; border-right: 1px solid var(--line); }
table.grid thead th.desc { z-index: 4; background: var(--header); font-weight: 700; }
table.grid tr.sec td { background: var(--section); height: 36px; }
table.grid tr.sec td.desc { background: var(--section); font-weight: 700; color: var(--navy-ink); font-size: 15px; }
table.grid td.c { width: 78px; min-width: 78px; height: 44px; text-align: center; padding: 0; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
table.grid td.c.has { color: var(--done); font-weight: 600; }
table.grid td.c.def { color: #c81e1e; font-weight: 800; font-size: 20px; background: #fdecec; }
table.grid td.c.na { color: var(--muted); font-weight: 700; background: #f1f2f4; }
table.grid td.c.dirty { background: var(--dirty); box-shadow: inset 0 0 0 2px var(--dirty-line); }
table.grid td.c.sel { box-shadow: inset 0 0 0 3px var(--navy); }
table.grid tbody tr:hover td.c:not(.dirty) { background: #fafbfc; }
table.grid td.c:active { background: #e8f0f8; }
@media (max-width: 900px) { table.grid .desc { width: 220px; min-width: 220px; max-width: 220px; font-size: 13px; } }

/* date popover */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(15, 25, 35, .18); }
.pop { position: fixed; z-index: 51; width: 320px; max-width: calc(100vw - 24px); background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; }
.pop .cap { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.pop .item { font-weight: 600; margin: 4px 0 14px; }
.pop .today { width: 100%; min-height: 54px; font-size: 18px; }
.pop .or { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.pop .or span { white-space: nowrap; color: var(--muted); font-size: 14px; }
.pop input[type=date] { flex: 1; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 17px; background: #fff; -webkit-appearance: none; min-width: 0; display: block; }
.pop .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pop .acts .btn { flex: 1; }
.pop .btn.na { color: var(--muted); }
.pop .btn.defx { color: #fff; background: #c81e1e; border-color: #c81e1e; }
.tabs .xb { margin-left: 6px; background: #c81e1e; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.menu .ico.red { background: #fdecec; color: #c81e1e; }
table.pt td.px { color: #c81e1e; font-weight: 800; font-size: 9pt; }
.ptitle .bar.red { background: #c81e1e; }
table.dt { font-size: 9pt; }
table.pt.dt td, table.pt.dt th { padding: 3pt 5pt; height: 18pt; text-align: left; }
table.dt td.dl { text-align: left; font-size: 10.5pt; }
table.dt .xm { color: #c81e1e; font-weight: 800; margin-right: 6px; }
table.dt td.dlots { font-weight: 600; }
table.dt tr.nb { break-inside: avoid; page-break-inside: avoid; }
.dreport .psec { margin-bottom: 10pt; }
.dreport p.none { font-size: 12pt; margin-top: 20px; }
.pop .fill { width: 100%; margin-top: 10px; background: #f3f6f9; border: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--navy); min-height: 44px; border-radius: 8px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .2s; background: #1b1f24; color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 100; pointer-events: none; font-weight: 600; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--danger); }

/* ---------- print ---------- */
.printbar { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
.printbar .sp { flex: 1; font-weight: 600; }
.printbar .btn { min-height: 44px; color: var(--navy); }
.sheetsel label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; font-weight: 500; }
.sheetsel input { width: 22px; height: 22px; }

.paper { background: #fff; padding: 20px; }
.psheet { break-before: page; page-break-before: always; }
.psheet:first-child { break-before: auto; page-break-before: auto; }
.ptitle { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 6px; }
.ptitle .bar { background: var(--navy); color: #fff; font-weight: 700; font-size: 15pt; padding: 3px 10px; min-width: 3.2in; }
.ptitle .proj { font-weight: 700; font-size: 15pt; }
.ptitle .meta { margin-left: auto; font-size: 8pt; color: #444; }
.psec { break-inside: avoid; page-break-inside: avoid; margin-bottom: 0; }
table.pt { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 7.5pt; }
table.pt td, table.pt th { border: .6pt solid #000; padding: 1pt 2pt; height: 13pt; }
table.pt .st { background: var(--section); color: var(--navy-ink); font-weight: 700; text-align: center; font-size: 8.5pt; border-left-color: transparent; border-right-color: transparent; }
table.pt th { background: var(--header); font-weight: 700; text-align: center; }
table.pt td.pd { text-align: center; }
table.pt td.pv { text-align: center; white-space: nowrap; font-size: 7pt; }
table.pt col.dc { width: 2.7in; }
.pfoot { font-size: 7pt; color: #555; margin-top: 4px; }
@media print {
  @page { size: landscape; margin: .35in; }
  body { background: #fff; }
  .noprint, #toast, .scrim, .pop { display: none !important; }
  .paper { padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- weekly field meeting ---------- */
.gridwrap.meetwrap { background: var(--bg); }
.meet { max-width: 1160px; margin: 0 auto; padding: 18px 16px 80px; }
.mtop { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 16px; }
.mtop h2 { font-size: 22px; color: var(--navy); width: 100%; }
.mproj { flex: 1; min-width: 220px; }
.mproj span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.mproj input { background: #eef1f4; color: var(--ink); font-weight: 600; }
.seg { display: inline-flex; background: #e4e8ec; border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.msec { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.msec header { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--section); }
.msec h3 { font-size: 17px; color: var(--navy-ink); }
.msec .cnt { margin-left: auto; font-size: 13.5px; color: var(--navy-ink); font-weight: 600; }
.mempty { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 15px; }
.mitem { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line-soft); border-left: 4px solid transparent; }
.mitem.dirty { border-left-color: var(--dirty-line); background: #fffbea; }
.mst { min-height: 40px; min-width: 112px; border-radius: 999px; font-weight: 700; font-size: 14px; padding: 0 12px; }
.mst.o { background: #fff; color: #9a5b00; border: 2px solid #e2a23b; }
.mst.c { background: var(--done); color: #fff; border: 2px solid var(--done); }
.mbody { min-width: 0; }
.mtext { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 7px 8px; font-size: 16px; line-height: 1.35; resize: none; overflow: hidden; background: transparent; display: block; }
.mtext:focus { border-color: var(--line); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(31,78,120,.15); }
.mitem.done .mtext { color: var(--muted); }
.mmeta { font-size: 12.5px; color: var(--muted); padding: 0 9px; }
.mmeta b { color: #8a6100; }
.mdel { width: 44px; height: 40px; border: 0; background: transparent; color: #8b939c; border-radius: 8px; display: grid; place-items: center; }
.mdel:active, .mdel:hover { color: var(--danger); background: #fdecec; }
.madd { display: flex; gap: 10px; padding: 12px 16px; align-items: flex-start; background: #fafbfc; }
.madd textarea { flex: 1; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; resize: none; overflow: hidden; background: #fff; line-height: 1.35; }
.madd .btn { min-height: 46px; min-width: 80px; }
.tabs .ob { margin-left: 6px; background: var(--navy); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
@media (max-width: 600px) { .mst { min-width: 0; } }

/* meeting report */
table.mt td.mtx { white-space: pre-wrap; }
table.mt td.so { color: #9a5b00; font-weight: 700; }
table.mt td.sc { color: var(--done); font-weight: 600; }
table.mt td.mnone { color: #555; font-style: italic; }

.msec .msub { font-size: 13px; color: var(--navy-ink); opacity: .8; }
.msec.mall { border-color: #9fb6cc; }
.msec.mall header { background: var(--navy); }
.msec.mall h3, .msec.mall .msub, .msec.mall .cnt { color: #fff; }
.psub { font-weight: 500; font-size: 8.5pt; }
@media (max-width: 700px) { .msec header { flex-wrap: wrap; } .msec .msub { order: 3; width: 100%; } }

/* lot status */
.mlots header { background: var(--section); }
.lshead, .lsrow { display: grid; grid-template-columns: 50px minmax(270px, 1.6fr) repeat(4, minmax(118px, 1fr)) 74px; gap: 8px; align-items: center; padding: 8px 12px 8px 16px; }
.lshead { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid var(--line-soft); line-height: 1.2; }
.lsrow { border-bottom: 1px solid var(--line-soft); border-left: 4px solid transparent; padding-left: 12px; }
.lsrow.dirty { border-left-color: var(--dirty-line); background: #fffbea; }
.lslot { font-size: 17px; color: var(--navy); }
.lsseg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: #eceff2; padding: 3px; border-radius: 9px; }
.lsseg button { border: 0; background: transparent; min-height: 38px; border-radius: 6px; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 0 2px; }
.lsseg button.on { color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.lsseg .s-sold { background: #C62828; }
.lsseg .s-spec { background: var(--navy); }
.lsseg .s-model { background: #6b3fa0; }
.lsseg .s-rental { background: #a15c00; }
.lsd span { display: none; }
.lsd input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: #fff; -webkit-appearance: none; }
@media (max-width: 1050px) {
  .lshead { display: none; }
  .lsrow { grid-template-columns: 56px 1fr 1fr; row-gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .lsseg { grid-column: 2 / 4; }
  .lsd:nth-of-type(odd) { grid-column: 2; }
  .lsd:nth-of-type(even) { grid-column: 3; }
  .lsd span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
}
table.lst td.ls-sold { color: #C62828; font-weight: 700; }
table.lst td.ls-spec { color: var(--navy); font-weight: 700; }
table.lst td.ls-model { color: #6b3fa0; font-weight: 700; }
table.lst td.ls-rental { color: #a15c00; font-weight: 700; }

.lsnt { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lsnt input { width: 22px; height: 22px; accent-color: var(--navy); }
.lsnt.has { color: var(--navy); font-weight: 800; }
.lsnote { grid-column: 2 / -1; width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; line-height: 1.35; resize: none; overflow: hidden; background: #fff; }
table.lst td.lsn { white-space: pre-wrap; font-size: 8pt; }
@media (max-width: 1050px) {
  .lsrow .lsnt { grid-column: 2 / 4; }
}

.pbsort { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.pbsort select { width: auto; min-height: 40px; font-size: 14px; padding: 6px 30px 6px 8px; background-color: #fff; color: var(--ink); }
table.pt th.srt { background: #c7d6e6; }
@media (max-width: 760px) { .printbar { flex-wrap: wrap; } .pbsort { order: 3; width: 100%; } }

/* dates with a suspicious year */
.lsd input.odd { border: 2px solid #c81e1e; background: #fdecec; color: #8f1414; font-weight: 700; }
table.grid td.c.odd { box-shadow: inset 0 0 0 2px #c81e1e; color: #8f1414; }
table.pt td.odd { color: #c81e1e; font-weight: 800; }
.oddnote { color: #c81e1e; font-weight: 700; font-size: 9pt; margin: 4px 0 0; }

.lsseg .s-settled { background: #3d4b59; }
table.lst td.ls-settled { color: #3d4b59; font-weight: 700; }

/* manage checklists */
.page.wide { max-width: 940px; }
.cllist { display: grid; gap: 10px; }
.clrow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; background: #fafbfc; }
.clmove { display: grid; gap: 6px; }
.btn.sm { min-height: 36px; min-width: 44px; padding: 0 10px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.clnames { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.clnames label span, .upnames label span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.clnames input, .upnames input { min-height: 44px; }
.clmeta { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.clmeta .link { background: none; border: 0; color: var(--navy); font-weight: 600; padding: 4px 6px; min-height: 36px; }
label.btn { display: inline-flex; align-items: center; cursor: pointer; }
.upc { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #fafbfc; }
.upc.off { opacity: .55; }
.upinc { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.upinc input, .sheetsel input[type=checkbox] { width: 22px; height: 22px; }
.upnames { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 8px 0; }
.uphint { margin: 6px 0 0; color: #8a6100; font-size: 13.5px; font-weight: 600; }
.updup { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fff7e0; border: 1px solid #ecd28a; font-size: 14.5px; }
.updup label { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.updup input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.upsecs { margin-top: 10px; display: grid; gap: 8px; }
.upsec { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px; }
.upsec input { flex: 1; min-height: 42px; }
.upsec details { margin-top: 6px; font-size: 14px; }
.upsec summary { cursor: pointer; color: var(--navy); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.upsec ol { margin: 6px 0 0; padding-left: 22px; color: #333; }
@media (max-width: 700px) { .clnames, .upnames { grid-template-columns: 1fr; } .clrow { grid-template-columns: auto 1fr; } .clrow > .btn.danger { grid-column: 1 / -1; } }

/* item editor */
.clbtns { display: grid; gap: 8px; }
.esec { border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.esechead { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: end; padding: 10px 12px; background: var(--section); }
.esectitle span { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy-ink); margin-bottom: 3px; }
.esectitle input { min-height: 44px; font-weight: 700; }
.esechead .clmove { grid-auto-flow: column; }
.eitem { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px 6px 12px; border-bottom: 1px solid var(--line-soft); }
.eitem .clmove.row2 { grid-auto-flow: column; }
.eitem textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; line-height: 1.35; resize: none; overflow: hidden; background: #fff; }
.edates { font-size: 12.5px; font-weight: 700; color: var(--done); background: #e6f2ea; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.cefoot { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; margin-top: 14px; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) { .eitem { grid-template-columns: 1fr auto auto; } .eitem .clmove { grid-column: 1 / -1; justify-self: start; } }

.lorder { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lorder select { width: auto; min-width: 0; max-width: 240px; min-height: 44px; font-size: 15px; }

.brand h1 { line-height: 0; }
.brandlogo { height: 46px; width: auto; max-width: 100%; display: block; }
@media (max-width: 480px) { .brandlogo { height: 34px; } }

/* ---------- blue app bar ---------- */
#appbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.appbar-in { max-width: 940px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.ab-logo { display: block; flex: none; }
.ab-logo img { height: 40px; width: auto; display: block; }
.ab-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.ab-link { color: #fff; background: transparent; border: 0; font-weight: 600; font-size: 16px; padding: 0 14px; min-height: 44px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ab-link:hover, .ab-link[aria-expanded="true"] { background: rgba(255,255,255,.15); }
.ab-menu { position: relative; }
.ab-drop { position: absolute; right: 0; top: calc(100% + 6px); width: 310px; max-width: calc(100vw - 24px); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 6px; z-index: 60; }
.ab-drop a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.ab-drop a:hover, .ab-drop a:focus-visible { background: #eef3f8; }
.ab-drop b { display: block; font-size: 15.5px; color: var(--navy); }
.ab-drop span { font-size: 13px; color: var(--muted); }
body.bare #appbar { display: none; }
@media print { #appbar { display: none !important; } }
@media (max-width: 520px) { .ab-logo img { height: 28px; } .ab-link { padding: 0 9px; font-size: 15px; } .appbar-in { gap: 8px; } }

/* help + backup */
.helpframe { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }
.hdstatus { background: #f3f6f9; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 14.5px; }
.rsinfo { font-weight: 600; margin: 4px 0 10px; }
.sheetsel label.rsrow { align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); min-height: 0; }
.rsrow input { margin-top: 2px; flex: none; }
.rswarn { color: #8a6100; font-weight: 600; }
.ab-link { white-space: nowrap; }
@media (max-width: 430px) { .ab-logo img { height: 22px; } .ab-link { padding: 0 8px; font-size: 14.5px; } .ab-nav { gap: 0; } }

/* tagline under the logo */
.ab-logo { text-decoration: none; }
.ab-tag { display: block; margin: -4px 0 0 47px; font-size: 13px; font-weight: 600; letter-spacing: .6px; color: #9CCBF7; line-height: 1.1; white-space: nowrap; }
@media (max-width: 520px) { .ab-tag { margin-left: 33px; font-size: 11px; letter-spacing: .4px; } }
@media (max-width: 430px) { .ab-tag { margin-left: 26px; font-size: 10px; } }

/* ---------- closed (archived) projects ---------- */
.showclosed { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; font-size: 14.5px; color: var(--muted); min-height: 36px; }
.showclosed input { width: 20px; height: 20px; }
.closedbar { flex: none; background: #FFF4D6; color: #6B4E00; border-bottom: 1px solid #E8D18F; padding: 8px 14px; font-size: 14.5px; }
.meet textarea[readonly] { background: transparent; }
.lsseg button:disabled, .mst:disabled { opacity: 1; cursor: default; }
.pjh { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 6px; }
.pjrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.pjname { flex: 1; min-width: 180px; }
.pjname b { display: block; }
.pjname span { font-size: 13.5px; color: var(--muted); }

/* Settled lots: dates are struck through (still readable and editable) */
.lsrow.settled .lsd input { text-decoration: line-through; color: #6b7785; }
/* date boxes don't draw text-decoration in every browser, so draw the line over the box */
.lsrow.settled .lsd.hv { position: relative; }
.lsrow.settled .lsd.hv::after { content: ""; position: absolute; left: 8px; right: 30px; bottom: 20px; border-top: 2px solid #4a5563; pointer-events: none; }
table.lst td.struck { text-decoration: line-through; color: #555; }

/* Print report button on the Project Notes & Lot Status tab */
.mprint { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mprint svg { width: 20px; height: 20px; }

/* ---------- member sign-in (4.0) ---------- */
.page.narrow { max-width: 460px; padding-top: 40px; }
.signin h2 { font-size: 22px; }
.signin .btn.block { margin-top: 4px; }
.codein { font-size: 28px !important; letter-spacing: 8px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--navy); font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sialt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.opt { font-style: normal; font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signedas { text-align: center; font-size: 13.5px; margin-top: 4px; }
.signedas .linkbtn { min-height: 32px; padding: 4px; }
.ab-drop a.ab-out { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 12px; border-radius: 0 0 8px 8px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.on { background: #e3f3e8; color: var(--done); }
.pill.off { background: #eceff2; color: var(--muted); }
.pill.own { background: var(--section); color: var(--navy-ink); vertical-align: 2px; margin-left: 4px; }
.mbadd { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .mbadd { grid-template-columns: 1fr; } }
label.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
label.chk input { width: 22px; height: 22px; }
.warnbox { background: #fff8e1; border-color: #f0d58a; font-size: 15px; }
