/* Work Log — the daily summary. TRIAL FEATURE.

   Deleting this file and its <link> in index.html removes every style it adds;
   nothing else reads these classes. All colours come from tokens.css, so the
   tab follows whatever theme preset is active without its own dark-mode rules.

   Part of the split style sheet — see index.html for the link order. */

/* #app is .app-shell — a two-column grid (task queue | detail). A full-width
   view has to say so, or it renders inside the 380px queue column and every
   nested column collapses with it. Same as .summary-view. */
.wl {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1180px;
}

.wl-head { margin-bottom: 18px; }
.wl-title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.wl-sub { font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 0; max-width: 60ch; }

/* ---------- day bar ---------- */
.wl-daybar {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 22px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.wl-field { display: flex; flex-direction: column; gap: 5px; }
.wl-field > label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}
.wl-field input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.wl-field input[type="date"] { font-family: var(--font-mono); font-size: 13px; }
.wl-hm { display: flex; align-items: center; gap: 6px; }
.wl-hm input {
  width: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.wl-hm span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.wl-spacer { flex: 1; }

/* ---------- two columns ---------- */
.wl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.wl-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wl-outwrap { position: sticky; top: 16px; min-width: 0; }

/* ---------- sections ---------- */
.wl-sec {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wl-sec-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--rule);
}
.wl-sec-head h3 { font-size: 14.5px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.wl-sec-blockers .wl-sec-head h3 { color: var(--danger); }
.wl-n {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.wl-items { list-style: none; margin: 0; padding: 0; }
.wl-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 15px;
  border-bottom: 1px dashed var(--rule);
}
.wl-item:last-child { border-bottom: none; }
/* Gold marks what the tracker filled in — provenance you can see at a glance,
   without reading the text. */
.wl-item-auto {
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold-soft) 26%, transparent);
}
.wl-item-body { flex: 1; min-width: 0; }
.wl-item-text { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.wl-item-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}
.wl-item-meta a { color: var(--accent); text-decoration: none; }
.wl-item-meta a:hover { text-decoration: underline; }

/* A hidden auto line stays visible but struck through, so you can see what you
   left out of the summary — and put it back. */
.wl-hidden { opacity: 0.45; }
.wl-hidden .wl-item-text { text-decoration: line-through; }

.wl-chip {
  flex: none;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
}
.wl-chip-auto { color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold); }

.wl-x {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 5px;
  border-radius: 4px;
}
.wl-x:hover { color: var(--danger); background: var(--danger-soft); }
.wl-hidden .wl-x:hover { color: var(--accent); background: var(--accent-soft); }

.wl-empty {
  padding: 13px 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.wl-add {
  display: flex;
  gap: 8px;
  padding: 10px 15px;
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.wl-add select {
  flex: none;
  width: 130px;
  font-size: 13px;
  padding: 7px 8px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.wl-add input {
  flex: 1;
  min-width: 130px;
  font-size: 13.5px;
  padding: 7px 9px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.wl-add input[type="url"] { flex: 0 1 170px; }

/* ---------- output ---------- */
.wl-out-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wl-out-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--rule);
}
.wl-out-head h3 { font-size: 14.5px; font-weight: 700; margin: 0; flex: 1; }
.wl-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wl-flag.on { opacity: 1; }
pre.wl-out {
  margin: 0;
  padding: 16px 16px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: min(62vh, 700px);
  overflow-y: auto;
}

.wl-legend {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}
.wl-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}
.wl-dot-auto { background: var(--gold); }
.wl-dot-manual { background: var(--accent); }

@media (max-width: 1000px) {
  .wl-cols { grid-template-columns: 1fr; }
  .wl-outwrap { position: static; }
}
