/* Atendimento Elozi: carregar após frontend.css, chat-layout.css, media.css e replies.css. */
.app-shell[data-view="inbox"] .conversation-origin { display:flex; align-items:center; gap:3px; min-width:0; margin:3px 0; color:var(--attendance-green); font-size:10px; line-height:1.35; }
.app-shell[data-view="inbox"] .conversation-origin .icon { width:11px; height:11px; flex-shrink:0; }
.app-shell[data-view="inbox"] .conversation-origin strong,.app-shell[data-view="inbox"] .conversation-origin span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-shell[data-view="inbox"] .conversation-origin strong { max-width:45%; font-weight:650; }
.app-shell[data-view="inbox"] .composer-origin { display:flex; align-items:center; gap:4px; overflow:hidden; font-size:10px; line-height:1.4; margin:4px 0 2px; color:var(--attendance-green); }
.app-shell[data-view="inbox"] .composer-origin .icon { width:12px; height:12px; flex-shrink:0; }
.app-shell[data-view="inbox"] .composer-origin strong,.app-shell[data-view="inbox"] .composer-origin span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-shell[data-view="inbox"] .chat-origin { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-shell[data-view="inbox"] .consolidated-list-status { flex-shrink:0; color:var(--attendance-muted); font-size:10px; padding:0 10px; line-height:1.5; }
.app-shell[data-view="inbox"] .consolidated-list-status:empty { display:none; }
.app-shell[data-view="inbox"] .inbox-pagination { display:flex; gap:2px; }
.app-shell[data-view="inbox"] .inbox-pagination .icon-button { width:28px; min-width:28px; height:28px; min-height:28px; padding:2px; font-size:19px; }
.app-shell[data-view="inbox"] .topbar-inbox-scope { color:var(--attendance-muted); font-size:11px; }
@media(max-width:760px) { .app-shell[data-view="inbox"] .inbox-pagination .icon-button { width:44px; min-width:44px; height:44px; min-height:44px; } .app-shell[data-view="inbox"] .topbar-inbox-scope { display:none; } }
.app-shell[data-view="inbox"] {
  --attendance-ink: #193149;
  --attendance-muted: #60778b;
  --attendance-line: #dce6ec;
  --attendance-surface: #fff;
  --attendance-canvas: #f4f7f9;
  --attendance-mint: #e8f5ee;
  --attendance-green: #27644b;
  --attendance-list-width: 238px;
  --attendance-context-width: 240px;
  --chat-reading-width: 1100px;
}
.app-shell[data-view="inbox"] :is(#message-form,#internal-note-form)[hidden] { display: none; }
.app-shell[data-view="inbox"] .attendance-heading-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.app-shell[data-view="inbox"] .attendance-list-footer { display:flex; align-items:center; justify-content:space-between; padding:7px 10px; border-top:1px solid var(--attendance-line); color:var(--attendance-muted); font-size:10px; flex-shrink:0; }
.app-shell[data-view="inbox"] .attendance-list-footer .text-button { font-size:10px; }
.app-shell[data-view="inbox"] .inbox-tabs button { display:flex; justify-content:center; align-items:center; gap:4px; }
.app-shell[data-view="inbox"] .inbox-tabs button span { font-size:9px; font-variant-numeric:tabular-nums; }
.app-shell[data-view="inbox"] .attendance-mobile-label { display:none; }
.app-shell[data-view="inbox"] .conversation-department { display:block; margin-top:4px; color:var(--attendance-muted); font-size:10px; }
.app-shell[data-view="inbox"] .attendance-filters { position:relative; }
.app-shell[data-view="inbox"] .attendance-filters > label { padding:5px 8px; }
.app-shell[data-view="inbox"] .context-section fieldset { border:0; padding:0; margin:0; min-width:0; }
.app-shell[data-view="inbox"] .chat-header .chat-primary-actions { order:5; flex:0 0 100%; justify-content:flex-start; flex-wrap:nowrap; padding-top:0; }
.app-shell[data-view="inbox"] .chat-header .chat-layout-actions { min-width:0; width:auto; flex-shrink:0; }
.app-shell[data-view="inbox"] .chat-primary-actions .icon-button { width:30px; min-width:30px; height:30px; min-height:30px; padding:5px; border:1px solid var(--attendance-line); border-radius:6px; }
.app-shell[data-view="inbox"] .chat-expand-toggle .chat-layout-button-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.app-shell[data-view="inbox"] .message-forward-button { position:absolute; left:-35px; top:33px; min-width:28px; min-height:28px; width:28px; height:28px; padding:5px; opacity:0; color:var(--attendance-muted); background:#fff; border:1px solid var(--attendance-line); border-radius:6px; }
.app-shell[data-view="inbox"] .message:is(:hover,:focus-within) .message-forward-button { opacity:1; }
.app-shell[data-view="inbox"] .message.incoming .message-forward-button { left:auto; right:-35px; }
@media (max-width:760px), (any-hover:none), (pointer:coarse) {
 .app-shell[data-view="inbox"] .message .message-forward-button { position:static; display:inline-flex; min-width:44px; min-height:44px; margin-top:4px; opacity:1; }
 .app-shell[data-view="inbox"] .attendance-list-footer .text-button { min-height:44px; }
}
.app-shell[data-view="inbox"] .main-shell { height: 100dvh; min-height: 0; overflow: hidden; }
.app-shell[data-view="inbox"] .topbar { min-height: 54px; padding: 7px 16px; gap: 12px; }
.app-shell[data-view="inbox"] .topbar-controls { gap: 8px; }
.app-shell[data-view="inbox"] .topbar-controls select { min-height: 36px; }
.app-shell[data-view="inbox"] .sandbox-banner { min-height: 30px; padding: 5px 16px; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .inbox-content { min-height: 0; padding: 12px; gap: 0; }
.app-shell[data-view="inbox"] .inbox-content > .page-heading,
.app-shell[data-view="inbox"] .attendance-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; min-height: 36px; margin: 0 0 10px; }
.app-shell[data-view="inbox"] .attendance-header > div { min-width: 0; }
.app-shell[data-view="inbox"] .attendance-header h1,
.app-shell[data-view="inbox"] .inbox-content > .page-heading h1 { margin: 0; color: var(--attendance-ink); font-size: 20px; letter-spacing: -.6px; line-height: 1.25; }
.app-shell[data-view="inbox"] .attendance-header p,
.app-shell[data-view="inbox"] .attendance-meta { display: block; margin: 3px 0 0; color: var(--attendance-muted); font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .attendance-header .heading-actions { margin: 0; gap: 7px; }
.app-shell[data-view="inbox"] .attendance-header .button,
.app-shell[data-view="inbox"] .inbox-content > .page-heading .button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.app-shell[data-view="inbox"] .attendance-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.app-shell[data-view="inbox"] .attendance-stats > :is(span, button) { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 8px; border: 1px solid var(--attendance-line); border-radius: 6px; background: var(--attendance-surface); color: #526d81; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.app-shell[data-view="inbox"] .attendance-stats strong { color: var(--attendance-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.app-shell[data-view="inbox"] .attendance-stats :is(.selected, [aria-pressed="true"]) { background: var(--attendance-mint); border-color: #bddbc9; color: var(--attendance-green); }
.app-shell[data-view="inbox"] .inbox-workspace { display: grid; grid-template-columns: var(--attendance-list-width) minmax(0, 1fr) var(--attendance-context-width); grid-template-rows: minmax(0, 1fr); flex: 1; min-height: 0; height: auto; max-height: none; border: 1px solid var(--attendance-line); border-radius: 10px; background: var(--attendance-surface); box-shadow: 0 3px 12px #19314905; overflow: hidden; }
.app-shell[data-view="inbox"] .inbox-workspace.context-collapsed { grid-template-columns: var(--attendance-list-width) minmax(0, 1fr); }
.app-shell[data-view="inbox"] .conversation-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; max-height: none; overflow: hidden; background: #fbfcfd; border-right: 1px solid var(--attendance-line); }
.app-shell[data-view="inbox"] .list-title { min-height: 44px; padding: 10px 12px 8px; gap: 8px; }
.app-shell[data-view="inbox"] .list-title h2 { font-size: 13px; line-height: 1.5; letter-spacing: -.2px; }
.app-shell[data-view="inbox"] .list-title .badge { font-size: 10px; padding: 2px 6px; }
.app-shell[data-view="inbox"] .conversation-list > .search-field { min-height: 34px; margin: 0 10px 8px; padding: 5px 8px; border: 1px solid var(--attendance-line); border-radius: 6px; background: #fff; }
.app-shell[data-view="inbox"] .conversation-list .search-field input { min-width: 0; font-size: 12px; padding: 2px 0; color: var(--attendance-ink); }
.app-shell[data-view="inbox"] .conversation-list .search-field .icon { width: 15px; height: 15px; }
.app-shell[data-view="inbox"] .conversation-list > select { width: calc(100% - 20px); margin: 0 10px 6px; min-height: 32px; padding: 5px 7px; font-size: 11px; border-radius: 6px; }
.app-shell[data-view="inbox"] .conversation-list > #conversation-status-filter { margin-top: 0; }
.app-shell[data-view="inbox"] .inbox-tabs { flex-shrink: 0; display: flex; gap: 2px; margin: 2px 10px 8px; padding: 3px; background: #ecf1f4; border-radius: 7px; }
.app-shell[data-view="inbox"] .inbox-tabs button { flex: 1; min-width: 0; min-height: 31px; padding: 5px 4px; border-radius: 5px; font-size: 11px; line-height: 1.4; }
.app-shell[data-view="inbox"] .inbox-tabs button.selected { background: #fff; color: #254d67; box-shadow: 0 1px 3px #19314912; }
.app-shell[data-view="inbox"] .attendance-filters { flex-shrink: 0; min-width: 0; margin: 0 10px 8px; border: 1px solid var(--attendance-line); border-radius: 6px; background: #fff; }
.app-shell[data-view="inbox"] .attendance-filters > summary { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 8px; color: #4f6c81; font-size: 11px; line-height: 1.5; cursor: pointer; list-style: none; }
.app-shell[data-view="inbox"] .attendance-filters > summary::after { content: '⌄'; margin-left: auto; font-size: 14px; }
.app-shell[data-view="inbox"] .attendance-filters[open] > summary::after { content: '⌃'; }
.app-shell[data-view="inbox"] .attendance-filters > summary::-webkit-details-marker { display: none; }
.app-shell[data-view="inbox"] .attendance-filters > :is(div, form) { display: grid; gap: 7px; padding: 3px 8px 8px; }
.app-shell[data-view="inbox"] .attendance-filters label { display: grid; gap: 4px; margin: 0; color: #567186; font-size: 10px; }
.app-shell[data-view="inbox"] .attendance-filters :is(input, select) { width: 100%; min-height: 32px; padding: 5px 7px; font-size: 11px; }
.app-shell[data-view="inbox"] .attendance-filters > select { width: calc(100% - 16px); margin: 0 8px 8px; }
.app-shell[data-view="inbox"] .attendance-list-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; flex-shrink: 0; gap: 2px 6px; padding: 5px 10px; border-top: 1px solid var(--attendance-line); background: #f8fafb; }
.app-shell[data-view="inbox"] .attendance-list-actions .text-button { min-height: 28px; padding: 3px 0; color: #567487; font-size: 10px; line-height: 1.4; }
.app-shell[data-view="inbox"] .attendance-list-actions .icon { width: 13px; height: 13px; }
.app-shell[data-view="inbox"] #conversation-items { display: block; flex: 1; min-height: 0; max-height: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d4de transparent; scroll-snap-type: none; }
.app-shell[data-view="inbox"] .conversation-item { position: relative; display: flex; align-items: flex-start; width: 100%; min-width: 0; min-height: 79px; padding: 10px 11px; margin: 0; gap: 9px; border-right: 0; border-bottom: 1px solid #e5edf1; border-left: 3px solid transparent; background: transparent; text-align: left; transition: background-color .12s ease; }
.app-shell[data-view="inbox"] .conversation-item:hover { background: #f0f5f7; }
.app-shell[data-view="inbox"] .conversation-item.selected { padding-left: 11px; border-left-color: #2d7b5c; background: #eaf4ef; }
.app-shell[data-view="inbox"] .conversation-item .avatar { flex: 0 0 34px; width: 34px; height: 34px; margin-top: 1px; border-radius: 10px; font-size: 11px; }
.app-shell[data-view="inbox"] .conversation-copy { display: block; flex: 1; min-width: 0; }
.app-shell[data-view="inbox"] .conversation-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; color: var(--attendance-ink); font-size: 12px; font-weight: 750; line-height: 1.45; }
.app-shell[data-view="inbox"] .conversation-name > :is(strong, span) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell[data-view="inbox"] .conversation-name small,
.app-shell[data-view="inbox"] .conversation-time { flex-shrink: 0; color: #657d8e; font-size: 10px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-shell[data-view="inbox"] .conversation-last,
.app-shell[data-view="inbox"] .conversation-preview { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5d7487; font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tags,
.app-shell[data-view="inbox"] .conversation-subline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; color: #647d8e; font-size: 10px; line-height: 1.4; }
.app-shell[data-view="inbox"] .conversation-tags > span:first-child { max-width: 112px; }
.app-shell[data-view="inbox"] .conversation-tags .badge,
.app-shell[data-view="inbox"] .conversation-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 5px; border-radius: 4px; font-size: 9px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .conversation-item .unread-dot { position: absolute; top: 14px; left: 5px; width: 5px; height: 5px; background: #2c825d; }
.app-shell[data-view="inbox"] .chat-pane { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: var(--attendance-canvas); }
.app-shell[data-view="inbox"] .chat-header { display: flex; align-items: center; flex-wrap: wrap; min-height: 58px; padding: 9px 12px; gap: 8px; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--attendance-line); box-shadow: none; }
.app-shell[data-view="inbox"] .chat-header > .avatar { flex-shrink: 0; width: 35px; height: 35px; border-radius: 10px; font-size: 12px; }
.app-shell[data-view="inbox"] .chat-contact-info { flex: 1; min-width: 90px; }
.app-shell[data-view="inbox"] .chat-header h2 { margin: 0; color: var(--attendance-ink); font-size: 14px; letter-spacing: -.25px; line-height: 1.4; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .chat-header small { display: block; margin-top: 2px; color: var(--attendance-muted); font-size: 10px; line-height: 1.4; }
.app-shell[data-view="inbox"] .chat-header > .badge { display: inline-flex; max-width: 150px; font-size: 9px; padding: 3px 6px; white-space: normal; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .chat-layout-actions { gap: 5px; margin-left: auto; }
.app-shell[data-view="inbox"] .chat-expand-toggle { min-height: 34px; padding: 5px 7px; gap: 5px; }
.app-shell[data-view="inbox"] .chat-layout-button-label { font-size: 10px; }
.app-shell[data-view="inbox"] .chat-header :is(.context-toggle, .conversation-tools-toggle) { min-width: 34px; width: 34px; min-height: 34px; height: 34px; border: 1px solid var(--attendance-line); border-radius: 7px; color: #4f6e83; }
.app-shell[data-view="inbox"] .conversation-tools-toggle[aria-expanded="true"] { background: var(--attendance-mint); border-color: #bddbc9; color: var(--attendance-green); }
.app-shell[data-view="inbox"] .chat-primary-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; min-width: 0; }
.app-shell[data-view="inbox"] .chat-primary-actions :is(.button, .text-button) { min-height: 32px; padding: 5px 8px; border-radius: 6px; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.app-shell[data-view="inbox"] .chat-primary-actions .button.primary { background: #24674d; border-color: #24674d; color: #fff; }
.app-shell[data-view="inbox"] .chat-primary-actions .icon { width: 13px; height: 13px; }
.app-shell[data-view="inbox"] .chat-summary { display: flex; align-items: center; flex-wrap: wrap; flex-shrink: 0; gap: 5px 8px; min-height: 30px; padding: 5px 12px; background: #f9fbfc; border-bottom: 1px solid #e6edf1; color: #5d7486; font-size: 10px; line-height: 1.4; }
.app-shell[data-view="inbox"] .chat-summary .badge { padding: 2px 5px; font-size: 9px; line-height: 1.4; }
.app-shell[data-view="inbox"] .chat-summary-item { max-width: 180px; gap: 4px; }
.app-shell[data-view="inbox"] .chat-summary .summary-company { display: inline-flex; }
.app-shell[data-view="inbox"] .chat-summary-tags { margin-left: auto; gap: 4px; }
.app-shell[data-view="inbox"] .summary-more { min-height: 24px; padding: 0 5px; font-size: 10px; }
.app-shell[data-view="inbox"] .chat-queue-state { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; flex-shrink: 0; gap: 6px 10px; padding: 7px 12px; border-bottom: 1px solid #e7e4d5; background: #fbf8eb; color: #766131; font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .chat-queue-state .button { min-height: 30px; padding: 4px 8px; font-size: 10px; }
.app-shell[data-view="inbox"] .messages { flex: 1; min-height: 0; max-height: none; padding: 14px 16px; gap: 12px; background: var(--attendance-canvas); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bccfd9 transparent; }
.app-shell[data-view="inbox"] .message-entry { display: flex; flex-direction: column; flex-shrink: 0; align-items: stretch; min-width: 0; width: 100%; margin: 0; gap: 0; }
.app-shell[data-view="inbox"] .day-divider { align-self: center; margin: 2px 0 12px; padding: 3px 9px; border: 1px solid #e0e8ed; border-radius: 6px; background: #ecf1f4; color: #627a8a; font-size: 10px; line-height: 1.4; }
.app-shell[data-view="inbox"] .message { position: relative; width: fit-content; max-width: min(88%, 720px); padding: 8px 11px; border: 1px solid var(--attendance-line); border-radius: 9px; color: #29475d; font-size: 13px; line-height: 1.55; box-shadow: 0 1px 2px #19314904; overflow: visible; }
.app-shell[data-view="inbox"] .message.incoming { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.app-shell[data-view="inbox"] .message.outgoing { align-self: flex-end; background: #e5f2ea; border-color: #cfe2d6; border-top-right-radius: 3px; color: #2f5443; }
.app-shell[data-view="inbox"] .message.internal-note,
.app-shell[data-view="inbox"] .internal-note .message { align-self: flex-end; background: #fff5d9; border-color: #e8d6a2; color: #665324; }
.app-shell[data-view="inbox"] .message.internal-note :is(.message-author, .message-meta),
.app-shell[data-view="inbox"] .internal-note .message :is(.message-author, .message-meta) { color: #7d6530; }
.app-shell[data-view="inbox"] :is(.message-note-label, .internal-note-label) { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; color: #80622a; font-size: 9px; font-weight: 750; line-height: 1.5; }
.app-shell[data-view="inbox"] :is(.message-note-label, .internal-note-label) .icon { width: 11px; height: 11px; }
.app-shell[data-view="inbox"] .message-author { display: block; margin: 0 0 3px; color: #345d4c; font-size: 11px; line-height: 1.4; }
.app-shell[data-view="inbox"] .message .message-meta { display: block; margin: 4px 0 0; color: #6a8190; font-size: 10px; line-height: 1.4; text-align: right; font-variant-numeric: tabular-nums; }
.app-shell[data-view="inbox"] .message.outgoing .message-meta { color: #59776a; }
.app-shell[data-view="inbox"] .message-quote { margin-bottom: 6px; padding: 5px 8px; }
.app-shell[data-view="inbox"] .message-quote :is(strong, span) { font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .message-reply-button { position: absolute; top: -13px; right: 7px; z-index: 2; float: none; min-height: 26px; margin: 0; padding: 3px 6px; border: 1px solid #d2e0e6; border-radius: 5px; color: #416679; background: #fff; box-shadow: 0 2px 5px #19314910; font-size: 10px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.app-shell[data-view="inbox"] .message:is(:hover, :focus-within) .message-reply-button,
.app-shell[data-view="inbox"] .message-reply-button:focus-visible { opacity: 1; pointer-events: auto; }
.app-shell[data-view="inbox"] .message:has(.message-reply-button)::after { display: none; }
.app-shell[data-view="inbox"] .system-message { align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; padding: 4px 10px; margin: 0; border-radius: 6px; background: #eaf0f3; color: #61798c; font-size: 10px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .system-message .icon { flex-shrink: 0; width: 12px; height: 12px; }
.app-shell[data-view="inbox"] .message-attachment { max-width: 100%; margin-bottom: 5px; box-shadow: none; }
.app-shell[data-view="inbox"] .message-attachment:is(.attachment-image, .attachment-video) { width: 220px; }
.app-shell[data-view="inbox"] .message-attachment.attachment-audio { width: 300px; height: auto; }
.app-shell[data-view="inbox"] .attachment-heading strong { font-size: 11px; }
.app-shell[data-view="inbox"] .attachment-audio-player { padding: 6px 7px; }
.app-shell[data-view="inbox"] .attachment-audio-player .attachment-audio { height: 44px; margin: 0; }
.app-shell[data-view="inbox"] .attachment-rate { margin-top: 3px; }
.app-shell[data-view="inbox"] .attachment-rate button { min-height: 28px; padding: 3px 7px; }
.app-shell[data-view="inbox"] .inbox-copilot { flex-shrink: 0; max-height: min(30dvh, 240px); border-top: 1px solid var(--attendance-line); background: #fff; overflow-y: auto; }
.app-shell[data-view="inbox"] .inbox-copilot > summary { min-height: 34px; padding: 7px 12px; font-size: 11px; gap: 6px; color: #46677c; }
.app-shell[data-view="inbox"] .inbox-copilot > summary span { font-size: 10px; color: #718697; }
.app-shell[data-view="inbox"] .inbox-copilot .copilot-card { min-height: 0; max-height: none; margin: 0 10px 9px; padding: 10px; border-radius: 7px; }
.app-shell[data-view="inbox"] .new-message-indicator { bottom: 182px; padding: 7px 11px; min-height: 32px; font-size: 10px; background: #fff; border-color: #c9ded2; color: var(--attendance-green); }
.app-shell[data-view="inbox"] .composer-area { flex-shrink: 0; width: 100%; max-height: 55dvh; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--attendance-line); background: #fff; overflow-y: auto; }
.app-shell[data-view="inbox"] .composer-area form { width: 100%; padding: 8px 9px; border: 1px solid #d3e0e6; border-radius: 8px; background: #fff; }
.app-shell[data-view="inbox"] .composer-area form:focus-within { border-color: #7bac91; box-shadow: 0 0 0 2px #8ee4c420; }
.app-shell[data-view="inbox"] .composer-mode-tabs { display: flex; align-items: center; flex-shrink: 0; gap: 4px; margin-bottom: 5px; }
.app-shell[data-view="inbox"] .composer-mode-tabs button { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; color: #607b8e; background: transparent; font: inherit; font-size: 10px; line-height: 1.4; cursor: pointer; }
.app-shell[data-view="inbox"] .composer-mode-tabs :is(.selected, .is-active, [aria-selected="true"], [aria-pressed="true"]) { color: #285d46; border-color: #c9e0d2; background: #eaf5ee; font-weight: 750; }
.app-shell[data-view="inbox"] .composer-mode-tabs [data-composer-mode="note"]:is(.selected, .is-active, [aria-selected="true"], [aria-pressed="true"]) { color: #7b5e24; border-color: #e8d8aa; background: #fff4d4; }
.app-shell[data-view="inbox"] .composer-mode-tabs .icon { width: 13px; height: 13px; }
.app-shell[data-view="inbox"] .internal-note-composer { background: #fffcf2; border-color: #e3d5af; }
.app-shell[data-view="inbox"] .internal-note-composer:focus-within { border-color: #b59a59; box-shadow: 0 0 0 2px #e9d69426; }
.app-shell[data-view="inbox"] .note-privacy { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; color: #866931; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .note-privacy .icon { flex-shrink: 0; width: 13px; height: 13px; }
.app-shell[data-view="inbox"] .internal-note-composer .button.primary { background: #8a6b29; border-color: #8a6b29; color: #fff; }
.app-shell[data-view="inbox"] .composer-area textarea { display: block; width: 100%; min-height: 36px; max-height: 100px; padding: 3px 0 5px; color: var(--attendance-ink); font-size: 13px; line-height: 1.5; resize: vertical; }
.app-shell[data-view="inbox"] .composer-area textarea::placeholder { color: #7e919e; }
.app-shell[data-view="inbox"] .composer-footer { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; padding-top: 4px; }
.app-shell[data-view="inbox"] .composer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 9px; flex: 1; min-width: 0; }
.app-shell[data-view="inbox"] .composer-tools .text-button { min-height: 30px; padding: 3px 0; color: #4b6b7e; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.app-shell[data-view="inbox"] .composer-footer > .button { flex-shrink: 0; min-height: 34px; padding: 6px 10px; border-radius: 6px; font-size: 11px; line-height: 1.4; }
.app-shell[data-view="inbox"] .composer-footer .icon { width: 14px; height: 14px; }
.app-shell[data-view="inbox"] .composer-note { display: block; margin: 5px 1px 0; color: #6d8191; font-size: 10px; line-height: 1.45; }
.app-shell[data-view="inbox"] .composer-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 9px; margin: 5px 1px 0; color: #698191; font-size: 10px; line-height: 1.45; }
.app-shell[data-view="inbox"] .composer-status .composer-note { margin: 0; }
.app-shell[data-view="inbox"] .composer-status > :last-child { font-variant-numeric: tabular-nums; }
.app-shell[data-view="inbox"] .handoff-banner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; min-height: 34px; margin: 0 0 6px; padding: 6px 8px; border-radius: 6px; font-size: 11px; line-height: 1.45; }
.app-shell[data-view="inbox"] .handoff-banner > span { font-size: 11px; }
.app-shell[data-view="inbox"] .handoff-banner .text-button { min-height: 28px; padding: 3px 0; font-size: 10px; }
.app-shell[data-view="inbox"] #voice-controls { min-width: 0; }
.app-shell[data-view="inbox"] .voice-recorder { gap: 5px 8px; flex-wrap: wrap; font-size: 10px; }
.app-shell[data-view="inbox"] .voice-recorder-controls { gap: 9px; }
.app-shell[data-view="inbox"] .voice-recorder-status { line-height: 1.5; }
.app-shell[data-view="inbox"] .voice-recorder[data-voice-state="recording"] { padding: 4px 7px; border-radius: 6px; }
.app-shell[data-view="inbox"] .attachment-selection { margin-bottom: 6px; padding: 7px; gap: 8px; border-color: #cfdfd7; border-radius: 6px; background: #f2f8f5; }
.app-shell[data-view="inbox"] .attachment-selection-preview { width: 46px; height: 46px; }
.app-shell[data-view="inbox"] .audio-selection .attachment-selection-preview { width: 100%; height: auto; }
.app-shell[data-view="inbox"] .attachment-selection-info strong { font-size: 11px; line-height: 1.4; }
.app-shell[data-view="inbox"] .attachment-selection-info :is(span, small) { font-size: 10px; line-height: 1.4; }
.app-shell[data-view="inbox"] .reply-composer-quote { gap: 8px; padding: 6px 8px; margin-bottom: 6px; border-radius: 6px; }
.app-shell[data-view="inbox"] .reply-quote-kicker { font-size: 9px; line-height: 1.4; }
.app-shell[data-view="inbox"] .reply-quote-preview :is(strong, span) { font-size: 11px; line-height: 1.4; }
.app-shell[data-view="inbox"] .reply-clear-quote { width: 30px; height: 30px; }
.app-shell[data-view="inbox"] .conversation-context { display: block; position: relative; inset: auto; grid-column: auto; width: auto; min-width: 0; min-height: 0; max-height: 100%; padding: 12px; border-left: 1px solid var(--attendance-line); border-top: 0; background: #fff; box-shadow: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d4de transparent; }
.app-shell[data-view="inbox"] .inbox-workspace.context-collapsed .conversation-context { display: none; }
.app-shell[data-view="inbox"] .conversation-context > .eyebrow { display: block; padding-right: 32px; color: #678092; font-size: 9px; line-height: 1.5; letter-spacing: 1px; }
.app-shell[data-view="inbox"] .context-close { display: inline-flex; position: absolute; top: 7px; right: 8px; width: 30px; min-width: 30px; height: 30px; min-height: 30px; border-color: transparent; }
.app-shell[data-view="inbox"] .context-person { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 2px 8px; padding: 10px 0; }
.app-shell[data-view="inbox"] .context-person .avatar { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.app-shell[data-view="inbox"] .context-person h3 { margin: 0; color: var(--attendance-ink); font-size: 12px; line-height: 1.5; }
.app-shell[data-view="inbox"] .context-person p { grid-column: 2; margin: 0; color: #698293; font-size: 10px; line-height: 1.45; }
.app-shell[data-view="inbox"] .context-client-record { border-block-color: #e2eaf0; padding: 9px 0; }
.app-shell[data-view="inbox"] .context-title { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: #526f84; font-size: 10px; font-weight: 700; line-height: 1.5; }
.app-shell[data-view="inbox"] .context-title .icon { width: 14px; height: 14px; }
.app-shell[data-view="inbox"] .client-fields { margin: 7px 0; }
.app-shell[data-view="inbox"] .client-fields > div { grid-template-columns: 54px minmax(0, 1fr); gap: 5px; margin-top: 4px; font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .client-fields dt { color: #718696; }
.app-shell[data-view="inbox"] .client-record-tags > div { margin: 4px 0 6px; gap: 3px; }
.app-shell[data-view="inbox"] .client-tag { padding: 2px 5px; font-size: 10px; border-color: #dce7ec; background: #f5f8fa; }
.app-shell[data-view="inbox"] .client-notes { margin-top: 4px; }
.app-shell[data-view="inbox"] .client-notes summary { min-height: 28px; padding: 5px 0; font-size: 11px; }
.app-shell[data-view="inbox"] .client-notes p { max-height: 140px; margin: 3px 0 7px; font-size: 11px; line-height: 1.55; }
.app-shell[data-view="inbox"] .client-record-actions { flex-wrap: wrap; gap: 4px 10px; }
.app-shell[data-view="inbox"] .client-record-actions .text-button { min-height: 28px; font-size: 10px; }
.app-shell[data-view="inbox"] .client-empty { margin: 5px 0; font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-context .context-section { display: block; min-width: 0; padding: 10px 0; border-bottom: 1px solid #e2eaf0; }
.app-shell[data-view="inbox"] .context-section p { margin: 5px 0 7px; color: #5d778a; font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .context-section .attendant-name { color: var(--attendance-ink); font-size: 12px; font-weight: 650; }
.app-shell[data-view="inbox"] .context-section form { display: block; }
.app-shell[data-view="inbox"] .context-section label { display: block; margin: 0 0 7px; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .context-section :is(input, select) { width: 100%; min-height: 32px; margin-top: 4px; padding: 5px 7px; font-size: 11px; border-radius: 5px; }
.app-shell[data-view="inbox"] .context-section label > small,
.app-shell[data-view="inbox"] .context-section .group-help { display: block; margin-top: 4px; color: #738797; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .context-section .button { width: 100%; min-height: 32px; padding: 5px 8px; border-radius: 6px; font-size: 11px; }
.app-shell[data-view="inbox"] .context-section > select + .button { margin-top: 7px; }
.app-shell[data-view="inbox"] .context-version { margin-top: 10px; color: #6c8191; font-size: 10px; line-height: 1.45; }
.app-shell[data-view="inbox"] .context-version p { display: block; margin-top: 4px; font-size: 10px; line-height: 1.45; }
.app-shell[data-view="inbox"] .attendance-history { margin-top: 8px; border-bottom: 1px solid #e2eaf0; padding-bottom: 8px; }
.app-shell[data-view="inbox"] .attendance-history > summary { display: flex; align-items: center; gap: 6px; min-height: 30px; color: #527185; font-size: 11px; line-height: 1.5; cursor: pointer; list-style: none; }
.app-shell[data-view="inbox"] .attendance-history > summary > span { margin-left: auto; color: #70899a; font-size: 10px; font-variant-numeric: tabular-nums; }
.app-shell[data-view="inbox"] .attendance-history > summary::-webkit-details-marker { display: none; }
.app-shell[data-view="inbox"] .attendance-history .icon { width: 14px; height: 14px; }
.app-shell[data-view="inbox"] .attendance-history ol { list-style: none; margin: 5px 0; padding: 0; }
.app-shell[data-view="inbox"] .attendance-history li { padding: 6px 0 6px 8px; border-left: 2px solid #d7e4dc; color: #678091; font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .attendance-history li + li { margin-top: 4px; }
.app-shell[data-view="inbox"] .attendance-history strong { display: block; color: #365e72; font-size: 11px; font-weight: 650; }
.app-shell[data-view="inbox"] .attendance-history small { display: block; color: #748998; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .attendance-history li p { margin-top: 3px; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .empty-state { min-height: 0; padding: 24px 18px; gap: 8px; }
.app-shell[data-view="inbox"] .empty-state .empty-symbol { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 3px; background: #e8f0f4; border-color: #dce7ed; color: #54758b; }
.app-shell[data-view="inbox"] .empty-state .empty-symbol .icon { width: 21px; height: 21px; }
.app-shell[data-view="inbox"] .empty-state :is(h2, h3) { font-size: 14px; line-height: 1.5; }
.app-shell[data-view="inbox"] .empty-state p { max-width: 280px; font-size: 11px; line-height: 1.65; }
.app-shell[data-view="inbox"] .conversation-list .empty-state { min-height: 150px; padding: 18px 13px; }
.app-shell[data-view="inbox"] .empty-state .button { min-height: 34px; margin-top: 5px; font-size: 11px; }
.app-shell[data-view="inbox"] .conversation-tools-panel { position: absolute; inset: 0 0 0 auto; z-index: 9; display: flex; flex-direction: column; width: min(340px, 100%); min-height: 0; max-height: 100%; border-left: 1px solid #cedde5; background: #fff; box-shadow: -8px 0 24px #19314914; overflow: hidden; }
.app-shell[data-view="inbox"] .conversation-tools-panel[hidden] { display: none; }
.app-shell[data-view="inbox"] .conversation-tools-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 10px; min-height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--attendance-line); }
.app-shell[data-view="inbox"] .conversation-tools-header > div { min-width: 0; }
.app-shell[data-view="inbox"] .conversation-tools-header :is(h2, h3) { margin: 0; color: var(--attendance-ink); font-size: 13px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tools-header p { margin: 2px 0 0; color: #6d8494; font-size: 10px; line-height: 1.4; }
.app-shell[data-view="inbox"] .conversation-tools-header .icon-button { flex-shrink: 0; min-width: 36px; min-height: 36px; width: 36px; height: 36px; }
.app-shell[data-view="inbox"] .conversation-tools-search { display: flex; align-items: center; flex-shrink: 0; gap: 7px; min-height: 36px; margin: 10px 12px 7px; padding: 4px 8px; border: 1px solid var(--attendance-line); border-radius: 6px; background: #f9fbfc; }
.app-shell[data-view="inbox"] .conversation-tools-search .icon { flex-shrink: 0; width: 15px; height: 15px; color: #738b9b; }
.app-shell[data-view="inbox"] .conversation-tools-search input { flex: 1; min-width: 0; width: 100%; padding: 4px 0; border: 0; background: transparent; color: var(--attendance-ink); font: inherit; font-size: 12px; }
.app-shell[data-view="inbox"] .conversation-tools-search:focus-within { outline: 2px solid #6ca68a; outline-offset: 1px; }
.app-shell[data-view="inbox"] .conversation-tools-filters { display: flex; flex-shrink: 0; gap: 4px; flex-wrap: wrap; padding: 0 12px 9px; border-bottom: 1px solid #e6edf1; }
.app-shell[data-view="inbox"] .conversation-tools-filters button { min-height: 30px; padding: 4px 8px; border: 1px solid var(--attendance-line); border-radius: 5px; background: #fff; color: #5c788b; font: inherit; font-size: 10px; cursor: pointer; }
.app-shell[data-view="inbox"] .conversation-tools-filters :is(.selected, [aria-pressed="true"]) { border-color: #bddbc9; background: var(--attendance-mint); color: var(--attendance-green); }
.app-shell[data-view="inbox"] .conversation-tools-results { flex: 1; min-height: 0; margin: 0; padding: 8px 10px; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d4de transparent; }
.app-shell[data-view="inbox"] .conversation-tools-item { display: block; width: 100%; min-width: 0; padding: 9px; margin-bottom: 6px; border: 1px solid #dfe8ed; border-radius: 7px; background: #fff; color: #476a80; font: inherit; font-size: 11px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] button.conversation-tools-item { cursor: pointer; }
.app-shell[data-view="inbox"] .conversation-tools-item:hover { border-color: #a6c9b7; background: #f7fbf8; }
.app-shell[data-view="inbox"] .conversation-tools-item :is(strong, .conversation-tools-item-title) { display: block; color: #244b63; font-size: 11px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tools-item :is(small, time) { color: #718999; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tools-item p { margin: 4px 0; white-space: pre-wrap; }
.app-shell[data-view="inbox"] .conversation-tools-item mark { padding: 0 1px; border-radius: 2px; background: #d8edb8; color: #2b4b25; }
.app-shell[data-view="inbox"] .conversation-tools-item img { display: block; width: 100%; max-height: 140px; margin: 5px 0; border-radius: 5px; object-fit: contain; background: #edf3f6; }
.app-shell[data-view="inbox"] .conversation-tools-item .text-button { min-height: 30px; padding: 4px 0; font-size: 10px; }
.app-shell[data-view="inbox"] .conversation-tools-footer { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--attendance-line); color: #728896; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tools-footer button { min-height: 32px; font-size: 10px; }
.app-shell[data-view="inbox"] .conversation-tools-empty { display: grid; justify-items: center; gap: 8px; margin: 15px 2px; padding: 20px 12px; border: 1px dashed #d4e1e8; border-radius: 7px; color: #6b8395; font-size: 11px; line-height: 1.6; text-align: center; }
.app-shell[data-view="inbox"] .conversation-tools-empty .icon { width: 25px; height: 25px; color: #7b96a8; }
.app-shell[data-view="inbox"] .conversation-tools-empty p { margin: 0; }
.app-shell[data-view="inbox"] .conversation-tools-results[aria-busy="true"] { cursor: progress; }
.app-shell[data-view="inbox"] .conversation-tool-heading { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 8px; min-height: 54px; padding: 9px 12px; border-bottom: 1px solid var(--attendance-line); }
.app-shell[data-view="inbox"] .conversation-tool-heading > div { min-width: 0; }
.app-shell[data-view="inbox"] .conversation-tool-heading h3 { margin: 2px 0 0; color: var(--attendance-ink); font-size: 13px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tool-heading .icon-button { flex-shrink: 0; width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
.app-shell[data-view="inbox"] .conversation-tool-kicker { color: #718999; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; line-height: 1.4; }
.app-shell[data-view="inbox"] .conversation-tool-modes { display: flex; flex-shrink: 0; gap: 4px; padding: 8px 12px 0; }
.app-shell[data-view="inbox"] .conversation-tool-modes .text-button { flex: 1; justify-content: center; min-height: 32px; gap: 5px; padding: 5px 7px; border: 1px solid var(--attendance-line); border-radius: 6px; color: #617c8f; font-size: 11px; }
.app-shell[data-view="inbox"] .conversation-tool-modes .is-active { border-color: #c0dbcc; background: var(--attendance-mint); color: #2d634a; font-weight: 750; }
.app-shell[data-view="inbox"] .conversation-tool-modes .icon { width: 14px; height: 14px; }
.app-shell[data-view="inbox"] .conversation-tool-search { display: flex; align-items: center; flex-shrink: 0; gap: 7px; min-height: 36px; margin: 8px 12px 0; padding: 5px 8px; border: 1px solid var(--attendance-line); border-radius: 6px; background: #f9fbfc; }
.app-shell[data-view="inbox"] .conversation-tool-search .icon { width: 15px; height: 15px; color: #738b9b; flex-shrink: 0; }
.app-shell[data-view="inbox"] .conversation-tool-search input { flex: 1; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: var(--attendance-ink); font: inherit; font-size: 12px; }
.app-shell[data-view="inbox"] .conversation-tool-search:focus-within { outline: 2px solid #6ca98b; outline-offset: 1px; }
.app-shell[data-view="inbox"] .conversation-tool-scope-note { flex-shrink: 0; display: block; margin: 5px 12px 8px; color: #7a8d9b; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] [data-conversation-tool-results] { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.app-shell[data-view="inbox"] .conversation-tool-filters { display: flex; align-items: center; flex-shrink: 0; gap: 4px; flex-wrap: wrap; padding: 0 12px 8px; border-bottom: 1px solid #e6edf1; }
.app-shell[data-view="inbox"] .conversation-tool-filter { min-height: 28px; padding: 4px 7px; border: 1px solid #dce7ec; border-radius: 5px; color: #617c8f; background: #fff; font: inherit; font-size: 10px; line-height: 1.4; cursor: pointer; }
.app-shell[data-view="inbox"] .conversation-tool-filter.is-active { border-color: #bddbc9; background: var(--attendance-mint); color: var(--attendance-green); font-weight: 650; }
.app-shell[data-view="inbox"] .conversation-tool-results-heading { display: flex; align-items: center; flex-shrink: 0; justify-content: space-between; gap: 7px; padding: 5px 12px; color: #738b9b; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tool-navigation { display: flex; align-items: center; gap: 4px; }
.app-shell[data-view="inbox"] .conversation-tool-navigation .icon-button { width: 28px; min-width: 28px; height: 28px; min-height: 28px; border: 1px solid var(--attendance-line); border-radius: 5px; }
.app-shell[data-view="inbox"] .conversation-tool-previous .icon { transform: rotate(180deg); }
.app-shell[data-view="inbox"] .conversation-tool-list { flex: 1; min-height: 0; margin: 0; padding: 2px 10px 10px; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d4de transparent; }
.app-shell[data-view="inbox"] .conversation-tool-result { margin: 0 0 6px; border: 1px solid #dfe8ed; border-radius: 7px; overflow: hidden; }
.app-shell[data-view="inbox"] .conversation-tool-result.is-current { border-color: #8fbba4; background: #f2f8f4; }
.app-shell[data-view="inbox"] .conversation-tool-jump { display: block; width: 100%; min-width: 0; padding: 9px; border: 0; border-radius: 6px; background: #fff; color: #486b80; font: inherit; font-size: 11px; line-height: 1.55; text-align: left; cursor: pointer; }
.app-shell[data-view="inbox"] .conversation-tool-jump:hover,
.app-shell[data-view="inbox"] .conversation-tool-result.is-current .conversation-tool-jump { background: #f2f8f4; }
.app-shell[data-view="inbox"] .conversation-tool-result-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; color: #728999; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tool-result-meta strong { flex: 1; min-width: 0; color: #34596e; font-size: 11px; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .conversation-tool-result-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-shell[data-view="inbox"] .conversation-tool-excerpt { display: block; margin-top: 4px; color: #58758a; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .conversation-tool-file-count { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #758e9d; font-size: 10px; line-height: 1.5; }
.app-shell[data-view="inbox"] .conversation-tool-file-count .icon { width: 12px; height: 12px; }
.app-shell[data-view="inbox"] .conversation-tool-file { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; padding: 10px; margin-bottom: 7px; border: 1px solid #dce7ec; border-radius: 7px; background: #fff; }
.app-shell[data-view="inbox"] .conversation-tool-file-symbol { display: flex; align-items: center; justify-content: center; align-self: start; width: 30px; height: 34px; border-radius: 6px; background: #eaf2f5; color: #5c7e93; }
.app-shell[data-view="inbox"] .conversation-tool-file-symbol .icon { width: 18px; height: 18px; }
.app-shell[data-view="inbox"] .conversation-tool-file-copy { min-width: 0; }
.app-shell[data-view="inbox"] .conversation-tool-filename { display: block; color: #2d536a; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.app-shell[data-view="inbox"] .conversation-tool-file-detail { display: block; margin: 3px 0; color: #78909f; font-size: 10px; line-height: 1.45; }
.app-shell[data-view="inbox"] .conversation-tool-file-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; grid-column: 1 / -1; padding-top: 3px; }
.app-shell[data-view="inbox"] .conversation-tool-file-actions .text-button { min-height: 30px; font-size: 10px; }
.app-shell[data-view="inbox"] .conversation-tool-file-actions .icon-button { width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
.app-shell[data-view="inbox"] .conversation-tool-empty { display: grid; justify-items: center; gap: 8px; margin: 10px 12px; padding: 22px 10px; border: 1px dashed #d3e0e7; border-radius: 7px; color: #718999; font-size: 11px; line-height: 1.55; text-align: center; }
.app-shell[data-view="inbox"] .conversation-tool-empty > .icon { width: 25px; height: 25px; color: #7a96a8; }
.app-shell[data-view="inbox"] .conversation-tool-empty strong { color: #456a80; font-size: 12px; }
.app-shell[data-view="inbox"] .conversation-tool-empty p { margin: 0; }
.app-shell[data-view="inbox"] :is(.attendance-filters > summary, .client-notes summary):focus-visible { outline: 2px solid #378264; outline-offset: 2px; border-radius: 4px; }

/* A rail mantém a mesma navegação com menos respiro, sem reduzir os alvos. */
@media (min-width: 761px) {
  .app-shell[data-view="inbox"] .sidebar { padding-top: 18px; }
  .app-shell[data-view="inbox"] .workspace-card { margin-top: 17px; margin-bottom: 14px; padding-block: 9px; }
  .app-shell[data-view="inbox"] .sidebar nav .nav-label { margin-top: 18px; margin-bottom: 7px; }
  .app-shell[data-view="inbox"] .sidebar .nav-item { min-height: 40px; padding-block: 9px; }
  .app-shell.sidebar-collapsed[data-view="inbox"] .sidebar .nav-item { min-height: 44px; height: 44px; padding: 0; }
  .app-shell.sidebar-collapsed[data-view="inbox"] .workspace-card { width: 44px; min-height: 44px; padding: 4px; }
}
@media (max-width: 1279px) and (min-width: 761px) {
  .app-shell[data-view="inbox"] .inbox-workspace,
  .app-shell[data-view="inbox"] .inbox-workspace.context-collapsed { grid-template-columns: var(--attendance-list-width) minmax(0, 1fr); }
  .app-shell[data-view="inbox"] .inbox-workspace:not(.context-collapsed) .conversation-context { position: absolute; inset: 0 0 0 auto; z-index: 8; width: 280px; height: 100%; border-left: 1px solid #d2e0e7; box-shadow: -8px 0 24px #19314918; }
}
@media (min-width: 1120px) and (max-width: 1279px) {
  .app-shell.sidebar-collapsed[data-view="inbox"] .inbox-workspace:not(.context-collapsed) { grid-template-columns: var(--attendance-list-width) minmax(0, 1fr) var(--attendance-context-width); }
  .app-shell.sidebar-collapsed[data-view="inbox"] .inbox-workspace:not(.context-collapsed) .conversation-context { position: relative; inset: auto; width: auto; box-shadow: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .app-shell[data-view="inbox"] { --attendance-list-width: 210px; }
  .app-shell[data-view="inbox"] .inbox-content { padding: 10px; }
  .app-shell[data-view="inbox"] .chat-header { gap: 7px; }
  .app-shell[data-view="inbox"] .chat-primary-actions { flex-basis: 100%; justify-content: flex-start; padding-top: 1px; }
  .app-shell[data-view="inbox"] .chat-layout-actions { flex-wrap: wrap; }
  .app-shell[data-view="inbox"] .attendance-header { flex-wrap: wrap; gap: 7px; }
  .app-shell[data-view="inbox"] .attendance-stats { gap: 4px; }
  .app-shell[data-view="inbox"] .conversation-item { padding-inline: 9px; gap: 7px; }
  .app-shell[data-view="inbox"] .conversation-item.selected { padding-left: 9px; }
  .app-shell[data-view="inbox"] .conversation-item .avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }
  .app-shell[data-view="inbox"] .messages { padding-inline: 12px; }
  .app-shell[data-view="inbox"] .message { max-width: 93%; }
}

/* O chat expandido reutiliza a timeline e ganha ficha dock a partir de 960 px. */
.app-shell.chat-expanded[data-view="inbox"] .attendance-header { display: none; }
.app-shell.chat-expanded[data-view="inbox"] .main-shell { margin: 0; width: 100%; height: 100dvh; }
.app-shell.chat-expanded[data-view="inbox"] .inbox-content { width: 100%; height: 100dvh; padding: 0; }
.app-shell.chat-expanded[data-view="inbox"] .inbox-workspace { display: flex; flex-direction: row; width: 100%; height: 100%; border: 0; border-radius: 0; }
.app-shell.chat-expanded[data-view="inbox"] .inbox-workspace .chat-pane { display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; }
.app-shell.chat-expanded[data-view="inbox"] .chat-header { flex-wrap:wrap; min-height:58px; padding:9px 16px; gap:9px; }
.app-shell.chat-expanded[data-view="inbox"] .chat-header h2 { font-size: 15px; }
.app-shell.chat-expanded[data-view="inbox"] .chat-header > .avatar { width: 36px; height: 36px; }
.app-shell.chat-expanded[data-view="inbox"] .chat-layout-actions { gap: 6px; }
.app-shell.chat-expanded[data-view="inbox"] :is(.chat-expand-toggle, .chat-conversations-toggle) { min-height: 34px; padding: 5px 9px; font-size: 10px; }
.app-shell.chat-expanded[data-view="inbox"] .chat-summary { padding: 5px 16px; }
.app-shell.chat-expanded[data-view="inbox"] .messages { padding: 14px 18px; gap: 12px; }
.app-shell.chat-expanded[data-view="inbox"] .message-entry { max-width: var(--chat-reading-width); margin-inline: auto; }
.app-shell.chat-expanded[data-view="inbox"] .message { max-width: min(84%, 720px); padding: 8px 11px; }
.app-shell.chat-expanded[data-view="inbox"] .inbox-copilot { max-height: min(28dvh, 240px); }
.app-shell.chat-expanded[data-view="inbox"] .inbox-copilot > summary { padding: 7px 16px; }
.app-shell.chat-expanded[data-view="inbox"] .composer-area { max-height: 55dvh; padding: 8px 16px max(8px, env(safe-area-inset-bottom)); }
.app-shell.chat-expanded[data-view="inbox"] .composer-area > form { padding: 8px 10px; }
.app-shell.chat-expanded[data-view="inbox"] .composer-area > :is(form, .handoff-banner, .composer-note, .composer-status) { max-width: var(--chat-reading-width); margin-inline: auto; }
.app-shell.chat-expanded[data-view="inbox"] .composer-footer { gap: 4px 10px; }
.app-shell.chat-expanded[data-view="inbox"] .composer-tools { gap: 2px 12px; }
.app-shell.chat-expanded[data-view="inbox"] .composer-area textarea { min-height: 36px; }
.app-shell.chat-expanded[data-view="inbox"] .inbox-workspace:not(.context-collapsed) .conversation-context { position: absolute; inset: 0 0 0 auto; z-index: 8; flex: none; width: min(300px, 100%); height: 100%; padding: 12px; border-left: 1px solid var(--attendance-line); box-shadow: -8px 0 24px #19314918; }
.app-shell.chat-expanded[data-view="inbox"] .context-close { top: 7px; right: 8px; width: 30px; min-width: 30px; height: 30px; min-height: 30px; }
.app-shell.chat-expanded[data-view="inbox"] .context-person { display: grid; }
.app-shell.chat-expanded[data-view="inbox"] .conversation-context .context-section { padding-block: 10px; }
@media (min-width: 960px) {
  .app-shell.chat-expanded[data-view="inbox"] .inbox-workspace:not(.context-collapsed) .chat-pane { min-width: 520px; }
  .app-shell.chat-expanded[data-view="inbox"] .inbox-workspace:not(.context-collapsed) .conversation-context { position: relative; inset: auto; flex: 0 0 280px; width: 280px; padding: 12px; box-shadow: none; }
}

/* No celular lista e conversa ocupam uma tela; detalhes e busca usam overlay completo. */
@media (max-width: 760px) {
  .app-shell[data-view="inbox"] .attendance-desktop-label { display:none; }
  .app-shell[data-view="inbox"] .attendance-mobile-label { display:inline; }
  .app-shell[data-view="inbox"]:has(.inbox-workspace.mobile-chat) .inbox-content>.page-heading { display:none; }
  .app-shell[data-view="inbox"] .chat-header .chat-primary-actions .icon-button { width:44px; min-width:44px; height:44px; min-height:44px; }
  .app-shell[data-view="inbox"] { height: 100dvh; min-height: 0; overflow: hidden; }
  .app-shell[data-view="inbox"] .main-shell { height: 100dvh; min-height: 0; }
  .app-shell[data-view="inbox"] .topbar { min-height: 54px; padding: 6px 10px; gap: 6px; }
  .app-shell[data-view="inbox"] .topbar-controls { gap: 6px; }
  .app-shell[data-view="inbox"] .topbar-controls select { min-height: 44px; font-size: 12px; }
  .app-shell[data-view="inbox"] .sandbox-banner { min-height: 29px; padding: 5px 10px; font-size: 10px; }
  .app-shell[data-view="inbox"] .inbox-content { display: flex; flex: 1; min-height: 0; padding: 8px; }
  .app-shell[data-view="inbox"] .attendance-header,
  .app-shell[data-view="inbox"] .inbox-content > .page-heading { flex-wrap: wrap; min-height: 0; gap: 5px 8px; margin-bottom: 7px; }
  .app-shell[data-view="inbox"] .attendance-header h1,
  .app-shell[data-view="inbox"] .inbox-content > .page-heading h1 { font-size: 18px; }
  .app-shell[data-view="inbox"] .attendance-header .heading-actions { margin-left: auto; }
  .app-shell[data-view="inbox"] .attendance-header .button,
  .app-shell[data-view="inbox"] .inbox-content > .page-heading .button { min-height: 44px; padding: 6px 9px; }
  .app-shell[data-view="inbox"] .attendance-stats { flex-basis: 100%; gap: 4px; }
  .app-shell[data-view="inbox"] .attendance-stats > span { min-height: 26px; padding: 3px 6px; }
  .app-shell[data-view="inbox"] .attendance-stats > button { min-height: 44px; }
  .app-shell[data-view="inbox"] .inbox-workspace,
  .app-shell[data-view="inbox"] .inbox-workspace.context-collapsed { display: flex; flex-direction: column; flex: 1; min-height: 0; height: auto; max-height: none; border-radius: 8px; }
  .app-shell[data-view="inbox"] .inbox-workspace .conversation-list { flex: 1; min-height: 0; border: 0; }
  .app-shell[data-view="inbox"] .list-title { min-height: 36px; padding: 7px 10px; }
  .app-shell[data-view="inbox"] .conversation-list > .search-field { min-height: 44px; margin-bottom: 6px; padding: 5px 8px; }
  .app-shell[data-view="inbox"] .conversation-list .search-field input { font-size: 16px; }
  .app-shell[data-view="inbox"] .conversation-list > select { min-height: 44px; font-size: 12px; }
  .app-shell[data-view="inbox"] .inbox-tabs { margin-bottom: 6px; }
  .app-shell[data-view="inbox"] .inbox-tabs button { min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] .attendance-filters > summary { min-height: 44px; font-size: 12px; }
  .app-shell[data-view="inbox"] .attendance-filters :is(input, select) { min-height: 44px; font-size: 16px; }
  .app-shell[data-view="inbox"] .attendance-list-actions .text-button { min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] #conversation-items { display: block; flex: 1; min-height: 0; max-height: none; overflow-x: hidden; overflow-y: auto; }
  .app-shell[data-view="inbox"] .inbox-workspace .conversation-item { width: 100%; min-width: 0; min-height: 79px; padding: 10px 11px; }
  .app-shell[data-view="inbox"] .inbox-workspace .conversation-item.selected { padding-left: 11px; border-left: 3px solid #2d7b5c; border-bottom: 1px solid #e5edf1; }
  .app-shell[data-view="inbox"] .conversation-name { font-size: 13px; }
  .app-shell[data-view="inbox"] .conversation-preview,
  .app-shell[data-view="inbox"] .conversation-last { font-size: 12px; }
  .app-shell[data-view="inbox"] .inbox-workspace .chat-pane,
  .app-shell[data-view="inbox"] .inbox-workspace .conversation-context { display: none; }
  .app-shell[data-view="inbox"] .inbox-workspace.mobile-chat .conversation-list { display: none; }
  .app-shell[data-view="inbox"] .inbox-workspace.mobile-chat .chat-pane { display: flex; flex: 1; min-height: 0; width: 100%; }
  .app-shell[data-view="inbox"] .inbox-workspace .chat-header { display: flex; flex-wrap: wrap; min-height: 0; padding: 7px 9px; gap: 6px; }
  .app-shell[data-view="inbox"] .mobile-inbox-back { display: inline-flex; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .app-shell[data-view="inbox"] .inbox-workspace .chat-header > .avatar { width: 32px; height: 32px; }
  .app-shell[data-view="inbox"] .inbox-workspace .chat-header h2 { font-size: 13px; }
  .app-shell[data-view="inbox"] .inbox-workspace .chat-header small { font-size: 10px; }
  .app-shell[data-view="inbox"] .inbox-workspace .chat-header > .badge { display: inline-flex; max-width: 110px; font-size: 9px; }
  .app-shell[data-view="inbox"] .chat-layout-actions { flex-basis: auto; gap: 4px; margin-left: auto; }
  .app-shell[data-view="inbox"] .chat-expand-toggle { min-height: 44px; padding: 6px 8px; }
  .app-shell[data-view="inbox"] .chat-header :is(.context-toggle, .conversation-tools-toggle) { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
  .app-shell[data-view="inbox"] .chat-primary-actions { flex-basis: 100%; justify-content: flex-start; gap: 4px; }
  .app-shell[data-view="inbox"] .chat-primary-actions :is(.button, .text-button) { min-height: 44px; padding: 6px 9px; font-size: 11px; }
  .app-shell[data-view="inbox"] .chat-summary { min-height: 0; padding: 5px 10px; gap: 4px 7px; font-size: 10px; }
  .app-shell[data-view="inbox"] .chat-summary-item { max-width: 100%; }
  .app-shell[data-view="inbox"] .chat-summary-tags { margin-left: 0; }
  .app-shell[data-view="inbox"] .summary-more { min-height: 44px; padding: 4px 7px; }
  .app-shell[data-view="inbox"] .chat-queue-state { padding: 5px 9px; }
  .app-shell[data-view="inbox"] .chat-queue-state .button { min-height: 44px; }
  .app-shell[data-view="inbox"] .inbox-workspace .messages { flex: 1; min-height: 0; padding: 12px 10px; gap: 10px; }
  .app-shell[data-view="inbox"] .inbox-workspace .message { max-width: 95%; padding: 8px 10px; font-size: 13px; line-height: 1.55; }
  .app-shell[data-view="inbox"] .message .message-meta { display: inline-block; margin: 4px 7px 0 0; font-size: 10px; }
  .app-shell[data-view="inbox"] .message-reply-button { position: static; float: none; display: inline-flex; min-height: 44px; margin: 0 0 0 auto; padding: 5px 7px; border: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; font-size: 10px; }
  .app-shell[data-view="inbox"] .attachment-actions .text-button,
  .app-shell[data-view="inbox"] .attachment-rate button,
  .app-shell[data-view="inbox"] .attachment-expand { min-height: 44px; }
  .app-shell[data-view="inbox"] .inbox-copilot { max-height: min(28dvh, 220px); }
  .app-shell[data-view="inbox"] .inbox-copilot > summary { min-height: 44px; padding: 7px 10px; }
  .app-shell[data-view="inbox"] .inbox-workspace .composer-area { max-height: 55dvh; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); }
  .app-shell[data-view="inbox"] .composer-area form { padding: 6px 8px; }
  .app-shell[data-view="inbox"] .composer-area textarea { min-height: 40px; max-height: 100px; font-size: 16px; line-height: 1.45; }
  .app-shell[data-view="inbox"] .composer-footer { gap: 3px 7px; padding-top: 2px; }
  .app-shell[data-view="inbox"] .composer-tools { gap: 0 11px; }
  .app-shell[data-view="inbox"] .composer-mode-tabs button { min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] .composer-tools .text-button,
  .app-shell[data-view="inbox"] .composer-footer > .button,
  .app-shell[data-view="inbox"] .voice-recorder button { min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] .composer-note,
  .app-shell[data-view="inbox"] .inbox-workspace .composer-note { font-size: 10px; line-height: 1.45; }
  .app-shell[data-view="inbox"] .handoff-banner .text-button { min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] .attachment-selection > .icon-button,
  .app-shell[data-view="inbox"] .reply-clear-quote { width: 44px; height: 44px; }
  .app-shell[data-view="inbox"] .new-message-indicator { bottom: 214px; min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] .inbox-workspace:not(.context-collapsed).mobile-chat .conversation-context { display: block; position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; max-height: 100%; padding: 13px; border: 0; box-shadow: none; }
  .app-shell[data-view="inbox"] .conversation-context > .eyebrow { padding-right: 44px; }
  .app-shell[data-view="inbox"] .context-close { top: 5px; right: 7px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .app-shell[data-view="inbox"] .context-person { padding: 12px 0; }
  .app-shell[data-view="inbox"] .context-person h3 { font-size: 14px; }
  .app-shell[data-view="inbox"] .client-fields > div { grid-template-columns: 64px minmax(0, 1fr); margin-top: 6px; font-size: 12px; }
  .app-shell[data-view="inbox"] .context-section :is(input, select) { min-height: 44px; font-size: 16px; }
  .app-shell[data-view="inbox"] .context-section .button,
  .app-shell[data-view="inbox"] .client-notes summary,
  .app-shell[data-view="inbox"] .client-record-actions .text-button { min-height: 44px; font-size: 12px; }
  .app-shell[data-view="inbox"] .context-section label { font-size: 11px; margin-bottom: 8px; }
  .app-shell[data-view="inbox"] .attendance-history > summary { min-height: 44px; font-size: 12px; }
  .app-shell[data-view="inbox"] .conversation-tools-panel { inset: 0; width: 100%; border: 0; box-shadow: none; }
  .app-shell[data-view="inbox"] .conversation-tools-header .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .app-shell[data-view="inbox"] .conversation-tools-search { min-height: 44px; }
  .app-shell[data-view="inbox"] .conversation-tools-search input { font-size: 16px; }
  .app-shell[data-view="inbox"] .conversation-tools-filters button,
  .app-shell[data-view="inbox"] .conversation-tools-footer button,
  .app-shell[data-view="inbox"] .conversation-tools-item .text-button { min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] .conversation-tools-item { padding: 10px; font-size: 12px; }
  .app-shell[data-view="inbox"] .conversation-tool-heading .icon-button,
  .app-shell[data-view="inbox"] .conversation-tool-navigation .icon-button,
  .app-shell[data-view="inbox"] .conversation-tool-file-actions .icon-button { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
  .app-shell[data-view="inbox"] .conversation-tool-search { min-height: 44px; }
  .app-shell[data-view="inbox"] .conversation-tool-search input { font-size: 16px; }
  .app-shell[data-view="inbox"] .conversation-tool-modes .text-button,
  .app-shell[data-view="inbox"] .conversation-tool-filter,
  .app-shell[data-view="inbox"] .conversation-tool-file-actions .text-button { min-height: 44px; font-size: 11px; }
  .app-shell[data-view="inbox"] .conversation-tool-excerpt { font-size: 12px; }
  .app-shell.chat-expanded[data-view="inbox"] .inbox-content { padding: 0; }
  .app-shell.chat-expanded[data-view="inbox"] .inbox-workspace .chat-pane { display: flex; }
  .app-shell.chat-expanded[data-view="inbox"] .chat-header { display: flex; flex-wrap: wrap; padding: max(7px, env(safe-area-inset-top)) 10px 7px; gap: 6px; }
  .app-shell.chat-expanded[data-view="inbox"] .chat-layout-actions { flex-basis: 100%; grid-column: auto; grid-row: auto; margin: 0; gap: 5px; }
  .app-shell.chat-expanded[data-view="inbox"] :is(.chat-expand-toggle, .chat-conversations-toggle) { min-height: 44px; height: 44px; padding: 6px 9px; font-size: 11px; }
  .app-shell.chat-expanded[data-view="inbox"] .chat-header > .avatar { width: 32px; height: 32px; }
  .app-shell.chat-expanded[data-view="inbox"] .chat-contact-info { flex: 1; }
  .app-shell.chat-expanded[data-view="inbox"] .chat-header > .badge { display: inline-flex; font-size: 9px; }
  .app-shell.chat-expanded[data-view="inbox"] .chat-header h2 { font-size: 14px; }
  .app-shell.chat-expanded[data-view="inbox"] .chat-summary { padding: 5px 10px; }
  .app-shell.chat-expanded[data-view="inbox"] .messages { padding: 12px 10px; }
  .app-shell.chat-expanded[data-view="inbox"] .message { max-width: 95%; }
  .app-shell.chat-expanded[data-view="inbox"] .composer-area { padding: 7px 8px max(7px, env(safe-area-inset-bottom)); }
  .app-shell.chat-expanded[data-view="inbox"] .composer-area > form { padding: 6px 8px; }
  .app-shell.chat-expanded[data-view="inbox"] .composer-area textarea { min-height: 40px; font-size: 16px; }
  .app-shell.chat-expanded[data-view="inbox"] .inbox-workspace:not(.context-collapsed) .conversation-context { display: block; position: absolute; inset: 0; width: 100%; padding: 13px; border: 0; box-shadow: none; }
  .app-shell.chat-expanded[data-view="inbox"] .context-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; top: 5px; right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell[data-view="inbox"] .conversation-item,
  .app-shell[data-view="inbox"] .message-reply-button { transition: none; }
}
@media (any-hover: none) and (min-width: 761px), (pointer: coarse) and (min-width: 761px) {
  .app-shell[data-view="inbox"] .message-reply-button { position: static; float: none; min-height: 44px; margin: 0; background: transparent; border: 0; box-shadow: none; opacity: 1; pointer-events: auto; }
}

/* Pessoas deste atendimento: mesma hierarquia compacta da caixa, responsável separado. */
.app-shell[data-view="inbox"] .attendance-role { display:inline-flex; align-items:center; margin-top:3px; padding:2px 6px; border-radius:4px; background:#edf2f6; color:var(--attendance-muted); font-size:9px; font-weight:700; line-height:1.4; }
.app-shell[data-view="inbox"] .attendance-role.collaborator { background:var(--attendance-mint); color:var(--attendance-green); }
.app-shell[data-view="inbox"] .attendance-role.responsible { background:#eaf0f8; color:var(--attendance-ink); }
.app-shell[data-view="inbox"] .chat-primary-actions .participants-trigger { display:flex; gap:5px; flex-shrink:0; min-height:30px; padding:5px 8px; border:1px solid var(--attendance-line); border-radius:6px; color:var(--attendance-ink); font-size:10px; }
.app-shell[data-view="inbox"] .collaboration-banner { display:flex; align-items:flex-start; gap:7px; margin-bottom:7px; padding:7px 9px; border-left:3px solid #7fa991; border-radius:3px; background:var(--attendance-mint); color:var(--attendance-green); font-size:10px; line-height:1.5; }
.app-shell[data-view="inbox"] .collaboration-banner > .icon { width:15px; height:15px; flex-shrink:0; margin-top:1px; }
#modal:has([data-participants-panel]) { width:min(480px,calc(100vw - 24px)); padding:20px; }
.participants-panel { color:#193149; font-size:12px; }
.participants-loading { display:flex; align-items:center; gap:8px; padding:24px 0; color:#60778b; }
.participants-loading .icon { width:17px; height:17px; }
.participants-intro { display:flex; gap:9px; align-items:flex-start; padding:10px 12px; border:1px solid #dce6ec; border-radius:7px; background:#f4f7f9; }
.participants-intro > .icon { width:18px; height:18px; flex-shrink:0; margin-top:2px; color:#27644b; }
.participants-intro p { margin:0; font-size:11px; line-height:1.6; color:#60778b; }
.participants-section { margin:16px 0 0; }
.participants-section h3 { margin:0 0 7px; color:#193149; font-size:11px; font-weight:750; }
.participants-section-heading { display:flex; gap:8px; align-items:baseline; }
.participants-section-heading > span { color:#60778b; font-size:10px; }
.participants-person { display:flex; align-items:center; gap:9px; min-height:51px; padding:8px 10px; border-bottom:1px solid #e7edf1; }
.participants-responsible { border:1px solid #cbdde4; border-radius:7px; background:#f7fafb; }
.participants-avatar { display:grid; place-items:center; flex-shrink:0; width:31px; height:31px; border-radius:9px; background:#e8f5ee; color:#27644b; font-size:10px; font-weight:750; }
.participants-avatar.responsible { background:#e5edf5; color:#193149; }
.participants-person-copy { display:grid; gap:3px; min-width:0; flex:1; }
.participants-person-copy strong { overflow-wrap:anywhere; font-size:12px; font-weight:650; }
.participants-person-copy small,.participants-empty { color:#60778b; font-size:10px; line-height:1.5; }
.participants-role { margin-left:auto; color:#60778b; font-size:9px; }
.participants-list { list-style:none; margin:0; padding:0; }
.participants-list > .participants-empty { padding:10px 0; }
.participants-remove { width:30px; min-width:30px; height:30px; min-height:30px; padding:6px; border:1px solid #dce6ec; border-radius:6px; color:#60778b; }
.participants-remove:hover { border-color:#d8aaa3; color:#9b4033; background:#fff6f4; }
.participants-add { display:grid; gap:10px; margin-top:15px; padding-top:14px; border-top:1px solid #dce6ec; }
.participants-add label { display:grid; gap:6px; margin:0; color:#193149; font-size:11px; }
.participants-add label > span { display:inline; color:#60778b; font-weight:400; }
.participants-add :is(select,input) { width:100%; min-height:38px; padding:8px 10px; border:1px solid #dce6ec; border-radius:6px; color:#193149; font:inherit; background:#fff; }
.participants-add > .button { justify-self:start; min-height:36px; font-size:11px; }
.participants-readonly { margin:14px 0 0; padding-top:12px; border-top:1px solid #dce6ec; color:#60778b; font-size:11px; line-height:1.6; }
.participants-feedback { margin:9px 0 0; color:#9b4033; font-size:11px; line-height:1.5; }
.participants-status { margin:8px 0 0; color:#27644b; font-size:11px; line-height:1.5; }
.participants-feedback:empty,.participants-status:empty { display:none; }
.participants-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:15px; padding-top:12px; border-top:1px solid #dce6ec; }
.participants-footer small { color:#60778b; font-size:10px; line-height:1.5; }
.participants-footer .button { min-height:34px; font-size:11px; }
@media (max-width:760px) {
  .app-shell[data-view="inbox"] .chat-primary-actions .participants-trigger { min-height:44px; padding:6px 9px; font-size:11px; }
  .app-shell[data-view="inbox"] .collaboration-banner { font-size:11px; }
  #modal:has([data-participants-panel]) { padding:16px; }
  .participants-add :is(select,input) { min-height:44px; font-size:16px; }
  .participants-remove { width:44px; min-width:44px; height:44px; min-height:44px; }
  .participants-add > .button,.participants-footer .button { min-height:44px; }
}
