:root {
  --navy: #1f3a5f;
  --brass: #b58a2c;
  --sale: #2f7f6f;
  --lease: #7b8796;
  --bg: #f5f4f0;
  --panel: #ffffff;
  --ink: #1d2430;
  --muted: #5d6675;
  --line: #e2e0d9;
  --hover: #f3efe4;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #8fb2dc; --brass: #d9ae4f; --sale: #5fbfa9; --lease: #a3adbb;
    --bg: #14181f; --panel: #1c222b; --ink: #e7e9ed; --muted: #9aa3b1; --line: #2c3440; --hover: #262d38;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 2000; background: var(--panel); color: var(--ink); padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); }
.skip:focus { top: 8px; }

.top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand side" "tabs tabs"; align-items: center; gap: 6px 16px; padding: 10px 16px 8px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.brand { grid-area: brand; display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 16px; letter-spacing: -0.01em; color: var(--navy); }
.brokerage { font-size: 12px; font-weight: 600; color: var(--ink); }
.tab-scroll { grid-area: tabs; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tab-scroll::-webkit-scrollbar { display: none; }
.tabs { display: flex; flex-wrap: nowrap; gap: 4px; width: max-content; }
.tabs button { border: 0; background: none; padding: 8px 12px; min-height: 40px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--panel); }
.head-side { grid-area: side; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.source { margin-left: 0; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.source .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--lease); }
.source .dot.live { background: var(--sale); }

.tab { padding: 16px 20px 32px; }
.tab[hidden] { display: none !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.filters-rest { display: contents; }
.filters-search { flex: 1 1 240px; }
.filters-toggle { display: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 12px; min-height: 40px; font-weight: 600; cursor: pointer; }
.filters input, .filters select, .pipe-bar input, .pipe-bar select { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 7px 9px; min-width: 0; }
.filters select { max-width: 200px; }
.chips { display: flex; gap: 6px; border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; user-select: none; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--ink); background: var(--hover); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--navy); }
.swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.price { display: inline-flex; align-items: center; gap: 4px; }
.price input { width: 110px; }
.toggle { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); white-space: nowrap; }
.link { background: none; border: 0; color: var(--navy); cursor: pointer; text-decoration: underline; padding: 4px; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; min-width: 120px; }
.stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.stat .detail { display: block; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; height: calc(100dvh - var(--top-h, 72px) - 220px); min-height: 480px; }
.map { border-radius: var(--radius); border: 1px solid var(--line); min-height: 360px; }
.list-wrap { overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.list { width: 100%; border-collapse: collapse; }
.list th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 0; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.list th button { all: unset; display: inline-flex; align-items: center; width: 100%; box-sizing: border-box; cursor: pointer; padding: 8px 10px; font: inherit; font-weight: 600; color: inherit; }
.list th button:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.list th:not([data-sort]) { padding: 8px 10px; cursor: default; }
.list th.sorted::after { content: " ▾"; }
.list th.sorted.asc::after { content: " ▴"; }
.list td { padding: 8px 10px; overflow-wrap: break-word; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover, .list tbody tr.active { background: var(--hover); }
.list .num { text-align: right; font-variant-numeric: tabular-nums; }
#deal-table td:nth-child(1) { min-width: 170px; }
#deal-table td:nth-child(5) { min-width: 120px; }
#deal-table td:nth-child(2) { min-width: 110px; }
#deal-table td:nth-child(4) { min-width: 90px; }
.list .sub { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; margin: 2px 2px 0 0; }
.badge.ghl { border-color: var(--brass); color: var(--brass); font-weight: 600; }
.badge.approx { color: var(--muted); }
.empty { padding: 24px; color: var(--muted); text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.leaflet-popup-content { font-size: 13px; line-height: 1.4; min-width: 220px; }
.leaflet-popup-content h4 { margin: 0 0 4px; font-size: 14px; }
.leaflet-popup-content .row { color: #5d6675; }
.leaflet-container { background: var(--bg); font: inherit; }

/* Pipelines */
.pipe-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pipe-bar input { flex: 1 1 220px; max-width: 360px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; padding: 7px 12px; cursor: pointer; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--navy); color: var(--panel); }
.pipeline { margin-bottom: 24px; }
.pipeline h2 { font-size: 15px; margin: 8px 0 10px; color: var(--navy); }
.pipeline h2 small { color: var(--muted); font-weight: 400; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.col h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; justify-content: space-between; }
.card { border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 6px; padding: 9px 10px; margin-bottom: 8px; background: var(--bg); }
.card h4 { margin: 0 0 4px; font-size: 13px; }
.card .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.card p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.card .actions { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; }
.people { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.person { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.person:hover { border-color: var(--navy); }
.person small { color: var(--muted); }

.drawer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); max-width: 520px; width: calc(100% - 32px); padding: 20px; }
.drawer::backdrop { background: rgb(0 0 0 / .35); }
.drawer .close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.drawer h3 { margin: 0 0 2px; }
.drawer dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 14px 0; }
.drawer dt { color: var(--muted); }
.drawer dd { margin: 0; }
.drawer ul { padding-left: 18px; }

@media (max-width: 900px) {
  .top { grid-template-columns: 1fr; grid-template-areas: "brand" "side" "tabs"; padding: 10px 12px 6px; }
  .brand strong, .brokerage { white-space: nowrap; }
  .head-side { width: 100%; justify-content: space-between; }
  .source { max-width: 68vw; }
  #tab-deals:not([hidden]) { display: flex; flex-direction: column; }
  #tab-deals .filters { order: 1; }
  #tab-deals .split { order: 2; }
  #tab-deals .stats { order: 3; }
  #tab-deals .legend { order: 4; }
  .split { grid-template-columns: 1fr; height: auto; }
  .map { height: calc(100dvh - var(--top-h, 120px) - 7.5rem); min-height: 420px; }
  .list-wrap { max-height: 70vh; }
  .tab { padding: 12px 12px 28px; }
  .filters { align-items: stretch; }
  .filters-search { width: 100%; flex: 1 1 auto; }
  .filters-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .filters-rest { display: none; }
  .filters.is-open .filters-rest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .filters select { max-width: none; flex: 1 1 45%; }
  .list th:nth-child(5), .list td:nth-child(5) { display: none; }
  .map-keys { max-height: 28vh; overflow: auto; max-width: min(230px, 86vw); }
  .leaflet-control-layers-overlays label { font-size: 14px; display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
  .report-toc { top: var(--top-h, 120px); }
  #deal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #deal-table, #deal-table tbody, #deal-table tr, #deal-table td { display: block; width: auto; }
  #deal-table tr { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
  #deal-table td { border: 0; padding: 2px 0; min-width: 0 !important; }
  #deal-table td:nth-child(5) { display: block; }
  #deal-table td.num { text-align: left; }
  #deal-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
  #deal-table td:first-child::before { display: none; }
}

/* Owners & brokerages */
.badge.multi { border-color: var(--navy); color: var(--navy); background: none; cursor: pointer; font-weight: 600; }
.linkish { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline dotted; cursor: pointer; }
.sub.owner { margin-top: 2px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.panel-title { font-size: 14px; margin: 0 0 10px; color: var(--navy); }
.bars { display: grid; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 240px) 1fr 36px; align-items: center; gap: 10px; border: 0; background: none; padding: 3px 4px; border-radius: 4px; cursor: pointer; text-align: left; }
.bar-row:hover { background: var(--hover); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.bar-track { display: flex; height: 14px; gap: 2px; }
.bar-track span { display: block; height: 100%; border-radius: 2px; min-width: 3px; }
.bar-val { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.list-wrap.flat { max-height: calc(100dvh - var(--top-h, 72px) - 160px); overflow: auto; }
.note { color: var(--muted); font-size: 12px; margin: 10px 2px; max-width: 900px; }
.list.mini { margin-top: 6px; font-size: 12px; }
.list.mini th { position: static; }
.list.mini td { padding: 5px 6px; }
.list.mini tbody tr { cursor: default; }
.drawer { max-height: 85vh; }
@media (max-width: 900px) {
  .bar-row { grid-template-columns: 110px 1fr 30px; }
  #brk-table th:nth-child(8), #brk-table td:nth-child(8), #brk-table th:nth-child(5), #brk-table td:nth-child(5) { display: none; }
}

/* Sign-in */
.user { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
body:not([data-auth="ready"]) .tabs,
body:not([data-auth="ready"]) .source,
body:not([data-auth="ready"]) .user,
body:not([data-auth="ready"]) .tab { display: none !important; }
body:not([data-auth="ready"]) .top { display: none; }
.login { display: none; min-height: 100vh; align-items: center; justify-content: center; padding: 24px 16px; }
body[data-auth="login"] .login, body[data-auth="sent"] .login, body[data-auth="denied"] .login, body[data-auth="error"] .login { display: flex; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 12px; padding: 28px; width: 100%; max-width: 420px; box-shadow: 0 12px 40px rgb(31 58 95 / .08); }
.login-card .brand { margin-bottom: 20px; }
.login-card h1 { font-size: 20px; margin: 0 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.login-card label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.login-card input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.primary { width: 100%; border: 0; border-radius: 6px; padding: 10px 14px; background: var(--navy); color: var(--panel); font-weight: 600; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: wait; }
.when-login, .when-sent, .when-denied { display: none; }
body[data-auth="login"] .when-login, body[data-auth="sent"] .when-sent, body[data-auth="denied"] .when-denied { display: block; }
.login-msg { margin: 12px 0 0; color: #a4342a; font-size: 13px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login-msg { color: #f08a80; } }

/* Deal stage on the map */
.seg.colorby { align-items: center; }
.seg .seg-label { padding: 0 10px; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; }
.stage-pin-wrap { background: none; border: 0; }
.stage-pin { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transform: translate(0, 0); }
.stage-pin .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); flex: none; }
.stage-pin .txt { background: #fff; color: #1d2430; border: 1px solid rgb(0 0 0 / .15); border-left: 4px solid var(--c); border-radius: 4px; padding: 2px 6px; font: 11px/1.3 system-ui, sans-serif; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.stage-pin .txt b { font-weight: 600; }
.leaflet-marker-icon.stage-pin-wrap:hover { z-index: 100000 !important; }
.swatch.sq { border-radius: 2px; width: 14px; height: 10px; margin-left: 2px; }
.swatch.small { width: 7px; height: 7px; }
.ramp-legend { gap: 2px !important; }
.ramp-legend b { margin-right: 4px; color: var(--ink); font-weight: 600; }
.badge.stage { color: var(--ink); }
.stage-pin.collapsed .txt { display: none; }
.stage-pin.collapsed:hover .txt { display: inline; }
.board { grid-auto-flow: column; }
.col.empty { padding: 8px 6px; background: none; border-style: dashed; min-height: 60px; }
.col.empty h3 { flex-direction: column; gap: 4px; font-size: 10px; text-transform: none; letter-spacing: 0; line-height: 1.25; }
#f-stage option.none { color: var(--muted); }
.stage-pin.approx { opacity: .55; } .stage-pin.approx .dot { border-style: dashed; }

/* Map overlays */
.map-layers-title { font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 6px 4px; }
.leaflet-control-layers { border: 1px solid var(--line) !important; border-radius: 6px; box-shadow: none; }
.leaflet-control-layers-expanded { background: var(--panel); color: var(--ink); padding: 6px 8px 6px 6px; }
.leaflet-control-layers-overlays label { font-size: 12px; }
.map-keys { display: flex; flex-direction: column; gap: 6px; max-width: min(280px, 70vw); }
.map-key { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 11px; line-height: 1.35; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.map-key b { display: block; font-size: 12px; margin-bottom: 4px; }
.map-key > div { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0; }
.map-key .sw { width: 14px; height: 10px; border-radius: 2px; flex: none; margin-top: 2px; border: 1px solid rgb(0 0 0 / .3); }
.map-key .sw.rural { border-style: dashed; border-width: 2px; }
.map-key .sw.bare { background: var(--panel); }
.map-key .src { display: block; color: var(--muted); margin-top: 4px; }
.leaflet-popup-content hr { border: 0; border-top: 1px solid #e2e0d9; margin: 6px 0; }
.oz-tip { font-size: 12px; }

/* Market report */
.report { max-width: 1080px; }
.report-head h2 { margin: 0 0 4px; font-size: 22px; color: var(--navy); }
.report-head p { margin: 0 0 12px; color: var(--muted); max-width: 720px; }
.report-toc { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 8px; position: sticky; top: var(--top-h, 64px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.report-toc::-webkit-scrollbar { display: none; }
.report-toc button { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; color: var(--muted); font-size: 12px; }
.report-toc button:hover { border-color: var(--navy); color: var(--ink); }
.report-section { scroll-margin-top: var(--report-scroll, 140px); margin-top: 22px; }
.report-section h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.report-section .caption { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.report-section .prose { margin: 8px 0; line-height: 1.45; }
.report-section h4 { margin: 14px 0 6px; font-size: 13px; }
.report .list-wrap { margin: 8px 0 12px; }
.report .list td, .report .list th { font-size: 13px; }
.report .list tbody tr { cursor: default; }
.tone-success { color: var(--sale); font-weight: 650; }
.tone-danger { color: #a4342a; font-weight: 650; }
.tone-warning { color: var(--brass); font-weight: 650; }
.callout { border-left: 3px solid var(--brass); background: var(--hover); padding: 8px 12px; border-radius: 6px; margin: 8px 0 12px; }
.report ul { margin: 8px 0 12px; padding-left: 18px; }
.report li { margin: 5px 0; line-height: 1.4; }
.col-chart { display: flex; align-items: stretch; gap: 14px; height: 200px; margin: 8px 0 4px; }
.col-group { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.col-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; }
.col-bars span { width: 18px; border-radius: 3px 3px 0 0; min-height: 2px; }
.col-year { margin-top: 6px; font-size: 12px; color: var(--muted); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0 16px; }
.link-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--panel); text-decoration: none; color: inherit; }
.link-card:hover { border-color: var(--navy); }
.link-card b { display: block; font-size: 13px; margin-bottom: 2px; }
.link-card span { color: var(--muted); font-size: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tone-danger { color: #f08a80; } }
.badge.new { border-color: #2a78d6; color: #2a78d6; font-weight: 600; }

/* Deal analysis */
.an-field, .filters label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink); }
.an-field input[type="number"] { width: 108px; }
.an-field input[type="date"] { width: 142px; }
.an-types { border: 1px solid var(--line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1 1 100%; }
.an-types legend { padding: 0 4px; font-size: 12px; color: var(--muted); }
.an-types label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.an-split { height: auto; min-height: 0; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr); align-items: start; }
#an-map { height: 480px; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.an-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.an-charts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.an-chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.an-chart h3 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.an-scroll { overflow-x: auto; }
.an-scroll .col-chart { min-width: 280px; }
.an-chart .bars { margin-top: 4px; }
.an-chart .bar-row { cursor: default; }
.an-chart .bar-row:hover { background: none; }
#an-table a { color: var(--navy); }
@media (max-width: 900px) {
  .an-split { grid-template-columns: 1fr; }
  #an-map { height: min(68dvh, 480px); min-height: 300px; }
  .an-field, .filters label.check { flex: 1 1 45%; }
  .an-field input, .an-field select { flex: 1; width: auto; max-width: none; }
  #an-table th:nth-child(5), #an-table td:nth-child(5) { display: block; }
  #an-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #an-table, #an-table tbody, #an-table tr, #an-table td { display: block; width: auto; }
  #an-table tr { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
  #an-table td { border: 0; padding: 2px 0; text-align: left; }
  #an-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
  #an-table td:first-child::before { display: none; }
}
