/* Settings → Virtual jock → Phone (1.86 N149; read-only since 1.87 N150): the KSCH line.
   Built from the Settings page's own rows and panels; these are only the parts
   that page has no class for — the phone bubbles, the "why" list, the threads.
   Sizes and colours in one place, the way --lb-* are for the Librarian. */
.ph {
  --ph-bubble-in: var(--ink-3);
  --ph-bubble-out: rgba(88, 195, 154, .14);
  --ph-bubble-out-line: rgba(88, 195, 154, .35);
  --ph-bubble-max: 520px;
  --ph-gap: 8px;
}
/* .btn sets display, which beats the browser's own [hidden]; 1.86's try box showed
   Cancel and "Start a new conversation" all the time because of it (fixed 1.87). */
.ph [hidden] { display: none !important; }
.ph-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.ph-status-t { font-size: 15px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.ph-refused { color: #ff8b84; line-height: 1.4; }
.ph-refused:empty { display: none; }
.ph-say { color: var(--text-2); line-height: 1.4; min-height: 1.4em; }
.ph-say.warn { color: var(--dial); }
.ph-where { gap: 8px 12px; align-items: center; }
.ph-where .small { flex: 1 1 260px; line-height: 1.45; }
.ph-dash { white-space: nowrap; text-decoration: none; }
.ph-quote { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; color: var(--text-2); }
.ph-job { max-height: 14em; overflow: auto; }
.ph-stale { color: var(--dial); line-height: 1.4; padding: 0 4px; }
.ph-sum-lead { line-height: 1.45; padding-bottom: 6px; }
.ph-sum-act { gap: 8px; padding-top: 10px; }
.ph-preview { display: grid; gap: var(--ph-gap); padding: 14px 0 0; border-top: 1px solid var(--line); }
.ph-bubble { max-width: min(var(--ph-bubble-max), 88%); padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.ph-bubble.in { justify-self: start; align-self: flex-start; background: var(--ph-bubble-in); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ph-bubble.out { justify-self: end; align-self: flex-end; background: var(--ph-bubble-out); border: 1px solid var(--ph-bubble-out-line); border-bottom-right-radius: 4px; }
.ph-reply { gap: 4px; align-items: flex-end; }
.ph-try-out { gap: var(--ph-gap); }
.ph-try-out:empty { display: none; }
.ph-try-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ph-try-in { flex: 1 1 220px; min-width: 0; }
.ph-typing { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 16px; background: var(--ph-bubble-out); border: 1px solid var(--ph-bubble-out-line); align-self: flex-end; }
.ph-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); opacity: .5; animation: ph-dot 1.2s ease-in-out infinite; }
.ph-typing i:nth-child(2) { animation-delay: .2s; }
.ph-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ph-dot { 0%, 100% { opacity: .3; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .ph-typing i { animation: none; opacity: .7; } }
.ph-why { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 4px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink); font-size: 12.5px; max-width: var(--ph-bubble-max); }
.ph-why dt { color: var(--muted); }
.ph-why dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; line-height: 1.4; }
.ph-why-wrap { overflow: hidden; }
.ph-why-btn { align-self: flex-end; }
.ph-recent { gap: 6px; }
.ph-thread { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink); }
.ph-thread-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; background: transparent; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; min-height: 44px; }
.ph-thread-h:hover { background: var(--ink-3); }
.ph-who { font-family: var(--font-mono); font-size: 12.5px; }
.ph-last { flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ph-thread-b { gap: var(--ph-gap); padding: 4px 12px 12px; display: flex; flex-direction: column; }
.ph-thread-b[hidden] { display: none; }
.ph-note { align-self: center; text-align: center; font-style: italic; }
.ph-word { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.ph-word:first-child { border-top: 0; }
.ph-word .lbl { font-weight: 600; font-size: 13px; }
.ph-word .pill { justify-self: start; }
.ph-off-t { flex: 1 1 240px; line-height: 1.45; min-width: 0; }
.ph-adv { margin-top: 2px; }
@media (max-width: 560px) {
  .ph-bubble { max-width: 92%; }
  .ph-why { grid-template-columns: 1fr; }
  .ph-why dt { margin-top: 4px; }
  .ph-try-row .btn { flex: 1 1 auto; }
}
