.gpt-chat-modes{--gpt-purple:#7650d8;--gpt-purple-dark:#613bc2;--gpt-lavender:#f1ecff;--gpt-border:#e7defb;width:100%;max-width:100%;margin:0 auto;font-family:inherit;box-sizing:border-box}
.gpt-chat-modes *,.gpt-chat-modes *:before,.gpt-chat-modes *:after{box-sizing:border-box}
.gpt-chat-modes__tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:100%;padding:8px;margin:0 0 18px;background:#faf8ff;border:1px solid var(--gpt-border);border-radius:15px}
.gpt-chat-modes__tab{appearance:none;display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:46px;padding:11px 14px;border:1px solid transparent;border-radius:10px;background:transparent;color:#625b70;font:inherit;font-size:16px;font-weight:600;line-height:1.25;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.gpt-chat-modes__tab:hover{color:var(--gpt-purple-dark);background:var(--gpt-lavender)}
.gpt-chat-modes__tab:focus-visible{outline:3px solid rgba(118,80,216,.28);outline-offset:2px}
.gpt-chat-modes__tab.is-active{color:#fff;background:var(--gpt-purple);border-color:var(--gpt-purple);box-shadow:0 3px 9px rgba(94,57,183,.18)}
.gpt-chat-modes__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:18px;line-height:1}
.gpt-chat-modes__panels,.gpt-chat-modes__panel{width:100%;min-width:0}
.gpt-chat-modes__panel[hidden]{display:none!important}
.gpt-chat-modes__notice{padding:16px 18px;border:1px dashed #cbb9f5;border-radius:12px;background:#fbf9ff;color:#65548a;font-size:14px;line-height:1.6}
.gpt-chat-modes__panel>*{max-width:100%}
.gpt-chat-modes__panel iframe{max-width:100%}
@media(max-width:640px){.gpt-chat-modes__tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;margin-bottom:14px;border-radius:12px}.gpt-chat-modes__tab{flex-direction:column;gap:5px;min-height:58px;padding:8px 3px;font-size:14px;border-radius:8px}.gpt-chat-modes__icon{font-size:17px}}
@media(max-width:360px){.gpt-chat-modes__tab{font-size:14px}.gpt-chat-modes__icon{font-size:15px}}

/* Consistent inline SVG icons for each mode tab. */
.gpt-chat-modes__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Compact shared AI model selector above the mode tabs. */
.gpt-chat-model-bar{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;margin:0 0 10px;padding:0 2px}
.gpt-chat-model-bar__label{color:#625b70;font-size:13px;font-weight:600;white-space:nowrap}
.gpt-chat-model-bar .gpt-chat-model-picker__select{width:auto;min-width:170px;max-width:min(260px,65%);min-height:36px;padding:6px 32px 6px 10px;border:1px solid #d8c9f7;border-radius:9px;background:#fff;color:#30264a;font:inherit;font-size:13px;line-height:1.3;cursor:pointer;outline:none;transition:border-color .2s,box-shadow .2s}
.gpt-chat-model-bar .gpt-chat-model-picker__select:focus{border-color:var(--gpt-purple);box-shadow:0 0 0 3px rgba(118,80,216,.12)}
.gpt-chat-model-bar__feedback{display:inline-flex;align-items:center;gap:6px;min-width:0;color:#59418f;font-size:12px;font-weight:600}
.gpt-chat-model-bar__feedback .gpt-chat-model-picker__spark{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;flex:0 0 19px;color:var(--gpt-purple)}
.gpt-chat-model-picker__spark svg{display:block;width:18px;height:18px;fill:currentColor;stroke:none}
.gpt-chat-model-bar__feedback.is-animating{animation:gptModelSelect .55s ease both}
.gpt-chat-model-bar__feedback.is-animating .gpt-chat-model-picker__spark{animation:gptModelSpark .55s ease both}
.gpt-chat-model-bar__empty{color:#786b91;font-size:12px}
@keyframes gptModelSelect{0%{opacity:.45;transform:translateY(3px)}55%{opacity:1;transform:translateY(-1px)}100%{opacity:1;transform:translateY(0)}}
@keyframes gptModelSpark{0%{transform:rotate(-35deg) scale(.7)}60%{transform:rotate(18deg) scale(1.15)}100%{transform:rotate(0) scale(1)}}
@media(max-width:640px){.gpt-chat-model-bar{justify-content:flex-start;gap:7px;margin-bottom:8px}.gpt-chat-model-bar .gpt-chat-model-picker__select{min-width:0;max-width:58%;min-height:34px;font-size:12px}.gpt-chat-model-bar__label{font-size:12px}.gpt-chat-model-bar__feedback{font-size:11px}.gpt-chat-model-bar__feedback .gpt-chat-model-picker__spark{width:17px;height:17px;flex-basis:17px}
.gpt-chat-model-picker__spark svg{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.gpt-chat-model-bar__feedback.is-animating,.gpt-chat-model-bar__feedback.is-animating .gpt-chat-model-picker__spark{animation:none}}
