/* Japan surveyor map — FO private lane · British English UI · dark elegant */

:root {
  --bg: #0c0f14;
  --bg-panel: #141a24;
  --bg-panel-elevated: #1a2230;
  --border: #2a3444;
  --border-soft: #243044;
  --text: #e8ecf4;
  --text-muted: #9aa3b5;
  --text-faint: #6b7385;
  --accent: #e8c547;
  --accent-dim: #c4a35a;
  --accent-soft: rgba(232, 197, 71, 0.15);
  --teal: #3d9b8f;
  --danger-soft: #3a2a2a;
  --chip-bg: #1e2736;
  --chip-active: #2a3a28;
  --chip-active-border: #6a9b5a;
  --focus: #7eb6ff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-ui: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

/* —— Disclaimer banner (always visible) —— */
.disclaimer {
  flex: 0 0 auto;
  z-index: 1000;
  background: linear-gradient(90deg, #1a1510 0%, #241c12 50%, #1a1510 100%);
  border-bottom: 1px solid #5a4a2a;
  color: #f0e6d3;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.disclaimer strong {
  color: var(--accent);
  font-weight: 600;
}

/* —— Shell —— */
.app-shell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  min-height: 0;
  height: 100%;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sidebar {
    max-height: 42vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* —— Sidebar —— */
.sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 500;
}

.sidebar-header {
  padding: 1.1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-header h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.sidebar-header .tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--chip-bg);
}

.badge.placeholder {
  border-color: #6a5a2a;
  color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.9rem 1.15rem 1.25rem;
}

.section-label {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.section-label:first-child {
  margin-top: 0;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.55rem 0.7rem 0.55rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(126, 182, 255, 0.25);
}

.search-wrap .icon {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
  font-size: 0.85rem;
}

.chip-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.chip:hover {
  border-color: var(--accent-dim);
  background: var(--bg-panel-elevated);
}

.chip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.chip.active {
  border-color: var(--chip-active-border);
  background: var(--chip-active);
  box-shadow: inset 0 0 0 1px rgba(106, 155, 90, 0.35);
}

.chip .swatch {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 2px;
  background: var(--teal);
}

.chip .chip-text {
  flex: 1 1 auto;
}

.chip .chip-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}

.chip .chip-key {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-top: 0.1rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--chip-bg);
}

.toggle-row span {
  font-size: 0.82rem;
  font-weight: 600;
}

.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: #2a3140;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.toggle .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.15s, background 0.15s;
}

.toggle input:checked + .slider {
  background: #2a4a30;
  border-color: var(--chip-active-border);
}

.toggle input:checked + .slider::before {
  transform: translateX(18px);
  background: var(--accent);
}

