.mlc,
.mlc-toggle,
.mlc-conversations {
  --ml-green: #145747;
  --ml-dark: #103d34;
  --ml-cream: #f6f3e9;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ml-dark);
  box-sizing: border-box;
}
.mlc * {
  box-sizing: border-box;
}
.mlc-widget {
  position: fixed;
  z-index: 99990;
  right: 20px;
  bottom: 86px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(680px, calc(100dvh - 110px));
  background: #fff;
  border: 1px solid #d4e1d9;
  border-radius: 22px;
  box-shadow: 0 16px 70px #103d3433;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mlc[hidden],
.mlc [hidden] {
  display: none !important;
}
.mlc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ml-dark);
  color: white;
  padding: 18px;
}
.mlc-header button {
  color: white !important;
  background: transparent !important;
  border: 1px solid #ffffff77 !important;
}
.mlc-status {
  font-size: 12px;
  padding: 10px 16px;
  background: var(--ml-cream);
  margin: 0;
}
.mlc-log {
  flex: 1;
  min-height: 100px;
  overflow: auto;
  padding: 16px;
  overscroll-behavior: contain;
}
.mlc-message {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  background: #edf4ee;
  overflow-wrap: anywhere;
  max-width: 94%;
}
.mlc-message.mlc-customer {
  background: #f6f3e9;
  margin-left: auto;
}
.mlc-message p {
  margin: 5px 0;
  white-space: pre-wrap;
}
.mlc-message small {
  font-size: 10px;
  color: #465b50;
}
.mlc-message img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.mlc audio {
  max-width: 100%;
  width: 100%;
}
.mlc a {
  color: #145747;
  text-decoration: underline;
}
.mlc-compose {
  border-top: 1px solid #d4e1d9;
  padding: 12px;
}
.mlc textarea {
  width: 100%;
  resize: vertical;
  max-height: 140px;
  min-height: 54px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #a7bdb0;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #103d34;
}
.mlc button,
.mlc-toggle,
.mlc-conversations button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 9px 12px;
  min-height: 44px;
  border: 1px solid #9ab5a6;
  background: #fff;
  color: #103d34;
}
.mlc button:focus-visible,
.mlc a:focus-visible,
.mlc-toggle:focus-visible {
  outline: 3px solid #c58a36;
  outline-offset: 3px;
}
.mlc button[type="submit"],
.mlc-toggle {
  background: #145747;
  color: white;
  border: 0;
}
.mlc button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mlc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.mlc-controls button {
  font-size: 12px;
}
.mlc-error {
  color: #8b3122;
  font-size: 12px;
  padding: 0 12px;
  margin: 4px 0;
}
.mlc-consent {
  padding: 16px;
  overflow: auto;
}
.mlc-consent label {
  display: block;
}
.mlc-consent input {
  margin-right: 8px;
}
.mlc-consent button {
  margin-top: 14px;
}
.mlc-pending {
  font-size: 12px;
  border: 1px dashed #ad7e43;
  padding: 10px;
}
.mlc-toggle {
  position: fixed;
  z-index: 99989;
  right: 20px;
  bottom: 20px;
  border-radius: 99px;
  box-shadow: 0 8px 30px #103d3433;
  font-weight: 750;
  padding: 14px 22px;
}
.mlc-wa {
  padding: 8px;
  text-align: center;
}
.mlc-admin {
  max-width: 1000px;
  background: #fff;
  border: 1px solid #d4e1d9;
  border-radius: 16px;
  min-height: 650px;
  display: flex;
  flex-direction: column;
}
.mlc-admin .mlc-log {
  height: 390px;
  flex: auto;
}
.mlc-admin-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px;
}
.mlc-conversations {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 12px 0;
  max-width: 1000px;
}
.mlc-conversations button {
  flex-shrink: 0;
}
.mlc-conversations .selected {
  background: #145747;
  color: #fff;
}
.mlc-record-preview {
  padding: 12px;
  border: 1px solid #9ab5a6;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .mlc-widget {
    right: 8px;
    bottom: 80px;
    max-width: calc(100vw - 16px);
    height: calc(100dvh - 105px);
    border-radius: 16px;
  }
  .mlc-toggle {
    right: 12px;
    bottom: 12px;
  }
  .mlc-admin {
    min-height: 600px;
  }
  .mlc-header {
    padding: 14px;
  }
  .mlc-log {
    padding: 12px;
  }
}

