#view-ask { height: 100%; }
/* ask.css  -  the Ask Joe page: chats on the left, the open chat on the right; the list of messages is
   the only part that scrolls, so the question box never moves. Phone rules at the bottom. */
.ask-wrap { height: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 290px 1fr; gap: 20px; padding: 22px 28px; }
.chats { padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.chats .new-chat { width: 100%; }
.chats-label { margin: 18px 6px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.chat-list { list-style: none; overflow-y: auto; min-height: 0; flex: 1; }
.chat-list li { padding: 10px 10px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.chat-list li:hover { background: rgba(255, 255, 255, 0.05); }
.chat-list li.on { background: rgba(255, 255, 255, 0.09); }
.chat-list li .t { font-size: 14.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chat-list li .w { font-size: 12px; color: var(--faint); }
.chat-list li.none { color: var(--faint); cursor: default; }
.convo { display: flex; flex-direction: column; min-height: 0; }
.chats-toggle { display: none; }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 4px 18px; display: flex; flex-direction: column; gap: 14px; }
.ask-empty { margin: auto; text-align: center; max-width: 520px; padding: 30px 10px; }
.ask-empty h2 { font-family: var(--display); font-weight: 700; font-size: 36px; margin-bottom: 8px; }
.ask-empty p { color: var(--soft); font-size: 16.5px; line-height: 1.55; }
.msg { max-width: 760px; }
.msg .body { white-space: pre-wrap; line-height: 1.6; font-size: 16px; }
.msg.you { align-self: flex-end; background: var(--feature-bg); color: var(--feature-ink); padding: 12px 16px; border-radius: 18px 18px 6px 18px; }
.msg.joe { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); padding: 16px 20px; border-radius: 18px 18px 18px 6px; }
.msg.joe .who { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--faint); margin-bottom: 6px; }
.msg.error { border-color: rgba(255, 120, 120, 0.4); }
.typing { color: var(--faint); font-size: 14.5px; }
.tell { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.tell-note { font-size: 13.5px; color: var(--faint); }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 22px; flex: none; }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; padding: 8px 0; max-height: 160px; }
.composer textarea::placeholder { color: var(--faint); }

@media (max-width: 760px) {
  .ask-wrap { grid-template-columns: 1fr; padding: 12px 12px 12px; gap: 10px; position: relative; }
  .chats { display: none; position: absolute; z-index: 5; left: 12px; right: 12px; top: 56px; max-height: 70%; background: var(--panel-solid); }
  .chats.open { display: flex; }
  .chats-toggle { display: inline-flex; align-self: flex-start; margin-bottom: 8px; }
  .msg { max-width: 100%; }
  .msg .body { font-size: 15.5px; }
}

/* a Help Haus SOP named in an answer: a link that opens the SOP page */
.sop-link { display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
