/* Out-of-Home (2026-11-23). Shared pieces — .seg, .pagebar, table.list, .detail, .frow, .pill, .btn, .inp,
   .scrim — come from ui.css / ui-v11.css; this is only what this surface adds. Tokens only. */
.oh-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.oh-wrap { padding: 18px 18px 32px; display: flex; flex-direction: column; gap: 14px; }
.oh-wrap > .pagetabs, .oh-wrap > .pagebar { margin: 0; }
.oh-tools[hidden] { display: none; }
.oh-search { flex: 1 1 280px; min-width: 0; --search-w: 100%; }

.oh-frame { background: var(--frame); border-radius: 10px; padding: 4px; }
.oh-table { width: 100%; table-layout: fixed; background: var(--surface); border-radius: 8px; overflow: hidden; }
.oh-table td, .oh-table th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-table .oh-c-no { width: 48px; }
.oh-table .oh-c-pr { width: 100px; }
.oh-table .oh-c-st { width: 160px; }
.oh-table .oh-c-where { width: 13%; }
.oh-table .oh-c-who { width: 13%; }
.oh-table .oh-c-as { width: 104px; }
.oh-table .oh-c-sla { width: 112px; }
.oh-table .oh-c-act { width: 76px; text-align: right; }
@media (max-width: 1180px) { .oh-table .oh-c-where { display: none; } }
.oh-row { cursor: pointer; }
.oh-row:hover td { background: var(--surface-2); }
.oh-row.on td, .oh-row:focus-visible td { background: var(--accent-tint); }
.oh-row:focus-visible { outline: none; }
.oh-row.done td { color: var(--text-muted); }
.oh-ell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-faint { color: var(--text-faint); font-weight: 400; }
.oh-pill { text-transform: none; letter-spacing: 0; border-radius: 6px; font-weight: 500; }
.oh-sla { font-size: 12.5px; color: var(--s-await); font-weight: 500; }
.oh-sla.late { color: var(--danger); }
.oh-flag { font-size: 11px; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }

.oh-empty { border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); padding: 18px; }
.oh-empty-t { font-weight: 600; margin-bottom: 4px; }
.oh-empty-n { font-size: 13px; color: var(--text-muted); }

/* side sheet */
.oh-sheet { --detail-w: min(1180px, 96vw); }
.oh-sheet .detail-body { position: relative; }
.oh-sheet-body .frow { align-items: flex-start; }
.oh-desc { white-space: pre-wrap; }
.oh-link { word-break: break-all; color: var(--accent); }
.oh-sheet-foot { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.oh-stsel { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }

.oh-chat { margin-top: 16px; }
/* chat — same look as the support portal: their messages left with initials, ours right in the accent colour */
.oh-chat-list { list-style: none; margin: 8px 0 4px; padding: 12px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.oh-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 82%; }
.oh-msg.team { align-self: flex-end; justify-content: flex-end; }
.oh-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.oh-msg-col { min-width: 0; display: flex; flex-direction: column; }
.oh-msg.team .oh-msg-col { align-items: flex-end; }
.oh-msg-h { font-size: 12.5px; font-weight: 600; margin: 0 0 3px; }
.oh-msg-h .oh-faint { font-weight: 400; }
.oh-bubble { padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.oh-msg.them .oh-bubble { border-top-left-radius: 4px; }
.oh-msg.team .oh-bubble { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); border-top-right-radius: 4px; }
.oh-bubble a { color: inherit; text-decoration: underline; }
.oh-msg.them .oh-bubble a, .oh-desc a, .oh-orig-x a { color: var(--accent); }
.oh-msg-t { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.oh-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.oh-chat-none { margin: 8px 0; font-size: 13px; }
.oh-compose { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--sh-xs); }
.oh-compose:focus-within { border-color: color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 0 0 3px var(--ring); }
.oh-compose textarea { display: block; width: 100%; box-sizing: border-box; border: 0; background: transparent; resize: vertical; min-height: 54px;
  padding: 10px 12px 4px; font: inherit; font-size: 13.5px; color: var(--text); outline: none; }
/* pinned under the scrolling sheet body, above the buttons: always in view */
.oh-compose-pin { flex: 0 0 auto; margin: 8px 18px 10px; }
.oh-compose-pin textarea { min-height: 44px; max-height: 160px; resize: none; }
.oh-compose-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 8px 12px; font-size: 12px; }

/* assignee picker, hand-off step, Auto-Close */
.oh-assign { min-width: 180px; }
.oh-panel { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-tint);
  border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.oh-panel-t { font-weight: 600; }