.toggle input:focus-visible + .slider {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Legend */
.legend {
  margin-top: 0.35rem;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
}

.legend-bar {
  position: relative;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #1a2744 0%,
    #2d5a87 25%,
    #3d9b8f 50%,
    #c4a35a 75%,
    #e8c547 100%
  );
  border: 1px solid var(--border);
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.legend-null {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-null .box {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: #2a2f3a;
  border: 1px solid var(--border);
}

.status-line {
  margin-top: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: var(--danger-soft);
  border: 1px solid #5a3a3a;
  color: #e8c8c8;
  font-size: 0.75rem;
}

.status-line code {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.sidebar-footer {
  padding: 0.65rem 1.15rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* —— Map —— */
.map-pane {
  position: relative;
  min-height: 0;
  background: #0a0d12;
}

#map {
  position: absolute;
  inset: 0;
  background: #0a0d12;
}

.map-hud {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  pointer-events: none;
}

.map-hud .pill {
  pointer-events: auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 26, 36, 0.92);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

.map-hud .pill strong {
  color: var(--accent);
  font-weight: 600;
}

/* Leaflet dark tweaks */
.leaflet-container {
  background: #0a0d12;
  font: inherit;
}

.leaflet-control-zoom a {
  background: var(--bg-panel) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.leaflet-control-attribution {
  background: rgba(12, 15, 20, 0.85) !important;
  color: var(--text-faint) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: var(--accent-dim) !important;
}

/* Popup */
.leaflet-popup-content-wrapper {
  background: var(--bg-panel-elevated);
  color: var(--text);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.leaflet-popup-tip {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border);
}

.leaflet-popup-content {
  margin: 0.85rem 1rem;
  min-width: 240px;
  max-width: 320px;
}

.popup-title {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.popup-ja {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.popup-meta .tag {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.popup-meta .tag.shortlist {
  border-color: var(--chip-active-border);
  color: #b8e0a8;
}

.popup-meta .tag.placeholder {
  border-color: #6a5a2a;
  color: var(--accent);
}

.popup-score-active {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid #5a4a2a;
}

.popup-score-active .label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.popup-score-active .value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.popup-score-active .value.null {
  color: var(--text-muted);
  font-size: 1rem;
}

.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 0.35rem;
  align-items: center;
}

.mini-bar-row .name {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-bar-track {
  height: 6px;
  border-radius: 3px;
  background: #1a2030;
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
}

.popup-h {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.popup-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--text);
}

.popup-list li {
  margin-bottom: 0.2rem;
}

.popup-list.paths {
  list-style: none;
  padding-left: 0;
}

.popup-list.paths li {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-dim);
  word-break: break-all;
  padding: 0.25rem 0.4rem;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  margin-bottom: 0.3rem;
}

.popup-sources a {
  color: var(--focus);
  word-break: break-all;
}

.muted {
  color: var(--text-faint);
  font-size: 0.75rem;
  font-style: italic;
}

.error-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 900;
  max-width: 420px;
  padding: 1rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid #8a4a4a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}

.error-banner.visible {
  display: block;
}

/* —— Extensible layer UI —— */
.section-hint {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.section-hint code {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-dim);
}

.chip.awaiting {
  border-style: dashed;
  opacity: 0.92;
}

.chip.awaiting.active {
  border-style: solid;
  border-color: #6a5a2a;
  background: #2a2418;
}

.chip-flag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid #5a4a2a;
  color: var(--accent);
  background: var(--accent-soft);
}

.chip-flag.placeholder-flag {
  border-color: #6a5a2a;
}

.popup-meta .tag.awaiting {
  border-color: #6a5a2a;
  color: var(--accent);
}

/* —— Municipal candidates (Wave 1.5) —— */
.muni-filter-hint {
  margin-top: 0.55rem;
}

.muni-track-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.muni-track-filter-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text);
  user-select: none;
}

.muni-track-filter-chip:hover {
  border-color: var(--accent-dim);
  background: var(--bg-panel-elevated);
}

.muni-track-filter-chip input {
  accent-color: var(--accent);
  margin: 0;
  flex: 0 0 auto;
}

.muni-track-filter-chip .dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(12, 15, 20, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.muni-track-filter-chip .lbl {
  flex: 1 1 auto;
  line-height: 1.3;
}

.muni-track-filter-chip .lbl strong {
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 0.15rem;
}

.muni-count-line {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.muni-track-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}

.muni-track-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--track-colour, var(--border));
  color: var(--track-colour, var(--text-muted));
  background: rgba(0, 0, 0, 0.25);
}

.muni-fit-bars .muni-fit-row {
  grid-template-columns: 1fr 52px 28px;
}

.muni-fit-val {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  text-align: right;
}

.muni-rationale {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
}

.muni-coords-disclaimer {
  margin: 0;
  line-height: 1.35;
}

.leaflet-tooltip.muni-tooltip {
  background: var(--bg-panel-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  padding: 0.25rem 0.45rem;
}

.leaflet-tooltip.muni-tooltip::before {
  border-top-color: var(--bg-panel-elevated);
}

.popup-muni {
  max-width: 340px;
}

.popup-muni .popup-title {
  font-size: 1rem;
}

/* Legend reference marker (e.g. national average) */
.legend-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: #f0e6d3;
  box-shadow: 0 0 0 1px #12161e;
}
.legend-marker-label {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

/* sme_acquisition popup */
.sme-spark { display: block; margin: 0.2rem 0; }
.sme-series { font-size: 0.7rem; }

/* English prefecture labels (drawn by Rocket over a label-free basemap) */
.pref-label { background: none; border: none; pointer-events: none; }
.pref-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: 600 11px/1.1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #f4f6fa;
  text-shadow: 0 0 3px #0c0f14, 0 0 2px #0c0f14, 0 0 1px #0c0f14;
  letter-spacing: 0.01em;
}

/* Map legend panel (bottom-right, collapsible) */
.map-legend {
  width: 300px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: rgba(20, 26, 36, 0.95);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.35;
}
.map-legend-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 8px 12px; border: 0; background: transparent;
  color: var(--accent); font: 700 14px system-ui, sans-serif; cursor: pointer;
}
.map-legend.collapsed { width: auto; }
.map-legend.collapsed .map-legend-body { display: none; }
.map-legend-body { padding: 0 12px 10px; }
.map-legend .lg-h {
  margin: 8px 0 3px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint);
}
.map-legend .lg-unit { text-transform: none; letter-spacing: 0; }
.map-legend .lg-layer { margin: 0; font-weight: 700; font-size: 14px; }
.map-legend .lg-desc { margin: 2px 0; color: var(--text-muted); }
.map-legend .lg-src { margin: 2px 0; font-size: 12px; color: var(--text-faint); }
.map-legend .legend-labels { font-size: 12px; color: var(--text-muted); }
.map-legend .legend-null, .map-legend .legend-marker-label { font-size: 12px; }
.map-legend .lg-tracks { list-style: none; margin: 0; padding: 0; }
.map-legend .lg-tracks li { display: flex; align-items: baseline; gap: 6px; margin: 3px 0; }
.map-legend .lg-tracks .dot {
  flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid #0c0f14; box-shadow: 0 0 0 1px #8b93a7; transform: translateY(1px);
}
.map-legend .lg-note { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }

