/* Cabinet interiors. Shell navigation and viewport offsets live in edition-shell.css. */
html.mx-cabinet[data-page="dashboard"] body {
  --ed-ink:var(--mxc-ink);--ed-muted:var(--mxc-muted);--ed-blue:var(--mxc-primary);--ed-line:var(--mxc-border);
  --ed-paper:var(--mxc-canvas);--ed-apricot:var(--mxc-highlight);--ed-soft:var(--mxc-tint);
}
html.mx-cabinet[data-page="dashboard"] body :is(#chatView,#botsView,#locomotiveView,#feedbackView) {color:var(--ed-ink)!important;background:var(--ed-paper)!important;min-width:0!important}
html.mx-cabinet[data-page="dashboard"] body :is(#chatView,#botsView,#locomotiveView,#feedbackView) :is(h1,h2,h3) {-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
html.mx-cabinet[data-page="dashboard"] body .edition-eyebrow {margin:0 0 12px!important;padding:0!important;color:var(--ed-muted)!important;font:650 10px/1.5 Inter,Arial,sans-serif!important;letter-spacing:.13em!important;text-transform:uppercase!important;background:none!important}
html.mx-cabinet[data-page="dashboard"] body :is(#chatView,#botsView,#locomotiveView,#feedbackView,.loco-dialog,.bot-guide-modal) :is(button,a,input,textarea,summary,select):focus-visible {outline:3px solid var(--mxc-focus)!important;outline-offset:3px!important}

/* Welcome: a working desk. Input and artwork share a composition. */
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) {width:min(calc(100% - 72px),1180px)!important;margin:0 auto!important;padding:30px 0 56px!important;text-align:left!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-start-sheet {display:grid!important;grid-template-columns:minmax(0,1fr) 30%;gap:24px 38px!important;width:100%!important;max-width:none!important;margin:0!important;padding:38px 38px 32px!important;background:var(--mxc-tint)!important;border:0!important;border-radius:18px!important;position:relative!important;overflow:hidden!important;isolation:isolate}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-start-sheet::before {content:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-intro {display:contents!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-intro::after {content:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-start-copy {grid-column:1;grid-row:1;min-width:0;padding:0!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-title {margin:0!important;padding:0!important;text-align:left!important;color:var(--ed-ink)!important;font:600 clamp(34px,3.4vw,48px)/1.07 Inter,Arial,sans-serif!important;letter-spacing:-.055em!important;background:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-intro .hero-subtitle {font:400 14px/1.65 Inter,Arial,sans-serif!important;margin:14px 0 0!important;color:var(--mxc-muted)!important;text-align:left!important;max-width:45ch!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-store-link {font-size:12px!important;font-weight:550!important;color:var(--ed-blue)!important;min-height:30px!important;margin:7px 0 0!important;text-underline-offset:4px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .edition-chat-art {grid-column:2;grid-row:1/3;position:relative;display:flex;align-items:center;align-self:center;justify-content:center;min-width:0;min-height:230px}
html.mx-cabinet[data-page="dashboard"] body #chatView .edition-analyst {display:block;width:120%;max-width:330px;height:260px;object-fit:contain;mix-blend-mode:multiply}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-notebook {position:absolute;bottom:0;right:-10px;width:98px;height:80px;max-height:none;object-fit:contain;transform:rotate(8deg);filter:drop-shadow(0 8px 7px #17263810)}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .hero-input-row {grid-column:1;grid-row:2;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;align-self:end}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .hero-input-card {min-height:132px!important;border:1px solid #cbd0d8!important;border-radius:12px!important;background:var(--mxc-canvas)!important;box-shadow:0 7px 18px #17263805!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .hero-input-card:focus-within {border-color:var(--ed-blue)!important;box-shadow:0 0 0 3px #284eb915!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .hero-input-top {padding:17px 17px 0!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) textarea#heroInput {font-size:15px!important;line-height:1.55!important;color:var(--ed-ink)!important;min-height:44px!important;max-height:210px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) textarea#heroInput::placeholder {color:#7d8793!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .hero-input-bottom {padding:10px 11px 11px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroSendBtn,html.mx-cabinet[data-page="dashboard"] body #composer.composer-v2 #send {background:var(--ed-blue)!important;color:var(--mxc-canvas)!important;border:1px solid var(--ed-blue)!important;border-radius:9px!important;box-shadow:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView :is(#heroAttachBtn,#attachBtn) {color:#596b80!important;border-radius:8px!important}

/* Cases are a readable image-led journal, with every original route and filter. */
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesSection {width:100%!important;max-width:none!important;margin:38px 0 0!important;padding:0!important;border:0!important;background:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView .edition-cases-head {display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #cabinet-cases-title {margin:0!important;font:550 25px/1.2 Inter,Arial,sans-serif!important;letter-spacing:-.045em!important;color:var(--ed-ink)!important}
html.mx-cabinet[data-page="dashboard"] body #chatView .edition-case-count {font-size:11px;color:var(--ed-muted);white-space:nowrap;padding-bottom:3px}
html.mx-cabinet[data-page="dashboard"] body #chatView .cabinet-filters {margin:0 0 20px!important;padding:0!important;border:0!important}
html.mx-cabinet[data-page="dashboard"] body #chatView .cabinet-filters>summary {display:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesTabs {display:flex!important;gap:7px!important;flex-wrap:wrap!important;padding:0!important;margin:0!important;border:0!important;background:none!important;overflow:visible!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesTabs .hero-cases-tab {font:500 11px/1.4 Inter,Arial,sans-serif!important;min-height:34px!important;padding:8px 12px!important;background:transparent!important;border:1px solid var(--ed-line)!important;border-radius:6px!important;color:#697484!important;box-shadow:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesTabs .hero-cases-tab.active {background:var(--mxc-primary)!important;color:white!important;border-color:var(--mxc-primary)!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px 20px!important;width:100%!important;max-height:none!important;overflow:visible!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card:not([hidden]) {display:flex!important;flex-direction:column!important;gap:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;transform:none!important;text-decoration:none!important;overflow:hidden!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card[hidden] {display:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-img {display:block!important;order:0!important;width:100%!important;height:auto!important;aspect-ratio:1.65!important;object-fit:cover!important;border-radius:10px!important;margin:0!important;filter:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-body {display:flex!important;flex-direction:column!important;gap:6px!important;padding:14px 0 0!important;min-height:0!important;background:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-tag {font:600 9px/1.4 Inter,Arial,sans-serif!important;color:var(--mxc-muted)!important;letter-spacing:.07em!important;text-transform:uppercase!important;margin:0!important;padding:0!important;background:none!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-title {font:600 17px/1.3 Inter,Arial,sans-serif!important;letter-spacing:-.025em!important;color:var(--ed-ink)!important;margin:0!important;padding:0!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-sub {font:400 12px/1.5 Inter,Arial,sans-serif!important;color:var(--ed-muted)!important;margin:0!important}

/* The conversation stays focused while history is a separate, searchable drawer. */
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection.chat-active .thread-heading {width:min(100%,850px)!important;padding:16px 20px!important;margin:0 auto 12px!important;background:var(--ed-paper)!important;border-color:var(--ed-line)!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #threadTitle {color:var(--ed-ink)!important;font-size:17px!important;font-weight:600!important}
html.mx-cabinet[data-page="dashboard"] body #chatView .thread-actions button {color:#526176!important;border-color:#d3d8e0!important;background:transparent!important;border-radius:7px!important;font-size:11px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages {width:min(100%,850px)!important;padding-inline:22px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages .msg {margin-bottom:28px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages .msg.assistant>.avatar {color:var(--ed-blue)!important;letter-spacing:.02em!important;font-size:12px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages .msg.assistant .bubble {color:var(--ed-ink)!important;font-size:15px!important;line-height:1.75!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages .msg.assistant .bubble :is(p,li) {color:var(--ed-ink)!important;font-size:15px!important;line-height:1.75!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages .msg.user .bubble {background:#e8edf8!important;border:1px solid #dae1f1!important;color:var(--ed-ink)!important;border-radius:13px 13px 3px 13px!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages .msg.user .bubble :is(p,div,span,b,strong,em,li,code) {color:var(--ed-ink)!important}
html.mx-cabinet[data-page="dashboard"] body #chatView #messages .chat-message-foot :is(button,.message-timestamp) {color:#7b8795!important;font-size:10px!important}
html.mx-cabinet[data-page="dashboard"] body #composer .composer-bar {background:white!important;border:1px solid #cbd2dd!important;box-shadow:0 3px 20px #17263808!important;border-radius:12px!important}
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar {background:var(--mxc-panel)!important;color:var(--ed-ink)!important;border-color:#dce0e7!important;box-shadow:8px 0 44px #1726381a!important}
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar :is(#historyTitle,.chat-item-title) {color:var(--ed-ink)!important}
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar :is(.history-search,#historyClose,.chat-group-label) {color:var(--ed-muted)!important}
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar #newChatBtn {background:var(--ed-blue)!important;border:1px solid var(--ed-blue)!important;color:var(--mxc-canvas)!important;border-radius:7px!important}
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar :is(#historySearch,.history-rename input) {border-color:#d1d7e0!important;color:var(--ed-ink)!important;border-radius:7px!important}
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar .history-entry.active {background:#e8edf8!important;border-color:#d5ddf0!important}

/* Bots: a compact connection register, real metrics in a consistent row. */
html.mx-cabinet[data-page="dashboard"] body :is(#botsView,#botSettingsModalPremium,.bot-guide-modal) {--bots-ink:var(--ed-ink);--bots-green:var(--ed-blue);--bots-paper:var(--ed-paper);--bots-muted:var(--ed-muted);--bots-line:var(--ed-line);--bots-soft:var(--ed-soft)}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-wrapper {max-width:1260px!important;padding:30px 36px 56px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-header {display:grid!important;grid-template-columns:minmax(0,1fr) 200px auto!important;gap:25px!important;align-items:center!important;padding:25px 30px!important;margin:0 0 26px!important;background:var(--mxc-tint)!important;border:0!important;border-radius:16px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-title {font-size:40px!important;line-height:1.08!important;letter-spacing:-.055em!important;font-weight:600!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-subtitle {font-size:13px!important;line-height:1.6!important;margin-top:12px!important;color:var(--mxc-muted)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .edition-bots-art {width:180px;height:140px;object-fit:contain;justify-self:center}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-add-btn {background:var(--mxc-primary)!important;border-color:var(--mxc-primary)!important;border-radius:7px!important;min-height:42px!important;font-size:12px!important;padding:0 16px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-filter-panel {padding:0 0 22px!important;border:0!important;border-bottom:1px solid var(--ed-line)!important;border-radius:0!important;background:transparent!important;margin-bottom:21px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-toolbar {gap:18px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-search-wrapper {flex:1 1 300px!important;max-width:460px!important;height:42px!important;border-radius:7px!important;border-color:var(--mxc-border)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView #botsSearchInput {font-size:13px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-pfilter {font-size:12px!important;min-height:36px!important;padding:8px 13px!important;border:1px solid var(--ed-line)!important;border-radius:6px!important;background:var(--mxc-canvas)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-pfilter.active {color:white!important;background:var(--mxc-primary)!important;border-color:var(--mxc-primary)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-filter-bottom {margin-top:14px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .edition-list-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;color:var(--ed-muted);font-size:11px}
html.mx-cabinet[data-page="dashboard"] body #botsView .edition-list-heading h2 {font:600 18px/1.3 Inter,Arial,sans-serif;letter-spacing:-.025em;color:var(--ed-ink);margin:0}
html.mx-cabinet[data-page="dashboard"] body #botsView #botsList.bots-cards-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-glass {display:grid!important;grid-template-columns:minmax(190px,1.2fr) minmax(100px,.8fr) minmax(200px,1fr) 120px!important;gap:4px 22px!important;padding:20px!important;border:1px solid var(--mxc-border)!important;border-radius:10px!important;box-shadow:none!important;align-items:center!important;overflow:visible!important;background:white!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-header {grid-area:1/1/2/2;margin:0!important;gap:10px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-channel-mark {width:34px!important;height:34px!important;flex:0 0 34px!important;border:0!important;background:var(--mxc-tint)!important;color:var(--ed-blue)!important;border-radius:9px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-title {font-size:13px!important;letter-spacing:-.015em!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-provider-badge {font-size:9px!important;color:var(--ed-muted)!important;margin-bottom:5px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-status-toggle {flex:0 0 31px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-status-line {grid-area:2/1/3/2;margin:3px 0 0 44px!important;font-size:10px!important;color:var(--ed-muted)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-organization {grid-area:1/2/3/3;font-size:12px!important;line-height:1.55!important;min-height:0!important;margin:0!important;color:#596777!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-metrics {grid-area:1/3/3/4;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;border:0!important;margin:0!important;padding:0!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-metrics dt {font-size:9px!important;color:#7b8491!important;line-height:1.4!important;white-space:normal!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-metrics dd {font-size:19px!important;font-weight:550!important;margin:4px 0 0!important;color:var(--ed-ink)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-footer {grid-area:1/4/3/5;display:flex!important;align-items:center!important;gap:8px!important;border:0!important;background:none!important;margin:0!important;padding:0!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-edit-btn {border:1px solid #d5dce7!important;color:var(--ed-blue)!important;padding:8px 10px!important;min-height:36px!important;border-radius:6px!important;font-size:11px!important;background:var(--mxc-canvas)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .delete-bot-btn {width:30px!important;height:36px!important;min-width:30px!important;opacity:.7!important;color:#7d8794!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-owner-row {grid-column:2/5;grid-row:3;margin:8px 0 0!important;padding-top:8px!important;border-top:1px solid #edf0f3!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-error-line {grid-column:1/-1;grid-row:4;margin:12px 0 0!important;background:var(--mxc-tint)!important;color:#975835!important;font-size:11px!important;border:0!important;border-radius:5px!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-state {padding:45px 24px!important;border:1px dashed #cbd3df!important;border-radius:12px!important;background:var(--mxc-canvas)!important}
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-state-mark {color:var(--ed-blue)!important;background:var(--mxc-tint)!important;border-color:var(--mxc-tint)!important}

/* Editors: numbered sections, steady footer and a readable desktop spread. */
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-panel {width:min(880px,100%)!important;max-width:880px!important;background:var(--mxc-panel)!important;border:1px solid #e4e7ec!important;border-radius:16px!important;box-shadow:0 30px 100px #17263833!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-head {padding:25px 28px!important;background:white!important;border-color:var(--mxc-border)!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-head h2 {color:var(--ed-ink)!important;font-size:25px!important;font-weight:600!important;letter-spacing:-.04em!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium #botSettingsSubtitle {color:var(--ed-muted)!important;font-size:12px!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-grid {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.85fr)!important;gap:18px!important;padding:22px 28px!important;align-items:start!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-card {border-color:var(--mxc-border)!important;background:white!important;border-radius:10px!important;padding:21px!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-card:nth-of-type(1) {grid-column:1!important;grid-row:1/3!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-card:nth-of-type(2) {grid-column:2!important;grid-row:1!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-access-details {grid-column:2!important;grid-row:2!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-section-heading {display:flex!important;gap:12px!important;align-items:start!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .edition-form-number {display:grid;place-items:center;flex:none;width:27px;height:27px;background:#eef1f8;color:#7284a4;font-size:10px;border-radius:50%}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-fields {grid-template-columns:1fr!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-provider-option.is-selected {background:var(--mxc-tint)!important;border-color:#9db1e3!important;color:var(--ed-blue)!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-input {border-color:#d3dbe6!important;background:var(--mxc-canvas)!important;color:var(--ed-ink)!important;font-size:13px!important;min-height:42px!important;border-radius:6px!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-sub {color:var(--ed-muted)!important;font-size:11px!important;line-height:1.65!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-footer {background:white!important;padding:17px 28px!important;border-color:var(--mxc-border)!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-btn-save {background:var(--ed-blue)!important;border-color:var(--ed-blue)!important;border-radius:6px!important}
html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium.bot-editor-modal {background:#17263866!important;backdrop-filter:blur(3px)!important}

/* Locomotive: data first, product rows, distinct approvals and quiet journal. */
html.mx-cabinet[data-page="dashboard"] body :is(#locomotiveView,.loco-dialog) {--lc-ink:var(--ed-ink)!important;--lc-muted:var(--ed-muted)!important;--lc-line:var(--ed-line)!important;--lc-paper:var(--ed-paper)!important;--lc-green:var(--ed-blue)!important;--lc-soft:var(--ed-soft)!important;--loco-text:var(--ed-ink)!important;--loco-muted:var(--ed-muted)!important;--loco-border:var(--ed-line)!important;--loco-surface:var(--mxc-canvas)!important;--loco-accent:var(--ed-blue)!important;--loco-accent-weak:var(--ed-soft)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView {padding:30px 36px 56px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .bots-page-wrapper {padding:0!important;width:100%!important;max-width:1188px!important;margin:auto!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-page-head {display:grid!important;grid-template-columns:minmax(0,1fr) 170px auto!important;gap:24px!important;margin:0 0 26px!important;min-height:147px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView h1 {font:600 40px/1.08 Inter,Arial,sans-serif!important;letter-spacing:-.055em!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-page-lead {font-size:13px!important;line-height:1.6!important;margin-top:12px!important;max-width:48ch!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-art {width:165px;height:135px;object-fit:contain}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;border:1px solid #dce1e7!important;border-radius:10px!important;background:white!important;margin:0 0 30px!important;padding:0!important;overflow:hidden!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats>div {display:flex!important;flex-direction:column-reverse!important;gap:8px!important;padding:21px 24px!important;border:0!important;border-right:1px solid #e5e8ec!important;background:none!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats>div:last-child {border-right:0!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats strong {color:var(--ed-ink)!important;font-size:30px!important;font-weight:550!important;line-height:1!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats span {color:var(--ed-muted)!important;font-size:10px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-section-heading {margin-bottom:15px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-section-heading h2 {font-size:21px!important;font-weight:600!important;letter-spacing:-.035em!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView :is(.loco-product-grid,#locoList) {display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile {display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:22px!important;padding:17px!important;border:1px solid #dde2e8!important;border-radius:11px!important;background:var(--mxc-canvas)!important;box-shadow:none!important;overflow:visible!important;align-items:center!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-cover {height:112px!important;min-height:0!important;width:112px!important;border:0!important;border-radius:8px!important;overflow:hidden!important;background:var(--mxc-tint)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-cover .loco-thumb {width:100%!important;height:100%!important;aspect-ratio:1!important;object-fit:contain!important;background:var(--mxc-tint)!important;color:#7f8da3!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-body {padding:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,.6fr)!important;gap:9px 30px!important;min-width:0!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-row-meta {display:flex;align-items:center;gap:12px;grid-column:1;grid-row:1;flex-wrap:wrap}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-row-meta .loco-eyebrow {font-size:9px!important;margin:0!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-mode-tag {position:static!important;display:inline-flex!important;align-items:center!important;align-self:start!important;padding:4px 7px!important;border:1px solid #d7e2dc!important;border-radius:5px!important;color:#486958!important;background:#f1f5f1!important;font-size:9px!important;font-weight:550!important;line-height:1.4!important;width:fit-content!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-mode-tag.is-test {background:var(--mxc-tint)!important;color:var(--mxc-muted)!important;border-color:var(--mxc-border)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-name {grid-column:1!important;grid-row:2!important;font-size:19px!important;line-height:1.25!important;font-weight:550!important;letter-spacing:-.03em!important;min-height:0!important;margin:0!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-phase-pill {grid-column:2!important;grid-row:1/3!important;align-self:center!important;background:none!important;border:0!important;padding:0!important;font-size:12px!important;color:#596b82!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-steps {grid-column:2!important;grid-row:3!important;gap:5px!important;margin:0!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-step {height:3px!important;background:#e7ebf2!important;border-radius:4px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-step.is-on {background:#7c96d5!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-foot {grid-column:1/-1!important;grid-row:4!important;display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:center!important;padding-top:9px!important;margin-top:2px!important;border-top:1px solid #edf0f4!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-open-btn {font-size:11px!important;color:var(--ed-blue)!important;border:0!important;background:none!important;padding:4px 0!important;min-height:28px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-metric-mini {font-size:10px!important;color:var(--ed-muted)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-attention-stack {padding:24px!important;border-radius:12px!important;border:1px solid var(--mxc-border)!important;background:var(--mxc-tint)!important;margin-bottom:30px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-attention-stack .loco-section-heading h2 {color:var(--mxc-muted)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-detail-head {background:var(--mxc-canvas)!important;border-color:#dfe4eb!important;border-radius:12px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-detail-photo {background:var(--mxc-tint)!important;border-color:var(--mxc-border)!important;color:#7c91b9!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-mode-banner {background:var(--mxc-tint)!important;border-color:var(--mxc-border)!important;border-radius:10px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-mode-banner.is-live {background:#edf2f8!important;border-color:#d8e1ee!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-detail-name {font-size:29px!important;font-weight:550!important;letter-spacing:-.045em!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView :is(.loco-work-panel,.loco-data-panel,.loco-skus,.loco-journal-panel) {border-color:#dfe4eb!important;border-radius:11px!important;background:white!important;box-shadow:none!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-work-panel {border-top:3px solid #8ba2d9!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-side-note {background:#edeff3!important;border-radius:10px!important;padding:22px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-phase.is-current .loco-phase-number {background:var(--ed-blue)!important;color:white!important;border-color:var(--ed-blue)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-phase.is-done .loco-phase-number {background:#e4eafa!important;color:var(--ed-blue)!important;border-color:#cfdbf4!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-phase.is-current .loco-phase-name {color:var(--ed-blue)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-danger-zone {border-color:#e0d0c6!important;background:var(--mxc-tint)!important;border-radius:9px!important;padding:20px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding {grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;border:0!important;border-radius:16px!important;background:white!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding-main {position:relative!important;padding:35px 35px 30px!important;overflow:hidden!important;min-height:480px!important;border:0!important;background:var(--mxc-highlight)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-seller {display:block;width:200px;height:200px;object-fit:contain;float:right;margin:0 -10px 8px 12px;shape-outside:inset(0)}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding h2 {font:550 33px/1.12 Inter,Arial,sans-serif!important;letter-spacing:-.05em!important;margin:0 0 22px!important;clear:left}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-empty-lead {clear:both!important;font-size:13px!important;color:var(--mxc-muted)!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding-plan {padding:35px!important}
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding-plan h3 {font-size:17px!important;font-weight:550!important}
html.mx-cabinet[data-page="dashboard"] body :is(#locomotiveView,.loco-dialog) .loco-safe-note {background:#edf1f8!important;border-color:#dce4f3!important;color:#536a8c!important}

/* Feedback: an open letter opposite an inbox. */
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback {--feedback-paper:var(--ed-paper);--feedback-ink:var(--ed-ink);--feedback-green:var(--ed-blue);--feedback-muted:var(--ed-muted);--feedback-line:var(--ed-line)}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__page {max-width:1260px!important;padding:30px 36px 56px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__intro {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:30px!important;max-width:none!important;margin:0 0 28px!important;padding:26px 32px!important;border-radius:16px!important;background:var(--mxc-tint)!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback h1 {font:550 38px/1.1 Inter,Arial,sans-serif!important;letter-spacing:-.055em!important;margin:0 0 13px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__intro>div>p:last-child {color:var(--mxc-muted)!important;font-size:13px!important;line-height:1.65!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView .edition-feedback-art {width:185px;height:150px;object-fit:contain;transform:rotate(-4deg);margin-right:30px}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__workspace {grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr)!important;gap:30px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__compose {background:var(--mxc-canvas)!important;border:1px solid var(--mxc-border)!important;border-radius:12px!important;padding:27px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__history {padding:24px 0 0!important;border:0!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback h2 {font-size:21px!important;font-weight:550!important;letter-spacing:-.035em!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback #feedbackPageForm {margin-top:24px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback #feedbackPageText {border:1px solid #d0d7e2!important;border-radius:8px!important;background:var(--mxc-panel)!important;min-height:185px!important;padding:15px!important;font-size:14px!important;line-height:1.7!important;color:var(--ed-ink)!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback #feedbackPageText:focus {border-color:var(--ed-blue)!important;outline-color:#c1cff1!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback #submitFeedbackPageBtn {background:var(--ed-blue)!important;border-color:var(--ed-blue)!important;border-radius:7px!important;min-height:44px!important;font-size:12px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView .mx-feedback__help {border-color:#e7ebf1!important;margin-top:22px!important;padding-top:18px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView .mx-feedback__help-mark {color:#6d80a5!important;border-color:#9daecc!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView .mx-feedback__list {border:0!important;display:grid!important;gap:9px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__row {border:1px solid #dfe4eb!important;border-radius:9px!important;background:white!important;padding:18px 20px!important;transition:border-color .15s!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__row:hover {border-color:#aabce6!important;background:#fbfcff!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__preview {font-size:13px!important;line-height:1.65!important;color:var(--ed-ink)!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__status {border-radius:4px!important;padding:2px 6px!important;background:#f0f2f5!important;color:#728095!important;font-size:9px!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__status[data-status="replied"] {background:var(--mxc-tint)!important;color:var(--ed-blue)!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__status[data-status="replied"]::before {background:#6687d0!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__dialog {background:var(--mxc-panel)!important;border-color:#dfe5ee!important;border-radius:14px!important;color:var(--ed-ink)!important;box-shadow:0 35px 100px #17263833!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView .mx-feedback__dialog::backdrop {background:#17263877!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView .mx-feedback__reply {border-left:3px solid #8ca7e5!important;border-top-color:#e1e7f1!important;padding:20px!important;background:#f0f4fc!important;border-radius:0 7px 7px 0!important}
html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__reply h3 {color:var(--ed-blue)!important}

/* Cabinet dialogs also belong to the same visual system. */
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) {background:#17263866!important;backdrop-filter:blur(3px)!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal)>.modal-overlay {background:transparent!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-content {background:var(--mxc-canvas)!important;border:1px solid var(--mxc-border)!important;border-radius:14px!important;box-shadow:0 30px 100px #1726382e!important;color:var(--ed-ink)!important;backdrop-filter:none!important;overflow:hidden!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-header {background:var(--mxc-panel)!important;border-bottom:1px solid var(--mxc-tint)!important;padding:22px 25px!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-header :is(h2,h3) {color:var(--ed-ink)!important;-webkit-text-fill-color:currentColor!important;font-size:23px!important;line-height:1.2!important;font-weight:550!important;letter-spacing:-.04em!important;background:none!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) :is(.modal-close,.btn-close,.bot-editor-close) {color:#65758b!important;border:1px solid var(--mxc-border)!important;border-radius:7px!important;width:34px!important;min-width:34px!important;height:34px!important;padding:6px!important;background:white!important;box-shadow:none!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-body {color:var(--ed-ink)!important;background:white!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-footer {background:var(--mxc-panel)!important;border-top:1px solid var(--mxc-tint)!important;padding:17px 25px!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea) {border-color:#d0d8e5!important;background:var(--mxc-canvas)!important;color:var(--ed-ink)!important;box-shadow:none!important;border-radius:6px!important}
html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) :is(.btn-primary,.bot-editor-btn-save) {background:var(--ed-blue)!important;color:white!important;border-color:var(--ed-blue)!important;box-shadow:none!important;border-radius:6px!important}
html.mx-cabinet[data-page="dashboard"] body .loco-dialog .loco-wizard-step.is-active {color:var(--ed-blue)!important;background:#edf2fd!important;border-color:#c9d7f4!important}
html.mx-cabinet[data-page="dashboard"] body .loco-dialog .loco-wizard-step.is-active>span {background:var(--ed-blue)!important;color:white!important}
html.mx-cabinet[data-page="dashboard"] body .loco-dialog :is(.loco-pick-card.is-selected,.loco-pick-card.selected) {border-color:#86a1e1!important;box-shadow:0 0 0 2px #dce6fc!important;background:#f4f7fd!important}
html.mx-cabinet[data-page="dashboard"] body .loco-dialog .loco-test-explainer {border-color:var(--mxc-highlight)!important;background:var(--mxc-tint)!important}
html.mx-cabinet[data-page="dashboard"] body .loco-dialog .loco-review-card {background:var(--mxc-canvas)!important;border-color:#dfe5ee!important}
html.mx-cabinet[data-page="dashboard"] body .loco-dialog .loco-wizard-steps {background:#f6f8fb!important;border-color:#e1e7ef!important}
html.mx-cabinet[data-page="dashboard"] body .loco-dialog .loco-wizard-step.is-done>span {background:#e6edfc!important;border-color:#d0ddf7!important;color:var(--ed-blue)!important}
html.mx-cabinet[data-page="dashboard"] body :is(#chatView,#locomotiveView) .loco-card {--loco-text:var(--ed-ink);--loco-muted:var(--ed-muted);--loco-surface:var(--mxc-canvas);--loco-accent:var(--ed-blue);--loco-accent-weak:var(--mxc-tint);--loco-border:var(--mxc-border);--loco-elev:#f0f4fb;border-radius:10px!important}

@media(max-width:1190px) {
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-glass {grid-template-columns:minmax(190px,1fr) minmax(180px,1fr) 120px!important;gap:7px 20px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-organization {grid-area:3/1/4/2;margin:8px 0 0!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-metrics {grid-area:1/2/4/3}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-footer {grid-area:1/3/4/4}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-owner-row {grid-column:1/-1;grid-row:4}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-error-line {grid-row:5}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-header {grid-template-columns:minmax(0,1fr) 150px!important;gap:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .edition-bots-art {grid-column:2;grid-row:1/3;width:145px;height:150px}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-add-btn {grid-column:1;grid-row:2;justify-self:start;margin-top:8px}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-page-head {grid-template-columns:minmax(0,1fr) auto!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-art {display:none}
}
@media(max-width:900px) {
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) {width:calc(100% - 40px)!important;padding-top:22px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-start-sheet {padding:30px!important;gap:22px!important;grid-template-columns:minmax(0,1fr) 29%}
  html.mx-cabinet[data-page="dashboard"] body #chatView .edition-analyst {height:230px}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-wrapper,
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__page {padding:22px 20px 38px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView {padding:22px 20px 38px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-body {grid-template-columns:minmax(0,1fr) minmax(120px,.65fr)!important;column-gap:16px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__workspace {gap:20px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__compose {padding:22px!important}
}
@media(max-width:650px) {
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) {width:calc(100% - 28px)!important;padding:16px 0 34px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-start-sheet {grid-template-columns:minmax(0,1fr) 95px!important;gap:20px 5px!important;padding:23px 19px 19px!important;border-radius:13px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-start-copy {grid-column:1;grid-row:1}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-title {font-size:31px!important;letter-spacing:-.06em!important;white-space:nowrap!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView .edition-eyebrow {font-size:8px!important;letter-spacing:.1em!important;margin-bottom:10px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-intro .hero-subtitle {font-size:12px!important;line-height:1.65!important;margin-top:11px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-intro .hero-subtitle br {display:none}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-store-link {font-size:10px!important;line-height:1.5!important;min-height:30px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .edition-chat-art {grid-column:2;grid-row:1;min-height:125px;align-self:end;margin-left:-8px}
  html.mx-cabinet[data-page="dashboard"] body #chatView .edition-analyst {width:125px;max-width:none;height:130px}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-notebook {width:48px;height:40px;right:-8px;bottom:-6px}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .hero-input-row {grid-column:1/-1;grid-row:2}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .hero-input-card {min-height:122px!important;border-radius:9px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) textarea#heroInput {font-size:16px!important;min-height:44px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesSection {margin-top:28px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView .edition-cases-head {margin-bottom:14px;gap:10px;align-items:start}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #cabinet-cases-title {font-size:23px!important;max-width:15ch!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView .edition-case-count {font-size:9px;padding-top:25px}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesTabs {gap:6px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesTabs .hero-cases-tab {font-size:10px!important;padding:7px 9px!important;min-height:32px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid {grid-template-columns:minmax(0,1fr)!important;gap:19px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card:not([hidden]) {display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:14px!important;border-bottom:1px solid var(--ed-line)!important;padding-bottom:18px!important;align-items:center!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-img {width:112px!important;aspect-ratio:1!important;border-radius:7px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-body {padding:0!important;gap:6px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-title {font-size:16px!important;line-height:1.3!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-tag {font-size:8px!important;line-height:1.5!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-sub {font-size:11px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection.chat-active .thread-heading {padding:12px!important;margin-bottom:8px!important;gap:6px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #threadTitle {font-size:14px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView .thread-actions {gap:4px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView .thread-actions button {padding:6px 8px!important;font-size:10px!important;min-height:36px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #messages {padding-inline:16px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #messages .msg.assistant .bubble :is(p,li) {font-size:15px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-wrapper,
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__page {padding:16px 14px 32px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView {padding:20px 14px 32px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-header {grid-template-columns:minmax(0,1fr) 115px!important;gap:4px 10px!important;padding:23px 20px!important;margin-bottom:22px!important;border-radius:13px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-title {font-size:34px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-subtitle {font-size:12px!important;line-height:1.6!important;margin-top:10px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-subtitle br {display:none}
  html.mx-cabinet[data-page="dashboard"] body #botsView .edition-bots-art {width:120px;height:140px;grid-row:1/3}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-add-btn {font-size:11px!important;min-height:39px!important;padding:0 12px!important;margin-top:13px;gap:6px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-toolbar {gap:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-search-wrapper {flex-basis:100%!important;max-width:none!important;height:43px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView #botsSearchInput {font-size:16px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-filter-bottom {gap:10px;align-items:start;flex-wrap:wrap}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-provider-filter {gap:5px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-pfilter {font-size:11px!important;min-height:36px!important;padding:8px 11px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-result-count {font-size:10px!important;width:100%;margin-top:3px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .edition-list-heading {font-size:9px;margin-bottom:12px}
  html.mx-cabinet[data-page="dashboard"] body #botsView .edition-list-heading h2 {font-size:18px}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-glass {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 10px!important;padding:18px!important;border-radius:10px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-header {grid-area:1/1/2/3!important;gap:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-title {font-size:15px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-channel-mark {width:38px!important;height:38px!important;flex-basis:38px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-status-line {grid-area:2/1/3/3!important;margin:1px 0 0 50px!important;font-size:10px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-organization {grid-area:3/1/4/3!important;margin:10px 0 5px!important;font-size:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-metrics {grid-area:4/1/5/3!important;padding:12px 0 15px!important;border-bottom:1px solid #e8edf4!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-metrics dt {font-size:9px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-metrics dd {font-size:22px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-footer {grid-area:6/1/7/3!important;margin-top:6px!important;justify-content:space-between!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-edit-btn {font-size:12px!important;min-height:37px!important;padding:8px 13px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .delete-bot-btn {width:37px!important;height:37px!important;border:1px solid #e2e7ef!important;border-radius:6px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-owner-row {grid-area:5/1/6/3!important;margin:5px 0!important;border:0!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bot-card-error-line {grid-column:1/-1!important;grid-row:7!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-panel {border-radius:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-head {padding:19px 18px!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-head h2 {font-size:23px!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-grid {display:flex!important;flex-direction:column!important;gap:14px!important;padding:16px!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-card {width:100%!important;padding:18px!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-input {font-size:16px!important;min-height:44px!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-editor-footer {padding:14px 18px!important}
  html.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium .bot-save-note {font-size:9px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-page-head {grid-template-columns:minmax(0,1fr)!important;gap:18px!important;margin-bottom:23px!important;min-height:0!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-page-head>.btn-primary {justify-self:start!important;min-height:41px!important;font-size:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView h1 {font-size:34px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-page-lead {font-size:12px!important;max-width:36ch!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:25px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats>div {padding:16px 18px!important;gap:7px!important;border-bottom:1px solid #e7ebf1!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats>div:nth-child(2) {border-right:0!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats>div:nth-last-child(-n+2) {border-bottom:0!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats strong {font-size:27px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-overview-stats span {font-size:9px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-section-heading {align-items:start!important;gap:8px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-section-heading h2 {font-size:21px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-section-heading p {font-size:10px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile {grid-template-columns:65px minmax(0,1fr)!important;gap:13px!important;padding:16px!important;align-items:start!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-cover {width:65px!important;height:78px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-body {grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-row-meta {grid-column:1!important;grid-row:1!important;gap:6px}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-row-meta .loco-eyebrow {font-size:8px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-mode-tag {font-size:8px!important;padding:3px 5px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-name {grid-area:2/1/3/2!important;font-size:17px!important;line-height:1.3!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-phase-pill {grid-area:3/1/4/2!important;font-size:11px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-steps {grid-area:4/1/5/2!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-tile-foot {grid-area:5/1/6/2!important;align-items:start!important;gap:8px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-metric-mini {font-size:9px!important;line-height:1.5!important;max-width:17ch!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-open-btn {font-size:10px!important;white-space:nowrap!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-attention-stack {padding:18px 15px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-detail-name {font-size:25px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding {grid-template-columns:1fr!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding-main {padding:26px 22px!important;min-height:0!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .edition-loco-seller {width:135px;height:160px;margin:-4px -12px 5px 4px}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding h2 {font-size:28px!important;line-height:1.14!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-empty-lead {font-size:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-onboarding-plan {padding:26px 22px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__intro {padding:23px 20px!important;gap:9px!important;margin-bottom:20px!important;align-items:center!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback h1 {font-size:32px!important;line-height:1.1!important;margin-bottom:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__intro>div>p:last-child {font-size:11px!important;line-height:1.65!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__intro>div>p:last-child br {display:none}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView .edition-feedback-art {width:85px;height:100px;object-fit:contain;margin:0 -7px 0 0;align-self:center}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__workspace {grid-template-columns:1fr!important;gap:25px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__compose {padding:22px 19px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__history {padding-top:0!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback #feedbackPageText {font-size:16px!important;min-height:160px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback #submitFeedbackPageBtn {width:100%!important;justify-content:space-between!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback .mx-feedback__row {padding:17px!important}
  html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-header {padding:18px!important}
  html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-header :is(h2,h3) {font-size:21px!important}
  html.mx-cabinet[data-page="dashboard"] body :is(.loco-dialog,.bot-guide-modal) .modal-footer {padding:14px 18px!important}
}
@media(max-width:360px) {
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-start-sheet {grid-template-columns:minmax(0,1fr) 65px!important;padding:21px 16px 16px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .cabinet-title {font-size:28px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView .edition-analyst {width:98px;height:112px}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) .chat-notebook {width:40px;right:-7px}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card:not([hidden]) {grid-template-columns:94px minmax(0,1fr)!important;gap:12px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-img {width:94px!important}
  html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-title {font-size:15px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-header {grid-template-columns:minmax(0,1fr) 86px!important;padding:21px 17px!important;gap:4px 6px!important}
  html.mx-cabinet[data-page="dashboard"] body #botsView .edition-bots-art {width:97px;height:130px}
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-title {font-size:32px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView.mx-feedback h1 {font-size:29px!important}
  html.mx-cabinet[data-page="dashboard"] body #feedbackView .edition-feedback-art {width:65px}
}

/* Paper studio — generous type, with irregularity confined to the artwork. */
html.mx-edition.mx-cabinet[data-page="dashboard"] body {
  & #botsView .bots-page-header {
    grid-template-columns: minmax(0,1fr) minmax(145px,32%) !important;
    grid-template-areas: "copy art" "action art"; row-gap: 16px !important;
    padding: clamp(22px,3vw,42px) !important; background: var(--mxc-tint) !important;
    border-radius: 24px 38px 22px 18px !important;
  }
  & #botsView .bots-header-left {grid-area:copy; align-self:end}
  & #botsView .edition-bots-art {grid-area:art; width:100%;max-width:290px;height:clamp(153px,16vw,211px);object-fit:contain;transform:rotate(3deg)}
  & #botsView .bots-add-btn {grid-area:action;align-self:start;justify-self:start;margin:0;min-height:48px!important;font-size:15px!important;padding:0 20px!important;border-radius:12px!important}
  & #botsView .bots-page-title, & #feedbackView.mx-feedback .mx-feedback__intro h1,
  & #locomotiveView .loco-page-head h1, & #chatView #heroSection:not(.chat-active) .cabinet-title {
    font-size:clamp(35px,4.4vw,62px)!important;line-height:1.04!important;letter-spacing:-.055em!important;font-weight:680!important;white-space:normal!important
  }
  & #botsView .bots-page-subtitle, & #feedbackView.mx-feedback .mx-feedback__intro>div>p:last-child,
  & #locomotiveView .loco-page-lead, & #chatView #heroSection:not(.chat-active) .cabinet-intro .hero-subtitle {
    font-size:clamp(15px,1.3vw,18px)!important;line-height:1.48!important;max-width:39ch!important;color:#455166!important
  }
  & #botsView .bots-search-wrapper {min-height:48px!important;border-radius:12px!important}
  & #botsView #botsSearchInput {font-size:16px!important}
  & #botsView .bots-pfilter {display:inline-flex!important;align-items:center;gap:7px;min-height:44px!important;padding:8px 13px!important;font-size:14px!important;border-radius:12px!important}
  & #botsView .bots-pfilter svg {width:18px;height:18px;flex:none}
  & #botsView .edition-list-heading h2 {font-size:clamp(22px,2vw,29px);font-weight:650}
  & #botsView .bot-card-title {font-size:17px!important}
  & #botsView .bots-page-wrapper:has(.bots-state.is-first) .bots-filter-panel {display:none!important}
  & #botsView .bots-state.is-first {display:flex!important;align-items:center;justify-content:flex-start!important;gap:18px;padding:clamp(19px,3vw,36px)!important;text-align:left!important;border:1px solid #dce2ec!important;border-radius:18px!important}
  & #botsView .bots-state.is-first .bots-state-mark {margin:0!important;transform:rotate(-5deg);width:52px;height:52px;flex:0 0 52px;background:var(--mxc-highlight)!important;color:var(--mxc-muted)!important}
  & #botsView .bots-state.is-first h3 {margin:0 0 6px!important;font-size:clamp(18px,1.6vw,23px)!important;text-align:left!important}
  & #botsView .bots-state.is-first p {margin:0!important;font-size:15px!important;line-height:1.5!important;text-align:left!important}
  & #chatView .edition-analyst {mix-blend-mode:normal;transform:rotate(-3deg);width:100%;max-width:290px}
  & #feedbackView .edition-feedback-art {transform:rotate(4deg);width:clamp(105px,17vw,225px)}
  & #locomotiveView .edition-loco-seller {transform:rotate(-3deg)}
  & #feedbackView.mx-feedback textarea {font-size:16px!important;line-height:1.5!important}
}
@media(max-width:600px){
  html.mx-edition.mx-cabinet[data-page="dashboard"] body {
    & #botsView .bots-page-header {grid-template-columns:minmax(0,1fr) minmax(78px,30%)!important;gap:14px 7px!important;padding:20px 17px!important}
    & #botsView .edition-bots-art {height:120px}
    & #botsView .bots-add-btn {grid-column:1/-1;min-height:46px!important}
    & #botsView .bots-provider-filter {display:flex;flex-wrap:wrap}
    & #botsView .bots-pfilter {gap:4px;padding:7px 8px!important}
    & #feedbackView .edition-feedback-art {max-width:28%;margin:0}
    & #chatView .edition-analyst {width:100%;max-height:130px}
  }
}

html.mx-edition.mx-cabinet[data-page="dashboard"] body #botsView {
  & .bots-page-wrapper:has(.bots-state.is-first) .edition-list-heading {display:none}
  & .bots-state.is-first {display:grid!important;grid-template-columns:52px minmax(0,1fr);align-content:center;min-height:0!important}
  & .bot-channel-mark svg {width:22px;height:22px}
}

/* Connection sheet. The form body alone scrolls, including expanded sections. */
html.mx-edition.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium.connection-sheet {
  & .bot-editor-panel {width:min(660px,100%)!important;max-height:min(850px,calc(100dvh - 32px))!important;background:white!important;border-radius:22px!important}
  & .bot-editor-head {display:grid!important;grid-template-columns:minmax(0,1fr) 76px 38px;align-items:center;gap:10px;padding:18px 24px!important;background:var(--mxc-tint)!important}
  & .bot-editor-head h2 {font-size:clamp(24px,3vw,34px)!important;font-weight:680!important;line-height:1.05!important}
  & #botSettingsSubtitle {margin-top:7px!important;font-size:14px!important;line-height:1.4!important;color:#465974!important}
  & .bot-editor-head img {width:76px;height:72px;object-fit:contain;transform:rotate(4deg)}
  & .bot-editor-close {align-self:start;width:36px!important;height:36px!important;border-radius:50%!important;background:var(--mxc-canvas)!important;color:#34445d!important}
  & .bot-editor-grid {display:flex!important;flex-flow:column nowrap!important;align-items:stretch!important;gap:0!important;padding:0 26px 8px!important;scrollbar-gutter:auto!important;background:white!important}
  & .bot-editor-grid>* {flex:0 0 auto;min-width:0}
  & .connection-main {padding:21px 0 17px}
  & .bot-provider-fieldset {margin:0!important;padding:0!important}
  & .bot-editor-label {font-size:14px!important;font-weight:620!important;line-height:1.4!important;color:#25374e!important}
  & .bot-provider-select {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  & .bot-provider-option {display:flex!important;align-items:center!important;gap:10px!important;padding:10px 14px!important;min-height:46px!important;border-radius:12px!important}
  & .bot-provider-option svg {order:0;width:23px!important;height:23px!important;color:inherit!important}
  & .bot-provider-option span {order:1;font-size:15px!important}
  & .bot-provider-option input {order:2;margin-left:auto!important;accent-color:var(--mxc-primary)}
  & .bot-provider-option:focus-within {outline:2px solid var(--mxc-focus);outline-offset:2px}
  & .connection-keys {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:20px 0 0}
  & .connection-keys .bot-field, & .connection-more .bot-field {margin:0!important}
  & .bot-editor-input {width:100%!important;min-height:46px!important;border-radius:10px!important;font:400 16px/1.35 Inter,system-ui,sans-serif!important;padding:10px 12px!important}
  & .bot-editor-input::placeholder {font-size:14px;color:#66758b!important}
  & .bot-editor-sub, & .bot-max-info, & .bot-max-info p {font-size:13px!important;line-height:1.5!important}
  & .bot-help-link {font-size:13px!important;min-height:36px;padding:4px 0!important;margin-top:8px!important}
  & .connection-more {padding:0!important;border:0!important;border-top:1px solid var(--mxc-border)!important;border-radius:0!important;background:white!important}
  & .connection-more>summary {display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:53px;gap:12px;padding:10px 0!important;list-style:none;cursor:pointer;color:#233650}
  & .connection-more>summary::-webkit-details-marker {display:none}
  & .connection-more>summary strong {font:620 16px/1.4 Inter,system-ui,sans-serif!important}
  & .connection-chevron, & .bot-details-chevron {display:grid!important;place-content:center;width:26px;height:26px;border-radius:50%;background:#f1f4f9;color:#455b78}
  & .connection-more[open] .connection-chevron {transform:rotate(180deg)}
  & #botAnswerDetails .bot-editor-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}
  & #botAnswerDetails>.bot-editor-sub {margin:8px 0 18px!important}
  & .bot-editor-footer {display:flex!important;justify-content:flex-end!important;gap:10px!important;padding:12px 24px!important;flex:none!important}
  & .bot-editor-footer button {min-height:44px!important;border-radius:10px!important;padding:0 18px!important;font:600 14px/1.2 Inter,system-ui,sans-serif!important}
}
@media(max-width:600px){
  html.mx-edition.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium.connection-sheet {
    & .bot-editor-panel {max-height:calc(100dvh - 12px)!important;border-radius:16px!important}
    & .bot-editor-head {grid-template-columns:minmax(0,1fr) 36px;padding:16px!important}
    & .bot-editor-head img {display:none}
    & .bot-editor-grid {padding:0 16px 5px!important}
    & .connection-keys, & #botAnswerDetails .bot-editor-fields {grid-template-columns:minmax(0,1fr)!important;gap:14px}
    & .connection-main {padding:16px 0 12px}
    & .bot-provider-option {gap:6px!important;padding:9px!important}
    & .bot-editor-footer {padding:10px 16px max(10px,env(safe-area-inset-bottom))!important}
    & .bot-editor-btn-save {flex:1}
  }
}

html.mx-edition.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium.connection-sheet {
  & .connection-more>summary :is(.connection-chevron,.bot-details-chevron) {flex:0 0 26px!important;margin-left:auto!important}
  & .bot-editor-link {text-decoration-color:#a2b5e6!important}
  & .bot-editor-btn-cancel {border-color:var(--mxc-border)!important;color:#42536a!important}
}
@media(min-width:601px) {
  html.mx-edition.mx-cabinet[data-page="dashboard"] body #botSettingsModalPremium.connection-sheet .bot-editor-footer button {flex:none!important;width:auto!important}
}

/* Notebook case illustrations in the workspace. */
html.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid .hero-case-card-img[src^="/entry/notebook-"] {
  object-fit:contain!important; padding:10px; background:var(--mxc-panel) url("/entry/notebook-paper.webp")!important;
}

/* Global action and selection states, including panels opened from each section. */
html.mx-edition.mx-cabinet[data-page="dashboard"] body {
  & header.top-header#editionFrame .edition-nav.tabs .tab.active,
  & header.top-header#editionFrame .edition-services .tab.active,
  & header.top-header#editionFrame #editionAccountLinks .edition-services .tab.active {
    background:var(--mxc-primary)!important;color:var(--mxc-canvas)!important;
  }
  & header.top-header#editionFrame .edition-nav .tab.active svg, & header.top-header#editionFrame .edition-services .tab.active svg {background:transparent!important;color:inherit!important}
  & #locomotiveView .btn-primary, & #botsView #addBotBtn, & #feedbackView #submitFeedbackPageBtn, & #botSettingsModalPremium .bot-editor-btn-save {
    background:var(--mxc-primary)!important;border-color:var(--mxc-primary)!important;color:var(--mxc-canvas)!important
  }
  & :is(#botsView,#feedbackView,#locomotiveView) :is(.btn-primary,#addBotBtn,#submitFeedbackPageBtn):hover:not(:disabled),
  & #botSettingsModalPremium .bot-editor-btn-save:hover:not(:disabled) {background:var(--mxc-primary-hover)!important}
  & #locomotiveView .loco-onboarding-main, & #botsView .bots-page-header, & #feedbackView .mx-feedback__intro {background-color:var(--mxc-tint)!important}
}
/* Pair a readable title with a product-sized thumbnail instead of a wide banner. */
html.mx-edition.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 20px!important;
  & .hero-case-card:not([hidden]) {
    display:grid!important;grid-template-columns:clamp(92px,10vw,143px) minmax(0,1fr)!important;
    align-items:center!important;gap:16px!important;padding:10px!important;
    border:1px solid var(--mxc-border)!important;border-radius:12px!important;background:var(--mxc-canvas)!important;
  }
  & .hero-case-card img.hero-case-card-img[src^="/entry/notebook-"] {
    display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/5!important;object-fit:cover!important;
    padding:0!important;border:0!important;border-radius:8px!important;background:var(--mxc-panel)!important;
  }
  & .hero-case-card img[src$="notebook-case13800perday.webp"],& .hero-case-card img[src$="notebook-page113161186.svg"] {object-fit:contain!important}
  & .hero-case-card-body {min-width:0!important;gap:7px!important;padding:0 5px 0 0!important}
  & .hero-case-card-tag {text-transform:none!important;letter-spacing:0!important;font-size:12px!important}
  & .hero-case-card-title {font-size:clamp(16px,1.45vw,20px)!important;line-height:1.28!important}
}
@media(max-width:1050px) and (min-width:901px), (max-width:700px){
  html.mx-edition.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid {grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px){
  html.mx-edition.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active) #heroCasesGrid {
    gap:10px!important;
    & .hero-case-card:not([hidden]) {grid-template-columns:87px minmax(0,1fr)!important;gap:12px!important;padding:7px!important}
  }
}

html.mx-edition.mx-cabinet[data-page="dashboard"] body #chatView #heroSection:not(.chat-active):has(#heroCasesTabs .hero-cases-tab.active:not([data-filter="all"])) #heroCasesGrid .hero-case-card-tag {display:none!important}