.oh-panel p { margin: 0; font-size: 12.5px; }
.oh-panel-a { display: flex; gap: 8px; flex-wrap: wrap; }
.oh-ac { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.oh-ac-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.oh-ac-edit .inp { width: auto; }
.oh-ac-n { flex-basis: 100%; font-size: 12px; }

/* the original email (over the sheet body) */
.oh-orig { position: absolute; inset: 0; z-index: 5; background: var(--surface); display: flex; flex-direction: column; }
.oh-orig-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.oh-orig-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.oh-orig-f { width: 100%; min-height: 420px; flex: 1 1 auto; border: 1px solid var(--border); border-radius: 8px; background: white; margin-top: 10px; }  /* emails are written for white */
.oh-orig-x { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }

/* board (kanban): the shared .board / .col / .card from ui.css (Prep Board, Ops Board, Live). Board mode fills the page
   and each column scrolls on its own, like those boards. */
.oh-viewseg { flex: 0 0 auto; }
.oh-boardmode .oh-scroll { overflow: hidden; display: flex; flex-direction: column; }
.oh-boardmode .oh-wrap { flex: 1 1 auto; min-height: 0; padding-bottom: 12px; }
.oh-boardmode [data-el="body"] { flex: 1 1 auto; min-height: 0; display: flex; }
.oh-board { padding: 0; }
.oh-board .col { min-width: 230px; }
.oh-board .card.on { border-color: var(--accent); border-left-color: var(--cc); box-shadow: 0 0 0 3px var(--ring); }
.oh-board .card-meta .oh-ell { flex: 1 1 auto; min-width: 0; }
.oh-board .card-meta .oh-sla { font-size: 11px; white-space: nowrap; }
.oh-board .avatar.oh-noone { color: var(--text-faint); }
.oh-card-claim { display: flex; justify-content: flex-end; }
.oh-hist { margin-top: 14px; font-size: 12.5px; }
.oh-hist summary { cursor: pointer; color: var(--text-muted); }
.oh-hist ul { margin: 6px 0 0; padding-left: 16px; }

/* edit form + setup form */
.oh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 8px 0; }
.oh-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oh-f.wide { grid-column: 1 / -1; }
.oh-note { grid-column: 1 / -1; font-size: 13px; }
.oh-addct { flex-direction: row; gap: 8px; }
.oh-addct .inp { flex: 1 1 auto; }
.oh-addct .btn { white-space: nowrap; flex: 0 0 auto; }
.oh-all { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.oh-pickrow { display: flex; gap: 8px; flex-wrap: wrap; }
.oh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.oh-chips:empty { display: none; }
.oh-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 4px 1px 8px; }
.oh-chip button { border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; }
.oh-chip button:hover { color: var(--danger); }

.oh-setup { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
.oh-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--sh-xs); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.oh-card-h h3 { margin: 0; font-size: 15px; }
.oh-card-h p { margin: 2px 0 0; font-size: 13px; }
.oh-days { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.oh-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; max-height: 280px; overflow-y: auto; font-size: 13px; }
.oh-person { display: flex; gap: 6px; align-items: baseline; }
.oh-portal-add { display: flex; gap: 8px; flex-wrap: wrap; }
.oh-portal-add .inp { flex: 1 1 180px; }
.oh-ptable { width: 100%; }
.oh-ptable tr.off td { color: var(--text-faint); }

@media (max-width: 760px) {
  .oh-table .oh-c-where, .oh-table .oh-c-who, .oh-table .oh-c-as { display: none; }
  .oh-form { grid-template-columns: 1fr; }
}
.oh-card > .search-wrap { flex: 0 0 auto; max-width: 360px; }
.oh-hint { font-size: 11.5px; }

/* ticket sheet in two columns: chat left, details right (2026-11-24) */
.oh-split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); }
.oh-split-chat { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.oh-split-chat .oh-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 12px 18px 0; }
.oh-split-chat .oh-chat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-bottom: 0; }
.oh-split-chat .oh-chat-none { flex: 1 1 auto; }
.oh-split .oh-sheet-body { min-height: 0; }
.oh-split .oh-sheet-body .frow { flex-wrap: wrap; }
@media (max-width: 900px) {
  .oh-split { display: flex; flex-direction: column; overflow-y: auto; }
  .oh-split-chat { border-right: 0; border-bottom: 1px solid var(--border); }
  .oh-split-chat .oh-chat-list { max-height: 55vh; }
}

/* required marks, market / center picker, day parts (2026-11-24) */
.oh-req { color: var(--danger); font-weight: 600; }
.oh-reqnote { font-size: 12px; }
.oh-pickrow { align-items: flex-start; }
.oh-pick { position: relative; }
.oh-pick-btn.on { border-color: var(--accent); color: var(--accent); }
.oh-pick-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: min(380px, 86vw); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.oh-pick-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.oh-pick-it { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px;
  font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.oh-pick-it:hover { background: var(--surface-2); }
.oh-pick-it.on { background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.oh-pick-ck { width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid var(--border-strong); border-radius: 4px; display: grid; place-items: center;
  font-size: 11px; line-height: 1; }
.oh-pick-it.on .oh-pick-ck { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.oh-pick-it[hidden], .oh-pick-none[hidden] { display: none; }
.oh-pick-none { font-size: 12.5px; color: var(--text-faint); padding: 8px; }
.oh-pick-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; border-top: 1px solid var(--border); padding-top: 6px; }
.oh-dps { gap: 8px; }
.oh-dp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.oh-dp-days { display: flex; gap: 4px; flex-wrap: wrap; }
.oh-dp-day { position: relative; font-size: 12.5px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 6px; cursor: pointer; background: var(--surface); user-select: none; }
.oh-dp-day input { position: absolute; opacity: 0; pointer-events: none; }
.oh-dp-day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.oh-dp-day:focus-within { box-shadow: 0 0 0 3px var(--ring); }
.oh-dp-t { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.oh-dp-t .inp { width: auto; }
.oh-pick-pop .oh-pick-q { flex: 0 0 auto; height: auto; min-height: 0; }
.oh-f.oh-reqnote { display: block; }

/* final asset links (Program tickets, 2026-11-24) */
.oh-assets { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.oh-assets-edit { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.oh-asset-row { display: flex; gap: 6px; align-items: center; }
.oh-asset-row .inp { flex: 1 1 auto; min-width: 0; }
.oh-asset-a { display: flex; gap: 6px; align-items: center; }

/* 12-hour time picker (hour : minutes AM/PM), SQL 164 round */
.oh-tp { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.oh-tp select.inp { width: auto; min-width: 0; padding-right: 22px; }
.oh-tp-c { color: var(--text-muted); }
