#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); }
/* the open chat: tinted with the accent and a bar down its left edge, so it shows in light and dark */
.chat-list li.on { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.chat-list li.chat-row { position: relative; padding-right: 40px; }
/* the trash icon: hidden until the pointer is over the chat; always shown on the open chat on a touch screen */
.row-trash { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--soft); font: inherit; font-size: 12.5px; cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.chat-list li:hover .row-trash, .row-trash:focus-visible, .row-trash.sure { opacity: 1; }
.row-trash:hover { color: var(--text); background: rgba(127, 127, 127, 0.14); }
.row-trash.sure { color: rgb(200, 60, 60); background: rgba(220, 70, 70, 0.12); font-weight: 600; }
.chat-list li.on .t { cursor: text; }
@media (hover: none) { .chat-list li.on .row-trash { opacity: 1; } }
.rename-box { width: 100%; font: inherit; font-size: 14.5px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--accent); background: var(--panel); color: var(--text); }
.privacy { flex: none; text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.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; }

/* a leader attaching an SOP (Joey 2026-10-13): the paperclip, the attached files, pictures shown back */
.attach { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 2px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); cursor: pointer; }
.attach:hover { color: var(--text); background: rgba(127, 127, 127, 0.14); }
.attached { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.attached:not(:empty) { margin-bottom: 8px; }
.chip { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--soft); }
.chip.bad { border-color: rgba(220, 70, 70, 0.5); color: rgb(200, 60, 60); }
.chat-pic { display: block; max-width: 100%; max-height: 420px; margin: 10px 0; border-radius: 10px; border: 1px solid var(--line); }

/* a divider between the sections of a longer answer, where the five jobs are on (Joey 2026-10-15) */
.chat-rule { border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; }

/* a spun-off portal's Ask Joe (Joey 2026-10-22): COMING SOON, no question box */
.ask-soon { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.ask-soon h2 { font-family: var(--display); font-weight: 700; font-size: 36px; margin-bottom: 10px; }
.ask-soon-word { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; }
