/* Support chat box + inbox (SUPPORT round, Er Dk 2026-10-18). */
.sc-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1150; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--accent-mid, #1d4e89); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 35, 63, .28); }
.sc-fab:hover, .sc-fab.is-open { filter: brightness(1.08); }
.sc-fab-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #e53935; border: 2px solid #fff; }
html.pa-win .sc-fab { bottom: 76px; }
body.rail-bottom .sc-fab { bottom: 84px; }
.sc-box { position: fixed; right: 18px; bottom: 82px; z-index: 1160; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px));
  background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(16, 35, 63, .3); display: flex; flex-direction: column;
  overflow: hidden; color: var(--ink, #10233f); font-size: 14px; line-height: 1.5; }
.sc-box[hidden] { display: none; }
html.pa-win .sc-box { bottom: 140px; height: min(520px, calc(100vh - 170px)); }
body.rail-bottom .sc-box { bottom: 146px; height: min(520px, calc(100vh - 170px)); }
.sc-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--accent-mid, #1d4e89); color: #fff; }
.sc-head small { display: block; font-size: 11.5px; opacity: .85; }
.sc-hbtn { background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 8px; font-size: 18px; cursor: pointer; margin-left: 6px; }
.sc-log { flex: 1; overflow-y: auto; padding: 12px; background: #f6f8fb; display: flex; flex-direction: column; gap: 8px; }
.sc-msg { max-width: 92%; align-self: flex-start; }
.sc-msg.sc-out { align-self: flex-end; }
.sc-body { background: #fff; border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 8px 11px; white-space: pre-wrap; word-wrap: break-word; }
.sc-out .sc-body { background: var(--accent-mid, #1d4e89); color: #fff; border-color: transparent; }
.sc-system .sc-body { background: #fff8e6; border-color: #f3dfa4; font-size: 13px; }
.sc-bot .sc-body { white-space: normal; }
.sc-meta { font-size: 11px; color: var(--ink-faint, #7c869a); margin: 0 4px 2px; }
.sc-lead { font-weight: 600; margin-bottom: 4px; }
.sc-ai { white-space: pre-wrap; margin-bottom: 6px; }
.sc-card { border-top: 1px solid var(--line, #e3e7ee); padding-top: 6px; margin-top: 6px; }
.sc-card:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.sc-card ol { margin: 4px 0; padding-left: 20px; }
.sc-what { color: var(--ink-soft, #33455e); font-size: 13px; }
.sc-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sc-act { border: 1px solid var(--line-strong, #c7ced9); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink, #10233f); }
.sc-act-up { border-color: var(--accent-mid, #1d4e89); color: var(--accent-mid, #1d4e89); font-weight: 600; }
.sc-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line, #e3e7ee); background: #fff; }
.sc-form[hidden] { display: none; }
.sc-form textarea { flex: 1; resize: none; border: 1px solid var(--line-strong, #c7ced9); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; max-height: 110px; }
.sc-send { width: 42px; border: 0; border-radius: 10px; background: var(--accent-mid, #1d4e89); color: #fff; font-size: 16px; cursor: pointer; }
.sc-inbox { display: block; padding: 9px 14px; border-top: 1px solid var(--line, #e3e7ee); font-size: 13px; font-weight: 600; background: #fff; }
.sc-badge, .sc-pill-red { background: #e53935; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11.5px; }
.sc-small { font-size: 12px; color: var(--ink-faint, #7c869a); }
.sc-listhead { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.sc-item { display: flex; flex-direction: column; text-align: left; gap: 2px; background: #fff; border: 1px solid var(--line, #e3e7ee); border-radius: 10px; padding: 9px 11px; cursor: pointer; font: inherit; color: inherit; }
.sc-item.is-new { border-color: var(--accent-mid, #1d4e89); box-shadow: inset 3px 0 0 var(--accent-mid, #1d4e89); }
@media (max-width: 640px) { .sc-box { right: 12px; } .sc-fab { right: 12px; } }
@media print { .sc-fab, .sc-box { display: none !important; } }
/* inbox pages */
.sc-page { max-width: 1100px; }
.sc-note { color: var(--ink-soft, #33455e); font-size: 13.5px; }
.sc-tabs { display: flex; gap: 6px; margin: 10px 0 12px; flex-wrap: wrap; }
.sc-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #e3e7ee); font-size: 13px; text-decoration: none; color: var(--ink, #10233f); background: #fff; }
.sc-tabs a.is-on { background: var(--ink, #10233f); color: #fff; border-color: var(--ink, #10233f); }
.sc-late td { background: #fff4f4; }
.sc-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #eef1f5; color: #33455e; }
.sc-pill-open { background: #fff3cd; color: #7a5a00; } .sc-pill-answered { background: #e3f4ea; color: #1e6b3c; }
.sc-tcard { overflow: hidden; }
.sc-thead { padding: 12px 16px; border-bottom: 1px solid var(--line, #e3e7ee); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-thead .sc-pill { margin-left: auto; }
.sc-log-page { max-height: 60vh; min-height: 200px; }
.sc-reply { padding: 12px 16px; border-top: 1px solid var(--line, #e3e7ee); }
.sc-reply textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line-strong, #c7ced9); border-radius: 10px; padding: 10px; font: inherit; }
.sc-reply-btns { display: flex; gap: 8px; margin-top: 8px; }
.sc-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; align-items: center; margin: 10px 0; }
.sc-row input, .sc-row select { padding: 8px 10px; border: 1px solid var(--line-strong, #c7ced9); border-radius: 8px; font: inherit; }
.sc-check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
@media (max-width: 640px) { .sc-row { grid-template-columns: 1fr; } }
.sc-key { background: #f6f8fb; border: 1px solid var(--line, #e3e7ee); border-radius: 6px; padding: 3px 8px; font-size: 13px; margin-right: 8px; }
.sc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* website visitor chat */
.vc-fab { width: auto; min-width: 56px; height: 56px; border-radius: 999px; padding: 0 16px; display: inline-flex; gap: 10px; align-items: center; }
.vc-hint { font-size: 14px; font-weight: 600; white-space: nowrap; }
.vc-fab.is-open .vc-hint, .vc-fab.vc-small .vc-hint { display: none; }
@media (max-width: 640px) { .vc-hint { display: none; } .vc-fab { width: 56px; padding: 0; justify-content: center; } }
.vc-who { display: flex; gap: 10px; align-items: center; }
.vc-who img { height: 30px; max-width: 70px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vc-chip { border: 1px solid var(--accent-mid, #1d4e89); color: var(--accent-mid, #1d4e89); background: #fff; border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 13px; cursor: pointer; }
.vc-chip:hover { background: var(--accent-mid, #1d4e89); color: #fff; }
.vc-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.vc-card { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: #f6f8fb; border: 1px solid var(--line, #e3e7ee);
  border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.vc-card b { display: block; }
.vc-card a, .vc-card button { white-space: nowrap; font-size: 12.5px; }
.vc-typing { display: inline-flex; gap: 3px; } .vc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa5b5; animation: vcb 1s infinite; }
.vc-typing i:nth-child(2) { animation-delay: .15s; } .vc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vcb { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
