.nd-ai-widget-shell{position:relative;z-index:2147480000;font-family:inherit;--nd-ai-primary:#176f82;--nd-ai-primary-dark:#145f70;--nd-ai-primary-soft:#eef7f9;--nd-ai-border:#d8e2e7;--nd-ai-text:#22333c;--nd-ai-muted:#6d7d86}
.nd-ai-widget-shell *{box-sizing:border-box}
.nd-ai-launcher{position:fixed;left:24px;bottom:24px;z-index:2147480001;display:flex;align-items:center;gap:9px;min-height:46px;padding:0 18px;border:0;border-radius:24px;background:var(--nd-ai-primary);color:#fff;font-size:14px;font-weight:700;box-shadow:0 10px 26px rgba(23,111,130,.22);cursor:pointer}
.nd-ai-launcher:hover,.nd-ai-launcher:focus{background:var(--nd-ai-primary-dark);color:#fff;outline:0}
.nd-ai-launcher-spark{font-size:18px;line-height:1}
.nd-ai-widget{position:fixed;left:24px;bottom:24px;z-index:2147480002;width:410px;height:650px;max-width:calc(100vw - 48px);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--nd-ai-border);border-radius:18px;box-shadow:0 18px 48px rgba(25,61,77,.20);overflow:hidden}
.nd-ai-widget[hidden]{display:none!important}
.nd-ai-widget.is-expanded{left:50%;top:50%;right:auto;bottom:auto;width:min(720px,calc(100vw - 64px));height:calc(100vh - 64px);max-width:none;max-height:none;transform:translate(-50%,-50%)}
.nd-ai-widget-header{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:70px;padding:13px 14px 13px 16px;background:var(--nd-ai-primary);color:#fff;cursor:move;user-select:none;touch-action:none}
.nd-ai-brand{display:flex;align-items:center;gap:11px;min-width:0}
.nd-ai-brand-mark{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:2px solid rgba(255,255,255,.92);border-radius:50%;font-size:11px;font-weight:800;letter-spacing:.02em;background:rgba(255,255,255,.08)}
.nd-ai-brand-copy{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.nd-ai-brand-copy strong{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd-ai-brand-copy small{margin-top:3px;color:#e4f3f6;font-size:10px;font-weight:600;letter-spacing:.02em}
.nd-ai-widget-controls{display:flex;align-items:center;gap:3px;flex:0 0 auto}
.nd-ai-widget-controls button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;font-size:16px;cursor:pointer}
.nd-ai-widget-controls button:hover,.nd-ai-widget-controls button:focus{background:rgba(255,255,255,.16);outline:0}
.nd-ai-widget-main{position:relative;flex:1;min-height:0;background:#fff}
.nd-ai-pane{display:none;height:100%;min-height:0}
.nd-ai-pane.is-active{display:flex;flex-direction:column}
.nd-ai-messages{flex:1;min-height:0;overflow-y:auto;padding:18px 16px 14px;scroll-behavior:smooth;background:#fbfdfe}
.nd-ai-message-row{display:flex;gap:9px;align-items:flex-start;margin-bottom:16px}
.nd-ai-message-row.user{justify-content:flex-end}
.nd-ai-message-row.user .nd-ai-message-card{max-width:82%;background:var(--nd-ai-primary);color:#fff;border-radius:14px 14px 3px 14px}
.nd-ai-message-row.assistant .nd-ai-message-card,.nd-ai-message-row.system .nd-ai-message-card{max-width:82%;background:#f1f6f8;color:var(--nd-ai-text);border:1px solid #e1eaee;border-radius:14px 14px 14px 3px}
.nd-ai-message-row.system .nd-ai-message-card{background:#fff8e8;border-color:#ead59c;color:#5f4a16}
.nd-ai-message-card{padding:11px 13px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.nd-ai-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 31px;width:31px;height:31px;border:1.5px solid var(--nd-ai-primary);border-radius:50%;font-size:9px;font-weight:800;color:var(--nd-ai-primary);background:#fff}
.nd-ai-welcome{margin-bottom:20px}
.nd-ai-inline-link{color:#0b718e!important;font-weight:700;text-decoration:underline!important;text-underline-offset:2px}
.nd-ai-inline-link:hover,.nd-ai-inline-link:focus{color:#084f65!important}
.nd-ai-action-link{display:inline-block;margin-top:8px;padding:7px 11px;border-radius:14px;background:#fff;border:1px solid #bdd4dc;color:#145f70!important;font-size:11px;font-weight:700;text-decoration:none!important}
.nd-ai-action-link:hover,.nd-ai-action-link:focus{background:var(--nd-ai-primary-soft)}
.nd-ai-feedback{display:flex;align-items:center;gap:7px;margin:7px 0 0 40px}
.nd-ai-feedback button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid #cbd9df;border-radius:50%;background:#fff;color:#40545e;cursor:pointer;line-height:1}
.nd-ai-feedback-icon{font-size:16px;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
.nd-ai-feedback button:hover,.nd-ai-feedback button:focus{background:var(--nd-ai-primary-soft);border-color:#8eb9c4;outline:0}
.nd-ai-feedback button.is-selected{background:#dff2f6;border-color:var(--nd-ai-primary);box-shadow:0 0 0 2px rgba(23,111,130,.08)}
.nd-ai-feedback-note{margin:7px 0 0 40px;display:flex;gap:6px;align-items:flex-start}
.nd-ai-feedback-note textarea{flex:1;min-height:54px;padding:8px 9px;border:1px solid #ccd6dc;border-radius:9px;resize:vertical;font-size:11px}
.nd-ai-feedback-note button{padding:7px 10px;border:0;border-radius:9px;background:var(--nd-ai-primary);color:#fff;font-size:11px;font-weight:700}
.nd-ai-feedback-saved{margin-left:40px;margin-top:6px;color:#55707f;font-size:10px}
.nd-ai-tip{position:relative}
.nd-ai-tip:hover:after,.nd-ai-tip:focus:after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:60;max-width:220px;white-space:normal;padding:6px 8px;border-radius:6px;background:#253a44;color:#fff;font-size:10px;font-weight:600;line-height:1.35;box-shadow:0 5px 15px rgba(0,0,0,.18);pointer-events:none}
.nd-ai-feedback .nd-ai-tip:hover:after,.nd-ai-feedback .nd-ai-tip:focus:after{bottom:auto;top:calc(100% + 7px)}
.nd-ai-typing{padding:0 18px 9px 57px;height:24px;background:#fbfdfe}
.nd-ai-typing[hidden]{display:none!important}
.nd-ai-typing span{display:inline-block;width:6px;height:6px;margin-right:3px;border-radius:50%;background:#7e9da8;animation:ndAiTyping 1.15s infinite ease-in-out}
.nd-ai-typing span:nth-child(2){animation-delay:.12s}.nd-ai-typing span:nth-child(3){animation-delay:.24s}
@keyframes ndAiTyping{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.nd-ai-composer-wrap{padding:10px 16px 11px;border-top:1px solid #e5edf0;background:#fff}
.nd-ai-composer{display:flex;align-items:flex-end;gap:7px;padding:6px 8px;border:1px solid #aebfc7;border-radius:24px;background:#fff}
.nd-ai-composer:focus-within{border-color:#6fa6b4;box-shadow:0 0 0 2px rgba(23,111,130,.08)}
.nd-ai-composer textarea{flex:1;min-height:34px;max-height:112px;padding:7px 4px;border:0!important;outline:0!important;resize:none;box-shadow:none!important;background:transparent;color:#202124;font-size:13px;line-height:1.4}
.nd-ai-icon-button,.nd-ai-send-button{flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#42545d;font-size:16px;cursor:pointer}
.nd-ai-icon-button:hover,.nd-ai-send-button:hover{background:#eef5f7}
.nd-ai-send-button{color:var(--nd-ai-primary)}
.nd-ai-send-button:disabled{opacity:.35;cursor:not-allowed}
.nd-ai-guidance{padding-top:7px;color:#6d777d;font-size:9.5px;text-align:center;line-height:1.35}
.nd-ai-widget-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px 16px 13px;background:#fff;border-top:1px solid #e5edf0}
.nd-ai-widget-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;height:42px;border:1px solid #dce6ea;border-radius:22px;background:#fff;color:#26363e;font-size:12px;font-weight:700;cursor:pointer}
.nd-ai-widget-tabs button:hover,.nd-ai-widget-tabs button:focus{background:#f5fafb;outline:0}
.nd-ai-widget-tabs button.is-active{background:var(--nd-ai-primary);border-color:var(--nd-ai-primary);color:#fff}
.nd-ai-widget-tabs i{font-size:17px}
.nd-ai-help-home{display:flex;flex-direction:column;height:100%;min-height:0;background:#fff}
.nd-ai-help-home[hidden],.nd-ai-help-reader[hidden]{display:none!important}
.nd-ai-help-search{display:flex;align-items:center;gap:8px;margin:15px 16px 8px;padding:0 12px;height:44px;border:1px solid #cfdde2;border-radius:23px;background:#fff}
.nd-ai-help-search:focus-within{border-color:#79aeb9;box-shadow:0 0 0 2px rgba(23,111,130,.08)}
.nd-ai-help-search input{flex:1;border:0!important;outline:0!important;box-shadow:none!important;background:transparent;font-size:13px;color:#26363e}
.nd-ai-help-scroll{flex:1;min-height:0;overflow-y:auto;padding:5px 16px 18px}
.nd-ai-help-section{padding:7px 0 14px}
.nd-ai-help-section h4{margin:0 0 8px;color:#334952;font-size:11px;font-weight:800;text-transform:none}
.nd-ai-help-section>button,.nd-ai-help-section>a,.nd-ai-help-results-list>button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:10px 7px;border:0;border-bottom:1px solid #edf2f4;background:#fff;color:#18272e!important;font-family:inherit;font-size:12px;text-align:left;text-decoration:none!important;cursor:pointer}
.nd-ai-help-section>button:hover,.nd-ai-help-section>button:focus,.nd-ai-help-section>a:hover,.nd-ai-help-results-list>button:hover,.nd-ai-help-results-list>button:focus{background:#f3f9fa;outline:0}
.nd-ai-help-result-meta{display:block;color:#768890;font-size:9px;margin-top:2px}
.nd-ai-help-results-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:5px}
.nd-ai-help-results-head h4{margin-bottom:0;font-size:12px}
.nd-ai-help-results-clear{border:1px solid #c8d9df!important;border-radius:14px!important;background:#fff!important;color:var(--nd-ai-primary)!important;font-size:10px!important;font-weight:700;cursor:pointer;padding:5px 9px!important;width:auto!important}
.nd-ai-help-empty{padding:15px 7px;color:#667780;font-size:11px;line-height:1.45}
.nd-ai-help-home.is-results-mode .nd-ai-help-scroll>.nd-ai-help-section:not(.nd-ai-help-results){display:none}
.nd-ai-help-home.is-results-mode .nd-ai-help-results{padding-top:12px}
.nd-ai-admin-preview-links{border-top:1px solid #edf0f2;margin-top:5px;padding-top:15px}
.nd-ai-help-reader{display:flex;flex-direction:column;height:100%;min-height:0;background:#fff}
.nd-ai-help-reader-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #e5edf0;background:#f8fbfc}
.nd-ai-help-reader-head>div{display:flex;flex-direction:column;min-width:0}
.nd-ai-help-reader-head strong{color:#171a1c;font-size:13px;font-weight:800}
.nd-ai-help-reader-head small{margin-top:2px;color:#78868e;font-size:9px}
.nd-ai-help-back{flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #cbdde3;border-radius:50%;background:#fff;color:var(--nd-ai-primary);font-size:20px;cursor:pointer}
.nd-ai-help-back:hover,.nd-ai-help-back:focus{background:#eef7f9;outline:0}
.nd-ai-help-reader-scroll{flex:1;min-height:0;overflow-y:auto;padding:18px 18px 24px}
.nd-ai-help-reader-loading{padding:28px 8px;color:#61727c;font-size:12px;text-align:center}
.nd-ai-help-reader-scroll h3{margin:0 0 5px;color:#171a1c;font-size:18px;font-weight:800;line-height:1.3}
.nd-ai-help-reader-meta{margin-bottom:18px;color:#74838c;font-size:10px;font-weight:700}
.nd-ai-help-article-section{margin:0 0 18px}
.nd-ai-help-article-section h4{margin:0 0 7px;color:#25343c;font-size:13px;font-weight:800;line-height:1.35}
.nd-ai-help-article-section p{margin:0 0 10px;color:#2b3338;font-size:12px;line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere}
.nd-ai-help-reader-empty{color:#667780}
.nd-ai-help-full-page{display:inline-flex;margin-top:6px;padding:8px 12px;border:1px solid #cbdde3;border-radius:16px;color:var(--nd-ai-primary)!important;background:#fff;font-size:10px;font-weight:700;text-decoration:none!important}
.nd-ai-help-full-page:hover{background:#eef7f9}
.nd-ai-handoff[hidden]{display:none!important}
.nd-ai-handoff{position:absolute;inset:0;z-index:40;padding:14px;background:rgba(32,60,72,.30);display:flex;align-items:flex-end}
.nd-ai-handoff-card{width:100%;max-height:96%;overflow-y:auto;border-radius:16px;background:#fff;box-shadow:0 12px 35px rgba(0,0,0,.18)}
.nd-ai-handoff-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 15px;border-bottom:1px solid #e7ecef;background:#f8fbfc}
.nd-ai-handoff-head strong{display:block;font-size:14px}.nd-ai-handoff-head small{display:block;margin-top:3px;color:#6d7b84;font-size:10px;line-height:1.35}.nd-ai-handoff-head button{border:0;background:transparent;font-size:16px;cursor:pointer}
.nd-ai-handoff form{padding:14px 15px 16px}.nd-ai-handoff label{display:block;margin-bottom:10px;color:#37464f;font-size:11px;font-weight:700}.nd-ai-handoff input[type=text],.nd-ai-handoff input[type=email],.nd-ai-handoff textarea{display:block;width:100%;margin-top:4px;padding:9px 10px;border:1px solid #cbd5db;border-radius:9px;background:#fff;font-size:12px;font-weight:400;outline:0}.nd-ai-file-label{padding:10px;border:1px dashed #aebfc7;border-radius:10px;background:#f8fbfc;cursor:pointer}.nd-ai-file-label input{display:block;margin-top:7px;font-weight:400}.nd-ai-file-label small{display:block;margin-top:5px;color:#71808a;font-weight:400}.nd-ai-handoff-status{min-height:18px;margin:2px 0 8px;color:#435c6a;font-size:11px}.nd-ai-handoff-status.is-error{color:#a03b3b}.nd-ai-handoff-submit{width:100%;padding:10px 12px;border:0;border-radius:10px;background:var(--nd-ai-primary);color:#fff;font-size:12px;font-weight:800;cursor:pointer}.nd-ai-handoff-submit:disabled{opacity:.5}

/* Phase 2.8.2 shared public-widget icon and interaction polish */
.nd-ai-ui-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.nd-ai-widget-controls .nd-ai-ui-icon{width:18px;height:18px}
.nd-ai-expand-symbol{display:inline-flex;align-items:center;justify-content:center}
.nd-ai-icon-compress{display:none}
.nd-ai-widget.is-expanded .nd-ai-icon-expand{display:none}
.nd-ai-widget.is-expanded .nd-ai-icon-compress{display:block}
.nd-ai-help-search>.nd-ai-search-icon{flex:0 0 18px;width:18px;height:18px;color:#173a4a}
.nd-ai-chevron-icon{width:15px;height:15px;flex:0 0 15px}
.nd-ai-icon-button .nd-ai-ui-icon,.nd-ai-send-button .nd-ai-ui-icon{width:17px;height:17px;margin:auto}
.nd-ai-handoff-head button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%}
.nd-ai-handoff-head button:hover,.nd-ai-handoff-head button:focus{background:#edf5f7;outline:0}
.nd-ai-handoff-head button .nd-ai-ui-icon{width:17px;height:17px}
.nd-ai-file-label .nd-ai-ui-icon{display:inline-block;width:14px;height:14px;vertical-align:-2px;margin-right:4px}
.nd-ai-composer .nd-ai-icon-button.nd-ai-tip:hover:after,.nd-ai-composer .nd-ai-icon-button.nd-ai-tip:focus:after{left:0;right:auto;transform:none;text-align:left}
.nd-ai-composer .nd-ai-send-button.nd-ai-tip:hover:after,.nd-ai-composer .nd-ai-send-button.nd-ai-tip:focus:after{left:auto;right:0;transform:none;text-align:right}
.nd-ai-widget.is-dragging{user-select:none}
.nd-ai-widget.is-dragging .nd-ai-widget-header{cursor:grabbing}

@media(max-width:767px){.nd-ai-launcher{left:14px;bottom:14px}.nd-ai-widget,.nd-ai-widget.is-expanded{left:8px!important;top:8px!important;right:8px!important;bottom:8px!important;width:auto!important;height:auto!important;max-width:none;max-height:none;transform:none;border-radius:15px}.nd-ai-widget-header{cursor:default;touch-action:auto}.nd-ai-message-row.user .nd-ai-message-card,.nd-ai-message-row.assistant .nd-ai-message-card,.nd-ai-message-row.system .nd-ai-message-card{max-width:88%}}
@media(max-width:420px){.nd-ai-widget{left:0!important;top:0!important;right:0!important;bottom:0!important;border:0;border-radius:0}.nd-ai-widget-header{border-radius:0}.nd-ai-widget-tabs{padding-bottom:max(12px,env(safe-area-inset-bottom))}.nd-ai-composer-wrap{padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){.nd-ai-typing span{animation:none}.nd-ai-messages{scroll-behavior:auto}}
/* Phase 2.7.3 handoff processing / success status */
.nd-ai-action-status[hidden]{display:none!important}
.nd-ai-action-status{position:absolute;inset:0;z-index:55;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(241,247,249,.55);backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px);pointer-events:none}
.nd-ai-action-status-card{display:flex;align-items:center;gap:11px;max-width:330px;padding:13px 16px;border:1px solid #cfe0e5;border-radius:14px;background:#fff;color:#2a3b43;font-size:12px;font-weight:700;line-height:1.4;box-shadow:0 12px 32px rgba(32,67,82,.18)}
.nd-ai-action-status-icon{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#e9f5f7;color:var(--nd-ai-primary);font-size:17px;font-weight:900}
.nd-ai-action-status.is-processing .nd-ai-action-status-icon{border:3px solid #d4e4e8;border-top-color:var(--nd-ai-primary);background:transparent;animation:ndAiActionSpin .8s linear infinite}
.nd-ai-action-status.is-success .nd-ai-action-status-card{border-color:#bcded0;background:#f6fffb;color:#255c43}
.nd-ai-action-status.is-success .nd-ai-action-status-icon{background:#dff4e8;color:#287a52}
.nd-ai-action-status.is-error{pointer-events:none}
.nd-ai-action-status.is-error .nd-ai-action-status-card{border-color:#ebcaca;background:#fff8f8;color:#8f3535}
.nd-ai-action-status.is-error .nd-ai-action-status-icon{background:#fbe2e2;color:#a23d3d}
.nd-ai-handoff form.is-submitting{opacity:.78}
.nd-ai-handoff form.is-submitting input,.nd-ai-handoff form.is-submitting textarea,.nd-ai-handoff form.is-submitting label{pointer-events:none}
@keyframes ndAiActionSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.nd-ai-action-status.is-processing .nd-ai-action-status-icon{animation-duration:1.8s}}

.nd-ai-css-chevron{display:inline-block;flex:0 0 8px;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);margin-right:3px;color:#233840}


/* ==========================================================================
   Phase 2.8.3 - Public beta visual polish
   One-piece composer, clearer feedback, refined Help back area, response cards.
   ========================================================================== */

/* Conversation cards: softer, more finished public-beta appearance. */
.nd-ai-messages{
    padding:20px 18px 16px;
    background:#fbfdfe;
}
.nd-ai-message-row{gap:10px;margin-bottom:18px}
.nd-ai-message-card{
    padding:12px 14px;
    font-size:13px;
    line-height:1.56;
    box-shadow:0 1px 2px rgba(27,62,76,.025);
}
.nd-ai-message-row.assistant .nd-ai-message-card{
    max-width:84%;
    background:#f2f6f8;
    border-color:#e1e9ed;
    border-radius:16px 16px 16px 4px;
}
.nd-ai-message-row.user .nd-ai-message-card{
    max-width:82%;
    border-radius:16px 16px 4px 16px;
    box-shadow:0 3px 9px rgba(23,111,130,.08);
}
.nd-ai-avatar{
    flex-basis:32px;
    width:32px;
    height:32px;
    border-width:1.5px;
    background:#fff;
}

/* Human feedback remains prominent during public beta. No emoji/font dependency. */
.nd-ai-feedback{
    gap:8px;
    margin:8px 0 2px 42px;
    flex-wrap:wrap;
}
.nd-ai-feedback button{
    width:auto;
    height:36px;
    min-width:92px;
    padding:0 12px;
    gap:7px;
    border:1px solid #cfdae0;
    border-radius:18px;
    background:#fff;
    color:#465a64;
    font-family:inherit;
    font-size:11px;
    font-weight:700;
    line-height:1;
}
.nd-ai-feedback-icon{font-family:inherit}
.nd-ai-feedback-icon svg{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.nd-ai-feedback button:first-child{color:#14788a}
.nd-ai-feedback button:hover,.nd-ai-feedback button:focus{
    background:#f1f8fa;
    border-color:#91b9c3;
    color:var(--nd-ai-primary);
}
.nd-ai-feedback button.is-selected{
    color:var(--nd-ai-primary);
    background:#e7f5f7;
    border-color:#74aab7;
    box-shadow:0 0 0 2px rgba(23,111,130,.06);
}

/* One-piece message composer.
   The teal parent is the single outer pill. The white field overlaps the teal ends,
   making the attachment and send areas look cut into / joined with the input. */
.nd-ai-composer-wrap{
    padding:11px 16px 10px;
    border-top:1px solid #e5edf0;
    background:#fff;
    overflow:visible;
}
.nd-ai-composer{
    position:relative;
    display:grid;
    grid-template-columns:58px minmax(0,1fr) 58px;
    align-items:center;
    gap:0;
    min-height:56px;
    padding:0;
    border:1px solid #cedae0;
    border-radius:999px;
    background:var(--nd-ai-primary);
    box-shadow:0 3px 10px rgba(32,71,86,.08);
    overflow:visible;
    transition:border-color .16s ease,box-shadow .16s ease;
}
.nd-ai-composer:focus-within{
    border-color:#78aeba;
    box-shadow:0 0 0 3px rgba(23,111,130,.08),0 4px 13px rgba(32,71,86,.08);
}
.nd-ai-composer-field{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    min-width:0;
    min-height:50px;
    margin:3px -9px;
    padding:0 12px;
    border:1px solid #d3dee3;
    border-radius:999px;
    background:#fff;
    box-shadow:0 1px 4px rgba(27,62,76,.06);
}
.nd-ai-composer textarea{
    display:block;
    width:100%;
    flex:1 1 auto;
    min-width:0;
    min-height:36px;
    max-height:112px;
    margin:0;
    padding:8px 10px;
    border:0!important;
    outline:0!important;
    resize:none;
    box-shadow:none!important;
    background:transparent;
    color:#202124;
    font-family:inherit;
    font-size:13px;
    line-height:1.4;
}
.nd-ai-composer textarea::placeholder{color:#78858c;opacity:1}
.nd-ai-composer-end{
    position:relative;
    z-index:3;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:58px;
    height:54px;
    min-width:58px;
    padding:0;
    border:0;
    border-radius:999px;
    background:transparent;
    color:#fff;
    cursor:pointer;
    transition:background-color .15s ease,transform .15s ease;
}
.nd-ai-composer-end:hover,.nd-ai-composer-end:focus{
    background:rgba(255,255,255,.11);
    color:#fff;
    outline:0;
}
.nd-ai-composer-end:active{transform:scale(.96)}
.nd-ai-composer-end .nd-ai-ui-icon{
    width:23px;
    height:23px;
    margin:auto;
    stroke-width:1.8;
}
.nd-ai-composer-send .nd-ai-ui-icon{width:24px;height:24px}
.nd-ai-send-button:disabled{opacity:.42;cursor:not-allowed}
.nd-ai-send-button:disabled:active{transform:none}
.nd-ai-composer .nd-ai-composer-attach.nd-ai-tip:hover:after,
.nd-ai-composer .nd-ai-composer-attach.nd-ai-tip:focus:after{
    left:4px;
    right:auto;
    transform:none;
    text-align:left;
}
.nd-ai-composer .nd-ai-composer-send.nd-ai-tip:hover:after,
.nd-ai-composer .nd-ai-composer-send.nd-ai-tip:focus:after{
    left:auto;
    right:4px;
    transform:none;
    text-align:right;
}

/* Refined Help article back/header area. */
.nd-ai-help-reader-head{
    min-height:66px;
    gap:12px;
    padding:11px 16px;
    border-bottom:1px solid #dfe8ec;
    background:linear-gradient(180deg,#fbfdfe 0%,#f7fafb 100%);
    box-shadow:0 2px 6px rgba(34,67,82,.035);
}
.nd-ai-help-back{
    flex:0 0 38px;
    width:38px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #c7d9df;
    border-radius:50%;
    background:#fff;
    color:var(--nd-ai-primary);
    box-shadow:0 1px 3px rgba(32,71,86,.05);
}
.nd-ai-help-back .nd-ai-ui-icon{width:17px;height:17px}
.nd-ai-help-back:hover,.nd-ai-help-back:focus{
    background:#edf7f9;
    border-color:#94bac4;
}
.nd-ai-help-reader-head strong{
    color:#182930;
    font-size:15px;
    font-weight:800;
    line-height:1.15;
}
.nd-ai-help-reader-head small{
    margin-top:4px;
    color:#73838b;
    font-size:9.5px;
    line-height:1.25;
}
.nd-ai-help-reader-scroll{padding:20px 20px 26px}
.nd-ai-help-reader-scroll h3{font-size:19px;line-height:1.28;margin-bottom:6px}
.nd-ai-help-reader-meta{
    display:inline-flex;
    width:auto;
    margin:0 0 16px;
    padding:4px 9px;
    border-radius:999px;
    background:#eef7f9;
    color:#176f82;
    font-size:9.5px;
    font-weight:800;
}
.nd-ai-help-article-section{margin-bottom:20px}
.nd-ai-help-article-section h4{margin-bottom:8px;font-size:13.5px;line-height:1.35}
.nd-ai-help-article-section p{margin-bottom:11px;font-size:12.25px;line-height:1.62}

/* Tabs stay visually simple and consistent with the production-candidate widget. */
.nd-ai-widget-tabs{gap:10px;padding:9px 16px 13px}
.nd-ai-widget-tabs button{height:44px;border-radius:23px}

@media(max-width:767px){
    .nd-ai-composer{grid-template-columns:54px minmax(0,1fr) 54px;min-height:54px}
    .nd-ai-composer-end{width:54px;min-width:54px;height:52px}
    .nd-ai-composer-field{min-height:48px;margin:3px -8px;padding:0 9px}
    .nd-ai-composer textarea{font-size:16px;padding-left:8px;padding-right:8px}
    .nd-ai-feedback{margin-left:42px}
}
@media(max-width:420px){
    .nd-ai-composer-wrap{padding-left:9px;padding-right:9px}
    .nd-ai-composer{grid-template-columns:51px minmax(0,1fr) 51px}
    .nd-ai-composer-end{width:51px;min-width:51px}
    .nd-ai-composer-end .nd-ai-ui-icon{width:21px;height:21px}
    .nd-ai-feedback button{min-width:0;padding:0 10px}
    .nd-ai-help-reader-scroll{padding-left:16px;padding-right:16px}
}
