.fb-layout { display: grid; grid-template-columns: minmax(215px, .8fr) minmax(0, 1.8fr); align-items: start; gap: 20px; }
#fb-new { flex: none; white-space: nowrap; }
.fb-layout h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; }
.fb-layout h3 { margin: 0 0 6px; font-size: 16px; }
.fb-layout p { margin: 5px 0; }
.fb-muted { color: var(--quiet); font-size: 13px; }
.fb-list-pane { position: sticky; top: 16px; display: grid; gap: 8px; }
.fb-list-pane h2 { margin-bottom: 0; }
.fb-list { display: grid; max-height: 60dvh; overflow-y: auto; }
.fb-list a { display: grid; gap: 3px; padding: 10px 10px 11px; color: var(--ink); border-radius: 6px; text-decoration: none; overflow-wrap: anywhere; }
.fb-list a + a { border-top: 1px solid var(--line); }
.fb-list a[aria-current=true],.fb-list a:hover { background: var(--inner); }
.fb-list a[aria-current=true] strong { color: var(--green); }
.fb-list small,.fb-messages header { font-size: 12px; color: var(--quiet); }
.fb-detail-head { margin-bottom: 15px; }
.fb-detail-head h2 { margin: 5px 0 8px; }
.fb-body,.fb-thread h2,.fb-messages p { overflow-wrap: anywhere; white-space: pre-wrap; }
.fb-body,.fb-messages p { line-height: 1.7; }
.fb-messages { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0 0 16px; }
.fb-messages li { border-left: 2px solid var(--line); padding-left: 12px; }
.fb-messages li[data-role=agent] { border-left-color: var(--accent); }
.fb-messages header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fb-messages strong { color: var(--ink); font-size: 14px; }
.fb-form { display: grid; gap: 10px; }
.fb-form label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.fb-form textarea,.fb-form input { width: 100%; min-width: 0; font: inherit; font-weight: normal; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: var(--inner); }
.fb-form textarea { resize: vertical; }
.fb-form > button,.fb-actions { justify-self: end; }
.fb-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.fb-draft,.fb-final { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.fb-final { background: var(--inner); border: 1px solid var(--line); padding: 14px; border-radius: 8px; }
#fb-confirm-text { max-height: 40dvh; overflow: auto; background: var(--inner); padding: 12px; border-radius: 7px; }
@media (max-width: 720px) {
  .fb-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .fb-list-pane { position: static; }
  .fb-list { max-height: 30dvh; }
  .fb-form textarea,.fb-form input { font-size: 16px; }
}
