/* Xenia Outreach: daily send page. Builds on style.css (warm paper, sage + clay). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-bottom: 120px; }
.today-meta { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.today-meta b { color: var(--ink); font-weight: 600; }
.howto { background: var(--sage-soft); border-color: var(--sage-line); }
.howto h2 { margin: 0 0 8px; font-size: 19px; }
.howto ol { list-style: none; margin: 0; padding: 0; }
.howto li { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 5px 0; font-size: 15px; color: #3c4235; }
.howto li span { font-weight: 600; color: var(--sage-deep); font-variant-numeric: tabular-nums; }
.chan-banner { background: var(--clay-soft); border: 1px solid var(--clay-line); color: var(--clay-deep); border-radius: var(--radius); padding: 14px 18px; margin: 14px 0; font-size: 15px; }
.chan-banner b { display: block; margin-bottom: 2px; }
.empty-note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; font-size: 16px; }
.chan-head { font-family: var(--serif); font-size: 19px; margin: 26px 0 4px; }

.item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; margin: 14px 0; }
.item .badge { font: 600 14px/1 var(--sans); color: var(--bg); background: var(--ink); min-width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.item.wa .badge { background: var(--sage-deep); }
.item-main { min-width: 0; }
.item-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.item-name { font-family: var(--serif); font-size: 21px; font-weight: 500; overflow-wrap: anywhere; }
.item-label { font-size: 12.5px; color: var(--clay-deep); background: var(--clay-soft); border: 1px solid var(--clay-line); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.item.wa .item-label { color: var(--sage-deep); background: var(--sage-soft); border-color: var(--sage-line); }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; font-size: 15px; }
.field .k { width: 64px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); flex: none; }
.field .v { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.field button { min-height: 44px; }
.thread { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.thread b { color: var(--ink); }
.preview { display: block; width: 100%; height: 440px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-top: 12px; }
.wa-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15.5px; line-height: 1.55; margin-top: 12px; color: var(--ink); }
.item .actions { margin-top: 14px; }
.item .actions button, .item .actions .btn { min-height: 44px; }
.small { font-weight: 500; font-size: 13px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line2); }
.status-row button { min-height: 44px; }
.status-row .btn-sent { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-deep); }
.gate { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--clay-soft); border: 1px solid var(--clay-line); color: var(--clay-deep); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gate[hidden] { display: none; }
.item.queued { opacity: .72; }
.item.queued .gate-q { margin-top: 10px; font-size: 14px; color: var(--muted); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:disabled:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-primary:disabled:hover { background: var(--sage); color: var(--on-accent); border-color: var(--sage); }
.item.done { grid-template-columns: 44px minmax(0, 1fr); align-items: center; padding: 10px 14px; opacity: .85; }
.item.done .badge { background: var(--sage); height: 36px; min-width: 36px; }
.item.done.bad .badge { background: var(--clay); }
.done-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; justify-content: space-between; }
.done-line .t { font-size: 15px; overflow-wrap: anywhere; }
.done-line .st { font-weight: 600; color: var(--sage-deep); }
.item.done.bad .st { color: var(--clay-deep); }
.item.held { opacity: .7; }
.held-note { font-size: 14px; color: var(--muted); margin-top: 4px; }
.reportbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); background: var(--panel); border-top: 1px solid var(--line-strong); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.reportbar[hidden] { display: none; }
.reportbar-in { max-width: 726px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reportbar .count { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.reportbar button { min-height: 44px; }
.hub-today { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; color: inherit; background: var(--sage-soft); border-color: var(--sage-line); }
.hub-today:hover { background: var(--panel); border-color: var(--sage); }
.hub-today h2 { margin: 0; }
.hub-today .meta { margin-top: 4px; }
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .item { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .item .badge { width: 44px; }
  .item.done { grid-template-columns: 36px minmax(0, 1fr); }
  .field .k { width: 100%; }
  .preview { height: 380px; }
  .item .actions button, .item .actions .btn { flex: 1 1 100%; justify-content: center; }
  .status-row button { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
