/* Real Estate System – back office */
:root {
  --brand: #0f3d3e; --accent: #c49a4a;
  --ink: #1d2a2b; --muted: #5d6b6c; --line: #e2ddd3; --bg: #f5f2ec; --card: #fff;
  --ok: #1f7a4d; --ok-bg: #e5f4ec; --warn: #8a5a00; --warn-bg: #fdf3dc; --bad: #a3271b; --bad-bg: #fbe7e4;
  --radius: 10px; --shadow: 0 1px 2px rgba(20, 30, 30, .06), 0 2px 10px rgba(20, 30, 30, .05);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { font-stretch: 92%; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
code { font-size: .9em; background: #f0ece4; padding: .05em .35em; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 240px; flex: 0 0 240px; background: var(--brand); color: #e8efee; padding: 1rem .75rem 2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.side-logo { display: block; padding: .35rem .5rem 1rem; }
.side-logo img { max-width: 100%; max-height: 48px; display: block; }
.nav-group { margin-bottom: .6rem; }
.nav-h { margin: .75rem .55rem .25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .55); font-weight: 700; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .38rem .55rem; border-radius: 7px; color: #eef4f3; text-decoration: none; font-size: .93rem; }
.side li a:hover { background: rgba(255, 255, 255, .08); }
.side li a[aria-current] { background: rgba(255, 255, 255, .14); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.count { background: var(--accent); color: #1d1405; border-radius: 99px; padding: 0 .45rem; font-size: .75rem; font-weight: 700; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-co { font-weight: 650; color: var(--muted); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.top-right form { margin: 0; }
.top-user { text-decoration: none; font-weight: 600; }
.menu-btn { display: none; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; }
.foot { margin-top: auto; padding: 1rem 1.5rem; color: var(--muted); font-size: .8rem; }
.practice-bar { background: repeating-linear-gradient(45deg, #ffcf4d, #ffcf4d 14px, #ffd966 14px, #ffd966 28px); color: #3b2a00; font-weight: 700; text-align: center; padding: .45rem 1rem; font-size: .9rem; position: sticky; top: 0; z-index: 30; }
.practice-bar form { display: inline; }
.practice .side { background: #5a4a12; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* page head */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .2rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions form { margin: 0; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
.grid2 > .card, .grid3 > .card { margin-bottom: 0; }
.stack-gap > * + * { margin-top: 1.1rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.stat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--accent); }
.st-l { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.st-v { font-size: 1.45rem; font-weight: 750; font-stretch: 90%; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.st-s { font-size: .82rem; color: var(--muted); }
.st-v.bad { color: var(--bad); }

/* facts list */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts > div { padding: .55rem .8rem; box-shadow: 0 0 0 .5px var(--line); background: #fff; }
.facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.facts dd { margin: .1rem 0 0; font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: #c9c1b2; background: #fbfaf7; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #1d1405; }
.btn.ghost { background: transparent; }
.btn.danger { background: #fff; border-color: #e6b8b2; color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: .3rem .6rem; font-size: .82rem; }
.btn.ghost-dark { background: transparent; border-color: var(--line); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; }
label > span { display: block; margin-bottom: .25rem; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; padding: .5rem .65rem; border: 1px solid #cfc8bb; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[disabled], select[disabled], textarea[disabled] { background: #f4f1eb; color: #3b4546; }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=file] { padding: .35rem; }
input[type=color] { height: 2.4rem; padding: .2rem; }
.help { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-top: .2rem; }
.req { color: var(--bad); font-style: normal; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.2rem; align-items: start; }
.form-grid .wide, .form-grid h2 { grid-column: 1 / -1; }
.form-grid h2 { margin: .8rem 0 0; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.form-grid h2 small { font-weight: 400; color: var(--muted); }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; padding-top: .3rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
.check input { margin-top: .25rem; }
.check .help { display: block; }
.stack { display: grid; gap: .8rem; }
.row-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.row-form label { flex: 1 1 150px; }
.row-form .btn { margin-bottom: 1px; }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; padding: .8rem 1rem; }
.filters label { flex: 0 1 190px; }
.filters label.grow { flex: 1 1 240px; }
.file-now { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; font-weight: 400; }
.thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); vertical-align: middle; }
.danger-zone { margin: 1rem 0; }

/* tables */
.table-wrap { padding: 0; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
table.list th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #faf8f4; font-weight: 700; white-space: nowrap; }
table.list th.num, table.list td.num { text-align: right; }
table.list tbody tr:hover { background: #fcfbf8; }
table.list tfoot td { font-weight: 700; background: #faf8f4; }
table.list td.act { white-space: nowrap; text-align: right; }
table.list td.act a { margin-left: .6rem; font-size: .88rem; }
td.empty { text-align: center; color: var(--muted); padding: 1.5rem !important; }
tr.late td { background: #fff7f5; }
tr.paid td { color: var(--muted); }
.pager { display: flex; gap: .3rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.pager a { padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.pager a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* badges & alerts */
.badge { display: inline-block; padding: .08rem .5rem; border-radius: 99px; font-size: .78rem; font-weight: 650; background: #eeeae2; color: #4a4f50; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-wait { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.alert { padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1rem; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); color: #145236; border-color: #bfe3cf; }
.alert.warn { background: var(--warn-bg); color: #5f3e00; border-color: #f0dca9; }
.alert.error { background: var(--bad-bg); color: #7c1d14; border-color: #f0c4be; }
.alert.info { background: #e9f1f8; color: #1d3f5e; border-color: #c8dbeb; }
.callout { border-left: 4px solid var(--accent); background: #fffaf0; padding: .8rem 1rem; border-radius: 0 8px 8px 0; margin-bottom: 1rem; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr auto; gap: .6rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.ck { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: #b9b2a5; }
.ck.ok { background: var(--ok); } .ck.warn { background: #d29a1e; } .ck.bad { background: var(--bad); }
.checklist p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.checks { list-style: none; padding: 0; columns: 2; font-size: .9rem; }
.checks li.bad { color: var(--bad); }

/* timeline / messages */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .55rem 0 .55rem 1rem; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .9rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline .when { color: var(--muted); font-size: .8rem; }
.chat { display: flex; flex-direction: column; gap: .5rem; max-height: 60vh; overflow-y: auto; padding: .5rem; background: #faf8f4; border-radius: 8px; }
.bubble { max-width: 75%; padding: .5rem .75rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.bubble.out { align-self: flex-end; background: color-mix(in srgb, var(--brand) 10%, #fff); }
.bubble .when { display: block; font-size: .72rem; color: var(--muted); margin-top: .15rem; }
.inbox { display: grid; grid-template-columns: 300px 1fr; gap: 1.1rem; }
.conv-list { list-style: none; padding: 0; margin: 0; }
.conv-list a { display: block; padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.conv-list a[aria-current] { background: #f3efe6; }
.conv-list b.count { float: right; }

/* bars */
.bar { height: 8px; background: #ece7dd; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); }
.hbars { display: grid; gap: .45rem; }
.hbars div { display: grid; grid-template-columns: 140px 1fr 110px; gap: .6rem; align-items: center; font-size: .88rem; }
.hbars .bar { height: 12px; }

/* lot map editor */
.lotmap-edit { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: crosshair; }
.lotmap-edit img { display: block; max-width: 100%; }
.pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); background: #2a9d63; font-size: 0; }
.pin.s-reserved, .pin.s-on-hold { background: #e0a526; } .pin.s-sold, .pin.s-leased { background: #b23a2c; }
.pin.sel { outline: 3px solid var(--accent); }

/* signature, certificate */
.doc-body { background: #fff; border: 1px solid var(--line); padding: 2rem 2.4rem; border-radius: 8px; max-width: 820px; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.65; }
.sig-cert { margin-top: 1.5rem; border: 1px dashed #9fb7a9; background: #f2faf5; padding: .8rem 1rem; border-radius: 8px; font-family: var(--font); font-size: .88rem; }
.sig-cert img { max-height: 90px; display: block; margin: .3rem 0; }

/* auth */
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 1rem; background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--brand) 12%, #f5f2ec), #f5f2ec 60%); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 2rem; box-shadow: 0 10px 40px rgba(20, 40, 40, .12); }
.auth-card.wide-card { max-width: 820px; }
.auth-logo { max-width: 240px; max-height: 64px; display: block; margin-bottom: 1.2rem; }
.code-input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.qr { background: #fff; padding: 8px; display: inline-block; border: 1px solid var(--line); border-radius: 8px; }
.qr svg, .qr canvas, .qr img { display: block; width: 180px; height: 180px; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; font-size: .92rem; }
.tabs a[aria-current] { color: var(--brand); border-color: var(--accent); }

@media (max-width: 1000px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .inbox { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .side { position: fixed; left: -260px; z-index: 50; transition: left .2s; box-shadow: 0 0 30px rgba(0,0,0,.3); }
  .side.open { left: 0; }
  .menu-btn { display: inline-flex; padding: .35rem .7rem; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; font-weight: 600; }
  .top-co { display: none; }
  .content { padding: 1rem; }
  .grid2, .grid3, .form-grid { grid-template-columns: 1fr; }
  .hbars div { grid-template-columns: 100px 1fr 90px; }
}

/* side menu: pinned links, search, collapsible groups */
.nav-find { padding: 0 .1rem .6rem; }
.nav-find input { width: 100%; padding: .42rem .6rem; border-radius: 7px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: .88rem; }
.nav-find input::placeholder { color: rgba(255,255,255,.55); }
.nav-find input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: rgba(255,255,255,.12); }
.nav-pinned { padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
details.nav-group { margin-bottom: .15rem; }
details.nav-group > summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 7px; cursor: pointer; color: #eef4f3; font-size: .93rem; font-weight: 600; user-select: none; }
details.nav-group > summary::-webkit-details-marker { display: none; }
details.nav-group > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid rgba(255,255,255,.55); border-bottom: 2px solid rgba(255,255,255,.55); transform: rotate(-45deg); transition: transform .15s; }
details.nav-group[open] > summary::after { transform: rotate(45deg); }
details.nav-group > summary:hover { background: rgba(255,255,255,.08); }
details.nav-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
details.nav-group[data-here] > summary { color: #fff; }
.nav-ico { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
details.nav-group ul { margin: .1rem 0 .45rem; padding-left: 1.55rem; border-left: 1px solid rgba(255,255,255,.12); margin-left: 1.05rem; padding-left: .45rem; }
details.nav-group li a { font-size: .9rem; padding: .3rem .55rem; }
.nav-none { margin: .5rem .55rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.side.finding details.nav-group > summary::after { display: none; }
.num-in { width: 9.5rem; text-align: right; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-variant-numeric: tabular-nums; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; }
fieldset legend { font-size: .85rem; color: var(--muted); padding: 0 .3rem; }

/* tasks */
.form-grid.one { grid-template-columns: 1fr; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task .t-body { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.task .t-act { display: flex; gap: .2rem; flex-wrap: wrap; }
.task.done b { text-decoration: line-through; color: var(--muted); }
button.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: transparent; line-height: 1; padding: 0; flex: 0 0 26px; }
button.tick:hover { border-color: var(--ok); color: var(--ok); }
button.tick.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.task-group.late h2 { color: var(--bad); }
.team-chips { display: flex; flex-wrap: wrap; gap: .4rem; flex-basis: 100%; }
.chip { display: inline-block; padding: .3rem .6rem; border-radius: 99px; background: #f2eee6; color: var(--ink); text-decoration: none; font-size: .82rem; }
.chip.bad b { color: var(--bad); }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: .25rem 0; }
.tasks-grid { align-items: start; }
.row2 { display: flex; gap: .4rem; } .row2 > * { flex: 1; min-width: 0; }
.pdc-form { display:flex; gap:.3rem; flex-wrap:wrap; justify-content:flex-end } .pdc-form select, .pdc-form input { padding:.25rem .4rem; border:1px solid var(--line); border-radius:6px; font:inherit; font-size:.85rem } .pdc-reason { width: 9rem }

/* global search */
.top-search { position: relative; flex: 1 1 320px; max-width: 460px; margin: 0 1rem; }
.top-search input { width: 100%; padding: .42rem .7rem .42rem 2rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6b6c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .6rem 50%; }
.top-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.gs-drop { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 60; max-height: 70vh; overflow-y: auto; padding: .3rem 0; }
.gs-drop h6 { margin: .5rem .8rem .2rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gs-drop a { display: block; padding: .4rem .8rem; text-decoration: none; color: var(--ink); }
.gs-drop a span { display: block; font-size: .8rem; color: var(--muted); }
.gs-drop a:hover, .gs-drop a.on { background: #f2eee6; }
.gs-drop .gs-all { border-top: 1px solid var(--line); margin-top: .3rem; font-size: .85rem; color: var(--brand); }
.gs-drop p { margin: .6rem .8rem; color: var(--muted); font-size: .88rem; }
.search-big { display: flex; gap: .6rem; }
.search-big input { flex: 1; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list a { display: block; padding: .5rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.search-list li:first-child a { border-top: 0; }
.search-list a span { display: block; font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) { .top-search { order: 3; flex-basis: 100%; max-width: none; margin: .5rem 0 0; } }
.meter { display: inline-block; width: 120px; height: 9px; border-radius: 99px; background: #ece7dd; overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.meter.m-ok i { background: var(--ok); } .meter.m-low i { background: var(--accent); }
.leader tr.me td { background: #fbf6ea; }
.prog-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .4rem; margin: .6rem 0; }
.prog-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.prog-bar { height: 10px; background: #ece7dd; border-radius: 99px; overflow: hidden; margin: .3rem 0; }
.prog-bar i { display: block; height: 100%; background: var(--brand, #0f3d3e); border-radius: 99px; }
.copy-wide { width: min(100%, 720px); padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .85rem; }