.mlc-conversation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border: 1px solid #d4e1d9;
  padding: 8px;
  border-radius: 10px;
  min-width: 260px;
}
.mlc-view-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.mlc-view-tabs button {
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid #9ab5a6;
  border-radius: 8px;
  background: white;
  color: #143e33;
}
.mlc-conversation-row > button:not(:first-child) {
  font-size: 11px;
  min-height: 36px;
}

/* v0.1.2 — operator workspace. Client list never mixes with the thread view. */
#mlchat-root .mlc-admin-layout {
  --ml-forest: #123e34;
  --ml-mint: #e9f2ec;
  --ml-line: #dce6de;
  --ml-cream: #f8f6ee;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  width: min(100%, 1480px);
  gap: 16px;
  align-items: stretch;
  margin: 16px 0 28px;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#mlchat-root .mlc-sidebar,
#mlchat-root .mlc-admin {
  min-width: 0;
  height: min(790px, calc(100dvh - 175px));
  min-height: 540px;
  border: 1px solid var(--ml-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(17,60,50,.055);
  background: #fff;
}
#mlchat-root .mlc-sidebar {
  display: flex;
  flex-direction: column;
}
#mlchat-root .mlc-side-head {
  color: #fff;
  background: var(--ml-forest);
  padding: 19px 17px 13px;
}
#mlchat-root .mlc-side-head h2 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 720;
}
#mlchat-root .mlc-inbox-meta {
  font-size: 12px;
  color: #c9e2d3;
  margin: 0;
}
#mlchat-root .mlc-view-tabs {
  margin: 0;
  display: flex;
  border-bottom: 1px solid var(--ml-line);
  gap: 0;
  padding: 5px 10px;
}
#mlchat-root .mlc-view-tabs button {
  flex: 1;
  color: #465a51;
  border: none;
  border-radius: 8px;
  min-height: 39px;
  background: transparent;
  font-size: 13px;
  font-weight: 620;
}
#mlchat-root .mlc-view-tabs button.is-active {
  color: var(--ml-forest);
  background: #eaf3ed;
}
#mlchat-root .mlc-inbox-search {
  width: calc(100% - 24px);
  margin: 12px;
  min-height: 43px;
  border-radius: 10px;
  border: 1px solid var(--ml-line);
  padding: 9px 12px;
  font-size: 13px;
}
#mlchat-root .mlc-conversations {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: none;
  gap: 7px;
  padding: 0 9px 12px;
  overscroll-behavior: contain;
}
#mlchat-root .mlc-inbox-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  white-space: normal;
  min-height: 95px;
  width: 100%;
  flex-shrink: 0;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid #e4ebe5;
  border-radius: 13px;
  color: #153a30;
  background: #fff;
  box-shadow: none;
}
#mlchat-root .mlc-inbox-item:hover { border-color: #80b39b; background: #f6faf7; }
#mlchat-root .mlc-inbox-item.is-active {
  border-color: #428a65;
  background: #e8f4eb;
  box-shadow: inset 4px 0 0 #247a54;
  color: #143c32;
}
#mlchat-root .mlc-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 14px;
}
#mlchat-root .mlc-inbox-preview {
  font-size: 12px;
  color: #52675d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
#mlchat-root .mlc-inbox-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #66796f;
  font-size: 10px;
  gap: 6px;
}
#mlchat-root .mlc-unread {
  min-width: 23px;
  min-height: 23px;
  border-radius: 20px;
  padding: 1px 5px;
  background: #1b7650;
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 21px;
}
#mlchat-root .mlc-inbox-empty {
  font-size: 13px;
  color: #66796f;
  padding: 14px;
  margin: 0;
}
#mlchat-root .mlc-admin {
  margin: 0;
  max-width: none;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
