/* EP Ops Room members' chat. Phone first; takes its accent from --ep-brand when the site sets one. */
.eoc { --eoc-accent: var(--ep-brand, #c2410c); --eoc-accent-ink: var(--ep-brand-ink, #fff); --eoc-line: #e6e0d6; --eoc-soft: #f6f2ec; --eoc-ink: #1f1b16; --eoc-muted: #6b645c; --eoc-ai: #2f5d8a;
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--eoc-line); border-radius: 18px; overflow: hidden; color: var(--eoc-ink);
	height: min(78vh, 760px); min-height: 420px; box-sizing: border-box; font-size: 16px; }
.eoc *, .eoc *::before, .eoc *::after { box-sizing: border-box; }
/* Themes style bare buttons, textareas and paragraphs; inside the chat only these rules apply. */
.eoc button { box-shadow: none; text-shadow: none; margin: 0; line-height: 1.2; text-transform: none; letter-spacing: normal; min-height: 0; }
.eoc textarea { margin: 0; box-shadow: none; width: auto; }
.eoc p { margin: 0; }
.eoc.is-single .eoc-head { display: none; }
.eoc-rooms { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
.eoc-rooms[hidden] { display: none; }
.eoc-room { flex: none; font: inherit; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.eoc-room.is-on { background: var(--eoc-ink); border-color: var(--eoc-ink); color: #fff; }
.eoc-badge { background: var(--eoc-accent); color: var(--eoc-accent-ink); border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 600; }
.eoc-head { padding: 12px 16px; border-bottom: 1px solid var(--eoc-line); display: flex; flex-direction: column; gap: 2px; }
.eoc-head strong { font-size: 1.05rem; }
.eoc-head span { color: var(--eoc-muted); font-size: .85rem; }
.eoc-push { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--eoc-line); font-size: .85rem; color: var(--eoc-muted); background: #fff; }
.eoc-push[hidden] { display: none; }
.eoc-push-btn { font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 0; background: var(--eoc-accent); color: var(--eoc-accent-ink); cursor: pointer; }
.eoc-push-btn.is-sub { background: none; color: var(--eoc-muted); text-decoration: underline; padding: 6px 0; }
.eoc-push-btn:disabled { opacity: .55; }
.eoc-stream { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--eoc-soft); overscroll-behavior: contain; }
.eoc p.eoc-empty { color: var(--eoc-muted); text-align: center; margin: auto 0; }
.eoc-event { align-self: center; font-size: .78rem; color: var(--eoc-muted); background: #fff; border: 1px solid var(--eoc-line); border-radius: 999px; padding: 3px 10px; margin: 2px 0; text-align: center; max-width: 92%; }
.eoc-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.eoc-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.eoc-meta { display: flex; gap: 6px; align-items: baseline; font-size: .76rem; color: var(--eoc-muted); margin: 0 6px 3px; }
.eoc-meta strong { color: var(--eoc-ink); font-weight: 600; }
.eoc-ai { background: var(--eoc-ai); color: #fff; border-radius: 4px; padding: 0 5px; font-size: .68rem; letter-spacing: .04em; }
.eoc-bubble { background: #fff; border: 1px solid var(--eoc-line); border-radius: 16px 16px 16px 4px; padding: 9px 13px; line-height: 1.45; overflow-wrap: anywhere; }
.eoc-msg.is-mine .eoc-bubble { background: var(--eoc-accent); border-color: var(--eoc-accent); color: var(--eoc-accent-ink); border-radius: 16px 16px 4px 16px; }
.eoc-msg.is-ai .eoc-bubble { border-left: 3px solid var(--eoc-ai); }
.eoc-msg.is-deleted .eoc-bubble { background: transparent; color: var(--eoc-muted); border-style: dashed; }
.eoc-title { display: block; margin-bottom: 3px; }
.eoc-text { white-space: pre-wrap; }
.eoc-edited { font-size: .75rem; opacity: .75; }
/* 0.6.3: edit in place, and earlier versions for the author and staff */
.eoc button.eoc-edited { font: inherit; font-size: .74rem; color: var(--eoc-muted); background: none; border: 0; padding: 2px 6px; cursor: pointer; text-decoration: underline; opacity: 1; }
.eoc-msg.is-editing { max-width: 100%; width: 100%; align-self: stretch; }
.eoc-editor { width: 100%; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--eoc-accent); border-radius: 14px; padding: 10px; }
.eoc textarea.eoc-edit-text { width: 100%; min-height: 120px; max-height: 420px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.45; color: var(--eoc-ink); background: #fff; border: 1px solid var(--eoc-line); border-radius: 10px; padding: 10px 12px; }
.eoc textarea.eoc-edit-text:focus { outline: 2px solid var(--eoc-accent); outline-offset: 1px; }
.eoc-edit-bar { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.eoc-edit-hint { flex: 1 1 180px; font-size: .76rem; color: var(--eoc-muted); }
.eoc button.eoc-edit-save { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--eoc-accent); color: var(--eoc-accent-ink); cursor: pointer; }
.eoc button.eoc-edit-save:disabled { opacity: .55; }
.eoc-history { width: 100%; margin-top: 6px; border: 1px dashed var(--eoc-line); border-radius: 12px; background: #fff; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.eoc p.eoc-history-when { font-size: .74rem; color: var(--eoc-muted); }
.eoc p.eoc-history-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; color: var(--eoc-ink); }
.eoc p.eoc-history-none { font-size: .8rem; color: var(--eoc-muted); }
/* 0.6.4: what an edit changed, word by word */
.eoc p.eoc-history-key { font-size: .72rem; color: var(--eoc-muted); }
.eoc p.eoc-diff { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.55; color: var(--eoc-ink); }
.eoc .eoc-diff-del { color: #9b1c15; background: #fbeceb; text-decoration: line-through; text-decoration-thickness: 1.5px; border-radius: 3px; }
.eoc .eoc-diff-ins { color: #1f5e3a; background: #e3f3e8; text-decoration: none; border-radius: 3px; box-shadow: inset 0 -2px 0 #9fd3b0; }
.eoc-tools { display: flex; gap: 10px; margin: 3px 6px 0; }
.eoc-tool { font: inherit; font-size: .74rem; color: var(--eoc-muted); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; }
.eoc-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--eoc-line); background: #fff; margin: 0; }
.eoc-compose textarea { flex: 1; min-width: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.4; padding: 10px 14px; border: 1px solid var(--eoc-line); border-radius: 22px; background: var(--eoc-soft); color: var(--eoc-ink); max-height: 160px; }
.eoc-compose textarea:focus { outline: 2px solid var(--eoc-accent); outline-offset: 1px; background: #fff; }
.eoc-compose button { flex: none; font: inherit; font-weight: 600; height: 44px; padding: 0 20px; border-radius: 22px; border: 0; background: var(--eoc-accent); color: var(--eoc-accent-ink); cursor: pointer; }
.eoc-compose button:disabled { opacity: .55; }
.eoc p.eoc-note { margin: 0; padding: 0 18px 12px; font-size: .74rem; color: var(--eoc-muted); background: #fff; }
.eoc p.eoc-flash { margin: 0; padding: 8px 14px; font-size: .85rem; background: #fff4e5; color: #7a4a00; border-top: 1px solid var(--eoc-line); }
.eoc-flash[hidden] { display: none; }
.eoc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eoc-gate { padding: 18px; border: 1px solid #e6e0d6; border-radius: 14px; background: #fff; }
@media (max-width: 600px) {
	.eoc { height: calc(100dvh - 140px); min-height: 360px; border-radius: 14px; }
	.eoc-msg { max-width: 92%; }
	.eoc-note { display: none; }
}

/* 0.10.0: rendered Markdown in message bodies */
.eoc-text.md { white-space: normal; }
.eoc-text.md .md-p, .eoc-text.md .md-h, .eoc-text.md .md-list, .eoc-text.md .md-quote, .eoc-text.md .md-pre { margin: 0 0 .6em !important; }
.eoc-text.md > :last-child { margin-bottom: 0 !important; }
.eoc-text.md .md-list { padding-left: 1.4em !important; }
.eoc-text.md .md-list li { margin: .15em 0 !important; }
.eoc-text.md .md-quote { border-left: 3px solid currentColor; opacity: .85; padding-left: .8em !important; }
.eoc-text.md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(127, 127, 127, .14); padding: .05em .3em; border-radius: 4px; }
.eoc-text.md .md-pre { overflow-x: auto; background: rgba(127, 127, 127, .1); padding: .6em .8em !important; border-radius: 6px; white-space: pre; }
.eoc-text.md .md-pre code { background: none; padding: 0; }
.eoc-text.md a { text-decoration: underline; overflow-wrap: anywhere; }
.eoc-text.md .md-hr { border: 0; border-top: 1px solid rgba(127, 127, 127, .35); margin: .6em 0 !important; }

/* 0.11.0: how much this person hears about the room */
.eoc-notify { display: flex; align-items: center; gap: 6px; padding: 6px 16px; border-bottom: 1px solid var(--eoc-line); color: var(--eoc-muted); font-size: .85rem; }
.eoc-notify select { font: inherit; width: auto; max-width: 100%; color: inherit; padding: 2px 6px; border: 1px solid var(--eoc-line); border-radius: 6px; background: transparent; }

/* 0.14.0: call, search, reply, reactions, typing, voice notes */
.eoc-head-acts { display: inline-flex; gap: 8px; margin-left: auto; align-items: center; }
.eoc-call, .eoc-search-btn { font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; min-height: 34px; }
.eoc-call { background: var(--eoc-accent); color: var(--eoc-accent-ink); border-color: transparent; }
.eoc-search { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--eoc-line); background: #fff; margin: 0; }
.eoc-search[hidden] { display: none; }
.eoc-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 7px 12px; border: 1px solid var(--eoc-line); border-radius: 18px; background: var(--eoc-soft); color: var(--eoc-ink); }
.eoc-results { list-style: none; margin: 0; padding: 0; width: 100%; max-height: 40vh; overflow-y: auto; }
.eoc-results li { margin: 0; padding: 0; }
.eoc-result { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; border-top: 1px solid var(--eoc-line); padding: 8px 2px; cursor: pointer; color: var(--eoc-ink); }
.eoc-result strong { display: block; font-size: .74rem; color: var(--eoc-muted); font-weight: 600; }
.eoc-result span { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.eoc-results-none { font-size: .85rem; color: var(--eoc-muted); padding: 6px 2px; }
.eoc-quote { display: block; width: 100%; text-align: left; font: inherit; font-size: .8rem; margin: 0 0 6px; padding: 4px 8px; border: 0; border-left: 3px solid currentColor; border-radius: 4px; background: rgba(127, 127, 127, .12); color: inherit; opacity: .9; cursor: pointer; }
.eoc-quote strong { display: block; font-size: .74rem; }
.eoc-quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eoc-msg.is-flash .eoc-bubble { box-shadow: 0 0 0 3px var(--eoc-accent); transition: box-shadow .2s; }
.eoc-reacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 6px 0; }
.eoc-reacts[hidden] { display: none; }
.eoc-react { font: inherit; font-size: .82rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; min-height: 28px; }
.eoc-react.is-mine { border-color: var(--eoc-accent); background: var(--eoc-soft); font-weight: 600; }
.eoc-picker { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 6px 0; padding: 4px; border: 1px solid var(--eoc-line); border-radius: 12px; background: #fff; width: max-content; max-width: 100%; }
.eoc-pick { font-size: 1.25rem; line-height: 1; padding: 6px; border: 0; background: none; cursor: pointer; border-radius: 8px; min-width: 40px; min-height: 40px; }
.eoc-pick:hover, .eoc-pick:focus { background: var(--eoc-soft); }
.eoc-replying { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-top: 1px solid var(--eoc-line); background: var(--eoc-soft); font-size: .82rem; color: var(--eoc-ink); }
.eoc-replying[hidden] { display: none; }
.eoc-replying-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--eoc-muted); }
.eoc p.eoc-typing { margin: 0; padding: 4px 16px; font-size: .78rem; color: var(--eoc-muted); font-style: italic; background: #fff; }
.eoc-typing[hidden] { display: none; }
.eoc-voice { display: block; width: 240px; max-width: 100%; height: 40px; }
.eoc-voice-len { display: block; font-size: .72rem; opacity: .8; margin-top: 2px; }
.eoc-compose .eoc-mic { flex: none; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--eoc-soft); color: var(--eoc-ink); border: 1px solid var(--eoc-line); }
.eoc-compose .eoc-mic[hidden] { display: none; }
.eoc-compose .eoc-mic[aria-pressed="true"] { background: #b42318; color: #fff; }
.eoc-rec { display: flex; flex-direction: column; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--eoc-line); background: #fff; font-size: .85rem; }
.eoc-rec[hidden] { display: none; }
.eoc-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #b42318; animation: eoc-pulse 1s infinite; }
@keyframes eoc-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .eoc-rec-dot { animation: none; } }
.eoc-rec-time { font-variant-numeric: tabular-nums; color: var(--eoc-muted); }
.eoc-rec-send { margin-left: auto; font: inherit; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 0; background: var(--eoc-accent); color: var(--eoc-accent-ink); cursor: pointer; }
/* 0.15.3: sound meter, microphone picker, no-sound warning */
#ep-ops-chat.eoc .eoc-rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#ep-ops-chat.eoc .eoc-rec-acts { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
#ep-ops-chat.eoc .eoc-rec-meter { display: inline-block; width: 64px; height: 6px; border-radius: 999px; background: var(--eoc-line); overflow: hidden; flex: none; }
#ep-ops-chat.eoc .eoc-rec-level { display: block; height: 100%; width: 0; background: #2e7d4f; transition: width .1s linear; }
@media (prefers-reduced-motion: reduce) { #ep-ops-chat.eoc .eoc-rec-level { transition: none; } }
#ep-ops-chat.eoc .eoc-rec-mic { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--eoc-muted); }
#ep-ops-chat.eoc .eoc-rec-mic[hidden] { display: none; }
#ep-ops-chat.eoc .eoc-rec-mic-select { font: inherit; font-size: .82rem; max-width: 170px; padding: 3px 6px; border: 1px solid var(--eoc-line); border-radius: 8px; background: #fff; color: var(--eoc-ink); }
#ep-ops-chat.eoc .eoc-rec-warn { margin: 0; padding: 6px 10px; border-radius: 10px; background: #fdf0e6; color: #7a3a10; font-size: .84rem; line-height: 1.4; }
#ep-ops-chat.eoc .eoc-rec-warn[hidden] { display: none; }
/* One room: keep the heading row for Call and Search, drop only the name (the page names the room). */
.eoc.is-single .eoc-head { display: flex; padding: 6px 12px; }
.eoc.is-single .eoc-head > strong, .eoc.is-single .eoc-head > span:not(.eoc-head-acts) { display: none; }
.eoc-head > .eoc-head-acts { align-self: flex-end; color: inherit; font-size: inherit; }

/* 0.15.0: status */
.eoc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #b8b2a8; }
.eoc-dot-available, .eoc-dot-active { background: #2e7d4f; }
.eoc-dot-busy { background: #b42318; }
.eoc-dot-away { background: #c98a12; }
.eoc-status-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; min-height: 34px; }
.eoc p.eoc-people { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 6px 16px; border-bottom: 1px solid var(--eoc-line); background: #fff; font-size: .85rem; color: var(--eoc-ink); }
.eoc-people[hidden], .eoc-status[hidden] { display: none; }
.eoc-person { display: inline-flex; align-items: flex-start; gap: 6px; overflow-wrap: anywhere; }
.eoc-person .eoc-dot { margin-top: .35em; }
.eoc-status { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--eoc-line); background: var(--eoc-soft); font-size: .88rem; }
.eoc-status fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.eoc-status legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.eoc-status-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.eoc-status-field { display: flex; flex-direction: column; gap: 3px; }
.eoc-status-field input, .eoc-status-field select { font: inherit; font-size: 16px; padding: 6px 10px; border: 1px solid var(--eoc-line); border-radius: 8px; background: #fff; color: var(--eoc-ink); max-width: 100%; }
/* 0.15.0: photos */
.eoc-photo-link { display: block; margin: 2px 0; }
.eoc-photo { display: block; max-width: 100%; object-fit: contain; border-radius: 10px; background: var(--eoc-soft); }
.eoc .eoc-compose input[type="file"], .eoc #eoc-photo-input { display: none; }
.eoc-compose .eoc-photo-btn[hidden] { display: none; }
/* 0.15.1: full window and the height handle */
.eoc { position: relative; }
.eoc-full-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; }
.eoc-full-btn:hover, .eoc-search-btn:hover { background: var(--eoc-soft); }
.eoc.eoc-full { position: fixed; inset: 0; z-index: 2147483000; height: auto !important; min-height: 0; max-height: none; margin: 0; border: 0; border-radius: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
html.eoc-full-open, html.eoc-full-open body { overflow: hidden; }
.eoc-grip { flex: none; height: 14px; display: flex; align-items: center; justify-content: center; cursor: ns-resize; background: #fff; touch-action: none; border-top: 1px solid var(--eoc-line); }
.eoc-grip-bar { width: 44px; height: 4px; border-radius: 4px; background: var(--eoc-line); }
.eoc-grip:hover .eoc-grip-bar, .eoc-grip:focus-visible .eoc-grip-bar, .eoc.eoc-resizing .eoc-grip-bar { background: var(--eoc-muted); }
.eoc-grip:focus-visible { outline: 2px solid var(--eoc-accent); outline-offset: -2px; }
.eoc.eoc-resizing { user-select: none; }
.eoc.eoc-full .eoc-grip { display: none; }
@media (max-width: 600px) { .eoc-grip { display: none; } .eoc:not(.eoc-full) { height: calc(100dvh - 140px) !important; } }
/* 0.15.1: skin tones in the reaction picker */
.eoc-picker { flex-wrap: wrap; }
.eoc-tones { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; padding-top: 4px; margin-top: 2px; border-top: 1px solid var(--eoc-line); }
.eoc-tone { font-size: 1rem; line-height: 1; padding: 5px; min-width: 34px; min-height: 34px; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 8px; }
.eoc-tone[aria-checked="true"] { border-color: var(--eoc-accent); background: var(--eoc-soft); }
/* 0.15.1: Safari's Add to Dock tip */
.eoc-dock-btn { font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; min-height: 34px; }
.eoc-dock-tip { padding: 10px 16px; border-bottom: 1px solid var(--eoc-line); background: #fff; font-size: .9rem; }
.eoc-dock-tip[hidden] { display: none; }
.eoc-dock-tip p { margin: 0 0 6px; }
.eoc-dock-bar { display: flex; gap: 8px; margin-top: 4px; }
.eoc-dock-bar button { font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; }
.eoc-dock-bar .eoc-dock-done { background: var(--eoc-accent); color: var(--eoc-accent-ink); border-color: var(--eoc-accent); }
/* 0.15.2: a link in your own message takes the bubble's text colour. Without this it took the site's link colour,
   red on the orange bubble, and could hardly be read. The id keeps a theme's own link rule from winning. */
#ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a, #ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a:visited { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
#ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a:hover, #ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a:focus-visible { text-decoration-thickness: 2px; }
/* 0.15.3: preview of a formatted message, above the message box */
.eoc-preview { flex: none; border-top: 1px solid var(--eoc-line); background: var(--eoc-soft); padding: 6px 12px 10px; }
.eoc-preview[hidden] { display: none; }
.eoc-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--eoc-muted); }
.eoc-preview-toggle { font: inherit; font-size: .78rem; font-weight: 600; background: none; border: 0; padding: 4px 6px; color: var(--eoc-ink); text-decoration: underline; cursor: pointer; min-height: 0; }
.eoc .eoc-preview .eoc-preview-msg { display: flex; flex-direction: column; align-items: flex-end; max-width: 100%; margin-top: 6px; max-height: 32vh; overflow-y: auto; }
.eoc .eoc-preview .eoc-preview-msg .eoc-bubble { max-width: 85%; }
.eoc-preview.is-collapsed { padding-bottom: 6px; }
.eoc-preview.is-collapsed .eoc-preview-msg { display: none; }

/* 0.15.4: the chat has been updated, reload */
#ep-ops-chat.eoc .eoc-update { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--eoc-line); background: #fdf0e6; color: #7a3a10; font-size: .86rem; }
#ep-ops-chat.eoc .eoc-update-text { flex: 1 1 200px; }
#ep-ops-chat.eoc .eoc-update-btn { font: inherit; font-weight: 600; padding: 5px 14px; border-radius: 999px; border: 0; background: var(--eoc-accent); color: var(--eoc-accent-ink); cursor: pointer; }

/* 0.15.5: videos */
#ep-ops-chat.eoc .eoc-video { display: block; width: 280px; max-width: 100%; max-height: 360px; margin: 2px 0; border-radius: 10px; background: #000; }
#ep-ops-chat.eoc .eoc-video-dl { display: inline-block; margin-top: 4px; font-size: .78rem; color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* 0.15.6: the Calls switch (admins only, rooms with a call link) */
#ep-ops-chat.eoc .eoc-calls-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--eoc-line); background: #fff; color: var(--eoc-ink); cursor: pointer; min-height: 34px; }
#ep-ops-chat.eoc .eoc-calls-dot { width: 10px; height: 10px; border-radius: 50%; background: #b8b2a8; flex: none; }
#ep-ops-chat.eoc .eoc-calls-btn.is-on .eoc-calls-dot { background: #2e7d4f; }
#ep-ops-chat.eoc .eoc-calls-btn:disabled { opacity: .6; cursor: default; }

/* 0.15.7: the phone keyboard. While you type on a phone, the chat fills exactly the part of the page you can see (the script
   sets these from the visual viewport), with room at the bottom for iOS's floating up/down/done bar, so the message box is
   never under the keyboard or that bar. The rows you do not need while typing step aside. */
#ep-ops-chat.eoc.eoc-kb { position: fixed; top: var(--eoc-kb-top, 0px); left: 0; right: 0; bottom: auto; width: auto; height: var(--eoc-kb-h, 100%) !important; min-height: 0; max-height: none; margin: 0; border: 0; border-radius: 0; z-index: 2147483000; padding: env(safe-area-inset-top, 0px) 0 var(--eoc-kb-gap, 0px); }
#ep-ops-chat.eoc.eoc-kb .eoc-rooms, #ep-ops-chat.eoc.eoc-kb .eoc-head, #ep-ops-chat.eoc.eoc-kb .eoc-push, #ep-ops-chat.eoc.eoc-kb .eoc-notify,
#ep-ops-chat.eoc.eoc-kb .eoc-people, #ep-ops-chat.eoc.eoc-kb .eoc-dock-tip, #ep-ops-chat.eoc.eoc-kb .eoc-note, #ep-ops-chat.eoc.eoc-kb .eoc-grip { display: none; }
#ep-ops-chat.eoc.eoc-kb .eoc-preview .eoc-preview-msg { max-height: 18vh; }
.eoc-kb-hold { display: block; visibility: hidden; }

/* 0.15.7: a photo shows "Loading photo…" until it is ready to draw, then the photo itself. A photo with no caption and no
   quote sits on its own, not on your coloured bubble, so a photo that has not appeared yet can never look like a red box. */
#ep-ops-chat.eoc .eoc-photo-wait { display: flex; align-items: center; justify-content: center; max-width: 100%; min-width: 120px; min-height: 90px; padding: 10px; border-radius: 10px; background: #fff; color: var(--eoc-muted); border: 1px solid var(--eoc-line); font-size: .82rem; line-height: 1.35; text-align: center; }
#ep-ops-chat.eoc .eoc-photo-wait.is-failed { color: var(--eoc-ink); text-decoration: underline; }
#ep-ops-chat.eoc .eoc-bubble.is-photo-only, #ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble.is-photo-only { background: transparent; border: 0; padding: 0; color: var(--eoc-ink); }
/* 0.15.8: a photo sent as a reply shows the quote as a small line above it, the photo's width, on no coloured slab */
#ep-ops-chat.eoc .eoc-bubble.is-photo-only .eoc-quote { background: #fff; border: 1px solid var(--eoc-line); border-left: 3px solid var(--eoc-accent); color: var(--eoc-ink); opacity: 1; }
#ep-ops-chat.eoc .eoc-bubble.is-photo-only .eoc-photo, #ep-ops-chat.eoc .eoc-bubble.is-photo-only .eoc-photo-wait { border-radius: 14px; }
/* 0.15.8: a reply's quoted line ends in "…" inside its bubble instead of stretching the bubble past the edge of the screen */
#ep-ops-chat.eoc .eoc-bubble { max-width: 100%; min-width: 0; }
#ep-ops-chat.eoc .eoc-quote { min-width: 0; max-width: 100%; }

/* 0.15.9: a CSV file as a card: name, rows and size, the first rows as plain text, a formula note, Download */
#ep-ops-chat.eoc .eoc-file { display: flex; flex-direction: column; gap: 6px; max-width: 100%; min-width: 220px; padding: 10px 12px; border: 1px solid var(--eoc-line); border-radius: 12px; background: #fff; color: var(--eoc-ink); text-align: left; }
#ep-ops-chat.eoc .eoc-file-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
#ep-ops-chat.eoc .eoc-file-icon { flex: none; font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; background: #2e7d4f; color: #fff; }
#ep-ops-chat.eoc .eoc-file-name { font-size: .92rem; overflow-wrap: anywhere; }
#ep-ops-chat.eoc p.eoc-file-meta, #ep-ops-chat.eoc p.eoc-file-more { margin: 0; font-size: .76rem; color: var(--eoc-muted); }
#ep-ops-chat.eoc .eoc-file-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--eoc-line); border-radius: 8px; }
#ep-ops-chat.eoc .eoc-file-table { border-collapse: collapse; font-size: .74rem; line-height: 1.35; margin: 0; width: auto; }
#ep-ops-chat.eoc .eoc-file-table th, #ep-ops-chat.eoc .eoc-file-table td { padding: 4px 8px; border-bottom: 1px solid var(--eoc-line); text-align: left; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--eoc-ink); background: #fff; }
#ep-ops-chat.eoc .eoc-file-table th { font-weight: 600; background: var(--eoc-soft); }
#ep-ops-chat.eoc .eoc-file-table tr:last-child td { border-bottom: 0; }
#ep-ops-chat.eoc p.eoc-file-warn { margin: 0; padding: 6px 9px; border-radius: 8px; background: #fdf0e6; color: #7a3a10; font-size: .78rem; line-height: 1.4; }
#ep-ops-chat.eoc a.eoc-file-dl { align-self: flex-start; font-size: .84rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--eoc-accent); color: var(--eoc-accent-ink); text-decoration: none; }
#ep-ops-chat.eoc a.eoc-file-dl:hover, #ep-ops-chat.eoc a.eoc-file-dl:focus-visible { text-decoration: underline; }
#ep-ops-chat.eoc .eoc-bubble.is-file-only { width: 100%; }
#ep-ops-chat.eoc .eoc-bubble a.eoc-file-dl, #ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a.eoc-file-dl, #ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a.eoc-file-dl:visited { color: var(--eoc-accent-ink); text-decoration: none; }
#ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a.eoc-file-dl:hover, #ep-ops-chat.eoc .eoc-msg.is-mine .eoc-bubble a.eoc-file-dl:focus-visible { text-decoration: underline; }

/* 0.16.0 Copy: icon and word, a thumb-sized target on a phone (the other tools stay as they were). The icon is drawn in
   currentColor, so it always matches the word beside it, including under Brave's Night Mode or Dark Reader. */
.eoc-tools { align-items: center; }
#ep-ops-chat.eoc button.eoc-tool.ep-ops-copy { display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; margin: -6px -4px; min-height: 30px; text-decoration: none; }
#ep-ops-chat.eoc button.eoc-tool.ep-ops-copy span { text-decoration: underline; }
#ep-ops-chat.eoc button.eoc-tool.ep-ops-copy .ep-ops-copy-icon { flex: none; display: block; }
#ep-ops-chat.eoc button.eoc-tool.ep-ops-copy.is-copied { color: var(--eoc-ink); }
#ep-ops-chat.eoc button.eoc-tool.ep-ops-copy.is-copied span { text-decoration: none; font-weight: 600; }
#ep-ops-chat.eoc button.eoc-tool:focus-visible { outline: 2px solid var(--eoc-accent); outline-offset: 2px; border-radius: 4px; }

.eoc { --ept-line: var(--eoc-line); --ept-soft: var(--eoc-soft); --ept-ink: var(--eoc-ink); --ept-muted: var(--eoc-muted); --ept-good: #2f7d4f; --ept-bad: #b42318; --ept-bad-soft: #fde8e6; --ept-bg: #fff; }
.eoc-todos { padding: 0 12px; }
.eoc-todo-msg { margin: 8px 12px; padding: 10px 12px; border: 1px solid var(--eoc-line); border-radius: 12px; background: #fff; }

/* 0.18.0: to-dos (js/ep-ops-room-todos.js), the same rules on the admin screen and the chat page. */
.ept { border: 1px solid var(--ept-line); border-radius: 12px; background: var(--ept-bg); margin: 0 0 12px; }
.ept-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.ept-toggle { flex: 1; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--ept-ink); cursor: pointer; text-align: left; min-height: 36px; }
.ept-toggle::before { content: "▸"; color: var(--ept-muted); transition: transform .15s; }
.ept-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.ept-label { font-weight: 600; }
.ept-count { color: var(--ept-muted); font-size: .9em; }
.ept-bar { flex: 0 0 90px; height: 6px; border-radius: 3px; background: var(--ept-soft); overflow: hidden; }
.ept-bar i { display: block; height: 100%; background: var(--ept-good); }
.ept-btn { font: inherit; font-size: .88em; border: 1px solid var(--ept-line); background: #fff; color: var(--ept-ink); border-radius: 8px; padding: 5px 10px; cursor: pointer; min-height: 32px; }
.ept-btn:hover { border-color: var(--ept-ink); }
.ept-primary { background: var(--ept-ink); color: #fff; border-color: var(--ept-ink); }
.ept-del { color: var(--ept-bad); }
.ept-form { display: grid; gap: 8px; padding: 0 10px 10px; }
.ept-in { font: inherit; border: 1px solid var(--ept-line); border-radius: 8px; padding: 7px 9px; background: #fff; color: var(--ept-ink); min-width: 0; }
.ept-form-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.ept-form-acts { display: flex; gap: 8px; }
.ept-list { padding: 0 10px 10px; }
.ept-group { margin: 10px 0 4px; font-size: .78em; letter-spacing: .06em; text-transform: uppercase; color: var(--ept-muted); }
.ept-items { list-style: none; margin: 0; padding: 0; }
.ept-item, .ept-card { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--ept-line); }
.ept-items .ept-item:first-child { border-top: 0; }
.ept-card { border: 0; padding: 0; }
.ept-tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--ept-muted); background: #fff; color: #fff; font-weight: 700; line-height: 20px; text-align: center; cursor: pointer; padding: 0; margin-top: 1px; }
.ept-tick:hover { border-color: var(--ept-good); }
.ept-tick.is-done { background: var(--ept-good); border-color: var(--ept-good); }
.ept-body { flex: 1; min-width: 0; }
.ept-kicker { margin: 0 0 2px; font-size: .75em; letter-spacing: .06em; text-transform: uppercase; color: var(--ept-muted); }
.ept-title { margin: 0; font-weight: 600; color: var(--ept-ink); overflow-wrap: anywhere; }
.ept-done .ept-title { text-decoration: line-through; color: var(--ept-muted); font-weight: 500; }
.ept-details { margin: 2px 0 0; color: var(--ept-muted); font-size: .92em; white-space: pre-wrap; overflow-wrap: anywhere; }
.ept-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.ept-pill { font-size: .8em; border-radius: 999px; padding: 2px 9px; background: var(--ept-soft); color: var(--ept-ink); }
.ept-for.is-you { background: var(--ept-ink); color: #fff; }
.ept-anyone { color: var(--ept-muted); }
.ept-due.is-today { background: #fff3d6; color: #7a4b00; }
.ept-due.is-late { background: var(--ept-bad-soft); color: var(--ept-bad); font-weight: 600; }
.ept-wait { background: #eef2ff; color: #3730a3; }
.ept-brain { background: #f0f7f3; color: #23613f; }
.ept-done-by, .ept-added { margin: 4px 0 0; font-size: .82em; color: var(--ept-muted); }
.ept-acts { display: flex; gap: 6px; margin-top: 6px; }
.ept-empty { margin: 6px 0; color: var(--ept-muted); font-size: .92em; }
.ept-done-list { margin-top: 8px; }
.ept-done-list summary { cursor: pointer; color: var(--ept-muted); font-size: .9em; padding: 4px 0; }
@media (max-width: 600px) { .ept-form-row { grid-template-columns: 1fr; } .ept-bar { flex-basis: 50px; } }
.ept-form[hidden], .ept-list[hidden], .ept-bar[hidden] { display: none; }
.eoc .ept-list { max-height: 38vh; overflow-y: auto; }
