/* Place lists, filter and Library on New master (lists.js), 29 Nov 2026. Same tokens as the panel and the place card (base.css, find.css). */
/* filter: Everything / On Seeking Dubai / With renders & plans */
.ls-seg { display: flex; gap: 2px; background: rgba(246, 234, 210, 0.07); border: 1px solid var(--line); border-radius: 8px; padding: 2px; margin: 4px 0; }
.ls-seg button { flex: 1; background: none; border: 0; border-radius: 6px; color: var(--soft); font: inherit; font-size: 11.5px; padding: 5px 4px; cursor: pointer; line-height: 1.2; }
.ls-seg button.on { background: rgba(230, 182, 115, 0.22); color: var(--ink); font-weight: 600; }
.ls-seg button:focus-visible, .ls-lib:focus-visible, .ls-list button:focus-visible, .lb-f button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#layers li#lsBox { display: block; padding: 6px 0 8px; }
.ls-cap { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); }
.ls-lib { display: flex; width: 100%; align-items: baseline; gap: 6px; margin-top: 6px; background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 8px; cursor: pointer; text-align: left; }
.ls-lib:hover { border-color: var(--accent); }
.ls-lib small { color: var(--soft); font-weight: 400; font-size: 11px; }

/* the list on the place card */
.ls { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.ls-sum { color: var(--soft); font-size: 11.5px; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.ls-cap2 { margin-top: 12px; }
.ls-find { width: 100%; box-sizing: border-box; margin: 2px 0 6px; background: rgba(246, 234, 210, 0.07); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font: inherit; font-size: 12.5px; padding: 6px 8px; outline: 0; }
.ls-find:focus { border-color: var(--accent); }
.ls-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ls-list li[hidden] { display: none; }
.ls-list button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit; padding: 6px 0; cursor: pointer; min-height: 34px; }
.ls-list button:hover .ls-n { color: var(--accent); }
.ls-z { width: 9px; height: 9px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(246, 234, 210, 0.35); }
.ls-n { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.ls-n small { display: block; color: var(--soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.ls-r { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 58%; }
.ls-r b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--soft); font-size: 12px; min-width: 36px; text-align: right; }
.ls-t { font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px; background: rgba(246, 234, 210, 0.1); color: var(--soft); white-space: nowrap; }
.ls-t.pic { background: rgba(230, 182, 115, 0.18); color: var(--accent); }
.ls-t.st { background: rgba(94, 234, 212, 0.12); color: #9fe9da; }
.ls-t.warn { background: rgba(245, 158, 11, 0.16); color: #f2c178; }
.ls-t.dim { opacity: 0.8; }
.ls-d { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #8a8a82; }
.ls-d.approved { background: #4ade80; }
.ls-d.redo { background: #f87171; }
.ls-d.to_review { background: #c9b998; opacity: 0.55; }

/* the Library */
#lsLib { position: fixed; inset: 0; z-index: 20; background: rgba(5, 12, 12, 0.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
#lsLib[hidden] { display: none; }
.lb-card { width: min(1080px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(8px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); padding: 12px 16px 14px; box-sizing: border-box; font-size: 13px; }
.lb-card header { display: flex; align-items: baseline; gap: 12px; }
.lb-card h2 { margin: 0; font-size: 19px; font-weight: 800; }
.lb-sub { color: var(--soft); font-size: 12px; flex: 1; }
.lb-f { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 8px; }
.lb-f button { background: rgba(246, 234, 210, 0.07); border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font: inherit; font-size: 12px; padding: 4px 10px; cursor: pointer; }
.lb-f button.on { background: rgba(230, 182, 115, 0.22); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.lb-f small { margin-left: 5px; font-variant-numeric: tabular-nums; opacity: 0.8; }
.lb-q { background: rgba(246, 234, 210, 0.07); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-size: 13px; padding: 7px 10px; outline: 0; }
.lb-q:focus { border-color: var(--accent); }
.lb-card > * { flex-shrink: 0; }
.lb-card > .lb-body { flex-shrink: 1; overflow: auto; margin-top: 8px; min-height: 120px; }
.lb-body.wait { opacity: 0.6; }
.lb-body table { width: 100%; border-collapse: collapse; }
.lb-body th { position: sticky; top: 0; background: #0b2d2c; text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); font-weight: 600; padding: 6px 8px; }
.lb-body td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.lb-body tr[data-row] { cursor: pointer; }
.lb-body tr[data-row]:hover td, .lb-body tr[data-row]:focus-visible td { background: rgba(230, 182, 115, 0.1); }
.lb-pic { width: 64px; }
.lb-pic img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; display: block; background: rgba(246, 234, 210, 0.06); }
.lb-n b { font-weight: 600; }
.lb-n em { display: block; font-style: normal; font-size: 11.5px; }
.lb-n em.redo { color: #f87171; }
.lb-n em.why { color: #f2c178; }
.lb-c { color: #f2c178; }
.lb-p { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(246, 234, 210, 0.1); color: var(--soft); white-space: nowrap; }
.lb-p.approved { background: rgba(74, 222, 128, 0.16); color: #86efac; }
.lb-p.redo { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.lb-p.archived { background: rgba(245, 158, 11, 0.16); color: #f2c178; }

@media (max-width: 600px) {
  #lsLib { padding: 0; align-items: stretch; }
  .lb-card { border-radius: 0; padding: 10px 16px; }
  .lb-sub { display: none; }
  .lb-f { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .lb-f button { flex: none; }
  .lb-body thead { display: none; }
  .lb-body tr[data-row] { display: grid; grid-template-columns: 64px 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
  .lb-body td { border: 0; padding: 0; }
  .lb-pic { grid-row: 1 / span 4; }
  .lb-n { grid-column: 2; }
  .lb-body td:last-child { grid-column: 3; grid-row: 1; }
  .lb-body td[data-l] { grid-column: 2 / span 2; color: var(--soft); font-size: 11.5px; }
  .lb-body td[data-l]::before { content: attr(data-l) ": "; opacity: 0.75; }
  .ls-r { max-width: 62%; }
}
