/* GOTOVO Admin — styles specific to the manual-digest pages
   (compose two-pane, curated basket, export modal). Layered on admin/styles.css. */

/* ── Compose two-pane layout ─────────────────────────────────────────────── */
.compose-wrap {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 18px; align-items: stretch;
  height: calc(100vh - 196px); min-height: 520px;
}
.pane {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.pane-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  flex: none; background: var(--surface-2);
}
.pane-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}
.pane-eyebrow.accent { color: var(--accent); }
.pane-eyebrow .ico { width: 14px; height: 14px; }
.pane-titletext { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.pane-filters {
  flex: none; padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
}
.pane-filters .toolbar-row { gap: 10px; }
.pane-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px; min-height: 0; }
.pane-body::-webkit-scrollbar { width: 9px; }
.pane-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; }
.pane-foot { flex: none; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }
.pane-foot .pager { margin-top: 0; }

/* candidate list (discovery) */
.cand-list { display: flex; flex-direction: column; gap: 7px; }
.cand {
  display: grid; grid-template-columns: 22px 42px 1fr auto; align-items: center;
  gap: 12px; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.cand:hover { border-color: var(--accent-line); background: var(--surface-2); }
.cand.on { border-color: var(--accent-line); background: var(--accent-soft); }
.cand.nonlive .cand-title { color: var(--text-2); }
.cand-check {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border: 1.6px solid var(--border-2); border-radius: 6px; background: var(--surface);
  cursor: pointer; position: relative; flex: none; transition: background .12s, border-color .12s;
}
.cand-check:checked { background: var(--accent); border-color: var(--accent); }
.cand-check:checked::after {
  content: ""; position: absolute; inset: 0;
  background: center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.cand .daycol { text-align: center; line-height: 1.04; }
.cand .daycol .d { font-size: 18px; font-weight: 700; }
.cand .daycol .m { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.cand-main { min-width: 0; }
.cand-title { display: block; font-weight: 650; font-size: 14px; letter-spacing: -.005em; }
.cand-sub { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.cand-right { display: flex; align-items: center; gap: 9px; flex: none; }

/* curated basket (curation — always the full set) */
.basket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sel-count { font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 3px 10px; border-radius: var(--r-pill); }
.sel-count.zero { color: var(--text-3); background: var(--surface-2); border-color: var(--border-2); }
.basket-note {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  color: var(--info-fg); background: var(--info-bg);
  border-radius: var(--r-sm); padding: 8px 11px; margin-bottom: 10px; line-height: 1.4;
}
.basket-note .ico { width: 14px; height: 14px; flex: none; }
.basket { display: flex; flex-direction: column; gap: 6px; }
.basket.is-empty { min-height: 120px; }
.bsk {
  display: grid; grid-template-columns: 58px 1fr auto auto; align-items: center; gap: 10px;
  padding: 8px 6px 8px 12px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--surface-2);
}
.bsk.out { border-style: dashed; border-color: var(--border-2); background: var(--surface); }
.bsk-day { font-size: 12px; font-weight: 600; color: var(--text-2); }
.bsk-title { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsk-tags { display: flex; align-items: center; gap: 6px; }
.out-flag { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.out-flag .ico { width: 11px; height: 11px; }
.bsk-x {
  background: transparent; border: 0; color: var(--text-3); border-radius: 6px;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.bsk-x:hover { background: var(--danger-bg); color: var(--danger-fg); }
.bsk-x .ico { width: 15px; height: 15px; }
.basket-empty {
  display: flex; gap: 12px; align-items: flex-start; color: var(--text-2);
  border: 1px dashed var(--border-2); border-radius: var(--r-md); padding: 16px;
}
.basket-empty .ico { width: 26px; height: 26px; color: var(--text-3); flex: none; margin-top: 1px; }
.basket-empty b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 3px; }
.basket-empty span { font-size: 12.5px; line-height: 1.5; }

/* compose right column */
.compose-head { gap: 12px; }
.cmp-title-wrap { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.cmp-title {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent; background: transparent; padding: 6px 8px;
  border-radius: var(--r-sm); width: 100%;
}
.cmp-title:hover { background: var(--surface); border-color: var(--border-2); }
.cmp-title:focus { background: var(--surface); }
.cmp-suggest { padding: 6px; flex: none; }
.cmp-suggest .ico { width: 15px; height: 15px; }
.cmp-status { display: flex; align-items: center; gap: 8px; flex: none; font-size: 11.5px; }
.dirty-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn-fg);
  box-shadow: 0 0 0 3px var(--warn-bg); flex: none; }
.cmp-sec { margin-top: 18px; }
.cmp-body { font-size: 13.5px; line-height: 1.65; min-height: 150px; resize: vertical; }

.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.compose-foot .foot-left, .compose-foot .foot-right { display: flex; gap: 8px; align-items: center; }

.nonlive-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
  font-weight: 600; color: var(--text-2); white-space: nowrap; cursor: pointer; align-self: flex-end; }

/* ── Export modal ────────────────────────────────────────────────────────── */
.modal-ov { position: fixed; inset: 0; z-index: 100; background: rgba(20,20,32,.46);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(2px); animation: ov-in .14s ease both; }
@keyframes ov-in { from { opacity: 0; } }
.modal { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); width: min(720px, 100%); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-sub { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.md-pre { flex: 1 1 auto; overflow: auto; margin: 0; padding: 16px 18px;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text);
  white-space: pre-wrap; word-break: break-word; background: var(--surface-2); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }

@media (max-width: 960px) {
  .compose-wrap { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .pane { height: auto; }
  .pane-body { max-height: 64vh; }
}
