/* Extracted from support.html */

    /* Muted KPI icons — uniform subtle blue palette */
    .stat-card-icon--blue,
    .stat-card-icon--green,
    .stat-card-icon--yellow,
    .stat-card-icon--red,
    .stat-card-icon--cyan,
    .stat-card-icon--purple { background: #e8f0fa; color: #5b8db8; }

    /* Lighter, smaller badges with round corners */
    .badge, .ticket-badge { font-size: 0.75rem !important; font-weight: 500 !important; padding: 3px 10px !important; border-radius: 3px !important; }
    .badge--blue, .ticket-badge--tenant { background: #e8f0fa; color: #5b8db8; }
    .badge--yellow, .ticket-badge--owner { background: #fdf6e3; color: #b8956a; }
    .ticket-badge--urgent { background: #fde8e8; color: #b86a6a; }

    /* Reduce top space in card body lists */
    .card-body .attention-list, .card-body .attention-list > li:first-child,
    .card-body .ticket-row:first-child { padding-top: 0; }

    /* Support inbox — modern design */
    .support-layout{display:flex;height:calc(100vh - 220px);min-height:440px;max-height:720px;background:#fff;border:1px solid var(--color-border);border-radius:4px;overflow:hidden;box-shadow:0 1px 3px rgba(15,23,42,0.04)}
    .support-sidebar{width:340px;background:#fff;border-right:1px solid var(--color-border);display:flex;flex-direction:column;flex-shrink:0}
    .support-sidebar-header{padding:16px 18px 12px;display:flex;align-items:center;gap:10px}
    .support-sidebar-header .page-title{flex:0 1 auto}
    .conv-filter{display:inline-flex;gap:2px;background:#eef1f6;padding:2px;border-radius:4px;margin-left:auto;flex-shrink:0}
    .conv-filter-btn{padding:3px 9px;font-size:0.75rem;font-weight:600;color:var(--color-text-secondary);background:transparent;border:none;border-radius:3px;cursor:pointer;transition:background .12s, color .12s;text-transform:uppercase;letter-spacing:0.04em;line-height:1.4}
    .conv-filter-btn:hover{color:var(--color-text-primary)}
    .conv-filter-btn.active{background:#fff;color:var(--color-primary);box-shadow:0 1px 2px rgba(15,23,42,0.08)}

    .conv-tag--resolved{background:#dcfce7;color:#166534}
    .conv-item--resolved{opacity:0.72}
    .conv-item--resolved .conv-title{color:#5b6b7f;font-weight:500}
    .conv-item--resolved::before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:3px;background:#22c55e;border-radius:0 2px 2px 0}
    .conv-resolved-icon{width:13px;height:13px;color:#16a34a;flex-shrink:0}
    .conv-list{overflow-y:auto;flex:1;padding:6px}
    .conv-item{padding:11px 14px 11px 16px;border-radius:4px;cursor:pointer;transition:background 0.12s;margin-bottom:6px;position:relative;border:1px solid #c9d2de}
    .conv-item:hover{border-color:#9aa9bf}
    .conv-item:hover{background:#f6f8fb}
    .conv-item--active{background:#eef4fc}
    .conv-item--active::before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:3px;background:var(--color-primary);border-radius:0 2px 2px 0}
    .conv-item--private::before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:3px;background:#c9a75b;border-radius:0 2px 2px 0}
    .conv-top{display:flex;align-items:center;gap:6px;margin-bottom:3px}
    .conv-title{font-size:0.8125rem;font-weight:600;color:#2c3440;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .conv-tag{font-size: 0.75rem;font-weight:500;padding:1px 7px;border-radius:4px;flex-shrink:0;text-transform:none}
    .conv-tag--private{background:#fdf6e3;color:#b8956a}
    .conv-preview{font-size:0.75rem;color:#7d8896;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .conv-time{font-size: 0.75rem;color:#9aa3b0;flex-shrink:0;margin-left:auto}
    .conv-tag + .conv-time{margin-left:0}
    .conv-badge{font-size: 0.75rem;font-weight:600;background:var(--color-danger);color:#fff;padding:1px 7px;border-radius:9999px;min-width:18px;text-align:center;line-height:1.4}

    .chat-panel{flex:1;display:flex;flex-direction:column;background:#f6f8fb;min-width:0}
    .chat-header{padding:14px 22px;background:#fff;border-bottom:1px solid var(--color-border);display:flex;align-items:center;gap:10px}
    .chat-status-dot{width:8px;height:8px;background:var(--color-success);border-radius:50%;display:inline-block;box-shadow:0 0 0 3px rgba(26,138,94,0.15)}
    .chat-title{margin:0;font-size:0.9375rem;font-weight:600;color:#2c3440}
    .chat-subtitle{font-size:0.75rem;color:#7d8896;margin-left:auto}
    .chat-messages,.conv-list{scrollbar-width:thin;scrollbar-color:#c9d2de transparent}
    .chat-messages::-webkit-scrollbar,.conv-list::-webkit-scrollbar{width:12px}
    .chat-messages::-webkit-scrollbar-track,.conv-list::-webkit-scrollbar-track{background:transparent}
    .chat-messages::-webkit-scrollbar-thumb,.conv-list::-webkit-scrollbar-thumb{background:#c9d2de;border-radius:4px}
    .chat-messages::-webkit-scrollbar-thumb:hover,.conv-list::-webkit-scrollbar-thumb:hover{background:#9aa9bf}
    .chat-messages{flex:1;overflow-y:auto;padding:22px 26px;display:flex;flex-direction:column;gap:14px}
    .msg{max-width:68%;display:flex;flex-direction:column}
    .msg--in{align-self:flex-start}
    .msg--out{align-self:flex-end}
    .msg-bubble{padding:10px 14px;font-size:0.8125rem;line-height:1.5;border-radius:4px;word-wrap:break-word}
    .msg--in .msg-bubble{background:#fff;color:#1a2332;border:1px solid #c9d2de;box-shadow:0 2px 6px rgba(15,23,42,0.10)}
    .msg--out .msg-bubble{background:var(--color-primary);color:#fff;box-shadow:0 2px 4px rgba(13,74,138,0.25)}
    .msg--new .msg-bubble{background:#fff7ed;border-color:#f59e0b;border-left:3px solid #f59e0b;padding-left:12px;box-shadow:0 2px 8px rgba(245,158,11,0.20)}
    .msg-meta{font-size: 0.75rem;color:#9aa3b0;margin-top:5px;padding:0 6px}
    .msg--out .msg-meta{text-align:right}

    .chat-input{padding:14px 22px 18px;background:#fff;border-top:1px solid var(--color-border);display:flex;flex-direction:column;gap:8px}
    .chat-input-row{display:flex;gap:10px;align-items:flex-end}
    .chat-reply{flex:1;min-width:0;resize:none;padding:10px 12px;background:#fef9e7;border:1px solid #e8d98a;border-radius:4px;font-size:0.875rem;font-family:inherit;color:var(--color-primary);transition:border-color 0.15s, box-shadow 0.15s, background 0.15s}
    .chat-reply:focus{outline:none;background:#fff;border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(13,74,138,0.10)}
    .chat-attach-btn{flex-shrink:0;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--color-border);background:#fff;color:var(--color-text-secondary);border-radius:4px;cursor:pointer;transition:all .12s}
    .chat-attach-btn:hover{color:var(--color-primary);border-color:var(--color-primary);background:var(--color-primary-subtle)}
    .chat-attach-btn svg{width:18px;height:18px}
    .chat-attachments{display:flex;flex-wrap:wrap;gap:6px}
    .chat-attachments[hidden]{display:none}
    .chat-attachment{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 8px;background:#eef4fc;color:#1e5a8a;border:1px solid #c9d6ec;border-radius:4px;font-size:0.75rem;font-weight:500;max-width:220px}
    .chat-attachment svg.attach-icon{width:13px;height:13px;flex-shrink:0}
    .chat-attachment-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .chat-attachment-remove{background:none;border:none;cursor:pointer;color:#1e5a8a;padding:2px;display:inline-flex;align-items:center;border-radius:3px;flex-shrink:0}
    .chat-attachment-remove:hover{background:rgba(30,90,138,0.12)}
    .chat-attachment-remove svg{width:11px;height:11px}
  
