:root {
  --sb-primary: #4e73df;
  --sb-sidebar: #1f2d56;
  --sb-sidebar-hover: #2a3c70;
}

html { font-size: 90%; }
body { background: #f7f9fc; min-height: 100vh; }
.btn { min-height: 35px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; width: 250px; height: 100vh; overflow: hidden; background: linear-gradient(180deg, var(--sb-sidebar), #142042); color: #fff; padding: 20px 12px; display: flex; flex-direction: column; }
.sidebar .brand, .sidebar .brand:hover, .sidebar .brand:focus { color: #fff; text-decoration: none; }
.sidebar .brand { font-weight: 700; margin-bottom: 22px; padding: 0 10px; display: flex; align-items: center; gap: 8px; }
.sidebar .brand img { width: 22px; height: 22px; object-fit: contain; }
.sidebar .sidebar-nav { display: flex; flex-direction: column; }
.sidebar .nav-link { color: #d7e1ff; border-radius: 8px; margin-bottom: 6px; padding: 4px 12px; }
.sidebar .nav-link:hover { background: var(--sb-sidebar-hover); color: #fff; }
.sidebar .nav-link.active { background: #3151a6; color: #fff; }
.sidebar .sidebar-section-divider { height: 1px; background: rgba(215, 225, 255, 0.28); margin: 12px 10px 8px; }
.sidebar .sidebar-section-label { color: #9eafd8; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 0 12px 7px; }
.sidebar .sidebar-divider { height: 1px; background: rgba(215, 225, 255, 0.28); margin: 8px 10px 12px; }
.sidebar .sidebar-divider.mt-auto { position: absolute; left: 22px; right: 22px; bottom: 78px; margin: 0; }
.sidebar .logout-link { position: absolute; left: 12px; right: 12px; bottom: 20px; margin-bottom: 0; padding-top: 14px; padding-bottom: 14px; }
.application-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 24px 16px; color: var(--sb-sidebar); text-decoration: none; background: #fff; border: 1px solid #e3e6f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(31,45,86,.04); transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.application-card:hover, .application-card:focus-visible { color: var(--sb-sidebar); background: #e7ebf4; border-color: #bdc8dc; transform: scale(1.05); box-shadow: 0 8px 20px rgba(31,45,86,.2); }
.application-card:focus-visible { outline: 3px solid rgba(78,115,223,.35); outline-offset: 2px; }
.application-card .dashboard-icon { flex: 0 0 auto; }
.application-card-name { color: var(--sb-sidebar); }
.application-config-card { width: 100%; font: inherit; text-align: center; cursor: pointer; }
.application-status { display: inline-flex; align-items: center; gap: 6px; color: #667085; font-size: .75rem; font-weight: 600; }
.application-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.application-status-online { color: #198754; }
.application-status-online .application-status-dot { background: #198754; }
.application-status-hidden { color: #6c757d; }
.application-status-hidden .application-status-dot { background: #6c757d; }
.content-wrap { width: calc(100% - 250px); min-width: 0; margin-left: 250px; min-height: 100vh; }
.content-wrap > .container-fluid { padding-left: 1.25rem !important; }
.topbar { background: #fff; border-bottom: 1px solid #e3e6f0; padding: 12px 18px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-scan-form { margin: 0; }
.app-toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: min(390px, calc(100vw - 36px)); pointer-events: none; }
.app-toast { display: flex; align-items: flex-start; gap: 10px; pointer-events: auto; background: #fff; border: 1px solid #dce3ef; border-left: 4px solid var(--sb-primary); border-radius: 10px; box-shadow: 0 8px 24px rgba(31,45,86,.18); padding: 12px 12px 12px 14px; font-size: .88rem; line-height: 1.35; animation: app-toast-in .18s ease-out; }
.app-toast-success { border-left-color: #198754; }
.app-toast-error { border-left-color: #dc3545; }
.app-toast-warning { border-left-color: #f0ad00; }
.app-toast-info { border-left-color: #0d6efd; }
.app-toast-icon { margin-top: 2px; }
.app-toast-success .app-toast-icon { color: #198754; }
.app-toast-error .app-toast-icon { color: #dc3545; }
.app-toast-warning .app-toast-icon { color: #d39e00; }
.app-toast-info .app-toast-icon { color: #0d6efd; }
.app-toast-message { flex: 1; overflow-wrap: anywhere; }
.app-toast-close { border: 0; background: transparent; color: #6c757d; font-size: 1.2rem; line-height: 1; padding: 0 2px; }
.app-toast-close:hover { color: #212529; }
.app-toast-hiding { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
@keyframes app-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.table-card { background: #fff; border: 1px solid #e3e6f0; border-radius: 12px; padding: 16px; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid #dce3ef; border-bottom: 0; border-radius: 8px 8px 0 0; background: #f5f7fb; }
.rich-toolbar .btn { min-width: 32px; min-height: 30px; padding: 3px 8px; }
.rich-toolbar-select { width: auto; min-width: 96px; min-height: 30px; padding: 3px 24px 3px 8px; font-size: .78rem; }
.rich-draft-status { font-size: .72rem; white-space: nowrap; }
.inbox-notification-toggle { width: 30px; height: 30px; padding: 0; line-height: 1; }
.rich-editor-surface, .reply-preview { min-height: 150px; padding: 10px 12px; border: 1px solid #dce3ef; border-radius: 0 0 8px 8px; background: #fff; outline: 0; overflow-wrap: anywhere; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5; }
.rich-editor-surface img, .reply-preview img, .ticket-message-body img { display: block; max-width: min(800px, 100%); height: auto; }
.rich-editor-surface:focus { border-color: var(--sb-primary); box-shadow: 0 0 0 .2rem rgba(78,115,223,.12); }
.signature-editor { min-height: 180px; }
.feedback-rating-link { padding-left: 0; padding-right: 0; text-decoration: none; }
.feedback-stars { color: #f5b301; letter-spacing: 1px; }
.ticket-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 33.333%); gap: 16px; align-items: start; transition: grid-template-columns .32s ease; }
.ticket-page-main { min-width: 0; }
.ticket-main-column { display: flex; flex-direction: column; }
.ticket-side-panel { min-width: 0; overflow: hidden; }
.ticket-side-panel-toggle-row { display: flex; justify-content: flex-start; min-height: 32px; margin-bottom: 8px; }
.ticket-side-panel-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ticket-side-panel-toggle [data-ticket-side-panel-icon] { transition: transform .32s ease; }
.ticket-side-panel-body { max-height: 5000px; opacity: 1; overflow: hidden; transform: translateX(0); visibility: visible; transition: max-height .32s ease, opacity .2s ease, transform .32s ease, visibility 0s linear 0s; }
.ticket-page-layout.is-side-panel-collapsed { grid-template-columns: minmax(0, 1fr) minmax(42px, 42px); }
.ticket-page-layout.is-side-panel-collapsed .ticket-side-panel-toggle-row { justify-content: center; }
.ticket-page-layout.is-side-panel-collapsed [data-ticket-side-panel-toggle-label] { display: none; }
.ticket-page-layout.is-side-panel-collapsed .ticket-side-panel-toggle [data-ticket-side-panel-icon] { transform: none; }
.ticket-page-layout.is-side-panel-collapsed .ticket-side-panel-body { max-height: 0; opacity: 0; transform: translateX(12px); visibility: hidden; pointer-events: none; transition: max-height .32s ease, opacity .2s ease, transform .32s ease, visibility 0s linear .32s; }
.reply-composer-wrap { order: -1; width: 100%; margin-bottom: 1rem; }
.reply-review-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 16px; align-items: start; }
.reply-editor-column { min-width: 0; }
.reply-review-panel { position: sticky; top: 16px; padding: 14px; border: 1px solid #dce3ef; border-radius: 10px; background: #f8faff; overflow: hidden; }
.reply-review-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(105deg, transparent 0%, transparent 35%, rgba(78,115,223,.15) 45%, rgba(255,255,255,.95) 50%, rgba(78,115,223,.15) 55%, transparent 65%, transparent 100%); background-size: 240% 100%; background-position: 100% 0; opacity: 0; pointer-events: none; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.reply-review-panel > * { position: relative; z-index: 1; }
.reply-review-panel.is-reviewing::before { opacity: 1; animation: reply-review-shimmer 1.1s linear infinite; }
@keyframes reply-review-shimmer { from { background-position: 100% 0; } to { background-position: -140% 0; } }
.reply-review-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -14px -14px 14px; padding: 10px 14px; border-bottom: 1px solid #dce3ef; border-radius: 9px 9px 0 0; background: #eef3ff; }
.reply-review-items { display: none; gap: 4px; }
.reply-review-panel.is-reviewed .reply-review-items { display: grid; animation: reply-review-results-in .28s ease both; }
.reply-review-panel.is-reviewed [data-review-instruction] { display: none; }
@keyframes reply-review-results-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.reply-review-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) max-content 24px; gap: 7px; align-items: start; padding: 5px 6px; border-bottom: 1px solid #e3e8f2; line-height: 1.25; }
.reply-review-item:last-child { border-bottom: 0; }
.reply-review-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 20px; padding: 2px 6px; font-weight: 700; line-height: 1; }
.reply-review-icon.is-pending { color: #667085; background: #eaecf0; }
.reply-review-icon.is-pass, .reply-review-icon.is-fail, .reply-review-icon.is-not-applicable { color: #fff; }
.reply-review-status { align-self: start; padding: .25rem .55rem; white-space: nowrap; line-height: 1.1; }
.reply-review-item-copy { min-width: 0; line-height: 1.25; }
.reply-review-info { padding: 0; color: #667085; line-height: 1; }
.reply-review-info:hover, .reply-review-info:focus { color: var(--sb-primary); }
.reply-review-suggestion-code { position: relative; }
.reply-review-suggestion-code pre { margin: 0; padding: 34px 12px 12px; border-radius: 8px; background: #1f2937; color: #f8fafc; font-family: var(--bs-font-monospace); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-review-suggestion-code pre code { color: inherit; white-space: inherit; }
.reply-review-suggestion-copy { position: absolute; top: 6px; right: 6px; z-index: 1; }
.reply-preview { min-height: 120px; border-radius: 8px; background: #fbfcff; }
.attachment-picker-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 8px; border: 1px solid #e3e6f0; border-radius: 6px; background: #f8faff; font-size: .8rem; }
.attachment-picker-item + .attachment-picker-item { margin-top: 4px; }
.ticket-attachments { padding: 8px 10px; border: 1px dashed #cbd4e3; border-radius: 7px; background: #f8faff; }
.ticket-attachment-link { display: block; font-size: .8rem; text-decoration: none; }
.modal-header { background: #eef3ff; }
.dashboard-icon { width: 48px; height: 48px; border-radius: 12px; background: #eaf0ff; color: var(--sb-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.dashboard-kpi { height: 100%; padding: 16px; background: #fff; border: 1px solid #e3e6f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(31,45,86,.04); }
.dashboard-kpi-label { color: #667085; font-size: .78rem; font-weight: 600; }
.dashboard-kpi-value { margin-top: 4px; color: #1f2d56; font-size: 1.65rem; font-weight: 700; line-height: 1.1; }
.dashboard-kpi-note { margin-top: 5px; color: #98a2b3; font-size: .72rem; }
.dashboard-section-title { color: #1f2d56; font-size: .95rem; font-weight: 700; }
.dashboard-attention-table td, .dashboard-attention-table th { vertical-align: middle; }
.dashboard-attention-table .dashboard-ticket-subject { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-status-card { min-width: 110px; padding: 12px; border: 1px solid #e3e6f0; border-radius: 9px; background: #f8faff; }
.dashboard-status-count { color: #1f2d56; font-size: 1.25rem; font-weight: 700; }
code { word-break: break-word; }
.kanban-board { overflow: auto; border: 1px solid #bdc8dc; border-radius: 12px; background: #f8faff; box-shadow: 0 2px 6px rgba(31,45,86,.06); }
.kanban-grid-header, .kanban-lane-row { display: grid; grid-template-columns: 190px repeat(var(--kanban-status-count, 5), minmax(0, 1fr)); min-width: 100%; }
.kanban-grid-header { position: sticky; top: 0; z-index: 2; }
.kanban-lane-heading, .kanban-column-header { padding: 12px; background: #e5ebf7; border-bottom: 2px solid #9eabc2; }
.kanban-lane-heading { border-right: 2px solid #8e9db8; }
.kanban-column-header { border-left: 1px solid #aebbd0; }
.kanban-lane-row { border-bottom: 1px solid #bdc8dc; }
.kanban-lane-row:last-child { border-bottom: 0; }
.kanban-lane-label { padding: 12px; background: #f0f4fb; border-right: 2px solid #8e9db8; min-height: 190px; }
.kanban-cell { min-height: 190px; padding: 12px; border-left: 1px solid #bdc8dc; background: #fff; transition: background .15s ease, box-shadow .15s ease; }
.kanban-cell.is-drag-over { background: #e7efff; box-shadow: inset 0 0 0 2px var(--sb-primary); }
.kanban-empty { color: #9aa6ba; font-size: .8rem; text-align: center; padding: 26px 4px; border: 1px dashed #cbd4e3; border-radius: 8px; }
.kanban-show-more { display: block; width: 100%; border: 0; background: transparent; color: var(--sb-primary); font-size: .8rem; font-weight: 600; padding: 4px 0 0; text-align: center; }
.kanban-show-more:hover { color: #28479f; text-decoration: underline; }
.ticket-card { position: relative; display: block; color: inherit; text-decoration: none; background: #fff; border: 1px solid #e1e6f0; border-radius: 8px; padding: 7px 8px 25px; margin-bottom: 6px; font-size: .78rem; box-shadow: inset 3px 0 0 var(--mailbox-color, #2563eb), 0 1px 2px rgba(31,45,86,.06); }
.ticket-card.ticket-card-waiting { border: 2px solid #6f6f6f; background: #d8d8d8; }
.ticket-card.ticket-card-waiting:hover { border-color: #4f4f4f; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.ticket-card:not(.ticket-card-waiting):hover { border-color: var(--sb-primary); box-shadow: 0 4px 12px rgba(31,45,86,.12); }
.ticket-card[draggable="true"] { cursor: grab; }
.ticket-card.is-dragging { opacity: .45; cursor: grabbing; }
.ticket-card .mb-1 { margin-bottom: 2px !important; }
.ticket-card .mt-1 { margin-top: 2px !important; }
.ticket-card .mt-2 { margin-top: 3px !important; }
.ticket-card .text-muted.small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .67rem; line-height: 1.15; }
.ticket-card .badge { padding: .25em .45em; font-size: .63rem; }
.ticket-card-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 600; line-height: 1.2; }
.ticket-mailbox-badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; margin-top: 4px; padding: 2px 6px; border-radius: 999px; color: #334155; font-size: .62rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-mailbox-new { background: color-mix(in srgb, var(--mailbox-color, #2563eb) 28%, white); font-weight: 700; }
.ticket-mailbox-read { background: color-mix(in srgb, var(--mailbox-color, #2563eb) 10%, white); opacity: .72; }
.ticket-mailbox-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--mailbox-color, #2563eb); }
.mailbox-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.mailbox-tabs { overflow-x: auto; flex-wrap: nowrap; }
.mailbox-tabs .nav-link { white-space: nowrap; }
.mailbox-tab-dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: var(--mailbox-color, #2563eb); }
.ticket-card-response { position: absolute; right: 8px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: .65rem; font-weight: 600; }
.ticket-response-waiting { color: #555; }
.ticket-response-agent { color: #198754; }
.ticket-card-chat-summary { color: #6ea8fe; }
.ticket-card-feedback { position: absolute; right: 8px; bottom: 22px; display: inline-flex; align-items: center; gap: 3px; color: #8a6500; font-size: .62rem; font-weight: 600; }
.ticket-card-feedback span { color: #f5b301; letter-spacing: 1px; }
.ticket-card-sentiment { position: absolute; left: 8px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: .65rem; font-weight: 600; }
.ticket-sentiment { display: inline-flex; align-items: center; font-size: .85rem; font-weight: 600; }
.ticket-sentiment-positive { color: #198754; }
.ticket-sentiment-neutral { color: #6c757d; }
.ticket-sentiment-negative { color: #dc3545; }
.ticket-message-sentiment { font-size: .72rem; white-space: nowrap; }
.agent-presence-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; margin-top: .35em; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.agent-presence-dot-small { width: 7px; height: 7px; flex-basis: 7px; margin: 0 3px 0 0; vertical-align: middle; }
.agent-presence-online { background: #198754; border-color: #146c43; }
.agent-presence-offline { background: #dc3545; border-color: #b02a37; }
.admin-task-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; min-height: calc(100vh - 150px); }
.admin-task-quadrant { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid #dce3ef; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(31,45,86,.05); overflow: hidden; }
.admin-task-quadrant-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-bottom: 1px solid rgba(31,45,86,.12); }
.admin-task-quadrant-header h6 { color: #1f2d56; font-size: .86rem; letter-spacing: .02em; white-space: nowrap; }
.admin-task-quadrant-subtitle { color: #475467; font-size: .75rem; font-weight: 500; }
.admin-task-quadrant-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; font-size: .9rem; }
.admin-task-quadrant-do .admin-task-quadrant-header { background: #f2c8c5; }
.admin-task-quadrant-do .admin-task-quadrant-icon { color: #b42318; background: #ffd9d6; }
.admin-task-quadrant-schedule .admin-task-quadrant-header { background: #cfe0fb; }
.admin-task-quadrant-schedule .admin-task-quadrant-icon { color: #175cd3; background: #dbeafe; }
.admin-task-quadrant-delegate .admin-task-quadrant-header { background: #f5dfad; }
.admin-task-quadrant-delegate .admin-task-quadrant-icon { color: #b54708; background: #ffecbc; }
.admin-task-quadrant-drop .admin-task-quadrant-header { background: #d9d9dc; }
.admin-task-quadrant-drop .admin-task-quadrant-icon { color: #52525b; background: #e4e4e7; }
.admin-task-quadrant-done { grid-column: 1 / -1; }
.admin-task-quadrant-done .admin-task-quadrant-header { background: #c5e5cc; }
.admin-task-quadrant-done .admin-task-quadrant-icon { color: #137333; background: #d9f2df; }
.admin-task-drop-zone { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 10px; padding: 12px; transition: background .15s ease, box-shadow .15s ease; }
.admin-task-quadrant-done .admin-task-drop-zone { flex: 0 1 auto; min-height: 92px; max-height: 124px; overflow-y: auto; }
.admin-task-drop-zone.is-drag-over { background: #edf3ff; box-shadow: inset 0 0 0 2px var(--sb-primary); }
.admin-task-card { position: relative; display: flex; align-items: flex-start; justify-content: flex-start; height: 100px; min-height: 100px; min-width: 0; padding: 11px; margin: 0; border: 1px solid #e0e6f0; border-left: 4px solid #8094c5; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(31,45,86,.05); cursor: grab; transition: opacity .15s ease, box-shadow .15s ease, transform .15s ease; }
.admin-task-card:hover { box-shadow: 0 4px 12px rgba(31,45,86,.12); transform: translateY(-1px); }
.admin-task-card.is-dragging { opacity: .45; cursor: grabbing; }
.admin-task-card-done { margin: 0; cursor: default; border-left-color: #5ba56b; background: #fbfffc; }
.admin-task-card-done:hover { transform: none; }
.admin-task-title { align-self: flex-start; color: #26334d; font-size: .83rem; font-weight: 400; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.admin-task-empty { padding: 50px 10px; color: #98a2b3; font-size: .78rem; text-align: center; border: 1px dashed #d0d5dd; border-radius: 8px; }
.admin-task-quadrant-done .admin-task-empty { padding: 18px 10px; grid-column: 1 / -1; }
.ticket-message { border: 1px solid #e3e6f0; border-left: 4px solid #8da3d9; border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fff; }
.ticket-message-inbound { border-left-color: #9ec5fe; background: #eef6ff; }
.ticket-message-outbound { border-left-color: #b8a7e8; background: #f6f2ff; }
.ticket-message-status-change { border-left-color: #e4c76a; background: #fff8df; }
.ticket-message-feedback { border-left-color: #9ccfa6; background: #eef9f0; }
.ticket-message-internal { border-left-color: #f0ad00; background: #fffaf0; }
.ticket-status-change-summary { color: #735d16; font-weight: 600; }
.ticket-message-body { white-space: normal; overflow-wrap: anywhere; }
.ticket-audit-trail { max-height: 260px; overflow-y: auto; }
.ticket-audit-line { display: grid; grid-template-columns: 132px 92px minmax(0, 1fr); gap: 6px; border-bottom: 1px solid #edf0f6; padding: 5px 0; font-size: .72rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-audit-line:last-child { border-bottom: 0; }
.ticket-audit-actor { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1199.98px) {
  .ticket-page-layout, .ticket-page-layout.is-side-panel-collapsed { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: relative; inset: auto; width: 100%; height: auto; min-height: auto; overflow: visible; }
  .sidebar .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sidebar .nav-link { margin-bottom: 0; }
  .sidebar .sidebar-divider.mt-auto { position: static; display: none; }
  .sidebar .logout-link { position: static; margin-top: 12px; }
  .content-wrap { width: 100%; margin-left: 0; min-height: 0; }
  .ticket-side-panel { width: 100%; }
  .ticket-page-layout.is-side-panel-collapsed .ticket-side-panel { min-height: 32px; }
  .topbar { align-items: flex-start !important; gap: 8px; flex-wrap: wrap; }
  .topbar-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .topbar-actions .admin-email { display: none; }
  .kanban-grid-header, .kanban-lane-row { grid-template-columns: 165px repeat(var(--kanban-status-count, 5), minmax(160px, 1fr)); }
  .reply-review-layout { grid-template-columns: 1fr; }
  .reply-review-panel { position: static; }
  .admin-task-board { grid-template-columns: 1fr; grid-template-rows: none; min-height: auto; }
  .admin-task-quadrant-done { grid-column: auto; }
  .admin-task-drop-zone { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 180px; }
  .admin-task-quadrant-done .admin-task-drop-zone { min-height: 92px; }
}