/* Basemap switcher + infrastructure overlay control (js/basemaps.js) */
.leaflet-control-layers {
  background: rgba(20, 26, 36, 0.95);
  color: var(--text);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font: 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.leaflet-control-layers-expanded { padding: 6px 10px 6px 8px; }
.leaflet-control-layers-base::before { content: 'Base map'; }
.leaflet-control-layers-overlays::before { content: 'Infrastructure (off by default)'; }
.leaflet-control-layers-base::before,
.leaflet-control-layers-overlays::before {
  display: block; margin: 2px 0 3px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint);
}
.leaflet-control-layers-separator { border-top-color: var(--border); }
.leaflet-control-layers label { margin: 2px 0; cursor: pointer; }

/* Infrastructure line styles in the legend */
.map-legend .lg-infra { list-style: none; margin: 0; padding: 0; }
.map-legend .lg-infra li { display: flex; align-items: center; gap: 8px; margin: 3px 0; font-size: 12px; }
.map-legend .lg-infra .ln { flex: 0 0 auto; }
.map-legend .lg-infra .shield {
  flex: 0 0 auto; width: 28px; text-align: center; font: 700 10px/14px system-ui, sans-serif;
  color: #fff; background: #2f6fd6; border-radius: 3px;
}

/* ---- Live listings (weekly) — js/layers/live_listings.js ---- */
.ll-controls.ll-disabled .ll-status-filter,
.ll-controls.ll-disabled .ll-price-filter,
.ll-controls.ll-disabled input[type='range'] { opacity: 0.45; }
.ll-status-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.8rem; color: var(--text-muted); }
.ll-status-filter label { display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; }
.ll-price-filter { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.ll-price-filter input {
  width: 5.5rem; padding: 0.25rem 0.4rem; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg-panel-elevated); color: inherit;
}
#ll-min-score { width: 100%; }
.ll-pin, .ll-group { background: none; border: none; }
.ll-diamond {
  display: block; width: 12px; height: 12px; margin: 3px;
  transform: rotate(45deg); border: 2px solid #0c0f14; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 1px 4px rgba(0, 0, 0, 0.5);
}
.ll-diamond-sm { display: inline-block; width: 9px; height: 9px; margin: 0 8px 0 2px; vertical-align: middle; }
.ll-group span {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid #c2185b;
  background: #141a24; color: #fff; font-weight: 700; font-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.popup-listing .ll-place { margin: 0 0 0.4rem; color: var(--text-muted); font-size: 0.85rem; }
.ll-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ll-table th { text-align: left; vertical-align: top; font-weight: 600; padding: 2px 8px 2px 0; white-space: nowrap; color: var(--text-muted); }
.ll-table td { padding: 2px 0; }
.ll-pending { font-style: italic; color: var(--text-faint); }
.ll-link { margin: 0.5rem 0 0.25rem; font-weight: 700; }
.ll-foot { font-size: 0.72rem; margin: 0.25rem 0 0; }
.ll-status-sold, .ll-status-withdrawn { color: #e07a5f !important; border-color: #e07a5f !important; }
