.service-toolbar,.service-counts,.service-connect-summary,.service-item-top,.service-message header,.service-composer-tools,.service-file { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.service-toolbar { margin-bottom:18px;flex-wrap:wrap; }
.service-chat-channels { display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px; }
.service-counts { justify-content:flex-start;color:var(--muted);font-size:13px; }
.service-counts strong { color:var(--ink);font-size:20px; }
.service-grid { display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:20px;align-items:start; }
.service-grid>.card { min-width:0; }
.service-feedback:empty { display:none; }
.service-feedback .form-error { margin:0 0 14px; }
.service-queue-list { max-height:680px;overflow:auto; }
.service-queue-item { display:grid;gap:6px;width:100%;padding:18px 20px;text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--muted);font-size:12px;overflow-wrap:anywhere; }
.service-queue-item:hover { background:#f6faff; }
.service-queue-item.selected { background:var(--blue-soft);box-shadow:inset 3px 0 var(--blue); }
.service-item-top { align-items:flex-start;font-size:11px;flex-wrap:wrap; }
.service-item-subject { color:var(--ink);font-size:13px;font-weight:600; }
.service-status { display:inline-block;padding:3px 7px;background:#edf1f6;border-radius:5px;font-size:10px;color:#52677d; }
.service-status[data-status=active],.service-status[data-status=in-progress] { background:#e7f2ff;color:#0761a9; }
.service-status[data-status=waiting] { background:#fff3db;color:#8f6313; }
.service-status[data-status=completed] { background:#e5f6ee;color:#207f58; }
.service-detail-header { align-items:flex-start;flex-wrap:wrap;gap:15px; }
.service-detail-header .heading-actions { flex-wrap:wrap; }
.service-detail-header p { margin:7px 0 0;overflow-wrap:anywhere; }
.service-filter { padding:0 16px 16px; }
.service-empty { padding:30px 22px;color:var(--muted);font-size:13px;text-align:center; }
.service-empty h2 { font-size:17px;color:var(--ink); }
.service-transcript { display:flex;flex-direction:column;gap:14px;max-height:480px;min-height:210px;overflow:auto;padding:20px;background:#f8fbfe; }
.service-message { width:90%;max-width:760px;align-self:flex-end;padding:14px 17px;background:#e9f3ff;border:1px solid #d7e7f9;border-radius:10px;min-width:0; }
.service-message.from-customer { align-self:flex-start;background:#fff;border-color:var(--line); }
.service-message header { align-items:flex-start;font-size:11px;flex-wrap:wrap; }
.service-message time { color:var(--muted);font-size:10px; }
.service-message p { margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px; }
.service-attachment { display:block;margin-top:9px;font-size:12px;overflow-wrap:anywhere; }
.service-composer { padding:18px 22px;border-top:1px solid var(--line); }
.service-composer>label { display:block;margin-bottom:8px;font-size:12px;font-weight:600; }
.service-composer textarea { width:100%;resize:vertical;min-height:90px; }
.service-composer-tools { margin-top:10px;flex-wrap:wrap; }
.service-file-button { color:var(--blue);font-size:12px;min-width:0; }
.service-file-button input { display:block;max-width:240px;margin-top:5px;font-size:11px; }
.service-file { margin-top:9px;font-size:12px;overflow-wrap:anywhere; }
.service-inline-form { margin-bottom:20px;padding:22px; }
.service-inline-form>.card-title { margin:0 0 18px; }
.service-form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.service-field { display:grid;gap:7px;margin-bottom:15px;min-width:0;font-size:12px;font-weight:600; }
.service-field .form-input { width:100%;font-weight:400; }
.service-check { display:flex;align-items:center;gap:8px;font-size:13px;margin:12px 0; }
.service-connect-summary { padding:20px 22px;margin-bottom:20px;flex-wrap:wrap; }
.service-connect-summary p { font-size:12px;margin:7px 0 0; }
.service-call-meta { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;font-size:12px;margin:5px 0 22px; }
.service-call-meta dt { color:var(--muted); }
.service-call-meta dd { margin:4px 0 0;color:var(--ink);overflow-wrap:anywhere; }
.service-fieldset { padding:0;margin:0;border:0;min-width:0; }
.service-customer-context { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 18px;padding:12px 14px;border:1px solid #dce6ef;border-radius:8px;background:#f6faff;font-size:12px; }
.service-customer-context>div:first-child { display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere; }
.service-customer-context .heading-actions { flex-wrap:wrap;flex-shrink:0; }
.service-customer-context[data-recognition-status="ambiguous"],.service-customer-context[data-recognition-status="unknown"] { background:#fff9ec;border-color:#eadbb9; }
[data-connect-call-context] .service-customer-context { margin:0;border-width:0 0 1px;border-radius:0; }
@media(max-width:650px) { .service-customer-context { align-items:stretch;flex-direction:column; }.service-customer-context .heading-actions { width:100%; }.service-customer-context .button { flex:1; } }
.service-call-actions { flex-wrap:wrap; }
.service-linked-ticket { margin-top:20px;padding-top:16px;border-top:1px solid var(--line); }
.service-loading { padding:25px; }
.service-setup-help { margin:0 0 22px;border:1px solid #d5e5f5;border-radius:8px;background:#f6faff; }
.service-setup-help>summary { padding:14px 16px;cursor:pointer;color:var(--blue-dark);font-size:13px;font-weight:600; }
.service-setup-help>summary:focus-visible,.service-setup-help pre:focus-visible { outline:2px solid var(--blue);outline-offset:3px; }
.service-setup-help-hint { display:block;margin:4px 0 0 16px;color:var(--muted);font-size:12px;font-weight:400; }
.service-setup-help[open]>summary { border-bottom:1px solid #d5e5f5; }
.service-setup-help-body { padding:2px 18px 18px;font-size:13px;line-height:1.7; }
.service-setup-help-body ol { padding-left:23px; }
.service-setup-help-body li { padding-left:4px;margin-bottom:20px; }
.service-setup-help-body h3 { margin:0 0 6px;font-size:13px;color:var(--ink); }
.service-setup-help-body p { margin:8px 0; }
.service-setup-help-body pre { max-width:100%;padding:14px;overflow:auto;border-radius:6px;background:#18334e;color:#edf6ff;font-size:12px;line-height:1.7; }
.service-setup-help-body code { overflow-wrap:anywhere;font-size:12px; }
.service-setup-help-body pre code { overflow-wrap:normal; }
.service-setup-origin,.service-setup-urls { padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:white; }
.service-setup-origin code { display:block; }
.service-setup-urls dt { font-size:12px;color:var(--muted); }
.service-setup-urls dd { margin:2px 0 10px; }
.service-setup-urls dd:last-child { margin-bottom:0; }
.service-setup-troubleshooting { padding-top:16px;border-top:1px solid var(--line); }
.service-setup-links { display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:14px; }
.amazon-connect-panel { position:fixed;bottom:43px;right:20px;width:360px;max-width:calc(100vw - 30px);z-index:25;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px #17324f30;overflow:hidden; }
.amazon-connect-panel>header { display:flex;align-items:center;justify-content:space-between;padding:10px 15px;border-bottom:1px solid var(--line);font-size:13px; }
#amazon-connect-ccp { width:100%;height:520px;max-height:calc(100vh - 155px); }
#amazon-connect-ccp iframe { width:100%;height:100%;border:0; }
@media(max-width:900px) { .service-grid { grid-template-columns:240px minmax(0,1fr);gap:14px; } .service-detail-header .heading-actions { width:100%; } }
@media(max-width:650px) { .service-grid,.service-form-grid { grid-template-columns:minmax(0,1fr); } .service-queue-list { max-height:260px; } .service-message { width:96%; } .service-inline-form,.service-connect-summary { padding:18px; } .service-toolbar .heading-actions,.service-call-actions { width:100%;flex-wrap:wrap; } .service-toolbar .button,.service-call-actions .button { flex:1; } .service-composer { padding:17px; } .service-transcript { padding:14px;max-height:420px; } .service-connect-summary .heading-actions { flex-wrap:wrap; } .amazon-connect-panel { right:15px; } }
