/* The sky log (/sky-log, ADR 0104), on top of learn.css. Only theme tokens
   (--surface, --line, --text, --muted, --accent-moon), so dark.css and the
   night theme restyle it without a dark file of its own. */

.sl-lede { font-size: 1.05rem; max-width: 46em; }
.sl-note { color: var(--muted); font-size: 0.88rem; }
.sl-page .btn, .sl-tick {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.sl-page .btn:hover { border-color: var(--accent-moon); }

.sl-where { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.sl-where summary { cursor: pointer; }
.sl-signin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.sl-signin input { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); min-width: 0; flex: 1 1 14em; }

.sl-summary { margin: 18px 0 8px; }
.sl-total { font-size: 1.15rem; margin: 0; }
.sl-total b { font-size: 1.6rem; color: var(--accent-moon); font-variant-numeric: tabular-nums; }

.sl-collections h2, .sl-history h2 { margin-top: 26px; }
.sl-coll { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 10px 0; padding: 0 14px; }
.sl-coll > summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; list-style: none; }
.sl-coll > summary::-webkit-details-marker { display: none; }
.sl-coll-title { font-weight: 650; font-size: 1.05rem; }
.sl-coll-title::before { content: "▸ "; color: var(--muted); }
.sl-coll[open] .sl-coll-title::before { content: "▾ "; }
.sl-coll-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-coll progress { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--accent-moon); }
.sl-coll.is-complete { border-color: var(--accent-moon); }
.sl-coll.is-complete .sl-coll-count::after { content: " ✓"; color: var(--accent-moon); font-weight: 700; }
.sl-coll-desc { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.sl-count-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }

.sl-items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px 14px; }
.sl-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.sl-tick { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 2px; border-radius: 6px; text-align: left; min-width: 0; }
.sl-box { flex: none; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 5px; display: inline-grid; place-items: center; }
.sl-tick[aria-pressed="true"] .sl-box { background: var(--accent-moon); border-color: var(--accent-moon); }
.sl-tick[aria-pressed="true"] .sl-box::after { content: "✓"; color: var(--surface); font-size: 13px; font-weight: 800; line-height: 1; }
.sl-tick:focus-visible { outline: 2px solid var(--accent-moon); outline-offset: 2px; }
.sl-more { font-size: 0.82rem; }
.sl-when { color: var(--muted); font-size: 0.8rem; flex-basis: 100%; padding-left: 30px; }
.sl-when:empty { display: none; }

.sl-empty { color: var(--muted); }

/* Recently seen on /sky-log */
.sl-total-link { color: inherit; text-decoration: none; }
.sl-total-link:hover span { text-decoration: underline; }
.sl-recent { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sl-recent li { display: inline-flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; }
.sl-all { margin: 4px 0 0; }
.sl-page a.btn { display: inline-block; text-decoration: none; }

/* /sky-log/seen: one line per object */
.sl-since { color: var(--muted); font-size: 0.95rem; }
.ss-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 16px 0 6px; }
.ss-find { flex: 1 1 14em; display: flex; }
.ss-find input, .ss-sort select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); min-width: 0; }
.ss-find input { flex: 1; }
.ss-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.ss-group h2 { font-size: 1.02rem; margin: 22px 0 6px; }
.ss-gcount { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.ss-list { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.ss-item + .ss-item { border-top: 1px solid var(--line); }
.ss-item > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 9px 14px; cursor: pointer; list-style: none; }
.ss-item > summary::-webkit-details-marker { display: none; }
.ss-item > summary:hover { background: color-mix(in srgb, var(--surface) 92%, var(--text) 8%); }
.ss-item > summary:focus-visible { outline: 2px solid var(--accent-moon); outline-offset: -2px; }
.ss-name { font-weight: 600; }
.ss-meta { display: inline-flex; gap: 10px; color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-count { color: var(--accent-moon); font-weight: 600; }
.ss-nights { list-style: none; margin: 0; padding: 2px 14px 10px; display: grid; gap: 6px; }
.ss-night { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.9rem; }
.ss-date { min-width: 9.5em; }
.ss-note { font-style: italic; }
.ss-btn { font: inherit; font-size: 0.8rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.ss-btn:hover { border-color: var(--accent-moon); }
.ss-night input { font: inherit; font-size: 0.88rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); flex: 1 1 12em; min-width: 0; }
.sl-name { font-weight: 600; }
.sl-text { color: var(--muted); font-size: 0.88rem; }
.sl-page .lx-kicker a { color: inherit; text-decoration: none; }
.sl-page .lx-kicker a::before { content: "← "; }
.sl-warn { margin: 12px 0 4px; padding: 10px 14px; border: 1px solid var(--accent-moon); border-left-width: 4px; border-radius: 10px; background: var(--surface); font-size: 0.95rem; max-width: 46em; }
.sl-warn a { font-weight: 600; }
