:root{--mychat-bg:#f8fafc;--mychat-card:#fff;--mychat-line:#e5e7eb;--mychat-text:#111827;--mychat-muted:#6b7280;--mychat-accent:#f4a300;--mychat-accent-2:#fff6de;--mychat-success:#16a34a;--mychat-danger:#dc2626;--mychat-shadow:0 18px 46px rgba(15,23,42,.12)}
.mychat-modal-open{overflow:hidden}
.mychat-modal[hidden]{display:none!important}
.mychat-modal{position:fixed;inset:0;z-index:999999}
.mychat-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.mychat-modal-dialog{position:relative;max-width:1120px;width:min(1120px,calc(100vw - 24px));height:min(86vh,820px);margin:5vh auto;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 30px 80px rgba(15,23,42,.24)}
.mychat-shell{display:grid;grid-template-columns:320px minmax(0,1fr);height:100%;background:var(--mychat-bg);color:var(--mychat-text)}
.mychat-page .mychat-shell,.mychat-dashboard-surface .mychat-shell{min-height:78vh;border:1px solid var(--mychat-line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--mychat-shadow)}
.mychat-sidebar{display:flex;flex-direction:column;border-right:1px solid var(--mychat-line);background:#fff}
.mychat-sidebar-head{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 18px 14px;border-bottom:1px solid var(--mychat-line);gap:14px}
.mychat-sidebar-head h3{margin:0;font-size:20px;line-height:1.1}
.mychat-sidebar-head p{margin:4px 0 0;color:var(--mychat-muted);font-size:13px}
.mychat-sidebar-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.mychat-live-pill{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;border:1px solid var(--mychat-line);font-size:11px;font-weight:800;color:#475467;background:#fff}
.mychat-live-pill.is-live{background:#ecfdf3;border-color:#abefc6;color:#067647}
.mychat-live-pill.is-syncing{background:#fffaf0;border-color:#f0d394;color:#9a6300}
.mychat-live-pill.is-offline,.mychat-live-pill.is-error{background:#fef3f2;border-color:#fecdca;color:#b42318}
.mychat-inbox-link,.mychat-link-btn{color:#b16f00;text-decoration:none;background:none;border:0;padding:0;font-weight:700;cursor:pointer}
.mychat-list-tabs{display:flex;gap:8px;padding:12px 18px;border-bottom:1px solid var(--mychat-line)}
.mychat-list-tabs button{border:1px solid var(--mychat-line);background:#fff;padding:8px 12px;border-radius:999px;font-weight:700;color:#475467;cursor:pointer}
.mychat-list-tabs button.is-active{background:var(--mychat-accent-2);border-color:#f6d17e;color:#9a6300}
.mychat-thread-list{overflow:auto;padding:10px}
.mychat-thread-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;width:100%;border:1px solid transparent;background:#fff;padding:10px;border-radius:16px;text-align:left;cursor:pointer;margin-bottom:8px}
.mychat-thread-item:hover,.mychat-thread-item.is-active{border-color:#f0d394;background:#fffaf0}
.mychat-thread-thumb img,.mychat-thumb-placeholder{width:56px;height:56px;border-radius:12px;object-fit:cover;background:#f3f4f6;display:flex;align-items:center;justify-content:center;color:#9ca3af}
.mychat-thread-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;margin-bottom:4px}
.mychat-thread-title{font-size:13px;font-weight:700;color:#344054;line-height:1.3;margin-bottom:3px}
.mychat-thread-meta{font-size:12px;color:var(--mychat-muted);line-height:1.35}
.mychat-unread{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--mychat-accent);color:#1f2937;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.mychat-main{display:flex;flex-direction:column;min-width:0;background:var(--mychat-bg)}
.mychat-conversation-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--mychat-line);background:#fff;min-height:88px}
.mychat-head-user-wrap{display:flex;align-items:center;gap:12px;min-width:0}
.mychat-mobile-back{display:none;border:1px solid var(--mychat-line);background:#fff;border-radius:999px;width:38px;height:38px;align-items:center;justify-content:center;font-size:20px;line-height:1;cursor:pointer;color:#111827;flex:0 0 38px}
.mychat-head-user{display:flex;align-items:center;gap:12px;min-width:0}
.mychat-head-avatar img,.mychat-avatar-empty{width:48px;height:48px;border-radius:999px;background:#f3f4f6;display:block}
.mychat-head-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mychat-head-sub,.mychat-head-listing span{display:block;font-size:13px;color:var(--mychat-muted)}
.mychat-head-listing{text-align:right;min-width:0}
.mychat-head-listing a{display:block;font-weight:800;color:#111827;text-decoration:none}
.mychat-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#ecfdf3;color:#067647;font-size:11px;font-weight:800;border:1px solid #abefc6}
.mychat-safety-box{margin:14px 20px 0;padding:14px 16px;border-radius:16px;background:var(--mychat-accent-2);border:1px solid #f0d394}
.mychat-safety-box strong{display:block;margin-bottom:6px;font-size:13px}
.mychat-safety-box ul{margin:0;padding-left:18px;color:#7a5a0d;font-size:13px;line-height:1.55}
.mychat-message-list{flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:10px}
.mychat-msg{display:flex}
.mychat-msg.is-mine{justify-content:flex-end}
.mychat-bubble{max-width:min(78%,640px);padding:14px 16px;border-radius:18px;background:#fff;border:1px solid var(--mychat-line);box-shadow:0 1px 2px rgba(16,24,40,.03);line-height:1.5;font-size:14px;color:#101828}
.mychat-msg.is-mine .mychat-bubble{background:#fff7e3;border-color:#f0d394}
.mychat-msg.kind-system .mychat-bubble{background:#f8fafc;color:#475467}
.mychat-msg-time{margin-top:8px;font-size:11px;color:#98a2b3;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mychat-seen{display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;background:#ecfdf3;color:#067647;font-weight:700}
.mychat-offer-card{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}
.mychat-offer-card strong{font-size:18px}
.mychat-offer-card .status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f3f4f6;font-size:11px;font-weight:800;text-transform:capitalize}
.mychat-offer-card .status.accepted{background:#ecfdf3;color:#067647}.mychat-offer-card .status.rejected{background:#fef3f2;color:#b42318}.mychat-offer-card .status.countered{background:#fff6de;color:#9a6300}
.mychat-offer-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.mychat-offer-actions button{border:1px solid var(--mychat-line);background:#fff;padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:700}
.mychat-offer-counter{margin-top:8px;color:#7a5a0d;font-size:13px;font-weight:700}
.mychat-link-preview{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;margin-top:12px;padding:10px;border:1px solid var(--mychat-line);border-radius:14px;text-decoration:none;color:inherit;background:#fff}
.mychat-link-preview img{width:84px;height:64px;object-fit:cover;border-radius:10px}.mychat-link-preview strong{display:block;font-size:13px}.mychat-link-preview small{color:var(--mychat-muted)}
.mychat-compose-wrap{border-top:1px solid var(--mychat-line);background:#fff;padding:14px 18px 18px}
.mychat-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.mychat-chip{border:1px solid var(--mychat-line);background:#fff;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;color:#344054;cursor:pointer}
.mychat-chip:hover{background:#fffaf0;border-color:#f0d394}
.mychat-quick-replies{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.mychat-quick-replies label{font-size:12px;font-weight:800;color:#475467}
.mychat-quick-replies select{min-width:240px;max-width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--mychat-line);background:#fff}
.mychat-compose-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px}
.mychat-compose-row textarea{width:100%;resize:none;min-height:88px;border:1px solid var(--mychat-line);border-radius:16px;padding:14px 16px;font:inherit;color:#111827;background:#fff}
.mychat-send-btn,.mychat-primary-btn{border:0;background:var(--mychat-accent);color:#111827;border-radius:16px;font-weight:900;cursor:pointer;padding:14px 18px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.mychat-send-btn[disabled]{opacity:.6;cursor:not-allowed}
.mychat-empty,.mychat-head-empty{padding:24px;color:var(--mychat-muted);font-size:14px}
.mychat-login-box{padding:28px;border:1px solid var(--mychat-line);border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:12px;align-items:flex-start}.mychat-login-box p{margin:0}
.mychat-fab{position:fixed;right:22px;bottom:22px;z-index:99999;display:inline-flex;align-items:center;gap:8px;border:0;background:#111827;color:#fff;padding:14px 18px;border-radius:999px;font-weight:900;box-shadow:0 16px 32px rgba(15,23,42,.24);cursor:pointer}
.mychat-dashboard-card{background:#fff;border:1px solid var(--mychat-line);border-radius:22px;padding:20px;box-shadow:var(--mychat-shadow);margin-bottom:18px}
.mychat-dashboard-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.mychat-dashboard-card-head h3{margin:0 0 4px;font-size:22px}
.mychat-dashboard-card-head p{margin:0;color:var(--mychat-muted);font-size:14px}
.mychat-dashboard-stats{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.mychat-dashboard-stat{min-width:180px;flex:1;background:#f8fafc;border:1px solid var(--mychat-line);border-radius:18px;padding:16px}
.mychat-dashboard-stat strong{display:block;font-size:26px;line-height:1;margin-bottom:6px}
.mychat-dashboard-stat span{color:var(--mychat-muted);font-size:13px;font-weight:700}
.mychat-dashboard-recent{display:flex;flex-direction:column;gap:10px}
.mychat-dashboard-thread{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--mychat-line);border-radius:16px;background:#fff;text-decoration:none;color:inherit}
.mychat-dashboard-thread:hover{background:#fffaf0;border-color:#f0d394}
.mychat-dashboard-thread-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.mychat-dashboard-thread-copy strong{font-size:14px;color:#101828}.mychat-dashboard-thread-copy small{font-size:12px;color:var(--mychat-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.mychat-dashboard-thread-time{font-size:12px;color:var(--mychat-muted);white-space:nowrap}
.mychat-dashboard-empty{padding:10px 0;color:var(--mychat-muted);font-size:14px}
.mychat-dashboard-card.is-compact{margin-top:18px}
@media (max-width: 900px){.mychat-shell{grid-template-columns:1fr}.mychat-sidebar{border-right:0;border-bottom:1px solid var(--mychat-line);max-height:36vh}.mychat-conversation-head,.mychat-dashboard-card-head{flex-direction:column;align-items:flex-start}.mychat-head-listing{text-align:left}.mychat-modal-dialog{height:min(92vh,920px);margin:4vh auto}.mychat-compose-row{grid-template-columns:1fr}.mychat-send-btn{min-height:52px}.mychat-sidebar-actions{align-items:flex-start}.mychat-dashboard-stat{min-width:100%}.mychat-mobile-back{display:inline-flex}.mychat-shell.is-mobile-conversation{display:block}.mychat-shell.is-mobile-conversation .mychat-sidebar{display:none}.mychat-shell.is-mobile-list{display:block}.mychat-shell.is-mobile-list .mychat-main{display:none}.mychat-shell.is-mobile-conversation .mychat-main{min-height:78vh}.mychat-shell.is-mobile-conversation .mychat-conversation-head{position:sticky;top:0;z-index:2;background:#fff}.mychat-shell.is-mobile-conversation .mychat-safety-box{margin-top:10px}.mychat-shell.is-mobile-conversation .mychat-message-list{min-height:28vh}.mychat-shell.is-mobile-conversation .mychat-compose-wrap{padding-bottom:24px}}


.mychat-rtcl-shortcut {
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 0;
  flex-wrap:wrap;
}

.mychat-rtcl-shortcut .mychat-primary-btn {
  min-height:44px;
}


.mychat-ui-dialog-open{overflow:hidden}
.mychat-ui-dialog-root[hidden]{display:none!important}
.mychat-ui-dialog-root{position:fixed;inset:0;z-index:1000001}
.mychat-ui-dialog-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.mychat-ui-dialog{position:relative;width:min(92vw,420px);margin:min(14vh,120px) auto 0;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;box-shadow:0 30px 80px rgba(15,23,42,.24);padding:18px 18px 16px}
.mychat-ui-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.mychat-ui-dialog__title{margin:0;font-size:18px;line-height:1.2;color:#111827;font-weight:800}
.mychat-ui-dialog__x{border:0;background:transparent;color:#667085;font-size:28px;line-height:1;cursor:pointer;padding:0 2px}
.mychat-ui-dialog__message{font-size:15px;line-height:1.5;color:#344054;margin-bottom:14px}
.mychat-ui-dialog__input-wrap[hidden]{display:none!important}
.mychat-ui-dialog__input{width:100%;min-height:48px;border:1px solid #e5e7eb;border-radius:14px;padding:12px 14px;font:inherit;color:#111827;background:#fff;margin-bottom:14px}
.mychat-ui-dialog__actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.mychat-ui-dialog__btn{min-height:44px;padding:10px 16px;border-radius:14px;font-weight:800;cursor:pointer;border:1px solid #e5e7eb;background:#fff;color:#344054}
.mychat-ui-dialog__btn--primary{background:#f4a300;border-color:#f4a300;color:#111827}
.mychat-ui-dialog__btn--ghost{background:#fff}
@media (max-width: 640px){.mychat-ui-dialog{width:min(94vw,420px);margin:12vh auto 0;padding:16px}.mychat-ui-dialog__actions{display:grid;grid-template-columns:1fr 1fr}.mychat-ui-dialog__btn{width:100%;justify-content:center}}
