
      /* MS Connect v10.4 laboratório — Central real de comando, Afazeres Inteligentes e IA lateral */
      body.ms-v104 #v102IaFloat,
      body.ms-v104 #v102IaPanel,
      body.ms-v104 #v103IaFloat,
      body.ms-v104 #v103IaPanel,
      body.ms-v104 #v103SmartPanel {
        display: none !important;
      }
      body.ms-v104 .task-row {
        cursor: pointer;
        grid-template-columns: 58px 1fr auto auto;
        gap: 9px;
      }
      body.ms-v104 .task-row:hover {
        background: #fff7fc;
      }
      body.ms-v104 .v104-task-open {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        display: grid;
        place-items: center;
        color: #6b168c;
        background: #f4e8fb;
        font-weight: 1000;
        border: 1px solid #ead7f4;
      }
      body.ms-v104 .v104-task-open:hover {
        color: #fff;
        background: linear-gradient(135deg, var(--purple), var(--pink));
      }
      body.ms-v104 .v104-task-kind {
        display: inline-flex;
        margin-top: 5px;
        padding: 3px 7px;
        border-radius: 999px;
        background: #f5ecfb;
        color: #6a168a;
        font-size: 9px;
        font-weight: 950;
        letter-spacing: .2px;
      }
      body.ms-v104 .v104-task-row.is-next {
        background: linear-gradient(90deg, #fff7fc, #fff);
        box-shadow: inset 4px 0 0 #ed007d;
      }
      body.ms-v104 .v104-smart-panel {
        position: fixed;
        right: 26px;
        top: 78px;
        width: min(520px, calc(100vw - 34px));
        max-height: calc(100vh - 102px);
        overflow: auto;
        z-index: 92;
        display: none;
        border: 1px solid #eadff3;
        border-radius: 26px;
        background: #fff;
        box-shadow: 0 28px 78px rgba(31,0,52,.25);
        padding: 15px;
      }
      body.ms-v104 .v104-smart-panel.show { display: block; }
      body.ms-v104 .v104-smart-head {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: start;
        border-bottom: 1px solid #f0e8f6;
        padding-bottom: 13px;
      }
      body.ms-v104 .v104-smart-head h3 {
        margin: 0;
        color: #34006e;
        font-size: 18px;
        line-height: 1.18;
      }
      body.ms-v104 .v104-smart-head p {
        margin: 5px 0 0;
        color: #746b80;
        font-size: 12px;
        line-height: 1.35;
      }
      body.ms-v104 .v104-task-meta {
        display: flex;
        gap: 7px;
        flex-wrap: wrap;
        margin: 11px 0 3px;
      }
      body.ms-v104 .v104-pill {
        border-radius: 999px;
        padding: 6px 9px;
        background: #f5ecfb;
        color: #6b168c;
        font-size: 10px;
        font-weight: 950;
      }
      body.ms-v104 .v104-flow {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        margin-top: 12px;
      }
      body.ms-v104 .v104-flow-card {
        border: 1px solid #efe5f8;
        background: linear-gradient(180deg, #fff, #fffafd);
        border-radius: 16px;
        padding: 11px;
        min-height: 94px;
      }
      body.ms-v104 .v104-flow-card b {
        display: block;
        color: #36006f;
        font-size: 12px;
      }
      body.ms-v104 .v104-flow-card span {
        display: block;
        margin-top: 5px;
        color: #6f6578;
        font-size: 11px;
        line-height: 1.35;
      }
      body.ms-v104 .v104-smart-actions {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
        margin-top: 13px;
      }
      body.ms-v104 .v104-smart-action {
        text-align: left;
        border: 1px solid #eadff3;
        background: #fff;
        border-radius: 16px;
        padding: 12px;
        color: #35233f;
        font-weight: 950;
        line-height: 1.15;
      }
      body.ms-v104 .v104-smart-action small {
        display: block;
        color: #7a7182;
        font-weight: 800;
        font-size: 10px;
        margin-top: 4px;
        line-height: 1.25;
      }
      body.ms-v104 .v104-smart-action.primary {
        background: linear-gradient(135deg, var(--purple), var(--pink));
        color: #fff;
        border-color: transparent;
      }
      body.ms-v104 .v104-smart-action.primary small { color: rgba(255,255,255,.78); }
      body.ms-v104 .v104-smart-action.good {
        background: #e9faf3;
        color: #087c55;
        border-color: #c8f0df;
      }
      body.ms-v104 .v104-smart-action.warn {
        background: #fff6e8;
        color: #9b5b00;
        border-color: #ffe1ad;
      }
      body.ms-v104 .v104-checklist {
        display: grid;
        gap: 8px;
        margin-top: 12px;
        border: 1px solid #f0e6f7;
        border-radius: 17px;
        padding: 12px;
        background: #fcf9ff;
      }
      body.ms-v104 .v104-checklist-title {
        font-weight: 950;
        color: #3b006f;
        font-size: 12px;
        margin-bottom: 1px;
      }
      body.ms-v104 .v104-check-item {
        display: grid;
        grid-template-columns: 22px 1fr;
        gap: 8px;
        align-items: start;
        color: #403248;
        font-size: 12px;
        line-height: 1.35;
      }
      body.ms-v104 .v104-task-script {
        margin-top: 12px;
        border: 1px dashed #e4d3ee;
        background: #fbf8ff;
        border-radius: 17px;
        padding: 12px;
        color: #392b46;
        font-size: 12px;
        line-height: 1.48;
        white-space: pre-line;
      }
      body.ms-v104 .v104-panel-note {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        background: #fff8ed;
        border: 1px solid #ffe0ac;
        color: #7b5207;
        font-size: 11px;
        line-height: 1.4;
      }

  body.ms-v104 .v104-ia-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 94;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 12px 16px 12px 14px;
    color: #fff;
    font-weight: 1000;
    letter-spacing: .01em;
    background: linear-gradient(135deg, #6800a0, #e5007d);
    box-shadow: 0 20px 44px rgba(84,0,120,.30);
  }
  body.ms-v104 .v104-ia-float .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #24dd8a;
    box-shadow: 0 0 0 5px rgba(36,221,138,.18);
  }
  body.ms-v104 .v104-ia-panel {
    position: fixed;
    right: 18px;
    bottom: 78px;
    width: min(468px, calc(100vw - 28px));
    height: min(700px, calc(100vh - 100px));
    z-index: 95;
    display: none;
    border: 1px solid #eadff3;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #fcfbff 100%);
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(30,0,52,.28);
  }
  body.ms-v104 .v104-ia-panel.show {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
  }
  body.ms-v104 .v104-ia-panel.minimized { display: none; }
  body.ms-v104 .v104-ia-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 14px;
    color: #fff;
    background:
      radial-gradient(circle at 0% 0%, rgba(255,255,255,.18), transparent 28%),
      linear-gradient(135deg, #320067, #690ec1 55%, #ef0a88);
  }
  body.ms-v104 .v104-ia-title-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
  }
  body.ms-v104 .v104-ia-badge {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  }
  body.ms-v104 .v104-ia-top b {
    display: block;
    font-size: 16px;
    line-height: 1.18;
  }
  body.ms-v104 .v104-ia-top span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    line-height: 1.35;
    max-width: 280px;
  }
  body.ms-v104 .v104-ia-head-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  body.ms-v104 .v104-ia-window-actions { display: flex; gap: 8px; }
  body.ms-v104 .v104-ia-close,
  body.ms-v104 .v104-ia-min {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 950;
    font-size: 22px;
    line-height: 1;
    border: 1px solid rgba(255,255,255,.12);
  }
  body.ms-v104 .v104-ia-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 11px 12px 12px;
    border-bottom: 1px solid #f0e8f6;
    background: linear-gradient(180deg, #fff, #fcfbff);
  }
  body.ms-v104 .v104-ia-status div {
    border: 1px solid #eee5f6;
    border-radius: 16px;
    padding: 10px 11px;
    background: linear-gradient(180deg, #ffffff, #faf7ff);
    box-shadow: 0 8px 18px rgba(70,21,117,.04);
  }
  body.ms-v104 .v104-ia-status small {
    display: block;
    color: #85779a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
  }
  body.ms-v104 .v104-ia-status b {
    display: block;
    margin-top: 4px;
    color: #31025f;
    font-size: 12px;
    line-height: 1.25;
    min-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.ms-v104 .v104-ia-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 0;
    background: linear-gradient(180deg, #ffffff, #fcfbff);
  }
  body.ms-v104 .v104-chat-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }
  body.ms-v104 .v104-chat-headline {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #f2ebf8;
    background: #fff;
  }
  body.ms-v104 .v104-chat-headline .mode {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f5ecff;
    color: #6114b6;
    font-size: 11px;
    font-weight: 950;
  }
  body.ms-v104 .v104-chat-headline p {
    margin: 8px 0 0;
    color: #786c88;
    font-size: 11px;
    line-height: 1.38;
  }
  body.ms-v104 .v104-ia-tabs {
    border-left: 1px solid #f0e8f6;
    background: linear-gradient(180deg, #fbf8ff, #f6f1fd);
    padding: 10px 8px;
    overflow: auto;
  }
  body.ms-v104 .v104-ia-tab {
    width: 100%;
    border-radius: 18px;
    padding: 10px 8px;
    margin-bottom: 7px;
    text-align: center;
    color: #5f4e73;
    background: transparent;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.2;
  }
  body.ms-v104 .v104-ia-tab:hover {
    background: rgba(255,255,255,.75);
    border-color: #eadfff;
  }
  body.ms-v104 .v104-ia-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 12px 24px rgba(103, 8, 181, .22);
  }
  body.ms-v104 .v104-tab-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0 auto 7px;
    border-radius: 13px;
    background: rgba(255,255,255,.75);
    font-size: 16px;
  }
  body.ms-v104 .v104-ia-tab.active .v104-tab-icon {
    background: rgba(255,255,255,.16);
  }
  body.ms-v104 .v104-tab-label {
    display: block;
    white-space: normal;
    word-break: break-word;
  }
  body.ms-v104 .v104-chat {
    padding: 12px;
    overflow: auto;
    background:
      radial-gradient(circle at 100% 0%, rgba(237,0,125,.055), transparent 25%),
      radial-gradient(circle at 0% 100%, rgba(93,10,200,.05), transparent 22%),
      #fff;
  }
  body.ms-v104 .v104-msg-row {
    margin-bottom: 10px;
  }
  body.ms-v104 .v104-msg {
    max-width: 96%;
    display: grid;
    gap: 4px;
  }
  body.ms-v104 .v104-msg.user {
    margin-left: auto;
    justify-items: end;
  }
  body.ms-v104 .v104-msg-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a7d98;
  }
  body.ms-v104 .v104-msg.user .v104-msg-label {
    color: #7d36b0;
  }
  body.ms-v104 .v104-bubble {
    max-width: 100%;
    border-radius: 20px;
    padding: 12px 13px;
    font-size: 12px;
    line-height: 1.48;
    white-space: pre-line;
  }
  body.ms-v104 .v104-msg.bot .v104-bubble {
    background: linear-gradient(180deg, #f7f1ff, #f4edff);
    color: #392b46;
    border-top-left-radius: 7px;
    border: 1px solid #ebdefa;
  }
  body.ms-v104 .v104-msg.user .v104-bubble {
    color: #fff;
    background: linear-gradient(135deg, #5d0ac8, #ed007d);
    border-top-right-radius: 7px;
    box-shadow: 0 14px 26px rgba(108, 10, 167, .20);
  }
  body.ms-v104 .v104-quick-grid {
    display: grid;
    gap: 8px;
    margin: 11px 0 4px;
  }
  body.ms-v104 .v104-quick {
    text-align: left;
    border: 1px solid #eee5f6;
    background: linear-gradient(180deg, #ffffff, #fbf9ff);
    border-radius: 16px;
    padding: 11px 12px;
    color: #35233f;
    font-weight: 900;
    font-size: 11px;
    box-shadow: 0 8px 18px rgba(70,21,117,.04);
  }
  body.ms-v104 .v104-quick:hover {
    transform: translateY(-1px);
    border-color: #dcc9f7;
  }
  body.ms-v104 .v104-ia-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #f0e8f6;
    background: #fff;
  }
  body.ms-v104 .v104-ia-input input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e4d8ef;
    border-radius: 18px;
    padding: 13px 14px;
    outline: none;
    background: #fbf9fe;
  }
  body.ms-v104 .v104-ia-input button {
    min-width: 88px;
    border-radius: 16px;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(135deg, #5d0ac8, #ed007d);
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(108, 10, 167, .18);
  }
  body.ms-v104 .v104-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
  }
  body.ms-v104 .v104-mini-actions button {
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #e8ddf3;
    color: #4f147c;
    font-size: 10px;
    font-weight: 950;
  }
  @media (max-width: 720px) {
    body.ms-v104 .v104-smart-panel {
      right: 12px;
      left: 12px;
      width: auto;
      top: 70px;
    }
    body.ms-v104 .v104-flow,
    body.ms-v104 .v104-smart-actions,
    body.ms-v104 .v104-ia-status {
      grid-template-columns: 1fr;
    }
    body.ms-v104 .v104-ia-panel {
      right: 10px;
      left: 10px;
      width: auto;
      height: calc(100vh - 96px);
      bottom: 70px;
    }
    body.ms-v104 .v104-ia-body {
      grid-template-columns: 1fr;
      grid-template-rows: auto 1fr;
    }
    body.ms-v104 .v104-ia-tabs {
      order: -1;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(88px, 1fr);
      gap: 8px;
      overflow-x: auto;
      border-left: 0;
      border-bottom: 1px solid #f0e8f6;
      padding: 10px;
    }
    body.ms-v104 .v104-ia-tab {
      min-height: 84px;
      margin-bottom: 0;
    }
  }
