/* نئومورفیسم */


html #gw-root{--bg:#e8edf5;--tx:#25324a;--mut:#62738d;--lo:#c5cedc;--hi:#fff;--gt-header-text:var(--gt-on-primary,#fff)}
html #gw-root #gw-box{background:#e8edf5!important;border:1px solid #eef2fb;border-radius:28px;box-shadow:14px 14px 32px #c2cada,-12px -12px 32px #fff!important}
html #gw-root #gw-hd{background:linear-gradient(115deg,rgba(0,0,0,.11),transparent),var(--gwc)!important;color:#fff!important;border-radius:24px 24px 0 0}
html #gw-root .gw-pad input,html #gw-root #gw-in textarea{background:#e8edf5!important;border:0!important;box-shadow:inset 4px 4px 9px #c6cfdd,inset -4px -4px 9px #fff!important;border-radius:17px}
html #gw-root .gw-pad select{background-color:#e8edf5!important;border:0!important;box-shadow:inset 4px 4px 9px #c6cfdd,inset -4px -4px 9px #fff!important}
html #gw-root #gw-msgs{background:#e8edf5!important;box-shadow:inset 5px 5px 11px #c6cfdd,inset -5px -5px 11px #fff!important;border:0!important}
html #gw-root .gw-m.admin .gw-b{background:#e8edf5!important;box-shadow:4px 4px 10px #c5cedc,-4px -4px 10px #fff!important}
html #gw-root #gw-launch,html #gw-root #gw-att{background:#e8edf5;box-shadow:6px 6px 14px #c5cedc,-6px -6px 14px #fff!important}
html #gw-root .gw-pad .btn,html #gw-root #gw-send{box-shadow:5px 5px 12px #c4cedc,-5px -5px 12px #fff!important}


/* Goftaran 2.10.7: consistent contrast and controls across themes. */
html #gw-root #gw-hd #gw-ht,html #gw-root #gw-hd #gw-t,html #gw-root #gw-hd #gw-dn{color:var(--gt-header-text,#fff)!important;text-shadow:none!important}
html #gw-root #gw-hd #gw-dn{opacity:.84!important}
html #gw-root #gw-hd button{color:var(--gt-header-text,#fff)!important}
html #gw-root .gw-pad p,html #gw-root .gw-pad label,html #gw-root .gw-fq summary{color:var(--tx)!important}
html #gw-root .gw-pad input,html #gw-root .gw-pad select,html #gw-root #gw-in textarea{color:var(--tx)!important}
html #gw-root .gw-pad input::placeholder,html #gw-root #gw-in textarea::placeholder{color:var(--mut)!important;opacity:.85}
html #gw-root .gw-m.admin .gw-b,html #gw-root .gw-m.admin .gw-b .gw-t{color:var(--tx)!important}
html #gw-root .gw-m.user .gw-b,html #gw-root .gw-m.user .gw-b .gw-t{color:var(--gt-on-primary,#fff)!important}
html #gw-root #gw-hd span::before{background:#35d8a0!important;box-shadow:0 0 0 3px rgba(255,255,255,.17)!important}

/* Accessible brand-contrast for light custom primary colors. */
html #gw-root .gw-pad .btn,html #gw-root #gw-send,html #gw-root .gw-dp button{color:var(--gt-on-primary,#fff)!important}
html #gw-root .gw-m.user .gw-b .gw-tm,html #gw-root .gw-m.user .gw-b .gw-tm .gw-st{color:var(--gt-on-primary,#fff)!important;opacity:.85}


/* Goftaran 2.10.74: keep primary actions legible across all seven presets,
   regardless of a theme's button styles or the preset's light surfaces. */
html #gw-root .gw-pad button.btn,
html #gw-root #gw-send,
html #gw-root .gw-dp button {
    background:var(--gwc,#5843e7)!important;
    background-color:var(--gwc,#5843e7)!important;
    color:var(--gt-on-primary,#fff)!important;
    border-color:transparent!important;
    -webkit-text-fill-color:var(--gt-on-primary,#fff)!important;
}
html #gw-root .gw-pad button.btn:hover,
html #gw-root #gw-send:hover,
html #gw-root .gw-dp button:hover {filter:brightness(.96)}
html #gw-root .gw-pad button.btn:disabled,
html #gw-root #gw-send:disabled,
html #gw-root .gw-dp button:disabled {opacity:.62}


/* 2.10.75: Header action controls must stay visible over ALL widget presets.
   Scope to the two real header controls; protect icon strokes and glyphs from
   theme button rules and custom font CSS. Never change other action buttons. */
html body #gw-root #gw-hd .gw-hb > button#gw-lo,
html body #gw-root #gw-hd .gw-hb > button#gw-x {
    background:#203454!important;
    background-color:#203454!important;
    background-image:none!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    border-color:rgba(255,255,255,.55)!important;
    opacity:1!important;
    visibility:visible!important;
    text-shadow:none!important;
}
html body #gw-root #gw-hd .gw-hb > button#gw-lo svg,
html body #gw-root #gw-hd .gw-hb > button#gw-lo svg path {
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    fill:none!important;
    stroke:#ffffff!important;
}
html body #gw-root #gw-hd .gw-hb > button#gw-x {
    font-family:Arial,sans-serif!important;
    font-size:26px!important;
    font-weight:500!important;
    line-height:1!important;
}
html body #gw-root #gw-hd .gw-hb > button#gw-lo:hover,
html body #gw-root #gw-hd .gw-hb > button#gw-x:hover {
    background:#10243e!important;
    background-color:#10243e!important;
}
html body #gw-root #gw-hd .gw-hb > button#gw-lo:focus-visible,
html body #gw-root #gw-hd .gw-hb > button#gw-x:focus-visible {
    outline:2px solid #ffffff!important;
    outline-offset:2px;
}
/* 2.10.109 — retain preset identity with lighter bubble geometry. */
html #gw-root .gw-m.user .gw-b{border-radius:16px 9px 16px 16px!important;box-shadow:0 2px 5px rgba(30,41,59,.12)!important;}
html #gw-root .gw-m.admin .gw-b{border-radius:9px 16px 16px 16px!important;box-shadow:2px 2px 5px #c5cedc,-2px -2px 5px #fff!important;}
