/* Dark-theme readability: descriptions, fulfilled orders and balance delivery. */
html.xg-midnight body.yinse-theme.ys .yinse-description-body{color:#e1d5ed!important;}
html.xg-midnight body.yinse-theme.ys .yinse-description-body :is(p,li,div,span,strong,b,font){color:inherit;}
html.xg-midnight body.yinse-theme.ys .yinse-description-body :is(pre,code,blockquote){color:#f1e7fb!important;background:#281b35!important;border-color:#65447b!important;}
html.xg-midnight body.yinse-theme.ys .yinse-description-body :is(pre,code,blockquote) *{color:#f1e7fb!important;-webkit-text-fill-color:#f1e7fb!important;}
html.xg-midnight body.yinse-theme.ys :is(.order-item,.order-header,.goods-section,.card-section,.card-header,.card-password-section,.card-content,.card-content-no-password,.password-form,.password-form .input-group,.card-loading,.loading-content){
 background:#21172d!important;color:#e7dcee!important;border-color:#513666!important;box-shadow:none!important;
}
html.xg-midnight body.yinse-theme.ys :is(.order-item,.order-results) :is(.goods-name,.goods-name *, .card-title,.shipment-title,.order-no,.order-time,.payment-time,.payment-dst,.payment-name,.amount-label,.goods-meta,.card-header,.mt-3,.mt-3 *){color:#dfd0eb!important;}
html.xg-midnight body.yinse-theme.ys :is(.card-display,.acg-secret__code){
 background:#15101e!important;color:#f3e9ff!important;border:1px solid #604178!important;box-shadow:none!important;
 white-space:pre-wrap;overflow-wrap:anywhere;-webkit-text-fill-color:#f3e9ff!important;
}
html.xg-midnight body.yinse-theme.ys :is(.btn-unified,.view-card-btn,.acg-secret__btn){background:#432956!important;color:#f2e3ff!important;border-color:#80569b!important;}
html.xg-midnight body.yinse-theme.ys .layui-layer:has(.acg-secret){background:#21162e!important;color:#ebdff7!important;border:1px solid #694584!important;border-radius:14px;overflow:hidden;}
html.xg-midnight body.yinse-theme.ys .layui-layer:has(.acg-secret) :is(.layui-layer-title,.layui-layer-content){background:#21162e!important;color:#ebdff7!important;border-color:#53356d!important;}
html.xg-midnight body.yinse-theme.ys .acg-secret{background:#21162e!important;color:#ebdff7!important;}
html.xg-midnight body.yinse-theme.ys .acg-secret__note{background:#30203e!important;border-color:#a877d1!important;color:#eadcf7!important;}
html.xg-midnight body.yinse-theme.ys .acg-secret__note-body *{color:#eadcf7!important;background-color:transparent!important;}
html.xg-midnight body.yinse-theme.ys :is(.acg-delivery,.acg-delivery__file,.acg-delivery__text){color:#ecdef8!important;--acg-delivery-bg:#20152b;--acg-delivery-border:#62427a;}
html.xg-midnight body.yinse-theme.ys .order-item .amount-value{color:#d6a6ff!important;}
/* The search surface is one rounded field, without a second black rectangle. */
html.xg-midnight body.yinse-theme.ys .yinse-searchbox{background:#261a33!important;border-color:#64427c!important;}
html.xg-midnight body.yinse-theme.ys .yinse-searchbox input,
html.xg-midnight body.yinse-theme.ys .yinse-search-combo input{
 background:transparent!important;border:0!important;box-shadow:none!important;color:#eee0fa!important;
}
html.xg-midnight body.yinse-theme.ys .yinse-searchbox input::placeholder,
html.xg-midnight body.yinse-theme.ys .yinse-search-combo input::placeholder{color:#bca5cd!important;-webkit-text-fill-color:#bca5cd!important;}
.xg-mobile-appearance{display:none;}
@media(max-width:767px){
 body.ys .xg-nav-refresh .yinse-brand-wrap{display:flex!important;align-items:center!important;gap:6px!important;overflow:visible!important;}
 body.ys .xg-nav-refresh .yinse-brand{flex:1 1 auto!important;min-width:0!important;gap:5px!important;padding:0!important;}
 body.ys .xg-nav-refresh .yinse-brand-mark{width:30px!important;height:30px!important;}
 body.ys .xg-nav-refresh .yinse-brand-name{font-size:13px!important;}
 body.ys .xg-mobile-appearance{display:flex;flex:0 0 auto;align-items:center;gap:5px;}
 body.ys .xg-mobile-appearance .xg-theme-toggle{min-height:36px!important;padding:5px 7px!important;font-size:10px!important;border-radius:10px!important;}
 body.ys .xg-mobile-appearance .yinse-language-trigger{min-width:34px!important;min-height:36px!important;padding:5px 7px!important;font-size:12px!important;border-radius:10px!important;}
 body.ys .xg-mobile-appearance .yinse-language-icon{display:none!important;}
 body.ys .xg-nav-refresh .yinse-nav-toggle{width:34px!important;min-width:34px!important;height:36px!important;margin-left:0!important;padding:5px!important;flex:0 0 34px!important;}
 body.ys .xg-mobile-appearance .yinse-language-menu{z-index:1100;right:0;left:auto;}
}
html.xg-midnight body.yinse-theme.ys .xg-nav-refresh .yinse-auth-actions .yinse-button-light{background:#382447!important;color:#eee1fa!important;border-color:#704b89!important;}
html.xg-midnight body.yinse-theme.ys .yinse-query-summary{color:#bda8cf!important;}
html.xg-midnight body.yinse-theme.ys .yinse-query-heading-icon{background:#392449!important;color:#d9b2f7!important;border-color:#72518d!important;}
html.xg-midnight body.yinse-theme.ys .yinse-nav-toggle .navbar-toggler-icon{filter:brightness(0) invert(.85);}
/* Compact mobile brand: square avatar and a pill that hugs the title. */
@media(max-width:767px){
 body.ys .xg-nav-refresh .yinse-brand{
  flex:0 1 auto!important;width:auto!important;min-width:0!important;min-height:36px!important;
  margin-right:auto!important;padding:3px 7px 3px 3px!important;gap:7px!important;border-radius:11px!important;
 }
 body.ys .xg-nav-refresh .yinse-brand-mark{
  flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;aspect-ratio:1!important;
  object-fit:cover!important;border-radius:50%!important;box-shadow:0 0 0 2px rgba(169,179,217,.24)!important;
 }
 body.ys .xg-nav-refresh .yinse-brand-chip{
  flex:0 1 auto!important;min-width:0!important;min-height:0!important;padding:0 1px!important;gap:0!important;
 }
 body.ys .xg-nav-refresh .yinse-brand-name{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px!important;line-height:1.4!important;
 }
}
