/* Task 013: the one compact, see-through panel on the left, over the Earth.
   Top to bottom: the nights, one line for files not used, the place, the
   target, the stats, the links below. Nothing else floats over the Earth. */
#panel {pointer-events:auto;min-width:0;width:100%;color:var(--paper);background:rgba(12,13,13,.62);
  border:1px solid rgba(225,218,196,.38);border-radius:4px;backdrop-filter:blur(3px);padding:9px 11px 10px;
  overflow:auto;scrollbar-width:thin;scrollbar-color:#8a877e60 transparent;
  container-type:inline-size;font-size:12.5px;line-height:1.35}
.pn-bar {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 8px}
.pn-bar h2 {margin:0;font:650 11px/1.2 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:#f6f2e7}
.pn-intro {margin:7px 0 2px;color:var(--muted);font-size:12.5px}
.pn-intro:empty {display:none}
#review-status {font-size:12px;margin:5px 0;color:var(--muted)}
#review-status:empty {display:none}
.pn-rule {border:0;border-top:1px solid var(--line);margin:8px 0}
#nights:empty,#nights:empty+.pn-rule {display:none}
#nights {margin-top:7px;min-width:0;max-height:min(46svh,460px);overflow:auto;scrollbar-width:thin;scrollbar-color:#8a877e60 transparent}
@media(max-width:640px) {#nights {max-height:none}}

/* Night rows: date, the PHD2 and Autorun marks, the target when there are several. */
.rv-section+.rv-section {margin-top:6px}
.rv-heading {margin:2px 0 1px;font:600 10.5px/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#bdb8a9}
.rv-night {display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;min-width:0}
.rv-night-open {flex:1 1 auto;min-width:0;display:grid;grid-template-columns:6.9em auto minmax(0,1fr);align-items:center;gap:8px;
  padding:3px 4px;margin:0;border:0;border-radius:3px;background:transparent;color:var(--paper);text-align:left;font:inherit}
.rv-night-open:not(:disabled):hover {background:#e2dfcb12}
.rv-night-open[aria-pressed=true] {background:#efe5ca1f;box-shadow:inset 2px 0 var(--orange)}
.rv-also[aria-pressed=true] {color:#fff;text-decoration:underline solid var(--orange)}
.rv-night-open:disabled {cursor:default}
.rv-date {font-variant-numeric:tabular-nums;white-space:nowrap}
.rv-row-target {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e9e3d2}
.rv-slots {display:inline-flex;gap:0}
.rv-pair {border:1px solid #8d8a7a88;border-radius:4px;overflow:hidden}
.rv-slot {display:inline-flex;align-items:center;gap:3px;padding:0 6px;font:11.5px/1.6 var(--sans);color:#e6e1d4;white-space:nowrap}
.rv-slot+.rv-slot {border-inline-start:1px solid #8d8a7a66}
.rv-slot.rv-missing {color:#9d998e;outline:1px dotted #9d998e;outline-offset:-3px;border-radius:4px}
.rv-pair:not(:has(>.rv-slot:not(.rv-missing))) {border-style:dotted}
.rv-pair:not(:has(>.rv-slot:not(.rv-missing)))>.rv-slot {outline:0}
.rv-tick {color:#a2e7b0;font-weight:700}
.rv-warning {color:#ffd28a;font-size:11.5px}
.rv-night>.rv-warning {flex-basis:100%;padding-left:calc(6.9em + 12px)}
.rv-also {margin:0 0 1px calc(6.9em + 12px);padding:0;border:0;background:transparent;color:#d9cfb6;font:11.5px/1.35 var(--sans);text-align:left;text-decoration:underline dotted #8d8a7a;text-underline-offset:3px}
.rv-also:not(:disabled):hover {color:var(--paper)}
.rv-also:disabled {text-decoration:none;cursor:default}
.rv-note {color:var(--muted);font-size:12px;margin:3px 0}

/* The one WBPP box: its name once, its three dots, and the nights it holds docked to it. */
.rv-run {border:1px solid #b9b19788;border-radius:5px;padding:5px 7px 4px;background:#1d1e1b80}
.rv-run-head {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 7px;width:100%;margin:0;padding:1px 2px;border:0;border-radius:3px;
  background:transparent;color:var(--paper);text-align:left;font:600 12.5px/1.35 var(--sans)}
.rv-run-head:not(:disabled):hover {background:#e2dfcb12}
.rv-run-head[aria-pressed=true] {background:#efe5ca1f;box-shadow:inset 2px 0 var(--orange)}
.rv-companion {font-weight:400;color:var(--muted);font-size:11.5px}
.rv-dots {display:flex;flex-wrap:wrap;gap:2px 12px;margin:2px 2px 0}
.rv-dot-item {display:inline-flex;align-items:center;gap:5px;font:11.5px/1.35 var(--sans);color:var(--paper)}
.rv-dot {width:9px;height:9px;border-radius:50%;flex:none;background:#e0645a;box-shadow:0 0 0 1px #00000066,0 0 6px #e0645a66}
.rv-dot-item[data-used=true] .rv-dot {background:#6fd486;box-shadow:0 0 0 1px #00000066,0 0 6px #6fd48666}
.rv-dot-words {margin:1px 2px 3px;font-size:11px;color:#b6b1a3}
.rv-run-sessions {margin:2px 0 1px 5px;padding-left:7px;border-inline-start:2px solid #b9b19799}
.rv-run-sessions .rv-night-open {grid-template-columns:calc(6.9em - 14px) auto minmax(0,1fr)}
.rv-run-sessions .rv-also,.rv-run-sessions .rv-night>.rv-warning {margin-left:calc(6.9em - 2px);padding-left:0}
.rv-choice .rv-candidate {display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:4px 0}
.rv-action {padding:2px 7px;font:600 11.5px/1.35 var(--sans);border:1px solid #8b8371;border-radius:3px;background:#252622;color:#f4eddf}

/* One line for the files that were not used; [why] opens the list with names. */
.rv-unused-line {margin:2px 0;font-size:12px;color:#e6e1d4}
.rv-why {padding:0 6px;border:1px solid #8b8371;border-radius:9px;background:transparent;color:var(--paper);font:600 11px/1.45 var(--sans)}
.rv-why[aria-expanded=true] {background:#efe5ca;color:#201f19}
.rv-unused-list {list-style:none;margin:4px 0 0;padding:4px 0 0 6px;border-inline-start:1px dotted #a09985}
.rv-file {display:grid;gap:0;padding:2px 0}
.rv-filename {font:11.5px/1.35 var(--mono);color:#f2eddf;overflow-wrap:anywhere}
.rv-why-words {font-size:11.5px;color:var(--muted)}

/* Place and target: what the logs give today. */
#where {margin:0;display:grid;gap:2px}
#where:not([hidden]),#stats-card:not([hidden]) {border-top:1px solid var(--line);margin-top:8px;padding-top:7px}
#nights:empty+#where:not([hidden]) {border-top:0;margin-top:4px;padding-top:0}
.pn-line {display:grid;grid-template-columns:4.6em minmax(0,1fr);align-items:baseline;gap:6px}
.pn-label {margin:0;font:600 10.5px/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#bdb8a9}
.pn-value {margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;min-width:0}
.pn-value strong {font-weight:600;font-size:13.5px;color:#f7f0e5}
.pn-note {font-size:11.5px;color:var(--muted)}
.pn-missing {color:#a39f94}
.pn-link {padding:0;border:0;background:transparent;color:var(--paper);font:11.5px var(--sans);text-decoration:underline;text-underline-offset:3px}
.pn-links {display:flex;flex-wrap:wrap;gap:3px 14px;margin-top:8px}
.pn-links a {font:600 12px var(--sans);color:var(--paper);text-decoration:underline;text-underline-offset:4px}
.pn-links a span {color:var(--orange)}
.pn-links:not(:has(a:not([hidden]))) {display:none}

@container (max-width:280px) {
  .rv-night-open {grid-template-columns:6.4em auto;}
  .rv-row-target {grid-column:1/-1}
}
