/* Shared styles for the line-of-business demo systems (HelpDesk, ShopOps) */
.sys-badge { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px dashed var(--border-strong); padding: 3px 9px; border-radius: 99px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--green); padding: 4px 10px; background: var(--green-bg); border-radius: 99px; }
.stat .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.stat .ico svg { width: 16px; height: 16px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.subject { font-weight: 600; color: var(--text); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ai-badge { background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: #4f46e5; border: 1px solid #e0e7ff; }
.new-row { animation: newRow 4s ease-out; }
.new-row td:first-child { box-shadow: inset 3px 0 0 #4f46e5; }
@keyframes newRow { 0%, 40% { background: #eef2ff; } 100% { background: transparent; } }
.sla { font-size: 12px; font-weight: 600; white-space: nowrap; }
.sla.breach { color: var(--red); } .sla.soon { color: var(--amber); } .sla.ok { color: var(--muted); }

/* detail drawer */
.d-title { font-size: 17px; font-weight: 750; line-height: 1.35; }
.d-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.d-meta > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; }
.d-meta small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.d-meta select { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 0; width: 100%; cursor: pointer; outline: none; }
.timeline { position: relative; padding-left: 4px; }
.tl-item { display: flex; gap: 12px; margin-bottom: 16px; }
.tl-item .avatar { width: 30px; height: 30px; font-size: 12px; border-radius: 50%; }
.tl-body { flex: 1; min-width: 0; }
.tl-head { font-size: 12.5px; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.tl-head b { font-weight: 650; }
.tl-text { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px 12px 12px 12px; padding: 10px 12px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.tl-item.ai .tl-text { background: #eef2ff; border-color: #e0e7ff; }
.tl-item.internal .tl-text { background: #fffbeb; border-color: #fde68a; }
.tl-item.system .tl-text { background: transparent; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; }
.tl-item.system .avatar { background: #e2e8f0 !important; color: var(--muted); }
.reply { border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; }
.reply textarea { border: 0; width: 100%; min-height: 80px; padding: 12px; font: inherit; resize: vertical; outline: none; }
.reply-foot { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface-2); border-top: 1px solid var(--border); }

/* ShopOps */
.chips.row-full { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips.row-full .chip { flex: none; }
.progress { display: flex; align-items: center; margin: 6px 0 22px; }
.p-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 92px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.p-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; display: grid; place-items: center; color: #fff; }
.p-dot svg { width: 14px; height: 14px; }
.p-step.done .p-dot { background: var(--brand); border-color: var(--brand); }
.p-step.current .p-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); background: var(--brand); }
.p-step.done, .p-step.current { color: var(--text-2); }
.p-step.bad .p-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.p-line { flex: 1; height: 2px; background: var(--border-strong); margin-bottom: 22px; }
.p-line.done { background: var(--brand); }
.actions-panel { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); margin-bottom: 18px; }
.actions-panel .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.write-note { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.write-note svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.items-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.events .ev { display: flex; gap: 12px; padding: 8px 0; font-size: 13px; position: relative; }
.events .ev::before { content: ""; position: absolute; left: 5px; top: 22px; bottom: -6px; width: 2px; background: var(--border); }
.events .ev:last-child::before { display: none; }
.events .ev i { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); margin-top: 4px; flex: none; position: relative; z-index: 1; }
.events .ev.ops i { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.feed { display: grid; gap: 0; }
.feed-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; align-items: flex-start; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.feed-item .ic svg { width: 14px; height: 14px; }
.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .layout-2 { grid-template-columns: 1fr; } .sys-badge { display: none; } }
