:root {
  --bg:#F3EDE0;
  --surface:#FAF6EC;
  --surface2:#EFE8D8;
  --border:#DAD1BD;
  --border2:#C9BEA6;
  --text:#22332C;
  --dim:#4F5E57;
  --dimmer:#4F5E57;
  --amber:#8A6200;
  --amber-dim:#F3EDE0;
  --green:#2E6E46;
  --green-dim:#F3EDE0;
  --red:#B3261E;
  --red-dim:#EFE8D8;
  --blue:#2F6DB5;
  --purple:#7A4E8A;
  --mono:'Jost','Century Gothic','Futura','Trebuchet MS',sans-serif;
  --sans:'IBM Plex Sans','Segoe UI','Helvetica Neue',Arial,sans-serif;
  --row-h:30px;
}
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html, body { background:var(--bg); color:var(--text); font-family:var(--sans); }

/* ─── HEADER ─── */
.header {
  background:#E5F2EA;
  border-bottom:3px solid #3E8E5A;
  padding:10px 16px 8px;
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  flex-shrink:0;
}
.header-title {
  font-family:var(--mono); font-size:14px; font-weight:600;
  color:#22332C; letter-spacing:.5px; white-space:nowrap;
}
.header-title span { color:#2E6E46; font-weight:400; }
.stats-row { display:flex; gap:12px; flex-wrap:wrap; }
.stat { font-family:var(--mono); font-size:11px; color:#2E6E46; white-space:nowrap; }
.stat b { color:#8A6200; }
.stat-open b { color:#2E6E46; }
.stat-closed b { color:#B3261E; }

/* ─── TOOLBAR ─── */
.toolbar {
  background:var(--surface);
  border-bottom:2px solid var(--border);
  padding:6px 16px;
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  flex-shrink:0;
}
.search-wrap { position:relative; flex:1; min-width:160px; max-width:280px; }
.search-wrap::before {
  content:'⌕'; position:absolute; left:8px; top:50%; transform:translateY(-50%);
  color:var(--dim); font-size:14px; pointer-events:none;
}
#srch {
  width:100%; background:var(--bg); border:1px solid var(--border2);
  color:var(--text); font-family:var(--mono); font-size:12px;
  padding:5px 8px 5px 26px; border-radius:4px; outline:none;
}
#srch:focus { border-color:var(--blue); }
#srch::placeholder { color:var(--dimmer); }
.sep { width:1px; height:20px; background:var(--border); flex-shrink:0; }
.filter-group { display:flex; gap:3px; }
.flt {
  font-family:var(--mono); font-size:11px; font-weight:500;
  padding:4px 10px; border-radius:3px; border:1px solid var(--border2);
  background:transparent; color:var(--dim); cursor:pointer;
  transition:all .1s; white-space:nowrap;
}
.flt:hover { border-color:var(--border2); color:var(--text); }
.flt.on { background:var(--amber-dim); border-color:var(--blue); color:var(--blue); }
.flt.on-open { background:var(--green-dim); border-color:var(--green); color:var(--green); }
.flt.on-closed { background:var(--red-dim); border-color:var(--red); color:var(--red); }
.count-badge {
  font-family:var(--mono); font-size:11px; color:var(--dim);
  margin-left:auto; white-space:nowrap;
}

/* ─── LAYOUT ─── */
.layout { display:flex; height:calc(100vh - 90px); }

/* ─── TABLE PANE ─── */
.table-pane { flex:1; overflow:auto; min-width:0; transition:flex .2s; }
.table-pane.with-panel { flex:0 0 60%; }

/* ─── TABLE ─── */
table { width:100%; border-collapse:collapse; font-family:var(--mono); font-size:13px; }
thead { position:sticky; top:0; z-index:10; }
th {
  background:#E5F2EA;
  border-bottom:3px solid #3E8E5A;
  border-right:1px solid #C9BEA6;
  padding:0 8px; height:30px; text-align:left;
  font-size:11px; font-weight:800; letter-spacing:.8px;
  text-transform:uppercase; color:#22332C;
  white-space:nowrap; overflow:hidden;
  cursor:pointer; user-select:none; position:relative;
}
th:last-child { border-right:none; }
th:hover { color:#22332C; }
th.sorted-asc::after { content:' ▲'; color:#22332C; font-size:9px; }
th.sorted-desc::after { content:' ▼'; color:#22332C; font-size:9px; }

col.c-st   { width:58px; }
col.c-yr   { width:50px; }
col.c-name { width:200px; }
col.c-hood { width:160px; }
col.c-cat  { width:140px; }
col.c-ys   { width:72px; }
col.c-pct  { width:42px; }
col.c-fl   { width:52px; }
col.c-ta   { width:44px; }
col.c-notes { width:34px; }

tbody tr {
  border-bottom:1px solid var(--border);
  height:var(--row-h); cursor:pointer; transition:background .08s;
}
tbody tr:hover { background:var(--surface2); }
tbody tr.selected { background:#E6EFF9; outline:1px solid var(--blue) inset; }
tbody tr.is-closed td.c-name-cell { color:var(--dim); text-decoration:line-through; text-decoration-color:var(--dimmer); }
td {
  padding:0 8px; height:var(--row-h);
  border-right:1px solid var(--border);
  white-space:nowrap; overflow:hidden; vertical-align:middle; font-size:13px;
}
td:last-child { border-right:none; }

/* status pill */
.pill {
  display:inline-flex; align-items:center;
  font-size:9px; font-weight:600; letter-spacing:.4px;
  padding:2px 6px; border-radius:3px; text-transform:uppercase;
}
.pill-open   { background:var(--green-dim); color:var(--green); border:1px solid #3E8E5A; }
.pill-closed { background:var(--red-dim);   color:var(--red);   border:1px solid #B3261E; }
.pill-unkn   { background:var(--surface2);  color:var(--dim);   border:1px solid var(--border2); }

/* stars bar */
.stars-cell { color:#2F6DB5; letter-spacing:-1px; font-size:11px; }
.stars-num  { color:var(--dim); font-size:10px; margin-left:2px; }

/* number cells */
.num { text-align:right; color:var(--blue); }
.num-dim { text-align:right; color:var(--dim); }
.pct-cell { text-align:right; }
.yr-cell  { color:var(--dim); font-size:11px; }

/* notes indicator */
.notes-dot {
  display:inline-block; width:7px; height:7px;
  border-radius:50%; background:#9DBFE6; margin:auto;
}

/* ─── DETAIL PANEL ─── */
.detail-panel {
  width:380px; flex-shrink:0;
  background:var(--surface);
  border-left:2px solid var(--border2);
  overflow-y:auto; display:none;
}
.detail-panel.open { display:flex; flex-direction:column; }
.dp-head {
  padding:14px 16px 10px; border-bottom:1px solid var(--border);
  position:sticky; top:0; background:var(--surface); z-index:5;
}
.dp-name { font-size:16px; font-weight:600; color:var(--text); line-height:1.2; }
.dp-sub  { font-size:11px; color:var(--dim); margin-top:3px; font-family:var(--mono); }
.dp-close {
  position:absolute; right:12px; top:12px;
  background:none; border:none; color:var(--dim); font-size:18px;
  cursor:pointer; padding:4px 6px; line-height:1;
}
.dp-close:hover { color:var(--text); }
.dp-body { padding:12px 16px; flex:1; }

/* detail sections */
.ds { margin-bottom:16px; }
.ds-title {
  font-family:var(--mono); font-size:9px; font-weight:600;
  letter-spacing:1.2px; text-transform:uppercase; color:var(--dimmer);
  margin-bottom:8px; padding-bottom:4px; border-bottom:1px solid var(--border);
}
.ds-grid  { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ds-grid3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; }
.ds-item  { background:var(--bg); border:1px solid var(--border); border-radius:4px; padding:7px 9px; }
.ds-val   { font-family:var(--mono); font-size:15px; font-weight:600; color:var(--text); display:block; }
.ds-lbl   { font-family:var(--mono); font-size:9px; color:var(--dim); margin-top:1px; text-transform:uppercase; letter-spacing:.5px; }
.ds-val.v-green  { color:var(--green); }
.ds-val.v-red    { color:var(--red); }
.ds-val.v-amber  { color:var(--blue); }
.ds-val.v-blue   { color:var(--blue); }
.ds-val.v-purple { color:var(--purple); }

/* notes box */
.notes-box {
  background:#FAF6EC; border:1px solid #2F6DB5; border-left:3px solid #2F6DB5;
  border-radius:4px; padding:10px 12px;
  font-size:12px; color:#2F6DB5; line-height:1.6; font-style:italic;
}

/* web link */
.web-link {
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--mono); font-size:11px; color:var(--blue);
  text-decoration:none; padding:6px 10px;
  background:var(--bg); border:1px solid var(--border2);
  border-radius:4px; margin-top:4px; transition:border-color .1s;
}
.web-link:hover { border-color:var(--blue); }

/* empty state */
.empty { text-align:center; padding:60px 20px; color:var(--dim); font-family:var(--mono); font-size:12px; }

/* ── ACTION BUTTONS ── */
.act-row { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.act-btn {
  display:inline-flex; align-items:center; gap:5px;
  font-family:var(--mono); font-size:11px; font-weight:600;
  padding:7px 12px; border-radius:5px; text-decoration:none;
  transition:opacity .1s; cursor:pointer; white-space:nowrap;
}
.act-btn:hover { opacity:.85; }
.act-call  { background:#E5F2EA; color:#2E6E46; border:1px solid #3E8E5A; }
.act-map   { background:#E6EFF9; color:#2F6DB5; border:1px solid #2F6DB5; }
.act-order { background:#FBF0D4; color:#8A6200; border:1px solid #D49A1A; }
.act-resy  { background:#F1E8F4; color:#7A4E8A; border:1px solid #7A4E8A; }

/* ── CONTACT ROWS ── */
.ds-contact-row {
  font-family:var(--mono); font-size:11px; font-weight:600;
  color:var(--text); margin-bottom:5px; padding:3px 0;
}
.ds-hours { margin-top:6px; }
.ds-hour-row {
  font-family:var(--mono); font-size:10px; color:var(--dim);
  padding:2px 0; border-bottom:1px solid var(--border); font-weight:500;
}
.ds-hour-row:last-child { border-bottom:none; }

/* ── EXTERNAL LINKS ── */
.ext-row { display:flex; gap:6px; flex-wrap:wrap; }
.ext-link {
  display:inline-flex; align-items:center; gap:4px;
  font-family:var(--mono); font-size:10px; font-weight:600;
  padding:5px 9px; border-radius:4px;
  background:var(--bg); border:1px solid var(--border2);
  color:var(--blue); text-decoration:none; transition:border-color .1s;
}
.ext-link:hover { border-color:var(--blue); }

/* ── RIDER BLURBS ── */
.blurbs-section { margin-top:12px; }
.blurbs-title {
  font-family:var(--mono); font-size:8px; font-weight:800;
  letter-spacing:1.2px; text-transform:uppercase;
  color:var(--dimmer); border-bottom:2px solid var(--border2);
  padding-bottom:4px; margin-bottom:8px;
}
.blurb-item {
  background:#FAF6EC; border:1px solid #2F6DB5;
  border-left:4px solid #2F6DB5; border-radius:3px;
  padding:7px 10px; margin-bottom:6px;
}
.blurb-text { font-size:11px; font-weight:500; color:#22332C; line-height:1.5; font-style:italic; }
.blurb-source { font-family:var(--mono); font-size:9px; color:#2F6DB5; font-weight:700; margin-top:4px; font-style:normal; }

/* ── USER REVIEWS ── */
.ur-section { margin-bottom:12px; }
.ur-header {
  background:#E6EFF9; border-radius:4px 4px 0 0;
  padding:8px 12px;
  font-family:var(--mono); font-size:9px; font-weight:900;
  letter-spacing:1px; text-transform:uppercase; color:#22332C;
}
.ur-form {
  background:#FAF6EC; border:1px solid #2F6DB5; border-top:none;
  border-radius:0 0 4px 4px; padding:10px;
}
.ur-textarea {
  width:100%; font-family:var(--sans); font-size:11px; font-weight:500;
  color:#22332C; background:#FAF6EC; border:1px solid #2F6DB5;
  border-radius:3px; padding:7px 9px; margin-bottom:7px;
  resize:vertical; min-height:60px; outline:none;
}
.ur-textarea:focus { border-color:#2F6DB5; }
.ur-stars-row { display:flex; gap:4px; margin-bottom:7px; align-items:center; }
.ur-star-btn {
  font-size:22px; cursor:pointer; color:#22332C;
  background:none; border:none; padding:0 2px; line-height:1; transition:color .1s;
}
.ur-star-btn.lit { color:#8A6200; }
.ur-star-label { font-size:10px; font-weight:700; color:#22332C; margin-left:4px; }
.ur-submit {
  background:#E6EFF9; color:#22332C; border:none; border-radius:3px;
  font-family:var(--mono); font-size:10px; font-weight:700;
  padding:8px 16px; cursor:pointer; min-height:36px;
}
.ur-submit:hover { background:#E6EFF9; }
.ur-saved { font-family:var(--mono); font-size:10px; font-weight:700; color:#2E6E46; margin-top:5px; display:none; }
.ur-error { font-family:var(--mono); font-size:10px; color:var(--red); padding:4px 0; }
.ur-loading { font-family:var(--mono); font-size:10px; color:var(--dim); padding:8px 0; text-align:center; }
.ur-existing { margin-top:8px; }
.ur-existing-title {
  font-family:var(--mono); font-size:9px; font-weight:900;
  letter-spacing:1px; text-transform:uppercase; color:#22332C;
  padding:6px 10px; border-bottom:1px solid var(--border); background:var(--surface2);
}
.ur-entry { background:#FAF6EC; border:1px solid var(--border); border-radius:3px; padding:7px 10px; margin:6px 0; }
.ur-entry-stars { color:#8A6200; font-size:14px; }
.ur-entry-text  { color:#22332C; font-size:11px; font-weight:500; margin-top:3px; font-style:italic; }
.ur-entry-meta  { font-family:var(--mono); font-size:9px; color:#2F6DB5; margin-top:3px; }
.ur-public-note { font-family:var(--mono); font-size:9px; color:#2F6DB5; margin-bottom:6px; font-style:italic; }

/* ─── FOOTER ─── */
.site-footer { background:var(--surface); border-top:2px solid var(--border); padding:0; }
.ad-banner {
  background:var(--surface2); border-bottom:1px solid var(--border);
  min-height:60px; display:flex; align-items:center; justify-content:center;
  padding:6px 16px; color:#2F6DB5; font-family:var(--mono); font-size:10px;
}
.ad-banner-label { font-family:var(--mono); font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:#2F6DB5; margin-right:10px; white-space:nowrap; }
.ad-slot { flex:1; min-height:50px; max-height:90px; display:flex; align-items:center; justify-content:center; border:1px dashed var(--border2); border-radius:3px; }
.copyright-bar { padding:7px 16px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.copyright-text { font-family:var(--mono); font-size:10px; color:var(--dim); line-height:1.5; }
.footer-links { display:flex; gap:14px; }
.footer-link { font-family:var(--mono); font-size:10px; color:var(--dim); text-decoration:none; white-space:nowrap; }
.footer-link:hover { color:#2F6DB5; }

/* ── MOBILE ── */
@media (max-width: 700px) {
  :root { --row-h:36px; }
  .detail-panel { position:fixed; inset:0; z-index:200; width:100vw !important; height:100vh; overflow-y:auto; display:none; }
  .detail-panel.open { display:block; }
  .act-btn { padding:9px 14px; font-size:11px; min-height:44px; }
}

/* ── COLUMN MIN-WIDTHS (no truncation) ── */
th[data-col="st"]    { min-width:70px; }
th[data-col="yr"]    { min-width:55px; }
th[data-col="n"]     { min-width:200px; }
th[data-col="h"]     { min-width:160px; }
th[data-col="c"]     { min-width:150px; }
th[data-col="yS"]    { min-width:140px; }
th[data-col="pL"]    { min-width:80px; }
th[data-col="tA"]    { min-width:120px; }
th[data-col="fL"]    { min-width:90px; }
th[data-col="notes"] { min-width:32px; }
td { min-width:0; }
.c-name-cell { min-width:200px; }

/* ── DARKEN & INCREASE inline td font sizes ── */
td { font-size:13px !important; color:var(--text); }
td.yr-cell { font-size:12px !important; color:var(--dim); }
.stars-num { font-size:12px !important; }
.stars-cell { font-size:12px !important; }
.pct-cell { font-size:13px !important; }
