/* The info panel (info.js, docs/CONSOLE.md §10): beside every conversation and every chat, where its data and
   settings live. Flat: section headings and hairlines, no boxed cards, no thick borders; every target at least 44px
   high. Only the console's tokens, so it follows whatever theme they carry. Every class here starts with ifo-, plus the
   three layouts it opens in: beside the thread (1180px and wider), a sheet over the thread (781–1179px), and a page
   of its own on a phone (780px and below). */

.ifo { min-width: 0; font-size: 13px; }
.ifo-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ifo-btn svg { width: 16px; height: 16px; }
.ifo-btn.on { border-color: var(--canopy); color: var(--text); }

.ifo-head { display: flex; align-items: center; gap: 8px; padding: 14px 0 10px; border-bottom: var(--hair); position: sticky; top: 0; background: var(--ink-1); z-index: var(--z-raise); }
.ifo-title { flex: 1; min-width: 0; }
.ifo-title h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ifo-title p { margin: 2px 0 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ifo-head .iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ifo-back { display: none !important; }

.ifo-sec { padding: 14px 0 16px; border-bottom: var(--hair); }
.ifo-sec > h3 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin: 0 0 10px; }
.ifo-sec p { margin: 0 0 6px; overflow-wrap: anywhere; }
.ifo-blk { padding: 10px 0 12px; border-top: var(--hair); }
.ifo-sec > .ifo-blk:first-of-type { border-top: 0; padding-top: 0; }
.ifo-blk h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.ifo-k { margin: 10px 0 4px !important; font-size: 12px; color: var(--text-3); }
.ifo-now { font-size: 13.5px; }
.ifo-small { font-size: 12px; }
.ifo .cv-gate, .ifo .cv-chase { margin: 8px 0 0; }
.ifo .cv-claim { display: flex; gap: 6px; align-items: center; color: var(--warn); }
.ifo .cv-modes { margin-top: 0; gap: 8px; }

/* Controls: 44px targets, flat. */
.ifo-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.ifo .btn.sm, .ifo .cv-select, .ifo-field input, .ifo .cv-set-form input:not([type=checkbox]), .ifo .cv-set-form .cv-select { min-height: 44px; }
.ifo .btn.sm { padding-left: 14px; padding-right: 14px; }
.ifo .linkbtn { min-height: 44px; padding: 0 4px; color: var(--canopy-2); text-decoration: underline; text-underline-offset: 2px; }
.ifo .md-opt { min-height: 44px; }
.ifo .md-th input { min-height: 44px; }
.ifo label.check, .ifo .ifo-tog { min-height: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ifo input[type=checkbox] { width: 18px; height: 18px; flex: none; }
.ifo-field { display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: 12.5px; }
.ifo-field input, .ifo-field select { background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 6px 10px; color: var(--text); font: 14px var(--sans); min-width: 0; }
.ifo-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ifo-row .ifo-field { flex: 1 1 160px; }
.ifo .cv-set { margin-top: 10px; padding-top: 0; border-top: 0; }
.ifo .cv-set summary { min-height: 44px; align-items: center; }
.ifo .cv-set-form { max-width: none; }
.ifo .cv-days { grid-template-columns: minmax(0, 1fr); }

/* Lists: a hairline between rows, the time on the right. */
.ifo-list { list-style: none; margin: 0 0 8px; padding: 0; }
.ifo-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-bottom: var(--hair); overflow-wrap: anywhere; }
.ifo-list li:last-child { border-bottom: 0; }
.ifo-list li > span { min-width: 0; }
.ifo-list time { flex: none; font-size: 11.5px; font-family: var(--mono); }
.ifo-kv { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 10px; margin: 0 0 6px; }
.ifo-kv dt { color: var(--text-3); }
.ifo-kv dd { margin: 0; overflow-wrap: anywhere; }
.ifo-cust:empty::before { content: 'Loading…'; color: var(--text-3); }

/* ---------------------------------------------------------------- in the Conversations area's context pane (step 6)
   panels.js lays it out — beside the thread at 1180 px and over, a sheet over it from 781 px, the pane alone on a phone —
   and draws its header (title, Back on a phone, ×). What is here is the pane's body. */
.pn-b > .ifo { padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }

/* A phone: the context is the pane alone (#/conversations/<id>/info), with Back in its header. */
@media (max-width: 780px) {
  .ifo-back { display: inline-flex !important; margin-left: -10px; }
  .ifo-close { display: none !important; }
  .ifo-head { padding-top: 8px; }
  .ifo-field input { font-size: 16px; } /* no zoom on focus in iOS Safari */
}
