/* Studio → Inbox (site/inbox.js): a list of posts or conversations beside the open one. */
#inbox .btn.sm { padding: 0.4rem 0.95rem; font-size: 0.86rem; }
.ibx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.ibx-bar .out-seg { margin: 0; padding: 0; border: 0; }
.ibx-waves { display: inline-flex; gap: 0.4rem; align-items: center; cursor: pointer; }
.ibx-waves input { accent-color: var(--accent); margin: 0; }
.ibx-bar [data-refresh] { margin-inline-start: auto; }
.ibx-note { color: var(--warn); margin: 0 0 0.8rem; }
.ibx { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ibx-list { background: var(--card); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; max-height: calc(100vh - 14rem); overflow-y: auto; }
.ibx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; width: 100%; padding: 0.7rem 0.9rem; background: none; border: 0; border-bottom: 1px solid var(--hair); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.ibx-row:hover { background: var(--card-hi); }
.ibx-row.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ibx-main { display: flex; flex-direction: column; min-width: 0; }
.ibx-main b, .ibx-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-main b { font-weight: 500; }
.ibx-when { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; white-space: nowrap; }
.ibx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ibx-av, .ibx-thumb { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--card-hi); display: grid; place-items: center; font-weight: 600; color: var(--muted); flex: none; }
.ibx-thumb { border-radius: 10px; width: 44px; height: 56px; overflow: hidden; }
.ibx-av img, .ibx-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ibx-av .chip, .ibx-thumb .chip { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--card); }
.ibx-thumb .chip { right: 2px; bottom: 2px; }
.ibx-av .chip .ic, .ibx-thumb .chip .ic { width: 11px; height: 11px; }
.ibx-hidden { padding: 0.8rem 0.9rem; margin: 0; }
.ibx-more { display: block; margin: 0.6rem auto; }
.ibx-empty { padding: 1.2rem; margin: 0; }
.ibx-pane { min-height: 20rem; display: flex; flex-direction: column; gap: 0.8rem; }
.ibx-head { display: flex; gap: 0.8rem; align-items: center; padding-bottom: 0.8rem; border-bottom: 1px solid var(--hair); }
.ibx-head > div { flex: 1; min-width: 0; }
.ibx-postpic { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.ch-inline { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.ibx-thread { display: flex; flex-direction: column; gap: 0.5rem; max-height: 50vh; overflow-y: auto; padding: 0.2rem; }
.ibx-msg { max-width: 75%; padding: 0.5rem 0.8rem; border-radius: 16px; background: var(--card-hi); align-self: flex-start; }
.ibx-msg.outgoing { align-self: flex-end; background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.ibx-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ibx-msg img { display: block; max-width: 140px; max-height: 140px; border-radius: 10px; }
.ibx-at { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.ibx-tip { margin: 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--card-hi); color: var(--muted); }
.ibx-window { margin: 0; color: var(--muted); }
.ibx-window.closed { color: var(--warn); }
.ibx-cmts, .ibx-cmts ul { list-style: none; margin: 0; padding: 0; }
.ibx-cmts ul { margin-top: 0.5rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--hair); }
.ibx-cmt { padding: 0.6rem 0; }
.ibx-cmts > .ibx-cmt + .ibx-cmt { border-top: 1px solid var(--hair); }
.ibx-cmt.mine > p { color: var(--accent); }
.ibx-cmt-head { display: flex; gap: 0.6rem; align-items: baseline; }
.ibx-cmt-head a { margin-inline-start: auto; }
.ibx-cmt p { margin: 0.2rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ibx-compose { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }
.ibx-compose textarea { width: 100%; resize: vertical; min-height: 4.5rem; padding: 0.6rem 0.8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.ibx-compose textarea:disabled { opacity: 0.5; }
.ibx-actions { display: flex; gap: 0.6rem; align-items: center; }
.ibx-actions [type=submit] { margin-inline-start: auto; }
.ibx-ai { margin: 0; }
.ibx-ai.warn { color: var(--warn); }
#sheet-text { white-space: pre-line; }
@media (max-width: 860px) {
  .ibx { grid-template-columns: 1fr; }
  .ibx-list { max-height: 45vh; }
  .ibx-msg { max-width: 88%; }
}