#mlchat-root .mlc-admin .mlc-header {
  min-height: 69px;
  padding: 19px 20px;
  background: var(--ml-forest);
  font-size: 16px;
}
#mlchat-root .mlc-admin .mlc-status {
  color: #51665b;
  padding: 9px 18px;
  min-height: 36px;
  background: var(--ml-cream);
  font-size: 12px;
  border-bottom: 1px solid var(--ml-line);
}
#mlchat-root .mlc-admin .mlc-admin-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid var(--ml-line);
}
#mlchat-root .mlc-admin-tools[hidden] {display:none;}
#mlchat-root .mlc-state-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#mlchat-root .mlc-state-buttons button {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  min-height: 36px;
  border-color: #d4e3d7;
  border-radius: 8px;
  color: #264b3f;
  background: #fff;
}
#mlchat-root .mlc-state-buttons button:hover { border-color: #427b61; background: #eef7f0; }
#mlchat-root .mlc-state-buttons button.mlc-primary-action {
  background: #176647;
  color: #fff;
  border-color: #176647;
}
#mlchat-root .mlc-note-label { white-space: nowrap; font-size: 12px; color: #596f62; }
#mlchat-root .mlc-note-label input { vertical-align: middle; }
#mlchat-root .mlc-admin .mlc-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  height: auto;
  margin: 0;
  padding: 18px 22px;
  background: #f9faf7;
  overflow: auto;
}
#mlchat-root .mlc-admin .mlc-message {
  max-width: min(85%, 560px);
  width: fit-content;
  margin: 0;
  padding: 10px 15px;
  border-radius: 16px;
  border: 1px solid #ede8d9;
  background: #f4f0e5;
}
#mlchat-root .mlc-admin .mlc-message.mlc-customer {
  align-self: flex-start;
  margin-right: auto;
  margin-left: 0;
  border-bottom-left-radius: 4px;
}
#mlchat-root .mlc-admin .mlc-message.mlc-operator {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
  border-bottom-right-radius: 4px;
  border-color: #cae8d3;
  background: #e1f3e7;
}
#mlchat-root .mlc-admin .mlc-message small { color: #6b776e; font-size: 10px; }
#mlchat-root .mlc-empty-chat {
  margin: auto;
  text-align: center;
  max-width: 300px;
  color: #678074;
  font-size: 14px;
}
#mlchat-root .mlc-admin .mlc-compose {
  background: #fff;
  padding: 12px 15px 14px;
  border-top: 1px solid var(--ml-line);
}
#mlchat-root .mlc-admin .mlc-compose textarea { resize: none; }
#mlchat-root .mlc-admin .mlc-controls {align-items:center;}
#mlchat-root .mlc-admin .mlc-controls button {min-height: 36px; padding: 6px 10px; font-size: 12px;}
#mlchat-root .mlc-admin .mlc-controls button[type="submit"] { margin-left: auto; min-width: 72px; background: #176647; }
#mlchat-root .mlc-admin .mlc-error:empty { display: none; }
#mlchat-root .mlc-admin .mlc-error { padding: 6px 18px; margin: 0; }
@media (max-width: 820px) {
  #mlchat-root .mlc-admin-layout { grid-template-columns: 1fr; gap: 10px; }
  #mlchat-root .mlc-sidebar { height: 260px; min-height: 0; }
  #mlchat-root .mlc-admin { min-height: 530px; height: min(700px, calc(100dvh - 130px)); }
  #mlchat-root .mlc-sidebar .mlc-side-head { padding: 11px 16px; }
  #mlchat-root .mlc-sidebar .mlc-side-head h2 { font-size: 17px; }
  #mlchat-root .mlc-inbox-item { min-height: 78px; padding: 9px 12px; }
  #mlchat-root .mlc-state-buttons button { min-height: 34px; }
}
@media (max-width: 480px) {
  #mlchat-root .mlc-admin-layout { margin: 9px 0; }
  #mlchat-root .mlc-sidebar, #mlchat-root .mlc-admin { border-radius: 12px; }
  #mlchat-root .mlc-admin .mlc-log { padding: 11px; }
  #mlchat-root .mlc-admin .mlc-message { max-width: 94%; }
  #mlchat-root .mlc-admin .mlc-header { min-height: 53px; padding: 12px; }
  #mlchat-root .mlc-admin .mlc-admin-tools { padding: 8px; }
}

/* v0.1.6 — compact messenger, isolated from storefront styles. */
#mlchat-root{--mlc-accent:#c44c19;--mlc-ink:#183b32;--mlc-line:#dce5df;--mlc-paper:#fff;--mlc-chat:#efece5}
#mlchat-root *,#mlchat-root *:before,#mlchat-root *:after{box-sizing:border-box}
#mlchat-root [hidden]{display:none!important}
#mlchat-root .mlc-toggle{right:22px;bottom:calc(84px + env(safe-area-inset-bottom,0px));padding:13px 19px;font:700 14px/1.4 system-ui,sans-serif;min-height:50px;background:#c44c19!important;color:#fff!important;border:2px solid #fff;border-radius:28px;box-shadow:0 5px 20px #4f241c35;display:flex;gap:9px;align-items:center}
#mlchat-root .mlc-toggle:before{content:'';width:21px;height:19px;border:2px solid currentColor;border-radius:7px 7px 7px 0}
#mlchat-root .mlc-toggle:hover{background:#a63e14!important}
#mlchat-root .mlc-widget{bottom:calc(148px + env(safe-area-inset-bottom,0px));right:22px;width:392px;height:min(620px,calc(100dvh - 185px));max-width:calc(100vw - 32px);border-radius:18px;box-shadow:0 16px 60px #10241c38;border:1px solid #ccd8d1;background:var(--mlc-paper);color:var(--mlc-ink)}
#mlchat-root .mlc-header{min-height:66px;background:#155b49!important;color:#fff!important;padding:14px 16px;gap:10px;flex:none}
#mlchat-root .mlc-header strong{color:#fff!important;font:700 16px/1.3 system-ui,sans-serif}
#mlchat-root .mlc-header button{font-size:12px;min-height:36px;padding:6px 10px;border-radius:20px}
#mlchat-root .mlc-status{padding:8px 16px;font:12px/1.5 system-ui;color:#52665c;background:#f4f7f4;flex:none}
#mlchat-root .mlc-log{background-color:#efece5;background-image:radial-gradient(#667c6815 1px,transparent 1px);background-size:18px 18px;display:flex;flex-direction:column;gap:10px;padding:18px 14px;min-height:90px;flex:1;overflow:auto}
#mlchat-root .mlc-message,#mlchat-root .mlc-admin .mlc-message{flex-shrink:0;max-width:87%;width:fit-content;background:#fff;color:#183b32!important;border:0;box-shadow:0 1px 2px #142b1d14;padding:10px 13px;margin:0 auto 0 0;border-radius:3px 13px 13px 13px}
#mlchat-root .mlc-message.mlc-customer{margin-left:auto;margin-right:0;background:#d9f4cf;border-radius:13px 3px 13px 13px}
#mlchat-root .mlc-admin .mlc-message.mlc-customer{margin-left:0;margin-right:auto;background:#fff;border-radius:3px 13px 13px 13px;align-self:flex-start}
#mlchat-root .mlc-admin .mlc-message.mlc-operator{margin-left:auto;margin-right:0;background:#d9f4cf;border-radius:13px 3px 13px 13px;align-self:flex-end}
#mlchat-root .mlc-message p{font:14px/1.6 system-ui;color:#183b32!important;margin:5px 0;white-space:pre-wrap}
#mlchat-root .mlc-message small{display:block;font:10px/1.4 system-ui;color:#607267!important}
#mlchat-root .mlc-note-message{background:#fff0bf!important;border:1px dashed #94701e!important}
#mlchat-root .mlc-compose,#mlchat-root .mlc-admin .mlc-compose{background:#f5f7f5;border-top:1px solid #dce5df;padding:12px;flex:none;margin:0}
#mlchat-root .mlc textarea{resize:none;border:1px solid #d6e1d9;border-radius:18px;background:#fff!important;color:#183b32!important;font:16px/1.5 system-ui;padding:10px 14px;min-height:46px;max-height:120px;box-shadow:none}
#mlchat-root .mlc-controls{flex-wrap:nowrap;gap:4px;align-items:center;margin-top:6px}
#mlchat-root .mlc-controls button,#mlchat-root .mlc-admin .mlc-controls button{min-height:44px;padding:7px 8px;border:0;background:transparent;color:#345c4d;font:600 11px/1.2 system-ui;display:flex;align-items:center;gap:5px}
#mlchat-root .mlc-controls .mlc-send{margin-left:auto;background:#155b49!important;color:#fff!important;border-radius:50%;min-width:46px;min-height:46px;justify-content:center;font-size:12px}
#mlchat-root .mlc-attach:before{content:'＋';font-size:22px;font-weight:400}
#mlchat-root .mlc-record:before{content:'●';font-size:16px;color:#bf442a}
#mlchat-root .mlc-location:before{content:'⌖';font-size:22px}
#mlchat-root .mlc-error{background:#fff4e9;color:#833614;padding:8px 14px;margin:0;font:12px/1.5 system-ui;flex:none}
#mlchat-root .mlc-error:empty{display:none}
#mlchat-root .mlc-consent{background:#fff;color:#345144;font:13px/1.65 system-ui;flex-shrink:1}
#mlchat-root .mlc-consent button{background:#155b49;color:#fff;border:0;width:100%;font-weight:650}
#mlchat-root .mlc-widget:not(.mlc-ready) .mlc-log{display:none}
#mlchat-root .mlc-widget:not(.mlc-ready){height:auto;max-height:calc(100dvh - 185px)}
#mlchat-root .mlc-widget>button{border:0;background:#fff;color:#64766b;font:11px/1.4 system-ui;min-height:32px;padding:7px;flex:none}
#mlchat-root .mlc-teaser{position:fixed;z-index:99988;right:22px;bottom:calc(148px + env(safe-area-inset-bottom,0px));width:260px;max-width:calc(100vw - 32px);padding:18px 20px;background:#fff;color:#183b32;border:1px solid #e0e5df;border-radius:16px 16px 4px 16px;box-shadow:0 8px 30px #1f3b2920;font:14px/1.5 system-ui}
#mlchat-root .mlc-teaser strong{display:block;padding-right:15px;color:#183b32;font-size:14px}
#mlchat-root .mlc-teaser p{margin:6px 0 12px;color:#52665c;font:13px/1.5 system-ui}
#mlchat-root .mlc-teaser button{cursor:pointer;border:0;background:transparent;color:#a63e14;font:700 13px/1.5 system-ui;min-height:44px;padding:0}
#mlchat-root .mlc-teaser button:first-child{position:absolute;right:5px;top:2px;width:36px;font-size:22px;color:#52665c}
#mlchat-root .mlc-location-panel{padding:16px;background:#fff;border-top:1px solid #dce5df;max-height:65%;overflow:auto;flex-shrink:0;color:#183b32}
#mlchat-root .mlc-location-panel strong{font-size:16px;color:#183b32}
#mlchat-root .mlc-location-panel p{font:13px/1.5 system-ui;color:#52665c;margin:8px 0}
#mlchat-root .mlc-location-panel textarea{margin-top:10px}
#mlchat-root .mlc-location-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
#mlchat-root .mlc-location-actions button:last-child{background:#155b49;color:#fff}
#mlchat-root .mlc-action-menu{position:relative}
#mlchat-root .mlc-action-menu summary{cursor:pointer;min-height:40px;padding:10px;color:#345c4d;font:600 12px/1.5 system-ui}
#mlchat-root .mlc-action-menu .mlc-state-buttons{padding:10px;border:1px solid #dce5df;background:#fff;border-radius:12px}
#mlchat-root .mlc-admin-layout{gap:0;border:1px solid #dce5df;border-radius:16px;overflow:hidden;grid-template-columns:310px minmax(0,1fr);max-width:1440px}
#mlchat-root .mlc-admin-layout .mlc-sidebar,#mlchat-root .mlc-admin-layout .mlc-admin{border:0;border-radius:0;box-shadow:none;height:calc(100dvh - 190px);min-height:520px}
#mlchat-root .mlc-sidebar{border-right:1px solid #dce5df!important}
#mlchat-root .mlc-side-head{background:#f1f5f2;color:#183b32;min-height:66px;padding:14px 16px}
#mlchat-root .mlc-side-head h2{color:#183b32;font-size:20px}
#mlchat-root .mlc-inbox-meta{color:#64766b}
#mlchat-root .mlc-inbox-item{border:0;border-bottom:1px solid #e8eee9;border-radius:0;min-height:88px;padding:14px 12px}
#mlchat-root .mlc-conversations{padding:0;gap:0}
#mlchat-root .mlc-inbox-item.is-active{box-shadow:inset 3px 0 #155b49;background:#e9f3ec}
#mlchat-root .mlc-inbox-back{display:none}
#mlchat-root button:focus-visible,#mlchat-root summary:focus-visible,#mlchat-root a:focus-visible{outline:3px solid #df8f3a;outline-offset:3px}
@media(max-width:820px){
#mlchat-root .mlc-admin-layout{grid-template-columns:1fr}
#mlchat-root .mlc-admin-layout .mlc-sidebar{height:calc(100dvh - 180px);min-height:400px}
#mlchat-root .mlc-admin-layout .mlc-admin{display:none;height:calc(100dvh - 150px);min-height:440px}
#mlchat-root.mlc-thread-open .mlc-sidebar{display:none}
#mlchat-root.mlc-thread-open .mlc-admin{display:flex}
#mlchat-root .mlc-inbox-back{display:inline-flex}
}
@media(max-width:480px){
#mlchat-root .mlc-toggle{right:16px;bottom:calc(88px + env(safe-area-inset-bottom,0px));padding:11px 15px;min-height:48px;font-size:13px}
#mlchat-root .mlc-widget{right:8px;bottom:calc(148px + env(safe-area-inset-bottom,0px));width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 170px);border-radius:16px}
#mlchat-root .mlc-teaser{right:16px;bottom:calc(148px + env(safe-area-inset-bottom,0px))}
#mlchat-root .mlc-header{padding:12px;min-height:58px}
#mlchat-root .mlc-admin .mlc-header{min-height:58px;padding:12px}
#mlchat-root .mlc-controls button{font-size:10px;padding:6px}
#mlchat-root .mlc-controls .mlc-send{min-width:44px}
#mlchat-root .mlc-log{padding:12px}
}
/* v0.1.7: channel chooser and explicit voice states */
body #mlchat-root .mlc-toggle{background:#19b956!important;border:2px solid #fff!important;color:#fff!important;display:flex!important;justify-content:center!important;gap:9px!important;min-width:54px!important;min-height:54px!important;padding:10px 14px!important;box-shadow:0 0 0 6px #b6e6b747,0 6px 24px #123e2340!important}
body #mlchat-root .mlc-toggle:before,body #mlchat-root .mlc-toggle:after{display:none!important;content:none!important}
body #mlchat-root .mlc-toggle svg{width:30px;height:30px;flex:none;fill:currentColor}
#mlchat-root .mlc-channel-picker{position:fixed;right:20px;bottom:calc(155px + env(safe-area-inset-bottom));z-index:99992;width:290px;max-width:calc(100vw - 32px);padding:22px;background:#fff;color:#183b32;border:1px solid #dae3dc;border-radius:20px;box-shadow:0 12px 40px #08281c33;font:14px/1.5 system-ui}
#mlchat-root .mlc-channel-picker[hidden],#mlchat-root .mlc-teaser[hidden],#mlchat-root .mlc-widget[hidden]{display:none!important}
#mlchat-root .mlc-channel-picker strong{font:750 19px/1.3 system-ui;color:#183b32}
#mlchat-root .mlc-channel-picker p{color:#52665c;font-size:13px;margin:8px 0 18px}
#mlchat-root .mlc-channel-wa,#mlchat-root .mlc-channel-live{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 16px;border-radius:12px;border:0;color:#fff!important;text-decoration:none;font:700 15px/1.4 system-ui;box-sizing:border-box;margin-top:10px;cursor:pointer}
#mlchat-root .mlc-channel-wa{background:#11843d!important}
#mlchat-root .mlc-channel-live{background:#1764c0!important}
#mlchat-root .mlc-channel-wa:disabled{opacity:.55;cursor:not-allowed}
#mlchat-root .mlc-picker-close{position:absolute;right:7px;top:5px;width:36px;min-height:36px;border:0;background:transparent;font-size:24px;color:#54665a}
#mlchat-root .mlc-voice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px;background:#fff1ed;border-top:1px solid #ecd9cd;color:#632c21;flex:none;font:13px/1.4 system-ui}
#mlchat-root .mlc-voice strong{font:600 13px/1.4 system-ui;flex:1;color:inherit}
#mlchat-root .mlc-voice time{font:700 18px/1.2 ui-monospace,monospace;font-variant-numeric:tabular-nums;color:inherit}
#mlchat-root .mlc-voice button{min-height:44px;padding:8px 12px;border:1px solid #d7c5b8;background:#fff;color:#632c21;border-radius:10px;cursor:pointer}
#mlchat-root .mlc-voice button:last-child{background:#126a44;border:0;color:#fff}
#mlchat-root .mlc-voice audio{width:100%;height:40px;order:3}
#mlchat-root .mlc-voice-dot{width:10px;height:10px;border-radius:50%;background:#d43d36;display:none}
#mlchat-root .mlc-voice.is-recording .mlc-voice-dot{display:block;animation:mlc-record-pulse 1s ease-in-out infinite}
@keyframes mlc-record-pulse{50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){#mlchat-root .mlc-voice-dot{animation:none!important}}
#mlchat-root .mlc-avatar{position:absolute;left:14px;top:20px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#dce8df;color:#245541;font-weight:700}
#mlchat-root .mlc-inbox-item{position:relative;padding-left:68px;min-height:88px}
#mlchat-root .mlc-admin-layout{background:#111b21;border-color:#354147;border-radius:14px}
#mlchat-root .mlc-admin-layout .mlc-sidebar{background:#111b21;border-color:#354147!important;color:#e9edef}
#mlchat-root .mlc-admin-layout .mlc-side-head{background:#202c33;color:#e9edef}
#mlchat-root .mlc-admin-layout .mlc-side-head h2{color:#e9edef}
#mlchat-root .mlc-admin-layout .mlc-inbox-meta{color:#aebac1}
#mlchat-root .mlc-admin-layout .mlc-inbox-item{background:#111b21;color:#e9edef;border-bottom:1px solid #253138}
#mlchat-root .mlc-admin-layout .mlc-inbox-item.is-active{background:#2a3942;box-shadow:none}
#mlchat-root .mlc-admin-layout .mlc-inbox-item strong{color:#e9edef}
#mlchat-root .mlc-admin-layout .mlc-inbox-preview,#mlchat-root .mlc-admin-layout .mlc-inbox-foot{color:#aebac1}
#mlchat-root .mlc-admin-layout .mlc-avatar{background:#1b5949;color:#d4f3df}
#mlchat-root .mlc-admin-layout .mlc-header{background:#202c33!important}
#mlchat-root .mlc-admin-layout .mlc-log{background-color:#0b141a;background-image:radial-gradient(#52654c26 1px,transparent 1px)}
#mlchat-root .mlc-admin .mlc-message.mlc-customer{background:#202c33;color:#e9edef!important}
#mlchat-root .mlc-admin .mlc-message.mlc-operator{background:#005c4b;color:#e9edef!important}
#mlchat-root .mlc-admin .mlc-message p{color:#e9edef!important}
#mlchat-root .mlc-admin .mlc-message small{color:#b7c9c6!important}
#mlchat-root .mlc-admin .mlc-status,#mlchat-root .mlc-admin .mlc-compose{background:#202c33;color:#b9c8cb;border-color:#354147}
#mlchat-root .mlc-admin-layout input[type=search],#mlchat-root .mlc-admin textarea{background:#2a3942!important;color:#e9edef!important;border-color:#354147}
#mlchat-root .mlc-admin textarea::placeholder{color:#aebac1}
#mlchat-root .mlc-admin .mlc-controls button{color:#d3dfdf}
#mlchat-root .mlc-admin .mlc-note-message{background:#4d4025!important;color:#fff5d7!important}
#mlchat-root .mlc-admin .mlc-action-menu summary{color:#b9c8cb}
@media(max-width:600px){body #mlchat-root .mlc-toggle{padding:8px!important;width:54px!important;height:54px!important;border-radius:50%!important;bottom:calc(100px + env(safe-area-inset-bottom))!important;right:16px!important}body #mlchat-root .mlc-toggle span{display:none!important}#mlchat-root .mlc-channel-picker{right:16px;bottom:calc(166px + env(safe-area-inset-bottom))}#mlchat-root .mlc-teaser{bottom:calc(166px + env(safe-area-inset-bottom))}}
